joyce8/EMBER2024-capa huggingface dataset:
Function at 0x40e1c0
Capabilities:
Encode data using xor
Hash data using fnv

Disassembly:
push ebx
push edi
push esi
mov eax, dword [esp + 0x14]
mov ecx, dword [esp + 0x10]
mov esi, eax
sub esi, ecx
je 0x40e1ea
mov edi, ecx
not edi
add edi, eax
mov edx, esi
and edx, 3
cmp edi, 3
jae 0x40e1f1
mov eax, 0x811c9dc5
xor edi, edi
jmp 0x40e23a
mov eax, 0x811c9dc5
jmp 0x40e263
and esi, 0xfffffffc
mov eax, 0x811c9dc5
xor edi, edi
nop
nop
nop
nop
nop
movzx ebx, byte [ecx + edi]
xor ebx, eax
imul eax, ebx, 0x1000193
movzx ebx, byte [ecx + edi + 1]
xor ebx, eax
imul eax, ebx, 0x1000193
movzx ebx, byte [ecx + edi + 2]
xor ebx, eax
imul eax, ebx, 0x1000193
movzx ebx, byte [ecx + edi + 3]
xor ebx, eax
imul eax, ebx, 0x1000193
add edi, 4
cmp esi, edi
jne 0x40e200
test edx, edx
je 0x40e263
add ecx, edi
xor esi, esi
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
movzx edi, byte [ecx + esi]
xor edi, eax
imul eax, edi, 0x1000193
add esi, 1
cmp edx, esi
jne 0x40e250
pop esi
pop edi
pop ebx
ret 8

Function at 0x40e370
Capabilities:
Access peb ldr_data
Get kernel32 base address

Disassembly:
push ebp
mov ebp, esp
push ebx
push edi
push esi
sub esp, 0x14
mov eax, dword [ebp + 0x10]
mov edi, dword [ebp + 0xc]
mov dword [ebp - 0x1c], esp
mov dword [ebp - 0x10], 0xffffffff
lea edx, [ebp - 0x18]
mov dword [ebp - 0x14], 0x415d30
mov esi, dword fs:[0]
mov dword [ebp - 0x18], esi
mov dword fs:[0], edx
mov dword [ecx], edi
mov dword [ecx + 4], edi
mov dword [ecx + 8], eax
mov dword [ecx + 0xc], 0
mov dword [ecx + 0x10], 0
mov dword [ecx + 0x14], 0
mov dword [ecx + 0x18], 0
mov dword [ecx + 0x1c], 0
mov dword [ebp - 0x20], ecx
mov dword [ecx + 0x20], 0
mov dword [ebp - 0x10], 0
push 0x24
call fcn.0042e415
add esp, 4
mov ebx, dword [ebp + 0x14]
mov edx, dword [ebp + 8]
mov dword [eax + 4], 0x14
mov dword [eax + 8], 0
mov dword [eax + 0xc], 0
mov dword [eax + 0x10], 0
mov dword [eax], vtable.std::_Root_node.0
mov dword [eax + 0x18], 0
mov dword [eax + 0x1c], 0
mov dword [eax + 0x20], 0
mov ecx, dword [ebp - 0x20]
mov dword [ecx + 0x24], eax
mov dword [ecx + 0x28], eax
mov dword [ecx + 0x2c], ebx
mov dword [ecx + 0x30], edx
mov esi, ebx
and esi, 0x800
mov edi, esi
shr edi, 3
xor edi, 0x100
mov dword [ecx + 0x34], edi
shr esi, 9
xor esi, 4
mov dword [ecx + 0x38], esi
mov dword [ecx + 0x3c], edx
mov dword [ecx + 0x40], ebx
and ebx, 0x3f
cmp ebx, 1
ja 0x40e46c
mov dword [ecx + 0x50], 0x8775dfb
jmp 0x40e4ad
add ebx, 0xfffffffe
cmp ebx, 0x1e
ja case.0x40e479.3
mov edx, 0x6e000300
jmp dword [ebx*4 + 0x40e4e8]
mov edx, 0x7080001b
jmp case.0x40e479.2
mov dword [ecx + 0x50], 0
jmp 0x40e4ad
mov edx, 0x7181a01b
jmp case.0x40e479.2
mov edx, 0x6e080304
jmp case.0x40e479.2
mov edx, 0x7088001f
mov dword [ecx + 0x50], edx
mov dword [eax + 8], 8
call fcn.0040e790
mov eax, dword [ebp - 0x18]
mov dword fs:[0], eax
mov eax, dword [ebp - 0x20]
add esp, 0x14
pop esi
pop edi
pop ebx
pop ebp
ret 0x10
Function at 0x413d80
Capabilities:
Encrypt data using rc4 prga

