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

Disassembly:
push ebp
lea ebp, [esp - 0x808]
sub esp, 0x808
push 0xffffffffffffffff
push 0x10088080
mov eax, dword fs:[0]
push eax
sub esp, 0x28
mov eax, dword [0x100b2008]
xor eax, ebp
mov dword [ebp + 0x804], eax
push ebx
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov dword [ebp - 0x1c], ecx
mov edi, dword [sym.imp.KERNEL32.dll_GetLogicalDriveStringsW]
lea eax, [ebp + 4]
push eax
push 0x3fe
call edi
mov ebx, eax
mov dword [ebp - 0x14], ebx
test ebx, ebx
je 0x100723c7
lea edx, [ebp + 4]
mov dword [ebp], 0
xor esi, esi
mov dword [ebp - 0x10], edx
mov dword [ebp], esi
mov dword [ebp - 4], esi
cmp ebx, 0x3fe
jbe 0x100723ec
xor ecx, ecx
lea eax, [ebx + 2]
mov edx, 2
mul edx
seto cl
neg ecx
or ecx, eax
push ecx
call fcn.1007b64b
add esp, 4
mov dword [ebp - 0x10], eax
mov esi, eax
mov dword [ebp], esi
push eax
push ebx
call edi
test eax, eax
je 0x100723b1
cmp eax, ebx
ja 0x100723b1
mov edx, esi
xor ecx, ecx
mov ebx, eax
mov dword [ebp - 0x14], ebx
mov dword [edx + eax*2], ecx
jmp 0x10072414
mov dword [ebp - 4], 0xffffffff
mov eax, esi
test eax, eax
je 0x100723c7
push eax
call fcn.1007bcdd
add esp, 4
xor al, al
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [ebp + 0x804]
xor ecx, ebp
call fcn.1007b5d9
lea esp, [ebp + 0x808]
pop ebp
ret
lea eax, [ebx + ebx]
cmp eax, 0x800
jae 0x1007251f
xor ecx, ecx
mov word [ebp + eax + 4], cx
add eax, 2
cmp eax, 0x800
jae 0x1007251f
mov word [ebp + eax + 4], cx
xor eax, eax
xor edi, edi
test ebx, ebx
je 0x100724fe
mov ecx, dword [ebp - 0x14]
mov ebx, 2
nop dword [eax + eax]
cmp word [edx + ebx - 2], 0
jne 0x100724f2
cmp eax, edi
je 0x100724f2
lea edx, [edx + eax*2]
mov dword [ebp - 0x24], 0
mov ecx, edx
mov dword [ebp - 0x20], 0
xor eax, eax
mov dword [ebp - 0x24], 0
mov word [ebp - 0x34], ax
mov dword [ebp - 0x20], 7
lea eax, [ecx + 2]
mov dword [ebp - 0x18], eax
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x10072471
sub ecx, dword [ebp - 0x18]
sar ecx, 1
push ecx
push edx
lea ecx, [ebp - 0x34]
call fcn.100057c0
mov byte [ebp - 4], 1
lea eax, [ebp - 0x34]
mov ecx, dword [ebp - 0x1c]
push eax
call fcn.10069a00
mov byte [ebp - 4], 0
mov edx, dword [ebp - 0x20]
cmp edx, 8
jb 0x100724d5
mov ecx, dword [ebp - 0x34]
lea edx, [edx*2 + 2]
mov eax, ecx
cmp edx, 0x1000
jb 0x100724cb
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x10072519
push edx
push ecx
call fcn.1007b61a
add esp, 8
mov ecx, dword [ebp - 0x14]
xor eax, eax
mov edx, dword [ebp - 0x10]
mov word [ebp - 0x34], ax
lea eax, [edi + 1]
mov dword [ebp - 0x24], 0
mov dword [ebp - 0x20], 7
inc edi
add ebx, 2
cmp edi, ecx
jb 0x10072430
mov dword [ebp - 4], 0xffffffff
test esi, esi
je 0x10072512
push esi
call fcn.1007bcdd
add esp, 4
mov al, 1
jmp 0x100723c9
call dword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__invalid_parameter_noinfo_noreturn]
call fcn.1007be03
int3
Function at 0x100740c0
Capabilities:
Read file on windows

