joyce8/EMBER2024-capa huggingface dataset:
Function at 0x401632
Capabilities:
Delete registry key
Delete registry value

Disassembly:
mov eax, 0x405cec
call sub.MSVCRT.dll__EH_prolog
sub esp, 0xba4
push esi
push edi
mov esi, ecx
xor edi, edi
mov dword [ebp - 0x18], esi
mov dword [ebp - 0x14], edi
call fcn.0040183b
test eax, eax
je 0x40182a
push 2
push edi
mov dword [ebp - 0x14], 1
call dword [sym.imp.ole32.dll_CoInitializeEx]
mov dword [ebp - 0x10], edi
push 0x17
push edi
push 0x406620
lea ecx, [ebp - 0x10]
mov dword [ebp - 4], edi
call fcn.00401e48
test eax, eax
jl 0x4016ac
cmp dword [ebp - 0x10], edi
jne 0x401694
push 0x80004003
call fcn.00401fe8
mov eax, dword [ebp - 0x10]
push edi
push edi
push edi
mov ecx, dword [eax]
push 0x44
push edi
push eax
call dword [ecx + 0x4c]
push edi
lea ecx, [ebp - 0x10]
call fcn.00401ec6
mov ecx, esi
call fcn.0040197f
lea eax, [esi + 4]
push eax
call fcn.00402da8
cmp dword [esi + 0x418], edi
pop ecx
jne 0x4016d2
add esi, 0x20c
push esi
call fcn.00402da8
pop ecx
mov esi, dword [sym.imp.SHLWAPI.dll_SHDeleteKeyW]
mov edi, 0x80000002
push str.SOFTWAREMicrosoftWindowsCurrentVersionUninstallQQToolbar
push edi
call esi
push str.SOFTWARETencentQQToolbar
push edi
call esi
test eax, eax
je 0x4016fc
push str.RegistryMachineSOFTWARETencentQQToolbar
call fcn.0040143d
pop ecx
mov edi, dword [sym.imp.SHLWAPI.dll_SHDeleteValueW]
push ebx
mov ebx, str.ITBarLayout
mov esi, 0x80000001
push ebx
push str.SoftwareMicrosoftInternet_ExplorerToolbarWebBrowser
push esi
call edi
push ebx
push str.SoftwareMicrosoftInternet_ExplorerToolbarExplorer
push esi
call edi
push ebx
push str.SoftwareMicrosoftInternet_ExplorerToolbarShellBrowser
push esi
call edi
mov ebx, dword [ebp - 0x18]
mov ecx, ebx
call fcn.00401cc2
xor edx, edx
cmp dword [ebx + 0x418], edx
jne 0x401801
mov ecx, 0x81
xor eax, eax
lea edi, [ebp - 0x3ae]
mov word [ebp - 0x3b0], dx
rep stosd dword es:[edi], eax
stosw word es:[edi], ax
push edx
lea eax, [ebp - 0x3b0]
push 0x104
push eax
call fcn.00404ee4
add esp, 0xc
lea eax, [ebp - 0x3b0]
push eax
push esi
call dword [sym.imp.SHLWAPI.dll_SHDeleteKeyW]
test eax, eax
je 0x4017fa
and word [ebp - 0x1a8], 0
push 0x63
pop ecx
xor eax, eax
lea edi, [ebp - 0x1a6]
and word [ebp - 0xbb0], 0
rep stosd dword es:[edi], eax
stosw word es:[edi], ax
mov ecx, 0x1ff
xor eax, eax
lea edi, [ebp - 0xbae]
push 0xc8
rep stosd dword es:[edi], eax
stosw word es:[edi], ax
lea eax, [ebp - 0x1a8]
push eax
call fcn.00401538
pop ecx
test eax, eax
pop ecx
je 0x4017fa
lea eax, [ebp - 0x3b0]
push eax
lea eax, [ebp - 0x1a8]
push eax
push str.RegistryUSER_ws_ws
lea eax, [ebp - 0xbb0]
push 0x400
push eax
call dword [sym.imp.MSVCRT.dll__snwprintf]
lea eax, [ebp - 0xbb0]
push eax
call fcn.0040143d
add esp, 0x18
mov ecx, ebx
call fcn.00401c04
push str.TB0
push 0
push str.http:__soso.com
call dword [sym.imp.WININET.dll_InternetSetCookieW]
call fcn.004010d1
mov eax, dword [ebp - 0x10]
or dword [ebp - 4], 0xffffffff
test eax, eax
pop ebx
je 0x40182a
mov ecx, dword [eax]
push eax
call dword [ecx + 8]
mov ecx, dword [ebp - 0xc]
mov eax, dword [ebp - 0x14]
pop edi
pop esi
mov dword fs:[0], ecx
leave
ret
Function at 0x401c04
Capabilities:
Delete registry key
Query or enumerate registry key

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x414
push ebx
push esi
push edi
xor edx, edx
mov ecx, 0x81
xor eax, eax
lea edi, [ebp - 0x20a]
mov word [ebp - 0x20c], dx
rep stosd dword es:[edi], eax
stosw word es:[edi], ax
mov esi, 0x104
lea eax, [ebp - 0x20c]
push esi
push eax
mov dword [ebp - 4], edx
push edx
mov ebx, 0x80000003
push ebx
call dword [sym.imp.ADVAPI32.dll_RegEnumKeyW]
cmp eax, 0x103
je 0x401cbd
push esi
lea eax, [ebp - 0x20c]
push 0x408590
push eax
call fcn.00403861
and word [ebp - 0x414], 0
mov ecx, 0x81
xor eax, eax
lea edi, [ebp - 0x412]
rep stosd dword es:[edi], eax
stosw word es:[edi], ax
push 0
lea eax, [ebp - 0x414]
push esi
push eax
call fcn.00404ee4
lea eax, [ebp - 0x414]
push esi
push eax
lea eax, [ebp - 0x20c]
push eax
call fcn.00403861
add esp, 0x24
lea eax, [ebp - 0x20c]
push eax
push ebx
call dword [sym.imp.SHLWAPI.dll_SHDeleteKeyW]
inc dword [ebp - 4]
lea eax, [ebp - 0x20c]
push esi
push eax
push dword [ebp - 4]
jmp 0x401c40
pop edi
pop esi
pop ebx
leave
ret

