joyce8/EMBER2024-capa huggingface dataset:
Function at 0x40dbf0
Capabilities:
Get common file path
Get startup folder

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x4eb4db
mov eax, dword fs:[0]
push eax
sub esp, 0x248
mov eax, dword [0x5441b4]
xor eax, ebp
mov dword [ebp - 0x10], eax
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
xor edi, edi
mov esi, 7
xor eax, eax
mov dword [ebp - 0x254], edi
mov dword [ebp - 0x220], esi
mov dword [ebp - 0x224], edi
mov word [ebp - 0x234], ax
push 0x206
lea edx, [ebp - 0x216]
xor ecx, ecx
push edi
mov dword [ebp - 4], edi
push edx
mov word [ebp - 0x218], cx
call fcn.004be120
add esp, 0xc
lea eax, [ebp - 0x218]
push eax
push edi
push edi
push 0x1a
push edi
call dword [sym.imp.SHELL32.dll_SHGetFolderPathW]
test eax, eax
jns 0x40dca7
mov dword [ebx + 0x14], esi
mov dword [ebx + 0x10], edi
xor ecx, ecx
lea edi, [ebp - 0x234]
mov esi, ebx
mov word [ebx], cx
call fcn.00406400
cmp dword [ebp - 0x220], 8
jb 0x40dde5
mov edx, dword [ebp - 0x234]
push edx
jmp 0x40dddd
lea esi, [ebp - 0x250]
cmp dword [0x545650], edi
jne 0x40dd24
call fcn.00403eb0
cmp dword [eax + 0x14], 8
jb 0x40dcc2
mov eax, dword [eax]
push eax
lea eax, [ebp - 0x218]
push eax
call dword [sym.imp.SHLWAPI.dll_PathAppendW]
cmp dword [ebp - 0x23c], 8
mov esi, eax
jb 0x40dcea
mov ecx, dword [ebp - 0x250]
push ecx
call fcn.004b6106
add esp, 4
cmp esi, edi
je 0x40dd94
lea eax, [ebp - 0x218]
lea edx, [eax + 2]
jmp 0x40dd00
mov cx, word [eax]
add eax, 2
cmp cx, di
jne 0x40dd00
sub eax, edx
sar eax, 1
push eax
lea edx, [ebp - 0x218]
push edx
lea ecx, [ebp - 0x234]
call fcn.004073c0
jmp 0x40dd94
call fcn.00403eb0
mov edi, 8
cmp dword [eax + 0x14], edi
jb 0x40dd35
mov eax, dword [eax]
push eax
lea eax, [ebp - 0x218]
push eax
call dword [sym.imp.SHLWAPI.dll_PathAppendW]
mov esi, eax
cmp dword [ebp - 0x23c], edi
jb 0x40dd5c
mov ecx, dword [ebp - 0x250]
push ecx
call fcn.004b6106
add esp, 4
test esi, esi
je 0x40dd92
lea eax, [ebp - 0x218]
lea edx, [eax + 2]
lea esp, [esp]
mov cx, word [eax]
add eax, 2
test cx, cx
jne 0x40dd70
sub eax, edx
sar eax, 1
push eax
lea edx, [ebp - 0x218]
push edx
lea ecx, [ebp - 0x234]
call fcn.004073c0
xor edi, edi
cmp dword [ebp - 0x220], 8
mov eax, dword [ebp - 0x234]
jae 0x40dda9
lea eax, [ebp - 0x234]
push eax
push edi
call dword [sym.imp.SHELL32.dll_SHCreateDirectory]
mov dword [ebx + 0x10], edi
xor eax, eax
mov dword [ebx + 0x14], 7
lea edi, [ebp - 0x234]
mov esi, ebx
mov word [ebx], ax
call fcn.00406400
cmp dword [ebp - 0x220], 8
jb 0x40dde5
mov ecx, dword [ebp - 0x234]
push ecx
call fcn.004b6106
add esp, 4
mov eax, ebx
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.004b6111
mov esp, ebp
pop ebp
ret
Function at 0x40de10
Capabilities:
Get common file path
Get startup folder

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x4eb49b
mov eax, dword fs:[0]
push eax
sub esp, 0x248
mov eax, dword [0x5441b4]
xor eax, ebp
mov dword [ebp - 0x10], eax
push ebx
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
xor ebx, ebx
xor eax, eax
mov esi, ecx
mov edi, edx
mov dword [ebp - 0x254], ebx
mov dword [ebp - 0x220], 7
mov dword [ebp - 0x224], ebx
mov word [ebp - 0x234], ax
push 0x206
lea edx, [ebp - 0x216]
xor ecx, ecx
push ebx
mov dword [ebp - 4], ebx
push edx
mov word [ebp - 0x218], cx
call fcn.004be120
add esp, 0xc
lea eax, [ebp - 0x218]
push eax
push ebx
push ebx
push 0x1a
push ebx
call dword [sym.imp.SHELL32.dll_SHGetFolderPathW]
test eax, eax
jns 0x40decd
xor ecx, ecx
mov dword [esi + 0x14], 7
mov dword [esi + 0x10], ebx
lea edi, [ebp - 0x234]
mov word [esi], cx
call fcn.00406400
cmp dword [ebp - 0x220], 8
jb 0x40dfe5
mov edx, dword [ebp - 0x234]
push edx
jmp 0x40dfdd
lea ecx, [ebp - 0x250]
cmp dword [edi + 0x10], ebx
jne 0x40df30
mov edx, 0x545640
call fcn.00403d10
cmp dword [eax + 0x14], 8
jb 0x40deea
mov eax, dword [eax]
push eax
lea eax, [ebp - 0x218]
push eax
call dword [sym.imp.SHLWAPI.dll_PathAppendW]
cmp dword [ebp - 0x23c], 8
mov edi, eax
jb 0x40df12
mov ecx, dword [ebp - 0x250]
push ecx
call fcn.004b6106
add esp, 4
cmp edi, ebx
je 0x40df96
lea eax, [ebp - 0x218]
lea edx, [eax + 2]
mov cx, word [eax]
add eax, 2
cmp cx, bx
jne 0x40df23
jmp 0x40df7f
mov edx, edi
call fcn.00403d10
cmp dword [eax + 0x14], 8
jb 0x40df3f
mov eax, dword [eax]
push eax
lea eax, [ebp - 0x218]
push eax
call dword [sym.imp.SHLWAPI.dll_PathAppendW]
cmp dword [ebp - 0x23c], 8
mov edi, eax
jb 0x40df67
mov ecx, dword [ebp - 0x250]
push ecx
call fcn.004b6106
add esp, 4
cmp edi, ebx
je 0x40df96
lea eax, [ebp - 0x218]
lea edx, [eax + 2]
mov cx, word [eax]
add eax, 2
cmp cx, bx
jne 0x40df74
sub eax, edx
sar eax, 1
push eax
lea edx, [ebp - 0x218]
push edx
lea ecx, [ebp - 0x234]
call fcn.004073c0
cmp dword [ebp - 0x220], 8
mov eax, dword [ebp - 0x234]
jae 0x40dfab
lea eax, [ebp - 0x234]
push eax
push ebx
call dword [sym.imp.SHELL32.dll_SHCreateDirectory]
xor eax, eax
mov dword [esi + 0x14], 7
mov dword [esi + 0x10], ebx
lea edi, [ebp - 0x234]
mov word [esi], ax
call fcn.00406400
cmp dword [ebp - 0x220], 8
jb 0x40dfe5
mov ecx, dword [ebp - 0x234]
push ecx
call fcn.004b6106
add esp, 4
mov eax, esi
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.004b6111
mov esp, ebp
pop ebp
ret
Function at 0x40e260
Capabilities:
Get common file path

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x210
mov eax, dword [0x5441b4]
xor eax, ebp
mov dword [ebp - 4], eax
lea eax, [ebp - 0x20c]
push eax
push 0x104
mov dword [ebp - 0x210], 0
call dword [sym.imp.KERNEL32.dll_GetTempPathW]
xor ecx, ecx
lea eax, [ebp - 0x20c]
mov dword [esi + 0x14], 7
mov dword [esi + 0x10], 0
mov word [esi], cx
lea edx, [eax + 2]
jmp 0x40e2b0
mov cx, word [eax]
add eax, 2
test cx, cx
jne 0x40e2b0
sub eax, edx
sar eax, 1
push eax
lea edx, [ebp - 0x20c]
push edx
mov ecx, esi
call fcn.004073c0
mov ecx, dword [ebp - 4]
xor ecx, ebp
mov eax, esi
call fcn.004b6111
mov esp, ebp
pop ebp
ret

