joyce8/EMBER2024-capa huggingface dataset:
Function at 0x4027c8
Capabilities:
Accept command line arguments

Disassembly:
push ebx
push esi
push edi
add esp, 0xfffffef8
mov ebx, edx
mov esi, eax
mov eax, ebx
call fcn.004037cc
test esi, esi
jne 0x4027fe
push 0x105
lea eax, [esp + 4]
push eax
push 0
call sub.kernel32.dll_GetModuleFileNameA
mov ecx, eax
mov edx, esp
mov eax, ebx
call fcn.004038bc
jmp 0x40281c
call sub.kernel32.dll_GetCommandLineA
mov edi, eax
mov edx, ebx
mov eax, edi
call fcn.0040267c
mov edi, eax
test esi, esi
je 0x40281c
cmp dword [ebx], 0
je 0x40281c
dec esi
jmp 0x402805
add esp, 0x108
pop edi
pop esi
pop ebx
ret

Function at 0x402d0c
Capabilities:
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffff4
movzx eax, word [0x40a014]
mov dword [ebp - 8], eax
lea eax, [ebp - 4]
push eax
push 1
push 0
push 0x402da4
push 0x80000002
call sub.advapi32.dll_RegOpenKeyExA
test eax, eax
jne 0x402d84
xor eax, eax
push ebp
push 0x402d7d
push dword fs:[eax]
mov dword fs:[eax], esp
mov dword [ebp - 0xc], 4
lea eax, [ebp - 0xc]
push eax
lea eax, [ebp - 8]
push eax
push 0
push 0
push 0x402dc0
mov eax, dword [ebp - 4]
push eax
call sub.advapi32.dll_RegQueryValueExA
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x402d84
mov eax, dword [ebp - 4]
push eax
call sub.advapi32.dll_RegCloseKey
ret
mov ax, word [0x40a014]
and ax, 0xffc0
mov dx, word [ebp - 8]
and dx, 0x3f
or ax, dx
mov word [0x40a014], ax
mov esp, ebp
pop ebp
ret

Function at 0x403650
Capabilities:
Write file on windows

