joyce8/EMBER2024-capa huggingface dataset:
Function at 0x440a40
Capabilities:
Check for software breakpoints

Disassembly:
push esi
mov esi, dword [esp + 8]
cmp dword [esi + 0x10], 0xca
jne 0x440a73
push esi
call fcn.00443b50
mov eax, dword [esi + 0x40]
add esp, 4
test eax, eax
je 0x440a6c
mov dword [esi + 0x10], 0xcf
mov eax, 1
pop esi
ret
mov dword [esi + 0x10], 0xcb
mov eax, dword [esi + 0x10]
cmp eax, 0xcb
jne 0x440af9
mov eax, dword [esi + 0x1b0]
mov ecx, dword [eax + 0x10]
test ecx, ecx
je 0x440ae2
mov eax, dword [esi + 8]
test eax, eax
je 0x440a97
push esi
call dword [eax]
add esp, 4
mov ecx, dword [esi + 0x1b0]
push esi
call dword [ecx]
add esp, 4
test eax, eax
je 0x440ade
cmp eax, 2
je 0x440ae2
mov ecx, dword [esi + 8]
test ecx, ecx
je 0x440a8a
cmp eax, 3
je 0x440abd
cmp eax, 1
jne 0x440a8a
mov eax, dword [ecx + 4]
inc eax
mov dword [ecx + 4], eax
mov eax, dword [esi + 8]
mov ecx, dword [eax + 8]
mov edx, dword [eax + 4]
cmp edx, ecx
jl 0x440a8a
mov edx, dword [esi + 0x13c]
add edx, ecx
mov dword [eax + 8], edx
jmp 0x440a8a
xor eax, eax
pop esi
ret
mov eax, dword [esi + 0x90]
push esi
mov dword [esi + 0x98], eax
call fcn.00440b20
add esp, 4
pop esi
ret
cmp eax, 0xcc
je 0x440b08
mov ecx, dword [esi]
push esi
call dword [ecx]
add esp, 4
push esi
call fcn.00440b20
add esp, 4
pop esi
ret

Function at 0x44c680
Capabilities:
Capture webcam image

Disassembly:
mov eax, dword [esp + 8]
push ebx
push esi
mov esi, ecx
mov eax, dword [eax + 4]
cmp dword [esi + 0xec], 1
jne 0x44c723
test eax, eax
jbe 0x44c723
mov ecx, dword [esi + 0xbc]
test ecx, ecx
jle 0x44c723
mov ecx, dword [esi + 0x1c]
push edi
push 0
push eax
push 0x419
push ecx
call dword [sym.imp.USER32.dll_SendMessageA]
mov edi, eax
mov eax, dword [esi + 0xbc]
inc edi
test eax, eax
jne 0x44c6ce
xor esi, esi
jmp 0x44c6d4
mov esi, dword [esi + 0xb4]
add esi, 4
xor ebx, ebx
test edi, edi
jbe 0x44c6ff
push ebp
mov ebp, edi
add esi, 6
push esi
call fcn.00402e50
add esi, eax
push esi
mov ebx, esi
call fcn.00402e50
add esp, 8
add esi, eax
dec edi
dec ebp
jne 0x44c6e0
pop ebp
test edi, edi
pop edi
jne 0x44c723
test ebx, ebx
je 0x44c723
mov edx, dword [esp + 0x10]
push 0x4e
add edx, 0x10
push ebx
push edx
call fcn.00450df0
add esp, 0xc
mov eax, 1
pop esi
pop ebx
ret 0xc
pop esi
xor eax, eax
pop ebx
ret 0xc
Function at 0x44c865
Capabilities:
Capture webcam image

