joyce8/EMBER2024-capa huggingface dataset:
Function at 0x411160
Capabilities:
Access peb ldr_data

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x4ba64a
mov eax, dword fs:[0]
push eax
sub esp, 0x18
mov eax, dword [0x4f07b8]
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]
push 0
mov dword [ebp - 0x18], esi
call fcn.004380b1
mov dword [ebp - 4], 0
mov dword [esi + 4], 0
mov byte [esi + 8], 0
mov dword [esi + 0xc], 0
mov byte [esi + 0x10], 0
xor eax, eax
mov dword [esi + 0x14], 0
mov word [esi + 0x18], ax
mov dword [esi + 0x1c], eax
mov word [esi + 0x20], ax
mov dword [esi + 0x24], eax
mov byte [esi + 0x28], al
mov dword [esi + 0x2c], eax
mov byte [esi + 0x30], al
mov byte [ebp - 4], 6
test edi, edi
jne 0x411206
lea eax, [ebp - 0x14]
mov dword [ebp - 0x14], str.bad_locale_name
push eax
lea ecx, [ebp - 0x24]
call fcn.00489088
push 0x4ed1e4
lea eax, [ebp - 0x24]
mov dword [ebp - 0x24], vtable.std::runtime_error.0
push eax
call fcn.0048c8eb
push edi
push esi
call fcn.00437f84
add esp, 8
mov eax, esi
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.004845db
mov esp, ebp
pop ebp
ret 4

Function at 0x411960
Capabilities:
Get process heap force flags

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
push 0xffffffffffffffff
push 0x4ba6d8
mov eax, dword fs:[0]
push eax
sub esp, 0x20
push esi
mov eax, dword [0x4f07b8]
xor eax, esp
push eax
lea eax, [esp + 0x28]
mov dword fs:[0], eax
mov esi, ecx
sub esp, 0x18
mov ecx, esp
push 0xffffffffffffffff
push 0
push dword [ebp + 0x10]
mov dword [ecx + 0x14], 0xf
mov dword [ecx + 0x10], 0
mov byte [ecx], 0
call fcn.00409050
push dword [ebp + 0xc]
lea eax, [esp + 0x28]
push dword [ebp + 8]
push eax
call fcn.00411890
add esp, 0x24
mov dword [esp + 0x30], 0
cmp dword [eax + 0x14], 0x10
jb 0x4119d1
mov eax, dword [eax]
mov dword [esp + 8], eax
mov ecx, esi
lea eax, [esp + 8]
push eax
call fcn.00489088
cmp dword [esp + 0x20], 0x10
mov dword [esi], vtable.std::runtime_error.0
jb 0x4119fa
push dword [esp + 0xc]
call fcn.004847d0
add esp, 4
mov eax, dword [ebp + 8]
mov dword [esi + 0xc], eax
mov eax, dword [ebp + 0xc]
mov dword [esi + 0x10], eax
mov eax, esi
mov dword [esi], vtable.std::_System_error.0
mov ecx, dword [esp + 0x28]
mov dword fs:[0], ecx
pop ecx
pop esi
mov esp, ebp
pop ebp
ret 0xc
Function at 0x415970
Capabilities:
Get disk information

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x4baf28
mov eax, dword fs:[0]
push eax
sub esp, 0x1c
push ebx
push esi
push edi
mov eax, dword [0x4f07b8]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov ebx, ecx
mov edi, dword [sym.imp.KERNEL32.dll_GetLogicalDriveStringsW]
push 0
push 0
call edi
xor ecx, ecx
mov esi, eax
mov edx, 2
mul edx
seto cl
neg ecx
or ecx, eax
push ecx
call fcn.00437c6f
add esp, 4
mov dword [ebp - 0x10], eax
push eax
push esi
call edi
mov eax, dword [ebp - 0x10]
mov esi, eax
cmp word [eax], 0
je 0x415a56
mov edi, dword [sym.imp.KERNEL32.dll_GetDriveTypeW]
lea ecx, [ecx]
push esi
call edi
test eax, eax
je 0x415a3e
cmp eax, 1
je 0x415a3e
cmp eax, 2
je 0x415a3e
cmp eax, 4
je 0x415a3e
cmp eax, 5
je 0x415a3e
cmp eax, 6
je 0x415a3e
mov ecx, esi
call fcn.00415830
test al, al
jne 0x415a3e
push esi
lea ecx, [ebp - 0x28]
call fcn.00408d90
lea eax, [ebp - 0x28]
mov dword [ebp - 4], 0
push eax
mov ecx, ebx
call fcn.0041b000
mov dword [ebp - 4], 0xffffffff
cmp dword [ebp - 0x14], 8
jb 0x415a3e
push dword [ebp - 0x28]
call fcn.004847d0
add esp, 4
push 0
push esi
call fcn.0048bf13
add esp, 8
cmp word [eax + 2], 0
lea esi, [eax + 2]
jne 0x4159e0
mov eax, dword [ebp - 0x10]
push eax
call fcn.00489898
add esp, 4
mov al, 1
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret

Function at 0x415a80
Capabilities:
Get storage device properties

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x4baf58
mov eax, dword fs:[0]
push eax
sub esp, 0x38
mov eax, dword [0x4f07b8]
xor eax, ebp
mov dword [ebp - 0x10], eax
push ebx
push esi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov esi, ecx
push 4
xor eax, eax
mov dword [ebp - 0x18], 7
push 0x4dac54
lea ecx, [ebp - 0x2c]
mov dword [ebp - 0x1c], 0
mov word [ebp - 0x2c], ax
call fcn.00408c90
mov dword [ebp - 4], 0
cmp word [esi], 0
jne 0x415ae0
xor ecx, ecx
jmp 0x415af4
mov ecx, esi
lea edx, [ecx + 2]
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x415ae5
sub ecx, edx
sar ecx, 1
push ecx
push esi
lea ecx, [ebp - 0x2c]
call fcn.0040c690
cmp dword [ebp - 0x18], 8
lea eax, [ebp - 0x2c]
push 0
cmovae eax, dword [ebp - 0x2c]
push 0
push 3
push 0
push 3
push 0xc0000000
push eax
call dword [sym.imp.KERNEL32.dll_CreateFileW]
cmp eax, 0xffffffff
je 0x415b65
push 0
lea ecx, [ebp - 0x14]
mov dword [ebp - 0x14], 0
push ecx
push 0xc
lea ecx, [ebp - 0x44]
mov dword [ebp - 0x38], 8
push ecx
push 0xc
lea ecx, [ebp - 0x38]
mov dword [ebp - 0x34], 0
push ecx
push 0x2d1400
push eax
mov byte [ebp - 0x3c], 0
call dword [sym.imp.KERNEL32.dll_DeviceIoControl]
cmp byte [ebp - 0x3c], 1
jne 0x415b65
mov bl, 1
jmp 0x415b67
xor bl, bl
cmp dword [ebp - 0x18], 8
jb 0x415b78
push dword [ebp - 0x2c]
call fcn.004847d0
add esp, 4
mov al, bl
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop esi
pop ebx
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.004845db
mov esp, ebp
pop ebp
ret
Function at 0x415ba0
Capabilities:
Get disk information
Get disk size

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x4bafda
mov eax, dword fs:[0]
push eax
sub esp, 0x868
mov eax, dword [0x4f07b8]
xor eax, ebp
mov dword [ebp - 0x10], eax
push ebx
push esi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov esi, ecx
push 3
xor ebx, ebx
lea eax, [ebp - 0x834]
push ebx
push eax
mov dword [ebp - 0x83c], ebx
call fcn.0040c0e0
mov dword [ebp - 4], ebx
lea ecx, [ebp - 0x818]
cmp dword [ebp - 0x820], 8
lea eax, [ebp - 0x834]
push ebx
cmovae eax, dword [ebp - 0x834]
push ebx
push ecx
push eax
mov dword [ebp - 0x818], ebx
mov dword [ebp - 0x814], ebx
call dword [sym.imp.KERNEL32.dll_GetDiskFreeSpaceExW]
test eax, eax
je 0x415de6
xor eax, eax
mov dword [ebp - 0x81c], 1
push 0x7fe
push eax
mov word [ebp - 0x810], ax
lea eax, [ebp - 0x80e]
push eax
call fcn.0048f480
add esp, 0xc
cmp dword [esi + 0x14], 8
jb 0x415c53
mov eax, dword [esi]
jmp 0x415c55
mov eax, esi
push 0x400
lea ecx, [ebp - 0x810]
push ecx
lea ecx, [ebp - 0x81c]
push ecx
push 0
push 0
push 0
push 0
push eax
call dword [sym.imp.KERNEL32.dll_GetVolumeInformationW]
test eax, eax
je 0x415cf3
lea eax, [ebp - 0x810]
push eax
lea ecx, [ebp - 0x870]
call fcn.00408d90
push 5
push 0x4dac64
mov byte [ebp - 4], 1
mov ebx, 1
push dword [eax + 0x10]
mov dword [ebp - 0x83c], ebx
push ecx
mov ecx, eax
call fcn.0040d160
test eax, eax
je 0x415cf3
lea eax, [ebp - 0x810]
push eax
lea ecx, [ebp - 0x858]
call fcn.00408d90
push 4
push 0x4dac70
mov dword [ebp - 4], 2
mov ebx, 3
push dword [eax + 0x10]
mov dword [ebp - 0x83c], ebx
push ecx
mov ecx, eax
call fcn.0040d160
mov byte [ebp - 0x835], 1
test eax, eax
jne 0x415cfa
mov byte [ebp - 0x835], 0
test bl, 2
je 0x415d36
and ebx, 0xfffffffd
cmp dword [ebp - 0x844], 8
jb 0x415d19
push dword [ebp - 0x858]
call fcn.004847d0
add esp, 4
xor eax, eax
mov dword [ebp - 0x844], 7
mov dword [ebp - 0x848], 0
mov word [ebp - 0x858], ax
mov dword [ebp - 4], 0
test bl, 1
je 0x415d59
cmp dword [ebp - 0x85c], 8
jb 0x415d59
push dword [ebp - 0x870]
call fcn.004847d0
add esp, 4
cmp byte [ebp - 0x835], 0
jne 0x415de6
mov edx, dword [ebp - 0x814]
mov ecx, dword [ebp - 0x818]
call fcn.00492a2e
mulsd xmm0, qword [0x4dfc00]
lea eax, [ebp - 0x870]
push 2
push 0
push eax
mov ecx, esi
movsd qword [ebp - 0x840], xmm0
call fcn.0040c0e0
mov byte [ebp - 4], 3
cmp dword [eax + 0x14], 8
jb 0x415da5
mov eax, dword [eax]
mov ecx, eax
call fcn.00415a80
cmp dword [ebp - 0x85c], 8
mov bl, al
jb 0x415dc5
push dword [ebp - 0x870]
call fcn.004847d0
add esp, 4
movsd xmm0, qword [ebp - 0x840]
test bl, bl
je 0x415df1
cvttsd2si eax, xmm0
cmp eax, 0x6000
jle 0x415df1
mulsd xmm0, qword [0x4dfc18]
jmp 0x415de9
xorps xmm0, xmm0
movsd qword [ebp - 0x840], xmm0
cmp dword [ebp - 0x820], 8
jb 0x415e10
push dword [ebp - 0x834]
call fcn.004847d0
movsd xmm0, qword [ebp - 0x840]
add esp, 4
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop esi
pop ebx
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.004845db
mov esp, ebp
pop ebp
ret
Function at 0x416a20
Capabilities:
Set registry value

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x28
mov eax, dword [0x4f07b8]
xor eax, ebp
mov dword [ebp - 8], eax
push ebx
push esi
mov ebx, dword [ebp + 8]
lea eax, [ebp - 0xc]
push edi
push eax
lea eax, [ebp - 0x10]
mov dword [ebp - 0xc], 0
push eax
push 0
push 0x2011f
push 0
push 0
push 0
push str.SoftwareXuanZhiOSLink
push reloc.OLEAUT32.dll_SysReAllocString
mov edi, ecx
call dword [sym.imp.ADVAPI32.dll_RegCreateKeyExW]
test eax, eax
jne 0x416bd5
cmp dword [edi + 0x4c], 8
lea esi, [edi + 0x38]
jb 0x416a79
mov eax, dword [esi]
jmp 0x416a7b
mov eax, esi
push eax
push str.pathToReg_installPath__s
push 0x33a
push str.LDRemoteModel::pathToRegMachine
call fcn.00424250
mov eax, dword [esi + 0x10]
add esp, 0x10
cmp dword [esi + 0x14], 8
jb 0x416a9e
mov esi, dword [esi]
lea eax, [eax*2 + 2]
push eax
push esi
mov esi, dword [sym.imp.ADVAPI32.dll_RegSetValueExW]
push 1
push 0
push str.InstallDir
push dword [ebp - 0x10]
call esi
push 8
xor eax, eax
mov dword [ebp - 0x14], 7
push 0x4d8b70
lea ecx, [ebp - 0x28]
mov dword [ebp - 0x18], 0
mov word [ebp - 0x28], ax
call fcn.00408c90
mov eax, dword [ebp - 0x18]
lea ecx, [ebp - 0x28]
cmp dword [ebp - 0x14], 8
cmovae ecx, dword [ebp - 0x28]
lea eax, [eax*2 + 2]
push eax
push ecx
push 1
push 0
push str.Version
push dword [ebp - 0x10]
call esi
cmp dword [ebp - 0x14], 8
jb 0x416b14
push dword [ebp - 0x28]
call fcn.004847d0
add esp, 4
mov edx, ebx
lea ecx, [ebp - 0x28]
call fcn.0040d600
mov ecx, eax
cmp dword [ecx + 0x14], 8
mov eax, dword [ecx + 0x10]
jb 0x416b2b
mov ecx, dword [ecx]
lea eax, [eax*2 + 2]
push eax
push ecx
push 1
push 0
push str.SystemD
push dword [ebp - 0x10]
call esi
cmp dword [ebp - 0x14], 8
jb 0x416b53
push dword [ebp - 0x28]
call fcn.004847d0
add esp, 4
mov ecx, edi
call fcn.00414bc0
test al, al
je 0x416b80
mov eax, dword [edi + 0x78]
add edi, 0x68
cmp dword [edi + 0x14], 8
jb 0x416b6c
mov edi, dword [edi]
lea eax, [eax*2 + 2]
push eax
push edi
push 1
push 0
push str.playerDir64
jmp 0x416bc7
mov ecx, edi
call fcn.00414c20
add edi, 0x68
test al, al
mov eax, dword [edi + 0x10]
je 0x416bad
cmp dword [edi + 0x14], 8
jb 0x416b99
mov edi, dword [edi]
lea eax, [eax*2 + 2]
push eax
push edi
push 1
push 0
push str.playerDir9
jmp 0x416bc7
cmp dword [edi + 0x14], 8
jb 0x416bb5
mov edi, dword [edi]
lea eax, [eax*2 + 2]
push eax
push edi
push 1
push 0
push str.playerDir
push dword [ebp - 0x10]
call esi
push dword [ebp - 0x10]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov ecx, dword [ebp - 8]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.004845db
mov esp, ebp
pop ebp
ret 4
Function at 0x417ab0
Capabilities:
Enumerate processes
Terminate process

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x4bb2a8
mov eax, dword fs:[0]
push eax
sub esp, 0x254
mov eax, dword [0x4f07b8]
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 esi, ecx
mov dword [ebp - 0x25c], esi
push 0
push 2
call dword [sym.imp.KERNEL32.dll_CreateToolhelp32Snapshot]
mov ebx, eax
mov dword [ebp - 0x258], 0x22c
lea eax, [ebp - 0x258]
mov dword [ebp - 0x260], ebx
push eax
push ebx
call dword [sym.imp.KERNEL32.dll_Process32FirstW]
test eax, eax
je 0x417c8c
push esi
call fcn.0041f600
add esp, 4
lea eax, [ebp - 0x258]
push eax
push ebx
call dword [sym.imp.KERNEL32.dll_Process32NextW]
test eax, eax
je 0x417c8c
jmp 0x417b40
xor eax, eax
mov dword [ebp - 0x14], 7
mov dword [ebp - 0x18], 0
mov word [ebp - 0x28], ax
cmp word [ebp - 0x234], ax
je 0x417b75
lea eax, [ebp - 0x234]
lea edx, [eax + 2]
mov cx, word [eax]
add eax, 2
test cx, cx
jne 0x417b66
sub eax, edx
sar eax, 1
push eax
lea eax, [ebp - 0x234]
push eax
lea ecx, [ebp - 0x28]
call fcn.00408c90
lea eax, [ebp - 0x28]
mov dword [ebp - 4], 0
push eax
call fcn.0041f600
mov ebx, dword [esi + 0x10]
lea edx, [ebp - 0x28]
add esp, 4
cmp dword [ebp - 0x14], 8
cmovae edx, dword [ebp - 0x28]
cmp dword [esi + 0x14], 8
jb 0x417bb0
mov ecx, dword [esi]
jmp 0x417bb2
mov ecx, esi
mov edi, dword [ebp - 0x18]
cmp ebx, edi
mov esi, edi
cmovb esi, ebx
test esi, esi
jne 0x417bd0
xor eax, eax
test eax, eax
jne 0x417bf8
cmp ebx, edi
jae 0x417bef
or eax, 0xffffffff
jmp 0x417bf6
mov ax, word [ecx]
cmp ax, word [edx]
jne 0x417be1
add ecx, 2
add edx, 2
dec esi
jmp 0x417bbe
movzx eax, word [ecx]
cmp ax, word [edx]
sbb eax, eax
and eax, 0xfffffffe
inc eax
jmp 0x417bc2
xor eax, eax
cmp ebx, edi
setne al
test eax, eax
sete al
test al, al
je 0x417c53
push dword [ebp - 0x250]
push 0
push 1
call dword [sym.imp.KERNEL32.dll_OpenProcess]
mov esi, eax
test esi, esi
jne 0x417c43
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov esi, dword [ebp - 0x25c]
mov ecx, esi
push eax
call fcn.00408df0
push eax
push str.open_progress_error__s____d
push 0x42c
push str.killProgressByHandle
call fcn.00424250
add esp, 0x14
jmp 0x417c59
push 0
push esi
call dword [sym.imp.KERNEL32.dll_TerminateProcess]
push esi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov esi, dword [ebp - 0x25c]
mov dword [ebp - 4], 0xffffffff
cmp dword [ebp - 0x14], 8
jb 0x417c71
push dword [ebp - 0x28]
call fcn.004847d0
add esp, 4
lea eax, [ebp - 0x258]
push eax
push dword [ebp - 0x260]
call dword [sym.imp.KERNEL32.dll_Process32NextW]
test eax, eax
jne 0x417b40
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.004845db
mov esp, ebp
pop ebp
ret

