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

Disassembly:
pushal
mov esi, section.UPX1
lea edi, [esi - 0xc5000]
mov dword [edi + 0xcf740], 0x43c813ca
push edi
jmp 0x52270a
mov al, byte [esi]
inc esi
mov byte [edi], al
inc edi
add ebx, ebx
jne 0x522711
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
jb 0x522700
mov eax, 1
add ebx, ebx
jne 0x522723
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc eax, eax
add ebx, ebx
jae 0x522734
jne 0x522753
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
jb 0x522753
dec eax
add ebx, ebx
jne 0x522740
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc eax, eax
jmp 0x522718
add ebx, ebx
jne 0x52274f
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc ecx, ecx
jmp 0x5227a5
xor ecx, ecx
sub eax, 3
jb 0x52276b
shl eax, 8
mov al, byte [esi]
inc esi
xor eax, 0xffffffff
je 0x5227da
sar eax, 1
mov ebp, eax
jmp 0x522776
add ebx, ebx
jne 0x522776
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
jb 0x522744
inc ecx
add ebx, ebx
jne 0x522784
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
jb 0x522744
add ebx, ebx
jne 0x522791
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc ecx, ecx
add ebx, ebx
jae 0x522786
jne 0x5227a2
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
jae 0x522786
add ecx, 2
cmp ebp, 0xfffffb00
adc ecx, 2
lea edx, [edi + ebp]
cmp ebp, 0xfffffffc
jbe 0x5227c4
mov al, byte [edx]
inc edx
mov byte [edi], al
inc edi
dec ecx
jne 0x5227b6
jmp 0x522706
mov eax, dword [edx]
add edx, 4
mov dword [edi], eax
add edi, 4
sub ecx, 4
ja 0x5227c4
add edi, ecx
jmp 0x522706
pop esi
mov edi, esi
mov ecx, 0x40f0
mov al, byte [edi]
inc edi
sub al, 0xe8
cmp al, 1
ja 0x5227e2
cmp byte [edi], 0x11
jne 0x5227e2
mov eax, dword [edi]
mov bl, byte [edi + 4]
shr ax, 8
rol eax, 0x10
xchg ah, al
sub eax, edi
sub bl, 0xe8
add eax, esi
mov dword [edi], eax
add edi, 5
mov al, bl
loop 0x5227e7
lea edi, [esi + 0x11b000]
mov eax, dword [edi]
or eax, eax
je 0x52285f
mov ebx, dword [edi + 4]
lea eax, [eax + esi + 0x15f454]
add ebx, esi
push eax
add edi, 8
call dword [esi + 0x15f5d0]
xchg ebp, eax
mov al, byte [edi]
inc edi
or al, al
je 0x522814
mov ecx, edi
jns 0x522843
movzx eax, word [edi]
inc edi
push eax
inc edi
mov ecx, 0xaef24857
push edi
dec eax
repne scasb al, byte es:[edi]
push ebp
call dword [esi + 0x15f5d4]
or eax, eax
je 0x522859
mov dword [ebx], eax
add ebx, 4
jmp 0x522831
call dword [esi + 0x15f5e4]
add edi, 4
lea ebx, [esi - 4]
xor eax, eax
mov al, byte [edi]
inc edi
or eax, eax
je 0x522890
cmp al, 0xef
ja 0x522883
add ebx, eax
mov eax, dword [ebx]
xchg ah, al
rol eax, 0x10
xchg ah, al
add eax, esi
mov dword [ebx], eax
jmp 0x522865
and al, 0xf
shl eax, 0x10
mov ax, word [edi]
add edi, 2
jmp 0x522872
mov ebp, dword [esi + 0x15f5d8]
lea edi, [esi - 0x1000]
mov ebx, 0x1000
push eax
push esp
push 4
push ebx
push edi
call ebp
lea eax, [edi + 0x23f]
and byte [eax], 0x7f
and byte [eax + 0x28], 0x7f
pop eax
push eax
push esp
push eax
push ebx
push edi
call ebp
pop eax
popal
lea eax, [esp - 0x80]
push 0
cmp esp, eax
jne 0x5228c4
sub esp, 0xffffff80
jmp 0x420577
Function at 0x40adc0
Capabilities:
Clear file content

