joyce8/EMBER2024-capa huggingface dataset:
Function at 0x100193d4
Capabilities:
Write file on windows

Disassembly:
push 0x48
push 0x1004d628
call fcn.1004a830
mov edi, dword [ebp + 0x10]
mov ebx, dword [ebp + 0xc]
mov dword [ebp - 0x40], ebx
mov dword [ebp - 0x3c], edi
mov eax, dword [ebp + 0x1c]
mov dword [ebp - 0x38], eax
mov eax, dword [ebp + 8]
mov dword [ebp - 0x34], eax
mov eax, dword [ebp + 0x18]
mov dword [ebp - 0x30], eax
and dword [ebp - 0x28], 0
and dword [ebp - 4], 0
add ebx, edi
mov eax, dword [ebx]
mov dword [ebp - 0x20], eax
push eax
push edi
push 0x10114468
push 0x1000300c
call fcn.1001c194
push eax
push 0x20000
mov esi, 0x10058a80
push esi
call dword [sym.imp.MSVCR100.dll_sprintf_s]
add esp, 0x18
push esi
push dword [ebp + 8]
call fcn.10011965
test byte [0x10116d14], 4
jne 0x10019580
cmp dword [0x10116d20], 0
je 0x10019580
and dword [ebp - 0x1c], 0
push 0x10003004
push dword [ebp + 0x18]
lea eax, [ebp - 0x1c]
push eax
call dword [sym.imp.MSVCR100.dll__wfopen_s]
add esp, 0xc
mov eax, dword [ebp - 0x1c]
test eax, eax
je 0x10019580
mov ecx, dword [ebp + 0xc]
mov dword [ebp - 0x58], ecx
mov dword [ebp - 0x54], edi
mov edx, dword [ebp - 0x20]
mov dword [ebp - 0x50], edx
mov dword [ebp - 0x4c], eax
mov edi, dword [ebp + 0x1c]
mov dword [ebp - 0x48], edi
mov ecx, dword [ebp + 8]
mov dword [ebp - 0x44], ecx
lea ecx, [ebp - 0x58]
mov dword [ebp - 0x2c], ecx
and dword [ebp - 0x24], 0
xor ecx, ecx
inc ecx
mov dword [ebp - 4], ecx
push eax
push ecx
push edx
add ebx, 4
push ebx
call dword [sym.imp.MSVCR100.dll_fwrite]
add esp, 0x10
push edi
call fcn.1001c541
push eax
push 0x10114468
push 0x1ec
call fcn.100269d5
push eax
push 0x20000
push esi
call dword [sym.imp.MSVCR100.dll_sprintf_s]
add esp, 0x14
push esi
call fcn.1001c194
push eax
push dword [ebp + 8]
call fcn.10011965
jmp 0x10019535
and dword [ebp - 4], 0
push dword [ebp - 0x1c]
call dword [sym.imp.MSVCR100.dll_fclose]
pop ecx
jmp 0x10019580
mov dword [ebp - 4], 0xfffffffe
call fcn.1004a875
ret 0x18
Function at 0x1001b008
Capabilities:
Write file on windows

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0xc
and dword [ebp - 8], 0
push edi
lea eax, [ebp - 0xc]
mov edi, ecx
mov ecx, dword [0x10115084]
push eax
push dword [edi + 0x20]
mov word [ebp - 4], 0
mov byte [ebp - 2], 0
call fcn.1001b643
test eax, eax
je 0x1001b1a0
mov eax, dword [edi + 0x30]
push ebx
lea ebx, [edi + 4]
mov dword [ebx], 0x20
test eax, eax
je 0x1001b064
lea edx, [eax + 2]
mov cx, word [eax]
add eax, 2
test cx, cx
jne 0x1001b04f
sub eax, edx
sar eax, 1
lea eax, [eax + eax + 0x1e]
mov dword [ebx], eax
mov eax, dword [edi + 0x34]
test eax, eax
je 0x1001b083
lea edx, [eax + 2]
mov cx, word [eax]
add eax, 2
test cx, cx
jne 0x1001b06e
sub eax, edx
sar eax, 1
lea eax, [eax + eax - 2]
add dword [ebx], eax
push esi
push dword [ebp + 8]
mov esi, dword [sym.imp.MSVCR100.dll_fwrite]
push 1
push 4
push edi
call esi
push dword [ebp + 8]
push 1
push 4
push ebx
call esi
mov ecx, dword [edi + 0x30]
add esp, 0x20
test ecx, ecx
je 0x1001b0e8
mov eax, ecx
lea ebx, [eax + 2]
mov dx, word [eax]
add eax, 2
test dx, dx
jne 0x1001b0ad
sub eax, ebx
mov ebx, dword [ebp + 8]
push ebx
sar eax, 1
push 1
lea eax, [eax + eax + 2]
push eax
push ecx
call esi
mov eax, dword [edi + 0x30]
add esp, 0x10
lea ecx, [eax + 2]
mov dx, word [eax]
add eax, 2
test dx, dx
jne 0x1001b0d3
sub eax, ecx
sar eax, 1
inc eax
mov dword [ebp - 8], eax
jmp 0x1001b0fb
push dword [ebp + 8]
lea eax, [edi + 8]
push 1
push 4
push eax
call esi
mov ebx, dword [ebp + 8]
add esp, 0x10
mov ecx, dword [edi + 0x34]
test ecx, ecx
je 0x1001b149
mov eax, ecx
lea edx, [eax + 2]
mov dword [ebp + 8], edx
mov dx, word [eax]
add eax, 2
test dx, dx
jne 0x1001b10a
sub eax, dword [ebp + 8]
push ebx
sar eax, 1
push 1
lea eax, [eax + eax + 2]
push eax
push ecx
call esi
mov eax, dword [edi + 0x34]
add esp, 0x10
lea ecx, [eax + 2]
mov dx, word [eax]
add eax, 2
test dx, dx
jne 0x1001b12e
sub eax, ecx
mov ecx, dword [ebp - 8]
sar eax, 1
lea eax, [ecx + eax + 1]
mov dword [ebp - 8], eax
jmp 0x1001b157
push ebx
push 1
lea eax, [edi + 0xc]
push 4
push eax
call esi
add esp, 0x10
test byte [ebp - 8], 1
je 0x1001b16b
push ebx
push 1
lea eax, [ebp - 4]
push 2
push eax
call esi
add esp, 0x10
push ebx
push 1
lea eax, [edi + 0x10]
push 0x10
push eax
call esi
push ebx
push 1
push dword [edi + 0x24]
push dword [ebp - 0xc]
call esi
mov edi, dword [edi + 0x24]
add esp, 0x20
and edi, 3
je 0x1001b19e
push ebx
push 1
push 4
pop eax
sub eax, edi
push eax
lea eax, [ebp - 4]
push eax
call esi
add esp, 0x10
pop esi
pop ebx
pop edi
leave
ret 4
Function at 0x1001b565
Capabilities:
Parse pe header

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
mov eax, dword [ebp + 8]
push esi
mov edx, 0x5a4d
mov dword [ecx], eax
xor esi, esi
cmp word [eax], dx
jne 0x1001b5c0
mov edx, dword [eax + 0x3c]
cmp edx, esi
jle 0x1001b5c0
cmp edx, 0xff0
jge 0x1001b5c0
add eax, edx
push ebx
xor ebx, ebx
mov dword [ecx + 0x18], eax
mov edx, 0x10b
cmp word [eax + 0x18], dx
sete bl
mov eax, ebx
mov dword [ecx + 0xc], eax
cmp eax, esi
mov eax, dword [ecx + 0x18]
pop ebx
je 0x1001b5c9
cmp dword [eax], 0x4550
jne 0x1001b5bd
add edx, 0xffffffd5
cmp word [eax + 0x14], dx
je 0x1001b5d8
mov dword [ecx + 0x18], esi
mov dword [ecx], esi
xor eax, eax
pop esi
pop ebp
ret 4
cmp dword [eax], 0x4550
jne 0x1001b5bd
mov edx, 0xf0
jmp 0x1001b5b7
mov eax, dword [eax + 0x3c]
mov edx, dword [ecx + 0x10]
dec eax
add edx, eax
not eax
and edx, eax
xor eax, eax
mov dword [ecx + 0x14], edx
inc eax
jmp 0x1001b5c4
Function at 0x1002ccdf
Capabilities:
Write file on windows

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push ecx
and dword [ebp - 4], 0
cmp dword [0x10116d6c], 0xffffffff
lea eax, [ebp - 4]
jne 0x1002ccfc
push 0x10003004
jmp 0x1002cd01
push 0x100086d0
push dword [ebp + 8]
push eax
call dword [sym.imp.MSVCR100.dll__wfopen_s]
add esp, 0xc
cmp dword [ebp - 4], 0
je 0x1002cd48
mov eax, dword [0x10116d6c]
cmp eax, 0xfde9
jne 0x1002cd2e
push dword [ebp - 4]
push 1
push 3
push 0x100086cc
jmp 0x1002cd3f
cmp eax, 0xffffffff
jne 0x1002cd48
push dword [ebp - 4]
push 1
push 2
push 0x100086c8
call dword [sym.imp.MSVCR100.dll_fwrite]
add esp, 0x10
mov eax, dword [ebp - 4]
leave
ret 4
Function at 0x1003b746
Capabilities:
Accept command line arguments

