joyce8/EMBER2024-capa huggingface dataset:
Function at 0x4059f0
Capabilities:
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x593beb
mov eax, dword fs:[0]
push eax
sub esp, 0x228
mov eax, dword [0x5fedec]
xor eax, ebp
mov dword [ebp - 0x10], eax
push ebx
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov esi, dword [ebp + 8]
lea eax, [ebp - 0x234]
push eax
push 0x20019
push 0
push str.HardwareDeviceMapSerialComm
push reloc.OLEAUT32.dll_SysReAllocString
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
test eax, eax
je 0x405a4a
xor al, al
jmp 0x405bfe
push 0xff
lea eax, [ebp - 0x210]
push 0
push eax
call fcn.00570bf0
push 0xff
lea eax, [ebp - 0x110]
push 0
push eax
call fcn.00570bf0
mov ebx, dword [sym.imp.ADVAPI32.dll_RegEnumValueA]
lea eax, [ebp - 0x22c]
add esp, 0x18
mov dword [ebp - 0x230], 0xff
mov dword [ebp - 0x22c], 0xff
push eax
lea eax, [ebp - 0x110]
push eax
push 0
push 0
lea eax, [ebp - 0x230]
push eax
lea eax, [ebp - 0x210]
push eax
push 0
push dword [ebp - 0x234]
call ebx
mov edi, 1
test eax, eax
jne 0x405bea
cmp byte [ebp - 0x110], 0
mov dword [ebp - 0x214], 0xf
mov dword [ebp - 0x218], 0
mov byte [ebp - 0x228], 0
jne 0x405aec
xor eax, eax
jmp 0x405afe
lea eax, [ebp - 0x110]
lea edx, [eax + 1]
mov cl, byte [eax]
inc eax
test cl, cl
jne 0x405af5
sub eax, edx
push eax
lea eax, [ebp - 0x110]
push eax
lea ecx, [ebp - 0x228]
call fcn.00406e30
lea eax, [ebp - 0x228]
mov dword [ebp - 4], 0
push eax
mov ecx, esi
call fcn.00407700
mov eax, dword [ebp - 0x214]
mov dword [ebp - 4], 0xffffffff
cmp eax, 0x10
jb 0x405b79
mov ecx, dword [ebp - 0x228]
inc eax
cmp eax, 0x1000
jb 0x405b70
test cl, 0x1f
jne 0x405c1a
mov eax, dword [ecx - 4]
cmp eax, ecx
jae 0x405c1a
sub ecx, eax
cmp ecx, 4
jb 0x405c1a
cmp ecx, 0x23
ja 0x405c1a
mov ecx, eax
push ecx
call fcn.0043a6c3
add esp, 4
push 0xff
lea eax, [ebp - 0x210]
push 0
push eax
call fcn.00570bf0
push 0xff
lea eax, [ebp - 0x110]
push 0
push eax
call fcn.00570bf0
add esp, 0x18
mov dword [ebp - 0x230], 0xff
lea ecx, [ebp - 0x22c]
mov dword [ebp - 0x22c], 0xff
mov eax, edi
inc edi
push ecx
lea ecx, [ebp - 0x110]
push ecx
push 0
push 0
lea ecx, [ebp - 0x230]
push ecx
lea ecx, [ebp - 0x210]
push ecx
push eax
push dword [ebp - 0x234]
call ebx
test eax, eax
je 0x405ac4
push dword [ebp - 0x234]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov eax, dword [esi]
cmp eax, dword [esi + 4]
setne al
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.0056b237
mov esp, ebp
pop ebp
ret
call fcn.00573111
int3
Function at 0x406620
Capabilities:
Extract resource via kernel32 functions

