joyce8/EMBER2024-capa huggingface dataset:
Function at 0x438f80
Capabilities:
Query or enumerate registry value

Disassembly:
sub esp, 0x10
mov eax, 4
push esi
mov dword [esp + 0x10], eax
mov dword [esp + 0xc], eax
lea eax, [esp + 8]
mov esi, ecx
push eax
push 0x4a3f20
push reloc.CLClient.dll_Ordinal_1
mov dword [esp + 0x14], 0
mov dword [esp + 0x10], 0
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyA]
test eax, eax
jne 0x4390bd
lea ecx, [esp + 0xc]
push edi
mov edi, dword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
lea edx, [esp + 8]
push ecx
mov ecx, dword [esp + 0x10]
lea eax, [esp + 0x18]
push edx
push eax
push 0
push 0x4a3f14
push ecx
call edi
test eax, eax
jne 0x439015
mov ecx, dword [esp + 8]
mov eax, 0x88888889
imul ecx
add edx, ecx
sar edx, 5
mov eax, edx
shr eax, 0x1f
add edx, eax
mov eax, ecx
mov dword [esi + 0x8e4], edx
mov ecx, 0x3c
cdq
idiv ecx
mov dword [esi + 0x8e8], edx
lea edx, [esp + 0x10]
lea eax, [esp + 8]
push edx
mov edx, dword [esp + 0x10]
lea ecx, [esp + 0x18]
push eax
push ecx
push 0
push 0x4a3f08
push edx
call edi
test eax, eax
jne 0x439063
mov ecx, dword [esp + 8]
mov eax, 0x88888889
imul ecx
add edx, ecx
sar edx, 5
mov eax, edx
shr eax, 0x1f
add edx, eax
mov eax, ecx
mov dword [esi + 0x8ec], edx
mov ecx, 0x3c
cdq
idiv ecx
mov dword [esi + 0x8f0], edx
lea edx, [esp + 0x10]
lea eax, [esp + 8]
push edx
mov edx, dword [esp + 0x10]
lea ecx, [esp + 0x18]
push eax
push ecx
push 0
push 0x4a3efc
push edx
call edi
test eax, eax
pop edi
jne 0x4390b2
mov ecx, dword [esp + 4]
mov eax, 0x88888889
imul ecx
add edx, ecx
sar edx, 5
mov eax, edx
shr eax, 0x1f
add edx, eax
mov eax, ecx
mov dword [esi + 0x8f4], edx
mov ecx, 0x3c
cdq
idiv ecx
mov dword [esi + 0x8f8], edx
mov edx, dword [esp + 8]
push edx
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
pop esi
add esp, 0x10
ret

Function at 0x4390d0
Capabilities:
Set registry value

Disassembly:
sub esp, 8
lea eax, [esp]
push esi
push eax
push 0x4a3f20
mov esi, ecx
push reloc.CLClient.dll_Ordinal_1
mov dword [esp + 0x10], 0
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyA]
test eax, eax
je 0x439114
lea ecx, [esp + 4]
push ecx
push 0x4a3f20
push reloc.CLClient.dll_Ordinal_1
call dword [sym.imp.ADVAPI32.dll_RegCreateKeyA]
test eax, eax
jne 0x4391b7
mov eax, dword [esi + 0x8e4]
push edi
mov edi, dword [sym.imp.ADVAPI32.dll_RegSetValueExA]
push 4
lea eax, [eax + eax*2]
lea edx, [eax + eax*4]
mov eax, dword [esi + 0x8e8]
lea ecx, [eax + edx*4]
mov eax, dword [esp + 0xc]
lea edx, [esp + 0x10]
mov dword [esp + 0x10], ecx
push edx
push 4
push 0
push 0x4a3f14
push eax
call edi
mov eax, dword [esi + 0x8ec]
mov edx, dword [esi + 0x8f0]
push 4
lea eax, [eax + eax*2]
lea ecx, [eax + eax*4]
lea eax, [edx + ecx*4]
mov edx, dword [esp + 0xc]
lea ecx, [esp + 0x10]
mov dword [esp + 0x10], eax
push ecx
push 4
push 0
push 0x4a3f08
push edx
call edi
mov eax, dword [esi + 0x8f4]
mov ecx, dword [esi + 0x8f8]
push 4
lea eax, [eax + eax*2]
lea eax, [eax + eax*4]
lea edx, [ecx + eax*4]
mov ecx, dword [esp + 0xc]
lea eax, [esp + 0x10]
mov dword [esp + 0x10], edx
push eax
push 4
push 0
push 0x4a3efc
push ecx
call edi
mov edx, dword [esp + 8]
push edx
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
pop edi
pop esi
add esp, 8
ret
Function at 0x43c550
Capabilities:
Read file on windows

