joyce8/EMBER2024-capa huggingface dataset:
Function at 0x4084c0
Capabilities:
Write file on windows

Disassembly:
sub esp, 0x418
push ebx
push esi
push edi
push ebp
xor edi, edi
mov ebp, dword [esp + 0x434]
mov dword [esp + 0x20], edi
cmp ebp, edi
jne 0x4084e8
xor eax, eax
pop ebp
pop edi
pop esi
pop ebx
add esp, 0x418
ret
mov edx, dword [esp + 0x42c]
mov eax, edx
and eax, 0xffffffe7
sar eax, 3
add eax, 0x41e760
mov dword [esp + 0x18], eax
mov eax, edx
and eax, 0x1f
mov ebx, dword [esp + 0x18]
shl eax, 2
lea ecx, [eax + eax*8]
mov eax, dword [ebx]
mov dword [esp + 0x1c], ecx
test byte [eax + ecx + 4], 0x20
je 0x408529
push 2
push 0
push edx
call fcn.00408a80
add esp, 0xc
mov eax, dword [esp + 0x18]
mov ecx, dword [esp + 0x1c]
add ecx, dword [eax]
test byte [ecx + 4], 0x80
je 0x4085c5
mov dword [esp + 0x10], 0
mov ebx, dword [esp + 0x430]
mov eax, ebx
sub eax, dword [esp + 0x430]
cmp eax, ebp
jae 0x4085fe
lea esi, [esp + 0x24]
mov eax, ebx
sub eax, dword [esp + 0x430]
cmp eax, ebp
jae 0x40858c
mov al, byte [ebx]
inc ebx
cmp al, 0xa
jne 0x40857a
mov byte [esi], 0xd
inc edi
inc esi
mov byte [esi], al
inc esi
mov eax, esi
lea ecx, [esp + 0x24]
sub eax, ecx
cmp eax, 0x400
jl 0x408561
lea eax, [esp + 0x24]
push 0
sub esi, eax
lea ecx, [esp + 0x28]
lea eax, [esp + 0x18]
mov edx, dword [esp + 0x1c]
push eax
push esi
push ecx
mov eax, dword [edx]
mov ecx, dword [esp + 0x2c]
mov edx, dword [eax + ecx]
push edx
call dword [0x41f5b8]
test eax, eax
je 0x4085f4
mov eax, dword [esp + 0x14]
add dword [esp + 0x20], eax
cmp eax, esi
jge 0x40854c
jmp 0x4085fe
lea eax, [esp + 0x14]
push 0
mov edx, dword [esp + 0x434]
push eax
push ebp
mov ecx, dword [ecx]
push edx
push ecx
call dword [0x41f5b8]
test eax, eax
je 0x4085f4
mov dword [esp + 0x10], 0
mov eax, dword [esp + 0x14]
mov dword [esp + 0x20], eax
jmp 0x4085fe
call dword [0x41f62c]
mov dword [esp + 0x10], eax
cmp dword [esp + 0x20], 0
jne 0x4086aa
cmp dword [esp + 0x10], 0
je 0x40865a
cmp dword [esp + 0x10], 5
jne 0x40863d
call fcn.00403500
mov dword [eax], 9
call fcn.00403510
mov ecx, dword [esp + 0x10]
pop ebp
pop edi
mov dword [eax], ecx
mov eax, 0xffffffff
pop esi
pop ebx
add esp, 0x418
ret
mov ecx, dword [esp + 0x10]
push ecx
call fcn.00403480
add esp, 4
mov eax, 0xffffffff
pop ebp
pop edi
pop esi
pop ebx
add esp, 0x418
ret
mov eax, dword [esp + 0x18]
mov ecx, dword [esp + 0x1c]
mov edx, dword [eax]
test byte [edx + ecx + 4], 0x40
je 0x408684
mov eax, dword [esp + 0x430]
cmp byte [eax], 0x1a
jne 0x408684
xor eax, eax
pop ebp
pop edi
pop esi
pop ebx
add esp, 0x418
ret
call fcn.00403500
mov dword [eax], 0x1c
call fcn.00403510
pop ebp
mov dword [eax], 0
mov eax, 0xffffffff
pop edi
pop esi
pop ebx
add esp, 0x418
ret
mov eax, dword [esp + 0x20]
pop ebp
sub eax, edi
pop edi
pop esi
pop ebx
add esp, 0x418
ret