Disassembly:
push 0x10
mov eax, 0x1004bf59
call fcn.1004a560
xor ebx, ebx
mov dword [ebp - 0x18], ebx
lea eax, [ebp - 0x14]
push eax
push dword [ebp + 8]
call dword [0x10001324]
mov dword [ebp - 0x1c], eax
mov esi, 0x800
push esi
call fcn.10042e16
pop ecx
mov dword [ebp + 8], eax
xor edi, edi
inc edi
cmp dword [ebp - 0x14], edi
jle 0x1003b7bd
push esi
push ebx
push dword [ebp + 8]
call sub.MSVCR100.dll_memset
add esp, 0xc
push ebx
push ebx
push esi
push dword [ebp + 8]
push 0xffffffffffffffff
mov eax, dword [ebp - 0x1c]
push dword [eax + edi*4]
push ebx
push 0xfde9
call dword [fcn.10001124]
push dword [ebp + 0xc]
push dword [ebp + 8]
call fcn.1003adcc
mov dword [ebp - 0x18], eax
cmp eax, ebx
jne 0x1003b7bd
inc edi
cmp edi, dword [ebp - 0x14]
jl 0x1003b77e
mov dword [ebp - 4], ebx
push dword [ebp + 8]
call fcn.10042d92
pop ecx
or dword [ebp - 4], 0xffffffff
mov eax, dword [ebp - 0x18]
call fcn.1004a605
ret 8
Function at 0x1003c9c5
Capabilities:
Read file on windows

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0xc
and dword [ebp - 8], 0
and dword [ebp - 0xc], 0
push 0x1000a46c
call fcn.1003c965
push eax
lea eax, [ebp - 8]
push eax
call dword [sym.imp.MSVCR100.dll_fopen_s]
add esp, 0xc
test eax, eax
jne 0x1003cb01
push ebx
mov ebx, dword [ebp + 8]
push esi
mov esi, dword [sym.imp.MSVCR100.dll_fread]
push edi
push dword [ebp - 8]
xor edi, edi
inc edi
push edi
push 0x5c
push dword [ebx + 4]
call esi
add esp, 0x10
test eax, eax
je 0x1003ca2c
push dword [ebp - 8]
push edi
push 0x5c
push dword [ebx]
call esi
add esp, 0x10
test eax, eax
je 0x1003ca2c
mov dword [ebp - 0xc], edi
jmp 0x1003ca30
and dword [ebp - 0xc], 0
push dword [ebp - 8]
lea eax, [ebp - 4]
push edi
push 4
push eax
call esi
add esp, 0x10
test eax, eax
je 0x1003ca49
mov eax, dword [ebp - 4]
mov dword [ebx + 8], eax
push dword [ebp - 8]
lea eax, [ebp - 4]
push edi
push 4
push eax
call esi
add esp, 0x10
test eax, eax
je 0x1003ca62
mov eax, dword [ebp - 4]
mov dword [ebx + 0xc], eax
push dword [ebp - 8]
lea eax, [ebp - 4]
push edi
push 4
push eax
call esi
add esp, 0x10
test eax, eax
je 0x1003ca7b
mov eax, dword [ebp - 4]
mov dword [ebx + 0x10], eax
push dword [ebp - 8]
lea eax, [ebp - 4]
push edi
push 4
push eax
call esi
add esp, 0x10
test eax, eax
je 0x1003ca94
mov eax, dword [ebp - 4]
mov dword [ebx + 0x14], eax
push dword [ebp - 8]
lea eax, [ebp - 4]
push edi
push 4
push eax
call esi
add esp, 0x10
test eax, eax
je 0x1003cab4
xor eax, eax
cmp dword [ebp - 4], eax
setne al
mov dword [0x10053900], eax
push dword [ebp - 8]
lea eax, [ebp - 4]
push edi
push 4
push eax
call esi
add esp, 0x10
test eax, eax
je 0x1003cad4
xor eax, eax
cmp dword [ebp - 4], eax
setne al
mov dword [0x10053904], eax
push dword [ebp - 8]
lea eax, [ebp - 4]
push edi
push 4
push eax
call esi
add esp, 0x10
pop edi
pop esi
pop ebx
test eax, eax
je 0x1003caf7
xor eax, eax
cmp dword [ebp - 4], eax
setne al
mov dword [0x1012adfc], eax
push dword [ebp - 8]
call dword [sym.imp.MSVCR100.dll_fclose]
pop ecx
mov eax, dword [ebp - 0xc]
leave
ret 4
Function at 0x1003cb08
Capabilities:
Write file on windows

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x10
xor ecx, ecx
xor eax, eax
push ebx
xor ebx, ebx
cmp dword [0x10053900], eax
push 0x1000a470
setne cl
mov dword [ebp - 4], eax
mov dword [ebp - 8], ecx
xor ecx, ecx
cmp dword [0x10053904], eax
setne cl
mov dword [ebp - 0xc], ecx
xor ecx, ecx
cmp dword [0x1012adfc], eax
setne cl
mov dword [ebp - 0x10], ecx
call fcn.1003c965
push eax
lea eax, [ebp - 4]
push eax
call dword [sym.imp.MSVCR100.dll_fopen_s]
add esp, 0xc
test eax, eax
jne 0x1003cc2c
push esi
mov esi, dword [sym.imp.MSVCR100.dll_fwrite]
push edi
push dword [ebp - 4]
mov edi, dword [ebp + 8]
inc ebx
push ebx
push 0x5c
push dword [edi + 4]
call esi
add esp, 0x10
test eax, eax
je 0x1003cc1e
push dword [ebp - 4]
push ebx
push 0x5c
push dword [edi]
call esi
add esp, 0x10
test eax, eax
je 0x1003cc1e
push dword [ebp - 4]
lea eax, [edi + 8]
push ebx
push 4
push eax
call esi
add esp, 0x10
test eax, eax
je 0x1003cc1e
push dword [ebp - 4]
lea eax, [edi + 0xc]
push ebx
push 4
push eax
call esi
add esp, 0x10
test eax, eax
je 0x1003cc1e
push dword [ebp - 4]
lea eax, [edi + 0x10]
push ebx
push 4
push eax
call esi
add esp, 0x10
test eax, eax
je 0x1003cc1e
push dword [ebp - 4]
add edi, 0x14
push ebx
push 4
push edi
call esi
add esp, 0x10
test eax, eax
je 0x1003cc1e
push dword [ebp - 4]
lea eax, [ebp - 8]
push ebx
push 4
push eax
call esi
add esp, 0x10
test eax, eax
je 0x1003cc1e
push dword [ebp - 4]
lea eax, [ebp - 0xc]
push ebx
push 4
push eax
call esi
add esp, 0x10
test eax, eax
je 0x1003cc1e
push dword [ebp - 4]
lea eax, [ebp - 0x10]
push ebx
push 4
push eax
call esi
add esp, 0x10
test eax, eax
jne 0x1003cc20
xor ebx, ebx
push dword [ebp - 4]
call dword [sym.imp.MSVCR100.dll_fclose]
pop ecx
pop edi
pop esi
mov eax, ebx
pop ebx
leave
ret 4
Function at 0x10041915
Capabilities:
Get graphical window text

