joyce8/EMBER2024-capa huggingface dataset:
Function at 0x413c60
Capabilities:
Check for software breakpoints

Disassembly:
mov ecx, dword fs:[0x14]
mov ecx, dword [ecx]
cmp esp, dword [ecx + 8]
jbe 0x413e84
sub esp, 0x18
mov eax, dword [0x63b404]
test eax, eax
jne 0x413e6d
nop
lea eax, [0x63b3f0]
mov dword [esp], eax
call fcn.00409680
mov eax, dword [0x63b3f4]
test eax, eax
je 0x413ca9
cmp dword [eax + 8], 0xcc
jne 0x413d1f
mov edx, dword [0x63b3e8]
test edx, edx
jne 0x413d01
mov dword [esp], 0x1000
mov dword [esp + 4], 0
lea eax, [0x63dcd0]
mov dword [esp + 8], eax
call fcn.0040ba70
mov eax, dword [esp + 0xc]
mov dword [0x63b3e8], eax
mov ecx, dword [0x63b3ac]
mov dword [eax], ecx
mov eax, dword [0x63b3e8]
mov dword [0x63b3ac], eax
movzx eax, byte [0x63b940]
test al, al
jne 0x413d01
xor eax, eax
jmp 0x413e19
mov edx, dword [0x63b3e8]
mov ebx, dword [edx + 4]
mov dword [0x63b3e8], ebx
mov ebx, dword [0x63b3f4]
mov dword [edx + 4], ebx
mov dword [0x63b3f4], edx
mov edx, dword [0x63b3f4]
mov eax, dword [edx + 8]
cmp eax, 0xcc
jae 0x413e01
mov dword [esp + 0x14], edx
mov dword [esp + 0x10], eax
lea eax, [edx + 8]
mov dword [esp], eax
mov dword [esp + 4], 1
call fcn.00402140
mov eax, dword [esp + 0x10]
lea eax, [eax + eax*4]
mov ecx, dword [esp + 0x14]
lea edi, [ecx + eax*4 + 0x10]
mov edx, dword [0x63b620]
lea ebx, [ecx + eax*4 + 0x1c]
lea ebp, [ecx + eax*4 + 0x20]
lea esi, [ecx + eax*4 + 0x14]
test edx, edx
jne 0x413d7d
mov edx, dword [esp + 0x20]
mov dword [ecx + eax*4 + 0x10], edx
jmp 0x413d8a
mov edx, eax
mov eax, dword [esp + 0x20]
call fcn.00461550
mov eax, edx
mov edx, dword [esp + 0x24]
mov dword [ecx + eax*4 + 0x18], edx
mov edx, dword [0x63b620]
test edx, edx
jne 0x413db6
mov edx, dword [esp + 0x28]
mov dword [ecx + eax*4 + 0x1c], edx
mov edx, dword [esp + 0x2c]
mov dword [ecx + eax*4 + 0x20], edx
mov edx, dword [esp + 0x1c]
mov dword [ecx + eax*4 + 0x14], edx
jmp 0x413dd7
mov edi, ebx
mov eax, dword [esp + 0x28]
call fcn.00461550
mov edi, ebp
mov eax, dword [esp + 0x2c]
call fcn.00461550
mov edi, esi
mov eax, dword [esp + 0x1c]
call fcn.00461550
nop
lea eax, [0x63b3f0]
mov dword [esp], eax
call fcn.00409880
nop
lea eax, [0x63b3ec]
mov dword [esp], eax
mov dword [esp + 4], 8
call fcn.004022c0
add esp, 0x18
ret
mov ecx, 0xcc
call fcn.004615e0
lea esi, [0x63b940]
xchg ebp, eax
mov byte [esi + ebx], al
xchg ebp, eax
lea eax, [ebx + 1]
cmp eax, 0x80
jge 0x413d01
mov ecx, eax
mov eax, 0xcccccccd
imul ecx
add edx, ecx
sar edx, 2
mov eax, ecx
sar ecx, 0x1f
sub edx, ecx
lea edx, [edx + edx*4]
mov ebx, eax
sub eax, edx
cmp eax, 5
jae 0x413e63
lea edx, [0x5d323c]
movzx ebp, byte [edx + eax]
cmp ebx, 0x80
jb 0x413e0b
mov eax, ebx
mov ecx, pe_nt_image_headers32
call fcn.004615d0
mov ecx, 5
call fcn.004615d0
lea eax, [0x512b75]
mov dword [esp], eax
mov dword [esp + 4], 0x18
call fcn.004352b0
nop
call fcn.00460140
jmp fcn.00413c60
Function at 0x427280
Capabilities:
Enumerate pe sections