Disassembly:
push ebp
mov ebp, esp
mov eax, 0x1014
call fcn.00404730
push ebx
push esi
push edi
mov ebx, dword [ebp + 8]
mov dword [ebp - 4], 0
mov eax, dword [0x4170bc]
cmp ebx, eax
jae 0x40adfb
mov eax, ebx
and eax, 0x1f
mov edx, ebx
sar edx, 5
mov edx, dword [edx*4 + 0x4170c0]
test byte [edx + eax*8 + 4], 1
jne 0x40ae0d
mov dword [0x415c84], 9
or eax, 0xffffffff
jmp 0x40af32
push 1
push 0
push ebx
call fcn.00409fd0
add esp, 0xc
mov dword [ebp - 0xc], eax
cmp eax, 0xffffffff
je 0x40ae37
push 2
push 0
push ebx
call fcn.00409fd0
add esp, 0xc
mov dword [ebp - 8], eax
cmp eax, 0xffffffff
jne 0x40ae3f
or eax, 0xffffffff
jmp 0x40af32
mov eax, dword [ebp + 0xc]
mov esi, eax
sub esi, dword [ebp - 8]
test esi, esi
jle 0x40aee4
lea edx, [ebp - 0x1010]
mov ecx, 0x1000
xor eax, eax
push edi
mov edi, edx
rep stosb byte es:[edi], al
pop edi
mov eax, edx
push 0x8000
push ebx
call fcn.0040b330
add esp, 8
mov dword [ebp - 0x10], eax
mov eax, esi
cmp eax, 0x1000
jb 0x40ae8a
mov dword [ebp - 0x1014], 0x1000
jmp 0x40ae92
mov eax, esi
mov dword [ebp - 0x1014], eax
mov eax, dword [ebp - 0x1014]
push eax
lea eax, [ebp - 0x1010]
push eax
push ebx
call fcn.004086d0
add esp, 0xc
mov edi, eax
cmp eax, 0xffffffff
jne 0x40aecb
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 5
jne 0x40aec5
mov dword [0x415c84], 0xd
or dword [ebp - 4], 0xffffffff
jmp 0x40aed5
mov eax, esi
sub eax, edi
mov esi, eax
test eax, eax
jg 0x40ae75
mov eax, dword [ebp - 0x10]
push eax
push ebx
call fcn.0040b330
add esp, 8
jmp 0x40af20
test esi, esi
jge 0x40af20
push 0
mov eax, dword [ebp + 0xc]
push eax
push ebx
call fcn.00409fd0
add esp, 0xc
push ebx
call fcn.00408b00
pop ecx
push eax
call dword [sym.imp.KERNEL32.dll_SetEndOfFile]
test eax, eax
setne al
and eax, 1
dec eax
mov dword [ebp - 4], eax
cmp eax, 0xffffffff
jne 0x40af20
mov dword [0x415c84], 0xd
push 0
mov eax, dword [ebp - 0xc]
push eax
push ebx
call fcn.00409fd0
add esp, 0xc
mov eax, dword [ebp - 4]
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret

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

Disassembly:
pushal
nop
nop
nop
nop
mov eax, section..text
nop
nop
nop
nop
push 4
nop
nop
nop
nop
pop edi
nop
nop
nop
cmp eax, 0
nop
nop
nop
je 0x433072
nop
nop
nop
mov ebx, 0x40de38
nop
nop
mov ecx, ebx
nop
nop
nop
nop
nop
sub ecx, eax
nop
xor edx, edx
nop
nop
nop
nop
nop
nop
nop
nop
nop
push eax
nop
nop
nop
mov eax, ecx
nop
nop
nop
nop
div edi
nop
nop
xchg ecx, eax
nop
nop
nop
nop
nop
nop
nop
pop eax
nop
nop
mov esi, 0xa97090d
nop
nop
nop
nop
xor dword [eax], esi
nop
nop
nop
nop
add eax, edi
nop
nop
nop
nop
nop
loop 0x433060
mov eax, section..data
nop
nop
nop
cmp eax, 0
nop
nop
nop
je 0x4330d2
nop
nop
mov ebx, 0x4304d8
nop
nop
nop
nop
nop
mov ecx, ebx
nop
nop
nop
nop
sub ecx, eax
nop
nop
nop
nop
xor edx, edx
nop
nop
nop
push eax
nop
nop
nop
nop
mov eax, ecx
nop
nop
div edi
nop
nop
nop
nop
nop
nop
nop
xchg ecx, eax
nop
nop
nop
nop
nop
nop
nop
pop eax
nop
mov esi, 0xfd30076
nop
nop
nop
nop
xor dword [eax], esi
nop
nop
add eax, edi
nop
nop
nop
nop
nop
nop
loop 0x4330c0
nop
nop
nop
nop
nop
popal
jmp 0x431219
Function at 0x401f10
Capabilities:
Get disk information
Inspect load icon resource
Read file on windows