Function at 0x40e610
Capabilities:
Check os version

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x120
mov eax, dword [0x5441b4]
xor eax, ebp
mov dword [ebp - 4], eax
push pe_nt_image_headers32
lea eax, [ebp - 0x11c]
push 0
push eax
mov dword [ebp - 0x120], 0x11c
call fcn.004be120
add esp, 0xc
lea ecx, [ebp - 0x120]
push ecx
call dword [sym.imp.KERNEL32.dll_GetVersionExW]
test eax, eax
jne 0x40e664
xor al, al
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.004b6111
mov esp, ebp
pop ebp
ret
cmp dword [ebp - 0x11c], 6
mov ecx, dword [ebp - 4]
setae al
xor ecx, ebp
call fcn.004b6111
mov esp, ebp
pop ebp
ret
Function at 0x412d70
Capabilities:
Extract resource via kernel32 functions

Disassembly:
push ebp
mov ebp, esp
push edi
mov edi, eax
mov eax, dword [ebp + 8]
push ebx
push eax
call dword [sym.imp.KERNEL32.dll_LoadResource]
test eax, eax
jne 0x412d88
pop edi
pop ebp
ret
push esi
push eax
call dword [sym.imp.KERNEL32.dll_LockResource]
mov esi, eax
test esi, esi
je 0x412dba
mov ecx, dword [ebp + 8]
push ebx
push ecx
call dword [sym.imp.KERNEL32.dll_SizeofResource]
add eax, esi
and edi, 0xf
jbe 0x412db6
cmp esi, eax
jae 0x412dba
dec edi
movzx edx, word [esi]
lea esi, [esi + edx*2 + 2]
jne 0x412da8
cmp esi, eax
jb 0x412dc0
pop esi
xor eax, eax
pop edi
pop ebp
ret
movzx eax, word [esi]
neg eax
sbb eax, eax
and eax, esi
pop esi
pop edi
pop ebp
ret

