joyce8/EMBER2024-capa huggingface dataset:
Function at 0x4401b8
Capabilities:
Link many functions at runtime

Disassembly:
push ebp
mov ebp, esp
push ecx
push ebx
mov eax, dword [0x470cac]
cmp byte [eax + 0xc], 0
je 0x440325
push 0x8000
call sub.kernel32.dll_SetErrorMode
mov dword [ebp - 4], eax
xor eax, eax
push ebp
push 0x44031e
push dword fs:[eax]
mov dword fs:[eax], esp
cmp dword [0x471b94], 0
jne 0x44020c
push 0x44032c
call sub.kernel32.dll_GetModuleHandleA_2
mov ebx, eax
push 0x440334
push ebx
call sub.kernel32.dll_GetProcAddress_1
mov dword [0x471b94], eax
cmp dword [0x46fbc0], 0
jne 0x440307
push 0x440344
call sub.kernel32.dll_LoadLibraryA
mov dword [0x46fbc0], eax
cmp dword [0x46fbc0], 0
je 0x440307
push 0x440350
mov eax, dword [0x46fbc0]
push eax
call sub.kernel32.dll_GetProcAddress_1
mov dword [0x471b98], eax
push 0x440360
mov eax, dword [0x46fbc0]
push eax
call sub.kernel32.dll_GetProcAddress_1
mov dword [0x471b9c], eax
push 0x440374
mov eax, dword [0x46fbc0]
push eax
call sub.kernel32.dll_GetProcAddress_1
mov dword [0x471ba0], eax
push 0x44038c
mov eax, dword [0x46fbc0]
push eax
call sub.kernel32.dll_GetProcAddress_1
mov dword [0x471ba4], eax
push 0x4403a4
mov eax, dword [0x46fbc0]
push eax
call sub.kernel32.dll_GetProcAddress_1
mov dword [0x471ba8], eax
push 0x4403b8
mov eax, dword [0x46fbc0]
push eax
call sub.kernel32.dll_GetProcAddress_1
mov dword [0x471bac], eax
push 0x4403d0
mov eax, dword [0x46fbc0]
push eax
call sub.kernel32.dll_GetProcAddress_1
mov dword [0x471bb0], eax
push 0x4403e8
mov eax, dword [0x46fbc0]
push eax
call sub.kernel32.dll_GetProcAddress_1
mov dword [0x471bb4], eax
push 0x440404
mov eax, dword [0x46fbc0]
push eax
call sub.kernel32.dll_GetProcAddress_1
mov dword [0x471bb8], eax
push 0x440410
mov eax, dword [0x46fbc0]
push eax
call sub.kernel32.dll_GetProcAddress_1
mov dword [0x471bbc], eax
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x440325
mov eax, dword [ebp - 4]
push eax
call sub.kernel32.dll_SetErrorMode
ret
pop ebx
pop ecx
pop ebp
ret

Function at 0x4441b0
Capabilities:
Log keystrokes
Log keystrokes via polling

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffefc
push ebx
mov ebx, edx
mov word [ebp - 2], ax
mov eax, ebx
call fcn.00403efc
push 0
xor eax, eax
mov al, byte [ebp - 2]
push eax
call sub.user32.dll_MapVirtualKeyA
shl eax, 0x10
test eax, eax
je 0x4441ff
push pe_nt_image_headers32
lea edx, [ebp - 0x102]
push edx
push eax
call sub.user32.dll_GetKeyNameTextA
mov eax, ebx
lea edx, [ebp - 0x102]
mov ecx, pe_nt_image_headers32
call fcn.0040416c
pop ebx
mov esp, ebp
pop ebp
ret

Function at 0x44b93c
Capabilities:
Log keystrokes via polling

Disassembly:
push ebx
push esi
mov esi, eax
mov bl, byte [0x44b98c]
test si, 4
je 0x44b950
or bl, 1
test si, 8
je 0x44b95a
or bl, 4
test si, 1
je 0x44b964
or bl, 8
test si, 2
je 0x44b96e
or bl, 0x10
test si, 0x10
je 0x44b978
or bl, 0x20
push 0x12
call sub.user32.dll_GetKeyState
test ax, ax
jge 0x44b987
or bl, 2
mov eax, ebx
pop esi
pop ebx
ret
Function at 0x44b990
Capabilities:
Log keystrokes via polling