Disassembly:
sub esp, 0xc
mov eax, dword [0x100b2008]
xor eax, esp
mov dword [esp + 8], eax
mov eax, dword [esp + 0x18]
push ebx
push ebp
mov ebp, ecx
mov dword [esp + 8], eax
push esi
mov esi, dword [esp + 0x20]
xor ebx, ebx
push edi
cmp dword [ebp + 0x10], 0xffffffff
mov edi, dword [esp + 0x20]
je 0x10074142
mov ecx, 0x100000
nop dword [eax]
nop word [eax + eax]
cmp esi, 0x100000
mov dword [esp + 0x14], 0
push 0
mov eax, esi
cmova eax, ecx
lea ecx, [esp + 0x18]
push ecx
push eax
push edi
push dword [ebp + 0x10]
call dword [sym.imp.KERNEL32.dll_ReadFile]
mov ecx, dword [esp + 0x14]
add ebx, ecx
test eax, eax
je 0x10074142
test ecx, ecx
je 0x1007413e
add edi, ecx
sub esi, ecx
mov ecx, 0x100000
jne 0x10074100
xor eax, eax
jmp 0x10074147
mov eax, 1
mov ecx, dword [esp + 0x10]
test ecx, ecx
je 0x10074151
mov dword [ecx], ebx
mov ecx, dword [esp + 0x18]
pop edi
pop esi
pop ebp
pop ebx
xor ecx, esp
call fcn.1007b5d9
add esp, 0xc
ret 0xc
Function at 0x100746d0
Capabilities:
Link many functions at runtime

