joyce8/EMBER2024-capa huggingface dataset:
Function at 0x4068c7
Capabilities:
Create process on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x20c
push ebx
push esi
push edi
xor ebx, ebx
push dword [ebp + 0xc]
push ebx
push ebx
push dword [ebp + 8]
push 0x40456c
push ebx
call dword [sym.imp.SHELL32.dll_ShellExecuteA]
cmp eax, 0x20
mov dword [ebp - 4], eax
ja 0x4069b3
lea eax, [ebp - 0x20c]
mov edi, 0x80000000
push eax
push 0x404564
push edi
call fcn.00406752
add esp, 0xc
test eax, eax
jne 0x4069b3
mov esi, dword [sym.imp.KERNEL32.dll_lstrcatA]
lea eax, [ebp - 0x20c]
push 0x404550
push eax
call esi
lea eax, [ebp - 0x20c]
push eax
lea eax, [ebp - 0x20c]
push eax
push edi
call fcn.00406752
add esp, 0xc
test eax, eax
jne 0x4069b3
lea eax, [ebp - 0x20c]
push 0x404548
push eax
call dword [sym.imp.MSVCRT.dll__mbsstr]
mov edi, eax
pop ecx
cmp edi, ebx
pop ecx
jne 0x406990
lea eax, [ebp - 0x20c]
push 0x404544
push eax
call dword [sym.imp.MSVCRT.dll_strstr]
mov edi, eax
pop ecx
cmp edi, ebx
pop ecx
jne 0x406990
lea eax, [ebp - 0x20c]
push eax
call dword [sym.imp.KERNEL32.dll_lstrlenA]
lea edi, [ebp + eax - 0x20d]
jmp 0x406992
mov byte [edi], bl
push 0x404540
push edi
call esi
push dword [ebp + 8]
push edi
call esi
push dword [ebp + 0xc]
lea eax, [ebp - 0x20c]
push eax
call dword [sym.imp.KERNEL32.dll_WinExec]
mov dword [ebp - 4], eax
mov eax, dword [ebp - 4]
pop edi
pop esi
pop ebx
leave
ret

Function at 0x406cb2
Capabilities:
Extract resource via kernel32 functions

Disassembly:
push ebp
mov ebp, esp
movzx eax, word [ebp + 0xc]
push ebx
push esi
push edi
mov edi, dword [sym.imp.KERNEL32.dll_GetModuleHandleA]
push 0x404574
push eax
push 0
call edi
push eax
call dword [sym.imp.KERNEL32.dll_FindResourceA]
mov ebx, eax
test ebx, ebx
je 0x406d5e
push 0x20
call dword [sym.imp.MSVCRT.dll_malloc]
pop ecx
mov esi, eax
push ebx
push 0
call edi
push eax
call dword [sym.imp.KERNEL32.dll_LoadResource]
push eax
call dword [sym.imp.KERNEL32.dll_LockResource]
push ebx
push 0
mov dword [ebp + 0xc], eax
call edi
push eax
call dword [sym.imp.KERNEL32.dll_SizeofResource]
lea ecx, [esi + 8]
mov edi, dword [ebp + 8]
push ecx
lea ecx, [esi + 4]
push ecx
push eax
push dword [ebp + 0xc]
push edi
call fcn.00406ac9
add esp, 0x14
mov dword [esi], eax
test eax, eax
je 0x406d5e
mov eax, dword [ebp + 0x10]
mov dword [esi + 0x14], edi
mov dword [esi + 0xc], eax
mov eax, dword [ebp + 0x14]
mov dword [esi + 0x10], eax
mov eax, dword [0x40a0b8]
mov dword [esi + 0x18], eax
mov eax, dword [0x40a0b8]
test eax, eax
je 0x406d4b
mov dword [eax + 0x1c], esi
inc dword [0x40a0bc]
push edi
mov dword [0x40a0b8], esi
call fcn.00406c4e
pop ecx
pop edi
pop esi
pop ebx
pop ebp
ret
Function at 0x4077f3
Capabilities:
Open clipboard
Write clipboard data