Disassembly:
push ebx
push esi
mov esi, eax
mov bl, byte [0x44b9c8]
push 0x10
call sub.user32.dll_GetKeyState
test ax, ax
jge 0x44b9a9
or bl, 1
push 0x11
call sub.user32.dll_GetKeyState
test ax, ax
jge 0x44b9b8
or bl, 4
test esi, 0x20000000
je 0x44b9c3
or bl, 2
mov eax, ebx
pop esi
pop ebx
ret

Function at 0x452070
Capabilities:
Get keyboard layout

Disassembly:
push ebp
mov ebp, esp
push ecx
push ebx
push esi
test dl, dl
je 0x452082
add esp, 0xfffffff0
call fcn.0040344c
mov byte [ebp - 1], dl
mov ebx, eax
xor edx, edx
mov eax, ebx
call fcn.0041af18
mov eax, dword [0x47073c]
mov dword [eax + 4], ebx
mov dword [eax], 0x452414
mov eax, dword [0x47074c]
mov dword [eax + 4], ebx
mov dword [eax], 0x452420
mov eax, ebx
call fcn.0045242c
push 0
call sub.user32.dll_GetKeyboardLayout
mov dword [ebx + 0x3c], eax
mov dl, 1
mov eax, dword [0x411d44]
call fcn.004030f8
mov dword [ebx + 0x4c], eax
mov dl, 1
mov eax, dword [0x411d44]
call fcn.004030f8
mov dword [ebx + 0x50], eax
mov dl, 1
mov eax, dword [0x411d44]
call fcn.004030f8
mov dword [ebx + 0x54], eax
mov dl, 1
mov eax, dword [0x411d44]
call fcn.004030f8
mov dword [ebx + 0x58], eax
mov dl, 1
mov eax, dword [0x411d44]
call fcn.004030f8
mov dword [ebx + 0x7c], eax
push 0
call sub.user32.dll_GetDC
mov esi, eax
push 0x5a
push esi
call sub.gdi32.dll_GetDeviceCaps
mov dword [ebx + 0x40], eax
push esi
push 0
call sub.user32.dll_ReleaseDC
mov eax, dword [ebx + 0x58]
push eax
mov eax, 0x44e848
push eax
push 0
push 0
mov eax, dword [0x470988]
mov eax, dword [eax]
call eax
mov dl, 1
mov eax, dword [0x41c974]
call fcn.0041e0e8
mov dword [ebx + 0x84], eax
mov dl, 1
mov eax, dword [0x41c974]
call fcn.0041e0e8
mov dword [ebx + 0x88], eax
mov dl, 1
mov eax, dword [0x41c974]
call fcn.0041e0e8
mov dword [ebx + 0x80], eax
mov eax, ebx
call fcn.0045284c
mov eax, dword [ebx + 0x84]
mov dword [eax + 0xc], ebx
mov dword [eax + 8], 0x452728
mov eax, dword [ebx + 0x88]
mov dword [eax + 0xc], ebx
mov dword [eax + 8], 0x452728
mov eax, dword [ebx + 0x80]
mov dword [eax + 0xc], ebx
mov dword [eax + 8], 0x452728
mov eax, ebx
cmp byte [ebp - 1], 0
je 0x4521bf
call fcn.004034a4
pop dword fs:[0]
add esp, 0xc
mov eax, ebx
pop esi
pop ebx
pop ecx
pop ebp
ret
Function at 0x45250c
Capabilities:
Get keyboard layout
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffda0
push ebx
xor edx, edx
mov dword [ebp - 0x260], edx
mov dword [ebp - 4], eax
xor eax, eax
push ebp
push 0x4526b7
push dword fs:[eax]
mov dword fs:[eax], esp
mov eax, dword [ebp - 4]
cmp dword [eax + 0x34], 0
jne 0x452698
mov dl, 1
mov eax, dword [0x4123a8]
call fcn.004030f8
mov edx, dword [ebp - 4]
mov dword [edx + 0x34], eax
mov eax, dword [ebp - 4]
add eax, 0x38
call fcn.00403efc
lea eax, [ebp - 0x114]
push eax
push 0x40
call sub.user32.dll_GetKeyboardLayoutList
dec eax
test eax, eax
jl 0x452687
inc eax
mov dword [ebp - 0x10], eax
lea eax, [ebp - 0x114]
mov dword [ebp - 0x14], eax
mov eax, dword [ebp - 0x14]
mov eax, dword [eax]
call fcn.00440518
test al, al
je 0x45267a
lea eax, [ebp - 0xc]
push eax
push 0x20019
push 0
push 0
mov eax, dword [ebp - 0x14]
mov eax, dword [eax]
mov dword [ebp - 0x25c], eax
mov byte [ebp - 0x258], 0
lea ecx, [ebp - 0x25c]
mov edx, 0x4526c8
lea eax, [ebp - 0x254]
call fcn.00408f30
push eax
push 0x80000002
call sub.advapi32.dll_RegOpenKeyExA_1
test eax, eax
jne 0x45267a
xor eax, eax
push ebp
push 0x452673
push dword fs:[eax]
mov dword fs:[eax], esp
mov dword [ebp - 8], pe_nt_image_headers32
lea eax, [ebp - 8]
push eax
lea eax, [ebp - 0x214]
push eax
push 0
push 0
push 0x452700
mov eax, dword [ebp - 0xc]
push eax
call sub.advapi32.dll_RegQueryValueExA_1
test eax, eax
jne 0x45265c
lea eax, [ebp - 0x260]
lea edx, [ebp - 0x214]
mov ecx, pe_nt_image_headers32
call fcn.0040416c
mov edx, dword [ebp - 0x260]
mov eax, dword [ebp - 0x14]
mov ecx, dword [eax]
mov eax, dword [ebp - 4]
mov eax, dword [eax + 0x34]
mov ebx, dword [eax]
call dword [ebx + 0x3c]
mov eax, dword [ebp - 0x14]
mov eax, dword [eax]
mov edx, dword [ebp - 4]
cmp eax, dword [edx + 0x3c]
jne 0x45265c
mov eax, dword [ebp - 4]
add eax, 0x38
lea edx, [ebp - 0x214]
mov ecx, pe_nt_image_headers32
call fcn.0040416c
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x45267a
mov eax, dword [ebp - 0xc]
push eax
call sub.advapi32.dll_RegCloseKey_1
ret
add dword [ebp - 0x14], 4
dec dword [ebp - 0x10]
jne 0x45257d
mov eax, dword [ebp - 4]
mov eax, dword [eax + 0x34]
mov byte [eax + 0x1d], 0
mov dl, 1
call fcn.00416ad0
mov eax, dword [ebp - 4]
mov ebx, dword [eax + 0x34]
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x4526be
lea eax, [ebp - 0x260]
call fcn.00403efc
ret

