joyce8/EMBER2024-capa huggingface dataset:
Function at 0x412281
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x20
pushal
call 0x412290
pop dword [ebp - 0x10]
mov eax, 0x9415ca77
add eax, 0x6c2b5819
sub dword [ebp - 0x10], eax
push 0x40
push 0x1000
push 0x39fbe
push 0
mov eax, 0x7fb61aef
add eax, 0x808c753d
add eax, dword [ebp - 0x10]
call dword [eax]
mov ecx, 0x9d28df94
add ecx, 0x62d76c2c
xor esi, esi
add esi, eax
mov edx, 0x647795e1
add edx, 0x9bcbd81f
add edx, dword [ebp - 0x10]
mov ebx, 0xc520af92
add ebx, 0xb6bc859
mov edi, dword [edx]
xor dword [ebp - 8], edx
add edi, ebx
add dword [ebp - 4], eax
mov dword [esi], edi
add dword [ebp - 8], 0xfe544d91
add esi, 0x5ec694c6
add esi, 0xa1396b3e
add edx, 0xbce15355
sub edx, 0xbce15351
loop 0x4122f1
add eax, 0x121d3
xor ebx, ebx
add ebx, eax
add eax, 5
mov ecx, 0xa95d0087
sub ecx, 0xa91d0087
add ecx, dword [ebp - 0x10]
call ebx
leave
ret
Function at 0x4012a0
Capabilities:
Check os version

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x118
mov eax, dword [0x455008]
xor eax, ebp
mov dword [ebp - 4], eax
push edi
mov edi, ecx
test edi, edi
je 0x401328
push esi
push pe_nt_image_headers32
lea eax, [ebp - 0x114]
push 0
push eax
call fcn.00417b90
add esp, 0xc
mov dword [ebp - 0x118], 0x114
lea eax, [ebp - 0x118]
xor esi, esi
push eax
call dword [sym.imp.KERNEL32.dll_GetVersionExW]
test eax, eax
je 0x40130b
mov eax, dword [ebp - 0x114]
cmp eax, 6
ja 0x401306
cmp eax, 6
jne 0x40130b
cmp dword [ebp - 0x110], esi
jbe 0x40130b
mov esi, 1
shl esi, 0xb
push esi
push 0
push edi
call dword [sym.imp.KERNEL32.dll_LoadLibraryExW]
pop esi
pop edi
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.00415f69
mov esp, ebp
pop ebp
ret
push 0x57
call dword [sym.imp.KERNEL32.dll_SetLastError]
mov ecx, dword [ebp - 4]
xor eax, eax
xor ecx, ebp
pop edi
call fcn.00415f69
mov esp, ebp
pop ebp
ret
Function at 0x401e20
Capabilities:
Accept command line arguments

