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

Disassembly:
call fcn.01baeafb
mov esi, dword [edi]
pop eax
mov eax, 0x921f651b
add edi, 4
sub eax, eax
lea ebp, [ebp + eax - 1]
neg eax
sar ax, 0x4c
neg eax
or al, byte [eax + ebp]
push 0x7520e538
xor al, bl
jmp 0x27d67bf
dec ecx
sub edx, 4
jmp 0x1bcd457
xor al, 0x20
inc al
not al
jmp 0x1ed7141

Function at 0x275d37b
Capabilities:
Parse pe header
Resolve function by parsing pe exports

Disassembly:
push ebp
rcr dh, cl
mov ebp, esp
xor dx, sp
mov edx, dword [ebp + 8]
test esp, 0x21831b3d
cmc
test dx, bp
sub esp, 0x114
push esi
test edx, edx
jmp 0x1f26171

Function at 0x276e062
Capabilities:
Encode data using xor

Disassembly:
jns 0x1bd1ec0
push 0x523ea786
call fcn.01f17557
xor edx, edx
test eax, eax
jmp 0x1be41f1
add edi, 4
div ecx
call fcn.02712770
add ebp, 2
push 0xd08ceb96
add dl, al
not dword [esp]
jmp 0x2782141
jmp 0x27fcac1
call fcn.01bc2abf
inc ecx
and eax, ebp
not eax
jmp 0x276e05a
mov eax, dword [ebp]
mov ecx, 0xb93cfd11
lea ecx, [ecx + ecx*8 - 0x7f4dae9]
mov cx, word [ecx + ebp - 0x7b300aac]
push 0xbab6d91c
add ebp, 2
shr cx, 1
rcr eax, cl
call fcn.02746496
jmp 0x1f09e52
add ebp, 2
shr al, cl
call fcn.0273ddb4
mov di, cx
inc ecx
mov dword [edx], eax
call fcn.0273caa0
mov dword [esp], edi
movzx edi, byte [ecx]
xor edi, edx
and edi, 0xff
push 0x4e8fb2a7
mov edi, dword [edi*4 + 0x1ed8c0c]
neg byte [esp + 3]
shr edx, 8
xor edx, edi
sal dword [esp], 0x68
inc ecx
xor edx, 0xd08c7084
dec eax
lea esp, [esp + 4]
jne 0x276e065
mov edi, 0x5ca7911d
lea edi, [edi - 0x49f7bb67]
pop edi
call fcn.0281a257
jmp 0x280146f
mov word [ebp], dx
lea esp, [esp + 4]
jmp fcn.01ed5a37
mov eax, 0xd38b7db4
push eax
movzx ax, byte [ebp]
mov cl, byte [ebp + 2]
jmp 0x2756078
je 0x276e0a7
call 0x276e062
jmp 0x2729db8
mov edx, dword [edi]
mov eax, 0x138d8194
jmp 0x281deb2
sar eax, 0x7a
mov eax, dword [edi + eax*2 - 4]
js 0x27a1d99
mov ecx, dword [edi + 8]
jns 0x1bb0af2
mov byte [0xffe4523e], al
inc ebp
push esi
ljmp 0x1591

Function at 0x2803427
Capabilities:
Encrypt data using speck

Disassembly:
bswap edi
lea ecx, [esp + ecx + 0x10]
or edx, 0x1928bda2
add byte [esp + edx - 0x1928bd9b], 0x9b
mov edx, dword [ecx + edx - 0x1928bda2]
jae 0x27a8497
xor byte [eax], cl
mov ecx, 0x8d44b4d5
or eax, 0xb79bfa90
out dx, al
fsubrp st(3)
arpl dx, di
push eax
test dword [ecx], ebp
mov eax, 0xe439b988
jge 0x2803414
inc esi
cld
cwde
xchg ecx, eax
cld
ret

Function at 0x281b130
Capabilities:
Encrypt data using speck

Disassembly:
not cl
sub cl, 9
neg byte [esp + 0xa]
neg dword [esp + 8]
xor cl, 0x86
neg cl
jmp 0x1bab624

Function at 0x2822b8a
Capabilities:
Encode data using xor

Disassembly:
not cx
mov word [ebp], cx
lea esp, [esp + 4]
jmp fcn.0277ba9d
jo fcn.01f251fc
adc ebp, 2
mov dword [esp], 0x2582660f
or cx, dx
jmp 0x281ef88
Function at 0x283514b
Capabilities:
Encrypt data using speck

