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

Disassembly:
push ebp
mov ebp, esp
mov eax, dword [ebp + 0x14]
test eax, eax
je 0x403ba3
push eax
call fcn.005287d6
add esp, 4
push ebx
push esi
push edi
mov edi, dword [ebp + 0xc]
mov eax, edi
lea edx, [eax + 1]
mov edi, edi
mov cl, byte [eax]
inc eax
test cl, cl
jne 0x403bb0
sub eax, edx
inc eax
push eax
call fcn.00508531
mov esi, eax
add esp, 4
mov dword [ebp + 0x14], eax
mov ecx, edi
sub esi, edi
lea esp, [esp]
mov dl, byte [ecx]
mov byte [esi + ecx], dl
inc ecx
test dl, dl
jne 0x403bd0
push 0x5c
push eax
mov edi, eax
xor ebx, ebx
call fcn.00509050
mov esi, eax
add esp, 8
test esi, esi
je 0x403c30
nop
mov byte [esi], 0
push edi
inc esi
call fcn.005288ff
push edi
call fcn.005287d6
push 0x5c
push esi
inc ebx
mov edi, esi
call fcn.00509050
mov esi, eax
add esp, 0x10
test esi, esi
jne 0x403bf0
test ebx, ebx
je 0x403c30
jmp 0x403c20
push 0x539f04
call fcn.005287d6
add esp, 4
dec ebx
jne 0x403c20
mov eax, dword [ebp + 0xc]
push 0x539f00
push eax
call fcn.00509662
mov edi, eax
add esp, 8
test edi, edi
je 0x403cac
mov esi, dword [ebp + 0x10]
mov ecx, dword [ebp + 8]
push edi
push esi
push 1
push ecx
call fcn.0050952c
add esp, 0x10
test eax, eax
je 0x403c80
mov edi, edi
mov ecx, esi
sub ecx, eax
je 0x403c80
test esi, esi
jle 0x403c80
mov edx, dword [ebp + 8]
push edi
mov esi, ecx
push esi
push 1
push edx
call fcn.0050952c
add esp, 0x10
test eax, eax
jne 0x403c60
test ebx, ebx
je 0x403c94
push 0x539f04
call fcn.005287d6
add esp, 4
dec ebx
jne 0x403c84
push edi
call fcn.00509379
push edi
call fcn.0050917b
mov eax, dword [ebp + 0x14]
push eax
call fcn.005085c5
add esp, 0xc
pop edi
pop esi
pop ebx
pop ebp
ret 0x10
Function at 0x409c00
Capabilities:
Create process on windows

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x5293d8
mov eax, dword fs:[0]
push eax
sub esp, 0x80
push ebx
push esi
push edi
mov eax, dword [0x58c8c0]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov ebx, dword [ebp + 8]
xor esi, esi
push 0x44
lea eax, [ebp - 0x8c]
push esi
push eax
mov dword [ebp - 4], esi
call fcn.00508fc0
add esp, 0xc
mov ecx, 5
xor edi, edi
mov dword [ebp - 0x8c], 0x44
mov dword [ebp - 0x60], 1
mov word [ebp - 0x5c], cx
cmp dword [ebp + 0x1c], esi
je 0x409c74
lea edx, [ebp + 0xc]
push edx
call fcn.00402a60
add esp, 4
mov edi, eax
push ebx
call fcn.00402a60
push 0x38
mov ebx, eax
lea eax, [ebp - 0x44]
push esi
push eax
call fcn.00508fc0
add esp, 0x10
lea ecx, [ebp - 0x48]
push ecx
mov dword [ebp - 0x48], 0x3c
mov dword [ebp - 0x44], 0x40
mov dword [ebp - 0x40], esi
mov dword [ebp - 0x3c], esi
mov dword [ebp - 0x38], ebx
mov dword [ebp - 0x34], edi
mov dword [ebp - 0x30], esi
mov dword [ebp - 0x2c], 5
mov dword [ebp - 0x28], esi
call dword [sym.imp.SHELL32.dll_ShellExecuteExW]
mov edx, dword [ebp - 0x10]
push 0xffffffffffffffff
push edx
call dword [sym.imp.KERNEL32.dll_WaitForSingleObject]
cmp dword [ebp + 0x20], 0x10
jb 0x409cda
mov eax, dword [ebp + 0xc]
push eax
call fcn.0041a1a9
add esp, 4
xor eax, eax
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x40e8b0
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
mov edx, dword [ebp + 8]
push ebx
mov ebx, dword [ebp + 0xc]
push esi
mov esi, ecx
mov eax, dword [esi + 0x1c]
mov ecx, dword [esi + 0x18]
imul ecx, eax
push edi
mov dword [esi + 8], ecx
test ebx, ebx
jne 0x40e8d0
mov ebx, edx
mov ecx, dword [esi + 4]
xor edi, edi
test cl, cl
jns 0x40e946
test edx, edx
jne 0x40e909
xor ecx, ecx
mov edx, 2
mul edx
seto cl
neg ecx
or ecx, eax
push ecx
call fcn.0041a1b4
mov edi, eax
mov eax, dword [esi + 0x1c]
add eax, eax
push eax
push ebx
push edi
call fcn.005081d0
add esp, 0x10
mov edx, edi
mov ebx, edi
mov eax, dword [esi + 0x1c]
test eax, eax
je 0x40e922
movzx ecx, word [edx + eax*2 - 2]
dec eax
rol cx, 8
mov word [edx + eax*2], cx
test eax, eax
jne 0x40e910
push 0xffffffffffffffff
push 0xffffffffffffffff
push 0
push ecx
mov eax, esp
push ecx
mov dword [eax], 0
mov eax, esp
lea ecx, [esi + 0x20]
push ecx
mov dword [eax], str.endian_swap
call fcn.00411200
add esp, 0x18
mov edx, dword [esi]
mov eax, dword [esi + 8]
push edx
push 1
push eax
push ebx
call fcn.0050952c
add esp, 0x10
cmp eax, 1
sete bl
test edi, edi
je 0x40e96b
push edi
call fcn.0041a1a9
add esp, 4
test bl, bl
je 0x40e9ab
mov edx, dword [esi + 0x1c]
mov ecx, dword [esi + 8]
add dword [esi + 0x14], ecx
cmp dword [esi + 0x50], 8
push 0xffffffffffffffff
push edx
push 0x18
lea eax, [esi + 0x3c]
push ecx
mov ecx, esp
jb 0x40e98b
mov eax, dword [eax]
push ecx
mov dword [ecx], eax
mov eax, esp
add esi, 0x20
push esi
mov dword [eax], str.write
call fcn.00411200
add esp, 0x18
mov al, bl
pop edi
pop esi
pop ebx
pop ebp
ret 8
mov ecx, esi
call fcn.0040e5b0
pop edi
pop esi
mov al, bl
pop ebx
pop ebp
ret 8
Function at 0x410240
Capabilities:
Access peb ldr_data
Get kernel32 base address

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x5299f6
mov eax, dword fs:[0]
push eax
push ecx
push ebx
push esi
push edi
mov eax, dword [0x58c8c0]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov esi, ecx
mov dword [ebp - 0x10], esi
mov eax, 7
xor edi, edi
xor ecx, ecx
mov dword [esi + 0x34], eax
mov dword [esi + 0x30], edi
mov word [esi + 0x20], cx
xor edx, edx
mov dword [esi + 0x50], eax
mov dword [esi + 0x4c], edi
mov dword [ebp - 4], edi
mov word [esi + 0x3c], dx
lea ebx, [esi + 0x5c]
push eax
mov ecx, ebx
mov byte [ebp - 4], 1
mov dword [ebx], edi
mov dword [ebx + 0x10], edi
mov dword [ebx + 8], edi
mov dword [ebx + 4], edi
mov dword [ebx + 0x14], edi
mov dword [ebx + 0xc], edi
call fcn.0040f340
mov eax, dword [ebx + 0xc]
push 0x5c
mov ecx, 1
push edi
add ebx, 0x18
push ebx
mov dword [eax + 0x1c], ecx
mov dword [eax + 0x20], ecx
mov dword [eax + 0x28], edi
mov dword [eax + 0x2c], edi
mov dword [eax + 0x30], 0xffffffff
mov dword [eax + 0x38], edi
mov dword [eax + 0x34], edi
call fcn.00508fc0
mov dword [esi + 0xf0], 7
mov dword [esi + 0xec], edi
add esp, 0xc
xor eax, eax
mov word [esi + 0xdc], ax
mov dword [esi], edi
mov dword [esi + 4], edi
mov dword [esi + 0x10], edi
mov dword [esi + 0x14], edi
mov dword [esi + 8], edi
mov dword [esi + 0xc], 0x4000
mov dword [esi + 0x18], edi
mov dword [esi + 0x1c], edi
mov dword [esi + 0x58], edi
mov dword [esi + 0xd0], edi
mov dword [esi + 0xd4], edi
mov dword [esi + 0xd8], 0xffffffff
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
Function at 0x411810
Capabilities:
Read file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0xc
push ebx
push esi
push edi
mov edi, dword [ebp + 8]
mov esi, ecx
mov eax, dword [esi]
mov ecx, dword [esi + 8]
push eax
push 1
push ecx
push edi
call fcn.00509980
mov ecx, dword [esi + 8]
add esp, 0x10
cmp eax, 1
mov eax, ecx
sete bl
cdq
idiv dword [esi + 0x18]
mov byte [ebp - 1], bl
mov dword [esi + 0x1c], eax
test bl, bl
je 0x41196f
add dword [esi + 0x14], ecx
cmp dword [esi + 0x50], 8
push 0xffffffffffffffff
push eax
push 0x18
lea eax, [esi + 0x3c]
push ecx
mov ecx, esp
jb 0x411863
mov eax, dword [eax]
mov dword [ecx], eax
push ecx
mov eax, esp
mov dword [eax], str.read
lea eax, [esi + 0x20]
push eax
mov dword [ebp - 0xc], eax
call fcn.00411200
mov ecx, dword [esi + 0x18]
mov edx, dword [esi + 0x1c]
add esp, 0x18
xor ebx, ebx
xor eax, eax
cmp ecx, 1
sete byte [ebp - 2]
mov dword [ebp - 8], edx
test edx, edx
je 0x411923
dec dword [ebp - 8]
xor edx, edx
cmp byte [ebp - 2], dl
je 0x4118a7
cmp byte [edi], dl
jmp 0x4118aa
cmp word [edi], dx
sete dl
test edx, edx
je 0x4118d4
test eax, eax
je 0x4118cd
cmp edi, eax
je 0x4118cd
imul ecx, ebx
mov edx, edi
sub edx, eax
push edx
push eax
sub eax, ecx
push eax
call fcn.00508c50
add esp, 0xc
mov ecx, dword [esi + 0x18]
lea eax, [ecx + edi]
inc ebx
add edi, ecx
cmp dword [ebp - 8], 0
jne 0x411899
test eax, eax
je 0x4118f9
cmp edi, eax
je 0x4118f9
mov ecx, dword [esi + 0x18]
imul ecx, ebx
sub edi, eax
push edi
push eax
sub eax, ecx
push eax
call fcn.00508c50
add esp, 0xc
test ebx, ebx
je 0x411923
mov edx, dword [ebp - 0xc]
push 0xffffffffffffffff
push ebx
push 1
push ecx
mov eax, esp
push ecx
mov dword [eax], 0
mov eax, esp
push edx
mov dword [eax], str.nulls_removed
call fcn.00411200
add esp, 0x18
sub dword [esi + 0x1c], ebx
cmp dword [esi + 0x18], 1
jle 0x411963
test byte [esi + 4], 0x80
je 0x411963
mov eax, dword [esi + 0x1c]
mov ecx, dword [ebp + 8]
push eax
push ecx
call fcn.0040bbb0
mov edx, dword [ebp - 0xc]
add esp, 8
push 0xffffffffffffffff
push 0xffffffffffffffff
push 0
push ecx
mov eax, esp
push ecx
mov dword [eax], 0
mov eax, esp
push edx
mov dword [eax], str.endian_swap
call fcn.00411200
add esp, 0x18
mov al, byte [ebp - 1]
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 4
mov ecx, esi
call fcn.0040e5b0
pop edi
pop esi
mov al, bl
pop ebx
mov esp, ebp
pop ebp
ret 4
Function at 0x412bb0
Capabilities:
Hash data with md5

