joyce8/EMBER2024-capa huggingface dataset:
Function at 0x40a000
Capabilities:
Extract resource via kernel32 functions

Disassembly:
push ebx
mov ebx, dword [esp + 8]
push edi
mov edi, dword [esp + 0x10]
push edi
push ebx
call dword [sym.imp.KERNEL32.dll_LoadResource]
test eax, eax
jne 0x40a019
pop edi
pop ebx
ret
push esi
push eax
call dword [sym.imp.KERNEL32.dll_LockResource]
mov esi, eax
test esi, esi
je 0x40a054
push edi
push ebx
call dword [sym.imp.KERNEL32.dll_SizeofResource]
mov ecx, dword [esp + 0x18]
add eax, esi
and ecx, 0xf
jbe 0x40a050
lea ebx, [ebx]
cmp esi, eax
jae 0x40a054
sub ecx, 1
movzx edx, word [esi]
lea esi, [esi + edx*2 + 2]
jne 0x40a040
cmp esi, eax
jb 0x40a05a
pop esi
pop edi
xor eax, eax
pop ebx
ret
movzx eax, word [esi]
neg eax
sbb eax, eax
and eax, esi
pop esi
pop edi
pop ebx
ret

Function at 0x40a6a0
Capabilities:
Access peb ldr_data
Get ntdll base address

Disassembly:
push 0xffffffffffffffff
push 0x448c28
mov eax, dword fs:[0]
push eax
push ebx
push esi
push edi
mov eax, dword [0x45e480]
xor eax, esp
push eax
lea eax, [esp + 0x10]
mov dword fs:[0], eax
mov esi, dword [esp + 0x20]
xor edx, edx
mov dword [esi + 0x2c], 0xf
mov dword [esi + 0x28], edx
lea ecx, [esi + 0x14]
mov byte [ecx + 4], dl
mov dword [esi + 4], edx
mov dword [esi + 8], 4
mov dword [esi + 0xc], edx
mov dword [esi + 0x10], edx
mov dword [esi + 0x30], edx
mov dword [esi + 0x34], edx
mov eax, 0x44fd4f
mov dword [esp + 0x18], edx
mov dword [esi], vtable.TiXmlText.0
lea edi, [eax + 1]
mov bl, byte [eax]
inc eax
cmp bl, dl
jne 0x40a701
sub eax, edi
push eax
push 0x44fd4f
call fcn.00402db0
mov eax, esi
mov ecx, dword [esp + 0x10]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
add esp, 0xc
ret 4

Function at 0x40ae80
Capabilities:
Access peb ldr_data

Disassembly:
push 0xffffffffffffffff
push 0x4487b3
mov eax, dword fs:[0]
push eax
push ebx
push ebp
push esi
push edi
mov eax, dword [0x45e480]
xor eax, esp
push eax
lea eax, [esp + 0x14]
mov dword fs:[0], eax
mov ebp, dword [esp + 0x28]
mov esi, dword [esp + 0x24]
xor edx, edx
lea edi, [esi + 0x14]
mov dword [edi + 0x14], edx
mov ecx, 0xf
mov dword [edi + 0x18], ecx
mov byte [edi + 4], dl
mov ebx, 1
mov dword [esi + 4], edx
mov dword [esi + 8], ebx
mov dword [esi + 0x30], edx
mov dword [esi + 0x34], edx
mov dword [esp + 0x1c], edx
lea eax, [esi + 0x38]
mov dword [esi], vtable.TiXmlElement.0
mov dword [eax], vtable.TiXmlAttribute.0
mov dword [eax + 0x20], ecx
mov dword [eax + 0x1c], edx
mov byte [eax + 0xc], dl
mov dword [eax + 0x3c], ecx
mov dword [eax + 0x38], edx
mov byte [eax + 0x28], dl
mov dword [eax + 0x44], eax
mov dword [eax + 0x40], eax
mov byte [esp + 0x1c], bl
mov eax, ebp
mov dword [esi + 0x10], edx
mov dword [esi + 0xc], edx
lea ebx, [eax + 1]
lea ebx, [ebx]
mov cl, byte [eax]
inc eax
cmp cl, dl
jne 0x40af10
sub eax, ebx
push eax
push ebp
mov ecx, edi
call fcn.00402db0
mov eax, esi
mov ecx, dword [esp + 0x14]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebp
pop ebx
add esp, 0xc
ret 8
Function at 0x40fea0
Capabilities:
Encode data using xor
Hash data with crc32