Disassembly:
push ebp
mov ebp, esp
push dword [ebp + 0xc]
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.dll_LoadResource]
test eax, eax
jne 0x406635
pop ebp
ret
push esi
push eax
call dword [sym.imp.KERNEL32.dll_LockResource]
mov esi, eax
test esi, esi
je 0x406676
push dword [ebp + 0xc]
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.dll_SizeofResource]
mov ecx, dword [ebp + 0x10]
lea edx, [esi + eax]
and ecx, 0xf
jbe 0x406672
nop word [eax + eax]
cmp esi, edx
jae 0x406676
movzx eax, word [esi]
lea esi, [esi + eax*2]
add esi, 2
sub ecx, 1
jne 0x406660
cmp esi, edx
jb 0x40667b
xor eax, eax
pop esi
pop ebp
ret
xor eax, eax
cmp word [esi], ax
cmove esi, eax
mov eax, esi
pop esi
pop ebp
ret

Function at 0x407560
Capabilities:
Contain obfuscated stackstrings

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x593d19
mov eax, dword fs:[0]
push eax
sub esp, 0x30
mov eax, dword [0x5fedec]
xor eax, ebp
mov dword [ebp - 0x10], eax
push ebx
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov edi, dword [ebp + 8]
mov ecx, edi
mov dword [ebp - 0x34], 0
push 0x5a6f6e
mov dword [ebp - 4], 0
mov dword [ebp - 0x3c], edi
mov dword [ebp - 0x1c], 0x34333231
mov dword [ebp - 0x18], 0x38373635
mov word [ebp - 0x14], 0x3039
call fcn.00402190
xor eax, eax
mov dword [ebp - 4], 0
mov word [ebp - 0x2c], ax
xorps xmm0, xmm0
mov dword [ebp - 0x22], eax
mov word [ebp - 0x1e], ax
lea eax, [ebp - 0x2c]
push eax
mov dword [ebp - 0x34], 1
movq qword [ebp - 0x2a], xmm0
call dword [sym.imp.KERNEL32.dll_GetLocalTime]
xor ebx, ebx
lea esi, [ebx + 0xa]
call fcn.0057b076
mov ecx, eax
movzx eax, word [ebp - 0x20]
add eax, ecx
cdq
idiv esi
mov al, byte [ebp + edx - 0x1c]
mov byte [ebp - 0x2d], al
mov eax, dword [edi]
mov ecx, dword [eax - 0xc]
mov dword [ebp - 0x38], ecx
lea esi, [ecx + 1]
test esi, esi
js 0x407674
mov ecx, 1
sub ecx, dword [eax - 4]
mov eax, dword [eax - 8]
sub eax, esi
or ecx, eax
jge 0x407630
push esi
mov ecx, edi
call fcn.00405990
mov eax, dword [edi]
mov ecx, dword [ebp - 0x38]
mov dl, byte [ebp - 0x2d]
mov byte [ecx + eax], dl
mov eax, dword [edi]
cmp esi, dword [eax - 8]
jg 0x407674
mov dword [eax - 0xc], esi
inc ebx
mov ecx, dword [edi]
mov byte [esi + ecx], 0
mov esi, 0xa
cmp ebx, 0xf
jl 0x4075f1
mov eax, edi
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.0056b237
mov esp, ebp
pop ebp
ret
push 0x80070057
call fcn.00402b90
int3

Function at 0x407780
Capabilities:
Read file on windows