Function at 0x40231e
Capabilities:
Get common file path

Disassembly:
push esi
mov esi, dword [esp + 8]
push dword [esp + 0xc]
push esi
call dword [sym.imp.KERNEL32.dll_GetSystemDirectoryW]
test eax, eax
jne 0x402334
pop esi
ret
push esi
call dword [sym.imp.SHLWAPI.dll_PathRemoveBlanksW]
push esi
call dword [sym.imp.SHLWAPI.dll_PathRemoveBackslashW]
push esi
call dword [sym.imp.SHLWAPI.dll_PathRemoveFileSpecW]
push 1
pop eax
pop esi
ret
Function at 0x4031e0
Capabilities:
Get file attributes

Disassembly:
push ebp
mov ebp, esp
push ecx
and dword [ebp - 4], 0
cmp dword [0x40b988], 0
push ebx
mov ebx, dword [sym.imp.KERNEL32.dll_GetVersion]
push esi
push edi
jne 0x403228
call ebx
test eax, 0x80000000
je 0x40321e
push str.___.___
call dword [sym.imp.KERNEL32.dll_GetFileAttributesW]
push str.Unicows.dll
call dword [sym.imp.KERNEL32.dll_GetModuleHandleA]
mov dword [0x40b98c], eax
mov dword [0x40b988], 1
mov eax, dword [0x40b98c]
mov esi, dword [sym.imp.KERNEL32.dll_GetProcAddress]
test eax, eax
je 0x403244
push dword [ebp + 0x10]
push eax
call esi
test eax, eax
mov dword [ebp - 4], eax
jne 0x403275
mov edi, dword [ebp + 0xc]
mov eax, dword [edi]
test eax, eax
jne 0x40326c
call ebx
test eax, 0x80000000
mov eax, dword [ebp + 8]
je 0x403260
push dword [eax + 8]
call dword [eax]
jmp 0x403266
push dword [eax + 0xc]
call dword [eax + 4]
test eax, eax
je 0x403275
mov dword [edi], eax
push dword [ebp + 0x10]
push eax
call esi
mov dword [ebp - 4], eax
mov eax, dword [ebp - 4]
pop edi
pop esi
pop ebx
leave
ret 0xc

Function at 0x403702
Capabilities:
Check os version

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x114
lea eax, [ebp - 0x114]
mov dword [ebp - 0x114], 0x114
push eax
call dword [sym.imp.KERNEL32.dll_GetVersionExW]
cmp dword [ebp - 0x104], 2
jne 0x403739
cmp dword [ebp - 0x110], 6
jb 0x403739
push 1
pop eax
leave
ret
xor eax, eax
leave
ret