Disassembly:
mov eax, dword [esp + 4]
sub esp, 0x148
push ebx
push esi
push edi
push 0x65
push eax
call dword [sym.imp.USER32.dll_LoadIconA]
lea ecx, [esp + 0xc]
call fcn.00401000
lea ecx, [esp + 0x50]
push 0x104
push ecx
push 0
call dword [sym.imp.KERNEL32.dll_GetModuleFileNameA]
lea edx, [esp + 0x50]
lea ecx, [esp + 0xc]
push edx
call fcn.004012b0
test eax, eax
je 0x402021
lea eax, [esp + 0x50]
push 0x404030
push eax
call dword [sym.imp.MSVCRT.dll_fopen]
mov esi, eax
add esp, 8
test esi, esi
je 0x402084
lea ecx, [esp + 0x50]
push ecx
lea ecx, [esp + 0x10]
call fcn.00401290
mov edi, dword [sym.imp.MSVCRT.dll_fseek]
sub eax, 8
push 0
push eax
push esi
call edi
mov ebx, dword [sym.imp.MSVCRT.dll_fread]
push esi
push 1
lea edx, [esp + 0x24]
push 8
push edx
call ebx
mov eax, dword [esp + 0x2c]
push 0
push eax
push esi
call edi
push esi
push 1
lea ecx, [esp + 0x48]
push 0x38
push ecx
call ebx
push esi
call dword [sym.imp.MSVCRT.dll_fclose]
mov eax, dword [esp + 0x88]
mov edx, dword [esp + 0x50]
add esp, 0x3c
test eax, eax
mov eax, dword [esp + 0x10]
push edx
push eax
jne 0x401ffe
sub esp, 0x38
mov ecx, 0xe
lea esi, [esp + 0x58]
mov edi, esp
rep movsd dword es:[edi], dword [esi]
lea ecx, [esp + 0x90]
push ecx
lea ecx, [esp + 0x50]
call fcn.00401800
jmp 0x402084
sub esp, 0x38
mov ecx, 0xe
lea esi, [esp + 0x58]
mov edi, esp
rep movsd dword es:[edi], dword [esi]
lea ecx, [esp + 0x90]
push ecx
lea ecx, [esp + 0x50]
call fcn.00401a90
jmp 0x402084
lea ecx, [esp + 0x10]
call sub.MFC42.DLL_CString::CString_1
call dword [sym.imp.KERNEL32.dll_GetLogicalDrives]
mov edi, eax
mov esi, 1
xor ebx, ebx
test edi, esi
je 0x40206a
mov dl, bl
lea ecx, [esp + 0x10]
add dl, 0x41
push edx
call sub.MFC42.DLL_CString::operator_1
push 0x40412c
lea ecx, [esp + 0x14]
call fcn.004020e2
lea ecx, [esp + 0xc]
mov eax, dword [esp + 0x10]
push eax
push 0
call fcn.00401cf0
add esi, esi
inc ebx
cmp ebx, 0x1a
jl 0x402039
lea ecx, [esp + 0xc]
call fcn.00401040
lea ecx, [esp + 0x10]
call sub.MFC42.DLL_CString::CString
lea ecx, [esp + 0xc]
call fcn.00401030
pop edi
pop esi
xor eax, eax
pop ebx
add esp, 0x148
ret 0x10

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

