joyce8/EMBER2024-capa huggingface dataset:
Function at 0x100114ab
Capabilities:
Read file on windows

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
mov eax, 0x1020
call fcn.10005af0
mov eax, dword [0x10026040]
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.100100ee
pop ecx
mov ecx, dword [ebp + 8]
mov ebx, eax
cmp dword [ecx + 8], 0
jne 0x100114ed
mov eax, dword [ebp + 0xc]
mov edx, dword [ebp + 0x10]
jmp 0x10011664
mov eax, dword [ecx]
sub eax, dword [ecx + 4]
push esi
push edi
push 0
cdq
push 2
push edx
push eax
call fcn.1001ac60
push dword [ebp - 0x100c]
mov ecx, ebx
mov dword [ebp - 0x1008], eax
mov esi, ebx
mov dword [ebp - 0x1014], edx
and ecx, 0x3f
sar esi, 6
imul edi, ecx, 0x38
push 0
mov eax, dword [esi*4 + 0x100278d8]
push dword [edi + eax + 0x24]
push dword [edi + eax + 0x20]
push ebx
call fcn.100124f1
mov ecx, dword [esi*4 + 0x100278d8]
add esp, 0x14
mov dword [ebp - 0x1010], eax
mov eax, edx
mov edx, dword [ebp - 0x1010]
mov dword [ebp - 0x1020], eax
cmp edx, dword [edi + ecx + 0x20]
jne 0x1001165d
cmp eax, dword [edi + ecx + 0x24]
jne 0x1001165d
xor esi, esi
lea eax, [ebp - 0x101c]
push esi
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 0x1001165d
push dword [ebp - 0x100c]
push esi
push dword [ebp + 0x10]
push dword [ebp + 0xc]
push ebx
call fcn.100124f1
add esp, 0x14
cmp edx, esi
jl 0x1001165d
jg 0x100115b8
cmp eax, esi
jb 0x1001165d
mov ebx, dword [ebp - 0x1014]
mov eax, dword [ebp - 0x101c]
cmp ebx, esi
jg 0x1001165d
jl 0x100115da
cmp dword [ebp - 0x1008], eax
ja 0x1001165d
lea edi, [ebp - 0x1004]
xorps xmm0, xmm0
add edi, eax
movlpd qword [ebp - 0x1018], xmm0
lea ecx, [ebp - 0x1004]
cmp dword [ebp - 0x1008], esi
jne 0x100115ff
cmp ebx, esi
je 0x10011644
mov edx, dword [ebp - 0x1014]
mov esi, dword [ebp - 0x1018]
cmp ecx, edi
jae 0x10011644
mov al, byte [ecx]
cmp al, 0xd
jne 0x10011625
lea eax, [edi - 1]
cmp ecx, eax
jae 0x10011631
cmp byte [ecx + 1], 0xa
jne 0x10011631
inc ecx
jmp 0x10011631
movzx eax, al
movsx eax, byte [eax + 0x100262e8]
add ecx, eax
add esi, 1
adc edx, 0
inc ecx
cmp esi, dword [ebp - 0x1008]
jne 0x1001160b
cmp edx, ebx
jne 0x1001160b
lea eax, [ebp - 0x1004]
sub ecx, eax
mov eax, ecx
cdq
add eax, dword [ebp - 0x1010]
adc edx, dword [ebp - 0x1020]
jmp 0x10011662
or edx, 0xffffffff
mov eax, edx
pop edi
pop esi
mov ecx, dword [ebp - 4]
xor ecx, ebp
pop ebx
call fcn.10004b0b
leave
ret
Function at 0x100118e3
Capabilities:
Get file size

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
mov eax, dword [ebp + 8]
sub esp, 0x18
mov eax, dword [eax + 0xc]
nop
shr eax, 3
test al, 1
je 0x100118fd
mov al, 1
leave
ret
mov eax, dword [ebp + 8]
push ebx
push esi
mov eax, dword [eax + 0xc]
nop
test al, 0xc0
mov eax, dword [ebp + 8]
je 0x10011914
mov ecx, dword [eax]
cmp ecx, dword [eax + 4]
je 0x1001196c
mov eax, dword [eax + 0x10]
nop
push eax
call fcn.100185d3
mov esi, eax
pop ecx
cmp esi, 0xffffffff
je 0x1001196c
xor ebx, ebx
lea eax, [ebp - 0x10]
inc ebx
xorps xmm0, xmm0
push ebx
push eax
movlpd qword [ebp - 8], xmm0
push dword [ebp - 4]
push dword [ebp - 8]
push esi
call dword [sym.imp.KERNEL32.dll_SetFilePointerEx]
test eax, eax
je 0x1001196c
lea eax, [ebp - 0x18]
push eax
push esi
call dword [sym.imp.KERNEL32.dll_GetFileSizeEx]
test eax, eax
je 0x1001196c
mov eax, dword [ebp - 0x10]
cmp eax, dword [ebp - 0x18]
jne 0x10011966
mov eax, dword [ebp - 0xc]
cmp eax, dword [ebp - 0x14]
je 0x10011968
xor bl, bl
mov al, bl
jmp 0x1001196e
xor al, al
pop esi
pop ebx
leave
ret
Function at 0x1001197d
Capabilities:
Read file on windows

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x18
mov edx, dword [ebp + 8]
mov ecx, edx
push ebx
mov ebx, dword [ebp + 0xc]
mov eax, edx
sar ecx, 6
and eax, 0x3f
push esi
push edi
imul edi, eax, 0x38
mov eax, dword [ecx*4 + 0x100278d8]
mov dword [ebp - 0x18], ecx
mov ecx, dword [edi + eax + 0x18]
mov dword [ebp - 0x14], ecx
mov ecx, dword [ebp + 0x10]
test ecx, ecx
je 0x100119bf
cmp byte [ebx], 0xa
jne 0x100119bf
or byte [edi + eax + 0x28], 4
jmp 0x100119c4
and byte [edi + eax + 0x28], 0xfb
add ecx, ebx
mov eax, ebx
mov dword [ebp - 0x10], ecx
mov esi, ebx
cmp ebx, ecx
jae 0x10011ac7
mov cl, byte [eax]
cmp cl, 0x1a
je 0x10011aa2
lea ebx, [eax + 1]
mov dword [ebp - 8], ebx
mov ebx, dword [ebp + 0xc]
cmp cl, 0xd
je 0x100119f3
mov eax, dword [ebp - 8]
jmp 0x10011a13
mov edx, dword [ebp - 0x10]
cmp dword [ebp - 8], edx
mov edx, dword [ebp + 8]
jae 0x10011a2f
mov ebx, dword [ebp - 8]
cmp byte [ebx], 0xa
jne 0x10011a0d
add eax, 2
mov cl, 0xa
jmp 0x10011a10
mov eax, dword [ebp - 8]
mov ebx, dword [ebp + 0xc]
mov byte [esi], cl
mov dword [ebp - 0xc], 1
mov dword [ebp - 8], esi
mov esi, dword [ebp - 0xc]
add esi, dword [ebp - 8]
cmp eax, dword [ebp - 0x10]
jb 0x100119d5
jmp 0x10011ac7
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 0x10011a9d
cmp dword [ebp - 0x10], 0
je 0x10011a9d
mov edx, dword [ebp - 0x18]
mov eax, dword [edx*4 + 0x100278d8]
test byte [eax + edi + 0x28], 0x48
je 0x10011a7c
mov cl, byte [ebp - 1]
cmp cl, 0xa
jne 0x10011a6c
mov byte [esi], 0xa
jmp 0x10011ac6
mov byte [esi], 0xd
mov eax, dword [edx*4 + 0x100278d8]
mov byte [eax + edi + 0x2a], cl
jmp 0x10011ac6
cmp byte [ebp - 1], 0xa
jne 0x10011a86
cmp esi, ebx
je 0x10011a67
push 1
push 0xffffffffffffffff
push 0xffffffffffffffff
push dword [ebp + 8]
call fcn.1001250f
add esp, 0x10
cmp byte [ebp - 1], 0xa
je 0x10011ac7
mov byte [esi], 0xd
jmp 0x10011ac6
mov eax, edx
and edx, 0x3f
sar eax, 6
imul edx, edx, 0x38
mov edi, dword [eax*4 + 0x100278d8]
mov al, byte [edi + edx + 0x28]
test al, 0x40
jne 0x10011ac4
or al, 2
mov byte [edi + edx + 0x28], al
jmp 0x10011ac7
mov byte [esi], cl
inc esi
sub esi, ebx
pop edi
mov eax, esi
pop esi
pop ebx
leave
ret
Function at 0x10011ad0
Capabilities:
Read file on windows

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x18
mov eax, dword [ebp + 8]
mov edx, dword [ebp + 8]
and eax, 0x3f
push ebx
mov ebx, dword [ebp + 0xc]
sar edx, 6
push esi
push edi
imul edi, eax, 0x38
mov eax, dword [edx*4 + 0x100278d8]
mov dword [ebp - 8], edx
mov edx, dword [eax + edi + 0x18]
mov dword [ebp - 0x18], edx
mov edx, dword [ebp + 0x10]
test edx, edx
je 0x10011b14
push 0xa
pop esi
cmp word [ebx], si
jne 0x10011b14
or byte [eax + edi + 0x28], 4
jmp 0x10011b19
and byte [eax + edi + 0x28], 0xfb
lea edx, [ebx + edx*2]
mov eax, ebx
mov dword [ebp - 0x10], edx
mov esi, ebx
cmp ebx, edx
jae 0x10011c84
movzx edx, word [eax]
mov ecx, edx
mov dword [ebp - 0xc], ecx
movzx ecx, cx
mov dword [ebp - 0x14], ecx
mov ecx, dword [ebp + 8]
cmp edx, 0x1a
je 0x10011c5c
lea ebx, [eax + 2]
mov dword [ebp - 4], ebx
push 0xd
pop ebx
cmp dx, bx
mov ebx, dword [ebp + 0xc]
je 0x10011b66
mov ebx, dword [ebp - 0x14]
mov edx, esi
mov eax, dword [ebp - 4]
movzx ebx, bx
mov dword [ebp - 4], ebx
jmp 0x10011b90
mov edx, dword [ebp - 4]
cmp edx, dword [ebp - 0x10]
jae 0x10011baf
push 0xa
pop ebx
cmp word [edx], bx
jne 0x10011b7d
push ebx
add eax, 4
pop edx
jmp 0x10011b85
mov eax, edx
mov edx, dword [ebp - 0xc]
movzx edx, dx
movzx edx, dx
mov dword [ebp - 4], edx
mov edx, esi
mov dword [ebp - 0x14], esi
mov ecx, dword [ebp - 4]
mov ebx, dword [ebp + 0xc]
mov dword [ebp - 0xc], 2
mov word [esi], cx
mov esi, dword [ebp - 0xc]
add esi, edx
cmp eax, dword [ebp - 0x10]
jb 0x10011b2b
jmp 0x10011c84
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 0x10011c57
cmp dword [ebp - 0x14], 0
je 0x10011c57
mov eax, dword [ebp - 8]
push 0xa
mov eax, dword [eax*4 + 0x100278d8]
test byte [eax + edi + 0x28], 0x48
pop eax
je 0x10011c33
mov dx, word [ebp - 4]
cmp dx, ax
jne 0x10011bfb
mov word [esi], ax
jmp 0x10011c81
push 0xd
pop eax
mov word [esi], ax
mov eax, dword [ebp - 8]
movzx ecx, dx
shr ecx, 8
push 0xa
mov eax, dword [eax*4 + 0x100278d8]
mov byte [eax + edi + 0x2a], dl
mov edx, dword [ebp - 8]
mov eax, dword [edx*4 + 0x100278d8]
mov byte [eax + edi + 0x2b], cl
mov eax, dword [edx*4 + 0x100278d8]
pop ecx
mov byte [eax + edi + 0x2c], cl
jmp 0x10011c81
cmp word [ebp - 4], ax
jne 0x10011c3d
cmp esi, ebx
je 0x10011bf3
push 1
push 0xffffffffffffffff
push 0xfffffffffffffffe
push dword [ebp + 8]
call fcn.1001250f
add esp, 0x10
push 0xa
pop eax
cmp word [ebp - 4], ax
je 0x10011c84
push 0xd
pop eax
jmp 0x10011bf3
mov eax, ecx
and ecx, 0x3f
sar eax, 6
imul ecx, ecx, 0x38
mov edi, dword [eax*4 + 0x100278d8]
mov al, byte [edi + ecx + 0x28]
test al, 0x40
jne 0x10011c7e
or al, 2
mov byte [edi + ecx + 0x28], al
jmp 0x10011c84
mov word [esi], dx
add esi, 2
sub esi, ebx
and esi, 0xfffffffe
pop edi
mov eax, esi
pop esi
pop ebx
leave
ret
Function at 0x10015c06
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 0x10015ca3
push ebx
push esi
call fcn.10015bcf
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.10014978
add esp, 0x24
mov dword [ebp - 4], eax
test eax, eax
jne 0x10015c50
push esi
call dword [sym.imp.KERNEL32.dll_FreeEnvironmentStringsW]
xor eax, eax
jmp 0x10015ca2
push edi
push eax
call fcn.100126f0
mov edi, eax
pop ecx
push ebx
test edi, edi
jne 0x10015c70
call fcn.1000da10
pop ecx
push esi
call dword [sym.imp.KERNEL32.dll_FreeEnvironmentStringsW]
xor eax, eax
jmp 0x10015ca1
push ebx
push dword [ebp - 4]
push edi
push dword [ebp - 8]
push esi
push ebx
push ebx
call fcn.10014978
add esp, 0x20
test eax, eax
jne 0x10015c8f
push edi
call fcn.1000da10
jmp 0x10015c97
push ebx
call fcn.1000da10
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 0x10017fa1
Capabilities:
Get geographical location

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push ecx
push esi
push edi
call fcn.1000de80
mov esi, dword [ebp + 8]
mov edi, eax
push 2
lea eax, [ebp - 4]
mov ecx, esi
push eax
and ecx, 0x3ff
push 0x20000001
or ecx, 0x400
push ecx
call dword [sym.imp.KERNEL32.dll_GetLocaleInfoW]
test eax, eax
je 0x10018010
cmp esi, dword [ebp - 4]
je 0x1001800b
cmp dword [ebp + 0xc], 0
je 0x1001800b
mov esi, dword [edi + 0x50]
lea ecx, [esi + 2]
mov ax, word [esi]
add esi, 2
test ax, ax
jne 0x10017fe8
push dword [edi + 0x50]
sub esi, ecx
sar esi, 1
call fcn.10017af6
pop ecx
xor ecx, ecx
cmp eax, esi
setne cl
mov eax, ecx
jmp 0x10018012
xor eax, eax
inc eax
jmp 0x10018012
xor eax, eax
pop edi
pop esi
leave
ret
Function at 0x1001807d
Capabilities:
Get geographical location

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x18
mov eax, dword [0x10026040]
xor eax, ebp
mov dword [ebp - 4], eax
mov eax, dword [ebp + 0xc]
push ebx
mov ebx, dword [ebp + 0x10]
push esi
mov esi, dword [ebp + 8]
push edi
mov dword [ebp - 0x18], eax
call fcn.1000de80
add eax, 0x50
lea edi, [ebp - 0x10]
mov dword [ebp - 0x14], eax
xor eax, eax
stosd dword es:[edi], eax
stosd dword es:[edi], eax
stosd dword es:[edi], eax
call fcn.1000de80
lea ecx, [ebp - 0x10]
xor edx, edx
mov dword [eax + 0x34c], ecx
lea ecx, [esi + 0x80]
mov eax, dword [ebp - 0x14]
mov dword [eax], esi
lea edi, [eax + 4]
mov dword [edi], ecx
test ecx, ecx
je 0x100180f4
cmp word [ecx], dx
je 0x100180f4
mov eax, dword [0x1001f9bc]
push edi
dec eax
push eax
push 0x1001f8a8
call fcn.10018016
mov eax, dword [ebp - 0x14]
add esp, 0xc
xor edx, edx
mov dword [ebp - 0x10], edx
mov eax, dword [eax]
test eax, eax
je 0x10018167
cmp word [eax], dx
je 0x10018167
mov eax, dword [edi]
test eax, eax
je 0x10018118
cmp word [eax], dx
je 0x10018118
lea eax, [ebp - 0x10]
push eax
call fcn.100179fc
jmp 0x10018121
lea eax, [ebp - 0x10]
push eax
call fcn.10017a97
cmp dword [ebp - 0x10], 0
pop ecx
jne 0x10018191
mov eax, dword [0x1001f8a4]
push dword [ebp - 0x14]
dec eax
push eax
push 0x1001f598
call fcn.10018016
add esp, 0xc
test al, al
je 0x10018191
mov eax, dword [edi]
xor edi, edi
test eax, eax
je 0x1001815c
cmp word [eax], di
je 0x1001815c
lea eax, [ebp - 0x10]
push eax
call fcn.100179fc
pop ecx
jmp 0x10018193
lea eax, [ebp - 0x10]
push eax
call fcn.10017a97
jmp 0x10018159
mov eax, dword [edi]
test eax, eax
je 0x1001817e
cmp word [eax], dx
je 0x1001817e
lea eax, [ebp - 0x10]
push eax
call fcn.100179b1
pop ecx
jmp 0x10018191
mov dword [ebp - 0x10], 0x104
call dword [sym.imp.KERNEL32.dll_GetUserDefaultLCID]
mov dword [ebp - 8], eax
mov dword [ebp - 0xc], eax
xor edi, edi
cmp dword [ebp - 0x10], 0
je 0x1001825c
lea eax, [ebp - 0x10]
push eax
lea eax, [esi + 0x100]
neg esi
sbb esi, esi
and esi, eax
push esi
call fcn.10017e9b
mov esi, eax
pop ecx
pop ecx
test esi, esi
je 0x1001825c
movzx ecx, si
push ecx
call dword [sym.imp.KERNEL32.dll_IsValidCodePage]
test eax, eax
je 0x1001825c
push 1
push dword [ebp - 0xc]
call dword [sym.imp.KERNEL32.dll_IsValidLocale]
test eax, eax
je 0x1001825c
mov eax, dword [ebp - 0x18]
test eax, eax
je 0x100181e9
mov dword [eax], esi
mov eax, dword [ebp - 0x14]
push edi
push 0x55
add eax, 0x250
push eax
push dword [ebp - 0xc]
call fcn.1000fc7b
test ebx, ebx
je 0x10018257
push edi
push 0x55
lea eax, [ebx + 0x120]
push eax
push dword [ebp - 0xc]
call fcn.1000fc7b
push 0x40
push ebx
push 0x1001
push dword [ebp - 0xc]
call dword [sym.imp.KERNEL32.dll_GetLocaleInfoW]
test eax, eax
je 0x1001825c
push 0x40
lea eax, [ebx + 0x80]
push eax
push 0x1002
push dword [ebp - 8]
call dword [sym.imp.KERNEL32.dll_GetLocaleInfoW]
test eax, eax
je 0x1001825c
push 0xa
push 0x10
lea ecx, [ebx + 0x100]
push ecx
push esi
call fcn.1001931f
add esp, 0x10
xor eax, eax
inc eax
jmp 0x1001825e
xor eax, eax
mov ecx, dword [ebp - 4]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.10004b0b
leave
ret
Function at 0x1001ac00
Capabilities:
Parse pe header