Disassembly:
push ecx
cmp byte [0x40c044], 0
je 0x4036b1
cmp word [0x40c218], 0xd7b2
jne 0x403679
cmp dword [0x40c220], 0
jbe 0x403679
mov eax, 0x40c214
call dword [0x40c230]
push 0
lea eax, [esp + 4]
push eax
push 0x1e
push 0x40a05c
push 0xfffffffffffffff5
call sub.kernel32.dll_GetStdHandle
push eax
call sub.kernel32.dll_WriteFile
push 0
lea eax, [esp + 4]
push eax
push 2
push 0x4036d8
push 0xfffffffffffffff5
call sub.kernel32.dll_GetStdHandle
push eax
call sub.kernel32.dll_WriteFile
pop edx
ret
cmp byte [0x40a020], 0
jne 0x4036cd
push 0
push 0x40a054
push 0x40a05c
push 0
call sub.user32.dll_MessageBoxA
pop edx
ret
Function at 0x4040cc
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 0xf0019
push 0
push 0x4042fc
push 0x80000001
call sub.advapi32.dll_RegOpenKeyExA
test eax, eax
je 0x40414f
lea eax, [ebp - 8]
push eax
push 0xf0019
push 0
push 0x4042fc
push 0x80000002
call sub.advapi32.dll_RegOpenKeyExA
test eax, eax
je 0x40414f
lea eax, [ebp - 8]
push eax
push 0xf0019
push 0
push 0x404318
push 0x80000001
call sub.advapi32.dll_RegOpenKeyExA
test eax, eax
jne 0x4041d8
xor eax, eax
push ebp
push 0x4041d1
push dword fs:[eax]
mov dword fs:[eax], esp
mov dword [ebp - 0x18], 5
lea eax, [ebp - 0x11d]
mov edx, 0x105
call fcn.00403f14
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 0x4041b6
lea eax, [ebp - 0x18]
push eax
lea eax, [ebp - 0x12]
push eax
push 0
push 0
push 0x404338
mov eax, dword [ebp - 8]
push eax
call sub.advapi32.dll_RegQueryValueExA
test eax, eax
je 0x4041b6
mov byte [ebp - 0x12], 0
mov byte [ebp - 0xe], 0
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x4041d8
mov eax, dword [ebp - 8]
push eax
call sub.advapi32.dll_RegCloseKey
ret
push 0x105
mov eax, dword [ebp - 4]
push eax
lea eax, [ebp - 0x11d]
push eax
call sub.kernel32.dll_lstrcpynA
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 0x4042f2
cmp byte [ebp - 0xd], 0
jne 0x40421f
cmp byte [ebp - 0x12], 0
je 0x4042f2
lea eax, [ebp - 0x11d]
push eax
call sub.kernel32.dll_lstrlenA
mov ebx, eax
lea eax, [ebp - 0x11d]
add ebx, eax
jmp 0x404238
dec ebx
cmp byte [ebx], 0x2e
je 0x404247
lea eax, [ebp - 0x11d]
cmp ebx, eax
jne 0x404237
lea eax, [ebp - 0x11d]
cmp ebx, eax
je 0x4042f2
inc ebx
cmp byte [ebp - 0x12], 0
je 0x404284
mov edx, ebx
sub edx, eax
mov eax, 0x105
sub eax, edx
push eax
lea eax, [ebp - 0x12]
push eax
push ebx
call sub.kernel32.dll_lstrcpynA
push 2
push 0
lea eax, [ebp - 0x11d]
push eax
call sub.kernel32.dll_LoadLibraryExA
mov esi, eax
test esi, esi
jne 0x4042f2
cmp byte [ebp - 0xd], 0
je 0x4042f2
lea eax, [ebp - 0x11d]
mov edx, ebx
sub edx, eax
mov eax, 0x105
sub eax, edx
push eax
lea eax, [ebp - 0xd]
push eax
push ebx
call sub.kernel32.dll_lstrcpynA
push 2
push 0
lea eax, [ebp - 0x11d]
push eax
call sub.kernel32.dll_LoadLibraryExA
mov esi, eax
test esi, esi
jne 0x4042f2
mov byte [ebp - 0xb], 0
lea eax, [ebp - 0x11d]
mov edx, ebx
sub edx, eax
mov eax, 0x105
sub eax, edx
push eax
lea eax, [ebp - 0xd]
push eax
push ebx
call sub.kernel32.dll_lstrcpynA
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 0x404488
Capabilities:
Get geographical location

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffff0
push ebx
xor edx, edx
mov dword [ebp - 0x10], edx
xor edx, edx
push ebp
push 0x4044ee
push dword fs:[edx]
mov dword fs:[edx], esp
push 7
lea edx, [ebp - 0xb]
push edx
push 0x1004
push eax
call sub.kernel32.dll_GetLocaleInfoA
lea eax, [ebp - 0x10]
lea edx, [ebp - 0xb]
mov ecx, 7
call fcn.00403a14
mov eax, dword [ebp - 0x10]
lea edx, [ebp - 4]
call fcn.00402900
mov ebx, eax
cmp dword [ebp - 4], 0
je 0x4044d8
xor ebx, ebx
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x4044f5
lea eax, [ebp - 0x10]
call fcn.004037cc
ret

Function at 0x4063c8
Capabilities:
Get geographical location

Disassembly:
push ebp
mov ebp, esp
add esp, 0xffffff00
push ebx
push esi
mov esi, ecx
mov ebx, dword [ebp + 8]
push pe_nt_image_headers32
lea ecx, [ebp - 0x100]
push ecx
push edx
push eax
call sub.kernel32.dll_GetLocaleInfoA_1
test eax, eax
jle 0x406401
mov ecx, eax
dec ecx
lea edx, [ebp - 0x100]
mov eax, ebx
call fcn.004038bc
jmp 0x40640a
mov eax, ebx
mov edx, esi
call fcn.00403820
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 4

Function at 0x406414
Capabilities:
Get geographical location

Disassembly:
push ebx
push esi
push edi
push ecx
mov ebx, ecx
mov esi, edx
mov edi, eax
push 2
lea eax, [esp + 4]
push eax
push esi
push edi
call sub.kernel32.dll_GetLocaleInfoA_1
test eax, eax
jle 0x406435
mov al, byte [esp]
jmp 0x406437
mov eax, ebx
pop edx
pop edi
pop esi
pop ebx
ret

Function at 0x406abc
Capabilities:
Write file on windows

