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

Disassembly:
mov eax, dword fs:[0]
push 0xffffffffffffffff
push 0x5fdfa8
push eax
mov al, byte [0x1ad1978]
mov dword fs:[0], esp
sub esp, 0x14
test al, 1
push ebp
push esi
push edi
mov esi, ecx
jne 0x57b53e
mov dl, al
push 0x57b770
or dl, 1
mov byte [0x1ad1978], dl
call fcn.004af29a
add esp, 4
mov al, byte [0x1ad1978]
test al, 2
jne 0x57b55f
mov dl, al
push 0x57b760
or dl, 2
mov byte [0x1ad1978], dl
call fcn.004af29a
add esp, 4
mov eax, dword [0x1a73e58]
mov dword [esp + 0xc], eax
mov ecx, dword [0x1ad1968]
mov eax, dword [0x1ad1970]
test ecx, ecx
mov dword [esp + 0x28], 0
jne 0x57b5f9
test eax, eax
jne 0x57b5f9
mov edx, dword [0x1ad196c]
test edx, edx
jne 0x57b5f9
mov edx, dword [0x1ad1974]
test edx, edx
jne 0x57b5f9
mov ecx, dword [esp + 0x30]
push ecx
mov ecx, esi
call fcn.005c9d2c
mov edx, dword [esi + 0x1c]
mov ebp, dword [sym.imp.USER32.dll_GetWindowRect]
push 0x1ad1968
push edx
mov edi, eax
call ebp
mov ecx, dword [edi + 0x1c]
lea eax, [esp + 0x10]
push eax
push ecx
call ebp
mov edx, dword [0x1ad196c]
mov ecx, dword [0x1ad1968]
mov eax, dword [0x1ad1970]
mov dword [0x1ad195c], edx
mov edx, dword [0x1ad1974]
mov dword [0x1ad1958], ecx
mov dword [0x1ad1964], edx
mov edx, dword [esp + 0x14]
mov dword [0x1ad1960], eax
mov dword [0x1ad1964], edx
mov edx, dword [esp + 0x34]
push 6
test edx, edx
je 0x57b68b
mov edx, dword [0x1ad1974]
mov ebp, dword [0x1ad196c]
sub edx, ebp
sub eax, ecx
push edx
push eax
push 0
push 0
push 0x1ad0d60
mov ecx, esi
call fcn.005ca00d
push 0xa240
lea ecx, [esp + 0x10]
call fcn.005cb96c
lea eax, [esp + 0xc]
lea ecx, [esp + 0x34]
push eax
push 0x1a7afe8
push ecx
call fcn.005c517d
push 0x1a7afe4
lea edx, [esp + 0x34]
push eax
push edx
mov byte [esp + 0x34], 1
call fcn.005c5109
push eax
lea ecx, [esp + 0x10]
mov byte [esp + 0x2c], 2
call fcn.005c4fad
lea ecx, [esp + 0x30]
mov byte [esp + 0x28], 1
call fcn.005c4e74
mov byte [esp + 0x28], 0
lea ecx, [esp + 0x34]
jmp 0x57b714
mov eax, dword [0x1ad1964]
mov edi, dword [0x1ad195c]
mov ecx, dword [0x1ad1958]
sub eax, edi
push eax
mov eax, dword [0x1ad1960]
sub eax, ecx
mov ecx, esi
push eax
push 0
push 0
push 0x1ad0d60
call fcn.005ca00d
push 0xa240
lea ecx, [esp + 0x10]
call fcn.005cb96c
lea eax, [esp + 0xc]
lea ecx, [esp + 0x34]
push eax
push 0x1a7afe8
push ecx
call fcn.005c517d
push 0x1a7afe0
lea edx, [esp + 0x34]
push eax
push edx
mov byte [esp + 0x34], 3
call fcn.005c5109
push eax
lea ecx, [esp + 0x10]
mov byte [esp + 0x2c], 4
call fcn.005c4fad
lea ecx, [esp + 0x30]
mov byte [esp + 0x28], 3
call fcn.005c4e74
mov byte [esp + 0x28], 0
lea ecx, [esp + 0x34]
call fcn.005c4e74
mov ecx, esi
call fcn.005a83a0
mov eax, dword [esp + 0xc]
mov ecx, esi
push eax
push 3
call fcn.005c9deb
lea ecx, [esp + 0xc]
mov dword [esp + 0x28], 0xffffffff
call fcn.005c4e74
mov ecx, dword [esp + 0x20]
pop edi
pop esi
pop ebp
mov dword fs:[0], ecx
add esp, 0x20
ret 8
Function at 0x582930
Capabilities:
Access peb ldr_data

