joyce8/EMBER2024-capa huggingface dataset:
Function at 0x40402c
Capabilities:
Enumerate processes

Disassembly:
sub esp, 0x230
mov eax, dword [0x477014]
xor eax, esp
mov dword [esp + 0x22c], eax
push ebx
push ebp
mov ebp, dword [esp + 0x23c]
lea eax, [esp + 0xc]
push esi
mov esi, dword [esp + 0x244]
mov ebx, ecx
push 0x228
push 0
push eax
call fcn.00432310
add esp, 0xc
mov dword [esp + 0xc], 0x22c
lea eax, [esp + 0xc]
push eax
push dword [ebx]
call dword [sym.imp.KERNEL32.DLL_Process32FirstW]
test eax, eax
je 0x404115
push edi
lea eax, [esp + 0x34]
push eax
push ebp
call fcn.0043728b
pop ecx
pop ecx
test eax, eax
jne 0x4040e5
mov eax, dword [esi + 4]
lea ecx, [esp + 0x18]
cmp ecx, eax
jae 0x4040c7
cmp dword [esi], ecx
ja 0x4040c7
mov edi, ecx
sub edi, dword [esi]
sar edi, 2
cmp eax, dword [esi + 8]
jne 0x4040b9
push ecx
mov ecx, esi
call fcn.0040b4cc
mov ecx, dword [esi + 4]
test ecx, ecx
je 0x4040e1
mov eax, dword [esi]
mov eax, dword [eax + edi*4]
jmp 0x4040df
cmp eax, dword [esi + 8]
jne 0x4040d4
push ecx
mov ecx, esi
call fcn.0040b4cc
mov ecx, dword [esi + 4]
test ecx, ecx
je 0x4040e1
mov eax, dword [esp + 0x18]
mov dword [ecx], eax
add dword [esi + 4], 4
lea eax, [esp + 0x10]
push eax
push dword [ebx]
call dword [sym.imp.KERNEL32.DLL_Process32NextW]
test eax, eax
je 0x404111
cmp dword [esp + 0x18], 0
jne 0x404109
lea eax, [esp + 0x10]
mov ecx, ebx
push eax
call fcn.00404004
test eax, eax
jne 0x404085
xor eax, eax
inc eax
pop edi
mov ecx, dword [esp + 0x238]
pop esi
pop ebp
pop ebx
xor ecx, esp
call fcn.0042fb8d
add esp, 0x230
ret 8

Function at 0x40412f
Capabilities:
Get process image filename

Disassembly:
push 0xc
mov eax, 0x45c3d3
call fcn.00454423
mov dword [ebp - 0x14], ecx
xor ebx, ebx
mov dword [ebp - 0x10], ebx
push ecx
push ecx
mov dword [ebp - 4], ebx
call fcn.00403e8f
pop ecx
pop ecx
push dword [ebp + 8]
test eax, eax
mov edx, 0x1000
mov ecx, 0x400
push ebx
cmovne ecx, edx
push ecx
call dword [sym.imp.KERNEL32.DLL_OpenProcess]
mov esi, eax
mov dword [ebp - 0x10], esi
test esi, esi
je 0x4041b8
cmp esi, 0xffffffff
je 0x4041a8
mov ecx, dword [ebp + 0xc]
mov edx, 0x104
push edx
call fcn.00401d3c
push eax
push esi
call dword [sym.imp.PSAPI.DLL_GetProcessImageFileNameW]
mov ecx, dword [ebp + 0xc]
mov edi, eax
call fcn.00402a4c
test edi, edi
je 0x4041a8
push dword [ebp + 0xc]
mov ecx, dword [ebp - 0x14]
call fcn.004041c7
mov ebx, eax
test esi, esi
je 0x4041b8
cmp esi, 0xffffffff
je 0x4041b8
push esi
call dword [sym.imp.KERNEL32.DLL_CloseHandle]
mov eax, ebx
call fcn.004543ec
ret 8
Function at 0x4042ab
Capabilities:
Get disk information