Disassembly:
push ebp
mov ebp, esp
push 0xfffffffffffffffe
push 0x100afbf0
push 0x1007c058
mov eax, dword fs:[0]
push eax
sub esp, 0x30
mov eax, dword [0x100b2008]
xor dword [ebp - 8], eax
xor eax, ebp
mov dword [ebp - 0x1c], eax
push ebx
push esi
push edi
push eax
lea eax, [ebp - 0x10]
mov dword fs:[0], eax
mov eax, dword [ebp + 8]
mov dword [ebp - 0x34], eax
mov dword [ebp - 0x28], 0
xor esi, esi
mov dword [ebp - 0x3c], esi
mov dword [ebp - 0x2c], esi
xor ebx, ebx
mov dword [ebp - 0x38], ebx
mov dword [ebp - 0x24], ebx
mov word [ebp - 0x20], 0x100
mov eax, dword [ecx]
mov edi, dword [eax + 0x28]
mov dword [ebp - 0x40], edi
test edi, edi
jne 0x10074739
xor eax, eax
jmp 0x100748af
mov dword [ebp - 4], ebx
push str.InitializeSecurityDescriptor
push edi
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
test eax, eax
je 0x1007487a
push 1
push dword [ebp - 0x34]
call eax
test eax, eax
je 0x1007487a
push str.AllocateAndInitializeSid
push edi
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
test eax, eax
je 0x1007487a
lea ecx, [ebp - 0x28]
push ecx
push 0
push 0
push 0
push 0
push 0
push 0
push 0
push 0
push 1
lea ecx, [ebp - 0x24]
push ecx
call eax
test eax, eax
je 0x1007487a
push str.GetLengthSid
push edi
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
test eax, eax
je 0x1007487a
push dword [ebp - 0x28]
call eax
add eax, 0x10
mov dword [ebp - 0x30], eax
push eax
push 8
call dword [sym.imp.KERNEL32.dll_GetProcessHeap]
push eax
call dword [sym.imp.KERNEL32.dll_HeapAlloc]
mov esi, eax
mov dword [ebp - 0x3c], esi
test esi, esi
je 0x1007487a
push str.InitializeAcl
push edi
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
test eax, eax
je 0x1007487a
push 2
push dword [ebp - 0x30]
push esi
call eax
test eax, eax
je 0x1007487a
push str.AddAccessAllowedAce
push edi
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
test eax, eax
je 0x1007487a
push dword [ebp - 0x28]
push 0x10000000
push 2
push esi
call eax
test eax, eax
je 0x1007487a
push str.SetSecurityDescriptorDacl
push edi
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
mov dword [ebp - 0x30], eax
test eax, eax
je 0x1007487a
mov ecx, dword [ebp - 0x2c]
test ecx, ecx
je 0x10074863
push 0
push ecx
push 1
push dword [ebp - 0x34]
call eax
test eax, eax
je 0x10074850
mov ebx, 1
mov dword [ebp - 0x38], ebx
cmp dword [ebp - 0x2c], 0
je 0x10074860
jmp 0x1007487a
push dword [ebp - 0x2c]
call dword [sym.imp.KERNEL32.dll_LocalFree]
mov dword [ebp - 0x2c], 0
mov eax, dword [ebp - 0x30]
push 0
push esi
push 1
push dword [ebp - 0x34]
call eax
mov ecx, 1
test eax, eax
cmovne ebx, ecx
mov dword [ebp - 0x38], ebx
mov dword [ebp - 4], 0xfffffffe
call fcn.100748d6
test ebx, ebx
jne 0x100748ad
test esi, esi
je 0x1007489f
push esi
push ebx
call dword [sym.imp.KERNEL32.dll_GetProcessHeap]
push eax
call dword [sym.imp.KERNEL32.dll_HeapFree]
xor esi, esi
mov eax, dword [ebp - 0x2c]
test eax, eax
je 0x100748ad
push eax
call dword [sym.imp.KERNEL32.dll_LocalFree]
mov eax, esi
mov ecx, dword [ebp - 0x10]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 0x1c]
xor ecx, ebp
call fcn.1007b5d9
mov esp, ebp
pop ebp
ret 0xc
Function at 0x10074ac0
Capabilities:
Set file attributes

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x1007d788
mov eax, dword fs:[0]
push eax
sub esp, 0x1c
mov eax, dword [0x100b2008]
xor eax, ebp
mov dword [ebp - 0x10], eax
push ebx
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov edi, edx
mov esi, ecx
and edi, 0xffffb1af
mov eax, esi
cmp dword [esi + 0x14], 8
jb 0x10074aff
mov eax, dword [esi]
mov ebx, dword [sym.imp.KERNEL32.dll_SetFileAttributesW]
push edi
push eax
call ebx
test eax, eax
je 0x10074b14
mov al, 1
jmp 0x10074bb9
xor eax, eax
mov dword [ebp - 0x18], 0
mov dword [ebp - 0x14], 0
mov dword [ebp - 0x18], 0
mov dword [ebp - 0x14], 7
mov word [ebp - 0x28], ax
mov dword [ebp - 4], eax
lea edx, [ebp - 0x28]
mov ecx, esi
call fcn.100751e0
test al, al
je 0x10074b5e
cmp dword [ebp - 0x14], 8
lea eax, [ebp - 0x28]
push edi
cmovae eax, dword [ebp - 0x28]
push eax
call ebx
test eax, eax
je 0x10074b5e
mov bl, 1
jmp 0x10074b60
xor bl, bl
mov dword [ebp - 4], 0xffffffff
mov edx, dword [ebp - 0x14]
cmp edx, 8
jb 0x10074ba3
mov ecx, dword [ebp - 0x28]
lea edx, [edx*2 + 2]
mov eax, ecx
cmp edx, 0x1000
jb 0x10074b99
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
jbe 0x10074b99
call dword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__invalid_parameter_noinfo_noreturn]
push edx
push ecx
call fcn.1007b61a
add esp, 8
xor eax, eax
mov dword [ebp - 0x18], 0
mov word [ebp - 0x28], ax
mov al, bl
mov dword [ebp - 0x14], 7
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.1007b5d9
mov esp, ebp
pop ebp
ret
Function at 0x10074be0
Capabilities:
Check if file exists
Get file attributes

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x1007d788
mov eax, dword fs:[0]
push eax
sub esp, 0x20
mov eax, dword [0x100b2008]
xor eax, ebp
mov dword [ebp - 0x10], eax
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov esi, ecx
cmp dword [esi + 0x14], 8
mov eax, esi
jb 0x10074c16
mov eax, dword [esi]
push eax
call dword [sym.imp.KERNEL32.dll_GetFileAttributesW]
mov edi, eax
cmp edi, 0xffffffff
jne 0x10074cc6
xor eax, eax
mov dword [ebp - 0x18], 0
mov dword [ebp - 0x14], 0
mov dword [ebp - 0x18], 0
mov dword [ebp - 0x14], 7
mov word [ebp - 0x28], ax
mov dword [ebp - 4], eax
lea edx, [ebp - 0x28]
mov ecx, esi
call fcn.100751e0
test al, al
je 0x10074c6f
cmp dword [ebp - 0x14], 8
lea eax, [ebp - 0x28]
cmovae eax, dword [ebp - 0x28]
push eax
call dword [sym.imp.KERNEL32.dll_GetFileAttributesW]
mov edi, eax
mov dword [ebp - 4], 0xffffffff
mov edx, dword [ebp - 0x14]
cmp edx, 8
jb 0x10074cb2
mov ecx, dword [ebp - 0x28]
lea edx, [edx*2 + 2]
mov eax, ecx
cmp edx, 0x1000
jb 0x10074ca8
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
jbe 0x10074ca8
call dword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__invalid_parameter_noinfo_noreturn]
push edx
push ecx
call fcn.1007b61a
add esp, 8
xor eax, eax
mov dword [ebp - 0x18], 0
mov dword [ebp - 0x14], 7
mov word [ebp - 0x28], ax
mov eax, edi
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.1007b5d9
mov esp, ebp
pop ebp
ret
Function at 0x100756b0
Capabilities:
Get file size

