joyce8/EMBER2024-capa huggingface dataset:
Function at 0x417aad
Capabilities:
Parse url

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x573095
mov eax, dword fs:[0]
push eax
sub esp, 0x374
mov eax, dword [0x5e3c30]
xor eax, ebp
mov dword [ebp - 0x10], eax
push esi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov dword [ebp - 0x378], ecx
mov ecx, dword [ebp - 0x378]
call fcn.00401d18
and dword [ebp - 4], 0
mov ecx, dword [ebp - 0x378]
add ecx, 0x1c
call fcn.00401d18
mov byte [ebp - 4], 1
and dword [ebp - 0x170], 0
push 0x38
push 0
lea eax, [ebp - 0x16c]
push eax
call fcn.00547d40
add esp, 0xc
mov dword [ebp - 0x170], 0x3c
mov dword [ebp - 0x30], 0x100
lea eax, [ebp - 0x274]
mov dword [ebp - 0x160], eax
mov dword [ebp - 0x15c], 0x100
lea eax, [ebp - 0x374]
mov dword [ebp - 0x144], eax
mov dword [ebp - 0x140], 0x100
lea eax, [ebp - 0x134]
mov dword [ebp - 0x13c], eax
mov dword [ebp - 0x138], 0x100
lea eax, [ebp - 0x170]
push eax
push SysReAllocStringLen
push 0
push dword [ebp + 8]
call dword [sym.imp.WININET.dll_InternetCrackUrlA]
mov eax, dword [ebp - 0x378]
mov ecx, dword [ebp - 0x164]
mov dword [eax + 0x38], ecx
lea eax, [ebp - 0x274]
push eax
mov ecx, dword [ebp - 0x378]
call fcn.004010d1
mov eax, dword [ebp - 0x378]
mov cx, word [ebp - 0x158]
mov word [eax + 0x3c], cx
push dword [ebp + 8]
mov ecx, dword [ebp - 0x378]
add ecx, 0x1c
call fcn.004010d1
push 0
lea eax, [ebp - 0x274]
push eax
mov ecx, dword [ebp - 0x378]
add ecx, 0x1c
call fcn.004076f6
cmp eax, dword [0x5b36e0]
je 0x417c5b
push dword [0x5b36e0]
push 0
lea eax, [ebp - 0x274]
push eax
mov ecx, dword [ebp - 0x378]
add ecx, 0x1c
call fcn.004076f6
mov esi, eax
mov ecx, dword [ebp - 0x378]
call fcn.00419640
add esi, eax
push esi
lea eax, [ebp - 0x2c]
push eax
mov ecx, dword [ebp - 0x378]
add ecx, 0x1c
call fcn.00407758
mov dword [ebp - 0x37c], eax
mov eax, dword [ebp - 0x37c]
mov dword [ebp - 0x380], eax
mov byte [ebp - 4], 2
push dword [ebp - 0x380]
mov ecx, dword [ebp - 0x378]
add ecx, 0x1c
call fcn.00407693
mov byte [ebp - 4], 1
lea ecx, [ebp - 0x2c]
call fcn.00401d44
or dword [ebp - 4], 0xffffffff
mov eax, dword [ebp - 0x378]
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop esi
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.00543a33
leave
ret 4
Function at 0x422ab7
Capabilities:
Encode data using xor
Hash data with crc32

