joyce8/EMBER2024-capa huggingface dataset:
Function at 0x412c73
Capabilities:
Check for time delay via gettickcount

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x24
mov dword [ebp - 0x24], ecx
call dword [sym.imp.KERNEL32.dll_GetTickCount]
mov dword [ebp - 4], eax
call dword [sym.imp.KERNEL32.dll_GetTickCount]
sub eax, dword [ebp - 4]
cmp eax, dword [ebp + 8]
jae 0x412cd9
push 1
push 0
push 0
push 0
lea eax, [ebp - 0x20]
push eax
call dword [sym.imp.USER32.dll_PeekMessageA]
test eax, eax
je 0x412ccf
cmp dword [ebp - 0x1c], 0x12
jne 0x412cb9
push 0
call dword [sym.imp.USER32.dll_PostQuitMessage]
jmp 0x412cd9
lea ecx, [ebp - 0x20]
push ecx
call dword [sym.imp.USER32.dll_TranslateMessage]
lea edx, [ebp - 0x20]
push edx
call dword [sym.imp.USER32.dll_DispatchMessageA]
jmp 0x412cd7
push 4
call dword [sym.imp.KERNEL32.dll_Sleep]
jmp 0x412c85
mov esp, ebp
pop ebp
ret 4

Function at 0x4132ab
Capabilities:
Read file via mapping

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x4198f6
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x14
mov dword [ebp - 0x18], ecx
lea ecx, [ebp - 0x10]
call sub.MFC42.DLL_CString::CString
mov dword [ebp - 4], 0
mov ecx, dword [ebp - 0x18]
add ecx, 0x19e8
call fcn.00402650
push eax
lea eax, [ebp - 0x14]
push eax
mov ecx, dword [ebp - 0x18]
call fcn.0041319f
mov dword [ebp - 0x1c], eax
mov ecx, dword [ebp - 0x1c]
mov dword [ebp - 0x20], ecx
mov byte [ebp - 4], 1
mov edx, dword [ebp - 0x20]
push edx
lea ecx, [ebp - 0x10]
call fcn.004183da
mov byte [ebp - 4], 0
lea ecx, [ebp - 0x14]
call fcn.004183d4
lea ecx, [ebp - 0x10]
call fcn.00402650
push eax
push 4
push 0
push 4
push 0
push 0xffffffffffffffff
call dword [sym.imp.KERNEL32.dll_CreateFileMappingA]
mov ecx, dword [ebp - 0x18]
mov dword [ecx + 0x19ec], eax
mov edx, dword [ebp - 0x18]
cmp dword [edx + 0x19ec], 0
jne 0x413365
push 0
push 0
push 0x421874
call sub.MFC42.DLL_AfxMessageBox
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x10]
call fcn.004183d4
jmp 0x4133d6
push 4
push 0
push 0
push 0xf001f
mov eax, dword [ebp - 0x18]
mov ecx, dword [eax + 0x19ec]
push ecx
call dword [sym.imp.KERNEL32.dll_MapViewOfFile]
mov edx, dword [ebp - 0x18]
mov dword [edx + 0x19f0], eax
mov eax, dword [ebp - 0x18]
cmp dword [eax + 0x19f0], 0
jne 0x4133b4
push 0
push 0
push 0x4218a4
call sub.MFC42.DLL_AfxMessageBox
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x10]
call fcn.004183d4
jmp 0x4133d6
mov ecx, dword [ebp - 0x18]
call fcn.00413f60
mov ecx, dword [ebp - 0x18]
mov edx, dword [ecx + 0x19f0]
mov dword [edx], eax
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x10]
call fcn.004183d4
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
mov esp, ebp
pop ebp
ret
Function at 0x41454b
Capabilities:
Read file via mapping

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x419a3b
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x14
mov dword [ebp - 0x18], ecx
lea ecx, [ebp - 0x10]
call sub.MFC42.DLL_CString::CString
mov dword [ebp - 4], 0
mov ecx, dword [ebp - 0x18]
add ecx, 0x19e8
call fcn.00402650
push eax
lea eax, [ebp - 0x14]
push eax
mov ecx, dword [ebp - 0x18]
call fcn.00414462
mov dword [ebp - 0x1c], eax
mov ecx, dword [ebp - 0x1c]
mov dword [ebp - 0x20], ecx
mov byte [ebp - 4], 1
mov edx, dword [ebp - 0x20]
push edx
lea ecx, [ebp - 0x10]
call fcn.004183da
mov byte [ebp - 4], 0
lea ecx, [ebp - 0x14]
call fcn.004183d4
lea ecx, [ebp - 0x10]
call fcn.00402650
push eax
push 4
push 0
push 4
push 0
push 0xffffffffffffffff
call dword [sym.imp.KERNEL32.dll_CreateFileMappingA]
mov ecx, dword [ebp - 0x18]
mov dword [ecx + 0x19f4], eax
mov edx, dword [ebp - 0x18]
cmp dword [edx + 0x19f4], 0
jne 0x414605
push 0
push 0
push 0x421c28
call sub.MFC42.DLL_AfxMessageBox
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x10]
call fcn.004183d4
jmp 0x414676
push 4
push 0
push 0
push 0xf001f
mov eax, dword [ebp - 0x18]
mov ecx, dword [eax + 0x19f4]
push ecx
call dword [sym.imp.KERNEL32.dll_MapViewOfFile]
mov edx, dword [ebp - 0x18]
mov dword [edx + 0x19f8], eax
mov eax, dword [ebp - 0x18]
cmp dword [eax + 0x19f8], 0
jne 0x414654
push 0
push 0
push 0x421c58
call sub.MFC42.DLL_AfxMessageBox
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x10]
call fcn.004183d4
jmp 0x414676
mov ecx, dword [ebp - 0x18]
call fcn.00413f60
mov ecx, dword [ebp - 0x18]
mov edx, dword [ecx + 0x19f8]
mov dword [edx], eax
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x10]
call fcn.004183d4
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
mov esp, ebp
pop ebp
ret
Function at 0x417e70
Capabilities:
Write file on windows

