joyce8/EMBER2024-capa huggingface dataset:
Function at 0x425e10
Capabilities:
Get disk information

Disassembly:
push 0xffffffffffffffff
push 0x44dc4b
mov eax, dword fs:[0]
push eax
sub esp, 0x338
mov eax, dword [0x466d98]
xor eax, esp
mov dword [esp + 0x334], eax
push ebx
push ebp
push esi
push edi
mov eax, dword [0x466d98]
xor eax, esp
push eax
lea eax, [esp + 0x34c]
mov dword fs:[0], eax
mov esi, dword [esp + 0x35c]
mov eax, dword [esp + 0x360]
xor ebx, ebx
mov dword [esp + 0x14], ebx
mov edi, 0xf
mov dword [esp + 0x1c], esi
mov dword [esp + 0x18], eax
mov dword [esp + 0x38], edi
mov dword [esp + 0x34], ebx
mov byte [esp + 0x24], bl
cmp eax, ebx
mov dword [esp + 0x354], ebx
mov byte [esp + 0x140], bl
je 0x425fc2
lea eax, [esp + 0x140]
push eax
push 0x103
call dword [sym.imp.KERNEL32.dll_GetLogicalDriveStringsA]
test eax, eax
je 0x425fc2
mov cx, word [0x453a54]
mov dl, byte [0x453a56]
mov word [esp + 0x14], cx
mov byte [esp + 0x16], dl
xor edi, edi
lea ebp, [esp + 0x140]
jmp 0x425ed0
mov al, byte [ebp]
push 0x104
lea ecx, [esp + 0x40]
push ecx
lea edx, [esp + 0x1c]
push edx
mov byte [esp + 0x20], al
call dword [sym.imp.KERNEL32.dll_QueryDosDeviceA]
test eax, eax
je 0x425f81
lea eax, [esp + 0x3c]
lea edx, [eax + 1]
jmp 0x425f00
mov cl, byte [eax]
add eax, 1
cmp cl, bl
jne 0x425f00
sub eax, edx
mov esi, eax
cmp esi, 0x104
jae 0x425f7d
mov ecx, dword [esp + 0x18]
push esi
lea eax, [esp + 0x40]
push eax
push ecx
call fcn.00438851
add esp, 0xc
mov edi, eax
neg edi
sbb edi, edi
inc edi
je 0x425f7d
mov edx, dword [esp + 0x18]
add edx, esi
push edx
lea eax, [esp + 0x18]
push eax
lea ecx, [esp + 0x24c]
push 0x453a4c
push ecx
call fcn.0043455d
lea eax, [esp + 0x254]
add esp, 0x10
lea edx, [eax + 1]
lea esp, [esp]
mov cl, byte [eax]
add eax, 1
cmp cl, bl
jne 0x425f60
sub eax, edx
push eax
lea edx, [esp + 0x248]
push edx
lea ecx, [esp + 0x28]
call fcn.00405b30
mov esi, dword [esp + 0x1c]
mov al, byte [ebp]
add ebp, 1
test al, al
jne 0x425f81
cmp edi, ebx
jne 0x425f98
cmp byte [ebp], bl
jne 0x425ed0
push 0xffffffffffffffff
push ebx
lea ecx, [esp + 0x28]
push ecx
mov dword [esi + 0x18], 0xf
mov dword [esi + 0x14], ebx
mov ecx, esi
mov byte [esi + 4], bl
call fcn.00404b70
cmp dword [esp + 0x38], 0x10
jb 0x425fee
mov edx, dword [esp + 0x24]
push edx
jmp 0x425fe6
push 0xffffffffffffffff
push ebx
lea eax, [esp + 0x28]
mov dword [esi + 0x18], edi
mov dword [esi + 0x14], ebx
push eax
mov ecx, esi
mov byte [esi + 4], bl
call fcn.00404b70
cmp dword [esp + 0x38], 0x10
jb 0x425fee
mov ecx, dword [esp + 0x24]
push ecx
call fcn.00433d63
add esp, 4
mov eax, esi
mov ecx, dword [esp + 0x34c]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebp
pop ebx
mov ecx, dword [esp + 0x334]
xor ecx, esp
call fcn.00433d68
add esp, 0x344
ret
Function at 0x427fc0
Capabilities:
Terminate process

