joyce8/EMBER2024-capa huggingface dataset:
Function at 0x409ea0
Capabilities:
Modify service
Query service configuration
Query service status
Start service

Disassembly:
sub esp, 0x40
call fcn.00409e20
test eax, eax
jne 0x409eb5
mov eax, 1
add esp, 0x40
ret
push ebp
push 5
push 0
push 0
call dword [sym.imp.ADVAPI32.dll_OpenSCManagerA]
mov ebp, eax
test ebp, ebp
mov dword [esp + 8], ebp
jne 0x409ed1
pop ebp
add esp, 0x40
ret
push ebx
mov ebx, dword [sym.imp.ADVAPI32.dll_OpenServiceA]
push esi
push 4
push str.SCardSvr
push ebp
call ebx
mov esi, eax
test esi, esi
jne 0x409ef9
push ebp
call dword [sym.imp.ADVAPI32.dll_CloseServiceHandle]
pop esi
pop ebx
xor eax, eax
pop ebp
add esp, 0x40
ret
push edi
lea eax, [esp + 0x18]
push eax
push esi
xor edi, edi
call dword [sym.imp.ADVAPI32.dll_QueryServiceStatus]
test eax, eax
je 0x409f18
cmp dword [esp + 0x1c], 4
jne 0x409f18
mov edi, 1
push esi
mov esi, dword [sym.imp.ADVAPI32.dll_CloseServiceHandle]
call esi
test edi, edi
je 0x409f35
push ebp
call esi
pop edi
pop esi
pop ebx
mov eax, 1
pop ebp
add esp, 0x40
ret
push 0x17
push str.SCardSvr
push ebp
call ebx
mov edi, eax
test edi, edi
jne 0x409f5f
push 0xffffffffffffffff
push eax
push 0xba
call fcn.00419f8f
push ebp
call esi
pop edi
pop esi
pop ebx
xor eax, eax
pop ebp
add esp, 0x40
ret
push 0
push 0
push edi
call dword [sym.imp.ADVAPI32.dll_StartServiceA]
mov ebp, eax
test ebp, ebp
je 0x409faa
mov ebx, dword [sym.imp.KERNEL32.dll_Sleep]
xor ebp, ebp
xor esi, esi
lea ebx, [ebx]
lea ecx, [esp + 0x34]
push ecx
push edi
call dword [sym.imp.ADVAPI32.dll_QueryServiceStatus]
test eax, eax
je 0x409f9b
cmp dword [esp + 0x38], 4
je 0x40a027
push 0x1f4
add esi, 1
call ebx
cmp esi, 0xa
jl 0x409f80
push 0xffffffffffffffff
push 0
push 0xbb
call fcn.00419f8f
push 0x1000
push 0x40
mov dword [esp + 0x18], 0x1000
call dword [sym.imp.KERNEL32.dll_LocalAlloc]
mov esi, eax
mov eax, dword [esp + 0x10]
lea edx, [esp + 0x10]
push edx
push eax
push esi
push edi
call dword [sym.imp.ADVAPI32.dll_QueryServiceConfigA]
test eax, eax
je 0x40a006
cmp dword [esi + 4], 2
je 0x40a006
push 0
push 0
push 0
push 0
push 0
push 0
push 0
push 0xffffffffffffffff
push 2
push 0xffffffffffffffff
push edi
call dword [sym.imp.ADVAPI32.dll_ChangeServiceConfigA]
push esi
call dword [sym.imp.KERNEL32.dll_LocalFree]
mov esi, dword [sym.imp.ADVAPI32.dll_CloseServiceHandle]
push edi
call esi
mov ecx, dword [esp + 0x14]
push ecx
call esi
pop edi
pop esi
pop ebx
mov eax, ebp
pop ebp
add esp, 0x40
ret
mov ebp, 1
jmp 0x409fb8
Function at 0x40a554
Capabilities:
Get common file path