Disassembly:
push esi
mov esi, dword [esp + 0xc]
mov eax, dword [esi + 0x14]
mov dword [esi + 0xc], 0
push eax
mov dword [esi + 0x10], 0
call dword [sym.imp.KERNEL32.dll_ResetEvent]
test eax, eax
jne 0x417e95
xor al, al
pop esi
ret
mov edx, dword [esi + 0x1c]
mov eax, dword [esi + 0x18]
push edi
lea edi, [esi + 4]
mov esi, dword [esp + 0xc]
lea ecx, [esp + 0x10]
push edi
push ecx
mov ecx, dword [esi]
push edx
push eax
push ecx
call dword [sym.imp.KERNEL32.dll_WriteFile]
mov al, byte [esp + 0x14]
test al, al
je 0x417ed0
mov eax, dword [esi]
lea edx, [esp + 0x10]
push 1
push edx
push edi
push eax
call dword [sym.imp.KERNEL32.dll_GetOverlappedResult]
pop edi
pop esi
ret
pop edi
mov al, 1
pop esi
ret

Function at 0x417ee0
Capabilities:
Read file on windows

Disassembly:
push esi
mov esi, dword [esp + 0xc]
mov eax, dword [esi + 0x14]
mov dword [esi + 0xc], 0
push eax
mov dword [esi + 0x10], 0
call dword [sym.imp.KERNEL32.dll_ResetEvent]
test eax, eax
jne 0x417f05
xor al, al
pop esi
ret
mov ecx, dword [esi + 0x1c]
mov edx, dword [esi + 0x18]
push ebp
mov ebp, dword [esp + 0x18]
push edi
lea edi, [esi + 4]
mov esi, dword [esp + 0x10]
push edi
push ebp
push ecx
mov eax, dword [esi]
push edx
push eax
call dword [sym.imp.KERNEL32.dll_ReadFile]
mov al, byte [esp + 0x18]
test al, al
je 0x417f3e
mov ecx, dword [esi]
push 1
push ebp
push edi
push ecx
call dword [sym.imp.KERNEL32.dll_GetOverlappedResult]
pop edi
pop ebp
pop esi
ret
pop edi
pop ebp
mov al, 1
pop esi
ret