Disassembly:
push ecx
mov eax, dword [esp + 8]
test eax, eax
push esi
mov esi, ecx
je 0x4280a6
cmp byte [eax], 0
je 0x4280a6
cmp dword [esi + 0xc], 0
jne 0x427fe4
call fcn.00427470
mov eax, dword [esi + 8]
push ebx
push ebp
mov ebp, dword [sym.imp.KERNEL32.dll_OpenProcess]
lea ebx, [esi + 4]
push edi
mov edi, dword [eax]
mov dword [esp + 0x10], 1
lea ecx, [ecx]
cmp ebx, ebx
mov esi, dword [ebx + 4]
je 0x42800c
call fcn.0043471e
cmp edi, esi
je 0x42809a
cmp edi, dword [ebx + 4]
jne 0x42801e
call fcn.0043471e
mov esi, dword [edi + 8]
cmp dword [esi + 0x1c], 0x10
jb 0x42802c
mov eax, dword [esi + 8]
jmp 0x42802f
lea eax, [esi + 8]
mov ecx, dword [esp + 0x18]
push ecx
push eax
call fcn.00434220
add esp, 8
test eax, eax
je 0x428061
cmp dword [esi + 0x38], 0x10
jb 0x42804c
mov eax, dword [esi + 0x24]
jmp 0x42804f
lea eax, [esi + 0x24]
mov edx, dword [esp + 0x18]
push edx
push eax
call fcn.00434220
add esp, 8
test eax, eax
jne 0x428089
mov eax, dword [esi]
push eax
push 0
push 1
call ebp
mov esi, eax
cmp esi, 0xffffffff
je 0x428082
push 0xffffffffffffffff
push esi
call dword [sym.imp.KERNEL32.dll_TerminateProcess]
test eax, eax
jne 0x428082
mov dword [esp + 0x10], eax
push esi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
cmp edi, dword [ebx + 4]
jne 0x428093
call fcn.0043471e
mov edi, dword [edi]
jmp 0x428000
mov eax, dword [esp + 0x10]
pop edi
pop ebp
pop ebx
pop esi
pop ecx
ret 4
xor eax, eax
pop esi
pop ecx
ret 4

Function at 0x428be0
Capabilities:
Access peb ldr_data
Get ntdll base address

Disassembly:
push 0xffffffffffffffff
push 0x44e23b
mov eax, dword fs:[0]
push eax
push ecx
push esi
push edi
mov eax, dword [0x466d98]
xor eax, esp
push eax
lea eax, [esp + 0x10]
mov dword fs:[0], eax
mov esi, ecx
mov dword [esp + 0xc], esi
mov eax, dword [esp + 0x20]
xor edi, edi
push edi
push 0x3c
lea ecx, [esi + 0x28]
mov dword [esi], vtable.BaseLib::CClientSession.0
mov dword [esi + 0x24], eax
call fcn.0042b7d0
mov ecx, dword [esp + 0x24]
mov edx, dword [esp + 0x28]
mov eax, dword [esp + 0x2c]
mov dword [esi + 0x30], ecx
lea ecx, [esi + 0x3c]
mov dword [esi + 0x34], edx
mov dword [esi + 0x38], eax
call fcn.004216d0
lea ecx, [esi + 0x68]
mov dword [esp + 0x18], edi
call fcn.004216d0
mov dword [esi + 0x94], edi
mov dword [esi + 0x98], edi
mov dword [esi + 0x9c], edi
mov eax, esi
mov ecx, dword [esp + 0x10]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
add esp, 0x10
ret 0x10
Function at 0x428ed0
Capabilities:
Read file on windows