Function at 0x413990
Capabilities:
Initialize winhttp library

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x4eb41b
mov eax, dword fs:[0]
push eax
push ebx
push esi
push edi
mov eax, dword [0x5441b4]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov esi, dword [ebp + 8]
xor ebx, ebx
mov eax, 0x1388
mov dword [esi], vtable.CHttpClient.0
mov dword [esi + 4], ebx
mov dword [esi + 8], ebx
mov dword [esi + 0xc], ebx
mov dword [esi + 0x10], ebx
mov dword [esi + 0x14], eax
mov dword [esi + 0x18], eax
mov dword [esi + 0x1c], eax
mov eax, dword [0x543f28]
mov edx, dword [eax + 0xc]
mov ecx, 0x543f28
lea edi, [esi + 0x20]
call edx
add eax, 0x10
mov dword [edi], eax
push ebx
push ebx
push ebx
push ebx
mov dword [ebp - 4], ebx
push 0x50ce20
mov dword [esi + 0x24], ebx
mov dword [esi + 0x28], ebx
call dword [sym.imp.WINHTTP.dll_WinHttpOpen]
mov dword [esi + 4], eax
cmp eax, ebx
jne 0x413a2b
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
push 0x50ce58
push 0x50cfd8
call fcn.00406b50
add esp, 0xc
jmp 0x413a3f
mov ecx, dword [esi + 0x1c]
mov edx, dword [esi + 0x18]
push ecx
mov ecx, dword [esi + 0x14]
push edx
push ecx
push ebx
push eax
call dword [sym.imp.WINHTTP.dll_WinHttpSetTimeouts]
mov eax, esi
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 4
Function at 0x413f20
Capabilities:
Receive http response

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x4ec5b8
mov eax, dword fs:[0]
push eax
sub esp, 0x2c
mov eax, dword [0x5441b4]
xor eax, ebp
mov dword [ebp - 0x10], eax
push ebx
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov eax, dword [ebp + 8]
xor ebx, ebx
cmp dword [esi + 0x14], 0x10
mov edi, ecx
mov dword [esi + 0x10], ebx
jb 0x413f5e
mov ecx, dword [esi]
jmp 0x413f60
mov ecx, esi
mov byte [ecx], bl
push eax
xor ecx, ecx
mov edx, edi
mov byte [ebp - 0x2d], bl
call fcn.00414390
test al, al
je 0x413fde
xor eax, eax
mov dword [ebp - 0x34], ebx
mov dword [ebp - 0x38], ebx
mov dword [ebp - 0x18], 7
mov dword [ebp - 0x1c], ebx
mov word [ebp - 0x2c], ax
lea ecx, [ebp - 0x2c]
push ecx
mov dword [ebp - 4], ebx
call fcn.00414280
test al, al
je 0x413fe5
push 3
push 0x50cecc
lea edx, [ebp - 0x2c]
push edx
xor eax, eax
call fcn.0040c250
cmp eax, 0xffffffff
je 0x413fe5
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
push str.QueryRawHeaders404
push 0x50cfd8
add edi, 0x20
call fcn.00406b50
add esp, 0xc
cmp dword [ebp - 0x18], 8
jb 0x413fde
mov eax, dword [ebp - 0x2c]
push eax
call fcn.004b6106
add esp, 4
xor al, al
jmp 0x414089
mov edx, dword [edi + 0xc]
lea ecx, [ebp - 0x34]
push ecx
push edx
call dword [sym.imp.WINHTTP.dll_WinHttpQueryDataAvailable]
test eax, eax
je 0x413fcc
push 0x100000
call fcn.004b7340
mov ebx, eax
mov eax, dword [ebp - 0x34]
add esp, 4
cmp eax, 0x100000
ja 0x414051
mov edx, dword [edi + 0xc]
lea ecx, [ebp - 0x38]
push ecx
push eax
push ebx
push edx
call dword [sym.imp.WINHTTP.dll_WinHttpReadData]
test eax, eax
je 0x41406b
mov eax, dword [ebp - 0x38]
push eax
mov eax, ebx
mov ecx, esi
call fcn.004017f0
mov edx, dword [edi + 0xc]
lea ecx, [ebp - 0x34]
push ecx
push edx
call dword [sym.imp.WINHTTP.dll_WinHttpQueryDataAvailable]
test eax, eax
je 0x41406b
mov eax, dword [ebp - 0x34]
test eax, eax
je 0x414067
cmp eax, 0x100000
jbe 0x414010
push ebx
call fcn.004b7789
mov eax, dword [ebp - 0x34]
push eax
call fcn.004b7340
add esp, 8
mov ebx, eax
jmp 0x41406b
mov byte [ebp - 0x2d], 1
push ebx
call fcn.004b7789
add esp, 4
cmp dword [ebp - 0x18], 8
jb 0x414086
mov ecx, dword [ebp - 0x2c]
push ecx
call fcn.004b6106
add esp, 4
mov al, byte [ebp - 0x2d]
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop ebx
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.004b6111
mov esp, ebp
pop ebp
ret 4
Function at 0x4140b0
Capabilities:
Receive http response

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x4ec588
mov eax, dword fs:[0]
push eax
sub esp, 0x30
mov eax, dword [0x5441b4]
xor eax, ebp
mov dword [ebp - 0x10], eax
push ebx
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov ebx, dword [ebp + 8]
mov eax, dword [ebp + 0xc]
xor esi, esi
mov dword [ebp - 0x3c], esi
mov edi, edx
mov dword [ebp - 0x34], ebx
mov dword [ebp - 0x18], 0xf
mov dword [ebp - 0x1c], esi
mov byte [ebp - 0x2c], 0
push eax
mov dword [ebp - 4], esi
call fcn.00414390
test al, al
jne 0x41412f
mov dword [ebx + 0x10], esi
mov dword [ebx + 0x14], 0xf
lea edi, [ebp - 0x2c]
mov esi, ebx
mov byte [ebx], al
call fcn.004015f0
cmp dword [ebp - 0x18], 0x10
jb 0x414206
mov eax, dword [ebp - 0x2c]
push eax
jmp 0x4141fe
push 0x100000
call fcn.004b7340
mov edx, dword [edi + 0xc]
add esp, 4
lea ecx, [ebp - 0x38]
push ecx
push edx
mov esi, eax
mov byte [ebp - 0x2d], 0
call dword [sym.imp.WINHTTP.dll_WinHttpQueryDataAvailable]
test eax, eax
je 0x4141b4
mov ebx, dword [ebp - 0x38]
test ebx, ebx
je 0x4141ad
cmp ebx, 0x100000
jbe 0x414177
push esi
call fcn.004b7789
mov ebx, dword [ebp - 0x38]
push ebx
call fcn.004b7340
add esp, 8
mov esi, eax
mov ecx, dword [edi + 0xc]
lea eax, [ebp - 0x3c]
push eax
push ebx
push esi
push ecx
call dword [sym.imp.WINHTTP.dll_WinHttpReadData]
test eax, eax
je 0x4141b1
mov edx, dword [ebp - 0x3c]
push edx
mov eax, esi
lea ecx, [ebp - 0x2c]
call fcn.004017f0
mov ecx, dword [edi + 0xc]
lea eax, [ebp - 0x38]
push eax
push ecx
call dword [sym.imp.WINHTTP.dll_WinHttpQueryDataAvailable]
test eax, eax
jne 0x414154
jmp 0x4141b1
mov byte [ebp - 0x2d], 1
mov ebx, dword [ebp - 0x34]
push esi
call fcn.004b7789
add esp, 4
cmp byte [ebp - 0x2d], 0
jne 0x4141d9
cmp dword [ebp - 0x18], 0x10
mov eax, dword [ebp - 0x2c]
mov dword [ebp - 0x1c], 0
jae 0x4141d6
lea eax, [ebp - 0x2c]
mov byte [eax], 0
mov dword [ebx + 0x14], 0xf
mov dword [ebx + 0x10], 0
lea edi, [ebp - 0x2c]
mov esi, ebx
mov byte [ebx], 0
call fcn.004015f0
cmp dword [ebp - 0x18], 0x10
jb 0x414206
mov edx, dword [ebp - 0x2c]
push edx
call fcn.004b6106
add esp, 4
mov eax, ebx
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.004b6111
mov esp, ebp
pop ebp
ret 8
Function at 0x414280
Capabilities:
Read http header