Disassembly:
call fcn.1003f1c7
jmp fcn.1004158b

Function at 0x100427d9
Capabilities:
Inspect load icon resource

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x28
mov eax, dword [0x1012abd0]
push ebx
push esi
mov esi, dword [0x1000138c]
push edi
mov ebx, 0x88
push ebx
push dword [0x1012adf4]
xor edi, edi
mov dword [ebp - 0x28], 0xb
mov dword [ebp - 0x24], 0x1003ec22
mov dword [ebp - 0x20], edi
mov dword [ebp - 0x1c], edi
mov dword [ebp - 0x18], eax
call esi
mov dword [ebp - 0x14], eax
mov eax, dword [0x1012adf8]
mov dword [ebp - 0xc], eax
lea eax, [ebp - 0x28]
mov dword [ebp - 0x10], edi
mov dword [ebp - 8], edi
mov edi, dword [0x10001390]
push eax
mov dword [ebp - 4], 0x1000a65c
call edi
test ax, ax
jne 0x10042843
xor eax, eax
jmp 0x10042894
mov eax, dword [0x1012abd0]
and dword [ebp - 0x20], 0
and dword [ebp - 0x1c], 0
push ebx
push dword [0x1012adf4]
mov dword [ebp - 0x28], 0xb
mov dword [ebp - 0x24], 0x10041921
mov dword [ebp - 0x18], eax
call esi
and dword [ebp - 0x10], 0
and dword [ebp - 8], 0
mov dword [ebp - 0x14], eax
mov eax, dword [0x1012adf8]
mov dword [ebp - 0xc], eax
lea eax, [ebp - 0x28]
push eax
mov dword [ebp - 4], 0x1000a540
call edi
xor ecx, ecx
test ax, ax
setne cl
mov eax, ecx
pop edi
pop esi
pop ebx
leave
ret

