joyce8/EMBER2024-capa huggingface dataset:
Function at 0x460b40
Capabilities:
Create process on windows

Disassembly:
sub esp, 0x208
push ebx
push ebp
push esi
push edi
mov esi, ecx
push 0
call fcn.00466fc0
mov ebp, dword [esp + 0x220]
mov eax, dword [esp + 0x21c]
push ebp
push 0
push 0
push eax
push str.open
push 0
call dword [sym.imp.SHELL32.dll_ShellExecuteA]
mov edi, eax
cmp edi, 0x20
ja 0x460c39
lea ecx, [esp + 0x10]
push ecx
push str..htm
push closesocket
mov ecx, esi
call fcn.00460c50
test eax, eax
jne 0x460c39
mov ebx, dword [sym.imp.KERNEL32.dll_lstrcatA]
lea edx, [esp + 0x10]
push str._shellopencommand
push edx
call ebx
lea eax, [esp + 0x10]
lea ecx, [esp + 0x10]
push eax
push ecx
push closesocket
mov ecx, esi
call fcn.00460c50
test eax, eax
jne 0x460c39
lea edx, [esp + 0x10]
push 0xad67f4
push edx
call fcn.00473e10
mov esi, eax
add esp, 8
test esi, esi
jne 0x460c0a
lea eax, [esp + 0x10]
push 0xad67f0
push eax
call fcn.00473e10
mov esi, eax
add esp, 8
test esi, esi
jne 0x460c0a
lea ecx, [esp + 0x10]
push ecx
call dword [sym.imp.KERNEL32.dll_lstrlenA]
lea esi, [esp + eax + 0xf]
jmp 0x460c0d
mov byte [esi], 0
push 0xad5fb8
push esi
call ebx
mov edx, dword [esp + 0x21c]
push edx
push esi
call ebx
lea eax, [esp + 0x10]
push ebp
push eax
call dword [sym.imp.KERNEL32.dll_WinExec]
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x208
ret 8
mov eax, edi
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x208
ret 8

Function at 0x460c50
Capabilities:
Query or enumerate registry value

Disassembly:
mov ecx, dword [esp + 8]
mov edx, dword [esp + 4]
sub esp, 0x10c
lea eax, [esp]
push esi
push eax
push 1
push 0
push ecx
push edx
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
mov esi, eax
test esi, esi
jne 0x460cb2
mov edx, dword [esp + 4]
lea eax, [esp + 8]
lea ecx, [esp + 0xc]
push eax
push ecx
push esi
push edx
mov dword [esp + 0x18], 0x104
call dword [sym.imp.ADVAPI32.dll_RegQueryValueA]
mov ecx, dword [esp + 0x11c]
lea eax, [esp + 0xc]
push eax
push ecx
call dword [sym.imp.KERNEL32.dll_lstrcpyA]
mov edx, dword [esp + 4]
push edx
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov eax, esi
pop esi
add esp, 0x10c
ret 0xc
Function at 0x466f00
Capabilities:
Get common file path

Disassembly:
push 0xffffffffffffffff
push 0x491ee8
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
push ecx
push edi
mov edi, ecx
mov eax, dword [edi + 0x118]
test eax, eax
jne 0x466fb0
mov eax, dword [0xad720c]
push esi
mov dword [esp + 8], eax
push 0x104
push 0x104
lea ecx, [esp + 0x10]
mov dword [esp + 0x1c], 0
call fcn.00483463
push eax
call dword [sym.imp.KERNEL32.dll_GetWindowsDirectoryA]
push 0xffffffffffffffff
lea ecx, [esp + 0xc]
call fcn.004834b2
push str.winhlp32.exe
lea ecx, [esp + 0xc]
call fcn.0048340f
mov ecx, dword [esp + 8]
push ecx
call dword [sym.imp.KERNEL32.dll_LoadLibraryA]
mov esi, eax
test esi, esi
je 0x466f97
push 0x6a
push esi
call dword [sym.imp.USER32.dll_LoadCursorA]
test eax, eax
je 0x466f97
push eax
call dword [sym.imp.USER32.dll_CopyIcon]
mov dword [edi + 0x118], eax
push esi
call dword [sym.imp.KERNEL32.dll_FreeLibrary]
lea ecx, [esp + 8]
mov dword [esp + 0x14], 0xffffffff
call fcn.0048307f
pop esi
mov ecx, dword [esp + 8]
pop edi
mov dword fs:[0], ecx
add esp, 0x10
ret
Function at 0x46a0b0
Capabilities:
Get number of processors