Disassembly:
push ebp
mov ebp, esp
mov eax, dword [ebp + 8]
mov ecx, 0x5a4d
cmp word [eax], cx
jne 0x1001ac2d
mov ecx, dword [eax + 0x3c]
add ecx, eax
cmp dword [ecx], 0x4550
jne 0x1001ac2d
mov edx, 0x10b
xor eax, eax
cmp word [ecx + 0x18], dx
sete al
pop ebp
ret
xor eax, eax
pop ebp
ret
Function at 0x403fb8
Capabilities:
Encode data using xor

Disassembly:
and eax, 0x32fffb27
cmpsb byte [esi], byte es:[edi]
aam 0xe8
xchg edx, eax
lea ecx, [edi]
add byte [0xcd00176e], ah
push ds
sbb dl, byte [edi + 0x6a0fd5de]
into
push 0x5d
sbb al, 0x46
sbb byte [eax + 0x5c958d13], 0xff
pop edi
mov cl, 0xe
add ch, cl
std
rcl byte [0x42e7958d], 0xd0
xchg ebp, eax
jnp 0x405c1e79
int 0xfd
cmpsd dword [esi], dword es:[edi]
push ebp
lea edx, [ebp - 0x6e58fe9b]
pop edi
push 0x4f8652
xor al, byte [edi]
daa
add ebp, ecx
xchg ebp, eax
test byte [0x4f865a], dl
movsd dword es:[edi], dword [esi]
rcr byte [ecx], 1
inc eax
int 0xc6
pop esp
call [edi + 0x3d]
str ebp
in al, 0x16
lea edx, [ebp - 0x7a32ea10]
dec edi
add dh, dh
push esi
jnp 0x401bed
movsd dword es:[edi], dword [esi]
in eax, 0x13
inc eax
int 0xfd
out 3, eax
int 0x95
pop esp
push ebx
xor al, byte [eax - 0x6a72efe5]
in al, 0x73
dec esi
test al, 0x53
push edx
lea edx, [ebp + 0x1e8c760b]
sbb dl, byte [edi + 0x6a0fd5de]
iretd
lea esi, [0x401020]
lea ebx, [0x403fb4]
mov edx, dword [ebx]
xor dword [esi], edx
lodsd eax, dword [esi]
cmp esi, ebx
jne 0x403fc6
jmp 0x401b69

