joyce8/EMBER2024-capa huggingface dataset:
Function at 0x41a210
Capabilities:
Initialize winsock library

Disassembly:
sub esp, 0x194
mov eax, dword [0x71a830]
xor eax, esp
mov dword [esp + 0x190], eax
call fcn.0041a180
test al, al
je 0x41a262
push esi
mov esi, dword [sym.imp.WS2_32.dll_WSAStartup]
lea eax, [esp + 4]
push eax
push 0x202
call esi
test eax, eax
je 0x41a279
call dword [sym.imp.WS2_32.dll_WSACleanup]
lea ecx, [esp + 4]
push ecx
push 0x202
call esi
test eax, eax
jne 0x41a261
mov byte [0x79ace4], 1
pop esi
mov ecx, dword [esp + 0x190]
xor ecx, esp
xor al, al
call fcn.0046e712
add esp, 0x194
ret
mov edx, 0x202
cmp word [esp + 4], dx
je 0x41a25a
call dword [sym.imp.WS2_32.dll_WSACleanup]
lea eax, [esp + 4]
push eax
jmp 0x41a24f

Function at 0x41a2f0
Capabilities:
Query environment variable

Disassembly:
cmp byte [0x79ace5], 0
je 0x41a2fc
xor al, al
ret
inc dword [0x79ace8]
push esi
mov esi, dword [sym.imp.MSVCR90.dll_getenv]
push str.UMASK
mov byte [0x79ace5], 1
mov dword [0x4ae8a4], 0x1b0
mov dword [0x4ae8a8], 0x1c0
call esi
add esp, 4
test eax, eax
je 0x41a343
mov ecx, eax
call fcn.00419e30
or eax, 0x180
mov dword [0x4ae8a4], eax
push str.UMASK_DIR
call esi
add esp, 4
test eax, eax
je 0x41a362
mov ecx, eax
call fcn.00419e30
or eax, 0x1c0
mov dword [0x4ae8a8], eax
call fcn.0042db00
call dword [sym.imp.MSVCR90.dll___iob_func]
mov dword [0x79acdc], eax
mov dword [0x79ace0], 0
mov dword [0x79acec], 0x79acdc
call fcn.0041c530
test al, al
je 0x41a393
mov al, 1
pop esi
ret
push str.HOME
call esi
add esp, 4
mov dword [0x79a854], eax
test eax, eax
je 0x41a3b9
push eax
push 0x79aa60
call fcn.0041b410
add esp, 8
mov dword [0x79a854], eax
call fcn.0041a160
call fcn.0041a210
xor al, al
pop esi
ret

Function at 0x41a870
Capabilities:
Terminate process

Disassembly:
push esi
mov esi, dword [esp + 0xc]
push edi
mov edi, dword [esp + 0xc]
push 0
push esi
push edi
call fcn.0041a3d0
add esp, 0xc
test eax, eax
jg 0x41a934
cmp byte [edi], 0
mov esi, dword [esi + 8]
push ebx
jne 0x41a8ba
mov eax, dword [esp + 0x18]
mov edi, dword [sym.imp.MSVCR90.dll___iob_func]
push eax
push str.No_option_given_to__s_n
call edi
mov ebx, dword [sym.imp.MSVCR90.dll_fprintf]
add eax, 0x40
push eax
call ebx
add esp, 0xc
jmp 0x41a8dc
mov ecx, dword [esp + 0x18]
push edi
mov edi, dword [sym.imp.MSVCR90.dll___iob_func]
push ecx
push str.Unknown_option_to__s:__s_n
call edi
mov ebx, dword [sym.imp.MSVCR90.dll_fprintf]
add eax, 0x40
push eax
call ebx
add esp, 0x10
mov edx, dword [esi]
push edx
push str.Alternatives_are:__s
call edi
add eax, 0x40
push eax
call ebx
mov eax, dword [esi + 4]
add esi, 4
add esp, 0xc
test eax, eax
je 0x41a91b
lea esp, [esp]
push eax
push 0x494bbc
call edi
add eax, 0x40
push eax
call ebx
mov eax, dword [esi + 4]
add esi, 4
add esp, 0xc
test eax, eax
jne 0x41a900
push 0x491f30
call edi
add eax, 0x40
push eax
call ebx
add esp, 8
push 1
call dword [sym.imp.MSVCR90.dll_exit]
pop ebx
pop edi
pop esi
ret
Function at 0x41acd0
Capabilities:
Check mutex on windows

