joyce8/EMBER2024-capa huggingface dataset:
Function at 0x4790da
Capabilities:
Hide graphical window

Disassembly:
push ebp
mov ebp, esp
cmp dword [0x48e9a8], 0xffffffff
je 0x47912a
mov eax, dword [ebp + 8]
cmp eax, dword [0x48e9a8]
je 0x479115
mov ecx, dword [0x48e9a8]
mov edx, dword [ecx*4 + 0x4b6ba8]
push edx
call dword [sym.imp.USER32.dll_IsWindowVisible]
test eax, eax
je 0x479115
push 0
mov ecx, 0x4b69b0
call fcn.004746ad
push 0
mov eax, dword [0x48e9a8]
mov ecx, dword [eax*4 + 0x4b6ba8]
push ecx
call dword [sym.imp.USER32.dll_ShowWindow]
cmp dword [ebp + 8], 0xffffffff
jne 0x479137
mov dword [ebp + 8], 0
push 5
mov edx, dword [ebp + 8]
mov eax, dword [edx*4 + 0x4b6ba8]
push eax
call dword [sym.imp.USER32.dll_ShowWindow]
mov ecx, dword [ebp + 8]
mov dword [0x48e9a8], ecx
pop ebp
ret

Function at 0x479728
Capabilities:
Hide graphical window

Disassembly:
push ebp
mov ebp, esp
cmp dword [ebp + 8], 0x400
jb 0x479736
jmp 0x479791
mov eax, dword [0x4b7508]
push eax
call dword [sym.imp.USER32.dll_IsWindowVisible]
test eax, eax
jne 0x479754
push 1
push 0
mov ecx, 0x4b69b0
call fcn.0047467a
push dword [ebp + 8]
call fcn.004061e4
push dword [0x4b7508]
call fcn.00478664
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
push 9
mov eax, dword [0x4b7508]
push eax
call dword [sym.imp.USER32.dll_ShowWindow]
push 0
call fcn.0047cae3
nop
pop ebp
ret 4

Function at 0x479b59
Capabilities:
Hide graphical window

Disassembly:
push ebp
mov ebp, esp
mov dword [0x4b7504], 0
mov eax, dword [0x4b7508]
push eax
call dword [sym.imp.USER32.dll_IsWindow]
test eax, eax
jne 0x479ba8
push 0
push 0x479164
mov ecx, dword [0x4b6a68]
push ecx
push 0xa6
mov edx, dword [0x4b6a60]
push edx
call dword [sym.imp.USER32.dll_CreateDialogParamA]
mov dword [0x4b7508], eax
cmp dword [0x4b7508], 0
jne 0x479ba8
xor eax, eax
jmp 0x479bbb
push 0
mov eax, dword [0x4b7508]
push eax
call dword [sym.imp.USER32.dll_ShowWindow]
mov eax, 1
pop ebp
ret

Function at 0x47ae51
Capabilities:
Hide graphical window

Disassembly:
push ebp
mov ebp, esp
push ecx
mov dword [ebp - 4], ecx
mov ecx, dword [ecx + 0x58]
cmp ecx, dword [ebp + 8]
je 0x47aea0
push 0
mov ecx, 0x4b69b0
call fcn.004746ad
mov edx, dword [ebp - 4]
mov eax, dword [ebp + 8]
mov dword [edx + 0x58], eax
push 0
push 0
push 0x1009
mov ecx, dword [ebp - 4]
push dword [ecx + 0x10]
call dword [sym.imp.USER32.dll_SendMessageA]
mov ecx, dword [ebp - 4]
call fcn.0042f63f
push 0
push dword [0x4b7508]
call dword [sym.imp.USER32.dll_ShowWindow]
mov esp, ebp
pop ebp
ret 4
Function at 0x483c40
Capabilities:
Write file on windows

