joyce8/EMBER2024-capa huggingface dataset:
Function at 0x10014a20
Capabilities:
Extract resource via kernel32 functions

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x14
mov eax, dword [ebp + 0xc]
push eax
mov ecx, dword [ebp + 8]
push ecx
call dword [sym.imp.KERNEL32.dll_LoadResource]
mov dword [ebp - 0xc], eax
cmp dword [ebp - 0xc], 0
jne 0x10014a44
xor eax, eax
jmp 0x10014ac4
mov edx, dword [ebp - 0xc]
push edx
call dword [sym.imp.KERNEL32.dll_LockResource]
mov dword [ebp - 4], eax
cmp dword [ebp - 4], 0
jne 0x10014a5b
xor eax, eax
jmp 0x10014ac4
mov eax, dword [ebp + 0xc]
push eax
mov ecx, dword [ebp + 8]
push ecx
call dword [sym.imp.KERNEL32.dll_SizeofResource]
mov dword [ebp - 0x14], eax
mov edx, dword [ebp - 4]
add edx, dword [ebp - 0x14]
mov dword [ebp - 0x10], edx
mov eax, dword [ebp + 0x10]
and eax, 0xf
mov dword [ebp - 8], eax
cmp dword [ebp - 8], 0
jbe 0x10014aa7
mov ecx, dword [ebp - 4]
cmp ecx, dword [ebp - 0x10]
jae 0x10014aa7
mov edx, dword [ebp - 4]
movzx eax, word [edx]
mov ecx, dword [ebp - 4]
lea edx, [ecx + eax*2 + 2]
mov dword [ebp - 4], edx
mov eax, dword [ebp - 8]
sub eax, 1
mov dword [ebp - 8], eax
jmp 0x10014a7e
mov ecx, dword [ebp - 4]
cmp ecx, dword [ebp - 0x10]
jb 0x10014ab3
xor eax, eax
jmp 0x10014ac4
mov edx, dword [ebp - 4]
movzx eax, word [edx]
test eax, eax
jne 0x10014ac1
xor eax, eax
jmp 0x10014ac4
mov eax, dword [ebp - 4]
mov esp, ebp
pop ebp
ret

Function at 0x1001f2e0
Capabilities:
Check if file exists

Disassembly:
push ebp
mov ebp, esp
sub esp, 8
cmp dword [ebp + 8], 0
je 0x1001f2fa
mov eax, dword [ebp + 8]
push eax
call dword [sym.imp.SHLWAPI.dll_PathFileExistsW]
test eax, eax
jne 0x1001f2fe
xor eax, eax
jmp 0x1001f344
mov ecx, dword [ebp + 8]
push ecx
call fcn.1004dd80
add esp, 4
test eax, eax
jne 0x1001f312
xor eax, eax
jmp 0x1001f344
mov edx, dword [ebp + 8]
push edx
call dword [sym.imp.KERNEL32.dll_LoadLibraryW]
mov dword [ebp - 4], eax
cmp dword [ebp - 4], 0
je 0x1001f342
push str.GetPublicConfigHelperObj
mov eax, dword [ebp - 4]
push eax
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
mov dword [ebp - 8], eax
cmp dword [ebp - 8], 0
je 0x1001f342
call dword [ebp - 8]
jmp 0x1001f344
xor eax, eax
mov esp, ebp
pop ebp
ret

Function at 0x1001f600
Capabilities:
Check if file exists

