joyce8/EMBER2024-capa huggingface dataset:
Function at 0x409290
Capabilities:
Create thread
Terminate thread

Disassembly:
push ebp
mov ebp, esp
sub esp, 0xc
push ebx
mov ebx, dword [ebp + 0xc]
push esi
push edi
mov dword [ebp - 0xc], ebx
call dword [sym.imp.KERNEL32.dll_GetCurrentThreadId]
mov edi, dword [ebp + 8]
mov dword [ebp - 8], eax
lea eax, [ebp + 0xc]
push eax
push 0
lea ecx, [ebp - 0xc]
push ecx
push 0x409260
push 0
push 0
mov dword [ebp - 4], edi
mov dword [ebp + 0xc], 0
call dword [sym.imp.KERNEL32.dll_CreateThread]
mov esi, eax
test esi, esi
je 0x4092f9
push 0xea60
push esi
call dword [sym.imp.KERNEL32.dll_WaitForSingleObject]
cmp eax, 0x102
jne 0x4092f0
push 0
push esi
call dword [sym.imp.KERNEL32.dll_TerminateThread]
push esi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
jmp 0x409308
mov edx, dword [ebp - 8]
mov eax, dword [ebp - 0xc]
push edx
push eax
mov ecx, edi
call fcn.00408cb0
mov ecx, dword [edi + 0xc04]
xor eax, eax
test ecx, ecx
je 0x409321
mov edx, dword [edi + 0xc08]
push edx
push ebx
call ecx
add esp, 8
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 8