Disassembly:
mov ecx, dword fs:[0x14]
mov ecx, dword [ecx]
cmp esp, dword [ecx + 8]
jbe 0x4273f0
sub esp, 0x1c
mov eax, dword [esp + 0x20]
mov dword [esp], eax
call fcn.00425010
mov eax, dword [esp + 4]
test eax, eax
je 0x4273d9
mov dword [esp + 0xc], eax
mov ecx, dword fs:[0x14]
mov ecx, dword [ecx]
mov edx, dword [ecx + 0x18]
nop
inc dword [edx + 0x7c]
mov ecx, dword [ecx + 0x18]
mov dword [esp + 0x14], ecx
mov dword [esp], eax
call fcn.00422d90
mov eax, dword [esp + 0x20]
mov ecx, dword [esp + 0xc]
sub eax, dword [ecx + 0xc]
mov dword [esp + 0x10], eax
mov edx, dword [esp + 0x24]
movzx ebx, byte [edx + 6]
mov byte [esp + 0xb], bl
lea ebp, [ecx + 0x48]
mov dword [esp + 0x18], ebp
nop
mov dword [esp], ebp
call fcn.00409680
mov eax, dword [esp + 0xc]
lea ecx, [eax + 0x4c]
movzx edx, byte [esp + 0xb]
mov ebx, dword [esp + 0x10]
jmp 0x427317
mov ecx, ebp
mov ebp, dword [ecx]
test ebp, ebp
je 0x42737d
movzx esi, word [ebp + 4]
cmp esi, ebx
jne 0x42732c
cmp byte [ebp + 6], dl
je 0x427337
cmp esi, ebx
ja 0x42737d
jne 0x427315
cmp byte [ebp + 6], dl
jbe 0x427315
jmp 0x42737d
nop
nop
mov eax, dword [esp + 0x18]
mov dword [esp], eax
call fcn.00409880
nop
mov eax, dword fs:[0x14]
mov eax, dword [eax]
mov ecx, dword [esp + 0x14]
mov edx, dword [ecx + 0x7c]
lea ebx, [edx - 1]
mov dword [ecx + 0x7c], ebx
cmp edx, 1
jne 0x427374
movzx ecx, byte [eax + 0x65]
test cl, cl
je 0x427374
mov dword [eax + 8], 0xfffffade
mov byte [esp + 0x28], 0
add esp, 0x1c
ret
mov edx, dword [esp + 0x24]
mov word [edx + 4], bx
mov ebx, dword [ecx]
mov dword [edx], ebx
mov dword [ecx], edx
mov dword [esp], eax
call fcn.00427180
nop
nop
mov eax, dword [esp + 0x18]
mov dword [esp], eax
call fcn.00409880
nop
mov eax, dword fs:[0x14]
mov eax, dword [eax]
mov ecx, dword [esp + 0x14]
mov edx, dword [ecx + 0x7c]
lea ebx, [edx - 1]
mov dword [ecx + 0x7c], ebx
cmp edx, 1
jne 0x4273d0
movzx ecx, byte [eax + 0x65]
test cl, cl
je 0x4273d0
mov dword [eax + 8], 0xfffffade
mov byte [esp + 0x28], 1
add esp, 0x1c
ret
lea eax, [0x514564]
mov dword [esp], eax
mov dword [esp + 4], 0x1d
call fcn.004352b0
nop
call fcn.00460140
jmp fcn.00427280
Function at 0x427870
Capabilities:
Enumerate pe sections

