joyce8/EMBER2024-capa huggingface dataset:
Function at 0x4363b0
Capabilities:
Get graphical window text

Disassembly:
push ebp
mov ebp, esp
push ecx
push esi
push edi
push 0
push 0
push 0xe
push dword [ebp + 0xc]
mov dword [ebp - 4], 0
call dword [sym.imp.USER32.dll_SendMessageW]
xor ecx, ecx
mov edx, 2
lea esi, [eax + 1]
mov eax, esi
mul edx
seto cl
neg ecx
or ecx, eax
push ecx
call fcn.004704a9
add esp, 4
mov edi, eax
push edi
push esi
push 0xd
push dword [ebp + 0xc]
call dword [sym.imp.USER32.dll_SendMessageW]
push edi
call fcn.0046b670
push eax
push edi
call fcn.0046b800
mov esi, dword [ebp + 8]
push edi
mov dword [esi], eax
call fcn.00471723
add esp, 0x10
mov eax, esi
pop edi
pop esi
mov esp, ebp
pop ebp
ret

Function at 0x436ab0
Capabilities:
Compare security identifiers

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x1c
mov eax, dword [0x4bc1dc]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
push esi
push edi
lea eax, [ebp - 0x14]
mov dword [ebp - 0xc], 0
push eax
push 8
mov word [ebp - 8], 0x500
mov dword [ebp - 0x18], 0
mov byte [ebp - 0xd], 0
call dword [sym.imp.KERNEL32.dll_GetCurrentProcess]
push eax
call dword [sym.imp.ADVAPI32.dll_OpenProcessToken]
lea eax, [ebp - 0x18]
push eax
push 0
push 0
push 0
push 0
push 0
push 0
push 0x220
push 0x20
push 2
lea eax, [ebp - 0xc]
push eax
call dword [sym.imp.ADVAPI32.dll_AllocateAndInitializeSid]
mov edi, dword [sym.imp.ADVAPI32.dll_GetTokenInformation]
lea eax, [ebp - 0x1c]
push eax
push 0
push 0
push 2
push dword [ebp - 0x14]
call edi
mov esi, dword [ebp - 0x1c]
push esi
call fcn.00471b44
add esp, 4
mov ebx, eax
lea eax, [ebp - 0x1c]
push eax
push esi
push ebx
push 2
push dword [ebp - 0x14]
call edi
test eax, eax
je 0x436b7b
xor edi, edi
cmp edi, dword [ebx]
jae 0x436b77
lea esi, [ebx + 8]
mov edi, edi
push dword [esi - 4]
push dword [ebp - 0x18]
call dword [sym.imp.ADVAPI32.dll_EqualSid]
test eax, eax
je 0x436b6d
mov eax, dword [esi]
test al, 4
je 0x436b6d
test eax, 0xffffffef
jne 0x436b75
inc edi
add esi, 8
cmp edi, dword [ebx]
jb 0x436b50
cmp edi, dword [ebx]
setne byte [ebp - 0xd]
push ebx
call fcn.00471b0c
add esp, 4
push dword [ebp - 0x18]
call dword [sym.imp.ADVAPI32.dll_FreeSid]
push dword [ebp - 0x14]
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov ecx, dword [ebp - 4]
mov al, byte [ebp - 0xd]
xor ecx, ebp
pop edi
pop esi
pop ebx
call fcn.00470e77
mov esp, ebp
pop ebp
ret

Function at 0x436bc0
Capabilities:
Check os version

Disassembly:
call dword [sym.imp.KERNEL32.dll_GetVersion]
cmp al, 6
jb 0x436bda
call dword [sym.imp.KERNEL32.dll_GetVersion]
shr eax, 8
cmp al, 2
jb 0x436bda
mov al, 1
ret
xor al, al
ret
Function at 0x482a29
Capabilities:
Contain obfuscated stackstrings