Disassembly:
push ebp
mov ebp, esp
push ecx
cmp dword [ebp + 0xc], 0
jne 0x422ac8
xor eax, eax
jmp 0x422c8d
xor eax, eax
inc eax
je 0x422b0a
mov dword [ebp - 4], 1
movzx eax, byte [ebp - 4]
test eax, eax
je 0x422af4
push dword [ebp + 0x10]
push dword [ebp + 0xc]
push dword [ebp + 8]
call fcn.00422c8f
add esp, 0xc
jmp 0x422c8d
push dword [ebp + 0x10]
push dword [ebp + 0xc]
push dword [ebp + 8]
call fcn.00423075
add esp, 0xc
jmp 0x422c8d
mov eax, dword [ebp + 8]
xor eax, 0xffffffff
mov dword [ebp + 8], eax
cmp dword [ebp + 0x10], 8
jb 0x422c53
mov eax, dword [ebp + 0xc]
movzx eax, byte [eax]
xor eax, dword [ebp + 8]
and eax, 0xff
mov ecx, dword [ebp + 8]
shr ecx, 8
xor ecx, dword [eax*4 + 0x5accf0]
mov dword [ebp + 8], ecx
mov eax, dword [ebp + 0xc]
inc eax
mov dword [ebp + 0xc], eax
mov eax, dword [ebp + 0xc]
movzx eax, byte [eax]
xor eax, dword [ebp + 8]
and eax, 0xff
mov ecx, dword [ebp + 8]
shr ecx, 8
xor ecx, dword [eax*4 + 0x5accf0]
mov dword [ebp + 8], ecx
mov eax, dword [ebp + 0xc]
inc eax
mov dword [ebp + 0xc], eax
mov eax, dword [ebp + 0xc]
movzx eax, byte [eax]
xor eax, dword [ebp + 8]
and eax, 0xff
mov ecx, dword [ebp + 8]
shr ecx, 8
xor ecx, dword [eax*4 + 0x5accf0]
mov dword [ebp + 8], ecx
mov eax, dword [ebp + 0xc]
inc eax
mov dword [ebp + 0xc], eax
mov eax, dword [ebp + 0xc]
movzx eax, byte [eax]
xor eax, dword [ebp + 8]
and eax, 0xff
mov ecx, dword [ebp + 8]
shr ecx, 8
xor ecx, dword [eax*4 + 0x5accf0]
mov dword [ebp + 8], ecx
mov eax, dword [ebp + 0xc]
inc eax
mov dword [ebp + 0xc], eax
mov eax, dword [ebp + 0xc]
movzx eax, byte [eax]
xor eax, dword [ebp + 8]
and eax, 0xff
mov ecx, dword [ebp + 8]
shr ecx, 8
xor ecx, dword [eax*4 + 0x5accf0]
mov dword [ebp + 8], ecx
mov eax, dword [ebp + 0xc]
inc eax
mov dword [ebp + 0xc], eax
mov eax, dword [ebp + 0xc]
movzx eax, byte [eax]
xor eax, dword [ebp + 8]
and eax, 0xff
mov ecx, dword [ebp + 8]
shr ecx, 8
xor ecx, dword [eax*4 + 0x5accf0]
mov dword [ebp + 8], ecx
mov eax, dword [ebp + 0xc]
inc eax
mov dword [ebp + 0xc], eax
mov eax, dword [ebp + 0xc]
movzx eax, byte [eax]
xor eax, dword [ebp + 8]
and eax, 0xff
mov ecx, dword [ebp + 8]
shr ecx, 8
xor ecx, dword [eax*4 + 0x5accf0]
mov dword [ebp + 8], ecx
mov eax, dword [ebp + 0xc]
inc eax
mov dword [ebp + 0xc], eax
mov eax, dword [ebp + 0xc]
movzx eax, byte [eax]
xor eax, dword [ebp + 8]
and eax, 0xff
mov ecx, dword [ebp + 8]
shr ecx, 8
xor ecx, dword [eax*4 + 0x5accf0]
mov dword [ebp + 8], ecx
mov eax, dword [ebp + 0xc]
inc eax
mov dword [ebp + 0xc], eax
mov eax, dword [ebp + 0x10]
sub eax, 8
mov dword [ebp + 0x10], eax
jmp 0x422b13
cmp dword [ebp + 0x10], 0
je 0x422c87
mov eax, dword [ebp + 0xc]
movzx eax, byte [eax]
xor eax, dword [ebp + 8]
and eax, 0xff
mov ecx, dword [ebp + 8]
shr ecx, 8
xor ecx, dword [eax*4 + 0x5accf0]
mov dword [ebp + 8], ecx
mov eax, dword [ebp + 0xc]
inc eax
mov dword [ebp + 0xc], eax
mov eax, dword [ebp + 0x10]
dec eax
mov dword [ebp + 0x10], eax
jne 0x422c59
mov eax, dword [ebp + 8]
xor eax, 0xffffffff
leave
ret
Function at 0x43765a
Capabilities:
Encrypt data using rc4 prga

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x1c
mov eax, dword [ebp + 8]
mov eax, dword [eax + 0xc]
mov dword [ebp - 8], eax
mov eax, dword [ebp - 8]
movzx eax, byte [eax + 0x34]
xor eax, 3
mov dword [ebp - 4], eax
mov eax, dword [ebp - 8]
movzx eax, byte [eax + 0x36]
cmp eax, 2
jne 0x437696
or dword [ebp - 0x14], 0xffffffff
mov dword [ebp - 0x10], 0x40
mov dword [ebp - 0xc], 0x40
jmp 0x4376b1
mov dword [ebp - 0x14], 0xffffffb8
mov eax, dword [ebp - 8]
movzx eax, byte [eax + 0x34]
and eax, 3
movzx eax, al
mov dword [ebp - 0x10], eax
and dword [ebp - 0xc], 0
mov eax, dword [ebp + 0xc]
cmp dword [eax], 0
je 0x437740
mov eax, dword [ebp + 0x10]
mov ecx, dword [ebp + 0x10]
dec ecx
mov dword [ebp + 0x10], ecx
test eax, eax
jbe 0x437740
mov eax, dword [ebp + 0xc]
mov eax, dword [eax]
mov dword [ebp - 0x18], eax
mov eax, dword [ebp - 0x18]
movzx eax, byte [eax + 5]
mov dword [ebp - 0x1c], eax
mov eax, dword [ebp - 0x1c]
xor eax, 3
and eax, dword [ebp - 4]
jne 0x437701
mov eax, dword [ebp + 0xc]
mov ecx, dword [ebp - 0x18]
mov ecx, dword [ecx]
mov dword [eax], ecx
push dword [ebp - 0x18]
push dword [ebp + 8]
call fcn.004374de
pop ecx
pop ecx
jmp 0x43773b
mov eax, dword [ebp - 0x1c]
and eax, dword [ebp - 0xc]
je 0x43770d
xor eax, eax
jmp 0x43774c
mov eax, dword [ebp - 0x18]
movzx eax, byte [eax + 4]
cmp eax, 8
jne 0x437726
push dword [ebp - 0x18]
push dword [ebp + 8]
call fcn.00437615
pop ecx
pop ecx
mov eax, dword [ebp - 0x1c]
and eax, dword [ebp - 0x14]
or eax, dword [ebp - 0x10]
mov ecx, dword [ebp - 0x18]
mov byte [ecx + 5], al
mov eax, dword [ebp - 0x18]
mov dword [ebp + 0xc], eax
jmp 0x4376b1
mov eax, dword [ebp + 0xc]
mov eax, dword [eax]
neg eax
sbb eax, eax
and eax, dword [ebp + 0xc]
leave
ret