Disassembly:
push 0xffffffffffffffff
push 0x5fe6d8
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x14
push ebx
mov ebx, dword [esp + 0x2c]
push esi
push edi
mov edi, dword [esp + 0x30]
mov esi, ecx
push edi
lea ecx, [esp + 0x10]
mov dword [esi], 0x1a20b14
mov dword [0x1ad1980], ebx
call fcn.005ccee9
mov eax, dword [edi + 0x1a4]
push ebx
mov dword [esi + 4], eax
mov edi, dword [edi + 0x1a0]
lea eax, [esp + 0x10]
mov ecx, esi
push eax
mov dword [esp + 0x30], 0
mov dword [esi + 8], edi
call fcn.00582a70
lea ecx, [esp + 0xc]
mov dword [esp + 0x28], 0xffffffff
call fcn.005ccf5b
mov ecx, dword [esp + 0x20]
mov eax, esi
pop edi
pop esi
pop ebx
mov dword fs:[0], ecx
add esp, 0x20
ret 8

Function at 0x583230
Capabilities:
Access peb ldr_data
Get process heap flags

Disassembly:
push 0xffffffffffffffff
push 0x5fe7b8
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x18
push ebx
push ebp
push esi
mov esi, dword [esp + 0x38]
lea ecx, [esp + 0x14]
push edi
mov eax, dword [esi]
lea edx, [esp + 0x14]
xor ebx, ebx
push ecx
push edx
mov ecx, esi
mov dword [esp + 0x20], ebx
call dword [eax + 0x14c]
lea eax, [esp + 0x14]
lea ecx, [esp + 0x10]
push eax
mov dword [esp + 0x34], ebx
call fcn.005c4be9
mov eax, dword [esp + 0x10]
mov byte [esp + 0x30], 1
cmp byte [eax], 0x40
jne 0x5832be
mov eax, dword [eax - 8]
lea ecx, [esp + 0x1c]
dec eax
push eax
push ecx
lea ecx, [esp + 0x18]
call fcn.005c0c97
push eax
lea ecx, [esp + 0x14]
mov byte [esp + 0x34], 2
call fcn.005c4fad
lea ecx, [esp + 0x1c]
mov byte [esp + 0x30], 1
call fcn.005c4e74
mov eax, dword [esp + 0x10]
mov al, byte [eax]
cmp al, 0x20
jle 0x5832c8
mov byte [esp + 0x3c], al
mov edx, dword [esi]
mov ecx, esi
call dword [edx + 0x130]
mov ebp, eax
mov eax, dword [esi]
mov ecx, esi
call dword [eax + 0x134]
mov edx, dword [esi]
mov ecx, esi
mov dword [esp + 0x24], eax
call dword [edx + 0x164]
test eax, eax
mov eax, dword [esi]
mov ecx, esi
setne byte [esp + 0x3c]
call dword [eax + 0x148]
mov edx, dword [esp + 0x38]
mov cl, byte [esp + 0x3c]
mov edi, dword [esp + 0x14]
mov dword [esp + 0x20], eax
mov byte [edx + 0x14], cl
or ecx, 0xffffffff
xor eax, eax
mov dword [edx + 8], ebx
mov dword [edx + 0xc], ebx
mov byte [edx + 0x15], bl
mov byte [edx + 0x16], bl
mov byte [edx + 0x17], 1
mov byte [edx + 0x18], bl
mov byte [edx + 0x19], bl
mov byte [edx + 0x1a], bl
mov byte [edx + 0x1b], bl
repne scasb al, byte es:[edi]
not ecx
lea esi, [edx + 0x1c]
sub edi, ecx
mov eax, ecx
mov dword [esp + 0x3c], esi
mov esi, edi
mov edi, dword [esp + 0x3c]
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, eax
mov eax, dword [esp + 0x24]
and ecx, 3
mov byte [esp + 0x30], bl
rep movsb byte es:[edi], byte [esi]
mov ecx, dword [esp + 0x20]
mov dword [edx], ebp
mov dword [edx + 4], ecx
lea ecx, [esp + 0x10]
mov dword [edx + 0x10], eax
call fcn.005c4e74
lea ecx, [esp + 0x14]
mov dword [esp + 0x30], 0xffffffff
call fcn.005c4e74
mov ecx, dword [esp + 0x28]
pop edi
pop esi
pop ebp
pop ebx
mov dword fs:[0], ecx
add esp, 0x24
ret 8
Function at 0x5833a0
Capabilities:
Query or enumerate registry value