Disassembly:
mov byte [ebp - 0x4e], 0xd3
mov byte [ebp - 0x4d], 0xc2
mov byte [ebp - 0x4c], 0xca
mov byte [ebp - 0x4b], 0xee
mov byte [ebp - 0x4a], 0xc9
mov byte [ebp - 0x49], 0xc1
mov byte [ebp - 0x48], 0xc8
mov byte [ebp - 0x47], 0xa7
call fcn.004827aa
pop edi
pushfd
call 0xa88db785
push eax
call fcn.004827ba
mov esi, dword [ebp + 0xc]
push eax
push esi
push dword [ebp + 8]
call fcn.0048276f
add esp, 0x10
lea ecx, [ebp - 0xb0]
push ecx
call eax
mov eax, dword [ebp - 8]
mov ecx, dword [ebp - 0xac]
xor edx, edx
div ecx
xor edx, edx
mov dword [ebp - 0x8c], eax
mov eax, dword [ebp - 8]
div ecx
test edx, edx
je 0x482a98
inc dword [ebp - 0x8c]
imul ecx, dword [ebp - 0x8c]
mov dword [ebp + 0xc], ecx
mov byte [ebp - 0x40], bl
mov byte [ebp - 0x3f], bl
mov byte [ebp - 0x3e], 0xec
mov byte [ebp - 0x3d], bl
mov byte [ebp - 0x3c], 0x45
mov byte [ebp - 0x3b], 0x7a
mov byte [ebp - 0x3a], 0x61
mov byte [ebp - 0x39], 0x67
mov byte [ebp - 0x38], 0x66
mov byte [ebp - 0x37], 0x72
mov byte [ebp - 0x36], 0x7f
mov byte [ebp - 0x35], 0x52
mov byte [ebp - 0x34], 0x7f
mov byte [ebp - 0x33], 0x7f
mov byte [ebp - 0x32], 0x7c
mov byte [ebp - 0x31], 0x70
mov byte [ebp - 0x30], 0x13
call fcn.004827aa
out 0xba, al
rcr byte [ebp + 0x50c0458d], cl
call fcn.004827ba
push eax
push esi
push dword [ebp + 8]
call fcn.0048276f
add esp, 0x10
mov dword [ebp - 0x88], eax
call fcn.004827aa
popfd
cld
invalid
call esp
sub eax, eax
or al, 0x8d
inc ebp
call 0x513088a0
mov byte [ebp - 0x17], bl
mov byte [ebp - 0x16], 0x40
mov byte [ebp - 0x15], bl
mov byte [ebp - 0x14], 0xe9
mov byte [ebp - 0x13], 0xd6
mov byte [ebp - 0x12], 0xcd
mov byte [ebp - 0x11], 0xcb
mov byte [ebp - 0x10], 0xca
mov byte [ebp - 0xf], 0xde
mov byte [ebp - 0xe], 0xd3
mov byte [ebp - 0xd], 0xf9
mov byte [ebp - 0xc], 0xcd
mov byte [ebp - 0xb], 0xda
mov byte [ebp - 0xa], 0xda
mov byte [ebp - 9], 0xbf
call fcn.004827ba
push eax
push esi
push dword [ebp + 8]
call fcn.0048276f
mov dword [ebp - 8], eax
lea eax, [ebp - 0x6c]
push eax
mov byte [ebp - 0x6c], bl
mov byte [ebp - 0x6b], bl
mov byte [ebp - 0x6a], 0xbe
mov byte [ebp - 0x69], bl
mov byte [ebp - 0x68], 0x17
mov byte [ebp - 0x67], 0x28
mov byte [ebp - 0x66], 0x33
mov byte [ebp - 0x65], 0x35
mov byte [ebp - 0x64], 0x34
mov byte [ebp - 0x63], 0x20
mov byte [ebp - 0x62], 0x2d
mov byte [ebp - 0x61], 0x11
mov byte [ebp - 0x60], 0x33
mov byte [ebp - 0x5f], 0x2e
mov byte [ebp - 0x5e], 0x35
xor eax, 0x24a345c6

Function at 0x482ba0
Capabilities:
Contain obfuscated stackstrings

Disassembly:
xor eax, 0x24a345c6
mov byte [ebp - 0x5c], 0x22
mov byte [ebp - 0x5b], 0x35
mov byte [ebp - 0x5a], 0x41
call fcn.004827ba
push eax
push esi
push dword [ebp + 8]
call fcn.0048276f
dec dword [ecx - 0xbb7b]
dec dword [ebp + 0x5d88d445]
aam 0x50
Function at 0x482bbf
Capabilities:
Contain obfuscated stackstrings