Disassembly:
push ebp
mov ebp, esp
push ecx
mov dword [ebp - 4], ecx
mov ecx, dword [ebp + 0xc]
call fcn.100065a0
push eax
call dword [sym.imp.SHLWAPI.dll_PathFileExistsW]
test eax, eax
jne 0x1001f61e
xor al, al
jmp 0x1001f65a
mov ecx, dword [ebp + 0xc]
call fcn.100065a0
push eax
call fcn.1001f2e0
add esp, 4
mov ecx, dword [ebp - 4]
mov dword [ecx], eax
mov edx, dword [ebp - 4]
cmp dword [edx], 0
jne 0x1001f640
xor al, al
jmp 0x1001f65a
mov ecx, dword [ebp + 8]
call fcn.100065a0
push eax
mov eax, dword [ebp - 4]
mov ecx, dword [eax]
mov edx, dword [ebp - 4]
mov eax, dword [ecx]
mov ecx, dword [edx]
mov edx, dword [eax + 4]
call edx
mov esp, ebp
pop ebp
ret 8
Function at 0x100245e0
Capabilities:
Check if file exists

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x10
mov dword [ebp - 0xc], ecx
cmp dword [ebp + 8], 0
je 0x100245fd
mov eax, dword [ebp + 8]
push eax
call dword [sym.imp.SHLWAPI.dll_PathFileExistsW]
test eax, eax
jne 0x10024601
xor eax, eax
jmp 0x10024663
mov ecx, dword [ebp + 8]
push ecx
call fcn.1004dd80
add esp, 4
test eax, eax
jne 0x10024615
xor eax, eax
jmp 0x10024663
mov edx, dword [ebp + 8]
push edx
call dword [sym.imp.KERNEL32.dll_LoadLibraryW]
mov dword [ebp - 4], eax
cmp dword [ebp - 4], 0
je 0x10024648
push str.GetConfigCenterEx
mov eax, dword [ebp - 4]
push eax
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
mov dword [ebp - 8], eax
cmp dword [ebp - 8], 0
je 0x10024648
call dword [ebp - 8]
mov ecx, dword [ebp - 0xc]
mov dword [ecx], eax
mov edx, dword [ebp - 0xc]
cmp dword [edx], 0
je 0x10024659
mov dword [ebp - 0x10], 1
jmp 0x10024660
mov dword [ebp - 0x10], 0
mov eax, dword [ebp - 0x10]
mov esp, ebp
pop ebp
ret 4
Function at 0x100330f0
Capabilities:
Check mutex on windows

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x100a8bec
mov eax, dword fs:[0]
push eax
sub esp, 0x1c4
mov eax, dword [0x100dc0d8]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov dword [ebp - 0x40], ecx
push str.falcon_cd_mutex
push 0
push 0
call dword [sym.imp.KERNEL32.dll_CreateMutexW]
mov dword [ebp - 0x10], eax
cmp dword [ebp - 0x10], 0
jne 0x1003320e
call fcn.1004ec30
mov dword [ebp - 0x14], eax
push 1
mov eax, dword [ebp - 0x14]
mov edx, dword [eax]
mov ecx, dword [ebp - 0x14]
mov eax, dword [edx + 8]
call eax
mov byte [ebp - 0x24], al
cmp byte [ebp - 0x24], 1
je 0x1003315c
jmp 0x10033207
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov dword [ebp - 0x28], eax
push 0x100b6528
lea ecx, [ebp - 0x70]
call fcn.1000c2e0
mov dword [ebp - 4], 0
push 0x100b6580
lea ecx, [ebp - 0x58]
call fcn.1000c2e0
mov byte [ebp - 4], 1
call fcn.1004ec30
mov dword [ebp - 0x18], eax
lea ecx, [ebp - 0x28]
push ecx
push str.CreateMutex_error:
push 0x204
lea edx, [ebp - 0x70]
push edx
lea eax, [ebp - 0x58]
push eax
lea ecx, [ebp - 0x138]
call fcn.1000cda0
mov dword [ebp - 0x2c], eax
mov ecx, dword [ebp - 0x2c]
mov dword [ebp - 0x30], ecx
mov byte [ebp - 4], 2
mov ecx, dword [ebp - 0x30]
call fcn.10006e30
mov ecx, eax
call fcn.10006e90
push eax
mov edx, dword [ebp - 0x18]
mov eax, dword [edx]
mov ecx, dword [ebp - 0x18]
mov edx, dword [eax + 0x1c]
call edx
mov byte [ebp - 4], 1
lea ecx, [ebp - 0x138]
call fcn.1000e1d0
mov byte [ebp - 4], 0
lea ecx, [ebp - 0x58]
call fcn.100045a0
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x70]
call fcn.100045a0
xor eax, eax
jmp 0x10033308
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0xb7
jne 0x10033305
call fcn.1004ec30
mov dword [ebp - 0x1c], eax
push 1
mov eax, dword [ebp - 0x1c]
mov edx, dword [eax]
mov ecx, dword [ebp - 0x1c]
mov eax, dword [edx + 8]
call eax
mov byte [ebp - 0x34], al
cmp byte [ebp - 0x34], 1
je 0x10033244
jmp 0x100332ed
push 0x100b6598
lea ecx, [ebp - 0xa0]
call fcn.1000c2e0
mov dword [ebp - 4], 3
push 0x100b65f0
lea ecx, [ebp - 0x88]
call fcn.1000c2e0
mov byte [ebp - 4], 4
call fcn.1004ec30
mov dword [ebp - 0x20], eax
push str.CreateMutex_already_exists.
push 0x208
lea ecx, [ebp - 0xa0]
push ecx
lea edx, [ebp - 0x88]
push edx
lea ecx, [ebp - 0x1d0]
call fcn.1000cda0
mov dword [ebp - 0x38], eax
mov eax, dword [ebp - 0x38]
mov dword [ebp - 0x3c], eax
mov byte [ebp - 4], 5
mov ecx, dword [ebp - 0x3c]
call fcn.10006e30
push eax
mov ecx, dword [ebp - 0x20]
mov edx, dword [ecx]
mov ecx, dword [ebp - 0x20]
mov eax, dword [edx + 0x1c]
call eax
mov byte [ebp - 4], 4
lea ecx, [ebp - 0x1d0]
call fcn.1000e1d0
mov byte [ebp - 4], 3
lea ecx, [ebp - 0x88]
call fcn.100045a0
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0xa0]
call fcn.100045a0
mov ecx, dword [ebp - 0x10]
push ecx
call dword [sym.imp.KERNEL32.dll_ReleaseMutex]
mov edx, dword [ebp - 0x10]
push edx
call dword [sym.imp.KERNEL32.dll_CloseHandle]
xor eax, eax
jmp 0x10033308
mov eax, dword [ebp - 0x10]
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
mov esp, ebp
pop ebp
ret
Function at 0x10034bf0
Capabilities:
Check if file exists