Disassembly:
push ebp
mov ebp, esp
push ecx
push dword [ebp + 0x10]
push 0
push dword [ebp + 0xc]
call fcn.00570bf0
add esp, 0xc
lea eax, [ebp - 4]
push 0
push eax
push dword [ebp + 0x10]
push dword [ebp + 0xc]
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
setne al
mov esp, ebp
pop ebp
ret
Function at 0x410fb0
Capabilities:
Get number of processors

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x594b3e
mov eax, dword fs:[0]
push eax
sub esp, 0x1c
mov eax, dword [0x5fedec]
xor eax, ebp
mov dword [ebp - 0x10], eax
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov esi, ecx
cmp byte [esi + 0x30], 0
mov dword [ebp - 4], 0
je 0x41105d
cmp dword [ebp + 0x64], 0
jne 0x411050
push dword [ebp + 0x50]
lea eax, [ebp - 0x28]
push eax
call fcn.0040f710
add esp, 8
mov edi, eax
lea eax, [ebp + 0x54]
cmp eax, edi
je 0x411037
mov eax, dword [ebp + 0x68]
cmp eax, 0x10
jb 0x41101c
inc eax
lea ecx, [ebp + 0x54]
push eax
push dword [ebp + 0x54]
call fcn.00437b40
push edi
lea ecx, [ebp + 0x54]
mov dword [ebp + 0x68], 0xf
mov dword [ebp + 0x64], 0
mov byte [ebp + 0x54], 0
call fcn.004065b0
mov eax, dword [ebp - 0x14]
mov byte [ebp - 4], 0
cmp eax, 0x10
jb 0x411050
inc eax
lea ecx, [ebp - 0x28]
push eax
push dword [ebp - 0x28]
call fcn.00437b40
lea eax, [ebp + 8]
mov ecx, esi
push eax
call fcn.00415450
jmp 0x411069
lea eax, [ebp + 8]
push eax
lea ecx, [esi + 0x24]
call fcn.0041bef0
lea ecx, [ebp + 8]
call fcn.0040cf20
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.0056b237
mov esp, ebp
pop ebp
ret 0x64

Function at 0x41cce0
Capabilities:
Read file on windows

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x595b16
mov eax, dword fs:[0]
push eax
sub esp, 0x220
mov eax, dword [0x5fedec]
xor eax, ebp
mov dword [ebp - 0x10], eax
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov edi, ecx
cmp dword [edi + 0x3c], 0xffffffff
mov esi, dword [ebp + 8]
je 0x41ce19
cmp dword [esi + 0x14], 0x10
mov dword [esi + 0x10], 0
jb 0x41cd2d
mov eax, dword [esi]
jmp 0x41cd2f
mov eax, esi
push 0x200
mov byte [eax], 0
lea eax, [ebp - 0x210]
push 0
push eax
call fcn.00570bf0
add esp, 0xc
mov dword [ebp - 0x22c], 0
lea eax, [ebp - 0x22c]
push 0
push eax
push 0x200
lea eax, [ebp - 0x210]
push eax
push dword [edi + 0x3c]
call dword [sym.imp.KERNEL32.dll_ReadFile]
mov ecx, edi
call fcn.0041cae0
push dword [ebp - 0x22c]
lea eax, [ebp - 0x210]
mov dword [ebp - 0x214], 0xf
push eax
lea ecx, [ebp - 0x228]
mov dword [ebp - 0x218], 0
mov byte [ebp - 0x228], 0
call fcn.00406e30
lea eax, [ebp - 0x228]
cmp esi, eax
je 0x41cdf2
mov eax, dword [esi + 0x14]
cmp eax, 0x10
jb 0x41cdc7
inc eax
mov ecx, esi
push eax
push dword [esi]
call fcn.00437b40
mov dword [esi + 0x14], 0xf
cmp dword [esi + 0x14], 0x10
mov dword [esi + 0x10], 0
jb 0x41cddf
mov eax, dword [esi]
jmp 0x41cde1
mov eax, esi
mov byte [eax], 0
mov ecx, esi
lea eax, [ebp - 0x228]
push eax
call fcn.004065b0
mov eax, dword [ebp - 0x214]
cmp eax, 0x10
jb 0x41ce10
inc eax
lea ecx, [ebp - 0x228]
push eax
push dword [ebp - 0x228]
call fcn.00437b40
cmp dword [esi + 0x10], 0
setne al
jmp 0x41ce1b
xor al, al
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.0056b237
mov esp, ebp
pop ebp
ret 4
Function at 0x425550
Capabilities:
Parse credit card information