Function at 0x430000
Capabilities:
Encode data using xor
Packed with generic packer

Disassembly:
pushal
nop
nop
nop
nop
nop
nop
mov eax, section..text
mov ebx, 0x408f6c
nop
nop
mov ecx, 0x575d6aa4
nop
nop
test eax, eax
nop
nop
nop
nop
nop
nop
je 0x43004e
nop
nop
nop
nop
xor dword [eax], ecx
nop
nop
inc eax
nop
nop
nop
nop
nop
inc eax
nop
nop
nop
nop
nop
inc eax
nop
nop
nop
nop
inc eax
nop
nop
nop
nop
nop
cmp eax, ebx
nop
nop
nop
nop
nop
jne 0x430024
nop
nop
nop
mov eax, section..data
mov ebx, 0x42e3d0
nop
mov ecx, 0x2e741ca2
nop
nop
test eax, eax
nop
nop
nop
nop
nop
nop
nop
je 0x430084
nop
xor dword [eax], ecx
nop
nop
nop
nop
nop
nop
add eax, 4
nop
nop
nop
nop
cmp eax, ebx
nop
nop
jne 0x43006c
nop
nop
nop
nop
nop
nop
nop
popal
jmp 0x401219
Function at 0x40347f
Capabilities:
Enumerate pe sections