Disassembly:
mov eax, dword [esp + 4]
push ebp
push esi
push 0x4a1ea4
push eax
xor ebp, ebp
call dword [sym.imp.MSVCRT.dll_fopen]
mov esi, eax
add esp, 8
test esi, esi
jne 0x43c580
push eax
push eax
push 0x4a42b0
call sub.MFC42.DLL_AfxMessageBox_1
mov eax, ebp
pop esi
pop ebp
ret 0xc
push ebx
mov ebx, dword [sym.imp.MSVCRT.dll_fread]
push edi
mov edi, dword [esp + 0x1c]
push esi
push 1
push 4
push edi
call ebx
mov eax, dword [edi]
add esp, 0x10
test eax, eax
jbe 0x43c5df
push eax
call sub.MFC42.DLL_operatornew
mov ecx, dword [esp + 0x1c]
add esp, 4
test eax, eax
mov dword [ecx], eax
je 0x43c5d4
mov edx, dword [edi]
push esi
push 1
push edx
push eax
call ebx
add esp, 0x10
mov ebp, 1
push esi
call dword [sym.imp.MSVCRT.dll_fclose]
add esp, 4
mov eax, ebp
pop edi
pop ebx
pop esi
pop ebp
ret 0xc
push 0
push 0
push 0x4a42a0
jmp 0x43c5e8
push 0
push 0
push 0x4a428c
call sub.MFC42.DLL_AfxMessageBox_1
push esi
call dword [sym.imp.MSVCRT.dll_fclose]
add esp, 4
mov eax, ebp
pop edi
pop ebx
pop esi
pop ebp
ret 0xc

Function at 0x43c690
Capabilities:
Print debug messages

Disassembly:
sub esp, 0x800
push edi
mov ecx, 0xff
xor eax, eax
lea edi, [esp + 5]
mov byte [esp + 4], 0
lea edx, [esp + 4]
rep stosd dword es:[edi], eax
mov ecx, dword [esp + 0x808]
stosw word es:[edi], ax
stosb byte es:[edi], al
lea eax, [esp + 0x80c]
push eax
push ecx
push 0x400
push edx
call dword [sym.imp.MSVCRT.dll__vsnprintf]
mov ecx, 0xff
xor eax, eax
lea edi, [esp + 0x415]
mov byte [esp + 0x414], 0
rep stosd dword es:[edi], eax
stosw word es:[edi], ax
add esp, 0x10
lea ecx, [esp + 0x404]
stosb byte es:[edi], al
lea eax, [esp + 4]
push eax
push 0x4a42c4
push 0x3ff
push ecx
call dword [sym.imp.MSVCRT.dll__snprintf]
add esp, 0x10
lea edx, [esp + 0x404]
push edx
call dword [sym.imp.KERNEL32.dll_OutputDebugStringA]
pop edi
add esp, 0x800
ret

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

Disassembly:
push 0xffffffffffffffff
push 0x48f588
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x18
push esi
push edi
mov edi, dword [esp + 0x38]
mov esi, ecx
push edi
mov dword [esi], 0x492350
call fcn.00448750
mov eax, dword [esp + 0x30]
mov ecx, dword [esp + 0x34]
test eax, eax
mov dword [esp + 0xc], eax
mov dword [esp + 8], 0x4966f0
sete al
mov dword [esp + 0x18], 0
mov dword [esp + 0x1c], ecx
mov dword [esp + 0x10], ecx
mov byte [esp + 0x14], al
lea ecx, [esp + 8]
push edi
push ecx
mov ecx, esi
mov dword [esp + 0x30], 0
call fcn.0044a5a0
mov eax, dword [esp + 0xc]
mov dword [esp + 8], 0x4966f0
test eax, eax
je 0x44a450
mov cl, byte [esp + 0x14]
test cl, cl
je 0x44a450
push eax
call dword [sym.imp.MSVCRT.dll_free]
add esp, 4
mov ecx, dword [esp + 0x20]
mov eax, esi
pop edi
pop esi
mov dword fs:[0], ecx
add esp, 0x24
ret 0xc
Function at 0x45c4b0
Capabilities:
Read file on windows

