joyce8/EMBER2024-capa huggingface dataset:
Function at 0x403000
Capabilities:
Packed with generic packer

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x380
push ebx
push esi
push edi
call fcn.004012a0
xor esi, esi
mov dword [ebp - 0xc], 0x32
mov dword [ebp - 4], esi
mov dword [ebp - 8], esi
mov dword [ebp - 0x10], esi
nop
nop
nop
call fcn.004012a0
mov ecx, 0xc
xor eax, eax
lea edi, [ebp - 0x4c]
rep stosd dword es:[edi], eax
stosw word es:[edi], ax
call fcn.004012a0
mov ecx, 0x41
xor eax, eax
lea edi, [ebp - 0x380]
rep stosd dword es:[edi], eax
call fcn.004012a0
mov ecx, 0x41
xor eax, eax
lea edi, [ebp - 0x27c]
push 0x104
rep stosd dword es:[edi], eax
lea eax, [ebp - 0x380]
push eax
push 0x4011c8
call dword [fcn.00402188]
lea ecx, [ebp - 0x27c]
push 0x104
push ecx
push 0x4011b0
call dword [fcn.00402188]
call fcn.004012a0
lea edx, [ebp - 0xc]
lea eax, [ebp - 0x4c]
push edx
push eax
call dword [0x402158]
lea ecx, [ebp - 0x4c]
push 0x10000000
lea edx, [ebp - 0x27c]
push ecx
push edx
call fcn.00401a90
add esp, 0xc
push ebp
pop ebp
nop
nop
inc ecx
dec ecx
nop
nop
nop
nop
inc ecx
dec ecx
nop
inc ecx
dec ecx
lea eax, [ebp - 0x4c]
push 0x10000000
lea ecx, [ebp - 0x380]
push eax
push ecx
call fcn.00401a90
add esp, 0xc
call fcn.004012a0
lea edx, [ebp - 0x178]
push 0x64
push edx
lea eax, [ebp - 0x4c]
push 0xffffffffffffffff
push eax
push esi
push esi
call dword [0x402184]
call fcn.004012a0
push 0x401198
push 0x4010c8
call dword [fcn.00402198]
push eax
call dword [0x402194]
push 0x401184
push 0x4010c8
mov dword [ebp - 0x18], eax
call dword [fcn.00402198]
push eax
call dword [0x402194]
mov dword [ebp - 0x14], eax
nop
push ebp
nop
nop
pop ebp
nop
inc ecx
dec ecx
pushal
nop
nop
add eax, 1
add eax, 0xffffffff
nop
popal
lea ecx, [ebp - 0x10]
lea edx, [ebp - 8]
push ecx
push edx
lea eax, [ebp - 4]
push 0xffffffffffffffff
push eax
push 1
lea ecx, [ebp - 0x178]
push 0
push ecx
push 0
call dword [ebp - 0x18]
mov esi, eax
call fcn.004012a0
test esi, esi
jne 0x4031fd
call fcn.004012a0
call fcn.004012a0
mov esi, dword [ebp - 4]
test esi, esi
je 0x4031fd
call fcn.004012a0
mov eax, dword [ebp - 8]
xor edi, edi
test eax, eax
jbe 0x4031fd
test esi, esi
je 0x4031fd
mov eax, dword [esi]
push 0
push 0
lea edx, [ebp - 0xb0]
push 0x64
push edx
push 0xffffffffffffffff
push eax
push 0
push 1
call dword [0x402180]
call fcn.004012a0
lea ecx, [ebp - 0xb0]
push 0x10000000
lea edx, [ebp - 0x27c]
push ecx
push edx
call fcn.00401a90
call fcn.004012a0
lea eax, [ebp - 0xb0]
push 0x10000000
lea ecx, [ebp - 0x380]
push eax
push ecx
call fcn.00401a90
mov eax, dword [ebp - 8]
add esp, 0x18
add esi, 4
inc edi
cmp edi, eax
jb 0x403195
nop
nop
call fcn.004012a0
mov eax, dword [ebp - 4]
test eax, eax
je 0x40320f
push eax
call dword [ebp - 0x14]
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x401000
Capabilities:
Access peb ldr_data