Disassembly:
test ecx, ecx
jne 0x40fea7
xor eax, eax
ret
push esi
not eax
cmp edx, 8
jb 0x40ff84
mov esi, edx
shr esi, 3
push edi
lea esp, [esp]
movzx edi, byte [ecx]
xor edi, eax
and edi, 0xff
shr eax, 8
xor eax, dword [edi*4 + 0x452770]
movzx edi, byte [ecx + 1]
xor edi, eax
and edi, 0xff
inc ecx
shr eax, 8
xor eax, dword [edi*4 + 0x452770]
movzx edi, byte [ecx + 1]
xor edi, eax
and edi, 0xff
inc ecx
shr eax, 8
xor eax, dword [edi*4 + 0x452770]
movzx edi, byte [ecx + 1]
xor edi, eax
inc ecx
and edi, 0xff
shr eax, 8
xor eax, dword [edi*4 + 0x452770]
movzx edi, byte [ecx + 1]
xor edi, eax
inc ecx
and edi, 0xff
shr eax, 8
xor eax, dword [edi*4 + 0x452770]
movzx edi, byte [ecx + 1]
xor edi, eax
inc ecx
and edi, 0xff
shr eax, 8
xor eax, dword [edi*4 + 0x452770]
movzx edi, byte [ecx + 1]
inc ecx
xor edi, eax
and edi, 0xff
shr eax, 8
xor eax, dword [edi*4 + 0x452770]
movzx edi, byte [ecx + 1]
inc ecx
xor edi, eax
and edi, 0xff
shr eax, 8
xor eax, dword [edi*4 + 0x452770]
inc ecx
sub edx, 8
sub esi, 1
jne 0x40fec0
pop edi
test edx, edx
je 0x40ffab
jmp 0x40ff90
movzx esi, byte [ecx]
xor esi, eax
and esi, 0xff
shr eax, 8
xor eax, dword [esi*4 + 0x452770]
inc ecx
sub edx, 1
jne 0x40ff90
not eax
pop esi
ret

Function at 0x40ffb0
Capabilities:
Generate random numbers using the delphi lcg
Hash data with crc32

Disassembly:
mov eax, dword [edx]
movsx ecx, cl
xor ecx, eax
shr eax, 8
and ecx, 0xff
mov ecx, dword [ecx*4 + 0x452770]
xor ecx, eax
movzx eax, cl
add eax, dword [edx + 4]
mov dword [edx], ecx
mov ecx, dword [edx + 8]
imul eax, eax, 0x8088405
inc eax
mov dword [edx + 4], eax
shr eax, 0x18
xor eax, ecx
and eax, 0xff
shr ecx, 8
xor ecx, dword [eax*4 + 0x452770]
mov dword [edx + 8], ecx
ret

Function at 0x410000
Capabilities:
Generate random numbers using the delphi lcg
Hash data with crc32

Disassembly:
mov ecx, dword [esi + 8]
push ebx
mov edx, ecx
and edx, 0xfffd
or edx, 2
mov ebx, edx
xor ebx, 1
imul ebx, edx
mov edx, dword [esi]
shr ebx, 8
push edi
xor al, bl
movsx edi, al
xor edi, edx
shr edx, 8
and edi, 0xff
mov ebx, dword [edi*4 + 0x452770]
xor ebx, edx
movzx edx, bl
add edx, dword [esi + 4]
mov dword [esi], ebx
imul edx, edx, 0x8088405
inc edx
mov dword [esi + 4], edx
shr edx, 0x18
xor edx, ecx
and edx, 0xff
shr ecx, 8
xor ecx, dword [edx*4 + 0x452770]
pop edi
mov dword [esi + 8], ecx
pop ebx
ret

Function at 0x410830
Capabilities:
Read file on windows