Disassembly:
mov eax, 0x409db0
call fcn.004095d0
push esi
push dword [ecx + 0x20]
xor esi, esi
mov dword [ebp - 4], esi
call dword [sym.imp.USER32.dll_OpenClipboard]
cmp eax, esi
jne 0x407819
push esi
push esi
push 0x4040f4
jmp 0x40782a
call dword [sym.imp.USER32.dll_EmptyClipboard]
test eax, eax
jne 0x407831
push esi
push esi
push 0x4040d8
call sub.MFC42.DLL_AfxMessageBox
jmp 0x407899
mov eax, dword [ebp + 8]
push ebx
push edi
mov eax, dword [eax - 8]
inc eax
push eax
push 0x2000
call dword [sym.imp.KERNEL32.dll_GlobalAlloc]
mov ebx, eax
push ebx
call dword [sym.imp.KERNEL32.dll_GlobalLock]
mov edi, dword [ebp + 8]
mov edx, eax
or ecx, 0xffffffff
xor eax, eax
repne scasb al, byte es:[edi]
not ecx
sub edi, ecx
push ebx
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]
call dword [sym.imp.KERNEL32.dll_GlobalUnlock]
push ebx
push 1
call dword [sym.imp.USER32.dll_SetClipboardData]
pop edi
pop ebx
test eax, eax
jne 0x407893
push eax
push eax
push 0x4040b8
call sub.MFC42.DLL_AfxMessageBox
call dword [sym.imp.USER32.dll_CloseClipboard]
or dword [ebp - 4], 0xffffffff
lea ecx, [ebp + 8]
call fcn.004092cc
mov ecx, dword [ebp - 0xc]
pop esi
mov dword fs:[0], ecx
leave
ret 4

Function at 0x408173
Capabilities:
Open clipboard
Write clipboard data

Disassembly:
mov eax, 0x409edc
call fcn.004095d0
push esi
push dword [ecx + 0x20]
xor esi, esi
mov dword [ebp - 4], esi
call dword [sym.imp.USER32.dll_OpenClipboard]
cmp eax, esi
jne 0x408199
push esi
push esi
push 0x4040f4
jmp 0x4081aa
call dword [sym.imp.USER32.dll_EmptyClipboard]
test eax, eax
jne 0x4081b1
push esi
push esi
push 0x4040d8
call sub.MFC42.DLL_AfxMessageBox
jmp 0x408219
mov eax, dword [ebp + 8]
push ebx
push edi
mov eax, dword [eax - 8]
inc eax
push eax
push 0x2000
call dword [sym.imp.KERNEL32.dll_GlobalAlloc]
mov ebx, eax
push ebx
call dword [sym.imp.KERNEL32.dll_GlobalLock]
mov edi, dword [ebp + 8]
mov edx, eax
or ecx, 0xffffffff
xor eax, eax
repne scasb al, byte es:[edi]
not ecx
sub edi, ecx
push ebx
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]
call dword [sym.imp.KERNEL32.dll_GlobalUnlock]
push ebx
push 1
call dword [sym.imp.USER32.dll_SetClipboardData]
pop edi
pop ebx
test eax, eax
jne 0x408213
push eax
push eax
push 0x4040b8
call sub.MFC42.DLL_AfxMessageBox
call dword [sym.imp.USER32.dll_CloseClipboard]
or dword [ebp - 4], 0xffffffff
lea ecx, [ebp + 8]
call fcn.004092cc
mov ecx, dword [ebp - 0xc]
pop esi
mov dword fs:[0], ecx
leave
ret 4
Function at 0x408f83
Capabilities:
Open clipboard
Write clipboard data

Disassembly:
mov eax, 0x40a0a0
call fcn.004095d0
push esi
push dword [ecx + 0x20]
xor esi, esi
mov dword [ebp - 4], esi
call dword [sym.imp.USER32.dll_OpenClipboard]
cmp eax, esi
jne 0x408fa9
push esi
push esi
push 0x4040f4
jmp 0x408fba
call dword [sym.imp.USER32.dll_EmptyClipboard]
test eax, eax
jne 0x408fc1
push esi
push esi
push 0x4040d8
call sub.MFC42.DLL_AfxMessageBox
jmp 0x409029
mov eax, dword [ebp + 8]
push ebx
push edi
mov eax, dword [eax - 8]
inc eax
push eax
push 0x2000
call dword [sym.imp.KERNEL32.dll_GlobalAlloc]
mov ebx, eax
push ebx
call dword [sym.imp.KERNEL32.dll_GlobalLock]
mov edi, dword [ebp + 8]
mov edx, eax
or ecx, 0xffffffff
xor eax, eax
repne scasb al, byte es:[edi]
not ecx
sub edi, ecx
push ebx
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]
call dword [sym.imp.KERNEL32.dll_GlobalUnlock]
push ebx
push 1
call dword [sym.imp.USER32.dll_SetClipboardData]
pop edi
pop ebx
test eax, eax
jne 0x409023
push eax
push eax
push 0x4040b8
call sub.MFC42.DLL_AfxMessageBox
call dword [sym.imp.USER32.dll_CloseClipboard]
or dword [ebp - 4], 0xffffffff
lea ecx, [ebp + 8]
call fcn.004092cc
mov ecx, dword [ebp - 0xc]
pop esi
mov dword fs:[0], ecx
leave
ret 4
Function at 0x401030
Capabilities:
Extract resource via kernel32 functions

