joyce8/EMBER2024-capa huggingface dataset:
Function at 0x10088540
Capabilities:
Create process on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x64
and dword [ebp - 4], 0
push ebx
push esi
push edi
mov ebx, ecx
push ecx
lea ecx, [ebp - 4]
call fcn.100884d2
mov esi, eax
test esi, esi
jns 0x10088574
cmp dword [ebp - 4], 0
je 0x1008856d
push dword [ebp - 4]
call fcn.100a7e8c
pop ecx
mov eax, esi
jmp 0x1008860e
xor eax, eax
lea edi, [ebp - 0x14]
stosd dword es:[edi], eax
push 0x44
pop esi
push esi
stosd dword es:[edi], eax
stosd dword es:[edi], eax
stosd dword es:[edi], eax
lea eax, [ebp - 0x60]
xor edi, edi
push edi
push eax
call fcn.100a84d0
add esp, 0xc
mov dword [ebp - 0x60], esi
mov esi, dword [ebp - 4]
lea eax, [ebp - 0x14]
push eax
lea eax, [ebp - 0x60]
push eax
push edi
push edi
push 0x20
push edi
push edi
push edi
push esi
push edi
call dword [sym.imp.KERNEL32.dll_CreateProcessW]
test eax, eax
jne 0x100885f0
call fcn.1008aeae
mov edi, eax
mov ecx, dword [0x100cd1f8]
cmp ecx, 0x100cd1f8
je 0x100885e1
test byte [ecx + 0x1c], 1
je 0x100885e1
push edi
push esi
push dword [ecx + 0x14]
mov edx, 0x10023e64
push dword [ecx + 0x10]
push 0x18
pop ecx
call fcn.1008808e
test esi, esi
je 0x100885ec
push esi
call fcn.100a7e8c
pop ecx
mov eax, edi
jmp 0x1008860e
mov ecx, dword [ebp - 0x10]
test ecx, ecx
je 0x100885fc
call fcn.10088d27
mov eax, dword [ebp - 0x14]
mov dword [ebx], eax
test esi, esi
je 0x1008860c
push esi
call fcn.100a7e8c
pop ecx
xor eax, eax
pop edi
pop esi
pop ebx
leave
ret 0x20

Function at 0x10089089
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
push ecx
push ecx
push ebx
push esi
push edi
mov edi, dword [ebp + 8]
mov ebx, ecx
push 4
pop esi
jmp 0x100890ae
mov eax, dword [ebp - 4]
cmp eax, esi
je 0x10089103
test eax, eax
je 0x100890fc
cmp eax, esi
ja 0x100890fc
sub esi, eax
add edi, eax
and dword [ebp - 4], 0
lea eax, [ebp - 4]
push 0
push eax
push esi
push edi
push ebx
call dword [sym.imp.KERNEL32.dll_WriteFile]
test eax, eax
jne 0x1008909b
call fcn.1008aeae
mov esi, eax
test esi, esi
jns 0x10089103
mov ecx, dword [0x100cd1f8]
cmp ecx, 0x100cd1f8
je 0x100890f8
test byte [ecx + 0x1c], 1
je 0x100890f8
push esi
push dword [ecx + 0x14]
mov edx, 0x10023fa0
push dword [ecx + 0x10]
push 0x13
pop ecx
call fcn.100880f0
mov eax, esi
jmp 0x10089105
mov esi, 0x8000ffff
jmp 0x100890d0
xor eax, eax
pop edi
pop esi
pop ebx
leave
ret 4

Function at 0x1008928b
Capabilities:
Check if file exists
Get file attributes

Disassembly:
push ecx
push esi
push edi
mov edi, edx
mov esi, ecx
push edi
call dword [sym.imp.KERNEL32.dll_GetFileAttributesW]
cmp eax, 0xffffffff
jne 0x100892e0
call fcn.1008aeae
mov esi, eax
cmp esi, 0x80070002
je 0x100892dc
cmp esi, 0x80070003
je 0x100892dc
mov eax, dword [0x100cd1f8]
cmp eax, 0x100cd1f8
je 0x100892dc
test byte [eax + 0x1c], 1
je 0x100892dc
push esi
push edi
push dword [eax + 0x14]
mov edx, 0x10023fa0
push dword [eax + 0x10]
push 0x1e
pop ecx
call fcn.1008808e
mov eax, esi
jmp 0x100892e4
mov dword [esi], eax
xor eax, eax
pop edi
pop esi
pop ecx
ret
Function at 0x10089339
Capabilities:
Create thread

