joyce8/EMBER2024-capa huggingface dataset:
Function at 0x4012d0
Capabilities:
Enumerate processes

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x17c
mov eax, dword [0x433040]
xor eax, ebp
mov dword [ebp - 4], eax
push 0
push 2
call sub.KERNEL32.dll_CreateToolhelp32Snapshot
mov dword [ebp - 0x16c], eax
cmp dword [ebp - 0x16c], 0xffffffff
jne 0x401302
xor al, al
jmp 0x401437
mov dword [ebp - 0x164], 0x128
mov dword [ebp - 0x24], str.vboxservice.exe
mov dword [ebp - 0x20], str.vmtoolsd.exe
mov dword [ebp - 0x1c], str.vmware.exe
mov dword [ebp - 0x18], str.vmsrvc.exe
mov dword [ebp - 0x14], str.xenservice.exe
mov dword [ebp - 0x10], str.qemu_ga.exe
mov dword [ebp - 0xc], str.sandboxie.exe
mov dword [ebp - 8], str.snxhk.dll
mov dword [ebp - 0x174], 8
lea eax, [ebp - 0x164]
push eax
mov ecx, dword [ebp - 0x16c]
push ecx
call sub.KERNEL32.dll_Process32First
test eax, eax
je 0x401428
lea edx, [ebp - 0x140]
push edx
lea eax, [ebp - 0x3c]
push eax
call fcn.00401210
add esp, 8
mov dword [ebp - 0x170], 0
jmp 0x401397
mov ecx, dword [ebp - 0x170]
add ecx, 1
mov dword [ebp - 0x170], ecx
mov edx, dword [ebp - 0x170]
cmp edx, dword [ebp - 0x174]
jge 0x401404
mov eax, dword [ebp - 0x170]
mov ecx, dword [ebp + eax*4 - 0x24]
mov dword [ebp - 0x178], ecx
lea ecx, [ebp - 0x3c]
call fcn.00406620
mov dword [ebp - 0x17c], eax
mov edx, dword [ebp - 0x178]
push edx
mov eax, dword [ebp - 0x17c]
push eax
call fcn.0040bdca
add esp, 8
test eax, eax
je 0x401402
mov ecx, dword [ebp - 0x16c]
push ecx
call dword [sym.imp.KERNEL32.dll_CloseHandle]
nop
mov byte [ebp - 0x165], 1
lea ecx, [ebp - 0x3c]
call fcn.00403f00
mov al, byte [ebp - 0x165]
jmp 0x401437
jmp 0x401388
lea ecx, [ebp - 0x3c]
call fcn.00403f00
nop
lea edx, [ebp - 0x164]
push edx
mov eax, dword [ebp - 0x16c]
push eax
call sub.KERNEL32.dll_Process32Next
test eax, eax
jne 0x401369
mov ecx, dword [ebp - 0x16c]
push ecx
call dword [sym.imp.KERNEL32.dll_CloseHandle]
xor al, al
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.0040a557
mov esp, ebp
pop ebp
ret

