joyce8/EMBER2024-capa huggingface dataset:
Function at 0x415574
Capabilities:
Read file on windows

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
pop ebp
jmp fcn.004153e5

Function at 0x416b76
Capabilities:
Read file on windows

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x14
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 + 0x421f58]
mov dword [ebp - 0x10], ecx
mov ecx, dword [eax + edi + 0x18]
mov dword [ebp - 0x14], ecx
mov ecx, dword [ebp + 0x10]
test ecx, ecx
je 0x416bb6
cmp byte [ebx], 0xa
jne 0x416bb6
or byte [eax + edi + 0x28], 4
jmp 0x416bbb
and byte [eax + edi + 0x28], 0xfb
add ecx, ebx
mov edx, ebx
mov dword [ebp - 0xc], ecx
mov esi, ebx
cmp ebx, ecx
jae 0x416cb9
mov al, byte [edx]
cmp al, 0x1a
je 0x416c9b
lea ecx, [edx + 1]
mov dword [ebp - 8], ecx
mov ecx, dword [ebp - 0xc]
cmp al, 0xd
je 0x416bea
mov edx, dword [ebp - 8]
mov byte [esi], al
jmp 0x416c0f
mov eax, dword [ebp - 8]
cmp eax, ecx
jae 0x416c19
mov cl, byte [eax]
xor eax, eax
cmp cl, 0xa
sete al
inc eax
add edx, eax
cmp cl, 0xa
sete al
dec al
and al, 3
add al, 0xa
mov byte [esi], al
mov ecx, dword [ebp - 0xc]
inc esi
cmp edx, ecx
jb 0x416bcc
jmp 0x416cb9
push 0
lea eax, [ebp - 0xc]
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 0x416c96
cmp dword [ebp - 0xc], 0
je 0x416c96
mov ecx, dword [ebp - 0x10]
mov eax, dword [ecx*4 + 0x421f58]
test byte [eax + edi + 0x28], 0x48
je 0x416c70
mov dl, byte [ebp - 1]
lea eax, [esi + 1]
mov dword [ebp - 0x14], eax
cmp dl, 0xa
jne 0x416c5b
mov byte [esi], dl
jmp 0x416c6c
mov byte [esi], 0xd
mov eax, dword [ecx*4 + 0x421f58]
mov byte [eax + edi + 0x2a], dl
mov eax, dword [ebp - 0x14]
mov esi, eax
jmp 0x416cb9
cmp byte [ebp - 1], 0xa
jne 0x416c7f
cmp esi, ebx
jne 0x416c7f
mov byte [esi], 0xa
jmp 0x416cb8
push 1
push 0xffffffffffffffff
push 0xffffffffffffffff
push dword [ebp + 8]
call fcn.00416ae6
add esp, 0x10
cmp byte [ebp - 1], 0xa
je 0x416cb9
mov byte [esi], 0xd
jmp 0x416cb8
mov ecx, dword [ebp - 0x10]
mov ecx, dword [ecx*4 + 0x421f58]
mov al, byte [ecx + edi + 0x28]
test al, 0x40
jne 0x416cb5
or al, 2
mov byte [ecx + edi + 0x28], al
jmp 0x416cb9
mov byte [esi], 0x1a
inc esi
sub esi, ebx
pop edi
mov eax, esi
pop esi
pop ebx
leave
ret
Function at 0x416cc2
Capabilities:
Read file on windows

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x18
mov eax, dword [ebp + 8]
push ebx
push esi
mov esi, dword [ebp + 0xc]
mov ebx, eax
and eax, 0x3f
sar ebx, 6
push edi
imul edi, eax, 0x38
push 0xa
mov eax, dword [ebx*4 + 0x421f58]
pop edx
mov dword [ebp - 0x14], edx
mov ecx, dword [edi + eax + 0x18]
mov dword [ebp - 0x18], ecx
mov ecx, dword [ebp + 0x10]
test ecx, ecx
je 0x416d05
cmp word [esi], dx
jne 0x416d05
or byte [edi + eax + 0x28], 4
jmp 0x416d0a
and byte [edi + eax + 0x28], 0xfb
lea edx, [esi + ecx*2]
mov eax, esi
mov dword [ebp - 8], edx
mov dword [ebp - 4], eax
cmp eax, edx
jae 0x416e5d
mov dword [ebp - 0xc], 0xd
movzx ecx, word [eax]
mov edx, ecx
mov dword [ebp - 0x10], edx
push 0x1a
pop edx
cmp cx, dx
mov edx, dword [ebp - 8]
je 0x416e3d
add eax, 2
cmp cx, word [ebp - 0xc]
je 0x416d4c
mov dword [ebp - 4], eax
mov word [esi], cx
jmp 0x416d82
cmp eax, edx
jae 0x416d8e
movzx eax, word [eax]
xor ecx, ecx
cmp ax, word [ebp - 0x14]
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 - 8]
sete al
dec eax
and eax, 3
add eax, ecx
mov word [esi], ax
mov eax, dword [ebp - 4]
add esi, 2
cmp eax, edx
jb 0x416d24
jmp 0x416e5d
push 0
lea eax, [ebp - 0x14]
push eax
push 2
lea eax, [ebp - 4]
push eax
push dword [ebp - 0x18]
call dword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
je 0x416e39
cmp dword [ebp - 0x14], 0
je 0x416e39
mov eax, dword [ebx*4 + 0x421f58]
push 0xa
test byte [edi + eax + 0x28], 0x48
je 0x416e11
mov dx, word [ebp - 4]
lea eax, [esi + 2]
pop ecx
mov dword [ebp - 0x18], eax
cmp dx, cx
jne 0x416dda
mov word [esi], cx
jmp 0x416e0d
push 0xd
pop eax
mov word [esi], ax
mov eax, dword [ebx*4 + 0x421f58]
movzx ecx, dx
shr ecx, 8
push 0xa
mov byte [edi + eax + 0x2a], dl
mov eax, dword [ebx*4 + 0x421f58]
mov byte [edi + eax + 0x2b], cl
mov eax, dword [ebx*4 + 0x421f58]
pop ecx
mov byte [edi + eax + 0x2c], cl
mov eax, dword [ebp - 0x18]
mov esi, eax
jmp 0x416e5d
pop ebx
cmp word [ebp - 4], bx
jne 0x416e22
cmp esi, dword [ebp + 0xc]
jne 0x416e22
mov word [esi], bx
jmp 0x416e5a
push 1
push 0xffffffffffffffff
push 0xfffffffffffffffe
push dword [ebp + 8]
call fcn.00416ae6
add esp, 0x10
cmp word [ebp - 4], bx
je 0x416e5d
push 0xd
jmp 0x416e56
mov ecx, dword [ebx*4 + 0x421f58]
mov al, byte [ecx + edi + 0x28]
test al, 0x40
jne 0x416e54
or al, 2
mov byte [ecx + edi + 0x28], al
jmp 0x416e5d
push 0x1a
pop eax
mov word [esi], ax
add esi, 2
sub esi, dword [ebp + 0xc]
and esi, 0xfffffffe
pop edi
mov eax, esi
pop esi
pop ebx
leave
ret
Function at 0x4197f0
Capabilities:
Parse pe header