Disassembly:
push ebp
mov ebp, esp
push ecx
push ecx
push esi
lea eax, [ebp - 4]
mov esi, ecx
push eax
xor ecx, ecx
push ecx
push dword [ebp + 0x10]
mov dword [ebp - 4], ecx
push 0x10075410
push ecx
push ecx
call fcn.100b0bdc
add esp, 0x18
mov dword [esi], eax
test eax, eax
je 0x10089397
mov eax, dword [0x100cd1f8]
cmp eax, 0x100cd1f8
je 0x10089387
test byte [eax + 0x1c], 4
je 0x10089387
push 0x10023fa0
push 0x2a
push dword [eax + 0x14]
push dword [eax + 0x10]
call fcn.10088048
mov ecx, dword [ebp + 0x18]
test ecx, ecx
je 0x10089393
mov eax, dword [ebp - 4]
mov dword [ecx], eax
xor eax, eax
jmp 0x100893f2
mov esi, 0x80004005
call fcn.1009546a
mov eax, dword [eax]
sub eax, 0xb
je 0x100893c5
sub eax, 1
je 0x100893b7
sub eax, 1
je 0x100893be
sub eax, 9
jne 0x100893ca
mov esi, 0x8007000e
jmp 0x100893ca
mov esi, 0x80070005
jmp 0x100893ca
mov esi, 0x8007009b
mov eax, dword [0x100cd1f8]
cmp eax, 0x100cd1f8
je 0x100893f0
test byte [eax + 0x1c], 1
je 0x100893f0
push esi
push dword [eax + 0x14]
mov edx, 0x10023fa0
push dword [eax + 0x10]
push 0x2b
pop ecx
call fcn.100880f0
mov eax, esi
pop esi
leave
ret 0x14

Function at 0x1008a343
Capabilities:
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
sub esp, 0xc
push ebx
mov ebx, dword [ebp + 0xc]
push esi
push edi
mov edi, dword [ebp + 0x14]
mov eax, dword [ebx]
mov dword [ebp - 4], eax
mov dword [ebp - 0xc], edx
mov eax, dword [edi]
mov dword [ebp - 8], eax
lea eax, [ebp - 8]
push eax
push dword [ebp + 0x18]
lea eax, [ebp - 4]
push dword [ebp + 8]
push 0
push eax
push dword [ebp + 0x10]
push edx
push ecx
call dword [sym.imp.ADVAPI32.dll_RegEnumValueW]
movzx esi, ax
or esi, 0x80070000
test eax, eax
cmovle esi, eax
test esi, esi
js 0x1008a3b6
mov edx, dword [ebp - 4]
mov eax, 0x800700ea
inc edx
cmp dword [ebp + 0x10], 0
je 0x1008a3a0
cmp edx, dword [ebx]
cmova esi, eax
cmp dword [ebp + 0x18], 0
mov ecx, dword [ebp - 8]
je 0x1008a3ae
cmp ecx, dword [edi]
cmova esi, eax
mov dword [ebx], edx
mov dword [edi], ecx
mov eax, esi
jmp 0x1008a40b
mov eax, 0x80070103
cmp esi, eax
je 0x1008a40b
add eax, 0xffffffe7
cmp esi, eax
je 0x1008a3f1
mov eax, dword [0x100cd1f8]
cmp eax, 0x100cd1f8
je 0x1008a3b2
test byte [eax + 0x1c], 1
je 0x1008a3b2
push esi
push dword [ebp - 0xc]
mov edx, 0x10023fdc
push dword [eax + 0x14]
push dword [eax + 0x10]
push 0x1e
pop ecx
call fcn.10088067
jmp 0x1008a3b2
mov ecx, dword [ebp - 4]
mov edx, dword [ebp - 8]
inc ecx
cmp dword [ebx], ecx
jb 0x1008a407
cmp dword [edi], edx
jb 0x1008a407
mov eax, 0x8000ffff
jmp 0x1008a40b
mov dword [ebx], ecx
mov dword [edi], edx
pop edi
pop esi
pop ebx
leave
ret 0x14
Function at 0x10090313
Capabilities:
Encode data using xor
Hash data with crc32