Disassembly:
push ebp
push ebx
push edi
push esi
sub esp, 0x2c
mov edi, dword [esp + 0x40]
mov eax, dword [ecx]
mov dword [esp + 4], eax
mov dl, byte [eax]
test byte [ecx + 0x5d], 1
mov dword [esp + 0xc], ecx
jne 0x413da3
mov byte [esp + 2], dl
jmp 0x413dbe
mov esi, ecx
mov eax, dword [ecx + 0x70]
mov ecx, dword [eax + 4]
mov eax, dword [ecx]
movsx edx, dl
push edx
call dword [eax + 0x10]
mov byte [esp + 2], al
mov eax, dword [esi]
mov dword [esp + 4], eax
mov ecx, dword [edi + 0x14]
test ecx, ecx
je 0x413e7d
mov eax, dword [esp + 0xc]
mov eax, dword [eax + 0x50]
mov dword [esp + 8], eax
jmp 0x413deb
mov ecx, dword [ecx + 0x10]
test ecx, ecx
je 0x413e7d
mov eax, dword [ecx + 8]
mov dword [esp + 0x10], eax
test eax, eax
je 0x413de0
mov edi, dword [ecx]
xor ebx, ebx
nop
nop
nop
nop
nop
nop
mov esi, dword [esp + 4]
test edi, edi
je 0x413e3c
mov edx, ecx
mov eax, dword [ecx + 0xc]
add eax, ebx
xor ebp, ebp
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
mov ecx, dword [esp + 4]
movzx ecx, byte [ecx + ebp]
lea esi, [ebp + 1]
cmp cl, byte [eax + ebp]
jne 0x413e36
mov ebp, esi
cmp esi, edi
jb 0x413e20
add esi, dword [esp + 4]
mov ecx, edx
cmp esi, dword [esp + 8]
je 0x413e4c
add ebx, edi
cmp ebx, dword [esp + 0x10]
jb 0x413e00
jmp 0x413de0
mov eax, dword [esp + 8]
cmp eax, dword [esp + 4]
je 0x413e7d
mov eax, dword [esp + 0x40]
test byte [eax + 8], 1
mov eax, dword [esp + 8]
mov dword [esp + 4], eax
mov esi, dword [esp + 0xc]
jne 0x413f6f
mov eax, dword [esp + 4]
mov dword [esi], eax
mov al, 1
jmp 0x413f71
add dword [esp + 4], 1
mov eax, dword [esp + 0x40]
mov edi, dword [eax + 0x20]
test edi, edi
mov esi, dword [esp + 0xc]
mov bl, byte [esp + 2]
je 0x413f3f
test byte [esi + 0x5d], 8
mov bh, bl
je 0x413f0c
mov eax, dword [esi + 0x70]
mov byte [esp + 3], bl
mov ecx, dword [eax]
lea eax, [esp + 4]
mov edx, dword [ecx]
lea ebp, [esp + 3]
lea ebx, [esp + 0x14]
push eax
push ebp
push ebx
call dword [edx + 0x10]
mov eax, dword [esp + 0x14]
mov ecx, dword [esp + 0x28]
cmp ecx, 0x10
cmovae ebx, eax
cmp dword [esp + 0x24], 1
cmovne ebx, ebp
mov bh, byte [ebx]
cmp ecx, 0x10
jb 0x413f08
lea ebp, [ecx + 1]
cmp ebp, 0x1000
jb 0x413efe
mov edx, dword [eax - 4]
add eax, 0xfffffffc
sub eax, edx
cmp eax, 0x20
jae 0x413f86
add ecx, 0x24
mov ebp, ecx
mov eax, edx
push ebp
push eax
call fcn.0042e44a
add esp, 8
mov bl, byte [esp + 2]
mov eax, dword [edi + 4]
test eax, eax
je 0x413f3f
mov ecx, dword [edi + 8]
xor edx, edx
jmp 0x413f27
add edx, 2
cmp edx, eax
jae 0x413f3f
cmp byte [ecx + edx], bh
ja 0x413f20
cmp byte [ecx + edx + 1], bh
jb 0x413f20
mov eax, dword [esp + 4]
mov dword [esp + 8], eax
jmp 0x413e56
mov edx, dword [esp + 0x40]
mov eax, dword [edx + 0x18]
test eax, eax
je 0x413f7b
movzx ecx, bl
shr ecx, 3
movzx eax, byte [eax + ecx]
and bl, 7
movzx ecx, bl
bt eax, ecx
setb al
test byte [edx + 8], 1
sete cl
xor cl, al
je 0x413e70
xor eax, eax
add esp, 0x2c
pop esi
pop edi
pop ebx
pop ebp
ret 4
test byte [edx + 8], 1
je 0x413f6f
jmp 0x413e70
call fcn.0043b0eb
int3
Function at 0x4286e0
Capabilities:
Resolve function by parsing pe exports