Disassembly:
push ebp
mov ebp, esp
sub esp, 0xc
mov dword [ebp - 0xc], ecx
cmp dword [ebp + 8], 0
je 0x10034c0d
mov eax, dword [ebp + 8]
push eax
call dword [sym.imp.SHLWAPI.dll_PathFileExistsW]
test eax, eax
jne 0x10034c14
mov eax, 1
jmp 0x10034c7d
mov ecx, dword [ebp + 8]
push ecx
call fcn.1004dd80
add esp, 4
test eax, eax
jne 0x10034c2b
mov eax, 2
jmp 0x10034c7d
mov edx, dword [ebp + 8]
push edx
call dword [sym.imp.KERNEL32.dll_LoadLibraryW]
mov dword [ebp - 4], eax
cmp dword [ebp - 4], 0
jne 0x10034c45
mov eax, 3
jmp 0x10034c7d
push str.GetBrowserAcceptorMgr
mov eax, dword [ebp - 4]
push eax
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
mov dword [ebp - 8], eax
cmp dword [ebp - 8], 0
jne 0x10034c64
mov eax, 4
jmp 0x10034c7d
call dword [ebp - 8]
mov ecx, dword [ebp - 0xc]
mov dword [ecx], eax
mov edx, dword [ebp - 0xc]
cmp dword [edx], 0
jne 0x10034c7b
mov eax, 5
jmp 0x10034c7d
xor eax, eax
mov esp, ebp
pop ebp
ret 4
Function at 0x1003af70
Capabilities:
Create thread

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x100a77db
mov eax, dword fs:[0]
push eax
sub esp, 0xe0
mov eax, dword [0x100dc0d8]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov dword [ebp - 0x10], ecx
push 0
push 0
push 1
push 0
call dword [sym.imp.KERNEL32.dll_CreateEventW]
mov ecx, dword [ebp - 0x10]
mov dword [ecx + 8], eax
call fcn.1004ec30
mov dword [ebp - 0x14], eax
push 1
mov edx, dword [ebp - 0x14]
mov eax, dword [edx]
mov ecx, dword [ebp - 0x14]
mov edx, dword [eax + 8]
call edx
mov byte [ebp - 0x1c], al
cmp byte [ebp - 0x1c], 1
je 0x1003afd4
jmp 0x1003b068
push 0x100b4c98
lea ecx, [ebp - 0x54]
call fcn.1000c2e0
mov dword [ebp - 4], 0
push 0x100b4c44
lea ecx, [ebp - 0x3c]
call fcn.1000c2e0
mov byte [ebp - 4], 1
call fcn.1004ec30
mov dword [ebp - 0x18], eax
push str.FalconsMain::Start
push 0x53
lea eax, [ebp - 0x54]
push eax
lea ecx, [ebp - 0x3c]
push ecx
lea ecx, [ebp - 0xec]
call fcn.1000cda0
mov dword [ebp - 0x20], eax
mov edx, dword [ebp - 0x20]
mov dword [ebp - 0x24], edx
mov byte [ebp - 4], 2
mov ecx, dword [ebp - 0x24]
call fcn.10006e50
push eax
mov eax, dword [ebp - 0x18]
mov edx, dword [eax]
mov ecx, dword [ebp - 0x18]
mov eax, dword [edx + 0x1c]
call eax
mov byte [ebp - 4], 1
lea ecx, [ebp - 0xec]
call fcn.1000e1d0
mov byte [ebp - 4], 0
lea ecx, [ebp - 0x3c]
call fcn.100045a0
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x54]
call fcn.100045a0
mov ecx, dword [ebp - 0x10]
add ecx, 0xc
push ecx
push 0
mov edx, dword [ebp - 0x10]
push edx
push 0x1003b830
push 0
push 0
call fcn.1008584e
add esp, 0x18
mov ecx, dword [ebp - 0x10]
mov dword [ecx + 0x10], eax
mov al, 1
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
mov esp, ebp
pop ebp
ret