Disassembly:
add esp, 0xfffffbbc
push 0x400
lea ecx, [esp + 0x48]
call 0x406934
mov eax, dword [0x40b500]
cmp byte [eax], 0
je 0x406b38
mov eax, dword [0x40b45c]
call fcn.0040287c
call fcn.004025ec
lea eax, [esp + 0x44]
push eax
lea eax, [esp + 0x48]
push eax
call sub.user32.dll_CharToOemA
push 0
lea eax, [esp + 4]
push eax
lea eax, [esp + 0x4c]
call fcn.004058bc
push eax
lea eax, [esp + 0x50]
push eax
push 0xfffffffffffffff4
call sub.kernel32.dll_GetStdHandle_1
push eax
call sub.kernel32.dll_WriteFile_1
push 0
lea eax, [esp + 4]
push eax
push 2
push 0x406b80
push 0xfffffffffffffff4
call sub.kernel32.dll_GetStdHandle_1
push eax
call sub.kernel32.dll_WriteFile_1
jmp 0x406b6e
push 0x40
lea eax, [esp + 8]
push eax
mov eax, dword [0x40b43c]
mov eax, dword [eax + 4]
push eax
mov eax, dword [0x40c660]
call fcn.00403ed8
push eax
call sub.user32.dll_LoadStringA_1
push 0x2010
lea eax, [esp + 8]
push eax
lea eax, [esp + 0x4c]
push eax
push 0
call sub.user32.dll_MessageBoxA_1
add esp, 0x444
ret
Function at 0x40752c
Capabilities:
Get geographical location

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffff4
push ebx
xor edx, edx
mov dword [ebp - 0xc], edx
xor edx, edx
push ebp
push 0x407590
push dword fs:[edx]
mov dword fs:[edx], esp
push 7
lea edx, [ebp - 7]
push edx
push 0x1004
push eax
call sub.kernel32.dll_GetLocaleInfoA_1
lea eax, [ebp - 0xc]
lea edx, [ebp - 7]
mov ecx, 7
call fcn.00403a14
mov eax, dword [ebp - 0xc]
push eax
call sub.kernel32.dll_GetACP
mov edx, eax
pop eax
call fcn.00405790
mov ebx, eax
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x407597
lea eax, [ebp - 0xc]
call fcn.004037cc
ret

Function at 0x4081ac
Capabilities:
Encode data using xor

Disassembly:
push ebx
push esi
add esp, 0xfffffff4
mov dword [esp], edx
mov ecx, eax
mov edx, dword [ecx]
add ecx, 4
mov eax, dword [ecx]
mov dword [esp + 8], eax
mov dword [esp + 4], 0x10
mov ebx, 0x40c79c
xor edx, dword [ebx]
mov eax, edx
mov dl, 0x10
call fcn.004081a4
mov edx, eax
mov eax, edx
and al, 0xff
mov ecx, edx
and ecx, 0xff00
shr ecx, 8
and eax, 0xff
mov esi, dword [eax*4 + 0x40cbe4]
xor eax, eax
mov al, cl
add esi, dword [eax*4 + 0x40c7e4]
mov eax, edx
mov dl, 0x10
call fcn.004081a4
mov edx, eax
mov eax, edx
and eax, 0xff00
shr eax, 8
mov ecx, edx
and cl, 0xff
and eax, 0xff
xor esi, dword [eax*4 + 0x40cfe4]
xor eax, eax
mov al, cl
add esi, dword [eax*4 + 0x40d3e4]
xor esi, dword [esp + 8]
mov dword [esp + 8], edx
mov edx, esi
add ebx, 4
dec dword [esp + 4]
jne 0x4081ce
xor edx, dword [0x40c7dc]
mov eax, dword [0x40c7e0]
xor dword [esp + 8], eax
mov eax, dword [esp]
add eax, 4
mov dword [eax], edx
mov eax, dword [esp]
mov edx, dword [esp + 8]
mov dword [eax], edx
add esp, 0xc
pop esi
pop ebx
ret

Function at 0x40826c
Capabilities:
Encode data using xor
Encrypt data using blowfish