Function at 0x4180d0
Capabilities:
Query or enumerate registry value

Disassembly:
sub esp, 0x18
lea eax, [esp + 0x10]
push edi
mov edi, dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
push eax
push 0x20019
push 0
push str.SYSTEM
push reloc.WSOCK32.dll_bind
call edi
test eax, eax
jne 0x4181c4
mov edx, dword [esp + 0x14]
push ebx
lea ecx, [esp + 0x14]
push esi
push ecx
push 0x20019
push eax
push str.CurrentControlSet
push edx
call edi
mov ebx, dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov esi, eax
test esi, esi
jne 0x4181b9
mov ecx, dword [esp + 0x18]
lea eax, [esp + 0x14]
push eax
push 0x20019
push 0
push str.Services
push ecx
call edi
mov esi, eax
test esi, esi
jne 0x4181b2
lea edx, [esp + 0x10]
push edx
push 0x20019
push eax
mov eax, dword [esp + 0x20]
push str.Packet
push eax
call edi
mov esi, eax
test esi, esi
jne 0x4181ab
mov edx, dword [esp + 0x10]
lea ecx, [esp + 0xc]
push ecx
push 0x20019
push eax
push str.Linkage
push edx
call edi
mov esi, eax
test esi, esi
jne 0x4181a4
mov eax, dword [esp + 0x2c]
mov ecx, dword [esp + 0x28]
push eax
mov eax, dword [esp + 0x10]
lea edx, [esp + 0x24]
push ecx
push edx
push esi
push str.Export
push eax
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
mov ecx, dword [esp + 0xc]
mov esi, eax
push ecx
call ebx
mov edx, dword [esp + 0x10]
push edx
call ebx
mov eax, dword [esp + 0x14]
push eax
call ebx
mov ecx, dword [esp + 0x18]
push ecx
call ebx
mov edx, dword [esp + 0x1c]
push edx
call ebx
mov eax, esi
pop esi
pop ebx
pop edi
add esp, 0x18
ret
Function at 0x4021a4
Capabilities:
Set registry value

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push ebx
push esi
mov esi, dword [ebp + 0xc]
test esi, esi
push edi
mov ebx, ecx
jne 0x4021bf
push 0x80004005
call fcn.00401e7a
xor edi, edi
push esi
call dword [sym.imp.KERNEL32.dll_lstrlenW]
inc eax
lea ecx, [eax + eax]
add esi, ecx
add edi, ecx
cmp eax, 1
jne 0x4021c1
push edi
push dword [ebp + 0xc]
push 7
push 0
push dword [ebp + 8]
push dword [ebx]
call dword [sym.imp.ADVAPI32.dll_RegSetValueExW]
pop edi
pop esi
pop ebx
pop ebp
ret 8