Disassembly:
pushal
nop
nop
nop
mov eax, section..text
nop
mov ebx, 0x408ecc
nop
mov ecx, 0x29c85514
nop
nop
nop
nop
nop
test eax, eax
nop
nop
je 0x43004e
nop
nop
nop
nop
nop
xor dword [eax], ecx
nop
nop
nop
nop
inc eax
nop
nop
inc eax
nop
nop
nop
nop
nop
nop
nop
nop
inc eax
nop
nop
nop
nop
nop
nop
inc eax
nop
nop
cmp eax, ebx
nop
nop
nop
nop
nop
nop
jne 0x430024
nop
mov eax, section..data
nop
mov ebx, 0x42e1d0
nop
mov ecx, 0x296626a2
nop
nop
test eax, eax
nop
nop
nop
nop
nop
nop
je 0x430084
nop
nop
nop
nop
nop
xor dword [eax], ecx
nop
nop
add eax, 4
nop
nop
nop
cmp eax, ebx
nop
nop
jne 0x43006c
nop
nop
nop
nop
popal
nop
nop
nop
nop
nop
jmp 0x401219
Function at 0x401050
Capabilities:
Check if file exists
Get common file path

Disassembly:
sub esp, 0x268
mov eax, dword [0x4372c0]
xor eax, esp
mov dword [esp + 0x264], eax
xor eax, eax
push 0xfe
push eax
lea ecx, [esp + 0x6e]
push ecx
mov word [esp + 0x70], ax
call fcn.0041a6e0
xor edx, edx
push 0xfe
push edx
lea eax, [esp + 0x17a]
push eax
mov word [esp + 0x17c], dx
call fcn.0041a6e0
add esp, 0x18
push 1
push 0x23
lea ecx, [esp + 0x6c]
push ecx
push 0
call dword [sym.imp.SHELL32.dll_SHGetSpecialFolderPathW]
push str.baiduupdate
lea edx, [esp + 0x68]
push edx
call dword [sym.imp.SHLWAPI.dll_PathAppendW]
push str.baidujp_update.ini
lea eax, [esp + 0x68]
push eax
lea ecx, [esp + 0x16c]
push ecx
call dword [sym.imp.SHLWAPI.dll_PathCombineW]
lea edx, [esp + 0x164]
push edx
call dword [sym.imp.SHLWAPI.dll_PathFileExistsW]
test eax, eax
je 0x401133
mov eax, dword [esp + 0x26c]
push eax
lea ecx, [esp + 4]
push 0x42bef8
push ecx
call dword [sym.imp.USER32.dll_wsprintfW]
add esp, 0xc
lea edx, [esp + 0x164]
push edx
lea eax, [esp + 4]
push eax
push str.avast
push str.temp
call dword [sym.imp.KERNEL32.dll_WritePrivateProfileStringW]
mov ecx, dword [esp + 0x264]
xor ecx, esp
call fcn.0041752a
add esp, 0x268
ret
mov ecx, dword [esp + 0x264]
xor ecx, esp
xor eax, eax
call fcn.0041752a
add esp, 0x268
ret
Function at 0x401150
Capabilities:
Check if file exists
Create process on windows