Disassembly:
push ebp
mov ebp, esp
push esi
push edi
mov edi, dword [ebp + 8]
mov edx, ecx
xor esi, esi
movzx ecx, byte [esi + edi]
movzx eax, dl
xor ecx, eax
shr edx, 8
xor edx, dword [ecx*4 + 0x10025290]
inc esi
cmp esi, 0x10
jb 0x1009031f
pop edi
pop esi
mov eax, edx
pop ebp
ret 4

Function at 0x10098f24
Capabilities:
Parse pe header

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

Function at 0x1009ce5b
Capabilities:
Get geographical location

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push ecx
push esi
push edi
call fcn.10095875
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 0x1009ceca
cmp esi, dword [ebp - 4]
je 0x1009cec5
cmp dword [ebp + 0xc], 0
je 0x1009cec5
mov esi, dword [edi + 0x50]
lea ecx, [esi + 2]
mov ax, word [esi]
add esi, 2
test ax, ax
jne 0x1009cea2
push dword [edi + 0x50]
sub esi, ecx
sar esi, 1
call fcn.1009c998
pop ecx
xor ecx, ecx
cmp eax, esi
setne cl
mov eax, ecx
jmp 0x1009cecc
xor eax, eax
inc eax
jmp 0x1009cecc
xor eax, eax
pop edi
pop esi
leave
ret
Function at 0x1009cf31
Capabilities:
Get geographical location

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x18
mov eax, dword [0x100cfa9c]
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.10095875
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.10095875
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 0x1009cfa8
cmp word [ecx], dx
je 0x1009cfa8
mov eax, dword [0x100085b8]
push edi
dec eax
push eax
push 0x10001568
call fcn.1009ced0
mov eax, dword [ebp - 0x14]
add esp, 0xc
xor edx, edx
mov dword [ebp - 0x10], edx
mov eax, dword [eax]
test eax, eax
je 0x1009d01b
cmp word [eax], dx
je 0x1009d01b
mov eax, dword [edi]
test eax, eax
je 0x1009cfcc
cmp word [eax], dx
je 0x1009cfcc
lea eax, [ebp - 0x10]
push eax
call fcn.1009c89e
jmp 0x1009cfd5
lea eax, [ebp - 0x10]
push eax
call fcn.1009c939
cmp dword [ebp - 0x10], 0
pop ecx
jne 0x1009d045
mov eax, dword [0x100085b4]
push dword [ebp - 0x14]
dec eax
push eax
push 0x10001258
call fcn.1009ced0
add esp, 0xc
test al, al
je 0x1009d045
mov eax, dword [edi]
xor edi, edi
test eax, eax
je 0x1009d010
cmp word [eax], di
je 0x1009d010
lea eax, [ebp - 0x10]
push eax
call fcn.1009c89e
pop ecx
jmp 0x1009d047
lea eax, [ebp - 0x10]
push eax
call fcn.1009c939
jmp 0x1009d00d
mov eax, dword [edi]
test eax, eax
je 0x1009d032
cmp word [eax], dx
je 0x1009d032
lea eax, [ebp - 0x10]
push eax
call fcn.1009c853
pop ecx
jmp 0x1009d045
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 0x1009d110
lea eax, [ebp - 0x10]
push eax
lea eax, [esi + 0x100]
neg esi
sbb esi, esi
and esi, eax
push esi
call fcn.1009cd55
mov esi, eax
pop ecx
pop ecx
test esi, esi
je 0x1009d110
movzx ecx, si
push ecx
call dword [sym.imp.KERNEL32.dll_IsValidCodePage]
test eax, eax
je 0x1009d110
push 1
push dword [ebp - 0xc]
call dword [sym.imp.KERNEL32.dll_IsValidLocale]
test eax, eax
je 0x1009d110
mov eax, dword [ebp - 0x18]
test eax, eax
je 0x1009d09d
mov dword [eax], esi
mov eax, dword [ebp - 0x14]
push edi
push 0x55
add eax, 0x250
push eax
push dword [ebp - 0xc]
call fcn.10099d4e
test ebx, ebx
je 0x1009d10b
push edi
push 0x55
lea eax, [ebx + 0x120]
push eax
push dword [ebp - 0xc]
call fcn.10099d4e
push 0x40
push ebx
push 0x1001
push dword [ebp - 0xc]
call dword [sym.imp.KERNEL32.dll_GetLocaleInfoW]
test eax, eax
je 0x1009d110
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 0x1009d110
push 0xa
push 0x10
lea ecx, [ebx + 0x100]
push ecx
push esi
call fcn.100a0934
add esp, 0x10
xor eax, eax
inc eax
jmp 0x1009d112
xor eax, eax
mov ecx, dword [ebp - 4]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.100a6b85
leave
ret
Function at 0x1009f6f8
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 0x1009f712
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 0x1009f729
mov ecx, dword [eax]
cmp ecx, dword [eax + 4]
je 0x1009f781
mov eax, dword [eax + 0x10]
nop
push eax
call fcn.1009fa0d
mov esi, eax
pop ecx
cmp esi, 0xffffffff
je 0x1009f781
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 0x1009f781
lea eax, [ebp - 0x18]
push eax
push esi
call dword [sym.imp.KERNEL32.dll_GetFileSizeEx]
test eax, eax
je 0x1009f781
mov eax, dword [ebp - 0x10]
cmp eax, dword [ebp - 0x18]
jne 0x1009f77b
mov eax, dword [ebp - 0xc]
cmp eax, dword [ebp - 0x14]
je 0x1009f77d
xor bl, bl
mov al, bl
jmp 0x1009f783
xor al, al
pop esi
pop ebx
leave
ret
Function at 0x100a3f76
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 + 0x100cfdd8]
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 0x100a3fb6
cmp byte [ebx], 0xa
jne 0x100a3fb6
or byte [edi + eax + 0x28], 4
jmp 0x100a3fbb
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 0x100a40bd
mov dl, byte [eax]
cmp dl, 0x1a
je 0x100a40a0
inc eax
cmp dl, 0xd
je 0x100a3fe7
mov dword [ebp - 8], eax
mov byte [esi], dl
jmp 0x100a400c
cmp eax, ecx
jae 0x100a401a
mov cl, byte [eax]
xor eax, eax
cmp cl, 0xa
push 0xa
sete al
inc eax
add dword [ebp - 8], eax
pop eax
cmp cl, al
push 0xd
pop ecx
cmovne eax, ecx
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 0x100a3fcf
jmp 0x100a40bd
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 0x100a4099
cmp dword [ebp - 0x10], 0
je 0x100a4099
mov ecx, dword [ebp - 0xc]
mov eax, dword [ecx*4 + 0x100cfdd8]
test byte [eax + edi + 0x28], 0x48
je 0x100a4073
mov dl, byte [ebp - 1]
lea eax, [esi + 1]
mov dword [ebp - 0x14], eax
cmp dl, 0xa
jne 0x100a405c
mov byte [esi], dl
jmp 0x100a406f
push 0xd
pop eax
mov byte [esi], al
mov eax, dword [ecx*4 + 0x100cfdd8]
mov byte [eax + edi + 0x2a], dl
mov eax, dword [ebp - 0x14]
mov esi, eax
jmp 0x100a40bd
cmp byte [ebp - 1], 0xa
jne 0x100a4082
cmp esi, ebx
jne 0x100a4082
mov byte [esi], 0xa
jmp 0x100a40bc
push 1
push 0xffffffffffffffff
push 0xffffffffffffffff
push dword [ebp + 8]
call fcn.100a2ee6
add esp, 0x10
cmp byte [ebp - 1], 0xa
je 0x100a40bd
push 0xd
pop eax
mov byte [esi], al
jmp 0x100a40bc
mov ecx, dword [ebp - 0xc]
mov ecx, dword [ecx*4 + 0x100cfdd8]
mov al, byte [ecx + edi + 0x28]
test al, 0x40
jne 0x100a40ba
or al, 2
mov byte [ecx + edi + 0x28], al
jmp 0x100a40bd
mov byte [esi], dl
inc esi
sub esi, ebx
pop edi
mov eax, esi
pop esi
pop ebx
leave
ret
Function at 0x100a40c6
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 + 0x100cfdd8]
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 0x100a410c
cmp word [ebx], dx
jne 0x100a410c
or byte [eax + edi + 0x28], 4
jmp 0x100a4111
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 0x100a4273
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 0x100a4253
add eax, 2
cmp cx, word [ebp - 0x10]
je 0x100a4152
mov dword [ebp - 4], eax
mov word [esi], cx
jmp 0x100a4187
cmp eax, edx
jae 0x100a4195
movzx eax, word [eax]
cmp ax, word [ebp - 0x18]
mov edx, eax
push 2
pop ecx
mov dword [ebp - 0x14], 4
cmove ecx, dword [ebp - 0x14]
add dword [ebp - 4], ecx
push 0xa
pop ecx
cmp dx, cx
mov eax, ecx
mov edx, dword [ebp - 0xc]
push 0xd
pop ecx
cmovne eax, ecx
mov word [esi], ax
mov eax, dword [ebp - 4]
push 2
pop ecx
add esi, ecx
cmp eax, edx
jb 0x100a412d
jmp 0x100a4273
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 0x100a424e
cmp dword [ebp - 0x18], 0
je 0x100a424e
mov edx, dword [ebp - 8]
push 0xa
mov eax, dword [edx*4 + 0x100cfdd8]
test byte [eax + edi + 0x28], 0x48
je 0x100a4224
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 0x100a41e8
mov word [esi], cx
jmp 0x100a421f
push 0xd
pop ecx
mov word [esi], cx
movzx ecx, ax
mov eax, dword [edx*4 + 0x100cfdd8]
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 + 0x100cfdd8]
mov byte [eax + edi + 0x2b], cl
mov eax, dword [edx*4 + 0x100cfdd8]
pop ecx
mov byte [eax + edi + 0x2c], cl
mov esi, dword [ebp - 0x1c]
jmp 0x100a4273
pop eax
cmp word [ebp - 4], ax
jne 0x100a4234
cmp esi, ebx
jne 0x100a4234
mov word [esi], ax
jmp 0x100a4270
push 1
push 0xffffffffffffffff
push 0xfffffffffffffffe
push dword [ebp + 8]
call fcn.100a2ee6
add esp, 0x10
push 0xa
pop eax
cmp word [ebp - 4], ax
je 0x100a4273
push 0xd
pop eax
jmp 0x100a422f
mov edx, dword [ebp - 8]
mov edx, dword [edx*4 + 0x100cfdd8]
mov al, byte [edx + edi + 0x28]
test al, 0x40
jne 0x100a426d
or al, 2
mov byte [edx + edi + 0x28], al
jmp 0x100a4273
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 0x100a6eec
Capabilities:
Enumerate pe sections