Disassembly:
mov ecx, dword [esp + 4]
sub esp, 0x1a8
mov eax, 0x48f4d8
push ebx
push ebp
push esi
push edi
xor ebp, ebp
cmp ecx, dword [eax]
je 0x483c64
add eax, 8
inc ebp
cmp eax, 0x48f568
jb 0x483c55
cmp ecx, dword [ebp*8 + 0x48f4d8]
jne 0x483e0b
mov eax, dword [0x4bcca0]
cmp eax, 1
je 0x483dcd
test eax, eax
jne 0x483c90
cmp dword [0x48f324], 1
je 0x483dcd
cmp ecx, 0xfc
je 0x483e0b
lea eax, [esp + 0xb4]
push 0x104
push eax
push 0
call dword [sym.imp.KERNEL32.dll_GetModuleFileNameA]
test eax, eax
jne 0x483ccb
mov ecx, 5
mov esi, 0x487b08
lea edi, [esp + 0xb4]
rep movsd dword es:[edi], dword [esi]
movsw word es:[edi], word [esi]
movsb byte es:[edi], byte [esi]
lea edi, [esp + 0xb4]
or ecx, 0xffffffff
xor eax, eax
lea ebx, [esp + 0xb4]
repne scasb al, byte es:[edi]
not ecx
cmp ecx, 0x3c
jbe 0x483d14
lea edi, [esp + 0xb4]
or ecx, 0xffffffff
repne scasb al, byte es:[edi]
not ecx
dec ecx
push 3
mov ebx, ecx
lea ecx, [esp + 0xb8]
sub ecx, 0x3b
push 0x487b04
add ebx, ecx
push ebx
call fcn.00484b60
add esp, 0xc
mov ecx, 6
mov esi, 0x487ae8
lea edi, [esp + 0x14]
xor eax, eax
rep movsd dword es:[edi], dword [esi]
movsw word es:[edi], word [esi]
or ecx, 0xffffffff
mov edi, ebx
repne scasb al, byte es:[edi]
not ecx
sub edi, ecx
lea edx, [esp + 0x14]
mov ebx, ecx
mov esi, edi
or ecx, 0xffffffff
mov edi, edx
repne scasb al, byte es:[edi]
mov ecx, ebx
dec edi
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, ebx
lea edx, [esp + 0x14]
and ecx, 3
push 0x12010
rep movsb byte es:[edi], byte [esi]
mov edi, 0x487ae4
or ecx, 0xffffffff
repne scasb al, byte es:[edi]
not ecx
sub edi, ecx
push 0x487abc
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
lea edx, [esp + 0x1c]
and ecx, 3
rep movsb byte es:[edi], byte [esi]
mov edi, dword [ebp*8 + 0x48f4dc]
or ecx, 0xffffffff
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
lea eax, [esp + 0x1c]
and ecx, 3
push eax
rep movsb byte es:[edi], byte [esi]
call fcn.00484ad0
add esp, 0xc
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x1a8
ret
mov eax, dword [0x4bd780]
test eax, eax
je 0x483dde
mov esi, dword [eax + 0x10]
cmp esi, 0xffffffff
jne 0x483de8
push 0xfffffffffffffff4
call dword [sym.imp.KERNEL32.dll_GetStdHandle]
mov esi, eax
mov edx, dword [ebp*8 + 0x48f4dc]
lea ecx, [esp + 0x10]
push 0
push ecx
mov edi, edx
or ecx, 0xffffffff
xor eax, eax
repne scasb al, byte es:[edi]
not ecx
dec ecx
push ecx
push edx
push esi
call dword [sym.imp.KERNEL32.dll_WriteFile]
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x1a8
ret
Function at 0x401070
Capabilities:
Get file size
Read file on windows

Disassembly:
push ecx
mov eax, dword [esp + 8]
push edi
push 0
push 0x80
push 3
push 0
push 1
push 0x80000000
push eax
call dword [sym.imp.KERNEL32.dll_CreateFileW]
mov edi, eax
cmp edi, 0xffffffff
je 0x4010b1
push 0
push edi
call dword [sym.imp.KERNEL32.dll_GetFileSize]
mov dword [esp + 4], eax
cmp eax, 0x6400000
jb 0x4010b6
push edi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
xor eax, eax
pop edi
pop ecx
ret
push esi
lea esi, [eax + 0xa]
call dword [sym.imp.KERNEL32.dll_GetProcessHeap]
test eax, eax
je 0x4010d4
push esi
push 8
push eax
call dword [sym.imp.KERNEL32.dll_HeapAlloc]
mov esi, eax
test esi, esi
jne 0x4010e1
push edi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
pop esi
xor eax, eax
pop edi
pop ecx
ret
mov edx, dword [esp + 8]
push 0
lea ecx, [esp + 0xc]
push ecx
push edx
push esi
push edi
call dword [sym.imp.KERNEL32.dll_ReadFile]
push edi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov eax, dword [esp + 8]
mov byte [esi + eax], 0
mov eax, dword [esp + 0x14]
test eax, eax
je 0x401112
mov ecx, dword [esp + 8]
mov dword [eax], ecx
mov eax, esi
pop esi
pop edi
pop ecx
ret
Function at 0x401120
Capabilities:
Move file
Write file on windows

