joyce8/EMBER2024-capa huggingface dataset:
Function at 0x1002e8c0
Capabilities:
Allocate or change rwx memory
Execute shellcode via indirect call
Resume thread

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x2e0
mov eax, dword [0x1004c00c]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
push esi
push edi
push str.ntdll
mov dword [ebp - 0x2dc], edx
mov dword [ebp - 0x2e0], ecx
call dword [sym.imp.KERNEL32.dll_LoadLibraryA]
xor esi, esi
push esi
call dword [sym.imp.api_ms_win_crt_time_l1_1_0.dll__time64]
push eax
call dword [sym.imp.api_ms_win_crt_utility_l1_1_0.dll_srand]
mov ebx, dword [sym.imp.api_ms_win_crt_utility_l1_1_0.dll_rand]
add esp, 8
mov dword [ebp - 0x2d8], 8
call ebx
movzx edi, al
call ebx
movzx ebx, al
or ebx, edi
call dword [sym.imp.api_ms_win_crt_utility_l1_1_0.dll_rand]
mov ecx, dword [ebp - 0x2d8]
movzx eax, al
or eax, ebx
mov ebx, dword [sym.imp.api_ms_win_crt_utility_l1_1_0.dll_rand]
shl eax, cl
add ecx, 8
or esi, eax
mov dword [ebp - 0x2d8], ecx
cmp ecx, 0x20
jl 0x1002e910
cmp esi, 0x7fffffff
jbe 0x1002e96b
lea eax, [esi - 0x80000000]
shr eax, 0xc
inc eax
nop word [eax + eax]
sub esi, 0x1000
sub eax, 1
jne 0x1002e960
push 0
push 0x40
push 0x3e8
push esi
call dword [sym.imp.KERNEL32.dll_VirtualProtect]
push str.RtlCreateUserThread
push str.ntdll
mov dword [ebp - 0x2d4], 0
call dword [sym.imp.KERNEL32.dll_GetModuleHandleA]
push eax
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
mov edi, dword [ebp - 0x2dc]
mov ebx, eax
mov edi, dword [edi]
call dword [sym.imp.KERNEL32.dll_GetCurrentProcess]
push 0
lea ecx, [ebp - 0x2d4]
push ecx
push edi
push esi
push 0
push 0
push 0
push 1
push 0
push eax
call ebx
lea eax, [ebp - 0x2d0]
mov dword [ebp - 0x2d0], 0x10003
push eax
push dword [ebp - 0x2d4]
call dword [sym.imp.KERNEL32.dll_GetThreadContext]
mov eax, dword [ebp - 0x2e0]
mov dword [ebp - 0x220], eax
lea eax, [ebp - 0x2d0]
push eax
push dword [ebp - 0x2d4]
mov dword [ebp - 0x2d0], 0x10003
call dword [sym.imp.KERNEL32.dll_SetThreadContext]
push dword [ebp - 0x2d4]
call dword [sym.imp.KERNEL32.dll_ResumeThread]
mov ecx, dword [ebp - 4]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.1003d6f0
mov esp, ebp
pop ebp
ret

Function at 0x1002ea30
Capabilities:
Allocate or change rwx memory

Disassembly:
push ebp
mov ebp, esp
push ecx
push esi
mov esi, ecx
test esi, esi
je 0x1002ea8c
push edi
mov edi, dword [esi + 0x3c]
lea eax, [ebp - 4]
push eax
push 4
push 0x40
push esi
add edi, esi
call dword [sym.imp.KERNEL32.dll_VirtualProtect]
test eax, eax
je 0x1002ea61
push 0x40
push 0
push esi
call sub.VCRUNTIME140.dll_memset
add esp, 0xc
test edi, edi
je 0x1002ea8b
lea eax, [ebp - 4]
push eax
push 4
push 0xf8
push edi
call dword [sym.imp.KERNEL32.dll_VirtualProtect]
test eax, eax
je 0x1002ea8b
push 0xf8
push 0
push edi
call sub.VCRUNTIME140.dll_memset
add esp, 0xc
pop edi
pop esi
mov esp, ebp
pop ebp
ret
Function at 0x1002eaa0
Capabilities:
Access peb ldr_data