Disassembly:
sub esp, 0x204
mov eax, dword [0x71a830]
xor eax, esp
mov dword [esp + 0x200], eax
mov eax, dword [esp + 0x208]
push ecx
push eax
lea edx, [esp + 8]
push str._s__08X
push edx
call dword [sym.imp.MSVCR90.dll_sprintf]
add esp, 0x10
lea eax, [esp]
push eax
push 0
push 0
call dword [sym.imp.KERNEL32.dll_CreateMutexA]
mov dword [esi], eax
test eax, eax
jne 0x41ad2f
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov ecx, dword [esp + 0x200]
xor ecx, esp
call fcn.0046e712
add esp, 0x204
ret
mov ecx, dword [esp + 0x20c]
push ecx
push eax
call dword [sym.imp.KERNEL32.dll_WaitForSingleObject]
cmp eax, 0x102
jne 0x41ad5f
mov eax, 0x79
mov ecx, dword [esp + 0x200]
xor ecx, esp
call fcn.0046e712
add esp, 0x204
ret
cmp eax, 0xffffffff
je 0x41ad14
mov ecx, dword [esp + 0x200]
xor ecx, esp
xor eax, eax
call fcn.0046e712
add esp, 0x204
ret

Function at 0x41c2a0
Capabilities:
Get thread local storage value
Set thread local storage value

Disassembly:
mov eax, dword [0x79b2fc]
push edi
push eax
call dword [sym.imp.KERNEL32.dll_TlsGetValue]
mov ecx, dword [0x79acd4]
mov edi, eax
test ecx, ecx
je 0x41c2c4
mov ecx, dword [ecx + 0x54]
call ecx
mov ecx, dword [0x79acd4]
test edi, edi
je 0x41c3a4
cmp byte [edi + 0x68], 0
je 0x41c3a4
push esi
lea esi, [edi + 4]
test ecx, ecx
je 0x41c2f5
mov eax, dword [esi + 0x2c]
test eax, eax
je 0x41c2f5
mov edx, dword [ecx + 0x28]
push eax
call edx
add esp, 4
mov dword [esi + 0x2c], 0
push esi
call fcn.004303f0
mov ecx, dword [0x79acd4]
add esp, 4
lea esi, [edi + 0x34]
test ecx, ecx
je 0x41c322
mov eax, dword [esi + 0x18]
test eax, eax
je 0x41c322
push eax
mov eax, dword [ecx + 0x18]
call eax
add esp, 4
mov dword [esi + 0x18], 0
push esi
call dword [sym.imp.KERNEL32.dll_DeleteCriticalSection]
push edi
call dword [sym.imp.MSVCR90.dll_free]
push 0x1a5
push str.....mysql_5.5.62mysysmy_thr_init.c
mov edi, 0x79b140
call fcn.0041b9c0
add esp, 0xc
sub dword [0x79acf8], 1
pop esi
jne 0x41c37d
mov ecx, dword [0x79acd4]
test ecx, ecx
je 0x41c370
mov eax, dword [0x79b20c]
test eax, eax
je 0x41c370
mov ecx, dword [ecx + 0x80]
push eax
call ecx
add esp, 4
push 0x79b1e0
call fcn.00430440
add esp, 4
mov ecx, dword [0x79acd4]
test ecx, ecx
je 0x41c399
mov eax, dword [0x79b158]
test eax, eax
je 0x41c399
mov edx, dword [ecx + 0x78]
push eax
call edx
add esp, 4
push 0x79b140
call dword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
mov eax, dword [0x79b2fc]
push 0
push eax
call dword [sym.imp.KERNEL32.dll_TlsSetValue]
pop edi
ret
Function at 0x41c430
Capabilities:
Get thread local storage value
Set thread local storage value