Disassembly:
push ebp
push ebx
push edi
push esi
sub esp, 0x64
movzx ebx, word [esp + 0x78]
mov esi, dword [esp + 0x84]
mov ebp, dword [esp + 0x7c]
mov eax, dword [0x4636bc]
xor eax, esp
mov dword [esp + 0x60], eax
lea eax, [esp + 0x3c]
push ebx
push esi
push eax
call fcn.00416a40
add esp, 0xc
mov ecx, dword [ebp + 4]
mov eax, dword [ebp + 8]
lea edi, [ecx*8 + 0x48]
shl eax, 3
cmp eax, edi
jae 0x428740
push edi
push dword [ebp]
call dword [0x463778]
add esp, 8
mov dword [ebp], eax
shr edi, 3
mov dword [ebp + 8], edi
mov ecx, dword [ebp + 4]
jmp 0x428743
mov eax, dword [ebp]
mov dword [esp + 0x38], 0
mov dword [esp + 0x34], 0
mov dword [esp + 0x30], 0
mov dword [esp + 0x2c], 0
mov dword [esp + 0x28], 0
mov dword [esp + 0x24], 0
mov dword [esp + 0x20], 0
mov dword [esp + 0x1c], 0
mov word [esp + 4], 0
mov dword [esp + 0x4c], 0
mov dword [esp + 0x50], 0
mov dword [esp + 0x54], 0
mov dword [esp + 0x58], 0
mov dword [esp + 0x5b], 0
mov dword [esp + 0x14], 0
mov dword [esp + 0x10], 0
mov dword [esp + 0x18], 1
mov word [esp + 8], cx
mov dl, byte [esp + 0x3d]
add dl, dl
xor ebp, ebp
cmp bx, 0xfffe
lea edi, [eax + ecx*8]
mov word [esp + 0xe], bx
mov ebx, 0x18
cmovb ebx, ebp
or bl, byte [esp + 0x3c]
or bl, dl
mov byte [esp + 2], bl
mov edx, dword [esp + 0x80]
mov word [esp + 0xc], dx
mov edx, dword [esp + 0x18]
mov dword [eax + ecx*8], edx
mov edx, dword [esp + 0x38]
mov dword [eax + ecx*8 + 0x20], edx
mov edx, dword [esp + 0x34]
mov dword [eax + ecx*8 + 0x1c], edx
mov edx, dword [esp + 0x30]
mov dword [eax + ecx*8 + 0x18], edx
mov edx, dword [esp + 0x2c]
mov dword [eax + ecx*8 + 0x14], edx
mov edx, dword [esp + 0x28]
mov dword [eax + ecx*8 + 0x10], edx
mov edx, dword [esp + 0x24]
mov dword [eax + ecx*8 + 0xc], edx
mov edx, dword [esp + 0x1c]
mov ebx, dword [esp + 0x20]
mov dword [eax + ecx*8 + 8], ebx
mov dword [eax + ecx*8 + 4], edx
movzx edx, word [esp + 8]
mov word [eax + ecx*8 + 0x24], dx
movzx edx, word [esp + 0xe]
mov word [eax + ecx*8 + 0x26], dx
movzx edx, word [esp + 4]
mov word [eax + ecx*8 + 0x28], dx
mov dl, byte [esp + 2]
mov byte [eax + ecx*8 + 0x2a], dl
mov dl, byte [esp + 0x5e]
mov byte [eax + ecx*8 + 0x3d], dl
movzx edx, word [esp + 0x5c]
mov word [eax + ecx*8 + 0x3b], dx
mov edx, dword [esp + 0x58]
mov dword [eax + ecx*8 + 0x37], edx
mov edx, dword [esp + 0x54]
mov dword [eax + ecx*8 + 0x33], edx
mov edx, dword [esp + 0x4c]
mov ebx, dword [esp + 0x50]
mov dword [eax + ecx*8 + 0x2f], ebx
mov dword [eax + ecx*8 + 0x2b], edx
movzx edx, word [esp + 0xc]
mov word [eax + ecx*8 + 0x3e], dx
mov edx, dword [esp + 0x10]
mov ebx, dword [esp + 0x14]
mov dword [eax + ecx*8 + 0x44], ebx
mov dword [eax + ecx*8 + 0x40], edx
mov dword [esp + 0x44], edi
mov eax, dword [esp + 0x44]
mov ecx, dword [esp + 0x48]
push esi
push ecx
push eax
call fcn.00428140
add esp, 0xc
mov esi, dword [esp + 0x44]
mov edi, dword [esp + 0x48]
mov ecx, dword [esp + 0x60]
xor ecx, esp
call fcn.0042fb70
mov eax, esi
mov edx, edi
add esp, 0x64
pop esi
pop edi
pop ebx
pop ebp
ret
Function at 0x42f036
Capabilities:
Read file on windows

