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

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
mov eax, 0x101c
call fcn.00401ee2
mov eax, dword [0x517034]
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.004065af
pop ecx
mov ecx, dword [ebp + 8]
mov ebx, eax
cmp dword [ecx + 8], 0
jne 0x4a6616
mov eax, dword [ebp + 0xc]
mov edx, dword [ebp + 0x10]
jmp 0x4a6772
mov eax, dword [ecx]
sub eax, dword [ecx + 4]
push esi
push edi
push 0
cdq
push 2
push edx
push eax
call fcn.0040672b
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 + 0x51ae80]
push dword [edi + eax + 0x24]
push dword [edi + eax + 0x20]
push ebx
call fcn.00403580
mov ecx, dword [esi*4 + 0x51ae80]
add esp, 0x14
mov dword [ebp - 0x1010], eax
mov eax, edx
mov edx, dword [ebp - 0x1010]
mov dword [ebp - 0x101c], eax
cmp edx, dword [edi + ecx + 0x20]
jne 0x4a676b
cmp eax, dword [edi + ecx + 0x24]
jne 0x4a676b
push 0
lea eax, [ebp - 0x1014]
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 0x4a676b
push dword [ebp - 0x100c]
push 0
push dword [ebp + 0x10]
push dword [ebp + 0xc]
push ebx
call fcn.00403580
add esp, 0x14
test edx, edx
jl 0x4a676b
jg 0x4a66e1
test eax, eax
jb 0x4a676b
mov ebx, dword [ebp - 0x1018]
mov eax, dword [ebp - 0x1014]
test ebx, ebx
jg 0x4a676b
jl 0x4a66fb
cmp dword [ebp - 0x1008], eax
ja 0x4a676b
lea edi, [ebp - 0x1004]
xor edx, edx
add edi, eax
lea ecx, [ebp - 0x1004]
xor esi, esi
cmp dword [ebp - 0x1008], edx
jne 0x4a6719
test ebx, ebx
je 0x4a6752
cmp ecx, edi
jae 0x4a6752
mov al, byte [ecx]
cmp al, 0xd
jne 0x4a6733
lea eax, [edi - 1]
cmp ecx, eax
jae 0x4a673f
cmp byte [ecx + 1], 0xa
jne 0x4a673f
inc ecx
jmp 0x4a673f
movzx eax, al
movsx eax, byte [eax + 0x517358]
add ecx, eax
add esi, 1
adc edx, 0
inc ecx
cmp esi, dword [ebp - 0x1008]
jne 0x4a6719
cmp edx, ebx
jne 0x4a6719
lea eax, [ebp - 0x1004]
sub ecx, eax
mov eax, ecx
cdq
add eax, dword [ebp - 0x1010]
adc edx, dword [ebp - 0x101c]
jmp 0x4a6770
or edx, 0xffffffff
mov eax, edx
pop edi
pop esi
mov ecx, dword [ebp - 4]
xor ecx, ebp
pop ebx
call fcn.0040333c
leave
ret
Function at 0x4a6eb1
Capabilities:
Read file on windows

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x14
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 + 0x51ae80]
mov dword [ebp - 0x10], ecx
mov ecx, dword [eax + edi + 0x18]
mov dword [ebp - 0x14], ecx
mov ecx, dword [ebp + 0x10]
test ecx, ecx
je 0x4a6ef1
cmp byte [ebx], 0xa
jne 0x4a6ef1
or byte [eax + edi + 0x28], 4
jmp 0x4a6ef6
and byte [eax + edi + 0x28], 0xfb
add ecx, ebx
mov edx, ebx
mov dword [ebp - 0xc], ecx
mov esi, ebx
cmp ebx, ecx
jae 0x4a6ff4
mov al, byte [edx]
cmp al, 0x1a
je 0x4a6fd6
lea ecx, [edx + 1]
mov dword [ebp - 8], ecx
mov ecx, dword [ebp - 0xc]
cmp al, 0xd
je 0x4a6f25
mov edx, dword [ebp - 8]
mov byte [esi], al
jmp 0x4a6f4a
mov eax, dword [ebp - 8]
cmp eax, ecx
jae 0x4a6f54
mov cl, byte [eax]
xor eax, eax
cmp cl, 0xa
sete al
inc eax
add edx, eax
cmp cl, 0xa
sete al
dec al
and al, 3
add al, 0xa
mov byte [esi], al
mov ecx, dword [ebp - 0xc]
inc esi
cmp edx, ecx
jb 0x4a6f07
jmp 0x4a6ff4
push 0
lea eax, [ebp - 0xc]
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 0x4a6fd1
cmp dword [ebp - 0xc], 0
je 0x4a6fd1
mov ecx, dword [ebp - 0x10]
mov eax, dword [ecx*4 + 0x51ae80]
test byte [eax + edi + 0x28], 0x48
je 0x4a6fab
mov dl, byte [ebp - 1]
lea eax, [esi + 1]
mov dword [ebp - 0x14], eax
cmp dl, 0xa
jne 0x4a6f96
mov byte [esi], dl
jmp 0x4a6fa7
mov byte [esi], 0xd
mov eax, dword [ecx*4 + 0x51ae80]
mov byte [eax + edi + 0x2a], dl
mov eax, dword [ebp - 0x14]
mov esi, eax
jmp 0x4a6ff4
cmp byte [ebp - 1], 0xa
jne 0x4a6fba
cmp esi, ebx
jne 0x4a6fba
mov byte [esi], 0xa
jmp 0x4a6ff3
push 1
push 0xffffffffffffffff
push 0xffffffffffffffff
push dword [ebp + 8]
call fcn.00401a0a
add esp, 0x10
cmp byte [ebp - 1], 0xa
je 0x4a6ff4
mov byte [esi], 0xd
jmp 0x4a6ff3
mov ecx, dword [ebp - 0x10]
mov ecx, dword [ecx*4 + 0x51ae80]
mov al, byte [ecx + edi + 0x28]
test al, 0x40
jne 0x4a6ff0
or al, 2
mov byte [ecx + edi + 0x28], al
jmp 0x4a6ff4
mov byte [esi], 0x1a
inc esi
sub esi, ebx
pop edi
mov eax, esi
pop esi
pop ebx
leave
ret
Function at 0x4a7050
Capabilities:
Read file on windows

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x18
mov eax, dword [ebp + 8]
push ebx
push esi
mov esi, dword [ebp + 0xc]
mov ebx, eax
and eax, 0x3f
sar ebx, 6
push edi
imul edi, eax, 0x38
push 0xa
mov eax, dword [ebx*4 + 0x51ae80]
pop edx
mov dword [ebp - 0x14], edx
mov ecx, dword [edi + eax + 0x18]
mov dword [ebp - 0x18], ecx
mov ecx, dword [ebp + 0x10]
test ecx, ecx
je 0x4a7093
cmp word [esi], dx
jne 0x4a7093
or byte [edi + eax + 0x28], 4
jmp 0x4a7098
and byte [edi + eax + 0x28], 0xfb
lea edx, [esi + ecx*2]
mov eax, esi
mov dword [ebp - 8], edx
mov dword [ebp - 4], eax
cmp eax, edx
jae 0x4a71eb
mov dword [ebp - 0xc], 0xd
movzx ecx, word [eax]
mov edx, ecx
mov dword [ebp - 0x10], edx
push 0x1a
pop edx
cmp cx, dx
mov edx, dword [ebp - 8]
je 0x4a71cb
add eax, 2
cmp cx, word [ebp - 0xc]
je 0x4a70da
mov dword [ebp - 4], eax
mov word [esi], cx
jmp 0x4a7110
cmp eax, edx
jae 0x4a711c
movzx eax, word [eax]
xor ecx, ecx
cmp ax, word [ebp - 0x14]
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 - 8]
sete al
dec eax
and eax, 3
add eax, ecx
mov word [esi], ax
mov eax, dword [ebp - 4]
add esi, 2
cmp eax, edx
jb 0x4a70b2
jmp 0x4a71eb
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 0x4a71c7
cmp dword [ebp - 0x14], 0
je 0x4a71c7
mov eax, dword [ebx*4 + 0x51ae80]
push 0xa
test byte [edi + eax + 0x28], 0x48
je 0x4a719f
mov dx, word [ebp - 4]
lea eax, [esi + 2]
pop ecx
mov dword [ebp - 0x18], eax
cmp dx, cx
jne 0x4a7168
mov word [esi], cx
jmp 0x4a719b
push 0xd
pop eax
mov word [esi], ax
mov eax, dword [ebx*4 + 0x51ae80]
movzx ecx, dx
shr ecx, 8
push 0xa
mov byte [edi + eax + 0x2a], dl
mov eax, dword [ebx*4 + 0x51ae80]
mov byte [edi + eax + 0x2b], cl
mov eax, dword [ebx*4 + 0x51ae80]
pop ecx
mov byte [edi + eax + 0x2c], cl
mov eax, dword [ebp - 0x18]
mov esi, eax
jmp 0x4a71eb
pop ebx
cmp word [ebp - 4], bx
jne 0x4a71b0
cmp esi, dword [ebp + 0xc]
jne 0x4a71b0
mov word [esi], bx
jmp 0x4a71e8
push 1
push 0xffffffffffffffff
push 0xfffffffffffffffe
push dword [ebp + 8]
call fcn.00401a0a
add esp, 0x10
cmp word [ebp - 4], bx
je 0x4a71eb
push 0xd
jmp 0x4a71e4
mov ecx, dword [ebx*4 + 0x51ae80]
mov al, byte [ecx + edi + 0x28]
test al, 0x40
jne 0x4a71e2
or al, 2
mov byte [ecx + edi + 0x28], al
jmp 0x4a71eb
push 0x1a
pop eax
mov word [esi], ax
add esi, 2
sub esi, dword [ebp + 0xc]
and esi, 0xfffffffe
pop edi
mov eax, esi
pop esi
pop ebx
leave
ret
Function at 0x4abfa1
Capabilities:
Enumerate files on windows

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x264
mov eax, dword [0x517034]
xor eax, ebp
mov dword [ebp - 4], eax
mov edx, dword [ebp + 0xc]
mov ecx, dword [ebp + 0x10]
push ebx
push esi
push edi
mov edi, dword [ebp + 8]
mov dword [ebp - 0x25c], ecx
cmp edx, edi
je 0x4abfec
movzx eax, word [edx]
lea ecx, [ebp - 0x255]
push eax
call fcn.004ac463
test al, al
jne 0x4abfe6
sub edx, 2
cmp edx, edi
jne 0x4abfcc
mov ecx, dword [ebp - 0x25c]
movzx esi, word [edx]
cmp esi, 0x3a
jne 0x4ac00e
lea eax, [edi + 2]
cmp edx, eax
je 0x4ac00e
push ecx
xor ebx, ebx
push ebx
push ebx
push edi
call fcn.004abb9a
add esp, 0x10
jmp 0x4ac108
push esi
lea ecx, [ebp - 0x255]
call fcn.004ac463
sub edx, edi
movzx eax, al
sar edx, 1
inc edx
neg eax
sbb eax, eax
xor ebx, ebx
push ebx
push ebx
and eax, edx
push ebx
mov dword [ebp - 0x260], eax
lea eax, [ebp - 0x254]
push eax
push ebx
push edi
call dword [sym.imp.KERNEL32.dll_FindFirstFileExW]
mov esi, eax
cmp esi, 0xffffffff
jne 0x4ac051
push dword [ebp - 0x25c]
jmp 0x4abffe
mov ebx, dword [ebp - 0x25c]
push 0x2e
mov eax, dword [ebx + 4]
sub eax, dword [ebx]
sar eax, 2
mov dword [ebp - 0x25c], eax
pop eax
cmp word [ebp - 0x228], ax
jne 0x4ac08e
cmp word [ebp - 0x226], 0
je 0x4ac0af
cmp word [ebp - 0x226], ax
jne 0x4ac08e
cmp word [ebp - 0x224], 0
je 0x4ac0af
push ebx
push dword [ebp - 0x260]
lea eax, [ebp - 0x228]
push edi
push eax
call fcn.004abb9a
add esp, 0x10
mov dword [ebp - 0x264], eax
test eax, eax
jne 0x4ac0fb
lea eax, [ebp - 0x254]
push eax
push esi
call dword [sym.imp.KERNEL32.dll_FindNextFileW]
push 0x2e
test eax, eax
pop eax
jne 0x4ac068
mov eax, dword [ebx + 4]
mov edx, dword [ebx]
sub eax, edx
mov ecx, dword [ebp - 0x25c]
sar eax, 2
cmp ecx, eax
jne 0x4ac0e3
push esi
call dword [sym.imp.KERNEL32.dll_FindClose]
xor eax, eax
jmp 0x4ac108
push 0x4ab582
sub eax, ecx
push 4
push eax
lea eax, [edx + ecx*4]
push eax
call fcn.00405b91
add esp, 0x10
jmp 0x4ac0d8
push esi
call dword [sym.imp.KERNEL32.dll_FindClose]
mov eax, dword [ebp - 0x264]
mov ecx, dword [ebp - 4]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.0040333c
leave
ret
Function at 0x4150f0
Capabilities:
Packed with generic packer

