joyce8/EMBER2024-capa huggingface dataset:
Function at 0x421a40
Capabilities:
Get proxy
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
push 0xfffffffffffffffe
push 0x4a57a0
push 0x456f50
mov eax, dword fs:[0]
push eax
sub esp, 0x1c
push ebx
push esi
push edi
mov eax, dword [0x4ada68]
xor dword [ebp - 8], eax
xor eax, ebp
push eax
lea eax, [ebp - 0x10]
mov dword fs:[0], eax
mov edi, ecx
xor eax, eax
mov dword [ebp - 0x1c], eax
mov dword [ebp - 0x24], eax
mov ebx, 1
mov dword [ebp - 0x20], ebx
mov ecx, dword [edi]
mov dword [ebp - 0x28], ecx
mov dword [ebp - 0x2c], eax
mov dword [ebp - 4], eax
lea edx, [ebp - 0x24]
push edx
push 0x20019
push eax
push str.SoftwareMicrosoftWindowsCurrentVersionInternet_Settings
push closesocket
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
mov esi, eax
mov dword [ebp - 0x1c], esi
test esi, esi
je 0x421ad9
push str.SoftwareMicrosoftWindowsCurrentVersionInternet_Settings
push 0x49bb90
push esi
push 2
push 0x6a9
push str..YWAssistant.c
push str.B_GetProxy
call fcn.004222b0
add esp, 0x1c
jmp 0x421b7b
mov eax, 4
mov dword [ebp - 0x20], eax
mov dword [ebp - 0x20], eax
lea eax, [ebp - 0x28]
push eax
lea ecx, [ebp - 0x2c]
push ecx
lea edx, [ebp - 0x20]
push edx
push 0
push str.ProxyEnable
mov eax, dword [ebp - 0x24]
push eax
mov esi, dword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
call esi
mov dword [ebp - 0x1c], eax
cmp eax, 2
jne 0x421b12
xor esi, esi
mov dword [ebp - 0x1c], esi
jmp 0x421b7b
cmp dword [ebp - 0x2c], 0
je 0x421b0b
mov dword [ebp - 0x20], ebx
mov dword [ebp - 0x20], ebx
mov ecx, dword [edi]
mov dword [ebp - 0x28], ecx
lea edx, [ebp - 0x28]
push edx
mov eax, dword [ebp + 8]
push eax
lea ecx, [ebp - 0x20]
push ecx
push 0
push str.ProxyServer
mov edx, dword [ebp - 0x24]
push edx
call esi
mov esi, eax
mov dword [ebp - 0x1c], esi
cmp esi, 2
je 0x421b0b
test esi, esi
je 0x421b75
push str.ProxyServer
push str.SoftwareMicrosoftWindowsCurrentVersionInternet_Settings
push 0x49bbb8
push esi
push 2
push 0x6c6
push str..YWAssistant.c
push str.B_GetProxy
call fcn.004222b0
add esp, 0x20
jmp 0x421b7b
mov eax, dword [ebp - 0x28]
inc eax
mov dword [edi], eax
mov dword [ebp - 4], 0xfffffffe
call fcn.00421b9e
mov eax, esi
mov ecx, dword [ebp - 0x10]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x421bc0
Capabilities:
Set registry value

Disassembly:
push ebp
mov ebp, esp
push 0xfffffffffffffffe
push 0x4a5780
push 0x456f50
mov eax, dword fs:[0]
push eax
sub esp, 0x14
push ebx
push esi
push edi
mov eax, dword [0x4ada68]
xor dword [ebp - 8], eax
xor eax, ebp
push eax
lea eax, [ebp - 0x10]
mov dword fs:[0], eax
xor edi, edi
mov dword [ebp - 0x20], edi
mov dword [ebp - 0x1c], edi
mov dword [ebp - 0x24], edi
mov dword [ebp - 4], edi
lea eax, [ebp - 0x1c]
push eax
push 0x20006
push edi
push str.SoftwareMicrosoftWindowsCurrentVersionInternet_Settings
push closesocket
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
mov esi, eax
mov dword [ebp - 0x20], esi
cmp esi, edi
je 0x421c47
push str.SoftwareMicrosoftWindowsCurrentVersionInternet_Settings
push 0x49bb90
push esi
push 2
push 0x6e7
push str..YWAssistant.c
push str.B_SetProxy
call fcn.004222b0
add esp, 0x1c
jmp 0x421c64
push 4
lea ecx, [ebp - 0x24]
push ecx
push 4
push edi
push str.ProxyEnable
mov edx, dword [ebp - 0x1c]
push edx
call dword [sym.imp.ADVAPI32.dll_RegSetValueExA]
mov esi, eax
mov dword [ebp - 0x20], esi
mov dword [ebp - 4], 0xfffffffe
call fcn.00421c89
mov eax, esi
mov ecx, dword [ebp - 0x10]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x421ca0
Capabilities:
Enumerate processes