Disassembly:
push ebp
mov ebp, esp
mov eax, dword [ebp + 8]
mov ecx, 0x5a4d
cmp word [eax], cx
jne 0x41981d
mov ecx, dword [eax + 0x3c]
add ecx, eax
cmp dword [ecx], 0x4550
jne 0x41981d
mov edx, 0x10b
xor eax, eax
cmp word [ecx + 0x18], dx
sete al
pop ebp
ret
xor eax, eax
pop ebp
ret
Function at 0x414de4
Capabilities:
Encode data using xor

Disassembly:
xor dword [edx], edi
add edx, 4
sub ebx, 0xb0d39393
or eax, ecx
sub ebx, ecx
cmp edx, esi
jne fcn.00414de4
mov ecx, ebx
add eax, eax
inc eax
ret

Function at 0x401050
Capabilities:
Allocate or change rwx memory
Execute shellcode via indirect call
Read file on windows

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
sub esp, 0x34
mov eax, dword [section..data]
xor eax, esp
mov dword [esp + 0x30], eax
cmp dword [ebp + 8], 2
mov eax, dword [ebp + 0xc]
push ebx
push esi
push edi
je 0x40107f
push str.qingshuru
call fcn.00401010
jmp 0x401181
push 0x402154
push dword [eax + 4]
lea eax, [esp + 0x18]
mov dword [esp + 0x18], 0
push eax
call dword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll__wfopen_s]
mov eax, dword [esp + 0x1c]
add esp, 0xc
test eax, eax
je 0x401184
mov esi, dword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll_fseek]
push 2
push 0
push eax
call esi
add esp, 0xc
push dword [esp + 0x10]
call dword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll_ftell]
add esp, 4
mov ebx, eax
push 0
push 0
push dword [esp + 0x18]
call esi
add esp, 0xc
push ebx
call dword [sym.imp.api_ms_win_crt_heap_l1_1_0.dll_malloc]
add esp, 4
mov edi, eax
push dword [esp + 0x10]
push 1
push ebx
push edi
call dword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll_fread]
push dword [esp + 0x20]
call dword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll_fclose]
add esp, 0x14
test ebx, ebx
je 0x401176
push 0x40
push 0x3000
push ebx
push 0
call dword [sym.imp.KERNEL32.dll_VirtualAlloc]
push ebx
mov esi, eax
push edi
push esi
call sub.VCRUNTIME140.dll_memcpy
add esp, 0xc
mov dword [esp + 0x1c], 0
mov dword [esp + 0x30], 0
mov dword [esp + 0x38], 0
mov dword [esp + 0x14], 0x28
call dword [sym.imp.USER32.dll_GetForegroundWindow]
mov dword [esp + 0x18], eax
lea eax, [esp + 0x14]
push eax
mov dword [esp + 0x24], pe_nt_image_headers32
mov dword [esp + 0x28], str.test123
mov dword [esp + 0x2c], str.test123
mov dword [esp + 0x30], 0x10001
mov dword [esp + 0x38], esi
call dword [sym.imp.COMDLG32.dll_ReplaceTextW]
test edi, edi
je 0x401184
push edi
call dword [sym.imp.api_ms_win_crt_heap_l1_1_0.dll_free]
add esp, 4
mov ecx, dword [esp + 0x3c]
xor eax, eax
pop edi
pop esi
pop ebx
xor ecx, esp
call fcn.00401198
mov esp, ebp
pop ebp
ret