Disassembly:
push ebp
mov ebp, edx
movsb byte es:[edi], byte [esi]
sub eax, 0xfe6d5be8
invalid
call 0x1edfdca
cld
push ebx
cdq
and dword [edx - 0x43fcbfdd], ebp
jne 0x1ef9065
mov edi, 0xb23bb43c
aad 0x96
add dword [eax + 0x25eb31b], edi
rol dword [ecx + 0x23], cl
xchg ecx, eax
div byte [edx - 0x7f]
lds ecx, [esi]
or edi, dword [edx + edx*8 + 0x6e725c37]
wait
invalid
adc edi, 1
xor dl, bl
jmp 0x2823a66
add dl, 0xa2
ror dl, 1
xor dl, 0x93
push 0x1819ffa2
call fcn.01bbd41a
push 0x7119e185
mov esi, dword [esi]
jmp 0x1ef906a
movzx edx, byte [edx + edi - 0x5d033db0]
jle 0x26f88e0
Function at 0x41d78f
Capabilities:
Terminate process

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x10
mov dword [ebp - 4], 0
mov dword [ebp - 8], 0
push 0
lea eax, [ebp - 8]
push eax
push 1
lea eax, [ebp + 8]
push eax
call fcn.00404194
mov dword [ebp - 0xc], eax
mov ebx, dword [ebp - 8]
test ebx, ebx
je 0x41d7ca
push ebx
call fcn.0042791f
add esp, 4
cmp dword [ebp - 0xc], 0
je 0x41d873
cmp dword [ebp - 4], 5
jle 0x41d7e3
jmp 0x41d873
mov dword [ebp - 8], esp
push dword [ebp + 8]
push 0
push 1
xor eax, eax
call dword [sym.imp.KERNEL32.dll_OpenProcess]
nop
nop
cmp dword [ebp - 8], esp
je 0x41d819
push 0x8a
push 0x401135b
push 6
call fcn.0042792b
add esp, 0xc
mov dword [ebp - 0xc], eax
mov dword [ebp - 0x10], esp
push 0
push dword [ebp - 0xc]
xor eax, eax
call dword [sym.imp.KERNEL32.dll_TerminateProcess]
nop
nop
cmp dword [ebp - 0x10], esp
je 0x41d84d
push 0x8a
push 0x401135b
push 6
call fcn.0042792b
add esp, 0xc
inc dword [ebp - 4]
push 0x80000301
push 0
push 0xc8
push 1
mov ebx, 0x67c
call fcn.00428d50
add esp, 0x10
jmp 0x41d79f
mov dword [ebp - 8], 0
push 0
lea eax, [ebp - 8]
push eax
push 1
lea eax, [ebp + 8]
push eax
call fcn.00404194
mov dword [ebp - 0xc], eax
mov ebx, dword [ebp - 8]
test ebx, ebx
je 0x41d89e
push ebx
call fcn.0042791f
add esp, 4
cmp dword [ebp - 0xc], 0
je 0x41d92b
push 0x80000301
push 0
push dword [ebp + 8]
push 1
mov ebx, 0x168
call fcn.00429220
add esp, 0x10
mov dword [ebp - 8], eax
push 0x43310a
push dword [ebp - 8]
push str.taskkill__pid
mov ecx, 3
call fcn.00401380
add esp, 0xc
mov dword [ebp - 0xc], eax
mov ebx, dword [ebp - 8]
test ebx, ebx
je 0x41d8f4
push ebx
call fcn.0042791f
add esp, 4
lea eax, [ebp - 0xc]
push eax
call fcn.0041d96d
mov ebx, dword [ebp - 0xc]
test ebx, ebx
je 0x41d90d
push ebx
call fcn.0042791f
add esp, 4
push 0x80000301
push 0
push 0x1f4
push 1
mov ebx, 0x67c
call fcn.00428d50
add esp, 0x10
mov dword [ebp - 8], 0
push 0
lea eax, [ebp - 8]
push eax
push 1
lea eax, [ebp + 8]
push eax
call fcn.00404194
mov dword [ebp - 0xc], eax
mov ebx, dword [ebp - 8]
test ebx, ebx
je 0x41d956
push ebx
call fcn.0042791f
add esp, 4
cmp dword [ebp - 0xc], 0
mov eax, 0
sete al
jmp 0x41d967
mov esp, ebp
pop ebp
ret 4
Function at 0x420e25
Capabilities:
Get system information on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 8
push 0x28
call fcn.00427919
add esp, 4
mov dword [ebp - 4], eax
mov ebx, eax
mov edi, eax
xor eax, eax
mov ecx, 0xa
rep stosd dword es:[edi], eax
mov dword [ebp - 8], esp
push dword [ebp - 4]
xor eax, eax
call dword [sym.imp.KERNEL32.dll_GetSystemInfo]
nop
nop
cmp dword [ebp - 8], esp
je 0x420e77
push 0
push 0x4014e1e
push 6
call fcn.0042792b
add esp, 0xc
mov ebx, dword [ebp - 4]
add ebx, 0x14
mov dword [ebp - 8], ebx
mov ebx, dword [ebp - 8]
mov eax, dword [ebx]
jmp 0x420e8a
push eax
mov ebx, dword [ebp - 4]
push ebx
call fcn.0042791f
add esp, 4
pop eax
mov esp, ebp
pop ebp
ret
Function at 0x428860
Capabilities:
Set registry value