Function at 0x401570
Capabilities:
Create process on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x64
mov dword [ebp - 4], str.C:WindowsSystem32_notepad.exe
mov dword [ebp - 0x64], 0x44
push 0x40
push 0
lea eax, [ebp - 0x60]
push eax
call fcn.0040bc70
add esp, 0xc
lea ecx, [ebp - 0x20]
push ecx
lea edx, [ebp - 0x64]
push edx
push 0
push 0
push 0
push 0
push 0
push 0
push 0
mov eax, dword [ebp - 4]
push eax
call dword [sym.imp.KERNEL32.dll_CreateProcessW]
test eax, eax
jne 0x4015f5
push 0x428378
push 0x434140
call fcn.00401750
add esp, 8
mov dword [ebp - 0xc], eax
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov dword [ebp - 8], eax
mov ecx, dword [ebp - 8]
push ecx
mov ecx, dword [ebp - 0xc]
call fcn.00404390
mov dword [ebp - 0x10], eax
push 0x402cd0
mov ecx, dword [ebp - 0x10]
call fcn.00404560
nop
jmp 0x401616
push 0xffffffffffffffff
mov edx, dword [ebp - 0x20]
push edx
call dword [sym.imp.KERNEL32.dll_WaitForSingleObject]
mov eax, dword [ebp - 0x20]
push eax
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov ecx, dword [ebp - 0x1c]
push ecx
call dword [sym.imp.KERNEL32.dll_CloseHandle]
nop
mov esp, ebp
pop ebp
ret
Function at 0x409cdd
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 0x409cfe
jl 0x409cf5
test edi, edi
jne 0x409cfe
xor eax, eax
xor edx, edx
jmp 0x409dbf
cmp dword [ebx + 0x38], 0
je 0x409d13
push eax
push edi
push dword [ebp + 8]
call fcn.00409dc5
jmp 0x409dbf
mov eax, dword [ebx + 0x1c]
push esi
mov esi, edi
mov ecx, dword [eax]
test ecx, ecx
je 0x409d5a
mov eax, dword [ebx + 0x2c]
mov eax, dword [eax]
mov dword [ebp - 4], eax
test eax, eax
je 0x409d5a
cmp eax, edi
jb 0x409d34
mov eax, edi
mov dword [ebp - 4], edi
push eax
push ecx
push dword [ebp + 8]
call fcn.0040b6f0
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 0x409d60
mov eax, dword [ebp + 8]
mov dword [ebp - 4], eax
cmp dword [ebx + 0x4c], 0
je 0x409db4
mov ecx, ebx
call fcn.0040952c
mov ecx, dword [ebp - 4]
mov edx, esi
mov eax, 0xfff
cmp esi, eax
jbe 0x409d9f
push dword [ebx + 0x4c]
push eax
push 1
push ecx
call fcn.00412f37
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 0x409db4
jmp 0x409d72
test edx, edx
je 0x409db4
push dword [ebx + 0x4c]
push esi
push 1
push ecx
call fcn.00412f37
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 0x40b52b
Capabilities:
Parse pe header