Disassembly:
mov eax, dword fs:[0]
push 0xffffffffffffffff
push 0x492370
push eax
mov dword fs:[0], esp
sub esp, 0x14
push ebx
push esi
push edi
mov edi, dword [esp + 0x30]
mov esi, ecx
mov eax, dword [edi]
mov ecx, dword [eax - 8]
test ecx, ecx
je 0x46a257
mov ecx, dword [0xad720c]
mov dword [esp + 0x10], 0
mov dword [esp + 0xc], ecx
mov dword [esp + 0x28], 0
mov dword [esp + 0x30], ecx
mov ecx, dword [eax - 8]
mov bl, 1
test ecx, ecx
mov byte [esp + 0x28], bl
jle 0x46a1ac
lea eax, [esp + 0x10]
lea ecx, [esp + 0x14]
push eax
push edi
push ecx
mov ecx, esi
call fcn.00468dd0
push eax
lea ecx, [esp + 0x10]
mov byte [esp + 0x2c], 2
call fcn.0048316c
lea ecx, [esp + 0x14]
mov byte [esp + 0x28], bl
call fcn.0048307f
push ecx
mov ecx, esp
mov dword [esp + 0x20], esp
push 0xad5fb8
call fcn.004830ed
lea edx, [esp + 0x14]
push 0x3d
push edx
lea eax, [esp + 0x24]
push edi
push eax
mov ecx, esi
call fcn.00469190
push eax
lea ecx, [esp + 0x34]
mov byte [esp + 0x2c], 3
call fcn.0048316c
lea ecx, [esp + 0x18]
mov byte [esp + 0x28], bl
call fcn.0048307f
lea ecx, [esp + 0xc]
call fcn.00483547
mov ecx, dword [esp + 0xc]
push 0xad69f4
push ecx
call fcn.00472dd4
add esp, 8
test eax, eax
je 0x46a1d4
mov edx, dword [edi]
mov ecx, dword [esp + 0x10]
mov eax, dword [edx - 8]
cmp ecx, eax
jl 0x46a10d
mov esi, dword [esp + 0x34]
lea ecx, [esp + 0x30]
mov byte [esp + 0x28], 0
call fcn.0048307f
lea ecx, [esp + 0xc]
mov dword [esp + 0x28], 0xffffffff
call fcn.0048307f
jmp 0x46a25b
lea eax, [esp + 0x30]
mov ecx, esi
push eax
call fcn.00469e50
test eax, eax
push 0
je 0x46a23f
lea ecx, [esp + 0x34]
push 0x64
push ecx
mov ecx, esi
call fcn.004684f0
mov ecx, dword [esp + 0x3c]
test ecx, ecx
je 0x46a225
cmp eax, 0x64
jg 0x46a213
mov edx, dword [esp + 0x38]
push eax
push 0x64
push edx
call dword [sym.imp.KERNEL32.dll_MulDiv]
mov esi, eax
jmp 0x46a1b0
push 0x64
push eax
mov eax, dword [esp + 0x40]
push eax
call dword [sym.imp.KERNEL32.dll_MulDiv]
mov esi, eax
jmp 0x46a1b0
cmp eax, 0x64
jge 0x46a1ac
mov ecx, dword [esp + 0x34]
push 0x64
push eax
push ecx
call dword [sym.imp.KERNEL32.dll_MulDiv]
mov esi, eax
jmp 0x46a1b0
mov edx, dword [esp + 0x3c]
lea eax, [esp + 0x34]
push edx
push eax
mov ecx, esi
call fcn.004684f0
mov esi, eax
jmp 0x46a1b0
mov esi, dword [esp + 0x34]
mov eax, dword [esp + 0x38]
cmp esi, eax
jl 0x46a265
mov eax, esi
mov ecx, dword [esp + 0x20]
pop edi
pop esi
mov dword fs:[0], ecx
pop ebx
add esp, 0x20
ret 0x10
Function at 0x485460
Capabilities:
Get graphical window text

