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

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x14
mov eax, dword [ebp + 0xc]
push eax
mov ecx, dword [ebp + 8]
push ecx
call dword [sym.imp.KERNEL32.dll_LoadResource]
mov dword [ebp - 0xc], eax
cmp dword [ebp - 0xc], 0
jne 0x40c354
xor eax, eax
jmp 0x40c3d4
mov edx, dword [ebp - 0xc]
push edx
call dword [sym.imp.KERNEL32.dll_LockResource]
mov dword [ebp - 4], eax
cmp dword [ebp - 4], 0
jne 0x40c36b
xor eax, eax
jmp 0x40c3d4
mov eax, dword [ebp + 0xc]
push eax
mov ecx, dword [ebp + 8]
push ecx
call dword [sym.imp.KERNEL32.dll_SizeofResource]
mov dword [ebp - 0x14], eax
mov edx, dword [ebp - 4]
add edx, dword [ebp - 0x14]
mov dword [ebp - 0x10], edx
mov eax, dword [ebp + 0x10]
and eax, 0xf
mov dword [ebp - 8], eax
cmp dword [ebp - 8], 0
jbe 0x40c3b7
mov ecx, dword [ebp - 4]
cmp ecx, dword [ebp - 0x10]
jae 0x40c3b7
mov edx, dword [ebp - 4]
movzx eax, word [edx]
mov ecx, dword [ebp - 4]
lea edx, [ecx + eax*2 + 2]
mov dword [ebp - 4], edx
mov eax, dword [ebp - 8]
sub eax, 1
mov dword [ebp - 8], eax
jmp 0x40c38e
mov ecx, dword [ebp - 4]
cmp ecx, dword [ebp - 0x10]
jb 0x40c3c3
xor eax, eax
jmp 0x40c3d4
mov edx, dword [ebp - 4]
movzx eax, word [edx]
test eax, eax
jne 0x40c3d1
xor eax, eax
jmp 0x40c3d4
mov eax, dword [ebp - 4]
mov esp, ebp
pop ebp
ret
Function at 0x415290
Capabilities:
Get common file path

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x34
mov eax, dword [0x449144]
xor eax, ebp
mov dword [ebp - 4], eax
push edi
mov dword [ebp - 0xc], ecx
mov eax, dword [ebp - 0xc]
cmp dword [eax], 0
jne 0x4152b5
mov ecx, dword [ebp - 0xc]
cmp dword [ecx + 4], 0xffffffff
je 0x4152bf
mov eax, 0x1000000
jmp 0x4153e5
mov edx, dword [ebp - 0xc]
add edx, 0x244
push edx
push 0x104
call dword [sym.imp.KERNEL32.dll_GetCurrentDirectoryW]
mov eax, dword [ebp - 0xc]
add eax, 0x244
mov dword [ebp - 0x18], eax
mov ecx, dword [ebp - 0x18]
add ecx, 2
mov dword [ebp - 0x2c], ecx
mov edx, dword [ebp - 0x18]
mov ax, word [edx]
mov word [ebp - 0x1e], ax
add dword [ebp - 0x18], 2
cmp word [ebp - 0x1e], 0
jne 0x4152e8
mov ecx, dword [ebp - 0x18]
sub ecx, dword [ebp - 0x2c]
sar ecx, 1
mov dword [ebp - 0x30], ecx
mov edx, dword [ebp - 0x30]
mov eax, dword [ebp - 0xc]
mov cx, word [eax + edx*2 + 0x242]
mov word [ebp - 0x14], cx
movzx edx, word [ebp - 0x14]
cmp edx, 0x5c
je 0x415359
movzx eax, word [ebp - 0x14]
cmp eax, 0x2f
je 0x415359
mov ecx, dword [ebp - 0xc]
add ecx, 0x242
mov dword [ebp - 0x1c], ecx
mov edx, dword [ebp - 0x1c]
mov ax, word [edx + 2]
mov word [ebp - 0x20], ax
add dword [ebp - 0x1c], 2
cmp word [ebp - 0x20], 0
jne 0x415338
mov edi, dword [ebp - 0x1c]
mov ecx, dword [0x43a5d0]
mov dword [edi], ecx
cmp dword [ebp + 0x10], 1
jne 0x41539d
push 1
push 0
push 0
mov edx, dword [ebp + 8]
push edx
call dword [sym.imp.KERNEL32.dll_SetFilePointer]
mov dword [ebp - 0x34], eax
cmp dword [ebp - 0x34], 0xffffffff
je 0x415381
mov dword [ebp - 0x24], 1
jmp 0x415388
mov dword [ebp - 0x24], 0
mov al, byte [ebp - 0x24]
mov byte [ebp - 0xd], al
movzx ecx, byte [ebp - 0xd]
test ecx, ecx
jne 0x41539d
mov eax, 0x2000000
jmp 0x4153e5
lea edx, [ebp - 8]
push edx
mov eax, dword [ebp + 0x10]
push eax
mov ecx, dword [ebp + 0xc]
push ecx
mov edx, dword [ebp + 8]
push edx
call fcn.0041a890
add esp, 0x10
mov dword [ebp - 0x28], eax
cmp dword [ebp - 0x28], 0
jne 0x4153c3
mov eax, dword [ebp - 8]
jmp 0x4153e5
mov eax, dword [ebp - 0x28]
push eax
call fcn.0041b410
add esp, 4
mov ecx, dword [ebp - 0xc]
mov dword [ecx], eax
mov edx, dword [ebp - 0xc]
cmp dword [edx], 0
jne 0x4153e3
mov eax, 0x200
jmp 0x4153e5
xor eax, eax
pop edi
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.0041d30e
mov esp, ebp
pop ebp
ret 0xc
Function at 0x415e90
Capabilities:
Hash data with crc32