Function at 0x4093f0
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x404
mov eax, dword [0x4116b8]
push ebx
push esi
mov esi, dword [ebp + 8]
mov dword [ebp - 4], eax
mov eax, dword [esi + 4]
xor ebx, ebx
cmp eax, ebx
je 0x40946d
push edi
xor eax, eax
mov byte [ebp - 0x404], bl
mov ecx, 0xff
lea edi, [ebp - 0x403]
rep stosd dword es:[edi], eax
mov ecx, dword [ebp + 0xc]
stosw word es:[edi], ax
stosb byte es:[edi], al
lea eax, [ebp + 0x10]
push eax
push ecx
lea edx, [ebp - 0x404]
push edx
mov dword [ebp + 8], ebx
call dword [sym.imp.MSVCR71.dll_vsprintf]
add esp, 0xc
cmp eax, ebx
pop edi
jle 0x40946d
push ebx
lea ecx, [ebp + 8]
push ecx
push eax
mov eax, dword [esi + 4]
lea edx, [ebp - 0x404]
push edx
push eax
call dword [sym.imp.KERNEL32.dll_WriteFile]
pop esi
pop ebx
mov ecx, dword [ebp - 4]
call fcn.0040cc02
mov esp, ebp
pop ebp
ret
mov ecx, dword [ebp - 4]
pop esi
mov eax, ebx
pop ebx
call fcn.0040cc02
mov esp, ebp
pop ebp
ret
Function at 0x4098e0
Capabilities:
Enumerate pe sections

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x1c
xor eax, eax
mov dword [ebp - 0x1c], eax
mov dword [ebp - 0x18], eax
push edi
mov edi, dword [ebp + 8]
mov dword [ebp - 0x14], eax
mov dword [ebp - 0x10], eax
push 0x1c
lea ecx, [ebp - 0x1c]
mov dword [ebp - 0xc], eax
push ecx
mov dword [ebp - 8], eax
push edi
mov dword [ebp - 4], eax
call dword [sym.imp.KERNEL32.dll_VirtualQuery]
test eax, eax
jne 0x409919
pop edi
mov esp, ebp
pop ebp
ret 0x14
push esi
mov esi, dword [ebp - 0x18]
test esi, esi
je 0x40999e
mov edx, dword [ebp + 0x10]
mov eax, dword [ebp + 0xc]
push edx
push eax
push esi
call dword [sym.imp.KERNEL32.dll_GetModuleFileNameA]
test eax, eax
je 0x40999e
mov eax, dword [esi + 0x3c]
movzx ecx, word [eax + esi + 0x14]
add eax, esi
lea ecx, [ecx + eax + 0x18]
movzx eax, word [eax + 6]
push ebx
sub edi, esi
xor ebx, ebx
test eax, eax
mov dword [ebp + 8], eax
jbe 0x409978
lea eax, [ecx + 0x10]
mov ecx, dword [eax]
mov edx, dword [eax - 8]
cmp ecx, edx
mov esi, dword [eax - 4]
ja 0x409963
mov ecx, edx
cmp edi, esi
jb 0x40996d
add ecx, esi
cmp edi, ecx
jbe 0x409983
mov ecx, dword [ebp + 8]
inc ebx
add eax, 0x28
cmp ebx, ecx
jb 0x409955
pop ebx
pop esi
xor eax, eax
pop edi
mov esp, ebp
pop ebp
ret 0x14
mov edx, dword [ebp + 0x14]
mov eax, dword [ebp + 0x18]
inc ebx
mov dword [edx], ebx
sub edi, esi
pop ebx
mov dword [eax], edi
pop esi
mov eax, 1
pop edi
mov esp, ebp
pop ebp
ret 0x14
pop esi
xor eax, eax
pop edi
mov esp, ebp
pop ebp
ret 0x14
Function at 0x40a040
Capabilities:
Link many functions at runtime

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x668
mov eax, dword [0x4116b8]
push ebx
push esi
mov ebx, ecx
mov dword [ebp - 4], eax
mov eax, dword [ebx]
xor esi, esi
cmp eax, esi
push edi
mov dword [ebp - 0x264], esi
jne 0x40a1c6
mov eax, dword [ebx + 0x10]
cmp eax, esi
je 0x40a1af
push str.EnumProcesses
push eax
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
mov edx, eax
xor eax, eax
test edx, edx
mov ecx, 0x100
lea edi, [ebp - 0x668]
mov dword [ebp - 0x258], esi
rep stosd dword es:[edi], eax
je 0x40a1af
lea eax, [ebp - 0x258]
push eax
push 0x400
lea ecx, [ebp - 0x668]
push ecx
call edx
test eax, eax
mov dword [ebp - 0x264], eax
je 0x40a1af
mov eax, dword [ebp - 0x258]
shr eax, 2
test eax, eax
mov dword [ebp - 0x258], eax
mov dword [ebp - 0x260], esi
jbe 0x40a1af
mov edi, edi
mov edx, dword [ebp - 0x260]
xor eax, eax
mov ecx, 0x4a
lea edi, [ebp - 0x254]
rep stosd dword es:[edi], eax
mov eax, dword [ebp + edx*4 - 0x668]
push eax
push 0
push 0x410
mov dword [ebp - 0x254], 0x128
mov dword [ebp - 0x24c], eax
call dword [sym.imp.KERNEL32.dll_OpenProcess]
mov esi, eax
test esi, esi
je 0x40a186
mov eax, dword [ebx + 0x10]
mov edi, dword [sym.imp.KERNEL32.dll_GetProcAddress]
push str.EnumProcessModules
push eax
call edi
xor ecx, ecx
cmp eax, ecx
mov dword [ebp - 0x268], ecx
mov dword [ebp - 0x25c], ecx
je 0x40a17f
lea ecx, [ebp - 0x25c]
push ecx
push 4
lea edx, [ebp - 0x268]
push edx
push esi
call eax
test eax, eax
je 0x40a17f
mov eax, dword [ebx + 0x10]
push str.GetModuleBaseNameA
push eax
call edi
test eax, eax
je 0x40a17f
mov edx, dword [ebp - 0x268]
push 0x103
lea ecx, [ebp - 0x230]
push ecx
push edx
push esi
call eax
push esi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
lea eax, [ebp - 0x254]
push eax
push ebx
call dword [ebp + 8]
mov eax, dword [ebp - 0x260]
mov ecx, dword [ebp - 0x258]
add esp, 8
inc eax
cmp eax, ecx
mov dword [ebp - 0x260], eax
jb 0x40a0e0
mov eax, dword [ebp - 0x264]
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 4]
call fcn.0040cc02
mov esp, ebp
pop ebp
ret 4
mov eax, dword [ebx + 8]
cmp eax, esi
je 0x40a281
mov edi, dword [sym.imp.KERNEL32.dll_GetProcAddress]
push str.Process32First
push eax
call edi
mov ecx, dword [ebx + 8]
push str.Process32Next
push ecx
mov esi, eax
call edi
test esi, esi
mov dword [ebp - 0x25c], eax
je 0x40a281
test eax, eax
je 0x40a281
xor eax, eax
mov ecx, 0x4a
lea edi, [ebp - 0x12c]
rep stosd dword es:[edi], eax
mov eax, dword [ebx]
lea edx, [ebp - 0x12c]
push edx
push eax
mov dword [ebp - 0x12c], 0x128
call esi
mov esi, dword [ebp + 8]
mov edi, eax
test edi, edi
je 0x40a26e
lea ecx, [ebp - 0x12c]
push ecx
push ebx
call esi
add esp, 8
test edi, edi
je 0x40a26e
mov eax, dword [ebx]
lea edx, [ebp - 0x12c]
push edx
push eax
mov dword [ebp - 0x12c], 0x128
call dword [ebp - 0x25c]
test eax, eax
je 0x40a26e
lea ecx, [ebp - 0x12c]
push ecx
push ebx
call esi
add esp, 8
jmp 0x40a241
mov eax, edi
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 4]
call fcn.0040cc02
mov esp, ebp
pop ebp
ret 4
mov ecx, dword [ebp - 4]
pop edi
pop esi
xor eax, eax
pop ebx
call fcn.0040cc02
mov esp, ebp
pop ebp
ret 4
Function at 0x40ac50
Capabilities:
Get file version info