Disassembly:
sub esp, 0x44
push ebx
push ebp
push esi
mov esi, ecx
push edi
mov eax, dword [esi + 0x3c]
test eax, eax
je 0x44c97d
push eax
call dword [sym.imp.USER32.dll_IsWindow]
test eax, eax
je 0x44c97d
mov eax, dword [esi + 0x3c]
push eax
call fcn.0046178f
mov esi, eax
test esi, esi
je 0x44c97d
mov ebx, dword [esp + 0x58]
mov ecx, dword [esi + 0x1c]
mov ebp, dword [sym.imp.USER32.dll_SendMessageA]
push 0
push ebx
push 0x419
push ecx
call ebp
mov edi, eax
test edi, edi
jl 0x44c97d
mov ecx, esi
call fcn.0044c7d0
cmp edi, eax
jge 0x44c97d
mov eax, dword [esi + 0xc4]
mov edx, dword [esi + 0xc0]
mov dword [esp + 0x2c], eax
mov eax, dword [esp + 0x5c]
xor ecx, ecx
mov dword [esp + 0x28], edx
cmp eax, ecx
mov dword [esp + 0x30], eax
mov dword [esp + 0x34], ecx
mov dword [esp + 0x4c], ecx
mov dword [esp + 0x50], ecx
mov dword [esp + 0x38], edi
jne 0x44c903
mov dword [esp + 0x34], 1
jmp 0x44c95e
mov edx, dword [esi + 0x1c]
lea ecx, [esp + 0x18]
push ecx
push ebx
push 0x433
push edx
call ebp
test eax, eax
je 0x44c97d
mov eax, dword [esp + 0x60]
mov ecx, dword [esp + 0x18]
mov edx, dword [esp + 0x24]
mov dword [esp + 0x10], ecx
mov dword [eax], 0
mov ecx, dword [esi + 0x1c]
lea eax, [esp + 0x10]
add edx, 2
push eax
push ecx
mov dword [esp + 0x1c], edx
call dword [sym.imp.USER32.dll_ClientToScreen]
mov edx, dword [esp + 0x10]
mov eax, dword [esp + 0x14]
mov dword [esp + 0x34], 3
mov dword [esp + 0x3c], edx
mov dword [esp + 0x40], eax
xor ecx, ecx
push ecx
lea ecx, [esp + 0x2c]
push ecx
push 0x7d8
call fcn.0044bd90
pop edi
pop esi
pop ebp
mov eax, 1
pop ebx
add esp, 0x44
ret 0xc
pop edi
pop esi
pop ebp
xor eax, eax
pop ebx
add esp, 0x44
ret 0xc

Function at 0x462133
Capabilities:
Get graphical window text

Disassembly:
push esi
mov esi, ecx
mov ecx, dword [esi + 0x38]
test ecx, ecx
jne 0x46216b
push dword [esi + 0x1c]
call dword [sym.imp.USER32.dll_GetWindowTextLengthA]
lea ecx, [eax + 1]
push ecx
mov ecx, dword [esp + 0xc]
push eax
call fcn.004601e7
push eax
push dword [esi + 0x1c]
call dword [sym.imp.USER32.dll_GetWindowTextA]
mov ecx, dword [esp + 8]
push 0xffffffffffffffff
call fcn.004601bf
jmp 0x462177
mov eax, dword [ecx]
push dword [esp + 8]
call dword [eax + 0x88]
pop esi
ret 4

Function at 0x463825
Capabilities:
Extract resource via kernel32 functions

Disassembly:
push ebx
push esi
push edi
xor edi, edi
cmp dword [esp + 0x10], edi
mov ebx, ecx
je 0x463867
call fcn.00469318
mov esi, dword [eax + 0xc]
push 0xf0
push dword [esp + 0x14]
push esi
call dword [sym.imp.KERNEL32.dll_FindResourceA]
cmp eax, edi
je 0x463867
push eax
push esi
call dword [sym.imp.KERNEL32.dll_LoadResource]
cmp eax, edi
jne 0x46385e
xor eax, eax
jmp 0x46386f
push eax
call dword [sym.imp.KERNEL32.dll_LockResource]
mov edi, eax
push edi
mov ecx, ebx
call fcn.00463875
pop edi
pop esi
pop ebx
ret 4
Function at 0x469848
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 0x469876
push dword [esi]
call dword [sym.imp.KERNEL32.dll_TlsGetValue]
test eax, eax
je 0x469894
push dword [esp + 0xc]
mov ecx, esi
push eax
call fcn.004697ae
jmp 0x469894
mov eax, dword [esi + 0x14]
test eax, eax
je 0x469894
push edi
push dword [esp + 0x10]
mov edi, dword [eax + 4]
mov ecx, esi
push eax
call fcn.004697ae
test edi, edi
mov eax, edi
jne 0x46987e
pop edi
push ebx
call dword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
pop esi
pop ebx
ret 8

Function at 0x40100b
Capabilities:
Query or enumerate registry value