Disassembly:
mov ecx, dword [esp + 8]
mov edx, dword [esp + 4]
sub esp, 0x10c
lea eax, [esp]
push esi
push eax
push 1
push 0
push ecx
push edx
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
mov esi, eax
test esi, esi
jne 0x583402
mov edx, dword [esp + 4]
lea eax, [esp + 8]
lea ecx, [esp + 0xc]
push eax
push ecx
push esi
push edx
mov dword [esp + 0x18], 0x104
call dword [sym.imp.ADVAPI32.dll_RegQueryValueA]
mov ecx, dword [esp + 0x11c]
lea eax, [esp + 0xc]
push eax
push ecx
call dword [sym.imp.KERNEL32.dll_lstrcpyA]
mov edx, dword [esp + 4]
push edx
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov eax, esi
pop esi
add esp, 0x10c
ret

Function at 0x583410
Capabilities:
Create process on windows

Disassembly:
mov eax, dword [esp + 4]
sub esp, 0x208
push esi
push edi
push 5
push 0
push 0
push eax
push str.open
push 0
call dword [sym.imp.SHELL32.dll_ShellExecuteA]
mov esi, eax
cmp esi, 0x20
ja 0x5834ed
lea ecx, [esp + 8]
push ecx
push str..htm
push accept
call fcn.005833a0
add esp, 0xc
test eax, eax
jne 0x5834ed
mov edi, dword [sym.imp.KERNEL32.dll_lstrcatA]
lea edx, [esp + 8]
push str._shellopencommand
push edx
call edi
lea eax, [esp + 8]
lea ecx, [esp + 8]
push eax
push ecx
push accept
call fcn.005833a0
add esp, 0xc
test eax, eax
jne 0x5834ed
lea edx, [esp + 8]
push str.__1_
push edx
call fcn.004af7a0
mov esi, eax
add esp, 8
test esi, esi
jne 0x5834c8
lea eax, [esp + 8]
push 0x1a78594
push eax
call fcn.004af720
mov esi, eax
add esp, 8
test esi, esi
jne 0x5834c8
lea ecx, [esp + 8]
push ecx
call dword [sym.imp.KERNEL32.dll_lstrlenA]
lea esi, [esp + eax + 7]
jmp 0x5834cb
mov byte [esi], 0
push 0x1a77e7c
push esi
call edi
mov edx, dword [esp + 0x214]
push edx
push esi
call edi
lea eax, [esp + 8]
push 5
push eax
call dword [sym.imp.KERNEL32.dll_WinExec]
mov esi, eax
lea ecx, [esp + 0x214]
call fcn.005c4e74
mov eax, esi
pop edi
pop esi
add esp, 0x208
ret
Function at 0x589ff0
Capabilities:
Log keystrokes via application hook

Disassembly:
mov eax, dword fs:[0]
push 0xffffffffffffffff
push 0x5ff09a
push eax
mov dword fs:[0], esp
mov eax, 0x1ad2c78
sub esp, 0x40
test eax, eax
je 0x58a01a
mov eax, dword [0x1ad2c7c]
test eax, eax
jne 0x58a085
lea ecx, [esp + 4]
push esi
push ecx
push 0x3c
push 0xc
call dword [sym.imp.GDI32.dll_GetStockObject]
push eax
call dword [sym.imp.GDI32.dll_GetObjectA]
lea edx, [esp + 8]
push edx
call dword [sym.imp.GDI32.dll_CreateFontIndirectA]
push eax
mov ecx, 0x1ad2c78
call fcn.005cd191
push 8
call fcn.005c4bb5
mov esi, eax
add esp, 4
mov dword [esp + 4], esi
test esi, esi
mov dword [esp + 0x4c], 0
je 0x58a075
push 0x18
call dword [sym.imp.USER32.dll_GetSysColor]
push eax
mov ecx, esi
call fcn.005cd24e
jmp 0x58a077
xor eax, eax
mov dword [esp + 0x4c], 0xffffffff
mov dword [0x1ad2c90], eax
pop esi
call fcn.00589f50
mov eax, dword [0x1ad2c94]
test eax, eax
jne 0x58a0ae
call dword [sym.imp.KERNEL32.dll_GetCurrentThreadId]
push eax
push 0
push 0x58a0c0
push 2
call dword [sym.imp.USER32.dll_SetWindowsHookExA]
mov dword [0x1ad2c94], eax
mov ecx, dword [esp + 0x40]
mov dword fs:[0], ecx
add esp, 0x4c
ret
Function at 0x5934d0
Capabilities:
Query or enumerate registry value