Function at 0x452fec
Capabilities:
Create thread
Set global application hook

Disassembly:
push ecx
mov eax, dword [0x471be0]
cmp byte [eax + 0xa5], 0
jne 0x45305d
cmp dword [0x471bf8], 0
jne 0x45301e
call sub.kernel32.dll_GetCurrentThreadId_1
push eax
push 0
mov eax, 0x452fa8
push eax
push 3
call sub.user32.dll_SetWindowsHookExA
mov dword [0x471bf8], eax
cmp dword [0x471bf4], 0
jne 0x453039
push 0
push 0
push 0
push 0
call sub.kernel32.dll_CreateEventA
mov dword [0x471bf4], eax
cmp dword [0x471bfc], 0
jne 0x45305d
push esp
push 0
push 0
push 0x452f4c
push 0x3e8
push 0
call sub.kernel32.dll_CreateThread_1
mov dword [0x471bfc], eax
pop edx
ret
Function at 0x453154
Capabilities:
Inspect load icon resource

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffefc
push ebx
push esi
test dl, dl
je 0x45316b
add esp, 0xfffffff0
call fcn.0040344c
mov byte [ebp - 1], dl
mov ebx, eax
xor edx, edx
mov eax, ebx
call fcn.0041af18
mov eax, dword [0x470960]
cmp word [eax + 2], 0
jne 0x453193
mov eax, dword [0x470960]
mov dword [eax + 4], ebx
mov dword [eax], fcn.0045482c
mov eax, dword [0x470a98]
cmp word [eax + 2], 0
jne 0x4531ad
mov eax, dword [0x470a98]
mov dword [eax + 4], ebx
mov dword [eax], fcn.00454a24
mov byte [ebx + 0x34], 0
mov dl, 1
mov eax, dword [0x411d44]
call fcn.004030f8
mov dword [ebx + 0x90], eax
mov dl, 1
mov eax, dword [0x411d44]
call fcn.004030f8
mov dword [ebx + 0xa8], eax
xor eax, eax
mov dword [ebx + 0x60], eax
xor eax, eax
mov dword [ebx + 0x84], eax
mov dword [ebx + 0x5c], 0xff000018
mov dword [ebx + 0x78], 0x1f4
mov byte [ebx + 0x7c], 1
xor eax, eax
mov dword [ebx + 0x80], eax
mov dword [ebx + 0x74], 0x9c4
mov byte [ebx + 0x88], 0
mov byte [ebx + 0x9d], 1
mov byte [ebx + 0xb4], 1
mov dl, 1
mov eax, dword [0x41d454]
call fcn.004247cc
mov esi, eax
mov dword [ebx + 0x98], esi
push 0x453334
mov eax, dword [0x4707f4]
mov eax, dword [eax]
push eax
call sub.user32.dll_LoadIconA
mov edx, eax
mov eax, esi
call fcn.00424b9c
mov eax, dword [ebx + 0x98]
mov dword [eax + 0x14], ebx
mov dword [eax + 0x10], 0x454fc4
push pe_nt_image_headers32
lea eax, [ebp - 0x101]
push eax
mov eax, dword [0x4707f4]
mov eax, dword [eax]
push eax
call sub.kernel32.dll_GetModuleFileNameA_1
lea eax, [ebp - 0x101]
push eax
lea eax, [ebp - 0x101]
push eax
call sub.user32.dll_OemToCharA
lea eax, [ebp - 0x101]
mov dl, 0x5c
call fcn.0040c748
test eax, eax
je 0x4532a2
lea edx, [eax + 1]
lea eax, [ebp - 0x101]
call fcn.00408910
lea eax, [ebp - 0x101]
mov dl, 0x2e
call fcn.0040c770
test eax, eax
je 0x4532b6
mov byte [eax], 0
lea eax, [ebp - 0x101]
inc eax
push eax
call sub.user32.dll_CharLowerA
lea eax, [ebx + 0x8c]
lea edx, [ebp - 0x101]
mov ecx, pe_nt_image_headers32
call fcn.0040416c
mov eax, dword [0x4705d8]
cmp byte [eax], 0
jne 0x4532ea
mov eax, ebx
call fcn.0045345c
mov byte [ebx + 0x59], 1
mov byte [ebx + 0x5a], 1
mov byte [ebx + 0x5b], 1
mov byte [ebx + 0x9e], 1
xor eax, eax
mov dword [ebx + 0xa0], eax
mov eax, ebx
call fcn.004551a0
mov eax, ebx
call fcn.00455b64
mov eax, ebx
cmp byte [ebp - 1], 0
je 0x45332a
call fcn.004034a4
pop dword fs:[0]
add esp, 0xc
mov eax, ebx
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x4536dc
Capabilities:
Enumerate gui resources