Disassembly:
push esi
mov esi, ebx
imul esi, dword [esp + 8]
cmp byte [edi], 0
je 0x410862
mov ecx, dword [edi + 4]
push 0
lea eax, [esp + 0xc]
push eax
push esi
push edx
push ecx
call dword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
jne 0x410858
mov byte [edi + 8], 1
mov eax, dword [esp + 8]
xor edx, edx
div ebx
pop esi
ret
mov ecx, dword [edi + 0x1c]
mov eax, dword [edi + 0x18]
push ebp
lea ebp, [ecx + esi]
cmp ebp, eax
pop ebp
jbe 0x410875
sub eax, ecx
mov esi, eax
mov eax, dword [edi + 0x14]
push esi
add eax, ecx
push eax
push edx
call fcn.004376c0
add dword [edi + 0x1c], esi
mov eax, esi
add esp, 0xc
xor edx, edx
div ebx
pop esi
ret
Function at 0x410890
Capabilities:
Read file on windows

Disassembly:
sub esp, 8
cmp byte [esi], 0
push edi
mov edi, 1
je 0x4108c3
mov edx, dword [esi + 4]
push 0
lea eax, [esp + 0xc]
push eax
push edi
lea ecx, [esp + 0x13]
push ecx
push edx
call dword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
jne 0x4108bd
mov byte [esi + 8], 1
mov edi, dword [esp + 8]
jmp 0x4108ef
mov eax, dword [esi + 0x18]
push ebx
mov ebx, dword [esi + 0x1c]
lea ecx, [ebx + 1]
cmp ecx, eax
jbe 0x4108d5
sub eax, ebx
mov edi, eax
mov edx, dword [esi + 0x14]
push edi
add edx, ebx
push edx
lea eax, [esp + 0x13]
push eax
call fcn.004376c0
add esp, 0xc
add ebx, edi
mov dword [esi + 0x1c], ebx
pop ebx
cmp edi, 1
pop edi
jne 0x410906
movzx ecx, byte [esp + 3]
mov edx, dword [esp + 0xc]
mov dword [edx], ecx
xor eax, eax
add esp, 8
ret
cmp byte [esi], 0
je 0x410900
cmp byte [esi + 8], 0
je 0x410900
or eax, 0xffffffff
add esp, 8
ret
Function at 0x410a40
Capabilities:
Read file on windows