Disassembly:
push ebp
mov ebp, esp
push ebx
push esi
push edi
mov edi, edx
xor ebx, ebx
test edi, edi
je 0x401ec3
mov eax, dword [ebp + 8]
test eax, eax
je 0x401ec3
xor esi, esi
cmp dword [edi], ebx
jle 0x401ea6
push 0x444d1c
push dword [eax + esi*4]
call fcn.0041eafa
add esp, 8
test eax, eax
je 0x401e7a
mov eax, dword [ebp + 8]
push 0x444d34
push dword [eax + esi*4]
call fcn.0041eafa
add esp, 8
test eax, eax
je 0x401e7a
mov eax, dword [ebp + 8]
inc esi
xor ebx, ebx
cmp esi, dword [edi]
jl 0x401e43
jmp 0x401ea6
mov edx, dword [edi]
mov ebx, 1
lea eax, [edx - 1]
cmp esi, eax
jge 0x401ea1
mov ecx, dword [ebp + 8]
nop dword [eax + eax]
mov eax, dword [ecx + esi*4 + 4]
mov dword [ecx + esi*4], eax
inc esi
mov edx, dword [edi]
lea eax, [edx - 1]
cmp esi, eax
jl 0x401e90
lea eax, [edx - 1]
mov dword [edi], eax
mov edx, ebx
call fcn.00401940
test eax, eax
mov ecx, 1
cmovne ebx, ecx
xor eax, eax
test ebx, ebx
setne al
pop edi
pop esi
pop ebx
pop ebp
ret
push 0x444cf0
mov ecx, 0x444d04
xor edi, edi
call fcn.004012a0
push eax
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
mov esi, eax
test esi, esi
je 0x401f63
push 0x457ec0
call dword [sym.imp.KERNEL32.dll_GetCommandLineW]
push eax
call esi
xor esi, esi
mov ebx, eax
cmp dword [0x457ec0], esi
jle 0x401f63
nop
push 0x444d1c
push dword [ebx + esi*4]
call fcn.0041eafa
add esp, 8
test eax, eax
je 0x401f35
push 0x444d34
push dword [ebx + esi*4]
call fcn.0041eafa
add esp, 8
test eax, eax
je 0x401f35
inc esi
xor edi, edi
cmp esi, dword [0x457ec0]
jl 0x401f00
jmp 0x401f63
mov ecx, dword [0x457ec0]
mov edi, 1
lea eax, [ecx - 1]
cmp esi, eax
jge 0x401f5c
mov eax, dword [ebx + esi*4 + 4]
mov dword [ebx + esi*4], eax
inc esi
mov ecx, dword [0x457ec0]
lea eax, [ecx - 1]
cmp esi, eax
jl 0x401f47
dec ecx
mov dword [0x457ec0], ecx
mov edx, edi
call fcn.00401940
test eax, eax
mov ecx, 1
cmovne edi, ecx
xor eax, eax
test edi, edi
pop edi
pop esi
setne al
pop ebx
pop ebp
ret