Disassembly:
sub esp, 8
mov eax, dword [0x100b2008]
xor eax, esp
mov dword [esp + 4], eax
mov eax, dword [ecx]
push esi
push edi
mov edi, dword [esp + 0x14]
cmp eax, 0xffffffff
je 0x10075715
lea ecx, [esp + 8]
mov dword [esp + 8], 0
push ecx
push eax
call dword [sym.imp.KERNEL32.dll_GetFileSize]
mov esi, eax
cmp esi, 0xffffffff
jne 0x100756f0
call dword [sym.imp.KERNEL32.dll_GetLastError]
test eax, eax
jne 0x10075715
mov eax, dword [esp + 8]
xor ecx, ecx
add ecx, esi
mov dword [edi], ecx
adc eax, 0
mov dword [edi + 4], eax
mov al, 1
pop edi
pop esi
mov ecx, dword [esp + 4]
xor ecx, esp
call fcn.1007b5d9
add esp, 8
ret 4
mov ecx, dword [esp + 0xc]
xor al, al
pop edi
pop esi
xor ecx, esp
call fcn.1007b5d9
add esp, 8
ret 4

Function at 0x100769e0
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x100889d0
mov eax, dword fs:[0]
push eax
sub esp, 0x38
mov eax, dword [0x100b2008]
xor eax, ebp
mov dword [ebp - 0x14], eax
push ebx
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov edi, ecx
mov esi, dword [edi]
mov ecx, dword [ebp + 8]
mov dword [ebp - 0x30], ecx
test esi, esi
je 0x10076b1f
cmp byte [esi + 0x54], 0
je 0x10076b1f
add esi, 0x1c
xor bl, bl
mov dword [ebp - 0x40], esi
mov byte [ebp - 0x3c], bl
test esi, esi
je 0x10076a60
mov eax, dword [esi]
test eax, eax
je 0x10076a5d
push 0xffffffffffffffff
push eax
call dword [sym.imp.KERNEL32.dll_WaitForSingleObject]
test eax, eax
je 0x10076a54
cmp eax, 0x80
je 0x10076a54
xor bl, bl
jmp 0x10076a5a
mov byte [esi + 4], 1
mov bl, 1
mov ecx, dword [ebp - 0x30]
mov byte [ebp - 0x3c], bl
push ecx
mov edx, ecx
mov dword [ebp - 4], 0
lea ecx, [ebp - 0x2c]
call fcn.1006f1f0
add esp, 4
mov byte [ebp - 4], 1
mov eax, dword [ebp - 0x1c]
cmp dword [ebp - 0x18], 0x10
mov dword [ebp - 0x34], eax
lea eax, [ebp - 0x2c]
cmovae eax, dword [ebp - 0x2c]
mov dword [ebp - 0x38], eax
mov eax, dword [edi]
cmp dword [eax + 0x14], 8
jb 0x10076a97
mov eax, dword [eax]
push 0
push 0x80
push 4
push 0
push 3
push 0x40000000
push eax
call dword [sym.imp.KERNEL32.dll_CreateFileW]
mov edi, eax
cmp edi, 0xffffffff
je 0x10076ae5
push 2
push 0
push 0
push edi
mov dword [ebp - 0x30], 0
call dword [sym.imp.KERNEL32.dll_SetFilePointer]
push 0
lea eax, [ebp - 0x30]
push eax
push dword [ebp - 0x34]
push dword [ebp - 0x38]
push edi
call dword [sym.imp.KERNEL32.dll_WriteFile]
push edi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
lea ecx, [ebp - 0x2c]
mov byte [ebp - 4], 0
call fcn.1000d620
mov dword [ebp - 4], 2
test esi, esi
je 0x10076b11
test bl, bl
je 0x10076b11
mov eax, dword [esi]
test eax, eax
je 0x10076b0d
push eax
call dword [sym.imp.KERNEL32.dll_ReleaseMutex]
mov byte [esi + 4], 0
mov dword [ebp - 0x40], 0
mov dword [ebp - 4], 0xffffffff
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 0x14]
xor ecx, ebp
call fcn.1007b5d9
mov esp, ebp
pop ebp
ret 4
Function at 0x100796b0
Capabilities:
Check mutex on windows

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x10088b88
mov eax, dword fs:[0]
push eax
sub esp, 8
mov eax, dword [0x100b2008]
xor eax, ebp
mov dword [ebp - 0x10], eax
push ebx
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov edi, ecx
mov eax, dword [edi]
mov ebx, dword [ebp + 8]
test eax, eax
je 0x100796f3
push eax
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov dword [edi], 0
lea ecx, [ebp - 0x14]
mov word [edi + 4], 0
mov dword [ebp - 0x14], 0
call fcn.10074510
mov dword [ebp - 4], 0
mov esi, dword [ebp - 0x14]
cmp dword [esi], 0
je 0x1007971c
lea eax, [esi + 8]
jmp 0x1007971e
xor eax, eax
cmp dword [ebx + 0x10], 0
je 0x1007972e
cmp dword [ebx + 0x14], 8
jb 0x10079730
mov ebx, dword [ebx]
jmp 0x10079730
xor ebx, ebx
push ebx
push 0
push eax
call dword [sym.imp.KERNEL32.dll_CreateMutexW]
mov dword [edi], eax
test eax, eax
je 0x10079751
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0xb7
jne 0x10079751
mov byte [edi + 5], 1
cmp dword [edi], 0
setne bl
mov dword [ebp - 4], 0xffffffff
mov eax, dword [esi]
test eax, eax
je 0x1007977a
push eax
push 0
call dword [sym.imp.KERNEL32.dll_GetProcessHeap]
push eax
call dword [sym.imp.KERNEL32.dll_HeapFree]
mov dword [esi], 0
mov eax, dword [esi + 4]
test eax, eax
je 0x1007978f
push eax
call dword [sym.imp.KERNEL32.dll_LocalFree]
mov dword [esi + 4], 0
push 0x2c
push esi
call fcn.1007b61a
add esp, 8
mov dword [ebp - 0x14], 0
mov al, bl
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.1007b5d9
mov esp, ebp
pop ebp
ret 4