Function at 0x1003cbd0
Capabilities:
Check if file exists

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x10
mov dword [ebp - 0xc], ecx
cmp dword [ebp + 8], 0
je 0x1003cbed
mov eax, dword [ebp + 8]
push eax
call dword [sym.imp.SHLWAPI.dll_PathFileExistsW]
test eax, eax
jne 0x1003cbf1
xor eax, eax
jmp 0x1003cc53
mov ecx, dword [ebp + 8]
push ecx
call fcn.1004dd80
add esp, 4
test eax, eax
jne 0x1003cc05
xor eax, eax
jmp 0x1003cc53
mov edx, dword [ebp + 8]
push edx
call dword [sym.imp.KERNEL32.dll_LoadLibraryW]
mov dword [ebp - 4], eax
cmp dword [ebp - 4], 0
je 0x1003cc38
push str.GetLuaExplain
mov eax, dword [ebp - 4]
push eax
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
mov dword [ebp - 8], eax
cmp dword [ebp - 8], 0
je 0x1003cc38
call dword [ebp - 8]
mov ecx, dword [ebp - 0xc]
mov dword [ecx], eax
mov edx, dword [ebp - 0xc]
cmp dword [edx], 0
je 0x1003cc49
mov dword [ebp - 0x10], 1
jmp 0x1003cc50
mov dword [ebp - 0x10], 0
mov eax, dword [ebp - 0x10]
mov esp, ebp
pop ebp
ret 4
Function at 0x1003cc60
Capabilities:
Check if file exists

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x218
mov eax, dword [0x100dc0d8]
xor eax, ebp
mov dword [ebp - 4], eax
mov dword [ebp - 0x210], ecx
push 0x208
push 0
lea eax, [ebp - 0x20c]
push eax
call fcn.1007cdb0
add esp, 0xc
push 0x104
lea ecx, [ebp - 0x20c]
push ecx
push 0x10000000
call dword [sym.imp.KERNEL32.dll_GetModuleFileNameW]
lea edx, [ebp - 0x20c]
push edx
call dword [sym.imp.SHLWAPI.dll_PathRemoveFileSpecW]
mov dword [ebp - 0x214], 0
jmp 0x1003ccce
mov eax, dword [ebp - 0x214]
add eax, 1
mov dword [ebp - 0x214], eax
mov ecx, dword [ebp - 0x210]
mov edx, dword [ebp - 0x214]
cmp edx, dword [ecx + 0x74]
jae 0x1003ccee
lea eax, [ebp - 0x20c]
push eax
call dword [sym.imp.SHLWAPI.dll_PathRemoveFileSpecW]
jmp 0x1003ccbf
push str.etc_base.dll
lea ecx, [ebp - 0x20c]
push ecx
call dword [sym.imp.SHLWAPI.dll_PathAppendW]
lea edx, [ebp - 0x20c]
push edx
call dword [sym.imp.SHLWAPI.dll_PathFileExistsW]
test eax, eax
jne 0x1003cd13
jmp 0x1003cd57
lea eax, [ebp - 0x20c]
push eax
mov ecx, dword [ebp - 0x210]
call fcn.1003cbd0
mov ecx, dword [ebp - 0x210]
call fcn.10022990
test eax, eax
je 0x1003cd57
mov ecx, dword [ebp - 0x210]
call fcn.10004750
mov dword [ebp - 0x218], eax
mov ecx, dword [ebp - 0x218]
mov edx, dword [ecx]
mov ecx, dword [ebp - 0x218]
mov eax, dword [edx]
call eax
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.1004ce3a
mov esp, ebp
pop ebp
ret
Function at 0x1003f770
Capabilities:
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x1c
mov eax, dword [0x100dc0d8]
xor eax, ebp
mov dword [ebp - 4], eax
mov dword [ebp - 0x1c], ecx
mov dword [ebp - 8], 0
mov dword [ebp - 0xc], 4
mov dword [ebp - 0x10], 4
lea eax, [ebp - 0xc]
push eax
lea ecx, [ebp - 8]
push ecx
lea edx, [ebp - 0x10]
push edx
push 0
lea ecx, [ebp + 0xc]
call fcn.10004750
push eax
mov eax, dword [ebp + 8]
push eax
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
mov dword [ebp - 0x14], eax
cmp dword [ebp - 0x14], 0
je 0x1003f7c9
mov dword [ebp - 8], 0
mov ecx, dword [ebp - 8]
mov dword [ebp - 0x18], ecx
lea ecx, [ebp + 0xc]
call fcn.100044c0
mov eax, dword [ebp - 0x18]
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.1004ce3a
mov esp, ebp
pop ebp
ret 8