Disassembly:
push ebp
mov ebp, esp
mov eax, 4
imul ecx, eax, 0
movsx edx, byte [ebp + 0xc]
mov eax, dword [ebp + 8]
xor edx, dword [eax + ecx]
and edx, 0xff
mov ecx, 4
imul eax, ecx, 0
mov ecx, dword [ebp + 8]
mov eax, dword [ecx + eax]
shr eax, 8
xor eax, dword [edx*4 + 0x43a138]
mov ecx, 4
imul edx, ecx, 0
mov ecx, dword [ebp + 8]
mov dword [ecx + edx], eax
mov edx, 4
imul eax, edx, 0
mov ecx, dword [ebp + 8]
mov edx, dword [ecx + eax]
and edx, 0xff
mov eax, 4
shl eax, 0
mov ecx, dword [ebp + 8]
add edx, dword [ecx + eax]
mov eax, 4
shl eax, 0
mov ecx, dword [ebp + 8]
mov dword [ecx + eax], edx
mov edx, 4
shl edx, 0
mov eax, dword [ebp + 8]
imul ecx, dword [eax + edx], 0x8088405
add ecx, 1
mov edx, 4
shl edx, 0
mov eax, dword [ebp + 8]
mov dword [eax + edx], ecx
mov ecx, 4
shl ecx, 1
mov edx, 4
shl edx, 0
mov eax, dword [ebp + 8]
mov edx, dword [eax + edx]
shr edx, 0x18
mov eax, dword [ebp + 8]
xor edx, dword [eax + ecx]
and edx, 0xff
mov ecx, 4
shl ecx, 1
mov eax, dword [ebp + 8]
mov ecx, dword [eax + ecx]
shr ecx, 8
xor ecx, dword [edx*4 + 0x43a138]
mov edx, 4
shl edx, 1
mov eax, dword [ebp + 8]
mov dword [eax + edx], ecx
pop ebp
ret