Disassembly:
push ebx
push esi
add esp, 0xfffffff8
mov ebx, eax
mov eax, dword [0x471be0]
cmp dword [eax + 0x30], 0
je 0x453786
cmp dword [ebx + 0x94], 0
jne 0x453780
mov eax, dword [ebx + 0x30]
mov dword [esp], eax
mov byte [esp + 4], dl
mov eax, esp
push eax
push 0x45366c
call sub.user32.dll_EnumWindows
mov eax, dword [ebx + 0x90]
cmp dword [eax + 8], 0
je 0x453780
push 3
mov eax, dword [esp + 4]
push eax
call sub.user32.dll_GetWindow
mov esi, eax
mov dword [esp], esi
push 0xffffffffffffffec
push esi
call sub.user32.dll_GetWindowLongA
test al, 8
je 0x453746
mov dword [esp], 0xfffffffe
mov eax, dword [ebx + 0x90]
mov esi, dword [eax + 8]
dec esi
cmp esi, 0
jl 0x453780
push 0x213
push 0
push 0
push 0
push 0
mov eax, dword [esp + 0x14]
push eax
mov edx, esi
mov eax, dword [ebx + 0x90]
call fcn.004143fc
push eax
call sub.user32.dll_SetWindowPos
dec esi
cmp esi, 0xffffffff
jne 0x453755
inc dword [ebx + 0x94]
pop ecx
pop edx
pop esi
pop ebx
ret

Function at 0x4542e8
Capabilities:
Get graphical window text