Function at 0x1003f7f0
Capabilities:
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x100aa313
mov eax, dword fs:[0]
push eax
sub esp, 0x224
mov eax, dword [0x100dc0d8]
xor eax, ebp
mov dword [ebp - 0x10], eax
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov dword [ebp - 0x230], ecx
mov dword [ebp - 0x228], 0
mov dword [ebp - 4], 0
push 4
lea ecx, [ebp - 0x21c]
call fcn.10006260
lea ecx, [ebp - 0x21c]
call fcn.10003ff0
mov byte [ebp - 4], 1
mov dword [ebp - 0x220], 0x208
mov dword [ebp - 0x224], 1
push 0x208
push 0
lea eax, [ebp - 0x218]
push eax
call fcn.1007cdb0
add esp, 0xc
lea ecx, [ebp - 0x220]
push ecx
lea edx, [ebp - 0x218]
push edx
lea eax, [ebp - 0x224]
push eax
push 0
lea ecx, [ebp + 0x10]
call fcn.10004750
push eax
mov ecx, dword [ebp + 0xc]
push ecx
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
mov dword [ebp - 0x22c], eax
cmp dword [ebp - 0x22c], 0
jne 0x1003f8c3
lea edx, [ebp - 0x218]
push edx
lea ecx, [ebp - 0x21c]
call fcn.1000e7b0
lea eax, [ebp - 0x21c]
push eax
mov ecx, dword [ebp + 8]
call fcn.1003c690
mov ecx, dword [ebp - 0x228]
or ecx, 1
mov dword [ebp - 0x228], ecx
mov byte [ebp - 4], 0
lea ecx, [ebp - 0x21c]
call fcn.100044c0
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp + 0x10]
call fcn.100044c0
mov eax, dword [ebp + 8]
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.1004ce3a
mov esp, ebp
pop ebp
ret 0xc
Function at 0x1003ffd0
Capabilities:
Link many functions at runtime