Function at 0x4038ac
Capabilities:
Create process on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x464
push esi
push edi
push 0x10
xor eax, eax
pop ecx
lea edi, [ebp - 0x50]
mov dword [ebp - 0x54], 0x44
xor esi, esi
rep stosd dword es:[edi], eax
push 0x10
lea eax, [ebp - 0x10]
push esi
push eax
call sub.MSVCRT.dll_memset
mov ecx, 0x103
xor eax, eax
lea edi, [ebp - 0x462]
mov word [ebp - 0x464], si
rep stosd dword es:[edi], eax
add esp, 0xc
cmp dword [ebp + 0xc], esi
stosw word es:[edi], ax
je 0x403918
push dword [ebp + 0xc]
lea eax, [ebp - 0x464]
push dword [ebp + 8]
push str.__s___s
push 0x207
push eax
call dword [sym.imp.MSVCRT.dll__snwprintf]
add esp, 0x14
jmp 0x403930
push 0x207
lea eax, [ebp - 0x464]
push dword [ebp + 8]
push eax
call dword [sym.imp.MSVCRT.dll_wcsncpy]
add esp, 0xc
lea eax, [ebp - 0x10]
push eax
lea eax, [ebp - 0x54]
push eax
push esi
push esi
push esi
push esi
push esi
lea eax, [ebp - 0x464]
push esi
push eax
push esi
call dword [sym.imp.KERNEL32.dll_CreateProcessW]
test eax, eax
je 0x403974
cmp dword [ebp + 0x10], esi
jbe 0x403961
push dword [ebp + 0x10]
push dword [ebp - 0x10]
call dword [sym.imp.KERNEL32.dll_WaitForSingleObject]
push dword [ebp - 0x10]
mov esi, dword [sym.imp.KERNEL32.dll_CloseHandle]
call esi
push dword [ebp - 0xc]
call esi
push 1
pop eax
pop edi
pop esi
leave
ret
Function at 0x403a4f
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
push dword [ebp + 0x18]
call fcn.00403a49
cmp dword [ebp + 0x10], 0
pop ecx
je 0x403aaa
cmp dword [ebp + 0x10], eax
jl 0x403aaa
mov ecx, dword [ebp + 0xc]
push esi
xor esi, esi
and word [ecx], 0
cmp dword [ebp + 0x18], esi
jle 0x403aa4
push ebx
mov eax, esi
push 4
cdq
pop ebx
idiv ebx
mov al, byte [edx + 0x4064b4]
mov edx, dword [ebp + 0x14]
add al, byte [ebp + 8]
xor al, byte [esi + edx]
xor al, 0x80
movzx ax, al
mov word [ecx], ax
and word [ecx + 2], 0
inc esi
inc ecx
inc ecx
cmp esi, dword [ebp + 0x18]
jl 0x403a76
pop ebx
push 1
pop eax
pop esi
pop ebp
ret
xor eax, eax
pop ebp
ret
Function at 0x403ea6
Capabilities:
Check if file exists
Get common file path