Function at 0x41aa20
Capabilities:
Read file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x14
mov eax, dword [0x449144]
xor eax, ebp
mov dword [ebp - 4], eax
mov eax, dword [ebp + 0xc]
imul eax, dword [ebp + 0x10]
mov dword [ebp - 0xc], eax
mov ecx, dword [ebp + 0x14]
movzx edx, byte [ecx]
test edx, edx
je 0x41aa79
push 0
lea eax, [ebp - 8]
push eax
mov ecx, dword [ebp - 0xc]
push ecx
mov edx, dword [ebp + 8]
push edx
mov eax, dword [ebp + 0x14]
mov ecx, dword [eax + 4]
push ecx
call dword [sym.imp.KERNEL32.dll_ReadFile]
mov dword [ebp - 0x14], eax
cmp dword [ebp - 0x14], 0
jne 0x41aa6f
mov edx, dword [ebp + 0x14]
mov byte [edx + 8], 1
mov eax, dword [ebp - 8]
xor edx, edx
div dword [ebp + 0xc]
jmp 0x41aad3
mov eax, dword [ebp + 0x14]
mov ecx, dword [eax + 0x1c]
add ecx, dword [ebp - 0xc]
mov edx, dword [ebp + 0x14]
cmp ecx, dword [edx + 0x18]
jbe 0x41aa99
mov eax, dword [ebp + 0x14]
mov ecx, dword [ebp + 0x14]
mov edx, dword [eax + 0x18]
sub edx, dword [ecx + 0x1c]
mov dword [ebp - 0xc], edx
mov eax, dword [ebp - 0xc]
push eax
mov ecx, dword [ebp + 0x14]
mov edx, dword [ecx + 0x14]
mov eax, dword [ebp + 0x14]
add edx, dword [eax + 0x1c]
push edx
mov ecx, dword [ebp + 8]
push ecx
call fcn.0041ee20
add esp, 0xc
mov edx, dword [ebp - 0xc]
mov dword [ebp - 0x10], edx
mov eax, dword [ebp + 0x14]
mov ecx, dword [eax + 0x1c]
add ecx, dword [ebp - 0x10]
mov edx, dword [ebp + 0x14]
mov dword [edx + 0x1c], ecx
mov eax, dword [ebp - 0x10]
xor edx, edx
div dword [ebp + 0xc]
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.0041d30e
mov esp, ebp
pop ebp
ret
Function at 0x41e07e
Capabilities:
Parse pe header

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

Function at 0x429729
Capabilities:
Allocate thread local storage

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push esi
push 0x43ddb8
push 0x43ddb0
push str.FlsAlloc
push 0x1e
call fcn.004295f3
mov esi, eax
add esp, 0x10
test esi, esi
je 0x42975d
push dword [ebp + 8]
mov ecx, esi
call dword [0x4381cc]
call esi
jmp 0x429763
call dword [sym.imp.KERNEL32.dll_TlsAlloc]
pop esi
pop ebp
ret 4

Function at 0x4297a7
Capabilities:
Get thread local storage value

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push esi
push 0x43ddc8
push 0x43ddc0
push str.FlsGetValue
push 0x20
call fcn.004295f3
mov esi, eax
add esp, 0x10
test esi, esi
je 0x4297de
push dword [ebp + 8]
mov ecx, esi
call dword [0x4381cc]
call esi
pop esi
pop ebp
ret 4
pop esi
pop ebp
jmp dword [sym.imp.KERNEL32.dll_TlsGetValue]
Function at 0x42ae88
Capabilities:
Read file on windows

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
pop ebp
jmp fcn.0042acf9