Disassembly:
push 0xffffffffffffffff
push 0x405f73
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
push ecx
push esi
mov esi, ecx
push edi
mov dword [esp + 8], esi
call fcn.004041b0
xor edi, edi
lea ecx, [esi + 0x10]
mov dword [esp + 0x14], edi
call sub.MFC42.DLL_CStringArray::CStringArray
lea ecx, [esi + 0x24]
mov byte [esp + 0x14], 1
call fcn.00405c20
mov ecx, dword [esp + 0xc]
mov dword [esi + 0x28], edi
mov dword [esi + 0x30], edi
mov dword [esi + 0x2c], edi
mov dword [esi + 0x34], edi
mov dword [esi], 0x407408
mov eax, esi
pop edi
pop esi
mov dword fs:[0], ecx
add esp, 0x10
ret

Function at 0x401ba0
Capabilities:
Capture screenshot

Disassembly:
sub esp, 0x10
lea eax, [esp]
push esi
mov esi, dword [esp + 0x18]
push eax
mov ecx, dword [esi]
push ecx
call dword [sym.imp.USER32.dll_GetWindowRect]
mov edx, dword [esi]
push edx
call dword [sym.imp.USER32.dll_GetWindowDC]
push eax
mov dword [esi + 4], eax
call dword [sym.imp.GDI32.dll_CreateCompatibleDC]
push 1
push eax
mov dword [esi + 8], eax
call dword [sym.imp.GDI32.dll_SetBkMode]
mov eax, dword [esi + 0x10]
test eax, eax
je 0x401be9
push eax
mov eax, dword [esi + 8]
push eax
call dword [sym.imp.GDI32.dll_SelectObject]
jmp 0x401c15
mov ecx, dword [esp + 0x10]
mov eax, dword [esp + 8]
mov edx, dword [esp + 0xc]
sub ecx, eax
mov eax, dword [esi + 4]
push ecx
sub edx, dword [esp + 8]
push edx
push eax
call dword [sym.imp.GDI32.dll_CreateCompatibleBitmap]
mov ecx, dword [esi + 8]
push eax
push ecx
call dword [sym.imp.GDI32.dll_SelectObject]
mov dword [esi + 0x10], eax
cmp dword [esi + 0xc], 1
jne 0x401c4c
mov edx, dword [esi + 4]
mov eax, dword [esp + 0x10]
mov ecx, dword [esp + 0xc]
push 0xcc0020
push 0
push 0
push edx
mov edx, dword [esp + 0x18]
sub eax, edx
mov edx, dword [esp + 0x14]
sub ecx, edx
mov edx, dword [esi + 8]
push eax
push ecx
push 0
push 0
push edx
call dword [sym.imp.GDI32.dll_BitBlt]
mov eax, dword [esi + 8]
pop esi
add esp, 0x10
ret 4
Function at 0x403670
Capabilities:
Create process on windows
Create process suspended
Get common file path
Get program files directory