Disassembly:
sub esp, 0x210
push ebx
push ebp
xor ebp, ebp
mov eax, str.VeriSign_Class_3_Code_Signing_2009_2
push edi
mov byte [esp + 0xf], 0
mov dword [esp + 0x10], ebp
lea edx, [eax + 2]
lea esp, [esp]
mov cx, word [eax]
add eax, 2
cmp cx, bp
jne 0x401140
sub eax, edx
sar eax, 1
lea edi, [eax + eax]
lea eax, [esp + 0x10]
push eax
push section..data
call fcn.00401070
add esp, 8
mov ebx, eax
cmp dword [esp + 0x10], ebp
jbe 0x4012ed
push esi
mov eax, edi
mov ecx, str.VeriSign_Class_3_Code_Signing_2009_2
lea esi, [ebx + ebp]
cmp edi, 4
jb 0x401194
mov edx, dword [esi]
cmp edx, dword [ecx]
jne 0x4011b8
sub eax, 4
add ecx, 4
add esi, 4
cmp eax, 4
jae 0x401180
test eax, eax
je 0x4011c4
mov dl, byte [ecx]
cmp dl, byte [esi]
jne 0x4011b8
cmp eax, 1
jbe 0x4011c4
mov dl, byte [ecx + 1]
cmp dl, byte [esi + 1]
jne 0x4011b8
cmp eax, 2
jbe 0x4011c4
mov al, byte [ecx + 2]
cmp al, byte [esi + 2]
je 0x4011c4
inc ebp
cmp ebp, dword [esp + 0x14]
jb 0x401171
jmp 0x4012ec
mov ecx, dword [str.2010_CA]
push 0
add ebp, ebx
lea eax, [edi + ebp - 0xc]
mov edi, dword [sym.imp.KERNEL32.dll_CreateFileW]
mov dword [eax], ecx
mov edx, dword [0x4020f4]
push 0x80
mov dword [eax + 4], edx
mov ecx, dword [0x4020f8]
push 2
mov dword [eax + 8], ecx
mov edx, dword [0x4020fc]
push 0
push 0
mov dword [eax + 0xc], edx
mov cx, word [0x402100]
push 0x40000000
push section..data
mov word [eax + 0x10], cx
call edi
mov esi, eax
cmp esi, 0xffffffff
je 0x40122f
mov eax, dword [esp + 0x14]
push 0
lea edx, [esp + 0x18]
push edx
push eax
jmp 0x4012d1
xor ecx, ecx
push 0x206
push ecx
lea edx, [esp + 0x22]
push edx
mov word [esp + 0x24], cx
call fcn.004015a0
mov esi, dword [sym.imp.USER32.dll_wsprintfW]
push section..data
lea eax, [esp + 0x28]
push 0x4020e8
push eax
call esi
lea ecx, [esp + 0x30]
push 0x5c
push ecx
call fcn.00401540
xor edx, edx
mov word [eax], dx
push str.cmdlineparsertmp.dll
lea eax, [esp + 0x3c]
push eax
mov ecx, eax
push str._s_s
push ecx
call esi
add esp, 0x30
push 1
lea edx, [esp + 0x1c]
push edx
push section..data
call dword [sym.imp.KERNEL32.dll_MoveFileExW]
cmp eax, 1
sete al
mov byte [esp + 0x13], al
test al, al
je 0x4012ec
push 0
push 0x80
push 2
push 0
push 0
push 0x40000000
push section..data
call edi
mov esi, eax
cmp esi, 0xffffffff
je 0x4012e7
mov ecx, dword [esp + 0x14]
push 0
lea eax, [esp + 0x18]
push eax
push ecx
push ebx
push esi
call dword [sym.imp.KERNEL32.dll_WriteFile]
push esi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov byte [esp + 0x13], 1
jmp 0x4012ec
mov byte [esp + 0x13], 0
pop esi
push ebx
push 0
call dword [sym.imp.KERNEL32.dll_GetProcessHeap]
push eax
call dword [sym.imp.KERNEL32.dll_HeapFree]
mov al, byte [esp + 0xf]
pop edi
pop ebp
pop ebx
add esp, 0x210
ret
Function at 0x401310
Capabilities:
Create http request
Query or enumerate registry value
Set registry value