Disassembly:
push ebx
mov ebx, dword [esp + 8]
push edi
mov edi, dword [esp + 0x10]
push edi
push ebx
call dword [sym.imp.KERNEL32.DLL_LoadResource]
test eax, eax
jne 0x401049
pop edi
pop ebx
ret
push esi
push eax
call dword [sym.imp.KERNEL32.DLL_LockResource]
mov esi, eax
test esi, esi
je 0x401084
push edi
push ebx
call dword [sym.imp.KERNEL32.DLL_SizeofResource]
mov ecx, dword [esp + 0x18]
add eax, esi
and ecx, 0xf
jbe 0x401080
lea ebx, [ebx]
cmp esi, eax
jae 0x401084
sub ecx, 1
movzx edx, word [esi]
lea esi, [esi + edx*2 + 2]
jne 0x401070
cmp esi, eax
jb 0x40108a
pop esi
pop edi
xor eax, eax
pop ebx
ret
mov ax, word [esi]
neg ax
sbb eax, eax
and eax, esi
pop esi
pop edi
pop ebx
ret

Function at 0x4037d0
Capabilities:
Create process on windows

Disassembly:
sub esp, 0x20c
mov eax, dword [0x4638dc]
xor eax, esp
mov dword [esp + 0x208], eax
push ebx
mov ebx, dword [esp + 0x214]
push ebp
mov ebp, dword [esp + 0x21c]
push esi
push ebp
push 0
push 0
push ebx
push str.open
push 0
call dword [sym.imp.SHELL32.dll_ShellExecuteA]
mov esi, eax
cmp esi, 0x20
ja 0x4038bb
lea eax, [esp + 0xc]
push eax
push str..htm
push SysReAllocStringLen
call fcn.00403610
add esp, 0xc
test eax, eax
jne 0x4038d7
push edi
mov edi, dword [sym.imp.KERNEL32.DLL_lstrcatA]
push str._shellopencommand
lea ecx, [esp + 0x14]
push ecx
call edi
lea edx, [esp + 0x10]
push edx
mov eax, edx
push eax
push SysReAllocStringLen
call fcn.00403610
add esp, 0xc
test eax, eax
jne 0x4038d3
lea ecx, [esp + 0x10]
push str.__1_
push ecx
call fcn.00431da6
mov esi, eax
add esp, 8
test esi, esi
jne 0x40389f
lea edx, [esp + 0x10]
push 0x44ebe0
push edx
call fcn.00432b50
mov esi, eax
add esp, 8
test esi, esi
jne 0x40389f
lea eax, [esp + 0x10]
push eax
call dword [sym.imp.KERNEL32.DLL_lstrlenA]
lea esi, [esp + eax + 0xf]
jmp 0x4038a2
mov byte [esi], 0
push 0x44ea3c
push esi
call edi
push ebx
push esi
call edi
push ebp
lea ecx, [esp + 0x14]
push ecx
call dword [sym.imp.KERNEL32.DLL_WinExec]
pop edi
pop esi
pop ebp
pop ebx
mov ecx, dword [esp + 0x208]
xor ecx, esp
call fcn.004326b1
add esp, 0x20c
ret
mov eax, esi
jmp 0x4038ba
mov ecx, dword [esp + 0x214]
mov eax, esi
pop esi
pop ebp
pop ebx
xor ecx, esp
call fcn.004326b1
add esp, 0x20c
ret
Function at 0x406b60
Capabilities:
Get system information on windows