Disassembly:
sub esp, 0x558
push ebx
push esi
push edi
mov ecx, 0x41
xor eax, eax
lea edi, [esp + 0x60]
rep stosd dword es:[edi], eax
push 1
lea eax, [esp + 0x64]
push 0x26
push eax
push 0
call dword [sym.imp.SHELL32.dll_SHGetSpecialFolderPathA]
mov edi, str.Internet_ExplorerIEXPLORE.EXE
or ecx, 0xffffffff
xor eax, eax
lea edx, [esp + 0x60]
repne scasb al, byte es:[edi]
not ecx
sub edi, ecx
mov esi, edi
mov ebx, ecx
mov edi, edx
or ecx, 0xffffffff
repne scasb al, byte es:[edi]
mov ecx, ebx
dec edi
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, ebx
mov dl, byte [0x409808]
and ecx, 3
mov byte [esp + 0x164], dl
rep movsb byte es:[edi], byte [esi]
mov ecx, 0x11
lea edi, [esp + 0x1c]
rep stosd dword es:[edi], eax
mov ax, word [esp + 0x56c]
xor ecx, ecx
mov dword [esp + 0xc], ecx
mov word [esp + 0x4c], ax
mov dword [esp + 0x10], ecx
xor eax, eax
mov dword [esp + 0x14], ecx
lea edi, [esp + 0x165]
mov dword [esp + 0x18], ecx
mov ecx, 0xff
rep stosd dword es:[edi], eax
stosw word es:[edi], ax
stosb byte es:[edi], al
mov eax, dword [esp + 0x568]
lea ecx, [esp + 0x60]
push eax
push ecx
lea edx, [esp + 0x16c]
push str._s____s
push edx
mov dword [esp + 0x2c], 0x44
mov dword [esp + 0x58], 1
call dword [sym.imp.MSVCRT.dll_sprintf]
add esp, 0x10
lea eax, [esp + 0xc]
lea ecx, [esp + 0x1c]
lea edx, [esp + 0x164]
push eax
push ecx
push 0
push 0
push 0
push 0
push 0
push 0
push edx
push 0
call dword [sym.imp.KERNEL32.dll_CreateProcessA]
mov eax, dword [esp + 0x10]
push eax
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov eax, dword [esp + 0xc]
pop edi
pop esi
pop ebx
add esp, 0x558
ret

Function at 0x403790
Capabilities:
Accept command line arguments

Disassembly:
push esi
push edi
call dword [sym.imp.KERNEL32.dll_GetCommandLineA]
test eax, eax
je 0x4037c2
mov edi, eax
or ecx, 0xffffffff
xor eax, eax
repne scasb al, byte es:[edi]
not ecx
sub edi, ecx
mov eax, ecx
mov esi, edi
mov edi, dword [esp + 0xc]
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, eax
and ecx, 3
xor eax, eax
rep movsb byte es:[edi], byte [esi]
pop edi
pop esi
ret
mov edi, 0x409808
or ecx, 0xffffffff
xor eax, eax
repne scasb al, byte es:[edi]
not ecx
sub edi, ecx
mov edx, ecx
mov esi, edi
mov edi, dword [esp + 0xc]
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, edx
and ecx, 3
rep movsb byte es:[edi], byte [esi]
pop edi
pop esi
ret
Function at 0x403820
Capabilities:
Accept command line arguments

Disassembly:
push ebp
mov ebp, esp
push ecx
push ebx
push esi
push edi
call fcn.004037f0
mov esi, dword [ebp + 8]
cmp esi, eax
jle 0x403840
or eax, 0xffffffff
lea esp, [ebp - 0x10]
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
lea eax, [ebp - 4]
mov dword [ebp - 4], 0
push eax
call dword [sym.imp.KERNEL32.dll_GetCommandLineW]
push eax
call dword [sym.imp.SHELL32.dll_CommandLineToArgvW]
test eax, eax
je 0x4038c5
mov edi, dword [eax + esi*4]
test edi, edi
jne 0x403867
xor esi, esi
jmp 0x403896
push edi
call dword [sym.imp.KERNEL32.dll_lstrlenW]
lea ebx, [eax + eax + 2]
mov eax, ebx
add eax, 3
and al, 0xfc
call fcn.004059e0
mov esi, esp
push 0
push 0
push ebx
push esi
push 0xffffffffffffffff
push edi
push 0
push 0
mov byte [esi], 0
call dword [sym.imp.KERNEL32.dll_WideCharToMultiByte]
mov edi, esi
or ecx, 0xffffffff
xor eax, eax
repne scasb al, byte es:[edi]
not ecx
sub edi, ecx
mov eax, 1
mov edx, ecx
mov esi, edi
mov edi, dword [ebp + 0xc]
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, edx
and ecx, 3
rep movsb byte es:[edi], byte [esi]
lea esp, [ebp - 0x10]
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
mov edi, 0x409808
or ecx, 0xffffffff
xor eax, eax
lea esp, [ebp - 0x10]
repne scasb al, byte es:[edi]
not ecx
sub edi, ecx
mov eax, ecx
mov esi, edi
mov edi, dword [ebp + 0xc]
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, eax
and ecx, 3
xor eax, eax
rep movsb byte es:[edi], byte [esi]
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x403b80
Capabilities:
Get common file path