Function at 0x409d98
Capabilities:
Log keystrokes via polling

Disassembly:
mov eax, dword [esp + 4]
push esi
cmp dword [eax + 4], 0x100
jne 0x409ddd
cmp dword [eax + 8], 0x70
jne 0x409ddd
mov eax, dword [eax + 0xc]
shr eax, 0x10
test ah, 0x40
jne 0x409ddd
push 0x10
mov esi, dword [0x41f7ec]
call esi
test ax, ax
jl 0x409ddd
push 0x11
call esi
test ax, ax
jl 0x409ddd
push 0x12
call esi
test ax, ax
mov eax, 1
jge 0x409ddf
xor eax, eax
pop esi
ret 4
Function at 0x40d871
Capabilities:
Get disk information

Disassembly:
mov eax, 0x40d950
call fcn.004027f0
sub esp, 0x150
lea eax, [ebp - 0x18]
push ebx
push esi
push edi
mov ebx, 0x104
push eax
mov edi, dword [ebp + 8]
push edi
mov esi, dword [ebp + 0xc]
push ebx
push esi
call dword [0x41f57c]
test eax, eax
jne 0x40d8be
push ebx
push esi
push edi
call dword [0x41f5fc]
xor eax, eax
mov ecx, dword [ebp - 0xc]
pop edi
mov dword fs:[0], ecx
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 8
lea ecx, [ebp - 0x10]
xor ebx, ebx
call fcn.0040a4ea
lea eax, [ebp - 0x10]
mov dword [ebp - 4], ebx
push eax
push edi
call fcn.0040d962
push ebx
lea eax, [ebp - 0x14]
push ebx
lea ecx, [ebp - 0x1c]
push eax
push ecx
push ebx
push ebx
push ebx
push dword [ebp - 0x10]
call dword [0x41f560]
test eax, eax
jne 0x40d8fd
mov dword [ebp - 4], 0xffffffff
call fcn.0040d95a
jmp 0x40d8a9
test byte [ebp - 0x14], 2
jne 0x40d90a
push edi
call dword [0x41f7b0]
test byte [ebp - 0x14], 4
jne 0x40d93a
lea eax, [ebp - 0x15c]
push eax
push esi
call dword [0x41f664]
cmp eax, 0xffffffff
je 0x40d93a
push eax
call dword [0x41f660]
lea eax, [ebp - 0x130]
push eax
push dword [ebp - 0x18]
call dword [0x41f668]
mov dword [ebp - 4], 0xffffffff
call fcn.0040d95a
mov eax, 1
jmp 0x40d8ab

Function at 0x40e0cc
Capabilities:
Get graphical window text

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x100
push esi
push edi
mov esi, dword [ebp + 0xc]
push esi
call dword [0x41f5c4]
mov edi, eax
mov eax, 0x100
cmp edi, eax
ja 0x40e113
push eax
lea eax, [ebp - 0x100]
push eax
push dword [ebp + 8]
call dword [0x41f774]
cmp eax, edi
jne 0x40e113
push esi
lea eax, [ebp - 0x100]
push eax
call dword [0x41f634]
test eax, eax
je 0x40e11d
push esi
push dword [ebp + 8]
call dword [0x41f778]
pop edi
pop esi
mov esp, ebp
pop ebp
ret 8

Function at 0x40ed9d
Capabilities:
Set registry value

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x10
push esi
push edi
cmp dword [ecx + 0x7c], 0
mov esi, ecx
je 0x40ede5
push dword [ebp + 8]
call fcn.00412360
mov esi, eax
test esi, esi
jne 0x40edbf
xor eax, eax
jmp 0x40ee10
push 4
lea eax, [ebp + 0x10]
push eax
push 4
push 0
push dword [ebp + 0xc]
push esi
call dword [0x41f490]
mov edi, eax
push esi
call dword [0x41f498]
cmp edi, 1
sbb eax, eax
neg eax
jmp 0x40ee10
push dword [ebp + 0x10]
push 0x4144fc
lea ecx, [ebp - 0x10]
push ecx
call dword [0x41f824]
add esp, 0xc
lea edx, [ebp - 0x10]
push dword [esi + 0x90]
push edx
push dword [ebp + 0xc]
push dword [ebp + 8]
call dword [0x41f5ec]
pop edi
pop esi
mov esp, ebp
pop ebp
ret 0xc
Function at 0x40f499
Capabilities:
Hide graphical window