Disassembly:
push ebp
mov ebp, esp
push ecx
mov eax, dword [ebp + 0x10]
push ebx
mov ebx, ecx
push edi
mov edi, dword [ebp + 0xc]
test eax, eax
jg 0x42f057
jl 0x42f04e
test edi, edi
jne 0x42f057
xor eax, eax
xor edx, edx
jmp 0x42f118
cmp dword [ebx + 0x38], 0
je 0x42f06c
push eax
push edi
push dword [ebp + 8]
call fcn.0042e9af
jmp 0x42f118
mov eax, dword [ebx + 0x1c]
push esi
mov esi, edi
mov ecx, dword [eax]
test ecx, ecx
je 0x42f0b3
mov eax, dword [ebx + 0x2c]
mov eax, dword [eax]
mov dword [ebp - 4], eax
test eax, eax
je 0x42f0b3
cmp eax, edi
jb 0x42f08d
mov eax, edi
mov dword [ebp - 4], edi
push eax
push ecx
push dword [ebp + 8]
call fcn.00433bb0
mov ecx, dword [ebp - 4]
add esp, 0xc
mov eax, dword [ebp + 8]
sub esi, ecx
add eax, ecx
mov dword [ebp - 4], eax
mov eax, dword [ebx + 0x2c]
sub dword [eax], ecx
mov eax, dword [ebx + 0x1c]
add dword [eax], ecx
jmp 0x42f0b9
mov eax, dword [ebp + 8]
mov dword [ebp - 4], eax
cmp dword [ebx + 0x4c], 0
je 0x42f10d
mov ecx, ebx
call fcn.0042f551
mov ecx, dword [ebp - 4]
mov edx, esi
mov eax, 0xfff
cmp esi, eax
jbe 0x42f0f8
push dword [ebx + 0x4c]
push eax
push 1
push ecx
call fcn.0043c1ad
mov ecx, dword [ebp - 4]
sub esi, eax
add ecx, eax
add esp, 0x10
mov dword [ebp - 4], ecx
mov edx, esi
cmp eax, 0xfff
jne 0x42f10d
jmp 0x42f0cb
test edx, edx
je 0x42f10d
push dword [ebx + 0x4c]
push esi
push 1
push ecx
call fcn.0043c1ad
add esp, 0x10
sub esi, eax
mov edx, dword [ebp + 0x10]
sub edi, esi
mov eax, edi
sbb edx, 0
pop esi
pop edi
pop ebx
leave
ret 0xc

Function at 0x430b4f
Capabilities:
Get geographical location

Disassembly:
push ebp
mov ebp, esp
push ecx
push esi
push 2
lea eax, [ebp - 4]
push eax
push 0x20000001
push str._x_sys_default_locale
call dword [sym.imp.KERNEL32.dll_GetLocaleInfoEx]
mov esi, dword [ebp + 0xc]
neg eax
sbb eax, eax
xor ecx, ecx
and eax, dword [ebp - 4]
push ecx
push ecx
push esi
push eax
push dword [ebp + 8]
mov dword [ebp - 4], eax
push ecx
push 0x1300
call dword [sym.imp.KERNEL32.dll_FormatMessageA]
push eax
push dword [esi]
call fcn.00430b2b
pop esi
leave
ret 8

Function at 0x431324
Capabilities:
Parse pe header

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

Function at 0x43e920
Capabilities:
Parse pe header