Function at 0x401fc0
Capabilities:
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
sub esp, 0xc
lea eax, [ebp - 4]
mov dword [ebp - 4], 0
push eax
push 0x101
push 0
push edx
push ecx
mov dword [ebp - 8], 0
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
test eax, eax
jne 0x402029
push esi
lea eax, [ebp - 0xc]
mov dword [ebp - 0xc], 4
push eax
lea eax, [ebp - 8]
push eax
push 0
push 0
push 0x444cd4
push dword [ebp - 4]
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
push dword [ebp - 4]
mov esi, eax
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
test esi, esi
pop esi
jne 0x402029
xor eax, eax
cmp dword [ebp - 8], eax
setne al
mov esp, ebp
pop ebp
ret
xor eax, eax
mov esp, ebp
pop ebp
ret
Function at 0x402190
Capabilities:
Get file version info

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x230
mov eax, dword [0x455008]
xor eax, ebp
mov dword [ebp - 8], eax
push ebx
mov ebx, edx
push esi
xor esi, esi
push edi
cmp dword [ebx], 1
mov edi, dword [ebp + 8]
mov dword [ebp - 0x218], esi
jle 0x402231
mov esi, 1
nop dword [eax]
push 0x444fac
push dword [edi + esi*4]
call fcn.0041eafa
add esp, 8
test eax, eax
je 0x4021fb
push 0x444fc0
push dword [edi + esi*4]
call fcn.0041eafa
add esp, 8
test eax, eax
je 0x4021fb
inc esi
mov dword [ebp - 0x218], 0
cmp esi, dword [ebx]
jl 0x4021c0
xor esi, esi
jmp 0x402231
mov edx, dword [ebx]
mov ecx, 1
mov dword [ebp - 0x218], ecx
lea eax, [edx - 1]
cmp esi, eax
jge 0x402226
mov dword [ebp - 0x218], ecx
mov eax, dword [edi + esi*4 + 4]
mov dword [edi + esi*4], eax
inc esi
mov edx, dword [ebx]
lea eax, [edx - 1]
cmp esi, eax
jl 0x402215
mov esi, dword [ebp - 0x218]
lea eax, [edx - 1]
mov dword [ebx], eax
push edi
mov edx, ebx
call fcn.004020d0
add esp, 4
test eax, eax
jne 0x4023e6
push 1
call fcn.0041e978
add esp, 4
push eax
call fcn.0041fa1c
add esp, 4
push eax
call fcn.0041f3f6
mov ebx, dword [sym.imp.KERNEL32.dll_GetFileType]
add esp, 4
push eax
call ebx
cmp eax, 2
je 0x4023e6
push 1
call fcn.0041e978
add esp, 4
mov edi, eax
lea eax, [ebp - 0x22c]
push eax
push edi
call fcn.0041fa43
add esp, 8
test eax, eax
jne 0x4022c2
mov ecx, dword [ebp - 0x22c]
or ecx, dword [ebp - 0x228]
jne 0x4022c2
push 0x20000
push edi
call fcn.0041fa1c
add esp, 4
push eax
call fcn.0041f82d
push 0x44508c
push edi
call fcn.00402130
add esp, 0x10
test esi, esi
jne 0x4023ed
push 0x104
lea eax, [ebp - 0x214]
push eax
push esi
call dword [sym.imp.KERNEL32.dll_GetModuleFileNameW]
lea eax, [ebp - 0x228]
push eax
lea eax, [ebp - 0x214]
push eax
call dword [sym.imp.VERSION.dll_GetFileVersionInfoSizeW]
mov esi, eax
push esi
call fcn.0041f021
add esp, 4
mov edi, eax
lea eax, [ebp - 0x214]
push edi
push esi
push 0
push eax
call dword [sym.imp.VERSION.dll_GetFileVersionInfoW]
mov edx, 0x444fd4
mov ecx, edi
call fcn.00402540
mov edx, 0x444ff0
mov ecx, edi
mov esi, eax
call fcn.00402540
mov edx, 0x445008
mov dword [ebp - 0x224], eax
mov ecx, edi
call fcn.00402540
mov edx, 0x445028
mov dword [ebp - 0x220], eax
mov ecx, edi
call fcn.00402540
mov edx, 0x445048
mov dword [ebp - 0x21c], eax
mov ecx, edi
call fcn.00402540
push 0xfffffffffffffff5
mov edi, eax
call dword [sym.imp.KERNEL32.dll_GetStdHandle]
push eax
call ebx
push edi
push dword [ebp - 0x21c]
push dword [ebp - 0x220]
push dword [ebp - 0x224]
push esi
push 0x445060
cmp eax, 3
jne 0x4023b8
push 1
call fcn.0041e978
add esp, 4
push eax
call fcn.00402160
add esp, 0x1c
push 1
call fcn.0041e978
add esp, 4
push eax
call fcn.0041f770
mov esi, dword [ebp - 0x218]
add esp, 4
jmp 0x4023ed
push 2
call fcn.0041e978
add esp, 4
push eax
call fcn.00402160
add esp, 0x1c
push 2
call fcn.0041e978
add esp, 4
push eax
call fcn.0041f770
mov esi, dword [ebp - 0x218]
add esp, 4
jmp 0x4023ed
mov ecx, esi
call fcn.00402410
mov ecx, dword [ebp - 8]
xor eax, eax
test esi, esi
pop edi
sete al
xor ecx, ebp
pop esi
pop ebx
call fcn.00415f69
mov esp, ebp
pop ebp
ret
Function at 0x402410
Capabilities:
Get file version info

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x21c
mov eax, dword [0x455008]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
push esi
push edi
test ecx, ecx
jne 0x402526
push 0x104
lea eax, [ebp - 0x210]
push eax
push ecx
call dword [sym.imp.KERNEL32.dll_GetModuleFileNameW]
lea eax, [ebp - 0x21c]
push eax
lea eax, [ebp - 0x210]
push eax
call dword [sym.imp.VERSION.dll_GetFileVersionInfoSizeW]
mov esi, eax
push esi
call fcn.0041f021
add esp, 4
mov edi, eax
lea eax, [ebp - 0x210]
push edi
push esi
push 0
push eax
call dword [sym.imp.VERSION.dll_GetFileVersionInfoW]
mov edx, 0x444fd4
mov ecx, edi
call fcn.00402540
mov edx, 0x444ff0
mov ecx, edi
mov esi, eax
call fcn.00402540
mov edx, 0x445008
mov ecx, edi
mov ebx, eax
call fcn.00402540
mov edx, 0x445028
mov dword [ebp - 0x218], eax
mov ecx, edi
call fcn.00402540
mov edx, 0x445048
mov dword [ebp - 0x214], eax
mov ecx, edi
call fcn.00402540
push 0xfffffffffffffff5
mov edi, eax
call dword [sym.imp.KERNEL32.dll_GetStdHandle]
push eax
call dword [sym.imp.KERNEL32.dll_GetFileType]
push edi
push dword [ebp - 0x214]
push dword [ebp - 0x218]
push ebx
push esi
push 0x445060
cmp eax, 3
jne 0x402500
push 1
call fcn.0041e978
add esp, 4
push eax
call fcn.00402160
add esp, 0x1c
push 1
jmp 0x402515
push 2
call fcn.0041e978
add esp, 4
push eax
call fcn.00402160
add esp, 0x1c
push 2
call fcn.0041e978
add esp, 4
push eax
call fcn.0041f770
add esp, 4
mov ecx, dword [ebp - 4]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.00415f69
mov esp, ebp
pop ebp
ret
Function at 0x406530
Capabilities:
Link many functions at runtime