Disassembly:
push ebx
push esi
push edi
mov esi, ecx
push ebp
push 5
call dword [0x41f798]
push eax
call dword [0x41f784]
mov edi, eax
test edi, edi
je 0x40f52f
mov ebp, 0x18000000
push edi
call fcn.0040b120
mov ebx, eax
test ebx, ebx
je 0x40f520
mov eax, dword [esi + 0x1c]
cmp edi, eax
je 0x40f520
push edi
push eax
call fcn.0040f2ed
test eax, eax
je 0x40f520
push 0xfffffffffffffff0
push edi
call dword [0x41f794]
cmp dword [esp + 0x14], 0
jne 0x40f509
mov ecx, eax
and ecx, ebp
cmp ecx, 0x10000000
jne 0x40f502
push 0
push edi
call dword [0x41f744]
or byte [ebx + 0x24], 2
jmp 0x40f520
cmp dword [esp + 0x14], 0
je 0x40f520
test ebp, eax
jne 0x40f520
test byte [ebx + 0x24], 2
je 0x40f520
push 4
push edi
call dword [0x41f744]
and byte [ebx + 0x24], 0xfd
push 2
push edi
call dword [0x41f784]
mov edi, eax
test edi, edi
jne 0x40f4b9
pop ebp
pop edi
pop esi
pop ebx
ret 4
Function at 0x410a94
Capabilities:
Hide graphical window

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x14
push ebx
push esi
mov eax, dword [ecx]
push edi
mov esi, ecx
call dword [eax + 0xc8]
cmp dword [ebp + 8], 0
mov dword [ebp - 0x10], eax
je 0x410abe
mov ecx, dword [eax + 0x68]
test ecx, ecx
je 0x410abe
push 0
mov eax, dword [ecx]
call dword [eax + 0x64]
xor ebx, ebx
mov eax, dword [esi + 0x70]
mov edi, dword [ebp + 0xc]
mov dword [ebp - 8], eax
cmp eax, ebx
je 0x410b47
mov ecx, dword [ebp - 8]
mov edx, dword [ecx]
mov ecx, dword [ecx + 8]
mov dword [ebp - 8], edx
mov dword [ebp - 4], ecx
push dword [ecx + 0x1c]
call dword [0x41f77c]
movzx ecx, ax
mov dword [ebp - 0xc], ecx
cmp ecx, 0xe800
jb 0x410b41
cmp ecx, 0xe81f
ja 0x410b41
mov eax, 1
shl eax, cl
mov ecx, dword [ebp - 4]
mov dword [ebp - 0x14], eax
mov eax, dword [ecx]
call dword [eax + 0xd0]
test eax, eax
je 0x410b16
or ebx, dword [ebp - 0x14]
mov ecx, dword [ebp - 4]
mov eax, dword [ecx]
call dword [eax + 0xd8]
test eax, eax
je 0x410b2e
cmp dword [ebp - 0xc], 0xe81f
je 0x410b41
push 1
mov eax, dword [edi + 8]
and eax, dword [ebp - 0x14]
mov ecx, esi
push eax
push dword [ebp - 4]
call fcn.00410129
cmp dword [ebp - 8], 0
jne 0x410acd
cmp dword [ebp + 8], 0
mov dword [edi + 8], ebx
je 0x410bf4
mov eax, dword [edi + 0x10]
push 0
mov ecx, esi
mov dword [esi + 0x9c], eax
call fcn.0040f499
push dword [edi]
push dword [esi + 0x1c]
call dword [0x41f754]
mov ebx, eax
push 0
push ebx
call dword [0x41f744]
push dword [esi + 0x1c]
call dword [0x41f690]
mov dword [edi + 4], eax
test eax, eax
je 0x410bab
push 1
push 0
push dword [esi + 0x1c]
call dword [0x41f710]
push 0
push dword [esi + 0x1c]
call dword [0x41f704]
and byte [esi + 0xb8], 0xfe
mov eax, dword [esi + 0x48]
push 0x7915
mov ecx, esi
mov dword [edi + 0x14], eax
mov dword [esi + 0x48], 0
call fcn.0040f056
mov eax, 0xe900
cmp dword [edi], eax
je 0x410bd9
push eax
push dword [esi + 0x1c]
call dword [0x41f754]
mov ebx, eax
test ebx, ebx
je 0x410ca9
push 0xea21
push 0xfffffffffffffff4
push ebx
call dword [0x41f74c]
jmp 0x410ca9
mov dword [esi + 0x9c], 0
push 0xea21
push dword [esi + 0x1c]
call dword [0x41f754]
mov ebx, eax
test ebx, ebx
je 0x410c40
push 0xe900
push dword [esi + 0x1c]
call dword [0x41f754]
test eax, eax
je 0x410c32
push 0xea21
push 0xfffffffffffffff4
push eax
call dword [0x41f74c]
push 0xe900
push 0xfffffffffffffff4
push ebx
call dword [0x41f74c]
cmp dword [edi + 4], 0
je 0x410c5f
push 1
push 0
push dword [esi + 0x1c]
call dword [0x41f710]
push dword [edi + 4]
push dword [esi + 0x1c]
call dword [0x41f704]
mov ecx, dword [ebp - 0x10]
mov ecx, dword [ecx + 0x68]
test ecx, ecx
je 0x410c70
push 1
mov eax, dword [ecx]
call dword [eax + 0x64]
mov eax, dword [esi]
push 1
mov ecx, esi
call dword [eax + 0xd0]
mov eax, dword [edi]
cmp eax, 0xe900
je 0x410c91
push eax
push dword [esi + 0x1c]
call dword [0x41f754]
mov ebx, eax
push 5
push ebx
call dword [0x41f744]
mov eax, dword [edi + 0x14]
push 1
mov ecx, esi
mov dword [esi + 0x48], eax
call fcn.0040f499
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 8
Function at 0x411615
Capabilities:
Allocate thread local storage