Disassembly:
mov eax, ecx
xor ecx, ecx
mov dword [eax + 4], 0x67452301
mov dword [eax + 8], 0xefcdab89
mov dword [eax + 0xc], 0x98badcfe
mov dword [eax + 0x10], 0x10325476
mov dword [eax + 0x54], ecx
mov byte [eax + 0x14], cl
mov byte [eax + 0x70], cl
mov byte [eax + 0x60], cl
mov dword [eax + 0x58], ecx
mov dword [eax + 0x5c], ecx
mov byte [eax + 0x91], cl
mov dword [eax], 9
ret

Function at 0x413540
Capabilities:
Hash data with md5

Disassembly:
push ebp
mov ebp, esp
sub esp, 8
push ebx
push esi
mov esi, ecx
mov ecx, dword [ebp + 0xc]
mov eax, ecx
cdq
idiv dword [esi]
lea edx, [esi + 0x70]
push edi
mov edi, dword [ebp + 8]
mov dword [esi + 4], 0x67452301
mov dword [esi + 8], 0xefcdab89
mov dword [esi + 0xc], 0x98badcfe
mov dword [esi + 0x10], 0x10325476
mov dword [ebp - 8], edx
mov dword [esi], 9
mov ebx, eax
xor eax, eax
mov dword [esi + 0x54], eax
mov byte [esi + 0x14], al
mov byte [edx], al
mov byte [esi + 0x60], al
mov dword [esi + 0x58], eax
mov dword [esi + 0x5c], eax
mov byte [esi + 0x91], al
cmp ebx, 0x1000
jae 0x4135a7
push ecx
mov eax, edi
push eax
jmp 0x4135e0
mov dword [ebp - 4], eax
lea ebx, [ebx]
push 0x1000
push edi
mov ecx, esi
call fcn.00413380
mov eax, dword [ebp - 4]
mov ecx, dword [esi]
inc eax
dec ecx
add edi, ebx
mov dword [ebp - 4], eax
cmp eax, ecx
jl 0x4135b0
mov edx, dword [ebp + 8]
mov eax, dword [ebp + 0xc]
push 0x1000
lea ecx, [edx + eax - 0x1000]
push ecx
mov ecx, esi
call fcn.00413380
mov ecx, esi
call fcn.00413430
mov edx, dword [ebp - 8]
mov eax, dword [ebp + 0x10]
push 0x21
push edx
push eax
call fcn.0050caa0
add esp, 0xc
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 0xc