Function at 0x10079bb0
Capabilities:
Access peb ldr_data

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x10088cc5
mov eax, dword fs:[0]
push eax
sub esp, 8
push esi
push edi
mov eax, dword [0x100b2008]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov edi, ecx
push 0x1050
call fcn.1007b5ea
mov esi, eax
mov dword [ebp - 0x10], esi
mov dword [ebp - 4], 0
push 0x1050
push 0
push esi
call sub.VCRUNTIME140.dll_memset
lea ecx, [esi + 0x44]
mov dword [esi], 0
mov eax, ecx
mov dword [esi + 4], 0
neg eax
mov dword [esi + 8], 0
mov dword [esi + 0xc], 0
lea edx, [esi + 0x1044]
mov dword [esi + 0x10], 0
and eax, 3
mov dword [esi + 0x14], 0
add esp, 0x10
mov dword [esi + 0x18], 0
add eax, ecx
mov dword [esi + 0x1c], 0
mov dword [esi + 0x20], 0
mov dword [esi + 0x24], 0
mov dword [esi + 0x28], 0
mov dword [esi + 0x2c], 0
mov dword [esi + 0x30], 0
mov dword [esi + 0x34], 0
mov dword [ebp - 0x14], esi
mov dword [edx], 0
mov dword [esi + 0x1048], 0
mov dword [esi + 0x38], ecx
mov dword [esi + 0x3c], eax
mov dword [esi + 0x40], edx
mov byte [ebp - 4], 2
mov dword [esi + 0x104c], 0
mov dword [ebp - 4], 0xffffffff
mov eax, edi
mov dword [edi], esi
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
mov esp, ebp
pop ebp
ret
Function at 0x418a43
Capabilities:
Read .ini file