Disassembly:
mov ecx, dword fs:[0x14]
mov ecx, dword [ecx]
cmp esp, dword [ecx + 8]
jbe 0x42798c
sub esp, 0x14
mov eax, dword [esp + 0x18]
movzx ecx, byte [eax + 6]
cmp cl, 1
je 0x427905
cmp cl, 2
je 0x4278ad
cmp cl, 3
jne 0x427975
mov byte [eax + 8], 1
jmp 0x427971
mov ecx, dword [eax + 8]
mov dword [esp], ecx
mov ecx, dword [esp + 0x20]
mov dword [esp + 4], ecx
call fcn.0042caa0
nop
lea eax, [0x61f9b8]
mov dword [esp], eax
call fcn.00409680
nop
mov eax, dword [0x61f984]
sub eax, dword [0x61f968]
mov dword [0x61f984], eax
mov eax, dword [0x61f974]
mov ecx, dword [esp + 0x18]
mov dword [ecx], eax
mov dword [0x61f974], ecx
nop
lea eax, [0x61f9b8]
mov dword [esp], eax
call fcn.00409880
jmp 0x427971
mov ecx, dword [eax + 8]
mov edx, dword [eax + 0xc]
mov ebx, dword [eax + 0x10]
mov ebp, dword [eax + 0x14]
mov esi, dword [esp + 0x1c]
mov dword [esp], esi
mov dword [esp + 4], ecx
mov dword [esp + 8], edx
mov dword [esp + 0xc], ebx
mov dword [esp + 0x10], ebp
call fcn.00413c60
nop
lea eax, [0x61f9b8]
mov dword [esp], eax
call fcn.00409680
nop
mov eax, dword [0x61f95c]
sub eax, dword [0x61f940]
mov dword [0x61f95c], eax
mov eax, dword [0x61f94c]
mov ecx, dword [esp + 0x18]
mov dword [ecx], eax
mov dword [0x61f94c], ecx
nop
nop
lea eax, [0x61f9b8]
mov dword [esp], eax
call fcn.00409880
add esp, 0x14
ret
lea eax, [0x50f945]
mov dword [esp], eax
mov dword [esp + 4], 0x10
call fcn.004352b0
nop
call fcn.00460140
jmp fcn.00427870
Function at 0x454660
Capabilities:
Access peb ldr_data

Disassembly:
mov ecx, dword fs:[0x14]
mov ecx, dword [ecx]
cmp esp, dword [ecx + 8]
jbe 0x454760
sub esp, 0x28
mov eax, dword [esp + 0x2c]
mov dword [eax + 0x8c], 0
mov dword [eax + 0x90], 0
mov ecx, dword fs:[0x14]
mov ecx, dword [ecx]
mov ecx, dword [ecx + 0x18]
mov ecx, dword [ecx + 0x58]
mov dword [eax + 0x94], ecx
mov ecx, dword [esp + 0x30]
mov dword [esp], ecx
call fcn.00454ef0
mov eax, dword [esp + 4]
mov dword [esp + 0x14], eax
lea ecx, [0x4f4180]
mov dword [esp], ecx
call fcn.0040b720
mov eax, dword [esp + 4]
mov ecx, dword [esp + 0x14]
inc ecx
mov dword [eax], ecx
lea ecx, [0x61fa50]
mov dword [esp], ecx
mov dword [esp + 4], eax
mov dword [esp + 8], 1
mov dword [esp + 0xc], 1
call fcn.00453ee0
mov eax, dword [esp + 0x10]
mov dword [esp + 0x18], 0
mov dword [esp + 0x1c], 0
mov dword [esp + 0x20], 0
mov dword [esp + 0x24], 0
mov ecx, dword [esp + 0x2c]
mov edx, dword [ecx + 0x50]
mov ecx, dword [ecx + 0x54]
mov dword [esp + 0x18], edx
mov dword [esp + 0x1c], ecx
mov dword [esp + 0x20], eax
mov byte [esp], 0xd
mov dword [esp + 4], 2
lea eax, [esp + 0x18]
mov dword [esp + 8], eax
mov dword [esp + 0xc], 2
mov dword [esp + 0x10], 2
call fcn.00453300
add esp, 0x28
ret
call fcn.00460140
jmp fcn.00454660
Function at 0x461400
Capabilities:
Encrypt data using aes via x86 extensions