Disassembly:
push 0xffffffffffffffff
push 0x44b5cb
mov eax, dword fs:[0]
push eax
sub esp, 0xcc
mov eax, dword [0x4638dc]
xor eax, esp
mov dword [esp + 0xc8], eax
push ebx
push ebp
push esi
push edi
mov eax, dword [0x4638dc]
xor eax, esp
push eax
lea eax, [esp + 0xe0]
mov dword fs:[0], eax
mov edi, dword [sym.imp.KERNEL32.DLL_GetModuleHandleA]
push str.IsWow64Process
push str.kernel32
mov esi, ecx
call edi
mov ebp, dword [sym.imp.KERNEL32.DLL_GetProcAddress]
push eax
call ebp
push str.GetNativeSystemInfo
push str.kernel32
mov ebx, eax
call edi
push eax
call ebp
lea ecx, [esp + 0x14]
mov ebp, eax
call fcn.004111e0
push 0x94
lea eax, [esp + 0x4c]
push 0
push eax
mov dword [esp + 0xf4], 0
call fcn.00432710
add esp, 0xc
lea ecx, [esp + 0x48]
push ecx
mov dword [esp + 0x4c], 0x94
call dword [sym.imp.KERNEL32.DLL_GetVersionExA]
mov eax, dword [esp + 0x4c]
mov ecx, dword [esp + 0x50]
xor edx, edx
cmp dword [esp + 0x58], 2
lea edi, [esi + 4]
sete dl
test ebx, ebx
mov dword [esi + 0xc], eax
mov dword [esi + 0x10], ecx
mov dword [edi], 0
mov dword [esi], edx
je 0x406c37
push edi
call dword [sym.imp.KERNEL32.DLL_GetCurrentProcess]
push eax
call ebx
test ebp, ebp
je 0x406c49
cmp dword [edi], 0
je 0x406c49
lea edx, [esp + 0x24]
push edx
call ebp
jmp 0x406c54
lea eax, [esp + 0x24]
push eax
call dword [sym.imp.KERNEL32.DLL_GetSystemInfo]
mov ax, word [esp + 0x24]
test ax, ax
mov word [esi + 8], ax
je 0x406c6d
cmp dword [edi], 0
jne 0x406c6d
mov dword [edi], 1
lea ecx, [esp + 0x14]
mov dword [esp + 0xe8], 0xffffffff
call fcn.00411200
mov ecx, dword [esp + 0xe0]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebp
pop ebx
mov ecx, dword [esp + 0xc8]
xor ecx, esp
call fcn.004326b1
add esp, 0xd8
ret
Function at 0x408440
Capabilities:
Check os version

