joyce8/EMBER2024-capa huggingface dataset:
Function at 0x10001000
Capabilities:
Allocate or change rwx memory
Create thread
Execute shellcode via indirect call
Inject thread
Spawn thread to rwx shellcode

Disassembly:
push ebp
mov ebp, esp
mov eax, dword [ebp + 0xc]
sub esp, 0xc
cmp eax, 1
jne 0x100010a9
push esi
lea eax, [ebp - 4]
mov byte [ebp + 0xf], 0xe9
push eax
push 1
lea eax, [ebp + 0xf]
push eax
push 0x502127
call dword [sym.imp.KERNEL32.dll_GetCurrentProcess]
mov esi, dword [sym.imp.KERNEL32.dll_WriteProcessMemory]
push eax
call esi
mov eax, 0x10001400
sub eax, 0x50212c
mov dword [ebp - 8], eax
lea eax, [ebp - 4]
push eax
push 4
lea eax, [ebp - 8]
push eax
push 0x502128
call dword [sym.imp.KERNEL32.dll_GetCurrentProcess]
push eax
call esi
mov esi, dword [sym.imp.KERNEL32.dll_VirtualProtect]
lea eax, [ebp - 0xc]
push eax
push 0x40
push 1
push 0x50212c
call esi
mov eax, 0x50212c
mov byte [eax], 0x90
lea eax, [ebp - 8]
push eax
push dword [ebp - 0xc]
push 1
push 0x50212c
call esi
push 0
push 0
push dword [ebp + 8]
push 0x10001970
push 0
push 0
call dword [sym.imp.KERNEL32.dll_CreateThread]
pop esi
mov eax, 1
mov esp, ebp
pop ebp
ret 0xc
test eax, eax
jne 0x100010b6
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov eax, 1
mov esp, ebp
pop ebp
ret 0xc

Function at 0x10001300
Capabilities:
Enumerate files on windows

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
sub esp, 0x14c
mov eax, dword [0x1001d004]
xor eax, esp
mov dword [esp + 0x148], eax
push ebx
push esi
push edi
lea eax, [esp + 0x10]
mov ebx, edx
push eax
push str.Voobly_ModsAOCLocal_ModsEmpire_WarsEW_Arabia_1v1
xor esi, esi
call dword [sym.imp.KERNEL32.dll_FindFirstFileA]
mov edi, eax
cmp edi, 0xffffffff
je 0x10001354
cmp ebx, esi
je 0x1000136e
lea eax, [esp + 0x10]
inc esi
push eax
push edi
call dword [sym.imp.KERNEL32.dll_FindNextFileA]
test eax, eax
jne 0x10001338
push edi
call dword [sym.imp.KERNEL32.dll_FindClose]
mov eax, 0x100198e0
pop edi
pop esi
pop ebx
mov ecx, dword [esp + 0x148]
xor ecx, esp
call fcn.10001d82
mov esp, ebp
pop ebp
ret
mov ecx, dword [esp + 0x154]
lea eax, [esp + 0x3c]
pop edi
pop esi
pop ebx
xor ecx, esp
call fcn.10001d82
mov esp, ebp
pop ebp
ret

Function at 0x10001390
Capabilities:
Enumerate files on windows

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
sub esp, 0x14c
mov eax, dword [0x1001d004]
xor eax, esp
mov dword [esp + 0x148], eax
push ebx
push esi
push edi
lea eax, [esp + 0x10]
xor esi, esi
push eax
push str.Voobly_ModsAOCLocal_ModsEmpire_WarsEW_Arabia_1v1
call dword [sym.imp.KERNEL32.dll_FindFirstFileA]
mov edi, eax
cmp edi, 0xffffffff
je 0x100013e4
mov ebx, dword [sym.imp.KERNEL32.dll_FindNextFileA]
nop dword [eax]
lea eax, [esp + 0x10]
inc esi
push eax
push edi
call ebx
test eax, eax
jne 0x100013d0
push edi
call dword [sym.imp.KERNEL32.dll_FindClose]
mov ecx, dword [esp + 0x154]
mov eax, esi
pop edi
pop esi
pop ebx
xor ecx, esp
call fcn.10001d82
mov esp, ebp
pop ebp
ret
Function at 0x10007a00
Capabilities:
Parse pe header