Disassembly:
sub esp, 0x104
mov al, byte [0x409808]
push ebx
push esi
push edi
mov byte [esp + 0x10], al
mov ecx, 0x3f
xor eax, eax
lea edi, [esp + 0x11]
rep stosd dword es:[edi], eax
mov ebx, dword [esp + 0x114]
stosw word es:[edi], ax
test ebx, ebx
stosb byte es:[edi], al
je 0x403c52
push 0x4092b4
push ebx
call dword [sym.imp.MSVCRT.dll_strstr]
add esp, 8
test eax, eax
jne 0x403c2f
push ebp
lea ecx, [esp + 0x14]
push 0x100
push ecx
call dword [sym.imp.KERNEL32.dll_GetSystemDirectoryA]
mov edi, 0x4092b4
or ecx, 0xffffffff
xor eax, eax
lea edx, [esp + 0x14]
repne scasb al, byte es:[edi]
not ecx
sub edi, ecx
mov esi, edi
mov ebp, ecx
mov edi, edx
or ecx, 0xffffffff
repne scasb al, byte es:[edi]
mov ecx, ebp
dec edi
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, ebp
lea edx, [esp + 0x14]
and ecx, 3
rep movsb byte es:[edi], byte [esi]
mov edi, ebx
or ecx, 0xffffffff
repne scasb al, byte es:[edi]
not ecx
sub edi, ecx
mov esi, edi
mov ebp, ecx
mov edi, edx
or ecx, 0xffffffff
repne scasb al, byte es:[edi]
mov ecx, ebp
dec edi
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, ebp
pop ebp
and ecx, 3
rep movsb byte es:[edi], byte [esi]
jmp 0x403c52
mov edi, ebx
or ecx, 0xffffffff
xor eax, eax
lea edx, [esp + 0x10]
repne scasb al, byte es:[edi]
not ecx
sub edi, ecx
mov eax, ecx
mov esi, edi
mov edi, edx
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, eax
and ecx, 3
rep movsb byte es:[edi], byte [esi]
test ebx, ebx
mov dword [esp + 0xc], 0
jne 0x403c6e
mov edx, dword [esp + 0x118]
lea ecx, [esp + 0xc]
push ecx
push edx
push ebx
jmp 0x403c80
mov ecx, dword [esp + 0x118]
lea eax, [esp + 0xc]
push eax
lea edx, [esp + 0x14]
push ecx
push edx
call fcn.00403980
mov esi, eax
add esp, 0xc
test esi, esi
jl 0x403ca6
mov eax, dword [esp + 0xc]
mov ecx, dword [esp + 0x11c]
push esi
push eax
push ecx
call fcn.00403060
add esp, 0xc
mov esi, eax
mov edx, dword [esp + 0xc]
push edx
call dword [sym.imp.MSVCRT.dll_free]
add esp, 4
mov eax, esi
pop edi
pop esi
pop ebx
add esp, 0x104
ret
Function at 0x40890e
Capabilities:
Encode data using add xor sub operations
Encode data using xor

Disassembly:
sub esp, 4
mov dword [esp], 0x4085d8
pop esi
push 0x2db9859e
pop ebx
call fcn.00408938
mov edx, ebx
xor dword [ecx], esi
or edx, edx
add ecx, 1
cmp ecx, eax
jne fcn.0040890e
inc ebx
add ebx, edx
ret
Function at 0x405590
Capabilities:
Act as tcp client
Connect socket
Connect tcp socket
Connect udp socket
Create tcp socket
Create udp socket