Disassembly:
push ecx
push ebx
xor bl, bl
cmp byte [0x79acfc], bl
jne 0x41c441
mov al, 1
pop ebx
pop ecx
ret
mov eax, dword [0x79b2fc]
push eax
call dword [sym.imp.KERNEL32.dll_TlsGetValue]
test eax, eax
jne 0x41c52a
call fcn.0041c410
push 0x7c
push 1
call dword [sym.imp.MSVCR90.dll_calloc]
add esp, 8
mov dword [esp + 4], eax
test eax, eax
jne 0x41c476
mov bl, 1
mov al, bl
pop ebx
pop ecx
ret
mov ecx, dword [0x79b2fc]
push esi
push edi
push eax
push ecx
call dword [sym.imp.KERNEL32.dll_TlsSetValue]
call dword [sym.imp.KERNEL32.dll_GetCurrentThreadId]
mov edx, dword [esp + 0xc]
mov dword [edx + 0x58], eax
mov esi, dword [esp + 0xc]
mov ecx, dword [0x79b374]
add esi, 0x34
call fcn.0041b960
mov esi, dword [esp + 0xc]
mov ecx, dword [0x79b360]
push 0
add esi, 4
call fcn.0041ba60
mov ecx, dword [esp + 0x10]
lea eax, [esp + 0x10]
sub eax, dword [0x4ae950]
push 0x15e
push str.....mysql_5.5.62mysysmy_thr_init.c
mov edi, 0x79b140
mov dword [ecx + 0x78], eax
call fcn.0041b9c0
mov eax, dword [0x79ad00]
mov edx, dword [esp + 0x18]
inc eax
add esp, 0xc
mov dword [edx + 0x5c], eax
inc dword [0x79acf8]
mov dword [0x79ad00], eax
mov eax, dword [0x79acd4]
pop edi
pop esi
test eax, eax
je 0x41c517
mov ecx, dword [0x79b158]
test ecx, ecx
je 0x41c517
mov eax, dword [eax + 0x78]
push ecx
call eax
add esp, 4
push 0x79b140
call dword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
mov ecx, dword [esp + 4]
mov byte [ecx + 0x68], 1
mov al, bl
pop ebx
pop ecx
ret
Function at 0x41c530
Capabilities:
Allocate thread local storage

Disassembly:
push ebx
xor ebx, ebx
cmp byte [0x79acfc], bl
je 0x41c53f
xor al, al
pop ebx
ret
mov byte [0x79acfc], 1
call dword [sym.imp.KERNEL32.dll_TlsAlloc]
xor ecx, ecx
cmp eax, 0xffffffff
sete cl
mov dword [0x79b2fc], eax
mov eax, ecx
cmp eax, ebx
je 0x41c57c
push eax
push str.Cant_initialize_threads:_error__d_n
call dword [sym.imp.MSVCR90.dll___iob_func]
add eax, 0x40
push eax
call dword [sym.imp.MSVCR90.dll_fprintf]
add esp, 0xc
mov al, 1
pop ebx
ret
mov eax, dword [0x79acd4]
cmp eax, ebx
je 0x41c5a0
mov edx, dword [0x79b36c]
mov eax, dword [eax + 0x14]
push 0x79b220
push edx
call eax
add esp, 8
mov dword [0x79b238], eax
jmp 0x41c5a6
mov dword [0x79b238], ebx
push esi
mov esi, dword [sym.imp.KERNEL32.dll_InitializeCriticalSection]
push 0x79b220
call esi
mov eax, dword [0x79acd4]
cmp eax, ebx
je 0x41c5d8
mov ecx, dword [0x79b33c]
mov edx, dword [eax + 0x14]
push 0x79b2a0
push ecx
call edx
add esp, 8
mov dword [0x79b2b8], eax
jmp 0x41c5de
mov dword [0x79b2b8], ebx
push 0x79b2a0
call esi
mov eax, dword [0x79acd4]
cmp eax, ebx
je 0x41c609
mov ecx, dword [0x79b370]
mov edx, dword [eax + 0x14]
push 0x79b2c0
push ecx
call edx
add esp, 8
mov dword [0x79b2d8], eax
jmp 0x41c60f
mov dword [0x79b2d8], ebx
push 0x79b2c0
call esi
mov eax, dword [0x79acd4]
cmp eax, ebx
je 0x41c63a
mov ecx, dword [0x79b37c]
mov edx, dword [eax + 0x14]
push 0x79b140
push ecx
call edx
add esp, 8
mov dword [0x79b158], eax
jmp 0x41c640
mov dword [0x79b158], ebx
push 0x79b140
call esi
call fcn.0041c430
test al, al
je 0x41c655
pop esi
mov al, 1
pop ebx
ret
call fcn.0041c3f0
mov ecx, dword [0x79b340]
mov esi, 0x79b2e0
mov dword [0x79ad68], eax
call fcn.0041b960
mov ecx, dword [0x79b364]
mov esi, 0x79b240
call fcn.0041b960
mov ecx, dword [0x79b380]
mov esi, 0x79b260
call fcn.0041b960
mov ecx, dword [0x79b368]
mov esi, 0x79b1c0
call fcn.0041b960
mov ecx, dword [0x79b31c]
mov esi, 0x79b280
call fcn.0041b960
mov ecx, dword [0x79b388]
mov esi, 0x79b300
call fcn.0041b960
mov ecx, dword [0x79b398]
push ebx
mov esi, 0x79b1e0
call fcn.0041ba60
add esp, 4
call fcn.0041c410
pop esi
xor al, al
pop ebx
ret
Function at 0x421ce0
Capabilities:
Encode data using xor