Disassembly:
push 0
call dword [sym.imp.KERNEL32.dll_GetModuleHandleW]
test eax, eax
je 0x10007a3f
mov ecx, 0x5a4d
cmp word [eax], cx
jne 0x10007a3f
mov ecx, dword [eax + 0x3c]
add ecx, eax
cmp dword [ecx], 0x4550
jne 0x10007a3f
mov eax, 0x10b
cmp word [ecx + 0x18], ax
jne 0x10007a3f
cmp dword [ecx + 0x74], 0xe
jbe 0x10007a3f
cmp dword [ecx + 0xe8], 0
setne al
ret
xor al, al
ret

Function at 0x10008f5e
Capabilities:
Allocate thread local storage

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push esi
push 0x10015618
push 0x10015610
push str.FlsAlloc
push 0x1f
call fcn.10008e7a
mov esi, eax
add esp, 0x10
test esi, esi
je 0x10008f92
push dword [ebp + 8]
mov ecx, esi
call dword [0x1001412c]
call esi
jmp 0x10008f98
call dword [sym.imp.KERNEL32.dll_TlsAlloc]
pop esi
pop ebp
ret 4

Function at 0x10008fdc
Capabilities:
Get thread local storage value

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push esi
push 0x10015628
push 0x10015620
push str.FlsGetValue
push 0x21
call fcn.10008e7a
mov esi, eax
add esp, 0x10
test esi, esi
je 0x10009013
push dword [ebp + 8]
mov ecx, esi
call dword [0x1001412c]
call esi
pop esi
pop ebp
ret 4
pop esi
pop ebp
jmp dword [sym.imp.KERNEL32.dll_TlsGetValue]

Function at 0x1000901b
Capabilities:
Set thread local storage value

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push esi
push 0x10015630
push 0x10015628
push str.FlsSetValue
push 0x22
call fcn.10008e7a
mov esi, eax
add esp, 0x10
test esi, esi
je 0x10009055
push dword [ebp + 0xc]
mov ecx, esi
push dword [ebp + 8]
call dword [0x1001412c]
call esi
pop esi
pop ebp
ret 8
pop esi
pop ebp
jmp dword [sym.imp.KERNEL32.dll_TlsSetValue]
Function at 0x1000bb17
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 0x1000bbb4
push ebx
push esi
call fcn.1000bae0
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.1000ba74
add esp, 0x24
mov dword [ebp - 4], eax
test eax, eax
jne 0x1000bb61
push esi
call dword [sym.imp.KERNEL32.dll_FreeEnvironmentStringsW]
xor eax, eax
jmp 0x1000bbb3
push edi
push eax
call fcn.10008c51
mov edi, eax
pop ecx
push ebx
test edi, edi
jne 0x1000bb81
call fcn.10008c17
pop ecx
push esi
call dword [sym.imp.KERNEL32.dll_FreeEnvironmentStringsW]
xor eax, eax
jmp 0x1000bbb2
push ebx
push dword [ebp - 4]
push edi
push dword [ebp - 8]
push esi
push ebx
push ebx
call fcn.1000ba74
add esp, 0x20
test eax, eax
jne 0x1000bba0
push edi
call fcn.10008c17
jmp 0x1000bba8
push ebx
call fcn.10008c17
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 0x100132a0
Capabilities:
Parse pe header

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

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x1a4
mov edx, dword [ebp + 8]
xor ecx, ecx
mov eax, 0x430a78
cmp edx, dword [eax]
je 0x40fd63
add eax, 8
inc ecx
cmp eax, 0x430b08
jl 0x40fd54
push esi
mov esi, ecx
shl esi, 3
cmp edx, dword [esi + 0x430a78]
jne 0x40fe91
mov eax, dword [0x479aec]
cmp eax, 1
je 0x40fe6b
test eax, eax
jne 0x40fd94
cmp dword [0x4300f4], 1
je 0x40fe6b
cmp edx, 0xfc
je 0x40fe91
lea eax, [ebp - 0x1a4]
push 0x104
push eax
push 0
call dword [sym.imp.KERNEL32.dll_GetModuleFileNameA]
test eax, eax
jne 0x40fdcb
lea eax, [ebp - 0x1a4]
push str._program_name_unknown_
push eax
call fcn.0040fea0
pop ecx
pop ecx
lea eax, [ebp - 0x1a4]
push edi
push eax
lea edi, [ebp - 0x1a4]
call fcn.0040ff90
inc eax
pop ecx
cmp eax, 0x3c
jbe 0x40fe0e
lea eax, [ebp - 0x1a4]
push eax
call fcn.0040ff90
mov edi, eax
lea eax, [ebp - 0x1a4]
sub eax, 0x3b
push 3
add edi, eax
push 0x428458
push edi
call fcn.004129d0
add esp, 0x10
lea eax, [ebp - 0xa0]
push str.Runtime_Error__n_nProgram:
push eax
call fcn.0040fea0
lea eax, [ebp - 0xa0]
push edi
push eax
call fcn.0040feb0
lea eax, [ebp - 0xa0]
push 0x428438
push eax
call fcn.0040feb0
push dword [esi + 0x430a7c]
lea eax, [ebp - 0xa0]
push eax
call fcn.0040feb0
push 0x12010
lea eax, [ebp - 0xa0]
push str.Microsoft_Visual_C_Runtime_Library
push eax
call fcn.0041293e
add esp, 0x2c
pop edi
jmp 0x40fe91
lea eax, [ebp + 8]
lea esi, [esi + 0x430a7c]
push 0
push eax
push dword [esi]
call fcn.0040ff90
pop ecx
push eax
push dword [esi]
push 0xfffffffffffffff4
call dword [sym.imp.KERNEL32.dll_GetStdHandle]
push eax
call dword [sym.imp.KERNEL32.dll_WriteFile]
pop esi
leave
ret
Function at 0x4171f0
Capabilities:
Get graphical window text