Disassembly:
sub esp, 0x18
cmp byte [esi], 0
je 0x410a85
cmp byte [esi + 1], 0
je 0x410a8d
mov eax, dword [esi + 4]
push 2
push 0
push 0
push eax
call dword [sym.imp.KERNEL32.dll_SetFilePointer]
cmp byte [esi], 0
push ebp
je 0x410aa2
cmp byte [esi + 1], 0
je 0x410a94
mov edx, dword [esi + 4]
push 1
push 0
push 0
push edx
call dword [sym.imp.KERNEL32.dll_SetFilePointer]
mov ebp, eax
sub ebp, dword [esi + 0xc]
mov dword [esp + 4], ebp
jmp 0x410aab
mov ecx, dword [esi + 0x18]
mov dword [esi + 0x1c], ecx
jmp 0x410a5e
or eax, 0xffffffff
add esp, 0x18
ret
mov dword [esp + 4], 0
mov ebp, dword [esp + 4]
jmp 0x410aab
mov eax, dword [esi + 0x1c]
mov dword [esp + 4], eax
mov ebp, eax
push edi
mov edi, 0xffff
mov dword [esp + 0xc], edi
cmp ebp, edi
jae 0x410abf
mov dword [esp + 0xc], ebp
mov edi, ebp
push ebx
push 0x404
call fcn.004332b4
mov ebx, eax
add esp, 4
test ebx, ebx
jne 0x410add
pop ebx
pop edi
or eax, 0xffffffff
pop ebp
add esp, 0x18
ret
mov eax, 4
mov dword [esp + 0x18], 0xffffffff
cmp edi, eax
jbe 0x410bf1
jmp 0x410b00
mov edi, dword [esp + 0x10]
mov eax, dword [esp + 0x14]
mov ebp, dword [esp + 0xc]
add eax, 0x400
mov dword [esp + 0x14], edi
cmp eax, edi
ja 0x410b11
mov dword [esp + 0x14], eax
mov eax, ebp
sub eax, dword [esp + 0x14]
sub ebp, eax
mov dword [esp + 0x20], eax
cmp ebp, 0x404
jbe 0x410b2a
mov ebp, 0x404
cmp byte [esi], 0
je 0x410b4f
cmp byte [esi + 1], 0
je 0x410bf1
mov ecx, dword [esi + 0xc]
mov edx, dword [esi + 4]
push 0
push 0
add ecx, eax
push ecx
push edx
call dword [sym.imp.KERNEL32.dll_SetFilePointer]
jmp 0x410b52
mov dword [esi + 0x1c], eax
cmp byte [esi], 0
mov edi, ebp
je 0x410b7a
mov ecx, dword [esi + 4]
push 0
lea eax, [esp + 0x20]
push eax
push ebp
push ebx
push ecx
call dword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
jne 0x410b74
mov byte [esi + 8], 1
mov eax, dword [esp + 0x1c]
jmp 0x410ba0
mov eax, dword [esi + 0x1c]
mov ecx, dword [esi + 0x18]
lea edx, [eax + ebp]
cmp edx, ecx
jbe 0x410b8b
sub ecx, eax
mov edi, ecx
mov ecx, dword [esi + 0x14]
push edi
add ecx, eax
push ecx
push ebx
call fcn.004376c0
add esp, 0xc
add dword [esi + 0x1c], edi
mov eax, edi
xor edx, edx
div ebp
cmp eax, 1
jne 0x410bf1
lea eax, [ebp - 3]
test eax, eax
jl 0x410bdc
dec eax
cmp byte [eax + ebx], 0x50
jne 0x410bcc
cmp byte [eax + ebx + 1], 0x4b
jne 0x410bcc
cmp byte [eax + ebx + 2], 5
jne 0x410bcc
cmp byte [eax + ebx + 3], 6
je 0x410bd2
test eax, eax
jge 0x410bb0
jmp 0x410bdc
mov edx, dword [esp + 0x20]
add eax, edx
mov dword [esp + 0x18], eax
cmp dword [esp + 0x18], 0
jne 0x410bf1
mov eax, dword [esp + 0x10]
cmp dword [esp + 0x14], eax
jb 0x410af4
push ebx
call fcn.004330d7
mov eax, dword [esp + 0x1c]
add esp, 4
pop ebx
pop edi
pop ebp
add esp, 0x18
ret
Function at 0x411640
Capabilities:
Resolve function by parsing pe exports

Disassembly:
sub esp, 0xc
push ebx
push ebp
mov ebp, dword [esp + 0x18]
push edi
mov edi, eax
xor ebx, ebx
cmp edi, ebx
jne 0x41165e
pop edi
pop ebp
mov eax, 0xffffff9a
pop ebx
add esp, 0xc
ret
cmp dword [edi + 0x18], ebx
je 0x411652
cmp dword [edi + 0x7c], ebx
je 0x41166d
call fcn.00411a30
lea eax, [esp + 0x10]
push eax
lea ecx, [esp + 0x10]
push ecx
lea edx, [esp + 0x1c]
push edx
call fcn.004113b0
add esp, 0xc
test eax, eax
je 0x411694
pop edi
pop ebp
mov eax, 0xffffff99
pop ebx
add esp, 0xc
ret
push esi
push 0x84
call fcn.004332b4
mov esi, eax
add esp, 4
cmp esi, ebx
je 0x4116d5
push 0x4000
call fcn.004332b4
mov ecx, dword [esp + 0x14]
mov edx, dword [esp + 0x18]
add esp, 4
mov dword [esi], eax
mov dword [esi + 0x44], ecx
mov dword [esi + 0x48], edx
mov dword [esi + 0x4c], ebx
cmp eax, ebx
jne 0x4116e2
push esi
call fcn.004330d7
add esp, 4
pop esi
pop edi
pop ebp
mov eax, 0xffffff98
pop ebx
add esp, 0xc
ret
mov dword [esi + 0x40], ebx
mov ecx, dword [edi + 0x3c]
xor eax, eax
cmp dword [edi + 0x34], ebx
mov dword [esi + 0x54], ecx
mov dword [esi + 0x50], ebx
mov edx, dword [edi + 0x34]
sete al
mov dword [esi + 0x64], edx
mov ecx, dword [edi]
mov dword [esi + 0x60], ecx
mov edx, dword [edi + 0xc]
mov dword [esi + 0x68], edx
mov dword [esi + 0x18], ebx
cmp eax, ebx
jne 0x41172a
lea eax, [esi + 4]
mov dword [esi + 0x24], ebx
mov dword [esi + 0x28], ebx
mov dword [esi + 0x2c], ebx
call fcn.004102c0
test eax, eax
jne 0x41172a
mov dword [esi + 0x40], 1
mov eax, dword [edi + 0x40]
mov dword [esi + 0x58], eax
mov ecx, dword [edi + 0x44]
mov dword [esi + 0x5c], ecx
mov dl, byte [edi + 0x30]
and dl, 1
mov byte [esi + 0x6c], dl
mov eax, dword [edi + 0x30]
shr eax, 3
test al, 1
je 0x411754
mov cl, byte [edi + 0x39]
mov byte [esi + 0x80], cl
jmp 0x41175d
mov dl, byte [edi + 0x3f]
mov byte [esi + 0x80], dl
movzx eax, byte [esi + 0x6c]
neg eax
sbb eax, eax
and eax, 0xc
lea edx, [esi + 0x70]
mov dword [esi + 0x7c], eax
mov dword [edx], 0x12345678
mov dword [esi + 0x74], 0x23456789
mov dword [esi + 0x78], 0x34567890
cmp ebp, ebx
je 0x411797
mov cl, byte [ebp]
cmp cl, bl
je 0x411797
call fcn.0040ffb0
add ebp, 1
jne 0x411786
mov ecx, dword [edi + 0x78]
mov edx, dword [esp + 0x18]
lea eax, [ecx + edx + 0x1e]
mov dword [esi + 0x3c], eax
mov dword [esi + 8], ebx
mov dword [edi + 0x7c], esi
pop esi
pop edi
pop ebp
xor eax, eax
pop ebx
add esp, 0xc
ret
Function at 0x411b30
Capabilities:
Get common file path