Disassembly:
push 0
call dword [sym.imp.KERNEL32.dll_GetModuleHandleW]
test eax, eax
je 0x40b56a
mov ecx, 0x5a4d
cmp word [eax], cx
jne 0x40b56a
mov ecx, dword [eax + 0x3c]
add ecx, eax
cmp dword [ecx], 0x4550
jne 0x40b56a
mov eax, 0x10b
cmp word [ecx + 0x18], ax
jne 0x40b56a
cmp dword [ecx + 0x74], 0xe
jbe 0x40b56a
cmp dword [ecx + 0xe8], 0
setne al
ret
xor al, al
ret
Function at 0x41c693
Capabilities:
Read file on windows

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
mov eax, 0x1020
call fcn.0040b690
mov eax, dword [0x433040]
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.004199e7
pop ecx
mov ecx, dword [ebp + 8]
mov ebx, eax
cmp dword [ecx + 8], 0
jne 0x41c6d5
mov eax, dword [ebp + 0xc]
mov edx, dword [ebp + 0x10]
jmp 0x41c84c
mov eax, dword [ecx]
sub eax, dword [ecx + 4]
push esi
push edi
push 0
cdq
push 2
push edx
push eax
call fcn.0040a570
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 + 0x434a28]
push dword [edi + eax + 0x24]
push dword [edi + eax + 0x20]
push ebx
call fcn.0041d6d9
mov ecx, dword [esi*4 + 0x434a28]
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 0x41c845
cmp eax, dword [edi + ecx + 0x24]
jne 0x41c845
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 0x41c845
push dword [ebp - 0x100c]
push esi
push dword [ebp + 0x10]
push dword [ebp + 0xc]
push ebx
call fcn.0041d6d9
add esp, 0x14
cmp edx, esi
jl 0x41c845
jg 0x41c7a0
cmp eax, esi
jb 0x41c845
mov ebx, dword [ebp - 0x1014]
mov eax, dword [ebp - 0x101c]
cmp ebx, esi
jg 0x41c845
jl 0x41c7c2
cmp dword [ebp - 0x1008], eax
ja 0x41c845
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 0x41c7e7
cmp ebx, esi
je 0x41c82c
mov edx, dword [ebp - 0x1014]
mov esi, dword [ebp - 0x1018]
cmp ecx, edi
jae 0x41c82c
mov al, byte [ecx]
cmp al, 0xd
jne 0x41c80d
lea eax, [edi - 1]
cmp ecx, eax
jae 0x41c819
cmp byte [ecx + 1], 0xa
jne 0x41c819
inc ecx
jmp 0x41c819
movzx eax, al
movsx eax, byte [eax + 0x4332f8]
add ecx, eax
add esi, 1
adc edx, 0
inc ecx
cmp esi, dword [ebp - 0x1008]
jne 0x41c7f3
cmp edx, ebx
jne 0x41c7f3
lea eax, [ebp - 0x1004]
sub ecx, eax
mov eax, ecx
cdq
add eax, dword [ebp - 0x1010]
adc edx, dword [ebp - 0x1020]
jmp 0x41c84a
or edx, 0xffffffff
mov eax, edx
pop edi
pop esi
mov ecx, dword [ebp - 4]
xor ecx, ebp
pop ebx
call fcn.0040a557
leave
ret
Function at 0x41cacb
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 0x41cae5
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 0x41cafc
mov ecx, dword [eax]
cmp ecx, dword [eax + 4]
je 0x41cb54
mov eax, dword [eax + 0x10]
nop
push eax
call fcn.0041f725
mov esi, eax
pop ecx
cmp esi, 0xffffffff
je 0x41cb54
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 0x41cb54
lea eax, [ebp - 0x18]
push eax
push esi
call dword [sym.imp.KERNEL32.dll_GetFileSizeEx]
test eax, eax
je 0x41cb54
mov eax, dword [ebp - 0x10]
cmp eax, dword [ebp - 0x18]
jne 0x41cb4e
mov eax, dword [ebp - 0xc]
cmp eax, dword [ebp - 0x14]
je 0x41cb50
xor bl, bl
mov al, bl
jmp 0x41cb56
xor al, al
pop esi
pop ebx
leave
ret
Function at 0x41cb65
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 + 0x434a28]
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 0x41cba7
cmp byte [ebx], 0xa
jne 0x41cba7
or byte [edi + eax + 0x28], 4
jmp 0x41cbac
and byte [edi + eax + 0x28], 0xfb
add ecx, ebx
mov eax, ebx
mov dword [ebp - 0x10], ecx
mov esi, ebx
cmp ebx, ecx
jae 0x41ccaf
mov cl, byte [eax]
cmp cl, 0x1a
je 0x41cc8a
lea ebx, [eax + 1]
mov dword [ebp - 8], ebx
mov ebx, dword [ebp + 0xc]
cmp cl, 0xd
je 0x41cbdb
mov eax, dword [ebp - 8]
jmp 0x41cbfb
mov edx, dword [ebp - 0x10]
cmp dword [ebp - 8], edx
mov edx, dword [ebp + 8]
jae 0x41cc17
mov ebx, dword [ebp - 8]
cmp byte [ebx], 0xa
jne 0x41cbf5
add eax, 2
mov cl, 0xa
jmp 0x41cbf8
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 0x41cbbd
jmp 0x41ccaf
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 0x41cc85
cmp dword [ebp - 0x10], 0
je 0x41cc85
mov edx, dword [ebp - 0x18]
mov eax, dword [edx*4 + 0x434a28]
test byte [eax + edi + 0x28], 0x48
je 0x41cc64
mov cl, byte [ebp - 1]
cmp cl, 0xa
jne 0x41cc54
mov byte [esi], 0xa
jmp 0x41ccae
mov byte [esi], 0xd
mov eax, dword [edx*4 + 0x434a28]
mov byte [eax + edi + 0x2a], cl
jmp 0x41ccae
cmp byte [ebp - 1], 0xa
jne 0x41cc6e
cmp esi, ebx
je 0x41cc4f
push 1
push 0xffffffffffffffff
push 0xffffffffffffffff
push dword [ebp + 8]
call fcn.0041d6f7
add esp, 0x10
cmp byte [ebp - 1], 0xa
je 0x41ccaf
mov byte [esi], 0xd
jmp 0x41ccae
mov eax, edx
and edx, 0x3f
sar eax, 6
imul edx, edx, 0x38
mov edi, dword [eax*4 + 0x434a28]
mov al, byte [edi + edx + 0x28]
test al, 0x40
jne 0x41ccac
or al, 2
mov byte [edi + edx + 0x28], al
jmp 0x41ccaf
mov byte [esi], cl
inc esi
sub esi, ebx
pop edi
mov eax, esi
pop esi
pop ebx
leave
ret
Function at 0x41ccb8
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 + 0x434a28]
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 0x41ccfc
push 0xa
pop esi
cmp word [ebx], si
jne 0x41ccfc
or byte [eax + edi + 0x28], 4
jmp 0x41cd01
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 0x41ce6c
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 0x41ce44
lea ebx, [eax + 2]
mov dword [ebp - 4], ebx
push 0xd
pop ebx
cmp dx, bx
mov ebx, dword [ebp + 0xc]
je 0x41cd4e
mov ebx, dword [ebp - 0x14]
mov edx, esi
mov eax, dword [ebp - 4]
movzx ebx, bx
mov dword [ebp - 4], ebx
jmp 0x41cd78
mov edx, dword [ebp - 4]
cmp edx, dword [ebp - 0x10]
jae 0x41cd97
push 0xa
pop ebx
cmp word [edx], bx
jne 0x41cd65
push ebx
add eax, 4
pop edx
jmp 0x41cd6d
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 0x41cd13
jmp 0x41ce6c
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 0x41ce3f
cmp dword [ebp - 0x14], 0
je 0x41ce3f
mov eax, dword [ebp - 8]
push 0xa
mov eax, dword [eax*4 + 0x434a28]
test byte [eax + edi + 0x28], 0x48
pop eax
je 0x41ce1b
mov dx, word [ebp - 4]
cmp dx, ax
jne 0x41cde3
mov word [esi], ax
jmp 0x41ce69
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 + 0x434a28]
mov byte [eax + edi + 0x2a], dl
mov edx, dword [ebp - 8]
mov eax, dword [edx*4 + 0x434a28]
mov byte [eax + edi + 0x2b], cl
mov eax, dword [edx*4 + 0x434a28]
pop ecx
mov byte [eax + edi + 0x2c], cl
jmp 0x41ce69
cmp word [ebp - 4], ax
jne 0x41ce25
cmp esi, ebx
je 0x41cddb
push 1
push 0xffffffffffffffff
push 0xfffffffffffffffe
push dword [ebp + 8]
call fcn.0041d6f7
add esp, 0x10
push 0xa
pop eax
cmp word [ebp - 4], ax
je 0x41ce6c
push 0xd
pop eax
jmp 0x41cddb
mov eax, ecx
and ecx, 0x3f
sar eax, 6
imul ecx, ecx, 0x38
mov edi, dword [eax*4 + 0x434a28]
mov al, byte [edi + ecx + 0x28]
test al, 0x40
jne 0x41ce66
or al, 2
mov byte [edi + ecx + 0x28], al
jmp 0x41ce6c
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 0x41f08c
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 0x41f129
push ebx
push esi
call fcn.0041f055
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.0041dd0a
add esp, 0x24
mov dword [ebp - 4], eax
test eax, eax
jne 0x41f0d6
push esi
call dword [sym.imp.KERNEL32.dll_FreeEnvironmentStringsW]
xor eax, eax
jmp 0x41f128
push edi
push eax
call fcn.004186f0
mov edi, eax
pop ecx
push ebx
test edi, edi
jne 0x41f0f6
call fcn.004186a0
pop ecx
push esi
call dword [sym.imp.KERNEL32.dll_FreeEnvironmentStringsW]
xor eax, eax
jmp 0x41f127
push ebx
push dword [ebp - 4]
push edi
push dword [ebp - 8]
push esi
push ebx
push ebx
call fcn.0041dd0a
add esp, 0x20
test eax, eax
jne 0x41f115
push edi
call fcn.004186a0
jmp 0x41f11d
push ebx
call fcn.004186a0
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 0x42171e
Capabilities:
Get geographical location

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push ecx
push esi
push edi
call fcn.00417a88
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 0x42178d
cmp esi, dword [ebp - 4]
je 0x421788
cmp dword [ebp + 0xc], 0
je 0x421788
mov esi, dword [edi + 0x50]
lea ecx, [esi + 2]
mov ax, word [esi]
add esi, 2
test ax, ax
jne 0x421765
push dword [edi + 0x50]
sub esi, ecx
sar esi, 1
call fcn.00421273
pop ecx
xor ecx, ecx
cmp eax, esi
setne cl
mov eax, ecx
jmp 0x42178f
xor eax, eax
inc eax
jmp 0x42178f
xor eax, eax
pop edi
pop esi
leave
ret
Function at 0x4217fa
Capabilities:
Get geographical location

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x18
mov eax, dword [0x433040]
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.00417a88
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.00417a88
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 0x421871
cmp word [ecx], dx
je 0x421871
mov eax, dword [0x42c91c]
push edi
dec eax
push eax
push 0x42c808
call fcn.00421793
mov eax, dword [ebp - 0x14]
add esp, 0xc
xor edx, edx
mov dword [ebp - 0x10], edx
mov eax, dword [eax]
test eax, eax
je 0x4218e4
cmp word [eax], dx
je 0x4218e4
mov eax, dword [edi]
test eax, eax
je 0x421895
cmp word [eax], dx
je 0x421895
lea eax, [ebp - 0x10]
push eax
call fcn.00421179
jmp 0x42189e
lea eax, [ebp - 0x10]
push eax
call fcn.00421214
cmp dword [ebp - 0x10], 0
pop ecx
jne 0x42190e
mov eax, dword [0x42c804]
push dword [ebp - 0x14]
dec eax
push eax
push 0x42c4f8
call fcn.00421793
add esp, 0xc
test al, al
je 0x42190e
mov eax, dword [edi]
xor edi, edi
test eax, eax
je 0x4218d9
cmp word [eax], di
je 0x4218d9
lea eax, [ebp - 0x10]
push eax
call fcn.00421179
pop ecx
jmp 0x421910
lea eax, [ebp - 0x10]
push eax
call fcn.00421214
jmp 0x4218d6
mov eax, dword [edi]
test eax, eax
je 0x4218fb
cmp word [eax], dx
je 0x4218fb
lea eax, [ebp - 0x10]
push eax
call fcn.0042112e
pop ecx
jmp 0x42190e
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 0x4219d9
lea eax, [ebp - 0x10]
push eax
lea eax, [esi + 0x100]
neg esi
sbb esi, esi
and esi, eax
push esi
call fcn.00421618
mov esi, eax
pop ecx
pop ecx
test esi, esi
je 0x4219d9
movzx ecx, si
push ecx
call dword [sym.imp.KERNEL32.dll_IsValidCodePage]
test eax, eax
je 0x4219d9
push 1
push dword [ebp - 0xc]
call dword [sym.imp.KERNEL32.dll_IsValidLocale]
test eax, eax
je 0x4219d9
mov eax, dword [ebp - 0x18]
test eax, eax
je 0x421966
mov dword [eax], esi
mov eax, dword [ebp - 0x14]
push edi
push 0x55
add eax, 0x250
push eax
push dword [ebp - 0xc]
call fcn.0041a2ee
test ebx, ebx
je 0x4219d4
push edi
push 0x55
lea eax, [ebx + 0x120]
push eax
push dword [ebp - 0xc]
call fcn.0041a2ee
push 0x40
push ebx
push 0x1001
push dword [ebp - 0xc]
call dword [sym.imp.KERNEL32.dll_GetLocaleInfoW]
test eax, eax
je 0x4219d9
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 0x4219d9
push 0xa
push 0x10
lea ecx, [ebx + 0x100]
push ecx
push esi
call fcn.00424ada
add esp, 0x10
xor eax, eax
inc eax
jmp 0x4219db
xor eax, eax
mov ecx, dword [ebp - 4]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.0040a557
leave
ret
Function at 0x426900
Capabilities:
Parse pe header

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