Disassembly:
push ebp
mov ebp, esp
sub esp, 8
push ebx
push esi
push edi
mov esi, dword [ebp + 0x10]
push 0xf00021
mov edx, dword [esi + 4]
mov ecx, dword [esi]
mov eax, dword [esi + 0xc]
sub eax, edx
push eax
mov eax, dword [esi + 8]
sub eax, ecx
push eax
push edx
push ecx
mov ecx, dword [ebp + 0xc]
push ecx
call dword [sym.imp.GDI32.dll_PatBlt]
mov edi, dword [ebp + 8]
push edi
call dword [sym.imp.USER32.dll_GetWindowTextLengthA]
mov ebx, eax
lea eax, [eax + 5]
add eax, 3
and eax, 0xfffffffc
call fcn.0040acb0
mov dword [ebp - 4], esp
cmp dword [ebp - 4], 0
je 0x4172bb
add ebx, 2
mov eax, dword [ebp - 4]
push ebx
push eax
push edi
call dword [sym.imp.USER32.dll_GetWindowTextA]
test eax, eax
je 0x4172bb
mov bx, 0x140
mov edi, dword [ebp + 0x14]
mov eax, edi
and al, 0xf
cmp al, 0xc
je 0x41726e
mov ebx, edi
and bx, 0xf
or bx, 0x150
test edi, 0x80
je 0x417279
or bh, 8
and edi, 0x8000000
je 0x417294
mov eax, dword [0x47b29c]
mov ecx, dword [ebp + 0xc]
push eax
push ecx
call dword [sym.imp.GDI32.dll_SetTextColor]
mov dword [ebp - 8], eax
mov ecx, dword [ebp - 4]
mov edx, dword [ebp + 0xc]
movzx eax, bx
push eax
push esi
push 0xffffffffffffffff
push ecx
push edx
call dword [sym.imp.USER32.dll_DrawTextA]
test edi, edi
je 0x4172bb
mov eax, dword [ebp - 8]
mov ecx, dword [ebp + 0xc]
push eax
push ecx
call dword [sym.imp.GDI32.dll_SetTextColor]
lea esp, [ebp - 0x14]
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x417690
Capabilities:
Extract resource via kernel32 functions