Disassembly:
sub esp, 0x10
push esi
push 0
push 1
push 2
call dword [sym.imp.WS2_32.dll_socket]
mov esi, eax
cmp esi, 0xffffffff
jne 0x4055ae
or eax, eax
pop esi
add esp, 0x10
ret
mov ecx, dword [esp + 0x1c]
mov eax, dword [esp + 0x18]
push ecx
mov dword [esp + 0xc], eax
mov word [esp + 8], 2
call dword [sym.imp.WS2_32.dll_htons]
lea edx, [esp + 4]
push 0x10
push edx
push esi
mov word [esp + 0x12], ax
call dword [sym.imp.WS2_32.dll_connect]
cmp eax, 0xffffffff
jne 0x4055ef
push esi
call dword [sym.imp.WS2_32.dll_closesocket]
or eax, 0xffffffff
pop esi
add esp, 0x10
ret
mov eax, esi
pop esi
add esp, 0x10
ret

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

Disassembly:
pushal
nop
nop
nop
nop
nop
call 0x43300c
nop
nop
pop eax
nop
nop
nop
nop
add eax, 0x40a063
nop
sub eax, 0x40a009
nop
mov ebx, dword [eax]
nop
nop
nop
mov ecx, dword [eax + 4]
nop
nop
nop
nop
nop
mov edx, dword [eax + 8]
nop
xor dword [ebx], edx
nop
nop
nop
nop
nop
add ebx, 4
nop
nop
nop
nop
cmp ebx, ecx
nop
nop
nop
nop
jl 0x433030
nop
nop
nop
nop
nop
add eax, 0xc
nop
nop
nop
cmp dword [eax], 0
nop
jne 0x43301e
nop
nop
nop
popal
nop
nop
nop
nop
nop
jmp 0x431219
Function at 0x401f60
Capabilities:
Create process on windows

Disassembly:
push ebp
mov ebp, esp
cmp dword [ebp + 8], 0
jne 0x401f6d
xor eax, eax
pop ebp
ret
push dword [ebp + 0x2c]
push dword [ebp + 0x28]
push dword [ebp + 0x24]
push dword [ebp + 0x20]
push dword [ebp + 0x1c]
push dword [ebp + 0x18]
push dword [ebp + 0x14]
push dword [ebp + 0x10]
push dword [ebp + 0xc]
push dword [ebp + 8]
call dword [sym.imp.kernel32.dll_CreateProcessW]
pop ebp
ret

Function at 0x402274
Capabilities:
Query or enumerate registry value

Disassembly:
push ebp
lea ebp, [esp - 0xf8c]
mov eax, 0x100c
call fcn.00404280
mov eax, dword [0x409024]
xor eax, ebp
mov dword [ebp + 0xf88], eax
push esi
mov esi, dword [ebp + 0xf9c]
push edi
mov edi, dword [ebp + 0xf94]
xor eax, eax
push 0x7fe
push eax
mov word [ebp + 0x788], ax
lea eax, [ebp + 0x78a]
push eax
call sub.msvcr100.dll_memset
push edi
push str.SOFTWAREClassesCLSID_sInprocServer32
lea eax, [ebp + 0x788]
push 0x400
push eax
call dword [sym.imp.msvcr100.dll_swprintf_s]
add esp, 0x1c
lea eax, [ebp - 0x7c]
push eax
push 0x20019
neg esi
push 0
lea eax, [ebp + 0x788]
sbb esi, esi
push eax
add esi, reloc.OLEAUT32.dll_SysReAllocString
push esi
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
pop edi
pop esi
test eax, eax
je 0x40230a
xor ecx, ecx
cmp eax, 2
sete cl
jmp 0x402379
lea eax, [ebp - 0x80]
push eax
lea eax, [ebp - 0x78]
push eax
push 0x40767c
push dword [ebp - 0x7c]
mov dword [ebp - 0x80], 0x800
call dword [sym.imp.ADVAPI32.dll_RegQueryValueW]
push dword [ebp - 0x7c]
test eax, eax
je 0x402338
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
xor eax, eax
jmp 0x40237b
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov eax, dword [ebp + 0xf98]
lea ecx, [ebp - 0x78]
mov dx, word [eax]
cmp dx, word [ecx]
jne 0x40236d
test dx, dx
je 0x402369
mov dx, word [eax + 2]
cmp dx, word [ecx + 2]
jne 0x40236d
add eax, 4
add ecx, 4
test dx, dx
jne 0x402347
xor eax, eax
jmp 0x402372
sbb eax, eax
sbb eax, 0xffffffff
xor ecx, ecx
test eax, eax
setne cl
mov eax, ecx
mov ecx, dword [ebp + 0xf88]
xor ecx, ebp
call fcn.0040426a
add ebp, 0xf8c
leave
ret