Disassembly:
sub esp, 0x44
mov eax, dword [esp + 0x48]
push ebx
push ebp
push esi
xor esi, esi
push edi
push esi
push 0x80
push 3
push esi
push 1
push Ordinal_1
push eax
call dword [sym.imp.KERNEL32.dll_CreateFileA]
mov ebp, eax
cmp ebp, 0xffffffff
je 0x45c6b8
mov ebx, dword [sym.imp.KERNEL32.dll_ReadFile]
lea ecx, [esp + 0x10]
push esi
push ecx
lea edx, [esp + 0x1c]
push 0x12
push edx
push ebp
mov dword [esp + 0x24], esi
call ebx
mov al, byte [esp + 0x14]
test al, al
jne 0x45c6b1
mov al, byte [esp + 0x15]
test al, al
jne 0x45c6b1
cmp byte [esp + 0x16], 2
jne 0x45c6b1
mov ax, word [esp + 0x24]
cmp al, 0x20
jne 0x45c6b1
cmp ah, 8
jne 0x45c6b1
mov eax, dword [esp + 0x20]
mov ecx, dword [esp + 0x22]
and eax, 0xffff
and ecx, 0xffff
mov dword [esp + 0x2c], eax
xor eax, eax
mov dword [esp + 0x30], ecx
push eax
lea edx, [esp + 0x5c]
mov ecx, 6
lea edi, [esp + 0x3c]
push eax
mov dword [esp + 0x30], 0x28
mov word [esp + 0x3c], 1
mov word [esp + 0x3e], 0x20
push edx
rep stosd dword es:[edi], eax
mov edi, dword [esp + 0x6c]
mov dword [esp + 0x64], eax
push eax
mov dword [esp + 0x60], esi
lea eax, [esp + 0x38]
mov ecx, 0xb
lea esi, [esp + 0x38]
push eax
rep movsd dword es:[edi], dword [esi]
push 0
call dword [sym.imp.GDI32.dll_CreateDIBSection]
mov esi, eax
test esi, esi
mov dword [esp + 0x60], esi
je 0x45c6b1
mov ecx, dword [esp + 0x64]
mov eax, dword [esp + 0x58]
lea edx, [esp + 0x10]
push 0
mov dword [ecx], eax
mov ecx, dword [esp + 0x26]
push edx
mov edx, dword [esp + 0x28]
and ecx, 0xffff
and edx, 0xffff
imul ecx, edx
shl ecx, 2
push ecx
push eax
push ebp
call ebx
push ebp
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov al, byte [esp + 0x5c]
test al, al
je 0x45c6a7
xor ebx, ebx
cmp word [esp + 0x22], bx
jbe 0x45c6a7
mov edx, dword [esp + 0x20]
mov eax, edx
mov esi, dword [esp + 0x58]
and eax, 0xffff
xor ebp, ebp
mov ecx, eax
imul ecx, ebx
test eax, eax
lea ecx, [esi + ecx*4]
jle 0x45c690
xor edx, edx
xor eax, eax
mov dl, byte [ecx + 3]
mov al, byte [ecx]
mov edi, edx
mov esi, eax
imul esi, edi
mov eax, 0x80808081
add ecx, 4
imul esi
add edx, esi
sar edx, 7
mov eax, edx
shr eax, 0x1f
add edx, eax
mov eax, 0x80808081
mov byte [ecx - 4], dl
xor edx, edx
mov dl, byte [ecx - 3]
mov esi, edx
imul esi, edi
imul esi
add edx, esi
sar edx, 7
mov eax, edx
shr eax, 0x1f
add edx, eax
mov eax, 0x80808081
mov byte [ecx - 3], dl
xor edx, edx
mov dl, byte [ecx - 2]
mov esi, edx
imul esi, edi
imul esi
add edx, esi
sar edx, 7
mov eax, edx
shr eax, 0x1f
add edx, eax
inc ebp
mov byte [ecx - 2], dl
mov edx, dword [esp + 0x20]
mov eax, edx
and eax, 0xffff
cmp ebp, eax
jl 0x45c617
mov ecx, dword [esp + 0x22]
inc ebx
and ecx, 0xffff
cmp ebx, ecx
jl 0x45c5fe
mov esi, dword [esp + 0x60]
mov eax, esi
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x44
ret
push ebp
call dword [sym.imp.KERNEL32.dll_CloseHandle]
pop edi
pop esi
pop ebp
xor eax, eax
pop ebx
add esp, 0x44
ret
Function at 0x4609e0
Capabilities:
Read .ini file