Disassembly:
mov eax, dword [esp + 8]
sub esp, 4
push ebx
push esi
mov esi, dword [esp + 0x10]
push edi
push ebp
push 2
push eax
push esi
call dword [sym.imp.KERNEL32.dll_FindResourceA]
mov edi, eax
test edi, edi
jne 0x4176bb
xor eax, eax
pop ebp
pop edi
pop esi
pop ebx
add esp, 4
ret 0x20
push edi
push esi
call dword [sym.imp.KERNEL32.dll_SizeofResource]
mov ebx, eax
push edi
push esi
call dword [sym.imp.KERNEL32.dll_LoadResource]
mov esi, eax
test esi, esi
jne 0x4176df
xor eax, eax
pop ebp
pop edi
pop esi
pop ebx
add esp, 4
ret 0x20
push ebx
push 0x40
call dword [sym.imp.KERNEL32.dll_GlobalAlloc]
mov ebp, eax
test ebp, ebp
jne 0x4176fa
xor eax, eax
pop ebp
pop edi
pop esi
pop ebx
add esp, 4
ret 0x20
mov edi, ebp
mov ecx, ebx
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, ebx
and ecx, 3
rep movsb byte es:[edi], byte [esi]
mov eax, dword [esp + 0x20]
xor ecx, ecx
mov cl, ah
mov edx, eax
mov dword [esp + 0x10], 0
shl ecx, 8
shr edx, 0x10
mov byte [esp + 0x10], dl
xor edx, edx
or ecx, dword [esp + 0x10]
mov dl, al
shl edx, 0x10
mov eax, dword [esp + 0x28]
or ecx, edx
mov edx, eax
shr edx, 0x10
mov dword [ebp + 0x28], ecx
mov dword [esp + 0x10], 0
xor ecx, ecx
mov byte [esp + 0x10], dl
mov cl, ah
xor edx, edx
shl ecx, 8
mov dl, al
shl edx, 0x10
or ecx, dword [esp + 0x10]
or ecx, edx
mov eax, dword [esp + 0x24]
mov edx, eax
mov dword [ebp + 0x44], ecx
shr edx, 0x10
xor ecx, ecx
mov dword [esp + 0x10], 0
mov cl, ah
mov byte [esp + 0x10], dl
shl ecx, 8
xor edx, edx
or ecx, dword [esp + 0x10]
mov dl, al
shl edx, 0x10
mov eax, dword [esp + 0x2c]
or ecx, edx
xor edx, edx
mov dl, al
mov dword [ebp + 0x48], ecx
shl edx, 0x10
xor ecx, ecx
mov cl, ah
shl ecx, 8
shr eax, 0x10
or ecx, edx
xor edx, edx
mov dl, al
mov eax, dword [esp + 0x30]
or ecx, edx
xor edx, edx
mov dl, al
mov dword [ebp + 0x64], ecx
shl edx, 0x10
xor ecx, ecx
mov cl, ah
shl ecx, 8
shr eax, 0x10
or ecx, edx
xor edx, edx
mov dl, al
mov eax, dword [esp + 0x34]
or ecx, edx
xor edx, edx
mov dl, al
mov dword [ebp + 0x54], ecx
shl edx, 0x10
xor ecx, ecx
mov cl, ah
shl ecx, 8
push 0
shr eax, 0x10
or ecx, edx
xor edx, edx
mov dl, al
or ecx, edx
mov dword [ebp + 0x50], ecx
call dword [sym.imp.USER32.dll_GetDC]
mov edi, eax
push 0
push ebp
lea ecx, [ebp + 0x68]
push ecx
push 4
push ebp
push edi
call dword [sym.imp.GDI32.dll_CreateDIBitmap]
mov esi, eax
push edi
push 0
call dword [sym.imp.USER32.dll_ReleaseDC]
push ebp
call dword [sym.imp.KERNEL32.dll_GlobalFree]
mov eax, esi
pop ebp
pop edi
pop esi
pop ebx
add esp, 4
ret 0x20
Function at 0x41cbcf
Capabilities:
Extract resource via kernel32 functions