Disassembly:
push ebp
mov ebp, esp
push 0xfffffffffffffffe
push 0x4a59c0
push 0x456f50
mov eax, dword fs:[0]
push eax
sub esp, 0x15c
mov eax, dword [0x4ada68]
xor dword [ebp - 8], eax
xor eax, ebp
mov dword [ebp - 0x20], eax
push ebx
push esi
push edi
push eax
lea eax, [ebp - 0x10]
mov dword fs:[0], eax
mov edi, ecx
mov dword [ebp - 0x164], edi
mov eax, dword [ebp + 8]
mov dword [ebp - 0x158], eax
or esi, 0xffffffff
mov dword [ebp - 0x160], esi
xor ebx, ebx
mov dword [ebp - 0x168], ebx
push 0x124
push ebx
lea ecx, [ebp - 0x150]
push ecx
call fcn.00456ba0
add esp, 0xc
mov dword [ebp - 0x15c], ebx
mov dword [ebp - 0x154], 0x128
mov dword [ebp - 4], ebx
mov dword [edi], ebx
push ebx
call fcn.0044fefb
add esp, 4
mov dword [edi], eax
test eax, eax
jne 0x421d85
mov ebx, 8
mov dword [ebp - 0x15c], ebx
push 0x49bc30
push ebx
push 2
push 0x817
push str..YWAssistant.c
push str.W_GetRunningProcesses
call fcn.004222b0
add esp, 0x18
mov dword [ebp - 4], 0xfffffffe
call fcn.00421e59
mov eax, ebx
mov ecx, dword [ebp - 0x10]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 0x20]
xor ecx, ebp
call fcn.0044fdb2
mov esp, ebp
pop ebp
ret
push 0
push 2
call sub.KERNEL32.dll_CreateToolhelp32Snapshot
mov esi, eax
mov dword [ebp - 0x160], esi
cmp esi, 0xffffffff
jne 0x421db0
push 0x49bd3c
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
push 2
push 0x81e
jmp 0x421d49
lea edx, [ebp - 0x154]
push edx
push esi
call sub.KERNEL32.dll_Process32First
lea ecx, [ecx]
test eax, eax
je 0x421d5b
mov byte [ebp - 0x28], 0
xor eax, eax
mov dword [ebp - 0x27], eax
mov word [ebp - 0x23], ax
mov byte [ebp - 0x21], al
mov eax, dword [ebp - 0x14c]
push eax
push 0x49a1e0
lea ecx, [ebp - 0x28]
push ecx
call fcn.00450e1f
add esp, 0xc
lea edx, [ebp - 0x130]
push edx
mov eax, dword [ebp - 0x158]
push eax
push edi
lea ecx, [ebp - 0x28]
call fcn.00421630
add esp, 0xc
mov ebx, eax
mov dword [ebp - 0x15c], ebx
test ebx, ebx
jne 0x421d5b
push 0x128
push eax
lea ecx, [ebp - 0x154]
push ecx
call fcn.00456ba0
add esp, 0xc
mov dword [ebp - 0x154], 0x128
lea edx, [ebp - 0x154]
push edx
push esi
call sub.KERNEL32.dll_Process32Next
jmp 0x421dc0
Function at 0x421ec0
Capabilities:
Set registry value