Function at 0x10043552
Capabilities:
Enumerate pe sections

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push ebx
push esi
push edi
mov ecx, dword [ebp + 8]
movzx esi, word [ecx + 6]
movzx eax, word [ecx + 0x14]
xor ebx, ebx
lea eax, [eax + ecx + 0x18]
test esi, esi
je 0x1004359e
mov edi, dword [ebp + 0x10]
test edi, edi
je 0x1004357b
cmp dword [eax + 0x14], edi
ja 0x1004359e
mov edx, dword [eax + 0x10]
mov ecx, edi
sub ecx, dword [eax + 0x14]
cmp edx, ecx
ja 0x1004359e
mov ecx, dword [eax + 0xc]
cmp dword [ebp + 0xc], ecx
jb 0x10043596
add ecx, edx
cmp dword [ebp + 0xc], ecx
jb 0x100435a0
add eax, 0x28
inc ebx
cmp ebx, esi
jb 0x10043572
xor eax, eax
pop edi
pop esi
pop ebx
pop ebp
ret 0xc
Function at 0x1004ae7b
Capabilities:
Query or enumerate registry value

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x118
mov eax, dword [0x10057940]
xor eax, ebp
mov dword [ebp - 4], eax
mov eax, dword [ebp + 8]
push esi
mov dword [ebp - 0x110], eax
lea eax, [ebp - 0x10c]
push eax
push 0x20019
xor esi, esi
push esi
push 0x100113ec
push 0x80000000
call dword [entry0]
test eax, eax
jne 0x1004af50
push edi
lea eax, [ebp - 0x118]
push eax
lea eax, [ebp - 0x108]
push eax
lea eax, [ebp - 0x114]
push eax
push esi
push esi
push dword [ebp - 0x10c]
mov edi, 0x104
mov dword [ebp - 0x118], edi
mov dword [ebp - 0x114], 1
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
test eax, eax
jne 0x1004af3f
cmp dword [ebp - 0x114], 2
mov byte [ebp - 5], al
lea eax, [ebp - 0x108]
jne 0x1004af29
push edi
push dword [ebp - 0x110]
push eax
call dword [0x10001118]
dec eax
lea ecx, [edi - 1]
cmp ecx, eax
sbb esi, esi
inc esi
jmp 0x1004af3f
push eax
push edi
push dword [ebp - 0x110]
call fcn.1004ae18
xor ecx, ecx
test eax, eax
setge cl
mov esi, ecx
push dword [ebp - 0x10c]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov eax, esi
pop edi
jmp 0x1004af52
xor eax, eax
mov ecx, dword [ebp - 4]
xor ecx, ebp
pop esi
call fcn.1004a51e
leave
ret 4
Function at 0x10002010
Capabilities:
Log keystrokes via polling

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x18
mov dword [ebp - 0x18], ecx
mov dword [ebp - 4], 1
jmp 0x1000202b
mov eax, dword [ebp - 4]
add eax, 1
mov dword [ebp - 4], eax
cmp dword [ebp - 4], 0xfe
jge 0x10002068
mov ecx, dword [ebp - 4]
push ecx
call dword [sym.imp.USER32.dll_GetAsyncKeyState]
mov word [ebp - 8], ax
movsx edx, word [ebp - 8]
test edx, edx
je 0x10002054
mov eax, dword [ebp - 0x18]
add eax, dword [ebp - 4]
mov byte [eax + 0x10], 1
movsx ecx, word [ebp - 8]
test ecx, ecx
jne 0x10002066
mov edx, dword [ebp - 0x18]
add edx, dword [ebp - 4]
mov byte [edx + 0x10], 0
jmp 0x10002022
mov dword [ebp - 0xc], 1
jmp 0x1000207a
mov eax, dword [ebp - 0xc]
add eax, 1
mov dword [ebp - 0xc], eax
cmp dword [ebp - 0xc], 0xfe
jge 0x1000211d
mov ecx, dword [ebp - 0xc]
push ecx
mov ecx, dword [ebp - 0x18]
call fcn.10002130
mov byte [ebp - 0xd], al
movzx edx, byte [ebp - 0xd]
test edx, edx
je 0x10002118
mov dword [ebp - 0x14], 0
jmp 0x100020b0
mov eax, dword [ebp - 0x14]
add eax, 1
mov dword [ebp - 0x14], eax
mov ecx, dword [ebp - 0x18]
call fcn.10017ad0
cmp dword [ebp - 0x14], eax
jae 0x10002118
mov ecx, dword [ebp - 0x14]
push ecx
mov ecx, dword [ebp - 0x18]
call fcn.10017af0
mov edx, dword [eax]
mov eax, dword [edx + 4]
cmp eax, dword [ebp - 0xc]
jne 0x10002116
mov ecx, dword [ebp - 0x14]
push ecx
mov ecx, dword [ebp - 0x18]
call fcn.10017af0
mov edx, dword [eax]
cmp dword [edx + 8], 0
je 0x10002104
mov eax, dword [ebp - 0x14]
push eax
mov ecx, dword [ebp - 0x18]
call fcn.10017af0
mov ecx, dword [eax]
mov edx, dword [ecx + 8]
push edx
call dword [sym.imp.USER32.dll_GetAsyncKeyState]
cwde
test eax, eax
je 0x10002116
mov ecx, dword [ebp - 0x14]
push ecx
mov ecx, dword [ebp - 0x18]
call fcn.10017af0
mov edx, dword [eax]
mov eax, dword [edx]
call eax
jmp 0x100020a7
jmp 0x10002071
mov esp, ebp
pop ebp
ret