Disassembly:
dec dword [ecx - 0xbb7b]
dec dword [ebp + 0x5d88d445]
aam 0x50
mov byte [ebp - 0x2b], bl
mov byte [ebp - 0x2a], 0xd4
mov byte [ebp - 0x29], bl
mov byte [ebp - 0x28], 0x67
mov byte [ebp - 0x27], 0x44
mov byte [ebp - 0x26], 0x4a
mov byte [ebp - 0x25], 0x4f
mov byte [ebp - 0x24], 0x67
mov byte [ebp - 0x23], 0x42
mov byte [ebp - 0x22], 0x49
mov byte [ebp - 0x21], 0x59
mov byte [ebp - 0x20], 0x4a
mov byte [ebp - 0x1f], 0x59
mov byte [ebp - 0x1e], 0x52
mov byte [ebp - 0x1d], 0x6a
mov byte [ebp - 0x1c], 0x2b
call fcn.004827ba
push eax
push esi
push dword [ebp + 8]
call fcn.0048276f
add esp, 0x30
mov dword [ebp - 0xb8], eax
call fcn.004827aa
mov ecx, 0x884497dc
popfd
jl 0x482c2f
invalid
invalid
Function at 0x433000
Capabilities:
Encode data using xor

Disassembly:
pushal
nop
nop
nop
nop
nop
call 0x43300c
nop
nop
nop
nop
pop eax
nop
nop
add eax, 0x40a063
sub eax, 0x40a009
nop
nop
nop
nop
nop
mov ebx, dword [eax]
mov ecx, dword [eax + 4]
nop
nop
nop
nop
mov edx, dword [eax + 8]
nop
nop
nop
nop
nop
nop
xor dword [ebx], edx
nop
add ebx, 4
nop
nop
nop
nop
nop
cmp ebx, ecx
nop
nop
nop
nop
nop
jl 0x433030
add eax, 0xc
nop
nop
nop
nop
nop
nop
cmp dword [eax], 0
jne 0x43301e
nop
nop
nop
nop
nop
nop
nop
popal
nop
nop
jmp 0x431219
Function at 0x1000bee8
Capabilities:
Resolve function by parsing pe exports

Disassembly:
push ebp
mov ebp, esp
push ebx
push edi
push esi
sub esp, 0x48
mov eax, dword [ebp + 8]
mov dword [0x10023b00], 0x751
mov dword [ebp - 0x10], eax
call fcn.1000cdb9
xor ecx, ecx
mov edx, eax
mov esi, dword [eax + 0x3c]
mov edi, edx
add edi, esi
mov esi, dword [eax + esi]
cmp esi, 0x4550
mov dword [ebp - 0x14], eax
mov dword [ebp - 0x18], ecx
mov dword [ebp - 0x1c], edx
mov dword [ebp - 0x20], edi
je 0x1000bf2e
mov eax, dword [ebp - 0x18]
mov dword [ebp - 0x20], eax
mov eax, dword [ebp - 0x20]
mov eax, dword [eax + 0x78]
mov ecx, dword [ebp - 0x1c]
mov edx, dword [ebp - 0x14]
add ecx, dword [edx + eax + 0x20]
mov dword [0x10023b00], 0x1e76
mov esi, dword [edx + eax + 0x24]
mov dword [0x10023b04], 0xf76
mov edi, dword [edx + eax + 0x18]
cmp edi, 0
mov ebx, dword [ebp - 0x18]
mov dword [ebp - 0x24], eax
mov dword [ebp - 0x28], ecx
mov dword [ebp - 0x2c], esi
mov dword [ebp - 0x30], edi
mov dword [ebp - 0x34], ebx
je 0x1000c053
jmp 0x1000bfef
mov eax, dword [ebp - 0x38]
mov ecx, dword [ebp - 0x3c]
xor edx, edx
mov esi, dword [ebp - 0x28]
mov edi, dword [esi + eax*4]
mov dword [0x10023b00], 0x751
mov dword [ebp - 0x40], eax
mov dword [ebp - 0x44], ecx
mov dword [ebp - 0x48], edi
mov dword [ebp - 0x4c], edx
mov eax, dword [ebp - 0x4c]
mov ecx, eax
mov edx, dword [ebp - 0x48]
add ecx, edx
mov esi, dword [ebp - 0x1c]
mov bl, byte [esi + ecx]
mov ecx, dword [ebp - 0x10]
mov bh, byte [ecx + eax]
cmp bl, bh
sete cl
cmp bl, 0
mov dword [ebp - 0x50], eax
mov byte [ebp - 0x51], bh
mov byte [ebp - 0x52], cl
je 0x1000c031
jmp 0x1000c004
xor eax, eax
mov ecx, dword [ebp - 0x44]
add ecx, 2
mov edx, dword [ebp - 0x40]
add edx, 1
mov esi, dword [ebp - 0x30]
cmp edx, esi
mov dword [ebp - 0x38], edx
mov dword [ebp - 0x3c], ecx
mov dword [ebp - 0x34], eax
jb 0x1000bf7a
jmp 0x1000c053
xor eax, eax
mov ecx, dword [ebp - 0x1c]
mov edx, dword [ebp - 0x2c]
add ecx, edx
mov dword [ebp - 0x3c], ecx
mov dword [ebp - 0x38], eax
jmp 0x1000bf7a
mov al, byte [ebp - 0x51]
cmp al, 0
setne cl
mov edx, dword [ebp - 0x50]
add edx, 1
mov ah, byte [ebp - 0x52]
and ah, cl
cmp edx, 0x20
setb cl
and ah, cl
test ah, 1
mov dword [ebp - 0x4c], edx
jne 0x1000bf9e
mov al, byte [ebp - 0x52]
test al, 1
jne 0x1000c03a
jmp 0x1000bfc9
mov eax, dword [ebp - 0x44]
movzx ecx, word [eax]
mov edx, dword [ebp - 0x1c]
mov esi, dword [ebp - 0x24]
add edx, dword [edx + esi + 0x1c]
mov edi, dword [ebp - 0x1c]
add edi, dword [edx + ecx*4]
mov dword [ebp - 0x34], edi
mov eax, dword [ebp - 0x34]
add esp, 0x48
pop esi
pop edi
pop ebx
pop ebp
ret
Function at 0x1000c12a
Capabilities:
Encrypt data using rc4 ksa