Disassembly:
mov edi, edi
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
cmp edx, esi
je 0x100a6f29
mov ecx, dword [ebp + 0xc]
cmp ecx, dword [edx + 0xc]
jb 0x100a6f22
mov eax, dword [edx + 8]
add eax, dword [edx + 0xc]
cmp ecx, eax
jb 0x100a6f2e
add edx, 0x28
cmp edx, esi
jne 0x100a6f13
xor eax, eax
pop esi
pop ebp
ret
mov eax, edx
jmp 0x100a6f2b
Function at 0x100b25c0
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 0x100b265d
push ebx
push esi
call fcn.100b2589
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.1009ee4c
add esp, 0x24
mov dword [ebp - 4], eax
test eax, eax
jne 0x100b260a
push esi
call dword [sym.imp.KERNEL32.dll_FreeEnvironmentStringsW]
xor eax, eax
jmp 0x100b265c
push edi
push eax
call fcn.100974b5
mov edi, eax
pop ecx
push ebx
test edi, edi
jne 0x100b262a
call fcn.1009747b
pop ecx
push esi
call dword [sym.imp.KERNEL32.dll_FreeEnvironmentStringsW]
xor eax, eax
jmp 0x100b265b
push ebx
push dword [ebp - 4]
push edi
push dword [ebp - 8]
push esi
push ebx
push ebx
call fcn.1009ee4c
add esp, 0x20
test eax, eax
jne 0x100b2649
push edi
call fcn.1009747b
jmp 0x100b2651
push ebx
call fcn.1009747b
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 0x100b30ab
Capabilities:
Read file on windows

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
mov eax, 0x1020
call fcn.100a7d30
mov eax, dword [0x100cfa9c]
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.1009867b
pop ecx
mov ecx, dword [ebp + 8]
mov ebx, eax
cmp dword [ecx + 8], 0
jne 0x100b30ed
mov eax, dword [ebp + 0xc]
mov edx, dword [ebp + 0x10]
jmp 0x100b3264
mov eax, dword [ecx]
sub eax, dword [ecx + 4]
push esi
push edi
push 0
cdq
push 2
push edx
push eax
call fcn.100a7840
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 + 0x100cfdd8]
push dword [eax + edi + 0x24]
push dword [eax + edi + 0x20]
push ebx
call fcn.100a2ec8
mov ecx, dword [esi*4 + 0x100cfdd8]
add esp, 0x14
mov dword [ebp - 0x1010], eax
mov eax, edx
mov edx, dword [ebp - 0x1010]
mov dword [ebp - 0x1020], eax
cmp edx, dword [ecx + edi + 0x20]
jne 0x100b325d
cmp eax, dword [ecx + edi + 0x24]
jne 0x100b325d
xor esi, esi
lea eax, [ebp - 0x101c]
push esi
push eax
push 0x1000
lea eax, [ebp - 0x1004]
push eax
push dword [ecx + edi + 0x18]
call dword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
je 0x100b325d
push dword [ebp - 0x100c]
push esi
push dword [ebp + 0x10]
push dword [ebp + 0xc]
push ebx
call fcn.100a2ec8
add esp, 0x14
cmp edx, esi
jl 0x100b325d
jg 0x100b31b8
cmp eax, esi
jb 0x100b325d
mov ebx, dword [ebp - 0x1014]
mov eax, dword [ebp - 0x101c]
cmp ebx, esi
jg 0x100b325d
jl 0x100b31da
cmp dword [ebp - 0x1008], eax
ja 0x100b325d
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 0x100b31ff
cmp ebx, esi
je 0x100b3244
mov edx, dword [ebp - 0x1014]
mov esi, dword [ebp - 0x1018]
cmp ecx, edi
jae 0x100b3244
mov al, byte [ecx]
cmp al, 0xd
jne 0x100b3225
lea eax, [edi - 1]
cmp ecx, eax
jae 0x100b3231
cmp byte [ecx + 1], 0xa
jne 0x100b3231
inc ecx
jmp 0x100b3231
movzx eax, al
movsx eax, byte [eax + 0x100cf980]
add ecx, eax
add esi, 1
adc edx, 0
inc ecx
cmp esi, dword [ebp - 0x1008]
jne 0x100b320b
cmp edx, ebx
jne 0x100b320b
lea eax, [ebp - 0x1004]
sub ecx, eax
mov eax, ecx
cdq
add eax, dword [ebp - 0x1010]
adc edx, dword [ebp - 0x1020]
jmp 0x100b3262
or edx, 0xffffffff
mov eax, edx
pop edi
pop esi
mov ecx, dword [ebp - 4]
xor ecx, ebp
pop ebx
call fcn.100a6b85
leave
ret