Disassembly:
sub esp, 0x18
push esi
lea eax, [esp + 0xc]
push eax
mov esi, 1
push esi
push 0
push str.SoftWareSogouExplorer
push 0x80000001
mov dword [esp + 0x20], 0
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
mov eax, dword [esp + 0xc]
test eax, eax
je 0x401461
lea ecx, [esp + 0x10]
push ecx
push 0
lea edx, [esp + 0x1c]
push edx
push 0
push 0x4021ac
push eax
mov dword [esp + 0x2c], 0
mov dword [esp + 0x28], 0
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
test eax, eax
je 0x401461
cmp eax, 2
jne 0x401456
call fcn.00401120
test al, al
je 0x401456
push 4
lea eax, [esp + 0x1c]
push eax
push 4
push 0x4021ac
push str.SoftWareSogouExplorer
push 0x80000001
mov dword [esp + 0x30], esi
call dword [sym.imp.SHLWAPI.dll_SHSetValueW]
lea ecx, [esp + 4]
push ecx
push 0x403880
lea edx, [esp + 0x10]
push edx
push 0x4021a8
push str.SoftwareSogouExplorer
mov dword [esp + 0x1c], esi
mov esi, dword [sym.imp.SHLWAPI.dll_SHGetValueA]
push 0x80000001
mov dword [esp + 0x1c], 0x80
call esi
lea eax, [esp + 4]
push eax
push 0x403900
lea ecx, [esp + 0x10]
push ecx
push str.Version
push str.SoftwareSogouExplorer
push 0x80000002
mov dword [esp + 0x1c], 0x80
call esi
lea edx, [esp + 4]
push edx
push 0x403800
lea eax, [esp + 0x10]
push eax
push str.Region
push str.SoftwareSogouExplorer
push 0x80000002
mov dword [esp + 0x1c], 0x80
call esi
push 0
push 0
push 0
push 0
push 0x40217c
call dword [sym.imp.WININET.dll_InternetOpenA]
push str.http:__ping.ie.sogou.com_dupdate.gif_
mov dword [0x403980], eax
call fcn.00401000
add esp, 4
mov ecx, dword [esp + 0xc]
push ecx
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
xor eax, eax
pop esi
add esp, 0x18
ret

Function at 0x401470
Capabilities:
Accept command line arguments
Terminate process

Disassembly:
push ecx
push esi
call dword [sym.imp.KERNEL32.dll_GetCommandLineW]
lea ecx, [esp + 4]
push ecx
push eax
mov dword [esp + 0xc], 0
call dword [sym.imp.SHELL32.dll_CommandLineToArgvW]
test eax, eax
je 0x4014cb
mov edx, dword [eax + 4]
test edx, edx
je 0x4014cb
cmp word [edx], 0
je 0x4014cb
mov eax, edx
lea esi, [eax + 2]
mov cx, word [eax]
add eax, 2
test cx, cx
jne 0x4014a2
sub eax, esi
sar eax, 1
lea eax, [eax + eax + 2]
push eax
push edx
push section..data
call fcn.00401500
push 0
call fcn.00401310
add esp, 0x10
call dword [sym.imp.KERNEL32.dll_GetCurrentProcessId]
push eax
push 0
push 1
call dword [sym.imp.KERNEL32.dll_OpenProcess]
mov esi, eax
push 0
push esi
call dword [sym.imp.KERNEL32.dll_TerminateProcess]
push esi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
xor eax, eax
pop esi
pop ecx
ret
Function at 0x402910
Capabilities:
Access peb ldr_data

