joyce8/EMBER2024-capa huggingface dataset:
Function at 0x100d31c2
Capabilities:
Resolve function by parsing pe exports

Disassembly:
push 0
push ecx
xor ecx, ecx
jne 0x100d320c
mov ecx, esp
xor dword [ecx - 0x55], edi
pop ecx
call 0x100d31b3
dec esp
adc eax, 0x91b81b2a
div bh
int 0x82
xchg ebx, eax
ror cl, 1
into
out dx, eax
call 0x100d31c2
cld
test edx, ebx
or ebp, eax
add dword [esi - 0x7cc26b19], esp
les ecx, [eax]
or dword [esp], ebp
mov ebp, esp
sub esp, 0x100
push ebx
push edx
push ecx
push edi
push esi
mov ebx, dword [ebp + 8]
mov edx, ebx
add ebx, dword [ebx + 0x3c]
mov ebx, dword [ebx + 0x78]
lea ebx, [ebx + edx]
mov eax, dword [ebx + 0x24]
add eax, edx
xor edi, edi
jne 0x104d8e65
or edi, dword [ebx + 0x20]
add edi, edx
mov ecx, dword [ebx + 0x18]
mov esi, dword [edi]
add esi, edx
push 0
push ecx
mov ecx, esp
push 0x55d34c8a
call 0x100d3213
sti
sbb byte [ecx + 0x56], dh
xlatb
les ebp, [ebp + 0x8c483e2]
xchg dword [ecx + 4], eax
xor eax, edx
shl eax, 3
xor ecx, 0
shl eax, 0x1d
add eax, dword [ecx + 4]
pop ecx
push esi
call fcn.100ba089
cmp eax, dword [ebp + 0xc]
pop eax
je 0x100d32b2
add edi, 4
add eax, 2
dec ecx
jne 0x100d31f8
call 0x100d325f
loope 0x100d3255
invalid
sbb esi, ebx
mov edi, 0xdbead58c
js 0x100d32af
mov dh, 0xe8
or byte [eax], al
add byte [eax], al
mov bh, 0x24
lea eax, [edx + 0x53]
nop
mov dword [esi + 0x2308c483], ecx
sal byte [ecx], 0xc0
fsub st(7)
int 0xf
mov bh, 0
movzx eax, word [eax]
jmp 0x100d32c0
shl eax, 2
add eax, dword [ebx + 0x1c]
add eax, edx
mov eax, dword [eax]
add eax, edx
mov ebx, edx
add ebx, dword [edx + 0x3c]
mov ecx, dword [ebx + 0x7c]
mov ebx, dword [ebx + 0x78]
add ebx, edx
add ecx, ebx
cmp eax, ebx
jb 0x100d3273
cmp eax, ecx
ja 0x100d3273
mov esi, eax
lea edi, [ebp - 0x100]
mov al, byte [esi]
mov byte [edi], al
inc edi
inc esi
js 0x100d32fd
or ecx, ecx
xor dword [esp - 0x6b], eax
cmp al, 0x2e
jne 0x100d32f3
lea edi, [ebp - 0x100]
push pe_nt_image_headers32
push edi
push esi
call fcn.100ba568
lea esp, [esp - 0x60]
mov dword [esp + 0x5c], edi
lea esp, [esp + 0x5c]
Function at 0x10001000
Capabilities:
Encode data using add xor sub operations
Encode data using xor