Disassembly:
sub esp, 0x210
mov eax, dword [0x47f9e8]
xor eax, esp
mov dword [esp + 0x20c], eax
push esi
mov esi, ecx
call fcn.0041a42d
push 0x104
lea eax, [esp + 0x110]
push eax
call dword [sym.imp.KERNEL32.dll_GetSystemDirectoryA]
lea eax, [esp + 0x10c]
add eax, 0xffffffff
lea esp, [esp]
mov cl, byte [eax + 1]
add eax, 1
test cl, cl
jne 0x40a580
mov ecx, dword [str._tycsp.dll]
mov edx, dword [0x465e8c]
mov dword [eax], ecx
mov cx, word [0x465e90]
mov dword [eax + 4], edx
mov dl, byte [0x465e92]
mov word [eax + 8], cx
mov byte [eax + 0xa], dl
lea eax, [esp + 8]
push eax
lea ecx, [esp + 0x110]
push ecx
call fcn.00409c20
add esp, 8
test eax, eax
je 0x40a5e9
lea eax, [esp + 8]
lea edx, [eax + 1]
nop
mov cl, byte [eax]
add eax, 1
test cl, cl
jne 0x40a5d0
sub eax, edx
push eax
lea edx, [esp + 0xc]
push edx
lea ecx, [esi + 0x74]
call fcn.00401c50
lea eax, [esp + 8]
push eax
push 0
call fcn.00409c20
add esp, 8
test eax, eax
je 0x40a61c
lea eax, [esp + 8]
lea edx, [eax + 1]
mov cl, byte [eax]
add eax, 1
test cl, cl
jne 0x40a603
sub eax, edx
push eax
lea ecx, [esp + 0xc]
push ecx
lea ecx, [esi + 0x78]
call fcn.00401c50
push ecx
mov ecx, esp
mov dword [esp + 8], esp
push str.http:__www.whty.com.cn
call fcn.00402340
mov edx, dword [esi + 0x7c]
mov eax, dword [edx + 0x13c]
lea ecx, [esi + 0x7c]
call eax
push 0
mov ecx, esi
call fcn.0041377d
mov ecx, dword [esp + 0x210]
pop esi
xor ecx, esp
mov eax, 1
call fcn.0043acee
add esp, 0x210
ret

Function at 0x4150e9
Capabilities:
Get graphical window text

Disassembly:
push esi
mov esi, ecx
cmp dword [esi + 0x50], 0
jne 0x415122
push dword [esi + 0x20]
call dword [sym.imp.USER32.dll_GetWindowTextLengthA]
lea ecx, [eax + 1]
push ecx
mov ecx, dword [esp + 0xc]
push eax
call fcn.0040c253
push eax
push dword [esi + 0x20]
call dword [sym.imp.USER32.dll_GetWindowTextA]
mov ecx, dword [esp + 8]
push 0xffffffffffffffff
call fcn.0040c22e
pop esi
ret 4
mov ecx, dword [esi + 0x50]
mov eax, dword [ecx]
pop esi
jmp dword [eax + 0x8c]

Function at 0x416d86
Capabilities:
Extract resource via kernel32 functions

Disassembly:
push ebx
push ebp
push esi
push edi
xor edi, edi
xor ebx, ebx
cmp dword [esp + 0x14], edi
mov ebp, ecx
je 0x416dc9
call fcn.0040cea9
mov esi, dword [eax + 0xc]
push pe_nt_image_headers32
push dword [esp + 0x18]
push esi
call dword [sym.imp.KERNEL32.dll_FindResourceA]
test eax, eax
je 0x416dc9
push eax
push esi
call dword [sym.imp.KERNEL32.dll_LoadResource]
mov edi, eax
test edi, edi
je 0x416de4
push edi
call dword [sym.imp.KERNEL32.dll_LockResource]
mov ebx, eax
push ebx
mov ecx, ebp
call fcn.0041693d
test ebx, ebx
mov esi, eax
je 0x416de2
test edi, edi
je 0x416de2
push edi
call dword [sym.imp.KERNEL32.dll_FreeResource]
mov eax, esi
pop edi
pop esi
pop ebp
pop ebx
ret 4
Function at 0x417ba8
Capabilities:
Get graphical window text

Disassembly:
push 4
mov eax, 0x45fd7b
call fcn.0043c99b
mov esi, ecx
cmp dword [esi + 0x50], 0
jne 0x417bcd
push dword [ebp + 0xc]
push dword [ebp + 8]
push dword [esi + 0x20]
call dword [sym.imp.USER32.dll_GetWindowTextA]
jmp 0x417c19
call fcn.0040c2f7
push eax
lea ecx, [ebp - 0x10]
call fcn.00401990
mov ecx, dword [esi + 0x50]
mov eax, dword [ecx]
and dword [ebp - 4], 0
lea edx, [ebp - 0x10]
push edx
call dword [eax + 0x8c]
push 0xffffffffffffffff
push dword [ebp - 0x10]
push dword [ebp + 0xc]
push dword [ebp + 8]
call fcn.0040bb59
add esp, 0x10
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.dll_lstrlenA]
mov ecx, dword [ebp - 0x10]
add ecx, 0xfffffff0
mov esi, eax
call fcn.004017b0
mov eax, esi
call fcn.0043ca73
ret 8
Function at 0x41a761
Capabilities:
Extract resource via kernel32 functions