Disassembly:
push ebx
push esi
push edi
add esp, 0xffffffb8
mov esi, edx
mov ebx, eax
test esi, esi
jle 0x408342
mov edx, 0x40c79c
mov eax, 0x40a294
mov ecx, 0x48
call fcn.0040263c
mov edx, 0x40c7e4
mov eax, 0x40a2dc
mov ecx, 0x1000
call fcn.0040263c
cmp esi, 0x38
jl 0x4082b0
mov esi, 0x38
mov edx, esp
mov eax, ebx
mov ecx, esi
call fcn.0040263c
mov edx, 0x48
sub edx, esi
dec edx
test edx, edx
jl 0x4082d9
inc edx
xor ebx, ebx
mov eax, esp
mov cl, byte [eax]
lea edi, [ebx + esi]
mov byte [esp + edi], cl
inc ebx
inc eax
dec edx
jne 0x4082cc
mov ebx, 0xffffffee
lea esi, [esp + 0x44]
mov edi, 0x40c7e0
mov eax, esi
mov eax, dword [eax]
call fcn.004081a0
xor dword [edi], eax
sub edi, 4
sub esi, 4
inc ebx
jne 0x4082e7
mov eax, esp
xor ecx, ecx
mov edx, 8
call fcn.004028e0
mov eax, esp
mov esi, 0x40c79c
mov ebx, 9
mov edx, esi
call fcn.004081ac
mov eax, esi
add esi, 8
dec ebx
jne 0x408315
mov eax, 0x40c7dc
mov esi, 0x40c7e4
mov ebx, 0x200
mov edx, esi
call fcn.004081ac
mov eax, esi
add esi, 8
dec ebx
jne 0x408333
add esp, 0x48
pop edi
pop esi
pop ebx
ret
Function at 0x408984
Capabilities:
Hash data with md5

Disassembly:
mov dword [eax], 0x67452301
mov dword [eax + 4], 0xefcdab89
mov dword [eax + 8], 0x98badcfe
mov dword [eax + 0xc], 0x10325476
ret

Function at 0x408bb4
Capabilities:
Get common file path
Query or enumerate registry value

Disassembly:
push ebx
push esi
add esp, 0xfffffdc4
xor esi, esi
lea eax, [esp + 8]
mov edx, 0x200
call fcn.00404864
push 0x200
lea eax, [esp + 0xc]
push eax
call sub.kernel32.dll_GetWindowsDirectoryA
test eax, eax
je 0x408c28
push 0x408cb0
lea eax, [esp + 0xc]
push eax
call sub.shlwapi.dll_PathAppendA
push 0
push 0
push 3
push 0
push 3
push 0
lea eax, [esp + 0x20]
push eax
call sub.kernel32.dll_CreateFileA
mov ebx, eax
cmp ebx, 0xffffffff
je 0x408c28
lea eax, [esp + 0x208]
push eax
push ebx
call sub.kernel32.dll_GetFileInformationByHandle
push ebx
call sub.kernel32.dll_CloseHandle
mov esi, dword [esp + 0x224]
jmp 0x408ca4
lea eax, [esp + 8]
mov edx, 0x200
call fcn.00404864
mov dword [esp], 1
mov dword [esp + 4], 0x200
lea eax, [esp + 4]
push eax
lea eax, [esp + 0xc]
push eax
lea eax, [esp + 8]
push eax
push 0x408cbc
push 0x408cc8
push 0x80000002
call sub.shlwapi.dll_SHGetValueA
test eax, eax
jne 0x408ca4
push 0
push 0
push 3
push 0
push 3
push 0
lea eax, [esp + 0x20]
push eax
call sub.kernel32.dll_CreateFileA
mov ebx, eax
cmp ebx, 0xffffffff
je 0x408ca4
lea eax, [esp + 0x208]
push eax
push ebx
call sub.kernel32.dll_GetFileInformationByHandle
push ebx
call sub.kernel32.dll_CloseHandle
mov esi, dword [esp + 0x224]
mov eax, esi
add esp, 0x23c
pop esi
pop ebx
ret
Function at 0x401ab5
Capabilities:
Terminate process

Disassembly:
cmp ecx, dword [0x45f090]
jne 0x401abf
repz ret
jmp fcn.00402a98