Disassembly:
push 0x28c
mov eax, 0x45c41a
call fcn.00454457
mov dword [ebp - 0x298], ecx
mov ebx, dword [sym.imp.KERNEL32.DLL_GetLogicalDriveStringsW]
xor edi, edi
push edi
push edi
call ebx
mov esi, eax
xor eax, eax
test esi, esi
je 0x40445a
mov dword [ebp - 0x220], 7
mov dword [ebp - 0x224], edi
mov word [ebp - 0x234], ax
mov edx, esi
mov dword [ebp - 4], edi
lea ecx, [ebp - 0x234]
call fcn.00401d3c
mov edi, eax
push edi
push esi
call ebx
xor ebx, ebx
test eax, eax
jne 0x404312
mov esi, ebx
jmp 0x40444a
push 0x208
lea eax, [ebp - 0x21c]
push ebx
push eax
call fcn.00432310
mov esi, dword [ebp - 0x298]
add esp, 0xc
push dword [esi + 8]
push dword [esi + 4]
call fcn.0040b4a1
mov eax, dword [esi + 4]
mov dword [esi + 8], eax
jmp 0x40443e
xor eax, eax
mov word [edi + 4], ax
lea eax, [ebp - 0x21c]
push 0x104
push eax
push edi
call dword [sym.imp.KERNEL32.DLL_QueryDosDeviceW]
lea eax, [ebp - 0x21c]
push eax
call dword [sym.imp.SHLWAPI.dll_PathAddBackslashW]
push edi
call dword [sym.imp.SHLWAPI.dll_PathAddBackslashW]
push edi
lea ecx, [ebp - 0x264]
call fcn.00401647
lea eax, [ebp - 0x21c]
mov byte [ebp - 4], 1
push eax
lea ecx, [ebp - 0x24c]
call fcn.00401647
lea eax, [ebp - 0x264]
push eax
lea edx, [ebp - 0x24c]
lea ecx, [ebp - 0x294]
call fcn.0040c7c3
pop ecx
mov ebx, eax
mov byte [ebp - 4], 3
mov ecx, dword [esi + 8]
cmp ebx, ecx
jae 0x4043e1
cmp dword [esi + 4], ebx
ja 0x4043e1
sub ebx, dword [esi + 4]
mov eax, ebx
push 0x30
pop ebx
cdq
idiv ebx
mov ebx, eax
cmp ecx, dword [esi + 0xc]
jne 0x4043d8
push ecx
lea ecx, [esi + 4]
call fcn.0040b436
imul eax, ebx, 0x30
add eax, dword [esi + 4]
push eax
jmp 0x4043f0
cmp ecx, dword [esi + 0xc]
jne 0x4043ef
push ecx
lea ecx, [esi + 4]
call fcn.0040b436
push ebx
push dword [esi + 8]
call fcn.0040cc2b
push 0x30
pop eax
add dword [esi + 8], eax
lea ecx, [ebp - 0x27c]
xor ebx, ebx
push ebx
push 1
call fcn.00401bd2
push ebx
push 1
lea ecx, [ebp - 0x294]
call fcn.00401bd2
push ebx
push 1
lea ecx, [ebp - 0x24c]
call fcn.00401bd2
push ebx
push 1
lea ecx, [ebp - 0x264]
mov byte [ebp - 4], bl
call fcn.00401bd2
add edi, 8
cmp word [edi], bx
jne 0x404343
xor esi, esi
inc esi
push ebx
push 1
lea ecx, [ebp - 0x234]
call fcn.00401bd2
mov eax, esi
call fcn.00454401
ret
Function at 0x40447c
Capabilities:
Enumerate gui resources
Terminate process