Disassembly:
push ebx
push esi
add esp, 0xffffff00
mov esi, edx
mov ebx, eax
cmp byte [ebx + 0xa4], 0
je 0x45431d
push pe_nt_image_headers32
lea eax, [esp + 4]
push eax
mov eax, dword [ebx + 0x30]
push eax
call sub.user32.dll_GetWindowTextA
mov ecx, eax
mov edx, esp
mov eax, esi
call fcn.00403fec
jmp 0x45432a
mov eax, esi
mov edx, dword [ebx + 0x8c]
call fcn.00403f50
add esp, 0x100
pop esi
pop ebx
ret

Function at 0x45537c
Capabilities:
Hide graphical window

Disassembly:
push ebx
push esi
mov ebx, eax
mov esi, dword [ebx + 0x84]
test esi, esi
je 0x4553bd
mov eax, esi
call fcn.0043bb44
test al, al
je 0x4553bd
mov eax, dword [ebx + 0x84]
call fcn.0043b840
push eax
call sub.user32.dll_IsWindowVisible
test eax, eax
je 0x4553bd
push 0
mov eax, dword [ebx + 0x84]
call fcn.0043b840
push eax
call sub.user32.dll_ShowWindow
pop esi
pop ebx
ret
Function at 0x46389c
Capabilities:
Access peb ldr_data
Get kernel32 base address

Disassembly:
push ebp
mov ebp, esp
mov ecx, 8
push 0
push 0
dec ecx
jne 0x4638a4
push ecx
push ebx
push esi
push edi
mov ebx, eax
xor eax, eax
push ebp
push 0x463a96
push dword fs:[eax]
mov dword fs:[eax], esp
mov esi, dword [ebx + 8]
lea ecx, [ebp - 0xc]
mov edx, 0x463aac
mov eax, esi
call fcn.00461728
mov edx, dword [ebp - 0xc]
lea eax, [ebx + 0xc]
call fcn.00403f50
lea ecx, [ebp - 0x10]
mov edx, 0x463ac0
mov eax, esi
call fcn.00461728
mov edx, dword [ebp - 0x10]
lea eax, [ebx + 0x28]
call fcn.00403f50
lea ecx, [ebp - 0x14]
mov edx, 0x463ad8
mov eax, esi
call fcn.00461728
mov edx, dword [ebp - 0x14]
lea eax, [ebx + 0x10]
call fcn.00403f50
lea ecx, [ebp - 0x18]
mov edx, 0x463af4
mov eax, esi
call fcn.00461728
mov edx, dword [ebp - 0x18]
lea eax, [ebx + 0x14]
call fcn.00403f50
lea ecx, [ebp - 0x1c]
mov edx, 0x463b10
mov eax, esi
call fcn.00461728
mov edx, dword [ebp - 0x1c]
lea eax, [ebx + 0x24]
call fcn.00403f50
lea ecx, [ebp - 0x24]
mov edx, 0x463b28
mov eax, esi
call fcn.00461728
mov eax, dword [ebp - 0x24]
lea edx, [ebp - 0x20]
call fcn.00407e5c
mov eax, dword [ebp - 0x20]
or edx, 0xffffffff
call fcn.004083a4
mov edi, eax
mov dword [ebx + 0x18], edi
test edi, edi
setge al
mov byte [ebx + 0x4c], al
lea ecx, [ebp - 0x28]
mov edx, 0x463b40
mov eax, esi
call fcn.00461728
mov eax, dword [ebp - 0x28]
call fcn.0045b200
fstp qword [ebx + 0x30]
wait
lea ecx, [ebp - 0x2c]
mov edx, 0x463b50
mov eax, esi
call fcn.00461728
mov eax, dword [ebp - 0x2c]
call fcn.0045b200
fstp qword [ebx + 0x40]
wait
lea ecx, [ebp - 0x30]
mov edx, 0x463b68
mov eax, esi
call fcn.00461728
mov eax, dword [ebp - 0x30]
or edx, 0xffffffff
call fcn.004083a4
inc eax
je 0x463a39
lea ecx, [ebp - 0x34]
mov edx, 0x463b68
mov eax, esi
call fcn.00461728
mov eax, dword [ebp - 0x34]
call fcn.00408368
mov edi, eax
mov eax, edi
mov ecx, 0xe10
cdq
idiv ecx
mov dword [ebp - 8], eax
mov eax, edi
mov ecx, 0xe10
cdq
idiv ecx
mov ecx, edx
mov eax, ecx
push ecx
mov ecx, 0x3c
cdq
idiv ecx
pop ecx
mov dword [ebp - 4], eax
mov eax, ecx
mov ecx, 0x3c
cdq
idiv ecx
mov edi, edx
push 0
mov ecx, edi
mov dx, word [ebp - 4]
mov ax, word [ebp - 8]
call fcn.00409880
fstp qword [ebp - 0x3c]
wait
call fcn.00409be4
fadd qword [ebp - 0x3c]
fstp qword [ebx + 0x38]
wait
jmp 0x463a54
lea ecx, [ebp - 0x40]
mov edx, 0x463b68
mov eax, esi
call fcn.00461728
mov eax, dword [ebp - 0x40]
call fcn.0045b200
fstp qword [ebx + 0x38]
wait
lea ecx, [ebp - 0x44]
mov edx, 0x463b78
mov eax, esi
call fcn.00461728
mov edx, dword [ebp - 0x44]
lea eax, [ebx + 0x48]
call fcn.00403f50
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x463a9d
lea eax, [ebp - 0x44]
mov edx, 2
call fcn.00403f20
lea eax, [ebp - 0x34]
mov edx, 0xb
call fcn.00403f20
ret
Function at 0x46a828
Capabilities:
Access peb ldr_data