Function at 0x40258f
Capabilities:
Query environment variable

Disassembly:
push esi
xor esi, esi
cmp dword [esp + 8], esi
je 0x4025b0
push dword [esp + 0xc]
push dword [esp + 0xc]
push 0x407794
call dword [sym.imp.kernel32.dll_GetEnvironmentVariableW]
test eax, eax
je 0x4025b0
inc esi
mov eax, esi
pop esi
ret
Function at 0x4034e9
Capabilities:
Get common file path

Disassembly:
push ebp
sub esp, 0x208
lea ebp, [esp - 4]
mov eax, dword [0x409024]
xor eax, ebp
mov dword [ebp + 0x208], eax
push 0x10
mov eax, 0x4053c5
call fcn.004042b8
push 0x40782c
lea eax, [ebp - 0x1c]
push eax
lea eax, [ebp - 0x18]
push eax
call dword [sym.imp.msvcr100.dll__wdupenv_s]
add esp, 0xc
test eax, eax
jne 0x4035c7
push dword [ebp - 0x18]
call dword [sym.imp.msvcr100.dll_free]
cmp dword [0x4090e4], 0
pop ecx
je 0x403546
xor eax, eax
inc eax
jmp 0x4035c9
lea eax, [ebp]
push eax
mov esi, 0x104
push esi
call dword [sym.imp.kernel32.dll_GetTempPathW]
cmp eax, esi
ja 0x4035c7
test eax, eax
je 0x4035c7
lea eax, [ebp]
push eax
lea ecx, [ebp - 0x10]
call fcn.004015ba
and dword [ebp - 4], 0
push str.JavaDeployReg.log
lea ecx, [ebp - 0x14]
call fcn.004015ba
lea eax, [ebp - 0x14]
push eax
lea ecx, [ebp - 0x10]
mov byte [ebp - 4], 1
call fcn.00403eec
mov ecx, dword [ebp - 0x14]
test ecx, ecx
je 0x403597
call fcn.00401607
mov esi, dword [ebp - 0x10]
test esi, esi
je 0x4035a2
mov eax, dword [esi]
jmp 0x4035a4
xor eax, eax
push 0x4078d8
push eax
push 0x4090e4
call dword [sym.imp.msvcr100.dll__wfopen_s]
add esp, 0xc
test eax, eax
je 0x4035ec
test esi, esi
je 0x4035c7
mov ecx, esi
call fcn.00401607
xor eax, eax
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [ebp + 0x208]
xor ecx, ebp
call fcn.0040426a
add ebp, 0x20c
leave
ret
test esi, esi
je 0x40353e
mov ecx, esi
call fcn.00401607
jmp 0x40353e

Function at 0x40389d
Capabilities:
Get common file path