Disassembly:
push ebp
mov ebp, esp
push ebx
push esi
push edi
push 1
pop ebx
test byte [0x409dd1], bl
jne 0x403ec7
or byte [0x409dd1], bl
call fcn.0040407f
mov dword [0x409db8], eax
mov eax, dword [ebp + 8]
cmp eax, 0xc
ja case.0x403ed3.8
jmp dword [eax*4 + 0x40404b]
push dword [ebp + 0x10]
mov esi, dword [ebp + 0xc]
and word [esi], 0
push esi
call fcn.00404f9c
pop ecx
test eax, eax
pop ecx
je 0x403eff
push esi
call dword [sym.imp.SHLWAPI.dll_PathFileExistsW]
test eax, eax
jne 0x404040
push dword [ebp + 0x10]
push esi
call fcn.004040ba
jmp 0x403f15
push dword [ebp + 0x10]
push dword [ebp + 0xc]
call fcn.0040231e
pop ecx
pop ecx
jmp 0x404040
push dword [ebp + 0x10]
push dword [ebp + 0xc]
call dword [sym.imp.KERNEL32.dll_GetSystemDirectoryW]
jmp 0x404040
push dword [ebp + 0xc]
push dword [ebp + 0x10]
call dword [sym.imp.KERNEL32.dll_GetTempPathW]
jmp 0x404040
push dword [ebp + 0x10]
push dword [ebp + 0xc]
call fcn.0040231e
pop ecx
pop ecx
push str.downlo1
jmp 0x404037
push ebx
push 0x1a
push dword [ebp + 0xc]
push 0
call dword [sym.imp.SHELL32.dll_SHGetSpecialFolderPathW]
test eax, eax
je case.0x403ed3.8
mov esi, dword [sym.imp.SHLWAPI.dll_PathAppendW]
push str.LocalVirtualStoreProgram_Files
push dword [ebp + 0xc]
call esi
push str.TENCENTQQToolbar
push dword [ebp + 0xc]
jmp 0x403fc0
mov edi, dword [ebp + 0xc]
push ebx
push 0x1a
push edi
push 0
call dword [sym.imp.SHELL32.dll_SHGetSpecialFolderPathW]
test eax, eax
je case.0x403ed3.8
cmp dword [0x409db8], 0
mov esi, dword [sym.imp.SHLWAPI.dll_PathAppendW]
je 0x403fba
push edi
call dword [sym.imp.SHLWAPI.dll_PathRemoveFileSpecW]
push str.LocalLow
push edi
call esi
push str.TENCENTQQToolbar
push edi
call esi
jmp 0x404040
push ebx
push 0x1c
push dword [ebp + 0xc]
push 0
call dword [sym.imp.SHELL32.dll_SHGetSpecialFolderPathW]
test eax, eax
je case.0x403ed3.8
push str.TENCENTQQToolbar
jmp 0x404037
push dword [ebp + 0x10]
push dword [ebp + 0xc]
push 6
call fcn.00403ea6
add esp, 0xc
push str.btns
jmp 0x404037
push dword [ebp + 0x10]
push dword [ebp + 0xc]
push 6
call fcn.00403ea6
add esp, 0xc
push str.dlls
jmp 0x404037
push dword [ebp + 0x10]
push dword [ebp + 0xc]
push 6
call fcn.00403ea6
add esp, 0xc
push str.users
jmp 0x404037
push dword [ebp + 0x10]
push dword [ebp + 0xc]
push 6
call fcn.00403ea6
add esp, 0xc
push str.config
push dword [ebp + 0xc]
call dword [sym.imp.SHLWAPI.dll_PathAppendW]
mov eax, ebx
jmp 0x404046
xor eax, eax
pop edi
pop esi
pop ebx
pop ebp
ret

Function at 0x40407f
Capabilities:
Check os version

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x114
lea eax, [ebp - 0x114]
mov dword [ebp - 0x114], 0x114
push eax
call dword [sym.imp.KERNEL32.dll_GetVersionExW]
cmp dword [ebp - 0x104], 2
jne 0x4040b6
cmp dword [ebp - 0x110], 6
jb 0x4040b6
push 1
pop eax
leave
ret
xor eax, eax
leave
ret
Function at 0x404464
Capabilities:
Check if file exists
Delete file

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x208
and word [ebp - 0x208], 0
push esi
mov edx, ecx
push edi
mov ecx, 0x81
xor eax, eax
lea edi, [ebp - 0x206]
push 0
rep stosd dword es:[edi], eax
stosw word es:[edi], ax
push 1
lea eax, [ebp - 0x208]
push 0x103
add edx, 4
push eax
push edx
call fcn.0040586b
add esp, 0x14
mov esi, eax
lea eax, [ebp - 0x208]
push eax
call dword [sym.imp.SHLWAPI.dll_PathFileExistsW]
test eax, eax
je 0x4044d7
lea eax, [ebp - 0x208]
push eax
call dword [sym.imp.SHLWAPI.dll_PathIsDirectoryW]
test eax, eax
jne 0x4044d7
lea eax, [ebp - 0x208]
push eax
call dword [sym.imp.KERNEL32.dll_DeleteFileW]
mov eax, esi
pop edi
pop esi
leave
ret