Disassembly:
pushal
mov esi, section.sect_1
lea edi, [esi - 0x7000]
push edi
or ebp, 0xffffffff
jmp 0x415112
mov al, byte [esi]
inc esi
mov byte [edi], al
inc edi
add ebx, ebx
jne 0x415119
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
jb 0x415108
mov eax, 1
add ebx, ebx
jne 0x41512b
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc eax, eax
add ebx, ebx
jae 0x415120
jne 0x41513c
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
jae 0x415120
xor ecx, ecx
sub eax, 3
jb 0x415150
shl eax, 8
mov al, byte [esi]
inc esi
xor eax, 0xffffffff
je 0x4151c2
mov ebp, eax
add ebx, ebx
jne 0x41515b
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc ecx, ecx
add ebx, ebx
jne 0x415168
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc ecx, ecx
jne 0x41518c
inc ecx
add ebx, ebx
jne 0x415178
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc ecx, ecx
add ebx, ebx
jae 0x41516d
jne 0x415189
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
jae 0x41516d
add ecx, 2
cmp ebp, 0xfffff300
adc ecx, 1
lea edx, [edi + ebp]
cmp ebp, 0xfffffffc
jbe 0x4151ac
mov al, byte [edx]
inc edx
mov byte [edi], al
inc edi
dec ecx
jne 0x41519d
jmp 0x41510e
mov eax, dword [edx]
add edx, 4
mov dword [edi], eax
add edi, 4
sub ecx, 4
ja 0x4151ac
add edi, ecx
jmp 0x41510e
pop esi
mov edi, esi
mov ecx, 0xa1
mov al, byte [edi]
inc edi
sub al, 0xe8
cmp al, 1
ja 0x4151ca
cmp byte [edi], 5
jne 0x4151ca
mov eax, dword [edi]
mov bl, byte [edi + 4]
shr ax, 8
rol eax, 0x10
xchg ah, al
sub eax, edi
sub bl, 0xe8
add eax, esi
mov dword [edi], eax
add edi, 5
mov eax, ebx
loop 0x4151cf
lea edi, [esi + 0x13000]
mov eax, dword [edi]
or eax, eax
je 0x415247
mov ebx, dword [edi + 4]
lea eax, [eax + esi + 0x159fc]
add ebx, esi
push eax
add edi, 8
call dword [esi + 0x15a88]
xchg ebp, eax
mov al, byte [edi]
inc edi
or al, al
je 0x4151fc
mov ecx, edi
jns 0x41522b
movzx eax, word [edi]
inc edi
push eax
inc edi
mov ecx, 0xaef24857
push edi
dec eax
repne scasb al, byte es:[edi]
push ebp
call dword [esi + 0x15a8c]
or eax, eax
je 0x415241
mov dword [ebx], eax
add ebx, 4
jmp 0x415219
call dword [esi + 0x15a90]
popal
jmp 0x4021d0
Function at 0x4114f4
Capabilities:
Delete file

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffff0
push ebx
push esi
mov esi, edx
mov ebx, eax
lea edx, [ebp - 0xc]
mov eax, ebx
call fcn.004114a8
test al, al
jne 0x411515
xor eax, eax
mov dword [ebp - 4], eax
jmp 0x411561
xor eax, eax
push ebp
push 0x411551
push dword fs:[eax]
mov dword fs:[eax], esp
mov eax, esi
call fcn.00404f68
push eax
call sub.kernel32.dll_DeleteFileW
mov dword [ebp - 4], eax
call sub.kernel32.dll_GetLastError
mov dword [ebp - 0x10], eax
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x411558
lea eax, [ebp - 0xc]
call fcn.004114e4
ret
mov eax, dword [ebp - 4]
pop esi
pop ebx
mov esp, ebp
pop ebp
ret