Disassembly:
push ebp
mov ebp, esp
push ebx
push edi
push esi
sub esp, 0x1c
mov eax, dword [ebp + 0x10]
mov ecx, dword [ebp + 0xc]
mov edx, dword [ebp + 8]
xor esi, esi
mov dword [0x10023b0c], 0
mov byte [0x10023b10], 0
mov edi, dword [0x10023b00]
add edi, 0xffffe21d
mov dword [0x10023b04], edi
mov dword [0x10023b00], 0x651
mov dword [0x10023b08], 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 dword [0x10023b00], 0x49a
mov ecx, eax
mov dl, cl
mov ecx, dword [ebp - 0x18]
mov byte [ecx + eax], dl
mov eax, dword [0x10023b04]
add eax, 0xfffff38b
mov dword [0x10023b04], eax
mov eax, dword [0x10023b08]
add eax, 1
mov dword [0x10023b08], eax
cmp eax, 0x100
mov dword [ebp - 0x1c], eax
jl 0x1000c181
jmp 0x1000c275
mov eax, dword [ebp - 0x20]
mov ecx, 0x100
mov dword [ebp - 0x24], eax
xor edx, edx
mov esi, dword [ebp - 0x10]
div esi
mov dword [0x10023b14], 0
mov edi, dword [0x10023b0c]
mov ebx, dword [ebp - 0x18]
mov esi, dword [ebp - 0x24]
movzx esi, byte [ebx + esi]
add esi, edi
mov edi, dword [ebp - 0x14]
movzx edx, byte [edi + edx]
add esi, edx
mov dword [0x10023b14], esi
mov dword [0x10023b00], 0x6c4
mov eax, esi
cdq
idiv ecx
mov dword [0x10023b0c], edx
mov ecx, dword [ebp - 0x24]
mov cl, byte [ebx + ecx]
mov byte [0x10023b10], cl
mov cl, byte [ebx + edx]
mov edx, dword [ebp - 0x24]
mov byte [ebx + edx], cl
mov cl, byte [0x10023b10]
mov esi, dword [0x10023b0c]
mov byte [ebx + esi], cl
mov esi, dword [0x10023b04]
mov ecx, esi
add ecx, 0xffffee18
mov dword [0x10023b00], ecx
mov ecx, dword [0x10023b08]
add ecx, 1
mov dword [0x10023b08], ecx
cmp ecx, 0x100
mov dword [ebp - 0x28], esi
mov dword [ebp - 0x20], ecx
jl 0x1000c1c5
jmp 0x1000c293
xor eax, eax
mov dword [0x10023b00], 0x1808
mov dword [0x10023b08], 0
mov dword [ebp - 0x20], eax
jmp 0x1000c1c5
mov eax, dword [ebp - 0x28]
add eax, 0xe2e
mov dword [0x10023b04], eax
add esp, 0x1c
pop esi
pop edi
pop ebx
pop ebp
ret
Function at 0x1000c3a4
Capabilities:
Get number of processors