Disassembly:
push ebp
mov ebp, esp
sub esp, 0xc00
lea eax, [ebp - 0x400]
push eax
mov ecx, dword [ebp + 8]
push ecx
call fcn.004189b0
add esp, 8
push 0x44bbe8
lea edx, [ebp - 0x400]
push edx
push 0x44bbf4
lea eax, [ebp - 0x800]
push eax
call dword [sym.imp.MSVCRT.dll_sprintf]
add esp, 0x10
lea ecx, [ebp - 0x800]
push ecx
push 0x400
lea edx, [ebp - 0xc00]
push edx
push 0x44bbfc
push str.LicType
push 0x44bc08
call dword [sym.imp.KERNEL32.dll_GetPrivateProfileStringA]
push 0x44bc10
lea eax, [ebp - 0xc00]
push eax
call dword [sym.imp.MSVCRT.dll__strupr]
add esp, 4
push eax
call sub.MSVCRT.dll_strcmp
add esp, 8
test eax, eax
jne 0x418ad6
mov dword [0x45c124], 2
jmp 0x418b22
push 0x44bc14
lea ecx, [ebp - 0xc00]
push ecx
call dword [sym.imp.MSVCRT.dll__strupr]
add esp, 4
push eax
call sub.MSVCRT.dll_strcmp
add esp, 8
test eax, eax
jne 0x418b0e
mov dword [0x45c124], 1
push 1
call fcn.00415b70
add esp, 4
jmp 0x418b22
mov dword [0x45c124], 1
push 0
call fcn.00415b70
add esp, 4
lea edx, [ebp - 0x800]
push edx
push 0
push str.NetType
push str.LockSet
call dword [sym.imp.KERNEL32.dll_GetPrivateProfileIntA]
mov dword [0x45c0dc], eax
lea eax, [ebp - 0x800]
push eax
push 0x40
push 0x45c0e0
push str.127.0.0.1
push 0x44bc34
push 0x44bc38
call dword [sym.imp.KERNEL32.dll_GetPrivateProfileStringA]
lea ecx, [ebp - 0x800]
push ecx
push 0x1f40
push str.Port
push str.ServerInfo
call dword [sym.imp.KERNEL32.dll_GetPrivateProfileIntA]
mov dword [0x45c120], eax
mov dword [0x45d54c], 0
mov dword [0x45d550], 0
lea edx, [ebp - 0x800]
push edx
push 0
push str.Repeat
push str.LogSet4
call dword [sym.imp.KERNEL32.dll_GetPrivateProfileIntA]
mov dword [0x44bbd0], eax
cmp dword [0x44bbd0], 0x1388
jle 0x418bcc
mov dword [0x44bbd0], 0x1388
lea eax, [ebp - 0x400]
push eax
push 0x45d554
call sub.MSVCRT.dll_strcpy
add esp, 8
mov eax, dword [0x45c124]
mov esp, ebp
pop ebp
ret