Function at 0x4117a0
Capabilities:
Create directory

Disassembly:
push ebp
mov ebp, esp
mov ecx, 4
push 0
push 0
dec ecx
jne 0x4117a8
push ecx
push ebx
push esi
mov esi, eax
xor eax, eax
push ebp
push 0x411895
push dword fs:[eax]
mov dword fs:[eax], esp
lea eax, [ebp - 4]
push eax
lea eax, [ebp - 8]
call fcn.0040ed28
mov edx, dword [ebp - 8]
mov ecx, 0x4118b0
xor eax, eax
call fcn.00411684
push 0
mov eax, dword [ebp - 4]
call fcn.00404f68
push eax
call sub.kernel32.dll_CreateDirectoryW
test eax, eax
jne 0x411863
call sub.kernel32.dll_GetLastError
mov ebx, eax
cmp ebx, 0xb7
je 0x4117c2
lea eax, [ebp - 0xc]
push eax
lea ecx, [ebp - 0x1c]
mov edx, dword [ebp - 4]
mov al, 0x2f
call fcn.004112ac
mov eax, dword [ebp - 0x1c]
mov dword [ebp - 0x18], eax
mov eax, ebx
xor edx, edx
push edx
push eax
lea eax, [ebp - 0x20]
call fcn.004084ec
mov eax, dword [ebp - 0x20]
mov dword [ebp - 0x14], eax
lea edx, [ebp - 0x24]
mov eax, ebx
call fcn.0040f2d0
mov eax, dword [ebp - 0x24]
mov dword [ebp - 0x10], eax
lea edx, [ebp - 0x18]
mov ecx, 2
mov al, 0x60
call fcn.0041127c
mov ecx, dword [ebp - 0xc]
mov dl, 1
mov eax, dword [0x406f80]
call fcn.0040c22c
call fcn.004040b0
jmp 0x4117c2
mov eax, esi
mov edx, dword [ebp - 4]
call fcn.00404edc
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x41189c
lea eax, [ebp - 0x24]
mov edx, 3
call fcn.00404ed4
lea eax, [ebp - 0xc]
mov edx, 3
call fcn.00404ed4
ret