Function at 0x100b3af0
Capabilities:
Enumerate pe sections

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
mov eax, dword [ebp + 8]
xor edx, edx
push ebx
push esi
push edi
mov ecx, dword [eax + 0x3c]
add ecx, eax
movzx eax, word [ecx + 0x14]
movzx ebx, word [ecx + 6]
add eax, 0x18
add eax, ecx
test ebx, ebx
je 0x100b3b2e
mov edi, dword [ebp + 0xc]
mov esi, dword [eax + 0xc]
cmp edi, esi
jb 0x100b3b26
mov ecx, dword [eax + 8]
add ecx, esi
cmp edi, ecx
jb 0x100b3b30
inc edx
add eax, 0x28
cmp edx, ebx
jb 0x100b3b16
xor eax, eax
pop edi
pop esi
pop ebx
pop ebp
ret
Function at 0x100b3c00
Capabilities:
Parse pe header

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
mov eax, dword [ebp + 8]
mov ecx, 0x5a4d
cmp word [eax], cx
jne 0x100b3c2f
mov ecx, dword [eax + 0x3c]
add ecx, eax
cmp dword [ecx], 0x4550
jne 0x100b3c2f
mov edx, 0x10b
xor eax, eax
cmp word [ecx + 0x18], dx
sete al
pop ebp
ret
xor eax, eax
pop ebp
ret
Function at 0x40ec30
Capabilities:
Allocate or change rwx memory
Get system information on windows