Function at 0x4028f7
Capabilities:
Delete registry key
Query or enumerate registry key

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x218
mov eax, dword [0x409060]
xor eax, ebp
mov dword [ebp - 4], eax
mov eax, dword [ebp + 8]
push ebx
push esi
push edi
push 0x2001f
mov ebx, ecx
push eax
push dword [ebx]
xor esi, esi
lea ecx, [ebp - 0x208]
mov dword [ebp - 0x210], eax
mov dword [ebp - 0x208], esi
call fcn.00402102
mov edi, eax
cmp edi, esi
je 0x402959
lea ecx, [ebp - 0x208]
call fcn.0040208f
mov eax, edi
mov ecx, dword [ebp - 4]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.004073c4
leave
ret 4
mov edi, dword [sym.imp.ADVAPI32.dll_RegEnumKeyExW]
jmp 0x402977
lea eax, [ebp - 0x204]
push eax
lea ecx, [ebp - 0x208]
call fcn.004028f7
cmp eax, esi
jne 0x4029bf
lea eax, [ebp - 0x218]
push eax
push esi
push esi
push esi
lea eax, [ebp - 0x20c]
push eax
lea eax, [ebp - 0x204]
push eax
push esi
push dword [ebp - 0x208]
mov dword [ebp - 0x20c], 0x100
call edi
test eax, eax
je 0x402961
lea ecx, [ebp - 0x208]
call fcn.0040208f
push dword [ebp - 0x210]
push dword [ebx]
call dword [sym.imp.ADVAPI32.dll_RegDeleteKeyW]
lea ecx, [ebp - 0x208]
mov esi, eax
call fcn.0040208f
mov eax, esi
jmp 0x402948
Function at 0x4044f9
Capabilities:
Extract resource via kernel32 functions

Disassembly:
push 0x424
mov eax, 0x407c7e
call fcn.004074c9
mov eax, dword [ebp + 8]
mov edi, dword [ebp + 0xc]
mov ebx, dword [ebp + 0x10]
xor esi, esi
mov dword [ebp - 0x424], esi
mov dword [ebp - 4], esi
mov dword [ebp - 0x42c], ecx
mov dword [ebp - 0x430], esi
mov dword [ebp - 0x418], esi
push 2
push esi
push eax
mov byte [ebp - 4], 1
call dword [sym.imp.KERNEL32.dll_LoadLibraryExW]
cmp eax, esi
mov dword [ebp - 0x41c], eax
jne 0x404552
call fcn.00401fd3
mov esi, eax
jmp 0x404652
push ebx
push edi
push eax
call dword [sym.imp.KERNEL32.dll_FindResourceW]
mov edi, eax
cmp edi, esi
jne 0x40456b
call fcn.00401fd3
jmp 0x404644
push edi
push dword [ebp - 0x41c]
call dword [sym.imp.KERNEL32.dll_LoadResource]
cmp eax, esi
mov dword [ebp - 0x428], eax
je 0x404561
push edi
push dword [ebp - 0x41c]
call dword [sym.imp.KERNEL32.dll_SizeofResource]
mov edi, eax
lea eax, [edi + 1]
cmp eax, edi
mov dword [ebp - 0x420], edi
jae 0x4045d1
lea eax, [ebp - 0x414]
cmp dword [ebp - 0x418], eax
je 0x4045b7
lea ecx, [ebp - 0x418]
call fcn.004027d2
mov esi, 0x8007000e
lea ecx, [ebp - 0x424]
call fcn.004026e1
mov eax, esi
call fcn.00407534
ret 0x10
push eax
lea ecx, [ebp - 0x418]
mov byte [ebp - 4], 2
call fcn.004035ec
mov dword [ebp - 4], 1
jmp 0x4045f8
cmp dword [ebp - 0x418], esi
jne 0x404607
mov esi, 0x8007000e
jmp 0x404646
push edi
push dword [ebp - 0x418]
push edi
push dword [ebp - 0x428]
push esi
push 3
call dword [sym.imp.KERNEL32.dll_MultiByteToWideChar]
cmp eax, esi
je 0x404561
mov ecx, dword [ebp - 0x418]
push dword [ebp + 0x14]
mov word [ecx + eax*2], si
push dword [ebp - 0x418]
lea ecx, [ebp - 0x430]
call fcn.0040433f
mov esi, eax
push dword [ebp - 0x41c]
call dword [sym.imp.KERNEL32.dll_FreeLibrary]
lea eax, [ebp - 0x414]
cmp dword [ebp - 0x418], eax
je 0x4045bc
lea ecx, [ebp - 0x418]
call fcn.004027d2
jmp 0x4045bc
Function at 0x406c75
Capabilities:
Check os version

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x98
mov eax, dword [0x409060]
xor eax, ebp
mov dword [ebp - 4], eax
push esi
mov esi, ecx
call fcn.00406c0a
mov eax, 0x400000
push 0x94
mov dword [esi + 8], eax
mov dword [esi + 4], eax
lea eax, [ebp - 0x98]
push 0
push eax
mov dword [esi], 0x3c
mov byte [esi + 0xc], 0
call sub.msvcrt.dll_memset
add esp, 0xc
lea eax, [ebp - 0x98]
push eax
mov dword [ebp - 0x98], 0x94
call dword [sym.imp.KERNEL32.dll_GetVersionExA]
cmp dword [ebp - 0x88], 2
jne 0x406ce8
cmp dword [ebp - 0x94], 5
jb 0x406d09
jmp 0x406d05
cmp dword [ebp - 0x88], 1
jne 0x406d09
cmp dword [ebp - 0x94], 4
ja 0x406d05
jne 0x406d09
cmp dword [ebp - 0x90], 0
jbe 0x406d09
mov byte [esi + 0xc], 1
lea ecx, [esi + 0x18]
mov dword [esi + 0x10], 0x800
mov dword [esi + 0x14], 0x401ad4
call fcn.00401f83
test eax, eax
jge 0x406d2a
mov byte [0x40908c], 1
mov ecx, dword [ebp - 4]
mov eax, esi
xor ecx, ebp
pop esi
call fcn.004073c4
leave
ret