Disassembly:
push ebp
mov ebp, esp
sub esp, 0xcb4
mov eax, dword [0x4116b8]
push ebx
push esi
push edi
mov dword [ebp - 4], eax
mov esi, ecx
call fcn.0040a550
push str._Process_Info__r_n
push esi
call fcn.004093f0
add esp, 8
call dword [sym.imp.KERNEL32.dll_GetCurrentProcessId]
push eax
push str.ProcessId:__lu_r_n
push esi
call fcn.004093f0
xor eax, eax
xor ebx, ebx
mov byte [ebp - 0x484], bl
mov ecx, 0xff
lea edi, [ebp - 0x483]
rep stosd dword es:[edi], eax
stosw word es:[edi], ax
add esp, 0xc
stosb byte es:[edi], al
push 0x400
lea eax, [ebp - 0x484]
push eax
push ebx
call dword [sym.imp.KERNEL32.dll_GetModuleFileNameA]
lea ecx, [ebp - 0x484]
push ecx
push str.Name:__s_r_n
push esi
call fcn.004093f0
xor eax, eax
mov byte [ebp - 0xc84], bl
mov ecx, 0x1ff
lea edi, [ebp - 0xc83]
rep stosd dword es:[edi], eax
stosw word es:[edi], ax
stosb byte es:[edi], al
xor eax, eax
mov byte [ebp - 0x84], bl
mov ecx, 0x1f
lea edi, [ebp - 0x83]
rep stosd dword es:[edi], eax
add esp, 0xc
stosw word es:[edi], ax
lea edx, [ebp - 0xc84]
push edx
push 0x800
stosb byte es:[edi], al
push ebx
lea eax, [ebp - 0x484]
push eax
mov dword [ebp - 0xc88], ebx
call sub.VERSION.dll_GetFileVersionInfoA
test eax, eax
je 0x40ad7b
lea ecx, [ebp - 0xc8c]
push ecx
lea edx, [ebp - 0xc88]
push edx
push 0x40e7e4
lea eax, [ebp - 0xc84]
push eax
mov dword [ebp - 0xc8c], ebx
call sub.VERSION.dll_VerQueryValueA
test eax, eax
je 0x40ad7b
mov eax, dword [ebp - 0xc88]
movzx ecx, word [eax + 0xc]
movzx edx, word [eax + 0xe]
push ecx
movzx ecx, word [eax + 8]
push edx
movzx edx, word [eax + 0xa]
push ecx
push edx
lea eax, [ebp - 0x84]
push str._lu._lu._lu._lu
push eax
call dword [sym.imp.MSVCR71.dll_sprintf]
add esp, 0x18
lea ecx, [ebp - 0x84]
push ecx
push str.Version:__s_r_n
push esi
call fcn.004093f0
mov eax, dword [esi + 0x10]
add esp, 0xc
cmp eax, ebx
je 0x40ae28
push str.GetProcessMemoryInfo
push eax
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
mov edi, eax
cmp edi, ebx
je 0x40ae28
xor edx, edx
mov dword [ebp - 0xcb4], edx
mov dword [ebp - 0xcb0], edx
mov dword [ebp - 0xcac], edx
mov dword [ebp - 0xca8], edx
mov dword [ebp - 0xca4], edx
mov dword [ebp - 0xca0], edx
mov dword [ebp - 0xc9c], edx
mov dword [ebp - 0xc98], edx
push 0x28
lea eax, [ebp - 0xcb4]
mov dword [ebp - 0xc94], edx
push eax
mov dword [ebp - 0xc90], edx
call dword [sym.imp.KERNEL32.dll_GetCurrentProcess]
push eax
call edi
test eax, eax
je 0x40ae28
mov ecx, dword [ebp - 0xca8]
push ecx
push str.WorkingSetSize:__lu_Bytes_r_n
push esi
call fcn.004093f0
mov edx, dword [ebp - 0xc94]
push edx
push str.PagefileUsage:__lu_Bytes_r_n
push esi
call fcn.004093f0
add esp, 0x18
push 0x40f838
push esi
call fcn.004093f0
mov ecx, dword [ebp - 4]
add esp, 8
pop edi
pop esi
mov eax, 1
pop ebx
call fcn.0040cc02
mov esp, ebp
pop ebp
ret
Function at 0x40af60
Capabilities:
Set registry value