Function at 0x43dd00
Capabilities:
Read file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x224
mov eax, dword [0x5e3c30]
xor eax, ebp
mov dword [ebp - 4], eax
mov dword [ebp - 0x21c], 0x200
lea eax, [ebp - 0x218]
push eax
push dword [ebp + 8]
call fcn.0042730e
pop ecx
pop ecx
push dword [ebp - 0x21c]
lea eax, [ebp - 0x218]
push eax
call fcn.00427103
pop ecx
pop ecx
mov dword [ebp - 0x220], eax
push dword [ebp + 0xc]
push dword [ebp - 0x21c]
push 1
push dword [ebp - 0x220]
call fcn.0054c4de
add esp, 0x10
mov dword [ebp - 0x224], eax
mov eax, dword [ebp - 0x210]
add eax, dword [ebp - 0x224]
mov dword [ebp - 0x210], eax
mov eax, dword [ebp - 0x224]
cmp eax, dword [ebp - 0x21c]
jae 0x43dd8b
jmp 0x43dda7
cmp dword [ebp - 0x21c], 0x3fffffff
ja 0x43dda5
mov eax, dword [ebp - 0x21c]
shl eax, 1
mov dword [ebp - 0x21c], eax
jmp 0x43dd2e
lea eax, [ebp - 0x218]
push eax
call fcn.00427247
pop ecx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.00543a33
leave
ret
Function at 0x43ddc0
Capabilities:
Read file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x220
mov eax, dword [0x5e3c30]
xor eax, ebp
mov dword [ebp - 0xc], eax
lea eax, [ebp - 0x220]
push eax
push dword [ebp + 8]
call fcn.0042730e
pop ecx
pop ecx
push dword [ebp + 0x10]
lea eax, [ebp - 0x220]
push eax
call fcn.00427103
pop ecx
pop ecx
mov dword [ebp - 4], eax
push dword [ebp + 0xc]
push dword [ebp + 0x10]
push 1
push dword [ebp - 4]
call fcn.0054c4de
add esp, 0x10
mov dword [ebp - 8], eax
mov eax, dword [ebp - 0x218]
add eax, dword [ebp - 8]
mov dword [ebp - 0x218], eax
lea eax, [ebp - 0x220]
push eax
call fcn.00427247
pop ecx
xor eax, eax
cmp eax, dword [ebp - 8]
sbb eax, eax
neg eax
mov ecx, dword [ebp - 0xc]
xor ecx, ebp
call fcn.00543a33
leave
ret