Function at 0x41e571
Capabilities:
Create thread

Disassembly:
push ebp
mov ebp, esp
push ecx
mov eax, dword [ebp + 8]
push eax
push 0x45c728
call sub.MSVCRT.dll_strcpy
add esp, 8
mov dword [ebp - 4], 1
mov dword [0x45cb14], 0x45c728
push 0x45d75c
push 0
push 0x45cb10
push 0x419ca2
push 0
push 0
call dword [sym.imp.KERNEL32.dll_CreateThread]
mov dword [0x45d758], eax
cmp dword [0x45d758], 0
jne 0x41e5c9
mov dword [ebp - 4], 0
jmp 0x41e5d6
mov ecx, dword [0x45d758]
push ecx
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov eax, dword [ebp - 4]
mov esp, ebp
pop ebp
ret
Function at 0x420baf
Capabilities:
Get disk information

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x27c
push esi
mov dword [ebp - 0x27c], ecx
mov dword [ebp - 0x274], 0x44c9e4
lea eax, [ebp - 0x130]
mov dword [ebp - 0x270], eax
mov dword [ebp - 0x26c], 0xc8
mov dword [ebp - 0x278], 0
lea ecx, [ebp - 0x260]
mov dword [ebp - 0x268], ecx
mov dword [ebp - 4], 0xc8
mov edx, dword [ebp - 4]
push edx
mov eax, dword [ebp - 0x268]
push eax
lea ecx, [ebp - 0x134]
push ecx
lea edx, [ebp - 0x264]
push edx
lea eax, [ebp - 0x278]
push eax
mov ecx, dword [ebp - 0x26c]
push ecx
mov edx, dword [ebp - 0x270]
push edx
mov eax, dword [ebp - 0x274]
push eax
call dword [sym.imp.KERNEL32.dll_GetVolumeInformationA]
cmp dword [ebp - 0x278], 0
jne 0x420c4a
mov dword [ebp - 0x278], 0x3c1a3dec
mov ecx, dword [ebp - 0x278]
shr ecx, 0x10
mov edx, dword [ebp + 8]
mov word [edx], cx
mov eax, dword [ebp - 0x278]
and eax, 0xffff
mov ecx, dword [ebp + 0xc]
mov word [ecx], ax
mov edx, dword [ebp + 8]
xor eax, eax
mov ax, word [edx]
cdq
sub eax, edx
mov ecx, eax
sar ecx, 1
mov edx, dword [ebp + 0xc]
xor eax, eax
mov ax, word [edx]
cdq
mov esi, 3
idiv esi
add ecx, eax
mov eax, dword [ebp + 0x10]
mov word [eax], cx
mov ecx, dword [ebp + 8]
mov dx, word [ecx]
xor dx, 0xa4b3
mov eax, dword [ebp + 8]
mov word [eax], dx
mov ecx, dword [ebp + 0xc]
mov dx, word [ecx]
xor dx, 0x1e3f
mov eax, dword [ebp + 0xc]
mov word [eax], dx
mov eax, 1
pop esi
mov esp, ebp
pop ebp
ret 0xc
Function at 0x430230
Capabilities:
Initialize winsock library