Disassembly:
push 0x44
mov eax, 0x45c45a
call fcn.00454457
mov edi, ecx
test edi, edi
jne 0x404497
xor eax, eax
inc eax
call fcn.00454401
ret
push edi
push 0x4045d3
call dword [sym.imp.USER32.dll_EnumWindows]
and dword [ebp - 4], 0
push edi
push 0
push 0x100001
call dword [sym.imp.KERNEL32.DLL_OpenProcess]
mov esi, eax
mov dword [ebp - 0x50], esi
test esi, esi
je 0x40453c
cmp esi, 0xffffffff
je 0x40453c
push 0xbb8
push esi
call dword [sym.imp.KERNEL32.DLL_WaitForSingleObject]
test eax, eax
je 0x404558
push 0
push esi
call dword [sym.imp.KERNEL32.DLL_TerminateProcess]
test eax, eax
jne 0x40451d
call dword [sym.imp.KERNEL32.DLL_GetLastError]
push edi
mov esi, eax
lea eax, [ebp - 0x4c]
push str.TerminateProcess_pid:_u_failed
push eax
call fcn.0040c7dc
add esp, 0xc
push eax
push esi
sub esp, 0xc
mov byte [ebp - 4], 2
lea ecx, [ebp - 0x34]
call fcn.00403b77
push 0x4757ac
lea eax, [ebp - 0x34]
push eax
call fcn.004325c7
push 0xbb8
push esi
call dword [sym.imp.KERNEL32.DLL_WaitForSingleObject]
neg eax
push esi
sbb edi, edi
call dword [sym.imp.KERNEL32.DLL_CloseHandle]
lea eax, [edi + 1]
jmp 0x404491
call dword [sym.imp.KERNEL32.DLL_GetLastError]
cmp eax, 0x57
jne 0x404564
test esi, esi
je 0x40448e
cmp esi, 0xffffffff
je 0x40448e
push esi
call dword [sym.imp.KERNEL32.DLL_CloseHandle]
jmp 0x40448e
push eax
push edi
lea eax, [ebp - 0x4c]
push str.OpenProcess_pid:_u_failed__err:_u
push eax
call fcn.0040c7dc
add esp, 0x10
push eax
sub esp, 0xc
mov byte [ebp - 4], 1
lea ecx, [ebp - 0x34]
call fcn.00403cd3
jmp 0x40450f

Function at 0x404837
Capabilities:
Query environment variable

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x20c
mov eax, dword [0x477014]
xor eax, ebp
mov dword [ebp - 4], eax
push esi
mov esi, dword [ebp + 8]
cmp dword [esi + 0x14], 8
jb 0x404858
mov eax, dword [esi]
jmp 0x40485a
mov eax, esi
push 0x104
lea ecx, [ebp - 0x20c]
push ecx
push eax
call dword [sym.imp.KERNEL32.DLL_ExpandEnvironmentStringsW]
cmp word [ebp - 0x20c], 0
jne 0x40487b
xor eax, eax
jmp 0x404888
lea eax, [ebp - 0x20c]
push eax
call fcn.00433d15
pop ecx
push eax
lea eax, [ebp - 0x20c]
mov ecx, esi
push eax
call fcn.0040192a
mov ecx, dword [ebp - 4]
xor eax, eax
xor ecx, ebp
inc eax
pop esi
call fcn.0042fb8d
mov esp, ebp
pop ebp
ret 4
Function at 0x4055f0
Capabilities:
Extract resource via kernel32 functions
Print debug messages