Disassembly:
sub esp, 0x86c
mov eax, dword [0x4372c0]
xor eax, esp
mov dword [esp + 0x864], eax
push ebx
push ebp
push esi
push edi
push 0x1fe
xor esi, esi
lea ecx, [esp + 0x76]
xor eax, eax
push esi
push ecx
mov word [esp + 0x7c], ax
call fcn.0041a6e0
push 0x1fe
lea eax, [esp + 0x282]
xor edx, edx
push esi
push eax
mov word [esp + 0x288], dx
call fcn.0041a6e0
push 0x3fe
lea edx, [esp + 0x48e]
xor ecx, ecx
push esi
push edx
mov word [esp + 0x494], cx
call fcn.0041a6e0
add esp, 0x24
push 0x100
lea eax, [esp + 0x274]
push eax
push esi
call dword [sym.imp.KERNEL32.dll_GetModuleFileNameW]
lea ecx, [esp + 0x270]
push ecx
call dword [sym.imp.SHLWAPI.dll_PathRemoveFileSpecW]
push str.avast_free_antivirus_setup.exe
lea edx, [esp + 0x274]
push edx
lea eax, [esp + 0x78]
push eax
call dword [sym.imp.SHLWAPI.dll_PathCombineW]
lea ecx, [esp + 0x70]
push ecx
call dword [sym.imp.SHLWAPI.dll_PathFileExistsW]
test eax, eax
jne 0x401211
mov eax, 0x7d1
jmp 0x4012ff
push 0x42c1f4
lea edx, [esp + 0x74]
push edx
push str._s__s
lea eax, [esp + 0x47c]
push 0x200
push eax
call fcn.00417539
push 0x44
lea ecx, [esp + 0x40]
push esi
push ecx
mov dword [esp + 0x34], esi
call fcn.0041a6e0
mov edi, dword [sym.imp.KERNEL32.dll_CreateProcessW]
add esp, 0x20
xor eax, eax
lea edx, [esp + 0x18]
push edx
mov dword [esp + 0x1c], eax
mov dword [esp + 0x20], eax
mov dword [esp + 0x24], eax
mov dword [esp + 0x28], eax
lea eax, [esp + 0x2c]
push eax
push esi
push esi
push esi
push esi
push esi
push esi
lea ecx, [esp + 0x90]
push ecx
push esi
mov dword [esp + 0x50], 0x44
call edi
test eax, eax
jne 0x4012ca
mov ebp, dword [sym.imp.KERNEL32.dll_GetLastError]
mov ebx, dword [sym.imp.KERNEL32.dll_Sleep]
call ebp
cmp esi, 1
mov dword [esp + 0x14], eax
jg 0x4012ff
push 0x3e8
inc esi
call ebx
lea edx, [esp + 0x18]
push edx
lea eax, [esp + 0x2c]
push eax
push 0
push 0
push 0
push 0
push 0
push 0
lea ecx, [esp + 0x90]
push ecx
push 0
call edi
test eax, eax
je 0x401291
mov edx, dword [esp + 0x18]
push 0xffffffffffffffff
push edx
call dword [sym.imp.KERNEL32.dll_WaitForSingleObject]
mov ecx, dword [esp + 0x18]
lea eax, [esp + 0x14]
push eax
push ecx
call dword [sym.imp.KERNEL32.dll_GetExitCodeProcess]
mov edx, dword [esp + 0x18]
mov esi, dword [sym.imp.KERNEL32.dll_CloseHandle]
push edx
call esi
mov eax, dword [esp + 0x1c]
push eax
call esi
mov eax, dword [esp + 0x14]
mov ecx, dword [esp + 0x874]
pop edi
pop esi
pop ebp
pop ebx
xor ecx, esp
call fcn.0041752a
add esp, 0x86c
ret
Function at 0x401320
Capabilities:
Create process on windows
Get common file path