Disassembly:
push 0xffffffffffffffff
push 0x44e2e1
mov eax, dword fs:[0]
push eax
mov eax, 0x10c0
call fcn.00435600
mov eax, dword [0x466d98]
xor eax, esp
mov dword [esp + 0x10bc], eax
push ebx
push ebp
push esi
push edi
mov eax, dword [0x466d98]
xor eax, esp
push eax
lea eax, [esp + 0x10d4]
mov dword fs:[0], eax
mov esi, dword [esp + 0x10e8]
mov eax, dword [esp + 0x10e4]
xor ebp, ebp
test esi, esi
mov ebx, ecx
mov dword [esp + 0x14], eax
jbe 0x4290e4
mov eax, dword [ebx + 0x98]
test eax, eax
je 0x428f40
cmp dword [eax], 0
jne 0x429113
mov edi, 0x1000
cmp esi, edi
jae 0x428f4b
mov edi, esi
mov ecx, dword [esp + 0x14]
push ecx
push 1
lea edx, [esp + 0xd8]
push edi
push edx
call fcn.00435fa3
add esp, 0x10
cmp dword [esp + 0x10ec], 0
je 0x428f83
lea eax, [esp + 0xd0]
push edi
push eax
call fcn.00419360
add esp, 8
jmp 0x429092
cmp dword [ebx + 0x9c], 0
je 0x429092
push 1
push 2
lea ecx, [esp + 0x58]
call fcn.00404370
mov ecx, dword [ebx + 0x9c]
push ecx
lea ecx, [esp + 0x54]
mov dword [esp + 0x10e0], 0
call fcn.00403e80
lea edx, [esp + 0x18]
push edx
lea ecx, [esp + 0x54]
call fcn.004044d0
mov esi, eax
lea eax, [esp + 0x34]
push eax
lea ecx, [esp + 0x54]
mov byte [esp + 0x10e0], 1
call fcn.004044d0
cmp dword [eax + 0x18], 0x10
mov esi, dword [esi + 0x14]
mov byte [esp + 0x10dc], 2
jb 0x428ff4
mov eax, dword [eax + 4]
jmp 0x428ff7
add eax, 4
push edi
lea ecx, [esp + 0xd4]
push ecx
push esi
push eax
call fcn.0042c100
add esp, 0x10
cmp dword [esp + 0x4c], 0x10
jb 0x42901e
mov edx, dword [esp + 0x38]
push edx
call fcn.00433d63
add esp, 4
cmp dword [esp + 0x30], 0x10
mov esi, 0xf
mov dword [esp + 0x4c], esi
mov dword [esp + 0x48], 0
mov byte [esp + 0x38], 0
jb 0x429048
mov eax, dword [esp + 0x1c]
push eax
call fcn.00433d63
add esp, 4
lea ecx, [esp + 0x9c]
mov dword [esp + 0x30], esi
mov dword [esp + 0x2c], 0
mov byte [esp + 0x1c], 0
mov dword [esp + 0x10dc], 0xffffffff
call fcn.00404450
lea ecx, [esp + 0x9c]
push ecx
mov dword [esp + 0xa0], vtable.std::ios_base.0
call fcn.004339e9
mov esi, dword [esp + 0x10ec]
add esp, 4
mov edx, dword [ebx]
mov edx, dword [edx + 0xc]
push edi
lea eax, [esp + 0xd4]
push eax
mov ecx, ebx
call edx
test eax, eax
jle 0x429113
add ebp, 1
mov eax, 0x66666667
imul ebp
sar edx, 3
mov eax, edx
shr eax, 0x1f
add eax, edx
lea eax, [eax + eax*4]
add eax, eax
sub esi, edi
add eax, eax
mov ecx, ebp
sub ecx, eax
mov dword [esp + 0x10e8], esi
jne 0x4290dc
push 1
call fcn.00421280
add esp, 4
test esi, esi
ja 0x428f2d
mov eax, 1
mov ecx, dword [esp + 0x10d4]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebp
pop ebx
mov ecx, dword [esp + 0x10bc]
xor ecx, esp
call fcn.00433d68
add esp, 0x10cc
ret 0xc
xor eax, eax
jmp 0x4290e9
Function at 0x42a250
Capabilities:
Check for time delay via gettickcount
Query service status
Start service