Disassembly:
mov eax, dword [esp + 0x28]
sub esp, 0x18
push ebx
push ebp
xor ebx, ebx
xor ebp, ebp
cmp eax, 0x80000301
ja 0x4288e1
je 0x4288d2
cmp eax, 0x80000101
ja 0x4288cb
je 0x4288d2
cmp eax, reloc.WS2_32.dll_connect
je 0x4288ac
cmp eax, reloc.WS2_32.dll_getpeername
jne 0x4288f6
mov eax, dword [esp + 0x40]
mov dword [esp + 8], 3
test eax, eax
je 0x428943
mov ebx, dword [eax + 4]
lea ebp, [eax + 8]
jmp 0x428943
mov eax, dword [esp + 0x40]
mov dword [esp + 8], 1
push eax
call dword [0x433ffc]
mov ebp, dword [esp + 0x44]
mov ebx, eax
add esp, 4
inc ebx
jmp 0x428943
cmp eax, 0x80000201
jne 0x4288f6
mov ebx, 4
lea ebp, [esp + 0x40]
mov dword [esp + 8], ebx
jmp 0x428943
cmp eax, 0x80000401
je 0x42892e
cmp eax, 0x80000501
je 0x428916
cmp eax, 0x80000601
je 0x4288fe
pop ebp
xor eax, eax
pop ebx
add esp, 0x18
ret
fld qword [esp + 0x40]
mov ebx, 4
mov dword [esp + 8], ebx
call sub.MSVCRT.dll__ftol
mov dword [esp + 0xc], eax
jmp 0x42893f
fld dword [esp + 0x40]
mov ebx, 4
mov dword [esp + 8], ebx
call sub.MSVCRT.dll__ftol
mov dword [esp + 0xc], eax
jmp 0x42893f
mov ecx, dword [esp + 0x40]
mov ebx, 4
mov dword [esp + 8], ebx
mov dword [esp + 0xc], ecx
lea ebp, [esp + 0xc]
mov edx, dword [esp + 0x28]
push esi
push edx
call fcn.0042d3d0
mov esi, eax
mov eax, dword [esp + 0x3c]
push eax
mov dword [esp + 0x28], esi
mov dword [esp + 0x20], 0
call dword [0x433ffc]
add esp, 8
test esi, esi
je 0x428a1c
test eax, eax
je 0x428a1c
inc eax
push edi
push eax
call sub.MSVCRT.dll_void____cdecl_operator_new_unsigned_int_
mov edi, dword [esp + 0x40]
mov edx, eax
or ecx, 0xffffffff
xor eax, eax
repne scasb al, byte es:[edi]
not ecx
sub edi, ecx
push 0x5c
mov eax, ecx
mov esi, edi
mov edi, edx
push edx
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, eax
mov dword [esp + 0x2c], edx
and ecx, 3
rep movsb byte es:[edi], byte [esi]
call sub.MSVCRT.dll_strrchr
mov esi, eax
add esp, 0xc
test esi, esi
je 0x4289be
mov byte [esi], 0
inc esi
mov edi, dword [esp + 0x20]
mov edx, dword [esp + 0x24]
lea ecx, [esp + 0x18]
push 0
push ecx
push 0
push 0x20006
push 0
push 0
push 0
push edi
push edx
call dword [sym.imp.ADVAPI32.dll_RegCreateKeyExA]
test eax, eax
jne 0x428a12
mov eax, dword [esp + 0x10]
mov ecx, dword [esp + 0x18]
push ebx
push ebp
push eax
push 0
push esi
push ecx
call dword [sym.imp.ADVAPI32.dll_RegSetValueExA]
test eax, eax
jne 0x428a07
mov dword [esp + 0x1c], 1
mov edx, dword [esp + 0x18]
push edx
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
push edi
call sub.MSVCRT.dll_void___cdecl_operator_delete_void__
add esp, 4
pop edi
mov eax, dword [esp + 0x18]
pop esi
pop ebp
pop ebx
add esp, 0x18
ret