Disassembly:
push ebp
mov ebp, esp
sub esp, 8
push ebx
push esi
push edi
mov dword [ebp - 8], ecx
mov dword [ebp - 4], 0
pushal
pushfd
mov eax, dword fs:[0x30]
mov eax, dword [eax + 0xc]
mov dword [ebp - 4], eax
mov esi, dword [eax + 0xc]
mov edx, dword [eax + 0x10]
lodsd eax, dword [esi]
mov esi, eax
mov ecx, dword [eax + 0x18]
cmp ecx, dword [ebp - 8]
jne 0x1002eade
mov ebx, dword [eax]
mov ecx, dword [eax + 4]
mov dword [ecx], ebx
mov dword [ebx + 4], ecx
jmp 0x1002eae2
cmp edx, esi
jne 0x1002eac7
mov eax, dword [ebp - 4]
mov esi, dword [eax + 0x14]
mov edx, dword [eax + 0x18]
lodsd eax, dword [esi]
mov esi, eax
mov ecx, dword [eax + 0x10]
cmp ecx, dword [ebp - 8]
jne 0x1002eb02
mov ebx, dword [eax]
mov ecx, dword [eax + 4]
mov dword [ecx], ebx
mov dword [ebx + 4], ecx
jmp 0x1002eb06
cmp edx, esi
jne 0x1002eaeb
mov eax, dword [ebp - 4]
mov esi, dword [eax + 0x1c]
mov edx, dword [eax + 0x20]
lodsd eax, dword [esi]
mov esi, eax
mov ecx, dword [eax + 8]
cmp ecx, dword [ebp - 8]
jne 0x1002eb26
mov ebx, dword [eax]
mov ecx, dword [eax + 4]
mov dword [ecx], ebx
mov dword [ebx + 4], ecx
jmp 0x1002eb2a
cmp edx, esi
jne 0x1002eb0f
popfd
popal
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret

Function at 0x1002eb40
Capabilities:
Access peb ldr_data

Disassembly:
mov eax, dword fs:[0x30]
push esi
mov esi, ecx
mov eax, dword [eax + 0xc]
mov eax, dword [eax + 0xc]
mov edx, dword [eax + 0x18]
test edx, edx
je 0x1002ebac
cmp edx, esi
jne 0x1002eba3
mov edx, dword [eax + 4]
test edx, edx
je 0x1002eb71
mov ecx, dword [eax]
mov dword [edx], ecx
mov edx, dword [eax + 4]
test edx, edx
je 0x1002eb71
mov ecx, dword [eax]
mov dword [ecx + 4], edx
mov edx, dword [eax + 0x14]
test edx, edx
je 0x1002eb7d
mov ecx, dword [eax + 0x10]
mov dword [edx], ecx
mov edx, dword [eax + 0x10]
test edx, edx
je 0x1002eb8a
mov ecx, dword [eax + 0x14]
mov dword [edx + 4], ecx
mov edx, dword [eax + 8]
test edx, edx
je 0x1002eba3
mov ecx, dword [eax + 0xc]
mov dword [ecx], edx
mov edx, dword [eax + 8]
test edx, edx
je 0x1002eba3
mov ecx, dword [eax + 0xc]
mov dword [edx + 4], ecx
mov eax, dword [eax]
mov edx, dword [eax + 0x18]
test edx, edx
jne 0x1002eb56
pop esi
ret

Function at 0x1002ebb0
Capabilities:
Create process on windows
Terminate process