Disassembly:
mov eax, dword [0x4ae558]
sub esp, 0x208
cmp dword [eax + 0x1c], 0x2710
ja 0x460a5a
push edi
mov ecx, 0x81
xor eax, eax
lea edi, [esp + 6]
mov word [esp + 4], 0
rep stosd dword es:[edi], eax
stosw word es:[edi], ax
mov eax, dword [0x4ae54c]
pop edi
test eax, eax
jne 0x460a1a
mov eax, dword [sym.imp.MSVCP60.dll_unsigned_short_int_const__private:_static_unsigned_short_int_const____cdecl_std::basic_string_unsigned_short_int__struct_std::char_traits_unsigned_short_int___class_std::allocator_unsigned_short_int__::_Nullstr_void_::_2::_C]
push eax
push 0x4a4dd4
lea ecx, [esp + 8]
push 0x103
push ecx
call dword [sym.imp.MSVCRT.dll__snwprintf]
mov eax, dword [0x4ae558]
add esp, 0x10
lea edx, [esp]
mov ecx, dword [eax + 0x1c]
push edx
push ecx
push 0x4a4dc0
push 0x4a4db0
call dword [sym.imp.KERNEL32.dll_GetPrivateProfileIntW]
mov edx, dword [0x4ae558]
mov dword [edx + 0x1c], eax
add esp, 0x208
ret
Function at 0x461160
Capabilities:
Write file on windows

Disassembly:
sub esp, 0x94
xor eax, eax
mov edx, dword [esp + 0x98]
mov dword [esp + 9], eax
push ebx
mov dword [esp + 0x11], eax
mov ebx, ecx
mov ecx, dword [esp + 0xa8]
mov word [esp + 0x15], ax
mov byte [esp + 0x17], al
mov dword [esp + 8], eax
mov eax, dword [ebx + 8]
mov dword [esp + 0xc], ecx
test eax, eax
mov dword [esp + 0x14], edx
je 0x4612a6
mov eax, dword [0x4a4e98]
mov ecx, dword [0x4a4e9c]
mov dx, word [0x4a4ea0]
mov dword [esp + 0x18], eax
mov al, byte [0x4a4ea2]
push ebp
push esi
push edi
mov dword [esp + 0x28], ecx
mov byte [esp + 0x2e], al
mov ecx, 0x1d
xor eax, eax
lea edi, [esp + 0x2f]
mov word [esp + 0x2c], dx
rep stosd dword es:[edi], eax
mov edx, dword [ebx + 0x24]
lea esi, [ebx + 0x24]
stosb byte es:[edi], al
mov edi, dword [esp + 0xac]
mov ecx, esi
push edi
call dword [edx]
push eax
mov dword [esp + 0x14], eax
call sub.MFC42.DLL_operatornew
add esp, 4
lea ecx, [esp + 0x10]
mov ebp, eax
mov eax, dword [esi]
push ecx
mov ecx, dword [esp + 0xb4]
lea edx, [esp + 0x28]
push ebp
push edx
push edi
push ecx
mov ecx, esi
call dword [eax + 4]
mov edx, dword [esp + 0x10]
mov edi, dword [sym.imp.KERNEL32.dll_WriteFile]
lea esi, [ebx + 0x10]
lea eax, [esp + 0x14]
push esi
mov dword [esp + 0x20], edx
mov edx, dword [ebx + 8]
push eax
lea ecx, [esp + 0x20]
push 0xc
push ecx
push edx
call edi
test eax, eax
jne 0x46127e
call dword [sym.imp.KERNEL32.dll_GetLastError]
push 0xc
push eax
mov ecx, ebx
call fcn.004612e0
cmp eax, 1
jne 0x46129a
mov ecx, dword [esp + 0x10]
mov edx, dword [ebx + 8]
lea eax, [esp + 0x14]
push esi
push eax
push ecx
push ebp
push edx
call edi
test eax, eax
jne 0x461287
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov ecx, dword [esp + 0x10]
push ecx
push eax
mov ecx, ebx
call fcn.004612e0
jmp 0x46129a
cmp dword [esp + 0x14], 0xc
je 0x461253
jmp 0x461293
mov edx, dword [esp + 0x14]
mov eax, dword [esp + 0x10]
cmp edx, eax
je 0x46129a
mov ecx, ebx
call fcn.00461330
push ebp
call sub.MFC42.DLL_operatordelete
add esp, 4
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x94
ret 0x10

Function at 0x4613d0
Capabilities:
Create thread

Disassembly:
mov eax, dword [esp + 4]
push esi
mov esi, ecx
mov ecx, dword [esp + 0xc]
mov dword [esi + 4], eax
mov dword [0x4ae5a4], ecx
mov ecx, esi
call fcn.00461710
mov eax, dword [esi + 4]
lea edx, [esp + 8]
push edx
push 0
push eax
push 0x461420
push 0
push 0
mov dword [esp + 0x20], 0
call dword [sym.imp.KERNEL32.dll_CreateThread]
push eax
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov eax, 1
pop esi
ret 8
Function at 0x461a80
Capabilities:
Encode data using xor
Encrypt data using tea