Function at 0x417cb0
Capabilities:
Enumerate processes
Terminate process

Disassembly:
push esi
mov esi, ecx
cmp dword [esi + 0x14], 8
jb 0x417cbd
mov eax, dword [esi]
jmp 0x417cbf
mov eax, esi
push eax
push str.kill_progress_by_handle__s
push 0x439
push str.LDRemoteModel::killProgressIfExist
call fcn.00424250
add esp, 0x10
mov ecx, esi
pop esi
jmp fcn.00417ab0
Function at 0x419db0
Capabilities:
Get number of processors

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
push 0xffffffffffffffff
push 0x4bb070
mov eax, dword fs:[0]
push eax
sub esp, 0x3c
mov eax, dword [0x4f07b8]
xor eax, esp
mov dword [esp + 0x34], eax
push esi
push edi
mov eax, dword [0x4f07b8]
xor eax, esp
push eax
lea eax, [esp + 0x48]
mov dword fs:[0], eax
mov esi, ecx
xor eax, eax
mov dword [esp + 0x3c], 7
push eax
push 0x4d8960
lea ecx, [esp + 0x30]
mov dword [esp + 0x40], 0
mov word [esp + 0x30], ax
call fcn.00408c90
lea eax, [esp + 0x28]
mov dword [esp + 0x50], 0
mov ecx, dword [esi]
push eax
push 0x64
call fcn.0041a7a0
mov dword [esp + 0x50], 0xffffffff
cmp dword [esp + 0x3c], 8
jb 0x419e3f
push dword [esp + 0x28]
call fcn.004847d0
add esp, 4
mov edx, dword [esi]
cmp dword [edx + 0xec], 0
je 0x419eba
push str.ldremote.exe
add edx, 0x38
lea ecx, [esp + 0x14]
call fcn.00412490
add esp, 4
mov edi, eax
mov dword [esp + 0x50], 1
lea ecx, [esp + 0x28]
mov esi, dword [esi]
xorps xmm0, xmm0
movq qword [esp + 0x28], xmm0
mov dword [esp + 0x30], 0
call fcn.00429490
lea eax, [esi + 0xdc]
push eax
lea ecx, [esp + 0x2c]
call fcn.004294c0
test al, al
je 0x419ea7
push edi
push 0x55f1
lea ecx, [esp + 0x30]
call fcn.00429640
cmp dword [esp + 0x24], 8
jb 0x419eba
push dword [esp + 0x10]
call fcn.004847d0
add esp, 4
mov ecx, dword [esp + 0x48]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
mov ecx, dword [esp + 0x34]
xor ecx, esp
call fcn.004845db
mov esp, ebp
pop ebp
ret
Function at 0x41a100
Capabilities:
Identify system language via api

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x4bb718
mov eax, dword fs:[0]
push eax
sub esp, 0x24
mov eax, dword [0x4f07b8]
xor eax, ebp
mov dword [ebp - 0x14], eax
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov edi, ecx
cmp dword [edi + 0x120], 0
mov esi, dword [ebp + 8]
mov dword [ebp - 0x30], 0
jne 0x41a236
push 5
xor eax, eax
mov dword [ebp - 0x18], 7
push str.en_US
lea ecx, [ebp - 0x2c]
mov dword [ebp - 0x1c], 0
mov word [ebp - 0x2c], ax
call fcn.00408c90
mov dword [ebp - 4], 0
call dword [sym.imp.KERNEL32.dll_GetUserDefaultUILanguage]
movzx ecx, ax
mov eax, ecx
and eax, 0x3ff
cmp ax, 4
jne 0x41a1c3
mov eax, 0xc04
cmp cx, ax
je 0x41a1b2
mov eax, 0x1404
cmp cx, ax
je 0x41a1b2
mov eax, 0x404
cmp cx, ax
je 0x41a1b2
mov eax, 0x7c04
cmp cx, ax
je 0x41a1b2
push str.zh_CN
jmp 0x41a1ff
push 5
push str.zh_TW
lea ecx, [ebp - 0x2c]
call fcn.00408c90
jmp 0x41a207
cmp ax, 0x12
jne 0x41a1da
push 5
push str.ko_KR
lea ecx, [ebp - 0x2c]
call fcn.00408c90
jmp 0x41a207
cmp ax, 0x2a
jne 0x41a1e7
push str.vi_VN
jmp 0x41a1ff
cmp ax, 0x1e
jne 0x41a1f4
push str.th_TH
jmp 0x41a1ff
cmp ax, 0x11
jne 0x41a207
push str.ja_JP
lea ecx, [ebp - 0x2c]
call fcn.00404900
lea ecx, [edi + 0x110]
lea eax, [ebp - 0x2c]
cmp ecx, eax
je 0x41a21e
push 0xffffffffffffffff
push 0
push eax
call fcn.00408920
mov dword [ebp - 4], 0xffffffff
cmp dword [ebp - 0x18], 8
jb 0x41a236
push dword [ebp - 0x2c]
call fcn.004847d0
add esp, 4
xor eax, eax
mov dword [esi + 0x14], 7
push 0xffffffffffffffff
push eax
lea ecx, [edi + 0x110]
mov dword [esi + 0x10], 0
push ecx
mov ecx, esi
mov word [esi], ax
call fcn.00408920
mov eax, esi
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
mov ecx, dword [ebp - 0x14]
xor ecx, ebp
call fcn.004845db
mov esp, ebp
pop ebp
ret 4