Function at 0x411968
Capabilities:
Check if file exists

Disassembly:
push ebp
mov ebp, esp
push ecx
push ebx
push esi
push edi
mov dword [ebp - 4], edx
mov ebx, eax
mov esi, ecx
dec esi
test esi, esi
jl 0x4119c2
inc esi
xor edi, edi
cmp edi, 1
jne 0x41198e
mov eax, dword [ebp + 0xc]
push eax
call sub.kernel32.dll_Sleep_1
jmp 0x41199c
cmp edi, 1
jle 0x41199c
mov eax, dword [ebp + 8]
push eax
call sub.kernel32.dll_Sleep_1
mov edx, dword [ebp - 4]
mov eax, ebx
call fcn.004114f4
test eax, eax
jne 0x4119c2
call sub.kernel32.dll_GetLastError
cmp eax, 2
je 0x4119c2
call sub.kernel32.dll_GetLastError
cmp eax, 3
je 0x4119c2
inc edi
dec esi
jne 0x41197e
pop edi
pop esi
pop ebx
pop ecx
pop ebp
ret 8

Function at 0x4119cc
Capabilities:
Get geographical location

Disassembly:
push ebp
mov ebp, esp
push ecx
push ebx
mov ebx, eax
push 2
lea eax, [ebp - 4]
push eax
push 0x20001004
movzx eax, bx
push eax
call sub.kernel32.dll_GetLocaleInfoW_1
test eax, eax
jle 0x4119f0
mov eax, dword [ebp - 4]
jmp 0x4119f3
or eax, 0xffffffff
pop ebx
pop ecx
pop ebp
ret
Function at 0x4119f8
Capabilities:
Identify system language via api

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffff8
push ebx
push esi
push edi
mov esi, ecx
mov byte [ebp - 1], dl
mov edi, eax
mov eax, dword [ebp + 8]
xor edx, edx
mov dword [eax], edx
mov byte [ebp - 2], 0
test esi, esi
je 0x411a45
xor ebx, ebx
jmp 0x411a3a
mov eax, dword [ebp - 8]
mov edx, dword [eax]
mov eax, esi
call fcn.00407fac
test eax, eax
jne 0x411a39
mov eax, dword [ebp + 8]
mov dword [eax], ebx
mov byte [ebp - 2], 2
jmp 0x411aef
inc ebx
lea edx, [ebp - 8]
mov eax, ebx
call edi
test al, al
jne 0x411a1b
movzx eax, byte [ebp - 1]
sub al, 1
jb 0x411a51
je 0x411a5a
jmp 0x411a63
call fcn.0040f000
mov esi, eax
jmp 0x411a65
call sub.kernel32.dll_GetUserDefaultLangID
mov esi, eax
jmp 0x411a65
xor esi, esi
test si, si
je 0x411aef
xor ebx, ebx
jmp 0x411a8b
mov eax, dword [ebp - 8]
mov eax, dword [eax + 0x28]
movzx edx, si
cmp eax, edx
jne 0x411a8a
mov eax, dword [ebp + 8]
mov dword [eax], ebx
mov byte [ebp - 2], 1
jmp 0x411aef
inc ebx
lea edx, [ebp - 8]
mov eax, ebx
call edi
test al, al
jne 0x411a72
xor ebx, ebx
jmp 0x411ae4
mov eax, dword [ebp - 8]
mov eax, dword [eax + 0x28]
and eax, 0x3ff
mov edx, esi
and dx, 0x3ff
movzx edx, dx
cmp eax, edx
jne 0x411ae3
mov eax, esi
and ax, 0x3ff
cmp ax, 4
jne 0x411ad8
mov eax, dword [ebp - 8]
movzx eax, word [eax + 0x28]
call fcn.004119cc
push eax
mov eax, esi
call fcn.004119cc
pop edx
cmp edx, eax
jne 0x411ae3
mov eax, dword [ebp + 8]
mov dword [eax], ebx
mov byte [ebp - 2], 1
jmp 0x411aef
inc ebx
lea edx, [ebp - 8]
mov eax, ebx
call edi
test al, al
jne 0x411a9a
movzx eax, byte [ebp - 2]
pop edi
pop esi
pop ebx
pop ecx
pop ecx
pop ebp
ret 4