Function at 0x40473a
Capabilities:
Check os version

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x114
push edi
push 0x44
pop ecx
xor eax, eax
lea edi, [ebp - 0x110]
rep stosd dword es:[edi], eax
lea eax, [ebp - 0x114]
mov dword [ebp - 0x114], 0x114
push eax
call dword [sym.imp.KERNEL32.dll_GetVersionExW]
test eax, eax
pop edi
je 0x4047c7
cmp dword [ebp - 0x104], 1
jne 0x404783
cmp dword [ebp - 0x110], 4
jne 0x4047c7
mov al, 1
leave
ret
cmp dword [ebp - 0x104], 2
jne 0x4047c7
push 5
pop eax
cmp dword [ebp - 0x110], eax
jne 0x4047be
cmp dword [ebp - 0x10c], 0
jne 0x4047a4
mov al, 2
leave
ret
cmp dword [ebp - 0x10c], 1
jne 0x4047b1
mov al, 3
leave
ret
cmp dword [ebp - 0x10c], 2
jne 0x4047c7
mov al, 4
leave
ret
cmp dword [ebp - 0x110], 6
je 0x4047c9
xor al, al
leave
ret

Function at 0x404a2e
Capabilities:
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
sub esp, 0xc
lea eax, [ebp - 8]
and dword [ebp - 4], 0
push eax
lea eax, [ebp - 4]
push eax
lea eax, [ebp - 0xc]
push eax
push str.Owner_ID2
push str.SOFTWAREMicrosoftWindowsCurrentVersion
push 0x80000002
mov dword [ebp - 8], 2
call dword [sym.imp.SHLWAPI.dll_SHGetValueW]
mov ax, word [ebp - 4]
leave
ret
Function at 0x405a94
Capabilities:
Get file version info

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x34
push ebx
push esi
mov esi, ecx
push edi
push 0
lea ebx, [esi + 0x30]
push ebx
call sub.VERSION.dll_GetFileVersionInfoSizeW
mov edi, eax
test edi, edi
je 0x405ae4
push edi
call sub.MSVCRT.dll_void____cdecl_operator_new_unsigned_int_
push edi
push 0
push eax
mov dword [esi + 8], eax
call sub.MSVCRT.dll_memset
add esp, 0x10
push dword [esi + 8]
push edi
push 0
push ebx
call sub.VERSION.dll_GetFileVersionInfoW
test eax, eax
je 0x405ae4
lea eax, [ebp - 0x34]
mov ecx, esi
push eax
call fcn.00405971
test eax, eax
jne 0x405aeb
xor eax, eax
jmp 0x405b8d
mov eax, dword [ebp - 0x2c]
mov edi, 0x104
mov ecx, eax
mov word [esi + 0xe], ax
mov eax, dword [ebp - 0x28]
push edi
shr ecx, 0x10
mov word [esi + 0xc], cx
mov ecx, eax
shr ecx, 0x10
mov word [esi + 0x12], ax
mov eax, dword [ebp - 0x24]
mov word [esi + 0x10], cx
mov ecx, eax
shr ecx, 0x10
mov word [esi + 0x16], ax
mov eax, dword [ebp - 0x20]
mov word [esi + 0x14], cx
mov ecx, eax
mov word [esi + 0x1a], ax
mov eax, dword [ebp - 0x1c]
mov dword [esi + 0x1c], eax
mov eax, dword [ebp - 0x18]
mov dword [esi + 0x20], eax
mov eax, dword [ebp - 0x14]
mov dword [esi + 0x24], eax
mov eax, dword [ebp - 0x10]
mov dword [esi + 0x28], eax
mov eax, dword [ebp - 0xc]
mov dword [esi + 0x2c], eax
lea eax, [esi + 0x238]
shr ecx, 0x10
mov word [esi + 0x18], cx
push eax
push 0x4092dc
mov ecx, esi
call fcn.004059e0
lea eax, [esi + 0x648]
push edi
push eax
push 0x4092bc
mov ecx, esi
call fcn.004059e0
lea eax, [esi + 0x440]
push edi
push eax
push 0x4092a4
mov ecx, esi
call fcn.004059e0
push 1
pop eax
pop edi
pop esi
pop ebx
leave
ret

Function at 0x403d61
Capabilities:
Encode data using xor

Disassembly:
push eax
push ebx
mov eax, 0x499
mov ecx, 0x404498
mov bl, byte [ecx]
sub bl, 0xf2
rol bl, 2
sub bl, cl
ror bl, 1
mov byte [ecx], bl
dec ecx
dec eax
jne 0x403d6d
mov eax, 0x261d
mov ecx, 0x403764
mov bl, byte [ecx]
rol bl, 7
ror bl, 2
sub bl, cl
xor bl, 0x91
mov byte [ecx], bl
dec ecx
dec eax
jne 0x403d8a
pop ebx
pop eax
add ecx, 0x2c1a
jmp ecx
Function at 0x401000
Capabilities:
Log keystrokes via polling