Disassembly:
push ebx
push esi
push edi
mov edi, ecx
mov esi, edx
test edi, edi
je 0x406681
test esi, esi
je 0x406681
mov ebx, dword [sym.imp.KERNEL32.dll_GetProcAddress]
xor eax, eax
push 0x44699c
push edi
mov dword [esi], eax
mov dword [esi + 4], eax
call ebx
test eax, eax
je 0x406591
call eax
mov edx, eax
test edx, edx
je 0x406591
movzx eax, word [edx]
cmp eax, 4
jbe 0x406591
mov cx, word [edx + 2]
mov word [esi], ax
movzx eax, word [edx + 4]
mov word [esi + 4], ax
movzx eax, word [edx + 6]
pop edi
mov word [esi + 6], ax
mov al, 1
mov word [esi + 2], cx
pop esi
pop ebx
ret
push 0x4469b0
push edi
call ebx
test eax, eax
je 0x4065a9
pop edi
mov dword [esi], 0xc0006
mov al, 1
pop esi
pop ebx
ret
push 0x4469d8
push edi
call ebx
test eax, eax
je 0x4065c1
pop edi
mov dword [esi], 0xb0006
mov al, 1
pop esi
pop ebx
ret
push 0x4469e4
push edi
call ebx
test eax, eax
je 0x4065d9
pop edi
mov dword [esi], 0x80006
mov al, 1
pop esi
pop ebx
ret
push 0x446a00
push edi
call ebx
test eax, eax
je 0x4065f1
pop edi
mov dword [esi], 0x60006
mov al, 1
pop esi
pop ebx
ret
push 0x446a18
push edi
call ebx
test eax, eax
je 0x406609
pop edi
mov dword [esi], 0x40006
mov al, 1
pop esi
pop ebx
ret
push 0x446a2c
push edi
call ebx
test eax, eax
je 0x406621
pop edi
mov dword [esi], 0x30006
mov al, 1
pop esi
pop ebx
ret
push 0x446a40
push edi
call ebx
test eax, eax
je 0x406639
pop edi
mov dword [esi], 0x20006
mov al, 1
pop esi
pop ebx
ret
push 0x446a54
push edi
call ebx
test eax, eax
je 0x406651
pop edi
mov dword [esi], 0x10006
mov al, 1
pop esi
pop ebx
ret
push 0x446a64
push edi
call ebx
test eax, eax
je 0x406669
pop edi
mov dword [esi], 6
mov al, 1
pop esi
pop ebx
ret
push 0x446a70
push edi
call ebx
test eax, eax
je 0x406681
pop edi
mov dword [esi], 0x10005
mov al, 1
pop esi
pop ebx
ret
pop edi
pop esi
xor al, al
pop ebx
ret
Function at 0x409b50
Capabilities:
Extract resource via kernel32 functions