Disassembly:
sub esp, 0x30
mov eax, dword [0x71a830]
xor eax, esp
mov dword [esp + 0x2c], eax
mov eax, dword [esp + 0x38]
push ebp
mov ebp, dword [esp + 0x38]
mov ecx, dword [ebp + 0x64]
push edx
push eax
mov dword [esp + 0xc], eax
mov eax, dword [ecx + 0x18]
push ebp
call eax
mov ecx, dword [esp + 0x10]
push eax
mov eax, dword [ebx]
push ecx
lea edx, [esp + 0x1c]
push ebp
push edx
call eax
mov edx, dword [ebx + 4]
lea ecx, [esp + 0x24]
push ecx
call edx
add esp, 0x20
test eax, eax
jle 0x421d76
mov ecx, dword [edi]
mov edx, ecx
and edx, 0x3f
add edx, dword [esi]
mov ebp, eax
sar ebp, 8
imul edx, ebp
mov ebp, ecx
shl ebp, 8
add edx, ebp
xor edx, ecx
mov dword [edi], edx
add dword [esi], 3
mov ecx, dword [edi]
mov edx, dword [esi]
mov ebp, ecx
and ebp, 0x3f
add ebp, edx
movzx eax, al
imul ebp, eax
mov edx, ecx
shl edx, 8
add ebp, edx
xor ebp, ecx
mov dword [edi], ebp
add dword [esi], 3
mov ecx, dword [ebx + 4]
lea eax, [esp + 8]
push eax
call ecx
add esp, 4
test eax, eax
jg 0x421d27
mov ecx, dword [esp + 0x30]
pop ebp
xor ecx, esp
call fcn.0046e712
add esp, 0x30
ret

Function at 0x427a00
Capabilities:
Set socket configuration

Disassembly:
push ecx
push esi
push 0x10
push 0x1d0
call fcn.0040aa20
mov esi, eax
add esp, 8
test esi, esi
je 0x427a78
mov eax, dword [esp + 0x14]
push ebx
mov ebx, dword [esp + 0x10]
push edi
mov edi, dword [esp + 0x18]
push 0
push ebx
call fcn.004276b0
add esp, 8
cmp dword [esi + 0x114], 2
mov eax, str.socket___d_
je 0x427a43
mov eax, str.TCP_IP___d_
mov ecx, dword [esi]
push ecx
push eax
lea edx, [esi + 0x118]
push edx
call dword [sym.imp.MSVCR90.dll_sprintf]
add esp, 0xc
lea eax, [esp + 0xc]
push eax
push 0x8004667e
push ebx
mov dword [esp + 0x18], 0
call dword [sym.imp.WS2_32.dll_ioctlsocket]
and dword [esi + 0xc], 0xfffffffe
pop edi
mov eax, esi
pop ebx
pop esi
pop ecx
ret
Function at 0x42acb0
Capabilities:
Enumerate files on windows