Disassembly:
push 0x24
mov eax, 0x46007d
call fcn.0043c9ce
mov esi, ecx
mov dword [ebp - 0x20], esi
mov eax, dword [esi + 0x60]
mov dword [ebp - 0x1c], eax
mov eax, dword [esi + 0x5c]
mov dword [ebp - 0x18], eax
call fcn.0040cea9
mov edi, dword [eax + 0xc]
xor ebx, ebx
cmp dword [esi + 0x58], ebx
je 0x41a7ac
call fcn.0040cea9
mov edi, dword [eax + 0xc]
push 5
push dword [esi + 0x58]
push edi
call dword [sym.imp.KERNEL32.dll_FindResourceA]
push eax
push edi
call dword [sym.imp.KERNEL32.dll_LoadResource]
mov dword [ebp - 0x18], eax
cmp dword [ebp - 0x18], ebx
je 0x41a7bd
push dword [ebp - 0x18]
call dword [sym.imp.KERNEL32.dll_LockResource]
mov dword [ebp - 0x1c], eax
cmp dword [ebp - 0x1c], ebx
jne 0x41a7ca
or eax, 0xffffffff
jmp 0x41a926
mov ecx, esi
call fcn.0041a2a8
mov dword [ebp - 0x14], eax
call fcn.00413eaa
and dword [ebp - 0x28], ebx
cmp dword [ebp - 0x14], ebx
mov dword [ebp - 0x2c], ebx
mov dword [ebp - 0x24], ebx
je 0x41a848
call dword [sym.imp.USER32.dll_GetDesktopWindow]
cmp dword [ebp - 0x14], eax
je 0x41a848
push dword [ebp - 0x14]
call dword [sym.imp.USER32.dll_IsWindowEnabled]
test eax, eax
je 0x41a848
push 0
push dword [ebp - 0x14]
call dword [sym.imp.USER32.dll_EnableWindow]
mov dword [ebp - 0x2c], 1
call fcn.004033c0
mov ebx, eax
test ebx, ebx
mov dword [ebp - 0x24], ebx
je 0x41a848
mov eax, dword [ebx]
mov ecx, ebx
call dword [eax + 0x120]
test eax, eax
je 0x41a848
mov ecx, ebx
call fcn.004176af
test eax, eax
je 0x41a848
push 0
mov ecx, ebx
call fcn.004176ca
mov dword [ebp - 0x28], 1
and dword [ebp - 4], 0
push esi
call fcn.00415bd7
push dword [ebp - 0x14]
call fcn.00413e02
push edi
push eax
push dword [ebp - 0x1c]
mov ecx, esi
call fcn.0041a569
xor edi, edi
cmp eax, edi
je 0x41a8a5
test byte [esi + 0x3c], 0x10
je 0x41a88f
push 4
pop edi
mov ecx, esi
call fcn.00417549
test ax, 0x100
je 0x41a885
push 5
pop edi
push edi
mov ecx, esi
call fcn.004139ca
xor edi, edi
cmp dword [esi + 0x20], edi
je 0x41a8a5
push 0x97
push edi
push edi
push edi
push edi
push edi
mov ecx, esi
call fcn.00417899
or dword [ebp - 4], 0xffffffff
jmp 0x41a8d0
cmp dword [ebp - 0x28], edi
je 0x41a8de
push 1
mov ecx, ebx
call fcn.004176ca
cmp dword [ebp - 0x2c], edi
je 0x41a8ee
push 1
push dword [ebp - 0x14]
call dword [sym.imp.USER32.dll_EnableWindow]
cmp dword [ebp - 0x14], edi
je 0x41a907
call dword [sym.imp.USER32.dll_GetActiveWindow]
cmp eax, dword [esi + 0x20]
jne 0x41a907
push dword [ebp - 0x14]
call dword [sym.imp.USER32.dll_SetActiveWindow]
mov eax, dword [esi]
mov ecx, esi
call dword [eax + 0x60]
mov ecx, esi
call fcn.0041a2e2
cmp dword [esi + 0x58], edi
je 0x41a923
push dword [ebp - 0x18]
call dword [sym.imp.KERNEL32.dll_FreeResource]
mov eax, dword [esi + 0x44]
call fcn.0043ca73
ret
Function at 0x420c5e
Capabilities:
Get geographical location

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x11c
mov eax, dword [0x47f9e8]
xor eax, ebp
mov dword [ebp - 4], eax
cmp dword [ebp + 8], 0x800
push ebx
push esi
mov esi, ecx
mov ebx, edx
lea eax, [ebp - 0x11c]
jne 0x420c9e
push 0x469120
push 4
push eax
call fcn.0043e558
push eax
call fcn.00402de0
add esp, 0x10
jmp 0x420cb0
push 4
push eax
push 3
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.dll_GetLocaleInfoA]
test eax, eax
je 0x420d1e
push edi
call fcn.0043cb82
mov edi, dword [eax]
call fcn.0043cb82
and dword [eax], 0
lea eax, [ebp - 0x11c]
push eax
push ebx
push esi
push 0x111
mov esi, 0x112
lea eax, [ebp - 0x118]
push esi
push eax
call fcn.0043b86f
add esp, 0x18
mov ebx, eax
call fcn.0043cb82
cmp dword [eax], 0
je 0x420cfe
call fcn.0043cb82
push dword [eax]
call fcn.0040bc98
pop ecx
jmp 0x420d05
call fcn.0043cb82
mov dword [eax], edi
cmp ebx, 0xffffffff
pop edi
je 0x420d1e
cmp ebx, esi
jae 0x420d1e
lea eax, [ebp - 0x118]
push eax
call dword [sym.imp.KERNEL32.dll_LoadLibraryA]
jmp 0x420d20
xor eax, eax
mov ecx, dword [ebp - 4]
pop esi
xor ecx, ebp
pop ebx
call fcn.0043acee
leave
ret
Function at 0x422417
Capabilities:
Extract resource via kernel32 functions