Disassembly:
sub esp, 0x494
mov eax, dword [0x4372c0]
xor eax, esp
mov dword [esp + 0x490], eax
push esi
push edi
xor eax, eax
push 0x206
push eax
lea ecx, [esp + 0x92]
push ecx
mov word [esp + 0x94], ax
call fcn.0041a6e0
add esp, 0xc
push 1
push 0x23
lea edx, [esp + 0x90]
push edx
push 0
call dword [sym.imp.SHELL32.dll_SHGetSpecialFolderPathW]
mov esi, dword [sym.imp.SHLWAPI.dll_PathAppendW]
push str.baiduupdate_baidujp_update.ini
lea eax, [esp + 0x8c]
push eax
call esi
xor ecx, ecx
push 0x206
push ecx
lea edx, [esp + 0x29a]
push edx
mov word [esp + 0x29c], cx
call fcn.0041a6e0
add esp, 0xc
lea eax, [esp + 0x290]
push eax
push 0x104
call dword [sym.imp.KERNEL32.dll_GetTempPathW]
push 0x42be88
lea ecx, [esp + 0x294]
push ecx
call esi
push str..exe
lea edx, [esp + 0x294]
push edx
call dword [sym.imp.SHLWAPI.dll_PathAddExtensionW]
push 0x3c
lea eax, [esp + 0x10]
push 0
push eax
call fcn.0041a6e0
add esp, 0xc
lea edx, [esp + 0xc]
lea ecx, [esp + 0x290]
push edx
mov dword [esp + 0x10], 0x3c
mov dword [esp + 0x1c], str.open
mov dword [esp + 0x20], ecx
mov dword [esp + 0x24], str.ime_inner_hp_14_hao123_jpbusiness_platform
mov dword [esp + 0x2c], 1
mov dword [esp + 0x14], 0x40
call dword [sym.imp.SHELL32.dll_ShellExecuteExW]
mov esi, dword [sym.imp.KERNEL32.dll_WritePrivateProfileStringW]
test eax, eax
je 0x40144e
lea eax, [esp + 0x88]
push eax
push 0x42be58
push 0x42be5c
push str.temp
call esi
mov edi, dword [esp + 0x44]
test edi, edi
jne 0x40146c
lea ecx, [esp + 0x88]
push ecx
push 0x42be84
push 0x42be5c
push str.temp
call esi
jmp 0x4014ff
push 0xffffffffffffffff
push edi
mov dword [esp + 0x10], 0
call dword [sym.imp.KERNEL32.dll_WaitForSingleObject]
test eax, eax
jne 0x4014f8
lea edx, [esp + 8]
push edx
push edi
call dword [sym.imp.KERNEL32.dll_GetExitCodeProcess]
test eax, eax
je 0x4014f8
xor eax, eax
push 0x3e
push eax
lea ecx, [esp + 0x52]
push ecx
mov word [esp + 0x54], ax
call fcn.0041a6e0
mov eax, dword [esp + 0x14]
push 0xa
push 0x20
lea edx, [esp + 0x5c]
push edx
push eax
call fcn.0041764d
add esp, 0x1c
lea ecx, [esp + 0x88]
push ecx
lea edx, [esp + 0x4c]
push edx
push str.hao_exitcode
push str.temp
call esi
mov esi, dword [esp + 8]
push edi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
pop edi
mov eax, esi
pop esi
mov ecx, dword [esp + 0x490]
xor ecx, esp
call fcn.0041752a
add esp, 0x494
ret
push edi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov ecx, dword [esp + 0x498]
pop edi
pop esi
xor ecx, esp
mov eax, 1
call fcn.0041752a
add esp, 0x494
ret
Function at 0x401610
Capabilities:
Extract resource via kernel32 functions

Disassembly:
push esi
push edi
mov edi, eax
mov eax, dword [0x43a348]
push edi
push eax
call dword [sym.imp.KERNEL32.dll_LoadResource]
mov esi, eax
test esi, esi
je 0x40164d
mov ecx, dword [0x43a348]
push edi
push ecx
call dword [sym.imp.KERNEL32.dll_SizeofResource]
mov edi, eax
test ebx, ebx
je 0x401667
push esi
call dword [sym.imp.KERNEL32.dll_LockResource]
test eax, eax
jne 0x401653
push esi
call dword [sym.imp.KERNEL32.dll_FreeResource]
pop edi
or eax, 0xffffffff
pop esi
ret
push edi
push eax
push ebx
call fcn.0041a760
add esp, 0xc
push esi
call dword [sym.imp.KERNEL32.dll_FreeResource]
mov eax, edi
pop edi
pop esi
ret

Function at 0x401670
Capabilities:
Extract resource via kernel32 functions