Disassembly:
push ebp
lea ebp, [esp - 0x208]
sub esp, 0x208
push 0xfffffffffffffffe
push 0x4a5760
push 0x456f50
mov eax, dword fs:[0]
push eax
sub esp, 0x18
mov eax, dword [0x4ada68]
xor dword [ebp - 8], eax
xor eax, ebp
mov dword [ebp + 0x204], eax
push ebx
push esi
push edi
push eax
lea eax, [ebp - 0x10]
mov dword fs:[0], eax
mov esi, ecx
mov edi, edx
xor ebx, ebx
mov dword [ebp - 0x20], ebx
mov byte [ebp], bl
push 0x200
push ebx
lea eax, [ebp + 1]
push eax
call fcn.00456ba0
add esp, 0xc
mov dword [ebp - 0x28], ebx
mov dword [ebp - 0x24], 2
mov dword [ebp - 0x1c], ebx
cmp esi, ebx
jne 0x421f38
lea eax, [ebx + 0x57]
jmp 0x422062
mov dword [ebp - 4], ebx
push esi
push str.SoftwareMicrosoftWindowsCurrentVersionInternet_SettingsZoneMapDomains
push str._s_s
push 0x200
lea ecx, [ebp]
push ecx
call fcn.00450e9c
add esp, 0x14
lea edx, [ebp - 0x1c]
push edx
push 0xf003f
push ebx
lea eax, [ebp]
push eax
push closesocket
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
mov dword [ebp - 0x20], eax
cmp eax, ebx
jne 0x421f97
push esi
push 0x49bd60
push eax
push 4
push 0x8b1
push str..YWAssistant.c
push str.B_AddTrustSiteDNS
call fcn.004222b0
add esp, 0x1c
mov eax, dword [ebp - 0x1c]
cmp eax, ebx
je 0x421fa8
push eax
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov dword [ebp - 0x1c], ebx
lea ecx, [ebp - 0x28]
push ecx
lea edx, [ebp - 0x1c]
push edx
push ebx
push 0xf003f
push ebx
push ebx
push ebx
lea eax, [ebp]
push eax
push closesocket
call dword [sym.imp.ADVAPI32.dll_RegCreateKeyExA]
mov esi, eax
mov dword [ebp - 0x20], esi
cmp esi, ebx
je 0x421fe4
lea ecx, [ebp]
push ecx
push 0x49bd90
push esi
push 2
push 0x8bd
jmp 0x422042
push 4
cmp edi, ebx
je 0x422015
lea edx, [ebp - 0x24]
push edx
push 4
push ebx
push edi
mov eax, dword [ebp - 0x1c]
push eax
call dword [sym.imp.ADVAPI32.dll_RegSetValueExA]
mov esi, eax
mov dword [ebp - 0x20], esi
cmp esi, ebx
je 0x422054
push edi
push 0x49bda8
push esi
push 2
push 0x8c4
jmp 0x422042
lea ecx, [ebp - 0x24]
push ecx
push 4
push ebx
push 0x49baf4
mov edx, dword [ebp - 0x1c]
push edx
call dword [sym.imp.ADVAPI32.dll_RegSetValueExA]
mov esi, eax
mov dword [ebp - 0x20], esi
cmp esi, ebx
je 0x422054
push ebx
push 0x49bda8
push esi
push 2
push 0x8ca
push str..YWAssistant.c
push str.B_AddTrustSiteDNS
call fcn.004222b0
add esp, 0x1c
mov dword [ebp - 4], 0xfffffffe
call fcn.0042208c
mov eax, esi
mov ecx, dword [ebp - 0x10]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [ebp + 0x204]
xor ecx, ebp
call fcn.0044fdb2
add ebp, 0x208
mov esp, ebp
pop ebp
ret
Function at 0x422100
Capabilities:
Get common file path

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
sub esp, 0x234
mov eax, dword [0x4ada68]
xor eax, esp
mov dword [esp + 0x230], eax
cmp dword [0x4b981c], 0
push esi
jne 0x422287
push 0x104
lea eax, [esp + 0x25]
push 0
push eax
mov byte [esp + 0x2c], 0
call fcn.00456ba0
push 0x104
lea ecx, [esp + 0x139]
push 0
push ecx
mov byte [esp + 0x140], 0
call fcn.00456ba0
push str.Chinese_simplified
push 0
call fcn.00454208
add esp, 0x20
lea edx, [esp + 0x20]
push edx
push 0x104
call dword [sym.imp.KERNEL32.dll_GetTempPathA]
push 0x104
lea eax, [esp + 0x12c]
push eax
push 0
call dword [sym.imp.KERNEL32.dll_GetModuleFileNameA]
lea ecx, [esp + 0x128]
push 0x5c
push ecx
call fcn.004507be
mov esi, eax
add esp, 8
test esi, esi
jne 0x4221af
lea esi, [esp + 0x128]
jmp 0x4221b0
inc esi
lea edx, [esp + 8]
push edx
call dword [sym.imp.KERNEL32.dll_InitializeCriticalSection]
lea eax, [esp + 8]
push eax
call dword [sym.imp.KERNEL32.dll_EnterCriticalSection]
push 0x49bdcc
push esi
lea ecx, [esp + 0x28]
push ecx
push str._s_s__s
push 0x104
push 0x4b9300
call fcn.00450e9c
push 0x49bdcc
push esi
lea edx, [esp + 0x40]
push edx
push str._s_s__s
push 0x104
push 0x4b950a
call fcn.00450e9c
push 0x49bdcc
push esi
lea eax, [esp + 0x58]
push eax
push str._s_s__s
push 0x104
push 0x4b9405
call fcn.00450e9c
add esp, 0x48
push 0x49bdcc
push esi
lea ecx, [esp + 0x28]
push ecx
push str._s_s__s
push 0x104
push 0x4b960f
call fcn.00450e9c
push 0x49bdb8
push esi
lea edx, [esp + 0x40]
push edx
push str._s_s__s
push 0x104
push 0x4b9714
call fcn.00450e9c
add esp, 0x30
lea eax, [esp + 8]
push eax
mov dword [0x4b981c], 1
call dword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
lea ecx, [esp + 8]
push ecx
call dword [sym.imp.KERNEL32.dll_DeleteCriticalSection]
mov eax, dword [ebp + 8]
mov ecx, dword [esp + 0x234]
imul eax, eax, 0x105
pop esi
xor ecx, esp
add eax, 0x4b9300
call fcn.0044fdb2
mov esp, ebp
pop ebp
ret
Function at 0x4225e0
Capabilities:
Extract resource via kernel32 functions

