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

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
push 0xffffffffffffffff
push 0x4467aa
mov eax, dword fs:[0]
push eax
sub esp, 0x28
push esi
mov eax, dword [0x45a040]
xor eax, esp
push eax
lea eax, [esp + 0x30]
mov dword fs:[0], eax
mov esi, ecx
call fcn.0040e65a
mov eax, dword [esi]
mov ecx, esi
call dword [eax + 0x1c]
push eax
call dword [sym.imp.USER32.dll_SetFocus]
mov dword [esp + 0xc], vtable.shui::CSHSignalArgs.0
and dword [esp + 0x38], 0
lea eax, [esp + 0xc]
push eax
push esi
add esi, 0x9c
push esi
call fcn.00402ca0
mov ecx, dword [esp + 0x30]
mov dword fs:[0], ecx
pop ecx
pop esi
mov esp, ebp
pop ebp
ret

Function at 0x41dacb
Capabilities:
Access peb ldr_data

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
push 0xffffffffffffffff
push 0x4467aa
mov eax, dword fs:[0]
push eax
sub esp, 0x28
push esi
mov eax, dword [0x45a040]
xor eax, esp
push eax
lea eax, [esp + 0x30]
mov dword fs:[0], eax
mov esi, ecx
mov eax, dword [esi + 0x88]
mov ecx, dword [eax]
mov eax, dword [ecx]
call dword [eax + 0x1c]
push eax
call dword [sym.imp.USER32.dll_SetFocus]
mov dword [esp + 0xc], vtable.shui::CSHSignalArgs.0
and dword [esp + 0x38], 0
lea eax, [esp + 0xc]
push eax
push esi
add esi, 0xa0
push esi
call fcn.00402ca0
mov ecx, dword [esp + 0x30]
mov dword fs:[0], ecx
pop ecx
pop esi
mov esp, ebp
pop ebp
ret
Function at 0x4220a6
Capabilities:
Log keystrokes via polling

Disassembly:
and dword [ebx], 0
push esi
mov esi, eax
mov eax, dword [esi + 0xa8]
cmp eax, 0x12
je 0x4220d1
cmp eax, 0x79
jne 0x4220c8
push 0x10
call dword [sym.imp.USER32.dll_GetKeyState]
test al, al
jns 0x4220d1
cmp dword [esi + 0xa8], 0x20
jne 0x422144
cmp dword [esp + 8], 0xf100
jne 0x422144
call dword [sym.imp.USER32.dll_GetFocus]
cmp eax, dword [esi + 4]
jne 0x422101
mov eax, esi
call fcn.00424261
push 0
push 0xffffffffffffffff
push 0x448
push dword [esi + 4]
call dword [sym.imp.USER32.dll_PostMessageW]
jmp 0x422144
mov eax, dword [esi + 0xa8]
cmp eax, 0x20
je 0x422144
test byte [esi + 0x84], 0x40
jne 0x422139
mov al, byte [esi + 0x85]
test al, 2
je 0x42212e
test al, 4
jne 0x42212e
test al, 8
je 0x42212e
mov al, 1
call fcn.004242db
push edi
mov edi, esi
call fcn.0042423c
pop edi
jmp 0x42213e
cmp eax, 0x20
je 0x422144
mov dword [ebx], 1
and byte [esi + 0x84], 0xbf
xor eax, eax
pop esi
ret 4
Function at 0x425dac
Capabilities:
Check os version

Disassembly:
push ebp
lea ebp, [esp - 0x98]
sub esp, 0x118
mov eax, dword [0x45a040]
xor eax, ebp
mov dword [ebp + 0x94], eax
push 0x110
lea eax, [ebp - 0x7c]
push 0
push eax
mov dword [ebp - 0x80], 0x114
call fcn.00437340
add esp, 0xc
lea eax, [ebp - 0x80]
push eax
call dword [sym.imp.KERNEL32.dll_GetVersionExW]
test eax, eax
je 0x425dfa
cmp dword [ebp - 0x7c], 6
jb 0x425dfa
xor eax, eax
inc eax
jmp 0x425dfc
xor eax, eax
mov ecx, dword [ebp + 0x94]
xor ecx, ebp
call fcn.0043465f
add ebp, 0x98
leave
ret

Function at 0x425f50
Capabilities:
Check os version

Disassembly:
push ebp
lea ebp, [esp - 0x98]
sub esp, 0x118
mov eax, dword [0x45a040]
xor eax, ebp
mov dword [ebp + 0x94], eax
push 0x110
lea eax, [ebp - 0x7c]
push 0
push eax
call fcn.00437340
add esp, 0xc
lea eax, [ebp - 0x80]
push eax
mov dword [ebp - 0x80], 0x114
call dword [sym.imp.KERNEL32.dll_GetVersionExW]
test eax, eax
je 0x425fa9
cmp dword [ebp - 0x7c], 5
jae 0x425fa5
cmp dword [ebp - 0x7c], 4
jne 0x425fa9
cmp dword [ebp - 0x78], 0x5a
jb 0x425fa9
xor eax, eax
jmp 0x425fac
xor eax, eax
inc eax
mov ecx, dword [ebp + 0x94]
xor ecx, ebp
call fcn.0043465f
add ebp, 0x98
leave
ret

Function at 0x42e941
Capabilities:
Open clipboard
Read clipboard data

Disassembly:
push 0
mov eax, 0x446eca
call fcn.0043722d
mov esi, dword [ebx]
call fcn.00403d35
mov eax, dword [ebp + 8]
push dword [eax + 4]
call dword [sym.imp.USER32.dll_OpenClipboard]
test eax, eax
je 0x42e9b2
push 0xd
call dword [sym.imp.USER32.dll_IsClipboardFormatAvailable]
test eax, eax
je 0x42e9ac
push 0xd
call dword [sym.imp.USER32.dll_GetClipboardData]
mov esi, eax
push esi
call dword [sym.imp.KERNEL32.dll_GlobalLock]
lea ecx, [ebp + 8]
push ecx
mov edi, eax
call fcn.0040807f
and dword [ebp - 4], 0
push esi
call dword [sym.imp.KERNEL32.dll_GlobalUnlock]
push dword [ebp + 8]
mov esi, ebx
call fcn.0040cd81
mov eax, dword [ebp + 8]
add eax, 0xfffffff0
call fcn.004045ea
call dword [sym.imp.USER32.dll_CloseClipboard]
call fcn.00437305
ret 4
Function at 0x431bdc
Capabilities:
Capture webcam image

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x2c
push ebx
movsx ebx, ax
push esi
shr eax, 0x10
push edi
mov edi, dword [sym.imp.USER32.dll_SendMessageW]
cwde
mov esi, ecx
lea ecx, [ebp - 0x1c]
push ecx
mov dword [ebp - 8], eax
xor eax, eax
push eax
push 0x41a
push dword [esi + 4]
mov dword [ebp - 0x1c], eax
mov dword [ebp - 0x18], eax
mov dword [ebp - 0x14], eax
mov dword [ebp - 0x10], eax
mov dword [ebp - 0x2c], eax
mov dword [ebp - 0x28], eax
mov dword [ebp - 0x24], eax
mov dword [ebp - 0x20], eax
call edi
lea eax, [ebp - 0x2c]
push eax
push 0
push 0x419
push dword [esi + 4]
call edi
push dword [ebp - 8]
lea eax, [ebp - 0x2c]
push ebx
push eax
call dword [sym.imp.USER32.dll_PtInRect]
test eax, eax
jne 0x431cf0
push eax
push eax
push 0x401
push dword [esi + 4]
call edi
push 0
push 0
push 0x402
push dword [esi + 4]
mov dword [ebp - 4], eax
call edi
sub ebx, dword [ebp - 0x1c]
mov ecx, dword [ebp - 0x14]
sub ecx, dword [ebp - 0x1c]
mov dword [ebp - 8], ebx
fild dword [ebp - 8]
mov dword [ebp - 8], ecx
fild dword [ebp - 8]
inc eax
sub eax, dword [ebp - 4]
fdivp st(1)
mov dword [ebp - 8], eax
fld1
fsub st(1)
fld qword [0x44ef78]
fmul st(1), st(0)
fld st(2)
fmulp st(1)
fsubp st(1)
fild dword [ebp - 8]
fmulp st(2)
fild dword [ebp - 4]
faddp st(2)
faddp st(1)
call fcn.00442db0
push eax
push 1
push 0x405
push dword [esi + 4]
mov dword [ebp - 8], eax
call edi
call fcn.00432279
push dword [esi + 4]
mov ebx, dword [sym.imp.USER32.dll_GetParent]
call ebx
movzx ecx, word [ebp - 8]
push dword [esi + 4]
shl ecx, 0x10
or ecx, 4
push ecx
push 0x114
push eax
call edi
push dword [esi + 4]
call ebx
push dword [esi + 4]
push 8
push 0x114
push eax
call edi
xor eax, eax
jmp 0x431cf7
mov edx, esi
call fcn.0043240e
pop edi
pop esi
pop ebx
leave
ret
Function at 0x4332d7
Capabilities:
Hide graphical window

Disassembly:
mov eax, dword [esi]
push edi
push 0
mov ecx, esi
call dword [eax + 0x1c]
mov edi, dword [sym.imp.USER32.dll_KillTimer]
push eax
call edi
mov eax, dword [esi]
push 1
mov ecx, esi
call dword [eax + 0x1c]
push eax
call edi
mov eax, dword [esi]
push 0
mov ecx, esi
call dword [eax + 0x1c]
push eax
call dword [sym.imp.USER32.dll_ShowWindow]
pop edi
ret
Function at 0x4345c4
Capabilities:
Allocate or change rwx memory
Execute shellcode via indirect call

Disassembly:
cmp dword [0x45d94c], 0
push esi
jne 0x434537
call fcn.0043445d
test eax, eax
je 0x43457a
mov eax, dword [0x45d94c]
cmp eax, 1
jne 0x434558
push 0xd
push 0
call dword [sym.imp.KERNEL32.dll_GetProcessHeap]
push eax
call dword [sym.imp.KERNEL32.dll_HeapAlloc]
test eax, eax
je 0x43457a
pop esi
ret
push eax
call dword [0x45d954]
test eax, eax
jne 0x4345c2
push 0x40
mov eax, 0x1000
push eax
push eax
push 0
call dword [sym.imp.KERNEL32.dll_VirtualAlloc]
mov esi, eax
test esi, esi
jne 0x43457e
xor eax, eax
pop esi
ret
mov eax, dword [esi]
push edi
push dword [0x45d94c]
call dword [0x45d954]
mov edi, eax
test edi, edi
je 0x4345a3
push 0x8000
push 0
push esi
call dword [sym.imp.KERNEL32.dll_VirtualFree]
jmp 0x4345bf
mov edi, esi
add esi, 0xff0
push edi
push dword [0x45d94c]
call dword [0x45d950]
add edi, 0x10
cmp edi, esi
jb 0x4345ab
mov eax, edi
pop edi
pop esi
ret
jmp 0x434524

Function at 0x43465f
Capabilities:
Terminate process

Disassembly:
cmp ecx, dword [0x45a040]
jne 0x434669
repz ret
jmp fcn.004375ac

Function at 0x434967
Capabilities:
Check if file exists
Get file attributes

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push esi
xor esi, esi
cmp dword [ebp + 8], esi
jne 0x434998
call fcn.00437aaa
mov dword [eax], esi
call fcn.00437a97
push esi
push esi
push esi
push esi
push esi
mov dword [eax], 0x16
call fcn.0043552b
add esp, 0x14
push 0x16
pop eax
jmp 0x4349ed
test dword [ebp + 0xc], 0xfffffff9
jne 0x434974
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.dll_GetFileAttributesW]
cmp eax, 0xffffffff
jne 0x4349c5
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
call fcn.00437abd
pop ecx
call fcn.00437a97
mov eax, dword [eax]
jmp 0x4349ed
test al, 0x10
jne 0x4349eb
test al, 1
je 0x4349eb
test byte [ebp + 0xc], 2
je 0x4349eb
call fcn.00437aaa
mov dword [eax], 5
call fcn.00437a97
mov dword [eax], 0xd
jmp 0x4349bc
xor eax, eax
pop esi
pop ebp
ret
Function at 0x441565
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.00439c1a
and dword [ebp - 4], 0
cmp dword [0x45e460], 0
mov ebx, eax
jne 0x441616
push str.USER32.DLL
call dword [sym.imp.KERNEL32.dll_LoadLibraryA]
mov edi, eax
test edi, edi
je 0x4416c7
mov esi, dword [sym.imp.KERNEL32.dll_GetProcAddress]
push str.MessageBoxA
push edi
call esi
test eax, eax
je 0x4416c7
push eax
call fcn.00439ba8
mov dword [esp], 0x44b774
push edi
mov dword [0x45e460], eax
call esi
push eax
call fcn.00439ba8
mov dword [esp], str.GetLastActivePopup
push edi
mov dword [0x45e464], eax
call esi
push eax
call fcn.00439ba8
mov dword [esp], str.GetUserObjectInformationA
push edi
mov dword [0x45e468], eax
call esi
push eax
call fcn.00439ba8
pop ecx
mov dword [0x45e470], eax
test eax, eax
je 0x441616
push str.GetProcessWindowStation
push edi
call esi
push eax
call fcn.00439ba8
pop ecx
mov dword [0x45e46c], eax
mov eax, dword [0x45e46c]
cmp eax, ebx
je 0x44166e
cmp dword [0x45e470], ebx
je 0x44166e
push eax
call fcn.00439c23
push dword [0x45e470]
mov esi, eax
call fcn.00439c23
pop ecx
pop ecx
mov edi, eax
test esi, esi
je 0x44166e
test edi, edi
je 0x44166e
call esi
test eax, eax
je 0x441665
lea ecx, [ebp - 8]
push ecx
push 0xc
lea ecx, [ebp - 0x14]
push ecx
push 1
push eax
call edi
test eax, eax
je 0x441665
test byte [ebp - 0xc], 1
jne 0x44166e
or dword [ebp + 0x10], 0x200000
jmp 0x4416a7
mov eax, dword [0x45e464]
cmp eax, ebx
je 0x4416a7
push eax
call fcn.00439c23
pop ecx
test eax, eax
je 0x4416a7
call eax
mov dword [ebp - 4], eax
test eax, eax
je 0x4416a7
mov eax, dword [0x45e468]
cmp eax, ebx
je 0x4416a7
push eax
call fcn.00439c23
pop ecx
test eax, eax
je 0x4416a7
push dword [ebp - 4]
call eax
mov dword [ebp - 4], eax
push dword [0x45e460]
call fcn.00439c23
pop ecx
test eax, eax
je 0x4416c7
push dword [ebp + 0x10]
push dword [ebp + 0xc]
push dword [ebp + 8]
push dword [ebp - 4]
call eax
jmp 0x4416c9
xor eax, eax
pop edi
pop esi
pop ebx
leave
ret
Function at 0x4010a0
Capabilities:
Extract resource via kernel32 functions

Disassembly:
movzx edx, word [esp + 4]
mov dword [esp + 4], edx
jmp fcn.00406b1b

Function at 0x401600
Capabilities:
Query or enumerate registry value

Disassembly:
sub esp, 0x434
mov eax, dword [0x434dc0]
xor eax, esp
mov dword [esp + 0x430], eax
push esi
push edi
mov ecx, 8
mov esi, str.SYSTEMCurrentControlSetControl
lea edi, [esp + 0x14]
rep movsd dword es:[edi], dword [esi]
push 0x1ff
lea eax, [esp + 0x3d]
push 0
push eax
mov dword [esp + 0x14], 0
movsb byte es:[edi], byte [esi]
mov byte [esp + 0x44], 0
call fcn.00416320
push 0x1ff
lea ecx, [esp + 0x249]
push 0
push ecx
mov byte [esp + 0x250], 0
call fcn.00416320
add esp, 0x18
lea edx, [esp + 8]
push edx
push 0xf003f
push 0
lea eax, [esp + 0x20]
push eax
push connect
mov dword [esp + 0x24], 1
mov dword [esp + 0x20], 0x200
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
pop edi
pop esi
test eax, eax
jne 0x40171d
lea ecx, [esp + 4]
push ecx
mov ecx, dword [esp + 4]
lea edx, [esp + 0x34]
push edx
lea eax, [esp + 0x10]
push eax
push 0
push str.SystemStartOptions
push ecx
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
test eax, eax
jne 0x401713
cmp dword [esp + 4], 6
jbe 0x401713
lea eax, [esp + 0x230]
lea ecx, [esp + 0x30]
call fcn.004015a0
lea edx, [esp + 0x230]
push str.MININT
push edx
call fcn.00414350
add esp, 8
test eax, eax
je 0x401713
mov eax, dword [esp]
push eax
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov eax, 1
mov ecx, dword [esp + 0x430]
xor ecx, esp
call fcn.00413f05
add esp, 0x434
ret
mov ecx, dword [esp]
push ecx
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov ecx, dword [esp + 0x430]
xor ecx, esp
xor eax, eax
call fcn.00413f05
add esp, 0x434
ret
Function at 0x4017b0
Capabilities:
Create process on windows
Create service
Modify service
Persist via windows service

Disassembly:
sub esp, 0x108
mov eax, dword [0x434dc0]
xor eax, esp
mov dword [esp + 0x104], eax
push edi
push 0xf003f
push 0
push 0
call dword [sym.imp.ADVAPI32.dll_OpenSCManagerA]
mov edi, eax
test edi, edi
jne 0x4017f9
call dword [sym.imp.KERNEL32.dll_GetLastError]
or eax, 0xffffffff
pop edi
mov ecx, dword [esp + 0x104]
xor ecx, esp
call fcn.00413f05
add esp, 0x108
ret
push ebx
push esi
push 0
push 0
mov ebx, dword [sym.imp.ADVAPI32.dll_CreateServiceA]
push 0
push 0
push 0
push 0x438cd8
push 1
push 2
push 0x10
push 0xf01ff
push str.ShareBit_Remote_Desktop_Service
push str.rmtserver
push edi
call ebx
mov esi, eax
test esi, esi
jne 0x4018d3
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0x431
jne 0x4018af
call fcn.00401740
push 0xff
lea eax, [esp + 0x15]
push esi
push eax
mov byte [esp + 0x1c], 0
call fcn.00416320
push str.rmtserver
lea ecx, [esp + 0x20]
push str.sc.exe_delete__s
push ecx
call fcn.004143d6
add esp, 0x18
push esi
lea edx, [esp + 0x14]
push edx
call dword [sym.imp.KERNEL32.dll_WinExec]
push 0x1388
call dword [sym.imp.KERNEL32.dll_Sleep]
push esi
push esi
push esi
push esi
push esi
push 0x438cd8
push 1
push 2
push 0x10
push 0xf01ff
push str.ShareBit_Remote_Desktop_Service
push str.rmtserver
push edi
call ebx
mov esi, eax
test esi, esi
jne 0x4018d3
push edi
call dword [sym.imp.ADVAPI32.dll_CloseServiceHandle]
pop esi
pop ebx
mov eax, 0xfffffffe
pop edi
mov ecx, dword [esp + 0x104]
xor ecx, esp
call fcn.00413f05
add esp, 0x108
ret
lea eax, [esp + 0xc]
push eax
push 1
push esi
mov dword [esp + 0x18], str.Remote_Desktop_Service_Designed_by_ShareBit_QQ:82170290__in_2020.08.04_14:00:00
call dword [sym.imp.ADVAPI32.dll_ChangeServiceConfig2A]
push esi
mov esi, dword [sym.imp.ADVAPI32.dll_CloseServiceHandle]
call esi
push edi
call esi
mov ecx, dword [esp + 0x110]
pop esi
pop ebx
pop edi
xor ecx, esp
xor eax, eax
call fcn.00413f05
add esp, 0x108
ret
Function at 0x401e40
Capabilities:
Check for time delay via gettickcount
Enumerate services
Query service status
Stop service

Disassembly:
push ebp
mov ebp, esp
push 0xfffffffffffffffe
push 0x431ad8
push 0x416b00
mov eax, dword fs:[0]
push eax
sub esp, 0x6c
push ebx
push esi
push edi
mov eax, dword [0x434dc0]
xor dword [ebp - 8], eax
xor eax, ebp
push eax
lea eax, [ebp - 0x10]
mov dword fs:[0], eax
call dword [sym.imp.KERNEL32.dll_GetTickCount]
mov dword [ebp - 0x2c], eax
mov dword [ebp - 0x30], 0x2710
lea eax, [ebp - 0x20]
push eax
lea ecx, [ebp - 0x1c]
push ecx
push 0
push 0
push 1
mov edi, dword [ebp - 0x30]
push edi
mov ebx, dword [sym.imp.ADVAPI32.dll_EnumDependentServicesA]
call ebx
test eax, eax
jne 0x402028
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0xea
jne 0x401efb
mov edx, dword [ebp - 0x1c]
push edx
push 8
call dword [sym.imp.KERNEL32.dll_GetProcessHeap]
push eax
call dword [sym.imp.KERNEL32.dll_HeapAlloc]
mov esi, eax
mov dword [ebp - 0x28], esi
test esi, esi
je 0x401efb
mov dword [ebp - 4], 0
lea eax, [ebp - 0x20]
push eax
lea ecx, [ebp - 0x1c]
push ecx
mov edx, dword [ebp - 0x1c]
push edx
push esi
push 1
push edi
call ebx
test eax, eax
jne 0x401f0f
push 0xfffffffffffffffe
lea eax, [ebp - 0x10]
push eax
push 0x434dc0
call fcn.0041c178
add esp, 0xc
xor eax, eax
mov ecx, dword [ebp - 0x10]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
xor ebx, ebx
mov dword [ebp - 0x24], ebx
cmp ebx, dword [ebp - 0x20]
jae 0x40201c
lea ecx, [ebx + ebx*8]
lea esi, [esi + ecx*4]
mov ecx, 9
lea edi, [ebp - 0x7c]
rep movsd dword es:[edi], dword [esi]
push 0x24
mov edx, dword [ebp - 0x7c]
push edx
mov eax, dword [ebp - 0x30]
push eax
call dword [sym.imp.ADVAPI32.dll_OpenServiceA]
mov esi, eax
mov dword [ebp - 0x34], esi
test esi, esi
jne 0x401f6d
push 0xfffffffffffffffe
lea ecx, [ebp - 0x10]
push ecx
push 0x434dc0
call fcn.0041c178
add esp, 0xc
xor eax, eax
mov ecx, dword [ebp - 0x10]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
mov edi, 1
mov dword [ebp - 4], edi
lea edx, [ebp - 0x58]
push edx
push edi
push esi
call dword [sym.imp.ADVAPI32.dll_ControlService]
test eax, eax
je 0x401ee8
lea esp, [esp]
cmp dword [ebp - 0x54], edi
je 0x401ff0
mov ecx, dword [ebp - 0x40]
push ecx
call dword [sym.imp.KERNEL32.dll_Sleep]
lea edx, [ebp - 0x1c]
push edx
push 0x24
lea eax, [ebp - 0x58]
push eax
push 0
push esi
call dword [sym.imp.ADVAPI32.dll_QueryServiceStatusEx]
test eax, eax
je 0x401f46
cmp dword [ebp - 0x54], edi
je 0x401ff0
call dword [sym.imp.KERNEL32.dll_GetTickCount]
sub eax, dword [ebp - 0x2c]
cmp eax, dword [ebp - 0x30]
jbe 0x401f90
push 0xfffffffffffffffe
lea edx, [ebp - 0x10]
push edx
push 0x434dc0
call fcn.0041c178
add esp, 0xc
xor eax, eax
mov ecx, dword [ebp - 0x10]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
mov dword [ebp - 4], 0
call fcn.00402014
add ebx, edi
mov dword [ebp - 0x24], ebx
mov esi, dword [ebp - 0x28]
jmp 0x401f14
mov dword [ebp - 4], 0xfffffffe
call fcn.00402042
mov eax, 1
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 0x4047b0
Capabilities:
Extract resource via kernel32 functions

Disassembly:
push ebx
mov ebx, dword [esp + 8]
push edi
mov edi, dword [esp + 0x10]
push edi
push ebx
call dword [sym.imp.KERNEL32.dll_LoadResource]
test eax, eax
jne 0x4047c9
pop edi
pop ebx
ret
push esi
push eax
call dword [sym.imp.KERNEL32.dll_LockResource]
mov esi, eax
test esi, esi
je 0x404804
push edi
push ebx
call dword [sym.imp.KERNEL32.dll_SizeofResource]
mov ecx, dword [esp + 0x18]
add eax, esi
and ecx, 0xf
jbe 0x404800
lea ebx, [ebx]
cmp esi, eax
jae 0x404804
sub ecx, 1
movzx edx, word [esi]
lea esi, [esi + edx*2 + 2]
jne 0x4047f0
cmp esi, eax
jb 0x40480a
pop esi
pop edi
xor eax, eax
pop ebx
ret
movzx eax, word [esi]
neg eax
sbb eax, eax
and eax, esi
pop esi
pop edi
pop ebx
ret

Function at 0x404f30
Capabilities:
Encode data using xor

Disassembly:
test esi, esi
jne 0x404f37
xor eax, eax
ret
mov eax, esi
lea edx, [eax + 1]
lea esp, [esp]
mov cl, byte [eax]
inc eax
test cl, cl
jne 0x404f40
sub eax, edx
mov edx, eax
mov eax, 0
mov ecx, eax
je 0x404f79
push edi
jmp 0x404f60
movsx edi, byte [ecx + esi]
add edi, eax
imul edi, edi, 0x401
mov eax, edi
shr edi, 6
inc ecx
xor eax, edi
cmp ecx, edx
jb 0x404f60
pop edi
lea ecx, [eax + eax*8]
mov eax, ecx
shr eax, 0xb
xor eax, ecx
imul eax, eax, 0x8001
ret

Function at 0x405830
Capabilities:
Read file on windows

Disassembly:
push esi
push 0x42e954
push eax
call fcn.0041463b
mov esi, eax
add esp, 8
test esi, esi
jne 0x405847
pop esi
ret
push ebx
push edi
push 2
push 0
push esi
call fcn.004160db
push esi
call fcn.00415fe3
push esi
mov ebx, eax
call fcn.00415419
lea ecx, [ebx + 1]
push ecx
call fcn.00414bef
mov edi, eax
add esp, 0x18
test edi, edi
jne 0x40587a
push str.iniparser_malloc_fail_n
jmp 0x405890
push esi
push ebx
push 1
push edi
call fcn.00415e29
add esp, 0x10
cmp eax, ebx
je 0x4058a4
push str.read_inifile_fail_n
call fcn.00415ac4
push esi
call fcn.004146c9
add esp, 8
pop edi
pop ebx
xor eax, eax
pop esi
ret
push esi
call fcn.004146c9
add esp, 4
mov byte [edi + ebx], 0
mov eax, edi
pop edi
pop ebx
pop esi
ret

Function at 0x40c516
Capabilities:
Extract resource via kernel32 functions

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push ecx
push ebx
push esi
push edi
xor ebx, ebx
xor edi, edi
mov dword [ebp - 4], ecx
cmp dword [ebp + 8], ebx
je 0x40c55d
call fcn.0040f56f
mov esi, dword [eax + 0xc]
push 0xf0
push dword [ebp + 8]
push esi
call dword [sym.imp.KERNEL32.dll_FindResourceA]
test eax, eax
je 0x40c55d
push eax
push esi
call dword [sym.imp.KERNEL32.dll_LoadResource]
mov ebx, eax
test ebx, ebx
je 0x40c579
push ebx
call dword [sym.imp.KERNEL32.dll_LockResource]
mov edi, eax
mov ecx, dword [ebp - 4]
push edi
call fcn.0040c090
mov esi, eax
test edi, edi
je 0x40c577
test ebx, ebx
je 0x40c577
push ebx
call dword [sym.imp.KERNEL32.dll_FreeResource]
mov eax, esi
pop edi
pop esi
pop ebx
leave
ret 4

Function at 0x413f05
Capabilities:
Terminate process

Disassembly:
cmp ecx, dword [0x434dc0]
jne 0x413f0f
repz ret
jmp fcn.0041931f
Function at 0x42589b
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.0041959a
and dword [ebp - 4], 0
cmp dword [0x438860], 0
mov ebx, eax
jne 0x42594c
push str.USER32.DLL
call dword [sym.imp.KERNEL32.dll_LoadLibraryA]
mov edi, eax
test edi, edi
je 0x4259fd
mov esi, dword [sym.imp.KERNEL32.dll_GetProcAddress]
push 0x42db3c
push edi
call esi
test eax, eax
je 0x4259fd
push eax
call fcn.00419528
mov dword [esp], 0x42db2c
push edi
mov dword [0x438860], eax
call esi
push eax
call fcn.00419528
mov dword [esp], 0x42db18
push edi
mov dword [0x438864], eax
call esi
push eax
call fcn.00419528
mov dword [esp], str.GetUserObjectInformationA
push edi
mov dword [0x438868], eax
call esi
push eax
call fcn.00419528
pop ecx
mov dword [0x438870], eax
test eax, eax
je 0x42594c
push str.GetProcessWindowStation
push edi
call esi
push eax
call fcn.00419528
pop ecx
mov dword [0x43886c], eax
mov eax, dword [0x43886c]
cmp eax, ebx
je 0x4259a4
cmp dword [0x438870], ebx
je 0x4259a4
push eax
call fcn.004195a3
push dword [0x438870]
mov esi, eax
call fcn.004195a3
pop ecx
pop ecx
mov edi, eax
test esi, esi
je 0x4259a4
test edi, edi
je 0x4259a4
call esi
test eax, eax
je 0x42599b
lea ecx, [ebp - 8]
push ecx
push 0xc
lea ecx, [ebp - 0x14]
push ecx
push 1
push eax
call edi
test eax, eax
je 0x42599b
test byte [ebp - 0xc], 1
jne 0x4259a4
or dword [ebp + 0x10], 0x200000
jmp 0x4259dd
mov eax, dword [0x438864]
cmp eax, ebx
je 0x4259dd
push eax
call fcn.004195a3
pop ecx
test eax, eax
je 0x4259dd
call eax
mov dword [ebp - 4], eax
test eax, eax
je 0x4259dd
mov eax, dword [0x438868]
cmp eax, ebx
je 0x4259dd
push eax
call fcn.004195a3
pop ecx
test eax, eax
je 0x4259dd
push dword [ebp - 4]
call eax
mov dword [ebp - 4], eax
push dword [0x438860]
call fcn.004195a3
pop ecx
test eax, eax
je 0x4259fd
push dword [ebp + 0x10]
push dword [ebp + 0xc]
push dword [ebp + 8]
push dword [ebp - 4]
call eax
jmp 0x4259ff
xor eax, eax
pop edi
pop esi
pop ebx
leave
ret
Function at 0x404ef0
Capabilities:
Encode data using add xor sub operations
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
sub esp, 0xc
push edi
mov dword [ebp - 8], edx
mov dword [ebp - 0xc], ecx
call fcn.0040ab60
mov edi, eax
test edi, edi
je 0x404f93
mov dl, byte [0x4532b6]
push ebx
push esi
mov si, word [0x4532b4]
xor ebx, ebx
mov word [ebp - 4], si
mov byte [ebp - 2], dl
mov eax, 0x51eb851f
mov cl, bl
mul ebx
shr edx, 4
movsx eax, dl
imul eax, eax, 0x32
sub cl, al
add cl, 0x31
xor byte [ebp + ebx - 4], cl
inc ebx
cmp ebx, 3
jl 0x404f24
lea eax, [ebp - 4]
push eax
push dword [ebp - 8]
call dword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll_fopen]
push dword [ebp - 0xc]
mov esi, eax
push 0x2712
push edi
call fcn.0040ac10
push esi
push 0x2711
push edi
call fcn.0040ac10
push 0
push 0x4e2b
push edi
call fcn.0040ac10
push edi
call fcn.0040ac00
push esi
call dword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll_fclose]
push edi
call fcn.0040ab40
add esp, 0x38
pop esi
pop ebx
xor eax, eax
pop edi
mov esp, ebp
pop ebp
ret