Disassembly:
push 0xffffffffffffffff
push 0x436145
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
push ecx
mov eax, dword [esp + 0x14]
push ebx
push ebp
push esi
push edi
mov esi, ecx
push eax
push 0x101
mov dword [esp + 0x18], esi
call sub.MFC42u.DLL_CDialog::CDialog
mov cl, byte [esp + 0x24]
mov dl, byte [esp + 0x24]
lea edi, [esi + 0x60]
xor ebp, ebp
mov dword [esp + 0x1c], ebp
mov byte [edi + 0x20], cl
mov dword [edi + 0x24], ebp
mov dword [edi + 0x28], ebp
mov dword [edi + 0x2c], ebp
mov byte [edi + 0x30], dl
mov dword [edi + 0x34], ebp
mov dword [edi + 0x38], ebp
mov dword [edi + 0x3c], ebp
lea ebx, [esi + 0xc0]
mov byte [esp + 0x1c], 1
mov ecx, ebx
call sub.MFC42u.DLL_CWnd::CWnd
mov dword [ebx], 0x43a1f0
lea ebx, [esi + 0x100]
mov byte [esp + 0x1c], 2
mov ecx, ebx
call sub.MFC42u.DLL_CWnd::CWnd
mov dword [ebx], 0x43a1f0
lea ebx, [esi + 0x140]
mov byte [esp + 0x1c], 3
mov ecx, ebx
call sub.MFC42u.DLL_CString::CString_3
push ebp
lea ecx, [esi + 0x144]
mov byte [esp + 0x20], 4
call fcn.00409cb0
push ebp
lea ecx, [esi + 0x1a8]
mov byte [esp + 0x20], 5
call fcn.00409aa0
push ebp
lea ecx, [esi + 0x20c]
mov byte [esp + 0x20], 6
call fcn.00409560
push ebp
lea ecx, [esi + 0x26c]
mov byte [esp + 0x20], 7
call fcn.004095c0
push 0x43a1e0
mov ecx, ebx
mov byte [esp + 0x20], 8
mov dword [esi], 0x43a108
call sub.MFC42u.DLL_CString::operator_2
mov ecx, 0x10
xor eax, eax
rep stosd dword es:[edi], eax
lea ecx, [esi + 0xa0]
xor edx, edx
mov dword [ecx], eax
mov dword [ecx + 4], eax
mov dword [ecx + 8], eax
mov dword [ecx + 0xc], eax
lea eax, [esi + 0xb0]
mov dword [esi + 0xb0], edx
mov dword [eax + 4], edx
mov dword [eax + 8], edx
mov dword [eax + 0xc], edx
mov ecx, dword [esp + 0x14]
mov eax, 1
mov dword [esi + 0x68], eax
mov dword [esi + 0x74], eax
mov dword [esi + 0x380], ebp
mov dword [esi + 0x384], ebp
mov dword [esi + 0x37c], ebp
mov dword [esi + 0x388], ebp
mov eax, esi
pop edi
pop esi
pop ebp
pop ebx
mov dword fs:[0], ecx
add esp, 0x10
ret 4
Function at 0x4050c0
Capabilities:
Log keystrokes via polling

Disassembly:
mov eax, dword [esp + 0x10]
push esi
mov esi, ecx
push eax
mov ecx, dword [esp + 0x14]
push ecx
mov ecx, esi
call fcn.00405140
test eax, eax
jne 0x4050e3
mov ecx, esi
call sub.MFC42u.DLL_CWnd::Default
pop esi
ret 0x10
push 0x12
call dword [sym.imp.USER32.dll_GetKeyState]
test ah, 0x80
je 0x405132
cmp word [esp + 0xc], 0
mov eax, dword [esi + 0x74]
jle 0x40511b
cmp eax, 0x14
jge 0x405132
mov ecx, esi
call fcn.004036a0
lea ecx, [esi + 0x26c]
call fcn.00409840
mov eax, 1
pop esi
ret 0x10
cmp eax, 1
jle 0x405132
mov ecx, esi
call fcn.004036e0
lea ecx, [esi + 0x26c]
call fcn.00409840
mov eax, 1
pop esi
ret 0x10

Function at 0x4051d0
Capabilities:
Log keystrokes via polling