Disassembly:
sub esp, 0x154
mov eax, dword [0x71a830]
xor eax, esp
mov dword [esp + 0x150], eax
mov eax, dword [esp + 0x15c]
mov ecx, dword [esp + 0x158]
push ebx
mov ebx, dword [esp + 0x164]
push ebp
push esi
xor ebp, ebp
push edi
mov dword [esp + 0x1c], ecx
mov dword [esp + 0x18], ebx
test eax, eax
je 0x42ae4d
push 2
push 0xb
push eax
push ecx
call fcn.0042a6f0
mov ebp, eax
add esp, 0x10
cmp ebp, 1
jne 0x42ae4d
test ebx, ebx
je 0x42ae4d
mov eax, ebx
lea edx, [eax + 1]
mov cl, byte [eax]
inc eax
test cl, cl
jne 0x42ad15
sub eax, edx
lea edi, [eax + 4]
mov dword [esp + 0x10], eax
movzx eax, byte [0x79ad70]
push eax
push edi
call fcn.00439b80
push edi
mov esi, eax
push 0
push esi
call sub.MSVCR90.dll_memset
lea ecx, [edi - 4]
push ecx
push ebx
push esi
call dword [sym.imp.MSVCR90.dll_strncpy]
mov ebx, dword [sym.imp.MSVCR90.dll_strncat]
push 3
push 0x4976e8
push esi
call ebx
add esp, 0x2c
lea edx, [esp + 0x20]
push edx
push esi
call dword [sym.imp.KERNEL32.dll_FindFirstFileA]
mov dword [esp + 0x14], eax
cmp eax, 0xffffffff
jne 0x42ad85
push esi
call fcn.00429930
add esp, 4
mov eax, 0xfffffffa
jmp 0x42ae4f
test byte [esp + 0x20], 0x10
jne 0x42ae21
lea eax, [esp + 0x4c]
lea edx, [eax + 1]
mov cl, byte [eax]
inc eax
test cl, cl
jne 0x42ad97
sub eax, edx
mov ebp, eax
mov eax, dword [esp + 0x10]
lea eax, [eax + ebp + 3]
cmp eax, edi
jle 0x42adcf
push esi
call fcn.00429930
movzx edx, byte [0x79ad70]
mov ecx, dword [esp + 0x14]
lea edi, [ecx + ebp + 3]
push edx
push edi
call fcn.00439b80
add esp, 0xc
mov esi, eax
push edi
push 0
push esi
call sub.MSVCR90.dll_memset
mov ecx, dword [esp + 0x24]
mov eax, edi
sub eax, ebp
sub eax, 3
push eax
push ecx
push esi
call dword [sym.imp.MSVCR90.dll_strncpy]
push 2
push 0x4921c0
push esi
call ebx
mov edx, edi
sub edx, dword [esp + 0x34]
lea eax, [esp + 0x70]
sub edx, 3
push edx
push eax
push esi
call ebx
mov ecx, dword [esp + 0x4c]
push 2
push 0xb
push esi
push ecx
call fcn.0042a6f0
mov ebp, eax
add esp, 0x40
cmp ebp, 1
jne 0x42ae39
mov eax, dword [esp + 0x14]
lea edx, [esp + 0x20]
push edx
push eax
call dword [sym.imp.KERNEL32.dll_FindNextFileA]
test eax, eax
jne 0x42ad85
push esi
call fcn.00429930
mov ecx, dword [esp + 0x18]
add esp, 4
push ecx
call dword [sym.imp.KERNEL32.dll_FindClose]
mov eax, ebp
mov ecx, dword [esp + 0x160]
pop edi
pop esi
pop ebp
pop ebx
xor ecx, esp
call fcn.0046e712
add esp, 0x154
ret

Function at 0x42b660
Capabilities:
Get socket status