Function at 0x43e18a
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x18
push dword [ebp + 8]
call fcn.0042a3ee
pop ecx
sub eax, dword [ebp + 0x10]
mov dword [ebp - 8], eax
mov dword [ebp - 4], 1
jmp 0x43e1af
mov eax, dword [ebp + 0x10]
inc eax
mov dword [ebp + 0x10], eax
mov eax, dword [ebp - 8]
mov ecx, dword [ebp - 8]
dec ecx
mov dword [ebp - 8], ecx
test eax, eax
je 0x43e260
push dword [ebp + 0x10]
push dword [ebp + 8]
call fcn.0042a682
pop ecx
pop ecx
cmp eax, 3
jne 0x43e215
cmp dword [ebp - 4], 0
je 0x43e209
push 0
push dword [ebp + 0x10]
push dword [ebp + 8]
call fcn.0042a964
add esp, 4
fstp qword [esp]
push 0x5e6034
push dword [ebp + 0xc]
call fcn.00561642
add esp, 0x10
test eax, eax
jle 0x43e209
mov dword [ebp - 0x14], 1
jmp 0x43e20d
and dword [ebp - 0x14], 0
mov eax, dword [ebp - 0x14]
mov dword [ebp - 4], eax
jmp 0x43e25b
lea eax, [ebp - 0x10]
push eax
push dword [ebp + 0x10]
push dword [ebp + 8]
call fcn.00426f53
add esp, 0xc
mov dword [ebp - 0xc], eax
cmp dword [ebp - 4], 0
je 0x43e251
push dword [ebp + 0xc]
push dword [ebp - 0x10]
push 1
push dword [ebp - 0xc]
call fcn.00544feb
add esp, 0x10
cmp eax, dword [ebp - 0x10]
jne 0x43e251
mov dword [ebp - 0x18], 1
jmp 0x43e255
and dword [ebp - 0x18], 0
mov eax, dword [ebp - 0x18]
mov dword [ebp - 4], eax
jmp 0x43e1a8
cmp dword [ebp - 4], 0
je 0x43e26d
xor eax, eax
inc eax
jmp 0x43e27d
push 0
push dword [ebp - 4]
push dword [ebp + 8]
call fcn.00426bc3
add esp, 0xc
leave
ret
Function at 0x449479
Capabilities:
Extract resource via kernel32 functions

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push ecx
push ebx
xor ebx, ebx
push esi
push edi
mov edi, ecx
mov dword [ebp - 4], ebx
cmp dword [ebp + 0xc], ebx
je 0x4494c1
call fcn.0044e378
mov esi, dword [eax + 0xc]
push 0xf0
push dword [ebp + 0xc]
push esi
call dword [sym.imp.KERNEL32.dll_FindResourceA]
test eax, eax
je 0x4494c1
push eax
push esi
call dword [sym.imp.KERNEL32.dll_LoadResource]
mov dword [ebp - 4], eax
test eax, eax
je 0x449504
push eax
call dword [sym.imp.KERNEL32.dll_LockResource]
mov ebx, eax
mov esi, dword [ebp + 8]
mov dword [ebp + 0xc], 1
test ebx, ebx
je 0x4494ed
push dword [ebp + 0x10]
mov eax, dword [edi]
push ebx
push esi
mov ecx, edi
call dword [eax + 0x20]
cmp dword [ebp - 4], 0
mov dword [ebp + 0xc], eax
je 0x4494ed
push dword [ebp - 4]
call dword [sym.imp.KERNEL32.dll_FreeResource]
cmp dword [esi + 0x68], 0
je 0x449501
mov ecx, dword [esi + 0x68]
push dword [ebp + 0x10]
mov eax, dword [ecx]
call dword [eax + 0xa0]
mov eax, dword [ebp + 0xc]
pop edi
pop esi
pop ebx
leave
ret 0xc