Function at 0x40199d
Capabilities:
Parse pe header

Disassembly:
push 0
call dword [sym.imp.KERNEL32.dll_GetModuleHandleW]
test eax, eax
je 0x4019dc
mov ecx, 0x5a4d
cmp word [eax], cx
jne 0x4019dc
mov ecx, dword [eax + 0x3c]
add ecx, eax
cmp dword [ecx], 0x4550
jne 0x4019dc
mov eax, 0x10b
cmp word [ecx + 0x18], ax
jne 0x4019dc
cmp dword [ecx + 0x74], 0xe
jbe 0x4019dc
cmp dword [ecx + 0xe8], 0
setne al
ret
xor al, al
ret
Function at 0x401e50
Capabilities:
Encode data using add xor sub operations
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
push ebx
push esi
push edi
sub esi, 0x67
sub edx, 0x19
mov eax, 0xaa
inc eax
inc esi
add ebx, 0x57
ror esi, 0x16
bswap ebx
not esi
bswap ebx
mov eax, 0xb4
ror eax, 0x83
inc edi
ror edx, 0
imul edx
not esi
imul edx
or esi, 0x27
rcl edx, 0x3d
not esi
dec edi
ror eax, 0x49
or eax, 0xf
neg edx
bswap edi
inc ebx
inc edx
neg ebx
inc eax
dec edx
imul ebx
not edi
mov edi, 0x16
not ebx
bswap ebx
bswap eax
rol eax, 0x1a
neg esi
dec eax
ror ebx, 0xe8
rol edx, 0x51
sub eax, 0x5b
and ebx, 0x4c
bswap eax
ror esi, 0xdc
rcl ebx, 0xaf
ror ebx, 0xef
rol eax, 0x78
imul edi
sbb eax, 0xa5
xor ecx, ecx
xor edi, edi
rcr edx, 0x18
bswap edi
neg eax
rcr eax, 0xa3
bswap edx
rol esi, 0x19
mov edi, 0x3c
sbb edx, 0x55
sbb ebx, 0x20
mov ebx, pe_nt_image_headers32
not eax
add edi, 0x23
sbb eax, 0x67
imul eax
rol edi, 0x88
sub edi, 0x5d
neg edi
bswap edi
mov edx, 0x57
sub eax, 6
rcr ebx, 0x78
add eax, 0x73
inc edi
dec ebx
inc edx
imul eax
ror ebx, 0xdc
not edx
sub edx, 0x31
rcr ebx, 0xa
imul esi
imul ebx
imul edx
rcr esi, 0x2d
not edi
neg eax
not esi
imul edi
bswap edi
dec edx
or eax, 0x62
rol esi, 1
imul edx
rol esi, 0x78
and esi, 0xfa
dec esi
dec edi
sub ebx, 0x4d
neg eax
mov esi, 0xa9
mov ecx, dword [ebp + 0xc]
not esi
sbb edi, 0x1e
not esi
bswap eax
rcr esi, 0x64
not edi
rcl edi, 0x30
and eax, 3
inc ebx
ror edx, 0x7a
inc edx
rol eax, 0xbb
sub ebx, 0xc5
or esi, 0xfc
and eax, 0xd3
dec esi
bswap ebx
neg ebx
dec ebx
imul eax
inc eax
sub esi, 0x26
neg esi
rcl eax, 0xfd
inc eax
rcl edx, 0xd1
neg esi
mov edx, 0xe
rol edi, 0xea
inc edx
or edx, 0x92
rcl ebx, 0xce
inc edi
or eax, 0xba
bswap ebx
neg eax
rcr edx, 0x32
sbb esi, 0xe2
neg esi
dec edi
mov edi, 0xb6
sbb edx, 0xcb
inc edx
ror edx, 0xbc
inc eax
bswap eax
dec eax
rol edi, 0xf4
inc eax
rcr edi, 0xe4
mov edi, dword [ebp + 8]
mov ebx, ebx
xor ebx, ebx
mov ebx, eax
not byte [edi]
xor esi, esi
mov esi, esi
mov esi, esi
mov esi, eax
xor esi, eax
xor eax, esi
mov eax, eax
xor esi, ebx
mov ebx, esi
add byte [edi], 0x87
xor ebx, ebx
mov eax, esi
mov esi, eax
mov esi, eax
mov esi, esi
mov ebx, esi
mov ebx, eax
mov eax, eax
mov ebx, ebx
sub byte [edi], 0x54
mov eax, esi
mov eax, esi
xor ebx, eax
xor eax, esi
mov eax, ebx
mov eax, esi
xor esi, ebx
mov eax, eax
mov eax, esi
imul byte [edi]
inc edi
loop 0x401fe7
pop edi
pop esi
pop ebx
pop ebp
ret