Disassembly:
push ebp
mov ebp, esp
push edi
push esi
sub esp, 0x28
mov dword [ebp - 0xc], 0
mov dword [0x10023b04], 0x152b
mov eax, dword fs:[0x30]
mov dword [ebp - 0xc], eax
xor ecx, ecx
mov edx, dword [ebp - 0xc]
mov edx, dword [edx + 0x10]
mov edx, dword [edx + 0x3c]
mov esi, dword [0x10023b00]
mov edi, esi
add edi, 0xffffd98e
mov dword [ebp - 0x10], eax
mov dword [ebp - 0x14], edi
mov dword [ebp - 0x18], edx
mov dword [ebp - 0x1c], esi
mov dword [ebp - 0x20], ecx
jmp 0x1000c430
mov eax, dword [ebp - 0x24]
mov ecx, dword [ebp - 0x14]
mov dword [0x10023b04], ecx
mov edx, dword [ebp - 0x18]
cmp word [edx + eax*2 - 0x1a], 0x6c
mov dword [ebp - 0x28], eax
je 0x1000c45f
jmp 0x1000c4c5
mov eax, 1
mov ecx, dword [ebp - 0x18]
mov edx, dword [ebp - 0x28]
cmp word [ecx + edx*2 - 0xe], 0x6c
mov dword [ebp - 0x2c], eax
je 0x1000c4cc
jmp 0x1000c4c5
mov eax, dword [ebp - 0x20]
mov ecx, dword [ebp - 0x18]
cmp word [ecx + eax*2], 0
mov edx, eax
mov dword [ebp - 0x30], eax
mov dword [ebp - 0x24], edx
je 0x1000c3f0
mov eax, dword [ebp - 0x30]
add eax, 1
cmp eax, 0x104
mov ecx, eax
mov dword [ebp - 0x24], ecx
mov dword [ebp - 0x20], eax
jl 0x1000c430
jmp 0x1000c3f0
mov eax, dword [ebp - 0x18]
mov ecx, dword [ebp - 0x28]
cmp word [eax + ecx*2 - 0x18], 0x6f
jne 0x1000c4c5
mov eax, dword [ebp - 0x18]
mov ecx, dword [ebp - 0x28]
cmp word [eax + ecx*2 - 0x16], 0x61
jne 0x1000c4c5
mov eax, dword [ebp - 0x1c]
add eax, 0xffffec07
mov dword [0x10023b04], eax
mov eax, dword [ebp - 0x18]
mov ecx, dword [ebp - 0x28]
cmp word [eax + ecx*2 - 0x14], 0x64
jne 0x1000c4c5
mov dword [0x10023b00], 0x228c
mov eax, dword [ebp - 0x18]
mov ecx, dword [ebp - 0x28]
cmp word [eax + ecx*2 - 0x12], 0x64
jne 0x1000c4c5
mov eax, dword [ebp - 0x18]
mov ecx, dword [ebp - 0x28]
cmp word [eax + ecx*2 - 0x10], 0x6c
je 0x1000c410
xor eax, eax
mov dword [ebp - 0x2c], eax
jmp 0x1000c4cc
mov eax, dword [ebp - 0x2c]
add esp, 0x28
pop esi
pop edi
pop ebp
ret
Function at 0x1000ca3f
Capabilities:
Parse pe header