Disassembly:
push ebp
mov ebp, esp
push ecx
push ebx
push esi
push edi
push str.BINRES
push str.RCPROCDUMP64
push 0
mov ebx, edx
call dword [sym.imp.KERNEL32.dll_FindResourceW]
mov edi, eax
test edi, edi
je 0x409bc7
push edi
push 0
call dword [sym.imp.KERNEL32.dll_LoadResource]
push edi
push 0
mov esi, eax
call dword [sym.imp.KERNEL32.dll_SizeofResource]
push esi
mov edi, eax
call dword [sym.imp.KERNEL32.dll_LockResource]
push 0x4484b4
mov esi, eax
lea eax, [ebp - 4]
push ebx
push eax
call fcn.0041ffca
mov ecx, dword [ebp - 4]
add esp, 0xc
test ecx, ecx
je 0x409bc7
push ecx
push edi
push 1
push esi
call fcn.00420436
push dword [ebp - 4]
call fcn.00420141
add esp, 0x14
mov al, 1
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
pop edi
pop esi
xor al, al
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x409bd0
Capabilities:
Accept command line arguments
Check if file exists
Create process on windows
Delete file
Get file attributes
Query environment variable

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x680
mov eax, dword [0x455008]
xor eax, ebp
mov dword [ebp - 4], eax
push esi
push edi
push 0x208
lea eax, [ebp - 0x210]
mov edi, ecx
push 0
push eax
call fcn.00417b90
push 0x208
lea eax, [ebp - 0x620]
push 0
push eax
call fcn.00417b90
push 0x208
lea eax, [ebp - 0x418]
push 0
push eax
call fcn.00417b90
push 0x40
lea eax, [ebp - 0x67c]
mov dword [ebp - 0x680], 0x44
push 0
push eax
call fcn.00417b90
add esp, 0x30
lea eax, [ebp - 0x210]
xorps xmm0, xmm0
movups xmmword [ebp - 0x634], xmm0
push 0x104
push eax
push 0
call dword [sym.imp.KERNEL32.dll_GetModuleFileNameW]
test eax, eax
je 0x409d96
lea eax, [ebp - 0x210]
push eax
lea eax, [ebp - 0x620]
push 0x104
push eax
call fcn.0041fa9e
lea eax, [ebp - 0x210]
push 0x2e
push eax
call fcn.004176b8
xor ecx, ecx
push str.64.exe
push 0x104
mov word [eax], cx
lea eax, [ebp - 0x210]
push eax
call fcn.0041fb02
add esp, 0x20
lea edx, [ebp - 0x210]
call fcn.00409b50
test al, al
jne 0x409d3d
mov esi, dword [sym.imp.KERNEL32.dll_GetFileAttributesW]
lea eax, [ebp - 0x210]
push eax
call esi
cmp eax, 0xffffffff
jne 0x409d3d
push 0x104
lea eax, [ebp - 0x418]
push eax
push str._TEMP_
call dword [sym.imp.KERNEL32.dll_ExpandEnvironmentStringsW]
lea eax, [ebp - 0x210]
push 0x5c
push eax
call fcn.004176b8
push eax
lea eax, [ebp - 0x418]
push 0x104
push eax
call fcn.0041fb02
lea eax, [ebp - 0x418]
push eax
lea eax, [ebp - 0x210]
push 0x104
push eax
call fcn.0041fa9e
add esp, 0x20
lea edx, [ebp - 0x210]
call fcn.00409b50
test al, al
jne 0x409d3d
lea eax, [ebp - 0x210]
push eax
call esi
cmp eax, 0xffffffff
je 0x409d96
lea eax, [ebp - 0x634]
push eax
lea eax, [ebp - 0x680]
push eax
push 0
push 0
push 0
push 0
push 0
push 0
call dword [sym.imp.KERNEL32.dll_GetCommandLineW]
push eax
lea eax, [ebp - 0x210]
push eax
call dword [sym.imp.KERNEL32.dll_CreateProcessW]
test eax, eax
jne 0x409da9
call dword [sym.imp.KERNEL32.dll_GetLastError]
push 0x44514c
mov edx, str.Error_launching_64_bit_version:_n
mov ecx, eax
call fcn.0040a300
add esp, 4
lea eax, [ebp - 0x210]
push eax
call dword [sym.imp.KERNEL32.dll_DeleteFileW]
or eax, 0xffffffff
pop edi
pop esi
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.00415f69
mov esp, ebp
pop ebp
ret
push 0xffffffffffffffff
push dword [ebp - 0x634]
mov byte [edi + 0x86], 0
call dword [sym.imp.KERNEL32.dll_WaitForSingleObject]
lea eax, [ebp - 0x624]
push eax
push dword [ebp - 0x634]
call dword [sym.imp.KERNEL32.dll_GetExitCodeProcess]
push dword [ebp - 0x634]
mov esi, dword [sym.imp.KERNEL32.dll_CloseHandle]
call esi
push dword [ebp - 0x630]
call esi
lea eax, [ebp - 0x210]
push eax
call dword [sym.imp.KERNEL32.dll_DeleteFileW]
mov ecx, dword [ebp - 4]
mov eax, dword [ebp - 0x624]
xor ecx, ebp
pop edi
pop esi
call fcn.00415f69
mov esp, ebp
pop ebp
ret
Function at 0x40c380
Capabilities:
Get system information on windows

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x436dbf
mov eax, dword fs:[0]
push eax
push ecx
push esi
mov eax, dword [0x455008]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
push 0x20
mov dword [ebp - 0x10], 0x456708
mov dword [0x4567cc], 0
mov dword [0x4567d0], 0
call fcn.00416174
mov dword [eax], eax
mov dword [eax + 4], eax
mov dword [0x4567cc], eax
mov dword [ebp - 4], 0
mov dword [0x4567ec], 0
mov dword [0x4567fc], 0
mov dword [0x456800], 7
mov byte [ebp - 4], 1
push 0xc
mov dword [0x456808], 0
mov dword [0x45680c], 0
call fcn.00416174
mov dword [eax], eax
mov dword [eax + 4], eax
mov dword [0x456808], eax
mov byte [ebp - 4], 2
push 0xc
mov dword [0x456810], 0
mov dword [0x456814], 0
call fcn.00416174
mov esi, dword [sym.imp.KERNEL32.dll_CreateEventW]
add esp, 0xc
mov dword [eax], eax
push 0
push 0
push 1
mov dword [eax + 4], eax
push 0
mov dword [0x456810], eax
call esi
push 0
push 0
push 1
push 0
mov dword [0x456708], eax
call esi
push 0
push 0
push 1
push 0
mov dword [0x45670c], eax
call esi
push 0
push 0
push 1
push 0
mov dword [0x456710], eax
call esi
push 0x4567a8
mov dword [0x456714], eax
call dword [sym.imp.KERNEL32.dll_GetSystemInfo]
mov esi, dword [sym.imp.KERNEL32.dll_InitializeCriticalSection]
push 0x456728
call esi
push 0x456740
call esi
xorps xmm0, xmm0
mov word [0x45678d], 0x100
push 0x456790
movups xmmword [0x456718], xmm0
mov word [0x456764], 0
mov dword [0x456770], 0
mov byte [0x45678c], 0
call esi
mov dword [0x4567d4], 0x1010100
mov word [0x4567d8], 1
mov dword [0x456e88], 1
mov byte [0x4567e0], 1
mov dword [0x4567e4], 0xffffffff
mov byte [0x4567e8], 0
mov dword [0x456804], 0
mov word [0x456818], 0
mov byte [0x45681a], 0
mov dword [0x45681c], 0
mov eax, 0x456708
mov dword [0x456820], 0xbadbad
mov dword [0x456824], 0
mov dword [0x456828], 0
mov dword [0x456830], 0xbadbad
mov dword [0x456834], 0
mov word [0x456838], 0
mov byte [0x45683a], 0
mov dword [0x45683c], 0
mov dword [0x456840], 0xffffffff
mov byte [0x456844], 0
mov dword [0x456758], 0
mov dword [0x456848], 0
mov dword [0x45684c], 0
mov word [0x45675c], 0
mov byte [0x456850], 0
mov dword [0x456854], 0xffffffff
mov byte [0x456858], 0
mov dword [0x456860], 0xffffffff
mov dword [0x456864], 0xffffffff
mov dword [0x456868], 0
mov word [0x456e84], 0
mov byte [0x456e86], 0
mov byte [0x456e8c], 0
mov dword [0x456e90], 0xffffffff
mov byte [0x456e94], 0
mov dword [0x456e98], 0
mov dword [0x456e9c], 0
mov dword [0x4567dc], 0
mov dword [0x456ea0], 0
mov byte [0x456ea4], 0
mov dword [0x456ea8], 0
mov dword [0x457eac], 0x100
mov word [0x457eb0], 0
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop esi
mov esp, ebp
pop ebp
ret
Function at 0x40cb70
Capabilities:
Enumerate processes

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x23c
mov eax, dword [0x455008]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
push esi
push edi
push 0x228
lea eax, [ebp - 0x234]
mov dword [ebp - 0x238], 0x22c
push 0
push eax
mov ebx, ecx
call fcn.00417b90
add esp, 0xc
push 0
push 2
call dword [sym.imp.KERNEL32.dll_CreateToolhelp32Snapshot]
mov esi, eax
test esi, esi
jne 0x40cbd1
call dword [sym.imp.KERNEL32.dll_GetLastError]
xor al, al
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.00415f69
mov esp, ebp
pop ebp
ret
lea eax, [ebp - 0x238]
push eax
push esi
call dword [sym.imp.KERNEL32.dll_Process32FirstW]
test eax, eax
je 0x40cc22
mov edi, dword [sym.imp.KERNEL32.dll_Process32NextW]
nop dword [eax]
mov eax, dword [ebp - 0x230]
cmp eax, dword [0x456670]
je 0x40cc0e
lea eax, [ebp - 0x238]
push eax
push esi
call edi
test eax, eax
jne 0x40cbf0
jmp 0x40cc22
lea eax, [ebp - 0x214]
push eax
call fcn.00420470
add esp, 4
mov dword [0x456680], eax
push esi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
cmp dword [0x456680], 0
jne 0x40cc80
mov ecx, ebx
call fcn.0040cca0
push 0x449148
call fcn.00401380
add esp, 4
push 0x449038
call fcn.00401380
add esp, 4
push 0x4490cc
call fcn.00401380
add esp, 4
push 0x449108
call fcn.00401380
add esp, 4
xor al, al
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.00415f69
mov esp, ebp
pop ebp
ret
mov ecx, dword [ebp - 4]
mov al, 1
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.00415f69
mov esp, ebp
pop ebp
ret