Disassembly:
mov eax, dword [esp + 8]
movzx ecx, word [esp + 4]
push ebp
mov ebp, dword [esp + 0x10]
push esi
push eax
push ecx
push 0
call dword [sym.imp.KERNEL32.dll_FindResourceA]
mov esi, eax
test esi, esi
jne 0x422626
mov eax, dword [esp + 0x10]
add eax, 0xfffffff0
lea edx, [eax + 0xc]
or ecx, 0xffffffff
lock xadd dword [edx], ecx
dec ecx
test ecx, ecx
jg 0x42261f
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
pop esi
xor eax, eax
pop ebp
ret 0xc
push edi
push esi
push 0
call dword [sym.imp.KERNEL32.dll_SizeofResource]
mov edi, eax
test edi, edi
je 0x422672
test ebp, ebp
jne 0x422665
mov eax, dword [esp + 0x14]
add eax, 0xfffffff0
mov dword [ebx], edi
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x4226cc
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
pop edi
pop esi
lea eax, [ebp + 1]
pop ebp
ret 0xc
push esi
push 0
call dword [sym.imp.KERNEL32.dll_LoadResource]
test eax, eax
jne 0x42269a
mov eax, dword [esp + 0x14]
add eax, 0xfffffff0
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x422692
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
pop edi
pop esi
xor eax, eax
pop ebp
ret 0xc
push eax
call dword [sym.imp.KERNEL32.dll_LockResource]
test eax, eax
jne 0x4226b6
lea ecx, [esp + 0x14]
call fcn.00405e20
pop edi
pop esi
xor eax, eax
pop ebp
ret 0xc
push edi
push eax
push ebp
call fcn.00458df0
add esp, 0xc
lea ecx, [esp + 0x14]
mov dword [ebx], edi
call fcn.00405e20
pop edi
pop esi
mov eax, 1
pop ebp
ret 0xc