Disassembly:
movd xmm0, dword [esp + 8]
pinsrw xmm0, ebx, 4
pshufhw xmm0, xmm0, 0
movdqa xmm1, xmm0
pxor xmm0, xmmword [0x63b720]
aesenc xmm0, xmm0
cmp ebx, 0x10
jb 0x45fbcb
je 0x45fc1e
cmp ebx, 0x20
jbe 0x45fc24
cmp ebx, 0x40
jbe 0x45fc6a
jmp 0x45fd0b
test ebx, ebx
je 0x45fc14
add eax, 0x10
test ax, 0xff0
je 0x45fc00
movdqu xmm1, xmmword [eax - 0x10]
add ebx, ebx
pand xmm1, xmmword [ebx*8 + 0x540fe0]
pxor xmm1, xmm0
aesenc xmm1, xmm1
aesenc xmm1, xmm1
aesenc xmm1, xmm1
movd dword [edx], xmm1
ret
movdqu xmm1, xmmword [eax + ebx - 0x20]
add ebx, ebx
pshufb xmm1, xmmword [ebx*8 + 0x5411e0]
jmp 0x45fbe8
aesenc xmm0, xmm0
movd dword [edx], xmm0
ret
movdqu xmm1, xmmword [eax]
jmp 0x45fbe8
pxor xmm1, xmmword [0x63b730]
aesenc xmm1, xmm1
movdqu xmm2, xmmword [eax]
movdqu xmm3, xmmword [eax + ebx - 0x10]
pxor xmm2, xmm0
pxor xmm3, xmm1
aesenc xmm2, xmm2
aesenc xmm3, xmm3
aesenc xmm2, xmm2
aesenc xmm3, xmm3
aesenc xmm2, xmm2
aesenc xmm3, xmm3
pxor xmm2, xmm3
movd dword [edx], xmm2
ret
movdqa xmm2, xmm1
movdqa xmm3, xmm1
pxor xmm1, xmmword [0x63b730]
pxor xmm2, xmmword [0x63b740]
pxor xmm3, xmmword [0x63b750]
aesenc xmm1, xmm1
aesenc xmm2, xmm2
aesenc xmm3, xmm3
movdqu xmm4, xmmword [eax]
movdqu xmm5, xmmword [eax + 0x10]
movdqu xmm6, xmmword [eax + ebx - 0x20]
movdqu xmm7, xmmword [eax + ebx - 0x10]
pxor xmm4, xmm0
pxor xmm5, xmm1
pxor xmm6, xmm2
pxor xmm7, xmm3
aesenc xmm4, xmm4
aesenc xmm5, xmm5
aesenc xmm6, xmm6
aesenc xmm7, xmm7
aesenc xmm4, xmm4
aesenc xmm5, xmm5
aesenc xmm6, xmm6
aesenc xmm7, xmm7
aesenc xmm4, xmm4
aesenc xmm5, xmm5
aesenc xmm6, xmm6
aesenc xmm7, xmm7
pxor xmm4, xmm6
pxor xmm5, xmm7
pxor xmm4, xmm5
movd dword [edx], xmm4
ret
movdqa xmm2, xmm1
movdqa xmm3, xmm1
pxor xmm1, xmmword [0x63b730]
pxor xmm2, xmmword [0x63b740]
pxor xmm3, xmmword [0x63b750]
aesenc xmm1, xmm1
aesenc xmm2, xmm2
aesenc xmm3, xmm3
movdqu xmm4, xmmword [eax + ebx - 0x40]
movdqu xmm5, xmmword [eax + ebx - 0x30]
movdqu xmm6, xmmword [eax + ebx - 0x20]
movdqu xmm7, xmmword [eax + ebx - 0x10]
aesenc xmm4, xmm0
aesenc xmm5, xmm1
aesenc xmm6, xmm2
aesenc xmm7, xmm3
dec ebx
shr ebx, 6
movdqu xmm0, xmmword [eax]
movdqu xmm1, xmmword [eax + 0x10]
movdqu xmm2, xmmword [eax + 0x20]
movdqu xmm3, xmmword [eax + 0x30]
aesenc xmm4, xmm0
aesenc xmm5, xmm1
aesenc xmm6, xmm2
aesenc xmm7, xmm3
aesenc xmm4, xmm4
aesenc xmm5, xmm5
aesenc xmm6, xmm6
aesenc xmm7, xmm7
add eax, 0x40
dec ebx
jne 0x45fd6a
aesenc xmm4, xmm4
aesenc xmm5, xmm5
aesenc xmm6, xmm6
aesenc xmm7, xmm7
aesenc xmm4, xmm4
aesenc xmm5, xmm5
aesenc xmm6, xmm6
aesenc xmm7, xmm7
aesenc xmm4, xmm4
aesenc xmm5, xmm5
aesenc xmm6, xmm6
aesenc xmm7, xmm7
pxor xmm4, xmm6
pxor xmm5, xmm7
pxor xmm4, xmm5
movd dword [edx], xmm4
ret
cmp byte [0x63b36f], 0
je 0x46141a
mov eax, dword [esp + 4]
mov ebx, dword [esp + 0xc]
lea edx, [esp + 0x10]
jmp 0x45fb90
jmp fcn.004080e0
Function at 0x461420
Capabilities:
Encrypt data using aes via x86 extensions