Disassembly:
push ebp
mov ebp, esp
mov eax, dword [ebp + 8]
push esi
mov ecx, dword [eax + 0x3c]
add ecx, eax
movzx eax, word [ecx + 0x14]
lea edx, [ecx + 0x18]
add edx, eax
movzx eax, word [ecx + 6]
imul esi, eax, 0x28
add esi, edx
jmp 0x4034b4
mov ecx, dword [edx + 0xc]
cmp dword [ebp + 0xc], ecx
jb 0x4034b1
mov eax, dword [edx + 8]
add eax, ecx
cmp dword [ebp + 0xc], eax
jb 0x4034bd
add edx, 0x28
cmp edx, esi
jne 0x40349f
xor eax, eax
pop esi
pop ebp
ret
mov eax, edx
jmp 0x4034ba

Function at 0x4038fc
Capabilities:
Parse pe header

Disassembly:
push 0
call dword [sym.imp.KERNEL32.dll_GetModuleHandleW]
test eax, eax
je 0x40393b
mov ecx, 0x5a4d
cmp word [eax], cx
jne 0x40393b
mov ecx, dword [eax + 0x3c]
add ecx, eax
cmp dword [ecx], 0x4550
jne 0x40393b
mov eax, 0x10b
cmp word [ecx + 0x18], ax
jne 0x40393b
cmp dword [ecx + 0x74], 0xe
jbe 0x40393b
cmp dword [ecx + 0xe8], 0
setne al
ret
xor al, al
ret
Function at 0x40da2e
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 0x40dacb
push ebx
push esi
call fcn.0040d9f7
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.0040d98d
add esp, 0x24
mov dword [ebp - 4], eax
test eax, eax
jne 0x40da78
push esi
call dword [sym.imp.KERNEL32.dll_FreeEnvironmentStringsW]
xor eax, eax
jmp 0x40daca
push edi
push eax
call fcn.0040a870
mov edi, eax
pop ecx
push ebx
test edi, edi
jne 0x40da98
call fcn.00409e20
pop ecx
push esi
call dword [sym.imp.KERNEL32.dll_FreeEnvironmentStringsW]
xor eax, eax
jmp 0x40dac9
push ebx
push dword [ebp - 4]
push edi
push dword [ebp - 8]
push esi
push ebx
push ebx
call fcn.0040d98d
add esp, 0x20
test eax, eax
jne 0x40dab7
push edi
call fcn.00409e20
jmp 0x40dabf
push ebx
call fcn.00409e20
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 0x4120ab
Capabilities:
Get file size

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
mov eax, dword [ebp + 8]
sub esp, 0x18
mov eax, dword [eax + 0xc]
nop
shr eax, 3
test al, 1
je 0x4120c5
mov al, 1
leave
ret
mov eax, dword [ebp + 8]
push ebx
push esi
mov eax, dword [eax + 0xc]
nop
test al, 0xc0
mov eax, dword [ebp + 8]
je 0x4120dc
mov ecx, dword [eax]
cmp ecx, dword [eax + 4]
je 0x412134
mov eax, dword [eax + 0x10]
nop
push eax
call fcn.0040e167
mov esi, eax
pop ecx
cmp esi, 0xffffffff
je 0x412134
xor ebx, ebx
lea eax, [ebp - 0x10]
inc ebx
xorps xmm0, xmm0
push ebx
push eax
movlpd qword [ebp - 8], xmm0
push dword [ebp - 4]
push dword [ebp - 8]
push esi
call dword [sym.imp.KERNEL32.dll_SetFilePointerEx]
test eax, eax
je 0x412134
lea eax, [ebp - 0x18]
push eax
push esi
call dword [sym.imp.KERNEL32.dll_GetFileSizeEx]
test eax, eax
je 0x412134
mov eax, dword [ebp - 0x10]
cmp eax, dword [ebp - 0x18]
jne 0x41212e
mov eax, dword [ebp - 0xc]
cmp eax, dword [ebp - 0x14]
je 0x412130
xor bl, bl
mov al, bl
jmp 0x412136
xor al, al
pop esi
pop ebx
leave
ret