Disassembly:
push ebp
mov ebp, esp
mov eax, dword [ebp + 8]
mov ecx, 0x5a4d
cmp word [eax], cx
jne 0x43e94d
mov ecx, dword [eax + 0x3c]
add ecx, eax
cmp dword [ecx], 0x4550
jne 0x43e94d
mov edx, 0x10b
xor eax, eax
cmp word [ecx + 0x18], dx
sete al
pop ebp
ret
xor eax, eax
pop ebp
ret
Function at 0x440a9a
Capabilities:
Allocate thread local storage

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push esi
push 0x455a10
push 0x455a08
push str.FlsAlloc
push 0x1e
call fcn.00440eb1
mov esi, eax
add esp, 0x10
test esi, esi
je 0x440ace
push dword [ebp + 8]
mov ecx, esi
call dword [section..00cfg]
call esi
jmp 0x440ad4
call dword [sym.imp.KERNEL32.dll_TlsAlloc]
pop esi
pop ebp
ret 4

Function at 0x440b18
Capabilities:
Get thread local storage value

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push esi
push 0x455a20
push 0x455a18
push str.FlsGetValue
push 0x20
call fcn.00440eb1
mov esi, eax
add esp, 0x10
test esi, esi
je 0x440b4f
push dword [ebp + 8]
mov ecx, esi
call dword [section..00cfg]
call esi
pop esi
pop ebp
ret 4
pop esi
pop ebp
jmp dword [sym.imp.KERNEL32.dll_TlsGetValue]
Function at 0x446d62
Capabilities:
Read file on windows

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
mov eax, 0x101c
call fcn.00430b00
mov eax, dword [0x4636bc]
xor eax, ebp
mov dword [ebp - 4], eax
mov eax, dword [ebp + 0x14]
push ebx
push dword [ebp + 8]
mov dword [ebp - 0x100c], eax
call fcn.0043aa87
pop ecx
mov ecx, dword [ebp + 8]
mov ebx, eax
cmp dword [ecx + 8], 0
jne 0x446da4
mov eax, dword [ebp + 0xc]
mov edx, dword [ebp + 0x10]
jmp 0x446f00
mov eax, dword [ecx]
sub eax, dword [ecx + 4]
push esi
push edi
push 0
cdq
push 2
push edx
push eax
call fcn.0044d9d0
push dword [ebp - 0x100c]
mov ecx, ebx
mov dword [ebp - 0x1008], eax
mov esi, ebx
mov dword [ebp - 0x1018], edx
and ecx, 0x3f
sar esi, 6
imul edi, ecx, 0x38
push 0
mov eax, dword [esi*4 + 0x465030]
push dword [edi + eax + 0x24]
push dword [edi + eax + 0x20]
push ebx
call fcn.00446b09
mov ecx, dword [esi*4 + 0x465030]
add esp, 0x14
mov dword [ebp - 0x1010], eax
mov eax, edx
mov edx, dword [ebp - 0x1010]
mov dword [ebp - 0x101c], eax
cmp edx, dword [edi + ecx + 0x20]
jne 0x446ef9
cmp eax, dword [edi + ecx + 0x24]
jne 0x446ef9
push 0
lea eax, [ebp - 0x1014]
push eax
push 0x1000
lea eax, [ebp - 0x1004]
push eax
push dword [edi + ecx + 0x18]
call dword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
je 0x446ef9
push dword [ebp - 0x100c]
push 0
push dword [ebp + 0x10]
push dword [ebp + 0xc]
push ebx
call fcn.00446b09
add esp, 0x14
test edx, edx
jl 0x446ef9
jg 0x446e6f
test eax, eax
jb 0x446ef9
mov ebx, dword [ebp - 0x1018]
mov eax, dword [ebp - 0x1014]
test ebx, ebx
jg 0x446ef9
jl 0x446e89
cmp dword [ebp - 0x1008], eax
ja 0x446ef9
lea edi, [ebp - 0x1004]
xor edx, edx
add edi, eax
lea ecx, [ebp - 0x1004]
xor esi, esi
cmp dword [ebp - 0x1008], edx
jne 0x446ea7
test ebx, ebx
je 0x446ee0
cmp ecx, edi
jae 0x446ee0
mov al, byte [ecx]
cmp al, 0xd
jne 0x446ec1
lea eax, [edi - 1]
cmp ecx, eax
jae 0x446ecd
cmp byte [ecx + 1], 0xa
jne 0x446ecd
inc ecx
jmp 0x446ecd
movzx eax, al
movsx eax, byte [eax + 0x464088]
add ecx, eax
add esi, 1
adc edx, 0
inc ecx
cmp esi, dword [ebp - 0x1008]
jne 0x446ea7
cmp edx, ebx
jne 0x446ea7
lea eax, [ebp - 0x1004]
sub ecx, eax
mov eax, ecx
cdq
add eax, dword [ebp - 0x1010]
adc edx, dword [ebp - 0x101c]
jmp 0x446efe
or edx, 0xffffffff
mov eax, edx
pop edi
pop esi
mov ecx, dword [ebp - 4]
xor ecx, ebp
pop ebx
call fcn.0042fb70
leave
ret
Function at 0x4472fc
Capabilities:
Query environment variable

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push ecx
push ecx
push esi
call dword [sym.imp.KERNEL32.dll_GetEnvironmentStringsW]
mov esi, eax
test esi, esi
je 0x447399
push ebx
push esi
call fcn.0044739c
xor ebx, ebx
sub eax, esi
push ebx
push ebx
push ebx
push ebx
sar eax, 1
push eax
push esi
push ebx
push ebx
mov dword [ebp - 8], eax
call fcn.00440003
add esp, 0x24
mov dword [ebp - 4], eax
test eax, eax
jne 0x447346
push esi
call dword [sym.imp.KERNEL32.dll_FreeEnvironmentStringsW]
xor eax, eax
jmp 0x447398
push edi
push eax
call fcn.0043ff39
mov edi, eax
pop ecx
push ebx
test edi, edi
jne 0x447366
call fcn.0043feff
pop ecx
push esi
call dword [sym.imp.KERNEL32.dll_FreeEnvironmentStringsW]
xor eax, eax
jmp 0x447397
push ebx
push dword [ebp - 4]
push edi
push dword [ebp - 8]
push esi
push ebx
push ebx
call fcn.00440003
add esp, 0x20
test eax, eax
jne 0x447385
push edi
call fcn.0043feff
jmp 0x44738d
push ebx
call fcn.0043feff
mov ebx, edi
pop ecx
push esi
call dword [sym.imp.KERNEL32.dll_FreeEnvironmentStringsW]
mov eax, ebx
pop edi
pop ebx
pop esi
leave
ret
Function at 0x4487a9
Capabilities:
Read file on windows

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
pop ebp
jmp fcn.004487b4
Function at 0x449220
Capabilities:
Read file on windows

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x14
mov eax, dword [ebp + 8]
mov ecx, eax
push ebx
mov ebx, dword [ebp + 0xc]
and eax, 0x3f
sar ecx, 6
push esi
push edi
imul edi, eax, 0x38
mov eax, dword [ecx*4 + 0x465030]
mov dword [ebp - 0x10], ecx
mov ecx, dword [eax + edi + 0x18]
mov dword [ebp - 0x14], ecx
mov ecx, dword [ebp + 0x10]
test ecx, ecx
je 0x449260
cmp byte [ebx], 0xa
jne 0x449260
or byte [eax + edi + 0x28], 4
jmp 0x449265
and byte [eax + edi + 0x28], 0xfb
add ecx, ebx
mov edx, ebx
mov dword [ebp - 0xc], ecx
mov esi, ebx
cmp ebx, ecx
jae 0x449363
mov al, byte [edx]
cmp al, 0x1a
je 0x449345
lea ecx, [edx + 1]
mov dword [ebp - 8], ecx
mov ecx, dword [ebp - 0xc]
cmp al, 0xd
je 0x449294
mov edx, dword [ebp - 8]
mov byte [esi], al
jmp 0x4492b9
mov eax, dword [ebp - 8]
cmp eax, ecx
jae 0x4492c3
mov cl, byte [eax]
xor eax, eax
cmp cl, 0xa
sete al
inc eax
add edx, eax
cmp cl, 0xa
sete al
dec al
and al, 3
add al, 0xa
mov byte [esi], al
mov ecx, dword [ebp - 0xc]
inc esi
cmp edx, ecx
jb 0x449276
jmp 0x449363
push 0
lea eax, [ebp - 0xc]
push eax
push 1
lea eax, [ebp - 1]
push eax
push dword [ebp - 0x14]
call dword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
je 0x449340
cmp dword [ebp - 0xc], 0
je 0x449340
mov ecx, dword [ebp - 0x10]
mov eax, dword [ecx*4 + 0x465030]
test byte [eax + edi + 0x28], 0x48
je 0x44931a
mov dl, byte [ebp - 1]
lea eax, [esi + 1]
mov dword [ebp - 0x14], eax
cmp dl, 0xa
jne 0x449305
mov byte [esi], dl
jmp 0x449316
mov byte [esi], 0xd
mov eax, dword [ecx*4 + 0x465030]
mov byte [eax + edi + 0x2a], dl
mov eax, dword [ebp - 0x14]
mov esi, eax
jmp 0x449363
cmp byte [ebp - 1], 0xa
jne 0x449329
cmp esi, ebx
jne 0x449329
mov byte [esi], 0xa
jmp 0x449362
push 1
push 0xffffffffffffffff
push 0xffffffffffffffff
push dword [ebp + 8]
call fcn.00446aab
add esp, 0x10
cmp byte [ebp - 1], 0xa
je 0x449363
mov byte [esi], 0xd
jmp 0x449362
mov ecx, dword [ebp - 0x10]
mov ecx, dword [ecx*4 + 0x465030]
mov al, byte [ecx + edi + 0x28]
test al, 0x40
jne 0x44935f
or al, 2
mov byte [ecx + edi + 0x28], al
jmp 0x449363
mov byte [esi], 0x1a
inc esi
sub esi, ebx
pop edi
mov eax, esi
pop esi
pop ebx
leave
ret
Function at 0x44936c
Capabilities:
Read file on windows

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x18
mov eax, dword [ebp + 8]
push ebx
push esi
mov esi, dword [ebp + 0xc]
mov ebx, eax
and eax, 0x3f
sar ebx, 6
push edi
imul edi, eax, 0x38
push 0xa
mov eax, dword [ebx*4 + 0x465030]
pop edx
mov dword [ebp - 0x14], edx
mov ecx, dword [edi + eax + 0x18]
mov dword [ebp - 0x18], ecx
mov ecx, dword [ebp + 0x10]
test ecx, ecx
je 0x4493af
cmp word [esi], dx
jne 0x4493af
or byte [edi + eax + 0x28], 4
jmp 0x4493b4
and byte [edi + eax + 0x28], 0xfb
lea edx, [esi + ecx*2]
mov eax, esi
mov dword [ebp - 8], edx
mov dword [ebp - 4], eax
cmp eax, edx
jae 0x449507
mov dword [ebp - 0xc], 0xd
movzx ecx, word [eax]
mov edx, ecx
mov dword [ebp - 0x10], edx
push 0x1a
pop edx
cmp cx, dx
mov edx, dword [ebp - 8]
je 0x4494e7
add eax, 2
cmp cx, word [ebp - 0xc]
je 0x4493f6
mov dword [ebp - 4], eax
mov word [esi], cx
jmp 0x44942c
cmp eax, edx
jae 0x449438
movzx eax, word [eax]
xor ecx, ecx
cmp ax, word [ebp - 0x14]
mov edx, eax
push 0xa
sete cl
xor eax, eax
lea ecx, [ecx*2 + 2]
add dword [ebp - 4], ecx
pop ecx
cmp dx, cx
mov edx, dword [ebp - 8]
sete al
dec eax
and eax, 3
add eax, ecx
mov word [esi], ax
mov eax, dword [ebp - 4]
add esi, 2
cmp eax, edx
jb 0x4493ce
jmp 0x449507
push 0
lea eax, [ebp - 0x14]
push eax
push 2
lea eax, [ebp - 4]
push eax
push dword [ebp - 0x18]
call dword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
je 0x4494e3
cmp dword [ebp - 0x14], 0
je 0x4494e3
mov eax, dword [ebx*4 + 0x465030]
push 0xa
test byte [edi + eax + 0x28], 0x48
je 0x4494bb
mov dx, word [ebp - 4]
lea eax, [esi + 2]
pop ecx
mov dword [ebp - 0x18], eax
cmp dx, cx
jne 0x449484
mov word [esi], cx
jmp 0x4494b7
push 0xd
pop eax
mov word [esi], ax
mov eax, dword [ebx*4 + 0x465030]
movzx ecx, dx
shr ecx, 8
push 0xa
mov byte [edi + eax + 0x2a], dl
mov eax, dword [ebx*4 + 0x465030]
mov byte [edi + eax + 0x2b], cl
mov eax, dword [ebx*4 + 0x465030]
pop ecx
mov byte [edi + eax + 0x2c], cl
mov eax, dword [ebp - 0x18]
mov esi, eax
jmp 0x449507
pop ebx
cmp word [ebp - 4], bx
jne 0x4494cc
cmp esi, dword [ebp + 0xc]
jne 0x4494cc
mov word [esi], bx
jmp 0x449504
push 1
push 0xffffffffffffffff
push 0xfffffffffffffffe
push dword [ebp + 8]
call fcn.00446aab
add esp, 0x10
cmp word [ebp - 4], bx
je 0x449507
push 0xd
jmp 0x449500
mov ecx, dword [ebx*4 + 0x465030]
mov al, byte [ecx + edi + 0x28]
test al, 0x40
jne 0x4494fe
or al, 2
mov byte [ecx + edi + 0x28], al
jmp 0x449507
push 0x1a
pop eax
mov word [esi], ax
add esi, 2
sub esi, dword [ebp + 0xc]
and esi, 0xfffffffe
pop edi
mov eax, esi
pop esi
pop ebx
leave
ret
Function at 0x7fb370
Capabilities:
Extract resource via kernel32 functions