Disassembly:
mov eax, dword fs:[0]
push 0xffffffffffffffff
push 0x43dc62
push eax
mov al, byte [0x44cb3d]
mov dword fs:[0], esp
sub esp, 0x1a0
test al, al
je 0x430444
mov eax, dword [esp + 0x1b0]
mov byte [0x44cb3d], 0
test eax, eax
mov byte [0x44cb3c], 1
je 0x43027c
push eax
mov ecx, 0x45df78
call fcn.0043c478
mov eax, dword [esp + 0x1b4]
test eax, eax
je 0x43028c
mov dword [0x45df7c], eax
lea ecx, [esp]
call sub.MFC42.DLL_CString::CString_1
mov eax, dword [esp + 0x1b8]
mov dword [esp + 0x1a8], 0
test eax, eax
je 0x4302ae
push eax
jmp 0x4302b3
push 0x44cb58
lea ecx, [esp + 4]
call fcn.0043c478
lea ecx, [esp + 0xc]
call sub.MFC42.DLL_CString::CString_1
lea eax, [esp + 4]
push 0x1e
push eax
lea ecx, [esp + 8]
mov byte [esp + 0x1b0], 1
call sub.MFC42.DLL_CString::Left
push eax
lea ecx, [esp + 0x10]
mov byte [esp + 0x1ac], 2
call sub.MFC42.DLL_CString::operator
lea ecx, [esp + 4]
mov byte [esp + 0x1a8], 1
call sub.MFC42.DLL_CString::CString
push str.__NCB_080529_1120
lea ecx, [esp + 4]
call fcn.0043c478
lea ecx, [esp + 8]
call sub.MFC42.DLL_CString::CString_1
lea ecx, [esp + 4]
push 0x11
push ecx
lea ecx, [esp + 8]
mov byte [esp + 0x1b0], 3
call sub.MFC42.DLL_CString::Left
push eax
lea ecx, [esp + 0xc]
mov byte [esp + 0x1ac], 4
call sub.MFC42.DLL_CString::operator
lea ecx, [esp + 4]
mov byte [esp + 0x1a8], 3
call sub.MFC42.DLL_CString::CString
push 0x44cb40
lea ecx, [esp + 0xc]
call sub.MFC42.DLL_CString::operator_2
lea edx, [esp + 8]
lea eax, [esp + 0xc]
push edx
lea ecx, [esp + 8]
push eax
push ecx
call sub.MFC42.DLL_operator
push eax
mov ecx, 0x45df74
mov byte [esp + 0x1ac], 5
call sub.MFC42.DLL_CString::operator
lea ecx, [esp + 4]
mov byte [esp + 0x1a8], 3
call sub.MFC42.DLL_CString::CString
lea ecx, [esp + 8]
mov byte [esp + 0x1a8], 1
call sub.MFC42.DLL_CString::CString
lea ecx, [esp + 0xc]
mov byte [esp + 0x1a8], 0
call sub.MFC42.DLL_CString::CString
lea ecx, [esp]
mov dword [esp + 0x1a8], 0xffffffff
call sub.MFC42.DLL_CString::CString
mov eax, dword [0x45df7c]
test eax, eax
je 0x430423
mov edx, dword [0x45df78]
mov eax, dword [edx - 8]
test eax, eax
je 0x430423
lea eax, [esp + 0x10]
push eax
push 4
call dword [sym.imp.WS2_32.dll_WSAStartup]
test eax, eax
je 0x4303fc
mov byte [0x44cb3c], 0
call fcn.00434380
mov cl, byte [0x44cb3c]
test cl, cl
jne 0x430450
or eax, 0xffffffff
mov ecx, dword [esp + 0x1a0]
mov dword fs:[0], ecx
add esp, 0x1ac
ret
mov byte [0x44cb3c], 0
mov eax, 0xfffffffe
mov ecx, dword [esp + 0x1a0]
mov dword fs:[0], ecx
add esp, 0x1ac
ret
mov al, byte [0x44cb3c]
neg al
sbb eax, eax
neg eax
dec eax
mov ecx, dword [esp + 0x1a0]
mov dword fs:[0], ecx
add esp, 0x1ac
ret