Function at 0x44ae5b
Capabilities:
Extract resource via kernel32 functions

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push ecx
push ebx
push esi
push edi
mov dword [ebp - 4], ecx
xor ebx, ebx
call fcn.0044e378
mov esi, dword [eax + 0xc]
push 5
push dword [ebp + 8]
push esi
call dword [sym.imp.KERNEL32.dll_FindResourceA]
push eax
push esi
call dword [sym.imp.KERNEL32.dll_LoadResource]
mov edi, eax
test edi, edi
je 0x44ae94
push edi
call dword [sym.imp.KERNEL32.dll_LockResource]
mov ebx, eax
mov ecx, dword [ebp - 4]
push esi
push dword [ebp + 0xc]
push ebx
call fcn.0044aa9d
push edi
mov esi, eax
call dword [sym.imp.KERNEL32.dll_FreeResource]
pop edi
mov eax, esi
pop esi
pop ebx
leave
ret 8

Function at 0x44aef2
Capabilities:
Extract resource via kernel32 functions

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push ebx
mov ebx, dword [ebp + 8]
push esi
push edi
mov edi, ecx
mov dword [edi + 0x78], ebx
test ebx, 0xffff0000
jne 0x44af16
cmp dword [edi + 0x74], 0
jne 0x44af16
movzx eax, bx
mov dword [edi + 0x74], eax
call fcn.0044e378
mov esi, dword [eax + 0xc]
push 5
push ebx
push esi
call dword [sym.imp.KERNEL32.dll_FindResourceA]
push eax
push esi
call dword [sym.imp.KERNEL32.dll_LoadResource]
push esi
push dword [ebp + 0xc]
mov ebx, eax
push ebx
mov ecx, edi
call fcn.0044aeb3
push ebx
mov esi, eax
call dword [sym.imp.KERNEL32.dll_FreeResource]
pop edi
mov eax, esi
pop esi
pop ebx
pop ebp
ret 8
Function at 0x454ca2
Capabilities:
Extract resource via kernel32 functions

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push ecx
push ebx
push esi
push edi
xor ebx, ebx
xor edi, edi
mov dword [ebp - 4], ecx
cmp dword [ebp + 8], ebx
je 0x454ce9
call fcn.0044e378
mov esi, dword [eax + 0xc]
push 0xf0
push dword [ebp + 8]
push esi
call dword [sym.imp.KERNEL32.dll_FindResourceA]
test eax, eax
je 0x454ce9
push eax
push esi
call dword [sym.imp.KERNEL32.dll_LoadResource]
mov ebx, eax
test ebx, ebx
je 0x454d05
push ebx
call dword [sym.imp.KERNEL32.dll_LockResource]
mov edi, eax
mov ecx, dword [ebp - 4]
push edi
call fcn.004547a7
mov esi, eax
test edi, edi
je 0x454d03
test ebx, ebx
je 0x454d03
push ebx
call dword [sym.imp.KERNEL32.dll_FreeResource]
mov eax, esi
pop edi
pop esi
pop ebx
leave
ret 4

Function at 0x4554bc
Capabilities:
Get graphical window text

Disassembly:
push 4
mov eax, 0x571ee7
call fcn.0054830f
mov esi, ecx
cmp dword [esi + 0x6c], 0
jne 0x4554e1
push dword [ebp + 0xc]
push dword [ebp + 8]
push dword [esi + 0x20]
call dword [sym.imp.USER32.dll_GetWindowTextA]
jmp 0x455533
call fcn.00446681
push eax
lea ecx, [ebp - 0x10]
call fcn.004079fc
mov ecx, dword [esi + 0x6c]
mov eax, dword [ecx]
and dword [ebp - 4], 0
lea edx, [ebp - 0x10]
push edx
call dword [eax + 0x8c]
push 0xffffffffffffffff
push dword [ebp - 0x10]
push dword [ebp + 0xc]
push dword [ebp + 8]
call fcn.005445df
push eax
call fcn.004464bb
add esp, 0x14
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.dll_lstrlenA]
mov ecx, dword [ebp - 0x10]
add ecx, 0xfffffff0
mov esi, eax
call fcn.0040641c
mov eax, esi
call fcn.005483e7
ret 8