Disassembly:
xor ecx, ecx
mov al, 0x79
sub al, byte [ecx + section..data]
xor al, 0xa0
inc al
add al, cl
xor al, cl
neg al
ror al, 3
inc al
mov byte [ecx + section..data], al
inc ecx
cmp ecx, 0x1a05
jb 0x10001002
push 0
push 0
push section..data
call dword [sym.imp.KERNEL32.dll_EnumTimeFormatsA]
ret
Function at 0x403e14
Capabilities:
Get geographical location
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffee0
push ebx
push esi
mov dword [ebp - 4], eax
push 0x105
lea eax, [ebp - 0x11d]
push eax
push 0
call sub.kernel32.dll_GetModuleFileNameA
mov byte [ebp - 0x12], 0
lea eax, [ebp - 8]
push eax
push 0xf003f
push 0
push 0x403fcc
push 0x80000001
call sub.advapi32.dll_RegOpenKeyExA
test eax, eax
je 0x403e75
lea eax, [ebp - 8]
push eax
push 0xf003f
push 0
push 0x403fe8
push 0x80000001
call sub.advapi32.dll_RegOpenKeyExA
test eax, eax
jne 0x403ee2
xor eax, eax
push ebp
push 0x403edb
push dword fs:[eax]
mov dword fs:[eax], esp
mov dword [ebp - 0x18], 5
lea eax, [ebp - 0x18]
push eax
lea eax, [ebp - 0x12]
push eax
push 0
push 0
lea eax, [ebp - 0x11d]
push eax
mov eax, dword [ebp - 8]
push eax
call sub.advapi32.dll_RegQueryValueExA
test eax, eax
je 0x403ec4
lea eax, [ebp - 0x18]
push eax
lea eax, [ebp - 0x12]
push eax
push 0
push 0
push 0x404008
mov eax, dword [ebp - 8]
push eax
call sub.advapi32.dll_RegQueryValueExA
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x403ee2
mov eax, dword [ebp - 8]
push eax
call sub.advapi32.dll_RegCloseKey
ret
mov eax, dword [ebp - 4]
push eax
lea eax, [ebp - 0x11d]
push eax
call sub.kernel32.dll_lstrcpyA
push 5
lea eax, [ebp - 0xd]
push eax
push 3
call sub.kernel32.dll_GetThreadLocale
push eax
call sub.kernel32.dll_GetLocaleInfoA
xor esi, esi
cmp byte [ebp - 0x11d], 0
je 0x403fc3
cmp byte [ebp - 0xd], 0
jne 0x403f24
cmp byte [ebp - 0x12], 0
je 0x403fc3
lea eax, [ebp - 0x11d]
push eax
call sub.kernel32.dll_lstrlenA
mov ebx, eax
lea eax, [ebp - 0x11d]
add ebx, eax
jmp 0x403f3d
dec ebx
cmp byte [ebx], 0x2e
je 0x403f4c
lea eax, [ebp - 0x11d]
cmp ebx, eax
jne 0x403f3c
lea eax, [ebp - 0x11d]
cmp ebx, eax
je 0x403fc3
inc ebx
cmp byte [ebp - 0x12], 0
je 0x403f79
lea eax, [ebp - 0x12]
push eax
push ebx
call sub.kernel32.dll_lstrcpyA
push 2
push 0
lea eax, [ebp - 0x11d]
push eax
call sub.kernel32.dll_LoadLibraryExA
mov esi, eax
test esi, esi
jne 0x403fc3
cmp byte [ebp - 0xd], 0
je 0x403fc3
lea eax, [ebp - 0xd]
push eax
push ebx
call sub.kernel32.dll_lstrcpyA
push 2
push 0
lea eax, [ebp - 0x11d]
push eax
call sub.kernel32.dll_LoadLibraryExA
mov esi, eax
test esi, esi
jne 0x403fc3
mov byte [ebp - 0xb], 0
lea eax, [ebp - 0xd]
push eax
push ebx
call sub.kernel32.dll_lstrcpyA
push 2
push 0
lea eax, [ebp - 0x11d]
push eax
call sub.kernel32.dll_LoadLibraryExA
mov esi, eax
mov eax, esi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x406484
Capabilities:
Accept command line arguments

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffef0
push ebx
push esi
push edi
xor ecx, ecx
mov dword [ebp - 0x110], ecx
mov dword [ebp - 4], edx
mov esi, eax
xor eax, eax
push ebp
push 0x40658e
push dword fs:[eax]
mov dword fs:[eax], esp
test esi, esi
jne 0x4064d7
push 0x105
lea eax, [ebp - 0x109]
push eax
push 0
call sub.kernel32.dll_GetModuleFileNameA_2
mov ecx, eax
lea edx, [ebp - 0x109]
mov eax, dword [ebp - 4]
call fcn.00403110
jmp 0x406575
call sub.kernel32.dll_GetCommandLineA_1
mov ebx, eax
mov eax, ebx
call fcn.00406438
mov ebx, eax
mov edi, ebx
mov eax, ebx
call fcn.00406458
mov ebx, eax
test esi, esi
je 0x4064ff
dec esi
test esi, esi
jl 0x4064ff
cmp edi, ebx
jne 0x4064de
mov eax, dword [ebp - 4]
push eax
lea eax, [ebp - 0x110]
mov edx, edi
call fcn.00403150
mov eax, dword [ebp - 0x110]
mov ecx, ebx
sub ecx, edi
mov edx, 1
call fcn.0040339c
mov eax, dword [ebp - 4]
mov eax, dword [eax]
call fcn.00403198
cmp eax, 2
jl 0x406575
mov eax, dword [ebp - 4]
mov eax, dword [eax]
cmp byte [eax], 0x22
jne 0x406575
mov eax, dword [ebp - 4]
mov eax, dword [eax]
call fcn.00403198
mov edx, dword [ebp - 4]
mov edx, dword [edx]
cmp byte [edx + eax - 1], 0x22
jne 0x406575
mov eax, dword [ebp - 4]
push eax
mov eax, dword [ebp - 4]
mov eax, dword [eax]
call fcn.00403198
mov ecx, eax
sub ecx, 2
mov eax, dword [ebp - 4]
mov eax, dword [eax]
mov edx, 2
call fcn.0040339c
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x406595
lea eax, [ebp - 0x110]
call fcn.0040302c
ret