Disassembly:
cmp dword [esi], 0
push ebp
mov ebp, dword [esp + 0xc]
jne 0x411beb
cmp dword [esi + 4], 0xffffffff
jne 0x411beb
push edi
lea edi, [esi + 0x140]
push edi
push 0x104
call dword [sym.imp.KERNEL32.dll_GetCurrentDirectoryA]
mov eax, edi
lea edx, [eax + 1]
mov cl, byte [eax]
inc eax
test cl, cl
jne 0x411b60
sub eax, edx
mov al, byte [eax + esi + 0x13f]
cmp al, 0x5c
je 0x411b91
cmp al, 0x2f
je 0x411b91
dec edi
lea esp, [esp]
mov al, byte [edi + 1]
inc edi
test al, al
jne 0x411b80
mov ax, word [0x44fd10]
mov word [edi], ax
pop edi
cmp ebp, 1
jne 0x411bb2
push 1
push 0
push 0
push ebx
call dword [sym.imp.KERNEL32.dll_SetFilePointer]
cmp eax, 0xffffffff
jne 0x411bb2
mov eax, 0x2000000
pop ebp
ret 8
mov edx, dword [esp + 8]
lea ecx, [esp + 0xc]
push ecx
push ebp
push edx
push ebx
call fcn.00410710
add esp, 0x10
test eax, eax
jne 0x411bd2
mov eax, dword [esp + 0xc]
pop ebp
ret 8
call fcn.00410c10
mov dword [esi], eax
neg eax
sbb eax, eax
and eax, 0xfffffe00
add eax, 0x200
pop ebp
ret 8
mov eax, 0x1000000
pop ebp
ret 8

Function at 0x4122d0
Capabilities:
Check if file exists
Create directory
Get file attributes