Disassembly:
call 0x40100b
push eax
call sub.KERNEL32.dll_ExitProcess
push ebp
mov ebp, esp
add esp, 0xfffffef0
jmp 0x40109c
lea eax, [ebp - 0x104]
push eax
call fcn.004011ec
push 0x401019
lea eax, [ebp - 0x104]
push eax
call sub.KERNEL32.dll_lstrcatA
push eax
call sub.KERNEL32.dll_LoadLibraryA
test eax, eax
jne 0x401165
lea eax, [ebp - 0x10c]
push eax
push 0x20019
push 0
push 0x401038
push 0x80000001
call sub.ADVAPI32.dll_RegOpenKeyExA
cmp eax, 0
jne 0x4011a5
mov dword [ebp - 0x110], 0x103
lea eax, [ebp - 0x110]
push eax
lea eax, [ebp - 0x104]
push eax
push 0
push 0
push 0x401052
push dword [ebp - 0x10c]
call sub.ADVAPI32.dll_RegQueryValueExA
push eax
push dword [ebp - 0x10c]
call sub.ADVAPI32.dll_RegCloseKey
pop eax
cmp eax, 0
jne 0x4011a5
lea eax, [ebp - 0x104]
push eax
call sub.KERNEL32.dll_lstrlenA
lea ebx, [ebp - 0x104]
add ebx, eax
dec ebx
cmp byte [ebx], 0x5c
je 0x40114a
mov word [ebx], 0x5c
push 0x401023
lea eax, [ebp - 0x104]
push eax
call sub.KERNEL32.dll_lstrcatA
push eax
call sub.KERNEL32.dll_LoadLibraryA
test eax, eax
je 0x4011a5
mov dword [ebp - 0x108], eax
push 0x40102d
push eax
call sub.KERNEL32.dll_GetProcAddress
test eax, eax
je 0x40119a
push 0x3e8
call eax
test eax, eax
je 0x40119a
call 0x40118a
add dword [esp], 0x1e76
call eax
push 0
call sub.KERNEL32.dll_ExitProcess
push dword [ebp - 0x108]
call sub.KERNEL32.dll_FreeLibrary
push 0x10
push 0x401096
push 0x401057
push 0
call sub.USER32.dll_MessageBoxA
mov eax, 0xffffffff
leave
ret
Function at 0x401000
Capabilities:
64-bit execution via heavens gate

Disassembly:
push ebp
mov ebp, esp
mov ecx, dword [ebp + 0xc]
sub esp, 0x40
push esi
xor esi, esi
push edi
lea eax, [ebp + 0x10]
cmp ecx, esi
jle 0x401029
mov edx, dword [ebp + 0x10]
mov dword [ebp - 0x28], edx
mov edx, dword [ebp + 0x14]
dec ecx
mov dword [ebp + 0xc], ecx
lea eax, [ebp + 0x18]
mov dword [ebp - 0x24], edx
jmp 0x40102f
mov dword [ebp - 0x28], esi
mov dword [ebp - 0x24], esi
cmp ecx, esi
jle 0x401048
dec ecx
add eax, 8
mov dword [ebp + 0xc], ecx
mov edx, dword [eax - 8]
mov dword [ebp - 0x20], edx
mov edx, dword [eax - 4]
mov dword [ebp - 0x1c], edx
jmp 0x40104e
mov dword [ebp - 0x20], esi
mov dword [ebp - 0x1c], esi
cmp ecx, esi
jle 0x401067
dec ecx
add eax, 8
mov dword [ebp + 0xc], ecx
mov edx, dword [eax - 8]
mov dword [ebp - 0x18], edx
mov edx, dword [eax - 4]
mov dword [ebp - 0x14], edx
jmp 0x40106d
mov dword [ebp - 0x18], esi
mov dword [ebp - 0x14], esi
cmp ecx, esi
jle 0x401086
dec ecx
add eax, 8
mov dword [ebp + 0xc], ecx
mov edx, dword [eax - 8]
mov dword [ebp - 0x10], edx
mov edx, dword [eax - 4]
mov dword [ebp - 0xc], edx
jmp 0x40108c
mov dword [ebp - 0x10], esi
mov dword [ebp - 0xc], esi
cdq
mov dword [ebp - 0x40], eax
mov eax, ecx
mov dword [ebp - 0x3c], edx
cdq
mov dword [ebp - 0x38], eax
mov eax, dword [ebp + 8]
mov dword [ebp - 8], esi
mov dword [ebp - 4], esi
mov dword [ebp - 0x34], edx
mov dword [ebp - 0x30], eax
mov dword [ebp - 0x2c], esi
mov dword [ebp + 8], esi
mov dword [ebp + 8], esp
and esp, 0xfffffff8
push 0x33
call fcn.004010bb