Function at 0x415294
Capabilities:
Create process on windows
Create process suspended

Disassembly:
push ebp
mov ebp, esp
add esp, 0xffffffa8
push ebx
push esi
push edi
xor ebx, ebx
mov dword [ebp - 4], ebx
mov edi, ecx
mov esi, edx
mov ebx, eax
xor eax, eax
push ebp
push 0x415369
push dword fs:[eax]
mov dword fs:[eax], esp
push 0x415384
push ebx
push 0x415394
push esi
lea eax, [ebp - 4]
mov edx, 4
call fcn.00405380
lea eax, [ebp - 0x48]
xor ecx, ecx
mov edx, 0x44
call fcn.00403270
mov dword [ebp - 0x48], 0x44
lea eax, [ebp - 0x58]
push eax
lea eax, [ebp - 0x48]
push eax
push 0
push 0
push 0
push 0
push 0
push 0
mov eax, dword [ebp - 4]
call fcn.00404f68
push eax
push 0
call sub.kernel32.dll_CreateProcessW
test eax, eax
jne 0x415314
mov al, 0x62
call fcn.00414f0c
mov eax, dword [ebp - 0x54]
push eax
call sub.kernel32.dll_CloseHandle_1
call fcn.00415268
push 0xff
push 0xffffffffffffffff
push 0
lea eax, [ebp - 0x58]
push eax
push 1
call sub.user32.dll_MsgWaitForMultipleObjects
cmp eax, 1
je 0x41531d
call fcn.00415268
push edi
mov eax, dword [ebp - 0x58]
push eax
call sub.kernel32.dll_GetExitCodeProcess
mov eax, dword [ebp - 0x58]
push eax
call sub.kernel32.dll_CloseHandle_1
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x415370
lea eax, [ebp - 4]
call fcn.00404ecc
ret
Function at 0x415484
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 0x41554f
jmp 0x415543
cmp dword [esi + 0x10], 0x1000
jne 0x41552f
test byte [esi + 0x15], 1
jne 0x41552f
mov byte [esp + 4], 0
mov ebp, dword [esi + 0x14]
cmp ebp, 1
je 0x4154e0
cmp ebp, 2
je 0x4154e0
cmp ebp, 0x10
je 0x4154e0
cmp ebp, 0x20
jne 0x4154fc
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 0x4154fc
mov byte [esp + 4], 1
xor ebx, ebx
jmp 0x41550d
mov eax, dword [esi]
add eax, ebx
call fcn.0041547c
add ebx, dword [esp + 0x10]
cmp ebx, dword [esi + 0xc]
jb 0x415500
cmp byte [esp + 4], 0
je 0x41552f
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 0x41554f
mov eax, dword [esi + 4]
cmp eax, dword [esp]
je 0x4154b5
add esp, 0x4c
pop ebp
pop edi
pop esi
pop ebx
ret
Function at 0x403000
Capabilities:
Accept command line arguments