Disassembly:
push esi
mov esi, ecx
mov ecx, dword [esi + 0x38]
test ecx, ecx
jne 0x485498
push dword [esi + 0x1c]
call dword [sym.imp.USER32.dll_GetWindowTextLengthA]
lea ecx, [eax + 1]
push ecx
mov ecx, dword [esp + 0xc]
push eax
call fcn.004834da
push eax
push dword [esi + 0x1c]
call dword [sym.imp.USER32.dll_GetWindowTextA]
mov ecx, dword [esp + 8]
push 0xffffffffffffffff
call fcn.004834b2
jmp 0x4854a4
mov eax, dword [ecx]
push dword [esp + 8]
call dword [eax + 0x88]
pop esi
ret 4

Function at 0x486b5a
Capabilities:
Extract resource via kernel32 functions

Disassembly:
push ebx
push esi
push edi
xor edi, edi
cmp dword [esp + 0x10], edi
mov ebx, ecx
je 0x486b9c
call fcn.0048c8d9
mov esi, dword [eax + 0xc]
push 0xf0
push dword [esp + 0x14]
push esi
call dword [sym.imp.KERNEL32.dll_FindResourceA]
cmp eax, edi
je 0x486b9c
push eax
push esi
call dword [sym.imp.KERNEL32.dll_LoadResource]
cmp eax, edi
jne 0x486b93
xor eax, eax
jmp 0x486ba4
push eax
call dword [sym.imp.KERNEL32.dll_LockResource]
mov edi, eax
push edi
mov ecx, ebx
call fcn.00486baa
pop edi
pop esi
pop ebx
ret 4

Function at 0x48ce09
Capabilities:
Get thread local storage value

Disassembly:
push ebx
push esi
mov esi, ecx
lea ebx, [esi + 0x1c]
push ebx
call dword [sym.imp.KERNEL32.dll_EnterCriticalSection]
cmp dword [esp + 0x10], 0
jne 0x48ce37
push dword [esi]
call dword [sym.imp.KERNEL32.dll_TlsGetValue]
test eax, eax
je 0x48ce55
push dword [esp + 0xc]
mov ecx, esi
push eax
call fcn.0048cd6f
jmp 0x48ce55
mov eax, dword [esi + 0x14]
test eax, eax
je 0x48ce55
push edi
push dword [esp + 0x10]
mov edi, dword [eax + 4]
mov ecx, esi
push eax
call fcn.0048cd6f
test edi, edi
mov eax, edi
jne 0x48ce3f
pop edi
push ebx
call dword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
pop esi
pop ebx
ret 8
Function at 0x401030
Capabilities:
Download url
Receive data