Disassembly:
xor eax, eax
mov edx, 0
push edx
call dword [sym.imp.user32.dll_GetKeyState]
mov dword [0x4161ea], eax
push 0
pop eax
xor edx, edx
push edx
call dword [sym.imp.user32.dll_GetKeyState]
mov dword [0x41665d], eax
push 0
pop eax
mov ebx, edi
sub ebx, 0xd07
inc ebx
mov ecx, ebx
sub ecx, edi
add ecx, dword [0x416523]
mov eax, ecx
shr eax, 5
add eax, esi
sub eax, 0x54f
mov edx, eax
sub dword [0x416b4e], edx
lea edx, [eax + 0x416c89]
add edx, dword [0x416811]
shr edx, 6
mov eax, edx
rol eax, 7
sub eax, dword [0x4163c5]
mov edx, eax
add edx, 0x803
inc edx
ror edx, 4
sub edx, edi
sub dword [0x416006], edx
call fcn.00402e08
mov dword [0x4165ac], eax
mov ecx, 0x30
push ecx
mov dword [0x416379], 0
mov ebx, dword [0x416379]
push ebx
mov esi, dword [sym.imp.GDI32.DLL_GetRasterizerCaps]
call esi
xor ebx, ebx
add ebx, 0xf6a
ja 0x4010b8
ror ebx, 1
shl ebx, 6
sub ebx, eax
add ebx, edi
add ebx, 0x288
shr ebx, 2
sub ebx, 0x34
dec ebx
ror ebx, 1
sub dword [0x4160eb], ebx
ret
Function at 0x402bf0
Capabilities:
Access peb ldr_data

Disassembly:
push 0xffffffffffffffff
push 0x4111f8
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x44
push ebx
push ebp
push esi
push edi
mov edi, ecx
lea eax, [edi + 0x70]
mov ecx, eax
mov edx, dword [ecx]
mov dword [esp + 0x24], edx
mov edx, dword [edi + 0x20]
mov eax, dword [ecx + 4]
push edx
mov dword [esp + 0x2c], eax
mov eax, dword [ecx + 8]
add eax, 0xffffffa2
mov ecx, dword [ecx + 0xc]
mov dword [esp + 0x28], eax
add eax, 0x3c
mov dword [esp + 0x34], ecx
mov dword [esp + 0x30], eax
call dword [sym.imp.USER32.dll_GetDC]
push eax
call sub.MFC42.DLL_CDC::FromHandle
mov ecx, dword [esp + 0x30]
mov edx, dword [esp + 0x28]
push 0
mov esi, eax
mov eax, dword [esp + 0x28]
push 0x808080
push 1
push ecx
push eax
push edx
push eax
sub esp, 0x10
mov ebx, esp
push esi
mov dword [ebx], eax
mov eax, dword [esp + 0x5c]
mov dword [ebx + 4], edx
mov dword [ebx + 8], eax
mov dword [ebx + 0xc], ecx
call fcn.00401630
add esp, 0x30
lea ecx, [esp + 0x24]
push 0
push 0
push ecx
mov ecx, esi
call sub.MFC42.DLL_CDC::Draw3dRect
mov edx, dword [esi]
lea eax, [edi + 0xf4]
push eax
mov ecx, esi
call dword [edx + 0x30]
mov edx, dword [esi]
push 0xffffff
mov ecx, esi
call dword [edx + 0x38]
push 1
mov ecx, esi
call sub.MFC42.DLL_CDC::SetBkMode
mov ecx, dword [0x41c970]
call fcn.00405730
mov ebx, eax
mov dword [esp + 0x14], 0
mov dword [esp + 0x10], ebx
fild qword [esp + 0x10]
fmul qword [edi + 0x258]
call sub.MSVCRT.dll__ftol
mov ecx, eax
mov eax, ebx
xor edx, edx
mov ebp, 0x1770
div ebp
mov eax, 0x51eb851f
mul edx
shr edx, 5
mov eax, 0x57619f1
push edx
mul ebx
shr edx, 7
push edx
mov eax, ecx
xor edx, edx
mov ebx, ebp
div ebx
mov eax, 0x51eb851f
mul edx
shr edx, 5
mov eax, 0x57619f1
push edx
mul ecx
shr edx, 7
push edx
lea eax, [esp + 0x44]
push str._d:_02d__d:_02d
push eax
call dword [sym.imp.MSVCRT.dll_sprintf]
add esp, 0x18
lea ecx, [esp + 0x34]
push ecx
lea ecx, [esp + 0x14]
call sub.MFC42.DLL_CString::CString
mov eax, dword [esp + 0x10]
lea edx, [esp + 0x1c]
push edx
mov ecx, dword [eax - 8]
push ecx
push eax
mov eax, dword [esi + 8]
push eax
call dword [sym.imp.GDI32.dll_GetTextExtentPoint32A]
lea ecx, [esp + 0x10]
call fcn.00410acc
lea ecx, [esp + 0x34]
push ecx
lea ecx, [esp + 0x1c]
call sub.MFC42.DLL_CString::CString
mov eax, dword [esp + 0x30]
mov ebx, dword [esp + 0x20]
sub eax, ebx
mov ebx, dword [esp + 0x28]
sub eax, ebx
mov ebp, dword [esi]
cdq
sub eax, edx
mov dword [esp + 0x5c], 0
mov ecx, eax
mov eax, dword [esp + 0x2c]
sar ecx, 1
add ecx, ebx
mov ebx, dword [esp + 0x1c]
sub eax, ebx
mov ebx, dword [esp + 0x24]
sub eax, ebx
cdq
sub eax, edx
mov edx, dword [esp + 0x18]
sar eax, 1
add eax, ebx
mov ebx, dword [edx - 8]
push ebx
push edx
push ecx
push eax
mov ecx, esi
call dword [ebp + 0x64]
lea ecx, [esp + 0x18]
mov dword [esp + 0x5c], 0xffffffff
call fcn.00410acc
mov edx, dword [esi + 4]
mov eax, dword [edi + 0x20]
push edx
push eax
call dword [sym.imp.USER32.dll_ReleaseDC]
mov ecx, dword [esp + 0x54]
pop edi
pop esi
mov dword fs:[0], ecx
pop ebp
pop ebx
add esp, 0x50
ret
Function at 0x404480
Capabilities:
Read file on windows