Disassembly:
sub esp, 0x20c
mov eax, dword [0x45e480]
xor eax, esp
mov dword [esp + 0x208], eax
push ebp
mov ebp, dword [esp + 0x218]
push edi
mov edi, dword [esp + 0x218]
test edi, edi
je 0x41230d
push edi
call dword [sym.imp.KERNEL32.dll_GetFileAttributesA]
cmp eax, 0xffffffff
jne 0x41230d
push 0
push edi
call dword [sym.imp.KERNEL32.dll_CreateDirectoryA]
mov al, byte [ebp]
test al, al
je 0x4123c6
push esi
mov esi, ebp
mov ecx, ebp
lea ecx, [ecx]
cmp al, 0x2f
je 0x412328
cmp al, 0x5c
jne 0x41232a
mov esi, ecx
mov al, byte [ecx + 1]
inc ecx
test al, al
jne 0x412320
cmp esi, ebp
je 0x412360
sub esi, ebp
push esi
lea eax, [esp + 0x114]
push ebp
push eax
call fcn.004376c0
lea ecx, [esp + 0x11c]
push ecx
push edi
mov byte [esp + esi + 0x124], 0
call fcn.004122d0
add esp, 0x14
mov byte [esp + 0xc], 0
test edi, edi
je 0x41237b
lea edx, [esp + 0xc]
mov eax, edi
sub edx, edi
mov cl, byte [eax]
mov byte [edx + eax], cl
inc eax
test cl, cl
jne 0x412371
mov eax, ebp
mov edx, ebp
nop
mov cl, byte [eax]
inc eax
test cl, cl
jne 0x412380
lea edi, [esp + 0xc]
sub eax, edx
dec edi
mov edi, edi
mov cl, byte [edi + 1]
inc edi
test cl, cl
jne 0x412390
mov ecx, eax
shr ecx, 2
mov esi, edx
rep movsd dword es:[edi], dword [esi]
mov ecx, eax
lea edx, [esp + 0xc]
and ecx, 3
push edx
rep movsb byte es:[edi], byte [esi]
call dword [sym.imp.KERNEL32.dll_GetFileAttributesA]
pop esi
cmp eax, 0xffffffff
jne 0x4123c6
push 0
lea eax, [esp + 0xc]
push eax
call dword [sym.imp.KERNEL32.dll_CreateDirectoryA]
mov ecx, dword [esp + 0x210]
pop edi
pop ebp
xor ecx, esp
call fcn.00430bbd
add esp, 0x20c
ret
Function at 0x414922
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 + 0x58], ebx
test ebx, 0xffff0000
jne 0x414946
cmp dword [edi + 0x54], 0
jne 0x414946
movzx eax, bx
mov dword [edi + 0x54], eax
call fcn.004204e1
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.004148e3
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 0x41a280
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 0x41a2c7
call fcn.004204e1
mov esi, dword [eax + 0xc]
push 0xf0
push dword [ebp + 8]
push esi
call dword [sym.imp.KERNEL32.dll_FindResourceA]
test eax, eax
je 0x41a2c7
push eax
push esi
call dword [sym.imp.KERNEL32.dll_LoadResource]
mov ebx, eax
test ebx, ebx
je 0x41a2e3
push ebx
call dword [sym.imp.KERNEL32.dll_LockResource]
mov edi, eax
mov ecx, dword [ebp - 4]
push edi
call fcn.00419dfa
mov esi, eax
test edi, edi
je 0x41a2e1
test ebx, ebx
je 0x41a2e1
push ebx
call dword [sym.imp.KERNEL32.dll_FreeResource]
mov eax, esi
pop edi
pop esi
pop ebx
leave
ret 4

Function at 0x41aad3
Capabilities:
Get graphical window text

Disassembly:
push 4
mov eax, 0x4477ee
call fcn.00433e90
mov esi, ecx
cmp dword [esi + 0x50], 0
jne 0x41aaf8
push dword [ebp + 0xc]
push dword [ebp + 8]
push dword [esi + 0x20]
call dword [sym.imp.USER32.dll_GetWindowTextA]
jmp 0x41ab3e
lea ecx, [ebp - 0x10]
call fcn.00408930
mov ecx, dword [esi + 0x50]
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.0041a316
add esp, 0x10
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.dll_lstrlenA]
mov ecx, dword [ebp - 0x10]
add ecx, 0xfffffff0
mov esi, eax
call fcn.00408980
mov eax, esi
call fcn.00433f68
ret 8
Function at 0x41e2c8
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 0x41e310
call fcn.004204e1
mov esi, dword [eax + 0xc]
push 0xf0
push dword [ebp + 0xc]
push esi
call dword [sym.imp.KERNEL32.dll_FindResourceA]
test eax, eax
je 0x41e310
push eax
push esi
call dword [sym.imp.KERNEL32.dll_LoadResource]
mov dword [ebp - 4], eax
test eax, eax
je 0x41e353
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 0x41e33c
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 0x41e33c
push dword [ebp - 4]
call dword [sym.imp.KERNEL32.dll_FreeResource]
cmp dword [esi + 0x4c], 0
je 0x41e350
mov ecx, dword [esi + 0x4c]
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 0x430bbd
Capabilities:
Terminate process