Disassembly:
sub esp, 0x98
mov eax, dword [0x4638dc]
xor eax, esp
mov dword [esp + 0x94], eax
push esi
push edi
mov esi, ecx
push 0x1f8
xor edi, edi
lea eax, [esi + 0x58]
push edi
push eax
call fcn.00432710
push 0x90
lea ecx, [esp + 0x1c]
push edi
push ecx
mov dword [esi + 0x54], edi
mov dword [esi + 0x250], edi
mov dword [esi + 0x254], 1
mov dword [esi + 0x258], 1
mov dword [esi + 0x298], edi
mov dword [esi + 0x29c], 1
mov dword [esi + 0x25c], edi
mov dword [esi + 0x27c], edi
mov dword [esi + 0x294], edi
mov dword [esi + 0x264], edi
mov dword [esi + 0x2a0], edi
mov dword [esp + 0x20], 0x94
call fcn.00432710
add esp, 0x18
lea edx, [esp + 8]
push edx
call dword [sym.imp.KERNEL32.DLL_GetVersionExA]
cmp dword [esp + 0x18], 2
jne 0x40850a
cmp dword [esp + 0xc], 5
jb 0x40850a
mov eax, 1
pop edi
mov dword [esi + 0x260], eax
pop esi
mov ecx, dword [esp + 0x94]
xor ecx, esp
call fcn.004326b1
add esp, 0x98
ret
mov ecx, dword [esp + 0x9c]
mov dword [esi + 0x260], edi
pop edi
pop esi
xor ecx, esp
call fcn.004326b1
add esp, 0x98
ret
Function at 0x40a6e0
Capabilities:
Read file on windows

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
sub esp, 0x424
mov eax, dword [0x4638dc]
xor eax, esp
mov dword [esp + 0x420], eax
mov eax, dword [ebp + 8]
push ebx
push esi
push edi
mov dword [esp + 0x14], ecx
mov ecx, 0x80
lea esi, [ebp + 0xc]
lea edi, [esp + 0x228]
rep movsd dword es:[edi], dword [esi]
mov edi, dword [ebp + 0x20c]
mov dword [esp + 0xc], eax
mov dword [esp + 0x20], edi
lea esi, [esp + 0x3ea]
mov ebx, 4
nop
mov al, byte [esi]
test al, al
je 0x40a760
cmp al, 5
je 0x40a760
cmp al, 0xf
je 0x40a760
mov ecx, dword [esi - 4]
mov edx, dword [esi]
sub esp, 0x10
mov eax, esp
mov dword [eax], ecx
mov ecx, dword [esi + 4]
mov dword [eax + 4], edx
mov edx, dword [esi + 8]
mov dword [eax + 8], ecx
mov ecx, edi
mov dword [eax + 0xc], edx
call fcn.0040a5a0
add esi, 0x10
sub ebx, 1
jne 0x40a730
mov dword [esp + 0x10], ebx
lea ebx, [esp + 0x3ee]
mov al, byte [ebx - 4]
cmp al, 5
je 0x40a782
cmp al, 0xf
jne 0x40a842
mov esi, dword [ebx]
mov ecx, 0x200
push 0
mov eax, esi
mul ecx
push 0x8000000
push 3
push 0
push 0
mov dword [esp + 0x30], edx
mov edx, dword [esp + 0x20]
push SysReAllocStringLen
push edx
mov dword [esp + 0x34], eax
call dword [sym.imp.KERNEL32.DLL_CreateFileA]
mov ecx, dword [esp + 0x18]
mov edi, eax
push 0
lea eax, [esp + 0x20]
push eax
push ecx
push edi
call dword [sym.imp.KERNEL32.DLL_SetFilePointer]
push 0
lea edx, [esp + 0x28]
push edx
push 0x200
lea eax, [esp + 0x34]
push eax
push edi
call dword [sym.imp.KERNEL32.DLL_ReadFile]
push edi
call dword [sym.imp.KERNEL32.DLL_CloseHandle]
cmp byte [esp + 0x226], 0x55
jne 0x40a859
cmp byte [esp + 0x227], 0xaa
jne 0x40a859
mov ecx, dword [esp + 0x20]
add dword [esp + 0x1ee], esi
add dword [esp + 0x1fe], esi
add dword [esp + 0x20e], esi
add dword [esp + 0x21e], esi
mov edx, dword [esp + 0xc]
push ecx
sub esp, 0x200
mov edi, esp
mov ecx, 0x80
lea esi, [esp + 0x22c]
rep movsd dword es:[edi], dword [esi]
mov ecx, dword [esp + 0x218]
push edx
call fcn.0040a6e0
mov eax, dword [esp + 0x10]
add eax, 1
add ebx, 0x10
cmp eax, 4
mov dword [esp + 0x10], eax
jl 0x40a773
mov ecx, dword [esp + 0x42c]
pop edi
pop esi
pop ebx
xor ecx, esp
xor eax, eax
call fcn.004326b1
mov esp, ebp
pop ebp
ret 0x208
Function at 0x41667f
Capabilities:
Extract resource via kernel32 functions

