joyce8/EMBER2024-capa huggingface dataset:
Function at 0x1000b4b0
Capabilities:
Allocate or change rwx memory

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x14
mov eax, dword [0x10038064]
xor eax, ebp
mov dword [ebp - 4], eax
push esi
push edi
mov esi, ecx
call fcn.1000aec0
cmp dword [0x1003a20c], 0
je 0x1000b5cc
test esi, esi
jne 0x1000b4e8
xor ecx, ecx
call fcn.1000adc0
mov esi, eax
jmp 0x1000b5d1
mov ecx, dword [0x1003a258]
xor edx, edx
test ecx, ecx
je 0x1000b50c
mov edi, dword [0x1003a250]
mov eax, edi
nop dword [eax]
cmp esi, dword [eax]
je 0x1000b516
inc edx
add eax, 0x2c
cmp edx, ecx
jb 0x1000b500
mov esi, 4
jmp 0x1000b5d1
cmp edx, 0xffffffff
je 0x1000b50c
imul esi, edx, 0x2c
test byte [esi + edi + 0x14], 2
je 0x1000b5c5
push ebx
push 1
lea ecx, [ebp - 0x14]
call fcn.1000ab20
add esi, dword [0x1003a250]
add esp, 4
mov eax, dword [esi]
mov cl, byte [esi + 0x14]
and cl, 1
lea edi, [eax - 5]
cmove edi, eax
movzx eax, cl
lea ebx, [eax*2 + 5]
lea eax, [ebp - 8]
push eax
push 0x40
push ebx
push edi
call dword [sym.imp.KERNEL32.dll_VirtualProtect]
test eax, eax
jne 0x1000b575
lea ecx, [ebp - 0x14]
lea esi, [eax + 0xa]
call fcn.1000ac70
pop ebx
jmp 0x1000b5d1
mov eax, dword [esi + 0xc]
test byte [esi + 0x14], 1
mov dword [edi], eax
je 0x1000b590
mov ax, word [esi + 0x10]
mov word [edi + 4], ax
mov al, byte [esi + 0x12]
mov byte [edi + 6], al
jmp 0x1000b596
mov al, byte [esi + 0x10]
mov byte [edi + 4], al
lea eax, [ebp - 8]
push eax
push dword [ebp - 8]
push ebx
push edi
call dword [sym.imp.KERNEL32.dll_VirtualProtect]
push ebx
push edi
call dword [sym.imp.KERNEL32.dll_GetCurrentProcess]
push eax
call dword [sym.imp.KERNEL32.dll_FlushInstructionCache]
and byte [esi + 0x14], 0xf9
lea ecx, [ebp - 0x14]
xor esi, esi
call fcn.1000ac70
pop ebx
jmp 0x1000b5d1
mov esi, 6
jmp 0x1000b5d1
mov esi, 2
xor eax, eax
mov ecx, 0x1003a208
xchg dword [ecx], eax
mov ecx, dword [ebp - 4]
mov eax, esi
pop edi
xor ecx, ebp
pop esi
call fcn.1000cf03
mov esp, ebp
pop ebp
ret
Function at 0x10016b85
Capabilities:
Parse pe header

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

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
mov eax, 0x101c
call fcn.1000df50
mov eax, dword [0x10038064]
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.10019d2d
pop ecx
mov ecx, dword [ebp + 8]
mov ebx, eax
cmp dword [ecx + 8], 0
jne 0x1001b6f7
mov eax, dword [ebp + 0xc]
mov edx, dword [ebp + 0x10]
jmp 0x1001b853
mov eax, dword [ecx]
sub eax, dword [ecx + 4]
push esi
push edi
push 0
cdq
push 2
push edx
push eax
call fcn.10029190
push dword [ebp - 0x100c]
mov ecx, ebx
mov dword [ebp - 0x1008], eax
mov esi, ebx
mov dword [ebp - 0x1018], edx
and ecx, 0x3f
sar esi, 6
imul edi, ecx, 0x38
push 0
mov eax, dword [esi*4 + 0x10039da8]
push dword [eax + edi + 0x24]
push dword [eax + edi + 0x20]
push ebx
call fcn.1001b23e
mov ecx, dword [esi*4 + 0x10039da8]
add esp, 0x14
mov dword [ebp - 0x1010], eax
mov eax, edx
mov edx, dword [ebp - 0x1010]
mov dword [ebp - 0x101c], eax
cmp edx, dword [ecx + edi + 0x20]
jne 0x1001b84c
cmp eax, dword [ecx + edi + 0x24]
jne 0x1001b84c
push 0
lea eax, [ebp - 0x1014]
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 0x1001b84c
push dword [ebp - 0x100c]
push 0
push dword [ebp + 0x10]
push dword [ebp + 0xc]
push ebx
call fcn.1001b23e
add esp, 0x14
test edx, edx
jl 0x1001b84c
jg 0x1001b7c2
test eax, eax
jb 0x1001b84c
mov ebx, dword [ebp - 0x1018]
mov eax, dword [ebp - 0x1014]
test ebx, ebx
jg 0x1001b84c
jl 0x1001b7dc
cmp dword [ebp - 0x1008], eax
ja 0x1001b84c
lea edi, [ebp - 0x1004]
xor edx, edx
add edi, eax
lea ecx, [ebp - 0x1004]
xor esi, esi
cmp dword [ebp - 0x1008], edx
jne 0x1001b7fa
test ebx, ebx
je 0x1001b833
cmp ecx, edi
jae 0x1001b833
mov al, byte [ecx]
cmp al, 0xd
jne 0x1001b814
lea eax, [edi - 1]
cmp ecx, eax
jae 0x1001b820
cmp byte [ecx + 1], 0xa
jne 0x1001b820
inc ecx
jmp 0x1001b820
movzx eax, al
movsx eax, byte [eax + 0x100382c8]
add ecx, eax
add esi, 1
adc edx, 0
inc ecx
cmp esi, dword [ebp - 0x1008]
jne 0x1001b7fa
cmp edx, ebx
jne 0x1001b7fa
lea eax, [ebp - 0x1004]
sub ecx, eax
mov eax, ecx
cdq
add eax, dword [ebp - 0x1010]
adc edx, dword [ebp - 0x101c]
jmp 0x1001b851
or edx, 0xffffffff
mov eax, edx
pop edi
pop esi
mov ecx, dword [ebp - 4]
xor ecx, ebp
pop ebx
call fcn.1000cf03
leave
ret
Function at 0x1001ba19
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 + 0x10039da8]
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 0x1001ba59
cmp byte [ebx], 0xa
jne 0x1001ba59
or byte [edi + eax + 0x28], 4
jmp 0x1001ba5e
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 0x1001bb5d
mov dl, byte [eax]
cmp dl, 0x1a
je 0x1001bb40
inc eax
cmp dl, 0xd
je 0x1001ba8a
mov dword [ebp - 8], eax
mov byte [esi], dl
jmp 0x1001bab0
cmp eax, ecx
jae 0x1001babe
mov cl, byte [eax]
xor eax, eax
cmp cl, 0xa
sete al
inc eax
add dword [ebp - 8], eax
cmp cl, 0xa
sete al
dec al
and al, 3
add al, 0xa
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 0x1001ba72
jmp 0x1001bb5d
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 0x1001bb3b
cmp dword [ebp - 0x10], 0
je 0x1001bb3b
mov ecx, dword [ebp - 0xc]
mov eax, dword [ecx*4 + 0x10039da8]
test byte [eax + edi + 0x28], 0x48
je 0x1001bb15
mov dl, byte [ebp - 1]
lea eax, [esi + 1]
mov dword [ebp - 0x14], eax
cmp dl, 0xa
jne 0x1001bb00
mov byte [esi], dl
jmp 0x1001bb11
mov byte [esi], 0xd
mov eax, dword [ecx*4 + 0x10039da8]
mov byte [eax + edi + 0x2a], dl
mov eax, dword [ebp - 0x14]
mov esi, eax
jmp 0x1001bb5d
cmp byte [ebp - 1], 0xa
jne 0x1001bb24
cmp esi, ebx
jne 0x1001bb24
mov byte [esi], 0xa
jmp 0x1001bb5c
push 1
push 0xffffffffffffffff
push 0xffffffffffffffff
push dword [ebp + 8]
call fcn.1001b25c
add esp, 0x10
cmp byte [ebp - 1], 0xa
je 0x1001bb5d
mov byte [esi], 0xd
jmp 0x1001bb5c
mov ecx, dword [ebp - 0xc]
mov ecx, dword [ecx*4 + 0x10039da8]
mov al, byte [ecx + edi + 0x28]
test al, 0x40
jne 0x1001bb5a
or al, 2
mov byte [ecx + edi + 0x28], al
jmp 0x1001bb5d
mov byte [esi], dl
inc esi
sub esi, ebx
pop edi
mov eax, esi
pop esi
pop ebx
leave
ret
Function at 0x1001bb66
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 + 0x10039da8]
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 0x1001bbac
cmp word [ebx], dx
jne 0x1001bbac
or byte [eax + edi + 0x28], 4
jmp 0x1001bbb1
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 0x1001bd14
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 0x1001bcf4
add eax, 2
cmp cx, word [ebp - 0x10]
je 0x1001bbf2
mov dword [ebp - 4], eax
mov word [esi], cx
jmp 0x1001bc28
cmp eax, edx
jae 0x1001bc36
movzx eax, word [eax]
xor ecx, ecx
cmp ax, word [ebp - 0x18]
mov edx, eax
push 0xa
sete cl
xor eax, eax
lea ecx, [ecx*2 + 2]
add dword [ebp - 4], ecx
pop ecx
cmp dx, cx
mov edx, dword [ebp - 0xc]
sete al
dec eax
and eax, 3
add eax, ecx
mov word [esi], ax
mov eax, dword [ebp - 4]
push 2
pop ecx
add esi, ecx
cmp eax, edx
jb 0x1001bbcd
jmp 0x1001bd14
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 0x1001bcef
cmp dword [ebp - 0x18], 0
je 0x1001bcef
mov edx, dword [ebp - 8]
push 0xa
mov eax, dword [edx*4 + 0x10039da8]
test byte [eax + edi + 0x28], 0x48
je 0x1001bcc5
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 0x1001bc89
mov word [esi], cx
jmp 0x1001bcc0
push 0xd
pop ecx
mov word [esi], cx
movzx ecx, ax
mov eax, dword [edx*4 + 0x10039da8]
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 + 0x10039da8]
mov byte [eax + edi + 0x2b], cl
mov eax, dword [edx*4 + 0x10039da8]
pop ecx
mov byte [eax + edi + 0x2c], cl
mov esi, dword [ebp - 0x1c]
jmp 0x1001bd14
pop eax
cmp word [ebp - 4], ax
jne 0x1001bcd5
cmp esi, ebx
jne 0x1001bcd5
mov word [esi], ax
jmp 0x1001bd11
push 1
push 0xffffffffffffffff
push 0xfffffffffffffffe
push dword [ebp + 8]
call fcn.1001b25c
add esp, 0x10
push 0xa
pop eax
cmp word [ebp - 4], ax
je 0x1001bd14
push 0xd
pop eax
jmp 0x1001bcd0
mov edx, dword [ebp - 8]
mov edx, dword [edx*4 + 0x10039da8]
mov al, byte [edx + edi + 0x28]
test al, 0x40
jne 0x1001bd0e
or al, 2
mov byte [edx + edi + 0x28], al
jmp 0x1001bd14
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 0x1001c776
Capabilities:
Allocate thread local storage

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push esi
push 0x1002ef30
push 0x1002ef28
push str.FlsAlloc
push 0x1f
call fcn.1001c63e
mov esi, eax
add esp, 0x10
test esi, esi
je 0x1001c7aa
push dword [ebp + 8]
mov ecx, esi
call dword [0x1002b188]
call esi
jmp 0x1001c7b0
call dword [sym.imp.KERNEL32.dll_TlsAlloc]
pop esi
pop ebp
ret 4