Disassembly:
push 0xffffffffffffffff
push 0x44e530
mov eax, dword fs:[0]
push eax
sub esp, 0x20
push ebx
push ebp
push esi
push edi
mov eax, dword [0x466d98]
xor eax, esp
push eax
lea eax, [esp + 0x34]
mov dword fs:[0], eax
push 4
push 0
push 0
call dword [sym.imp.ADVAPI32.dll_OpenSCManagerA]
mov ebx, eax
mov dword [esp + 0x14], ebx
test ebx, ebx
mov dword [esp + 0x3c], 0
jne 0x42a2a4
push eax
call dword [sym.imp.ADVAPI32.dll_CloseServiceHandle]
or eax, 0xffffffff
jmp 0x42a393
mov eax, dword [esp + 0x44]
push 0xf01ff
push eax
push ebx
call dword [sym.imp.ADVAPI32.dll_OpenServiceA]
mov esi, eax
mov dword [esp + 0x44], esi
test esi, esi
mov byte [esp + 0x3c], 1
push 0
je 0x42a375
push 0
push esi
call dword [sym.imp.ADVAPI32.dll_StartServiceA]
test eax, eax
je 0x42a374
lea ecx, [esp + 0x18]
push ecx
push esi
call dword [sym.imp.ADVAPI32.dll_QueryServiceStatus]
test eax, eax
je 0x42a374
call sub.KERNEL32.dll_GetTickCount
cmp dword [esp + 0x1c], 2
mov ebp, dword [esp + 0x2c]
mov edi, eax
jne 0x42a367
mov eax, 0xcccccccd
mul dword [esp + 0x30]
shr edx, 3
cmp edx, 0x3e8
jae 0x42a31c
mov edx, 0x3e8
jmp 0x42a329
cmp edx, 0x2710
jbe 0x42a329
mov edx, 0x2710
push edx
call dword [sym.imp.KERNEL32.dll_Sleep]
lea edx, [esp + 0x18]
push edx
push esi
call dword [sym.imp.ADVAPI32.dll_QueryServiceStatus]
test eax, eax
je 0x42a367
cmp dword [esp + 0x2c], ebp
jbe 0x42a353
call sub.KERNEL32.dll_GetTickCount
mov ebp, dword [esp + 0x2c]
mov edi, eax
jmp 0x42a360
call sub.KERNEL32.dll_GetTickCount
sub eax, edi
cmp eax, dword [esp + 0x30]
ja 0x42a367
cmp dword [esp + 0x1c], 2
je 0x42a301
cmp dword [esp + 0x1c], 4
je 0x42a385
call dword [sym.imp.KERNEL32.dll_GetLastError]
push esi
mov esi, dword [sym.imp.ADVAPI32.dll_CloseServiceHandle]
call esi
push ebx
call esi
or eax, 0xffffffff
jmp 0x42a393
push esi
mov esi, dword [sym.imp.ADVAPI32.dll_CloseServiceHandle]
call esi
push ebx
call esi
xor eax, eax
mov ecx, dword [esp + 0x34]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x2c
ret 4
Function at 0x42a3f0
Capabilities:
Link many functions at runtime

Disassembly:
push 0xffffffffffffffff
push 0x44e558
mov eax, dword fs:[0]
push eax
sub esp, 0x3c
mov eax, dword [0x466d98]
xor eax, esp
mov dword [esp + 0x38], eax
push ebx
push esi
push edi
mov eax, dword [0x466d98]
xor eax, esp
push eax
lea eax, [esp + 0x4c]
mov dword fs:[0], eax
mov esi, ecx
mov eax, dword [esi]
xor ebx, ebx
cmp eax, ebx
jne 0x42a4c0
lea eax, [esp + 0x10]
push eax
call fcn.00417160
push str.fileprotectdll.dll
push eax
lea ecx, [esp + 0x38]
push ecx
mov dword [esp + 0x64], ebx
call fcn.00414830
mov edi, 0x10
add esp, 0x10
cmp dword [esp + 0x28], edi
mov dword [esp + 0x54], 0xffffffff
jb 0x42a470
mov edx, dword [esp + 0x14]
push edx
call fcn.00433d63
add esp, 4
cmp dword [esp + 0x44], edi
mov eax, dword [esp + 0x30]
mov dword [esp + 0x28], 0xf
mov dword [esp + 0x24], ebx
mov byte [esp + 0x14], bl
jae 0x42a48e
lea eax, [esp + 0x30]
push eax
call dword [sym.imp.KERNEL32.dll_LoadLibraryA]
cmp dword [esp + 0x44], edi
mov dword [esi], eax
jb 0x42a4aa
mov eax, dword [esp + 0x30]
push eax
call fcn.00433d63
add esp, 4
mov eax, dword [esi]
cmp eax, ebx
mov dword [esp + 0x44], 0xf
mov dword [esp + 0x40], ebx
mov byte [esp + 0x30], bl
je 0x42a531
mov edi, dword [sym.imp.KERNEL32.dll_GetProcAddress]
push str.FpOpen
push eax
call edi
mov ecx, dword [esi]
push str.FpSetProtectFile
push ecx
mov dword [esi + 4], eax
call edi
mov edx, dword [esi]
push str.FpSetProtectFileA
push edx
mov dword [esi + 8], eax
call edi
mov dword [esi + 0xc], eax
mov eax, dword [esi]
push str.FpSetWhiteProcess
push eax
call edi
mov ecx, dword [esi]
push str.FpSetWhiteProcessA
push ecx
mov dword [esi + 0x10], eax
call edi
mov edx, dword [esi]
push str.FpReset
push edx
mov dword [esi + 0x14], eax
call edi
mov dword [esi + 0x18], eax
mov eax, dword [esi]
push str.FpStartProtectLog
push eax
call edi
mov dword [esi + 0x1c], eax
mov esi, dword [esi + 4]
cmp esi, ebx
jne 0x42a535
push 0xc1
call dword [sym.imp.KERNEL32.dll_SetLastError]
xor eax, eax
jmp 0x42a537
call esi
mov ecx, dword [esp + 0x4c]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [esp + 0x38]
xor ecx, esp
call fcn.00433d68
add esp, 0x48
ret