Function at 0x40659c
Capabilities:
Get file attributes

Disassembly:
call fcn.0040506c
push eax
call sub.kernel32.dll_GetFileAttributesA
inc eax
je 0x4065b0
dec eax
and al, 0x10
sete al
ret

Function at 0x406734
Capabilities:
Read .ini file

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffff8
push ebx
push esi
push edi
xor ebx, ebx
mov dword [ebp - 8], ebx
mov esi, ecx
mov edi, edx
mov ebx, eax
xor eax, eax
push ebp
push 0x4067cc
push dword fs:[eax]
mov dword fs:[eax], esp
cmp byte [ebx + 0x18], 0
jne 0x406781
mov eax, dword [ebx + 0x19]
call fcn.0040335c
push eax
push esi
mov eax, edi
call fcn.0040335c
push eax
mov eax, dword [ebx + 0x1d]
call fcn.0040335c
push eax
call sub.kernel32.dll_GetPrivateProfileIntA
mov dword [ebp - 4], eax
jmp 0x4067b6
mov dword [ebp - 4], esi
mov eax, dword [ebx + 0x19]
call fcn.0040335c
push eax
lea edx, [ebp - 8]
mov eax, esi
call fcn.00406168
mov eax, dword [ebp - 8]
call fcn.0040335c
push eax
mov eax, edi
call fcn.0040335c
push eax
mov eax, dword [ebx + 0x1d]
call fcn.0040335c
push eax
call sub.kernel32.dll_WritePrivateProfileStringA
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x4067d3
lea eax, [ebp - 8]
call fcn.0040302c
ret
Function at 0x408020
Capabilities:
Get graphical window text

Disassembly:
xchg edx, eax
movzx ecx, byte [edx + 0x3a]
jecxz 0x40802f
mov edx, dword [edx + 0x36]
jmp fcn.00403150
mov ecx, dword [edx + 0x18]
jecxz 0x408027
push ebx
push esi
xchg ebx, eax
mov esi, ecx
push esi
call sub.user32.dll_GetWindowTextLengthA
mov edx, eax
inc eax
push eax
mov eax, ebx
call fcn.004034c8
pop edx
mov ecx, dword [ebx]
jecxz 0x408057
push edx
push ecx
push esi
call sub.user32.dll_GetWindowTextA
pop esi
pop ebx
ret

Function at 0x40abdc
Capabilities:
Open clipboard
Read clipboard data

Disassembly:
push ebx
push esi
push edi
mov ebx, eax
mov eax, ebx
call fcn.0040302c
push 0
call sub.user32.dll_OpenClipboard
test eax, eax
je 0x40ac2b
push 1
call sub.user32.dll_IsClipboardFormatAvailable
test eax, eax
je 0x40ac26
push 1
call sub.user32.dll_GetClipboardData
mov esi, eax
test esi, esi
je 0x40ac26
push esi
call sub.kernel32.dll_GlobalLock
mov edi, eax
test edi, edi
je 0x40ac26
mov eax, ebx
mov edx, edi
call fcn.00403150
push esi
call sub.kernel32.dll_GlobalUnlock
call sub.user32.dll_CloseClipboard
pop edi
pop esi
pop ebx
ret

Function at 0x4158dc
Capabilities:
Terminate process