Function at 0x413610
Capabilities:
Read file on windows

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x529cbb
mov eax, dword fs:[0]
push eax
mov eax, 0x3224
call fcn.00509ca0
mov eax, dword [0x58c8c0]
xor eax, ebp
mov dword [ebp - 0x10], eax
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov eax, dword [ebp + 0xc]
mov esi, dword [ebp + 8]
mov edi, ecx
mov dword [ebp - 0x3230], eax
mov dword [ebp - 0x3218], 0xf
mov dword [ebp - 0x321c], 0
mov byte [ebp - 0x322c], 0
push 0
push 0
push esi
mov dword [ebp - 4], 0
call fcn.00509c20
push esi
push 0x3200
lea ecx, [ebp - 0x3210]
push 1
push ecx
call fcn.00509980
add esp, 0x1c
test eax, eax
jle 0x4136c4
push eax
lea edx, [ebp - 0x3210]
push edx
lea ecx, [ebp - 0x322c]
call fcn.00403db0
push esi
push 0x3200
lea eax, [ebp - 0x3210]
push 1
push eax
call fcn.00509980
add esp, 0x10
test eax, eax
jg 0x413696
mov eax, dword [ebp - 0x322c]
mov esi, 0x10
cmp dword [ebp - 0x3218], esi
jae 0x4136dd
lea eax, [ebp - 0x322c]
mov ecx, dword [ebp - 0x3230]
mov edx, dword [ebp - 0x321c]
push ecx
push edx
push eax
mov ecx, edi
call fcn.00413540
cmp dword [ebp - 0x3218], esi
jb 0x41370a
mov eax, dword [ebp - 0x322c]
push eax
call fcn.0041a1a9
add esp, 4
xor eax, eax
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.005089e3
mov esp, ebp
pop ebp
ret 8
Function at 0x416db0
Capabilities:
Encode data using xor
Generate random numbers using the delphi lcg