Function at 0x423370
Capabilities:
Terminate thread

Disassembly:
push ecx
push esi
push edi
push 0
push 0
push 0
push 0
push 0
push 0x423360
call fcn.0043ce7c
mov edi, eax
call fcn.00436fa8
test eax, eax
jne 0x42339c
push 0x80004005
call fcn.00405de0
mov edx, dword [eax]
mov ecx, eax
mov eax, dword [edx + 0xc]
call eax
mov esi, eax
add esi, 0x10
call fcn.00422b10
push 0x3e8
call dword [sym.imp.KERNEL32.dll_Sleep]
lea ecx, [esp + 8]
mov dword [esp + 8], 0
mov edx, dword [edi + 0x2c]
push ecx
push edx
call dword [sym.imp.KERNEL32.dll_GetExitCodeThread]
mov eax, dword [esp + 8]
mov ecx, dword [edi + 0x2c]
push eax
push ecx
call dword [sym.imp.KERNEL32.dll_TerminateThread]
lea eax, [esi - 0x10]
lea edx, [eax + 0xc]
or ecx, 0xffffffff
lock xadd dword [edx], ecx
dec ecx
test ecx, ecx
jg 0x4233fc
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
pop edi
pop esi
pop ecx
ret
Function at 0x423420
Capabilities:
Get file version info

Disassembly:
sub esp, 0xc
push edi
lea eax, [esp + 4]
push eax
push ebx
call sub.VERSION.dll_GetFileVersionInfoSizeA
mov edi, eax
test edi, edi
je 0x423469
push edi
call fcn.00430336
mov ecx, dword [esp + 8]
add esp, 4
push eax
push edi
push ecx
push ebx
mov dword [esi], eax
call sub.VERSION.dll_GetFileVersionInfoA
mov edx, dword [esi]
test eax, eax
jne 0x423470
push edx
call fcn.0043032b
add esp, 4
mov dword [esi], 0
mov dword [esi + 4], 0
xor eax, eax
pop edi
add esp, 0xc
ret
lea eax, [esp + 0xc]
push eax
lea ecx, [esp + 0xc]
push ecx
push str.VarFileInfoTranslation
push edx
call sub.VERSION.dll_VerQueryValueA
test eax, eax
jne 0x42348e
mov eax, dword [esi]
push eax
jmp 0x423454
mov eax, dword [esp + 8]
movzx ecx, word [eax]
movzx edx, word [eax + 2]
shl ecx, 0x10
or ecx, edx
mov dword [esi + 4], ecx
mov eax, 1
pop edi
add esp, 0xc
ret
Function at 0x423830
Capabilities:
Send data
Send data on socket

Disassembly:
push ecx
xor eax, eax
mov word [0x4c139e], ax
mov eax, dword [0x4b61b0]
mov word [0x4c13a0], ax
inc eax
mov dword [0x4b61b0], eax
mov eax, dword [0x4b61b4]
mov word [0x4c13a2], ax
inc eax
mov dword [0x4b61b4], eax
mov byte [0x4c139c], 8
mov byte [0x4c139d], 0
xor eax, eax
jmp 0x423870
mov cl, al
add cl, 0x20
mov byte [eax + 0x4c13a9], cl
inc eax
cmp eax, 0x20
jl 0x423870
call dword [sym.imp.KERNEL32.dll_GetTickCount]
mov dword [0x4c13a5], eax
xor eax, eax
mov ecx, 0x4c139c
lea edx, [eax + 0x16]
push esi
movzx esi, word [ecx]
add eax, esi
add ecx, 2
sub edx, 1
jne 0x423897
mov dword [esp + 4], edx
mov dl, byte [ecx]
mov byte [esp + 4], dl
movzx ecx, word [esp + 4]
add eax, ecx
mov ecx, eax
sar ecx, 0x10
and eax, 0xffff
add ecx, eax
mov eax, dword [esp + 0x10]
push 0x10
push eax
mov edx, ecx
push 0
sar edx, 0x10
push 0x2d
add edx, ecx
mov ecx, dword [esp + 0x1c]
push 0x4c139c
not edx
push ecx
mov word [0x4c139e], dx
call dword [sym.imp.WS2_32.dll_sendto]
mov esi, eax
cmp esi, 0xffffffff
jne 0x4238ff
push str.sendto__
call fcn.00423990
mov eax, esi
pop esi
pop ecx
ret 8