Function at 0x10003530
Capabilities:
Allocate or change rwx memory

Disassembly:
push ebp
mov ebp, esp
sub esp, 8
mov dword [ebp - 8], ecx
lea eax, [ebp - 4]
push eax
push 0x40
push 4
mov ecx, dword [ebp + 8]
push ecx
call dword [sym.imp.KERNEL32.dll_VirtualProtect]
mov edx, dword [ebp + 8]
mov eax, dword [ebp + 0xc]
mov dword [edx], eax
lea ecx, [ebp - 4]
push ecx
mov edx, dword [ebp - 4]
push edx
push 4
mov eax, dword [ebp + 8]
push eax
call dword [sym.imp.KERNEL32.dll_VirtualProtect]
mov esp, ebp
pop ebp
ret 8

Function at 0x10003570
Capabilities:
Allocate or change rwx memory

Disassembly:
push ebp
mov ebp, esp
sub esp, 8
mov dword [ebp - 8], ecx
lea eax, [ebp - 4]
push eax
push 0x40
push 2
mov ecx, dword [ebp + 8]
push ecx
call dword [sym.imp.KERNEL32.dll_VirtualProtect]
mov edx, dword [ebp + 8]
mov ax, word [ebp + 0xc]
mov word [edx], ax
lea ecx, [ebp - 4]
push ecx
mov edx, dword [ebp - 4]
push edx
push 2
mov eax, dword [ebp + 8]
push eax
call dword [sym.imp.KERNEL32.dll_VirtualProtect]
mov esp, ebp
pop ebp
ret 8
Function at 0x100035b0
Capabilities:
Allocate or change rwx memory