Disassembly:
push ebp
mov ebp, esp
push 0
push ebx
push esi
push edi
mov edi, ecx
mov esi, edx
xor edx, edx
push ebp
push 0x46a882
push dword fs:[edx]
mov dword fs:[edx], esp
mov eax, dword [eax + 0x30]
call fcn.0046a818
mov ebx, eax
lea edx, [ebp - 4]
mov eax, edi
call fcn.00459e6c
mov edx, dword [ebp - 4]
mov eax, dword [ebx + 0xc]
call fcn.00459a6c
mov edx, dword [esi + 8]
mov eax, dword [ebx + 0x10]
mov ecx, dword [eax]
call dword [ecx + 8]
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x46a889
lea eax, [ebp - 4]
call fcn.00403efc
ret
Function at 0x401e7b
Capabilities:
Create process on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0xc
push 0x50
call fcn.004023dc
add esp, 4
mov dword [ebp - 4], eax
mov ebx, eax
mov edi, eax
xor eax, eax
mov ecx, 0x14
rep stosd dword es:[edi], eax
push 0x4182c9
mov ebx, dword [ebp + 0x14]
push dword [ebx]
call fcn.0040176d
add esp, 8
cmp eax, 0
jne 0x401f51
push 0x80000002
push 0
push 0
push 0
push 0
push 0
push 0x80000004
push 0
push 0x4182fc
push 0x80000004
push 0
mov ebx, dword [ebp + 8]
mov eax, dword [ebx]
test eax, eax
jne 0x401eef
mov eax, 0x4182c9
push eax
push 4
mov ebx, 0x14c
call fcn.00402d80
add esp, 0x34
push 0x80000301
push 0
push eax
push 0x80000004
push 0
mov ebx, dword [ebp + 8]
mov eax, dword [ebx]
test eax, eax
jne 0x401f1f
mov eax, 0x4182c9
push eax
push 2
mov ebx, 0x134
call fcn.00402e90
add esp, 0x1c
mov dword [ebp - 0xc], eax
mov eax, dword [ebp - 0xc]
push eax
mov ebx, dword [ebp + 0x14]
mov ebx, dword [ebx]
test ebx, ebx
je 0x401f4b
push ebx
call fcn.004023d0
add esp, 4
pop eax
mov ebx, dword [ebp + 0x14]
mov dword [ebx], eax
mov dword [ebp - 8], esp
mov ebx, dword [ebp + 0x1c]
push dword [ebx]
push dword [ebp - 4]
mov ebx, dword [ebp + 0x14]
push dword [ebx]
push 0
push 0
push 0
push 0
push 0
mov ebx, dword [ebp + 0xc]
push dword [ebx]
mov ebx, dword [ebp + 8]
push dword [ebx]
xor eax, eax
call dword [sym.imp.KERNEL32.dll_CreateProcessA]
nop
nop
cmp dword [ebp - 8], esp
je 0x401faa
push 0x8e
push 0x40132be
push 6
call fcn.004023c4
add esp, 0xc
cmp dword [ebp + 0x20], 0
jne 0x402023
mov ebx, dword [ebp + 0x1c]
mov ebx, dword [ebx]
mov dword [ebp - 8], ebx
mov dword [ebp - 0xc], esp
mov ebx, dword [ebp - 8]
push dword [ebx]
xor eax, eax
call dword [sym.imp.KERNEL32.dll_CloseHandle]
nop
nop
cmp dword [ebp - 0xc], esp
je 0x401fea
push 0x11e
push 0x40132be
push 6
call fcn.004023c4
add esp, 0xc
mov ebx, dword [ebp + 0x1c]
mov ebx, dword [ebx]
add ebx, 4
mov dword [ebp - 8], ebx
mov dword [ebp - 0xc], esp
mov ebx, dword [ebp - 8]
push dword [ebx]
xor eax, eax
call dword [sym.imp.KERNEL32.dll_CloseHandle]
nop
nop
cmp dword [ebp - 0xc], esp
je 0x402023
push 0x141
push 0x40132be
push 6
call fcn.004023c4
add esp, 0xc
mov ebx, dword [ebp + 0x1c]
mov ebx, dword [ebx]
add ebx, 8
mov dword [ebp - 8], ebx
mov ebx, dword [ebp - 8]
mov eax, dword [ebx]
jmp 0x402038
push eax
mov ebx, dword [ebp - 4]
push ebx
call fcn.004023d0
add esp, 4
pop eax
mov esp, ebp
pop ebp
ret 0x1c
Function at 0x4022b2
Capabilities:
Create process on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x10
cmp dword [ebp + 0x14], 1
jne 0x4022d1
mov dword [ebp + 0x14], 0
jmp 0x4022ee
cmp dword [ebp + 0x14], 2
jne 0x4022e7
mov dword [ebp + 0x14], 7
jmp 0x4022ee
mov dword [ebp + 0x14], 1
mov dword [ebp - 4], esp
push dword [ebp + 0x14]
push 0x4182c9
mov ebx, dword [ebp + 0xc]
push dword [ebx]
mov ebx, dword [ebp + 8]
push dword [ebx]
push 0x21173e0
push 0
xor eax, eax
call dword [sym.imp.SHELL32.dll_ShellExecuteA]
nop
nop
cmp dword [ebp - 4], esp
je 0x402333
push 0xff
push 0x4012dcd
push 6
call fcn.004023c4
add esp, 0xc
mov dword [ebp - 0xc], eax
cmp dword [ebp - 0xc], 2
jne 0x40234f
mov eax, 0
jmp 0x402359
mov eax, 1
jmp 0x402359
mov esp, ebp
pop ebp
ret 0x14