Disassembly:
push esi
xor eax, eax
mov dword [ecx + 0x14], eax
mov dword [ecx + 4], eax
mov dword [ecx + 0xc], eax
mov dword [ecx + 0x10], eax
mov dword [ecx + 0x18], 4
mov dword [ecx + 8], 1
mov esi, ecx
call dword [0x41f620]
cmp eax, 0xffffffff
mov dword [esi], eax
jne 0x411646
call fcn.00408e42
lea eax, [esi + 0x1c]
push eax
call dword [0x41f618]
mov eax, esi
pop esi
ret

Function at 0x4117af
Capabilities:
Get thread local storage value
Set thread local storage value

Disassembly:
mov eax, 0x411854
call fcn.004027f0
sub esp, 4
push ebx
push esi
push edi
mov esi, ecx
push dword [ecx]
call dword [0x41f600]
mov ebx, eax
test ebx, ebx
je 0x4117e9
mov edx, dword [ebp + 8]
cmp dword [ebx + 8], edx
jg 0x4118ae
cmp dword [ebp + 0xc], 0
je 0x4118ae
test ebx, ebx
jne 0x41183a
push 0x10
call fcn.004115e5
mov dword [ebp - 0x10], eax
mov edi, eax
mov dword [ebp - 4], 0
test edi, edi
je 0x411820
mov ebx, edi
mov dword [edi], vtable.CNoTrackObject.0
mov byte [ebp - 4], 1
mov byte [ebp - 4], 0
mov dword [edi], vtable.CThreadData.0
jmp 0x411822
xor ebx, ebx
xor eax, eax
push ebx
mov dword [ebp - 4], 0xffffffff
lea ecx, [esi + 0x14]
mov dword [ebx + 8], eax
mov dword [ebx + 0xc], eax
call fcn.00411585
mov eax, dword [ebx + 0xc]
lea edi, [esi + 0xc]
test eax, eax
jne 0x411867
mov eax, dword [edi]
shl eax, 2
push eax
push 0
call dword [0x41f5d4]
jmp 0x411876
push 2
mov ecx, dword [edi]
shl ecx, 2
push ecx
push eax
call dword [0x41f5f8]
mov dword [ebx + 0xc], eax
cmp dword [ebx + 0xc], 0
jne 0x411884
call fcn.00408e42
mov eax, dword [ebx + 8]
mov ecx, dword [edi]
sub ecx, eax
shl ecx, 2
shl eax, 2
push ecx
push 0
add eax, dword [ebx + 0xc]
push eax
call fcn.00402a20
add esp, 0xc
mov ecx, dword [edi]
mov dword [ebx + 8], ecx
push ebx
push dword [esi]
call dword [0x41f608]
mov ecx, dword [ebx + 0xc]
mov eax, dword [ebp + 0xc]
mov edx, dword [ebp + 8]
pop edi
pop esi
pop ebx
mov dword [ecx + edx*4], eax
mov eax, dword [ebp - 0xc]
mov dword fs:[0], eax
mov esp, ebp
pop ebp
ret 8
Function at 0x41191b
Capabilities:
Set thread local storage value