Disassembly:
push ebx
push esi
push edi
push ebp
add esp, 0xffffffb4
mov dword [esp], eax
lea esi, [esp + 0x30]
lea eax, [esp + 0xc]
push eax
call sub.kernel32.dll_GetSystemInfo_1
mov edi, dword [esp]
push 0x1c
push esi
push edi
call sub.kernel32.dll_VirtualQuery_1
test eax, eax
je 0x40ecfb
jmp 0x40ecef
cmp dword [esi + 0x10], 0x1000
jne 0x40ecdb
test byte [esi + 0x15], 1
jne 0x40ecdb
mov byte [esp + 4], 0
mov ebp, dword [esi + 0x14]
cmp ebp, 1
je 0x40ec8c
cmp ebp, 2
je 0x40ec8c
cmp ebp, 0x10
je 0x40ec8c
cmp ebp, 0x20
jne 0x40eca8
lea eax, [esp + 8]
push eax
push 0x40
mov eax, dword [esi + 0xc]
push eax
mov eax, dword [esi]
push eax
call sub.kernel32.dll_VirtualProtect
test eax, eax
je 0x40eca8
mov byte [esp + 4], 1
xor ebx, ebx
jmp 0x40ecb9
mov eax, dword [esi]
add eax, ebx
call fcn.0040ec28
add ebx, dword [esp + 0x10]
cmp ebx, dword [esi + 0xc]
jb 0x40ecac
cmp byte [esp + 4], 0
je 0x40ecdb
lea eax, [esp + 8]
push eax
mov eax, dword [esp + 0xc]
push eax
mov eax, dword [esi + 0xc]
push eax
mov eax, dword [esi]
push eax
call sub.kernel32.dll_VirtualProtect
mov eax, dword [esi]
add eax, dword [esi + 0xc]
mov edi, eax
push 0x1c
push esi
push edi
call sub.kernel32.dll_VirtualQuery_1
test eax, eax
je 0x40ecfb
mov eax, dword [esi + 4]
cmp eax, dword [esp]
je 0x40ec61
add esp, 0x4c
pop ebp
pop edi
pop esi
pop ebx
ret

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

Disassembly:
pushal
nop
nop
nop
nop
nop
nop
mov eax, section..text
nop
mov ebx, 0x40c7d0
nop
mov ecx, 0x2c674c48
nop
nop
nop
nop
test eax, eax
je 0x43204e
nop
nop
nop
nop
xor dword [eax], ecx
nop
nop
nop
nop
nop
nop
nop
inc eax
nop
nop
nop
nop
nop
inc eax
nop
nop
nop
nop
nop
nop
nop
inc eax
nop
nop
nop
nop
inc eax
nop
nop
nop
nop
nop
cmp eax, ebx
nop
jne 0x432024
nop
nop
nop
nop
mov eax, section..data
nop
mov ebx, 0x42f314
nop
mov ecx, 0x65de243a
test eax, eax
nop
nop
nop
nop
nop
nop
nop
je 0x432084
nop
nop
nop
xor dword [eax], ecx
nop
nop
nop
nop
nop
add eax, 4
nop
cmp eax, ebx
nop
nop
nop
jne 0x43206c
nop
nop
nop
nop
nop
nop
nop
nop
nop
popal
jmp 0x431219