Disassembly:
push ebx
mov ebx, eax
cmp dword [ebx + 4], 0
je 0x415941
mov byte [ebx + 0x28], 0
push 0
mov eax, dword [ebx + 4]
push eax
call sub.kernel32.dll_TerminateProcess
mov eax, dword [ebx + 4]
push eax
call sub.kernel32.dll_CloseHandle_1
mov eax, dword [ebx + 0x14]
push eax
call sub.kernel32.dll_CloseHandle_1
mov eax, dword [ebx + 0x18]
push eax
call sub.kernel32.dll_CloseHandle_1
mov eax, dword [ebx + 0x1c]
push eax
call sub.kernel32.dll_CloseHandle_1
mov eax, dword [ebx + 8]
push eax
call sub.kernel32.dll_CloseHandle_1
mov eax, dword [ebx + 0xc]
push eax
call sub.kernel32.dll_CloseHandle_1
mov eax, dword [ebx + 0x10]
push eax
call sub.kernel32.dll_CloseHandle_1
mov eax, dword [ebx + 0x24]
push eax
call sub.kernel32.dll_CloseHandle_1
xor eax, eax
mov dword [ebx + 4], eax
pop ebx
ret
Function at 0x40295f
Capabilities:
Terminate process

Disassembly:
jmp 0x450052
push 0x17
call dword [sym.imp.KERNEL32.dll_IsProcessorFeaturePresent]
test eax, eax
je 0x450063
push 5
pop ecx
int 0x29
push esi
push 1
mov esi, 0xc0000417
push esi
push 2
call fcn.004040ed
add esp, 0xc
push esi
call dword [sym.imp.KERNEL32.dll_GetCurrentProcess]
push eax
call dword [sym.imp.KERNEL32.dll_TerminateProcess]
pop esi
ret

Function at 0x402a04
Capabilities:
Query environment variable

Disassembly:
jmp 0x45d1ce
mov edi, edi
push esi
call dword [sym.imp.KERNEL32.dll_GetEnvironmentStringsW]
mov esi, eax
test esi, esi
jne 0x45d1df
pop esi
ret
push ebx
push edi
push esi
call fcn.0045d0b5
mov ebx, eax
sub ebx, esi
and ebx, 0xfffffffe
push ebx
call fcn.00402fe5
mov edi, eax
pop ecx
pop ecx
test edi, edi
je 0x45d207
push ebx
push esi
push edi
call fcn.00403f7b
add esp, 0xc
push 0
call fcn.00404700
pop ecx
push esi
call dword [sym.imp.KERNEL32.dll_FreeEnvironmentStringsW]
mov eax, edi
pop edi
pop ebx
pop esi
ret

Function at 0x404002
Capabilities:
Parse pe header

Disassembly:
jmp 0x40995c
push 0
call dword [sym.imp.KERNEL32.dll_GetModuleHandleW]
test eax, eax
je 0x40999b
mov ecx, 0x5a4d
cmp word [eax], cx
jne 0x40999b
mov ecx, dword [eax + 0x3c]
add ecx, eax
cmp dword [ecx], 0x4550
jne 0x40999b
mov eax, 0x10b
cmp word [ecx + 0x18], ax
jne 0x40999b
cmp dword [ecx + 0x74], 0xe
jbe 0x40999b
cmp dword [ecx + 0xe8], 0
setne al
ret
xor al, al
ret

Function at 0x44a6a7
Capabilities:
Parse pe header