Disassembly:
push ebp
mov ebp, esp
sub esp, 0xc
mov dword [ebp - 4], 1
mov dword [ebp - 8], 1
push ebx
push esi
push edi
mov esi, dword [ebp + 8]
mov edi, ecx
cmp dword [esi + 8], 1
jle 0x41199c
mov dword [ebp - 0xc], 8
mov ebx, 4
cmp dword [ebp + 0xc], 0
je 0x411970
mov eax, dword [ebp - 0xc]
mov edx, dword [edi + 0x10]
mov ecx, dword [ebp + 0xc]
cmp dword [edx + eax + 4], ecx
je 0x411970
mov eax, dword [esi + 0xc]
cmp dword [eax + ebx], 0
je 0x41198a
mov dword [ebp - 4], 0
jmp 0x41198a
mov eax, dword [esi + 0xc]
mov ecx, dword [eax + ebx]
test ecx, ecx
je 0x411980
push 1
mov eax, dword [ecx]
call dword [eax]
mov eax, dword [esi + 0xc]
mov dword [eax + ebx], 0
add ebx, 4
inc dword [ebp - 8]
add dword [ebp - 0xc], 8
mov eax, dword [ebp - 8]
cmp dword [esi + 8], eax
jg 0x411949
cmp dword [ebp - 4], 0
je 0x4119ca
push esi
lea ecx, [edi + 0x14]
call fcn.00411598
push dword [esi + 0xc]
call dword [0x41f5d8]
test esi, esi
je 0x4119c0
push 1
mov eax, dword [esi]
mov ecx, esi
call dword [eax]
push 0
push dword [edi]
call dword [0x41f608]
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 8

Function at 0x411a2c
Capabilities:
Get thread local storage value

Disassembly:
push esi
push edi
cmp dword [ecx], 0
mov esi, ecx
jne 0x411a6a
cmp dword [0x41b6b8], 0
jne 0x411a5d
mov ecx, 0x41b6c0
test ecx, ecx
je 0x411a53
call fcn.00411615
mov dword [0x41b6b8], eax
jmp 0x411a5d
mov dword [0x41b6b8], 0
mov ecx, dword [0x41b6b8]
call fcn.00411654
mov dword [esi], eax
mov edi, dword [esi]
mov eax, dword [0x41b6b8]
push dword [eax]
call dword [0x41f600]
test eax, eax
je 0x411a8a
cmp dword [eax + 8], edi
jle 0x411a8a
mov eax, dword [eax + 0xc]
mov edi, dword [eax + edi*4]
jmp 0x411a8c
xor edi, edi
test edi, edi
jne 0x411aa4
call dword [esp + 0xc]
push eax
mov edi, eax
push dword [esi]
mov ecx, dword [0x41b6b8]
call fcn.004117af
mov eax, edi
pop edi
pop esi
ret 4

Function at 0x411ee1
Capabilities:
Access peb ldr_data

Disassembly:
mov eax, 0x411f7c
call fcn.004027f0
sub esp, 4
xor eax, eax
mov dword [ebp - 4], eax
push esi
mov dword [ebp - 0x10], ecx
mov dword [ecx], vtable.CNoTrackObject.0
mov dword [ecx + 8], eax
mov dword [ecx + 0xc], eax
mov esi, ecx
push 0xa
lea ecx, [esi + 0x30]
call fcn.00409055
lea ecx, [esi + 0x4c]
push 0xa
mov byte [ebp - 4], 1
call fcn.00409055
lea ecx, [esi + 0x68]
push 0xa
mov byte [ebp - 4], 2
call fcn.00408e60
mov byte [ebp - 4], 3
mov eax, esi
mov dword [esi], vtable.AFX_MODULE_THREAD_STATE.0
mov dword [esi + 0xc], 0x54
mov dword [esi + 0x28], 0x40a47b
mov dword [ebp - 4], 0xffffffff
mov ecx, dword [ebp - 0xc]
pop esi
mov dword fs:[0], ecx
mov esp, ebp
pop ebp
ret
Function at 0x510370
Capabilities:
Extract resource via kernel32 functions