Disassembly:
push ebp
mov ebp, esp
push esi
sub esp, 0x50
mov eax, dword [ebp + 0xc]
mov ecx, dword [ebp + 8]
xor edx, edx
mov dword [0x10023b00], 0x10ad
mov dword [ebp - 0x28], eax
mov dword [ebp - 0x2c], ecx
mov dword [ebp - 0x30], edx
mov eax, dword [ebp - 0x30]
mov cl, byte [eax + 0x1000f1fe]
mov dl, byte [eax + 0x1000f1cf]
sub dl, cl
mov byte [ebp + eax - 0x24], dl
add eax, 1
cmp eax, 0xe
mov dword [ebp - 0x30], eax
jne 0x1000ca61
lea eax, [ebp - 0x24]
mov dword [0x10023b00], 0xffffff48
mov dword [0x10023b04], 0xfffffefb
mov dword [ebp - 0x34], eax
call fcn.1000c62c
mov dword [esp], eax
mov eax, dword [ebp - 0x34]
mov dword [esp + 4], eax
call fcn.1000c7f2
cmp eax, 0
mov dword [ebp - 0x38], eax
je 0x1000cb73
mov eax, dword [ebp - 0x38]
mov ecx, dword [0x10023b04]
add ecx, 0xfffffeb2
mov dword [0x10023b04], ecx
mov ecx, esp
mov dword [ecx + 0xc], 0x40
mov dword [ecx + 8], 0x1000
mov dword [ecx + 4], 0x6000
mov dword [ecx], 0
call eax
sub esp, 0x10
mov dword [esp], eax
mov ecx, dword [ebp - 0x28]
mov dword [esp + 4], ecx
mov dword [ebp - 0x3c], eax
call fcn.1000c6e2
xor eax, eax
mov dword [0x10023b04], 0xba
mov ecx, dword [ebp - 0x3c]
mov word [ecx], 0x5a4d
mov dword [ecx + 0x3c], 0xc0
mov dword [ecx + 0xc0], 0x4550
add ecx, 0xffc00000
mov edx, dword [ebp - 0x2c]
mov dword [edx + 0x20], ecx
mov ecx, dword [ebp - 0x3c]
mov dword [edx + 0x40], ecx
mov dword [0x10023b00], 0x121
add ecx, 0x1a8a
mov esi, dword [ebp - 0x3c]
cmp esi, 0
mov dword [ebp - 0x40], ecx
mov dword [ebp - 0x44], eax
je 0x1000cb6a
mov eax, dword [ebp - 0x40]
mov dword [ebp - 0x44], eax
mov eax, dword [ebp - 0x44]
add esp, 0x50
pop esi
pop ebp
ret
xor eax, eax
add esp, 0x50
pop esi
pop ebp
ret

Function at 0x1000cd33
Capabilities:
Parse pe header

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x10
mov eax, 0x2171
lea ecx, [fcn.1000cd33]
mov edx, dword [0x10023b04]
add edx, 0x185d
mov dword [0x10023b04], edx
mov dword [ebp - 4], eax
mov dword [ebp - 8], ecx
mov eax, dword [ebp - 8]
mov ecx, dword [ebp - 4]
cmp word [eax], 0x5a4d
mov dword [ebp - 0xc], eax
mov dword [ebp - 0x10], ecx
jne 0x1000cd8e
mov eax, dword [ebp - 0xc]
mov ecx, dword [eax + 0x3c]
cmp dword [eax + ecx], 0x4550
jne 0x1000cd8e
mov eax, dword [ebp - 0x10]
mov dword [0x10023b00], eax
mov eax, dword [ebp - 0xc]
add esp, 0x10
pop ebp
ret
mov eax, dword [ebp - 0xc]
add eax, 0xfffff000
and eax, 0xfffff000
mov ecx, dword [ebp - 0x10]
add ecx, 0x1560
mov dword [ebp - 4], ecx
mov dword [ebp - 8], eax
jmp 0x1000cd5c
Function at 0x1000cf11
Capabilities:
Encrypt data using rc4 prga