Function at 0x401130
Capabilities:
64-bit execution via heavens gate

Disassembly:
push ebp
mov ebp, esp
sub esp, 8
push ebx
xor eax, eax
push esi
push edi
mov dword [ebp - 8], eax
mov dword [ebp - 4], eax
push 0x33
call fcn.00401148

Function at 0x4018f0
Capabilities:
Encode data using xor
Encrypt data using xtea

Disassembly:
push ebp
mov ebp, esp
push ecx
mov ecx, dword [ebp + 8]
mov eax, dword [ecx]
mov ecx, dword [ecx + 4]
push ebx
push esi
bswap eax
bswap ecx
xor edx, edx
mov dword [ebp - 4], 0x20
push edi
lea esp, [esp]
mov edi, dword [ebp + 0xc]
mov esi, edx
and esi, 3
mov esi, dword [edi + esi*4]
bswap esi
add esi, edx
mov edi, ecx
shr edi, 5
mov ebx, ecx
shl ebx, 4
xor edi, ebx
add edi, ecx
xor esi, edi
mov edi, dword [ebp + 0xc]
add eax, esi
sub edx, 0x61c88647
mov esi, edx
shr esi, 0xb
and esi, 3
mov esi, dword [edi + esi*4]
mov edi, eax
shr edi, 5
mov ebx, eax
shl ebx, 4
bswap esi
xor edi, ebx
add esi, edx
add edi, eax
xor esi, edi
add ecx, esi
dec dword [ebp - 4]
jne 0x401910
mov edx, dword [ebp + 8]
pop edi
bswap eax
bswap ecx
pop esi
mov dword [edx], eax
mov dword [edx + 4], ecx
pop ebx
mov esp, ebp
pop ebp
ret 8
Function at 0x401980
Capabilities:
Encode data using xor
Encrypt data using xtea