Function at 0x40cca0
Capabilities:
Accept command line arguments

Disassembly:
push ebp
mov ebp, esp
sub esp, 8
push esi
push edi
mov edi, ecx
push 0
push dword [edi + 4]
call dword [sym.imp.KERNEL32.dll_WaitForSingleObject]
cmp eax, 0x102
jne 0x40ccf7
lea eax, [ebp - 4]
push eax
call dword [sym.imp.KERNEL32.dll_GetCommandLineW]
push eax
call dword [sym.imp.SHELL32.dll_CommandLineToArgvW]
mov esi, eax
test esi, esi
je 0x40cce6
push esi
lea edx, [ebp - 4]
call fcn.00402190
add esp, 4
push esi
call dword [sym.imp.KERNEL32.dll_LocalFree]
push dword [edi + 4]
call dword [sym.imp.KERNEL32.dll_SetEvent]
mov al, 1
pop edi
pop esi
mov esp, ebp
pop ebp
ret
call dword [sym.imp.KERNEL32.dll_IsDebuggerPresent]
test eax, eax
je 0x40cd07
call dword [sym.imp.KERNEL32.dll_DebugBreak]
pop edi
xor al, al
pop esi
mov esp, ebp
pop ebp
ret
Function at 0x40e020
Capabilities:
Check if file exists
Get file attributes