Disassembly:
push ebx
push esi
push edi
xor edi, edi
cmp dword [esp + 0x10], edi
mov ebx, ecx
je 0x41cc11
call fcn.00420b19
mov esi, dword [eax + 0xc]
push 0xf0
push dword [esp + 0x14]
push esi
call dword [sym.imp.KERNEL32.dll_FindResourceA]
cmp eax, edi
je 0x41cc11
push eax
push esi
call dword [sym.imp.KERNEL32.dll_LoadResource]
cmp eax, edi
jne 0x41cc08
xor eax, eax
jmp 0x41cc19
push eax
call dword [sym.imp.KERNEL32.dll_LockResource]
mov edi, eax
push edi
mov ecx, ebx
call fcn.0041cc1f
pop edi
pop esi
pop ebx
ret 4

Function at 0x421492
Capabilities:
Get thread local storage value

Disassembly:
push ebx
push esi
mov esi, ecx
lea ebx, [esi + 0x1c]
push ebx
call dword [sym.imp.KERNEL32.dll_EnterCriticalSection]
cmp dword [esp + 0x10], 0
jne 0x4214c0
push dword [esi]
call dword [sym.imp.KERNEL32.dll_TlsGetValue]
test eax, eax
je 0x4214de
push dword [esp + 0xc]
mov ecx, esi
push eax
call fcn.004213f8
jmp 0x4214de
mov eax, dword [esi + 0x14]
test eax, eax
je 0x4214de
push edi
push dword [esp + 0x10]
mov edi, dword [eax + 4]
mov ecx, esi
push eax
call fcn.004213f8
test edi, edi
mov eax, edi
jne 0x4214c8
pop edi
push ebx
call dword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
pop esi
pop ebx
ret 8

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

Disassembly:
pushal
nop
call 0x43200c
nop
pop eax
nop
nop
nop
nop
nop
add eax, 0x40729f
nop
sub eax, 0x407245
nop
mov ebx, dword [eax]
nop
nop
nop
nop
nop
mov ecx, dword [eax + 4]
nop
nop
nop
mov edx, dword [eax + 8]
nop
nop
xor dword [ebx], edx
nop
nop
nop
nop
nop
nop
add ebx, 4
nop
nop
nop
cmp ebx, ecx
nop
nop
nop
nop
jl 0x432030
nop
nop
add eax, 0xc
nop
nop
nop
nop
nop
cmp dword [eax], 0
nop
nop
nop
nop
jne 0x43201e
nop
nop
nop
popal
nop
nop
jmp 0x431219
Function at 0x44ca80
Capabilities:
Packed with generic packer

Disassembly:
pushal
mov esi, section.UPX1
lea edi, [esi - 0x1c000]
push edi
jmp 0x44ca9a
mov al, byte [esi]
inc esi
mov byte [edi], al
inc edi
add ebx, ebx
jne 0x44caa1
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
jb 0x44ca90
mov eax, 1
add ebx, ebx
jne 0x44cab3
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc eax, eax
add ebx, ebx
jae 0x44caa8
jne 0x44cac4
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
jae 0x44caa8
xor ecx, ecx
sub eax, 3
jb 0x44cad8
shl eax, 8
mov al, byte [esi]
inc esi
xor eax, 0xffffffff
je 0x44cb4a
mov ebp, eax
add ebx, ebx
jne 0x44cae3
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc ecx, ecx
add ebx, ebx
jne 0x44caf0
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc ecx, ecx
jne 0x44cb14
inc ecx
add ebx, ebx
jne 0x44cb00
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc ecx, ecx
add ebx, ebx
jae 0x44caf5
jne 0x44cb11
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
jae 0x44caf5
add ecx, 2
cmp ebp, 0xfffff300
adc ecx, 1
lea edx, [edi + ebp]
cmp ebp, 0xfffffffc
jbe 0x44cb34
mov al, byte [edx]
inc edx
mov byte [edi], al
inc edi
dec ecx
jne 0x44cb25
jmp 0x44ca96
mov eax, dword [edx]
add edx, 4
mov dword [edi], eax
add edi, 4
sub ecx, 4
ja 0x44cb34
add edi, ecx
jmp 0x44ca96
pop esi
lea edi, [esi + 0x4a000]
mov eax, dword [edi]
or eax, eax
je 0x44cb93
mov ebx, dword [edi + 4]
lea eax, [eax + esi + 0x4da68]
add ebx, esi
push eax
add edi, 8
call dword [esi + 0x4dad4]
xchg ebp, eax
mov al, byte [edi]
inc edi
or al, al
je 0x44cb51
mov ecx, edi
push edi
dec eax
repne scasb al, byte es:[edi]
push ebp
call dword [esi + 0x4dadc]
or eax, eax
je 0x44cb8d
mov dword [ebx], eax
add ebx, 4
jmp 0x44cb6e
call dword [esi + 0x4dad8]
mov ebp, dword [esi + 0x4dae0]
lea edi, [esi - 0x1000]
mov ebx, 0x1000
push eax
push esp
push 4
push ebx
push edi
call ebp
lea eax, [edi + 0x21f]
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 0x44cbc7
sub esp, 0xffffff80
jmp 0x40259f
Function at 0x401460
Capabilities:
Create process on windows