Function at 0x455fcb
Capabilities:
Get graphical window text

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push esi
mov esi, dword [ebp + 8]
push edi
push dword [ebp + 0xc]
mov ecx, esi
call fcn.00455c8a
cmp dword [esi], 0
mov edi, eax
mov dword [esi + 0xc], 1
je 0x456015
push edi
call dword [sym.imp.USER32.dll_GetWindowTextLengthA]
lea ecx, [eax + 1]
push ecx
mov ecx, dword [ebp + 0x10]
push eax
call fcn.0044657b
push eax
push edi
call dword [sym.imp.USER32.dll_GetWindowTextA]
mov ecx, dword [ebp + 0x10]
push 0xffffffffffffffff
call fcn.0044654c
jmp 0x456020
mov eax, dword [ebp + 0x10]
push dword [eax]
push edi
call fcn.004568c0
pop edi
pop esi
pop ebp
ret 0xc
Function at 0x456026
Capabilities:
Get graphical window text

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push esi
mov esi, dword [ebp + 8]
mov ecx, dword [esi + 4]
lea eax, [ebp + 8]
push eax
push dword [ebp + 0xc]
call fcn.00454dae
push 0xfffffffffffffff0
push dword [ebp + 8]
call dword [sym.imp.USER32.dll_GetWindowLongA]
push dword [ebp + 0xc]
and eax, 3
mov ecx, esi
cmp al, 3
je 0x456063
call fcn.00455c8a
mov dword [esi + 0xc], 1
jmp 0x456068
call fcn.00455c8a
cmp dword [esi], 0
je 0x4560b1
push dword [ebp + 8]
call dword [sym.imp.USER32.dll_GetWindowTextLengthA]
test eax, eax
jle 0x456089
lea ecx, [eax + 1]
push ecx
mov ecx, dword [ebp + 0x10]
push eax
call fcn.0044657b
jmp 0x45609b
mov ecx, dword [ebp + 0x10]
push 0xff
call fcn.00407ac2
push 0x100
push eax
push dword [ebp + 8]
call dword [sym.imp.USER32.dll_GetWindowTextA]
mov ecx, dword [ebp + 0x10]
push 0xffffffffffffffff
call fcn.0044654c
jmp 0x4560d5
mov esi, dword [ebp + 0x10]
push dword [esi]
push 0xffffffffffffffff
push 0x14d
push dword [ebp + 8]
call dword [sym.imp.USER32.dll_SendMessageA]
cmp eax, 0xffffffff
jne 0x4560d5
push dword [esi]
push dword [ebp + 8]
call fcn.004568c0
pop esi
pop ebp
ret 0xc
Function at 0x49514d
Capabilities:
Get common file path

Disassembly:
mov edi, edi
push esi
mov esi, ecx
call fcn.0051a819
call fcn.0044dda9
cmp dword [eax + 0x14], 0
jne 0x49516a
mov ecx, esi
pop esi
jmp fcn.00494c52
pop esi
ret

Function at 0x49882b
Capabilities:
Get common file path
Get file system object information

Disassembly:
mov edi, edi
push esi
mov esi, ecx
call fcn.00522d28
call fcn.0044dda9
cmp dword [eax + 0x14], 0
jne 0x498848
mov ecx, esi
pop esi
jmp fcn.004981fe
pop esi
ret

Function at 0x4d004e
Capabilities:
Extract resource via kernel32 functions

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push ecx
push esi
mov esi, dword [ebp + 0xc]
push edi
mov dword [ebp - 4], ecx
test esi, esi
jne 0x4d0068
call fcn.0044e378
mov esi, dword [eax + 0xc]
push dword [0x5ed33c]
push dword [ebp + 8]
push esi
call dword [sym.imp.KERNEL32.dll_FindResourceA]
mov edi, eax
test edi, edi
jne 0x4d0086
xor eax, eax
pop edi
pop esi
leave
ret 8
push edi
push esi
call dword [sym.imp.KERNEL32.dll_LoadResource]
mov dword [ebp + 0xc], eax
test eax, eax
je 0x4d007e
push ebx
push eax
call dword [sym.imp.KERNEL32.dll_LockResource]
mov ebx, eax
test ebx, ebx
jne 0x4d00b3
xor esi, esi
push dword [ebp + 0xc]
call dword [sym.imp.KERNEL32.dll_FreeResource]
mov eax, esi
pop ebx
jmp 0x4d0080
push edi
push esi
call dword [sym.imp.KERNEL32.dll_SizeofResource]
mov ecx, dword [ebp - 4]
push eax
push ebx
call fcn.004cff7c
mov esi, eax
jmp 0x4d00a5