Disassembly:
push ebp
mov ebp, esp
push ebx
push edi
push esi
sub esp, 0x2c
mov eax, dword [ebp + 0x14]
mov ecx, dword [ebp + 0x10]
mov edx, dword [ebp + 0xc]
mov esi, dword [ebp + 8]
xor edi, edi
mov dword [0x10023b08], 0
mov dword [0x10023b0c], 0
mov dword [0x10023b18], 0
mov dword [0x10023b00], 0x12c5
mov dword [0x10023b04], 0x186
cmp eax, 0
mov ebx, edi
mov dword [ebp - 0x10], eax
mov eax, edi
mov dword [ebp - 0x14], eax
mov dword [ebp - 0x18], ecx
mov dword [ebp - 0x1c], edx
mov dword [ebp - 0x20], esi
mov dword [ebp - 0x24], ebx
mov dword [ebp - 0x28], edi
je 0x1000d075
jmp 0x1000cf97
mov eax, dword [0x10023b0c]
mov ecx, dword [0x10023b08]
mov edx, dword [ebp - 0x2c]
mov dword [ebp - 0x24], eax
mov dword [ebp - 0x14], ecx
mov dword [ebp - 0x28], edx
mov eax, dword [ebp - 0x28]
mov ecx, dword [ebp - 0x14]
mov edx, dword [ebp - 0x24]
mov esi, 0x100
mov dword [0x10023b00], 0x8eb
add ecx, 1
mov dword [ebp - 0x30], eax
mov eax, ecx
mov dword [ebp - 0x34], edx
cdq
idiv esi
mov dword [0x10023b08], edx
mov ecx, dword [ebp - 0x20]
movzx edi, byte [ecx + edx]
mov ebx, dword [ebp - 0x34]
add edi, ebx
mov eax, edi
mov dword [ebp - 0x38], edx
cdq
idiv esi
mov dword [0x10023b0c], edx
mov esi, dword [ebp - 0x38]
mov cl, byte [ecx + esi]
mov byte [0x10023b10], cl
mov edi, dword [ebp - 0x20]
mov cl, byte [edi + edx]
mov byte [edi + esi], cl
mov dword [0x10023b00], 0x1f72
mov cl, byte [0x10023b10]
mov edx, dword [0x10023b0c]
mov byte [edi + edx], cl
mov edx, dword [0x10023b08]
movzx edx, byte [edi + edx]
mov ebx, dword [0x10023b0c]
movzx ebx, byte [edi + ebx]
add ebx, edx
and ebx, 0xff
mov dword [0x10023b18], ebx
mov dword [0x10023b04], 0xfd0
mov edx, dword [ebp - 0x18]
mov ecx, dword [ebp - 0x30]
mov cl, byte [edx + ecx]
xor cl, byte [edi + ebx]
mov ebx, dword [ebp - 0x1c]
mov edx, dword [ebp - 0x30]
mov byte [ebx + edx], cl
mov ecx, dword [0x10023b04]
add ecx, 0xfffff4ea
mov dword [0x10023b00], ecx
add edx, 1
mov ecx, dword [ebp - 0x10]
cmp edx, ecx
mov dword [ebp - 0x2c], edx
jne 0x1000cf80
mov dword [0x10023b04], 0x234c
add esp, 0x2c
pop esi
pop edi
pop ebx
pop ebp
ret
Function at 0x1001307
Capabilities:
Read file on windows

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x204
mov eax, dword [0x1004078]
push ebx
push esi
mov esi, dword [sym.imp.msvcrt.dll__read]
push edi
mov dword [ebp - 4], eax
xor ebx, ebx
mov edi, 0x200
jmp 0x100132e
add ebx, eax
lea eax, [ebp - 0x204]
push edi
push eax
push dword [ebp + 8]
call esi
add esp, 0xc
test eax, eax
jne 0x100132c
push eax
push eax
push dword [ebp + 8]
call dword [sym.imp.msvcrt.dll__lseek]
mov ecx, dword [ebp - 4]
add esp, 0xc
pop edi
pop esi
mov eax, ebx
pop ebx
call fcn.01002a47
leave
ret 4

Function at 0x10013fd
Capabilities:
Terminate process

Disassembly:
cmp dword [0x10040a8], 0
jne 0x1001414
push 0x2714
push 2
call fcn.01002de4
pop ecx
pop ecx
push 1
call dword [sym.imp.msvcrt.dll_exit]
int3

Function at 0x10014a6
Capabilities:
Receive data
Receive data on socket
Terminate process

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x208
mov eax, dword [0x1004078]
push ebx
push esi
push edi
mov edi, dword [sym.imp.WS2_32.dll_recv]
push 0
xor ebx, ebx
mov dword [ebp - 4], eax
inc ebx
push ebx
lea eax, [ebp - 0x205]
push eax
push dword [0x1004370]
lea esi, [ebp - 0x204]
call edi
cmp eax, ebx
jne 0x1001558
mov al, byte [ebp - 0x205]
test al, al
je 0x1001564
jle 0x10014f1
cmp al, 2
jle 0x10014fd
mov byte [ebp - 0x204], al
lea esi, [ebp - 0x203]
push 0
push ebx
lea eax, [ebp - 0x206]
push eax
push dword [0x1004370]
call edi
cmp eax, ebx
jne 0x1001558
mov al, byte [ebp - 0x206]
mov byte [esi], al
inc esi
lea ecx, [ebp - 4]
cmp esi, ecx
jae 0x1001527
cmp al, 0xa
jne 0x10014fd
cmp dword [0x10040a8], 0
jne 0x1001545
lea eax, [ebp - 0x204]
sub esi, eax
push esi
push eax
push 2
call dword [sym.imp.msvcrt.dll__write]
add esp, 0xc
inc dword [0x10040a0]
cmp byte [ebp - 0x205], bl
jne 0x100155d
or eax, 0xffffffff
jmp 0x1001566
jmp fcn.010013fd
push ebx
call dword [sym.imp.msvcrt.dll_exit]
xor eax, eax
mov ecx, dword [ebp - 4]
pop edi
pop esi
pop ebx
call fcn.01002a47
leave
ret
Function at 0x1001b7b
Capabilities:
Execute command

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
cmp dword [0x10040bc], 0
je 0x1001b9b
push dword [ebp + 8]
push 0x271f
push 1
call fcn.01002de4
add esp, 0xc
push dword [ebp + 8]
call dword [sym.imp.msvcrt.dll_system]
pop ecx
pop ebp
ret 4