Disassembly:
push ebp
mov ebp, esp
sub esp, 8
mov dword [ebp - 8], ecx
lea eax, [ebp - 4]
push eax
push 0x40
push 1
mov ecx, dword [ebp + 8]
push ecx
call dword [sym.imp.KERNEL32.dll_VirtualProtect]
mov edx, dword [ebp + 8]
mov al, byte [ebp + 0xc]
mov byte [edx], al
lea ecx, [ebp - 4]
push ecx
mov edx, dword [ebp - 4]
push edx
push 1
mov eax, dword [ebp + 8]
push eax
call dword [sym.imp.KERNEL32.dll_VirtualProtect]
mov esp, ebp
pop ebp
ret 8

Function at 0x100035f0
Capabilities:
Allocate or change rwx memory

Disassembly:
push ebp
mov ebp, esp
sub esp, 8
mov dword [ebp - 8], ecx
lea eax, [ebp - 4]
push eax
push 0x40
push 4
mov ecx, dword [ebp + 8]
push ecx
call dword [sym.imp.KERNEL32.dll_VirtualProtect]
mov edx, dword [ebp + 8]
fld dword [ebp + 0xc]
fstp dword [edx]
lea eax, [ebp - 4]
push eax
mov ecx, dword [ebp - 4]
push ecx
push 4
mov edx, dword [ebp + 8]
push edx
call dword [sym.imp.KERNEL32.dll_VirtualProtect]
mov esp, ebp
pop ebp
ret 8