Function at 0x523ea9
Capabilities:
Extract resource via kernel32 functions

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push ebx
push esi
mov esi, dword [ebp + 8]
test byte [esi + 4], 1
push edi
mov ebx, ecx
je 0x523ec1
mov edi, dword [esi + 0xc]
jmp 0x523f01
push 5
push dword [esi + 0xc]
push dword [esi + 8]
call dword [sym.imp.KERNEL32.dll_FindResourceA]
mov edi, eax
test edi, edi
jne 0x523eda
call fcn.0044c9b8
push edi
push dword [esi + 8]
call dword [sym.imp.KERNEL32.dll_LoadResource]
mov edi, eax
test edi, edi
jne 0x523eef
call fcn.0044c9b8
push edi
call dword [sym.imp.KERNEL32.dll_LockResource]
mov edi, eax
test edi, edi
jne 0x523f01
call fcn.0044c9b8
call fcn.0044e378
cmp dword [eax + 0x3c], 0
je 0x523f16
push edi
mov ecx, ebx
call fcn.00522cdc
mov edi, eax
push dword [ebp + 0xc]
push edi
call fcn.00523dc3
mov dword [ebp + 8], eax
mov eax, dword [ebx + 0x7c]
test eax, eax
je 0x523f34
push eax
call dword [sym.imp.KERNEL32.dll_GlobalFree]
and dword [ebx + 0x7c], 0
mov eax, dword [ebp + 8]
test eax, eax
je 0x523f40
mov edi, eax
mov dword [ebx + 0x7c], eax
or dword [esi + 4], 1
mov dword [esi + 0xc], edi
pop edi
pop esi
pop ebx
pop ebp
ret 8

Function at 0x543a33
Capabilities:
Terminate process

Disassembly:
cmp ecx, dword [0x5e3c30]
jne 0x543a3d
repz ret
jmp fcn.0054eaa8
Function at 0x55cd2b
Capabilities:
Link many functions at runtime

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x24
mov eax, dword [0x5e3c30]
xor eax, ebp
mov dword [ebp - 4], eax
mov eax, dword [ebp + 8]
push ebx
mov dword [ebp - 0x20], eax
mov eax, dword [ebp + 0xc]
push esi
push edi
mov dword [ebp - 0x1c], eax
call fcn.00550a7d
and dword [ebp - 0x14], 0
cmp dword [0x5efa9c], 0
mov dword [ebp - 0x18], eax
jne 0x55cdde
push str.USER32.DLL
call dword [sym.imp.KERNEL32.dll_LoadLibraryW]
mov ebx, eax
test ebx, ebx
je 0x55ce86
mov edi, dword [sym.imp.KERNEL32.dll_GetProcAddress]
push str.MessageBoxW
push ebx
call edi
test eax, eax
je 0x55ce86
mov esi, dword [sym.imp.KERNEL32.dll_EncodePointer]
push eax
call esi
push 0x5aaa0c
push ebx
mov dword [0x5efa9c], eax
call edi
push eax
call esi
push 0x5aa9f8
push ebx
mov dword [0x5efaa0], eax
call edi
push eax
call esi
push str.GetUserObjectInformationW
push ebx
mov dword [0x5efaa4], eax
call edi
push eax
call esi
mov dword [0x5efaac], eax
test eax, eax
je 0x55cdde
push str.GetProcessWindowStation
push ebx
call edi
push eax
call esi
mov dword [0x5efaa8], eax
mov eax, dword [0x5efaa8]
mov ecx, dword [ebp - 0x18]
mov esi, dword [sym.imp.KERNEL32.dll_DecodePointer]
cmp eax, ecx
je 0x55ce37
cmp dword [0x5efaac], ecx
je 0x55ce37
push eax
call esi
push dword [0x5efaac]
mov edi, eax
call esi
mov ebx, eax
test edi, edi
je 0x55ce37
test ebx, ebx
je 0x55ce37
call edi
test eax, eax
je 0x55ce2e
lea ecx, [ebp - 0x24]
push ecx
push 0xc
lea ecx, [ebp - 0x10]
push ecx
push 1
push eax
call ebx
test eax, eax
je 0x55ce2e
test byte [ebp - 8], 1
jne 0x55ce37
or dword [ebp + 0x10], 0x200000
jmp 0x55ce6a
mov eax, dword [0x5efaa0]
cmp eax, dword [ebp - 0x18]
je 0x55ce6a
push eax
call esi
test eax, eax
je 0x55ce6a
call eax
mov dword [ebp - 0x14], eax
test eax, eax
je 0x55ce6a
mov eax, dword [0x5efaa4]
cmp eax, dword [ebp - 0x18]
je 0x55ce6a
push eax
call esi
test eax, eax
je 0x55ce6a
push dword [ebp - 0x14]
call eax
mov dword [ebp - 0x14], eax
push dword [0x5efa9c]
call esi
test eax, eax
je 0x55ce86
push dword [ebp + 0x10]
push dword [ebp - 0x1c]
push dword [ebp - 0x20]
push dword [ebp - 0x14]
call eax
jmp 0x55ce88
xor eax, eax
mov ecx, dword [ebp - 4]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.00543a33
leave
ret