Disassembly:
push ebp
mov ebp, esp
sub esp, 0xc
mov eax, dword [ebp + 8]
add edx, 7
shr edx, 3
dec edx
mov dword [ebp - 0xc], edx
js 0x401a45
push ebx
push esi
push edi
jmp 0x4019a3
mov eax, dword [ebp + 8]
lea ecx, [eax + edx*8 - 8]
test edx, edx
jne 0x4019ae
mov ecx, dword [ebp + 0x14]
mov dword [ebp - 8], ecx
mov ecx, dword [eax + edx*8]
mov eax, dword [eax + edx*8 + 4]
bswap ecx
bswap eax
mov edx, 0xc6ef3720
mov dword [ebp - 4], 0x20
mov edi, dword [ebp + 0x10]
mov esi, edx
shr esi, 0xb
and esi, 3
mov esi, dword [edi + esi*4]
bswap esi
add esi, edx
mov edi, ecx
shr edi, 5
mov ebx, ecx
shl ebx, 4
xor edi, ebx
add edi, ecx
xor esi, edi
mov edi, dword [ebp + 0x10]
sub eax, esi
add edx, 0x61c88647
mov esi, edx
and esi, 3
mov esi, dword [edi + esi*4]
mov edi, eax
shr edi, 5
mov ebx, eax
shl ebx, 4
bswap esi
xor edi, ebx
add esi, edx
add edi, eax
xor esi, edi
sub ecx, esi
dec dword [ebp - 4]
jne 0x4019c8
mov edx, dword [ebp - 0xc]
mov esi, dword [ebp + 0xc]
bswap ecx
mov dword [esi + edx*8], ecx
lea ecx, [esi + edx*8 + 4]
bswap eax
mov dword [ecx], eax
mov eax, dword [ebp - 8]
mov edi, dword [eax]
xor dword [esi + edx*8], edi
mov eax, dword [eax + 4]
xor dword [ecx], eax
dec edx
mov dword [ebp - 0xc], edx
jns 0x4019a0
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 0x10
Function at 0x402330
Capabilities:
Get file size
Read file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x408
mov eax, dword [0x40e004]
xor eax, ebp
mov dword [ebp - 4], eax
push edi
push 0x200
lea eax, [ebp - 0x404]
push eax
push 0
call dword [sym.imp.KERNEL32.dll_GetModuleFileNameW]
push 0
push 0
push 3
push 0
push 1
push 0x80000000
lea ecx, [ebp - 0x404]
push ecx
call dword [sym.imp.KERNEL32.dll_CreateFileW]
mov edi, eax
cmp edi, 0xffffffff
jne 0x40238c
xor eax, eax
pop edi
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.00402c9c
mov esp, ebp
pop ebp
ret
push esi
push 0
push edi
call dword [sym.imp.KERNEL32.dll_GetFileSize]
mov edx, dword [0x44f89c]
mov dword [ebp - 0x408], eax
add eax, 0x100
push eax
push 8
push edx
call dword [sym.imp.KERNEL32.dll_HeapAlloc]
mov ecx, dword [ebp - 0x408]
push 0
mov esi, eax
lea eax, [ebp - 0x408]
push eax
push ecx
push esi
push edi
call dword [sym.imp.KERNEL32.dll_ReadFile]
push edi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov edx, dword [ebp - 0x408]
mov ecx, dword [0x44f8d0]
lea eax, [esi + edx]
mov dword [eax], ecx
mov edx, dword [0x44f8d4]
push 0x44f8c0
push 0x44f8d0
mov dword [eax + 4], edx
call fcn.004018f0
mov eax, dword [ebp - 0x408]
mov ecx, dword [ebp - 4]
add eax, 8
mov dword [ebx], eax
mov eax, esi
pop esi
xor ecx, ebp
pop edi
call fcn.00402c9c
mov esp, ebp
pop ebp
ret
Function at 0x402420
Capabilities:
Check os version
Delete file
Move file
Write file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x40c
mov eax, dword [0x40e004]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
push esi
push edi
lea ebx, [ebp - 0x40c]
call fcn.00402330
mov ebx, eax
test ebx, ebx
je 0x40258b
mov edi, dword [sym.imp.KERNEL32.dll_CreateFileW]
push 0
push 0
push 2
push 0
push 1
push 0x40000000
push 0x44f958
call edi
mov esi, eax
cmp esi, 0xffffffff
jne 0x402537
mov ax, word [0x44f958]
lea esi, [ebp - 0x408]
test ax, ax
je 0x4024a2
movzx ecx, ax
mov edx, 0x44f958
mov eax, esi
sub edx, eax
nop
movzx eax, word [edx + esi + 2]
mov word [esi], cx
add esi, 2
mov ecx, eax
test ax, ax
jne 0x402490
xor ecx, ecx
mov word [esi], cx
call dword [sym.imp.KERNEL32.dll_GetTickCount]
mov ecx, esi
call fcn.00401a50
mov esi, 0x40cd20
mov edx, 0x2e
sub esi, eax
mov word [eax], dx
movzx ecx, word [esi + eax + 2]
add eax, 2
mov edx, ecx
test cx, cx
jne 0x4024c0
mov esi, dword [sym.imp.KERNEL32.dll_MoveFileExW]
xor edx, edx
mov word [eax], dx
push edx
lea eax, [ebp - 0x408]
push eax
push 0x44f958
call esi
push 4
push 0
lea ecx, [ebp - 0x408]
push ecx
call esi
push 0
push 0
push 2
push 0
push 1
push 0x40000000
push 0x44f958
call edi
mov esi, eax
cmp esi, 0xffffffff
jne 0x402537
mov edx, dword [0x44f89c]
push ebx
push 0
push edx
call dword [sym.imp.KERNEL32.dll_HeapFree]
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.00402c9c
mov esp, ebp
pop ebp
ret
mov ecx, dword [ebp - 0x40c]
push 0
lea eax, [ebp - 0x40c]
push eax
push ecx
push ebx
push esi
call dword [sym.imp.KERNEL32.dll_WriteFile]
push esi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov edx, dword [0x44f89c]
push ebx
push 0
push edx
call dword [sym.imp.KERNEL32.dll_HeapFree]
call dword [sym.imp.KERNEL32.dll_GetVersion]
cmp al, 5
jne 0x402586
call fcn.00401b20
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.00402c9c
mov esp, ebp
pop ebp
ret
call fcn.00401e40
mov ecx, dword [ebp - 4]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.00402c9c
mov esp, ebp
pop ebp
ret