Disassembly:
sub esp, 0x8c
lea eax, [esp]
push esi
push eax
push 1
push 0
push str.Control_PanelDesktop
push reloc.WS2_32.dll_accept
mov esi, 3
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
test eax, eax
jne 0x593543
lea ecx, [esp + 8]
lea edx, [esp + 0x10]
push ecx
mov ecx, dword [esp + 8]
lea eax, [esp + 0x10]
push edx
push eax
push 0
push str.WheelScrollLines
push ecx
mov dword [esp + 0x20], 0x80
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
test eax, eax
jne 0x593538
push 0xa
lea edx, [esp + 0x14]
push eax
push edx
call fcn.004b29f6
add esp, 0xc
mov esi, eax
mov eax, dword [esp + 4]
push eax
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov eax, esi
pop esi
add esp, 0x8c
ret
Function at 0x59df00
Capabilities:
Read .ini file

Disassembly:
mov eax, dword fs:[0]
push 0xffffffffffffffff
push 0x60058c
push eax
mov dword fs:[0], esp
sub esp, 0x414
push ebx
mov ebx, dword [sym.imp.USER32.dll_SendMessageA]
push ebp
push esi
mov ebp, ecx
push edi
push 0
push 0
mov eax, dword [ebp + 0xb4]
push 0x184
push eax
call ebx
mov ecx, dword [ebp + 0x78]
push 0
push 0
push 0x188
push ecx
call ebx
test eax, eax
jl 0x59e09e
mov edx, dword [0x1a73e58]
mov dword [esp + 0x10], edx
lea ecx, [esp + 0x10]
mov dword [esp + 0x42c], 0
push ecx
push eax
lea ecx, [ebp + 0x5c]
call fcn.005d5193
mov edx, dword [esp + 0x10]
mov eax, dword [edx - 8]
test eax, eax
je 0x59e08a
push str.MenuData.ini
lea eax, [esp + 0x18]
push 0x1ad1600
push eax
call fcn.005c5109
mov eax, dword [eax]
mov edx, dword [esp + 0x10]
push eax
lea ecx, [esp + 0x28]
push 0x400
push ecx
push 0x1a106b0
push edx
push str.MenuData
call dword [sym.imp.KERNEL32.dll_GetPrivateProfileStringA]
lea ecx, [esp + 0x14]
call fcn.005c4e74
lea eax, [esp + 0x24]
lea ecx, [esp + 0x18]
push eax
call fcn.005c4ee2
mov ecx, dword [0x1a73e58]
mov dword [esp + 0x1c], ecx
push ecx
lea edx, [esp + 0x1c]
mov ecx, esp
mov dword [esp + 0x18], esp
push edx
mov byte [esp + 0x434], 2
call fcn.005c4be9
call fcn.00543bb0
mov edi, eax
mov esi, 1
add esp, 4
cmp edi, esi
jle 0x59e068
push esi
push ecx
lea eax, [esp + 0x20]
mov ecx, esp
mov dword [esp + 0x28], esp
push eax
call fcn.005c4be9
lea ecx, [esp + 0x1c]
push ecx
call fcn.00543280
add esp, 0xc
push eax
lea ecx, [esp + 0x20]
mov byte [esp + 0x430], 3
call fcn.005c4fad
lea ecx, [esp + 0x14]
mov byte [esp + 0x42c], 2
call fcn.005c4e74
mov eax, dword [esp + 0x1c]
mov ecx, dword [eax - 8]
test ecx, ecx
je 0x59e068
mov edx, dword [ebp + 0xb4]
push eax
push 0
push 0x180
push edx
call ebx
inc esi
cmp esi, edi
jl 0x59e005
lea ecx, [esp + 0x1c]
mov byte [esp + 0x42c], 1
call fcn.005c4e74
lea ecx, [esp + 0x18]
mov byte [esp + 0x42c], 0
call fcn.005c4e74
lea ecx, [esp + 0x10]
mov dword [esp + 0x42c], 0xffffffff
call fcn.005c4e74
mov ecx, dword [esp + 0x424]
pop edi
pop esi
pop ebp
mov dword fs:[0], ecx
pop ebx
add esp, 0x420
ret
Function at 0x5a5000
Capabilities:
Access peb ldr_data
Get ntdll base address
Get process heap flags