Disassembly:
mov eax, dword fs:[0]
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x41aad8
push 0x4068c4
push eax
mov dword fs:[0], esp
sub esp, 0x60
push ebx
push esi
push edi
mov dword [ebp - 0x18], esp
call dword [sym.imp.KERNEL32.dll_GetVersion]
mov dword [0x41e6a4], eax
xor eax, eax
mov al, byte [0x41e6a5]
mov dword [0x41e6b0], eax
mov eax, dword [0x41e6a4]
shr dword [0x41e6a4], 0x10
and eax, 0xff
mov dword [0x41e6ac], eax
shl eax, 8
add eax, dword [0x41e6b0]
mov dword [0x41e6a8], eax
call fcn.00406880
test eax, eax
jne 0x403074
push 0x1c
call fcn.004031b0
add esp, 4
call fcn.00404b80
test eax, eax
jne 0x403087
push 0x10
call fcn.004031b0
add esp, 4
mov dword [ebp - 4], 0
call fcn.004066a0
call fcn.00403e00
call dword [sym.imp.KERNEL32.dll_GetCommandLineA]
mov dword [0x423dd8], eax
call fcn.00406510
mov dword [0x41e670], eax
test eax, eax
je 0x4030ba
cmp dword [0x423dd8], 0
jne 0x4030c4
push 0xffffffffffffffff
call fcn.004032b0
add esp, 4
call fcn.004062a0
call fcn.004061b0
call fcn.00403280
mov esi, dword [0x423dd8]
mov al, byte [esi]
cmp al, 0x22
je 0x4030eb
cmp al, 0x20
jbe 0x403118
inc esi
cmp byte [esi], 0x20
ja 0x4030e3
jmp 0x403118
inc esi
cmp byte [esi], 0x22
je 0x403117
mov bl, byte [ebp - 0x28]
mov bl, byte [esi]
test bl, bl
je 0x403112
xor eax, eax
mov al, bl
push eax
call fcn.00406150
add esp, 4
test eax, eax
je 0x40310c
inc esi
inc esi
cmp byte [esi], 0x22
jne 0x4030f4
cmp byte [esi], 0x22
jne 0x403118
inc esi
cmp byte [esi], 0
je 0x403128
cmp byte [esi], 0x20
ja 0x403128
inc esi
cmp byte [esi], 0
jne 0x40311d
mov dword [ebp - 0x44], 0
lea eax, [ebp - 0x70]
push eax
call dword [sym.imp.KERNEL32.dll_GetStartupInfoA]
test byte [ebp - 0x44], 1
mov eax, 0xa
je 0x40314c
mov eax, dword [ebp - 0x40]
and eax, 0xffff
push eax
push esi
push 0
push 0
call dword [sym.imp.KERNEL32.dll_GetModuleHandleA]
push eax
call main
push eax
call fcn.004032b0
jmp 0x40318d
add esp, 4
mov dword [ebp - 4], 0xffffffff
mov eax, dword [ebp - 0x10]
pop edi
mov dword fs:[0], eax
pop esi
pop ebx
mov esp, ebp
pop ebp
ret