Disassembly:
mov eax, dword [esp + 8]
push esi
mov esi, ecx
push eax
mov ecx, dword [esp + 0xc]
push ecx
mov ecx, esi
call fcn.00405140
test eax, eax
je 0x40534d
mov eax, dword [esi + 0x60]
test eax, eax
jne 0x405250
push 1
call dword [sym.imp.USER32.dll_GetKeyState]
test ah, 0x80
je 0x405228
call sub.MFC42u.DLL_AfxGetModuleState
push 0x110
push 0xc
push 0x110
call sub.MFC42u.DLL_AfxFindResourceHandle
push eax
call dword [sym.imp.USER32.dll_LoadCursorW]
push eax
call dword [sym.imp.USER32.dll_SetCursor]
pop esi
ret 8
call sub.MFC42u.DLL_AfxGetModuleState
push 0x111
push 0xc
push 0x111
call sub.MFC42u.DLL_AfxFindResourceHandle
push eax
call dword [sym.imp.USER32.dll_LoadCursorW]
push eax
call dword [sym.imp.USER32.dll_SetCursor]
pop esi
ret 8
cmp eax, 1
jne 0x40527d
call sub.MFC42u.DLL_AfxGetModuleState
push 0x112
push 0xc
push 0x112
call sub.MFC42u.DLL_AfxFindResourceHandle
push eax
call dword [sym.imp.USER32.dll_LoadCursorW]
push eax
call dword [sym.imp.USER32.dll_SetCursor]
pop esi
ret 8
cmp eax, 2
jne 0x4052df
push 0x10
call dword [sym.imp.USER32.dll_GetAsyncKeyState]
test ah, 0x80
je 0x4052b7
call sub.MFC42u.DLL_AfxGetModuleState
push 0x11a
push 0xc
push 0x11a
call sub.MFC42u.DLL_AfxFindResourceHandle
push eax
call dword [sym.imp.USER32.dll_LoadCursorW]
push eax
call dword [sym.imp.USER32.dll_SetCursor]
pop esi
ret 8
call sub.MFC42u.DLL_AfxGetModuleState
push 0x115
push 0xc
push 0x115
call sub.MFC42u.DLL_AfxFindResourceHandle
push eax
call dword [sym.imp.USER32.dll_LoadCursorW]
push eax
call dword [sym.imp.USER32.dll_SetCursor]
pop esi
ret 8
cmp eax, 4
jne 0x40530c
call sub.MFC42u.DLL_AfxGetModuleState
push 0x116
push 0xc
push 0x116
call sub.MFC42u.DLL_AfxFindResourceHandle
push eax
call dword [sym.imp.USER32.dll_LoadCursorW]
push eax
call dword [sym.imp.USER32.dll_SetCursor]
pop esi
ret 8
cmp eax, 5
jne 0x405339
call sub.MFC42u.DLL_AfxGetModuleState
push 0x113
push 0xc
push 0x113
call sub.MFC42u.DLL_AfxFindResourceHandle
push eax
call dword [sym.imp.USER32.dll_LoadCursorW]
push eax
call dword [sym.imp.USER32.dll_SetCursor]
pop esi
ret 8
push 0x7f00
push 0
call dword [sym.imp.USER32.dll_LoadCursorW]
push eax
call dword [sym.imp.USER32.dll_SetCursor]
pop esi
ret 8
Function at 0x40bee0
Capabilities:
Extract resource via kernel32 functions

Disassembly:
push ecx
mov eax, dword [esp + 8]
push ebp
push esi
and eax, 0xffff
push str.STRING
push eax
mov dword [esp + 0x10], ecx
push 0
call dword [sym.imp.KERNEL32.dll_FindResourceW]
mov esi, eax
test esi, esi
je 0x40bf89
push esi
push 0
call dword [sym.imp.KERNEL32.dll_SizeofResource]
mov ebp, eax
test ebp, ebp
je 0x40bf89
push esi
push 0
call dword [sym.imp.KERNEL32.dll_LoadResource]
test eax, eax
je 0x40bf89
push eax
call dword [sym.imp.KERNEL32.dll_LockResource]
test eax, eax
mov dword [esp + 0x10], eax
je 0x40bf89
push ebx
lea ebx, [ebp + 1]
push edi
lea edi, [ebx + ebx]
push edi
call dword [sym.imp.MSVCRT.dll_malloc]
mov ecx, edi
mov esi, eax
mov edx, ecx
xor eax, eax
mov edi, esi
add esp, 4
shr ecx, 2
rep stosd dword es:[edi], eax
mov ecx, edx
push ebx
and ecx, 3
push esi
rep stosb byte es:[edi], al
mov eax, dword [esp + 0x20]
push ebp
push eax
push 0
push 0x3a8
call dword [sym.imp.KERNEL32.dll_MultiByteToWideChar]
mov ecx, dword [esp + 0x10]
push esi
add ecx, 0x60
call sub.MFC42u.DLL_CString::operator_2
push esi
call dword [sym.imp.MSVCRT.dll_free]
add esp, 4
pop edi
pop ebx
pop esi
pop ebp
pop ecx
ret 4