Disassembly:
push ebp
push esp
pop ebp
and esp, 0xfffffff8
sub esp, 0x1c
mov al, byte [ecx]
and dword [esp + 0x18], 0
push ebx
push esi
mov byte [edx], al
lea eax, [edx + 1]
push edi
sub edi, edi
mov dword [esp + 0x1c], eax
mov dword [esp + 0x14], edx
mov esi, dword [esp + 0x14]
xor ebx, ebx
lea eax, [ecx + 1]
mov dword [esp + 0x10], ebx
mov dword [esp + 0x18], eax
lea ecx, [esp + 0x18]
call fcn.004011dd
test eax, eax
je 0x40118f
lea ecx, [esp + 0x18]
call fcn.004011dd
lea ecx, [esp + 0x18]
test eax, eax
je 0x4010fe
call fcn.004011dd
test eax, eax
je 0x4010bc
push 4
xor edi, edi
pop ebx
lea ecx, [esp + 0x18]
jmp loc.00483000
mov eax, dword [esp + 0x18]
mov edx, dword [esp + 0x1c]
movzx esi, byte [eax]
mov ecx, esi
and ecx, 1
inc eax
add ecx, 2
shr esi, 1
mov dword [esp + 0x18], eax
je 0x4010f2
or ecx, ecx
je 0x40118a
push edx
pop edi
sub edi, esi
mov al, byte [edi]
mov byte [edx], al
inc edx
inc edi
dec ecx
jne 0x4010e4
jmp 0x401186
sub ebx, ebx
inc ebx
mov dword [esp + 0x10], ebx
jmp 0x40118a
call fcn.004011bc
or edi, edi
jne 0x401133
cmp eax, 2
jne 0x40112e
lea ecx, [esp + 0x18]
call fcn.004011bc
mov edx, dword [esp + 0x1c]
mov edi, eax
test edi, edi
je 0x40118a
push edx
pop ecx
sub ecx, esi
mov al, byte [ecx]
mov byte [edx], al
inc edx
inc ecx
dec edi
jne 0x401123
jmp 0x401186
sub eax, 3
jmp 0x401136
sub eax, 2
mov ecx, dword [esp + 0x18]
mov esi, eax
movzx eax, byte [ecx]
shl esi, 8
add esi, eax
inc ecx
mov dword [esp + 0x18], ecx
lea ecx, [esp + 0x18]
call fcn.004011bc
mov ecx, eax
cmp esi, 0x7d00
jb 0x40115d
inc ecx
cmp esi, 0x500
jb 0x401166
inc ecx
cmp esi, 0x80
jae 0x401171
add ecx, 2
mov edx, dword [esp + 0x1c]
test ecx, ecx
je 0x40118a
mov edi, edx
sub edi, esi
mov al, byte [edi]
mov byte [edx], al
inc edx
inc edi
dec ecx
jne 0x40117d
mov dword [esp + 0x1c], edx
sub edi, edi
inc edi
jmp 0x4011a7
mov ecx, dword [esp + 0x18]
mov edx, dword [esp + 0x1c]
mov al, byte [ecx]
mov byte [edx], al
inc edx
inc ecx
mov dword [esp + 0x18], ecx
xor edi, edi
mov dword [esp + 0x1c], edx
or ebx, ebx
je 0x40105e
sub edx, dword [esp + 0x14]
pop edi
pop esi
push edx
pop eax
pop ebx
push ebp
pop esp
pop ebp
ret
Function at 0x401271
Capabilities:
Enumerate pe sections