Function at 0x561901
Capabilities:
Check if file exists
Get file attributes

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push esi
xor esi, esi
cmp dword [ebp + 8], esi
jne 0x561928
call fcn.00548954
mov dword [eax], esi
call fcn.00548941
push 0x16
pop esi
mov dword [eax], esi
call fcn.0054fcd6
mov eax, esi
jmp 0x56197d
test dword [ebp + 0xc], 0xfffffff9
jne 0x56190e
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.dll_GetFileAttributesA]
cmp eax, 0xffffffff
jne 0x561955
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
call fcn.00548967
pop ecx
call fcn.00548941
mov eax, dword [eax]
jmp 0x56197d
test al, 0x10
jne 0x56197b
test al, 1
je 0x56197b
test byte [ebp + 0xc], 2
je 0x56197b
call fcn.00548954
mov dword [eax], 5
call fcn.00548941
mov dword [eax], 0xd
jmp 0x56194c
xor eax, eax
pop esi
pop ebp
ret
Function at 0x401546
Capabilities:
Terminate process

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x4020b0
push 0x401540
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x20
push ebx
push esi
push edi
mov dword [ebp - 0x18], esp
and dword [ebp - 4], 0
push 1
call dword [sym.imp.MSVCRT.dll___set_app_type]
pop ecx
or dword [0x4030fc], 0xffffffff
or dword [0x403100], 0xffffffff
call dword [sym.imp.MSVCRT.dll___p__fmode]
mov ecx, dword [0x4030f8]
mov dword [eax], ecx
call dword [sym.imp.MSVCRT.dll___p__commode]
mov ecx, dword [0x4030f4]
mov dword [eax], ecx
mov eax, dword [sym.imp.MSVCRT.dll__adjust_fdiv]
mov eax, dword [eax]
mov dword [0x403104], eax
call fcn.00401677
cmp dword [0x4030e0], 0
jne 0x4015c9
push 0x401674
call dword [sym.imp.MSVCRT.dll___setusermatherr]
pop ecx
call fcn.00401662
push 0x40300c
push 0x403008
call sub.MSVCRT.dll__initterm
mov eax, dword [0x4030f0]
mov dword [ebp - 0x28], eax
lea eax, [ebp - 0x28]
push eax
push dword [0x4030ec]
lea eax, [ebp - 0x20]
push eax
lea eax, [ebp - 0x2c]
push eax
lea eax, [ebp - 0x1c]
push eax
call dword [sym.imp.MSVCRT.dll___getmainargs]
push 0x403004
push section..data
call sub.MSVCRT.dll__initterm
call dword [sym.imp.MSVCRT.dll___p___initenv]
mov ecx, dword [ebp - 0x20]
mov dword [eax], ecx
push dword [ebp - 0x20]
push dword [ebp - 0x2c]
push dword [ebp - 0x1c]
call section..text
add esp, 0x30
mov dword [ebp - 0x24], eax
push eax
call dword [sym.imp.MSVCRT.dll_exit]
mov eax, dword [ebp - 0x14]
mov ecx, dword [eax]
mov ecx, dword [ecx]
mov dword [ebp - 0x30], ecx
push eax
push ecx
call sub.MSVCRT.dll__XcptFilter
pop ecx
pop ecx
ret