Disassembly:
push ecx
push esi
push edi
push 0x4180c0
push 0x4185cc
call dword [sym.imp.MSVCRT.dll_fopen]
mov esi, eax
add esp, 8
test esi, esi
je 0x40450f
push ebx
mov ebx, dword [sym.imp.MSVCRT.dll_fseek]
push 2
push 0
push esi
call ebx
push esi
call dword [sym.imp.MSVCRT.dll_ftell]
mov edi, eax
push 0
lea eax, [edi - 4]
push eax
push esi
call ebx
push esi
push 1
lea ecx, [esp + 0x30]
push 4
push ecx
mov dword [esp + 0x38], 0
call dword [sym.imp.MSVCRT.dll_fread]
mov eax, dword [esp + 0x38]
add esp, 0x2c
test eax, eax
pop ebx
jbe 0x404505
cmp eax, 0x61a80
jae 0x404505
cmp eax, edi
jae 0x404505
push esi
mov dword [0x4187cc], eax
call dword [sym.imp.MSVCRT.dll_fclose]
add esp, 4
mov eax, 1
pop edi
pop esi
pop ecx
ret 4
push esi
call dword [sym.imp.MSVCRT.dll_fclose]
add esp, 4
pop edi
xor eax, eax
pop esi
pop ecx
ret 4
Function at 0x4058b0
Capabilities:
Read file on windows