Function at 0x4025a0
Capabilities:
Enumerate processes

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x230
mov eax, dword [0x40e004]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
mov ebx, dword [sym.imp.KERNEL32.dll_Process32FirstW]
push esi
push edi
mov edi, dword [sym.imp.KERNEL32.dll_CreateToolhelp32Snapshot]
push 0
push 2
call edi
mov esi, eax
lea eax, [ebp - 0x230]
push eax
push esi
mov dword [ebp - 0x230], 0x22c
call ebx
test eax, eax
je 0x402613
lea ecx, [ebp - 0x20c]
push str.explorer.exe
push ecx
call fcn.00402eaf
add esp, 8
test eax, eax
je 0x40261d
lea edx, [ebp - 0x230]
push edx
push esi
call dword [sym.imp.KERNEL32.dll_Process32NextW]
test eax, eax
jne 0x4025e2
push esi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
push 0x64
call dword [sym.imp.KERNEL32.dll_Sleep]
jmp 0x4025c2
push esi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov ecx, dword [ebp - 4]
mov eax, dword [ebp - 0x228]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.00402c9c
mov esp, ebp
pop ebp
ret
Function at 0x402640
Capabilities:
Acquire debug privileges

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x20
mov eax, dword [0x40e004]
xor eax, ebp
mov dword [ebp - 4], eax
push esi
push edi
call fcn.004025a0
mov esi, eax
lea eax, [ebp - 0x1c]
push eax
push 0x28
push 0xffffffffffffffff
call dword [sym.imp.ADVAPI32.dll_OpenProcessToken]
test eax, eax
je 0x4026a0
lea ecx, [ebp - 0x10]
push ecx
push str.SeDebugPrivilege
push 0
call dword [sym.imp.ADVAPI32.dll_LookupPrivilegeValueW]
mov eax, dword [ebp - 0x1c]
push 0
push 0
push 0x10
lea edx, [ebp - 0x14]
push edx
push 0
push eax
mov dword [ebp - 0x14], 1
mov dword [ebp - 8], 2
call dword [sym.imp.ADVAPI32.dll_AdjustTokenPrivileges]
push esi
push 0
push 0x1fffff
call dword [sym.imp.KERNEL32.dll_OpenProcess]
mov edi, eax
test edi, edi
je 0x402760
cmp edi, 0xffffffff
je 0x402760
mov ecx, dword [0x40eb20]
or ecx, dword [0x40eb24]
mov esi, 0x40eb20
je 0x4026de
mov edx, dword [esi + 0xc]
add esi, 8
or edx, dword [esi]
jne 0x4026d4
push 0x1198
add esi, 8
push 0x40bb80
push esi
call fcn.00406040
mov eax, dword [0x4506f0]
sub esi, 0x40eb20
add esp, 0xc
add esi, 0x4660
mov dword [ebp - 0x18], 0
test eax, eax
jne 0x402730
push str.kernel32.dll
call dword [sym.imp.KERNEL32.dll_GetModuleHandleA]
push str.IsWow64Process
push eax
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
mov dword [0x4506f0], eax
test eax, eax
je 0x402738
lea ecx, [ebp - 0x18]
push ecx
push 0xffffffffffffffff
call eax
cmp dword [ebp - 0x18], 0
push esi
mov edx, edi
je 0x40274a
push 1
mov ecx, 0x40a6c8
jmp 0x402751
push 0
mov ecx, 0x409ac8
call fcn.004015b0
add esp, 8
push edi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov ecx, dword [ebp - 4]
pop edi
xor ecx, ebp
pop esi
call fcn.00402c9c
mov esp, ebp
pop ebp
ret
Function at 0x402c9c
Capabilities:
Terminate process

Disassembly:
cmp ecx, dword [0x40e004]
jne 0x402ca6
repz ret
jmp fcn.0040313a