Function at 0x10008c80
Capabilities:
Execute anti-debugging instructions

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x10062fa3
mov eax, dword fs:[0]
push eax
sub esp, 0x230
mov eax, dword [0x100760a0]
xor eax, ebp
mov dword [ebp - 0x10], eax
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
jmp fcn.101467bc

Function at 0x1000d060
Capabilities:
Access peb ldr_data

Disassembly:
push ebp
mov ebp, esp
push ecx
mov eax, dword fs:[0x30]
mov eax, dword ds:[eax + 0xc]
mov eax, dword ds:[eax + 0xc]
mov eax, dword ds:[eax + 0x20]
mov dword [ebp - 4], eax
mov eax, dword [ebp - 4]
mov esp, ebp
pop ebp
ret

Function at 0x100127c0
Capabilities:
Execute anti-debugging instructions

Disassembly:
push ebp
mov ebp, esp
push ebx
push esi
push edi
jmp fcn.10147895

Function at 0x10014840
Capabilities:
Allocate or change rwx memory

Disassembly:
push ebp
mov ebp, esp
sub esp, 0xc
mov dword [ebp - 0xc], ecx
lea eax, [ebp - 8]
push eax
push 0x40
push 0xc
mov ecx, dword [ebp + 8]
push ecx
call dword [sym.imp.KERNEL32.dll_VirtualProtect]
mov edx, dword [ebp + 8]
mov eax, dword [ebp + 0xc]
mov dword [edx], eax
mov ecx, dword [ebp + 0x10]
mov dword [edx + 4], ecx
mov eax, dword [ebp + 0x14]
mov dword [edx + 8], eax
lea ecx, [ebp - 8]
push ecx
mov edx, dword [ebp - 8]
push edx
push 0xc
mov eax, dword [ebp + 8]
push eax
call dword [sym.imp.KERNEL32.dll_VirtualProtect]
mov esp, ebp
pop ebp
ret 0x10
Function at 0x100223c0
Capabilities:
Receive data
Receive data on socket

Disassembly:
mov eax, dword [esp + 0xc]
mov ecx, dword [esp + 8]
mov edx, dword [esp + 4]
push 0
push eax
push ecx
push edx
call dword [sym.imp.WS2_32.dll_recv]
cmp eax, 0xffffffff
jne 0x100223f2
call dword [sym.imp.WS2_32.dll_WSAGetLastError]
sub eax, 0x2733
neg eax
sbb eax, eax
and eax, 0xffffffe7
add eax, 0x51
ret
mov ecx, dword [esp + 0x10]
mov dword [ecx], eax
xor eax, eax
ret

Function at 0x10022530
Capabilities:
Write file on windows