Disassembly:
push 0x24
mov eax, 0x44c66d
call fcn.00435bbe
mov esi, ecx
mov dword [ebp - 0x20], esi
mov eax, dword [esi + 0x60]
mov dword [ebp - 0x1c], eax
mov eax, dword [esi + 0x5c]
mov dword [ebp - 0x18], eax
call fcn.004203e0
mov edi, dword [eax + 0xc]
xor ebx, ebx
cmp dword [esi + 0x58], ebx
je 0x4166ca
call fcn.004203e0
mov edi, dword [eax + 0xc]
push 5
push dword [esi + 0x58]
push edi
call dword [sym.imp.KERNEL32.DLL_FindResourceA]
push eax
push edi
call dword [sym.imp.KERNEL32.DLL_LoadResource]
mov dword [ebp - 0x18], eax
cmp dword [ebp - 0x18], ebx
je 0x4166db
push dword [ebp - 0x18]
call dword [sym.imp.KERNEL32.DLL_LockResource]
mov dword [ebp - 0x1c], eax
cmp dword [ebp - 0x1c], ebx
jne 0x4166e8
or eax, 0xffffffff
jmp 0x416844
mov ecx, esi
call fcn.004161d1
mov dword [ebp - 0x14], eax
call fcn.00419021
and dword [ebp - 0x28], ebx
cmp dword [ebp - 0x14], ebx
mov dword [ebp - 0x2c], ebx
mov dword [ebp - 0x24], ebx
je 0x416766
call dword [sym.imp.USER32.dll_GetDesktopWindow]
cmp dword [ebp - 0x14], eax
je 0x416766
push dword [ebp - 0x14]
call dword [sym.imp.USER32.dll_IsWindowEnabled]
test eax, eax
je 0x416766
push 0
push dword [ebp - 0x14]
call dword [sym.imp.USER32.dll_EnableWindow]
mov dword [ebp - 0x2c], 1
call fcn.00407c50
mov ebx, eax
test ebx, ebx
mov dword [ebp - 0x24], ebx
je 0x416766
mov eax, dword [ebx]
mov ecx, ebx
call dword [eax + 0x120]
test eax, eax
je 0x416766
mov ecx, ebx
call fcn.0041c543
test eax, eax
je 0x416766
push 0
mov ecx, ebx
call fcn.0041c55e
mov dword [ebp - 0x28], 1
and dword [ebp - 4], 0
push esi
call fcn.0041aa19
push dword [ebp - 0x14]
call fcn.00418f79
push edi
push eax
push dword [ebp - 0x1c]
mov ecx, esi
call fcn.00416487
xor edi, edi
cmp eax, edi
je 0x4167c3
test byte [esi + 0x3c], 0x10
je 0x4167ad
push 4
pop edi
mov ecx, esi
call fcn.0041c400
test ax, 0x100
je 0x4167a3
push 5
pop edi
push edi
mov ecx, esi
call fcn.00418b41
xor edi, edi
cmp dword [esi + 0x20], edi
je 0x4167c3
push 0x97
push edi
push edi
push edi
push edi
push edi
mov ecx, esi
call fcn.0041c72d
or dword [ebp - 4], 0xffffffff
jmp 0x4167ee
cmp dword [ebp - 0x28], edi
je 0x4167fc
push 1
mov ecx, ebx
call fcn.0041c55e
cmp dword [ebp - 0x2c], edi
je 0x41680c
push 1
push dword [ebp - 0x14]
call dword [sym.imp.USER32.dll_EnableWindow]
cmp dword [ebp - 0x14], edi
je 0x416825
call dword [sym.imp.USER32.dll_GetActiveWindow]
cmp eax, dword [esi + 0x20]
jne 0x416825
push dword [ebp - 0x14]
call dword [sym.imp.USER32.dll_SetActiveWindow]
mov eax, dword [esi]
mov ecx, esi
call dword [eax + 0x60]
mov ecx, esi
call fcn.0041620b
cmp dword [esi + 0x58], edi
je 0x416841
push dword [ebp - 0x18]
call dword [sym.imp.KERNEL32.DLL_FreeResource]
mov eax, dword [esi + 0x44]
call fcn.00435c63
ret
Function at 0x41bc39
Capabilities:
Extract resource via kernel32 functions

Disassembly:
push ebx
push ebp
push esi
push edi
xor edi, edi
xor ebx, ebx
cmp dword [esp + 0x14], edi
mov ebp, ecx
je 0x41bc7c
call fcn.004203e0
mov esi, dword [eax + 0xc]
push 0xf0
push dword [esp + 0x18]
push esi
call dword [sym.imp.KERNEL32.DLL_FindResourceA]
test eax, eax
je 0x41bc7c
push eax
push esi
call dword [sym.imp.KERNEL32.DLL_LoadResource]
mov edi, eax
test edi, edi
je 0x41bc97
push edi
call dword [sym.imp.KERNEL32.DLL_LockResource]
mov ebx, eax
push ebx
mov ecx, ebp
call fcn.0041b7f0
test ebx, ebx
mov esi, eax
je 0x41bc95
test edi, edi
je 0x41bc95
push edi
call dword [sym.imp.KERNEL32.DLL_FreeResource]
mov eax, esi
pop edi
pop esi
pop ebp
pop ebx
ret 4