Disassembly:
push 0
call dword [sym.imp.KERNEL32.dll_GetModuleHandleW]
test eax, eax
je 0x44a6e6
mov ecx, 0x5a4d
cmp word [eax], cx
jne 0x44a6e6
mov ecx, dword [eax + 0x3c]
add ecx, eax
cmp dword [ecx], 0x4550
jne 0x44a6e6
mov eax, 0x10b
cmp word [ecx + 0x18], ax
jne 0x44a6e6
cmp dword [ecx + 0x74], 0xe
jbe 0x44a6e6
cmp dword [ecx + 0xe8], 0
setne al
ret
xor al, al
ret
Function at 0x45b1d8
Capabilities:
Enumerate files on windows

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x264
mov eax, dword [section..data]
xor eax, ebp
mov dword [ebp - 4], eax
mov edx, dword [ebp + 0xc]
mov ecx, dword [ebp + 0x10]
push ebx
push esi
push edi
mov edi, dword [ebp + 8]
mov dword [ebp - 0x25c], ecx
cmp edx, edi
je 0x45b223
movzx eax, word [edx]
lea ecx, [ebp - 0x255]
push eax
call fcn.0045b6d9
test al, al
jne 0x45b21d
sub edx, 2
cmp edx, edi
jne 0x45b203
mov ecx, dword [ebp - 0x25c]
movzx esi, word [edx]
cmp esi, 0x3a
jne 0x45b245
lea eax, [edi + 2]
cmp edx, eax
je 0x45b245
push ecx
xor ebx, ebx
push ebx
push ebx
push edi
call fcn.0045add1
add esp, 0x10
jmp 0x45b33f
push esi
lea ecx, [ebp - 0x255]
call fcn.0045b6d9
sub edx, edi
movzx eax, al
sar edx, 1
inc edx
neg eax
sbb eax, eax
xor ebx, ebx
push ebx
push ebx
and eax, edx
push ebx
mov dword [ebp - 0x260], eax
lea eax, [ebp - 0x254]
push eax
push ebx
push edi
call dword [sym.imp.KERNEL32.dll_FindFirstFileExW]
mov esi, eax
cmp esi, 0xffffffff
jne 0x45b288
push dword [ebp - 0x25c]
jmp 0x45b235
mov ebx, dword [ebp - 0x25c]
push 0x2e
mov eax, dword [ebx + 4]
sub eax, dword [ebx]
sar eax, 2
mov dword [ebp - 0x25c], eax
pop eax
cmp word [ebp - 0x228], ax
jne 0x45b2c5
cmp word [ebp - 0x226], 0
je 0x45b2e6
cmp word [ebp - 0x226], ax
jne 0x45b2c5
cmp word [ebp - 0x224], 0
je 0x45b2e6
push ebx
push dword [ebp - 0x260]
lea eax, [ebp - 0x228]
push edi
push eax
call fcn.0045add1
add esp, 0x10
mov dword [ebp - 0x264], eax
test eax, eax
jne 0x45b332
lea eax, [ebp - 0x254]
push eax
push esi
call dword [sym.imp.KERNEL32.dll_FindNextFileW]
push 0x2e
test eax, eax
pop eax
jne 0x45b29f
mov eax, dword [ebx + 4]
mov edx, dword [ebx]
sub eax, edx
mov ecx, dword [ebp - 0x25c]
sar eax, 2
cmp ecx, eax
jne 0x45b31a
push esi
call dword [sym.imp.KERNEL32.dll_FindClose]
xor eax, eax
jmp 0x45b33f
push 0x45a6b7
sub eax, ecx
push 4
push eax
lea eax, [edx + ecx*4]
push eax
call fcn.00403e45
add esp, 0x10
jmp 0x45b30f
push esi
call dword [sym.imp.KERNEL32.dll_FindClose]
mov eax, dword [ebp - 0x264]
mov ecx, dword [ebp - 4]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.00402586
leave
ret