Disassembly:
mov ecx, dword fs:[0x14]
mov ecx, dword [ecx]
cmp esp, dword [ecx + 8]
jbe 0x40293e
sub esp, 0x10
mov eax, dword [esp + 0x14]
mov ecx, dword [eax]
mov eax, dword [eax + 4]
mov dword [esp], ecx
mov ecx, dword [esp + 0x18]
mov dword [esp + 4], ecx
mov dword [esp + 8], eax
call fcn.004080e0
mov eax, dword [esp + 0xc]
mov dword [esp + 0x1c], eax
add esp, 0x10
ret
call fcn.00460140
jmp 0x402900
cmp byte [0x63b36f], 0
je 0x46143b
mov eax, dword [esp + 4]
mov ebx, dword [eax + 4]
mov eax, dword [eax]
lea edx, [esp + 0xc]
jmp 0x45fb90
jmp 0x402900
Function at 0x4b10b0
Capabilities:
Resolve function by parsing pe exports

Disassembly:
mov ecx, dword fs:[0x14]
mov ecx, dword [ecx]
cmp esp, dword [ecx + 8]
jbe 0x4b126e
sub esp, 0x5c
lea edi, [esp + 0x7c]
xor eax, eax
call fcn.00461727
mov ecx, dword [esp + 0x60]
test ecx, ecx
je 0x4b10ea
mov ecx, dword [esp + 0x64]
mov edx, dword [esp + 0x68]
mov eax, dword [esp + 0x60]
jmp 0x4b1113
lea eax, [0x4f6500]
mov dword [esp], eax
mov dword [esp + 4], 0
mov dword [esp + 8], 0x200
call fcn.004493f0
mov eax, dword [esp + 0xc]
xor ecx, ecx
mov edx, 0x200
mov dword [esp + 0x24], ecx
lea edi, [esp + 0x38]
mov ebx, eax
xor eax, eax
call fcn.00461727
mov dword [esp + 0x38], ebx
mov ecx, dword [esp + 0x24]
mov dword [esp + 0x3c], ecx
mov dword [esp + 0x40], edx
mov dword [esp + 0x54], ecx
movzx ecx, word [esp + 0x6c]
movzx edx, word [esp + 0x70]
shl edx, 0xb
movzx ebx, word [esp + 0x78]
or ebx, edx
movzx edx, byte [esp + 0x75]
test dl, dl
je 0x4b115b
or ebx, 0x80
movzx eax, byte [esp + 0x74]
test al, al
je 0x4b116a
or ebx, 0x100
movzx eax, byte [esp + 0x73]
test al, al
je 0x4b1179
or ebx, 0x200
movzx eax, byte [esp + 0x72]
test al, al
je 0x4b1188
or ebx, 0x400
movzx eax, byte [esp + 0x6e]
test al, al
je 0x4b1197
or ebx, 0xffff8000
movzx eax, byte [esp + 0x76]
test al, al
je 0x4b11a3
or ebx, 0x20
movzx eax, byte [esp + 0x77]
test al, al
je 0x4b11af
or ebx, 0x10
mov word [esp + 0x46], cx
mov word [esp + 0x48], bx
mov dword [esp + 0x28], 0
mov dword [esp + 0x2c], 0
mov dword [esp + 0x30], 0
mov eax, dword [esp + 0x3c]
lea ecx, [eax + 0xc]
mov edx, dword [esp + 0x40]
mov ebx, dword [esp + 0x38]
cmp edx, ecx
jae 0x4b121a
mov dword [esp + 0x24], eax
mov dword [esp], ebx
mov dword [esp + 4], ecx
mov dword [esp + 8], edx
mov dword [esp + 0xc], 0xc
lea eax, [0x4f6500]
mov dword [esp + 0x10], eax
call fcn.004494b0
mov ebx, dword [esp + 0x14]
mov ecx, dword [esp + 0x18]
mov edx, dword [esp + 0x1c]
mov eax, dword [esp + 0x24]
mov dword [esp + 0x34], ebx
mov dword [esp + 0x24], edx
mov dword [esp + 0x20], ecx
add eax, ebx
mov dword [esp], eax
lea eax, [esp + 0x28]
mov dword [esp + 4], eax
mov dword [esp + 8], 0xc
call fcn.00461e20
mov eax, dword [esp + 0x34]
mov dword [esp + 0x38], eax
mov eax, dword [esp + 0x20]
mov dword [esp + 0x3c], eax
mov eax, dword [esp + 0x24]
mov dword [esp + 0x40], eax
mov byte [esp + 0x44], 1
lea edi, [esp + 0x7c]
lea esi, [esp + 0x38]
call fcn.00461be6
add esp, 0x5c
ret
call fcn.00460140
jmp fcn.004b10b0
Function at 0x404f66
Capabilities:
Parse pe header

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