Disassembly:
mov eax, dword [esp + 4]
push ebx
push esi
push edi
push 0x1a
push eax
push 0
call dword [sym.imp.KERNEL32.dll_FindResourceW]
mov esi, eax
test esi, esi
jne 0x51038e
pop edi
pop esi
xor al, al
pop ebx
ret
push esi
push 0
call dword [sym.imp.KERNEL32.dll_LoadResource]
push esi
push 0
mov edi, eax
call dword [sym.imp.KERNEL32.dll_SizeofResource]
push edi
mov ebx, eax
call dword [sym.imp.KERNEL32.dll_LockResource]
mov ecx, dword [esp + 0x14]
push 0x539074
push ecx
mov edi, eax
call fcn.00524198
mov esi, eax
add esp, 8
test esi, esi
jne 0x5103cb
pop edi
pop esi
xor al, al
pop ebx
ret
push esi
push ebx
push 1
push edi
call fcn.0052402e
push esi
call fcn.00523fb1
add esp, 0x14
mov al, 1
pop edi
pop esi
pop ebx
ret
Function at 0x513850
Capabilities:
Query or enumerate registry value

Disassembly:
mov ecx, dword [esp + 4]
sub esp, 0x218
lea eax, [esp]
push ebp
push esi
push edi
mov edi, dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
push eax
push 0x20019
push 0
push ecx
push SysReAllocString
call edi
test eax, eax
jne 0x5138ae
mov ecx, dword [esp + 0xc]
mov ebp, dword [sym.imp.ADVAPI32.dll_RegQueryValueW]
lea edx, [esp + 0x10]
lea eax, [esp + 0x1c]
push edx
push eax
push 0x53e720
push ecx
mov dword [esp + 0x20], 0x104
call ebp
test eax, eax
je 0x5138ba
mov edx, dword [esp + 0xc]
push edx
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
xor eax, eax
pop edi
pop esi
pop ebp
add esp, 0x218
ret
mov eax, dword [esp + 0xc]
mov esi, dword [sym.imp.ADVAPI32.dll_RegCloseKey]
push eax
call esi
lea ecx, [esp + 0x1c]
push str.DefaultIcon
push ecx
call fcn.005241e1
add esp, 8
lea edx, [esp + 0xc]
lea eax, [esp + 0x1c]
push edx
push 0x20019
push 0
push eax
push SysReAllocString
call edi
test eax, eax
jne 0x5138ae
mov eax, dword [esp + 0xc]
lea ecx, [esp + 0x10]
lea edx, [esp + 0x1c]
push ecx
push edx
push 0x53e720
push eax
mov dword [esp + 0x20], 0x104
call ebp
test eax, eax
je 0x51392a
mov ecx, dword [esp + 0xc]
push ecx
call esi
pop edi
pop esi
xor eax, eax
pop ebp
add esp, 0x218
ret
mov edx, dword [esp + 0xc]
push edx
call esi
lea eax, [esp + 0x1c]
push 0x2c
push eax
call fcn.00525082
xor esi, esi
add esp, 8
cmp eax, esi
je 0x513957
mov word [eax], si
add eax, 2
push eax
call fcn.00525030
add esp, 4
jmp 0x513959
xor eax, eax
lea ecx, [esp + 0x18]
push 1
lea edx, [esp + 0x18]
push ecx
push edx
push eax
lea eax, [esp + 0x2c]
mov dword [esp + 0x24], esi
push eax
mov dword [esp + 0x2c], esi
call dword [sym.imp.SHELL32.dll_ExtractIconExW]
test eax, eax
je 0x5138ae
mov al, byte [esp + 0x22c]
test al, al
mov eax, dword [esp + 0x14]
jne 0x5138b0
mov eax, dword [esp + 0x18]
pop edi
pop esi
pop ebp
add esp, 0x218
ret

Function at 0x513ff0
Capabilities:
Execute syscall

Disassembly:
push ebp
mov ebp, esp
push ecx
mov eax, dword [ebp + 8]
lea edx, [ebp + 0xc]
int 0x2e
mov dword [ebp - 4], eax
mov eax, dword [ebp - 4]
mov esp, ebp
pop ebp
ret
Function at 0x514080
Capabilities:
Get common file path