Function at 0x461c05
Capabilities:
Get geographical location

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push ecx
push esi
push edi
call fcn.00403206
mov esi, dword [ebp + 8]
mov edi, eax
push 2
lea eax, [ebp - 4]
mov ecx, esi
push eax
and ecx, 0x3ff
push 0x20000001
or ecx, 0x400
push ecx
call dword [sym.imp.KERNEL32.dll_GetLocaleInfoW]
test eax, eax
je 0x461c74
cmp esi, dword [ebp - 4]
je 0x461c6f
cmp dword [ebp + 0xc], 0
je 0x461c6f
mov esi, dword [edi + 0x50]
lea ecx, [esi + 2]
mov ax, word [esi]
add esi, 2
test ax, ax
jne 0x461c4c
push dword [edi + 0x50]
sub esi, ecx
sar esi, 1
call fcn.0046162d
pop ecx
xor ecx, ecx
cmp eax, esi
setne cl
mov eax, ecx
jmp 0x461c76
xor eax, eax
inc eax
jmp 0x461c76
xor eax, eax
pop edi
pop esi
leave
ret
Function at 0x46f558
Capabilities:
Read file on windows

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x18
mov eax, dword [ebp + 8]
mov ecx, eax
push ebx
mov ebx, dword [ebp + 0xc]
and eax, 0x3f
sar ecx, 6
push esi
push edi
imul edi, eax, 0x38
mov eax, dword [ecx*4 + 0x48d170]
mov dword [ebp - 0xc], ecx
mov ecx, dword [edi + eax + 0x18]
mov dword [ebp - 0x14], ecx
mov ecx, dword [ebp + 0x10]
test ecx, ecx
je 0x46f598
cmp byte [ebx], 0xa
jne 0x46f598
or byte [edi + eax + 0x28], 4
jmp 0x46f59d
and byte [edi + eax + 0x28], 0xfb
add ecx, ebx
mov eax, ebx
mov dword [ebp - 0x10], ecx
mov esi, ebx
mov dword [ebp - 8], eax
cmp ebx, ecx
jae 0x46f69c
mov dl, byte [eax]
cmp dl, 0x1a
je 0x46f67f
inc eax
cmp dl, 0xd
je 0x46f5c9
mov dword [ebp - 8], eax
mov byte [esi], dl
jmp 0x46f5ef
cmp eax, ecx
jae 0x46f5fd
mov cl, byte [eax]
xor eax, eax
cmp cl, 0xa
sete al
inc eax
add dword [ebp - 8], eax
cmp cl, 0xa
sete al
dec al
and al, 3
add al, 0xa
mov byte [esi], al
mov eax, dword [ebp - 8]
mov ecx, dword [ebp - 0x10]
xor edx, edx
inc edx
add esi, edx
cmp eax, ecx
jb 0x46f5b1
jmp 0x46f69c
push 0
lea eax, [ebp - 0x10]
push eax
push 1
lea eax, [ebp - 1]
push eax
push dword [ebp - 0x14]
call dword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
je 0x46f67a
cmp dword [ebp - 0x10], 0
je 0x46f67a
mov ecx, dword [ebp - 0xc]
mov eax, dword [ecx*4 + 0x48d170]
test byte [eax + edi + 0x28], 0x48
je 0x46f654
mov dl, byte [ebp - 1]
lea eax, [esi + 1]
mov dword [ebp - 0x14], eax
cmp dl, 0xa
jne 0x46f63f
mov byte [esi], dl
jmp 0x46f650
mov byte [esi], 0xd
mov eax, dword [ecx*4 + 0x48d170]
mov byte [eax + edi + 0x2a], dl
mov eax, dword [ebp - 0x14]
mov esi, eax
jmp 0x46f69c
cmp byte [ebp - 1], 0xa
jne 0x46f663
cmp esi, ebx
jne 0x46f663
mov byte [esi], 0xa
jmp 0x46f69b
push 1
push 0xffffffffffffffff
push 0xffffffffffffffff
push dword [ebp + 8]
call fcn.0040161d
add esp, 0x10
cmp byte [ebp - 1], 0xa
je 0x46f69c
mov byte [esi], 0xd
jmp 0x46f69b
mov ecx, dword [ebp - 0xc]
mov ecx, dword [ecx*4 + 0x48d170]
mov al, byte [ecx + edi + 0x28]
test al, 0x40
jne 0x46f699
or al, 2
mov byte [ecx + edi + 0x28], al
jmp 0x46f69c
mov byte [esi], dl
inc esi
sub esi, ebx
pop edi
mov eax, esi
pop esi
pop ebx
leave
ret
Function at 0x46f6f8
Capabilities:
Read file on windows

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x1c
mov eax, dword [ebp + 8]
mov ecx, eax
push ebx
mov ebx, dword [ebp + 0xc]
and eax, 0x3f
push esi
sar ecx, 6
push edi
imul edi, eax, 0x38
mov dword [ebp - 8], ecx
mov eax, dword [ecx*4 + 0x48d170]
push 0xa
pop edx
mov dword [ebp - 0x18], edx
mov ecx, dword [eax + edi + 0x18]
mov dword [ebp - 0x1c], ecx
mov ecx, dword [ebp + 0x10]
test ecx, ecx
je 0x46f73e
cmp word [ebx], dx
jne 0x46f73e
or byte [eax + edi + 0x28], 4
jmp 0x46f743
and byte [eax + edi + 0x28], 0xfb
lea edx, [ebx + ecx*2]
mov eax, ebx
mov dword [ebp - 0xc], edx
mov esi, ebx
mov dword [ebp - 4], eax
cmp ebx, edx
jae 0x46f8a6
mov dword [ebp - 0x10], 0xd
movzx ecx, word [eax]
mov edx, ecx
mov dword [ebp - 0x14], edx
mov edx, dword [ebp - 0xc]
cmp ecx, 0x1a
je 0x46f886
add eax, 2
cmp cx, word [ebp - 0x10]
je 0x46f784
mov dword [ebp - 4], eax
mov word [esi], cx
jmp 0x46f7ba
cmp eax, edx
jae 0x46f7c8
movzx eax, word [eax]
xor ecx, ecx
cmp ax, word [ebp - 0x18]
mov edx, eax
push 0xa
sete cl
xor eax, eax
lea ecx, [ecx*2 + 2]
add dword [ebp - 4], ecx
pop ecx
cmp dx, cx
mov edx, dword [ebp - 0xc]
sete al
dec eax
and eax, 3
add eax, ecx
mov word [esi], ax
mov eax, dword [ebp - 4]
push 2
pop ecx
add esi, ecx
cmp eax, edx
jb 0x46f75f
jmp 0x46f8a6
push 0
lea eax, [ebp - 0x18]
push eax
push 2
lea eax, [ebp - 4]
push eax
push dword [ebp - 0x1c]
call dword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
je 0x46f881
cmp dword [ebp - 0x18], 0
je 0x46f881
mov edx, dword [ebp - 8]
push 0xa
mov eax, dword [edx*4 + 0x48d170]
test byte [eax + edi + 0x28], 0x48
je 0x46f857
lea eax, [esi + 2]
mov dword [ebp - 0x1c], eax
mov ax, word [ebp - 4]
pop ecx
mov word [ebp - 2], ax
cmp ax, cx
jne 0x46f81b
mov word [esi], cx
jmp 0x46f852
push 0xd
pop ecx
mov word [esi], cx
movzx ecx, ax
mov eax, dword [edx*4 + 0x48d170]
mov dx, word [ebp - 2]
shr ecx, 8
push 0xa
mov byte [eax + edi + 0x2a], dl
mov edx, dword [ebp - 8]
mov eax, dword [edx*4 + 0x48d170]
mov byte [eax + edi + 0x2b], cl
mov eax, dword [edx*4 + 0x48d170]
pop ecx
mov byte [eax + edi + 0x2c], cl
mov esi, dword [ebp - 0x1c]
jmp 0x46f8a6
pop eax
cmp word [ebp - 4], ax
jne 0x46f867
cmp esi, ebx
jne 0x46f867
mov word [esi], ax
jmp 0x46f8a3
push 1
push 0xffffffffffffffff
push 0xfffffffffffffffe
push dword [ebp + 8]
call fcn.0040161d
add esp, 0x10
push 0xa
pop eax
cmp word [ebp - 4], ax
je 0x46f8a6
push 0xd
pop eax
jmp 0x46f862
mov edx, dword [ebp - 8]
mov edx, dword [edx*4 + 0x48d170]
mov al, byte [edx + edi + 0x28]
test al, 0x40
jne 0x46f8a0
or al, 2
mov byte [edx + edi + 0x28], al
jmp 0x46f8a6
mov word [esi], cx
add esi, 2
sub esi, ebx
and esi, 0xfffffffe
pop edi
mov eax, esi
pop esi
pop ebx
leave
ret
Function at 0x168f0b0
Capabilities:
Resolve function by parsing pe exports