Disassembly:
sub esp, 0x38
mov eax, dword [0x4110f8]
push esi
mov esi, dword [esp + 0x40]
push edi
xor edi, edi
push 0x7f00
push edi
mov dword [esp + 0x14], eax
mov dword [esp + 0x10], eax
mov dword [esp + 0x18], 0x30
mov dword [esp + 0x1c], 0xb
mov dword [esp + 0x20], 0x401000
mov dword [esp + 0x24], edi
mov dword [esp + 0x28], edi
mov dword [esp + 0x2c], esi
mov dword [esp + 0x30], edi
call dword [sym.imp.USER32.dll_LoadCursorA]
mov dword [esp + 0x30], 6
mov dword [esp + 0x34], edi
mov dword [esp + 0x2c], eax
lea eax, [esp + 0x10]
push eax
mov dword [esp + 0x3c], str.UpdateInfor
mov dword [esp + 0x40], edi
call dword [sym.imp.USER32.dll_RegisterClassExA]
test ax, ax
je 0x4010de
push edi
push esi
push edi
push edi
push 0xc8
push 0x190
push edi
push 0x80000000
push 0x20ca0000
push str.UpdateInfor
push str.UpdateInfor
push edi
call dword [sym.imp.USER32.dll_CreateWindowExA]
mov esi, eax
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp esi, edi
jne 0x4010fb
lea ecx, [esp + 8]
call fcn.00407356
lea ecx, [esp + 0xc]
call fcn.00407356
pop edi
or eax, 0xffffffff
pop esi
add esp, 0x38
ret 0x10
push edi
push esi
call dword [sym.imp.USER32.dll_ShowWindow]
mov ecx, dword [esp + 0x4c]
push ecx
lea ecx, [esp + 0xc]
call fcn.00407441
push str.http:__www.swansc.com_download_update_update.txt
lea ecx, [esp + 0x10]
call fcn.00407441
push 0x2a
lea ecx, [esp + 0xc]
call fcn.004074df
mov esi, eax
cmp esi, edi
jl 0x4011e2
mov edx, dword [esp + 8]
lea ecx, [esp + 8]
mov eax, dword [edx - 8]
sub eax, esi
dec eax
push eax
lea eax, [esp + 0x48]
push eax
call fcn.00406b94
push eax
lea ecx, [esp + 0x10]
call fcn.004073f1
lea ecx, [esp + 0x44]
call fcn.00407356
lea ecx, [esp + 0x44]
push esi
push ecx
lea ecx, [esp + 0x10]
call fcn.00406c10
push eax
lea ecx, [esp + 0xc]
call fcn.004073f1
lea ecx, [esp + 0x44]
call fcn.00407356
lea ecx, [esp + 0xc]
call fcn.00406cd4
lea ecx, [esp + 0xc]
call fcn.00406c88
lea ecx, [esp + 8]
call fcn.00406cd4
lea ecx, [esp + 8]
call fcn.00406c88
mov edx, dword [esp + 8]
cmp dword [edx - 8], 1
jge 0x4011be
push str.update.txt
lea ecx, [esp + 0xc]
call fcn.00407441
mov eax, dword [esp + 8]
mov ecx, dword [esp + 0xc]
push edi
push edi
push eax
push ecx
push edi
call sub.urlmon.dll_URLDownloadToFileA
test eax, eax
jge 0x4011e2
push str.Not_Found
lea ecx, [esp + 0xc]
call fcn.00407441
lea ecx, [esp + 8]
call fcn.00407356
lea ecx, [esp + 0xc]
call fcn.00407356
pop edi
xor eax, eax
pop esi
add esp, 0x38
ret 0x10
Function at 0x403971
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x1a4
mov edx, dword [ebp + 8]
xor ecx, ecx
mov eax, 0x411920
cmp edx, dword [eax]
je 0x403993
add eax, 8
inc ecx
cmp eax, 0x4119b0
jl 0x403984
push esi
mov esi, ecx
shl esi, 3
cmp edx, dword [esi + 0x411920]
jne 0x403ac1
mov eax, dword [0x414198]
cmp eax, 1
je 0x403a9b
test eax, eax
jne 0x4039c4
cmp dword [0x411514], 1
je 0x403a9b
cmp edx, 0xfc
je 0x403ac1
lea eax, [ebp - 0x1a4]
push 0x104
push eax
push 0
call dword [sym.imp.KERNEL32.dll_GetModuleFileNameA]
test eax, eax
jne 0x4039fb
lea eax, [ebp - 0x1a4]
push str._program_name_unknown_
push eax
call fcn.00405a20
pop ecx
pop ecx
lea eax, [ebp - 0x1a4]
push edi
push eax
lea edi, [ebp - 0x1a4]
call fcn.004043f0
inc eax
pop ecx
cmp eax, 0x3c
jbe 0x403a3e
lea eax, [ebp - 0x1a4]
push eax
call fcn.004043f0
mov edi, eax
lea eax, [ebp - 0x1a4]
sub eax, 0x3b
push 3
add edi, eax
push 0x40e1e8
push edi
call fcn.00405cb0
add esp, 0x10
lea eax, [ebp - 0xa0]
push str.Runtime_Error__n_nProgram:
push eax
call fcn.00405a20
lea eax, [ebp - 0xa0]
push edi
push eax
call fcn.00405a30
lea eax, [ebp - 0xa0]
push 0x40e1c8
push eax
call fcn.00405a30
push dword [esi + 0x411924]
lea eax, [ebp - 0xa0]
push eax
call fcn.00405a30
push 0x12010
lea eax, [ebp - 0xa0]
push str.Microsoft_Visual_C_Runtime_Library
push eax
call fcn.00405c22
add esp, 0x2c
pop edi
jmp 0x403ac1
lea eax, [ebp + 8]
lea esi, [esi + 0x411924]
push 0
push eax
push dword [esi]
call fcn.004043f0
pop ecx
push eax
push dword [esi]
push 0xfffffffffffffff4
call dword [sym.imp.KERNEL32.dll_GetStdHandle]
push eax
call dword [sym.imp.KERNEL32.dll_WriteFile]
pop esi
leave
ret
Function at 0x401000
Capabilities:
Accept command line arguments
Query environment variable