Function at 0x40699c
Capabilities:
Link many functions at runtime

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x24
mov eax, dword [0x40e004]
xor eax, ebp
mov dword [ebp - 4], eax
mov eax, dword [ebp + 8]
push ebx
mov dword [ebp - 0x20], eax
mov eax, dword [ebp + 0xc]
push esi
push edi
mov dword [ebp - 0x1c], eax
call fcn.00403d52
and dword [ebp - 0x14], 0
cmp dword [0x44f87c], 0
mov dword [ebp - 0x18], eax
jne 0x406a4f
push str.USER32.DLL
call dword [sym.imp.KERNEL32.dll_LoadLibraryW]
mov ebx, eax
test ebx, ebx
je 0x406af7
mov edi, dword [sym.imp.KERNEL32.dll_GetProcAddress]
push str.MessageBoxW
push ebx
call edi
test eax, eax
je 0x406af7
mov esi, dword [sym.imp.KERNEL32.dll_EncodePointer]
push eax
call esi
push str.GetActiveWindow
push ebx
mov dword [0x44f87c], eax
call edi
push eax
call esi
push str.GetLastActivePopup
push ebx
mov dword [0x44f880], eax
call edi
push eax
call esi
push str.GetUserObjectInformationW
push ebx
mov dword [0x44f884], eax
call edi
push eax
call esi
mov dword [0x44f88c], eax
test eax, eax
je 0x406a4f
push str.GetProcessWindowStation
push ebx
call edi
push eax
call esi
mov dword [0x44f888], eax
mov eax, dword [0x44f888]
mov ecx, dword [ebp - 0x18]
mov esi, dword [sym.imp.KERNEL32.dll_DecodePointer]
cmp eax, ecx
je 0x406aa8
cmp dword [0x44f88c], ecx
je 0x406aa8
push eax
call esi
push dword [0x44f88c]
mov edi, eax
call esi
mov ebx, eax
test edi, edi
je 0x406aa8
test ebx, ebx
je 0x406aa8
call edi
test eax, eax
je 0x406a9f
lea ecx, [ebp - 0x24]
push ecx
push 0xc
lea ecx, [ebp - 0x10]
push ecx
push 1
push eax
call ebx
test eax, eax
je 0x406a9f
test byte [ebp - 8], 1
jne 0x406aa8
or dword [ebp + 0x10], 0x200000
jmp 0x406adb
mov eax, dword [0x44f880]
cmp eax, dword [ebp - 0x18]
je 0x406adb
push eax
call esi
test eax, eax
je 0x406adb
call eax
mov dword [ebp - 0x14], eax
test eax, eax
je 0x406adb
mov eax, dword [0x44f884]
cmp eax, dword [ebp - 0x18]
je 0x406adb
push eax
call esi
test eax, eax
je 0x406adb
push dword [ebp - 0x14]
call eax
mov dword [ebp - 0x14], eax
push dword [0x44f87c]
call esi
test eax, eax
je 0x406af7
push dword [ebp + 0x10]
push dword [ebp - 0x1c]
push dword [ebp - 0x20]
push dword [ebp - 0x14]
call eax
jmp 0x406af9
xor eax, eax
mov ecx, dword [ebp - 4]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.00402c9c
leave
ret
Function at 0x40b840
Capabilities:
Enumerate files on windows

Disassembly:
push 0xffffffffffffffff
push 0x4726bb
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.00466cfe
mov ecx, dword [esp + 8]
mov dword [esp + 0x190], 0
mov eax, dword [ecx - 8]
test eax, eax
je 0x40b8c2
lea edx, [esp + 0x10]
push 1
push edx
lea ecx, [esp + 0x10]
call fcn.0046436d
mov eax, dword [eax]
push 0x48b1d0
push eax
call fcn.00456764
add esp, 8
lea ecx, [esp + 0x10]
test eax, eax
setne bl
call fcn.00466f89
test bl, bl
je 0x40b8c2
push 0x48b1d0
lea ecx, [esp + 0xc]
call fcn.00467319
push 0x48ed4c
lea ecx, [esp + 0xc]
call fcn.00467319
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 0x40b8fe
lea ecx, [esp + 8]
mov dword [esp + 0x190], eax
call fcn.00466f89
jmp 0x40b9c9
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 0x40b982
lea edx, [esp + 0x7c]
push 0x48ed48
push edx
call fcn.00456764
add esp, 8
test eax, eax
je 0x40b982
lea eax, [esp + 0x7c]
push 0x48ed44
push eax
call fcn.00456764
add esp, 8
test eax, eax
je 0x40b982
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 0x40b912
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.00466f89
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 0x40c1c0
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 0x40c222
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