Disassembly:
push ebp
mov ebp, esp
sub esp, 8
mov dword [ebp - 4], ecx
mov eax, dword [ebp - 4]
cmp dword [eax], 0
jne 0x1004008d
mov ecx, dword [ebp + 8]
push ecx
call dword [sym.imp.KERNEL32.dll_LoadLibraryW]
mov edx, dword [ebp - 4]
mov dword [edx], eax
mov eax, dword [ebp - 4]
cmp dword [eax], 0
jne 0x10040003
xor eax, eax
jmp 0x100400bb
push str.HttpInit
mov ecx, dword [ebp - 4]
mov edx, dword [ecx]
push edx
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
mov ecx, dword [ebp - 4]
mov dword [ecx + 4], eax
push str.HttpUninit
mov edx, dword [ebp - 4]
mov eax, dword [edx]
push eax
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
mov ecx, dword [ebp - 4]
mov dword [ecx + 8], eax
push str.zlib_uncompress
mov edx, dword [ebp - 4]
mov eax, dword [edx]
push eax
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
mov ecx, dword [ebp - 4]
mov dword [ecx + 0x10], eax
push str.zlib_compress
mov edx, dword [ebp - 4]
mov eax, dword [edx]
push eax
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
mov ecx, dword [ebp - 4]
mov dword [ecx + 0x14], eax
push str.zlib_compressBound
mov edx, dword [ebp - 4]
mov eax, dword [edx]
push eax
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
mov ecx, dword [ebp - 4]
mov dword [ecx + 0x18], eax
mov edx, dword [ebp - 4]
cmp dword [edx + 4], 0
je 0x1004008d
mov eax, dword [ebp - 4]
mov ecx, dword [eax + 4]
call ecx
mov edx, dword [ebp - 4]
mov dword [edx + 0xc], eax
mov eax, dword [ebp - 4]
cmp dword [eax + 8], 0
je 0x100400b1
mov ecx, dword [ebp - 4]
cmp dword [ecx + 4], 0
je 0x100400b1
mov edx, dword [ebp - 4]
cmp dword [edx + 0xc], 0
je 0x100400b1
mov dword [ebp - 8], 1
jmp 0x100400b8
mov dword [ebp - 8], 0
mov eax, dword [ebp - 8]
mov esp, ebp
pop ebp
ret 4
Function at 0x100403d0
Capabilities:
Check if file exists

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x100aa412
mov eax, dword fs:[0]
push eax
sub esp, 0x220
mov eax, dword [0x100dc0d8]
xor eax, ebp
mov dword [ebp - 0x10], eax
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov dword [ebp - 0x22c], ecx
mov dword [ebp - 0x220], 0
push 0x208
push 0
lea eax, [ebp - 0x218]
push eax
call fcn.1007cdb0
add esp, 0xc
push 0x104
lea ecx, [ebp - 0x218]
push ecx
mov edx, dword [0x100df220]
push edx
call dword [sym.imp.KERNEL32.dll_GetModuleFileNameW]
lea eax, [ebp - 0x218]
push eax
call dword [sym.imp.SHLWAPI.dll_PathRemoveFileSpecW]
lea ecx, [ebp - 0x218]
push ecx
call dword [sym.imp.SHLWAPI.dll_PathRemoveFileSpecW]
push str.Utils_netul.dll
lea edx, [ebp - 0x218]
push edx
call dword [sym.imp.SHLWAPI.dll_PathAppendW]
lea eax, [ebp - 0x218]
push eax
call dword [sym.imp.SHLWAPI.dll_PathFileExistsW]
test eax, eax
je 0x100404c2
lea ecx, [ebp - 0x218]
push ecx
lea ecx, [ebp - 0x228]
call fcn.1000b5e0
mov dword [ebp - 4], 0
mov edx, dword [ebp - 0x220]
or edx, 1
mov dword [ebp - 0x220], edx
lea eax, [ebp - 0x228]
push eax
call fcn.1002e560
mov ecx, eax
call fcn.10040390
test eax, eax
je 0x100404c2
mov dword [ebp - 0x224], 1
jmp 0x100404cc
mov dword [ebp - 0x224], 0
mov cl, byte [ebp - 0x224]
mov byte [ebp - 0x21a], cl
mov dword [ebp - 4], 0xffffffff
mov edx, dword [ebp - 0x220]
and edx, 1
je 0x100404fc
and dword [ebp - 0x220], 0xfffffffe
lea ecx, [ebp - 0x228]
call fcn.100044c0
movzx eax, byte [ebp - 0x21a]
test eax, eax
je 0x1004050b
mov al, 1
jmp 0x10040533
push 1
call fcn.1002e560
mov ecx, eax
call fcn.10040190
test eax, eax
je 0x10040526
mov byte [ebp - 0x219], 1
jmp 0x1004052d
mov byte [ebp - 0x219], 0
mov al, byte [ebp - 0x219]
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.1004ce3a
mov esp, ebp
pop ebp
ret