Disassembly:
mov eax, dword [esp + 4]
push ebx
push esi
push edi
push 0x1a
push eax
push 0
call dword [sym.imp.KERNEL32.dll_FindResourceW]
mov esi, eax
test esi, esi
jne 0x7fb38e
pop edi
pop esi
xor al, al
pop ebx
ret
push esi
push 0
call dword [sym.imp.KERNEL32.dll_LoadResource]
push esi
push 0
mov edi, eax
call dword [sym.imp.KERNEL32.dll_SizeofResource]
push edi
mov ebx, eax
call dword [sym.imp.KERNEL32.dll_LockResource]
mov ecx, dword [esp + 0x14]
push 0x824074
push ecx
mov edi, eax
call fcn.0080f198
mov esi, eax
add esp, 8
test esi, esi
jne 0x7fb3cb
pop edi
pop esi
xor al, al
pop ebx
ret
push esi
push ebx
push 1
push edi
call fcn.0080f02e
push esi
call fcn.0080efb1
add esp, 0x14
mov al, 1
pop edi
pop esi
pop ebx
ret
Function at 0x7fe850
Capabilities:
Query or enumerate registry value

Disassembly:
mov ecx, dword [esp + 4]
sub esp, 0x218
lea eax, [esp]
push ebp
push esi
push edi
mov edi, dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
push eax
push 0x20019
push 0
push ecx
push SysReAllocString
call edi
test eax, eax
jne 0x7fe8ae
mov ecx, dword [esp + 0xc]
mov ebp, dword [sym.imp.ADVAPI32.dll_RegQueryValueW]
lea edx, [esp + 0x10]
lea eax, [esp + 0x1c]
push edx
push eax
push 0x829720
push ecx
mov dword [esp + 0x20], 0x104
call ebp
test eax, eax
je 0x7fe8ba
mov edx, dword [esp + 0xc]
push edx
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
xor eax, eax
pop edi
pop esi
pop ebp
add esp, 0x218
ret
mov eax, dword [esp + 0xc]
mov esi, dword [sym.imp.ADVAPI32.dll_RegCloseKey]
push eax
call esi
lea ecx, [esp + 0x1c]
push str.DefaultIcon
push ecx
call fcn.0080f1e1
add esp, 8
lea edx, [esp + 0xc]
lea eax, [esp + 0x1c]
push edx
push 0x20019
push 0
push eax
push SysReAllocString
call edi
test eax, eax
jne 0x7fe8ae
mov eax, dword [esp + 0xc]
lea ecx, [esp + 0x10]
lea edx, [esp + 0x1c]
push ecx
push edx
push 0x829720
push eax
mov dword [esp + 0x20], 0x104
call ebp
test eax, eax
je 0x7fe92a
mov ecx, dword [esp + 0xc]
push ecx
call esi
pop edi
pop esi
xor eax, eax
pop ebp
add esp, 0x218
ret
mov edx, dword [esp + 0xc]
push edx
call esi
lea eax, [esp + 0x1c]
push 0x2c
push eax
call fcn.00810082
xor esi, esi
add esp, 8
cmp eax, esi
je 0x7fe957
mov word [eax], si
add eax, 2
push eax
call fcn.00810030
add esp, 4
jmp 0x7fe959
xor eax, eax
lea ecx, [esp + 0x18]
push 1
lea edx, [esp + 0x18]
push ecx
push edx
push eax
lea eax, [esp + 0x2c]
mov dword [esp + 0x24], esi
push eax
mov dword [esp + 0x2c], esi
call dword [sym.imp.SHELL32.dll_ExtractIconExW]
test eax, eax
je 0x7fe8ae
mov al, byte [esp + 0x22c]
test al, al
mov eax, dword [esp + 0x14]
jne 0x7fe8b0
mov eax, dword [esp + 0x18]
pop edi
pop esi
pop ebp
add esp, 0x218
ret

Function at 0x7feff0
Capabilities:
Execute syscall

Disassembly:
push ebp
mov ebp, esp
push ecx
mov eax, dword [ebp + 8]
lea edx, [ebp + 0xc]
int 0x2e
mov dword [ebp - 4], eax
mov eax, dword [ebp - 4]
mov esp, ebp
pop ebp
ret