Disassembly:
push 0x14
mov eax, 0x4053ed
call fcn.004042eb
mov esi, dword [ebp + 8]
xor eax, eax
xor edi, edi
xor ebx, ebx
mov word [esi], ax
mov dword [ebp - 4], edi
call main
test eax, eax
je 0x4038c8
call fcn.0040388e
mov ebx, eax
push 0x104
push esi
push ebx
push edi
push 0x40624c
call dword [sym.imp.SHELL32.dll_SHGetFolderPathEx]
mov esi, eax
cmp esi, edi
jge 0x403923
push esi
push str.Error:_08x_in_SHGetFolderPathEx_FOLDERID_LocalAppDataLow__0__hToken__pPath__MAX_PATH_
call fcn.00404196
pop ecx
pop ecx
push edi
push esi
call main
mov ecx, dword [ebp - 0x18]
mov esi, dword [ecx + 4]
mov dword [ebp - 0x14], esi
call fcn.00403e48
push eax
push esi
push 0x406814
call fcn.00404196
or dword [ebp - 4], 0xffffffff
add esp, 0xc
mov eax, 0x40391c
ret
cmp ebx, edi
je 0x40392e
push ebx
call dword [sym.imp.kernel32.dll_CloseHandle]
or dword [ebp - 4], 0xffffffff
cmp esi, edi
jge 0x4039df
push dword [ebp + 8]
mov dword [ebp - 4], 2
push edi
push edi
push 0x1a
push edi
call dword [sym.imp.SHELL32.dll_SHGetFolderPathW]
mov esi, eax
cmp esi, edi
jge 0x40398b
push esi
push str.Error:_08x_in_SHGetFolderPathW_NULL__CSIDL_APPDATA__NULL__0__pPath_
jmp 0x4038e7
or dword [ebp - 4], 0xffffffff
cmp esi, edi
jge 0x4039df
push 1
push 0x1a
push dword [ebp + 8]
mov dword [ebp - 4], 4
push edi
call dword [sym.imp.SHELL32.dll_SHGetSpecialFolderPathW]
mov esi, eax
cmp esi, edi
jge 0x4039df
push esi
push str.Error:_08x_in_SHGetSpecialFolderPathW_NULL__pPath__CSIDL_APPDATA__TRUE_
jmp 0x4038e7
mov eax, esi
call fcn.00404321
ret
Function at 0x403c92
Capabilities:
Query or enumerate registry key

Disassembly:
push ebp
lea ebp, [esp - 0x1a0]
sub esp, 0x220
mov eax, dword [0x409024]
xor eax, ebp
mov dword [ebp + 0x19c], eax
mov eax, dword [ebp + 0x1a8]
push ebx
push esi
push edi
mov edi, ecx
mov ecx, dword [edi + 4]
or ecx, 0x2001f
push ecx
push eax
push dword [edi]
xor esi, esi
lea ecx, [ebp - 0x74]
mov dword [ebp - 0x78], eax
mov dword [ebp - 0x74], esi
mov dword [ebp - 0x70], esi
mov dword [ebp - 0x6c], esi
call main
mov ebx, eax
cmp ebx, esi
je 0x403d05
lea ecx, [ebp - 0x74]
call fcn.0040175a
mov eax, ebx
mov ecx, dword [ebp + 0x19c]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.0040426a
add ebp, 0x1a0
leave
ret 4
mov ebx, dword [sym.imp.ADVAPI32.dll_RegEnumKeyExW]
jmp 0x403d1d
lea eax, [ebp - 0x64]
push eax
lea ecx, [ebp - 0x74]
call fcn.00403c92
cmp eax, esi
jne 0x403d4f
lea eax, [ebp - 0x80]
push eax
push esi
push esi
push esi
lea eax, [ebp - 0x68]
push eax
lea eax, [ebp - 0x64]
push eax
push esi
push dword [ebp - 0x74]
mov dword [ebp - 0x68], 0x100
call ebx
test eax, eax
je 0x403d0d
lea ecx, [ebp - 0x74]
call fcn.0040175a
push dword [ebp - 0x78]
mov ecx, edi
call fcn.004016eb
lea ecx, [ebp - 0x74]
mov esi, eax
call fcn.0040175a
mov eax, esi
jmp 0x403ceb

Function at 0x40426a
Capabilities:
Terminate process