Disassembly:
cmp ecx, dword [0x45e480]
jne 0x430bc7
repz ret
jmp fcn.004375af

Function at 0x431020
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 0x431051
call fcn.004344c9
mov dword [eax], esi
call fcn.004344b6
push esi
push esi
push esi
push esi
push esi
mov dword [eax], 0x16
call fcn.00430fea
add esp, 0x14
push 0x16
pop eax
jmp 0x4310a6
test dword [ebp + 0xc], 0xfffffff9
jne 0x43102d
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.dll_GetFileAttributesA]
cmp eax, 0xffffffff
jne 0x43107e
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
call fcn.004344dc
pop ecx
call fcn.004344b6
mov eax, dword [eax]
jmp 0x4310a6
test al, 0x10
jne 0x4310a4
test al, 1
je 0x4310a4
test byte [ebp + 0xc], 2
je 0x4310a4
call fcn.004344c9
mov dword [eax], 5
call fcn.004344b6
mov dword [eax], 0xd
jmp 0x431075
xor eax, eax
pop esi
pop ebp
ret
Function at 0x4449c6
Capabilities:
Link many functions at runtime

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x14
push ebx
push esi
push edi
call fcn.00437f12
and dword [ebp - 4], 0
cmp dword [0x46268c], 0
mov ebx, eax
jne 0x444a77
push str.USER32.DLL
call dword [sym.imp.KERNEL32.dll_LoadLibraryA]
mov edi, eax
test edi, edi
je 0x444b28
mov esi, dword [sym.imp.KERNEL32.dll_GetProcAddress]
push 0x44f47c
push edi
call esi
test eax, eax
je 0x444b28
push eax
call fcn.00437ea0
mov dword [esp], 0x44f46c
push edi
mov dword [0x46268c], eax
call esi
push eax
call fcn.00437ea0
mov dword [esp], 0x44f458
push edi
mov dword [0x462690], eax
call esi
push eax
call fcn.00437ea0
mov dword [esp], str.GetUserObjectInformationA
push edi
mov dword [0x462694], eax
call esi
push eax
call fcn.00437ea0
pop ecx
mov dword [0x46269c], eax
test eax, eax
je 0x444a77
push str.GetProcessWindowStation
push edi
call esi
push eax
call fcn.00437ea0
pop ecx
mov dword [0x462698], eax
mov eax, dword [0x462698]
cmp eax, ebx
je 0x444acf
cmp dword [0x46269c], ebx
je 0x444acf
push eax
call fcn.00437f1b
push dword [0x46269c]
mov esi, eax
call fcn.00437f1b
pop ecx
pop ecx
mov edi, eax
test esi, esi
je 0x444acf
test edi, edi
je 0x444acf
call esi
test eax, eax
je 0x444ac6
lea ecx, [ebp - 8]
push ecx
push 0xc
lea ecx, [ebp - 0x14]
push ecx
push 1
push eax
call edi
test eax, eax
je 0x444ac6
test byte [ebp - 0xc], 1
jne 0x444acf
or dword [ebp + 0x10], 0x200000
jmp 0x444b08
mov eax, dword [0x462690]
cmp eax, ebx
je 0x444b08
push eax
call fcn.00437f1b
pop ecx
test eax, eax
je 0x444b08
call eax
mov dword [ebp - 4], eax
test eax, eax
je 0x444b08
mov eax, dword [0x462694]
cmp eax, ebx
je 0x444b08
push eax
call fcn.00437f1b
pop ecx
test eax, eax
je 0x444b08
push dword [ebp - 4]
call eax
mov dword [ebp - 4], eax
push dword [0x46268c]
call fcn.00437f1b
pop ecx
test eax, eax
je 0x444b28
push dword [ebp + 0x10]
push dword [ebp + 0xc]
push dword [ebp + 8]
push dword [ebp - 4]
call eax
jmp 0x444b2a
xor eax, eax
pop edi
pop esi
pop ebx
leave
ret
Function at 0x4a08c0
Capabilities:
Enumerate files on windows