Function at 0x421285
Capabilities:
Allocate thread local storage

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push esi
push 0x430830
push 0x430828
push str.FlsAlloc
push 0x1f
call fcn.00421144
mov esi, eax
add esp, 0x10
test esi, esi
je 0x4212b9
push dword [ebp + 8]
mov ecx, esi
call dword [0x42e1b8]
call esi
jmp 0x4212bf
call dword [sym.imp.KERNEL32.dll_TlsAlloc]
pop esi
pop ebp
ret 4

Function at 0x421303
Capabilities:
Get thread local storage value

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push esi
push 0x430840
push 0x430838
push str.FlsGetValue
push 0x21
call fcn.00421144
mov esi, eax
add esp, 0x10
test esi, esi
je 0x42133a
push dword [ebp + 8]
mov ecx, esi
call dword [0x42e1b8]
call esi
pop esi
pop ebp
ret 4
pop esi
pop ebp
jmp dword [sym.imp.KERNEL32.dll_TlsGetValue]

Function at 0x421342
Capabilities:
Set thread local storage value

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push esi
push 0x430848
push 0x430840
push str.FlsSetValue
push 0x22
call fcn.00421144
mov esi, eax
add esp, 0x10
test esi, esi
je 0x42137c
push dword [ebp + 0xc]
mov ecx, esi
push dword [ebp + 8]
call dword [0x42e1b8]
call esi
pop esi
pop ebp
ret 8
pop esi
pop ebp
jmp dword [sym.imp.KERNEL32.dll_TlsSetValue]
Function at 0x425db9
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 0x425e56
push ebx
push esi
call fcn.00425d82
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.00425d16
add esp, 0x24
mov dword [ebp - 4], eax
test eax, eax
jne 0x425e03
push esi
call dword [sym.imp.KERNEL32.dll_FreeEnvironmentStringsW]
xor eax, eax
jmp 0x425e55
push edi
push eax
call fcn.00421784
mov edi, eax
pop ecx
push ebx
test edi, edi
jne 0x425e23
call fcn.00420fd7
pop ecx
push esi
call dword [sym.imp.KERNEL32.dll_FreeEnvironmentStringsW]
xor eax, eax
jmp 0x425e54
push ebx
push dword [ebp - 4]
push edi
push dword [ebp - 8]
push esi
push ebx
push ebx
call fcn.00425d16
add esp, 0x20
test eax, eax
jne 0x425e42
push edi
call fcn.00420fd7
jmp 0x425e4a
push ebx
call fcn.00420fd7
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 0x429eba
Capabilities:
Read file on windows

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x18
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 + 0x438168]
mov dword [ebp - 0xc], ecx
mov ecx, dword [edi + eax + 0x18]
mov dword [ebp - 0x14], ecx
mov ecx, dword [ebp + 0x10]
test ecx, ecx
je 0x429efa
cmp byte [ebx], 0xa
jne 0x429efa
or byte [edi + eax + 0x28], 4
jmp 0x429eff
and byte [edi + eax + 0x28], 0xfb
add ecx, ebx
mov eax, ebx
mov dword [ebp - 0x10], ecx
mov esi, ebx
mov dword [ebp - 8], eax
cmp ebx, ecx
jae 0x429ffe
mov dl, byte [eax]
cmp dl, 0x1a
je 0x429fe1
inc eax
cmp dl, 0xd
je 0x429f2b
mov dword [ebp - 8], eax
mov byte [esi], dl
jmp 0x429f51
cmp eax, ecx
jae 0x429f5f
mov cl, byte [eax]
xor eax, eax
cmp cl, 0xa
sete al
inc eax
add dword [ebp - 8], eax
cmp cl, 0xa
sete al
dec al
and al, 3
add al, 0xa
mov byte [esi], al
mov eax, dword [ebp - 8]
mov ecx, dword [ebp - 0x10]
xor edx, edx
inc edx
add esi, edx
cmp eax, ecx
jb 0x429f13
jmp 0x429ffe
push 0
lea eax, [ebp - 0x10]
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 0x429fdc
cmp dword [ebp - 0x10], 0
je 0x429fdc
mov ecx, dword [ebp - 0xc]
mov eax, dword [ecx*4 + 0x438168]
test byte [eax + edi + 0x28], 0x48
je 0x429fb6
mov dl, byte [ebp - 1]
lea eax, [esi + 1]
mov dword [ebp - 0x14], eax
cmp dl, 0xa
jne 0x429fa1
mov byte [esi], dl
jmp 0x429fb2
mov byte [esi], 0xd
mov eax, dword [ecx*4 + 0x438168]
mov byte [eax + edi + 0x2a], dl
mov eax, dword [ebp - 0x14]
mov esi, eax
jmp 0x429ffe
cmp byte [ebp - 1], 0xa
jne 0x429fc5
cmp esi, ebx
jne 0x429fc5
mov byte [esi], 0xa
jmp 0x429ffd
push 1
push 0xffffffffffffffff
push 0xffffffffffffffff
push dword [ebp + 8]
call fcn.00429e2a
add esp, 0x10
cmp byte [ebp - 1], 0xa
je 0x429ffe
mov byte [esi], 0xd
jmp 0x429ffd
mov ecx, dword [ebp - 0xc]
mov ecx, dword [ecx*4 + 0x438168]
mov al, byte [ecx + edi + 0x28]
test al, 0x40
jne 0x429ffb
or al, 2
mov byte [ecx + edi + 0x28], al
jmp 0x429ffe
mov byte [esi], dl
inc esi
sub esi, ebx
pop edi
mov eax, esi
pop esi
pop ebx
leave
ret
Function at 0x42a007
Capabilities:
Read file on windows

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x1c
mov eax, dword [ebp + 8]
mov ecx, eax
push ebx
mov ebx, dword [ebp + 0xc]
and eax, 0x3f
push esi
sar ecx, 6
push edi
imul edi, eax, 0x38
mov dword [ebp - 8], ecx
mov eax, dword [ecx*4 + 0x438168]
push 0xa
pop edx
mov dword [ebp - 0x18], edx
mov ecx, dword [eax + edi + 0x18]
mov dword [ebp - 0x1c], ecx
mov ecx, dword [ebp + 0x10]
test ecx, ecx
je 0x42a04d
cmp word [ebx], dx
jne 0x42a04d
or byte [eax + edi + 0x28], 4
jmp 0x42a052
and byte [eax + edi + 0x28], 0xfb
lea edx, [ebx + ecx*2]
mov eax, ebx
mov dword [ebp - 0xc], edx
mov esi, ebx
mov dword [ebp - 4], eax
cmp ebx, edx
jae 0x42a1b5
mov dword [ebp - 0x10], 0xd
movzx ecx, word [eax]
mov edx, ecx
mov dword [ebp - 0x14], edx
mov edx, dword [ebp - 0xc]
cmp ecx, 0x1a
je 0x42a195
add eax, 2
cmp cx, word [ebp - 0x10]
je 0x42a093
mov dword [ebp - 4], eax
mov word [esi], cx
jmp 0x42a0c9
cmp eax, edx
jae 0x42a0d7
movzx eax, word [eax]
xor ecx, ecx
cmp ax, word [ebp - 0x18]
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 - 0xc]
sete al
dec eax
and eax, 3
add eax, ecx
mov word [esi], ax
mov eax, dword [ebp - 4]
push 2
pop ecx
add esi, ecx
cmp eax, edx
jb 0x42a06e
jmp 0x42a1b5
push 0
lea eax, [ebp - 0x18]
push eax
push 2
lea eax, [ebp - 4]
push eax
push dword [ebp - 0x1c]
call dword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
je 0x42a190
cmp dword [ebp - 0x18], 0
je 0x42a190
mov edx, dword [ebp - 8]
push 0xa
mov eax, dword [edx*4 + 0x438168]
test byte [eax + edi + 0x28], 0x48
je 0x42a166
lea eax, [esi + 2]
mov dword [ebp - 0x1c], eax
mov ax, word [ebp - 4]
pop ecx
mov word [ebp - 2], ax
cmp ax, cx
jne 0x42a12a
mov word [esi], cx
jmp 0x42a161
push 0xd
pop ecx
mov word [esi], cx
movzx ecx, ax
mov eax, dword [edx*4 + 0x438168]
mov dx, word [ebp - 2]
shr ecx, 8
push 0xa
mov byte [eax + edi + 0x2a], dl
mov edx, dword [ebp - 8]
mov eax, dword [edx*4 + 0x438168]
mov byte [eax + edi + 0x2b], cl
mov eax, dword [edx*4 + 0x438168]
pop ecx
mov byte [eax + edi + 0x2c], cl
mov esi, dword [ebp - 0x1c]
jmp 0x42a1b5
pop eax
cmp word [ebp - 4], ax
jne 0x42a176
cmp esi, ebx
jne 0x42a176
mov word [esi], ax
jmp 0x42a1b2
push 1
push 0xffffffffffffffff
push 0xfffffffffffffffe
push dword [ebp + 8]
call fcn.00429e2a
add esp, 0x10
push 0xa
pop eax
cmp word [ebp - 4], ax
je 0x42a1b5
push 0xd
pop eax
jmp 0x42a171
mov edx, dword [ebp - 8]
mov edx, dword [edx*4 + 0x438168]
mov al, byte [edx + edi + 0x28]
test al, 0x40
jne 0x42a1af
or al, 2
mov byte [edx + edi + 0x28], al
jmp 0x42a1b5
mov word [esi], cx
add esi, 2
sub esi, ebx
and esi, 0xfffffffe
pop edi
mov eax, esi
pop esi
pop ebx
leave
ret
Function at 0x42d460
Capabilities:
Parse pe header

Disassembly:
push ebp
mov ebp, esp
mov eax, dword [ebp + 8]
mov ecx, 0x5a4d
cmp word [eax], cx
jne 0x42d48d
mov ecx, dword [eax + 0x3c]
add ecx, eax
cmp dword [ecx], 0x4550
jne 0x42d48d
mov edx, 0x10b
xor eax, eax
cmp word [ecx + 0x18], dx
sete al
pop ebp
ret
xor eax, eax
pop ebp
ret