Disassembly:
push ebp
mov ebp, esp
push ecx
mov ecx, dword [edi + 0xc]
push ebx
push 0
lea eax, [ebp - 4]
push eax
push 0
push 0
push 0x15
push ecx
xor bl, bl
call dword [sym.imp.WINHTTP.dll_WinHttpQueryHeaders]
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0x7a
jne 0x4142fa
mov edx, dword [ebp - 4]
push esi
push edx
call fcn.004b7340
mov ecx, dword [edi + 0xc]
add esp, 4
push 0
mov esi, eax
lea eax, [ebp - 4]
push eax
push esi
push 0
push 0x15
push ecx
call dword [sym.imp.WINHTTP.dll_WinHttpQueryHeaders]
test eax, eax
je 0x4142f0
mov eax, esi
lea edx, [eax + 2]
mov cx, word [eax]
add eax, 2
test cx, cx
jne 0x4142d5
mov ecx, dword [ebp + 8]
sub eax, edx
sar eax, 1
push eax
push esi
call fcn.004073c0
mov bl, 1
push esi
call fcn.004b7789
add esp, 4
pop esi
mov al, bl
pop ebx
mov esp, ebp
pop ebp
ret 4

Function at 0x414310
Capabilities:
Read http header

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x48
mov eax, dword [0x5441b4]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
xor eax, eax
push 0x3a
push eax
lea ecx, [ebp - 0x3e]
push ecx
xor bl, bl
mov word [ebp - 0x40], ax
call fcn.004be120
mov ecx, dword [esi + 0xc]
add esp, 0xc
push 0
lea edx, [ebp - 0x48]
push edx
lea eax, [ebp - 0x40]
push eax
push 0
push 5
push ecx
mov dword [ebp - 0x48], 0x3c
call dword [sym.imp.WINHTTP.dll_WinHttpQueryHeaders]
test eax, eax
je 0x414378
push 0xa
lea edx, [ebp - 0x44]
push edx
lea eax, [ebp - 0x40]
push eax
mov dword [ebp - 0x44], 0
call fcn.004b8a7c
add esp, 0xc
mov dword [edi], eax
mov bl, 1
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov ecx, dword [ebp - 4]
mov al, bl
xor ecx, ebp
pop ebx
call fcn.004b6111
mov esp, ebp
pop ebp
ret
Function at 0x414a90
Capabilities:
Access peb ldr_data

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x4e8648
mov eax, dword fs:[0]
push eax
sub esp, 0x20
push ebx
push esi
push edi
mov eax, dword [0x5441b4]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov esi, dword [ebp + 8]
xor ebx, ebx
push 8
mov dword [esi], ebx
call fcn.004b64b4
add esp, 4
cmp eax, ebx
je 0x414b74
mov dword [esi], eax
xor ecx, ecx
mov dword [eax], ecx
xor edx, edx
mov dword [eax + 4], edx
mov eax, dword [esi]
mov dword [eax], esi
mov dword [esi + 4], ebx
mov dword [esi + 8], ebx
mov dword [esi + 0xc], ebx
mov dword [esi + 0x10], ebx
mov dword [ebp - 4], ebx
lea edi, [esi + 0x18]
push 8
mov dword [edi], ebx
call fcn.004b64b4
add esp, 4
cmp eax, ebx
je 0x414b50
mov dword [edi], eax
xor ecx, ecx
mov dword [eax], ecx
xor edx, edx
mov dword [eax + 4], edx
mov ecx, dword [edi]
mov dword [ecx], edi
mov dword [edi + 4], ebx
mov dword [edi + 8], ebx
mov dword [edi + 0xc], ebx
mov dword [edi + 0x10], ebx
mov eax, 0xf
mov dword [esi + 0x44], eax
mov dword [esi + 0x40], ebx
mov byte [esi + 0x30], bl
mov dword [esi + 0x74], eax
mov dword [esi + 0x70], ebx
mov byte [esi + 0x60], bl
mov word [esi + 0x7c], 1
mov eax, esi
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 4
lea edx, [ebp - 0x10]
push edx
lea ecx, [ebp - 0x20]
mov dword [ebp - 0x10], ebx
call fcn.004b61b9
push 0x51e750
lea eax, [ebp - 0x20]
push eax
mov dword [ebp - 0x20], vtable.std::bad_alloc.0
call fcn.004ba7b9
lea ecx, [ebp - 0x14]
push ecx
lea ecx, [ebp - 0x2c]
mov dword [ebp - 0x14], ebx
call fcn.004b61b9
push 0x51e750
lea edx, [ebp - 0x2c]
push edx
mov dword [ebp - 0x2c], vtable.std::bad_alloc.0
call fcn.004ba7b9
int3
Function at 0x4215f0
Capabilities:
Access peb ldr_data
Get process heap flags

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x4e7c1b
mov eax, dword fs:[0]
push eax
push ecx
push ebx
push esi
push edi
mov eax, dword [0x5441b4]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov esi, dword [ebp + 8]
lea ecx, [esi + 4]
mov dword [esi], vtable.std::basic_streambuf_char__struct_std::char_traits_char__.0
call fcn.004700b5
push 4
mov dword [ebp - 4], 0
call fcn.004b64b4
mov edi, eax
add esp, 4
test edi, edi
je 0x42166c
call fcn.00470671
mov dword [edi], eax
call fcn.004703b2
push 0
lea ecx, [ebp - 0x10]
mov ebx, eax
call fcn.0047021b
mov eax, dword [ebx + 4]
cmp eax, 0xffffffff
jae 0x421662
inc eax
mov dword [ebx + 4], eax
lea ecx, [ebp - 0x10]
call fcn.00470243
jmp 0x42166e
xor edi, edi
lea eax, [esi + 8]
mov dword [esi + 0x10], eax
lea ecx, [esi + 0x18]
mov dword [esi + 0x20], ecx
lea edx, [esi + 0x1c]
mov dword [esi + 0x24], edx
mov dword [esi + 0x38], edi
lea eax, [esi + 0xc]
mov dword [esi + 0x14], eax
lea ecx, [esi + 0x28]
mov dword [esi + 0x30], ecx
lea edx, [esi + 0x2c]
mov dword [esi + 0x34], edx
mov dword [eax], 0
mov eax, dword [esi + 0x24]
mov dword [eax], 0
mov ecx, dword [esi + 0x34]
mov dword [ecx], 0
mov edx, dword [esi + 0x10]
mov dword [edx], 0
mov eax, dword [esi + 0x20]
mov dword [eax], 0
mov ecx, dword [esi + 0x30]
mov dword [ecx], 0
mov eax, esi
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 4
Function at 0x42a250
Capabilities:
Terminate thread