Function at 0x421440
Capabilities:
Get geographical location

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x11c
mov eax, dword [0x4638dc]
xor eax, ebp
mov dword [ebp - 4], eax
cmp dword [ebp + 8], 0x800
push ebx
push esi
mov esi, ecx
mov ebx, edx
lea eax, [ebp - 0x11c]
jne 0x421480
push 0x453b08
push 4
push eax
call fcn.004377de
push eax
call fcn.00402fc0
add esp, 0x10
jmp 0x421492
push 4
push eax
push 3
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.DLL_GetLocaleInfoA]
test eax, eax
je 0x421500
push edi
call fcn.00435d72
mov edi, dword [eax]
call fcn.00435d72
and dword [eax], 0
lea eax, [ebp - 0x11c]
push eax
push ebx
push esi
push 0x111
mov esi, 0x112
lea eax, [ebp - 0x118]
push esi
push eax
call fcn.00435e54
add esp, 0x18
mov ebx, eax
call fcn.00435d72
cmp dword [eax], 0
je 0x4214e0
call fcn.00435d72
push dword [eax]
call fcn.00415322
pop ecx
jmp 0x4214e7
call fcn.00435d72
mov dword [eax], edi
cmp ebx, 0xffffffff
pop edi
je 0x421500
cmp ebx, esi
jae 0x421500
lea eax, [ebp - 0x118]
push eax
call dword [sym.imp.KERNEL32.DLL_LoadLibraryA]
jmp 0x421502
xor eax, eax
mov ecx, dword [ebp - 4]
pop esi
xor ecx, ebp
pop ebx
call fcn.004326b1
leave
ret

Function at 0x4326b1
Capabilities:
Terminate process

Disassembly:
cmp ecx, dword [0x4638dc]
jne 0x4326bb
repz ret
jmp fcn.0043bfbc
Function at 0x43eadb
Capabilities:
Write file on windows