Disassembly:
push 0x100478e4
call dword [sym.imp.KERNEL32.dll_GetModuleHandleA]
test eax, eax
jne 0x1002ebfb
push 0x50031
push eax
push 0x100478f0
push eax
call dword [sym.imp.USER32.dll_MessageBoxA]
cmp eax, 1
jne 0x1002ebf3
push eax
push 0x100435be
push 0x100435be
push str.https:__discord.gg_7UsZ3qkwSU
push str.open
push 0
call dword [sym.imp.SHELL32.dll_ShellExecuteA]
push 0
call dword [sym.imp.KERNEL32.dll_ExitProcess]
ret
Function at 0x100372e0
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x20
mov dword [ebp - 4], ecx
mov eax, dword [ebp - 4]
cmp dword [eax + 0x38], 0
je 0x1003730c
mov ecx, dword [ebp + 0x10]
push ecx
mov edx, dword [ebp + 0xc]
push edx
mov eax, dword [ebp + 8]
push eax
mov ecx, dword [ebp - 4]
call dword [sym.imp.MSVCP140.dll_protected_virtual:_long_long___int64____thiscall_std::basic_streambuf_char__struct_std::char_traits_char__::xsputn_char_const___long_long___int64__]
jmp 0x10037440
mov ecx, dword [ebp + 0xc]
mov edx, dword [ebp + 0x10]
mov dword [ebp - 0x20], ecx
mov dword [ebp - 0x1c], edx
mov eax, dword [ebp - 4]
mov ecx, dword [eax + 0x20]
cmp dword [ecx], 0
je 0x10037330
mov edx, dword [ebp - 4]
mov eax, dword [edx + 0x30]
mov ecx, dword [eax]
mov dword [ebp - 8], ecx
jmp 0x10037337
mov dword [ebp - 8], 0
mov eax, dword [ebp - 8]
cdq
mov dword [ebp - 0x18], eax
mov dword [ebp - 0x14], edx
cmp dword [ebp + 0x10], 0
jl 0x100373f1
jg 0x10037357
cmp dword [ebp + 0xc], 0
jbe 0x100373f1
cmp dword [ebp - 0x14], 0
jl 0x100373f1
jg 0x1003736d
cmp dword [ebp - 0x18], 0
jbe 0x100373f1
mov edx, dword [ebp + 0x10]
cmp edx, dword [ebp - 0x14]
jg 0x1003738b
jl 0x1003737f
mov eax, dword [ebp + 0xc]
cmp eax, dword [ebp - 0x18]
jae 0x1003738b
mov ecx, dword [ebp + 0xc]
mov edx, dword [ebp + 0x10]
mov dword [ebp - 0x18], ecx
mov dword [ebp - 0x14], edx
mov eax, dword [ebp - 4]
mov ecx, dword [eax + 0x20]
mov edx, dword [ecx]
mov dword [ebp - 0x10], edx
mov eax, dword [ebp - 0x18]
push eax
mov ecx, dword [ebp + 8]
push ecx
mov edx, dword [ebp - 0x10]
push edx
call sub.VCRUNTIME140.dll_memcpy
add esp, 0xc
mov eax, dword [ebp - 0x18]
add eax, dword [ebp + 8]
mov dword [ebp + 8], eax
mov ecx, dword [ebp + 0xc]
sub ecx, dword [ebp - 0x18]
mov edx, dword [ebp + 0x10]
sbb edx, dword [ebp - 0x14]
mov dword [ebp + 0xc], ecx
mov dword [ebp + 0x10], edx
mov eax, dword [ebp - 0x18]
mov dword [ebp - 0xc], eax
mov ecx, dword [ebp - 4]
mov edx, dword [ecx + 0x30]
mov eax, dword [edx]
sub eax, dword [ebp - 0xc]
mov ecx, dword [ebp - 4]
mov edx, dword [ecx + 0x30]
mov dword [edx], eax
mov eax, dword [ebp - 4]
mov ecx, dword [eax + 0x20]
mov edx, dword [ecx]
add edx, dword [ebp - 0xc]
mov eax, dword [ebp - 4]
mov ecx, dword [eax + 0x20]
mov dword [ecx], edx
cmp dword [ebp + 0x10], 0
jl 0x10037434
jg 0x100373ff
cmp dword [ebp + 0xc], 0
jbe 0x10037434
mov edx, dword [ebp - 4]
cmp dword [edx + 0x4c], 0
je 0x10037434
mov eax, dword [ebp - 4]
mov ecx, dword [eax + 0x4c]
push ecx
mov edx, dword [ebp + 0xc]
push edx
push 1
mov eax, dword [ebp + 8]
push eax
call dword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll_fwrite]
add esp, 0x10
xor ecx, ecx
mov edx, dword [ebp + 0xc]
sub edx, eax
mov eax, dword [ebp + 0x10]
sbb eax, ecx
mov dword [ebp + 0xc], edx
mov dword [ebp + 0x10], eax
mov eax, dword [ebp - 0x20]
sub eax, dword [ebp + 0xc]
mov edx, dword [ebp - 0x1c]
sbb edx, dword [ebp + 0x10]
mov esp, ebp
pop ebp
ret 0xc
Function at 0x10039060
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x60
mov eax, dword [0x1004c00c]
xor eax, ebp
mov dword [ebp - 4], eax
mov dword [ebp - 0x2c], ecx
mov eax, dword [ebp - 0x2c]
cmp dword [eax + 0x38], 0
je 0x10039087
mov ecx, dword [ebp - 0x2c]
movzx edx, byte [ecx + 0x3d]
test edx, edx
jne 0x1003908e
mov al, 1
jmp 0x1003918e
mov eax, dword [ebp - 0x2c]
mov ecx, dword [eax]
mov edx, dword [ecx + 0xc]
mov dword [ebp - 0x48], edx
mov eax, dword [ebp - 0x5c]
mov dword [ebp - 0x3c], eax
mov dword [ebp - 0x3c], 0xffffffff
mov ecx, dword [ebp - 0x3c]
push ecx
mov ecx, dword [ebp - 0x2c]
call dword [ebp - 0x48]
mov dword [ebp - 0x50], eax
mov dword [ebp - 0x4c], 0xffffffff
mov edx, dword [ebp - 0x4c]
cmp edx, dword [ebp - 0x50]
jne 0x100390cb
mov dword [ebp - 0x40], 1
jmp 0x100390d2
mov dword [ebp - 0x40], 0
mov al, byte [ebp - 0x40]
mov byte [ebp - 0x2d], al
movzx ecx, byte [ebp - 0x2d]
test ecx, ecx
je 0x100390e7
xor al, al
jmp 0x1003918e
mov dword [ebp - 0x60], 0x20
mov edx, dword [ebp - 0x2c]
mov eax, dword [edx + 0x38]
mov dword [ebp - 0x54], eax
lea ecx, [ebp - 0x58]
push ecx
lea edx, [ebp - 8]
push edx
lea eax, [ebp - 0x28]
push eax
mov ecx, dword [ebp - 0x2c]
add ecx, 0x40
push ecx
mov ecx, dword [ebp - 0x54]
call dword [sym.imp.MSVCP140.dll_public:_int___thiscall_std::codecvt_char__char__struct__Mbstatet_::unshift_struct__Mbstatet___char___char___char___const]
mov dword [ebp - 0x34], eax
cmp dword [ebp - 0x34], 0
je 0x1003912a
cmp dword [ebp - 0x34], 1
je 0x10039131
cmp dword [ebp - 0x34], 3
je 0x10039181
jmp 0x1003918c
mov edx, dword [ebp - 0x2c]
mov byte [edx + 0x3d], 0
mov eax, dword [ebp - 0x58]
lea ecx, [ebp - 0x28]
sub eax, ecx
mov dword [ebp - 0x38], eax
je 0x10039161
mov edx, dword [ebp - 0x2c]
mov eax, dword [edx + 0x4c]
push eax
mov ecx, dword [ebp - 0x38]
push ecx
push 1
lea edx, [ebp - 0x28]
push edx
call dword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll_fwrite]
add esp, 0x10
cmp dword [ebp - 0x38], eax
je 0x10039161
xor al, al
jmp 0x1003918e
mov eax, dword [ebp - 0x2c]
movzx ecx, byte [eax + 0x3d]
test ecx, ecx
jne 0x10039175
mov dword [ebp - 0x44], 1
jmp 0x1003917c
mov dword [ebp - 0x44], 0
mov al, byte [ebp - 0x44]
jmp 0x1003918e
mov edx, dword [ebp - 0x2c]
mov byte [edx + 0x3d], 0
mov al, 1
jmp 0x1003918e
xor al, al
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.1003d6f0
mov esp, ebp
pop ebp
ret
Function at 0x1003e910
Capabilities:
Allocate or change rwx memory

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x24
mov eax, dword [ebp + 0xc]
sub eax, 0x10000
push eax
call fcn.1003eac0
add esp, 4
mov dword [ebp - 4], eax
mov ecx, dword [ebp - 4]
cmp ecx, dword [ebp + 8]
jbe 0x1003e9dd
mov edx, dword [ebp - 4]
cmp edx, dword [0x1004c014]
jb 0x1003e95a
mov eax, dword [ebp - 4]
cmp eax, dword [0x1004c018]
ja 0x1003e95a
mov ecx, dword [ebp - 4]
sub ecx, 0x8000000
mov dword [ebp - 4], ecx
jmp 0x1003e92a
push 0x1c
push 0
lea edx, [ebp - 0x24]
push edx
call sub.VCRUNTIME140.dll_memset
add esp, 0xc
push 0x1c
lea eax, [ebp - 0x24]
push eax
mov ecx, dword [ebp - 4]
push ecx
call dword [sym.imp.KERNEL32.dll_VirtualQuery]
test eax, eax
jne 0x1003e980
jmp 0x1003e9dd
cmp dword [ebp - 0x14], 0x10000
jne 0x1003e9c3
cmp dword [ebp - 0x18], 0x10000
jb 0x1003e9c3
push 0x40
push 0x3000
push 0x10000
mov edx, dword [ebp - 4]
push edx
call dword [sym.imp.KERNEL32.dll_VirtualAlloc]
mov dword [ebp - 8], eax
cmp dword [ebp - 8], 0
je 0x1003e9b6
mov eax, dword [ebp - 8]
jmp 0x1003e9df
mov eax, dword [ebp - 4]
sub eax, 0x10000
mov dword [ebp - 4], eax
jmp 0x1003e9d8
mov ecx, dword [ebp - 0x20]
sub ecx, 0x10000
push ecx
call fcn.1003eac0
add esp, 4
mov dword [ebp - 4], eax
jmp 0x1003e92a
xor eax, eax
mov esp, ebp
pop ebp
ret