Disassembly:
push ebp
mov ebp, esp
push ecx
push ebx
xor ebx, ebx
cmp dword [ebp + 0xc], ebx
push esi
push edi
mov edi, ecx
mov dword [ebp - 4], ebx
je 0x42245d
call fcn.0040cea9
mov esi, dword [eax + 0xc]
push pe_nt_image_headers32
push dword [ebp + 0xc]
push esi
call dword [sym.imp.KERNEL32.dll_FindResourceA]
test eax, eax
je 0x42245d
push eax
push esi
call dword [sym.imp.KERNEL32.dll_LoadResource]
test eax, eax
mov dword [ebp - 4], eax
je 0x4224a0
push eax
call dword [sym.imp.KERNEL32.dll_LockResource]
mov ebx, eax
test ebx, ebx
mov esi, dword [ebp + 8]
mov dword [ebp + 0xc], 1
je 0x422489
push dword [ebp + 0x10]
mov eax, dword [edi]
push ebx
push esi
mov ecx, edi
call dword [eax + 0x20]
cmp dword [ebp - 4], 0
mov dword [ebp + 0xc], eax
je 0x422489
push dword [ebp - 4]
call dword [sym.imp.KERNEL32.dll_FreeResource]
cmp dword [esi + 0x4c], 0
je 0x42249d
mov ecx, dword [esi + 0x4c]
push dword [ebp + 0x10]
mov eax, dword [ecx]
call dword [eax + 0xa0]
mov eax, dword [ebp + 0xc]
pop edi
pop esi
pop ebx
leave
ret 0xc

Function at 0x4248ac
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 0x4248da
push dword [esi]
call dword [sym.imp.KERNEL32.dll_TlsGetValue]
test eax, eax
je 0x4248f8
push dword [esp + 0xc]
mov ecx, esi
push eax
call fcn.00424816
jmp 0x4248f8
mov eax, dword [esi + 0x14]
test eax, eax
je 0x4248f8
push edi
push dword [esp + 0x10]
mov edi, dword [eax + 4]
push eax
mov ecx, esi
call fcn.00424816
test edi, edi
mov eax, edi
jne 0x4248e2
pop edi
push ebx
call dword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
pop esi
pop ebx
ret 8
mov ecx, dword [0x482e00]
test ecx, ecx
je 0x4249bb
jmp 0x4248ab
ret 8

Function at 0x43acee
Capabilities:
Terminate process

Disassembly:
cmp ecx, dword [0x47f9e8]
jne 0x43acf8
repz ret
jmp fcn.00443d2c
Function at 0x446318
Capabilities:
Write file on windows

Disassembly:
push ecx
push ebx
mov ebx, dword [esp + 0xc]
push esi
push edi
xor esi, esi
xor edi, edi
cmp ebx, dword [edi*8 + 0x480370]
je 0x446333
inc edi
cmp edi, 0x17
jb 0x446324
cmp edi, 0x17
jae 0x4464b3
push ebp
push 3
call fcn.0044a87f
cmp eax, 1
pop ecx
je 0x44647f
push 3
call fcn.0044a87f
test eax, eax
pop ecx
jne 0x446367
cmp dword [0x47fa24], 1
je 0x44647f
cmp ebx, 0xfc
je 0x4464b2
push str.Runtime_Error__n_nProgram:
mov ebx, 0x314
push ebx
mov ebp, 0x483600
push ebp
call fcn.0043e558
add esp, 0xc
test eax, eax
je 0x44639d
push esi
push esi
push esi
push esi
push esi
call fcn.004407f4
add esp, 0x14
push 0x104
mov esi, 0x483619
push esi
push 0
mov byte [0x48371d], 0
call dword [sym.imp.KERNEL32.dll_GetModuleFileNameA]
test eax, eax
jne 0x4463e1
push str._program_name_unknown_
push 0x2fb
push esi
call fcn.0043e558
add esp, 0xc
test eax, eax
je 0x4463e1
xor eax, eax
push eax
push eax
push eax
push eax
push eax
call fcn.004407f4
add esp, 0x14
push esi
call fcn.0043c910
inc eax
cmp eax, 0x3c
pop ecx
jbe 0x446426
push esi
call fcn.0043c910
sub esi, 0x3b
add eax, esi
push 3
mov ecx, 0x483914
push 0x46bee4
sub ecx, eax
push ecx
push eax
call fcn.0043cc93
add esp, 0x14
test eax, eax
je 0x446426
xor esi, esi
push esi
push esi
push esi
push esi
push esi
call fcn.004407f4
add esp, 0x14
jmp 0x446428
xor esi, esi
push 0x46bee0
push ebx
push ebp
call fcn.0043e636
add esp, 0xc
test eax, eax
je 0x446448
push esi
push esi
push esi
push esi
push esi
call fcn.004407f4
add esp, 0x14
push dword [edi*8 + 0x480374]
push ebx
push ebp
call fcn.0043e636
add esp, 0xc
test eax, eax
je 0x44646a
push esi
push esi
push esi
push esi
push esi
call fcn.004407f4
add esp, 0x14
push 0x12010
push str.Microsoft_Visual_C_Runtime_Library
push ebp
call fcn.0044a6c2
add esp, 0xc
jmp 0x4464b2
push 0xfffffffffffffff4
call dword [sym.imp.KERNEL32.dll_GetStdHandle]
mov ebp, eax
cmp ebp, esi
je 0x4464b2
cmp ebp, 0xffffffff
je 0x4464b2
push 0
lea eax, [esp + 0x14]
push eax
lea esi, [edi*8 + 0x480374]
push dword [esi]
call fcn.0043c910
pop ecx
push eax
push dword [esi]
push ebp
call dword [sym.imp.KERNEL32.dll_WriteFile]
pop ebp
pop edi
pop esi
pop ebx
pop ecx
ret
Function at 0x44a6c2
Capabilities:
Link many functions at runtime

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x20
push ebx
push esi
push edi
call fcn.004402c4
xor ebx, ebx
cmp dword [0x483b5c], ebx
mov dword [ebp - 8], eax
mov dword [ebp - 4], ebx
mov dword [ebp - 0xc], ebx
mov dword [ebp - 0x10], ebx
jne 0x44a798
push str.USER32.DLL
call dword [sym.imp.KERNEL32.dll_LoadLibraryA]
mov edi, eax
cmp edi, ebx
je 0x44a878
mov esi, dword [sym.imp.KERNEL32.dll_GetProcAddress]
push 0x46d04c
push edi
call esi
cmp eax, ebx
je 0x44a878
push eax
call fcn.00440256
mov dword [esp], 0x46d03c
push edi
mov dword [0x483b5c], eax
call esi
push eax
call fcn.00440256
mov dword [esp], 0x46d028
push edi
mov dword [0x483b60], eax
call esi
push eax
call fcn.00440256
mov dword [0x483b64], eax
lea eax, [ebp - 0xc]
push eax
call fcn.0043c3e2
test eax, eax
pop ecx
pop ecx
je 0x44a766
push ebx
push ebx
push ebx
push ebx
push ebx
call fcn.004407f4
add esp, 0x14
cmp dword [ebp - 0xc], 2
jne 0x44a798
push str.GetUserObjectInformationA
push edi
call esi
push eax
call fcn.00440256
cmp eax, ebx
pop ecx
mov dword [0x483b6c], eax
je 0x44a798
push str.GetProcessWindowStation
push edi
call esi
push eax
call fcn.00440256
pop ecx
mov dword [0x483b68], eax
mov eax, dword [0x483b68]
mov ecx, dword [ebp - 8]
cmp eax, ecx
je 0x44a81d
cmp dword [0x483b6c], ecx
je 0x44a81d
push eax
call fcn.004402cd
push dword [0x483b6c]
mov esi, eax
call fcn.004402cd
cmp esi, ebx
pop ecx
pop ecx
mov edi, eax
je 0x44a81d
cmp edi, ebx
je 0x44a81d
call esi
cmp eax, ebx
je 0x44a7ea
lea ecx, [ebp - 0x14]
push ecx
push 0xc
lea ecx, [ebp - 0x20]
push ecx
push 1
push eax
call edi
test eax, eax
je 0x44a7ea
test byte [ebp - 0x18], 1
jne 0x44a81d
lea eax, [ebp - 0x10]
push eax
call fcn.0043c419
test eax, eax
pop ecx
je 0x44a805
push ebx
push ebx
push ebx
push ebx
push ebx
call fcn.004407f4
add esp, 0x14
cmp dword [ebp - 0x10], 4
jb 0x44a814
or dword [ebp + 0x10], 0x200000
jmp 0x44a858
or dword [ebp + 0x10], 0x40000
jmp 0x44a858
mov eax, dword [0x483b60]
cmp eax, dword [ebp - 8]
je 0x44a858
push eax
call fcn.004402cd
cmp eax, ebx
pop ecx
je 0x44a858
call eax
cmp eax, ebx
mov dword [ebp - 4], eax
je 0x44a858
mov eax, dword [0x483b64]
cmp eax, dword [ebp - 8]
je 0x44a858
push eax
call fcn.004402cd
cmp eax, ebx
pop ecx
je 0x44a858
push dword [ebp - 4]
call eax
mov dword [ebp - 4], eax
push dword [0x483b5c]
call fcn.004402cd
cmp eax, ebx
pop ecx
je 0x44a878
push dword [ebp + 0x10]
push dword [ebp + 0xc]
push dword [ebp + 8]
push dword [ebp - 4]
call eax
jmp 0x44a87a
xor eax, eax
pop edi
pop esi
pop ebx
leave
ret
Function at 0x44e830
Capabilities:
Check os version

Disassembly:
push ebp
lea ebp, [esp - 0x78]
sub esp, 0x98
mov eax, dword [0x47f9e8]
xor eax, ebp
mov dword [ebp + 0x74], eax
push esi
mov esi, ecx
call fcn.0044e7c5
mov eax, 0x400000
push 0x94
mov dword [esi + 8], eax
mov dword [esi + 4], eax
lea eax, [ebp - 0x20]
push 0
push eax
mov dword [esi], 0x3c
mov byte [esi + 0xc], 0
call fcn.0043b420
add esp, 0xc
lea eax, [ebp - 0x20]
push eax
mov dword [ebp - 0x20], 0x94
call dword [sym.imp.KERNEL32.dll_GetVersionExA]
cmp dword [ebp - 0x10], 2
jne 0x44e87f
cmp dword [ebp - 0x1c], 5
jb 0x44e897
jmp 0x44e893
cmp dword [ebp - 0x10], 1
jne 0x44e897
cmp dword [ebp - 0x1c], 4
ja 0x44e893
jne 0x44e897
cmp dword [ebp - 0x18], 0
jbe 0x44e897
mov byte [esi + 0xc], 1
lea ecx, [esi + 0x18]
mov dword [esi + 0x10], 0x800
mov dword [esi + 0x14], 0x46d09c
call fcn.0044e699
test eax, eax
jge 0x44e8b8
mov byte [0x4811b4], 1
mov ecx, dword [ebp + 0x74]
mov eax, esi
xor ecx, ebp
pop esi
call fcn.0043acee
add ebp, 0x78
leave
ret
Function at 0x4526a0
Capabilities:
Extract resource via kernel32 functions

Disassembly:
push ecx
mov eax, dword [esp + 0xc]
mov ecx, dword [esp + 8]
push eax
push ecx
call dword [sym.imp.KERNEL32.dll_LoadResource]
test eax, eax
jne 0x4526b9
pop ecx
ret 0xc
push edi
push eax
call dword [sym.imp.KERNEL32.dll_LockResource]
mov edi, eax
test edi, edi
mov dword [esp + 4], edi
jne 0x4526d0
pop edi
pop ecx
ret 0xc
push ebp
push esi
mov esi, dword [edi]
add esi, 0x40
push esi
call fcn.0043bba9
mov ebp, eax
add esp, 4
test ebp, ebp
jne 0x4526ed
pop esi
pop ebp
pop edi
pop ecx
ret 0xc
push ebx
push esi
push edi
push ebp
call fcn.0043ae80
mov eax, dword [ebp]
add eax, ebp
add esp, 0xc
mov dword [esp + 0x1c], eax
xor ebx, ebx
mov ecx, dword [eax + ebx*4]
xor esi, esi
lea esp, [esp]
cmp ecx, dword [esi*8 + 0x46dacc]
je 0x452723
add esi, 1
cmp esi, 4
jb 0x452710
jmp 0x45278a
cmp dword [esp + 0x20], 0
je 0x45273d
cmp dword [esi*8 + 0x46dad0], 0x12
je 0x45278a
mov dword [eax + ebx*4], 0xffffff
jmp 0x45278a
mov edx, dword [esi*8 + 0x46dad0]
mov edi, dword [sym.imp.USER32.dll_GetSysColor]
push edx
call edi
mov ecx, dword [esi*8 + 0x46dad0]
movzx eax, ah
push ecx
mov dword [esp + 0x1c], eax
call edi
xor edx, edx
mov dh, al
mov eax, dword [esi*8 + 0x46dad0]
push eax
or edx, dword [esp + 0x1c]
mov edi, edx
shl edi, 8
call dword [sym.imp.USER32.dll_GetSysColor]
mov edx, dword [esp + 0x1c]
shr eax, 0x10
movzx ecx, al
or ecx, edi
mov dword [edx + ebx*4], ecx
mov eax, edx
add ebx, 1
cmp ebx, 0x10
jl 0x452704
mov edi, dword [ebp + 4]
mov ebx, dword [ebp + 8]
push 0
call dword [sym.imp.USER32.dll_GetDC]
push ebx
mov esi, eax
push edi
push esi
mov dword [esp + 0x2c], esi
call dword [sym.imp.GDI32.dll_CreateCompatibleBitmap]
test eax, eax
mov dword [esp + 0x1c], eax
je 0x452819
push esi
call dword [sym.imp.GDI32.dll_CreateCompatibleDC]
mov esi, eax
mov eax, dword [esp + 0x1c]
push eax
push esi
call dword [sym.imp.GDI32.dll_SelectObject]
mov cl, byte [ebp + 0xe]
push 0xcc0020
push 0
push ebp
mov edx, 1
shl edx, cl
mov dword [esp + 0x24], eax
mov eax, dword [esp + 0x1c]
lea ecx, [eax + edx*4 + 0x28]
push ecx
push ebx
push edi
push 0
push 0
push ebx
push edi
push 0
push 0
push esi
call dword [sym.imp.GDI32.dll_StretchDIBits]
mov edx, dword [esp + 0x18]
push edx
push esi
call dword [sym.imp.GDI32.dll_SelectObject]
push esi
call dword [sym.imp.GDI32.dll_DeleteDC]
mov esi, dword [esp + 0x20]
push esi
push 0
call dword [sym.imp.USER32.dll_ReleaseDC]
push ebp
call fcn.0043b337
mov eax, dword [esp + 0x20]
add esp, 4
pop ebx
pop esi
pop ebp
pop edi
pop ecx
ret 0xc
Function at 0x453650
Capabilities:
Encrypt data using rc4 prga