Disassembly:
push esi
mov esi, ecx
xor cl, cl
mov eax, dword [esi + 0x4c]
cmp eax, 0xffffffff
je 0x425756
push ebx
cmp eax, 0x7c
je 0x425755
cmp eax, 0x29
jne 0x425587
cmp dword [esi + 0x10], 0
jne 0x425755
test dword [esi + 0x50], 0x10000000
je 0x42575a
cmp eax, 0x2e
jne 0x4255de
push 5
lea ecx, [esi + 0x24]
call fcn.00427ec0
mov eax, dword [esi]
mov ecx, dword [esi + 8]
cmp eax, ecx
je 0x4255d2
cmp byte [eax], 0x5c
jne 0x4255d0
inc eax
cmp eax, ecx
je 0x4255d0
mov ecx, dword [esi + 0x50]
test cl, 8
jne 0x4255bd
mov dl, byte [eax]
cmp dl, 0x28
je 0x4255ce
cmp dl, 0x29
je 0x4255ce
test cl, 0x10
jne 0x4255d0
mov cl, byte [eax]
cmp cl, 0x7b
je 0x4255ce
cmp cl, 0x7d
jne 0x4255d0
mov dword [esi], eax
inc dword [esi]
mov ecx, esi
call fcn.00428a40
jmp 0x425740
cmp eax, 0x5c
jne 0x425683
mov eax, dword [esi]
mov ecx, dword [esi + 8]
cmp eax, ecx
je 0x425623
cmp byte [eax], 0x5c
jne 0x425621
inc eax
cmp eax, ecx
je 0x425621
mov ecx, dword [esi + 0x50]
test cl, 8
jne 0x42560e
mov dl, byte [eax]
cmp dl, 0x28
je 0x42561f
cmp dl, 0x29
je 0x42561f
test cl, 0x10
jne 0x425621
mov cl, byte [eax]
cmp cl, 0x7b
je 0x42561f
cmp cl, 0x7d
jne 0x425621
mov dword [esi], eax
inc dword [esi]
mov ecx, esi
call fcn.00428a40
mov eax, dword [esi + 0x50]
and eax, 0x80
je 0x425650
cmp byte [esi + 0x48], 0x62
jne 0x425650
push 4
lea ecx, [esi + 0x24]
call fcn.00427ec0
mov ecx, esi
call fcn.00427f30
jmp 0x425747
test eax, eax
je 0x425677
cmp byte [esi + 0x48], 0x42
jne 0x425677
push 4
lea ecx, [esi + 0x24]
call fcn.00427ec0
mov eax, dword [esi + 0x28]
mov ecx, esi
xor dword [eax + 8], 1
call fcn.00427f30
jmp 0x425747
mov ecx, esi
call fcn.00425780
jmp 0x425740
cmp eax, 0x5b
jne 0x4256a6
mov ecx, esi
call fcn.00427f30
mov ecx, esi
call fcn.00425da0
push 4
push 0x5d
mov ecx, esi
call fcn.00427580
jmp 0x425740
cmp eax, 0x28
jne 0x4256cc
mov ecx, esi
call fcn.00427f30
mov ecx, esi
call fcn.00428c80
push 5
push 0x29
mov ecx, esi
mov bl, al
call fcn.00427580
test bl, bl
je 0x425747
jmp 0x425740
cmp eax, 0x5e
jne 0x4256e4
push 2
lea ecx, [esi + 0x24]
call fcn.00427ec0
mov ecx, esi
call fcn.00427f30
jmp 0x425747
cmp eax, 0x24
jne 0x4256fc
push 3
lea ecx, [esi + 0x24]
call fcn.00427ec0
mov ecx, esi
call fcn.00427f30
jmp 0x425747
cmp eax, 0x2a
je 0x42576f
cmp eax, 0x2b
je 0x42576f
cmp eax, 0x3f
je 0x42576f
cmp eax, 0x7b
je 0x42576f
cmp eax, 0x7d
jne 0x42571e
test dword [esi + 0x50], 0x10000000
je 0x425761
cmp eax, 0x5d
jne 0x42572c
test dword [esi + 0x50], 0x10000000
je 0x425768
movzx eax, byte [esi + 0x48]
lea ecx, [esi + 0x24]
push eax
call fcn.00424ae0
mov ecx, esi
call fcn.00427f30
mov ecx, esi
call fcn.00427f80
mov eax, dword [esi + 0x4c]
mov cl, 1
cmp eax, 0xffffffff
jne 0x425562
pop ebx
mov al, cl
pop esi
ret
push 5
call fcn.0056c685
push 6
call fcn.0056c685
push 4
call fcn.0056c685
push 0xa
call fcn.0056c685
int3
Function at 0x4293b0
Capabilities:
Encode data using xor
Hash data using fnv