Function at 0x423910
Capabilities:
Receive data
Receive data on socket

Disassembly:
sub esp, 0x14c
mov eax, dword [0x4ada68]
xor eax, esp
mov dword [esp + 0x148], eax
mov eax, dword [esp + 0x154]
lea ecx, [esp]
push ecx
push eax
mov eax, dword [esp + 0x158]
push 0
push 0x141
lea edx, [esp + 0x14]
push edx
push eax
mov dword [esp + 0x18], 0x10
call dword [sym.imp.WS2_32.dll_recvfrom]
cmp eax, 0xffffffff
jne 0x423969
push str.recvfrom__
call fcn.00423990
mov cl, byte [esp + 0xc]
mov byte [esi], cl
jmp 0x42396f
mov dl, byte [esp + 0xc]
mov byte [esi], dl
mov ecx, dword [esp + 0x148]
mov eax, dword [esp + 0x21]
xor ecx, esp
call fcn.0044fdb2
add esp, 0x14c
ret 8

Function at 0x423a40
Capabilities:
Delete internet cache
Enumerate internet cache

Disassembly:
push ecx
push ebx
push esi
push edi
mov edi, dword [sym.imp.WININET.dll_FindFirstUrlCacheEntryA]
lea eax, [esp + 0xc]
xor ebx, ebx
push eax
push ebx
push ebx
mov dword [esp + 0x18], ebx
call edi
mov ecx, dword [esp + 0xc]
push ecx
call fcn.00430336
add esp, 4
lea edx, [esp + 0xc]
push edx
mov esi, eax
push esi
push ebx
call edi
mov edi, eax
cmp edi, ebx
je 0x423ae7
mov ebx, dword [sym.imp.WININET.dll_FindNextUrlCacheEntryA]
push ebp
mov ebp, dword [sym.imp.WININET.dll_DeleteUrlCacheEntry]
mov eax, dword [esp + 0x18]
test eax, eax
jne 0x423a9b
test dword [esi + 0xc], 0x100000
jne 0x423aaf
mov eax, dword [esi + 4]
push eax
jmp 0x423aad
cmp eax, 1
jne 0x423aaf
test dword [esi + 0xc], 0x100000
je 0x423aaf
mov ecx, dword [esi + 4]
push ecx
call ebp
lea edx, [esp + 0x10]
push edx
push 0
push edi
mov dword [esp + 0x1c], 0
call ebx
push esi
call fcn.0043032b
mov eax, dword [esp + 0x14]
push eax
call fcn.00430336
add esp, 8
lea ecx, [esp + 0x10]
push ecx
mov esi, eax
push esi
push edi
call ebx
test eax, eax
jne 0x423a84
lea ebx, [eax + 1]
pop ebp
test esi, esi
je 0x423af4
push esi
call fcn.0043032b
add esp, 4
pop edi
pop esi
mov eax, ebx
pop ebx
pop ecx
ret
Function at 0x423e50
Capabilities:
Get file size
Write file on windows