Disassembly:
push ebp
mov ebp, esp
mov eax, dword [ebp + 0xc]
sub esp, 0x1c
push esi
push ecx
pop esi
sub ecx, ecx
mov edx, dword [esi + 0x3c]
mov dword [eax], ecx
mov eax, dword [ebp + 0x10]
add edx, esi
mov dword [eax], ecx
mov eax, 0x14c
push edi
push ecx
pop edi
cmp word [edx + 4], ax
jne 0x4013b8
push ebx
mov ebx, dword [edx + 0x88]
mov dword [ebp - 0x14], ebx
or ebx, ebx
je 0x4013b7
cmp dword [edx + 0x8c], ecx
je 0x4013b7
movzx eax, word [edx + 0x14]
add eax, 0x18
add eax, edx
movzx edx, word [edx + 6]
or edx, edx
je 0x4013b7
cmp dword [eax + 0xc], ebx
je 0x4012e2
inc ecx
add eax, 0x28
cmp ecx, edx
jb 0x4012d0
jmp 0x4013b7
mov edx, dword [eax + 0x14]
add edx, esi
push 0
movzx ecx, word [edx + 0xe]
movzx eax, word [edx + 0xc]
add ecx, eax
mov dword [ebp - 0x10], edx
mov dword [ebp - 0x1c], ecx
pop ebx
je 0x4013b7
xor eax, eax
mov esi, dword [edx + eax*8 + 0x14]
and esi, 0x7fffffff
add esi, edx
push 0
movzx ecx, word [esi + 0xe]
movzx eax, word [esi + 0xc]
add ecx, eax
mov dword [ebp - 0x18], ecx
pop ecx
mov dword [ebp - 0xc], ecx
je 0x4013aa
xor eax, eax
cmp word [esi + eax*8 + 0x10], 0x65
jne 0x40139a
mov ecx, dword [esi + eax*8 + 0x14]
and ecx, 0x7fffffff
add ecx, edx
mov dword [ebp - 8], 0
movzx eax, word [ecx + 0xe]
mov dword [ebp - 4], eax
movzx eax, word [ecx + 0xc]
add dword [ebp - 4], eax
je 0x401393
sub eax, eax
mov edx, 0x409
cmp word [ecx + eax*8 + 0x10], dx
mov edx, dword [ebp - 0x10]
je 0x401376
mov eax, dword [ebp - 8]
inc eax
mov dword [ebp - 8], eax
movzx eax, ax
cmp eax, dword [ebp - 4]
jb 0x401356
jmp 0x401393
mov ecx, dword [ecx + eax*8 + 0x14]
mov edi, dword [ebp + 0xc]
mov eax, dword [ecx + edx]
sub eax, dword [ebp - 0x14]
add eax, edx
mov dword [edi], eax
mov eax, dword [ecx + edx + 4]
mov ecx, dword [ebp + 0x10]
sub edi, edi
mov dword [ecx], eax
inc edi
or edi, edi
jne 0x4013b7
mov ecx, dword [ebp - 0xc]
inc ecx
movzx eax, cx
mov dword [ebp - 0xc], ecx
cmp eax, dword [ebp - 0x18]
jb 0x401329
or edi, edi
jne 0x4013b7
inc ebx
movzx eax, bx
cmp eax, dword [ebp - 0x1c]
jb 0x401302
pop ebx
mov eax, edi
pop edi
pop esi
leave
ret 0xc

Function at 0x4013c0
Capabilities:
Encode data using xor

Disassembly:
push ebp
push esp
pop ebp
push ebx
push esi
push edi
mov edi, edx
mov ebx, edi
shr ebx, 2
and edi, 3
mov esi, ecx
test ebx, ebx
je 0x4013f3
mov al, byte [ebp + 0xc]
mov edx, dword [esi]
add al, bl
movzx ecx, al
mov eax, dword [ebp + 8]
ror edx, cl
xor edx, eax
sub edx, ebx
mov dword [esi], edx
add esi, 4
dec ebx
jne 0x4013d6
jmp 0x4013f6
mov eax, dword [ebp + 8]
test edi, edi
je 0x401400
xor byte [esi], al
inc esi
dec edi
jne 0x4013fa
pop edi
pop esi
pop ebx
pop ebp
ret 0xc