Disassembly:
push ebp
mov ebp, esp
push esi
mov esi, dword [ebp + 0xc]
mov edx, 0x811c9dc5
push edi
mov edi, dword [ebp + 8]
mov ecx, 0
sub esi, edi
je 0x4293e1
nop dword [eax]
movzx eax, byte [ecx + edi]
inc ecx
xor eax, edx
imul edx, eax, 0x1000193
cmp ecx, esi
jb 0x4293d0
pop edi
mov eax, edx
pop esi
pop ebp
ret 8

Function at 0x440e7e
Capabilities:
Get graphical window text

Disassembly:
push ebp
mov ebp, esp
push ecx
push esi
mov esi, dword [ebp + 8]
lea eax, [ebp - 4]
push eax
push dword [ebp + 0xc]
mov ecx, dword [esi + 4]
call fcn.0044138c
push 0xfffffffffffffff0
push dword [ebp - 4]
call dword [sym.imp.USER32.dll_GetWindowLongA]
push dword [ebp + 0xc]
and eax, 3
mov ecx, esi
cmp al, 3
je 0x440eba
call fcn.004410a0
mov dword [esi + 0xc], 1
jmp 0x440ebf
call fcn.004410a0
cmp dword [esi], 0
je 0x440f08
push dword [ebp - 4]
call dword [sym.imp.USER32.dll_GetWindowTextLengthA]
mov esi, dword [ebp + 0x10]
test eax, eax
jle 0x440ee2
lea ecx, [eax + 1]
push ecx
push eax
mov ecx, esi
call fcn.0043bac6
jmp 0x440ef3
push 0xff
mov ecx, esi
call fcn.0043b2f2
push 0x100
push eax
push dword [ebp - 4]
call dword [sym.imp.USER32.dll_GetWindowTextA]
push 0xffffffffffffffff
mov ecx, esi
call fcn.0043bae9
jmp 0x440f2c
mov esi, dword [ebp + 0x10]
push dword [esi]
push 0xffffffffffffffff
push 0x14d
push dword [ebp - 4]
call dword [sym.imp.USER32.dll_SendMessageA]
cmp eax, 0xffffffff
jne 0x440f2c
push dword [esi]
push dword [ebp - 4]
call fcn.0044063e
pop esi
mov esp, ebp
pop ebp
ret 0xc

Function at 0x440ff5
Capabilities:
Get graphical window text

Disassembly:
push ebp
mov ebp, esp
push esi
mov esi, dword [ebp + 8]
mov ecx, esi
push edi
push dword [ebp + 0xc]
call fcn.004410a0
cmp dword [esi], 0
mov edi, eax
mov dword [esi + 0xc], 1
je 0x44103d
push edi
call dword [sym.imp.USER32.dll_GetWindowTextLengthA]
lea ecx, [eax + 1]
push ecx
mov ecx, dword [ebp + 0x10]
push eax
call fcn.0043bac6
push eax
push edi
call dword [sym.imp.USER32.dll_GetWindowTextA]
mov ecx, dword [ebp + 0x10]
push 0xffffffffffffffff
call fcn.0043bae9
jmp 0x441048
mov eax, dword [ebp + 0x10]
push dword [eax]
push edi
call fcn.0044063e
pop edi
pop esi
pop ebp
ret 0xc

Function at 0x441442
Capabilities:
Get graphical window text