Function at 0x40c9f0
Capabilities:
Get common file path

Disassembly:
push 0xffffffffffffffff
push 0x436aa8
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
push ecx
push edi
mov edi, ecx
mov eax, dword [edi + 0x68]
test eax, eax
jne 0x40ca9a
push esi
lea ecx, [esp + 8]
call sub.MFC42u.DLL_CString::CString_3
push 0x104
push 0x104
lea ecx, [esp + 0x10]
mov dword [esp + 0x1c], 0
call sub.MFC42u.DLL_CString::GetBuffer
push eax
call dword [sym.imp.KERNEL32.dll_GetWindowsDirectoryW]
push 0xffffffffffffffff
lea ecx, [esp + 0xc]
call sub.MFC42u.DLL_CString::ReleaseBuffer
push 0x43c418
lea ecx, [esp + 0xc]
call sub.MFC42u.DLL_CString::operator
mov eax, dword [esp + 8]
push eax
call dword [sym.imp.KERNEL32.dll_LoadLibraryW]
mov esi, eax
test esi, esi
je 0x40ca81
push 0x6a
push esi
call dword [sym.imp.USER32.dll_LoadCursorW]
test eax, eax
je 0x40ca81
push eax
call dword [sym.imp.USER32.dll_CopyIcon]
mov dword [edi + 0x68], eax
push esi
call dword [sym.imp.KERNEL32.dll_FreeLibrary]
lea ecx, [esp + 8]
mov dword [esp + 0x14], 0xffffffff
call sub.MFC42u.DLL_CString::CString
pop esi
mov ecx, dword [esp + 8]
pop edi
mov dword fs:[0], ecx
add esp, 0x10
ret

Function at 0x40cab0
Capabilities:
Query or enumerate registry value

Disassembly:
mov ecx, dword [esp + 8]
mov edx, dword [esp + 4]
sub esp, 0x210
lea eax, [esp]
push esi
push eax
push 1
push 0
push ecx
push edx
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
mov esi, eax
test esi, esi
jne 0x40cb12
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_RegQueryValueW]
mov ecx, dword [esp + 0x220]
lea eax, [esp + 0xc]
push eax
push ecx
call dword [sym.imp.KERNEL32.dll_lstrcpyW]
mov edx, dword [esp + 4]
push edx
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov eax, esi
pop esi
add esp, 0x210
ret 0xc
Function at 0x40cd20
Capabilities:
Create process on windows

Disassembly:
sub esp, 0x618
mov eax, dword [esp + 0x61c]
push ebx
push ebp
mov ebp, dword [esp + 0x628]
push esi
push edi
push ebp
push 0
push 0
push eax
push str.open
mov edi, ecx
push 0
call dword [sym.imp.SHELL32.dll_ShellExecuteW]
mov esi, eax
cmp esi, 0x20
ja 0x40ce3d
lea ecx, [esp + 0x10]
push ecx
push str..htm
push 0x80000000
mov ecx, edi
call fcn.0040cab0
test eax, eax
jne 0x40ce3d
mov ebx, dword [sym.imp.KERNEL32.dll_lstrcatW]
lea edx, [esp + 0x10]
push str._shellopencommand
push edx
call ebx
lea eax, [esp + 0x10]
lea ecx, [esp + 0x10]
push eax
push ecx
push 0x80000000
mov ecx, edi
call fcn.0040cab0
test eax, eax
jne 0x40ce3d
mov edi, dword [sym.imp.MSVCRT.dll_wcsstr]
lea edx, [esp + 0x10]
push 0x43ca30
push edx
call edi
mov esi, eax
add esp, 8
test esi, esi
jne 0x40cde7
lea eax, [esp + 0x10]
push 0x43ca28
push eax
call edi
mov esi, eax
add esp, 8
test esi, esi
jne 0x40cde7
lea ecx, [esp + 0x10]
push ecx
call dword [sym.imp.KERNEL32.dll_lstrlenW]
lea esi, [esp + eax*2 + 0xe]
jmp 0x40cdec
mov word [esi], 0
push 0x43ca24
push esi
call ebx
mov edx, dword [esp + 0x62c]
push edx
push esi
call ebx
push 0
push 0
lea eax, [esp + 0x428]
push 0x208
push eax
lea ecx, [esp + 0x20]
push 0xffffffffffffffff
push ecx
push 0
push 0
call dword [sym.imp.KERNEL32.dll_WideCharToMultiByte]
lea edx, [esp + 0x420]
push ebp
push edx
call dword [sym.imp.KERNEL32.dll_WinExec]
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x618
ret 8
mov eax, esi
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x618
ret 8