Function at 0x428e80
Capabilities:
Encode data using xor

Disassembly:
mov edx, dword [esp + 4]
mov eax, dword [esp + 8]
cmp edx, 1
jle 0x428e9e
push esi
lea ecx, [esp + 0x18]
dec edx
mov esi, dword [ecx]
add ecx, 0xc
xor eax, esi
dec edx
jne 0x428e93
pop esi
ret
Function at 0x429120
Capabilities:
Create directory

Disassembly:
sub esp, 0xc
mov ecx, dword [esp + 0x14]
xor eax, eax
mov dword [esp + 4], eax
mov dword [esp + 8], eax
lea eax, [esp]
mov dword [esp], 0xc
push eax
push ecx
call dword [sym.imp.KERNEL32.dll_CreateDirectoryA]
add esp, 0xc
ret

Function at 0x4298d0
Capabilities:
Read .ini file

Disassembly:
push ebx
push ebp
push esi
push edi
push 0x400
call sub.MSVCRT.dll_void____cdecl_operator_new_unsigned_int_
mov ebx, dword [esp + 0x1c]
mov ebp, dword [esp + 0x40]
mov ecx, dword [esp + 0x28]
add esp, 4
mov esi, eax
mov eax, dword [esp + 0x30]
push ebx
push 0x400
push esi
push ebp
push eax
push ecx
call dword [sym.imp.KERNEL32.dll_GetPrivateProfileStringA]
cmp eax, 0x3ff
jl 0x42993a
push esi
lea edi, [eax + 0x400]
call sub.MSVCRT.dll_void___cdecl_operator_delete_void__
push edi
call sub.MSVCRT.dll_void____cdecl_operator_new_unsigned_int_
mov edx, dword [esp + 0x38]
add esp, 8
mov esi, eax
mov eax, dword [esp + 0x24]
push ebx
push edi
push esi
push ebp
push edx
push eax
call dword [sym.imp.KERNEL32.dll_GetPrivateProfileStringA]
dec edi
cmp eax, edi
jge 0x42990a
push esi
xor edi, edi
call dword [0x433ffc]
add esp, 4
test eax, eax
je 0x429956
push eax
push esi
call fcn.0042c730
add esp, 8
mov edi, eax
push esi
call sub.MSVCRT.dll_void___cdecl_operator_delete_void__
add esp, 4
mov eax, edi
pop edi
pop esi
pop ebp
pop ebx
ret
Function at 0x429a10
Capabilities:
Query or enumerate registry value