Function at 0x40950e
Capabilities:
Link many functions at runtime

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x14
push ebx
push esi
push edi
call fcn.004078d5
and dword [ebp - 4], 0
cmp dword [0x465174], 0
mov ebx, eax
jne 0x4095bf
push str.USER32.DLL
call dword [sym.imp.KERNEL32.dll_LoadLibraryA]
mov edi, eax
test edi, edi
je 0x409670
mov esi, dword [sym.imp.KERNEL32.dll_GetProcAddress]
push str.MessageBoxA
push edi
call esi
test eax, eax
je 0x409670
push eax
call fcn.00407863
mov dword [esp], str.GetActiveWindow
push edi
mov dword [0x465174], eax
call esi
push eax
call fcn.00407863
mov dword [esp], str.GetLastActivePopup
push edi
mov dword [0x465178], eax
call esi
push eax
call fcn.00407863
mov dword [esp], str.GetUserObjectInformationA
push edi
mov dword [0x46517c], eax
call esi
push eax
call fcn.00407863
pop ecx
mov dword [0x465184], eax
test eax, eax
je 0x4095bf
push str.GetProcessWindowStation
push edi
call esi
push eax
call fcn.00407863
pop ecx
mov dword [0x465180], eax
mov eax, dword [0x465180]
cmp eax, ebx
je 0x409617
cmp dword [0x465184], ebx
je 0x409617
push eax
call fcn.004078de
push dword [0x465184]
mov esi, eax
call fcn.004078de
pop ecx
pop ecx
mov edi, eax
test esi, esi
je 0x409617
test edi, edi
je 0x409617
call esi
test eax, eax
je 0x40960e
lea ecx, [ebp - 8]
push ecx
push 0xc
lea ecx, [ebp - 0x14]
push ecx
push 1
push eax
call edi
test eax, eax
je 0x40960e
test byte [ebp - 0xc], 1
jne 0x409617
or dword [ebp + 0x10], 0x200000
jmp 0x409650
mov eax, dword [0x465178]
cmp eax, ebx
je 0x409650
push eax
call fcn.004078de
pop ecx
test eax, eax
je 0x409650
call eax
mov dword [ebp - 4], eax
test eax, eax
je 0x409650
mov eax, dword [0x46517c]
cmp eax, ebx
je 0x409650
push eax
call fcn.004078de
pop ecx
test eax, eax
je 0x409650
push dword [ebp - 4]
call eax
mov dword [ebp - 4], eax
push dword [0x465174]
call fcn.004078de
pop ecx
test eax, eax
je 0x409670
push dword [ebp + 0x10]
push dword [ebp + 0xc]
push dword [ebp + 8]
push dword [ebp - 4]
call eax
jmp 0x409672
xor eax, eax
pop edi
pop esi
pop ebx
leave
ret

Function at 0x40d8ab
Capabilities:
Set console window title

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x1c
push esi
xor esi, esi
cmp dword [0x1bdb824], 0x930
jne 0x40d8d3
push str.sikelesisasa
push esi
call dword [sym.imp.KERNEL32.dll_CreateJobObjectA]
push esi
call dword [sym.imp.KERNEL32.dll_SetConsoleTitleA]
cmp dword [0x1bdb824], 0x114e
mov eax, dword [ebp + 8]
mov dword [0x1bdb540], eax
jne 0x40d905
push esi
push esi
call dword [sym.imp.KERNEL32.dll_CreateJobObjectW]
lea eax, [ebp - 0x1c]
push eax
push str.wehelojiri
call dword [sym.imp.KERNEL32.dll_BuildCommDCBW]
push esi
call dword [sym.imp.KERNEL32.dll_LoadLibraryA]
pop esi
leave
ret
Function at 0x40da30
Capabilities:
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
sub esp, 0xc
mov eax, dword [0x604654]
xor eax, ebp
mov dword [ebp - 4], eax
mov edx, dword [ebp + 8]
push esi
mov esi, dword [ebp + 0xc]
push edi
mov edi, dword [ebp + 0x10]
mov eax, dword [edi]
add eax, eax
mov dword [edi], 0
mov dword [ebp - 0xc], eax
lea eax, [ebp - 0xc]
push eax
push esi
lea eax, [ebp - 8]
push eax
push 0
push edx
push dword [ecx]
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
test eax, eax
jne 0x40dabb
mov eax, dword [ebp - 8]
cmp eax, 1
je 0x40da7d
cmp eax, 2
jne 0x40da99
mov ecx, dword [ebp - 0xc]
test esi, esi
je 0x40dab5
test ecx, ecx
je 0x40dab0
test cl, 1
jne 0x40da99
mov eax, ecx
shr eax, 1
cmp word [esi + eax*2 - 2], 0
je 0x40dab5
pop edi
mov eax, 0xd
pop esi
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.004a408b
mov esp, ebp
pop ebp
ret 0xc
xor eax, eax
mov word [esi], ax
shr ecx, 1
xor eax, eax
mov dword [edi], ecx
mov ecx, dword [ebp - 4]
pop edi
xor ecx, ebp
pop esi
call fcn.004a408b
mov esp, ebp
pop ebp
ret 0xc