Disassembly:
push ecx
push ebx
mov ebx, dword [esp + 0xc]
push esi
push edi
xor esi, esi
xor edi, edi
cmp ebx, dword [edi*8 + 0x464500]
je 0x43eaf6
inc edi
cmp edi, 0x17
jb 0x43eae7
cmp edi, 0x17
jae 0x43ec76
push ebp
push 3
call fcn.00445d2f
cmp eax, 1
pop ecx
je 0x43ec42
push 3
call fcn.00445d2f
test eax, eax
pop ecx
jne 0x43eb2a
cmp dword [0x463930], 1
je 0x43ec42
cmp ebx, 0xfc
je 0x43ec75
push str.Runtime_Error__n_nProgram:
mov ebx, 0x314
push ebx
mov ebp, 0x467850
push ebp
call fcn.004377de
add esp, 0xc
test eax, eax
je 0x43eb60
push esi
push esi
push esi
push esi
push esi
call fcn.00439796
add esp, 0x14
push 0x104
mov esi, 0x467869
push esi
push 0
mov byte [0x46796d], 0
call dword [sym.imp.KERNEL32.DLL_GetModuleFileNameA]
test eax, eax
jne 0x43eba4
push str._program_name_unknown_
push 0x2fb
push esi
call fcn.004377de
add esp, 0xc
test eax, eax
je 0x43eba4
xor eax, eax
push eax
push eax
push eax
push eax
push eax
call fcn.00439796
add esp, 0x14
push esi
call fcn.00435b00
inc eax
cmp eax, 0x3c
pop ecx
jbe 0x43ebe9
push esi
call fcn.00435b00
sub esi, 0x3b
add eax, esi
push 3
mov ecx, 0x467b64
push 0x4558e4
sub ecx, eax
push ecx
push eax
call fcn.00435e73
add esp, 0x14
test eax, eax
je 0x43ebe9
xor esi, esi
push esi
push esi
push esi
push esi
push esi
call fcn.00439796
add esp, 0x14
jmp 0x43ebeb
xor esi, esi
push 0x4558e0
push ebx
push ebp
call fcn.004378ca
add esp, 0xc
test eax, eax
je 0x43ec0b
push esi
push esi
push esi
push esi
push esi
call fcn.00439796
add esp, 0x14
push dword [edi*8 + 0x464504]
push ebx
push ebp
call fcn.004378ca
add esp, 0xc
test eax, eax
je 0x43ec2d
push esi
push esi
push esi
push esi
push esi
call fcn.00439796
add esp, 0x14
push 0x12010
push str.Microsoft_Visual_C_Runtime_Library
push ebp
call fcn.00445b72
add esp, 0xc
jmp 0x43ec75
push 0xfffffffffffffff4
call dword [sym.imp.KERNEL32.DLL_GetStdHandle]
mov ebp, eax
cmp ebp, esi
je 0x43ec75
cmp ebp, 0xffffffff
je 0x43ec75
push 0
lea eax, [esp + 0x14]
push eax
lea esi, [edi*8 + 0x464504]
push dword [esi]
call fcn.00435b00
pop ecx
push eax
push dword [esi]
push ebp
call dword [sym.imp.KERNEL32.DLL_WriteFile]
pop ebp
pop edi
pop esi
pop ebx
pop ecx
ret
Function at 0x445b72
Capabilities:
Link many functions at runtime

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x20
push ebx
push esi
push edi
call fcn.00438e0d
xor ebx, ebx
cmp dword [0x467db4], ebx
mov dword [ebp - 8], eax
mov dword [ebp - 4], ebx
mov dword [ebp - 0xc], ebx
mov dword [ebp - 0x10], ebx
jne 0x445c48
push str.USER32.DLL
call dword [sym.imp.KERNEL32.DLL_LoadLibraryA]
mov edi, eax
cmp edi, ebx
je 0x445d28
mov esi, dword [sym.imp.KERNEL32.DLL_GetProcAddress]
push 0x457308
push edi
call esi
cmp eax, ebx
je 0x445d28
push eax
call fcn.00438d9f
mov dword [esp], 0x4572f8
push edi
mov dword [0x467db4], eax
call esi
push eax
call fcn.00438d9f
mov dword [esp], 0x4572e4
push edi
mov dword [0x467db8], eax
call esi
push eax
call fcn.00438d9f
mov dword [0x467dbc], eax
lea eax, [ebp - 0xc]
push eax
call fcn.0043312b
test eax, eax
pop ecx
pop ecx
je 0x445c16
push ebx
push ebx
push ebx
push ebx
push ebx
call fcn.00439796
add esp, 0x14
cmp dword [ebp - 0xc], 2
jne 0x445c48
push str.GetUserObjectInformationA
push edi
call esi
push eax
call fcn.00438d9f
cmp eax, ebx
pop ecx
mov dword [0x467dc4], eax
je 0x445c48
push str.GetProcessWindowStation
push edi
call esi
push eax
call fcn.00438d9f
pop ecx
mov dword [0x467dc0], eax
mov eax, dword [0x467dc0]
mov ecx, dword [ebp - 8]
cmp eax, ecx
je 0x445ccd
cmp dword [0x467dc4], ecx
je 0x445ccd
push eax
call fcn.00438e16
push dword [0x467dc4]
mov esi, eax
call fcn.00438e16
cmp esi, ebx
pop ecx
pop ecx
mov edi, eax
je 0x445ccd
cmp edi, ebx
je 0x445ccd
call esi
cmp eax, ebx
je 0x445c9a
lea ecx, [ebp - 0x14]
push ecx
push 0xc
lea ecx, [ebp - 0x20]
push ecx
push 1
push eax
call edi
test eax, eax
je 0x445c9a
test byte [ebp - 0x18], 1
jne 0x445ccd
lea eax, [ebp - 0x10]
push eax
call fcn.00433162
test eax, eax
pop ecx
je 0x445cb5
push ebx
push ebx
push ebx
push ebx
push ebx
call fcn.00439796
add esp, 0x14
cmp dword [ebp - 0x10], 4
jb 0x445cc4
or dword [ebp + 0x10], 0x200000
jmp 0x445d08
or dword [ebp + 0x10], 0x40000
jmp 0x445d08
mov eax, dword [0x467db8]
cmp eax, dword [ebp - 8]
je 0x445d08
push eax
call fcn.00438e16
cmp eax, ebx
pop ecx
je 0x445d08
call eax
cmp eax, ebx
mov dword [ebp - 4], eax
je 0x445d08
mov eax, dword [0x467dbc]
cmp eax, dword [ebp - 8]
je 0x445d08
push eax
call fcn.00438e16
cmp eax, ebx
pop ecx
je 0x445d08
push dword [ebp - 4]
call eax
mov dword [ebp - 4], eax
push dword [0x467db4]
call fcn.00438e16
cmp eax, ebx
pop ecx
je 0x445d28
push dword [ebp + 0x10]
push dword [ebp + 0xc]
push dword [ebp + 8]
push dword [ebp - 4]
call eax
jmp 0x445d2a
xor eax, eax
pop edi
pop esi
pop ebx
leave
ret