Function at 0x407780
Capabilities:
Parse pe header

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
mov ecx, dword [ebp + 8]
cmp word [ecx], 0x5a4d
je 0x407793
xor eax, eax
pop ebp
ret
mov eax, dword [ecx + 0x3c]
add eax, ecx
cmp dword [eax], 0x4550
jne 0x40778f
xor ecx, ecx
cmp word [eax + 0x18], 0x10b
sete cl
mov eax, ecx
pop ebp
ret

Function at 0x4077c0
Capabilities:
Enumerate pe sections

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
mov eax, dword [ebp + 8]
mov ecx, dword [eax + 0x3c]
add ecx, eax
movzx eax, word [ecx + 0x14]
push ebx
push esi
movzx esi, word [ecx + 6]
xor edx, edx
test esi, esi
push edi
lea eax, [eax + ecx + 0x18]
jbe 0x4077ff
mov edi, dword [ebp + 0xc]
mov ecx, dword [eax + 0xc]
cmp edi, ecx
jb 0x4077f5
mov ebx, dword [eax + 8]
add ebx, ecx
cmp edi, ebx
jb 0x407801
add edx, 1
add eax, 0x28
cmp edx, esi
jb 0x4077e5
xor eax, eax
pop edi
pop esi
pop ebx
pop ebp
ret
Function at 0x8717e0
Capabilities:
Packed with generic packer