Disassembly:
push 0x824
mov eax, 0x45c574
call fcn.00454457
mov ebx, ecx
xor eax, eax
mov dword [ebp - 0x830], eax
mov dword [ebp - 0x82c], eax
mov dword [ebp - 4], eax
lea ecx, [ebp - 0x830]
push dword [ebp + 0xc]
push dword [ebp + 8]
call fcn.0040d97e
test al, al
jne 0x4056c9
mov esi, str.hwang
lea edi, [ebp - 0x810]
push 0x7f2
lea eax, [ebp - 0x802]
push 0
movsd dword es:[edi], dword [esi]
push eax
movsd dword es:[edi], dword [esi]
movsd dword es:[edi], dword [esi]
movsw word es:[edi], word [esi]
call fcn.00432310
add esp, 0xc
lea eax, [ebp - 0x804]
push dword [ebp + 0xc]
push dword [ebp + 8]
push str.LoadResource_failed._Type_:__s_ID_:__s_r_n
push eax
call fcn.0040320e
mov ebx, dword [sym.imp.KERNEL32.DLL_OutputDebugStringW]
lea eax, [ebp - 0x810]
add esp, 0x10
push eax
call ebx
mov esi, str.hwang
lea edi, [ebp - 0x810]
push 0x7f2
lea eax, [ebp - 0x802]
push 0
movsd dword es:[edi], dword [esi]
push eax
movsd dword es:[edi], dword [esi]
movsd dword es:[edi], dword [esi]
movsw word es:[edi], word [esi]
call fcn.00432310
add esp, 0xc
call dword [sym.imp.KERNEL32.DLL_GetLastError]
push eax
lea eax, [ebp - 0x804]
push str.hwang_err:_d_r_n
push eax
call fcn.0040320e
add esp, 0xc
lea eax, [ebp - 0x810]
push eax
call ebx
jmp 0x40577a
push dword [ebp - 0x830]
call dword [sym.imp.KERNEL32.DLL_LockResource]
mov esi, eax
test esi, esi
jne 0x40571d
mov esi, str.hwang
lea edi, [ebp - 0x810]
push 0x7f2
push eax
lea eax, [ebp - 0x802]
movsd dword es:[edi], dword [esi]
push eax
movsd dword es:[edi], dword [esi]
movsd dword es:[edi], dword [esi]
movsw word es:[edi], word [esi]
call fcn.00432310
add esp, 0xc
call dword [sym.imp.KERNEL32.DLL_GetLastError]
push eax
lea eax, [ebp - 0x804]
push str.LockResource_failed.hwang_err:_d_r_n
push eax
call fcn.0040320e
add esp, 0xc
jmp 0x40576d
push dword [ebp - 0x82c]
push dword [0x4781e8]
call dword [sym.imp.KERNEL32.DLL_SizeofResource]
mov edi, eax
test edi, edi
jne 0x40577e
mov esi, str.hwang
lea edi, [ebp - 0x810]
push 0x7f2
push eax
lea eax, [ebp - 0x802]
movsd dword es:[edi], dword [esi]
push eax
movsd dword es:[edi], dword [esi]
movsd dword es:[edi], dword [esi]
movsw word es:[edi], word [esi]
call fcn.00432310
add esp, 0xc
lea eax, [ebp - 0x804]
push str.ResSize__0_r_n
push eax
call fcn.0040320e
pop ecx
pop ecx
lea eax, [ebp - 0x810]
push eax
call dword [sym.imp.KERNEL32.DLL_OutputDebugStringW]
xor esi, esi
jmp 0x4057c1
mov edx, dword [ebp + 0xc]
push ecx
lea ecx, [ebp - 0x828]
call fcn.0040d512
pop ecx
mov byte [ebp - 4], 1
lea eax, [ebp - 0x828]
cmp dword [ebp - 0x814], 0x10
mov ecx, ebx
cmovae eax, dword [ebp - 0x828]
push eax
push edi
push esi
call fcn.004057e0
push 0
push 1
lea ecx, [ebp - 0x828]
mov esi, eax
call fcn.0040dfe4
cmp dword [ebp - 0x830], 0
je 0x4057d6
push dword [ebp - 0x830]
call dword [sym.imp.KERNEL32.DLL_FreeResource]
mov eax, esi
call fcn.00454401
ret 8
Function at 0x4057e0
Capabilities:
Print debug messages

Disassembly:
sub esp, 0x820
mov eax, dword [0x477014]
xor eax, esp
mov dword [esp + 0x81c], eax
mov eax, dword [esp + 0x82c]
mov edx, dword [esp + 0x824]
push ebx
push ebp
push esi
push edi
xor ebx, ebx
mov esi, ecx
push ebx
push eax
push dword [esp + 0x840]
mov ecx, dword [esi]
call fcn.00410966
add esp, 0xc
test eax, eax
jne 0x405834
push ebx
push ebx
push dword [esi]
call fcn.00405d4d
neg eax
sbb eax, eax
inc eax
jmp 0x4058dd
mov edx, dword [esi]
lea ecx, [esp + 0x10]
push 0xffffffffffffffff
call fcn.004031dc
mov eax, dword [esi]
lea edi, [esp + 0x2c]
mov esi, str.hwang
mov ebp, 0x7f2
pop ecx
push ebp
add dword [eax + 0xc], 0xfffffff0
lea eax, [esp + 0x3a]
movsd dword es:[edi], dword [esi]
push ebx
push eax
movsd dword es:[edi], dword [esi]
movsd dword es:[edi], dword [esi]
movsw word es:[edi], word [esi]
call fcn.00432310
add esp, 0xc
lea eax, [esp + 0x10]
cmp dword [esp + 0x24], 8
cmovae eax, dword [esp + 0x10]
push eax
lea eax, [esp + 0x38]
push str._s_r_n
push eax
call fcn.0040320e
mov ebx, dword [sym.imp.KERNEL32.DLL_OutputDebugStringW]
lea eax, [esp + 0x34]
add esp, 0xc
push eax
call ebx
mov esi, str.hwang
lea edi, [esp + 0x28]
push ebp
lea eax, [esp + 0x3a]
push 0
movsd dword es:[edi], dword [esi]
push eax
movsd dword es:[edi], dword [esi]
movsd dword es:[edi], dword [esi]
movsw word es:[edi], word [esi]
call fcn.00432310
add esp, 0xc
lea eax, [esp + 0x34]
push str.luaL_loadbuffer_failed__r_n
push eax
call fcn.0040320e
pop ecx
pop ecx
lea eax, [esp + 0x28]
push eax
call ebx
push 0
push 1
lea ecx, [esp + 0x18]
call fcn.00401bd2
xor eax, eax
mov ecx, dword [esp + 0x82c]
pop edi
pop esi
pop ebp
pop ebx
xor ecx, esp
call fcn.0042fb8d
add esp, 0x820
ret 0xc
Function at 0x405e28
Capabilities:
Check if file exists
Delete file
Get file attributes
Set file attributes