Disassembly:
sub esp, 0x10
mov eax, dword [esp + 0x18]
push ebx
push ebp
push esi
push edi
push eax
call fcn.0042d3d0
mov edi, dword [esp + 0x38]
xor ebp, ebp
push edi
mov ebx, eax
mov dword [esp + 0x18], ebp
call dword [0x433ffc]
add esp, 8
test ebx, ebx
je 0x429b54
test eax, eax
je 0x429b54
inc eax
push eax
call sub.MSVCRT.dll_void____cdecl_operator_new_unsigned_int_
mov ebp, eax
or ecx, 0xffffffff
xor eax, eax
push 0x5c
repne scasb al, byte es:[edi]
not ecx
sub edi, ecx
push ebp
mov edx, ecx
mov esi, edi
mov edi, ebp
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, edx
and ecx, 3
rep movsb byte es:[edi], byte [esi]
call sub.MSVCRT.dll_strrchr
mov edi, eax
add esp, 0xc
test edi, edi
je 0x429a82
mov byte [edi], 0
inc edi
lea eax, [esp + 0x1c]
push eax
push ebp
push ebx
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyA]
test eax, eax
jne 0x429b41
push 0x400
mov dword [esp + 0x18], 0x400
mov dword [esp + 0x1c], 1
call sub.MSVCRT.dll_void____cdecl_operator_new_unsigned_int_
add esp, 4
mov ebx, dword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
lea ecx, [esp + 0x14]
mov esi, eax
mov eax, dword [esp + 0x1c]
push ecx
lea edx, [esp + 0x1c]
push esi
push edx
push 0
push edi
push eax
call ebx
test eax, eax
je 0x429b0a
cmp eax, 0xea
jne 0x429b2d
push esi
call sub.MSVCRT.dll_void___cdecl_operator_delete_void__
mov ecx, dword [esp + 0x18]
push ecx
call sub.MSVCRT.dll_void____cdecl_operator_new_unsigned_int_
mov ecx, dword [esp + 0x24]
add esp, 8
lea edx, [esp + 0x14]
mov esi, eax
push edx
lea eax, [esp + 0x1c]
push esi
push eax
push 0
push edi
push ecx
call ebx
test eax, eax
jne 0x429ad5
mov eax, dword [esp + 0x18]
cmp eax, 1
je 0x429b18
cmp eax, 2
jne 0x429b2d
push esi
call dword [0x433ffc]
push eax
push esi
call fcn.0042c730
add esp, 0xc
mov dword [esp + 0x10], eax
push esi
call sub.MSVCRT.dll_void___cdecl_operator_delete_void__
mov edx, dword [esp + 0x20]
add esp, 4
push edx
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
push ebp
call sub.MSVCRT.dll_void___cdecl_operator_delete_void__
mov eax, dword [esp + 0x14]
add esp, 4
test eax, eax
jne 0x429b7d
mov ebp, eax
mov eax, dword [esp + 0x48]
test eax, eax
je 0x429b89
mov esi, dword [esp + 0x40]
test esi, esi
je 0x429b89
push esi
call dword [0x433ffc]
push eax
push esi
call fcn.0042c730
add esp, 0xc
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x10
ret
mov eax, dword [esp + 0x10]
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x10
ret
pop edi
mov eax, ebp
pop esi
pop ebp
pop ebx
add esp, 0x10
ret

Function at 0x429bf0
Capabilities:
Get hostname
Initialize winsock library

Disassembly:
sub esp, 0x294
lea eax, [esp + 0x104]
push esi
push eax
push 0x202
xor esi, esi
call sub.WS2_32.dll_WSAStartup
test eax, eax
jne 0x429c42
lea ecx, [esp + 4]
push 0x104
push ecx
call sub.WS2_32.dll_gethostname
test eax, eax
jne 0x429c3d
lea edx, [esp + 4]
push edx
call dword [0x433ffc]
push eax
lea eax, [esp + 0xc]
push eax
call fcn.0042c730
add esp, 0xc
mov esi, eax
call sub.WS2_32.dll_WSACleanup
mov eax, esi
pop esi
add esp, 0x294
ret
Function at 0x429d40
Capabilities:
Write file on windows

Disassembly:
sub esp, 8
mov eax, dword [esp + 0x10]
push edi
push 0
push 0x20
push 2
push 0
push 0
push 0x40000000
push eax
call dword [sym.imp.KERNEL32.dll_CreateFileA]
mov edi, eax
xor eax, eax
cmp edi, 0xffffffff
je 0x429dd2
mov eax, dword [esp + 0x10]
push ebx
mov ebx, 1
push ebp
cmp eax, ebx
push esi
mov dword [esp + 0x10], ebx
jle 0x429dc4
mov ebp, dword [sym.imp.KERNEL32.dll_WriteFile]
lea esi, [esp + 0x2c]
mov eax, dword [esi]
lea edx, [esp + 0x14]
push 0
push edx
lea ecx, [eax + 8]
mov eax, dword [eax + 4]
push eax
push ecx
push edi
call ebp
test eax, eax
je 0x429dbc
mov eax, dword [esp + 0x1c]
inc ebx
add esi, 0xc
cmp ebx, eax
jl 0x429d85
push edi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov eax, dword [esp + 0x10]
pop esi
pop ebp
pop ebx
pop edi
add esp, 8
ret
mov dword [esp + 0x10], 0
push edi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov eax, dword [esp + 0x10]
pop esi
pop ebp
pop ebx
pop edi
add esp, 8
ret

Function at 0x42a940
Capabilities:
Get file size
Read file on windows