Function at 0x1003e9f0
Capabilities:
Allocate or change rwx memory

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x24
mov eax, dword [ebp + 8]
push eax
call fcn.1003eaf0
add esp, 4
mov dword [ebp - 4], eax
mov ecx, dword [ebp - 4]
cmp ecx, dword [ebp + 0xc]
jae 0x1003eab5
mov edx, dword [ebp - 4]
cmp edx, dword [0x1004c014]
jb 0x1003ea35
mov eax, dword [ebp - 4]
cmp eax, dword [0x1004c018]
ja 0x1003ea35
mov ecx, dword [ebp - 4]
add ecx, 0x8000000
mov dword [ebp - 4], ecx
jmp 0x1003ea05
push 0x1c
push 0
lea edx, [ebp - 0x24]
push edx
call sub.VCRUNTIME140.dll_memset
add esp, 0xc
push 0x1c
lea eax, [ebp - 0x24]
push eax
mov ecx, dword [ebp - 4]
push ecx
call dword [sym.imp.KERNEL32.dll_VirtualQuery]
test eax, eax
jne 0x1003ea5b
jmp 0x1003eab5
cmp dword [ebp - 0x14], 0x10000
jne 0x1003ea9e
cmp dword [ebp - 0x18], 0x10000
jb 0x1003ea9e
push 0x40
push 0x3000
push 0x10000
mov edx, dword [ebp - 4]
push edx
call dword [sym.imp.KERNEL32.dll_VirtualAlloc]
mov dword [ebp - 8], eax
cmp dword [ebp - 8], 0
je 0x1003ea91
mov eax, dword [ebp - 8]
jmp 0x1003eab7
mov eax, dword [ebp - 4]
add eax, 0x10000
mov dword [ebp - 4], eax
jmp 0x1003eab0
mov ecx, dword [ebp - 0x24]
add ecx, dword [ebp - 0x18]
push ecx
call fcn.1003eaf0
add esp, 4
mov dword [ebp - 4], eax
jmp 0x1003ea05
xor eax, eax
mov esp, ebp
pop ebp
ret
Function at 0x1003eb20
Capabilities:
Hook routines via microsoft detours

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x18
lea eax, [ebp - 0xc]
push eax
lea ecx, [ebp - 0x10]
push ecx
mov edx, dword [ebp + 8]
push edx
call fcn.1003ef10
add esp, 0xc
mov dword [ebp - 4], 0
cmp dword [0x1010e6d4], 0
jne 0x1003eb5d
cmp dword [0x1010e6d0], 0
je 0x1003eb5d
mov eax, dword [0x1010e6d0]
mov dword [0x1010e6d4], eax
cmp dword [0x1010e6d4], 0
je 0x1003ebda
mov ecx, dword [0x1010e6d4]
cmp dword [ecx + 8], 0
je 0x1003ebda
mov edx, dword [0x1010e6d4]
mov eax, dword [edx + 8]
cmp eax, dword [ebp - 0x10]
jb 0x1003ebda
mov ecx, dword [0x1010e6d4]
mov edx, dword [ecx + 8]
cmp edx, dword [ebp - 0xc]
ja 0x1003ebda
mov eax, dword [0x1010e6d4]
mov ecx, dword [eax + 8]
mov dword [ebp - 4], ecx
mov edx, dword [ebp - 4]
cmp edx, dword [ebp - 0x10]
jb 0x1003eba9
mov eax, dword [ebp - 4]
cmp eax, dword [ebp - 0xc]
jbe 0x1003ebb0
xor eax, eax
jmp 0x1003ecf9
mov ecx, dword [0x1010e6d4]
mov edx, dword [ebp - 4]
mov eax, dword [edx + 0x40]
mov dword [ecx + 8], eax
push 0x48
push 0xcc
mov ecx, dword [ebp - 4]
push ecx
call sub.VCRUNTIME140.dll_memset
add esp, 0xc
mov eax, dword [ebp - 4]
jmp 0x1003ecf9
mov edx, dword [0x1010e6d0]
mov dword [0x1010e6d4], edx
jmp 0x1003ebf6
mov eax, dword [0x1010e6d4]
mov ecx, dword [eax + 4]
mov dword [0x1010e6d4], ecx
cmp dword [0x1010e6d4], 0
je 0x1003ec36
cmp dword [0x1010e6d4], 0
je 0x1003ec34
mov edx, dword [0x1010e6d4]
cmp dword [edx + 8], 0
je 0x1003ec34
mov eax, dword [0x1010e6d4]
mov ecx, dword [eax + 8]
cmp ecx, dword [ebp - 0x10]
jb 0x1003ec34
mov edx, dword [0x1010e6d4]
mov eax, dword [edx + 8]
cmp eax, dword [ebp - 0xc]
ja 0x1003ec34
jmp 0x1003eb8e
jmp 0x1003ebe8
mov ecx, dword [ebp + 8]
and ecx, 0xffff
mov edx, dword [ebp + 8]
sub edx, ecx
mov dword [ebp + 8], edx
mov eax, dword [ebp - 0xc]
push eax
mov ecx, dword [ebp - 0x10]
push ecx
mov edx, dword [ebp + 8]
push edx
call fcn.1003ed00
add esp, 0xc
mov dword [ebp - 0x18], eax
cmp dword [ebp - 0x18], 0
je 0x1003ecf7
mov eax, dword [ebp - 0x18]
mov dword [0x1010e6d4], eax
mov ecx, dword [0x1010e6d4]
mov dword [ecx], 0x52727464
mov edx, dword [0x1010e6d4]
mov dword [edx + 8], 0
mov eax, dword [0x1010e6d4]
mov ecx, dword [0x1010e6d0]
mov dword [eax + 4], ecx
mov edx, dword [0x1010e6d4]
mov dword [0x1010e6d0], edx
mov dword [ebp - 0x14], 0
mov eax, dword [0x1010e6d4]
add eax, 0x48
mov dword [ebp - 4], eax
mov dword [ebp - 8], 0x38c
jmp 0x1003ecc7
mov ecx, dword [ebp - 8]
sub ecx, 1
mov dword [ebp - 8], ecx
cmp dword [ebp - 8], 1
jle 0x1003ece7
imul edx, dword [ebp - 8], 0x48
mov eax, dword [ebp - 4]
mov ecx, dword [ebp - 0x14]
mov dword [eax + edx + 0x40], ecx
imul edx, dword [ebp - 8], 0x48
add edx, dword [ebp - 4]
mov dword [ebp - 0x14], edx
jmp 0x1003ecbe
mov eax, dword [0x1010e6d4]
mov ecx, dword [ebp - 0x14]
mov dword [eax + 8], ecx
jmp 0x1003eb8e
xor eax, eax
mov esp, ebp
pop ebp
ret
Function at 0x430000
Capabilities:
Encode data using xor
Packed with generic packer