Disassembly:
jmp 0x401012
mov eax, dword [0x420123]
shl eax, 2
mov dword [0x420127], eax
push edx
push 0
call sub.KERNEL32.DLL_GetModuleHandleA
mov edx, eax
call fcn.004167ac
pop edx
call fcn.00415b48
call fcn.004167b0
push 0
call fcn.00417524
pop ecx
push 0x4200cc
push 0
call sub.KERNEL32.DLL_GetModuleHandleA
mov dword [0x42012b], eax
push 0
jmp fcn.0041da7c
Function at 0x409e84
Capabilities:
Encrypt data using rc4 ksa

Disassembly:
push ebp
mov ebp, esp
add esp, 0xffffffe0
push ebx
push esi
push edi
mov eax, dword [ebp + 0x10]
mov edx, dword [ebp + 8]
mov cl, byte [edx + 8]
cmp cl, 3
je 0x40a025
mov ecx, dword [edx]
xor ebx, ebx
mov dword [ebp - 4], ecx
xor esi, esi
test byte [edx + 8], 2
je 0x409edf
movzx edi, byte [eax]
xor ecx, ecx
mov cl, byte [edx + 9]
sub ecx, edi
mov dword [ebp + ebx*4 - 0x20], ecx
inc ebx
movzx edi, byte [eax + 1]
xor ecx, ecx
mov cl, byte [edx + 9]
sub ecx, edi
mov dword [ebp + ebx*4 - 0x20], ecx
xor ecx, ecx
movzx edi, byte [eax + 2]
inc ebx
mov cl, byte [edx + 9]
sub ecx, edi
mov dword [ebp + ebx*4 - 0x20], ecx
inc ebx
jmp 0x409eef
xor ecx, ecx
mov cl, byte [edx + 9]
movzx edi, byte [eax + 3]
sub ecx, edi
mov dword [ebp + ebx*4 - 0x20], ecx
inc ebx
test byte [edx + 8], 4
je 0x409f05
xor ecx, ecx
mov cl, byte [edx + 9]
movzx eax, byte [eax + 4]
sub ecx, eax
mov dword [ebp + ebx*4 - 0x20], ecx
inc ebx
xor ecx, ecx
lea eax, [ebp - 0x20]
cmp ebx, ecx
jle 0x409f26
mov edi, dword [eax]
test edi, edi
jg 0x409f1a
xor edi, edi
mov dword [eax], edi
jmp 0x409f1e
mov si, 1
inc ecx
add eax, 4
cmp ebx, ecx
jg 0x409f0e
test si, si
je 0x40a025
mov al, byte [edx + 9]
sub al, 2
je 0x409f4b
sub al, 2
je 0x409f6b
sub al, 4
je 0x409fa6
sub al, 8
je 0x409fd1
jmp 0x40a025
mov ecx, dword [edx + 4]
mov eax, dword [ebp + 0xc]
xor edx, edx
cmp ecx, edx
jbe 0x40a025
shr byte [eax], 1
and byte [eax], 0x55
inc eax
inc edx
cmp ecx, edx
ja 0x409f5b
jmp 0x40a025
mov esi, dword [ebp - 0x20]
mov ebx, 0xf0
mov ecx, esi
mov edx, dword [edx + 4]
sar ebx, cl
mov ecx, esi
mov esi, 0xf
sar esi, cl
mov ecx, esi
and bl, 0xf0
or bl, cl
xor esi, esi
cmp edx, esi
mov eax, dword [ebp + 0xc]
jbe 0x40a025
mov ecx, dword [ebp - 0x20]
inc esi
shr byte [eax], cl
and byte [eax], bl
inc eax
cmp edx, esi
ja 0x409f97
jmp 0x40a025
mov edi, dword [ebp + 0xc]
mov eax, dword [ebp - 4]
imul ebx
mov dword [ebp - 8], eax
xor esi, esi
mov eax, dword [ebp - 8]
cmp esi, eax
jae 0x40a025
mov eax, esi
xor edx, edx
div ebx
inc esi
mov ecx, dword [ebp + edx*4 - 0x20]
shr byte [edi], cl
inc edi
mov eax, dword [ebp - 8]
cmp esi, eax
jb 0x409fba
jmp 0x40a025
mov edi, dword [ebp + 0xc]
mov eax, ebx
imul dword [ebp - 4]
mov dword [ebp - 0x10], eax
xor edx, edx
mov dword [ebp - 0xc], edx
mov ecx, dword [ebp - 0xc]
mov eax, dword [ebp - 0x10]
cmp ecx, eax
jae 0x40a025
movzx esi, byte [edi]
shl esi, 8
xor eax, eax
mov al, byte [edi + 1]
xor edx, edx
add si, ax
mov eax, dword [ebp - 0xc]
div ebx
mov ecx, dword [ebp + edx*4 - 0x20]
shr si, cl
movzx eax, si
sar eax, 8
mov edx, esi
mov byte [edi], al
inc edi
and dl, 0xff
mov byte [edi], dl
inc edi
inc dword [ebp - 0xc]
mov ecx, dword [ebp - 0xc]
mov eax, dword [ebp - 0x10]
cmp ecx, eax
jb 0x409feb
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret

Function at 0x4164a0
Capabilities:
Get memory capacity

Disassembly:
add esp, 0xffffffe0
mov dword [esp], 0x20
push esp
call sub.KERNEL32.DLL_GlobalMemoryStatus
mov eax, dword [esp + 0xc]
add esp, 0x20
ret
Function at 0x41778c
Capabilities:
Check if file exists
Get file attributes

Disassembly:
push ebp
mov ebp, esp
push ebx
mov eax, dword [ebp + 8]
push eax
call sub.KERNEL32.DLL_GetFileAttributesA
mov ebx, eax
cmp eax, 0xffffffff
jne 0x4177a8
call fcn.00418a80
pop ebx
pop ebp
ret
test byte [ebp + 0xc], 2
je 0x4177c3
test bl, 1
je 0x4177c3
mov dword [0x426064], 5
or eax, 0xffffffff
pop ebx
pop ebp
ret
xor eax, eax
pop ebx
pop ebp
ret

Function at 0x417970
Capabilities:
Check if file exists
Get file attributes

Disassembly:
push ebp
mov ebp, esp
add esp, 0xffffffec
push ebx
push esi
push edi
test byte [ebp + 0xd], 0xc0
jne 0x41798f
mov eax, dword [0x4251f8]
mov edx, dword [eax]
and edx, 0xc000
or dword [ebp + 0xc], edx
test byte [ebp + 0xd], 0x80
jne 0x41799c
or dword [ebp + 0xc], 0x4000
mov ecx, dword [ebp + 0xc]
and ecx, 0x700
cmp ecx, 0x500
jg 0x4179c9
je 0x4179db
sub ecx, 0x100
je 0x4179e9
sub ecx, 0x100
je 0x4179f0
sub ecx, 0x100
je 0x4179e2
jmp 0x4179f7
sub ecx, 0x600
je 0x4179f0
sub ecx, 0x100
je 0x4179db
jmp 0x4179f7
mov edi, 1
jmp 0x4179fc
mov edi, 2
jmp 0x4179fc
mov edi, 4
jmp 0x4179fc
mov edi, 5
jmp 0x4179fc
mov edi, 3
test byte [ebp + 0xd], 1
je 0x417a23
lea eax, [ebp + 0x10]
add eax, 4
mov eax, dword [eax - 4]
and eax, dword [0x424c70]
test al, 0x80
je 0x417a1c
mov ebx, 0x80
jmp 0x417a35
mov ebx, 1
jmp 0x417a35
mov eax, dword [ebp + 8]
push eax
call sub.KERNEL32.DLL_GetFileAttributesA
mov ebx, eax
cmp eax, 0xffffffff
jne 0x417a35
xor ebx, ebx
mov eax, dword [ebp + 0xc]
and eax, 3
sub eax, 1
jb 0x417a47
je 0x417a50
dec eax
je 0x417a59
jmp 0x417a62
mov dword [ebp - 4], 0x80000000
jmp 0x417a71
mov dword [ebp - 4], 0x40000000
jmp 0x417a71
mov dword [ebp - 4], 0xc0000000
jmp 0x417a71
push 1
call fcn.00418a1c
pop ecx
mov ebx, eax
jmp 0x417b61
mov eax, dword [ebp + 0xc]
and eax, 0x70
sub eax, 0x10
je 0x417a8d
sub eax, 0x10
je 0x417a94
sub eax, 0x10
je 0x417a9d
sub eax, 0x10
je 0x417aa6
jmp 0x417aa6
xor edx, edx
mov dword [ebp - 8], edx
jmp 0x417aad
mov dword [ebp - 8], 1
jmp 0x417aad
mov dword [ebp - 8], 2
jmp 0x417aad
mov dword [ebp - 8], 3
mov dword [ebp - 0x14], 0xc
xor ecx, ecx
mov dword [ebp - 0x10], ecx
lea ecx, [ebp - 0x14]
mov eax, dword [ebp + 0xc]
and eax, 0x80
cmp eax, 1
sbb edx, edx
neg edx
mov dword [ebp - 0xc], edx
push 0
push ebx
push edi
push ecx
mov eax, dword [ebp - 8]
push eax
mov edx, dword [ebp - 4]
push edx
mov ecx, dword [ebp + 8]
push ecx
call sub.KERNEL32.DLL_CreateFileA
mov esi, eax
cmp eax, 0xffffffff
jne 0x417b1a
call sub.KERNEL32.DLL_GetLastError
mov ebx, eax
and ebx, 0xffff
cmp ebx, 0x6e
jne 0x417b0f
test byte [ebp + 0xd], 1
je 0x417b0a
mov ebx, 0x50
jmp 0x417b0f
mov ebx, 2
push ebx
call fcn.00418a1c
pop ecx
mov ebx, eax
jmp 0x417b61
mov edi, esi
push edi
call fcn.004178e0
pop ecx
test eax, eax
je 0x417b2e
or dword [ebp + 0xc], 0x2000
test bl, 1
jne 0x417b3a
or dword [ebp + 0xc], 0x100
and dword [ebp + 0xc], 0xfffff8ff
mov eax, dword [ebp + 0xc]
push eax
push edi
call fcn.00418760
add esp, 8
mov ebx, eax
inc eax
jne 0x417b61
push 4
call fcn.00418a1c
pop ecx
push esi
call sub.KERNEL32.DLL_CloseHandle
mov eax, ebx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x41ca48
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
push ecx
push ebx
push esi
push edi
mov edi, dword [ebp + 0xc]
push 0
push 0x80
push 2
push 0
push 0
push 0xc0000000
mov eax, dword [ebp + 8]
push eax
call sub.KERNEL32.DLL_CreateFileA
mov ebx, eax
test eax, eax
je 0x41caaa
call fcn.0041c9f8
mov esi, eax
lea eax, [ebp - 4]
push 0
push eax
push esi
call fcn.004169ec
pop ecx
push eax
push esi
push ebx
call sub.KERNEL32.DLL_WriteFile
push 0
lea edx, [ebp - 4]
push edx
push edi
call fcn.004169ec
pop ecx
push eax
push edi
push ebx
call sub.KERNEL32.DLL_WriteFile
push ebx
call sub.KERNEL32.DLL_CloseHandle
pop edi
pop esi
pop ebx
pop ecx
pop ebp
ret