Disassembly:
mov eax, dword [esp + 8]
push edi
push 0
push 0x20
push 3
push 0
push 3
push connect
push eax
call dword [sym.imp.KERNEL32.dll_CreateFileA]
mov edi, eax
xor eax, eax
cmp edi, 0xffffffff
je 0x42a9a9
push ebx
lea ecx, [esp + 0x10]
push esi
push ecx
push edi
call dword [sym.imp.KERNEL32.dll_GetFileSize]
mov ebx, eax
lea edx, [ebx + 8]
push edx
call fcn.00427da0
add esp, 4
mov esi, eax
lea eax, [esp + 0x14]
push 0
push eax
lea ecx, [esi + 8]
push ebx
push ecx
push edi
mov dword [esi], 1
mov dword [esi + 4], ebx
call dword [sym.imp.KERNEL32.dll_ReadFile]
push edi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov eax, esi
pop esi
pop ebx
pop edi
ret
Function at 0x42ab40
Capabilities:
Check if file exists
Get common file path

Disassembly:
mov eax, dword [esp + 0x10]
sub esp, 0x208
test eax, eax
push ebx
push esi
push edi
jne 0x42ab6b
lea eax, [esp + 0xc]
push eax
push 0x104
call dword [sym.imp.KERNEL32.dll_GetTempPathA]
test eax, eax
jne 0x42ab93
mov byte [esp + 0xc], al
jmp 0x42ab93
mov edi, dword [esp + 0x21c]
or ecx, 0xffffffff
xor eax, eax
lea edx, [esp + 0xc]
repne scasb al, byte es:[edi]
not ecx
sub edi, ecx
mov eax, ecx
mov esi, edi
mov edi, edx
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, eax
and ecx, 3
rep movsb byte es:[edi], byte [esi]
lea ecx, [esp + 0xc]
push ecx
call dword [0x433ffc]
mov cl, byte [esp + eax + 0xf]
lea eax, [esp + eax + 0x10]
add esp, 4
cmp cl, 0x5c
je 0x42abb1
mov byte [eax], 0x5c
mov esi, dword [sym.imp.USER32.dll_wsprintfA]
mov edi, dword [sym.imp.KERNEL32.dll_GetTickCount]
mov ebx, dword [sym.imp.SHLWAPI.dll_PathFileExistsA]
call edi
lea edx, [esp + 0xc]
push eax
push edx
lea eax, [esp + 0x118]
push str._s_x.tmp
push eax
call esi
add esp, 0x10
lea ecx, [esp + 0x110]
push ecx
call ebx
test eax, eax
jne 0x42abc3
lea edx, [esp + 0x110]
push edx
call dword [0x433ffc]
inc eax
push eax
call fcn.00427da0
mov edx, eax
lea edi, [esp + 0x118]
or ecx, 0xffffffff
xor eax, eax
add esp, 8
repne scasb al, byte es:[edi]
not ecx
sub edi, ecx
mov eax, ecx
mov esi, edi
mov edi, edx
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, eax
mov eax, edx
and ecx, 3
rep movsb byte es:[edi], byte [esi]
pop edi
pop esi
pop ebx
add esp, 0x208
ret

Function at 0x42ac40
Capabilities:
Create process on windows

Disassembly:
sub esp, 0x54
push esi
lea eax, [esp + 0x14]
push edi
push eax
mov dword [esp + 0x1c], 0x44
call dword [sym.imp.KERNEL32.dll_GetStartupInfoA]
mov eax, dword [esp + 0x84]
xor edi, edi
cmp eax, edi
mov dword [esp + 0x54], edi
mov dword [esp + 0x58], edi
mov dword [esp + 0x44], 1
je case.0x42ac81.2
mov ecx, dword [esp + 0x7c]
lea eax, [ecx - 1]
cmp eax, 5
ja case.0x42ac81.2
jmp dword [eax*4 + 0x42ad0c]
mov word [esp + 0x48], di
jmp 0x42acba
mov word [esp + 0x48], 2
jmp 0x42acba
mov word [esp + 0x48], 3
jmp 0x42acba
mov word [esp + 0x48], 4
jmp 0x42acba
mov word [esp + 0x48], 7
jmp 0x42acba
mov word [esp + 0x48], 5
lea edx, [esp + 8]
mov ecx, dword [esp + 0x64]
lea eax, [esp + 0x18]
push edx
push eax
push edi
push edi
push edi
push 1
push edi
push edi
push ecx
push edi
call dword [sym.imp.KERNEL32.dll_CreateProcessA]
mov esi, eax
cmp esi, edi
je 0x42ad04
cmp dword [esp + 0x70], edi
je 0x42acf0
mov edx, dword [esp + 8]
push 0xffffffffffffffff
push edx
call dword [sym.imp.KERNEL32.dll_WaitForSingleObject]
mov eax, dword [esp + 8]
mov edi, dword [sym.imp.KERNEL32.dll_CloseHandle]
push eax
call edi
mov ecx, dword [esp + 0xc]
push ecx
call edi
mov eax, esi
pop edi
pop esi
add esp, 0x54
ret
Function at 0x42ad40
Capabilities:
Enumerate files on windows