Function at 0x1001c7f4
Capabilities:
Get thread local storage value

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push esi
push 0x1002ef40
push 0x1002ef38
push str.FlsGetValue
push 0x21
call fcn.1001c63e
mov esi, eax
add esp, 0x10
test esi, esi
je 0x1001c82b
push dword [ebp + 8]
mov ecx, esi
call dword [0x1002b188]
call esi
pop esi
pop ebp
ret 4
pop esi
pop ebp
jmp dword [sym.imp.KERNEL32.dll_TlsGetValue]

Function at 0x1001c833
Capabilities:
Set thread local storage value

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push esi
push 0x1002ef48
push 0x1002ef40
push str.FlsSetValue
push 0x22
call fcn.1001c63e
mov esi, eax
add esp, 0x10
test esi, esi
je 0x1001c86d
push dword [ebp + 0xc]
mov ecx, esi
push dword [ebp + 8]
call dword [0x1002b188]
call esi
pop esi
pop ebp
ret 8
pop esi
pop ebp
jmp dword [sym.imp.KERNEL32.dll_TlsSetValue]
Function at 0x10020f65
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 0x10021002
push ebx
push esi
call fcn.10020f2e
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.1001fd03
add esp, 0x24
mov dword [ebp - 4], eax
test eax, eax
jne 0x10020faf
push esi
call dword [sym.imp.KERNEL32.dll_FreeEnvironmentStringsW]
xor eax, eax
jmp 0x10021001
push edi
push eax
call fcn.1001cee1
mov edi, eax
pop ecx
push ebx
test edi, edi
jne 0x10020fcf
call fcn.10019cf3
pop ecx
push esi
call dword [sym.imp.KERNEL32.dll_FreeEnvironmentStringsW]
xor eax, eax
jmp 0x10021000
push ebx
push dword [ebp - 4]
push edi
push dword [ebp - 8]
push esi
push ebx
push ebx
call fcn.1001fd03
add esp, 0x20
test eax, eax
jne 0x10020fee
push edi
call fcn.10019cf3
jmp 0x10020ff6
push ebx
call fcn.10019cf3
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 0x1002327f
Capabilities:
Get geographical location

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push ecx
push esi
push edi
call fcn.100181bc
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 0x100232ee
cmp esi, dword [ebp - 4]
je 0x100232e9
cmp dword [ebp + 0xc], 0
je 0x100232e9
mov esi, dword [edi + 0x50]
lea ecx, [esi + 2]
mov ax, word [esi]
add esi, 2
test ax, ax
jne 0x100232c6
push dword [edi + 0x50]
sub esi, ecx
sar esi, 1
call fcn.10022dd1
pop ecx
xor ecx, ecx
cmp eax, esi
setne cl
mov eax, ecx
jmp 0x100232f0
xor eax, eax
inc eax
jmp 0x100232f0
xor eax, eax
pop edi
pop esi
leave
ret
Function at 0x10023355
Capabilities:
Get geographical location

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x18
mov eax, dword [0x10038064]
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.100181bc
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.100181bc
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 0x100233cc
cmp word [ecx], dx
je 0x100233cc
mov eax, dword [0x1002f634]
push edi
dec eax
push eax
push 0x1002f520
call fcn.100232f4
mov eax, dword [ebp - 0x14]
add esp, 0xc
xor edx, edx
mov dword [ebp - 0x10], edx
mov eax, dword [eax]
test eax, eax
je 0x1002343f
cmp word [eax], dx
je 0x1002343f
mov eax, dword [edi]
test eax, eax
je 0x100233f0
cmp word [eax], dx
je 0x100233f0
lea eax, [ebp - 0x10]
push eax
call fcn.10022cd7
jmp 0x100233f9
lea eax, [ebp - 0x10]
push eax
call fcn.10022d72
cmp dword [ebp - 0x10], 0
pop ecx
jne 0x10023469
mov eax, dword [0x1002f51c]
push dword [ebp - 0x14]
dec eax
push eax
push 0x1002f210
call fcn.100232f4
add esp, 0xc
test al, al
je 0x10023469
mov eax, dword [edi]
xor edi, edi
test eax, eax
je 0x10023434
cmp word [eax], di
je 0x10023434
lea eax, [ebp - 0x10]
push eax
call fcn.10022cd7
pop ecx
jmp 0x1002346b
lea eax, [ebp - 0x10]
push eax
call fcn.10022d72
jmp 0x10023431
mov eax, dword [edi]
test eax, eax
je 0x10023456
cmp word [eax], dx
je 0x10023456
lea eax, [ebp - 0x10]
push eax
call fcn.10022c8c
pop ecx
jmp 0x10023469
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 0x10023534
lea eax, [ebp - 0x10]
push eax
lea eax, [esi + 0x100]
neg esi
sbb esi, esi
and esi, eax
push esi
call fcn.10023179
mov esi, eax
pop ecx
pop ecx
test esi, esi
je 0x10023534
movzx ecx, si
push ecx
call dword [sym.imp.KERNEL32.dll_IsValidCodePage]
test eax, eax
je 0x10023534
push 1
push dword [ebp - 0xc]
call dword [sym.imp.KERNEL32.dll_IsValidLocale]
test eax, eax
je 0x10023534
mov eax, dword [ebp - 0x18]
test eax, eax
je 0x100234c1
mov dword [eax], esi
mov eax, dword [ebp - 0x14]
push edi
push 0x55
add eax, 0x250
push eax
push dword [ebp - 0xc]
call fcn.1001c973
test ebx, ebx
je 0x1002352f
push edi
push 0x55
lea eax, [ebx + 0x120]
push eax
push dword [ebp - 0xc]
call fcn.1001c973
push 0x40
push ebx
push 0x1001
push dword [ebp - 0xc]
call dword [sym.imp.KERNEL32.dll_GetLocaleInfoW]
test eax, eax
je 0x10023534
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 0x10023534
push 0xa
push 0x10
lea ecx, [ebx + 0x100]
push ecx
push esi
call fcn.100270c4
add esp, 0x10
xor eax, eax
inc eax
jmp 0x10023536
xor eax, eax
mov ecx, dword [ebp - 4]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.1000cf03
leave
ret
Function at 0x10027961
Capabilities:
Clear file content

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x2c
push ebx
mov ebx, dword [ebp + 8]
lea ecx, [ebp - 0x2c]
push esi
push edi
push dword [ebp + 0x10]
mov edi, dword [ebp + 0x14]
push dword [ebp + 0xc]
push ebx
call fcn.100278dd
mov eax, dword [ebp - 0x2c]
and eax, dword [ebp - 0x28]
cmp eax, 0xffffffff
je 0x10027ad0
mov eax, dword [ebp - 0x24]
and eax, dword [ebp - 0x20]
cmp eax, 0xffffffff
je 0x10027ad0
mov ecx, dword [ebp - 0x18]
mov eax, dword [ebp - 0x1c]
mov dword [ebp - 8], ecx
mov dword [ebp - 4], eax
test ecx, ecx
jl 0x10027a85
jg 0x100279bd
test eax, eax
je 0x10027a7b
push 1
push 0x1000
call fcn.1001afb9
mov esi, eax
pop ecx
pop ecx
test esi, esi
jne 0x100279e0
push 0xc
pop ebx
mov byte [edi + 0x1c], 1
mov dword [edi + 0x18], ebx
jmp 0x10027a72
push 0x8000
push ebx
call fcn.1002780e
pop ecx
pop ecx
mov ecx, dword [ebp - 0x1c]
mov dword [ebp - 0xc], eax
mov eax, dword [ebp - 0x18]
test eax, eax
jl 0x10027a09
jg 0x10027a04
cmp ecx, 0x1000
jb 0x10027a09
mov ecx, 0x1000
push edi
push ecx
push esi
push ebx
call fcn.1001ad9d
add esp, 0x10
cmp eax, 0xffffffff
je 0x10027a4e
mov ecx, dword [ebp - 4]
cdq
sub ecx, eax
mov eax, dword [ebp - 8]
mov dword [ebp - 4], ecx
sbb eax, edx
mov dword [ebp - 8], eax
test eax, eax
jg 0x10027a04
jl 0x10027a35
test ecx, ecx
jne 0x100279f6
push dword [ebp - 0xc]
push ebx
call fcn.1002780e
push esi
call fcn.10019cf3
add esp, 0xc
xor ebx, ebx
jmp 0x10027ade
cmp byte [edi + 0x24], 0
je 0x10027a65
cmp dword [edi + 0x20], 5
jne 0x10027a65
mov byte [edi + 0x1c], 1
mov dword [edi + 0x18], 0xd
cmp byte [edi + 0x1c], 0
je 0x10027a70
mov ebx, dword [edi + 0x18]
jmp 0x10027a72
xor ebx, ebx
push esi
call fcn.10019cf3
pop ecx
jmp 0x10027ade
test ecx, ecx
jg 0x10027a47
jl 0x10027a85
test eax, eax
jae 0x10027a47
push 0
push dword [ebp + 0x10]
push dword [ebp + 0xc]
push ebx
call fcn.1001b25c
and eax, edx
add esp, 0x10
cmp eax, 0xffffffff
jne 0x10027aa5
cmp byte [edi + 0x1c], 0
je 0x10027a47
jmp 0x10027ad6
push ebx
call fcn.1002390f
pop ecx
push eax
call dword [sym.imp.KERNEL32.dll_SetEndOfFile]
test eax, eax
jne 0x10027a47
call dword [sym.imp.KERNEL32.dll_GetLastError]
push 0xd
mov byte [edi + 0x24], 1
mov dword [edi + 0x20], eax
pop ebx
mov byte [edi + 0x1c], 1
mov dword [edi + 0x18], ebx
jmp 0x10027ade
cmp byte [edi + 0x1c], 0
je 0x10027adb
mov ebx, dword [edi + 0x18]
jmp 0x10027ade
push 0x16
pop ebx
push 0
push dword [ebp - 0x28]
push dword [ebp - 0x2c]
push dword [ebp - 0x14]
call fcn.1001b25c
add esp, 0x10
mov eax, ebx
pop edi
pop esi
pop ebx
leave
ret