Disassembly:
pushal
nop
nop
nop
nop
nop
call 0x43000c
pop eax
nop
nop
nop
nop
nop
nop
add eax, 0x403d6f
nop
sub eax, 0x403d15
nop
nop
nop
mov ebx, dword [eax]
nop
nop
nop
nop
mov ecx, dword [eax + 4]
nop
mov edx, dword [eax + 8]
nop
nop
xor dword [ebx], edx
nop
nop
nop
nop
add ebx, 4
nop
nop
nop
cmp ebx, ecx
nop
nop
nop
nop
nop
nop
nop
nop
jl 0x430030
add eax, 0xc
nop
nop
nop
nop
nop
nop
cmp dword [eax], 0
nop
nop
nop
jne 0x43001e
nop
nop
nop
nop
popal
nop
nop
jmp loc.00401219
Function at 0x401e70
Capabilities:
Read file on windows

Disassembly:
push ebp
push edi
push esi
push ebx
mov esi, edx
sub esp, 0x11c
mov dword [esp + 0x2c], eax
mov dword [esp + 4], eax
lea eax, [esp + 0x30]
mov dword [esp + 0x10], 0
mov dword [esp + 0xc], ecx
lea ebx, [esp + 0xa0]
mov dword [esp + 8], edx
mov dword [esp], eax
mov dword [esp + 0x24], ecx
mov dword [esp + 0x30], 0
mov dword [esp + 0x34], 0
mov dword [esp + 0x40], 0
mov dword [esp + 0x44], 0
mov dword [esp + 0x4c], 0
mov dword [esp + 0xa0], 0
mov dword [esp + 0xa4], 0
mov dword [esp + 0xb0], 0
mov dword [esp + 0xb4], 0
mov dword [esp + 0xbc], 0
call fcn.00402e50
test eax, eax
jne 0x402100
mov dword [esp + 0x20], 0
jmp 0x401f48
mov eax, dword [esp + 0x58]
mov dword [esp + 8], 0
mov dword [esp], esi
mov dword [esp + 4], eax
call fcn.00405b60
test eax, eax
jne 0x402160
lea eax, [esp + 0x64]
mov dword [esp + 0xc], esi
mov dword [esp + 8], 0x3c
mov dword [esp + 4], 1
mov dword [esp], eax
call sub.msvcrt.dll_fread
cmp eax, 0x3c
jne 0x402180
lea eax, [esp + 0x9e]
mov dword [esp + 8], 2
mov dword [esp + 4], 0x40e5bb
mov dword [esp], eax
call sub.msvcrt.dll_memcmp
test eax, eax
jne 0x4021b0
lea eax, [esp + 0x94]
mov dword [esp + 8], 0xa
mov dword [esp + 4], 0
jmp loc.00417bb8
mov dword [esp + 0x20], 1
mov eax, dword [esp + 0xa4]
test eax, eax
je 0x40211b
mov dword [esp], eax
call sub.msvcrt.dll_fclose
mov dword [esp], ebx
call fcn.00403170
lea eax, [esp + 0x30]
mov dword [esp], eax
call fcn.00403170
mov eax, dword [esp + 0x20]
add esp, 0x11c
pop ebx
pop esi
pop edi
pop ebp
ret
mov eax, dword [esp + 0x2c]
mov dword [esp], str._s:_failed_to_seek_to_next_archive_header_n
mov dword [esp + 4], eax
call fcn.004022f0
mov eax, 1
jmp 0x402133
test eax, eax
lea ebx, [esp + 0xa0]
je 0x402108
mov eax, dword [esp + 0x2c]
mov dword [esp], 0x40e598
mov dword [esp + 4], eax
call fcn.004022f0
mov dword [esp + 0x20], 1
jmp 0x402108
mov eax, dword [esp + 0x30]
mov dword [esp], 0x40e5c0
lea ebx, [esp + 0xa0]
mov dword [esp + 4], eax
call fcn.004022f0
mov dword [esp + 0x20], 1
jmp 0x402108
Function at 0x403250
Capabilities:
Read file on windows