Disassembly:
push ebp
mov ebp, esp
mov eax, dword [ebp + 8]
push edi
mov edi, 0x34567890
mov dword [ecx], 0x12345678
mov dword [ecx + 4], 0x23456789
mov dword [ecx + 8], edi
mov dl, byte [eax]
test dl, dl
je 0x416e20
push esi
mov esi, dword [ecx + 4]
mov eax, dword [ecx]
movsx edx, dl
xor edx, eax
and edx, 0xff
mov edx, dword [ebx + edx*4]
shr eax, 8
xor edx, eax
movzx eax, dl
add esi, eax
mov eax, dword [ebp + 8]
imul esi, esi, 0x8088405
mov dword [ecx], edx
inc esi
mov edx, esi
shr edx, 0x18
xor edx, edi
and edx, 0xff
shr edi, 8
mov dword [ecx + 4], esi
xor edi, dword [ebx + edx*4]
inc eax
mov dword [ecx + 8], edi
mov dl, byte [eax]
mov dword [ebp + 8], eax
test dl, dl
jne 0x416dd6
pop esi
pop edi
pop ebp
ret
Function at 0x426f98
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.00426c3c
cmp dword [esi], 0
mov edi, eax
mov dword [esi + 0xc], 1
je 0x426fe2
push edi
call dword [sym.imp.USER32.dll_GetWindowTextLengthW]
lea ecx, [eax + 1]
push ecx
mov ecx, dword [ebp + 0x10]
push eax
call fcn.0041bca2
push eax
push edi
call dword [sym.imp.USER32.dll_GetWindowTextW]
mov ecx, dword [ebp + 0x10]
push 0xffffffffffffffff
call fcn.0041bc73
jmp 0x426fed
mov eax, dword [ebp + 0x10]
push dword [eax]
push edi
call fcn.004258c2
pop edi
pop esi
pop ebp
ret 0xc