Disassembly:
sub esp, 0x10
push ebx
push ebp
push esi
push edi
mov edi, dword [esp + 0x24]
mov eax, dword [edi]
push eax
call sub.WSOCK32.dll_ntohl
mov ecx, dword [edi + 4]
mov esi, eax
push ecx
call sub.WSOCK32.dll_ntohl
mov ebp, dword [esp + 0x28]
lea edx, [esp + 0x10]
mov edi, eax
lea ebx, [esp + 0x10]
sub ebp, edx
mov dword [esp + 0x24], 4
mov eax, dword [ebx + ebp]
push eax
call sub.WSOCK32.dll_ntohl
mov dword [ebx], eax
mov eax, dword [esp + 0x24]
add ebx, 4
dec eax
mov dword [esp + 0x24], eax
jne 0x461ab6
mov ecx, dword [esp + 0x1c]
xor eax, eax
mov dword [esp + 0x24], 0x10
mov ebx, dword [esp + 0x14]
mov ebp, dword [esp + 0x10]
mov edx, edi
sub eax, 0x61c88647
shr edx, 5
add edx, ebx
mov ebx, edi
shl ebx, 4
add ebx, ebp
mov ebp, dword [esp + 0x18]
xor edx, ebx
lea ebx, [eax + edi]
xor edx, ebx
add esi, edx
mov edx, esi
mov ebx, esi
shr edx, 5
shl ebx, 4
add edx, ecx
add ebx, ebp
xor edx, ebx
lea ebx, [eax + esi]
xor edx, ebx
add edi, edx
mov edx, dword [esp + 0x24]
dec edx
mov dword [esp + 0x24], edx
jne 0x461add
push esi
call sub.WSOCK32.dll_htonl
mov esi, dword [esp + 0x2c]
push edi
mov dword [esi], eax
call sub.WSOCK32.dll_htonl
mov dword [esi + 4], eax
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x10
ret

Function at 0x461b50
Capabilities:
Encode data using xor
Encrypt data using tea

Disassembly:
sub esp, 0x10
push ebx
push ebp
push esi
mov esi, dword [esp + 0x20]
push edi
mov eax, dword [esi]
push eax
call sub.WSOCK32.dll_ntohl
mov ecx, dword [esi + 4]
mov edi, eax
push ecx
call sub.WSOCK32.dll_ntohl
mov ebp, dword [esp + 0x28]
lea edx, [esp + 0x10]
mov esi, eax
lea ebx, [esp + 0x10]
sub ebp, edx
mov dword [esp + 0x24], 4
mov eax, dword [ebx + ebp]
push eax
call sub.WSOCK32.dll_ntohl
mov dword [ebx], eax
mov eax, dword [esp + 0x24]
add ebx, 4
dec eax
mov dword [esp + 0x24], eax
jne 0x461b86
mov ecx, dword [esp + 0x14]
mov eax, 0xe3779b90
mov dword [esp + 0x24], 0x10
mov ebx, dword [esp + 0x1c]
mov ebp, dword [esp + 0x18]
mov edx, edi
shr edx, 5
add edx, ebx
mov ebx, edi
shl ebx, 4
add ebx, ebp
mov ebp, dword [esp + 0x10]
xor edx, ebx
lea ebx, [eax + edi]
xor edx, ebx
sub esi, edx
mov edx, esi
mov ebx, esi
shr edx, 5
shl ebx, 4
add edx, ecx
add ebx, ebp
xor edx, ebx
lea ebx, [eax + esi]
xor edx, ebx
add eax, 0x61c88647
sub edi, edx
mov edx, dword [esp + 0x24]
dec edx
mov dword [esp + 0x24], edx
jne 0x461bb0
push edi
call sub.WSOCK32.dll_htonl
mov edi, dword [esp + 0x2c]
push esi
mov dword [edi], eax
call sub.WSOCK32.dll_htonl
mov dword [edi + 4], eax
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x10
ret
Function at 0x462eb0
Capabilities:
Print debug messages