Function at 0x4032f0
Capabilities:
Terminate process

Disassembly:
push ebx
push esi
push edi
call fcn.004033b0
cmp dword [0x41e6e0], 1
mov esi, dword [esp + 0x10]
jne 0x403313
push esi
call dword [sym.imp.KERNEL32.dll_GetCurrentProcess]
push eax
call dword [sym.imp.KERNEL32.dll_TerminateProcess]
mov dword [0x41e6dc], 1
cmp dword [esp + 0x14], 0
mov ebx, dword [esp + 0x18]
mov byte [0x41e6d8], bl
jne 0x40336d
cmp dword [0x423dd0], 0
je 0x40335b
mov edi, dword [0x423dcc]
sub edi, 4
cmp edi, dword [0x423dd0]
jb 0x40335b
mov eax, dword [edi]
test eax, eax
je 0x403350
call eax
sub edi, 4
cmp edi, dword [0x423dd0]
jae 0x403348
push 0x41e070
push 0x41e068
call fcn.004033d0
add esp, 8
push 0x41e078
push 0x41e074
call fcn.004033d0
add esp, 8
test ebx, ebx
je 0x40338c
call fcn.004033c0
pop edi
pop esi
pop ebx
ret
mov dword [0x41e6e0], 1
push esi
call dword [sym.imp.KERNEL32.dll_ExitProcess]
Function at 0x404b80
Capabilities:
Allocate thread local storage
Set thread local storage value