Disassembly:
sub esp, 0x10c
lea eax, [esp]
push eax
push 0
push 0
lea ecx, [esp + 0x14]
push ecx
lea edx, [esi + 1]
push edx
mov dword [esp + 0x20], esi
mov dword [esp + 0x1c], 1
mov dword [esp + 0x18], 0
mov dword [esp + 0x14], 0
call dword [sym.imp.WS2_32.dll_select]
test eax, eax
jge 0x42b6a6
xor eax, eax
add esp, 0x10c
ret
je 0x42b6c3
lea eax, [esp + 8]
push eax
push esi
call sub.WS2_32.dll___WSAFDIsSet
xor ecx, ecx
test eax, eax
setne cl
mov eax, ecx
add esp, 0x10c
ret
xor eax, eax
xor ecx, ecx
test eax, eax
setne cl
mov eax, ecx
add esp, 0x10c
ret
Function at 0x42c2c0
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
and esp, 0xffffffc0
mov ecx, dword [ebp + 0x10]
sub esp, 0x34
push ebx
push esi
push edi
test ecx, ecx
je 0x42c3b1
cmp byte [ecx], 0
je 0x42c3be
mov ebx, dword [ebp + 0xc]
mov edi, dword [ebp + 8]
lea eax, [ebx + 8]
mov dword [esp + 0x1c], eax
mov eax, ecx
lea edx, [eax + 1]
mov esi, edi
mov dword [esp + 0x14], edx
mov dl, byte [eax]
inc eax
test dl, dl
jne 0x42c2f8
sub eax, dword [esp + 0x14]
push eax
push ecx
lea eax, [esp + 0x28]
push eax
call fcn.0042c1d0
push 8
lea ecx, [esp + 0x24]
push ebx
push ecx
call fcn.0042c1d0
mov edx, dword [esp + 0x30]
xor edx, dword [esp + 0x3c]
mov eax, dword [esp + 0x2c]
xor eax, dword [esp + 0x38]
push edx
push eax
lea ecx, [esp + 0x48]
push ecx
call fcn.0042c150
mov eax, dword [esp + 0x40]
add esp, 0x24
cmp ebx, eax
jae 0x42c376
sub eax, ebx
mov ebx, eax
lea edx, [esp + 0x28]
push edx
call fcn.0042c190
fmul qword [0x4979c0]
push ecx
fstp qword [esp]
call sub.MSVCR90.dll_floor
fadd qword [0x4979b8]
add esp, 8
call fcn.0046e660
mov byte [edi], al
inc edi
sub ebx, 1
jne 0x42c347
lea eax, [esp + 0x28]
push eax
call fcn.0042c190
fmul qword [0x4979c0]
push ecx
fstp qword [esp]
call sub.MSVCR90.dll_floor
add esp, 8
call fcn.0046e660
cmp esi, edi
je 0x42c3a7
jmp 0x42c3a0
xor byte [esi], al
inc esi
cmp esi, edi
jne 0x42c3a0
mov byte [edi], 0
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
mov ecx, dword [ebp + 8]
mov byte [ecx], 0
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
mov edx, dword [ebp + 8]
pop edi
pop esi
mov byte [edx], 0
pop ebx
mov esp, ebp
pop ebp
ret

Function at 0x42c7a0
Capabilities:
Encode data using xor

Disassembly:
push esi
mov esi, dword [esp + 8]
push edi
lea edi, [eax + edx]
cmp eax, edi
jae 0x42c7bd
lea ecx, [ecx]
mov dl, byte [eax]
xor dl, byte [esi]
inc eax
mov byte [ecx], dl
inc ecx
inc esi
cmp eax, edi
jb 0x42c7b0
pop edi
pop esi
ret

Function at 0x42d2a0
Capabilities:
Query environment variable

Disassembly:
push ecx
push ebx
push ebp
mov ebp, dword [esp + 0x10]
push esi
mov esi, dword [sym.imp.MSVCR90.dll_getenv]
push edi
push str.LIBMYSQL_PLUGINS
call esi
push str.LIBMYSQL_ENABLE_CLEARTEXT_PLUGIN
mov edi, eax
call esi
mov ebx, dword [sym.imp.MSVCR90.dll_strchr]
add esp, 8
test eax, eax
je 0x42d2e5
movsx eax, byte [eax]
push eax
push 0x497af4
call ebx
add esp, 8
test eax, eax
je 0x42d2e5
mov byte [0x79a42c], 1
test edi, edi
je 0x42d33a
push 0x10
push edi
call fcn.0040aaf0
mov edi, eax
add esp, 8
mov dword [esp + 0x10], edi
lea ebx, [ebx]
push 0x3b
push edi
call ebx
mov esi, eax
add esp, 8
test esi, esi
je 0x42d311
mov byte [esi], 0
push 0
push 0xffffffffffffffff
push edi
push ebp
call fcn.0042d1d0
add esp, 0x10
lea edi, [esi + 1]
test esi, esi
jne 0x42d300
mov ecx, dword [esp + 0x10]
pop edi
pop esi
pop ebp
pop ebx
add esp, 4
mov dword [esp + 4], ecx
jmp sub.MSVCR90.dll_free
pop edi
pop esi
pop ebp
pop ebx
pop ecx
ret
Function at 0x42f910
Capabilities:
Read file on windows

Disassembly:
mov edx, dword [esp + 0xc]
test edx, edx
jne 0x42f91b
xor eax, eax
ret
mov eax, dword [esp + 4]
push eax
call fcn.0042f550
add esp, 4
push 0
lea ecx, [esp + 0x10]
push ecx
push edx
mov edx, dword [esp + 0x14]
push edx
push eax
call dword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
jne 0x42f95d
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0x26
je 0x42f918
cmp eax, 0x6d
je 0x42f918
push eax
call fcn.00458a10
add esp, 4
or eax, 0xffffffff
ret
mov eax, dword [esp + 0xc]
ret