Disassembly:
push 0xffffffffffffffff
push 0x600eb8
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x14
push esi
mov esi, ecx
push edi
mov dword [esp + 8], esi
lea edi, [esi + 0xc]
mov dword [esp + 0x24], 0
mov ecx, edi
call fcn.004e1f70
mov eax, dword [esp + 0x2c]
mov ecx, dword [esp + 0x30]
mov dword [esi + 4], eax
lea edx, [esp + 0x34]
lea eax, [esp + 0xc]
mov dword [esi + 8], ecx
push edx
push eax
mov ecx, edi
mov dword [esi], 0x1a23760
call fcn.004e1f90
mov ecx, dword [esp + 0x40]
mov eax, esi
mov dword [esi + 0x18], ecx
mov ecx, dword [esp + 0x1c]
pop edi
pop esi
mov dword fs:[0], ecx
add esp, 0x20
ret 0x18
Function at 0x5aaf10
Capabilities:
Get number of processors

Disassembly:
push 0xffffffffffffffff
push 0x6017a0
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x10
push ebx
push ebp
push esi
push edi
mov ebp, ecx
xor ebx, ebx
lea ecx, [esp + 0x10]
mov dword [esp + 0x28], ebx
call fcn.005c55a1
mov eax, dword [esp + 0x30]
push ebx
push ebx
push eax
lea ecx, [esp + 0x1c]
mov byte [esp + 0x34], 1
call fcn.005c5753
test eax, eax
jne 0x5aaf7e
lea ecx, [esp + 0x10]
mov byte [esp + 0x28], bl
call fcn.005c5696
lea ecx, [esp + 0x30]
mov dword [esp + 0x28], 0xffffffff
call fcn.005c4e74
mov eax, 0x65
jmp 0x5ab02e
lea ecx, [esp + 0x10]
call fcn.005c5a4d
mov edi, eax
cmp edi, ebx
jne 0x5aafb2
lea ecx, [esp + 0x10]
mov byte [esp + 0x28], bl
call fcn.005c5696
lea ecx, [esp + 0x30]
mov dword [esp + 0x28], 0xffffffff
call fcn.005c4e74
mov eax, 0x66
jmp 0x5ab02e
push edi
call fcn.005c4bb5
mov esi, eax
add esp, 4
cmp esi, ebx
jne 0x5aafe6
lea ecx, [esp + 0x10]
mov byte [esp + 0x28], bl
call fcn.005c5696
lea ecx, [esp + 0x30]
mov dword [esp + 0x28], 0xffffffff
call fcn.005c4e74
mov eax, 0x64
jmp 0x5ab02e
push edi
push esi
lea ecx, [esp + 0x18]
call fcn.005c5870
lea ecx, [esp + 0x10]
call fcn.005c596e
push edi
push esi
mov ecx, ebp
call fcn.005aad00
push esi
mov edi, eax
call fcn.005c4bde
add esp, 4
lea ecx, [esp + 0x10]
mov byte [esp + 0x28], bl
call fcn.005c5696
lea ecx, [esp + 0x30]
mov dword [esp + 0x28], 0xffffffff
call fcn.005c4e74
mov eax, edi
mov ecx, dword [esp + 0x20]
pop edi
pop esi
pop ebp
pop ebx
mov dword fs:[0], ecx
add esp, 0x1c
ret 4
Function at 0x5c62be
Capabilities:
Extract resource via kernel32 functions

Disassembly:
push ebx
mov ebx, dword [esp + 8]
push esi
mov eax, ebx
push edi
mov edi, ecx
shr eax, 0x10
test ax, ax
mov dword [edi + 0x40], ebx
jne 0x5c62e0
cmp dword [edi + 0x3c], 0
jne 0x5c62e0
movzx eax, bx
mov dword [edi + 0x3c], eax
call fcn.005db776
mov esi, dword [eax + 0xc]
push 5
push ebx
push esi
call dword [sym.imp.KERNEL32.dll_FindResourceA]
push eax
push esi
call dword [sym.imp.KERNEL32.dll_LoadResource]
push esi
mov ecx, edi
push dword [esp + 0x18]
push eax
call fcn.005c630d
pop edi
pop esi
pop ebx
ret 8

Function at 0x5c635b
Capabilities:
Extract resource via kernel32 functions