Function at 0x1001bae
Capabilities:
Check if file exists
Get file attributes
Terminate process

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.dll_GetFileAttributesA]
cmp eax, 0xffffffff
je 0x1001bc5
test al, 0x10
jne 0x1001bfc
mov eax, dword [sym.imp.msvcrt.dll__sys_errlist]
push dword [eax + 0x50]
push dword [ebp + 8]
push 0x100116c
push 0x200
push 0x1004380
call dword [sym.imp.msvcrt.dll__snprintf]
add esp, 0x14
mov byte [0x100457f], 0
call fcn.0100138b
push 1
call dword [sym.imp.msvcrt.dll_exit]
pop ebp
ret 4

Function at 0x1001c05
Capabilities:
Enumerate files on windows

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x558
mov eax, dword [0x1004078]
push ebx
mov ebx, dword [ebp + 0xc]
push esi
push edi
mov edi, dword [ebp + 8]
mov esi, 0x203
push esi
mov dword [ebp - 4], eax
lea eax, [ebp - 0x208]
push edi
push eax
mov dword [ebp - 0x550], edi
call dword [sym.imp.msvcrt.dll_strncpy]
mov eax, edi
add esp, 0xc
lea edi, [eax + 1]
mov cl, byte [eax]
inc eax
test cl, cl
jne 0x1001c43
sub eax, edi
sub esi, eax
push esi
lea eax, [ebp - 0x208]
push ebx
push eax
call dword [sym.imp.msvcrt.dll_strncat]
add esp, 0xc
cmp dword [0x10040bc], 0
mov byte [ebp - 5], 0
je 0x1001c83
lea eax, [ebp - 0x208]
push eax
push 0x2720
push 1
call fcn.01002de4
add esp, 0xc
lea eax, [ebp - 0x54c]
push eax
lea eax, [ebp - 0x208]
push eax
call dword [sym.imp.KERNEL32.dll_FindFirstFileA]
cmp eax, 0xffffffff
mov dword [ebp - 0x554], eax
je 0x1001d9c
mov ebx, 0x204
cmp dword [0x10040bc], 0
je 0x1001cca
lea eax, [ebp - 0x520]
push eax
push 0x2721
push 1
call fcn.01002de4
add esp, 0xc
push 2
mov edi, 0x1001188
lea esi, [ebp - 0x520]
pop ecx
xor eax, eax
repe cmpsb byte [esi], byte es:[edi]
je 0x1001d80
push 3
mov edi, 0x1001184
lea esi, [ebp - 0x520]
pop ecx
xor eax, eax
repe cmpsb byte [esi], byte es:[edi]
je 0x1001d80
mov eax, dword [ebp - 0x550]
lea edx, [eax + 1]
mov cl, byte [eax]
inc eax
test cl, cl
jne 0x1001d03
sub eax, edx
mov esi, eax
lea eax, [ebp - 0x520]
lea edi, [eax + 1]
mov cl, byte [eax]
inc eax
test cl, cl
jne 0x1001d17
sub eax, edi
lea eax, [eax + esi + 1]
cmp eax, ebx
lea eax, [ebp - 0x520]
push eax
push dword [ebp - 0x550]
jbe 0x1001d49
push 0x2734
call fcn.010012a9
add esp, 0xc
call fcn.0100138b
jmp 0x1001d80
push 0x100117c
lea eax, [ebp - 0x40c]
push ebx
push eax
call dword [sym.imp.msvcrt.dll__snprintf]
lea eax, [ebp - 0x40c]
add esp, 0x14
mov dword [ebp - 0x558], eax
lea eax, [ebp - 0x558]
push eax
push 1
mov byte [ebp - 0x209], 0
call fcn.01001721
lea eax, [ebp - 0x54c]
push eax
push dword [ebp - 0x554]
call dword [sym.imp.KERNEL32.dll_FindNextFileA]
cmp eax, 1
je 0x1001cab
push dword [ebp - 0x554]
call dword [sym.imp.KERNEL32.dll_FindClose]
mov ecx, dword [ebp - 4]
pop edi
pop esi
pop ebx
call fcn.01002a47
leave
ret 8