Function at 0x415c80
Capabilities:
Parse pe header

Disassembly:
push ebp
mov ebp, esp
mov eax, dword [ebp + 8]
mov ecx, 0x5a4d
cmp word [eax], cx
jne 0x415cad
mov ecx, dword [eax + 0x3c]
add ecx, eax
cmp dword [ecx], 0x4550
jne 0x415cad
mov edx, 0x10b
xor eax, eax
cmp word [ecx + 0x18], dx
sete al
pop ebp
ret
xor eax, eax
pop ebp
ret
Function at 0x503b67
Capabilities:
Accept command line arguments
Hide graphical window

Disassembly:
mov ecx, ebp
push ebp
mov ebp, esp
mov dword [0x505076], ecx
call dword [sym.imp.kernel32.dll_GetCommandLineA]
mov dword [0x505298], eax
mov dword [0x505220], 0x5032dd
mov dword [0x50521c], 2
jmp 0x503b97
mov dword [0x505224], 0
mov dword [0x505228], 0
mov dword [0x505218], 0x30
push 0
call dword [sym.imp.kernel32.dll_GetModuleHandleA]
mov dword [0x50522c], eax
mov dword [0x505240], 0x504088
mov dword [0x505238], 0xf
mov dword [0x50506e], eax
push 0x7f00
push 0
call dword [sym.imp.user32.dll_LoadIconA]
mov dword [0x505230], eax
mov dword [0x505244], eax
push 0x7f00
push 0
call dword [sym.imp.user32.dll_LoadCursorA]
mov dword [0x505234], eax
push 0x505218
call dword [sym.imp.user32.dll_RegisterClassExA]
push 0
push dword [0x50506e]
push 0
push 0
push 0x1e5
push 0x21e
push 0xffffe52a
push 0xfffff588
push 0x40000
push str.wait
push str.aroka
push 0
call dword [sym.imp.user32.dll_CreateWindowExA]
mov dword [0x505290], eax
push 5
push dword [0x505290]
call dword [sym.imp.user32.dll_ShowWindow]
push dword [0x505290]
call dword [sym.imp.user32.dll_UpdateWindow]
jmp 0x503c6a
push 0
push 0
push 0
push 0x505248
call dword [sym.imp.user32.dll_GetMessageA]
or eax, eax
je 0x503c97
push 0x505248
call dword [sym.imp.user32.dll_TranslateMessage]
push 0x505248
call dword [sym.imp.user32.dll_DispatchMessageA]
jmp 0x503c6a
mov eax, dword [0x505250]
jmp 0x503ca4
jmp section..htext

Function at 0x42e000
Capabilities:
Encode data using xor
Packed with generic packer

Disassembly:
pushal
nop
nop
nop
nop
nop
call 0x42e00c
nop
nop
nop
nop
pop eax
nop
nop
add eax, 0x403ac5
sub eax, 0x403a6b
nop
nop
mov ebx, dword [eax]
nop
nop
nop
nop
nop
mov ecx, dword [eax + 4]
nop
mov edx, dword [eax + 8]
nop
nop
nop
nop
nop
nop
xor dword [ebx], edx
nop
nop
nop
nop
add ebx, 4
nop
nop
nop
nop
cmp ebx, ecx
jl 0x42e030
nop
nop
nop
nop
add eax, 0xc
nop
nop
nop
nop
nop
cmp dword [eax], 0
nop
nop
nop
nop
jne 0x42e01e
nop
nop
nop
nop
popal
nop
nop
jmp fcn.00401219