Disassembly:
push ecx
push ebx
push esi
mov esi, ecx
push 0x4180c0
mov dword [esp + 0xc], 0
lea eax, [esi + 0x38]
push eax
call dword [sym.imp.MSVCRT.dll_fopen]
mov ebx, eax
add esp, 8
test ebx, ebx
je 0x40598f
mov eax, dword [esp + 0x10]
mov ecx, dword [esi + 0x14bd8]
push edi
mov edi, dword [esp + 0x18]
lea eax, [eax + eax*2]
push 0
shl eax, 4
mov edx, dword [ecx + eax + 5]
mov dword [edi], edx
mov ecx, dword [esi + 0x14bd8]
mov edx, dword [ecx + eax + 0xc]
push edx
push ebx
call dword [sym.imp.MSVCRT.dll_fseek]
mov eax, dword [edi]
push eax
call sub.MFC42.DLL_operatornew
add esp, 0x10
mov dword [esp + 0x14], eax
test eax, eax
je 0x40596b
mov edi, dword [edi]
push ebp
mov ebp, dword [sym.imp.MSVCRT.dll_fread]
cmp edi, 0x7530
mov esi, eax
jbe 0x405954
push ebx
push 1
push 0x7530
push esi
call ebp
add esp, 0x10
test eax, eax
je 0x405954
sub edi, 0x7530
add esi, 0x7530
cmp edi, 0x7530
ja 0x40592e
push ebx
push 1
push edi
push esi
call ebp
add esp, 0x10
test eax, eax
pop ebp
je 0x40596b
mov dword [esp + 0xc], 1
push ebx
call dword [sym.imp.MSVCRT.dll_fclose]
mov eax, dword [esp + 0x10]
add esp, 4
test eax, eax
mov eax, dword [esp + 0x14]
pop edi
jne 0x405991
test eax, eax
je 0x40598f
push eax
call sub.MFC42.DLL_operatordelete
add esp, 4
xor eax, eax
pop esi
pop ebx
pop ecx
ret 8

Function at 0x4083b0
Capabilities:
Access peb ldr_data
Get ntdll base address

Disassembly:
push 0xffffffffffffffff
push 0x4115ba
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 8
mov al, byte [esp + 3]
push esi
push edi
mov esi, ecx
xor edi, edi
mov dword [esp + 0xc], esi
mov byte [esi + 4], al
mov dword [esi + 8], edi
mov dword [esi + 0xc], edi
mov dword [esi + 0x10], edi
mov cl, byte [esp + 0xb]
mov dword [esp + 0x18], edi
mov byte [esi + 0x14], cl
mov dword [esi + 0x18], edi
mov dword [esi + 0x1c], edi
mov dword [esi + 0x20], edi
mov dl, byte [esp + 0xb]
mov dword [esi + 0x28], edi
mov byte [esi + 0x24], dl
mov dword [esi + 0x2c], edi
mov dword [esi + 0x30], edi
mov al, byte [esp + 0xb]
mov dword [esi + 0x3c], edi
mov byte [esi + 0x38], al
mov dword [esi + 0x40], edi
mov dword [esi + 0x44], edi
lea ecx, [esi + 0x484c]
mov byte [esp + 0x18], 3
call fcn.00409600
lea ecx, [esi + 0x60b8]
mov byte [esp + 0x18], 4
call fcn.00409600
mov ecx, dword [esp + 0x10]
mov dword [esi + 0x7924], edi
mov dword [esi + 0x7970], edi
mov dword [esi], 0x412a3c
mov eax, esi
pop edi
pop esi
mov dword fs:[0], ecx
add esp, 0x14
ret
Function at 0x408480
Capabilities:
Access peb ldr_data
Get ntdll base address

Disassembly:
push 0xffffffffffffffff
push 0x411618
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
mov dword [esi], 0x412a3c
mov dword [esp + 0x14], 5
call fcn.00408540
lea ecx, [esi + 0x60b8]
mov byte [esp + 0x14], 4
call fcn.004096b0
lea ecx, [esi + 0x484c]
mov byte [esp + 0x14], 3
call fcn.004096b0
mov eax, dword [esi + 0x3c]
push eax
mov dword [esp + 0xc], eax
call sub.MFC42.DLL_operatordelete
xor edi, edi
mov dword [esi + 0x3c], edi
mov dword [esi + 0x40], edi
mov dword [esi + 0x44], edi
mov eax, dword [esi + 0x28]
push eax
mov dword [esp + 0x10], eax
call sub.MFC42.DLL_operatordelete
mov dword [esi + 0x28], edi
mov dword [esi + 0x2c], edi
mov dword [esi + 0x30], edi
mov eax, dword [esi + 0x18]
push eax
mov dword [esp + 0x14], eax
call sub.MFC42.DLL_operatordelete
mov dword [esi + 0x18], edi
mov dword [esi + 0x1c], edi
mov dword [esi + 0x20], edi
mov eax, dword [esi + 8]
push eax
mov dword [esp + 0x18], eax
call sub.MFC42.DLL_operatordelete
mov ecx, dword [esp + 0x1c]
add esp, 0x10
mov dword [esi + 8], edi
mov dword [esi + 0xc], edi
mov dword [esi + 0x10], edi
pop edi
pop esi
mov dword fs:[0], ecx
add esp, 0x10
ret