Disassembly:
push ebx
push esi
push edi
mov ebx, ecx
xor edi, edi
call fcn.005db776
mov esi, dword [eax + 0xc]
push 5
push dword [esp + 0x14]
push esi
call dword [sym.imp.KERNEL32.dll_FindResourceA]
push eax
push esi
call dword [sym.imp.KERNEL32.dll_LoadResource]
test eax, eax
je 0x5c638c
push eax
call dword [sym.imp.KERNEL32.dll_LockResource]
mov edi, eax
push esi
mov ecx, ebx
push dword [esp + 0x18]
push edi
call fcn.005c639f
pop edi
pop esi
pop ebx
ret 8

Function at 0x5c79b5
Capabilities:
Get graphical window text

Disassembly:
push esi
mov esi, ecx
mov ecx, dword [esi + 0x38]
test ecx, ecx
jne 0x5c79ed
push dword [esi + 0x1c]
call dword [sym.imp.USER32.dll_GetWindowTextLengthA]
lea ecx, [eax + 1]
push ecx
mov ecx, dword [esp + 0xc]
push eax
call fcn.005c531b
push eax
push dword [esi + 0x1c]
call dword [sym.imp.USER32.dll_GetWindowTextA]
mov ecx, dword [esp + 8]
push 0xffffffffffffffff
call fcn.005c52f3
jmp 0x5c79f9
mov eax, dword [ecx]
push dword [esp + 8]
call dword [eax + 0x88]
pop esi
ret 4

Function at 0x5c9551
Capabilities:
Extract resource via kernel32 functions

Disassembly:
push ebx
push esi
push edi
xor edi, edi
cmp dword [esp + 0x10], edi
mov ebx, ecx
je 0x5c9593
call fcn.005db776
mov esi, dword [eax + 0xc]
push 0xf0
push dword [esp + 0x14]
push esi
call dword [sym.imp.KERNEL32.dll_FindResourceA]
cmp eax, edi
je 0x5c9593
push eax
push esi
call dword [sym.imp.KERNEL32.dll_LoadResource]
cmp eax, edi
jne 0x5c958a
xor eax, eax
jmp 0x5c959b
push eax
call dword [sym.imp.KERNEL32.dll_LockResource]
mov edi, eax
push edi
mov ecx, ebx
call fcn.005c95a1
pop edi
pop esi
pop ebx
ret 4

Function at 0x5d9f32
Capabilities:
Create http request

Disassembly:
mov eax, 0x602874
call fcn.004b1478
push ecx
push esi
mov esi, ecx
mov dword [ebp - 0x10], esi
mov eax, dword [ebp + 0xc]
and dword [ebp - 4], 0
and dword [esi + 0x10], 0
and dword [esi + 0xc], 0
mov dword [esi + 4], eax
mov eax, dword [ebp + 8]
test eax, eax
mov dword [esi], vtable.CInternetSession.0
jne 0x5d9f6a
call fcn.005db776
mov eax, dword [eax + 0x10]
push dword [ebp + 0x1c]
push dword [ebp + 0x18]
push dword [ebp + 0x14]
push dword [ebp + 0x10]
push eax
call dword [sym.imp.WININET.dll_InternetOpenA]
test eax, eax
mov dword [esi + 8], eax
jne 0x5d9f8f
push eax
push dword [esi + 4]
call fcn.005dadc1
jmp 0x5d9f9b
push esi
push eax
mov ecx, 0x1ad2e10
call fcn.005d9fac
mov ecx, dword [ebp - 0xc]
mov eax, esi
pop esi
mov dword fs:[0], ecx
leave
ret 0x18
Function at 0x5da2a8
Capabilities:
Access peb ldr_data
Get kernel32 base address
Get process heap flags

Disassembly:
mov eax, 0x6028e7
call fcn.004b1478
push ecx
push ebx
push esi
mov esi, ecx
push edi
mov dword [ebp - 0x10], esi
call fcn.005cbef6
mov eax, dword [ebp + 0x18]
lea ebx, [esi + 0x24]
mov dword [esi + 0x1c], eax
mov eax, dword [0x1a73e58]
xor edi, edi
mov dword [ebx], eax
mov dword [ebp - 4], edi
push dword [ebp + 0x10]
lea ecx, [esi + 0xc]
mov byte [ebp - 4], 1
mov dword [esi], vtable.CInternetFile.0
call fcn.005c4ffd
push dword [ebp + 0x14]
mov ecx, ebx
call fcn.005c4ffd
mov eax, dword [ebp + 8]
mov ecx, dword [ebp - 0xc]
mov dword [esi + 0x14], eax
mov eax, dword [ebp + 0x1c]
mov dword [esi + 0x18], eax
mov dword [esi + 0x3c], edi
mov dword [esi + 0x30], edi
mov dword [esi + 0x34], edi
mov dword [esi + 0x38], edi
mov dword [esi + 0x28], edi
mov dword [esi + 0x2c], edi
mov dword [esi + 0x40], edi
mov eax, esi
pop edi
pop esi
pop ebx
mov dword fs:[0], ecx
leave
ret 0x18