Disassembly:
push ebx
push esi
push edi
mov esi, ecx
xor ebx, ebx
push esi
call dword [sym.imp.KERNEL32.DLL_DeleteFileW]
mov edi, eax
test edi, edi
jne 0x405e7b
push esi
call dword [sym.imp.KERNEL32.DLL_GetFileAttributesW]
cmp eax, 0xffffffff
je 0x405e68
test al, 5
je 0x405e68
and eax, 0xfffffffa
push eax
push esi
call dword [sym.imp.KERNEL32.DLL_SetFileAttributesW]
test eax, eax
je 0x405e68
push esi
call dword [sym.imp.KERNEL32.DLL_DeleteFileW]
mov edi, eax
test edi, edi
jne 0x405e7b
test ebx, ebx
jne 0x405e88
mov ecx, esi
call fcn.00405edb
mov ebx, eax
test ebx, ebx
jne 0x405e2f
jmp 0x405e88
push 0
push esi
push 5
push 4
call dword [sym.imp.SHELL32.dll_SHChangeNotify]
mov eax, edi
pop edi
pop esi
pop ebx
ret

Function at 0x405e8e
Capabilities:
Check if file exists
Delete directory
Get file attributes
Set file attributes

Disassembly:
push esi
push edi
mov esi, ecx
push esi
call dword [sym.imp.KERNEL32.DLL_RemoveDirectoryW]
mov edi, eax
test edi, edi
jne 0x405ec7
push esi
call dword [sym.imp.KERNEL32.DLL_GetFileAttributesW]
cmp eax, 0xffffffff
je 0x405ed4
test al, 1
je 0x405ed4
and eax, 0xfffffffe
push eax
push esi
call dword [sym.imp.KERNEL32.DLL_SetFileAttributesW]
push esi
call dword [sym.imp.KERNEL32.DLL_RemoveDirectoryW]
mov edi, eax
test edi, edi
je 0x405ed4
push 0
push esi
push 5
push 0x10
call dword [sym.imp.SHELL32.dll_SHChangeNotify]
mov eax, edi
pop edi
pop esi
ret
Function at 0x405edb
Capabilities:
Open clipboard