Disassembly:
push ebp
mov ebp, esp
push ecx
push ebx
push esi
mov esi, ecx
mov eax, dword [esi]
test eax, eax
push edi
je 0x40af76
push eax
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov edi, dword [ebp + 0xc]
mov ebx, dword [ebp + 8]
lea eax, [ebp - 4]
push eax
push esi
push 0
push 0x2001f
push 0
push 0
push 0
push edi
push ebx
call dword [sym.imp.ADVAPI32.dll_RegCreateKeyExA]
test eax, eax
je 0x40afcc
push esi
push 0x2001f
push 0
push edi
push ebx
mov dword [esi], 0
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
test eax, eax
je 0x40afcc
xor edx, edx
test eax, eax
sete dl
pop edi
mov dword [esi], 0
pop esi
pop ebx
mov eax, edx
mov esp, ebp
pop ebp
ret 0x10
cmp dword [ebp - 4], 1
jne 0x40affb
mov edx, dword [ebp + 0x10]
test edx, edx
je 0x40affb
mov eax, edx
lea edi, [eax + 1]
mov edi, edi
mov cl, byte [eax]
inc eax
test cl, cl
jne 0x40afe0
mov ecx, dword [esi]
sub eax, edi
inc eax
push eax
push edx
push 1
push 0
push 0
push ecx
call dword [sym.imp.ADVAPI32.dll_RegSetValueExA]
xor edx, edx
test eax, eax
sete dl
pop edi
pop esi
pop ebx
mov eax, edx
mov esp, ebp
pop ebp
ret 0x10