Disassembly:
push esi
call fcn.00405a60
call dword [sym.imp.KERNEL32.dll_TlsAlloc]
mov dword [0x41eb70], eax
cmp eax, 0xffffffff
jne 0x404b9a
xor eax, eax
pop esi
ret
push 0x74
push 1
call fcn.00407580
add esp, 8
mov esi, eax
test esi, esi
je 0x404bdc
push esi
mov eax, dword [0x41eb70]
push eax
call dword [sym.imp.KERNEL32.dll_TlsSetValue]
test eax, eax
je 0x404bdc
push esi
call fcn.00404be0
add esp, 4
call dword [sym.imp.KERNEL32.dll_GetCurrentThreadId]
mov dword [esi], eax
mov eax, 1
mov dword [esi + 4], 0xffffffff
pop esi
ret
xor eax, eax
pop esi
ret

Function at 0x404c00
Capabilities:
Get thread local storage value
Set thread local storage value

Disassembly:
push esi
push edi
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov esi, eax
mov eax, dword [0x41eb70]
push eax
call dword [sym.imp.KERNEL32.dll_TlsGetValue]
mov edi, eax
test edi, edi
jne 0x404c63
push 0x74
push 1
call fcn.00407580
add esp, 8
mov edi, eax
test edi, edi
je 0x404c59
push edi
mov eax, dword [0x41eb70]
push eax
call dword [sym.imp.KERNEL32.dll_TlsSetValue]
test eax, eax
je 0x404c59
push edi
call fcn.00404be0
add esp, 4
call dword [sym.imp.KERNEL32.dll_GetCurrentThreadId]
mov dword [edi], eax
mov dword [edi + 4], 0xffffffff
jmp 0x404c63
push 0x10
call fcn.004031b0
add esp, 4
push esi
call dword [sym.imp.KERNEL32.dll_SetLastError]
mov eax, edi
pop edi
pop esi
ret