Function at 0x5dbca5
Capabilities:
Get thread local storage value

Disassembly:
push ebx
push esi
mov esi, ecx
lea ebx, [esi + 0x1c]
push ebx
call dword [sym.imp.KERNEL32.dll_EnterCriticalSection]
cmp dword [esp + 0x10], 0
jne 0x5dbcd3
push dword [esi]
call dword [sym.imp.KERNEL32.dll_TlsGetValue]
test eax, eax
je 0x5dbcf1
push dword [esp + 0xc]
mov ecx, esi
push eax
call fcn.005dbc0b
jmp 0x5dbcf1
mov eax, dword [esi + 0x14]
test eax, eax
je 0x5dbcf1
push edi
push dword [esp + 0x10]
mov edi, dword [eax + 4]
mov ecx, esi
push eax
call fcn.005dbc0b
test edi, edi
mov eax, edi
jne 0x5dbcdb
pop edi
push ebx
call dword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
pop esi
pop ebx
ret 8
Function at 0x406fe0
Capabilities:
Set registry value

Disassembly:
push 0xffffffffffffffff
push 0x455e28
mov eax, dword fs:[0]
push eax
sub esp, 0x34
push esi
mov eax, dword [0x464380]
xor eax, esp
push eax
lea eax, [esp + 0x3c]
mov dword fs:[0], eax
lea ecx, [esp + 0x18]
call fcn.0040a490
lea ecx, [esp + 0x18]
mov dword [esp + 0x44], 0
call fcn.0040a460
test eax, eax
je 0x4070ae
lea eax, [esp + 8]
push eax
push 0xf013f
push 0
push str.SoftWare
push reloc.WS2_32.dll_bind
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
test eax, eax
jne 0x407130
mov edx, dword [esp + 8]
push eax
lea ecx, [esp + 0x14]
push ecx
push eax
push 0xf013f
push eax
push eax
push eax
push 0x457420
push edx
call dword [sym.imp.ADVAPI32.dll_RegCreateKeyExW]
test eax, eax
je 0x40707d
mov eax, dword [esp + 8]
push eax
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
jmp 0x407130
mov ecx, dword [esp + 0x50]
mov edx, dword [esp + 0x4c]
mov eax, dword [esp + 0x10]
push 0x104
push ecx
push 1
push 0
push edx
push eax
call dword [sym.imp.ADVAPI32.dll_RegSetValueExW]
mov ecx, dword [esp + 0x10]
mov esi, dword [sym.imp.ADVAPI32.dll_RegCloseKey]
push ecx
call esi
mov edx, dword [esp + 8]
jmp 0x40712d
lea eax, [esp + 0xc]
push eax
push 0xf003f
push 0
push str.SoftWare
push reloc.WS2_32.dll_bind
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
test eax, eax
jne 0x407130
mov edx, dword [esp + 0xc]
push eax
lea ecx, [esp + 0x18]
push ecx
push eax
push 0xf003f
push eax
push eax
push eax
push 0x457420
push edx
call dword [sym.imp.ADVAPI32.dll_RegCreateKeyExW]
test eax, eax
je 0x4070fe
mov eax, dword [esp + 0xc]
push eax
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
jmp 0x407130
mov ecx, dword [esp + 0x50]
mov edx, dword [esp + 0x4c]
mov eax, dword [esp + 0x14]
push 0x104
push ecx
push 1
push 0
push edx
push eax
call dword [sym.imp.ADVAPI32.dll_RegSetValueExW]
mov ecx, dword [esp + 0x14]
mov esi, dword [sym.imp.ADVAPI32.dll_RegCloseKey]
push ecx
call esi
mov edx, dword [esp + 0xc]
push edx
call esi
lea ecx, [esp + 0x18]
mov dword [esp + 0x44], 0xffffffff
call fcn.0040a3a0
mov ecx, dword [esp + 0x3c]
mov dword fs:[0], ecx
pop ecx
pop esi
add esp, 0x40
ret 8
Function at 0x4074f0
Capabilities:
Get common file path
Set registry value