Function at 0x40b0b0
Capabilities:
Delete registry key
Query or enumerate registry key

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x414
mov eax, dword [0x4116b8]
push ebx
push esi
mov esi, dword [ebp + 8]
push edi
mov edi, dword [ebp + 0xc]
push edi
push esi
mov dword [ebp - 4], eax
mov dword [ebp - 0x414], ecx
xor ebx, ebx
call dword [sym.imp.ADVAPI32.dll_RegDeleteKeyA]
test eax, eax
je 0x40b1d1
lea eax, [ebp - 0x408]
push eax
push 0x2001f
push ebx
push edi
push esi
mov dword [ebp - 0x408], ebx
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
test eax, eax
jne 0x40b1be
mov edx, dword [ebp - 0x408]
xor esi, esi
push esi
push esi
push esi
push esi
push esi
push esi
push esi
lea ecx, [ebp - 0x410]
push ecx
push esi
push esi
push esi
push edx
mov dword [ebp - 0x410], esi
call dword [sym.imp.ADVAPI32.dll_RegQueryInfoKeyA]
test eax, eax
jne 0x40b1be
mov dword [ebp - 0x40c], esi
mov esi, dword [ebp - 0x410]
dec esi
js 0x40b1a6
mov edi, dword [sym.imp.ADVAPI32.dll_RegEnumKeyExA]
jmp 0x40b150
mov edx, dword [ebp - 0x408]
push 0
push 0
push 0
push 0
lea eax, [ebp - 0x40c]
push eax
lea ecx, [ebp - 0x404]
push ecx
push esi
push edx
mov dword [ebp - 0x40c], 0x400
call edi
cmp eax, 0x103
je 0x40b1a3
test eax, eax
jne 0x40b1a0
mov ecx, dword [ebp - 0x408]
lea eax, [ebp - 0x404]
push eax
push ecx
mov ecx, dword [ebp - 0x414]
call fcn.0040b0b0
mov ebx, eax
dec esi
jns 0x40b150
mov edi, dword [ebp + 0xc]
mov edx, dword [ebp - 0x408]
push edx
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov eax, dword [ebp + 8]
push edi
push eax
call dword [sym.imp.ADVAPI32.dll_RegDeleteKeyA]
pop edi
pop esi
mov eax, ebx
pop ebx
mov ecx, dword [ebp - 4]
call fcn.0040cc02
mov esp, ebp
pop ebp
ret 8
mov ecx, dword [ebp - 4]
pop edi
pop esi
mov eax, 1
pop ebx
call fcn.0040cc02
mov esp, ebp
pop ebp
ret 8
Function at 0x40b1f0
Capabilities:
Query or enumerate registry key
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x10
push esi
mov esi, ecx
cmp dword [esi], 0
mov dword [ebp - 4], 0
jne 0x40b20e
xor eax, eax
pop esi
mov esp, ebp
pop ebp
ret 0x10
push ebx
mov ebx, dword [ebp + 0x14]
push edi
lea edi, [ebx + 1]
push edi
call dword [sym.imp.MSVCR71.dll_malloc]
mov dword [ebp - 8], edi
xor edi, edi
add esp, 4
cmp eax, edi
mov dword [ebp - 0xc], eax
je 0x40b30c
lea ecx, [ebp - 8]
push ecx
mov ecx, dword [esi]
push eax
mov eax, dword [ebp + 8]
lea edx, [ebp - 0x10]
push edx
push edi
push eax
push ecx
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
mov esi, dword [esi]
cmp esi, edi
mov dword [ebp + 8], eax
mov dword [ebp + 0x14], edi
je 0x40b268
push edi
push edi
push edi
push edi
lea edx, [ebp + 0x14]
push edx
push edi
push edi
push edi
push edi
push edi
push edi
push esi
call dword [sym.imp.ADVAPI32.dll_RegQueryInfoKeyA]
cmp dword [ebp - 0x10], 1
jne 0x40b2ea
cmp dword [ebp + 0x14], edi
jbe 0x40b2ea
mov esi, dword [ebp + 0x10]
mov ecx, ebx
mov edx, ecx
shr ecx, 2
xor eax, eax
mov edi, esi
rep stosd dword es:[edi], eax
mov ecx, edx
and ecx, 3
rep stosb byte es:[edi], al
mov eax, dword [ebp + 8]
test eax, eax
jne 0x40b2a1
mov eax, dword [ebp - 8]
cmp ebx, eax
jb 0x40b29a
mov ebx, eax
mov eax, dword [ebp - 0xc]
push ebx
push eax
jmp 0x40b2d1
mov edi, dword [ebp + 0xc]
mov eax, edi
lea edx, [eax + 1]
lea esp, [esp]
mov cl, byte [eax]
inc eax
test cl, cl
jne 0x40b2b0
sub eax, edx
cmp ebx, eax
jae 0x40b2c1
mov eax, ebx
jmp 0x40b2cf
mov eax, edi
lea edx, [eax + 1]
mov cl, byte [eax]
inc eax
test cl, cl
jne 0x40b2c6
sub eax, edx
push eax
push edi
push esi
call dword [sym.imp.MSVCR71.dll_strncpy]
mov eax, dword [ebp + 8]
xor ecx, ecx
add esp, 0xc
test eax, eax
sete cl
mov dword [ebp - 4], ecx
jmp 0x40b2ff
mov edx, dword [ebp + 0xc]
mov eax, dword [ebp + 0x10]
push ebx
push edx
push eax
call dword [sym.imp.MSVCR71.dll_strncpy]
add esp, 0xc
mov dword [ebp - 4], edi
mov ecx, dword [ebp - 0xc]
push ecx
call dword [sym.imp.MSVCR71.dll_free]
add esp, 4
mov eax, dword [ebp - 4]
pop edi
pop ebx
pop esi
mov esp, ebp
pop ebp
ret 0x10
Function at 0x40c9d2
Capabilities:
Parse pe header
Terminate process