Function at 0x41d8d0
Capabilities:
Access peb ldr_data

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
push 0xffffffffffffffff
push 0x4ba0f8
mov eax, dword fs:[0]
push eax
sub esp, 0x20
push esi
mov eax, dword [0x4f07b8]
xor eax, esp
push eax
lea eax, [esp + 0x28]
mov dword fs:[0], eax
mov esi, ecx
xor eax, eax
mov dword [esp + 0x20], 7
push eax
push 0x4d8960
lea ecx, [esp + 0x14]
mov dword [esp + 0x24], 0
mov word [esp + 0x14], ax
call fcn.00408c90
lea eax, [esp + 0xc]
mov dword [esp + 0x30], 0
mov ecx, dword [esi + 4]
push eax
push 0x50
call fcn.0041a7a0
cmp dword [esp + 0x20], 8
jb 0x41d94c
push dword [esp + 0xc]
call fcn.004847d0
add esp, 4
mov ecx, dword [esp + 0x28]
mov dword fs:[0], ecx
pop ecx
pop esi
mov esp, ebp
pop ebp
ret
Function at 0x422210
Capabilities:
Create http request

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x4bbd80
mov eax, dword fs:[0]
push eax
sub esp, 0x40
mov eax, dword [0x4f07b8]
xor eax, ebp
mov dword [ebp - 0x10], eax
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov dword [ebp - 0x44], ecx
mov eax, dword [ebp - 0x44]
mov ecx, dword [ebp + 0x10]
mov dword [eax + 0x54], ecx
push 0
push 0
push 0
push 0
push 0x4dc3ac
call dword [sym.imp.WININET.dll_InternetOpenW]
mov edx, dword [ebp - 0x44]
mov dword [edx], eax
mov eax, dword [ebp - 0x44]
cmp dword [eax], 0
jne 0x422275
push 0
mov ecx, dword [ebp - 0x44]
call fcn.004225a0
xor al, al
jmp 0x42235a
lea ecx, [ebp - 0x28]
call fcn.00408e80
mov dword [ebp - 4], 0
lea ecx, [ebp - 0x40]
call fcn.00408e80
mov byte [ebp - 4], 1
mov ecx, dword [ebp + 8]
push ecx
lea edx, [ebp - 0x40]
push edx
lea eax, [ebp - 0x4c]
push eax
lea ecx, [ebp - 0x28]
push ecx
call fcn.00422a80
add esp, 0x10
movzx edx, al
test edx, edx
jne 0x4222dd
push 1
mov ecx, dword [ebp - 0x44]
call fcn.004225a0
mov byte [ebp - 0x45], 0
mov byte [ebp - 4], 0
lea ecx, [ebp - 0x40]
call fcn.00408ee0
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x28]
call fcn.00408ee0
mov al, byte [ebp - 0x45]
jmp 0x42235a
lea eax, [ebp - 0x28]
push eax
mov ecx, dword [ebp - 0x44]
add ecx, 4
call fcn.004085d0
mov ecx, dword [ebp - 0x44]
mov dx, word [ebp - 0x4c]
mov word [ecx + 0x1c], dx
lea eax, [ebp - 0x40]
push eax
mov ecx, dword [ebp - 0x44]
add ecx, 0x20
call fcn.004085d0
mov ecx, dword [ebp + 0xc]
push ecx
mov ecx, dword [ebp - 0x44]
add ecx, 0x38
call fcn.004085d0
push 8
push str.https:__
mov ecx, dword [ebp + 8]
call fcn.00408df0
push eax
call fcn.00491b82
add esp, 0xc
test eax, eax
jne 0x422338
mov edx, dword [ebp - 0x44]
mov byte [edx + 0x50], 1
mov byte [ebp - 0x46], 1
mov byte [ebp - 4], 0
lea ecx, [ebp - 0x40]
call fcn.00408ee0
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x28]
call fcn.00408ee0
mov al, byte [ebp - 0x46]
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.004845db
mov esp, ebp
pop ebp
ret 0xc