Disassembly:
push ebp
sub esp, 0x208
lea ebp, [esp - 4]
mov eax, dword [0x477014]
xor eax, ebp
mov dword [ebp + 0x208], eax
push 0x28
mov eax, 0x45c697
call fcn.00454423
mov dword [ebp - 0x14], ecx
xor ebx, ebx
mov esi, ebx
call dword [sym.imp.KERNEL32.DLL_GetLastError]
cmp eax, 5
jne 0x406004
push ebx
call dword [sym.imp.ole32.dll_OleInitialize]
mov dword [ebp - 4], ebx
test eax, eax
js 0x405ff6
mov dword [ebp - 0x10], ebx
xor eax, eax
inc eax
mov byte [ebp - 4], al
lea eax, [ebp - 0x10]
push eax
call dword [sym.imp.ole32.dll_OleGetClipboard]
test eax, eax
jne 0x405fe6
or dword [ebp - 0x1c], 0xffffffff
lea edx, [ebp - 0x34]
push 0xf
pop eax
mov word [ebp - 0x28], ax
xor eax, eax
inc eax
mov dword [ebp - 0x24], ebx
mov dword [ebp - 0x20], eax
mov dword [ebp - 0x18], eax
mov eax, dword [ebp - 0x10]
push edx
lea edx, [ebp - 0x28]
push edx
mov ecx, dword [eax]
push eax
call dword [ecx + 0xc]
test eax, eax
js 0x405fe6
mov edi, dword [ebp - 0x30]
push ebx
push ebx
mov ebx, dword [sym.imp.SHELL32.dll_DragQueryFileW]
push 0xffffffffffffffff
push edi
call ebx
cmp eax, 1
jne 0x405fbb
push 0x208
lea eax, [ebp]
push esi
push eax
call fcn.00432310
add esp, 0xc
lea eax, [ebp]
push 0x104
push eax
push esi
push edi
call ebx
test eax, eax
je 0x405fbb
push dword [ebp - 0x14]
lea eax, [ebp]
push eax
call dword [sym.imp.KERNEL32.DLL_lstrcmpiW]
test eax, eax
push 1
pop eax
cmove esi, eax
lea eax, [ebp - 0x34]
push eax
call dword [sym.imp.ole32.dll_ReleaseStgMedium]
xor ebx, ebx
test esi, esi
je 0x405fe6
push ebx
call dword [sym.imp.USER32.dll_OpenClipboard]
test eax, eax
je 0x405fe4
call dword [sym.imp.USER32.dll_EmptyClipboard]
call dword [sym.imp.USER32.dll_CloseClipboard]
jmp 0x405fe6
mov esi, ebx
mov byte [ebp - 4], bl
mov ecx, dword [ebp - 0x10]
test ecx, ecx
je 0x405ff6
mov edx, dword [ecx]
push ecx
call dword [edx + 8]
push 5
call dword [sym.imp.KERNEL32.DLL_SetLastError]
call dword [sym.imp.ole32.dll_OleUninitialize]
mov eax, esi
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.0042fb8d
lea esp, [ebp + 0x20c]
pop ebp
ret
Function at 0x4067ea
Capabilities:
Print debug messages