Disassembly:
push ebp
mov ebp, esp
push ecx
mov eax, dword [esi + 0xb4]
push ebx
push eax
mov byte [esi], 0
mov byte [esi + 0xa0], 1
call dword [sym.imp.KERNEL32.dll_SetEvent]
mov eax, dword [esi + 0xa4]
mov ebx, dword [sym.imp.KERNEL32.dll_CloseHandle]
cmp eax, 0xffffffff
je 0x42a2bf
push 0x1388
push eax
call dword [sym.imp.KERNEL32.dll_WaitForSingleObject]
test eax, eax
je 0x42a2b6
mov edx, dword [esi + 0xa4]
lea ecx, [ebp - 4]
push ecx
push edx
mov dword [ebp - 4], 0
call dword [sym.imp.KERNEL32.dll_GetExitCodeThread]
mov eax, dword [ebp - 4]
mov ecx, dword [esi + 0xa4]
push eax
push ecx
call dword [sym.imp.KERNEL32.dll_TerminateThread]
mov edx, dword [esi + 0xa4]
push edx
call ebx
cmp byte [esi + 0x6c], 0
push edi
je 0x42a2f1
lea edi, [esi + 0x84]
push edi
call dword [sym.imp.KERNEL32.dll_EnterCriticalSection]
mov eax, dword [esi + 0x80]
push eax
call ebx
push edi
mov dword [esi + 0x80], 0
call dword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
mov byte [esi + 0x6c], 0
mov ecx, dword [esi + 0xb4]
push ecx
call ebx
lea edx, [esi + 0x84]
push edx
call dword [sym.imp.KERNEL32.dll_DeleteCriticalSection]
lea ebx, [esi + 0xa8]
call fcn.0042c8c0
mov eax, dword [ebx]
push eax
call fcn.004b6106
mov edi, 8
add esp, 4
cmp dword [esi + 0x64], edi
jb 0x42a333
mov ecx, dword [esi + 0x50]
push ecx
call fcn.004b6106
add esp, 4
xor ebx, ebx
xor edx, edx
mov dword [esi + 0x64], 7
mov dword [esi + 0x60], ebx
mov word [esi + 0x50], dx
cmp dword [esi + 0x48], edi
jb 0x42a356
mov eax, dword [esi + 0x34]
push eax
call fcn.004b6106
add esp, 4
xor ecx, ecx
mov dword [esi + 0x48], 7
mov dword [esi + 0x44], ebx
mov word [esi + 0x34], cx
cmp dword [esi + 0x2c], edi
pop edi
jb 0x42a378
mov edx, dword [esi + 0x18]
push edx
call fcn.004b6106
add esp, 4
mov dword [esi + 0x28], ebx
xor eax, eax
mov dword [esi + 0x2c], 7
mov word [esi + 0x18], ax
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x42bc40
Capabilities:
Terminate thread