Disassembly:
push 0xffffffffffffffff
push 0x17db71b
mov eax, dword fs:[0]
push eax
sub esp, 8
push ebx
push ebp
push esi
push edi
mov eax, dword [0x1845170]
xor eax, esp
push eax
lea eax, [esp + 0x1c]
mov dword fs:[0], eax
mov esi, ecx
mov eax, dword [esi + 0x24]
xor ebp, ebp
cmp eax, ebp
je 0x168f0f2
push eax
push 0x1802a38
call fcn.0176ca30
jmp 0x168f1f0
mov edi, dword [esi + 8]
xor ecx, ecx
mov eax, edi
mov edx, 0x78
mul edx
seto cl
neg ecx
or ecx, eax
xor eax, eax
add ecx, 4
setb al
neg eax
or eax, ecx
push eax
call fcn.017af02b
add esp, 4
mov dword [esp + 0x18], eax
mov dword [esp + 0x24], ebp
cmp eax, ebp
je 0x168f146
push fcn.01680ed0
push 0x1680e60
push edi
lea ebx, [eax + 4]
push 0x78
push ebx
mov dword [eax], edi
call fcn.017b0348
mov dword [esp + 0x14], ebx
jmp 0x168f14c
mov dword [esp + 0x14], ebp
mov ebx, ebp
mov dword [esp + 0x24], 0xffffffff
cmp ebx, ebp
mov dword [esp + 0x18], ebx
je 0x168f1e1
mov ebx, dword [esi + 0x2c]
mov edx, dword [ebx + 4]
lea edi, [esi + 0x28]
lea ecx, [esp + 0x18]
push ecx
push edx
push ebx
mov ecx, edi
call fcn.0167ca20
push 1
mov ecx, edi
mov ebp, eax
call fcn.01683750
mov dword [ebx + 4], ebp
mov eax, dword [ebp + 4]
xor edi, edi
mov dword [eax], ebp
cmp dword [esi + 8], edi
jle 0x168f1be
mov ebx, dword [esp + 0x14]
mov eax, dword [esi + 0x10]
cmp eax, 0xffffffff
mov dword [esp + 0x18], ebx
je 0x168f1a6
cmp dword [esi + 0x24], eax
jae 0x168f1b3
lea ecx, [esp + 0x18]
push ecx
lea ecx, [esi + 0x14]
call fcn.0168bd80
add edi, 1
add ebx, 0x78
cmp edi, dword [esi + 8]
jl 0x168f195
mov edx, dword [esi + 0x30]
imul edx, dword [esi + 8]
mov dword [esi + 0x3c], edx
mov eax, 1
mov ecx, dword [esp + 0x1c]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x14
ret
push str.CChunkAllocatorST::AllocItemBlock___Failed
push 0x2000000
call fcn.0177bbe0
add esp, 8
xor eax, eax
mov ecx, dword [esp + 0x1c]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x14
ret
Function at 0x1694b60
Capabilities:
Read .ini file