Disassembly:
push 4
mov eax, 0x5a39dc
call fcn.0056ba39
mov edi, ecx
xor ebx, ebx
cmp dword [edi + 0x74], ebx
jne 0x441468
push dword [ebp + 0xc]
push dword [ebp + 8]
push dword [edi + 0x20]
call dword [sym.imp.USER32.dll_GetWindowTextA]
jmp 0x4414c7
call fcn.0043be50
push eax
lea ecx, [ebp - 0x10]
call fcn.0043a950
mov edi, dword [edi + 0x74]
lea ecx, [ebp - 0x10]
push ecx
mov dword [ebp - 4], ebx
mov eax, dword [edi]
mov esi, dword [eax + 0x8c]
mov ecx, esi
call fcn.0056b9fc
mov ecx, edi
call esi
mov esi, dword [ebp + 8]
push 0xffffffffffffffff
push dword [ebp - 0x10]
push dword [ebp + 0xc]
push esi
call fcn.0057d3b0
push eax
call fcn.00402b00
add esp, 0x14
test esi, esi
je 0x4414ba
push esi
call fcn.0057d450
pop ecx
mov ebx, eax
mov ecx, dword [ebp - 0x10]
add ecx, 0xfffffff0
call fcn.0043b3f9
mov eax, ebx
call fcn.0056ba02
ret 8
Function at 0x44407f
Capabilities:
Extract resource via kernel32 functions

Disassembly:
push ebp
mov ebp, esp
push ecx
push ebx
push esi
push edi
xor edi, edi
mov dword [ebp - 4], ecx
mov esi, edi
cmp dword [ebp + 8], esi
je 0x4440c4
call fcn.0043c480
push 0xf0
push dword [ebp + 8]
mov ebx, dword [eax + 0xc]
push ebx
call dword [sym.imp.KERNEL32.dll_FindResourceA]
test eax, eax
je 0x4440c4
push eax
push ebx
call dword [sym.imp.KERNEL32.dll_LoadResource]
mov esi, eax
test esi, esi
je 0x4440e0
push esi
call dword [sym.imp.KERNEL32.dll_LockResource]
mov edi, eax
mov ecx, dword [ebp - 4]
push edi
call fcn.0044cf2e
mov ebx, eax
test edi, edi
je 0x4440de
test esi, esi
je 0x4440de
push esi
call dword [sym.imp.KERNEL32.dll_FreeResource]
mov eax, ebx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 4

Function at 0x444acd
Capabilities:
Extract resource via kernel32 functions

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x10
push ebx
push esi
mov esi, ecx
push edi
test esi, esi
je 0x444b8b
cmp dword [esi + 0x20], 0
je 0x444b8b
push dword [esi + 0x20]
call dword [sym.imp.USER32.dll_IsWindow]
test eax, eax
je 0x444b8b
cmp dword [ebp + 8], 0
je 0x444b8b
xor eax, eax
mov ebx, eax
mov dword [ebp - 4], eax
mov dword [ebp - 8], ebx
mov edi, eax
call fcn.0043c480
push str.AFX_DIALOG_LAYOUT
push dword [ebp + 8]
mov eax, dword [eax + 0xc]
push eax
mov dword [ebp - 0xc], eax
call dword [sym.imp.KERNEL32.dll_FindResourceA]
mov dword [ebp - 0x10], eax
test eax, eax
je 0x444b5c
mov edi, dword [ebp - 0xc]
push eax
push edi
call dword [sym.imp.KERNEL32.dll_SizeofResource]
push dword [ebp - 0x10]
mov dword [ebp - 4], eax
push edi
call dword [sym.imp.KERNEL32.dll_LoadResource]
mov edi, eax
test edi, edi
je 0x444b8b
push edi
call dword [sym.imp.KERNEL32.dll_LockResource]
mov ebx, eax
mov dword [ebp - 8], eax
push dword [ebp - 4]
push ebx
push esi
call fcn.0044db50
add esp, 0xc
mov ebx, eax
cmp dword [ebp - 8], 0
je 0x444b7c
test edi, edi
je 0x444b7c
push edi
call dword [sym.imp.KERNEL32.dll_FreeResource]
test ebx, ebx
je 0x444b87
mov ecx, esi
call fcn.00444870
mov eax, ebx
jmp 0x444b8d
xor eax, eax
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 4

Function at 0x44e6e5
Capabilities:
Extract resource via kernel32 functions