Disassembly:
pushal
mov esi, section.UPX1
lea edi, [esi - 0x373000]
push edi
jmp 0x8717fa
mov al, byte [esi]
inc esi
mov byte [edi], al
inc edi
add ebx, ebx
jne 0x871801
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
jb 0x8717f0
mov eax, 1
add ebx, ebx
jne 0x871813
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc eax, eax
add ebx, ebx
jae 0x871824
jne 0x871843
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
jb 0x871843
dec eax
add ebx, ebx
jne 0x871830
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc eax, eax
jmp 0x871808
add ebx, ebx
jne 0x87183f
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc ecx, ecx
jmp 0x871895
xor ecx, ecx
sub eax, 3
jb 0x87185b
shl eax, 8
mov al, byte [esi]
inc esi
xor eax, 0xffffffff
je 0x8718ca
sar eax, 1
mov ebp, eax
jmp 0x871866
add ebx, ebx
jne 0x871866
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
jb 0x871834
inc ecx
add ebx, ebx
jne 0x871874
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
jb 0x871834
add ebx, ebx
jne 0x871881
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc ecx, ecx
add ebx, ebx
jae 0x871876
jne 0x871892
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
jae 0x871876
add ecx, 2
cmp ebp, 0xfffffb00
adc ecx, 2
lea edx, [edi + ebp]
cmp ebp, 0xfffffffc
jbe 0x8718b4
mov al, byte [edx]
inc edx
mov byte [edi], al
inc edi
dec ecx
jne 0x8718a6
jmp 0x8717f6
mov eax, dword [edx]
add edx, 4
mov dword [edi], eax
add edi, 4
sub ecx, 4
ja 0x8718b4
add edi, ecx
jmp 0x8717f6
pop esi
mov edi, esi
mov ecx, 0x1f9ca
mov al, byte [edi]
inc edi
sub al, 0xe8
cmp al, 1
ja 0x8718d2
cmp byte [edi], 0xb6
jne 0x8718d2
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 al, bl
loop 0x8718d7
lea edi, [esi + 0x46e000]
mov eax, dword [edi]
or eax, eax
je 0x87194f
mov ebx, dword [edi + 4]
lea eax, [eax + esi + 0x477abc]
add ebx, esi
push eax
add edi, 8
call dword [esi + 0x477bec]
xchg ebp, eax
mov al, byte [edi]
inc edi
or al, al
je 0x871904
mov ecx, edi
jns 0x871933
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 + 0x477bf4]
or eax, eax
je 0x871949
mov dword [ebx], eax
add ebx, 4
jmp 0x871921
call dword [esi + 0x477bf0]
mov ebp, dword [esi + 0x477bf8]
lea edi, [esi - 0x1000]
mov ebx, 0x1000
push eax
push esp
push 4
push ebx
push edi
call ebp
lea eax, [edi + 0x227]
and byte [eax], 0x7f
and byte [eax + 0x28], 0x7f
pop eax
push eax
push esp
push eax
push ebx
push edi
call ebp
pop eax
popal
lea eax, [esp - 0x80]
push 0
cmp esp, eax
jne 0x871983
sub esp, 0xffffff80
jmp 0x61e75e
Function at 0x401000
Capabilities:
Check if file exists
Create directory
Get file attributes

Disassembly:
push esi
mov esi, dword [esp + 0xc]
test esi, esi
je 0x401090
push ebp
mov ebp, dword [esp + 0x14]
push edi
mov edi, dword [esp + 0x10]
push ebx
cmp byte [esi], 0
je 0x40108d
push 0x5c
push esi
call dword [sym.imp.MSVCRT.dll_strchr]
mov esi, eax
test esi, esi
pop ecx
pop ecx
je 0x40108d
push edi
mov byte [esi], 0
call dword [sym.imp.kernel32.dll_GetFileAttributesA]
mov ebx, eax
cmp ebx, 0xffffffff
jne 0x401066
push 0
push edi
call dword [sym.imp.kernel32.dll_CreateDirectoryA]
test eax, eax
jne 0x40105f
test ebp, ebp
je 0x40105f
push edi
push str.CreateDirectory___s_
push 5
call ebp
add esp, 0xc
jmp 0x401066
push edi
push 1
call ebp
pop ecx
pop ecx
test bl, 0x10
jne 0x401087
push 0xb7
call dword [sym.imp.kernel32.dll_SetLastError]
test ebp, ebp
je 0x401087
push edi
push str.CreateDirectory___s_
push 5
call ebp
add esp, 0xc
mov byte [esi], 0x5c
inc esi
jne 0x401018
pop ebx
pop edi
pop ebp
xor eax, eax
inc eax
pop esi
ret