Disassembly:
push 0x74
push 0x40fca8
call fcn.0040cef4
xor ebx, ebx
mov dword [ebp - 0x20], ebx
push ebx
mov edi, dword [sym.imp.KERNEL32.dll_GetModuleHandleA]
call edi
cmp word [eax], 0x5a4d
jne 0x40ca12
mov ecx, dword [eax + 0x3c]
add ecx, eax
cmp dword [ecx], 0x4550
jne 0x40ca12
movzx eax, word [ecx + 0x18]
cmp eax, 0x10b
je 0x40ca2a
cmp eax, 0x20b
je 0x40ca17
mov dword [ebp - 0x1c], ebx
jmp 0x40ca3e
cmp dword [ecx + 0x84], 0xe
jbe 0x40ca12
xor eax, eax
cmp dword [ecx + 0xf8], ebx
jmp 0x40ca38
cmp dword [ecx + 0x74], 0xe
jbe 0x40ca12
xor eax, eax
cmp dword [ecx + 0xe8], ebx
setne al
mov dword [ebp - 0x1c], eax
mov dword [ebp - 4], ebx
push 2
call dword [sym.imp.MSVCR71.dll___set_app_type]
pop ecx
or dword [0x45f46c], 0xffffffff
or dword [0x45f470], 0xffffffff
call dword [sym.imp.MSVCR71.dll___p__fmode]
mov ecx, dword [0x45f464]
mov dword [eax], ecx
call dword [sym.imp.MSVCR71.dll___p__commode]
mov ecx, dword [0x45f460]
mov dword [eax], ecx
mov eax, dword [sym.imp.MSVCR71.dll__adjust_fdiv]
mov eax, dword [eax]
mov dword [0x45f468], eax
call fcn.0040ce4e
call fcn.0040ceee
cmp dword [0x4116d8], ebx
jne 0x40ca9e
push fcn.0040ceee
call dword [sym.imp.MSVCR71.dll___setusermatherr]
pop ecx
call fcn.0040cedc
push 0x411028
push 0x411024
call sub.MSVCR71.dll__initterm
push 0x40ce92
call fcn.0040c9c0
mov eax, dword [0x45f45c]
mov dword [ebp - 0x28], eax
lea eax, [ebp - 0x28]
push eax
push dword [0x45f458]
lea eax, [ebp - 0x30]
push eax
lea eax, [ebp - 0x34]
push eax
lea eax, [ebp - 0x38]
push eax
call dword [sym.imp.MSVCR71.dll___getmainargs]
add esp, 0x20
mov dword [ebp - 0x3c], eax
cmp eax, ebx
jge 0x40caf2
push 8
call sub.MSVCR71.dll__amsg_exit
pop ecx
push 0x411020
push section..data
call sub.MSVCR71.dll__initterm
pop ecx
pop ecx
mov eax, dword [sym.imp.MSVCR71.dll__acmdln]
mov esi, dword [eax]
mov dword [ebp - 0x24], esi
mov al, byte [esi]
cmp al, 0x20
ja 0x40cb70
cmp al, bl
je 0x40cb1c
cmp dword [ebp - 0x20], ebx
jne 0x40cb70
mov al, byte [esi]
cmp al, bl
je 0x40cb2c
cmp al, 0x20
ja 0x40cb2c
inc esi
mov dword [ebp - 0x24], esi
jmp 0x40cb1c
mov dword [ebp - 0x58], ebx
lea eax, [ebp - 0x84]
push eax
call dword [sym.imp.KERNEL32.dll_GetStartupInfoA]
test byte [ebp - 0x58], 1
je 0x40cb48
movzx eax, word [ebp - 0x54]
jmp 0x40cb4b
push 0xa
pop eax
push eax
push esi
push ebx
push ebx
call edi
push eax
call fcn.00401d10
mov esi, eax
mov dword [ebp - 0x40], esi
cmp dword [ebp - 0x1c], ebx
jne 0x40cb68
push esi
call dword [sym.imp.MSVCR71.dll_exit]
call dword [sym.imp.MSVCR71.dll__cexit]
jmp 0x40cbc5
cmp al, 0x22
jne 0x40cb7f
xor ecx, ecx
cmp dword [ebp - 0x20], ebx
sete cl
mov dword [ebp - 0x20], ecx
movzx eax, al
push eax
call dword [sym.imp.MSVCR71.dll__ismbblead]
pop ecx
test eax, eax
je 0x40cb92
inc esi
mov dword [ebp - 0x24], esi
inc esi
jmp 0x40cb0a
or dword [ebp - 4], 0xffffffff
mov eax, esi
call fcn.0040cf2f
ret
Function at 0x40d85f
Capabilities:
Hash data using sha1