Disassembly:
push 0xffffffffffffffff
push 0x48c3eb
mov eax, dword fs:[0]
push eax
mov eax, 0x271c
call fcn.00454d40
mov eax, dword [0x4ada68]
xor eax, esp
mov dword [esp + 0x2718], eax
push ebx
push ebp
push esi
push edi
mov eax, dword [0x4ada68]
xor eax, esp
push eax
lea eax, [esp + 0x2730]
mov dword fs:[0], eax
mov esi, ecx
mov ebx, edx
call fcn.00436fa8
xor ecx, ecx
test eax, eax
setne cl
test ecx, ecx
jne 0x423ead
push 0x80004005
call fcn.00405de0
mov edx, dword [eax]
mov ecx, eax
mov eax, dword [edx + 0xc]
call eax
add eax, 0x10
mov dword [esp + 0x14], eax
push 0x2710
lea ecx, [esp + 0x20]
push 0
push ecx
mov dword [esp + 0x2744], 0
call fcn.00456ba0
add esp, 0xc
test esi, esi
jne 0x423ee4
xor eax, eax
jmp 0x423ef9
mov eax, esi
lea edx, [eax + 1]
lea esp, [esp]
mov cl, byte [eax]
inc eax
test cl, cl
jne 0x423ef0
sub eax, edx
push eax
push esi
lea ecx, [esp + 0x1c]
call fcn.00403170
mov ecx, dword [esp + 0x14]
mov edi, dword [ecx - 0xc]
mov eax, dword [ecx - 8]
mov edx, 1
sub edx, dword [ecx - 4]
lea esi, [edi + 1]
sub eax, esi
or eax, edx
jge 0x423f2d
push esi
lea ecx, [esp + 0x18]
call fcn.004030c0
mov ecx, dword [esp + 0x14]
mov byte [edi + ecx], 0x5c
test esi, esi
jl 0x42406c
cmp esi, dword [ecx - 8]
jg 0x42406c
mov dword [ecx - 0xc], esi
mov byte [esi + ecx], 0
test ebx, ebx
jne 0x423f51
xor eax, eax
jmp 0x423f5f
mov eax, ebx
lea edx, [eax + 1]
mov cl, byte [eax]
inc eax
test cl, cl
jne 0x423f56
sub eax, edx
push eax
push ebx
lea ecx, [esp + 0x1c]
call fcn.00402c40
mov ebp, dword [esp + 0x14]
push 0
push 0x80
push 3
push 0
push 3
push 0x40000000
push ebp
call dword [sym.imp.KERNEL32.dll_CreateFileA]
mov esi, eax
cmp esi, 0xffffffff
jne 0x423fda
mov dword [esp + 0x2738], eax
lea eax, [ebp - 0x10]
lea edx, [eax + 0xc]
or ecx, esi
lock xadd dword [edx], ecx
dec ecx
test ecx, ecx
jg 0x423fb0
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
xor eax, eax
mov ecx, dword [esp + 0x2730]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebp
pop ebx
mov ecx, dword [esp + 0x2718]
xor ecx, esp
call fcn.0044fdb2
add esp, 0x2728
ret
push 0
push esi
call dword [sym.imp.KERNEL32.dll_GetFileSize]
push 0
push 0
push 0x40
mov edi, eax
push esi
sub edi, 0x40
call dword [sym.imp.KERNEL32.dll_SetFilePointer]
test edi, edi
jbe 0x424034
mov ebx, dword [sym.imp.KERNEL32.dll_WriteFile]
nop
push 0
cmp edi, 0x2710
jbe 0x424026
lea ecx, [esp + 0x1c]
push ecx
push 0x2710
lea edx, [esp + 0x28]
push edx
push esi
call ebx
sub edi, 0x2710
jne 0x424000
jmp 0x424034
lea eax, [esp + 0x1c]
push eax
push edi
lea ecx, [esp + 0x28]
push ecx
push esi
call ebx
push esi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
lea eax, [ebp - 0x10]
mov dword [esp + 0x2738], 0xffffffff
lea edx, [eax + 0xc]
or ecx, 0xffffffff
lock xadd dword [edx], ecx
dec ecx
test ecx, ecx
jg 0x424062
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov eax, 1
jmp 0x423fb2
push 0x80070057
call fcn.00405de0
int3
Function at 0x4240a0
Capabilities:
Check os version