Disassembly:
push ebp
sub esp, 0x830
lea ebp, [esp - 4]
mov eax, dword [0x477014]
xor eax, ebp
mov dword [ebp + 0x830], eax
push 4
mov eax, 0x45c731
call fcn.00454423
mov ebx, ecx
mov ecx, dword [ebx + 4]
mov esi, dword [ebp + 0x83c]
mov eax, dword [ecx + 0x14]
mov edx, dword [ecx + 0xc]
sub edx, dword [eax]
mov eax, dword [ebx]
sub edx, 0x10
sar edx, 4
mov dword [ebp - 0x10], edx
cdq
push edx
push eax
mov edx, 0xfff0b9d8
call fcn.0040ef72
pop ecx
pop ecx
push esi
lea ecx, [ebp]
call fcn.00401647
and dword [ebp - 4], 0
lea edx, [ebp]
mov ecx, dword [ebx + 4]
call fcn.0040d9d7
or dword [ebp - 4], 0xffffffff
lea ecx, [ebp]
push 0
push 1
call fcn.00401bd2
mov esi, dword [ebp + 0x840]
mov eax, esi
mov ecx, dword [ebx + 4]
cdq
push edx
push eax
call fcn.0040ec3a
xor eax, eax
add esp, 8
xor edi, edi
sub esi, eax
je 0x4068ca
sub esi, 1
je 0x4068b1
sub esi, 1
jne 0x4068cd
mov esi, dword [ebp + 0x844]
mov ecx, dword [ebx + 4]
push 4
pop edi
push eax
push dword [esi]
call fcn.0040ec3a
mov ecx, dword [ebx + 4]
push 0
push dword [esi + 4]
call fcn.0040ec3a
add esp, 0x10
jmp 0x4068cd
mov ecx, dword [ebx + 4]
push 3
pop edi
push eax
mov eax, dword [ebp + 0x844]
push dword [eax]
call fcn.0040ec3a
add esp, 8
jmp 0x4068cd
push 2
pop edi
call fcn.00403119
push 1
push edi
push dword [ebx + 4]
call fcn.00405d4d
test eax, eax
je 0x40694c
mov edx, dword [ebx + 4]
lea ecx, [ebp + 0x18]
push 0xffffffffffffffff
call fcn.004031dc
mov esi, str.hwang
mov dword [esp], 0x7f2
lea edi, [ebp + 0x30]
lea eax, [ebp + 0x3e]
push 0
movsd dword es:[edi], dword [esi]
push eax
movsd dword es:[edi], dword [esi]
movsd dword es:[edi], dword [esi]
movsw word es:[edi], word [esi]
call fcn.00432310
cmp dword [ebp + 0x2c], 8
lea eax, [ebp + 0x18]
cmovae eax, dword [ebp + 0x18]
push eax
lea eax, [ebp + 0x3c]
push str._s_r_n
push eax
call fcn.0040320e
add esp, 0x18
lea ecx, [ebp + 0x30]
push ecx
call dword [sym.imp.KERNEL32.DLL_OutputDebugStringW]
mov ecx, dword [ebx + 4]
push 0
push 1
add dword [ecx + 0xc], 0xfffffff0
lea ecx, [ebp + 0x18]
call fcn.00401bd2
push 3
pop eax
jmp 0x406969
mov ecx, dword [ebx + 4]
or edx, 0xffffffff
push 0
call fcn.0040eaf9
mov edx, dword [ebp - 0x10]
mov esi, eax
pop ecx
mov ecx, dword [ebx + 4]
call fcn.0040e8a2
mov eax, esi
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [ebp + 0x830]
xor ecx, ebp
call fcn.0042fb8d
lea esp, [ebp + 0x834]
pop ebp
ret 0xc
Function at 0x4098e0
Capabilities:
Print debug messages

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
sub esp, 0x824
mov eax, dword [0x477014]
xor eax, esp
mov dword [esp + 0x820], eax
push ebx
mov ebx, ecx
push esi
mov esi, dword [ebp + 8]
push edi
mov ecx, dword [ebx + 4]
mov eax, dword [ecx + 0x14]
mov edi, dword [ecx + 0xc]
sub edi, dword [eax]
mov eax, dword [ebx]
sub edi, 0x10
cdq
push edx
push eax
mov edx, 0xfff0b9d8
sar edi, 4
call fcn.0040ef72
mov ecx, dword [ebx + 4]
mov edx, esi
call fcn.0040d9d7
mov ecx, dword [ebx + 4]
push 0
push dword [ebp + 0xc]
call fcn.0040ec3a
add esp, 0x10
call fcn.00403119
xor eax, eax
inc eax
push eax
push 2
push dword [ebx + 4]
mov dword [esp + 0x18], eax
call fcn.00405d4d
test eax, eax
je 0x4099cf
mov edx, dword [ebx + 4]
lea ecx, [esp + 0x10]
push 0xffffffffffffffff
call fcn.004031dc
mov esi, str.hwang
mov dword [esp], 0x7f2
lea edi, [esp + 0x2c]
lea eax, [esp + 0x3a]
push 0
movsd dword es:[edi], dword [esi]
push eax
movsd dword es:[edi], dword [esi]
movsd dword es:[edi], dword [esi]
movsw word es:[edi], word [esi]
call fcn.00432310
add esp, 0xc
lea eax, [esp + 0x10]
cmp dword [esp + 0x24], 8
cmovae eax, dword [esp + 0x10]
push eax
lea eax, [esp + 0x38]
push str._s_r_n
push eax
call fcn.0040320e
add esp, 0xc
lea eax, [esp + 0x28]
push eax
call dword [sym.imp.KERNEL32.DLL_OutputDebugStringW]
mov eax, dword [ebx + 4]
lea ecx, [esp + 0x10]
push 0
add dword [eax + 0xc], 0xfffffff0
xor eax, eax
inc eax
push eax
call fcn.00401bd2
xor al, al
jmp 0x409a00
mov ecx, dword [ebx + 4]
or edx, 0xffffffff
call fcn.0040e9c3
test eax, eax
je 0x4099f2
mov ecx, dword [ebx + 4]
or edx, 0xffffffff
call fcn.0040eb4b
test eax, eax
setne al
mov byte [esp + 0xc], al
mov ecx, dword [ebx + 4]
mov edx, edi
call fcn.0040e8a2
mov eax, dword [esp + 0xc]
mov ecx, dword [esp + 0x82c]
pop edi
pop esi
pop ebx
xor ecx, esp
call fcn.0042fb8d
mov esp, ebp
pop ebp
ret 8
Function at 0x40a3aa
Capabilities:
Print debug messages

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
sub esp, 0x824
mov eax, dword [0x477014]
xor eax, esp
mov dword [esp + 0x820], eax
push ebx
mov ebx, ecx
push esi
push edi
mov ecx, dword [ebx + 4]
mov eax, dword [ecx + 0x14]
mov edi, dword [ecx + 0xc]
sub edi, dword [eax]
mov eax, dword [ebx]
sub edi, 0x10
cdq
push edx
push eax
mov edx, 0xfff0b9d8
sar edi, 4
call fcn.0040ef72
mov ecx, dword [ebx + 4]
xor esi, esi
push esi
push dword [ebp + 8]
call fcn.0040ec3a
mov ecx, dword [ebx + 4]
push esi
push dword [ebp + 0xc]
call fcn.0040ec3a
mov eax, dword [ebp + 0x10]
mov ecx, dword [ebx + 4]
cdq
push edx
push eax
call fcn.0040ec3a
add esp, 0x20
call fcn.00403119
push 1
push 3
push dword [ebx + 4]
call fcn.00405d4d
test eax, eax
je 0x40a49f
mov edx, dword [ebx + 4]
lea ecx, [esp + 0x10]
push 0xffffffffffffffff
call fcn.004031dc
mov esi, str.hwang
mov dword [esp], 0x7f2
lea edi, [esp + 0x2c]
lea eax, [esp + 0x3a]
push 0
movsd dword es:[edi], dword [esi]
push eax
movsd dword es:[edi], dword [esi]
movsd dword es:[edi], dword [esi]
movsw word es:[edi], word [esi]
call fcn.00432310
add esp, 0xc
lea eax, [esp + 0x10]
cmp dword [esp + 0x24], 8
cmovae eax, dword [esp + 0x10]
push eax
lea eax, [esp + 0x38]
push str._s_r_n
push eax
call fcn.0040320e
add esp, 0xc
lea eax, [esp + 0x28]
push eax
call dword [sym.imp.KERNEL32.DLL_OutputDebugStringW]
mov eax, dword [ebx + 4]
lea ecx, [esp + 0x10]
push 0
push 1
add dword [eax + 0xc], 0xfffffff0
call fcn.00401bd2
xor eax, eax
jmp 0x40a4ba
mov ecx, dword [ebx + 4]
or edx, 0xffffffff
push esi
call fcn.0040eaf9
pop ecx
mov ecx, dword [ebx + 4]
mov edx, edi
mov esi, eax
call fcn.0040e8a2
mov eax, esi
mov ecx, dword [esp + 0x82c]
pop edi
pop esi
pop ebx
xor ecx, esp
call fcn.0042fb8d
mov esp, ebp
pop ebp
ret 0xc