Disassembly:
lea ecx, [esp + 4]
and esp, 0xfffffff0
push dword [ecx - 4]
push ebp
mov ebp, esp
push ecx
sub esp, 0x194
call fcn.00404d60
call fcn.004015c0
mov eax, dword [str.jre_binjavaw__jar__Xms512M__Xmx1024M]
mov dword [esp + 0xc], 0x40c0cc
mov dword [esp + 8], eax
mov dword [esp + 4], str._s__s
lea eax, [ebp - 0x107]
mov dword [esp], eax
call sub.msvcrt.dll_sprintf
lea eax, [ebp - 0x107]
mov dword [esp], eax
call sub.msvcrt.dll_puts
mov eax, dword [sym.imp.msvcrt.dll__iob]
add eax, 0x20
mov dword [esp], eax
call sub.msvcrt.dll_fflush
mov dword [esp + 8], 0x44
mov dword [esp + 4], 0
lea eax, [ebp - 0x15c]
mov dword [esp], eax
call sub.msvcrt.dll_memset
mov dword [ebp - 0x15c], 0x44
mov dword [ebp - 0x130], 1
mov word [ebp - 0x12c], 0
mov dword [esp + 8], 0x10
mov dword [esp + 4], 0
lea eax, [ebp - 0x118]
mov dword [esp], eax
call sub.msvcrt.dll_memset
mov dword [ebp - 0x15c], 0x44
lea eax, [ebp - 0x118]
mov dword [esp + 0x24], eax
lea eax, [ebp - 0x15c]
mov dword [esp + 0x20], eax
mov dword [esp + 0x1c], 0
mov dword [esp + 0x18], 0
mov dword [esp + 0x14], 0
mov dword [esp + 0x10], 0
mov dword [esp + 0xc], 0
mov dword [esp + 8], 0
lea eax, [ebp - 0x107]
mov dword [esp + 4], eax
mov dword [esp], 0
call sub.KERNEL32.dll_CreateProcessA
sub esp, 0x28
test eax, eax
jne 0x4015b3
call sub.KERNEL32.dll_GetLastError
mov dword [esp + 4], eax
mov dword [esp], str.CreateProcess_failed___d_._n
call sub.msvcrt.dll_printf
mov eax, dword [sym.imp.msvcrt.dll__iob]
add eax, 0x20
mov dword [esp], eax
call sub.msvcrt.dll_fflush
mov eax, 0xffffffff
jmp 0x4015b8
mov eax, 0
mov ecx, dword [ebp - 4]
leave
lea esp, [ecx - 4]
ret

Function at 0x4015c0
Capabilities:
Enumerate files on windows