Function at 0x10029090
Capabilities:
Parse pe header

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

Disassembly:
xor dword [edx], esi
add edx, 4
sub edi, edi
add eax, ebx
cmp edx, ecx
jne fcn.00414de1
add eax, 0x3b9c18e9
or ebx, ebx
dec eax
ret
Function at 0x401010
Capabilities:
Accept command line arguments
Create thread

Disassembly:
sub esp, 0x40c
mov eax, dword [0x40d154]
xor eax, esp
mov dword [esp + 0x408], eax
push esi
call dword [sym.imp.KERNEL32.dll_GetCommandLineW]
lea ecx, [esp + 4]
push ecx
push eax
call dword [sym.imp.SHELL32.dll_CommandLineToArgvW]
mov esi, eax
call dword [sym.imp.KERNEL32.dll_GetProcessHeap]
mov dword [0x40e944], eax
test eax, eax
jne 0x40104f
push 1
call fcn.00403237
push str..pipe_
lea edx, [esp + 0x10]
push 0x100
push edx
call fcn.00402d15
push str..pipe_
lea eax, [esp + 0x11c]
push 0x100
push eax
call fcn.00402d15
mov edx, dword [esi]
add esp, 0x18
push 0
push 0
push 0x80
lea ecx, [esp + 0x218]
push ecx
push 0xffffffffffffffff
push edx
push 0
push 0xfde9
call dword [sym.imp.KERNEL32.dll_WideCharToMultiByte]
xor esi, esi
movsx eax, byte [esp + esi + 0x20c]
push eax
call fcn.00402f1a
add esp, 4
cmp al, 0x39
ja 0x4010c4
shl al, 4
mov ecx, esi
shr ecx, 1
mov byte [esp + ecx + 0x15], al
jmp 0x4010d1
sub al, 7
shl al, 4
mov edx, esi
shr edx, 1
mov byte [esp + edx + 0x15], al
movsx eax, byte [esp + esi + 0x20d]
inc esi
push eax
call fcn.00402f1a
mov edx, esi
shr edx, 1
add esp, 4
lea ecx, [esp + edx + 0x15]
cmp al, 0x39
ja 0x4010f3
sub al, 0x30
jmp 0x4010f5
sub al, 0x37
add byte [ecx], al
mov al, byte [ecx]
xor al, 0x6c
sub al, dl
mov dl, al
sar dl, 4
and dl, 0xf
shl al, 4
xor dl, al
mov byte [ecx], dl
je 0x401114
inc esi
cmp esi, 0x44
jb 0x4010a2
push edi
mov edi, 0x44
xor esi, esi
lea esp, [esp]
movsx ecx, byte [esp + edi + 0x210]
push ecx
call fcn.00402f1a
add esp, 4
cmp al, 0x39
ja 0x401145
shl al, 4
mov edx, esi
shr edx, 1
mov byte [esp + edx + 0x119], al
jmp 0x401155
sub al, 7
shl al, 4
mov ecx, esi
shr ecx, 1
mov byte [esp + ecx + 0x119], al
movsx edx, byte [esp + edi + 0x211]
inc edi
push edx
inc esi
call fcn.00402f1a
mov edx, esi
shr edx, 1
add esp, 4
lea ecx, [esp + edx + 0x119]
cmp al, 0x39
ja 0x40117b
sub al, 0x30
jmp 0x40117d
sub al, 0x37
add byte [ecx], al
mov al, byte [ecx]
xor al, 0xc6
sub al, dl
mov dl, al
sar dl, 4
and dl, 0xf
shl al, 4
xor dl, al
mov byte [ecx], dl
je 0x4011a0
inc edi
inc esi
cmp edi, 0x88
jb 0x401120
mov esi, dword [sym.imp.KERNEL32.dll_CreateFileA]
push 0
push 0x80
push 3
push 0
push 3
push 0xc0000000
lea eax, [esp + 0x28]
push eax
call esi
mov dword [0x40e948], eax
pop edi
cmp eax, 0xffffffff
jne 0x4011d1
push 1
call fcn.00403237
push 0
push 0x80
push 3
push 0
push 3
push 0xc0000000
lea ecx, [esp + 0x124]
push ecx
call esi
mov dword [0x40e940], eax
cmp eax, 0xffffffff
jne 0x4011fe
push 1
call fcn.00403237
lea edx, [esp + 8]
push edx
push 0
push 0x40e948
push 0x401220
push 0
push 0
call dword [sym.imp.KERNEL32.dll_CreateThread]
call fcn.00401290
int3
Function at 0x401c14
Capabilities:
Execute shellcode via indirect call
Read file on windows