Function at 0x10040570
Capabilities:
Check if file exists

Disassembly:
push ebp
mov ebp, esp
push ecx
mov dword [ebp - 4], ecx
mov ecx, dword [ebp + 8]
call fcn.10004750
push eax
call dword [sym.imp.SHLWAPI.dll_PathFileExistsW]
test eax, eax
jne 0x1004058e
xor eax, eax
jmp 0x100405ac
mov ecx, dword [ebp + 8]
call fcn.10004750
push eax
call fcn.1004dd80
add esp, 4
test eax, eax
jne 0x100405a7
xor eax, eax
jmp 0x100405ac
mov eax, 1
mov esp, ebp
pop ebp
ret 4
Function at 0x100470d0
Capabilities:
Encode data using base64 via winapi

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x100aa958
mov eax, dword fs:[0]
push eax
sub esp, 0x30
mov eax, dword [0x100dc0d8]
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 eax, dword [ebp + 0x10]
mov edx, 2
mov dword [ebp - 0x38], eax
mov eax, dword [ebp + 0x14]
mov esi, dword [ebp + 8]
mov dword [ebp - 0x34], eax
mov ecx, dword [eax]
mov eax, ecx
add ecx, 0xa
shr eax, 6
add eax, ecx
xor ecx, ecx
mov dword [ebp - 0x2c], eax
mul edx
seto cl
neg ecx
or ecx, eax
push ecx
call fcn.1004d068
mov ecx, dword [ebp - 0x2c]
mov edi, eax
add ecx, ecx
push ecx
push 0
push edi
call fcn.1007cdb0
add esp, 0x10
lea eax, [ebp - 0x2c]
push eax
push edi
push 0x80000001
push dword [ebp + 0xc]
push esi
call dword [sym.imp.CRYPT32.dll_CryptBinaryToStringW]
mov ecx, edi
mov dword [ebp - 0x18], 0
mov esi, eax
mov dword [ebp - 0x14], 7
xor eax, eax
mov dword [ebp - 0x3c], esi
mov word [ebp - 0x28], ax
lea edx, [ecx + 2]
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x10047174
sub ecx, edx
sar ecx, 1
push ecx
push edi
lea ecx, [ebp - 0x28]
call fcn.10006450
push 2
push edi
mov dword [ebp - 4], 0
call fcn.1004cac9
mov ebx, dword [ebp - 0x14]
add esp, 8
mov edi, dword [ebp - 0x28]
test esi, esi
je 0x10047276
cmp ebx, 8
lea eax, [ebp - 0x28]
cmovae eax, edi
mov edx, dword [ebp - 0x18]
mov dword [ebp - 0x30], edx
nop dword [eax]
cmp ebx, 8
lea ecx, [ebp - 0x28]
cmovae ecx, edi
lea ecx, [ecx + edx*2]
cmp eax, ecx
je 0x10047244
cmp word [eax], 0xa
jne 0x1004723c
cmp ebx, 8
lea ecx, [ebp - 0x28]
cmovae ecx, edi
sub eax, ecx
sar eax, 1
cmp edx, eax
jb 0x100472c4
mov ecx, edx
lea esi, [eax + eax]
sub ecx, eax
mov edx, 1
cmp ecx, edx
cmovb edx, ecx
cmp ebx, 8
mov ebx, dword [ebp - 0x30]
lea ecx, [ebp - 0x28]
cmovae ecx, edi
sub ebx, edx
mov dword [ebp - 0x18], ebx
add ecx, esi
sub ebx, eax
lea eax, [ebx*2 + 2]
push eax
lea eax, [ecx + edx*2]
push eax
push ecx
call fcn.1007c830
mov ebx, dword [ebp - 0x14]
lea eax, [ebp - 0x28]
mov edi, dword [ebp - 0x28]
add esp, 0xc
cmp ebx, 8
cmovae eax, edi
add eax, esi
jmp 0x100471b6
add eax, 2
jmp 0x100471c0
mov esi, dword [ebp - 0x34]
mov ecx, dword [esi]
cmp edx, ecx
jbe 0x10047251
xor esi, esi
jmp 0x10047276
cmp ebx, 8
lea eax, [ebp - 0x28]
push edx
cmovae eax, edi
push eax
push ecx
push dword [ebp - 0x38]
call fcn.100856e5
mov eax, dword [ebp - 0x18]
add esp, 0x10
mov ebx, dword [ebp - 0x14]
mov edi, dword [ebp - 0x28]
mov dword [esi], eax
mov esi, dword [ebp - 0x3c]
cmp ebx, 8
jb 0x100472a6
lea ebx, [ebx*2 + 2]
mov eax, edi
cmp ebx, 0x1000
jb 0x1004729c
mov edi, dword [edi - 4]
add ebx, 0x23
sub eax, edi
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x100472c9
push ebx
push edi
call fcn.1004cac9
add esp, 8
mov eax, esi
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.1004ce3a
mov esp, ebp
pop ebp
ret
call fcn.1001af60
call fcn.100803fc
int3
Function at 0x1004a590
Capabilities:
Access peb ldr_data

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x100aac78
mov eax, dword fs:[0]
push eax
sub esp, 0x24
push ebx
push esi
push edi
mov eax, dword [0x100dc0d8]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov esi, ecx
push 8
mov dword [esi + 0x30], 0
mov dword [esi + 8], 0
mov dword [esi + 0x10], 0
mov dword [esi + 0x14], 0x201
mov dword [esi + 0x18], 6
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 + 0xc], 0
call fcn.1004ca99
mov edi, eax
add esp, 4
test edi, edi
je 0x1004a634
xorps xmm0, xmm0
movq qword [edi], xmm0
push 1
mov dword [ebp - 4], 0
call fcn.100430cd
add esp, 4
mov dword [edi + 4], eax
jmp 0x1004a636
xor edi, edi
mov eax, dword [ebp + 8]
mov dword [esi + 0x30], edi
mov dword [esi + 0x38], eax
mov dword [esi + 0x3c], 0
mov ecx, dword [edi + 4]
mov dword [ebp - 4], 1
mov dword [ebp - 0x10], ecx
mov eax, dword [ecx]
call dword [eax + 4]
lea eax, [ebp - 0x14]
mov dword [ebp - 4], 2
push eax
call fcn.1000b0b0
add esp, 4
mov ecx, eax
mov edx, dword [eax]
push 0x20
mov eax, dword [edx + 0x20]
call eax
mov bl, al
mov ecx, dword [ebp - 0x10]
mov dword [ebp - 4], 3
test ecx, ecx
je 0x1004a697
mov edx, dword [ecx]
call dword [edx + 8]
test eax, eax
je 0x1004a697
mov edx, dword [eax]
mov ecx, eax
push 1
call dword [edx]
cmp dword [esi + 0x38], 0
mov dword [ebp - 4], 0xffffffff
mov byte [esi + 0x40], bl
jne 0x1004a6ba
mov eax, dword [esi + 0xc]
mov ecx, dword [esi + 0x10]
and eax, 0x13
or eax, 4
mov dword [esi + 0xc], eax
and ecx, eax
jne 0x1004a6dd
cmp byte [ebp + 0xc], 0
je 0x1004a6c9
push esi
call fcn.10043478
add esp, 4
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 8
test cl, 4
je 0x1004a6e9
mov esi, str.ios_base::badbit_set
jmp 0x1004a6f9
test cl, 2
mov esi, str.ios_base::failbit_set
mov eax, str.ios_base::eofbit_set
cmove esi, eax
lea eax, [ebp - 0x1c]
push 1
push eax
call fcn.1001d270
add esp, 8
lea ecx, [ebp - 0x30]
push eax
push esi
call fcn.1000d6a0
push 0x100d20b0
lea eax, [ebp - 0x30]
push eax
call fcn.1007be8e
int3

Function at 0x1004afc0
Capabilities:
Read .ini file

Disassembly:
push ebp
mov ebp, esp
mov ecx, dword [ecx]
test ecx, ecx
je 0x1004afcf
pop ebp
jmp fcn.1004ba60
xor eax, eax
pop ebp
ret 0xc