Disassembly:
push 0xffffffffffffffff
push 0x553bdb
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x180
push ebx
push ebp
mov ebp, ecx
lea ecx, [esp + 8]
lea eax, [ebp + 0x40]
push eax
call fcn.005475dc
mov ecx, dword [esp + 8]
mov dword [esp + 0x190], 0
mov eax, dword [ecx - 8]
test eax, eax
je 0x4a0942
lea edx, [esp + 0x10]
push 1
push edx
lea ecx, [esp + 0x10]
call fcn.00544497
mov eax, dword [eax]
push 0x64e254
push eax
call fcn.005240b4
add esp, 8
lea ecx, [esp + 0x10]
test eax, eax
setne bl
call fcn.00547867
test bl, bl
je 0x4a0942
push 0x64e254
lea ecx, [esp + 0xc]
call fcn.00547bf7
push 0x651dcc
lea ecx, [esp + 0xc]
call fcn.00547bf7
mov ecx, dword [esp + 8]
lea eax, [esp + 0x48]
push eax
push ecx
call dword [sym.imp.KERNEL32.dll_FindFirstFileA]
cmp eax, 0xffffffff
mov dword [esp + 0xc], eax
jne 0x4a097e
lea ecx, [esp + 8]
mov dword [esp + 0x190], eax
call fcn.00547867
jmp 0x4a0a49
push esi
mov esi, dword [esp + 0x19c]
push edi
mov edi, dword [sym.imp.USER32.dll_SendMessageA]
mov ebx, 0x23
test byte [esp + 0x50], 0x10
je 0x4a0a02
lea edx, [esp + 0x7c]
push 0x651dc8
push edx
call fcn.005240b4
add esp, 8
test eax, eax
je 0x4a0a02
lea eax, [esp + 0x7c]
push 0x651dc4
push eax
call fcn.005240b4
add esp, 8
test eax, eax
je 0x4a0a02
mov eax, dword [ebp + 0x1c]
lea edx, [esp + 0x1c]
push edx
push 0
lea ecx, [esp + 0x84]
push 0x1100
push eax
mov dword [esp + 0x2c], esi
mov dword [esp + 0x30], 0xffff0003
mov dword [esp + 0x4c], 0
mov dword [esp + 0x50], 1
mov dword [esp + 0x44], ecx
mov dword [esp + 0x34], ebx
call edi
mov edx, dword [esp + 0x14]
lea ecx, [esp + 0x50]
push ecx
push edx
call dword [sym.imp.KERNEL32.dll_FindNextFileA]
test eax, eax
jne 0x4a0992
mov eax, dword [esp + 0x14]
push eax
call dword [sym.imp.KERNEL32.dll_FindClose]
mov ecx, dword [ebp + 0x1c]
push esi
push 2
push 0x1102
push ecx
call edi
lea ecx, [esp + 0x10]
mov dword [esp + 0x198], 0xffffffff
call fcn.00547867
pop edi
pop esi
mov ecx, dword [esp + 0x188]
pop ebp
pop ebx
mov dword fs:[0], ecx
add esp, 0x18c
ret 4

Function at 0x4a1240
Capabilities:
Query or enumerate registry value

Disassembly:
mov ecx, dword [esp + 8]
mov edx, dword [esp + 4]
sub esp, 0x10c
lea eax, [esp]
push esi
push eax
push 1
push 0
push ecx
push edx
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
mov esi, eax
test esi, esi
jne 0x4a12a2
mov edx, dword [esp + 4]
lea eax, [esp + 8]
lea ecx, [esp + 0xc]
push eax
push ecx
push esi
push edx
mov dword [esp + 0x18], 0x104
call dword [sym.imp.ADVAPI32.dll_RegQueryValueA]
mov ecx, dword [esp + 0x11c]
lea eax, [esp + 0xc]
push eax
push ecx
call dword [sym.imp.KERNEL32.dll_lstrcpyA]
mov edx, dword [esp + 4]
push edx
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov eax, esi
pop esi
add esp, 0x10c
ret 0xc