Function at 0x40287f
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x40
pushal
call 0x40288e
pop dword [ebp - 0x30]
mov eax, 0x40288e
sub dword [ebp - 0x30], eax
mov dword [ebp - 0x40], 0x5018afc4
add dword [ebp - 0x40], 0xfe399587
mov dword [ebp - 0x3c], 0x21900f32
add dword [ebp - 0x3c], 0x10a33d13
mov dword [ebp - 0x38], 0x4a6c4caa
add dword [ebp - 0x38], 0x1dff784
mov dword [ebp - 0x34], 0x1f499d7f
sub dword [ebp - 0x34], 0x1f499d7f
lea eax, [ebp - 0x40]
push eax
mov eax, 0xe6c3f19d
add eax, 0x197c7ec7
add eax, dword [ebp - 0x30]
call dword [eax]
mov dword [ebp - 0x40], 0x2057e725
add dword [ebp - 0x40], 0x541a8231
mov dword [ebp - 0x3c], 0x18653a50
add dword [ebp - 0x3c], 0x29072725
mov dword [ebp - 0x38], 0xc6a12dc6
sub dword [ebp - 0x38], 0x6331c15a
mov dword [ebp - 0x34], 0x3b03c136
sub dword [ebp - 0x34], 0x3b03c136
lea ebx, [ebp - 0x40]
push ebx
push eax
mov eax, sym.imp.kernel32.dll_GetProcAddress
add eax, dword [ebp - 0x30]
call dword [eax]
push 0x40
push 0x1000
push 0x34f36
push 0
call eax
mov ecx, 0xf8ef6108
sub ecx, 0xf8ef1f9d
mov edx, eax
mov esi, 0x410000
add esi, dword [ebp - 0x30]
mov ebx, 0xb92bc393
mov edi, dword [esi]
xor dword [ebp - 0x14], 0x4fa67089
add edi, ebx
mov dword [edx], edi
add edx, 4
add esi, 0x4b030ac3
sub esi, 0x4b030abf
loop 0x40299a
add eax, 0xd6e76675
add eax, 0x2919920a
xor ebx, ebx
add ebx, eax
add eax, 0xbb64d19e
add eax, 0x449b2e67
mov ecx, 0x400000
add ecx, dword [ebp - 0x30]
call ebx
leave
ret
Function at 0x10001b90
Capabilities:
Read file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x10
mov eax, dword [0x10005004]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
push esi
mov eax, ecx
mov dword [ebp - 8], 0
push edi
mov edi, dword [ebp + 8]
xor esi, esi
mov dword [ebp - 0xc], eax
mov dword [ebp - 0x10], 0
nop dword [eax + eax]
push 0
lea ecx, [ebp - 8]
push ecx
push 1
lea ebx, [edi + esi]
push ebx
push dword [eax]
call dword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
je 0x10001c9a
cmp dword [ebp - 8], 0
je 0x10001c6f
mov eax, dword [ebp - 0x10]
test eax, eax
jne 0x10001c21
cmp byte [ebx], 0x5b
jne 0x10001c21
push 0x1000328c
call fcn.10001240
mov byte [edi], 0x5b
movzx eax, byte [edi]
push eax
push str._02x
mov dword [ebp - 0x10], 1
call fcn.10001240
mov eax, dword [ebp - 0xc]
add esp, 0xc
mov esi, 1
jmp 0x10001bc0
cmp byte [ebx], 0x5d
jne 0x10001c2a
test eax, eax
jne 0x10001c4a
movzx eax, byte [edi + esi]
push eax
push str._02x
call fcn.10001240
inc esi
add esp, 8
cmp esi, 0x64
jae 0x10001c85
mov eax, dword [ebp - 0xc]
jmp 0x10001bc0
push 0x5d
push str._02x__n
call fcn.10001240
add esp, 8
lea eax, [esi + 1]
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.10002052
mov esp, ebp
pop ebp
ret 8
mov eax, dword [ebp - 0xc]
cmp dword [eax + 0x28], 0
jne 0x10001c85
push str.ReadLine
call fcn.10001240
add esp, 4
pop edi
pop esi
xor eax, eax
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.10002052
mov esp, ebp
pop ebp
ret 8
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
push 0x10003264
call fcn.10001240
mov ecx, dword [ebp - 4]
add esp, 8
xor ecx, ebp
or eax, 0xffffffff
pop edi
pop esi
pop ebx
call fcn.10002052
mov esp, ebp
pop ebp
ret 8
Function at 0xe71609
Capabilities:
Terminate process