Function at 0x402ca0
Capabilities:
Write file on windows

Disassembly:
sub esp, 8
mov eax, dword [esp + 0x10]
push edi
push 0
push 0x20
push 2
push 0
push 0
push 0x40000000
push eax
call dword [sym.imp.KERNEL32.dll_CreateFileA]
mov edi, eax
xor eax, eax
cmp edi, 0xffffffff
je 0x402d32
mov eax, dword [esp + 0x10]
push ebx
mov ebx, 1
push ebp
cmp eax, ebx
push esi
mov dword [esp + 0x10], ebx
jle 0x402d24
mov ebp, dword [sym.imp.KERNEL32.dll_WriteFile]
lea esi, [esp + 0x2c]
mov eax, dword [esi]
lea edx, [esp + 0x14]
push 0
push edx
lea ecx, [eax + 8]
mov eax, dword [eax + 4]
push eax
push ecx
push edi
call ebp
test eax, eax
je 0x402d1c
mov eax, dword [esp + 0x1c]
inc ebx
add esi, 0xc
cmp ebx, eax
jl 0x402ce5
push edi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov eax, dword [esp + 0x10]
pop esi
pop ebp
pop ebx
pop edi
add esp, 8
ret
mov dword [esp + 0x10], 0
push edi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov eax, dword [esp + 0x10]
pop esi
pop ebp
pop ebx
pop edi
add esp, 8
ret

Function at 0x403280
Capabilities:
Set file attributes

Disassembly:
mov eax, dword [esp + 0x14]
mov ecx, dword [esp + 8]
push eax
push ecx
call dword [sym.imp.KERNEL32.dll_SetFileAttributesA]
ret