Disassembly:
call fcn.00402691
mov byte [0x40d116], 1

Function at 0x401c20
Capabilities:
Execute shellcode via indirect call
Read file on windows

Disassembly:
push 0x40d0fd
pop dword [0x40c302]
mov dword [0x40d0fd], 0
Function at 0x4026f4
Capabilities:
Query environment variable

Disassembly:
mov dword [0x40cb96], 0
push 0x40c64f
call fcn.004029e4
je 0x4028b5
or dword [0x40cb96], 1
call fcn.004028e0
je 0x402877
jb 0x402870
or dword [0x40cb96], 2
mov eax, 0x40c54b
cmp byte [eax], 0
jne 0x40288d
or dword [0x40cb96], 0x20
push 0x40c64f
push 0x40c753
call sub.KERNEL32.dll_lstrcpy
call fcn.004029ae
jne 0x402877
or dword [0x40cb96], 0x10
push 0x40c64f
push 0x40c753
call sub.KERNEL32.dll_lstrcpy
push 0x40c9c3
push 0x40c753
call sub.KERNEL32.dll_lstrcat
call fcn.004029ae
jne 0x402877
or dword [0x40cb96], 4
push 0x100
push 0x40c753
push str.APPDATA
call sub.KERNEL32.dll_GetEnvironmentVariableA
cmp eax, 0
je 0x4027fe
push 0x40cc4a
push 0x40c753
call sub.KERNEL32.dll_lstrcat
push 0x40c1c5
push 0x40c753
call sub.KERNEL32.dll_lstrcat
push 0x40cc4a
push 0x40c753
call sub.KERNEL32.dll_lstrcat
push str.THREEPARTICLE
push 0x40c753
call sub.KERNEL32.dll_lstrcat
push 0x40c9c3
push 0x40c753
call sub.KERNEL32.dll_lstrcat
call fcn.004029ae
jne 0x402877
or dword [0x40cb96], 8
push 0x100
push 0x40c753
push str.ALLUSERSPROFILE
call sub.KERNEL32.dll_GetEnvironmentVariableA
cmp eax, 0
je 0x402870
push 0x40cc4a
push 0x40c753
call sub.KERNEL32.dll_lstrcat
push 0x40c1c5
push 0x40c753
call sub.KERNEL32.dll_lstrcat
push 0x40cc4a
push 0x40c753
call sub.KERNEL32.dll_lstrcat
push str.THREEPARTICLE
push 0x40c753
call sub.KERNEL32.dll_lstrcat
push 0x40c9c3
push 0x40c753
call sub.KERNEL32.dll_lstrcat
call fcn.004029ae
jne 0x402877
mov eax, 0
clc
ret
push 0x40c753
push 0x40c54b
call sub.KERNEL32.dll_lstrcpy
mov eax, 1
clc
ret
push 0x40c9cc
push 0x40c54b
call sub.KERNEL32.dll_FindFirstFileA
cmp eax, 0xffffffff
je 0x402870
mov ecx, 0x40cb80
cmp dword [ecx], 0
je 0x4028ae
push eax
call dword [ecx]
mov eax, 1
clc
ret
mov eax, 0xff
stc
ret

Function at 0x402d06
Capabilities:
Terminate process

Disassembly:
cmp ecx, dword [0x40d154]
jne 0x402d10
repz ret
jmp fcn.00403480