Function at 0x42b282
Capabilities:
Read file on windows

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
mov eax, 0x101c
call fcn.0041e180
mov eax, dword [0x449144]
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.00429d5c
pop ecx
mov ecx, dword [ebp + 8]
mov ebx, eax
cmp dword [ecx + 8], 0
jne 0x42b2c4
mov eax, dword [ebp + 0xc]
mov edx, dword [ebp + 0x10]
jmp 0x42b420
mov eax, dword [ecx]
sub eax, dword [ecx + 4]
push esi
push edi
push 0
cdq
push 2
push edx
push eax
call fcn.00435f70
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 + 0x44add8]
push dword [edi + eax + 0x24]
push dword [edi + eax + 0x20]
push ebx
call fcn.0042c279
mov ecx, dword [esi*4 + 0x44add8]
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 0x42b419
cmp eax, dword [edi + ecx + 0x24]
jne 0x42b419
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 0x42b419
push dword [ebp - 0x100c]
push 0
push dword [ebp + 0x10]
push dword [ebp + 0xc]
push ebx
call fcn.0042c279
add esp, 0x14
test edx, edx
jl 0x42b419
jg 0x42b38f
test eax, eax
jb 0x42b419
mov ebx, dword [ebp - 0x1018]
mov eax, dword [ebp - 0x1014]
test ebx, ebx
jg 0x42b419
jl 0x42b3a9
cmp dword [ebp - 0x1008], eax
ja 0x42b419
lea edi, [ebp - 0x1004]
xor edx, edx
add edi, eax
lea ecx, [ebp - 0x1004]
xor esi, esi
cmp dword [ebp - 0x1008], edx
jne 0x42b3c7
test ebx, ebx
je 0x42b400
cmp ecx, edi
jae 0x42b400
mov al, byte [ecx]
cmp al, 0xd
jne 0x42b3e1
lea eax, [edi - 1]
cmp ecx, eax
jae 0x42b3ed
cmp byte [ecx + 1], 0xa
jne 0x42b3ed
inc ecx
jmp 0x42b3ed
movzx eax, al
movsx eax, byte [eax + 0x4493e8]
add ecx, eax
add esi, 1
adc edx, 0
inc ecx
cmp esi, dword [ebp - 0x1008]
jne 0x42b3c7
cmp edx, ebx
jne 0x42b3c7
lea eax, [ebp - 0x1004]
sub ecx, eax
mov eax, ecx
cdq
add eax, dword [ebp - 0x1010]
adc edx, dword [ebp - 0x101c]
jmp 0x42b41e
or edx, 0xffffffff
mov eax, edx
pop edi
pop esi
mov ecx, dword [ebp - 4]
xor ecx, ebp
pop ebx
call fcn.0041d30e
leave
ret
Function at 0x42b717
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 + 0x44add8]
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 0x42b757
cmp byte [ebx], 0xa
jne 0x42b757
or byte [eax + edi + 0x28], 4
jmp 0x42b75c
and byte [eax + edi + 0x28], 0xfb
add ecx, ebx
mov edx, ebx
mov dword [ebp - 0xc], ecx
mov esi, ebx
cmp ebx, ecx
jae 0x42b85a
mov al, byte [edx]
cmp al, 0x1a
je 0x42b83c
lea ecx, [edx + 1]
mov dword [ebp - 8], ecx
mov ecx, dword [ebp - 0xc]
cmp al, 0xd
je 0x42b78b
mov edx, dword [ebp - 8]
mov byte [esi], al
jmp 0x42b7b0
mov eax, dword [ebp - 8]
cmp eax, ecx
jae 0x42b7ba
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 0x42b76d
jmp 0x42b85a
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 0x42b837
cmp dword [ebp - 0xc], 0
je 0x42b837
mov ecx, dword [ebp - 0x10]
mov eax, dword [ecx*4 + 0x44add8]
test byte [eax + edi + 0x28], 0x48
je 0x42b811
mov dl, byte [ebp - 1]
lea eax, [esi + 1]
mov dword [ebp - 0x14], eax
cmp dl, 0xa
jne 0x42b7fc
mov byte [esi], dl
jmp 0x42b80d
mov byte [esi], 0xd
mov eax, dword [ecx*4 + 0x44add8]
mov byte [eax + edi + 0x2a], dl
mov eax, dword [ebp - 0x14]
mov esi, eax
jmp 0x42b85a
cmp byte [ebp - 1], 0xa
jne 0x42b820
cmp esi, ebx
jne 0x42b820
mov byte [esi], 0xa
jmp 0x42b859
push 1
push 0xffffffffffffffff
push 0xffffffffffffffff
push dword [ebp + 8]
call fcn.0042c297
add esp, 0x10
cmp byte [ebp - 1], 0xa
je 0x42b85a
mov byte [esi], 0xd
jmp 0x42b859
mov ecx, dword [ebp - 0x10]
mov ecx, dword [ecx*4 + 0x44add8]
mov al, byte [ecx + edi + 0x28]
test al, 0x40
jne 0x42b856
or al, 2
mov byte [ecx + edi + 0x28], al
jmp 0x42b85a
mov byte [esi], 0x1a
inc esi
sub esi, ebx
pop edi
mov eax, esi
pop esi
pop ebx
leave
ret
Function at 0x42b863
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 + 0x44add8]
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 0x42b8a6
cmp word [esi], dx
jne 0x42b8a6
or byte [edi + eax + 0x28], 4
jmp 0x42b8ab
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 0x42b9fe
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 0x42b9de
add eax, 2
cmp cx, word [ebp - 0xc]
je 0x42b8ed
mov dword [ebp - 4], eax
mov word [esi], cx
jmp 0x42b923
cmp eax, edx
jae 0x42b92f
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 0x42b8c5
jmp 0x42b9fe
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 0x42b9da
cmp dword [ebp - 0x14], 0
je 0x42b9da
mov eax, dword [ebx*4 + 0x44add8]
push 0xa
test byte [edi + eax + 0x28], 0x48
je 0x42b9b2
mov dx, word [ebp - 4]
lea eax, [esi + 2]
pop ecx
mov dword [ebp - 0x18], eax
cmp dx, cx
jne 0x42b97b
mov word [esi], cx
jmp 0x42b9ae
push 0xd
pop eax
mov word [esi], ax
mov eax, dword [ebx*4 + 0x44add8]
movzx ecx, dx
shr ecx, 8
push 0xa
mov byte [edi + eax + 0x2a], dl
mov eax, dword [ebx*4 + 0x44add8]
mov byte [edi + eax + 0x2b], cl
mov eax, dword [ebx*4 + 0x44add8]
pop ecx
mov byte [edi + eax + 0x2c], cl
mov eax, dword [ebp - 0x18]
mov esi, eax
jmp 0x42b9fe
pop ebx
cmp word [ebp - 4], bx
jne 0x42b9c3
cmp esi, dword [ebp + 0xc]
jne 0x42b9c3
mov word [esi], bx
jmp 0x42b9fb
push 1
push 0xffffffffffffffff
push 0xfffffffffffffffe
push dword [ebp + 8]
call fcn.0042c297
add esp, 0x10
cmp word [ebp - 4], bx
je 0x42b9fe
push 0xd
jmp 0x42b9f7
mov ecx, dword [ebx*4 + 0x44add8]
mov al, byte [ecx + edi + 0x28]
test al, 0x40
jne 0x42b9f5
or al, 2
mov byte [ecx + edi + 0x28], al
jmp 0x42b9fe
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 0x43087f
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 0x43091c
push ebx
push esi
call fcn.00430848
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.0042c8a6
add esp, 0x24
mov dword [ebp - 4], eax
test eax, eax
jne 0x4308c9
push esi
call dword [sym.imp.KERNEL32.dll_FreeEnvironmentStringsW]
xor eax, eax
jmp 0x43091b
push edi
push eax
call fcn.0042c476
mov edi, eax
pop ecx
push ebx
test edi, edi
jne 0x4308e9
call fcn.004292bb
pop ecx
push esi
call dword [sym.imp.KERNEL32.dll_FreeEnvironmentStringsW]
xor eax, eax
jmp 0x43091a
push ebx
push dword [ebp - 4]
push edi
push dword [ebp - 8]
push esi
push ebx
push ebx
call fcn.0042c8a6
add esp, 0x20
test eax, eax
jne 0x430908
push edi
call fcn.004292bb
jmp 0x430910
push ebx
call fcn.004292bb
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 0x4358e5
Capabilities:
Clear file content

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x2c
push ebx
mov ebx, dword [ebp + 8]
lea ecx, [ebp - 0x2c]
push esi
push edi
push dword [ebp + 0x10]
push dword [ebp + 0xc]
push ebx
call fcn.00435861
mov eax, dword [ebp - 0x2c]
and eax, dword [ebp - 0x28]
cmp eax, 0xffffffff
je 0x435a5d
mov eax, dword [ebp - 0x24]
and eax, dword [ebp - 0x20]
cmp eax, 0xffffffff
je 0x435a5d
mov ecx, dword [ebp - 0x18]
mov eax, dword [ebp - 0x1c]
mov dword [ebp - 8], ecx
mov dword [ebp - 4], eax
test ecx, ecx
jl 0x435a0c
jg 0x43593e
test eax, eax
je 0x435a02
push 1
push 0x1000
call fcn.004292f5
mov esi, eax
pop ecx
pop ecx
test esi, esi
jne 0x435964
mov eax, dword [ebp + 0x14]
push 0xc
pop edi
mov byte [eax + 0x1c], 1
mov dword [eax + 0x18], edi
jmp 0x4359f9
push 0x8000
push ebx
call fcn.00426bf7
mov edi, dword [ebp + 0x14]
pop ecx
pop ecx
mov ecx, dword [ebp - 0x1c]
mov dword [ebp - 0xc], eax
mov eax, dword [ebp - 0x18]
test eax, eax
jl 0x435990
jg 0x43598b
cmp ecx, 0x1000
jb 0x435990
mov ecx, 0x1000
push edi
push ecx
push esi
push ebx
call fcn.0042aaf9
add esp, 0x10
cmp eax, 0xffffffff
je 0x4359d5
mov ecx, dword [ebp - 4]
cdq
sub ecx, eax
mov eax, dword [ebp - 8]
mov dword [ebp - 4], ecx
sbb eax, edx
mov dword [ebp - 8], eax
test eax, eax
jg 0x43598b
jl 0x4359bc
test ecx, ecx
jne 0x43597d
push dword [ebp - 0xc]
push ebx
call fcn.00426bf7
push esi
call fcn.004292bb
add esp, 0xc
xor edi, edi
jmp 0x435a6e
cmp byte [edi + 0x24], 0
je 0x4359ec
cmp dword [edi + 0x20], 5
jne 0x4359ec
mov byte [edi + 0x1c], 1
mov dword [edi + 0x18], 0xd
cmp byte [edi + 0x1c], 0
je 0x4359f7
mov edi, dword [edi + 0x18]
jmp 0x4359f9
xor edi, edi
push esi
call fcn.004292bb
pop ecx
jmp 0x435a6e
test ecx, ecx
jg 0x4359ce
jl 0x435a0c
test eax, eax
jae 0x4359ce
push 0
push dword [ebp + 0x10]
push dword [ebp + 0xc]
push ebx
call fcn.0042c297
and eax, edx
add esp, 0x10
cmp eax, 0xffffffff
jne 0x435a2f
mov edi, dword [ebp + 0x14]
cmp byte [edi + 0x1c], 0
je 0x4359ce
jmp 0x435a66
push ebx
call fcn.00430ef9
pop ecx
push eax
call dword [sym.imp.KERNEL32.dll_SetEndOfFile]
test eax, eax
jne 0x4359ce
mov esi, dword [ebp + 0x14]
call dword [sym.imp.KERNEL32.dll_GetLastError]
push 0xd
mov byte [esi + 0x24], 1
mov dword [esi + 0x20], eax
pop edi
mov byte [esi + 0x1c], 1
mov dword [esi + 0x18], edi
jmp 0x435a6e
mov edi, dword [ebp + 0x14]
cmp byte [edi + 0x1c], 0
je 0x435a6b
mov edi, dword [edi + 0x18]
jmp 0x435a6e
push 0x16
pop edi
push 0
push dword [ebp - 0x28]
push dword [ebp - 0x2c]
push dword [ebp - 0x14]
call fcn.0042c297
add esp, 0x10
mov eax, edi
pop edi
pop esi
pop ebx
leave
ret