Disassembly:
mov eax, dword [esp + 4]
and dword [eax + 0x18], 0
and dword [eax + 0x14], 0
mov dword [eax], 0x67452301
mov dword [eax + 4], 0xefcdab89
mov dword [eax + 8], 0x98badcfe
mov dword [eax + 0xc], 0x10325476
mov dword [eax + 0x10], 0xc3d2e1f0
ret 4

Function at 0x433000
Capabilities:
Encode data using xor
Packed with generic packer

Disassembly:
pushal
nop
nop
nop
nop
nop
mov eax, section..text
nop
nop
mov ebx, 0x40de38
nop
mov ecx, 0x3d7a2aa6
test eax, eax
nop
nop
nop
nop
nop
nop
nop
je 0x43304e
nop
nop
nop
xor dword [eax], ecx
nop
nop
inc eax
nop
nop
nop
nop
nop
nop
inc eax
nop
nop
nop
nop
nop
nop
inc eax
nop
nop
nop
nop
nop
nop
nop
inc eax
nop
nop
nop
nop
nop
cmp eax, ebx
jne 0x433024
nop
nop
nop
nop
mov eax, section..data
nop
mov ebx, 0x4304d8
nop
nop
mov ecx, 0x247c07d3
test eax, eax
nop
nop
nop
nop
nop
nop
nop
je 0x433084
nop
nop
nop
nop
xor dword [eax], ecx
nop
nop
nop
nop
add eax, 4
nop
nop
nop
cmp eax, ebx
nop
nop
jne 0x43306c
nop
nop
nop
nop
nop
nop
popal
nop
nop
jmp 0x431219

Function at 0x40100b
Capabilities:
Query or enumerate registry value