Disassembly:
sub esp, 0x18
push ebx
push ebp
push esi
push edi
lea eax, [esp + 0x2c]
push eax
lea ecx, [esp + 0x18]
push ecx
mov edi, 0x43a34c
call fcn.00401870
mov esi, dword [eax]
mov edi, dword [eax + 4]
mov ebx, dword [0x43a364]
test esi, esi
je 0x4016a2
cmp esi, dword [0x43a34c]
je 0x4016a7
call fcn.00417be5
cmp edi, ebx
je 0x4016cd
test esi, esi
jne 0x4016c9
call fcn.00417be5
cmp edi, dword [esi + 0x18]
jne 0x4016be
call fcn.00417be5
mov eax, dword [edi + 0x10]
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x18
ret
mov esi, dword [esi]
jmp 0x4016b4
movzx esi, word [esp + 0x2c]
mov edx, dword [0x43a348]
push 0x42bec0
push esi
push edx
xor ebp, ebp
call dword [sym.imp.KERNEL32.dll_FindResourceW]
mov edi, eax
test edi, edi
je 0x401772
mov eax, dword [0x43a348]
push edi
push eax
call dword [sym.imp.KERNEL32.dll_LoadResource]
test eax, eax
je 0x401772
mov ecx, dword [0x43a348]
push edi
push ecx
call dword [sym.imp.KERNEL32.dll_SizeofResource]
mov edi, eax
test edi, edi
jle 0x401772
push edi
call fcn.004174af
mov edx, dword [0x43a348]
add esp, 4
push 0x42bec0
push esi
push edx
mov ebx, eax
call dword [sym.imp.KERNEL32.dll_FindResourceW]
test eax, eax
je 0x40173d
call fcn.00401610
push ebx
mov edx, edi
call fcn.00404740
add esp, 4
push ebx
mov ebp, eax
call fcn.004177b0
mov eax, dword [esp + 0x30]
add esp, 4
lea ecx, [esp + 0x14]
push ecx
lea edi, [esp + 0x20]
mov ebx, 0x43a34c
mov dword [esp + 0x18], eax
mov dword [esp + 0x1c], ebp
call fcn.00401780
pop edi
pop esi
mov eax, ebp
pop ebp
pop ebx
add esp, 0x18
ret
Function at 0x402a80
Capabilities:
Log keystrokes via polling

Disassembly:
sub esp, 0x1c
mov ecx, dword [eax + 4]
mov edx, dword [eax]
push ebp
mov ebp, dword [esp + 0x28]
push esi
mov esi, dword [ebp + 0x10]
sub esi, dword [ebp + 0xc]
push edi
push ecx
push edx
lea eax, [esp + 0x40]
push eax
mov byte [esp + 0x3c], 0
mov byte [esp + 0x3d], 0
mov byte [esp + 0x3e], 0xff
mov byte [esp + 0x3f], 1
xor edi, edi
sar esi, 2
call dword [sym.imp.USER32.dll_PtInRect]
test eax, eax
je 0x402ada
mov edi, 1
push edi
call dword [sym.imp.USER32.dll_GetAsyncKeyState]
mov ecx, 0x8000
test cx, ax
je 0x402ada
mov edi, 2
cmp dword [esp + 0x34], 0
je 0x402ae4
add edi, 2
cmp edi, esi
jl 0x402aeb
lea edi, [esi - 1]
mov edx, dword [ebp + 0x10]
sub edx, dword [ebp + 0xc]
sar edx, 2
cmp edi, edx
jb 0x402afd
call fcn.00417be5
mov eax, dword [ebp + 0xc]
mov ecx, dword [eax + edi*4]
lea eax, [eax + edi*4]
mov eax, dword [esp + 0x2c]
push ecx
call fcn.00402bf0
mov edi, eax
test edi, edi
jne 0x402b1f
pop edi
pop esi
pop ebp
add esp, 0x1c
ret 0x1c
lea edx, [esp + 0x10]
push edx
push 0x18
push edi
call dword [sym.imp.GDI32.dll_GetObjectW]
push ebx
call dword [sym.imp.GDI32.dll_CreateCompatibleDC]
push edi
mov edi, dword [sym.imp.GDI32.dll_SelectObject]
mov esi, eax
push esi
call edi
mov ecx, dword [esp + 0x18]
mov edx, dword [esp + 0x14]
mov ebp, eax
mov eax, dword [esp + 0x30]
push eax
mov eax, dword [esp + 0x40]
push ecx
mov ecx, dword [esp + 0x4c]
push edx
mov edx, dword [esp + 0x4c]
push 0
push 0
push esi
sub ecx, eax
push ecx
mov ecx, dword [esp + 0x54]
sub edx, ecx
push edx
push eax
push ecx
push ebx
call dword [sym.imp.MSIMG32.dll_AlphaBlend]
push ebp
push esi
call edi
push esi
call dword [sym.imp.GDI32.dll_DeleteDC]
pop edi
pop esi
mov eax, 1
pop ebp
add esp, 0x1c
ret 0x1c