Disassembly:
sub esp, 0x43c
push esi
mov esi, dword [esp + 0x444]
cmp word [esi + 2], 0x3a
je 0x5140c4
lea eax, [esp + 0x30]
push eax
push 0x104
call dword [sym.imp.KERNEL32.dll_GetCurrentDirectoryW]
lea ecx, [esp + 0x30]
push 0x539458
push ecx
call fcn.005241e1
lea edx, [esp + 0x38]
push esi
push edx
call fcn.005241e1
add esp, 0x10
jmp 0x5140d2
lea eax, [esp + 0x30]
push esi
push eax
call fcn.0052420b
add esp, 8
lea ecx, [esp + 0x30]
lea edx, [esp + 0x238]
push ecx
push str.___s
push edx
call fcn.00523dff
lea eax, [esp + 0x244]
lea ecx, [esp + 0x2c]
push eax
push ecx
call fcn.00514050
mov eax, dword [0x53e728]
xor esi, esi
add esp, 0x14
lea edx, [esp + 0x20]
cmp eax, esi
mov dword [esp + 8], 0x18
mov dword [esp + 0xc], esi
mov dword [esp + 0x14], 0x40
mov dword [esp + 0x10], edx
mov dword [esp + 0x18], esi
mov dword [esp + 0x1c], esi
jne 0x51413b
push esi
call fcn.00513fb0
add esp, 4
mov dword [0x53e728], eax
mov ecx, dword [esp + 0x454]
cmp ecx, 3
jne 0x51414c
mov ecx, 1
mov edx, dword [esp + 0x458]
push esi
push esi
push 0x20
push ecx
mov ecx, dword [esp + 0x45c]
push ecx
push edx
lea ecx, [esp + 0x40]
push esi
push ecx
mov ecx, dword [esp + 0x468]
lea edx, [esp + 0x28]
or ecx, 0x100000
push edx
lea edx, [esp + 0x28]
push ecx
push edx
push eax
call fcn.00513ff0
mov ecx, dword [esp + 0x34]
add esp, 0x30
neg eax
sbb eax, eax
pop esi
not eax
and eax, ecx
add esp, 0x43c
ret

Function at 0x517440
Capabilities:
Enumerate pe sections

Disassembly:
mov ecx, dword [esp + 8]
push ebx
mov ebx, dword [ecx + 0x88]
test ebx, ebx
je 0x5174b7
push esi
xor eax, eax
mov ax, word [ecx + 0x14]
xor esi, esi
mov si, word [ecx + 6]
push edi
xor edi, edi
lea eax, [eax + ecx + 0x18]
test esi, esi
jbe 0x51748e
mov ecx, dword [eax + 8]
test ecx, ecx
jne 0x517471
mov ecx, dword [eax + 0x10]
mov edx, dword [eax + 0xc]
cmp ebx, edx
jb 0x51747e
add edx, ecx
cmp ebx, edx
jb 0x51748a
inc edi
add eax, 0x28
cmp edi, esi
jb 0x517467
xor ecx, ecx
jmp 0x5174a2
test eax, eax
jne 0x517492
xor ecx, ecx
jmp 0x5174a2
mov ecx, dword [eax + 0x14]
mov esi, dword [eax + 0xc]
mov eax, dword [esp + 0x10]
sub ecx, esi
add ecx, ebx
add ecx, eax
mov edx, dword [esp + 0x18]
push edx
push 0
push 0
push ecx
push ecx
call fcn.005173c0
add esp, 0x14
pop edi
pop esi
pop ebx
ret
Function at 0x5178f0
Capabilities:
Get file size
Read file via mapping

Disassembly:
push ebx
mov eax, dword [esp + 8]
push ebp
push esi
push edi
push 0
push 0x80
push 3
push 0
push 1
push SysReAllocString
push eax
xor bl, bl
call dword [sym.imp.KERNEL32.dll_CreateFileW]
mov edi, eax
cmp edi, 0xffffffff
jne 0x517921
pop edi
pop esi
pop ebp
xor al, al
pop ebx
ret
push 0
push 0
push 0
push 2
push 0
push edi
call dword [sym.imp.KERNEL32.dll_CreateFileMappingW]
mov ebp, eax
test ebp, ebp
jne 0x517946
push edi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
pop edi
pop esi
pop ebp
xor al, al
pop ebx
ret
push 0
push 0
push 0
push 4
push ebp
call dword [sym.imp.KERNEL32.dll_MapViewOfFile]
mov esi, eax
test esi, esi
jne 0x51796e
mov esi, dword [sym.imp.KERNEL32.dll_CloseHandle]
push ebp
call esi
push edi
call esi
pop edi
pop esi
pop ebp
xor al, al
pop ebx
ret
push 0
push edi
call dword [sym.imp.KERNEL32.dll_GetFileSize]
mov ecx, dword [esp + 0x18]
mov dword [ecx], esi
mov dword [ecx + 4], eax
cmp word [esi], 0x5a4d
jne 0x517993
push ecx
push esi
call fcn.005174c0
add esp, 8
mov bl, al
push esi
call dword [sym.imp.KERNEL32.dll_UnmapViewOfFile]
mov esi, dword [sym.imp.KERNEL32.dll_CloseHandle]
push ebp
call esi
push edi
call esi
pop edi
pop esi
mov al, bl
pop ebp
pop ebx
ret
Function at 0x518c00
Capabilities:
Enumerate pe sections