Disassembly:
sub esp, 0x98
mov eax, dword [0x4ada68]
xor eax, esp
mov dword [esp + 0x94], eax
push edi
push 0x1fc
xor edi, edi
lea eax, [esi + 8]
push edi
push eax
mov dword [0x4b9820], esi
call fcn.00456ba0
push 0x90
lea ecx, [esp + 0x18]
push edi
push ecx
mov dword [esi + 0x210], edi
mov dword [esi + 0x214], 1
mov dword [esi + 0x218], 1
mov dword [esi + 0x258], edi
mov dword [esi + 0x25c], 1
mov dword [esi + 0x21c], edi
mov dword [esi + 0x23c], edi
mov dword [esi + 0x254], edi
mov dword [esi + 0x20c], edi
mov dword [esi + 0x260], edi
mov dword [esp + 0x1c], 0x94
call fcn.00456ba0
add esp, 0x18
lea edx, [esp + 4]
push edx
call dword [sym.imp.KERNEL32.dll_GetVersionExA]
cmp dword [esp + 0x14], 2
jne 0x424169
cmp dword [esp + 8], 5
jb 0x424169
mov eax, 1
mov dword [esi + 0x220], eax
pop edi
mov ecx, dword [esp + 0x94]
xor ecx, esp
call fcn.0044fdb2
add esp, 0x98
ret
mov ecx, dword [esp + 0x98]
mov dword [esi + 0x220], edi
pop edi
xor ecx, esp
call fcn.0044fdb2
add esp, 0x98
ret

Function at 0x424950
Capabilities:
Find taskbar

Disassembly:
sub esp, 0x24
push edi
push 0
push str.Shell_TrayWnd
call dword [sym.imp.USER32.dll_FindWindowA]
mov edi, eax
test edi, edi
je 0x424981
push esi
push edi
call dword [sym.imp.USER32.dll_GetWindowRect]
push esi
push 0x424890
push edi
call dword [sym.imp.USER32.dll_EnumChildWindows]
pop edi
add esp, 0x24
ret
lea eax, [esp + 4]
push eax
push 5
mov dword [esp + 0xc], 0x24
call dword [sym.imp.SHELL32.dll_SHAppBarMessage]
test eax, eax
je 0x4249ee
mov eax, dword [esp + 0x10]
cmp eax, 3
ja case.default.0x4249a3
jmp dword [eax*4 + 0x424a14]
mov eax, dword [esp + 0x20]
mov edx, dword [esp + 0x14]
lea ecx, [eax - 0x64]
add eax, 0xfffffff0
mov dword [esi + 0xc], eax
mov eax, dword [esp + 0x1c]
mov dword [esi + 4], ecx
mov dword [esi + 8], eax
mov dword [esi], edx
pop edi
add esp, 0x24
ret
mov ecx, dword [esp + 0x18]
mov eax, dword [esp + 0x1c]
mov edx, dword [esp + 0x20]
mov dword [esi + 4], ecx
lea ecx, [eax - 0x64]
add eax, 0xfffffff0
mov dword [esi + 0xc], edx
mov dword [esi], ecx
mov dword [esi + 8], eax
pop edi
add esp, 0x24
ret
push 0
push esi
push 0
push 0x30
call dword [sym.imp.USER32.dll_SystemParametersInfoA]
mov edx, dword [esi + 8]
mov eax, dword [esi + 0xc]
sub edx, 0x96
sub eax, 0x1e
mov dword [esi + 4], eax
mov dword [esi], edx
pop edi
add esp, 0x24
ret

Function at 0x424a90
Capabilities:
Hide graphical window

Disassembly:
sub esp, 0x28
push esi
push 0
lea eax, [esp + 0xc]
push eax
push 8
push 0x48
mov dword [esp + 0x18], 8
call dword [sym.imp.USER32.dll_SystemParametersInfoA]
cmp dword [esp + 0xc], 0
je 0x424ada
lea ecx, [esp + 0x18]
push ecx
push edi
call dword [sym.imp.USER32.dll_GetWindowRect]
lea esi, [esp + 8]
call fcn.00424950
mov edx, esi
push edx
lea eax, [esp + 0x1c]
push eax
push 3
push edi
call dword [sym.imp.USER32.dll_DrawAnimatedRects]
push edi
call fcn.00424a30
add esp, 4
push 0
push edi
call dword [sym.imp.USER32.dll_ShowWindow]
push 3
push 0
push 0
push 0
push 0
push 1
push edi
call dword [sym.imp.USER32.dll_SetWindowPos]
pop esi
add esp, 0x28
ret