Function at 0x426ff3
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.0042550d
push 0xfffffffffffffff0
push dword [ebp + 8]
call dword [sym.imp.USER32.dll_GetWindowLongW]
push dword [ebp + 0xc]
and eax, 3
mov ecx, esi
cmp al, 3
je 0x427030
call fcn.00426c3c
mov dword [esi + 0xc], 1
jmp 0x427035
call fcn.00426c3c
cmp dword [esi], 0
je 0x42707e
push dword [ebp + 8]
call dword [sym.imp.USER32.dll_GetWindowTextLengthW]
test eax, eax
jle 0x427056
lea ecx, [eax + 1]
push ecx
mov ecx, dword [ebp + 0x10]
push eax
call fcn.0041bca2
jmp 0x427068
mov ecx, dword [ebp + 0x10]
push 0xff
call fcn.0041b035
push 0x100
push eax
push dword [ebp + 8]
call dword [sym.imp.USER32.dll_GetWindowTextW]
mov ecx, dword [ebp + 0x10]
push 0xffffffffffffffff
call fcn.0041bc73
jmp 0x4270a2
mov esi, dword [ebp + 0x10]
push dword [esi]
push 0xffffffffffffffff
push 0x14d
push dword [ebp + 8]
call dword [sym.imp.USER32.dll_SendMessageW]
cmp eax, 0xffffffff
jne 0x4270a2
push dword [esi]
push dword [ebp + 8]
call fcn.004258c2
pop esi
pop ebp
ret 0xc

Function at 0x42ea98
Capabilities:
Get common file path

Disassembly:
mov edi, edi
push esi
mov esi, ecx
call fcn.0046a2a9
call fcn.0041b070
cmp dword [eax + 0x14], 0
jne 0x42eab5
mov ecx, esi
pop esi
jmp fcn.0042e59d
pop esi
ret

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

Disassembly:
mov edi, edi
push esi
mov esi, ecx
call fcn.00490ee7
call fcn.0041b070
cmp dword [eax + 0x14], 0
jne 0x4321d2
mov ecx, esi
pop esi
jmp fcn.00431b88
pop esi
ret