Disassembly:
push esi
push ebx
sub esp, 0x14
mov eax, dword [esp + 0x24]
mov ebx, dword [esp + 0x20]
mov dword [esp + 8], 0
mov esi, dword [esp + 0x28]
mov dword [esp + 4], eax
mov eax, dword [ebx + 4]
mov dword [esp], eax
call fcn.00405b60
test eax, eax
jne 0x4032d1
mov eax, dword [ebx + 4]
mov dword [esp + 8], 0x3c
mov dword [esp + 4], 1
mov dword [esp + 0xc], eax
lea eax, [ebx + 0x34]
mov dword [esp], eax
call sub.msvcrt.dll_fread
cmp eax, 0x3c
jne 0x4032f0
lea eax, [ebx + 0x6e]
mov dword [esp + 8], 2
mov dword [esp + 4], 0x40efc6
mov dword [esp], eax
call sub.msvcrt.dll_memcmp
test eax, eax
jne 0x403304
mov dword [esp + 0x24], esi
mov dword [esp + 0x20], ebx
add esp, 0x14
pop ebx
pop esi
jmp fcn.00403320
mov eax, dword [ebx]
mov dword [esp], str._s:_failed_to_seek_to_next_file_name_n
mov dword [esp + 4], eax
call fcn.004022f0
add esp, 0x14
xor eax, eax
pop ebx
pop esi
ret
mov eax, dword [ebx]
mov dword [esp], str._s:_failed_to_read_archive_header_n
mov dword [esp + 4], eax
call fcn.004022f0
jmp 0x4032e3
mov eax, dword [ebx]
mov dword [esp], str._s:_did_not_find_a_valid_archive_header_n
mov dword [esp + 4], eax
call fcn.004022f0
jmp 0x4032e3
Function at 0x405490
Capabilities:
Get thread local storage value