Disassembly:
push ebp
mov ebp, esp
push ebx
push esi
mov ebx, ecx
push edi
mov edi, dword [ebp + 8]
mov dword [ebx + 0x84], edi
test edi, 0xffff0000
jne 0x44e710
cmp dword [ebx + 0x80], 0
jne 0x44e710
movzx eax, di
mov dword [ebx + 0x80], eax
call fcn.0043c480
push 5
push edi
mov esi, dword [eax + 0xc]
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 edi, eax
mov ecx, ebx
push edi
call fcn.0044e99e
push edi
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 0x44e74a
Capabilities:
Extract resource via kernel32 functions

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

Function at 0x45089e
Capabilities:
Extract resource via kernel32 functions

Disassembly:
push ebp
mov ebp, esp
push ecx
push ebx
push esi
mov esi, dword [ebp + 8]
mov ebx, ecx
push edi
mov dword [ebp - 4], ebx
test byte [esi + 4], 1
je 0x4508b8
mov edi, dword [esi + 0xc]
jmp 0x4508f8
push 5
push dword [esi + 0xc]
push dword [esi + 8]
call dword [sym.imp.KERNEL32.dll_FindResourceA]
mov edi, eax
test edi, edi
jne 0x4508d1
call fcn.0044b1c2
push edi
push dword [esi + 8]
call dword [sym.imp.KERNEL32.dll_LoadResource]
mov edi, eax
test edi, edi
jne 0x4508e6
call fcn.0044b1c2
push edi
call dword [sym.imp.KERNEL32.dll_LockResource]
mov edi, eax
test edi, edi
jne 0x4508f8
call fcn.0044b1c2
call fcn.0043c480
cmp dword [eax + 0x3c], 0
je 0x45090d
push edi
mov ecx, ebx
call fcn.0044ff32
mov edi, eax
push dword [ebp + 0xc]
push edi
call fcn.00450aea
mov ebx, eax
mov eax, dword [ebp - 4]
mov ecx, dword [eax + 0x88]
test ecx, ecx
je 0x450936
push ecx
call dword [sym.imp.KERNEL32.dll_GlobalFree]
mov eax, dword [ebp - 4]
and dword [eax + 0x88], 0
test ebx, ebx
je 0x450942
mov edi, ebx
mov dword [eax + 0x88], ebx
or dword [esi + 4], 1
mov dword [esi + 0xc], edi
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 8

Function at 0x4644d8
Capabilities:
Get common file path

Disassembly:
push esi
mov esi, ecx
call fcn.004b2b69
call fcn.0043c4ce
cmp dword [eax + 0x14], 0
jne 0x4644f3
mov ecx, esi
pop esi
jmp fcn.00463823
pop esi
ret

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

Disassembly:
push esi
mov esi, ecx
call fcn.004379f0
call fcn.0043c4ce
cmp dword [eax + 0x14], 0
jne 0x4653e6
mov ecx, esi
pop esi
jmp fcn.00464c47
pop esi
ret
Function at 0x473997
Capabilities:
Extract resource via kernel32 functions

Disassembly:
push ebp
mov ebp, esp
push ecx
push ecx
push ebx
push esi
mov esi, dword [ebp + 0xc]
mov dword [ebp - 8], ecx
test esi, esi
jne 0x4739b0
call fcn.0043c480
mov esi, dword [eax + 0xc]
push 0x5b206c
push dword [ebp + 8]
push esi
call dword [sym.imp.KERNEL32.dll_FindResourceA]
mov ebx, eax
test ebx, ebx
je 0x473a06
push edi
push ebx
push esi
call dword [sym.imp.KERNEL32.dll_LoadResource]
mov edi, eax
test edi, edi
je 0x473a05
push edi
call dword [sym.imp.KERNEL32.dll_LockResource]
mov dword [ebp - 4], eax
test eax, eax
jne 0x4739e6
xor esi, esi
jmp 0x4739fc
push ebx
push esi
call dword [sym.imp.KERNEL32.dll_SizeofResource]
mov ecx, dword [ebp - 8]
push eax
push dword [ebp - 4]
call fcn.00473a0e
mov esi, eax
push edi
call dword [sym.imp.KERNEL32.dll_FreeResource]
mov eax, esi
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 8