Disassembly:
push ebp
mov ebp, esp
push ecx
push esi
mov esi, ecx
push edi
mov eax, dword [esi + 0x10]
test eax, eax
je 0x40e038
push eax
call fcn.0041f006
add esp, 4
mov eax, dword [esi + 0x14]
test eax, eax
je 0x40e048
push eax
call fcn.0041f006
add esp, 4
push 0x820
call fcn.0041f021
xor ecx, ecx
mov dword [esi + 0x10], eax
push 0x208
mov word [eax], cx
call fcn.0041f021
mov edi, dword [ebp + 8]
add esp, 8
xor ecx, ecx
mov dword [esi + 0x14], eax
mov word [eax], cx
push edi
mov dword [ebp - 4], ecx
call dword [sym.imp.KERNEL32.dll_GetFileAttributesW]
cmp eax, 0xffffffff
je 0x40e098
test al, 0x10
je 0x40e098
push edi
push 0x104
push dword [esi + 0x10]
call fcn.0041fa9e
add esp, 0xc
jmp 0x40e0b3
lea eax, [ebp - 4]
push eax
push dword [esi + 0x10]
push 0x410
push edi
call dword [sym.imp.KERNEL32.dll_GetFullPathNameW]
test eax, eax
je 0x40e170
mov eax, dword [ebp - 4]
test eax, eax
je 0x40e10c
cmp byte [ebp + 0xc], 0
je 0x40e170
push eax
push 0x104
push dword [esi + 0x14]
call fcn.0041fa9e
push 0x44f530
push dword [esi + 0x14]
call fcn.00416e60
add esp, 0x14
test eax, eax
je 0x40e104
mov edi, eax
add eax, 2
push 0x44f530
push eax
call fcn.00416e60
add esp, 8
test eax, eax
jne 0x40e0e6
test edi, edi
je 0x40e104
mov word [edi], ax
mov eax, dword [ebp - 4]
xor ecx, ecx
mov word [eax], cx
mov edx, dword [esi + 0x10]
mov ecx, edx
lea esi, [ecx + 2]
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x40e114
sub ecx, esi
sar ecx, 1
je 0x40e170
mov ecx, edx
lea esi, [ecx + 2]
nop word [eax + eax]
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x40e130
sub ecx, esi
sar ecx, 1
cmp word [edx + ecx*2 - 2], 0x5c
jne 0x40e166
mov ecx, edx
lea esi, [ecx + 2]
nop dword [eax]
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x40e150
sub ecx, esi
sar ecx, 1
xor eax, eax
mov word [edx + ecx*2 - 2], ax
pop edi
mov al, 1
pop esi
mov esp, ebp
pop ebp
ret 8
pop edi
xor al, al
pop esi
mov esp, ebp
pop ebp
ret 8