Function at 0x40ea70
Capabilities:
Extract resource via kernel32 functions

Disassembly:
push ebp
mov ebp, esp
push esi
push dword [ebp + 0xc]
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.dll_LoadResource]
test eax, eax
je 0x40eac9
push eax
call dword [sym.imp.KERNEL32.dll_LockResource]
mov esi, eax
test esi, esi
je 0x40eac9
push dword [ebp + 0xc]
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.dll_SizeofResource]
mov ecx, dword [ebp + 0x10]
lea edx, [esi + eax]
and ecx, 0xf
jbe 0x40eaba
cmp esi, edx
jae 0x40eac9
movzx eax, word [esi]
lea esi, [esi + eax*2]
add esi, 2
sub ecx, 1
jne 0x40eaa8
cmp esi, edx
jae 0x40eac9
cmp word [esi], 0
je 0x40eac9
mov eax, esi
pop esi
pop ebp
ret
xor eax, eax
pop esi
pop ebp
ret
Function at 0x411dc0
Capabilities:
Read .ini file

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x5932d8
mov eax, dword fs:[0]
push eax
sub esp, 0x44
mov eax, dword [0x604654]
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
mov edi, dword [ebp + 8]
lea eax, [ebp - 0x4c]
push 0x3c
push 0
push eax
mov dword [ebp - 0x50], edi
call fcn.0053c7b0
add esp, 0xc
lea eax, [ebp - 0x4c]
push dword [esi]
push 0xb
push eax
push 0
push str.check_time_linkacc
push str.General
call dword [sym.imp.KERNEL32.dll_GetPrivateProfileStringW]
call fcn.0040c960
mov ecx, eax
test ecx, ecx
je 0x411e8f
mov eax, dword [ecx]
call dword [eax + 0xc]
add eax, 0x10
mov dword [edi], eax
lea eax, [ebp - 0x4c]
mov dword [ebp - 4], 0
test eax, 0xffff0000
jne 0x411e4f
movzx eax, ax
mov ecx, edi
push eax
call fcn.00412300
jmp 0x411e70
lea ecx, [ebp - 0x4c]
lea edx, [ecx + 2]
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x411e55
sub ecx, edx
lea eax, [ebp - 0x4c]
sar ecx, 1
push ecx
push eax
mov ecx, edi
call fcn.0040e8d0
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.004a408b
mov esp, ebp
pop ebp
ret 4
push 0x80004005
call fcn.0040c4f0
int3

Function at 0x411ea0
Capabilities:
Read .ini file

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x5932d8
mov eax, dword fs:[0]
push eax
sub esp, 0x44
mov eax, dword [0x604654]
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
mov edi, dword [ebp + 8]
lea eax, [ebp - 0x4c]
push 0x3c
push 0
push eax
mov dword [ebp - 0x50], edi
call fcn.0053c7b0
add esp, 0xc
lea eax, [ebp - 0x4c]
push dword [esi]
push 0xb
push eax
push 0
push str.check_time_outdate
push str.General
call dword [sym.imp.KERNEL32.dll_GetPrivateProfileStringW]
call fcn.0040c960
mov ecx, eax
test ecx, ecx
je 0x411f6f
mov eax, dword [ecx]
call dword [eax + 0xc]
add eax, 0x10
mov dword [edi], eax
lea eax, [ebp - 0x4c]
mov dword [ebp - 4], 0
test eax, 0xffff0000
jne 0x411f2f
movzx eax, ax
mov ecx, edi
push eax
call fcn.00412300
jmp 0x411f50
lea ecx, [ebp - 0x4c]
lea edx, [ecx + 2]
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x411f35
sub ecx, edx
lea eax, [ebp - 0x4c]
sar ecx, 1
push ecx
push eax
mov ecx, edi
call fcn.0040e8d0
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.004a408b
mov esp, ebp
pop ebp
ret 4
push 0x80004005
call fcn.0040c4f0
int3
Function at 0x411fe0
Capabilities:
Read .ini file

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x84
mov eax, dword [0x604654]
xor eax, ebp
mov dword [ebp - 4], eax
push esi
push 0x80
lea eax, [ebp - 0x84]
mov esi, ecx
push 0
push eax
call fcn.0053c7b0
add esp, 0xc
lea eax, [ebp - 0x84]
push dword [esi]
push 0x40
push eax
push 0
push str.login_web_h
push str.General
call dword [sym.imp.KERNEL32.dll_GetPrivateProfileStringW]
push 0x10
lea eax, [ebp - 0x84]
push 0
push eax
call fcn.0054ae89
mov ecx, dword [ebp - 4]
add esp, 0xc
xor ecx, ebp
pop esi
call fcn.004a408b
mov esp, ebp
pop ebp
ret