Disassembly:
push 0xffffffffffffffff
push 0x17dbd56
mov eax, dword fs:[0]
push eax
sub esp, 0x18
mov eax, dword [0x1845170]
xor eax, esp
mov dword [esp + 0x14], eax
push ebx
push ebp
push esi
push edi
mov eax, dword [0x1845170]
xor eax, esp
push eax
lea eax, [esp + 0x2c]
mov dword fs:[0], eax
mov ebx, ecx
cmp dword [ebx + 0x40110], 0
je 0x1694ba2
call fcn.0176dcc0
mov esi, dword [sym.imp.KERNEL32.dll_GetPrivateProfileIntA]
push str.._billing.ini
push 0
push str.type
push str.billing
call esi
push str.._billing.ini
push 0x497a
push str.port
push str.billing
mov edi, eax
call esi
push str.._billing.ini
push 0x2000
push str.poolsize
push str.billing
movzx ebp, ax
call esi
push str.._billing.ini
push 0x10
movzx esi, ax
lea eax, [esp + 0x20]
push eax
push str.127.0.0.1
push 0x18046ec
push str.billing
call dword [sym.imp.KERNEL32.dll_GetPrivateProfileStringA]
test edi, edi
je 0x1694c2f
movzx ecx, bp
push ecx
lea edx, [esp + 0x1c]
push edx
push edi
push str.BILLING_SERVER_type:__d__ip:__s__port:__d_
push 0
call fcn.0170b720
add esp, 0x14
jmp 0x1694c3e
push str.BILLING_SERVER_dummy_
push 0
call fcn.0170b720
add esp, 8
sub edi, 1
je 0x1694c79
push 4
call fcn.017b01a2
add esp, 4
mov dword [esp + 0x14], eax
mov dword [esp + 0x34], 1
test eax, eax
je 0x1694c6d
mov dword [eax], vtable.CDummyBillingMgr.0
mov dword [esp + 0x34], 0xffffffff
jmp 0x1694cb5
xor eax, eax
mov dword [esp + 0x34], 0xffffffff
jmp 0x1694cb5
push 0x80050
call fcn.017b01a2
add esp, 4
mov dword [esp + 0x14], eax
mov dword [esp + 0x34], 0
test eax, eax
je 0x1694ca0
push ebx
mov ecx, eax
call fcn.016f0420
jmp 0x1694ca2
xor eax, eax
mov dword [esp + 0x34], 0xffffffff
test eax, eax
je 0x1694cb3
add eax, 4
jmp 0x1694cb5
xor eax, eax
test eax, eax
mov dword [ebx + 0x40110], eax
jne 0x1694cc4
call fcn.0176dcc0
mov ecx, dword [ebx + 0x40110]
mov eax, dword [ecx]
mov eax, dword [eax]
push esi
push ebp
lea edx, [esp + 0x20]
push edx
call eax
test eax, eax
jne 0x1694cf1
push str.BillingMgr__Initialization_Failure_
push 0x2000000
call fcn.0170b720
add esp, 8
xor eax, eax
jmp 0x1694d05
push str.BillingMgr__Created_
push 0
call fcn.0170b720
add esp, 8
mov eax, 1
mov ecx, dword [esp + 0x2c]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebp
pop ebx
mov ecx, dword [esp + 0x14]
xor ecx, esp
call fcn.017b0193
add esp, 0x24
ret