Disassembly:
sub esp, 0x620
mov eax, dword [0x464380]
xor eax, esp
mov dword [esp + 0x61c], eax
push ebp
push esi
push edi
push 0x206
lea eax, [esp + 0x16]
push 0
push eax
mov ebp, ecx
mov word [esp + 0x1c], 0
call fcn.00413220
push 0x206
lea ecx, [esp + 0x22a]
push 0
push ecx
mov word [esp + 0x230], 0
call fcn.00413220
add esp, 0x18
push 0
push 0x2b
lea edx, [esp + 0x18]
push edx
push 0
call dword [sym.imp.SHELL32.dll_SHGetSpecialFolderPathW]
cmp dword [ebp + 0x94], 8
jb 0x407564
mov ecx, dword [ebp + 0x80]
jmp 0x40756a
lea ecx, [ebp + 0x80]
lea edx, [esp + 0x218]
movzx eax, word [ecx]
mov word [edx], ax
add ecx, 2
add edx, 2
test ax, ax
jne 0x407571
lea edi, [esp + 0x10]
add edi, 0xfffffffe
lea esp, [esp]
mov ax, word [edi + 2]
add edi, 2
test ax, ax
jne 0x407590
mov edx, dword [0x4574ac]
mov dword [edi], edx
lea edi, [esp + 0x10]
add edi, 0xfffffffe
jmp 0x4075b0
mov ax, word [edi + 2]
add edi, 2
test ax, ax
jne 0x4075b0
mov ecx, 7
mov esi, 0x457420
rep movsd dword es:[edi], dword [esi]
lea edi, [esp + 0x10]
add edi, 0xfffffffe
nop
mov ax, word [edi + 2]
add edi, 2
test ax, ax
jne 0x4075d0
lea eax, [esp + 0x10]
push eax
mov dword [edi], edx
call fcn.0040aeb0
lea eax, [esp + 0x14]
add esp, 4
add eax, 0xfffffffe
mov cx, word [eax + 2]
add eax, 2
test cx, cx
jne 0x4075f2
mov ecx, dword [str.DongFang]
mov edx, dword [0x45749c]
mov dword [eax], ecx
mov ecx, dword [0x4574a0]
mov dword [eax + 4], edx
mov edx, dword [0x4574a4]
mov dword [eax + 8], ecx
mov cx, word [0x4574a8]
mov dword [eax + 0xc], edx
mov word [eax + 0x10], cx
lea eax, [esp + 0x10]
add eax, 0xfffffffe
mov cx, word [eax + 2]
add eax, 2
test cx, cx
jne 0x407633
mov edx, dword [str..ini]
mov ecx, dword [0x457490]
mov dword [eax], edx
mov dx, word [0x457494]
mov dword [eax + 4], ecx
mov word [eax + 8], dx
lea eax, [esp + 0x10]
push eax
lea ecx, [esp + 0x21c]
push ecx
push str.InstallPath
push str.Globals
call dword [sym.imp.KERNEL32.dll_WritePrivateProfileStringW]
lea edx, [esp + 0x218]
push edx
push str.InstallPath
mov ecx, ebp
call fcn.00406fe0
push 0x206
lea eax, [esp + 0x426]
push 0
push eax
mov word [esp + 0x42c], 0
call fcn.00413220
add esp, 0xc
xor eax, eax
nop
movzx ecx, word [eax + str.SOFTWARE_]
mov word [esp + eax + 0x420], cx
add eax, 2
test cx, cx
jne 0x4076b0
lea edi, [esp + 0x420]
add edi, 0xfffffffe
mov ax, word [edi + 2]
add edi, 2
test ax, ax
jne 0x4076d1
push 0
mov ecx, 7
mov esi, 0x457420
rep movsd dword es:[edi], dword [esi]
lea ecx, [esp + 0x10]
push ecx
push 0
push 0xf003f
push 0
push 0
push 0
lea edx, [esp + 0x43c]
push edx
push reloc.WS2_32.dll_bind
call dword [sym.imp.ADVAPI32.dll_RegCreateKeyExW]
test eax, eax
pop edi
pop esi
pop ebp
jne 0x407737
mov ecx, dword [esp]
push 0x104
lea eax, [esp + 0x210]
push eax
push 1
push 0
push str.InstallPath
push ecx
call dword [sym.imp.ADVAPI32.dll_RegSetValueExW]
mov edx, dword [esp]
push edx
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov ecx, dword [esp + 0x61c]
xor ecx, esp
call fcn.00413205
add esp, 0x620
ret