Function at 0x435f30
Capabilities:
Parse pe header

Disassembly:
push ebp
mov ebp, esp
mov eax, dword [ebp + 8]
mov ecx, 0x5a4d
cmp word [eax], cx
jne 0x435f5d
mov ecx, dword [eax + 0x3c]
add ecx, eax
cmp dword [ecx], 0x4550
jne 0x435f5d
mov edx, 0x10b
xor eax, eax
cmp word [ecx + 0x18], dx
sete al
pop ebp
ret
xor eax, eax
pop ebp
ret
Function at 0x40a940
Capabilities:
Resolve function by parsing pe exports

Disassembly:
movzx ecx, word [edx + 0x26]
nop
mov esi, dword [edx + 0x28]
jmp 0x40a786
xor edi, edi
jmp 0x40a792
xor eax, eax
nop
jmp 0x40a7a4
lodsb al, byte [esi]
nop
cmp al, 0x61
jmp 0x40a7b5
jl 0x40a7cc
nop
jmp 0x40a7c9
sub al, 0x20
nop
nop
jmp 0x40a7d7
ror edi, 0xd
nop
add edi, eax
nop
jmp 0x40a7ea
dec ecx
jne 0x40a792
jmp 0x40a802
nop
jmp 0x40a813
push edx
jmp 0x40a820
mov edx, dword [edx + 0x10]
nop
jmp 0x40a834
mov eax, dword [edx + 0x3c]
jmp 0x40a846
push edi
nop
add eax, edx
nop
jmp 0x40a857
mov eax, dword [eax + 0x78]
nop
test eax, eax
nop
je 0x40aa5c
nop
add eax, edx
jmp 0x40a876
mov ebx, dword [eax + 0x20]
push eax
jmp 0x40a887
mov ecx, dword [eax + 0x18]
jmp 0x40a895
add ebx, edx
test ecx, ecx
nop
jmp 0x40a8aa
je 0x40aa5a
jmp 0x40a8bc
jmp 0x40a8cb
xor edi, edi
nop
jmp 0x40a8db
dec ecx
mov esi, dword [ebx + ecx*4]
jmp 0x40a8ed
add esi, edx
jmp 0x40a8ff
xor eax, eax
nop
lodsb al, byte [esi]
ror edi, 0xd
add edi, eax
nop
jmp 0x40a91a
cmp al, ah
jmp 0x40a927
jne 0x40a8ef
nop
jmp 0x40a93c
add edi, dword [ebp - 8]
nop
cmp edi, dword [ebp + 0x24]
jmp 0x40a950
jne 0x40a897
nop
nop
pop eax
nop
jmp 0x40a96e
mov ebx, dword [eax + 0x24]
nop
jmp 0x40a984
add ebx, edx
nop
jmp 0x40a99b
mov cx, word [ebx + ecx*2]
jmp 0x40a9b0
or al, 0
add byte [eax], al
mov ebx, dword [eax + 0x1c]
nop
add ebx, edx
mov eax, dword [ebx + ecx*4]
nop
jmp 0x40a9ce
add eax, edx
jmp 0x40a9e1
mov dword [esp + 0x24], eax
jmp 0x40a9f6
pop ebx
nop
pop ebx
jmp 0x40aa0b
popal
jmp 0x40aa1e
pop ecx
nop
pop edx
nop
jmp 0x40aa34
push ecx
jmp 0x40aa45
jmp eax
pop eax
nop
nop
pop edi
nop
pop edx
mov edx, dword [edx]
nop
jmp 0x40aa75
jmp 0x40a76f