Function at 0x402b90
Capabilities:
Extract resource via kernel32 functions

Disassembly:
push ebp
mov ebp, dword [esp + 8]
push esi
push edi
mov edi, eax
mov eax, dword [ebx]
push edi
push eax
call dword [sym.imp.KERNEL32.dll_LoadResource]
mov esi, eax
test esi, esi
je 0x402bcb
mov ecx, dword [ebx]
push edi
push ecx
call dword [sym.imp.KERNEL32.dll_SizeofResource]
mov edi, eax
test ebp, ebp
je 0x402be8
push esi
call dword [sym.imp.KERNEL32.dll_LockResource]
test eax, eax
jne 0x402bd4
push esi
call dword [sym.imp.KERNEL32.dll_FreeResource]
pop edi
pop esi
or eax, 0xffffffff
pop ebp
ret 4
push edi
push eax
push ebp
call fcn.0041a760
add esp, 0xc
push esi
call dword [sym.imp.KERNEL32.dll_FreeResource]
mov eax, edi
pop edi
pop esi
pop ebp
ret 4
Function at 0x402bf0
Capabilities:
Extract resource via kernel32 functions

Disassembly:
sub esp, 0x18
push ebx
push ebp
push esi
push edi
mov ebx, eax
lea eax, [esp + 0x2c]
push eax
lea ecx, [esp + 0x18]
lea esi, [ebx + 0xf0]
push ecx
mov edi, esi
call fcn.00401870
mov edi, dword [eax]
mov edx, dword [esi + 0x18]
mov ebp, dword [eax + 4]
mov eax, dword [esi]
mov dword [esp + 0x24], edx
test edi, edi
je 0x402c26
cmp edi, eax
je 0x402c2b
call fcn.00417be5
cmp ebp, dword [esp + 0x24]
je 0x402c55
test edi, edi
jne 0x402c51
call fcn.00417be5
cmp ebp, dword [edi + 0x18]
jne 0x402c44
call fcn.00417be5
mov eax, dword [ebp + 0x10]
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x18
ret 4
mov edi, dword [edi]
jmp 0x402c3a
movzx ebp, word [esp + 0x2c]
mov eax, dword [ebx]
push 0x42bec0
push ebp
push eax
mov dword [esp + 0x2c], 0
call dword [sym.imp.KERNEL32.dll_FindResourceW]
mov edi, eax
test edi, edi
je 0x402cff
mov ecx, dword [ebx]
push edi
push ecx
call dword [sym.imp.KERNEL32.dll_LoadResource]
test eax, eax
je 0x402cff
mov edx, dword [ebx]
push edi
push edx
call dword [sym.imp.KERNEL32.dll_SizeofResource]
mov dword [esp + 0x14], eax
test eax, eax
jle 0x402cff
push eax
call fcn.004174af
add esp, 4
push 0x42bec0
mov edi, eax
mov eax, dword [ebx]
push ebp
push eax
call dword [sym.imp.KERNEL32.dll_FindResourceW]
test eax, eax
je 0x402cbf
push edi
call fcn.00402b90
mov edx, dword [esp + 0x14]
push edi
call fcn.00404740
add esp, 4
push edi
mov ebp, eax
call fcn.004177b0
mov ecx, dword [esp + 0x30]
add esp, 4
lea edx, [esp + 0x20]
push edx
lea edi, [esp + 0x18]
mov ebx, esi
mov dword [esp + 0x24], ecx
mov dword [esp + 0x28], ebp
call fcn.00401780
mov eax, ebp
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x18
ret 4
mov ebp, dword [esp + 0x20]
pop edi
pop esi
mov eax, ebp
pop ebp
pop ebx
add esp, 0x18
ret 4