Function at 0x40d78e
Capabilities:
Query or enumerate registry key

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
sub esp, 0x228
mov eax, dword [0x477014]
xor eax, esp
mov dword [esp + 0x224], eax
push ebx
mov ebx, ecx
xor eax, eax
mov ecx, dword [ebp + 8]
mov dword [esp + 8], eax
mov dword [esp + 0xc], eax
mov dword [esp + 0x10], eax
mov eax, dword [ebx + 4]
push esi
or eax, 0x2001f
mov dword [esp + 0x1c], ecx
push eax
push ecx
push dword [ebx]
lea ecx, [esp + 0x18]
call fcn.0040d8ff
jmp 0x40d7e6
lea eax, [esp + 0x28]
push eax
lea ecx, [esp + 0x10]
call fcn.0040d78e
mov esi, eax
test esi, esi
jne 0x40d83a
lea eax, [esp + 0x20]
mov dword [esp + 0x18], 0x100
push eax
push esi
push esi
push esi
lea eax, [esp + 0x28]
push eax
lea eax, [esp + 0x3c]
push eax
push esi
push dword [esp + 0x28]
call dword [sym.imp.ADVAPI32.dll_RegEnumKeyExW]
test eax, eax
je 0x40d7d8
cmp dword [esp + 0xc], esi
je 0x40d829
push dword [esp + 0xc]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov dword [esp + 0xc], esi
push dword [esp + 0x1c]
mov ecx, ebx
mov dword [esp + 0x14], esi
call fcn.0040d716
mov esi, eax
cmp dword [esp + 0xc], 0
je 0x40d84b
push dword [esp + 0xc]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov ecx, dword [esp + 0x22c]
mov eax, esi
pop esi
pop ebx
xor ecx, esp
call fcn.0042fb8d
mov esp, ebp
pop ebp
ret 4