Disassembly:
cmp ecx, dword [0x409024]
jne 0x404274
repz ret
jmp fcn.00404744
Function at 0x40473a
Capabilities:
Terminate process

Disassembly:
push 0x5c
push 0x408088
call fcn.00404850
xor ebx, ebx
mov dword [ebp - 0x1c], ebx
lea eax, [ebp - 0x6c]
push eax
call dword [sym.imp.kernel32.dll_GetStartupInfoW]
cmp dword [0x409494], ebx
jne 0x4044d5
push ebx
push ebx
push 1
push ebx
call dword [sym.imp.kernel32.dll_HeapSetInformation]
mov dword [ebp - 4], ebx
mov eax, dword fs:[0x18]
mov esi, dword [eax + 4]
mov dword [ebp - 0x24], ebx
mov edi, 0x409488
push ebx
push esi
push edi
call dword [sym.imp.kernel32.dll_InterlockedCompareExchange]
cmp eax, ebx
je 0x40450f
cmp eax, esi
jne 0x404502
xor esi, esi
inc esi
mov dword [ebp - 0x24], esi
jmp 0x404512
push 0x3e8
call dword [sym.imp.kernel32.dll_Sleep]
jmp 0x4044e9
xor esi, esi
inc esi
mov eax, dword [0x409484]
cmp eax, esi
jne 0x404525
push 0x1f
call sub.msvcr100.dll__amsg_exit
pop ecx
jmp 0x404560
mov eax, dword [0x409484]
test eax, eax
jne 0x40455a
mov dword [0x409484], esi
push 0x406224
push 0x406218
call sub.msvcr100.dll__initterm_e
pop ecx
pop ecx
test eax, eax
je 0x404560
mov dword [ebp - 4], 0xfffffffe
mov eax, 0xff
jmp 0x40467a
mov dword [0x409138], esi
mov eax, dword [0x409484]
cmp eax, esi
jne 0x404584
push 0x406214
push 0x406204
call sub.msvcr100.dll__initterm
pop ecx
pop ecx
mov dword [0x409484], 2
cmp dword [ebp - 0x24], ebx
jne 0x404591
push ebx
push edi
call dword [sym.imp.kernel32.dll_InterlockedExchange]
cmp dword [0x409498], ebx
je 0x4045b2
push 0x409498
call main
pop ecx
test eax, eax
je 0x4045b2
push ebx
push 2
push ebx
call dword [0x409498]
mov eax, dword [sym.imp.msvcr100.dll__acmdln]
mov esi, dword [eax]
mov dword [ebp - 0x20], esi
mov al, byte [esi]
cmp al, 0x20
ja 0x40460b
cmp al, bl
je 0x4045cb
cmp dword [ebp - 0x1c], ebx
jne 0x40460b
mov al, byte [esi]
cmp al, bl
je 0x4045db
cmp al, 0x20
ja 0x4045db
inc esi
mov dword [ebp - 0x20], esi
jmp 0x4045cb
test byte [ebp - 0x40], 1
je 0x4045e7
movzx eax, word [ebp - 0x3c]
jmp 0x4045ea
push 0xa
pop eax
push eax
push esi
push ebx
push 0x400000
call main
mov dword [0x409134], eax
cmp dword [0x409128], ebx
jne 0x404660
push eax
call dword [sym.imp.msvcr100.dll_exit]
cmp al, 0x22
jne 0x40461a
xor ecx, ecx
cmp dword [ebp - 0x1c], ebx
sete cl
mov dword [ebp - 0x1c], ecx
movzx eax, al
push eax
call dword [sym.imp.msvcr100.dll__ismbblead]
pop ecx
test eax, eax
je 0x40462d
inc esi
mov dword [ebp - 0x20], esi
inc esi
jmp 0x4045b9
cmp dword [0x409138], ebx
jne 0x40466e
call dword [sym.imp.msvcr100.dll__cexit]
mov dword [ebp - 4], 0xfffffffe
mov eax, dword [0x409134]
call fcn.00404895
ret
call main
jmp 0x4044a7