Disassembly:
mov eax, dword [esp + 8]
push ebx
push esi
xor ecx, ecx
mov cx, word [eax + 0x14]
xor esi, esi
mov si, word [eax + 6]
push edi
xor edi, edi
lea ecx, [ecx + eax + 0x18]
test esi, esi
jbe 0x518c4a
mov ebx, dword [esp + 0x10]
mov eax, dword [ecx + 8]
test eax, eax
jne 0x518c2b
mov eax, dword [ecx + 0x10]
mov edx, dword [ecx + 0xc]
cmp ebx, edx
jb 0x518c38
add edx, eax
cmp ebx, edx
jb 0x518c46
inc edi
add ecx, 0x28
cmp edi, esi
jb 0x518c21
pop edi
pop esi
xor eax, eax
pop ebx
ret
test ecx, ecx
jne 0x518c50
pop edi
pop esi
xor eax, eax
pop ebx
ret
mov eax, dword [ecx + 0x14]
mov esi, dword [ecx + 0xc]
mov ecx, dword [esp + 0x18]
sub eax, esi
add eax, ebx
pop edi
pop esi
add eax, ecx
pop ebx
ret

Function at 0x518c70
Capabilities:
Enumerate pe sections

Disassembly:
mov ecx, dword [esp + 8]
push ebx
push esi
xor eax, eax
mov ax, word [ecx + 0x14]
xor esi, esi
mov si, word [ecx + 6]
push edi
xor edi, edi
lea eax, [eax + ecx + 0x18]
test esi, esi
jbe 0x518cb0
mov ebx, dword [esp + 0x10]
mov ecx, dword [eax + 8]
test ecx, ecx
jne 0x518c9b
mov ecx, dword [eax + 0x10]
mov edx, dword [eax + 0xc]
cmp ebx, edx
jb 0x518ca8
add edx, ecx
cmp ebx, edx
jb 0x518cb2
inc edi
add eax, 0x28
cmp edi, esi
jb 0x518c91
xor eax, eax
pop edi
pop esi
pop ebx
ret

Function at 0x518f60
Capabilities:
Query or enumerate registry value

Disassembly:
sub esp, 0x210
push ebp
push esi
push edi
mov edi, dword [esp + 0x224]
push 0
push 0
mov ebp, dword [esp + 0x228]
push 0
push 0
push edi
push 0
push 0
push 0
push 0
push 0
push 0
push ebp
call dword [sym.imp.ADVAPI32.dll_RegQueryInfoKeyW]
mov eax, dword [edi]
shl eax, 2
push eax
call fcn.00525145
mov ecx, dword [edi]
add esp, 4
xor esi, esi
mov dword [esp + 0xc], eax
test ecx, ecx
jbe 0x518ffb
push ebx
mov ebx, eax
push 0
push 0
push 0
lea ecx, [esp + 0x20]
push 0
lea edx, [esp + 0x28]
push ecx
push edx
push esi
push ebp
mov dword [esp + 0x34], 0x104
call dword [sym.imp.ADVAPI32.dll_RegEnumValueW]
test eax, eax
jne 0x518fdd
lea eax, [esp + 0x18]
push eax
jmp 0x518fe2
push 0x53e720
call fcn.00524fd9
add esp, 4
mov dword [ebx], eax
mov eax, dword [edi]
inc esi
add ebx, 4
cmp esi, eax
jb 0x518fb0
mov eax, dword [esp + 0x10]
pop ebx
mov ecx, dword [edi]
push 0x518f40
push 4
push ecx
push eax
call fcn.0052543f
mov eax, dword [esp + 0x1c]
add esp, 0x10
pop edi
pop esi
pop ebp
add esp, 0x210
ret