Disassembly:
call 0x40100b
push eax
call sub.KERNEL32.dll_ExitProcess
push ebp
mov ebp, esp
add esp, 0xfffffef0
jmp 0x40109c
lea eax, [ebp - 0x104]
push eax
call fcn.004011ec
push 0x401019
lea eax, [ebp - 0x104]
push eax
call sub.KERNEL32.dll_lstrcatA
push eax
call sub.KERNEL32.dll_LoadLibraryA
test eax, eax
jne 0x401165
lea eax, [ebp - 0x10c]
push eax
push 0x20019
push 0
push 0x401038
push 0x80000001
call sub.ADVAPI32.dll_RegOpenKeyExA
cmp eax, 0
jne 0x4011a5
mov dword [ebp - 0x110], 0x103
lea eax, [ebp - 0x110]
push eax
lea eax, [ebp - 0x104]
push eax
push 0
push 0
push 0x401052
push dword [ebp - 0x10c]
call sub.ADVAPI32.dll_RegQueryValueExA
push eax
push dword [ebp - 0x10c]
call sub.ADVAPI32.dll_RegCloseKey
pop eax
cmp eax, 0
jne 0x4011a5
lea eax, [ebp - 0x104]
push eax
call sub.KERNEL32.dll_lstrlenA
lea ebx, [ebp - 0x104]
add ebx, eax
dec ebx
cmp byte [ebx], 0x5c
je 0x40114a
mov word [ebx], 0x5c
push 0x401023
lea eax, [ebp - 0x104]
push eax
call sub.KERNEL32.dll_lstrcatA
push eax
call sub.KERNEL32.dll_LoadLibraryA
test eax, eax
je 0x4011a5
mov dword [ebp - 0x108], eax
push 0x40102d
push eax
call sub.KERNEL32.dll_GetProcAddress
test eax, eax
je 0x40119a
push 0x3e8
call eax
test eax, eax
je 0x40119a
call 0x40118a
add dword [esp], 0x1e76
call eax
push 0
call sub.KERNEL32.dll_ExitProcess
push dword [ebp - 0x108]
call sub.KERNEL32.dll_FreeLibrary
push 0x10
push 0x401096
push 0x401057
push 0
call sub.USER32.dll_MessageBoxA
mov eax, 0xffffffff
leave
ret
Function at 0x401c60
Capabilities:
Allocate or change rwx memory

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x48
test ecx, ecx
mov dword [ebp - 0xc], ebx
mov ebx, eax
mov dword [ebp - 8], esi
mov esi, edx
mov dword [ebp - 4], edi
mov edi, ecx
jne 0x401c86
mov ebx, dword [ebp - 0xc]
mov esi, dword [ebp - 8]
mov edi, dword [ebp - 4]
mov esp, ebp
pop ebp
ret
lea eax, [ebp - 0x38]
mov dword [esp + 8], 0x1c
mov dword [esp + 4], eax
mov dword [esp], ebx
call sym._VirtualQuery_12
sub esp, 0xc
test eax, eax
je 0x401d1a
mov eax, dword [ebp - 0x24]
cmp eax, 4
je 0x401cd5
cmp eax, 0x40
je 0x401cd5
lea eax, [ebp - 0x1c]
mov dword [esp + 0xc], eax
mov eax, dword [ebp - 0x2c]
mov dword [esp + 8], 0x40
mov dword [esp + 4], eax
mov eax, dword [ebp - 0x38]
mov dword [esp], eax
call sym._VirtualProtect_16
sub esp, 0x10
mov dword [esp + 8], edi
mov dword [esp + 4], esi
mov dword [esp], ebx
call sym._memcpy
mov eax, dword [ebp - 0x24]
cmp eax, 4
je 0x401c79
cmp eax, 0x40
je 0x401c79
lea eax, [ebp - 0x1c]
mov dword [esp + 0xc], eax
mov eax, dword [ebp - 0x1c]
mov dword [esp + 8], eax
mov eax, dword [ebp - 0x2c]
mov dword [esp + 4], eax
mov eax, dword [ebp - 0x38]
mov dword [esp], eax
call sym._VirtualProtect_16
sub esp, 0x10
jmp 0x401c79
mov dword [esp + 8], 0x34
mov dword [esp + 4], str..._.._runtime_pseudo_reloc.c
mov dword [esp], str.VirtualQuery__addr__b__sizeof_b__
call sym.__assert
lea esi, [esi]
lea edi, [edi]
Function at 0x402f80
Capabilities:
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffff4
movzx eax, word [0x46c020]
mov dword [ebp - 8], eax
lea eax, [ebp - 4]
push eax
push 1
push 0
push 0x403018
push 0x80000002
call sub.advapi32.dll_RegOpenKeyExA
test eax, eax
jne 0x402ff8
xor eax, eax
push ebp
push 0x402ff1
push dword fs:[eax]
mov dword fs:[eax], esp
mov dword [ebp - 0xc], 4
lea eax, [ebp - 0xc]
push eax
lea eax, [ebp - 8]
push eax
push 0
push 0
push 0x403034
mov eax, dword [ebp - 4]
push eax
call sub.advapi32.dll_RegQueryValueExA
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x402ff8
mov eax, dword [ebp - 4]
push eax
call sub.advapi32.dll_RegCloseKey
ret
mov ax, word [0x46c020]
and ax, 0xffc0
mov dx, word [ebp - 8]
and dx, 0x3f
or ax, dx
mov word [0x46c020], ax
mov esp, ebp
pop ebp
ret

Function at 0x403cdc
Capabilities:
Write file on windows

Disassembly:
push ecx
cmp byte [0x46e048], 0
je 0x403d3d
cmp word [0x46e21c], 0xd7b2
jne 0x403d05
cmp dword [0x46e224], 0
jbe 0x403d05
mov eax, 0x46e218
call dword [0x46e234]
push 0
lea eax, [esp + 4]
push eax
push 0x1e
push 0x46c06c
push 0xfffffffffffffff5
call sub.kernel32.dll_GetStdHandle
push eax
call sub.kernel32.dll_WriteFile
push 0
lea eax, [esp + 4]
push eax
push 2
push 0x403d64
push 0xfffffffffffffff5
call sub.kernel32.dll_GetStdHandle
push eax
call sub.kernel32.dll_WriteFile
pop edx
ret
cmp byte [0x46c030], 0
jne 0x403d59
push 0
push 0x46c064
push 0x46c06c
push 0
call sub.user32.dll_MessageBoxA
pop edx
ret