Disassembly:
sub esp, 0x140
push ebx
mov ebx, dword [esp + 0x154]
push ebp
push esi
mov esi, dword [ebx]
push edi
mov edi, dword [esp + 0x154]
xor ebp, ebp
test edi, edi
je 0x42adc0
push edi
call dword [0x433ffc]
add esp, 4
test eax, eax
jbe 0x42adc0
test esi, esi
je 0x42ad7e
cmp esi, 0xffffffff
je 0x42ad7e
push esi
call dword [sym.imp.KERNEL32.dll_FindClose]
lea eax, [esp + 0x10]
push eax
push edi
call dword [sym.imp.KERNEL32.dll_FindFirstFileA]
mov esi, eax
cmp esi, 0xffffffff
mov dword [ebx], esi
je 0x42ae02
mov eax, dword [esp + 0x15c]
test eax, eax
je 0x42adac
mov ecx, dword [esp + 0x10]
and ecx, 0x10
cmp cl, 0x10
je 0x42adc0
jmp 0x42adbb
mov edx, dword [esp + 0x158]
mov eax, dword [esp + 0x10]
test edx, eax
je 0x42adc0
mov ebp, 1
test esi, esi
je 0x42ae02
cmp esi, 0xffffffff
je 0x42ae02
test ebp, ebp
jne 0x42ae39
mov eax, dword [esp + 0x15c]
mov edi, dword [sym.imp.KERNEL32.dll_FindNextFileA]
test eax, eax
lea eax, [esp + 0x10]
push eax
push esi
je 0x42ae0f
call edi
test eax, eax
je 0x42ae02
mov ecx, dword [esp + 0x10]
and ecx, 0x10
cmp cl, 0x10
jne 0x42ae39
lea edx, [esp + 0x10]
push edx
push esi
call edi
test eax, eax
jne 0x42adea
pop edi
pop esi
pop ebp
xor eax, eax
pop ebx
add esp, 0x140
ret
call edi
test eax, eax
je 0x42ae02
mov ebx, dword [esp + 0x158]
test dword [esp + 0x10], ebx
jne 0x42ae39
lea ecx, [esp + 0x10]
push ecx
push esi
call edi
test eax, eax
jne 0x42ae1c
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x140
ret
lea edx, [esp + 0x3c]
push edx
call dword [0x433ffc]
inc eax
push eax
call fcn.00427da0
mov edx, eax
lea edi, [esp + 0x44]
or ecx, 0xffffffff
xor eax, eax
add esp, 8
repne scasb al, byte es:[edi]
not ecx
sub edi, ecx
mov eax, ecx
mov esi, edi
mov edi, edx
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, eax
mov eax, edx
and ecx, 3
rep movsb byte es:[edi], byte [esi]
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x140
ret

Function at 0x42cd10
Capabilities:
Encrypt data using rc4 prga