Function at 0x42ff70
Capabilities:
Get disk information

Disassembly:
push esi
call dword [sym.imp.KERNEL32.dll_GetLogicalDrives]
mov esi, eax
movsx eax, byte [esp + 8]
push eax
call dword [sym.imp.MSVCR90.dll_toupper]
mov cl, al
sub cl, 0x41
add esp, 4
cmp cl, 0x19
ja 0x42ffaa
movsx ecx, al
sub ecx, 0x41
mov edx, 1
shl edx, cl
test esi, edx
je 0x42ffaa
mov eax, 1
pop esi
ret
xor eax, eax
pop esi
ret
Function at 0x43ed80
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
mov eax, dword [edx]
push ecx
push eax
call dword [sym.imp.WS2_32.dll_recv]
ret

Function at 0x43eea0
Capabilities:
Set socket configuration

Disassembly:
mov ecx, dword [esp + 4]
mov dl, byte [ecx + 0xc]
not dl
and dl, 1
push esi
mov esi, dword [esp + 0x10]
mov byte [esi], dl
mov edx, dword [ecx + 0x114]
xor eax, eax
cmp edx, 3
je 0x43ef00
cmp edx, 5
je 0x43ef00
mov edx, dword [ecx + 0xc]
mov esi, edx
cmp byte [esp + 0xc], al
je 0x43eed9
mov dword [esp + 8], eax
and esi, 0xfffffffe
jmp 0x43eee4
mov dword [esp + 8], 1
or esi, 1
mov dword [ecx + 0xc], esi
cmp edx, esi
je 0x43ef11
mov ecx, dword [ecx]
lea eax, [esp + 8]
push eax
push 0x8004667e
push ecx
call dword [sym.imp.WS2_32.dll_ioctlsocket]
pop esi
ret
mov edx, dword [ecx + 0xc]
not edx
and edx, 1
xor eax, eax
cmp dl, byte [esp + 0xc]
setne al
pop esi
ret

Function at 0x43f210
Capabilities:
Get socket status

Disassembly:
sub esp, 0x210
lea ecx, [esp]
push ecx
lea edx, [esp + 0x110]
push edx
mov dword [esp + 8], eax
push 0
lea eax, [esp + 0x14]
push eax
push esi
mov dword [esp + 0x18], 0
mov dword [esp + 0x20], esi
mov dword [esp + 0x1c], 1
mov dword [esp + 0x124], esi
mov dword [esp + 0x120], 1
call dword [sym.imp.WS2_32.dll_select]
xor ecx, ecx
test eax, eax
setle cl
mov eax, ecx
test eax, eax
je 0x43f277
xor edx, edx
test eax, eax
setge dl
mov al, dl
add esp, 0x210
ret
lea eax, [esp + 8]
push eax
push esi
call sub.WS2_32.dll___WSAFDIsSet
test eax, eax
jne 0x43f2a8
lea ecx, [esp + 0x10c]
push ecx
push esi
call sub.WS2_32.dll___WSAFDIsSet
test eax, eax
jne 0x43f2a8
xor edx, edx
test eax, eax
sete dl
mov al, dl
add esp, 0x210
ret
mov eax, 1
xor edx, edx
test eax, eax
sete dl
mov al, dl
add esp, 0x210
ret

Function at 0x43f820
Capabilities:
Resolve dns

Disassembly:
mov edx, dword [esp + 4]
movzx eax, word [edx]
xor ecx, ecx
sub eax, 2
je 0x43f838
sub eax, 0x15
jne 0x43f83d
lea ecx, [eax + 0x1c]
jmp 0x43f83d
mov ecx, 0x10
mov eax, dword [esp + 0x18]
push eax
mov eax, dword [esp + 0x18]
push eax
mov eax, dword [esp + 0x18]
push eax
mov eax, dword [esp + 0x18]
push eax
mov eax, dword [esp + 0x18]
push eax
push ecx
push edx
call dword [sym.imp.WS2_32.dll_getnameinfo]
ret
Function at 0x440ac0
Capabilities:
Authenticate hmac
Encode data using xor