Disassembly:
sub esp, 0x8c
push ebx
mov ebx, dword [esp + 0x98]
test ebx, ebx
push esi
je 0x462fc5
mov esi, dword [esp + 0x98]
test esi, esi
je 0x462fc5
mov eax, dword [esi]
push ebp
push edi
push esi
call dword [eax + 0x6c]
push 0
call dword [sym.imp.GDI32.dll_CreateCompatibleDC]
mov edi, eax
test edi, edi
jne 0x462ef7
push 0x4a4f24
call dword [sym.imp.KERNEL32.dll_OutputDebugStringA]
push ebx
push edi
call dword [sym.imp.GDI32.dll_SelectObject]
lea ecx, [esp + 0x18]
mov dword [esp + 0x14], eax
push ecx
push 0x18
push ebx
call dword [sym.imp.GDI32.dll_GetObjectA]
mov ebx, dword [esp + 0xb0]
test ebx, ebx
jne 0x462f20
mov ebx, dword [esp + 0x1c]
mov eax, dword [esp + 0xb4]
test eax, eax
jne 0x462f36
mov edx, dword [esp + 0x20]
mov dword [esp + 0xb4], edx
mov eax, dword [esi]
lea ecx, [esp + 0x30]
push ecx
push esi
mov dword [esp + 0x38], 0x6c
mov dword [esp + 0x3c], 6
call dword [eax + 0x58]
mov edx, dword [esi]
lea eax, [esp + 0x10]
push eax
push esi
call dword [edx + 0x44]
mov ebp, eax
test ebp, ebp
jne 0x462fa3
mov ecx, dword [esp + 0xb4]
mov edx, dword [esp + 0xac]
mov eax, dword [esp + 0xa8]
push 0xcc0020
push ecx
mov ecx, dword [esp + 0x40]
push ebx
push edx
mov edx, dword [esp + 0x4c]
push eax
mov eax, dword [esp + 0x24]
push edi
push ecx
push edx
push ebp
push ebp
push eax
call dword [sym.imp.GDI32.dll_StretchBlt]
mov edx, dword [esp + 0x10]
mov ecx, dword [esi]
push edx
push esi
call dword [ecx + 0x68]
mov eax, dword [esp + 0x14]
push eax
push edi
call dword [sym.imp.GDI32.dll_SelectObject]
push edi
call dword [sym.imp.GDI32.dll_DeleteDC]
mov eax, ebp
pop edi
pop ebp
pop esi
pop ebx
add esp, 0x8c
ret 0x18
pop esi
mov eax, 0x80004005
pop ebx
add esp, 0x8c
ret 0x18
Function at 0x477840
Capabilities:
Check for software breakpoints

Disassembly:
push esi
mov esi, dword [esp + 8]
cmp dword [esi + 0x14], 0xca
jne 0x477870
push esi
call fcn.0047c100
mov al, byte [esi + 0x40]
add esp, 4
test al, al
je 0x477869
mov dword [esi + 0x14], 0xcf
mov al, 1
pop esi
ret
mov dword [esi + 0x14], 0xcb
mov eax, dword [esi + 0x14]
cmp eax, 0xcb
jne 0x4778f3
mov eax, dword [esi + 0x190]
mov cl, byte [eax + 0x10]
test cl, cl
je 0x4778df
mov eax, dword [esi + 8]
test eax, eax
je 0x477894
push esi
call dword [eax]
add esp, 4
mov ecx, dword [esi + 0x190]
push esi
call dword [ecx]
add esp, 4
test eax, eax
je 0x4778db
cmp eax, 2
je 0x4778df
mov ecx, dword [esi + 8]
test ecx, ecx
je 0x477887
cmp eax, 3
je 0x4778ba
cmp eax, 1
jne 0x477887
mov eax, dword [ecx + 4]
inc eax
mov dword [ecx + 4], eax
mov eax, dword [esi + 8]
mov ecx, dword [eax + 8]
mov edx, dword [eax + 4]
cmp edx, ecx
jl 0x477887
mov edx, dword [esi + 0x11c]
add edx, ecx
mov dword [eax + 8], edx
jmp 0x477887
xor al, al
pop esi
ret
mov eax, dword [esi + 0x7c]
push esi
mov dword [esi + 0x84], eax
call fcn.00477920
add esp, 4
pop esi
ret
cmp eax, 0xcc
je 0x477913
mov ecx, dword [esi]
push esi
mov dword [ecx + 0x14], 0x14
mov edx, dword [esi]
mov eax, dword [esi + 0x14]
mov dword [edx + 0x18], eax
mov ecx, dword [esi]
call dword [ecx]
add esp, 4
push esi
call fcn.00477920
add esp, 4
pop esi
ret
Function at 0x417d89
Capabilities:
Allocate thread local storage

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x10
mov dword [ebp - 8], 0xfffffff8
push ebx
xor ebx, ebx
mov dword [ebp - 0x10], 6
mov byte [ebp - 1], bl
cmp byte [ebp - 1], bl
je 0x417dae
call dword [sym.imp.KERNEL32.dll_TlsAlloc]
mov dword [ebp - 8], ebx
jmp 0x417e01
mov dword [ebp - 0xc], 0xd0374c7a
mov eax, dword [ebp - 0xc]
cmp dword [ebp - 8], ebx
je 0x417dcc
cmp dword [ebp - 0xc], ebx
je 0x417dcc
xor eax, eax
inc eax
jmp 0x417dce
mov eax, ebx
add eax, 0xf494e3ba
neg eax
push 6
sbb eax, eax
xor ecx, ecx
inc eax
imul eax, dword [ebp - 0xc]
cmp eax, 0xfffffffd
pop eax
setne cl
sub eax, ecx
xor ecx, ecx
imul eax, dword [ebp - 0xc]
imul eax, eax, 0xd0
cmp eax, 0xffffffff
setle cl
mov dword [ebp - 0x10], ecx
inc dword [ebp - 8]
cmp dword [ebp - 8], 0x10
jl 0x417db3
pop ebx
mov esp, ebp
pop ebp
ret