Function at 0x40b2d0
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
sbb dl, byte [esi - 0x75]
jne 0x40b2d1
mov al, byte [edi]
sub al, 0x84
ror byte [edi], 0x84
mov esi, 0x6a0000b5
dec esi
div byte [ebx]
rcl byte [ebx - 0x39], 0xf9
add dword [edi - 0x77], edx
inc ebp
cld
mov dword [esi + 0x71], esi
cmovbe ebx, dword [eax + eax*8 + 0x7e8b0000]
mov cl, 0x3b
clc
je 0x418d5b
mov edx, esi
cmp byte [ebx + 0x576ffff], al
or eax, 0xffffffff
jmp 0x40b313
mov edx, dword [esi + 4]
lea ecx, [ebp - 0x56]
push 0
push ecx
push eax
push ebx
push edx
call dword [0x40c08e]
test eax, eax
jbe 0x40b358
rol byte [eax], 0x85
sal byte [esi + 0x2f], 0x8b
inc ebp
cld
mov eax, dword [ebp - 4]
mov edx, dword [esi + 0x50]
mov ecx, dword [esi + 0x54]
xchg edi, eax
pushal
adc ecx, 0x31
sub edi, eax
add ebx, eax
xchg esi, eax
xor dword [eax - 0x7b], edx
dec dword [ecx - 0x4d88abb2]
mov ebp, dword [edi]
or byte [edi - 0x39], bl
inc esi
cmp al, 0x35
add byte [eax], al
add byte [ebx + 0x5e], bl
jb 0x40b339
mov al, 0xc2
add al, 0
mov edi, dword [0x39c098]
call edi
test eax, eax
sbb byte es:[ecx + 0xaeb0845], cl
inc dword [0xafc8005]
add byte [ecx + 0x458b3b45], cl
cld
mov edx, dword [esi + 0x50]
mov ecx, dword [esi + 0x54]
push edi
ror byte [ebp + 0x568908f7], 1
push eax
adc ecx, 0xffffff97
test eax, eax
mov dword [esi + 0x54], ecx
jne 0x40b322
mov dword [esi + 0x3c], 0
mov eax, dword [ebp + 8]
pop edi
pop ebx
pop esi
mov esp, ebp
pop ebp
ret 0x9604