Disassembly:
push 0x5c
push 0xe71a90
call fcn.00e717b4
xor ebx, ebx
mov dword [ebp - 0x1c], ebx
mov dword [ebp - 4], ebx
lea eax, [ebp - 0x6c]
push eax
call dword [sym.imp.KERNEL32.dll_GetStartupInfoW]
mov dword [ebp - 4], 0xfffffffe
mov dword [ebp - 4], 1
mov eax, dword fs:[0x18]
mov esi, dword [eax + 4]
mov dword [ebp - 0x20], ebx
mov edi, 0xe72370
push ebx
push esi
push edi
call dword [sym.imp.KERNEL32.dll_InterlockedCompareExchange]
cmp eax, ebx
je 0xe713c4
cmp eax, esi
jne 0xe713b7
xor esi, esi
inc esi
mov dword [ebp - 0x20], esi
jmp 0xe713c7
push 0x3e8
call dword [sym.imp.KERNEL32.dll_Sleep]
jmp 0xe7139e
xor esi, esi
inc esi
mov eax, dword [0xe7236c]
cmp eax, esi
jne 0xe713da
push 0x1f
call sub.msvcrt.dll__amsg_exit
pop ecx
jmp 0xe71409
mov eax, dword [0xe7236c]
test eax, eax
jne 0xe71403
mov dword [0xe7236c], esi
push 0xe710b8
push 0xe710ac
call fcn.00e71300
pop ecx
pop ecx
test eax, eax
je 0xe71409
jmp 0xe7152d
mov dword [0xe72034], esi
mov eax, dword [0xe7236c]
cmp eax, esi
jne 0xe7142d
push 0xe710a8
push 0xe710a0
call sub.msvcrt.dll__initterm
pop ecx
pop ecx
mov dword [0xe7236c], 2
cmp dword [ebp - 0x20], ebx
jne 0xe7143a
push ebx
push edi
call dword [sym.imp.KERNEL32.dll_InterlockedExchange]
cmp dword [0xe72374], ebx
je 0xe7145b
push 0xe72374
call fcn.00e71729
pop ecx
test eax, eax
je 0xe7145b
push ebx
push 2
push ebx
call dword [0xe72374]
mov eax, dword [sym.imp.msvcrt.dll__wcmdln]
cmp dword [eax], ebx
je 0xe7152d
mov eax, dword [eax]
mov dword [ebp - 0x24], eax
movzx ecx, word [eax]
cmp cx, 0x20
ja 0xe714c5
cmp cx, bx
je 0xe71480
cmp dword [ebp - 0x1c], ebx
jne 0xe714c5
movzx ecx, word [eax]
cmp cx, bx
je 0xe71495
cmp cx, 0x20
ja 0xe71495
inc eax
inc eax
mov dword [ebp - 0x24], eax
jmp 0xe71480
test byte [ebp - 0x40], 1
je 0xe714a1
movzx ecx, word [ebp - 0x3c]
jmp 0xe714a4
push 0xa
pop ecx
push ecx
push eax
push ebx
push 0xe70000
call main
mov dword [0xe72030], eax
cmp dword [0xe72024], ebx
jne 0xe7150a
push eax
call dword [sym.imp.msvcrt.dll_exit]
cmp cx, 0x22
jne 0xe714d6
xor ecx, ecx
cmp dword [ebp - 0x1c], ebx
sete cl
mov dword [ebp - 0x1c], ecx
inc eax
inc eax
jmp 0xe7146a
cmp dword [0xe72034], ebx
jne 0xe71518
call dword [sym.imp.msvcrt.dll__cexit]
mov dword [ebp - 4], 0xfffffffe
mov eax, dword [0xe72030]
jmp 0xe71539
mov dword [ebp - 4], 0xfffffffe
mov eax, 0xff
call fcn.00e717f9
ret
call fcn.00e71901
jmp 0xe71361