Disassembly:
sub esp, 0xa4
mov eax, dword [0x100760a0]
xor eax, esp
mov dword [esp + 0xa0], eax
mov eax, dword [esp + 0xb8]
push ebx
mov ebx, dword [esp + 0xb0]
push ebp
mov ebp, dword [esp + 0xb8]
push esi
mov esi, dword [esp + 0xb4]
cmp dword [esi + 0x2e8], 0
push edi
je case.default.0x10022590
test eax, eax
je case.default.0x10022590
mov eax, dword [eax + 0x9c]
test eax, eax
je case.default.0x10022590
lea edx, [ebx - 1]
mov ecx, str.Data
cmp edx, 3
ja case.default.0x10022590
jmp dword [edx*4 + 0x100226ac]
mov ecx, str.Header
mov edx, str.from
jmp 0x100225ad
mov ecx, str.Header
mov edx, 0x10064dac
push eax
push edx
push ecx
push str.__s__s__s_
lea eax, [esp + 0x20]
push 0xa0
push eax
call fcn.10026990
lea eax, [esp + 0x28]
add esp, 0x18
lea edx, [eax + 1]
mov edi, edi
mov cl, byte [eax]
inc eax
test cl, cl
jne 0x100225d0
sub eax, edx
mov edi, eax
mov eax, dword [esi + 0x1a8]
test eax, eax
je 0x10022625
mov ecx, dword [esi + 0x134]
push ecx
push edi
lea edx, [esp + 0x18]
push edx
push 0
push esi
call eax
add esp, 0x14
test eax, eax
jne 0x10022690
mov eax, dword [esi + 0x1a8]
test eax, eax
je 0x10022653
mov ecx, dword [esi + 0x134]
mov edx, dword [esp + 0xc4]
push ecx
push edx
push ebp
push ebx
push esi
call eax
add esp, 0x14
jmp 0x10022690
mov eax, dword [esi + 0x130]
push eax
push 1
push 2
push 0x10064d88
call fcn.1004e3ca
mov ecx, dword [esi + 0x130]
push ecx
push 1
lea edx, [esp + 0x28]
push edi
push edx
call fcn.1004e3ca
add esp, 0x20
jmp case.default.0x10022590
test ebx, ebx
js 0x1002268e
cmp ebx, 2
jg 0x1002268e
mov eax, dword [esi + 0x130]
push eax
push 1
lea ecx, [ebx + ebx*2 + 0x10064d88]
push 2
push ecx
call fcn.1004e3ca
mov edx, dword [esi + 0x130]
mov eax, dword [esp + 0xd4]
push edx
push 1
push eax
push ebp
call fcn.1004e3ca
add esp, 0x20
xor eax, eax
mov ecx, dword [esp + 0xb0]
pop edi
pop esi
pop ebp
pop ebx
xor ecx, esp
call fcn.1004ca8f
add esp, 0xa4
ret
Function at 0x10022750
Capabilities:
Write file on windows

Disassembly:
push ecx
mov eax, dword [0x100760a0]
xor eax, esp
mov dword [esp], eax
mov ecx, dword [esp + 0xc]
push ebx
push esi
mov esi, dword [esp + 0x10]
lea eax, [esp + 0x18]
push eax
push ecx
lea ebx, [esi + 0x5d4]
push 0x4000
push ebx
call fcn.10026930
mov eax, dword [esi + 0x138]
add esp, 0x10
test eax, eax
je 0x100227b0
cmp dword [esi + 0x8600], 0
jne 0x100227b0
push ebx
push 0x10064dc8
push 0x100
push eax
call fcn.10026990
add esp, 0x10
mov dword [esi + 0x8600], 1
cmp dword [esi + 0x334], 0
je 0x10022837
mov eax, ebx
lea edx, [eax + 1]
mov edi, edi
mov cl, byte [eax]
inc eax
test cl, cl
jne 0x100227c0
sub eax, edx
push edi
mov edi, eax
cmp edi, 0x3fff
jae 0x100227e4
mov byte [esi + edi + 0x5d4], 0xa
inc edi
mov byte [esi + edi + 0x5d4], cl
mov eax, dword [esi + 0x1a8]
test eax, eax
je 0x1002280e
mov edx, dword [esi + 0x134]
push edx
push edi
push ebx
push 0
push esi
call eax
add esp, 0x14
pop edi
pop esi
pop ebx
mov ecx, dword [esp]
xor ecx, esp
call fcn.1004ca8f
pop ecx
ret
mov eax, dword [esi + 0x130]
push eax
push 1
push 2
push 0x10064d88
call fcn.1004e3ca
mov ecx, dword [esi + 0x130]
push ecx
push 1
push edi
push ebx
call fcn.1004e3ca
add esp, 0x20
pop edi
mov ecx, dword [esp + 8]
pop esi
pop ebx
xor ecx, esp
call fcn.1004ca8f
pop ecx
ret