Disassembly:
push ebp
mov ebp, esp
push edi
push esi
push ebx
sub esp, 0x16c
lea eax, [ebp - 0x15c]
mov dword [esp + 4], eax
mov dword [esp], str..Sciospec.jar
call sub.KERNEL32.dll_FindFirstFileA
sub esp, 8
mov dword [ebp - 0x1c], eax
cmp dword [ebp - 0x1c], 0xffffffff
je 0x40166b
mov ebx, 0x40c0a0
lea eax, [ebp - 0x15c]
mov edx, 0x50
mov edi, ebx
mov esi, eax
mov ecx, edx
rep movsd dword es:[edi], dword [esi]
lea eax, [ebp - 0x15c]
add eax, 4
mov dword [esp + 4], eax
mov dword [esp], 0x40c0a4
call sub.KERNEL32.dll_CompareFileTime
sub esp, 8
cmp eax, 0xffffffff
jne 0x40163f
mov ebx, 0x40c0a0
lea eax, [ebp - 0x15c]
mov edx, 0x50
mov edi, ebx
mov esi, eax
mov ecx, edx
rep movsd dword es:[edi], dword [esi]
lea eax, [ebp - 0x15c]
mov dword [esp + 4], eax
mov eax, dword [ebp - 0x1c]
mov dword [esp], eax
call sub.KERNEL32.dll_FindNextFileA
sub esp, 8
test eax, eax
jne 0x401606
mov eax, dword [ebp - 0x1c]
mov dword [esp], eax
call sub.KERNEL32.dll_FindClose
sub esp, 4
jmp 0x40166c
nop
lea esp, [ebp - 0xc]
pop ebx
pop esi
pop edi
pop ebp
ret
Function at 0x403d2a
Capabilities:
Allocate thread local storage

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x18
mov dword [esp], 0x408008
call sub.KERNEL32.dll_InterlockedIncrement
sub esp, 4
test eax, eax
jne 0x403d72
call sub.KERNEL32.dll_TlsAlloc
mov dword [0x40c03c], eax
call sub.KERNEL32.dll_TlsAlloc
mov dword [0x40c040], eax
mov dword [0x40800c], 0
jmp 0x403d7b
mov dword [esp], 5
call sub.KERNEL32.dll_Sleep
sub esp, 4
mov eax, dword [0x40800c]
test eax, eax
jne 0x403d63
nop
leave
ret

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

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x18
mov eax, dword [0x40800c]
test eax, eax
je 0x403d92
call fcn.00403d2a
mov eax, dword [0x40c03c]
mov dword [esp], eax
call sub.KERNEL32.dll_TlsGetValue
sub esp, 4
add eax, 1
mov edx, eax
mov eax, dword [0x40c03c]
mov dword [esp + 4], edx
mov dword [esp], eax
call sub.KERNEL32.dll_TlsSetValue
sub esp, 8
nop
leave
ret
Function at 0x4045d1
Capabilities:
Get thread local storage value

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x18
cmp dword [ebp + 8], 0
jne 0x4045e4
mov eax, 0x80070057
jmp 0x40460e
mov eax, dword [0x40800c]
test eax, eax
je 0x4045f2
call fcn.00403d2a
mov eax, dword [0x40c040]
mov dword [esp], eax
call sub.KERNEL32.dll_TlsGetValue
sub esp, 4
mov edx, eax
mov eax, dword [ebp + 8]
mov dword [eax], edx
mov eax, 0
leave
ret

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

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x28
mov eax, dword [0x40800c]
test eax, eax
je 0x4046e5
call fcn.00403d2a
mov eax, dword [0x40c040]
mov dword [esp], eax
call sub.KERNEL32.dll_TlsGetValue
sub esp, 4
mov dword [ebp - 0xc], eax
cmp dword [ebp - 0xc], 0
je 0x404773
mov eax, dword [ebp - 0xc]
mov eax, dword [eax + 0x290]
mov dword [esp], eax
call sub.OLEAUT32.DLL_SysFreeString
sub esp, 4
mov eax, dword [ebp - 0xc]
mov eax, dword [eax + 0x294]
mov dword [esp], eax
call sub.OLEAUT32.DLL_SysFreeString
sub esp, 4
mov eax, dword [ebp - 0xc]
mov eax, dword [eax + 0x298]
mov dword [esp], eax
call sub.OLEAUT32.DLL_SysFreeString
sub esp, 4
call sub.KERNEL32.dll_GetProcessHeap
mov edx, eax
mov eax, dword [ebp - 0xc]
mov dword [esp + 8], eax
mov dword [esp + 4], 0
mov dword [esp], edx
call sub.KERNEL32.dll_HeapFree
sub esp, 0xc
mov eax, dword [0x40c040]
mov dword [esp + 4], 0
mov dword [esp], eax
call sub.KERNEL32.dll_TlsSetValue
sub esp, 8
nop
leave
ret
Function at 0x404e70
Capabilities:
Get thread local storage value