Function at 0x43f670
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.0041b7c7
mov esi, dword [eax + 0xc]
push 5
push dword [ebp + 8]
push esi
call dword [sym.imp.KERNEL32.dll_FindResourceW]
push eax
push esi
call dword [sym.imp.KERNEL32.dll_LoadResource]
mov edi, eax
test edi, edi
je 0x43f6a9
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.0043f2ad
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 0x43f707
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 0x43f72b
cmp dword [edi + 0x74], 0
jne 0x43f72b
movzx eax, bx
mov dword [edi + 0x74], eax
call fcn.0041b7c7
mov esi, dword [eax + 0xc]
push 5
push ebx
push esi
call dword [sym.imp.KERNEL32.dll_FindResourceW]
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.0043f6c8
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 0x46ed7f
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 0x46ed99
call fcn.0041b7c7
mov esi, dword [eax + 0xc]
push dword [0x591ee0]
push dword [ebp + 8]
push esi
call dword [sym.imp.KERNEL32.dll_FindResourceW]
mov edi, eax
test edi, edi
jne 0x46edb7
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 0x46edaf
push ebx
push eax
call dword [sym.imp.KERNEL32.dll_LockResource]
mov ebx, eax
test ebx, ebx
jne 0x46ede4
xor esi, esi
push dword [ebp + 0xc]
call dword [sym.imp.KERNEL32.dll_FreeResource]
mov eax, esi
pop ebx
jmp 0x46edb1
push edi
push esi
call dword [sym.imp.KERNEL32.dll_SizeofResource]
mov ecx, dword [ebp - 4]
push eax
push ebx
call fcn.0046ecad
mov esi, eax
jmp 0x46edd6

Function at 0x4ede6f
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 0x4ede87
mov edi, dword [esi + 0xc]
jmp 0x4edec7
push 5
push dword [esi + 0xc]
push dword [esi + 8]
call dword [sym.imp.KERNEL32.dll_FindResourceW]
mov edi, eax
test edi, edi
jne 0x4edea0
call fcn.00428077
push edi
push dword [esi + 8]
call dword [sym.imp.KERNEL32.dll_LoadResource]
mov edi, eax
test edi, edi
jne 0x4edeb5
call fcn.00428077
push edi
call dword [sym.imp.KERNEL32.dll_LockResource]
mov edi, eax
test edi, edi
jne 0x4edec7
call fcn.00428077
call fcn.0041b7c7
cmp dword [eax + 0x3c], 0
je 0x4ededc
push edi
mov ecx, ebx
call fcn.004ecd23
mov edi, eax
push dword [ebp + 0xc]
push edi
call fcn.004edd89
mov dword [ebp + 8], eax
mov eax, dword [ebx + 0x7c]
test eax, eax
je 0x4edefa
push eax
call dword [sym.imp.KERNEL32.dll_GlobalFree]
and dword [ebx + 0x7c], 0
mov eax, dword [ebp + 8]
test eax, eax
je 0x4edf06
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 0x5089e3
Capabilities:
Terminate process