Function at 0x42a700
Capabilities:
Hash data with md5

Disassembly:
mov eax, dword [esp + 4]
xor ecx, ecx
mov dword [eax + 0x14], ecx
mov dword [eax + 0x10], ecx
mov dword [eax], 0x67452301
mov dword [eax + 4], 0xefcdab89
mov dword [eax + 8], 0x98badcfe
mov dword [eax + 0xc], 0x10325476
ret 4
Function at 0x42b080
Capabilities:
Terminate thread

Disassembly:
push 0xffffffffffffffff
push 0x44e596
mov eax, dword fs:[0]
push eax
sub esp, 0xa8
push ebx
push ebp
push esi
push edi
mov eax, dword [0x466d98]
xor eax, esp
push eax
lea eax, [esp + 0xbc]
mov dword fs:[0], eax
mov ebp, ecx
mov eax, dword [ebp + 0xc]
mov ebx, dword [ebp + 8]
xor edi, edi
lea esi, [ebp + 0x18]
test esi, esi
mov dword [esp + 0x14], edi
mov dword [esp + 0x18], eax
je 0x42b0cd
push esi
call dword [sym.imp.KERNEL32.dll_EnterCriticalSection]
mov eax, dword [ebp + 0x14]
xor ecx, ecx
cmp eax, ecx
jbe 0x42b0e8
mov dword [esp + 0x14], eax
mov dword [ebp + 4], ecx
mov dword [ebp + 0x14], ecx
mov dword [ebp + 8], ecx
mov dword [ebp + 0xc], ecx
mov edi, eax
cmp esi, ecx
je 0x42b0f3
push esi
call dword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
test edi, edi
jle 0x42b2a6
cmp dword [esp + 0xcc], 0
je 0x42b26e
call sub.KERNEL32.dll_GetCurrentThreadId
xor ecx, ecx
test edi, edi
jle 0x42b12e
mov edx, dword [esp + 0x18]
cmp dword [edx + ecx*4], eax
je 0x42b126
add ecx, 1
cmp ecx, edi
jl 0x42b114
jmp 0x42b12e
cmp ecx, edi
jl 0x42b26e
xor esi, esi
test edi, edi
jle 0x42b26e
mov edi, dword [esp + 0xd0]
nop
mov eax, dword [ebx + esi*4]
test eax, eax
je 0x42b25d
push edi
push eax
mov dword [esp + 0x24], 0xffffffff
call dword [sym.imp.KERNEL32.dll_WaitForSingleObject]
cmp eax, 0x102
jne 0x42b244
push 1
push 2
lea ecx, [esp + 0x44]
call fcn.00404370
push edi
lea eax, [esp + 0x40]
push 0x4542a0
push eax
mov dword [esp + 0xd0], 0
call fcn.004073a0
add esp, 8
mov ecx, eax
call fcn.00403e80
lea ecx, [esp + 0x20]
push ecx
lea ecx, [esp + 0x40]
call fcn.004044d0
cmp dword [eax + 0x18], 0x10
mov byte [esp + 0xc4], 1
jb 0x42b1b9
mov eax, dword [eax + 4]
jmp 0x42b1bc
add eax, 4
push eax
push str.BaseLib::CTask::Close
push 0xbf
push str..common_task.cpp
push 0xf0000000
call fcn.004075e0
mov ecx, eax
call fcn.0041f2e0
cmp dword [esp + 0x38], 0x10
jb 0x42b1f1
mov edx, dword [esp + 0x24]
push edx
call fcn.00433d63
add esp, 4
lea ecx, [esp + 0x88]
mov dword [esp + 0x38], 0xf
mov dword [esp + 0x34], 0
mov byte [esp + 0x24], 0
mov dword [esp + 0xc4], 0xffffffff
call fcn.00404450
lea eax, [esp + 0x88]
push eax
mov dword [esp + 0x8c], vtable.std::ios_base.0
call fcn.004339e9
mov ecx, dword [ebx + esi*4]
add esp, 4
push 0
push ecx
call dword [sym.imp.KERNEL32.dll_TerminateThread]
mov eax, dword [ebx + esi*4]
lea edx, [esp + 0x1c]
push edx
push eax
call dword [sym.imp.KERNEL32.dll_GetExitCodeThread]
mov ecx, dword [ebp + 0x10]
mov edx, dword [esp + 0x1c]
mov dword [ecx + esi*4], edx
add esi, 1
cmp esi, dword [esp + 0x14]
jl 0x42b140
mov edi, dword [esp + 0x14]
xor esi, esi
test edi, edi
jle 0x42b293
mov edi, dword [sym.imp.KERNEL32.dll_CloseHandle]
lea ebx, [ebx]
mov eax, dword [ebx + esi*4]
test eax, eax
je 0x42b28a
push eax
call edi
add esi, 1
cmp esi, dword [esp + 0x14]
jl 0x42b280
push ebx
call fcn.00433fb6
mov eax, dword [esp + 0x1c]
push eax
call fcn.00433fb6
add esp, 8
xor eax, eax
mov ecx, dword [esp + 0xbc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebp
pop ebx
add esp, 0xb4
ret 8
Function at 0x42b860
Capabilities:
Initialize winsock library

Disassembly:
sub esp, 0x194
mov eax, dword [0x466d98]
xor eax, esp
mov dword [esp + 0x190], eax
xor ecx, ecx
mov ch, byte [esp + 0x19c]
lea eax, [esp]
push eax
mov cl, byte [esp + 0x19c]
push ecx
call dword [sym.imp.WS2_32.dll_WSAStartup]
mov ecx, dword [esp + 0x190]
xor ecx, esp
call fcn.00433d68
add esp, 0x194
ret

Function at 0x42b9d0
Capabilities:
Get socket status

Disassembly:
sub esp, 0x318
push ebx
push esi
mov esi, dword [esp + 0x324]
push edi
xor edi, edi
push esi
lea ecx, [esp + 0x220]
mov dword [esp + 0x324], edi
mov dword [esp + 0x220], edi
mov dword [esp + 0x21c], edi
mov dword [esp + 0x118], edi
call fcn.0042b810
push esi
lea ecx, [esp + 0x118]
call fcn.0042b810
push esi
lea ecx, [esp + 0x10]
mov dword [esp + 0x114], edi
mov dword [esp + 0x10], edi
call fcn.0042b810
mov ebx, dword [esp + 0x32c]
xor eax, eax
cmp dword [esp + 0x110], edi
lea ecx, [esp + 0xc]
setle al
push ebx
lea edx, [esp + 0x118]
sub eax, 1
and eax, ecx
xor ecx, ecx
cmp dword [esp + 0x21c], edi
push eax
setle cl
sub ecx, 1
and ecx, edx
push ecx
push edi
push edi
call dword [sym.imp.WS2_32.dll_select]
cmp eax, 0xffffffff
jne 0x42ba8d
call dword [sym.imp.WS2_32.dll_WSAGetLastError]
mov esi, eax
call fcn.00438518
pop edi
mov dword [eax], esi
pop esi
or eax, 0xffffffff
pop ebx
add esp, 0x318
ret
cmp eax, edi
jg 0x42baaf
jne 0x42baa2
cmp ebx, edi
je 0x42baa2
call fcn.00438518
mov dword [eax], 0x274c
pop edi
pop esi
or eax, 0xffffffff
pop ebx
add esp, 0x318
ret
lea eax, [esp + 0xc]
push eax
push esi
call sub.WS2_32.dll___WSAFDIsSet
test eax, eax
jne 0x42baa2
pop edi
mov eax, esi
pop esi
pop ebx
add esp, 0x318
ret

Function at 0x42bbf0
Capabilities:
Print debug messages

Disassembly:
sub esp, 0x108
mov eax, dword [0x466d98]
xor eax, esp
mov dword [esp + 0x104], eax
push esi
push edi
mov edi, dword [esp + 0x114]
push 0x104
lea eax, [esp + 0xc]
push 0
push eax
call fcn.00435580
mov eax, dword [esp + 0x124]
add esp, 0xc
test eax, eax
jne 0x42bc55
mov ecx, dword [str.c:ywSMP.log]
mov edx, dword [0x454330]
mov eax, dword [0x454334]
mov dword [esp + 8], ecx
mov cl, byte [0x454338]
mov dword [esp + 0xc], edx
mov dword [esp + 0x10], eax
mov byte [esp + 0x14], cl
jmp 0x42bc81
cmp eax, 1
jne 0x42bc81
mov edx, dword [str.c:GZdbg.log]
mov eax, dword [0x454320]
mov ecx, dword [0x454324]
mov dword [esp + 8], edx
mov dl, byte [0x454328]
mov dword [esp + 0xc], eax
mov dword [esp + 0x10], ecx
mov byte [esp + 0x14], dl
lea eax, [esp + 8]
push 0x452540
push eax
call fcn.00436394
mov esi, eax
add esp, 8
test esi, esi
je 0x42bca9
push esi
push edi
call fcn.00438e02
push esi
call fcn.00435c8b
add esp, 0xc
push edi
call dword [sym.imp.KERNEL32.dll_OutputDebugStringA]
mov ecx, dword [esp + 0x10c]
pop edi
pop esi
xor ecx, esp
call fcn.00433d68
add esp, 0x108
ret
Function at 0x42bf50
Capabilities:
Encrypt data using rc4 ksa

Disassembly:
push ebx
push ebp
push esi
mov esi, dword [esp + 0x18]
push edi
xor eax, eax
lea ebx, [ebx]
mov byte [eax + esi], al
add eax, 1
cmp eax, 0x100
jb 0x42bf60
mov ebp, dword [esp + 0x18]
mov ebx, dword [esp + 0x14]
xor edi, edi
xor ecx, ecx
lea esp, [esp]
xor edx, edx
mov eax, ecx
div ebp
add ecx, 1
movzx eax, byte [edx + ebx]
movzx edx, byte [ecx + esi - 1]
add edx, edi
add eax, edx
and eax, 0xff
cmp ecx, 0x100
mov edi, eax
movzx edx, byte [edi + esi]
mov al, byte [ecx + esi - 1]
mov byte [ecx + esi - 1], dl
mov byte [edi + esi], al
jb 0x42bf80
pop edi
pop esi
pop ebp
pop ebx
ret

Function at 0x42bfc0
Capabilities:
Encrypt data using rc4 prga

Disassembly:
sub esp, 0x104
mov eax, dword [0x466d98]
xor eax, esp
mov dword [esp + 0x100], eax
cmp byte [esp + 0x108], 0x31
push esi
mov esi, dword [esp + 0x110]
push edi
mov edi, dword [esp + 0x11c]
jne 0x42c086
push ebp
push pe_nt_image_headers32
lea eax, [esp + 0x10]
push 0
push eax
call fcn.00435580
mov edx, dword [esp + 0x128]
lea ecx, [esp + 0x18]
push ecx
push edx
push esi
call fcn.0042bf50
mov ebp, dword [esp + 0x13c]
add esp, 0x18
xor ecx, ecx
xor esi, esi
xor eax, eax
test ebp, ebp
jbe 0x42c085
push ebx
lea esp, [esp]
add ecx, 1
and ecx, 0xff
movzx edx, byte [esp + ecx + 0x10]
add edx, esi
and edx, 0xff
mov esi, edx
mov bl, byte [esp + esi + 0x10]
mov dl, byte [esp + ecx + 0x10]
mov byte [esp + ecx + 0x10], bl
mov byte [esp + esi + 0x10], dl
movzx ebx, byte [esp + ecx + 0x10]
movzx edx, dl
add edx, ebx
and edx, 0x800000ff
jns 0x42c072
dec edx
or edx, 0xffffff00
inc edx
movzx edx, dl
movzx edx, byte [esp + edx + 0x10]
xor byte [edi + eax], dl
add eax, 1
cmp eax, ebp
jb 0x42c030
pop ebx
pop ebp
mov ecx, dword [esp + 0x108]
pop edi
pop esi
xor ecx, esp
call fcn.00433d68
add esp, 0x104
ret
Function at 0x42eda0
Capabilities:
Get disk information

Disassembly:
mov eax, 0x1074
call fcn.00435600
mov eax, dword [0x466d98]
xor eax, esp
mov dword [esp + 0x1070], eax
push ebx
push esi
mov esi, dword [esp + 0x1080]
push edi
xor ebx, ebx
push 0xfff
lea eax, [esp + 0x81]
push ebx
xor edi, edi
push eax
mov dword [esp + 0x18], esi
mov dword [esp + 0x1c], edi
mov byte [esp + 0x88], bl
call fcn.00435580
add esp, 0xc
lea ecx, [esp + 0x7c]
push ecx
push 0xfff
call dword [sym.imp.KERNEL32.dll_GetLogicalDriveStringsA]
test eax, eax
je 0x42eed0
push ebp
mov ebp, dword [sym.imp.KERNEL32.dll_CreateFileA]
lea edi, [esp + 0x80]
push edi
call dword [sym.imp.KERNEL32.dll_GetDriveTypeA]
cmp eax, 3
jne 0x42eeb6
push 0x40
lea edx, [esp + 0x44]
push 0
push edx
call fcn.00435580
movsx eax, byte [edi]
push eax
lea ecx, [esp + 0x50]
push str.._c:
push ecx
call fcn.0043455d
add esp, 0x18
push 0
push 0x80
push 3
push 0
push 3
push bind
lea edx, [esp + 0x58]
push edx
call ebp
mov esi, eax
cmp esi, 0xffffffff
je 0x42eeb6
push 0
lea eax, [esp + 0x20]
push eax
push 0x20
lea ecx, [esp + 0x2c]
push ecx
push 0
push 0
push 0x560000
push esi
mov dword [esp + 0x3c], 0
call dword [sym.imp.KERNEL32.dll_DeviceIoControl]
test eax, eax
je 0x42eeaf
mov edx, dword [esp + 0x10]
mov eax, dword [edx + 0x1a4]
cmp eax, dword [esp + 0x28]
jne 0x42eeaf
push edi
call fcn.0041b1a0
add esp, 4
add dword [esp + 0x14], eax
adc ebx, 0
push esi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov cl, byte [edi]
add edi, 1
test cl, cl
jne 0x42eeb6
cmp byte [edi], cl
jne 0x42ee11
mov edi, dword [esp + 0x14]
mov esi, dword [esp + 0x10]
pop ebp
mov ecx, dword [esp + 0x107c]
mov dword [esi + 0x198], edi
shrd edi, ebx, 0xa
mov dword [esi + 0x19c], ebx
shr ebx, 0xa
mov dword [esi + 0x190], edi
pop edi
mov dword [esi + 0x194], ebx
pop esi
pop ebx
xor ecx, esp
call fcn.00433d68
add esp, 0x1074
ret 4

Function at 0x42ef10
Capabilities:
Get disk size

Disassembly:
sub esp, 8
push esi
mov esi, dword [esp + 0x10]
push edi
push 0
push 0
push 3
push 0
push 3
push 0xc0000000
push esi
call dword [sym.imp.KERNEL32.dll_CreateFileA]
mov edi, eax
xor eax, eax
cmp edi, 0xffffffff
mov dword [esp + 8], eax
mov dword [esp + 0xc], eax
mov dword [esp + 0x14], eax
je 0x42efe6
push eax
lea eax, [esp + 0x18]
push eax
push 8
lea ecx, [esp + 0x14]
push ecx
push 0
push 0
push 0x7405c
push edi
call dword [sym.imp.KERNEL32.dll_DeviceIoControl]
test eax, eax
je 0x42efc6
push ebx
mov ebx, dword [esp + 0x10]
push ebp
mov ebp, dword [esp + 0x10]
push 0
push 0x400
push ebx
push ebp
call fcn.00438100
push 0
push 0x400
push edx
push eax
call fcn.00438100
push 0
push 0x400
push edx
push eax
call fcn.00438100
mov dword [esi + 0x188], ebp
pop ebp
mov dword [esi + 0x18c], ebx
pop ebx
push edi
mov dword [esi + 0x180], eax
mov dword [esi + 0x184], edx
call dword [sym.imp.KERNEL32.dll_CloseHandle]
pop edi
pop esi
add esp, 8
ret 4
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
push 0x7405c
push str.IOCTL_DISK_GET_LENGTH_INFO:_d_t_errno_d_n
call fcn.004381c0
add esp, 0xc
push edi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
pop edi
pop esi
add esp, 8
ret 4