Function at 0x412050
Capabilities:
Read .ini file

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x84
mov eax, dword [0x604654]
xor eax, ebp
mov dword [ebp - 4], eax
push esi
push 0x80
lea eax, [ebp - 0x84]
mov esi, ecx
push 0
push eax
call fcn.0053c7b0
add esp, 0xc
lea eax, [ebp - 0x84]
push dword [esi]
push 0x40
push eax
push 0
push str.mbct_web_h
push str.General
call dword [sym.imp.KERNEL32.dll_GetPrivateProfileStringW]
push 0x10
lea eax, [ebp - 0x84]
push 0
push eax
call fcn.0054ae89
mov ecx, dword [ebp - 4]
add esp, 0xc
xor ecx, ebp
pop esi
call fcn.004a408b
mov esp, ebp
pop ebp
ret
Function at 0x416330
Capabilities:
Check if file exists
Link many functions at runtime

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x20c
mov eax, dword [0x604654]
xor eax, ebp
mov dword [ebp - 4], eax
push edi
mov edi, ecx
cmp dword [edi + 0x1c], 0
je 0x416362
mov eax, 1
pop edi
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.004a408b
mov esp, ebp
pop ebp
ret 4
push ebx
push esi
push 0x208
lea eax, [ebp - 0x20c]
push 0
push eax
call fcn.0053c7b0
add esp, 0xc
lea eax, [ebp - 0x20c]
push 0x104
push eax
push 0x400000
call dword [sym.imp.KERNEL32.dll_GetModuleFileNameW]
mov ebx, dword [sym.imp.SHLWAPI.dll_PathRemoveFileSpecW]
lea eax, [ebp - 0x20c]
push eax
call ebx
mov esi, dword [ebp + 8]
test esi, esi
je 0x4163b5
lea eax, [ebp - 0x20c]
push eax
call ebx
sub esi, 1
jne 0x4163a7
push str.netul.dll
lea eax, [ebp - 0x20c]
push eax
call dword [sym.imp.SHLWAPI.dll_PathAppendW]
lea eax, [ebp - 0x20c]
push eax
call dword [sym.imp.SHLWAPI.dll_PathFileExistsW]
test eax, eax
je 0x416472
mov dword [edi + 0x1c], 1
cmp dword [edi], 0
jne 0x416448
lea eax, [ebp - 0x20c]
push eax
call dword [sym.imp.KERNEL32.dll_LoadLibraryW]
mov dword [edi], eax
test eax, eax
je 0x416472
mov esi, dword [sym.imp.KERNEL32.dll_GetProcAddress]
push str.HttpInit
push eax
call esi
push str.HttpUninit
push dword [edi]
mov dword [edi + 4], eax
call esi
push str.zlib_uncompress
push dword [edi]
mov dword [edi + 8], eax
call esi
push str.zlib_compress
push dword [edi]
mov dword [edi + 0x10], eax
call esi
push str.zlib_compressBound
push dword [edi]
mov dword [edi + 0x14], eax
call esi
mov dword [edi + 0x18], eax
mov eax, dword [edi + 4]
test eax, eax
je 0x416448
call eax
mov dword [edi + 0xc], eax
cmp dword [edi + 8], 0
je 0x416472
cmp dword [edi + 4], 0
je 0x416472
cmp dword [edi + 0xc], 0
je 0x416472
pop esi
pop ebx
mov eax, 1
pop edi
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.004a408b
mov esp, ebp
pop ebp
ret 4
mov ecx, dword [ebp - 4]
xor eax, eax
pop esi
pop ebx
xor ecx, ebp
pop edi
call fcn.004a408b
mov esp, ebp
pop ebp
ret 4