Disassembly:
cmp ecx, dword [0x58c8c0]
jne 0x5089ed
repz ret
jmp fcn.00512b5c
Function at 0x51f498
Capabilities:
Link many functions at runtime

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x24
mov eax, dword [0x58c8c0]
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.0051255c
and dword [ebp - 0x14], 0
cmp dword [0x5949c8], 0
mov dword [ebp - 0x18], eax
jne 0x51f54b
push str.USER32.DLL
call dword [sym.imp.KERNEL32.dll_LoadLibraryW]
mov ebx, eax
test ebx, ebx
je 0x51f5f3
mov edi, dword [sym.imp.KERNEL32.dll_GetProcAddress]
push 0x56ccfc
push ebx
call edi
test eax, eax
je 0x51f5f3
mov esi, dword [sym.imp.KERNEL32.dll_EncodePointer]
push eax
call esi
push 0x56ccec
push ebx
mov dword [0x5949c8], eax
call edi
push eax
call esi
push 0x56ccd8
push ebx
mov dword [0x5949cc], eax
call edi
push eax
call esi
push str.GetUserObjectInformationW
push ebx
mov dword [0x5949d0], eax
call edi
push eax
call esi
mov dword [0x5949d8], eax
test eax, eax
je 0x51f54b
push str.GetProcessWindowStation
push ebx
call edi
push eax
call esi
mov dword [0x5949d4], eax
mov eax, dword [0x5949d4]
mov ecx, dword [ebp - 0x18]
mov esi, dword [sym.imp.KERNEL32.dll_DecodePointer]
cmp eax, ecx
je 0x51f5a4
cmp dword [0x5949d8], ecx
je 0x51f5a4
push eax
call esi
push dword [0x5949d8]
mov edi, eax
call esi
mov ebx, eax
test edi, edi
je 0x51f5a4
test ebx, ebx
je 0x51f5a4
call edi
test eax, eax
je 0x51f59b
lea ecx, [ebp - 0x24]
push ecx
push 0xc
lea ecx, [ebp - 0x10]
push ecx
push 1
push eax
call ebx
test eax, eax
je 0x51f59b
test byte [ebp - 8], 1
jne 0x51f5a4
or dword [ebp + 0x10], 0x200000
jmp 0x51f5d7
mov eax, dword [0x5949cc]
cmp eax, dword [ebp - 0x18]
je 0x51f5d7
push eax
call esi
test eax, eax
je 0x51f5d7
call eax
mov dword [ebp - 0x14], eax
test eax, eax
je 0x51f5d7
mov eax, dword [0x5949d0]
cmp eax, dword [ebp - 0x18]
je 0x51f5d7
push eax
call esi
test eax, eax
je 0x51f5d7
push dword [ebp - 0x14]
call eax
mov dword [ebp - 0x14], eax
push dword [0x5949c8]
call esi
test eax, eax
je 0x51f5f3
push dword [ebp + 0x10]
push dword [ebp - 0x1c]
push dword [ebp - 0x20]
push dword [ebp - 0x14]
call eax
jmp 0x51f5f5
xor eax, eax
mov ecx, dword [ebp - 4]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.005089e3
leave
ret
Function at 0x405d20
Capabilities:
Accept command line arguments

Disassembly:
push ebp
mov ebp, esp
push ecx
push esi
inc esi
call 0x52005e7a
test eax, eax
jne 0x405e30
cmp dword [0xa0d6f6], 0x14
cmovae eax, edi
add byte [eax], al
add byte [ecx + 0x410384], ah
test eax, eax
jne 0x405e2e
mov dword [0x64ba56], 0xb80001
call dword [sym.imp.KERNEL32.dll_GetCommandLineW]
mov esi, eax
test esi, esi
je 0x405db3
fcomp qword [eax + 0x47]
inc ecx
add byte [ebp + 0x501d75c0], al
push 0x13f410
xor eax, 0x4bc753ec
add ah, dl
add esp, 0xc
mov dword [0x6080358], eax
test eax, eax
lodsd eax, dword [esi]
test byte [edi - 0x73000000], ch
dec ebp
cld
push ecx
mov dl, 0xff
ror byte [ebx + 0x12f685f0], 1
imul ecx, dword [ebx + 0x458bfc55], 0x50565245
call 0x40d7d0
mov edx, dword [ecx]
or byte [ebx - 0x76a9393c], al
add edi, edi
adc eax, 0x5e40d358
scasd eax, dword es:[edi]
rcl byte [ebx + 0x54]
ror byte [ecx], 0
mov ebx, eax
push 0xffffffffffffffff
push ebx
movsb byte es:[edi], byte [esi]
adc eax, sym.imp.MSVCRT.dll___p__environ
sub eax, 0x990085
mov esi, ebp
adc byte [ebx - 0x2350aa3c], al
cwde
sub eax, 0x42d3425
add dl, dl
add byte [esi - 1], dl
adc eax, 0x377ec1e1
add esp, 4
mov dword [edi], eax
hlt
xor eax, eax
pop edi
pop esi
mov ecx, dword [edx + 0xcc249]
fld qword [ecx]
push dword [esp + ecx*2 - 0x167dbf4a]
leave
invalid