Function at 0x41cb08
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
add esp, 0xffffff7c
cmp dword [0x42606c], 0
push ebx
push esi
mov esi, dword [ebp + 8]
jne 0x41cbe2
cmp dword [0x426068], 0
jne 0x41cbe2
cmp dword [0x426260], 0
je 0x41cb9c
push 0x80
lea eax, [ebp - 0x84]
push eax
push 0
call sub.KERNEL32.DLL_GetModuleFileNameA
push 0x5c
lea edx, [ebp - 0x84]
push edx
call fcn.0041c8f8
add esp, 8
mov ebx, eax
test eax, eax
jne 0x41cb82
push 0x3a
lea edx, [ebp - 0x84]
push edx
call fcn.0041c8f8
add esp, 8
mov ebx, eax
test eax, eax
jne 0x41cb82
lea ebx, [ebp - 0x84]
jmp 0x41cb83
inc ebx
call fcn.0041cac4
or eax, 0x10010
push eax
push ebx
push esi
push 0
call sub.USER32.DLL_MessageBoxA
jmp 0x41cc1d
push 0xfffffffffffffff4
call sub.KERNEL32.DLL_GetStdHandle
mov ebx, eax
lea eax, [ebp - 4]
push 0
push eax
push 2
push 0x426070
push ebx
call sub.KERNEL32.DLL_WriteFile
push 0
lea edx, [ebp - 4]
push edx
push esi
call fcn.004169ec
pop ecx
push eax
push esi
push ebx
call sub.KERNEL32.DLL_WriteFile
push 0
lea ecx, [ebp - 4]
push ecx
push 2
push 0x426073
push ebx
call sub.KERNEL32.DLL_WriteFile
jmp 0x41cc1d
cmp dword [0x426068], 0
je 0x41cbfc
cmp dword [0x426068], 0xffffffff
je 0x41cc1d
push esi
call dword [0x426068]
pop ecx
mov eax, dword [0x42606c]
test eax, eax
je 0x41cc1d
cmp dword [0x42606c], 0xffffffff
je 0x41cc1d
cmp byte [eax], 0
je 0x41cc1d
push esi
push eax
call fcn.0041ca48
add esp, 8
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x41d4c0
Capabilities:
Query environment variable