Function at 0x4077aa
Capabilities:
Terminate process

Disassembly:
cmp ecx, dword [0x435e94]
jne 0x4077b4
repz ret
jmp fcn.0040c185
Function at 0x40d98d
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.0040a74f
and dword [ebp - 4], 0
cmp dword [0x437414], 0
mov ebx, eax
jne 0x40da3e
push str.USER32.DLL
call dword [sym.imp.KERNEL32.dll_LoadLibraryA]
mov edi, eax
test edi, edi
je 0x40daef
mov esi, dword [sym.imp.KERNEL32.dll_GetProcAddress]
push str.MessageBoxA
push edi
call esi
test eax, eax
je 0x40daef
push eax
call fcn.0040a6dd
mov dword [esp], str.GetActiveWindow
push edi
mov dword [0x437414], eax
call esi
push eax
call fcn.0040a6dd
mov dword [esp], str.GetLastActivePopup
push edi
mov dword [0x437418], eax
call esi
push eax
call fcn.0040a6dd
mov dword [esp], str.GetUserObjectInformationA
push edi
mov dword [0x43741c], eax
call esi
push eax
call fcn.0040a6dd
pop ecx
mov dword [0x437424], eax
test eax, eax
je 0x40da3e
push str.GetProcessWindowStation
push edi
call esi
push eax
call fcn.0040a6dd
pop ecx
mov dword [0x437420], eax
mov eax, dword [0x437420]
cmp eax, ebx
je 0x40da96
cmp dword [0x437424], ebx
je 0x40da96
push eax
call fcn.0040a758
push dword [0x437424]
mov esi, eax
call fcn.0040a758
pop ecx
pop ecx
mov edi, eax
test esi, esi
je 0x40da96
test edi, edi
je 0x40da96
call esi
test eax, eax
je 0x40da8d
lea ecx, [ebp - 8]
push ecx
push 0xc
lea ecx, [ebp - 0x14]
push ecx
push 1
push eax
call edi
test eax, eax
je 0x40da8d
test byte [ebp - 0xc], 1
jne 0x40da96
or dword [ebp + 0x10], 0x200000
jmp 0x40dacf
mov eax, dword [0x437418]
cmp eax, ebx
je 0x40dacf
push eax
call fcn.0040a758
pop ecx
test eax, eax
je 0x40dacf
call eax
mov dword [ebp - 4], eax
test eax, eax
je 0x40dacf
mov eax, dword [0x43741c]
cmp eax, ebx
je 0x40dacf
push eax
call fcn.0040a758
pop ecx
test eax, eax
je 0x40dacf
push dword [ebp - 4]
call eax
mov dword [ebp - 4], eax
push dword [0x437414]
call fcn.0040a758
pop ecx
test eax, eax
je 0x40daef
push dword [ebp + 0x10]
push dword [ebp + 0xc]
push dword [ebp + 8]
push dword [ebp - 4]
call eax
jmp 0x40daf1
xor eax, eax
pop edi
pop esi
pop ebx
leave
ret
Function at 0x403cf0
Capabilities:
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x814
mov eax, dword [0x5487a0]
xor eax, ebp
mov dword [ebp - 4], eax
push esi
push edi
xor eax, eax
mov dword [ebp - 0x814], 0
push 0x7fe
push eax
mov word [ebp - 0x804], ax
mov edi, edx
lea eax, [ebp - 0x802]
mov esi, ecx
push eax
call fcn.004d33c0
add esp, 0xc
mov dword [ebp - 0x810], 0
cmp dword [edi + 0x14], 8
jb 0x403d43
mov edi, dword [edi]
lea eax, [ebp - 0x810]
push eax
push edi
push reloc.WS2_32.dll_accept
call dword [sym.imp.ADVAPI32.dll_RegCreateKeyW]
test eax, eax
jne 0x403d9e
mov dword [ebp - 0x808], eax
lea eax, [ebp - 0x80c]
push eax
lea eax, [ebp - 0x804]
mov dword [ebp - 0x80c], 0x800
push eax
lea eax, [ebp - 0x808]
push eax
push 0
push str.InstallDir
push dword [ebp - 0x810]
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
push dword [ebp - 0x810]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
xor eax, eax
mov dword [esi + 0x14], 7
mov dword [esi + 0x10], 0
mov word [esi], ax
cmp word [ebp - 0x804], ax
jne 0x403dbe
xor ecx, ecx
jmp 0x403dd6
lea ecx, [ebp - 0x804]
lea edx, [ecx + 2]
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x403dc7
sub ecx, edx
sar ecx, 1
push ecx
lea eax, [ebp - 0x804]
mov ecx, esi
push eax
call fcn.004026b0
mov ecx, dword [ebp - 4]
mov eax, esi
pop edi
xor ecx, ebp
pop esi
call fcn.004c8eb4
mov esp, ebp
pop ebp
ret
Function at 0x404250
Capabilities:
Check os version

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x503021
mov eax, dword fs:[0]
push eax
sub esp, 0x158
mov eax, dword [0x5487a0]
xor eax, ebp
mov dword [ebp - 0x14], eax
push ebx
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov ebx, ecx
mov esi, dword [ebp + 8]
lea eax, [ebp - 0x134]
mov edi, dword [sym.imp.KERNEL32.dll_GetVersionExW]
push eax
mov dword [ebp - 0x134], 0x11c
call edi
test eax, eax
jne 0x4042b3
lea eax, [ebp - 0x134]
mov dword [ebp - 0x134], 0x114
push eax
call edi
cmp dword [ebp - 0x130], 6
jb 0x4043a0
cmp dword [ebp - 0x12c], 2
jb 0x4043a0
push str.run_by_amdin
push 0x140
push str.CAppModel::runPlayer
call fcn.0042d8a0
add esp, 0xc
lea edx, [ebx + 0x188]
lea ecx, [ebp - 0x14c]
push 0x52df80
call fcn.00405de0
add esp, 4
mov dword [ebp - 4], 0
cmp dword [esi + 0x14], 8
jb 0x40430e
mov edx, dword [esi]
jmp 0x404310
mov edx, esi
sub esp, 8
mov ecx, eax
call fcn.004251f0
add esp, 8
mov dword [ebp - 4], 0xffffffff
cmp dword [ebp - 0x138], 8
mov edi, eax
jb 0x40433d
push dword [ebp - 0x14c]
call fcn.00473e80
add esp, 4
cmp edi, 0xffffffff
jne 0x4043e5
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
push str.run_by_amdin_error:__d
push 0x144
push str.CAppModel::runPlayer
call fcn.0042d8a0
push 0x52df80
lea edx, [ebx + 0x188]
lea ecx, [ebp - 0x14c]
call fcn.00405de0
add esp, 0x14
push 0
push 1
push esi
push eax
mov dword [ebp - 4], 1
call fcn.004349d0
add esp, 0x10
cmp dword [ebp - 0x138], 8
jb 0x4043e5
push dword [ebp - 0x14c]
jmp 0x4043dd
push 0x52df80
lea edx, [ebx + 0x188]
lea ecx, [ebp - 0x164]
call fcn.00405de0
add esp, 4
push 0
push 1
push esi
push eax
mov dword [ebp - 4], 2
call fcn.004349d0
add esp, 0x10
cmp dword [ebp - 0x150], 8
jb 0x4043e5
push dword [ebp - 0x164]
call fcn.00473e80
add esp, 4
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 0x14]
xor ecx, ebp
call fcn.004c8eb4
mov esp, ebp
pop ebp
ret 4
Function at 0x409980
Capabilities:
Access peb ldr_data

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
push 0xffffffffffffffff
push 0x503be8
mov eax, dword fs:[0]
push eax
sub esp, 0x14
mov eax, dword [0x5487a0]
xor eax, esp
mov dword [esp + 0xc], eax
push esi
push edi
mov eax, dword [0x5487a0]
xor eax, esp
push eax
lea eax, [esp + 0x20]
mov dword fs:[0], eax
mov esi, edx
mov edi, ecx
lea eax, [esp + 0x10]
mov dword [esp + 0xc], 0
xorps xmm0, xmm0
push eax
movq qword [esp + 0x14], xmm0
call fcn.004ca3c8
push 0x544c98
lea eax, [esp + 0x18]
mov dword [esp + 0x30], 0
push esi
push eax
call fcn.004ca396
lea eax, [esp + 0x20]
push eax
push edi
call fcn.004ca376
lea eax, [esp + 0x28]
mov dword [esp + 0x40], 0xffffffff
push eax
call fcn.004ca419
add esp, 0x1c
mov eax, edi
mov ecx, dword [esp + 0x20]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
mov ecx, dword [esp + 0xc]
xor ecx, esp
call fcn.004c8eb4
mov esp, ebp
pop ebp
ret
Function at 0x40c530
Capabilities:
Identify system language via api

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x503fce
mov eax, dword fs:[0]
push eax
sub esp, 0xa4
mov eax, dword [0x5487a0]
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 ebx, edx
mov esi, ecx
mov eax, dword [0x552e84]
mov dword [ebp - 0xac], 0
test al, 1
jne 0x40c6d1
or eax, 1
mov dword [0x552e84], eax
mov dword [ebp - 4], 0
lea eax, [ebp - 0x18]
lea ecx, [ebp - 0xa8]
mov dword [ebp - 0xa8], 0x12
push eax
xorps xmm0, xmm0
mov dword [ebp - 0xa4], str.ko_KR
push ecx
movq qword [0x552e88], xmm0
mov dword [ebp - 0xa0], 9
mov dword [ebp - 0x9c], str.en_US
mov dword [ebp - 0x98], 0x2a
mov dword [ebp - 0x94], str.vi_VN
mov dword [ebp - 0x90], 0x1e
mov dword [ebp - 0x8c], str.th_TH
mov dword [ebp - 0x88], 0x19
mov dword [ebp - 0x84], str.ru_RU
mov dword [ebp - 0x80], 0x22
mov dword [ebp - 0x7c], str.uk_UA
mov dword [ebp - 0x78], 0x16
mov dword [ebp - 0x74], str.pt_PT
mov dword [ebp - 0x70], 0x1f
mov dword [ebp - 0x6c], str.tr_TR
mov dword [ebp - 0x68], 0xa
mov dword [ebp - 0x64], str.es_ES
mov dword [ebp - 0x60], 0xc
mov dword [ebp - 0x5c], str.fr_FR
mov dword [ebp - 0x58], 7
mov dword [ebp - 0x54], str.de_DE
mov dword [ebp - 0x50], 0x11
mov dword [ebp - 0x4c], str.ja_JP
mov dword [ebp - 0x48], 0x21
mov dword [ebp - 0x44], str.in_ID
mov dword [ebp - 0x40], 1
mov dword [ebp - 0x3c], str.ar_IL
mov dword [ebp - 0x38], 0x29
mov dword [ebp - 0x34], str.fa_IR
mov dword [ebp - 0x30], 0x39
mov dword [ebp - 0x2c], str.hi_IN
mov dword [ebp - 0x28], 0x10
mov dword [ebp - 0x24], str.it_IT
mov dword [ebp - 0x20], 0x3e
mov dword [ebp - 0x1c], str.ms_MY
call fcn.0040d140
push 0x50ae70
call fcn.004c96fc
add esp, 4
mov dword [ebp - 4], 0xffffffff
call dword [sym.imp.KERNEL32.dll_GetUserDefaultUILanguage]
movzx eax, ax
mov ecx, eax
and ecx, 0x3ff
cmp cx, 4
jne 0x40c744
mov ecx, 0xc04
cmp ax, cx
je 0x40c721
mov ecx, 0x1404
cmp ax, cx
je 0x40c721
mov ecx, 0x404
cmp ax, cx
je 0x40c721
mov ecx, 0x7c04
cmp ax, cx
je 0x40c721
push str.zh_TW
mov ecx, esi
call fcn.004027e0
jmp 0x40c7ab
push 5
xor eax, eax
mov dword [esi + 0x14], 7
mov dword [esi + 0x10], 0
mov ecx, esi
push str.zh_TW
mov word [esi], ax
call fcn.004026b0
jmp 0x40c7ab
mov edi, dword [0x552e88]
mov edx, ecx
mov ecx, edi
mov eax, dword [edi + 4]
cmp byte [eax + 0xd], 0
jne 0x40c777
cmp dword [eax + 0x10], edx
jge 0x40c761
mov eax, dword [eax + 8]
jmp 0x40c765
mov ecx, eax
mov eax, dword [eax]
cmp byte [eax + 0xd], 0
je 0x40c757
cmp ecx, edi
je 0x40c777
mov dword [ebp - 0x14], ecx
cmp edx, dword [ecx + 0x10]
jge 0x40c77a
mov dword [ebp - 0x14], edi
lea eax, [ebp - 0x14]
mov ecx, esi
mov eax, dword [eax]
cmp eax, edi
je 0x40c78f
push dword [eax + 0x14]
call fcn.004027e0
jmp 0x40c7ab
xor eax, eax
mov dword [esi + 0x14], 7
push 0xffffffffffffffff
push eax
mov dword [esi + 0x10], 0
push ebx
mov word [esi], ax
call fcn.00402320
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.004c8eb4
mov esp, ebp
pop ebp
ret
Function at 0x40fa90
Capabilities:
Initialize winsock library

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff0
sub esp, 0x1e8
mov eax, dword [0x5487a0]
xor eax, esp
mov dword [esp + 0x1e4], eax
mov eax, dword [ebp + 8]
push esi
push edi
mov dword [esp + 0x10], eax
mov eax, dword [ebp + 0x10]
push 0
mov dword [esp + 0x10], eax
call dword [sym.imp.ole32.dll_CoInitialize]
test eax, eax
js 0x40fc1b
lea eax, [esp + 0x58]
push eax
push 0x202
call dword [sym.imp.WS2_32.dll_WSAStartup]
lea eax, [esp + 0x18]
push eax
call fcn.00431a90
add esp, 4
lea ecx, [esp + 0x18]
push 0xe
push str.czdownloader_
call fcn.0040ad80
lea eax, [esp + 0x18]
push eax
call fcn.00431960
add esp, 4
test al, al
jne 0x40fb15
lea eax, [esp + 0x18]
push eax
call fcn.00431980
add esp, 4
push 7
push str.log.txt
lea ecx, [esp + 0x20]
call fcn.0040ad80
call fcn.0042d940
sub esp, 0x18
lea esi, [esp + 0x30]
mov edi, esp
lea edx, [esp + 0x30]
xor eax, eax
mov ecx, edi
mov dword [edi + 0x14], 7
mov dword [edi + 0x10], 0
mov word [edi], ax
cmp dword [esp + 0x44], 8
mov eax, dword [esp + 0x40]
cmovae esi, dword [esp + 0x30]
cmovae edx, dword [esp + 0x30]
lea eax, [esi + eax*2]
push eax
push edx
call fcn.0040fc40
call fcn.0042d960
push str._r_n_r_n_start_
push 0x25
push str.wWinMain
call fcn.0042d8a0
add esp, 0x24
mov dword [esp + 0x40], 0
xorps xmm0, xmm0
lea ecx, [esp + 0x34]
movdqa xmmword [esp + 0x30], xmm0
mov dword [esp + 0x30], vtable.CAppImpl.0
call fcn.0042bf00
push dword [esp + 0xc]
lea ecx, [esp + 0x34]
mov dword [esp + 0x44], 0
push dword [esp + 0x14]
call fcn.00401e50
call fcn.004491d0
mov ecx, dword [esp + 0x40]
push 1
push 0
call fcn.0044ddd0
push dword [0x552d60]
mov byte [0x552dac], 1
call dword [sym.imp.KERNEL32.dll_SetEvent]
push 0xbb8
mov ecx, 0x552d38
call fcn.004312a0
mov byte [0x552d28], 1
call fcn.0048c740
call fcn.00426380
call dword [sym.imp.ole32.dll_CoUninitialize]
cmp dword [esp + 0x2c], 8
jb 0x40fc1b
push dword [esp + 0x18]
call fcn.00473e80
add esp, 4
mov ecx, dword [esp + 0x1ec]
xor eax, eax
pop edi
pop esi
xor ecx, esp
call fcn.004c8eb4
mov esp, ebp
pop ebp
ret 0x10

Function at 0x410910
Capabilities:
Hide graphical window

Disassembly:
push esi
mov esi, ecx
mov dword [0x5529c0], 0
push 1
push dword [esi + 4]
call dword [sym.imp.USER32.dll_EnableWindow]
push dword [esi + 4]
call dword [sym.imp.USER32.dll_BringWindowToTop]
push 5
push dword [esi + 4]
call dword [sym.imp.USER32.dll_ShowWindow]
pop esi
ret
Function at 0x4173d0
Capabilities:
Access peb ldr_data

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x504d9a
mov eax, dword fs:[0]
push eax
sub esp, 0x18
mov eax, dword [0x5487a0]
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.004c83d8
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 0x417476
lea eax, [ebp - 0x14]
mov dword [ebp - 0x14], str.bad_locale_name
push eax
lea ecx, [ebp - 0x24]
call fcn.004cdf1d
push 0x544d24
lea eax, [ebp - 0x24]
mov dword [ebp - 0x24], vtable.std::runtime_error.0
push eax
call fcn.004d291d
push edi
push esi
call fcn.004c82ab
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.004c8eb4
mov esp, ebp
pop ebp
ret 4