Function at 0x422750
Capabilities:
Connect to http server

Disassembly:
push ebp
mov ebp, esp
sub esp, 8
mov dword [ebp - 4], ecx
mov dword [ebp - 8], 1
mov eax, dword [ebp - 8]
push eax
push 0
push 3
push 0
push 0
movzx ecx, word [ebp + 0x10]
push ecx
mov ecx, dword [ebp + 0xc]
call fcn.00408df0
push eax
mov edx, dword [ebp + 8]
push edx
call dword [sym.imp.WININET.dll_InternetConnectW]
mov ecx, dword [ebp - 4]
mov dword [ecx], eax
mov edx, dword [ebp - 4]
cmp dword [edx], 0
jne 0x422795
xor al, al
jmp 0x422797
mov al, 1
mov esp, ebp
pop ebp
ret 0xc
Function at 0x4227a0
Capabilities:
Read data from internet
Receive data
Send data
Send http request

Disassembly:
push ebp
mov ebp, esp
mov eax, 0x2824
call fcn.00492100
mov eax, dword [0x4f07b8]
xor eax, ebp
mov dword [ebp - 4], eax
mov dword [ebp - 0x280c], ecx
mov dword [ebp - 0x2824], 1
mov dword [ebp - 0x2820], 0x4dc3e8
mov dword [ebp - 0x281c], 0
mov dword [ebp - 0x2814], 0x84001081
movzx eax, byte [ebp + 0x18]
test eax, eax
je 0x4227ff
mov ecx, dword [ebp - 0x2814]
or ecx, 0x800000
mov dword [ebp - 0x2814], ecx
push 0
mov edx, dword [ebp - 0x2814]
push edx
push 0
push 0
push 0x4dc3f0
mov ecx, dword [ebp + 8]
call fcn.00408df0
push eax
push 0x4dc404
mov eax, dword [ebp - 0x280c]
mov ecx, dword [eax]
push ecx
call dword [sym.imp.WININET.dll_HttpOpenRequestW]
mov edx, dword [ebp - 0x280c]
mov dword [edx + 4], eax
mov eax, dword [ebp - 0x280c]
cmp dword [eax + 4], 0
jne 0x422868
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
push str.post_error__d
push 0xfc
push 0x4dc42c
call fcn.00424250
add esp, 0x10
xor al, al
jmp 0x422988
mov ecx, dword [ebp + 0x14]
push ecx
mov edx, dword [ebp + 0x10]
push edx
mov ecx, dword [ebp + 0xc]
call fcn.004048b0
push eax
mov ecx, dword [ebp + 0xc]
call fcn.00408df0
push eax
mov eax, dword [ebp - 0x280c]
mov ecx, dword [eax + 4]
push ecx
call dword [sym.imp.WININET.dll_HttpSendRequestW]
test eax, eax
je 0x42289f
mov byte [ebp - 0x2805], 1
jmp 0x4228a6
mov byte [ebp - 0x2805], 0
mov dl, byte [ebp - 0x2805]
mov byte [ebp - 0x2806], dl
movzx eax, byte [ebp - 0x2806]
test eax, eax
jne 0x4228e2
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
push str.post_error2__d
push 0x102
push 0x4dc46c
call fcn.00424250
add esp, 0x10
xor al, al
jmp 0x422988
mov dword [ebp - 0x2818], 0
mov byte [ebp - 0x2804], 0
push 0x27ff
push 0
lea ecx, [ebp - 0x2803]
push ecx
call fcn.0048f480
add esp, 0xc
mov dword [ebp - 0x2810], 0
lea edx, [ebp - 0x2810]
push edx
push 0x2800
lea eax, [ebp - 0x2804]
push eax
mov ecx, dword [ebp - 0x280c]
mov edx, dword [ecx + 4]
push edx
call dword [sym.imp.WININET.dll_InternetReadFile]
test eax, eax
jne 0x42295c
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
push str.post_error3__d
push 0x10f
push str.utility::CHttpConnection::post
call fcn.00424250
add esp, 0x10
xor al, al
jmp 0x422988
cmp dword [ebp - 0x2810], 0
jne 0x422967
jmp 0x422986
mov eax, dword [ebp - 0x2810]
push eax
lea ecx, [ebp - 0x2804]
push ecx
mov ecx, dword [ebp + 0x1c]
call fcn.00411690
mov edx, 1
test edx, edx
jne 0x422909
mov al, 1
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.004845db
mov esp, ebp
pop ebp
ret 0x18