Disassembly:
push ebp
mov ebp, esp
push esi
push ebx
sub esp, 0x10
mov dword [esp], 0x413180
call sub.KERNEL32.dll_EnterCriticalSection
mov ebx, dword [0x413178]
sub esp, 4
test ebx, ebx
je 0x4054dc
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 0x4054d5
test esi, esi
je 0x4054d5
mov eax, dword [ebx + 4]
mov dword [esp], esi
call eax
mov ebx, dword [ebx + 8]
test ebx, ebx
jne 0x4054b1
jmp 0x417960

Function at 0x4056d0
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]
mov dword [esp + 4], 1
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
jmp loc.004173e8

Function at 0x405720
Capabilities:
Allocate or change rwx memory

Disassembly:
push ebp
mov ebp, esp
push edi
mov edi, ecx
push esi
mov esi, edx
push ebx
mov ebx, eax
sub esp, 0x4c
lea eax, [ebp - 0x34]
mov dword [esp + 8], 0x1c
mov dword [esp + 4], eax
mov dword [esp], ebx
call sub.KERNEL32.dll_VirtualQuery
sub esp, 0xc
test eax, eax
je 0x4057eb
mov eax, dword [ebp - 0x20]
cmp eax, 4
jne 0x405771
mov dword [esp + 8], edi
mov dword [esp + 4], esi
mov dword [esp], ebx
call sub.msvcrt.dll_memcpy
lea esp, [ebp - 0xc]
pop ebx
pop esi
pop edi
pop ebp
ret
cmp eax, 0x40
je 0x405759
mov eax, dword [ebp - 0x28]
lea edx, [ebp - 0x38]
mov dword [esp + 0xc], edx
mov dword [esp + 8], 0x40
mov dword [ebp - 0x3c], edx
mov dword [esp + 4], eax
mov eax, dword [ebp - 0x34]
mov dword [esp], eax
call sub.KERNEL32.dll_VirtualProtect
mov ecx, dword [ebp - 0x20]
mov dword [ebp - 0x40], ecx
sub esp, 0x10
mov dword [esp + 8], edi
mov dword [esp + 4], esi
mov dword [esp], ebx
call sub.msvcrt.dll_memcpy
mov ecx, dword [ebp - 0x40]
cmp ecx, 4
je 0x405769
cmp ecx, 0x40
je 0x405769
mov eax, dword [ebp - 0x38]
mov edx, dword [ebp - 0x3c]
mov dword [esp + 8], eax
mov eax, dword [ebp - 0x28]
mov dword [esp + 0xc], edx
mov dword [esp + 4], eax
mov eax, dword [ebp - 0x34]
mov dword [esp], eax
call sub.KERNEL32.dll_VirtualProtect
sub esp, 0x10
lea esp, [ebp - 0xc]
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.004056d0
lea esi, [esi]
lea edi, [edi]