Disassembly:
push esi
push ebx
sub esp, 0x14
mov dword [esp], 0x40c068
call sub.KERNEL32.dll_EnterCriticalSection
mov ebx, dword [0x40c060]
sub esp, 4
test ebx, ebx
je 0x404ebb
nop
mov eax, dword [ebx]
mov dword [esp], eax
call sub.KERNEL32.dll_TlsGetValue
sub esp, 4
mov esi, eax
call sub.KERNEL32.dll_GetLastError
test eax, eax
jne 0x404eb4
test esi, esi
je 0x404eb4
mov eax, dword [ebx + 4]
mov dword [esp], esi
call eax
mov ebx, dword [ebx + 8]
test ebx, ebx
jne 0x404e90
mov dword [esp], 0x40c068
call sub.KERNEL32.dll_LeaveCriticalSection
sub esp, 4
add esp, 0x14
pop ebx
pop esi
ret

Function at 0x4050a0
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
mov dword [esp + 4], 1
lea esi, [esp + 0x24]
mov dword [esp], str.Mingw_runtime_failure:_n
lea ebx, [eax + 0x40]
mov dword [esp + 0xc], ebx
call sub.msvcrt.dll_fwrite
mov eax, dword [esp + 0x20]
mov dword [esp + 8], esi
mov dword [esp], ebx
mov dword [esp + 4], eax
call sub.msvcrt.dll_vfprintf
call sub.msvcrt.dll_abort
lea esi, [esi]

Function at 0x4050f0
Capabilities:
Allocate or change rwx memory

Disassembly:
push ebp
push edi
mov edi, ecx
push esi
push ebx
mov ebx, eax
mov esi, edx
sub esp, 0x4c
lea eax, [esp + 0x24]
mov dword [esp + 8], 0x1c
mov dword [esp], ebx
mov dword [esp + 4], eax
call sub.KERNEL32.dll_VirtualQuery
sub esp, 0xc
test eax, eax
je 0x4051c8
mov eax, dword [esp + 0x38]
cmp eax, 0x40
je 0x40512e
cmp eax, 4
jne 0x405150
mov dword [esp + 8], edi
mov dword [esp + 4], esi
mov dword [esp], ebx
call sub.msvcrt.dll_memcpy
add esp, 0x4c
pop ebx
pop esi
pop edi
pop ebp
ret
mov eax, dword [esp + 0x30]
lea ebp, [esp + 0x20]
mov dword [esp + 8], 0x40
mov dword [esp + 0xc], ebp
mov dword [esp + 4], eax
mov eax, dword [esp + 0x24]
mov dword [esp], eax
call sub.KERNEL32.dll_VirtualProtect
sub esp, 0x10
mov edx, dword [esp + 0x38]
mov dword [esp + 8], edi
mov dword [esp + 4], esi
mov dword [esp], ebx
mov dword [esp + 0x1c], edx
call sub.msvcrt.dll_memcpy
mov edx, dword [esp + 0x1c]
cmp edx, 0x40
je 0x40513e
cmp edx, 4
je 0x40513e
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
add esp, 0x4c
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.004050a0

Function at 0x403d61
Capabilities:
Encode data using xor

Disassembly:
push eax
push ebx
mov eax, 0x499
mov ecx, 0x404498
mov bl, byte [ecx]
sub bl, 0xf2
rol bl, 2
sub bl, cl
ror bl, 1
mov byte [ecx], bl
dec ecx
dec eax
jne 0x403d6d
mov eax, 0x261d
mov ecx, 0x403764
mov bl, byte [ecx]
rol bl, 7
ror bl, 2
sub bl, cl
xor bl, 0x91
mov byte [ecx], bl
dec ecx
dec eax
jne 0x403d8a
pop ebx
pop eax
add ecx, 0x2c1a
jmp ecx