Disassembly:
push ebp
mov ebp, esp
push ecx
mov eax, dword [esi + 0xb4]
push eax
mov byte [esi], 0
call dword [sym.imp.KERNEL32.dll_SetEvent]
mov eax, dword [esi + 0xa4]
cmp eax, 0xffffffff
je 0x42bce9
push 0xffffffffffffffff
push eax
call dword [sym.imp.KERNEL32.dll_WaitForSingleObject]
test eax, eax
jne 0x42bce9
mov edx, dword [esi + 0xa4]
push ebx
lea ecx, [ebp - 4]
push ecx
push edx
mov dword [ebp - 4], eax
call dword [sym.imp.KERNEL32.dll_GetExitCodeThread]
mov eax, dword [ebp - 4]
mov ecx, dword [esi + 0xa4]
push eax
push ecx
call dword [sym.imp.KERNEL32.dll_TerminateThread]
mov edx, dword [esi + 0xa4]
mov ebx, dword [sym.imp.KERNEL32.dll_CloseHandle]
push edx
call ebx
cmp byte [esi + 0x6c], 0
mov dword [esi + 0xa4], 0xffffffff
je 0x42bce2
push edi
lea edi, [esi + 0x84]
push edi
call dword [sym.imp.KERNEL32.dll_EnterCriticalSection]
mov eax, dword [esi + 0x80]
push eax
call ebx
push edi
mov dword [esi + 0x80], 0
call dword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
mov byte [esi + 0x6c], 0
pop edi
mov al, 1
pop ebx
mov esp, ebp
pop ebp
ret
xor al, al
mov esp, ebp
pop ebp
ret
Function at 0x42e660
Capabilities:
Log keystrokes via polling

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
sub esp, 0xc
push ebx
push esi
mov esi, dword [ebp + 0x10]
push edi
mov edi, dword [ebp + 8]
mov ebx, ecx
xor ecx, ecx
mov dword [esp + 0x10], ecx
mov dword [esp + 0x14], 1
cmp edi, 0x83
ja 0x42e6d4
je case.0x42e6ec.133
mov eax, edi
dec eax
je 0x42e6ae
sub eax, 0x23
jne case.0x42e6ec.135
lea edi, [esp + 0x14]
mov ecx, ebx
call fcn.0042ecb0
mov edi, dword [ebp + 8]
mov dword [esp + 0x10], eax
jmp 0x42e72c
mov edx, dword [ebp + 0xc]
mov eax, dword [ebx]
mov eax, dword [eax + 0x20]
lea ecx, [esp + 0x14]
push ecx
push esi
push edx
push 1
mov ecx, ebx
call eax
mov dword [esp + 0x10], eax
jmp 0x42e72c
xor eax, eax
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 0xc
lea eax, [edi - 0x84]
cmp eax, 0x8e
ja case.0x42e6ec.135
movzx edx, byte [eax + 0x42e7ec]
jmp dword [edx*4 + 0x42e7d4]
push 0xd
call dword [sym.imp.USER32.dll_GetKeyState]
test ax, ax
jns 0x42e728
mov ecx, dword [ebx + 0x358]
mov eax, dword [ecx]
mov edx, dword [eax + 0xc8]
call edx
test al, al
je 0x42e728
mov eax, dword [ebx]
mov edx, dword [eax]
push 1
mov ecx, ebx
mov dword [ebx + 0x350], 0
call edx
mov eax, dword [esp + 0x10]
cmp dword [esp + 0x14], 0
jne 0x42e7cb
mov eax, dword [ebp + 0xc]
lea edx, [esp + 0x10]
push edx
push esi
push eax
push edi
lea ecx, [ebx + 0x14]
call dword [0x516454]
test al, al
je 0x42e7bd
mov eax, dword [esp + 0x10]
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 0xc
mov eax, dword [ebp + 0xc]
cmp eax, 0xf060
jne 0x42e77d
push ecx
call dword [sym.imp.USER32.dll_PostQuitMessage]
xor eax, eax
mov dword [esp + 0x14], 1
mov dword [esp + 0x10], eax
jmp 0x42e72c
push esi
push eax
push edi
mov eax, ebx
call fcn.0042e1c0
mov dword [esp + 0x10], eax
jmp 0x42e72c
push esi
mov ecx, ebx
call fcn.0042e280
mov dword [esp + 0x10], eax
jmp 0x42e72c
mov ecx, dword [ebp + 0xc]
lea eax, [esp + 0x14]
push eax
push ecx
mov ecx, ebx
call fcn.0042e4c0
mov dword [esp + 0x10], eax
jmp 0x42e72c
mov dword [esp + 0x14], ecx
jmp 0x42e737
mov ecx, dword [ebp + 0xc]
push esi
push ecx
push edi
mov ecx, ebx
call dword [0x516458]
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 0xc