Disassembly:
push esi
push edi
mov esi, ecx
call fcn.00440aa0
mov edi, dword [esp + 0x10]
mov eax, dword [esp + 0xc]
cmp edi, 0x40
ja 0x440ae5
mov ecx, dword [esi]
push edi
push eax
push ecx
call sub.MSVCR90.dll_memcpy
add esp, 0xc
jmp 0x440b07
mov edx, dword [esi + 0x10]
mov edx, dword [edx + 4]
push ebx
lea ebx, [esi + 0x10]
push edi
push eax
mov ecx, ebx
call edx
mov ecx, dword [esi]
mov eax, dword [ebx]
mov edx, dword [eax + 8]
push ecx
mov ecx, ebx
call edx
mov edi, 0x10
pop ebx
mov ecx, dword [esi]
mov eax, 0x40
sub eax, edi
push eax
add ecx, edi
push 0
push ecx
call sub.MSVCR90.dll_memset
add esp, 0xc
xor eax, eax
mov edx, dword [esi]
movzx ecx, byte [edx + eax]
mov edx, dword [esi + 4]
xor cl, 0x5c
mov byte [eax + edx], cl
mov ecx, dword [esi]
xor byte [ecx + eax], 0x36
mov edx, dword [esi]
add ecx, eax
movzx ecx, byte [edx + eax + 1]
mov edx, dword [esi + 4]
xor cl, 0x5c
mov byte [edx + eax + 1], cl
mov ecx, dword [esi]
xor byte [ecx + eax + 1], 0x36
mov edx, dword [esi]
lea ecx, [ecx + eax + 1]
movzx ecx, byte [edx + eax + 2]
mov edx, dword [esi + 4]
xor cl, 0x5c
mov byte [edx + eax + 2], cl
mov ecx, dword [esi]
xor byte [ecx + eax + 2], 0x36
mov edx, dword [esi]
lea ecx, [ecx + eax + 2]
movzx ecx, byte [edx + eax + 3]
mov edx, dword [esi + 4]
xor cl, 0x5c
mov byte [edx + eax + 3], cl
mov ecx, dword [esi]
xor byte [ecx + eax + 3], 0x36
lea ecx, [ecx + eax + 3]
add eax, 4
cmp eax, 0x40
jb 0x440b20
pop edi
pop esi
ret 8

Function at 0x440bc0
Capabilities:
Authenticate hmac
Encode data using xor

Disassembly:
push esi
push edi
mov esi, ecx
call fcn.00440ba0
mov edi, dword [esp + 0x10]
mov eax, dword [esp + 0xc]
cmp edi, 0x40
ja 0x440be5
mov ecx, dword [esi]
push edi
push eax
push ecx
call sub.MSVCR90.dll_memcpy
add esp, 0xc
jmp 0x440c07
mov edx, dword [esi + 0x10]
mov edx, dword [edx + 4]
push ebx
lea ebx, [esi + 0x10]
push edi
push eax
mov ecx, ebx
call edx
mov ecx, dword [esi]
mov eax, dword [ebx]
mov edx, dword [eax + 8]
push ecx
mov ecx, ebx
call edx
mov edi, 0x14
pop ebx
mov ecx, dword [esi]
mov eax, 0x40
sub eax, edi
push eax
add ecx, edi
push 0
push ecx
call sub.MSVCR90.dll_memset
add esp, 0xc
xor eax, eax
mov edx, dword [esi]
movzx ecx, byte [edx + eax]
mov edx, dword [esi + 4]
xor cl, 0x5c
mov byte [eax + edx], cl
mov ecx, dword [esi]
xor byte [ecx + eax], 0x36
mov edx, dword [esi]
add ecx, eax
movzx ecx, byte [edx + eax + 1]
mov edx, dword [esi + 4]
xor cl, 0x5c
mov byte [edx + eax + 1], cl
mov ecx, dword [esi]
xor byte [ecx + eax + 1], 0x36
mov edx, dword [esi]
lea ecx, [ecx + eax + 1]
movzx ecx, byte [edx + eax + 2]
mov edx, dword [esi + 4]
xor cl, 0x5c
mov byte [edx + eax + 2], cl
mov ecx, dword [esi]
xor byte [ecx + eax + 2], 0x36
mov edx, dword [esi]
lea ecx, [ecx + eax + 2]
movzx ecx, byte [edx + eax + 3]
mov edx, dword [esi + 4]
xor cl, 0x5c
mov byte [edx + eax + 3], cl
mov ecx, dword [esi]
xor byte [ecx + eax + 3], 0x36
lea ecx, [ecx + eax + 3]
add eax, 4
cmp eax, 0x40
jb 0x440c20
pop edi
pop esi
ret 8