Disassembly:
push ebx
mov ebx, dword [esp + 8]
push ebp
mov ebp, edx
push esi
push edi
mov esi, ebp
xor edi, edi
and esi, 3
mov eax, ecx
jle 0x42cd31
mov dl, byte [eax]
inc eax
cmp dl, bl
je 0x42cd8b
inc edi
cmp edi, esi
jl 0x42cd25
mov edi, ebx
and edi, 0xff
mov esi, edi
shl esi, 8
or esi, edi
shl esi, 8
or esi, edi
shl esi, 8
or esi, edi
lea edi, [ecx + ebp]
cmp eax, edi
jae 0x42cdc0
mov edx, dword [eax]
xor edx, esi
lea ebp, [edx - 0x1010101]
not edx
and ebp, edx
test ebp, 0x80808080
je 0x42cd7a
cmp byte [eax], bl
je 0x42cd95
cmp byte [eax + 1], bl
je 0x42cd9e
cmp byte [eax + 2], bl
je 0x42cda8
cmp byte [eax + 3], bl
je 0x42cdb4
add eax, 4
cmp eax, edi
jb 0x42cd51
pop edi
pop esi
pop ebp
or eax, 0xffffffff
pop ebx
ret 4
pop edi
sub eax, ecx
pop esi
pop ebp
dec eax
pop ebx
ret 4
pop edi
pop esi
pop ebp
sub eax, ecx
pop ebx
ret 4
pop edi
sub eax, ecx
pop esi
pop ebp
inc eax
pop ebx
ret 4
pop edi
sub eax, ecx
pop esi
pop ebp
add eax, 2
pop ebx
ret 4
pop edi
sub eax, ecx
pop esi
pop ebp
add eax, 3
pop ebx
ret 4
pop edi
pop esi
pop ebp
or eax, 0xffffffff
pop ebx
ret 4
Function at 0x42e010
Capabilities:
Create tcp socket

Disassembly:
sub esp, 0x10
push esi
push edi
call fcn.0042de30
mov edi, eax
call fcn.0042ebc0
push 6
push 1
push 2
mov dword [edi + 8], eax
call sub.WS2_32.dll_socket
mov ecx, dword [esp + 0x1c]
mov esi, eax
xor eax, eax
mov dword [edi], esi
mov dword [esp + 8], eax
push ecx
mov dword [esp + 0x10], eax
mov word [esp + 0xc], 2
mov dword [esp + 0x14], eax
mov dword [esp + 0x18], eax
mov dword [esp + 0x10], eax
call sub.WS2_32.dll_htons
lea edx, [esp + 8]
push 0x10
push edx
push esi
mov word [esp + 0x16], ax
call sub.WS2_32.dll_bind
test eax, eax
jge 0x42e07e
push esi
call sub.WS2_32.dll_closesocket
pop edi
xor eax, eax
pop esi
add esp, 0x10
ret
push 1
push esi
call sub.WS2_32.dll_listen
test eax, eax
jge 0x42e098
push esi
call sub.WS2_32.dll_closesocket
pop edi
xor eax, eax
pop esi
add esp, 0x10
ret
mov eax, edi
pop edi
pop esi
add esp, 0x10
ret

Function at 0x42e0d0
Capabilities:
Get socket status

Disassembly:
sub esp, 0x120
mov ecx, dword [esp + 0x128]
push esi
push edi
mov edi, dword [esp + 0x12c]
test ecx, ecx
mov esi, dword [edi]
mov dword [esp + 0x24], 1
mov dword [esp + 0x28], esi
jne 0x42e102
push ecx
push ecx
lea eax, [esp + 0x2c]
push ecx
push eax
jmp 0x42e156
cmp ecx, 0xffffffff
jne 0x42e119
mov dword [esp + 8], 0
mov dword [esp + 0xc], 0
jmp 0x42e148
mov eax, 0x10624dd3
imul ecx
sar edx, 6
mov eax, edx
shr eax, 0x1f
add edx, eax
mov eax, ecx
mov dword [esp + 8], edx
mov ecx, 0x3e8
cdq
idiv ecx
lea eax, [edx + edx*4]
lea eax, [eax + eax*4]
lea edx, [eax + eax*4]
shl edx, 3
mov dword [esp + 0xc], edx
lea eax, [esp + 8]
lea ecx, [esp + 0x24]
push eax
push 0
push 0
push ecx
inc esi
push esi
call sub.WS2_32.dll_select
test eax, eax
jge 0x42e16d
pop edi
or eax, 0xffffffff
pop esi
add esp, 0x120
ret
mov eax, dword [edi]
lea edx, [esp + 0x24]
push edx
push eax
call sub.WS2_32.dll___WSAFDIsSet
test eax, eax
je 0x42e1c2
push 8
mov dword [esp + 0x14], 0x10
call sub.MSVCRT.dll_malloc
mov esi, eax
add esp, 4
lea ecx, [esp + 0x10]
lea edx, [esp + 0x14]
mov dword [esi + 4], 0
mov eax, dword [edi]
push ecx
push edx
push eax
call sub.WS2_32.dll_accept
push esi
push edi
mov dword [esi], eax
call fcn.0042de70
add esp, 8
mov eax, esi
pop edi
pop esi
add esp, 0x120
ret
pop edi
xor eax, eax
pop esi
add esp, 0x120
ret