Function at 0x41294f
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 0x41297d
push dword [esi]
call dword [sym.imp.KERNEL32.dll_TlsGetValue]
test eax, eax
je 0x41299b
push dword [esp + 0xc]
mov ecx, esi
push eax
call fcn.004128b5
jmp 0x41299b
mov eax, dword [esi + 0x14]
test eax, eax
je 0x41299b
push edi
push dword [esp + 0x10]
mov edi, dword [eax + 4]
mov ecx, esi
push eax
call fcn.004128b5
test edi, edi
mov eax, edi
jne 0x412985
pop edi
push ebx
call dword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
pop esi
pop ebx
ret 8
Function at 0x4013f0
Capabilities:
Contain obfuscated stackstrings

Disassembly:
add ecx, 0xa8
jmp 0x4126d0
sub esp, 0x4c
mov eax, dword [0x48644c]
push ebp
mov ebp, dword [esp + 0x54]
test ebp, ebp
mov dword [esp + 0x4c], eax
push edi
je 0x41283b
mov edi, dword [esp + 0x60]
test edi, edi
je 0x41283b
mov al, 0x98
mov byte [esp + 0x11], al
mov byte [esp + 0x17], al
xor eax, eax
mov dword [esp + 0x2d], eax
mov dword [esp + 0x31], eax
mov dword [esp + 0x35], eax
mov dword [esp + 0x39], eax
mov dword [esp + 0x3d], eax
mov dword [esp + 0x41], eax
mov dword [esp + 0x45], eax
mov byte [esp + 0xc], 0xa
mov byte [esp + 0xd], 0x3d
mov byte [esp + 0xe], 0xdb
mov byte [esp + 0xf], 0
mov byte [esp + 0x10], 0x13
mov byte [esp + 0x12], 0x47
mov byte [esp + 0x13], 0x57
mov byte [esp + 0x14], 0x9c
mov byte [esp + 0x15], 1
mov byte [esp + 0x16], 0x84
mov byte [esp + 0x18], 0x70
mov byte [esp + 0x19], 0xb0
mov byte [esp + 0x1a], 0x5e
mov byte [esp + 0x1b], 0x2e
mov byte [esp + 0x1c], 0x7c
mov byte [esp + 0x1d], 0x32
mov byte [esp + 0x1e], 0xdd
mov byte [esp + 0x1f], 0xe3
mov byte [esp + 0x20], 0x9d
mov byte [esp + 0x21], 7
mov byte [esp + 0x22], 0x4e
mov byte [esp + 0x23], 0x3a
mov byte [esp + 0x24], 0xa5
mov byte [esp + 0x25], 0x97
mov byte [esp + 0x26], 0x5d
mov byte [esp + 0x27], 0xc6
mov byte [esp + 0x28], 0x4c
mov byte [esp + 0x29], 0xd
mov byte [esp + 0x2a], 0x83
mov byte [esp + 0x2b], 0x11
mov byte [esp + 0x2c], 0
mov dword [esp + 0x49], eax
mov ecx, 0x20
jmp 0x4127d0
movzx edx, byte [esp + eax + 0xc]
mov dl, byte [edx + str.http:__vas._s_interface_chathall_buy.htmlhttp:__vas._s_interface_chathall_buy.html_uid_I64dmcheck_snickname_shttp:__www0._s_interface_chathall_buy_aristocrat_vip.html_oemid_duid_I64dmcheck_snickname_shttp:__vip.17guagua.com]
mov byte [esp + eax + 0x2c], dl
inc eax
dec ecx
jne 0x4127d0
push esi
xor esi, esi
call fcn.0045bc00
test eax, eax
mov dword [esp + 0xc], eax
je 0x412827
mov edx, dword [eax]
push 0x20
lea ecx, [esp + 0x34]
push ecx
mov ecx, eax
call dword [edx + 4]
mov eax, dword [esp + 0x68]
mov ecx, dword [esp + 0xc]
mov edx, dword [ecx]
push eax
mov eax, dword [esp + 0x64]
push edi
push eax
push ebp
push 1
call dword [edx + 8]
lea ecx, [esp + 0xc]
push ecx
mov esi, eax
call fcn.0045b570
add esp, 4
mov eax, esi
pop esi
pop edi
pop ebp
mov ecx, dword [esp + 0x48]
call fcn.00436153
add esp, 0x4c
ret 0x10
mov ecx, dword [esp + 0x50]
pop edi
xor eax, eax
pop ebp
call fcn.00436153
add esp, 0x4c
ret 0x10