Function at 0x418070
Capabilities:
Read .ini file

Disassembly:
push ebp
mov ebp, esp
sub esp, 0xc
push ebx
push esi
mov esi, dword [ebp + 8]
xor ebx, ebx
push edi
mov edi, edx
mov edx, ecx
mov dword [ebp - 0xc], edx
mov eax, dword [edi]
mov eax, dword [edi]
mov dword [esi], 0
mov eax, dword [edi]
mov eax, dword [edi]
mov ecx, dword [edi]
mov edx, dword [edx]
mov eax, dword [edx + eax*4]
cmp eax, dword [edx + ecx*4]
setge bl
xor eax, eax
cmp dword [edx], 0x4bb4
setg al
sub ebx, eax
neg ebx
sbb ebx, ebx
inc ebx
neg ebx
je 0x4180ee
xor eax, eax
mov dword [ebp - 4], 0xffffffff
mov dword [esi], eax
jmp 0x4180e7
mov byte [ebp + 0xb], al
cmp byte [ebp + 0xb], 0
je 0x4180de
push eax
push 0x168f
push eax
push eax
push eax
push eax
call dword [sym.imp.KERNEL32.dll_GetPrivateProfileStringW]
xor eax, eax
mov dword [ebp - 4], 0x193208af
inc dword [esi]
cmp dword [esi], 2
jle 0x4180c3
jmp 0x418102
mov eax, dword [ebp - 0xc]
mov dword [ebp - 8], 0
mov edx, dword [edi]
mov ecx, dword [ebp - 8]
mov eax, dword [eax]
mov dword [eax + edx*4], ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x418109
Capabilities:
Get disk information

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x20
push 3
lea ecx, [ebp - 0x20]
call fcn.00415aed
mov dword [ebp - 0x10], 0xffffffff
mov dword [ebp - 0xc], 0x4dde9ab5
mov dword [ebp - 0x14], 0xffffffff
mov dword [ebp - 8], 0
jmp 0x418147
mov ecx, dword [ebp - 8]
mov eax, dword [ebp - 0x20]
mov dword [eax + ecx*4], 0x5e00fe1c
inc dword [ebp - 8]
cmp dword [ebp - 8], 3
jl 0x418137
mov byte [ebp - 1], 0
cmp byte [ebp - 1], 0
je 0x41815d
call dword [sym.imp.KERNEL32.dll_GetLogicalDrives]
push esi
xor ecx, ecx
push edi
mov edi, dword [ebp - 0x20]
mov esi, dword [edi + 4]
lea eax, [esi + esi]
cmp eax, esi
setle cl
xor edx, edx
cmp ecx, esi
setle dl
xor eax, eax
cmp esi, 4
sete al
xor ecx, ecx
sub eax, edx
cmp eax, 0x42b9193c
setne cl
sub ecx, esi
neg ecx
sbb ecx, ecx
xor edx, edx
inc ecx
mov dword [ebp - 0x10], ecx
mov ecx, dword [ebp - 0xc]
mov eax, dword [ebp - 0x10]
cmp eax, ecx
setge dl
xor ecx, ecx
xor eax, eax
inc ecx
cmp edx, ecx
setg al
cmp dword [edi + 4], eax
mov eax, dword [ebp - 0x20]
pop edi
pop esi
jge 0x4181ba
cmp dword [eax], 0
jne 0x4181bc
xor ecx, ecx
sub ecx, dword [eax + 8]
mov dword [ebp - 0xc], ecx
lea ecx, [ebp - 0x20]
mov eax, dword [ebp - 0xc]
mov dword [ebp - 0x14], eax
call fcn.00415bbf
mov esp, ebp
pop ebp
ret
Function at 0x434032
Capabilities:
Get disk information

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x50
push esi
movzx eax, byte [ebp + 0x10]
test eax, eax
je 0x43406f
mov eax, dword [ebp + 0xc]
mov dword [ebp - 0x34], eax
mov eax, dword [ebp + 8]
mov dword [ebp - 0x38], eax
mov eax, dword [ebp - 0x34]
mov dword [ebp - 0x40], eax
mov eax, dword [ebp - 0x38]
mov dword [ebp - 0x3c], eax
mov eax, dword [ebp - 0x3c]
mov eax, dword [eax]
mov eax, dword [eax]
mov ecx, dword [ebp - 0x40]
mov ecx, dword [ecx]
mov eax, dword [eax + 0x24]
mov dword [ecx], eax
jmp 0x4341f5
push 3
lea ecx, [ebp - 0x50]
call fcn.00415aed
mov dword [ebp - 0x24], 0xffffffff
mov dword [ebp - 0xc], 0x4dde9ab5
mov dword [ebp - 0x44], 0xffffffff
mov dword [ebp - 8], 0
jmp 0x43409e
mov eax, dword [ebp - 8]
inc eax
mov dword [ebp - 8], eax
cmp dword [ebp - 8], 3
jge 0x4340b7
push dword [ebp - 8]
lea ecx, [ebp - 0x50]
call fcn.00415bdb
mov dword [eax], 0x5e00fe1c
jmp 0x434097
mov byte [ebp - 1], 0
movzx eax, byte [ebp - 1]
test eax, eax
je 0x4340c9
call dword [sym.imp.KERNEL32.dll_GetLogicalDrives]
push 1
lea ecx, [ebp - 0x50]
call fcn.00415bdb
cmp dword [eax], 4
jne 0x4340e1
mov dword [ebp - 0x14], 1
jmp 0x4340e5
and dword [ebp - 0x14], 0
push 2
lea ecx, [ebp - 0x50]
call fcn.00415bdb
push 1
lea ecx, [ebp - 0x50]
call fcn.00415bdb
mov esi, eax
push 1
lea ecx, [ebp - 0x50]
call fcn.00415bdb
mov esi, dword [esi]
add esi, dword [eax]
push 1
lea ecx, [ebp - 0x50]
call fcn.00415bdb
cmp esi, dword [eax]
jg 0x434120
mov dword [ebp - 0x10], 1
jmp 0x434124
and dword [ebp - 0x10], 0
push 1
lea ecx, [ebp - 0x50]
call fcn.00415bdb
mov ecx, dword [ebp - 0x10]
cmp ecx, dword [eax]
jg 0x43413e
mov dword [ebp - 0x18], 1
jmp 0x434142
and dword [ebp - 0x18], 0
mov eax, dword [ebp - 0x14]
sub eax, dword [ebp - 0x18]
cmp eax, 0x42b9193c
je 0x434158
mov dword [ebp - 0x1c], 1
jmp 0x43415c
and dword [ebp - 0x1c], 0
push 1
lea ecx, [ebp - 0x50]
call fcn.00415bdb
mov ecx, dword [ebp - 0x1c]
cmp ecx, dword [eax]
jne 0x434176
mov dword [ebp - 0x20], 1
jmp 0x43417a
and dword [ebp - 0x20], 0
mov eax, dword [ebp - 0x20]
mov dword [ebp - 0x24], eax
mov eax, dword [ebp - 0xc]
cmp dword [ebp - 0x24], eax
jl 0x434191
mov dword [ebp - 0x28], 1
jmp 0x434195
and dword [ebp - 0x28], 0
cmp dword [ebp - 0x28], 1
jle 0x4341a4
mov dword [ebp - 0x2c], 1
jmp 0x4341a8
and dword [ebp - 0x2c], 0
push 1
lea ecx, [ebp - 0x50]
call fcn.00415bdb
mov eax, dword [eax]
cmp eax, dword [ebp - 0x2c]
jge 0x4341d1
push 0
lea ecx, [ebp - 0x50]
call fcn.00415bdb
cmp dword [eax], 0
je 0x4341d1
mov dword [ebp - 0x30], 1
jmp 0x4341d5
and dword [ebp - 0x30], 0
push 2
lea ecx, [ebp - 0x50]
call fcn.00415bdb
mov ecx, dword [ebp - 0x30]
sub ecx, dword [eax]
mov dword [ebp - 0xc], ecx
mov eax, dword [ebp - 0xc]
mov dword [ebp - 0x44], eax
lea ecx, [ebp - 0x50]
call fcn.00415bbf
pop esi
mov esp, ebp
pop ebp
ret