Function at 0x40d3a0
Capabilities:
Enumerate pe sections

Disassembly:
sub esp, 0x1c
lea eax, [esp]
push ebx
push ebp
push esi
push edi
mov edi, dword [esp + 0x30]
push 0x1c
push eax
push edi
call dword [sym.imp.KERNEL32.dll_VirtualQuery]
test eax, eax
je 0x40d416
mov ecx, dword [esp + 0x38]
mov edx, dword [esp + 0x34]
mov esi, dword [esp + 0x14]
push ecx
push edx
push esi
call dword [sym.imp.KERNEL32.dll_GetModuleFileNameW]
test eax, eax
je 0x40d416
mov eax, dword [esi + 0x3c]
xor ecx, ecx
add eax, esi
sub edi, esi
xor ebp, ebp
mov cx, word [eax + 0x14]
lea edx, [ecx + eax + 0x18]
xor ecx, ecx
mov cx, word [eax + 6]
test ecx, ecx
jbe 0x40d416
lea eax, [edx + 0x10]
mov edx, dword [eax]
mov esi, dword [eax - 8]
mov ebx, dword [eax - 4]
cmp edx, esi
ja 0x40d404
mov edx, esi
cmp edi, ebx
jb 0x40d40e
add edx, ebx
cmp edi, edx
jbe 0x40d420
inc ebp
add eax, 0x28
cmp ebp, ecx
jb 0x40d3f6
pop edi
pop esi
pop ebp
xor eax, eax
pop ebx
add esp, 0x1c
ret
mov edx, dword [esp + 0x3c]
mov eax, dword [esp + 0x40]
inc ebp
sub edi, ebx
mov dword [edx], ebp
mov dword [eax], edi
pop edi
pop esi
pop ebp
mov eax, 1
pop ebx
add esp, 0x1c
ret

Function at 0x40d570
Capabilities:
Write file on windows

Disassembly:
mov ecx, dword [esp + 4]
sub esp, 0x804
lea eax, [esp + 0x80c]
lea edx, [esp + 4]
push esi
push eax
push ecx
push edx
call dword [sym.imp.USER32.dll_wvsprintfW]
mov esi, eax
lea eax, [esp + 4]
push 0
push eax
mov eax, dword [0x46b330]
lea ecx, [esi + esi]
lea edx, [esp + 0x10]
push ecx
push edx
push eax
call dword [sym.imp.KERNEL32.dll_WriteFile]
mov eax, esi
pop esi
add esp, 0x804
ret
Function at 0x40d770
Capabilities:
Parse pe header

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x43d230
push 0x435df4
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x2c
push ebx
push esi
push edi
mov dword [ebp - 0x18], esp
push 0x1c
lea eax, [ebp - 0x34]
push eax
mov ecx, dword [ebp + 8]
push ecx
call dword [sym.imp.KERNEL32.dll_VirtualQuery]
mov dword [ebp - 4], 0
mov ecx, dword [ebp - 0x30]
mov dword [ebp - 0x38], ecx
cmp word [ecx], 0x5a4d
jne 0x40d80b
mov eax, dword [ecx + 0x3c]
add eax, ecx
mov dword [ebp - 0x3c], eax
cmp dword [eax], 0x4550
jne 0x40d80b
mov edx, dword [eax + 0xd8]
lea edi, [edx + ecx]
mov esi, dword [ebp + 0xc]
cmp esi, edi
jb 0x40d80b
mov eax, dword [eax + 0xdc]
add eax, edx
add eax, ecx
cmp esi, eax
jae 0x40d80b
mov dword [ebp - 4], 0xffffffff
mov al, 1
mov ecx, dword [ebp - 0x10]
mov dword fs:[0], ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
mov dword [ebp - 4], 0xffffffff
xor al, al
mov ecx, dword [ebp - 0x10]
mov dword fs:[0], ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret