joyce8/EMBER2024-capa huggingface dataset:
Function at 0x1003edb0
Capabilities:
Extract resource via kernel32 functions

Disassembly:
push ebp
lea ebp, [esp - 0x408]
sub esp, 0x408
push 0xffffffffffffffff
push 0x100974c0
mov eax, dword fs:[0]
push eax
sub esp, 0x1c
mov eax, dword [0x100b7bd0]
xor eax, ebp
mov dword [ebp + 0x404], eax
push ebx
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov dword [ebp - 0x10], esp
mov esi, ecx
mov eax, dword [ebp + 0x418]
mov edi, dword [ebp + 0x410]
mov ebx, dword [ebp + 0x414]
mov dword [ebp - 0x14], eax
call dword [0x100b90c0]
xor eax, eax
mov dword [ebp - 0x1c], eax
mov dword [ebp - 4], eax
mov dword [ebp - 0x24], esi
mov dword [ebp - 0x28], eax
mov dword [ebp], eax
push 2
push eax
push edi
mov byte [ebp - 4], 1
call dword [sym.imp.KERNEL32.dll_LoadLibraryExW]
mov edi, eax
test edi, edi
mov dword [ebp - 0x18], edi
jne 0x1003ee3d
call fcn.1003ca10
mov esi, eax
jmp 0x1003ef25
mov ecx, dword [ebp - 0x14]
push ecx
push ebx
push edi
call dword [sym.imp.KERNEL32.dll_FindResourceW]
mov esi, eax
test esi, esi
jne 0x1003ee59
call fcn.1003ca10
jmp 0x1003ef1c
push esi
push edi
call dword [sym.imp.KERNEL32.dll_LoadResource]
test eax, eax
mov dword [ebp - 0x20], eax
jne 0x1003ee72
call fcn.1003ca10
jmp 0x1003ef1c
push esi
push edi
call dword [sym.imp.KERNEL32.dll_SizeofResource]
mov esi, eax
lea eax, [esi + 1]
cmp eax, esi
mov dword [ebp - 0x14], esi
jae 0x1003eea8
lea edx, [ebp + 4]
cmp dword [ebp], edx
je 0x1003ee96
lea ecx, [ebp]
call fcn.1003d1d0
lea ecx, [ebp - 0x1c]
call fcn.1000f610
mov eax, 0x8007000e
jmp 0x1003ef42
push eax
lea ecx, [ebp]
mov byte [ebp - 4], 2
call fcn.1003dac0
mov dword [ebp - 4], 1
jmp 0x1003eed1
mov ebx, dword [ebp]
test ebx, ebx
jne 0x1003eedf
mov esi, 0x8007000e
jmp 0x1003ef1e
call dword [0x100b90c0]
mov ecx, dword [ebp - 0x20]
push esi
push ebx
push esi
push ecx
push 0
push eax
call dword [sym.imp.KERNEL32.dll_MultiByteToWideChar]
test eax, eax
jne 0x1003ef00
call fcn.1003ca10
jmp 0x1003ef1c
mov edx, dword [ebp]
mov word [edx + eax*2], 0
mov eax, dword [ebp + 0x41c]
mov ecx, dword [ebp]
push eax
push ecx
lea ecx, [ebp - 0x28]
call fcn.1003eb20
mov esi, eax
push edi
call dword [sym.imp.KERNEL32.dll_FreeLibrary]
lea edx, [ebp + 4]
cmp dword [ebp], edx
je 0x1003ef40
lea ecx, [ebp]
call fcn.1003d1d0
jmp 0x1003ef40
mov eax, esi
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [ebp + 0x404]
xor ecx, ebp
call fcn.1007a1bc
add ebp, 0x408
mov esp, ebp
pop ebp
ret 0x10
Function at 0x10040280
Capabilities:
Check mutex on windows

Disassembly:
push esi
mov esi, ecx
cmp dword [esi + 0xa8], 0
jne 0x100402d7
push str.K8ShellWorkEvent
push 1
push 0
call dword [sym.imp.KERNEL32.dll_CreateMutexW]
test eax, eax
mov dword [esi + 0xa8], eax
je 0x100402fe
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0xb7
jne 0x100402f8
mov eax, dword [esi + 0xa8]
push eax
call dword [sym.imp.KERNEL32.dll_CloseHandle]
push str.K8ShellWorkEvent
push 0
push 0x80100000
call dword [sym.imp.KERNEL32.dll_OpenMutexW]
mov dword [esi + 0xa8], eax
mov esi, dword [esi + 0xa8]
test esi, esi
je 0x100402fe
mov ecx, dword [esp + 8]
push ecx
push esi
call dword [sym.imp.KERNEL32.dll_WaitForSingleObject]
neg eax
sbb eax, eax
add eax, 1
pop esi
ret 4
mov al, 1
pop esi
ret 4
xor al, al
pop esi
ret 4
Function at 0x100495d0
Capabilities:
Read .ini file

Disassembly:
push 0xffffffffffffffff
push 0x10098703
mov eax, dword fs:[0]
push eax
sub esp, 0x20
push ebx
push esi
push edi
mov eax, dword [0x100b7bd0]
xor eax, esp
push eax
lea eax, [esp + 0x30]
mov dword fs:[0], eax
mov esi, ecx
mov dword [esp + 0x10], esi
xor ebx, ebx
mov eax, 7
mov dword [esi + 0x18], eax
mov dword [esi + 0x14], ebx
mov word [esi + 4], bx
mov dword [esi + 0x34], eax
mov dword [esi + 0x30], ebx
mov dword [esp + 0x38], ebx
mov word [esi + 0x20], bx
mov dword [esi + 0x50], eax
mov dword [esi + 0x4c], ebx
mov word [esi + 0x3c], bx
mov dword [esi + 0x6c], eax
mov dword [esi + 0x68], ebx
mov word [esi + 0x58], bx
lea ecx, [esi + 0x88]
mov byte [esp + 0x38], 3
call fcn.100494d0
mov dword [esi + 0xa4], ebx
mov dword [esi + 0xa8], ebx
lea edi, [esi + 0xac]
mov ecx, edi
mov byte [esp + 0x38], 5
call fcn.10008000
push ebx
push ebx
push ebx
push ebx
mov ecx, edi
mov byte [esp + 0x48], 6
mov dword [esi + 0x70], ebx
mov dword [esi + 0x74], ebx
mov dword [esi + 0xcc], ebx
mov dword [esi + 0xd0], ebx
mov word [esi + 0x9c], bx
mov word [esi + 0x9e], bx
mov word [esi + 0xa0], bx
mov word [esi + 0xa2], bx
mov dword [esi + 0x84], 0xfffffffe
call fcn.10008080
lea eax, [esp + 0x14]
push eax
call fcn.1004c440
mov edi, 8
add esp, 4
cmp dword [eax + 0x18], edi
jb 0x100496c1
mov eax, dword [eax + 4]
jmp 0x100496c4
add eax, 4
push eax
push ebx
push 0x100a15e8
push str.GUEST
call dword [sym.imp.KERNEL32.dll_GetPrivateProfileIntW]
cmp dword [esp + 0x2c], edi
mov dword [esi + 0x78], eax
mov dword [esi + 0x7c], ebx
jb 0x100496ef
mov ecx, dword [esp + 0x18]
push ecx
call fcn.10079508
add esp, 4
mov byte [esi + 0xdc], bl
mov dword [esi + 0xd4], ebx
mov dword [esi + 0xd8], ebx
mov eax, esi
mov ecx, dword [esp + 0x30]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
add esp, 0x2c
ret
Function at 0x1004c030
Capabilities:
Access peb ldr_data

Disassembly:
push 0xffffffffffffffff
push 0x10098cf0
mov eax, dword fs:[0]
push eax
sub esp, 0x40
mov eax, dword [0x100b7bd0]
xor eax, esp
mov dword [esp + 0x3c], eax
push esi
push edi
mov eax, dword [0x100b7bd0]
xor eax, esp
push eax
lea eax, [esp + 0x4c]
mov dword fs:[0], eax
mov edi, dword [esp + 0x5c]
lea eax, [esp + 0x2c]
xor esi, esi
push eax
mov dword [esp + 0x2c], esi
call fcn.1004bd60
add esp, 4
push 6
push str.tipadr
lea ecx, [esp + 0x14]
mov dword [esp + 0x5c], esi
mov dword [esp + 0x2c], 7
mov dword [esp + 0x28], esi
mov word [esp + 0x18], si
call fcn.10004560
lea ecx, [esp + 0xc]
push ecx
lea edx, [esp + 0x30]
push edx
push edi
mov byte [esp + 0x60], 1
call fcn.100107e0
add esp, 0xc
cmp dword [esp + 0x24], 8
jb 0x1004c0c8
mov eax, dword [esp + 0x10]
push eax
call fcn.10079508
add esp, 4
cmp dword [esp + 0x44], 8
mov dword [esp + 0x24], 7
mov dword [esp + 0x20], esi
mov word [esp + 0x10], si
jb 0x1004c0ed
mov ecx, dword [esp + 0x30]
push ecx
call fcn.10079508
add esp, 4
mov eax, edi
mov ecx, dword [esp + 0x4c]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
mov ecx, dword [esp + 0x3c]
xor ecx, esp
call fcn.1007a1bc
add esp, 0x4c
ret

Function at 0x1004c440
Capabilities:
Access peb ldr_data

Disassembly:
push 0xffffffffffffffff
push 0x10098cf0
mov eax, dword fs:[0]
push eax
sub esp, 0x40
mov eax, dword [0x100b7bd0]
xor eax, esp
mov dword [esp + 0x3c], eax
push esi
push edi
mov eax, dword [0x100b7bd0]
xor eax, esp
push eax
lea eax, [esp + 0x4c]
mov dword fs:[0], eax
mov edi, dword [esp + 0x5c]
lea eax, [esp + 0x2c]
xor esi, esi
push eax
mov dword [esp + 0x2c], esi
call fcn.1004bd60
add esp, 4
push 9
push str.guest.ini
lea ecx, [esp + 0x14]
mov dword [esp + 0x5c], esi
mov dword [esp + 0x2c], 7
mov dword [esp + 0x28], esi
mov word [esp + 0x18], si
call fcn.10004560
lea ecx, [esp + 0xc]
push ecx
lea edx, [esp + 0x30]
push edx
push edi
mov byte [esp + 0x60], 1
call fcn.100107e0
add esp, 0xc
cmp dword [esp + 0x24], 8
jb 0x1004c4d8
mov eax, dword [esp + 0x10]
push eax
call fcn.10079508
add esp, 4
cmp dword [esp + 0x44], 8
mov dword [esp + 0x24], 7
mov dword [esp + 0x20], esi
mov word [esp + 0x10], si
jb 0x1004c4fd
mov ecx, dword [esp + 0x30]
push ecx
call fcn.10079508
add esp, 4
mov eax, edi
mov ecx, dword [esp + 0x4c]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
mov ecx, dword [esp + 0x3c]
xor ecx, esp
call fcn.1007a1bc
add esp, 0x4c
ret
Function at 0x10058ec0
Capabilities:
Get number of processors

Disassembly:
push 0xffffffffffffffff
push 0x1009aaa8
mov eax, dword fs:[0]
push eax
sub esp, 0x174
mov eax, dword [0x100b7bd0]
xor eax, esp
mov dword [esp + 0x170], eax
push ebp
push esi
push edi
mov eax, dword [0x100b7bd0]
xor eax, esp
push eax
lea eax, [esp + 0x184]
mov dword fs:[0], eax
mov esi, ecx
push 1
mov dword [esp + 0x14], esi
call fcn.10028d50
xor ebp, ebp
lea ecx, [esi + 0x44]
mov dword [esp + 0x18c], ebp
mov dword [esi], vtable.GameMgr::GMStatManager.0
call fcn.10007f80
mov dword [esi + 0x4c], ebp
mov dword [esi + 0x50], ebp
mov dword [esi + 0x54], ebp
lea edi, [esi + 0x58]
mov ecx, edi
mov byte [esp + 0x18c], 2
call fcn.1005f1d0
mov dword [edi + 4], eax
mov byte [eax + 0x2d], 1
mov eax, dword [edi + 4]
mov dword [eax + 4], eax
mov eax, dword [edi + 4]
mov dword [eax], eax
mov eax, dword [edi + 4]
mov dword [eax + 8], eax
mov dword [edi + 8], ebp
lea ecx, [esi + 0x64]
mov byte [esp + 0x18c], 3
call fcn.10007f80
lea edi, [esi + 0x6c]
mov ecx, edi
mov byte [esp + 0x18c], 4
mov dword [esi + 0x68], ebp
call fcn.10055c30
mov dword [edi + 4], eax
mov dword [edi + 8], ebp
lea ecx, [esi + 0x78]
mov byte [esp + 0x18c], 5
call fcn.10007f80
lea ecx, [esi + 0x80]
mov byte [esp + 0x18c], 6
mov dword [esi + 0x7c], ebp
call fcn.10007f80
mov dword [esi + 0x8c], ebp
mov dword [esi + 0x90], ebp
mov dword [esi + 0x94], ebp
lea edi, [esi + 0x98]
mov dword [edi + 0x18], 7
mov dword [edi + 0x14], ebp
mov word [edi + 4], bp
lea ecx, [esp + 0x30]
mov byte [esp + 0x18c], 9
call fcn.1000d330
lea ecx, [esp + 0x30]
mov byte [esp + 0x18c], 0xa
call fcn.1000d6a0
lea ecx, [esp + 0x30]
call fcn.1000d680
lea ecx, [esp + 0x30]
mov byte [esi + 0x84], al
call fcn.1000d690
mov byte [esi + 0x85], al
lea eax, [esp + 0x14]
push eax
mov ecx, esi
call fcn.10056160
push 0xffffffffffffffff
push ebp
mov byte [esp + 0x194], 0xb
push eax
mov ecx, edi
call fcn.10002490
cmp dword [esp + 0x2c], 8
jb 0x1005903e
mov ecx, dword [esp + 0x18]
push ecx
call fcn.10079508
add esp, 4
lea ecx, [esp + 0x30]
mov dword [esi + 0xb4], ebp
mov byte [esp + 0x18c], 9
call fcn.1000d4e0
mov eax, esi
mov ecx, dword [esp + 0x184]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebp
mov ecx, dword [esp + 0x170]
xor ecx, esp
call fcn.1007a1bc
add esp, 0x180
ret
Function at 0x10077210
Capabilities:
Get common file path

Disassembly:
push ebp
mov ebp, esp
sub esp, 0xc
push esi
mov dword [ebp - 8], 0
cmp dword [ebp + 8], 0
je 0x100772d4
push 0
mov eax, dword [ebp - 8]
push eax
call dword [sym.imp.KERNEL32.dll_GetSystemDirectoryW]
mov dword [ebp - 0xc], eax
mov ecx, dword [ebp + 8]
push ecx
call fcn.1007e30a
add esp, 4
mov edx, dword [ebp - 0xc]
lea eax, [edx + eax + 1]
shl eax, 1
push eax
push 0x40
call dword [sym.imp.KERNEL32.dll_LocalAlloc]
mov dword [ebp - 8], eax
cmp dword [ebp - 8], 0
jne 0x10077262
xor eax, eax
jmp 0x100772d7
mov ecx, dword [ebp - 0xc]
push ecx
mov edx, dword [ebp - 8]
push edx
call dword [sym.imp.KERNEL32.dll_GetSystemDirectoryW]
mov dword [ebp - 0xc], eax
mov eax, dword [ebp - 0xc]
mov ecx, dword [ebp - 8]
movzx edx, word [ecx + eax*2 - 2]
cmp edx, 0x5c
je 0x10077298
mov eax, dword [ebp - 0xc]
mov ecx, dword [ebp - 8]
mov word [ecx + eax*2], 0x5c
mov edx, dword [ebp - 0xc]
add edx, 1
mov dword [ebp - 0xc], edx
mov dword [ebp - 4], 0
jmp 0x100772aa
mov eax, dword [ebp - 4]
add eax, 1
mov dword [ebp - 4], eax
mov ecx, dword [ebp + 8]
push ecx
call fcn.1007e30a
add esp, 4
cmp dword [ebp - 4], eax
jae 0x100772d4
mov edx, dword [ebp - 0xc]
add edx, dword [ebp - 4]
mov eax, dword [ebp - 8]
mov ecx, dword [ebp - 4]
mov esi, dword [ebp + 8]
mov cx, word [esi + ecx*2]
mov word [eax + edx*2], cx
jmp 0x100772a1
mov eax, dword [ebp - 8]
pop esi
mov esp, ebp
pop ebp
ret
Function at 0x1007a1bc
Capabilities:
Terminate process

Disassembly:
cmp ecx, dword [0x100b7bd0]
jne 0x1007a1c6
repz ret
jmp fcn.10081f9c
Function at 0x10082f6c
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 + 0x100b7fe8]
je 0x10082f87
inc edi
cmp edi, 0x17
jb 0x10082f78
cmp edi, 0x17
jae 0x10083107
push ebp
push 3
call fcn.10090908
cmp eax, 1
pop ecx
je 0x100830d3
push 3
call fcn.10090908
test eax, eax
pop ecx
jne 0x10082fbb
cmp dword [0x100bbf8c], 1
je 0x100830d3
cmp ebx, 0xfc
je 0x10083106
push str.Runtime_Error__n_nProgram:
mov ebx, 0x314
push ebx
mov ebp, 0x100bc490
push ebp
call fcn.10081540
add esp, 0xc
test eax, eax
je 0x10082ff1
push esi
push esi
push esi
push esi
push esi
call fcn.10079517
add esp, 0x14
push 0x104
mov esi, 0x100bc4a9
push esi
push 0
mov byte [0x100bc5ad], 0
call dword [sym.imp.KERNEL32.dll_GetModuleFileNameA]
test eax, eax
jne 0x10083035
push str._program_name_unknown_
push 0x2fb
push esi
call fcn.10081540
add esp, 0xc
test eax, eax
je 0x10083035
xor eax, eax
push eax
push eax
push eax
push eax
push eax
call fcn.10079517
add esp, 0x14
push esi
call fcn.1007e640
inc eax
cmp eax, 0x3c
pop ecx
jbe 0x1008307a
push esi
call fcn.1007e640
sub esi, 0x3b
add eax, esi
push 3
mov ecx, 0x100bc7a4
push 0x100a4c04
sub ecx, eax
push ecx
push eax
call fcn.1008e09d
add esp, 0x14
test eax, eax
je 0x1008307a
xor esi, esi
push esi
push esi
push esi
push esi
push esi
call fcn.10079517
add esp, 0x14
jmp 0x1008307c
xor esi, esi
push 0x100a4c00
push ebx
push ebp
call fcn.1008e02c
add esp, 0xc
test eax, eax
je 0x1008309c
push esi
push esi
push esi
push esi
push esi
call fcn.10079517
add esp, 0x14
push dword [edi*8 + 0x100b7fec]
push ebx
push ebp
call fcn.1008e02c
add esp, 0xc
test eax, eax
je 0x100830be
push esi
push esi
push esi
push esi
push esi
call fcn.10079517
add esp, 0x14
push 0x12010
push str.Microsoft_Visual_C_Runtime_Library
push ebp
call fcn.1009074b
add esp, 0xc
jmp 0x10083106
push 0xfffffffffffffff4
call dword [sym.imp.KERNEL32.dll_GetStdHandle]
mov ebp, eax
cmp ebp, esi
je 0x10083106
cmp ebp, 0xffffffff
je 0x10083106
push 0
lea eax, [esp + 0x14]
push eax
lea esi, [edi*8 + 0x100b7fec]
push dword [esi]
call fcn.1007e640
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 0x1009074b
Capabilities:
Link many functions at runtime

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x20
push ebx
push esi
push edi
call fcn.1008178a
xor ebx, ebx
cmp dword [0x100bca28], ebx
mov dword [ebp - 8], eax
mov dword [ebp - 4], ebx
mov dword [ebp - 0xc], ebx
mov dword [ebp - 0x10], ebx
jne 0x10090821
push str.USER32.DLL
call dword [sym.imp.KERNEL32.dll_LoadLibraryA]
mov edi, eax
cmp edi, ebx
je 0x10090901
mov esi, dword [sym.imp.KERNEL32.dll_GetProcAddress]
push str.MessageBoxA
push edi
call esi
cmp eax, ebx
je 0x10090901
push eax
call fcn.1008171c
mov dword [esp], 0x100a5e38
push edi
mov dword [0x100bca28], eax
call esi
push eax
call fcn.1008171c
mov dword [esp], str.GetLastActivePopup
push edi
mov dword [0x100bca2c], eax
call esi
push eax
call fcn.1008171c
mov dword [0x100bca30], eax
lea eax, [ebp - 0xc]
push eax
call fcn.100810d9
test eax, eax
pop ecx
pop ecx
je 0x100907ef
push ebx
push ebx
push ebx
push ebx
push ebx
call fcn.10079517
add esp, 0x14
cmp dword [ebp - 0xc], 2
jne 0x10090821
push str.GetUserObjectInformationA
push edi
call esi
push eax
call fcn.1008171c
cmp eax, ebx
pop ecx
mov dword [0x100bca38], eax
je 0x10090821
push str.GetProcessWindowStation
push edi
call esi
push eax
call fcn.1008171c
pop ecx
mov dword [0x100bca34], eax
mov eax, dword [0x100bca34]
mov ecx, dword [ebp - 8]
cmp eax, ecx
je 0x100908a6
cmp dword [0x100bca38], ecx
je 0x100908a6
push eax
call fcn.10081793
push dword [0x100bca38]
mov esi, eax
call fcn.10081793
cmp esi, ebx
pop ecx
pop ecx
mov edi, eax
je 0x100908a6
cmp edi, ebx
je 0x100908a6
call esi
cmp eax, ebx
je 0x10090873
lea ecx, [ebp - 0x14]
push ecx
push 0xc
lea ecx, [ebp - 0x20]
push ecx
push 1
push eax
call edi
test eax, eax
je 0x10090873
test byte [ebp - 0x18], 1
jne 0x100908a6
lea eax, [ebp - 0x10]
push eax
call fcn.10081110
test eax, eax
pop ecx
je 0x1009088e
push ebx
push ebx
push ebx
push ebx
push ebx
call fcn.10079517
add esp, 0x14
cmp dword [ebp - 0x10], 4
jb 0x1009089d
or dword [ebp + 0x10], 0x200000
jmp 0x100908e1
or dword [ebp + 0x10], 0x40000
jmp 0x100908e1
mov eax, dword [0x100bca2c]
cmp eax, dword [ebp - 8]
je 0x100908e1
push eax
call fcn.10081793
cmp eax, ebx
pop ecx
je 0x100908e1
call eax
cmp eax, ebx
mov dword [ebp - 4], eax
je 0x100908e1
mov eax, dword [0x100bca30]
cmp eax, dword [ebp - 8]
je 0x100908e1
push eax
call fcn.10081793
cmp eax, ebx
pop ecx
je 0x100908e1
push dword [ebp - 4]
call eax
mov dword [ebp - 4], eax
push dword [0x100bca28]
call fcn.10081793
cmp eax, ebx
pop ecx
je 0x10090901
push dword [ebp + 0x10]
push dword [ebp + 0xc]
push dword [ebp + 8]
push dword [ebp - 4]
call eax
jmp 0x10090903
xor eax, eax
pop edi
pop esi
pop ebx
leave
ret
Function at 0x4089d0
Capabilities:
Enumerate files on windows

Disassembly:
push 0xffffffffffffffff
push 0x46f6cb
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x180
push ebx
push ebp
mov ebp, ecx
lea ecx, [esp + 8]
lea eax, [ebp + 0x40]
push eax
call fcn.00462374
mov ecx, dword [esp + 8]
mov dword [esp + 0x190], 0
mov eax, dword [ecx - 8]
test eax, eax
je 0x408a52
lea edx, [esp + 0x10]
push 1
push edx
lea ecx, [esp + 0x10]
call fcn.0045fe2a
mov eax, dword [eax]
push 0x489200
push eax
call fcn.00452934
add esp, 8
lea ecx, [esp + 0x10]
test eax, eax
setne bl
call fcn.004625ff
test bl, bl
je 0x408a52
push 0x489200
lea ecx, [esp + 0xc]
call fcn.004629db
push 0x48cd68
lea ecx, [esp + 0xc]
call fcn.004629db
mov ecx, dword [esp + 8]
lea eax, [esp + 0x48]
push eax
push ecx
call dword [sym.imp.KERNEL32.dll_FindFirstFileA]
cmp eax, 0xffffffff
mov dword [esp + 0xc], eax
jne 0x408a8e
lea ecx, [esp + 8]
mov dword [esp + 0x190], eax
call fcn.004625ff
jmp 0x408b59
push esi
mov esi, dword [esp + 0x19c]
push edi
mov edi, dword [sym.imp.USER32.dll_SendMessageA]
mov ebx, 0x23
test byte [esp + 0x50], 0x10
je 0x408b12
lea edx, [esp + 0x7c]
push 0x48cd64
push edx
call fcn.00452934
add esp, 8
test eax, eax
je 0x408b12
lea eax, [esp + 0x7c]
push 0x48cd60
push eax
call fcn.00452934
add esp, 8
test eax, eax
je 0x408b12
mov eax, dword [ebp + 0x1c]
lea edx, [esp + 0x1c]
push edx
push 0
lea ecx, [esp + 0x84]
push 0x1100
push eax
mov dword [esp + 0x2c], esi
mov dword [esp + 0x30], 0xffff0003
mov dword [esp + 0x4c], 0
mov dword [esp + 0x50], 1
mov dword [esp + 0x44], ecx
mov dword [esp + 0x34], ebx
call edi
mov edx, dword [esp + 0x14]
lea ecx, [esp + 0x50]
push ecx
push edx
call dword [sym.imp.KERNEL32.dll_FindNextFileA]
test eax, eax
jne 0x408aa2
mov eax, dword [esp + 0x14]
push eax
call dword [sym.imp.KERNEL32.dll_FindClose]
mov ecx, dword [ebp + 0x1c]
push esi
push 2
push 0x1102
push ecx
call edi
lea ecx, [esp + 0x10]
mov dword [esp + 0x198], 0xffffffff
call fcn.004625ff
pop edi
pop esi
mov ecx, dword [esp + 0x188]
pop ebp
pop ebx
mov dword fs:[0], ecx
add esp, 0x18c
ret 4

Function at 0x409350
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 0x4093b2
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 0xc
Function at 0x4093c0
Capabilities:
Create process on windows

Disassembly:
push 0xffffffffffffffff
push 0x46f74b
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x20c
mov eax, dword [0x493c98]
push esi
push edi
mov edi, ecx
mov dword [esp + 8], eax
mov eax, dword [edi + 0x44]
mov dword [esp + 0x21c], 0
test eax, eax
jne 0x4094f8
mov ecx, dword [edi + 0x48]
lea esi, [edi + 0x48]
mov eax, dword [ecx - 8]
test eax, eax
jne 0x409426
lea ecx, [esp + 8]
mov dword [esp + 0x21c], 0xffffffff
call fcn.004625ff
xor eax, eax
jmp 0x40956f
push str.mailto:
lea ecx, [esp + 0xc]
call fcn.00462788
push esi
lea ecx, [esp + 0xc]
call fcn.00462a17
mov ecx, dword [esp + 8]
push ebx
push ebp
mov ebp, dword [esp + 0x22c]
push ebp
push 0
push 0
push ecx
push str.open
push 0
call dword [sym.imp.SHELL32.dll_ShellExecuteA]
mov esi, eax
cmp esi, 0x20
ja 0x40954d
lea edx, [esp + 0x14]
mov ecx, edi
push edx
push str..htm
push closesocket
call fcn.00409350
test eax, eax
jne 0x40954d
mov ebx, dword [sym.imp.KERNEL32.dll_lstrcatA]
lea eax, [esp + 0x14]
push str._shellopencommand
push eax
call ebx
lea ecx, [esp + 0x14]
lea edx, [esp + 0x14]
push ecx
push edx
push closesocket
mov ecx, edi
call fcn.00409350
test eax, eax
jne 0x40954d
lea eax, [esp + 0x14]
push 0x48cd7c
push eax
call fcn.00453a10
mov esi, eax
add esp, 8
test esi, esi
jne 0x40952c
lea ecx, [esp + 0x14]
push 0x48cd78
push ecx
call fcn.00453990
mov esi, eax
add esp, 8
test esi, esi
jne 0x40952c
lea edx, [esp + 0x14]
push edx
call dword [sym.imp.KERNEL32.dll_lstrlenA]
lea esi, [esp + eax + 0x13]
jmp 0x40952f
lea edx, [edi + 0x4c]
lea ecx, [esp + 8]
push edx
call fcn.00462738
mov eax, dword [esp + 8]
mov ecx, dword [eax - 8]
test ecx, ecx
jne 0x40943e
lea ecx, [esp + 8]
mov dword [esp + 0x21c], 0xffffffff
call fcn.004625ff
xor eax, eax
jmp 0x40956f
mov byte [esi], 0
push 0x48cd74
push esi
call ebx
mov eax, dword [esp + 0x10]
push eax
push esi
call ebx
lea ecx, [esp + 0x14]
push ebp
push ecx
call dword [sym.imp.KERNEL32.dll_WinExec]
mov esi, eax
xor edx, edx
cmp esi, 0x20
setg dl
lea ecx, [esp + 0x10]
mov esi, edx
mov dword [esp + 0x224], 0xffffffff
call fcn.004625ff
pop ebp
mov eax, esi
pop ebx
mov ecx, dword [esp + 0x214]
pop edi
pop esi
mov dword fs:[0], ecx
add esp, 0x218
ret 4
Function at 0x419ff0
Capabilities:
Log keystrokes via polling

Disassembly:
mov eax, dword [esp + 4]
push esi
push edi
mov edi, dword [sym.imp.USER32.dll_GetKeyState]
mov cl, byte [eax + 8]
and ecx, 0xff
mov esi, ecx
cmp si, 0x60
jb 0x41a05e
cmp si, 0x69
ja 0x41a05e
add esi, 0xffd0
cmp si, 0x11
je 0x41a02e
push 0x11
call edi
test ax, ax
jge 0x41a02e
or esi, 0x2000
cmp si, 0x10
je 0x41a043
push 0x10
call edi
test ax, ax
jge 0x41a043
or esi, 0x4000
cmp si, 0x12
je 0x41a058
push 0x12
call edi
test ax, ax
jge 0x41a058
or esi, 0x8000
mov ax, si
pop edi
pop esi
ret
cmp si, 0x6d
jne 0x41a06b
mov esi, 0xbd
jmp 0x41a01f
cmp si, 0x6e
jne 0x41a078
mov esi, 0xbe
jmp 0x41a01f
cmp si, 0x6f
jne 0x41a019
mov esi, 0xbf
jmp 0x41a01f

Function at 0x41b710
Capabilities:
Encrypt data using rc4 ksa

Disassembly:
push ecx
mov eax, dword [0x4a4a30]
xor edx, edx
cmp eax, edx
jne 0x41b736
xor eax, eax
mov byte [eax + 0x4a4930], al
inc eax
cmp eax, 0x100
jl 0x41b71e
mov dword [0x4a4a30], 1
mov eax, dword [esp + 0xc]
push ebx
mov ebx, dword [esp + 0x14]
push esi
push edi
mov ecx, 0x40
mov esi, 0x4a4930
mov edi, ebx
rep movsd dword es:[edi], dword [esi]
cmp eax, edx
mov byte [ebx + 0x100], dl
mov byte [ebx + 0x101], dl
jle 0x41b7c7
xor esi, esi
push ebp
mov byte [esp + 0x20], dl
xor ecx, ecx
mov edi, dword [esp + 0x20]
mov ebp, dword [esp + 0x18]
mov al, byte [esi + ebx]
and edi, 0xff
xor edx, edx
mov dl, byte [edi + ebp]
mov ebp, eax
and ebp, 0xff
add ecx, edx
add ecx, ebp
and ecx, 0x800000ff
jns 0x41b79a
dec ecx
or ecx, 0xffffff00
inc ecx
mov byte [esp + 0x10], cl
mov ecx, dword [esp + 0x10]
and ecx, 0xff
mov dl, byte [ecx + ebx]
mov byte [esi + ebx], dl
mov byte [ecx + ebx], al
lea eax, [edi + 1]
cdq
idiv dword [esp + 0x1c]
inc esi
cmp esi, 0x100
mov byte [esp + 0x20], dl
jl 0x41b768
pop ebp
pop edi
pop esi
pop ebx
pop ecx
ret

Function at 0x41b840
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
sub esp, 8
mov eax, dword [ebp + 0x10]
push ebx
push esi
push edi
mov cl, byte [eax + 0x100]
mov dl, byte [eax + 0x101]
mov dword [ebp - 8], eax
mov byte [ebp - 1], cl
mov byte [ebp - 2], dl
xor ebx, ebx
mov bl, byte [ebp - 1]
xor edx, edx
mov dl, byte [ebp - 2]
mov esi, dword [ebp - 8]
mov edi, dword [ebp + 8]
xor eax, eax
mov ecx, dword [ebp + 0xc]
test ecx, ecx
jle 0x41b893
inc bl
mov al, byte [esi + ebx]
add dl, al
xchg byte [esi + edx], al
mov byte [esi + ebx], al
add al, byte [esi + edx]
mov al, byte [esi + eax]
xor byte [edi], al
inc edi
dec ecx
jne 0x41b87a
mov byte [ebp - 1], bl
mov byte [ebp - 2], dl
mov eax, dword [ebp + 0x10]
mov cl, byte [ebp - 1]
mov dl, byte [ebp - 2]
pop edi
pop esi
mov byte [eax + 0x100], cl
mov byte [eax + 0x101], dl
pop ebx
mov esp, ebp
pop ebp
ret