Function at 0x58ac9f
Capabilities:
Read file on windows

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
pop ebp
jmp fcn.0058ab1e

Function at 0x58bffc
Capabilities:
Set environment variable

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
pop ebp
jmp fcn.0058bcbc
Function at 0x404090
Capabilities:
Query environment variable

Disassembly:
sub esp, 0x108
mov eax, dword [0x428510]
xor eax, esp
mov dword [esp + 0x104], eax
push esi
push 0x104
push 0x42a100
push str.HOME
mov esi, 1
mov byte [0x42a100], 0
mov byte [0x429fe0], 0
mov byte [0x429ec0], 0
call dword [sym.imp.KERNEL32.dll_GetEnvironmentVariableA]
test eax, eax
jne 0x404107
push 0x10010
push str.Error
push 0x41ddc4
push str.Environment_variable__HOME__is_not_set.
push eax
call fcn.004041b0
add esp, 0x14
mov byte [0x429fe0], 0
mov byte [0x429ec0], 0
xor esi, esi
jmp 0x404132
push 0x42a100
push str._s.im
push 0x429fe0
call fcn.004032d0
push 0x429fe0
push str._sConfig
push 0x429ec0
call fcn.004032d0
add esp, 0x18
lea eax, [esp + 4]
push 0x104
push eax
call fcn.004042c0
add esp, 8
test eax, eax
je 0x404191
lea eax, [esp + 4]
push 0x20
push eax
call fcn.0040b42d
add esp, 8
test eax, eax
je 0x404191
push 0x10010
push str.Error
push 0x41de24
push str.Extract_archive_on_path_that_do_not_have_space____char.
push 0
call fcn.004041b0
add esp, 0x14
xor eax, eax
pop esi
mov ecx, dword [esp + 0x104]
xor ecx, esp
call fcn.00404cba
add esp, 0x108
ret
mov ecx, dword [esp + 0x108]
mov eax, esi
pop esi
xor ecx, esp
call fcn.00404cba
add esp, 0x108
ret

Function at 0x404470
Capabilities:
Write file on windows

Disassembly:
cmp dword [0x428e30], 0
jne fcn.00404490
mov eax, 1
ret
Function at 0x404980
Capabilities:
Read file on windows

Disassembly:
sub esp, 0x404
mov eax, dword [0x428510]
xor eax, esp
mov dword [esp + 0x400], eax
mov eax, dword [esp + 0x408]
push esi
push 0x41e46c
push eax
call fcn.00408886
mov esi, eax
add esp, 8
test esi, esi
jne 0x4049c6
pop esi
mov ecx, dword [esp + 0x400]
xor ecx, esp
call fcn.00404cba
add esp, 0x404
ret
push esi
push 0x400
lea eax, [esp + 0xc]
push 1
push eax
call fcn.0040b993
push esi
call fcn.0040863b
lea eax, [esp + 0x18]
push 0xa
push eax
call fcn.00405730
add esp, 0x1c
cmp byte [eax - 1], 0xd
jne 0x404a0b
mov ax, word [0x41e470]
mov word [0x42850c], ax
mov al, byte [0x41e472]
mov byte [0x42850e], al
jmp 0x404a16
mov eax, 0xa
mov word [0x42850c], ax
mov ecx, dword [esp + 0x404]
mov eax, 1
pop esi
xor ecx, esp
call fcn.00404cba
add esp, 0x404
ret

Function at 0x4053fb
Capabilities:
Parse pe header

Disassembly:
push 0
call dword [sym.imp.KERNEL32.dll_GetModuleHandleW]
test eax, eax
je 0x40543a
mov ecx, 0x5a4d
cmp word [eax], cx
jne 0x40543a
mov ecx, dword [eax + 0x3c]
add ecx, eax
cmp dword [ecx], 0x4550
jne 0x40543a
mov eax, 0x10b
cmp word [ecx + 0x18], ax
jne 0x40543a
cmp dword [ecx + 0x74], 0xe
jbe 0x40543a
cmp dword [ecx + 0xe8], 0
setne al
ret
xor al, al
ret