Disassembly:
push ebx
push esi
push edi
push ebp
push ecx
cmp dword [0x427318], 0
jne 0x41d541
cmp dword [0x427338], 0
jne 0x41d4f0
call sub.KERNEL32.DLL_GetEnvironmentStrings
mov dword [0x427338], eax
test eax, eax
jne 0x41d4f0
push str.GetEnvironmentStrings_failed
call fcn.0041cc34
pop ecx
xor ebp, ebp
xor esi, esi
mov ebx, dword [0x427338]
jmp 0x41d504
lea eax, [edi + 1]
inc esi
add ebp, eax
add ebx, eax
push ebx
call fcn.004169ec
pop ecx
mov edi, eax
test eax, eax
jne 0x41d4fc
lea edi, [ebp + 1]
push edi
call fcn.00415a58
pop ecx
mov ebx, eax
mov dword [0x42731c], ebx
test ebx, ebx
jne 0x41d52e
xor eax, eax
jmp 0x41d604
push edi
mov edx, dword [0x427338]
push edx
push ebx
call fcn.00416850
add esp, 0xc
jmp 0x41d561
xor esi, esi
mov ebx, dword [0x427318]
jmp 0x41d55b
push eax
call fcn.004169ec
pop ecx
test eax, eax
jne 0x41d557
dec esi
inc esi
add ebx, 4
mov eax, dword [ebx]
test eax, eax
jne 0x41d54b
lea ebx, [esi + 4]
push 4
mov dword [0x427320], ebx
inc ebx
push ebx
call fcn.004155cc
add esp, 8
test eax, eax
mov dword [esp], eax
jne 0x41d584
xor eax, eax
jmp 0x41d604
cmp dword [0x427318], 0
jne 0x41d5b5
xor esi, esi
mov ebx, dword [0x42731c]
mov eax, dword [esp]
mov ebp, eax
jmp 0x41d5a6
mov dword [ebp], ebx
add ebp, 4
inc esi
inc edi
add ebx, edi
push ebx
call fcn.004169ec
pop ecx
mov edi, eax
test eax, eax
jne 0x41d59c
jmp 0x41d5e6
xor esi, esi
mov ebx, dword [0x427318]
mov eax, dword [esp]
mov edi, eax
jmp 0x41d5e0
push eax
call fcn.004169ec
pop ecx
test eax, eax
je 0x41d5d5
mov eax, dword [ebx]
mov dword [edi], eax
jmp 0x41d5d9
dec esi
add edi, 0xfffffffc
add edi, 4
inc esi
add ebx, 4
mov eax, dword [ebx]
test eax, eax
jne 0x41d5c4
mov eax, dword [0x427318]
test eax, eax
je 0x41d5f6
push eax
call fcn.00415a68
pop ecx
mov edx, dword [esp]
mov eax, 1
mov dword [0x427318], edx
pop edx
pop ebp
pop edi
pop esi
pop ebx
ret
Function at 0x40234f
Capabilities:
Create thread

Disassembly:
push ebp
mov ebp, esp
sub esp, 4
push edi
xor eax, eax
push eax
xor eax, eax
push eax
mov eax, dword [ebp + 0x10]
push eax
mov eax, dword [ebp + 0xc]
push eax
mov eax, dword [ebp + 0x14]
push eax
xor eax, eax
push eax
call dword [sym.imp.KERNEL32.dll_CreateThread]
mov dword [ebp - 4], eax
test eax, eax
jne 0x402381
xor eax, eax
pop edi
mov esp, ebp
pop ebp
ret 0x10
push 8
pop eax
push eax
call dword [0x55fa2c]
mov edi, eax
mov eax, dword [ebp - 4]
mov dword [edi], eax
mov eax, dword [ebp + 8]
mov eax, dword [eax]
mov dword [edi + 4], eax
mov esi, dword [ebp + 8]
mov dword [esi], edi
add esp, 4
mov eax, dword [edi]
pop edi
mov esp, ebp
pop ebp
ret 0x10