Disassembly:
sub esp, 0x28
mov eax, dword [0x47f9e8]
xor eax, esp
mov dword [esp + 0x24], eax
mov edx, dword [esp + 0x2c]
push ebx
push ebp
push esi
push edi
mov edi, dword [esp + 0x40]
mov esi, ecx
mov eax, dword [esi]
mov eax, dword [eax + 0x110]
lea ecx, [esp + 0x20]
push ecx
push edx
push 0x417
mov ecx, esi
call eax
xor byte [edi + 8], 4
mov byte [esp + 0x2a], 0
mov byte [esp + 0x2b], 0
mov byte [edi + 0xa], 0
mov byte [edi + 0xb], 0
mov eax, 0x14
lea ecx, [esp + 0x20]
mov edx, edi
mov ebx, dword [edx]
cmp ebx, dword [ecx]
jne 0x4536bc
sub eax, 4
add ecx, 4
add edx, 4
cmp eax, 4
jae 0x4536a4
test eax, eax
je 0x453719
movzx ebx, byte [edx]
movzx ebp, byte [ecx]
sub ebx, ebp
jne 0x45370b
sub eax, 1
add ecx, 1
add edx, 1
test eax, eax
je 0x453719
movzx ebx, byte [edx]
movzx ebp, byte [ecx]
sub ebx, ebp
jne 0x45370b
sub eax, 1
add ecx, 1
add edx, 1
test eax, eax
je 0x453719
movzx ebx, byte [edx]
movzx ebp, byte [ecx]
sub ebx, ebp
jne 0x45370b
sub eax, 1
add ecx, 1
add edx, 1
test eax, eax
je 0x453719
movzx ebx, byte [edx]
movzx ecx, byte [ecx]
sub ebx, ecx
je 0x453719
test ebx, ebx
mov eax, 1
jg 0x45371b
or eax, 0xffffffff
jmp 0x45371b
xor eax, eax
test eax, eax
je 0x4537c9
mov ecx, esi
call fcn.00417549
push 0
push 0
push 0x10000000
mov ecx, esi
mov ebx, eax
call fcn.0041757d
mov ebp, dword [esp + 0x3c]
mov edx, dword [esi]
mov eax, dword [edx + 0x110]
push 0
push ebp
push 0x416
mov ecx, esi
call eax
mov edx, dword [esi]
mov eax, dword [edx + 0x110]
push edi
push ebp
push 0x415
mov ecx, esi
call eax
push 0
and ebx, 0x10000000
push ebx
push 0
mov ecx, esi
call fcn.0041757d
mov al, byte [edi + 9]
mov cl, al
xor cl, byte [esp + 0x29]
test cl, 1
jne 0x4537bb
test al, 1
je 0x453793
mov edx, dword [edi]
cmp edx, dword [esp + 0x20]
jne 0x4537bb
mov eax, dword [esi]
mov edx, dword [eax + 0x110]
lea ecx, [esp + 0x10]
push ecx
push ebp
push 0x41d
mov ecx, esi
call edx
test eax, eax
je 0x4537c9
mov ecx, dword [esi + 0x20]
push 1
lea eax, [esp + 0x14]
push eax
push ecx
jmp 0x4537c3
mov edx, dword [esi + 0x20]
push 1
push 0
push edx
call dword [sym.imp.USER32.dll_InvalidateRect]
mov ecx, dword [esp + 0x34]
pop edi
pop esi
pop ebp
pop ebx
xor ecx, esp
call fcn.0043acee
add esp, 0x28
ret 8
Function at 0x4540c0
Capabilities:
Extract resource via kernel32 functions

Disassembly:
push esi
push edi
mov edi, ecx
call fcn.0040cea9
mov esi, dword [eax + 0xc]
mov eax, dword [esp + 0xc]
push 0xf1
push eax
push esi
call dword [sym.imp.KERNEL32.dll_FindResourceA]
test eax, eax
jne 0x4540e8
pop edi
xor eax, eax
pop esi
ret 8
push eax
push esi
call dword [sym.imp.KERNEL32.dll_LoadResource]
test eax, eax
je 0x4540e1
push eax
call dword [sym.imp.KERNEL32.dll_LockResource]
mov esi, eax
test esi, esi
je 0x4540e1
movzx eax, word [esi + 6]
xor ecx, ecx
mov edx, 4
mul edx
seto cl
push ebx
push ebp
neg ecx
or ecx, eax
push ecx
call fcn.0040bac3
mov ebx, eax
xor eax, eax
add esp, 4
cmp word [esi + 6], ax
jbe 0x454144
lea ecx, [esi + 8]
lea ecx, [ecx]
movzx edx, word [ecx]
mov dword [ebx + eax*4], edx
movzx edx, word [esi + 6]
add eax, 1
add ecx, 2
cmp eax, edx
jl 0x454130
movzx eax, word [esi + 6]
push eax
push ebx
mov ecx, edi
call fcn.00452b30
push ebx
mov ebp, eax
call fcn.0040babe
add esp, 4
test ebp, ebp
je 0x454187
movzx ecx, word [esi + 4]
movzx eax, word [esi + 2]
push ecx
lea esi, [ecx + 7]
push eax
lea edx, [eax + 7]
push esi
push edx
mov ecx, edi
call fcn.00453550
mov ecx, dword [esp + 0x14]
push ecx
mov ecx, edi
call fcn.004535f0
mov ebp, eax
mov eax, dword [esp + 0x18]
test eax, eax
je 0x4541c6
test ebp, ebp
je 0x4541c6
mov edx, dword [edi + 0x20]
push 0
push 0
push 0x418
push edx
mov dword [edi + 0x98], eax
call dword [sym.imp.USER32.dll_SendMessageA]
push 0
push 0x20
push 0
mov ecx, edi
mov dword [edi + 0xc4], eax
call fcn.0041757d
mov ecx, edi
call fcn.00453f90
mov eax, ebp
pop ebp
pop ebx
pop edi
pop esi
ret 8