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

Disassembly:
push ebp
mov ebp, esp
push ecx
push ebx
mov eax, dword [0x469b00]
cmp byte [eax + 0xc], 0
je 0x43e759
push 0x8000
call sub.kernel32.dll_SetErrorMode
mov dword [ebp - 4], eax
xor eax, eax
push ebp
push 0x43e752
push dword fs:[eax]
mov dword fs:[eax], esp
cmp dword [0x46ab64], 0
jne 0x43e640
push 0x43e760
call sub.kernel32.dll_GetModuleHandleA_2
mov ebx, eax
push 0x43e768
push ebx
call sub.kernel32.dll_GetProcAddress_1
mov dword [0x46ab64], eax
cmp dword [0x468bb4], 0
jne 0x43e73b
push 0x43e778
call sub.kernel32.dll_LoadLibraryA
mov dword [0x468bb4], eax
cmp dword [0x468bb4], 0
je 0x43e73b
push 0x43e784
mov eax, dword [0x468bb4]
push eax
call sub.kernel32.dll_GetProcAddress_1
mov dword [0x46ab68], eax
push 0x43e794
mov eax, dword [0x468bb4]
push eax
call sub.kernel32.dll_GetProcAddress_1
mov dword [0x46ab6c], eax
push 0x43e7a8
mov eax, dword [0x468bb4]
push eax
call sub.kernel32.dll_GetProcAddress_1
mov dword [0x46ab70], eax
push 0x43e7c0
mov eax, dword [0x468bb4]
push eax
call sub.kernel32.dll_GetProcAddress_1
mov dword [0x46ab74], eax
push 0x43e7d8
mov eax, dword [0x468bb4]
push eax
call sub.kernel32.dll_GetProcAddress_1
mov dword [0x46ab78], eax
push 0x43e7ec
mov eax, dword [0x468bb4]
push eax
call sub.kernel32.dll_GetProcAddress_1
mov dword [0x46ab7c], eax
push 0x43e804
mov eax, dword [0x468bb4]
push eax
call sub.kernel32.dll_GetProcAddress_1
mov dword [0x46ab80], eax
push 0x43e81c
mov eax, dword [0x468bb4]
push eax
call sub.kernel32.dll_GetProcAddress_1
mov dword [0x46ab84], eax
push 0x43e838
mov eax, dword [0x468bb4]
push eax
call sub.kernel32.dll_GetProcAddress_1
mov dword [0x46ab88], eax
push 0x43e844
mov eax, dword [0x468bb4]
push eax
call sub.kernel32.dll_GetProcAddress_1
mov dword [0x46ab8c], eax
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x43e759
mov eax, dword [ebp - 4]
push eax
call sub.kernel32.dll_SetErrorMode
ret
pop ebx
pop ecx
pop ebp
ret

Function at 0x4425e4
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.00403e4c
push 0
xor eax, eax
mov al, byte [ebp - 2]
push eax
call sub.user32.dll_MapVirtualKeyA
shl eax, 0x10
test eax, eax
je 0x442633
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.004040bc
pop ebx
mov esp, ebp
pop ebp
ret

Function at 0x449d70
Capabilities:
Log keystrokes via polling

Disassembly:
push ebx
push esi
mov esi, eax
mov bl, byte [0x449dc0]
test si, 4
je 0x449d84
or bl, 1
test si, 8
je 0x449d8e
or bl, 4
test si, 1
je 0x449d98
or bl, 8
test si, 2
je 0x449da2
or bl, 0x10
test si, 0x10
je 0x449dac
or bl, 0x20
push 0x12
call sub.user32.dll_GetKeyState
test ax, ax
jge 0x449dbb
or bl, 2
mov eax, ebx
pop esi
pop ebx
ret
Function at 0x449dc4
Capabilities:
Log keystrokes via polling

Disassembly:
push ebx
push esi
mov esi, eax
mov bl, byte [0x449dfc]
push 0x10
call sub.user32.dll_GetKeyState
test ax, ax
jge 0x449ddd
or bl, 1
push 0x11
call sub.user32.dll_GetKeyState
test ax, ax
jge 0x449dec
or bl, 4
test esi, 0x20000000
je 0x449df7
or bl, 2
mov eax, ebx
pop esi
pop ebx
ret

Function at 0x4504a4
Capabilities:
Get keyboard layout

Disassembly:
push ebp
mov ebp, esp
push ecx
push ebx
push esi
test dl, dl
je 0x4504b6
add esp, 0xfffffff0
call fcn.00403420
mov byte [ebp - 1], dl
mov ebx, eax
xor edx, edx
mov eax, ebx
call fcn.00419240
mov eax, dword [0x4697c4]
mov dword [eax + 4], ebx
mov dword [eax], 0x450848
mov eax, dword [0x4697d0]
mov dword [eax + 4], ebx
mov dword [eax], 0x450854
mov eax, ebx
call fcn.00450860
push 0
call sub.user32.dll_GetKeyboardLayout
mov dword [ebx + 0x3c], eax
mov dl, 1
mov eax, dword [0x411538]
call fcn.004030cc
mov dword [ebx + 0x4c], eax
mov dl, 1
mov eax, dword [0x411538]
call fcn.004030cc
mov dword [ebx + 0x50], eax
mov dl, 1
mov eax, dword [0x411538]
call fcn.004030cc
mov dword [ebx + 0x54], eax
mov dl, 1
mov eax, dword [0x411538]
call fcn.004030cc
mov dword [ebx + 0x58], eax
mov dl, 1
mov eax, dword [0x411538]
call fcn.004030cc
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, 0x44cc7c
push eax
push 0
push 0
mov eax, dword [0x469914]
mov eax, dword [eax]
call eax
mov dl, 1
mov eax, dword [0x41ac9c]
call fcn.0041c410
mov dword [ebx + 0x84], eax
mov dl, 1
mov eax, dword [0x41ac9c]
call fcn.0041c410
mov dword [ebx + 0x88], eax
mov dl, 1
mov eax, dword [0x41ac9c]
call fcn.0041c410
mov dword [ebx + 0x80], eax
mov eax, ebx
call fcn.00450c80
mov eax, dword [ebx + 0x84]
mov dword [eax + 0xc], ebx
mov dword [eax + 8], 0x450b5c
mov eax, dword [ebx + 0x88]
mov dword [eax + 0xc], ebx
mov dword [eax + 8], 0x450b5c
mov eax, dword [ebx + 0x80]
mov dword [eax + 0xc], ebx
mov dword [eax + 8], 0x450b5c
mov eax, ebx
cmp byte [ebp - 1], 0
je 0x4505f3
call fcn.00403478
pop dword fs:[0]
add esp, 0xc
mov eax, ebx
pop esi
pop ebx
pop ecx
pop ebp
ret
Function at 0x450940
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 0x450aeb
push dword fs:[eax]
mov dword fs:[eax], esp
mov eax, dword [ebp - 4]
cmp dword [eax + 0x34], 0
jne 0x450acc
mov dl, 1
mov eax, dword [0x411954]
call fcn.004030cc
mov edx, dword [ebp - 4]
mov dword [edx + 0x34], eax
mov eax, dword [ebp - 4]
add eax, 0x38
call fcn.00403e4c
lea eax, [ebp - 0x114]
push eax
push 0x40
call sub.user32.dll_GetKeyboardLayoutList
dec eax
test eax, eax
jl 0x450abb
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.0043e94c
test al, al
je 0x450aae
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, 0x450afc
lea eax, [ebp - 0x254]
call fcn.00408994
push eax
push 0x80000002
call sub.advapi32.dll_RegOpenKeyExA_1
test eax, eax
jne 0x450aae
xor eax, eax
push ebp
push 0x450aa7
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 0x450b34
mov eax, dword [ebp - 0xc]
push eax
call sub.advapi32.dll_RegQueryValueExA_1
test eax, eax
jne 0x450a90
lea eax, [ebp - 0x260]
lea edx, [ebp - 0x214]
mov ecx, pe_nt_image_headers32
call fcn.004040bc
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 0x450a90
mov eax, dword [ebp - 4]
add eax, 0x38
lea edx, [ebp - 0x214]
mov ecx, pe_nt_image_headers32
call fcn.004040bc
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x450aae
mov eax, dword [ebp - 0xc]
push eax
call sub.advapi32.dll_RegCloseKey_1
ret
add dword [ebp - 0x14], 4
dec dword [ebp - 0x10]
jne 0x4509b1
mov eax, dword [ebp - 4]
mov eax, dword [eax + 0x34]
mov byte [eax + 0x1d], 0
mov dl, 1
call fcn.00415430
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 0x450af2
lea eax, [ebp - 0x260]
call fcn.00403e4c
ret

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

Disassembly:
push ecx
mov eax, dword [0x46abb0]
cmp byte [eax + 0xa5], 0
jne 0x451491
cmp dword [0x46abc8], 0
jne 0x451452
call sub.kernel32.dll_GetCurrentThreadId_1
push eax
push 0
mov eax, 0x4513dc
push eax
push 3
call sub.user32.dll_SetWindowsHookExA
mov dword [0x46abc8], eax
cmp dword [0x46abc4], 0
jne 0x45146d
push 0
push 0
push 0
push 0
call sub.kernel32.dll_CreateEventA
mov dword [0x46abc4], eax
cmp dword [0x46abcc], 0
jne 0x451491
push esp
push 0
push 0
push 0x451380
push 0x3e8
push 0
call sub.kernel32.dll_CreateThread
mov dword [0x46abcc], eax
pop edx
ret
Function at 0x451588
Capabilities:
Inspect load icon resource

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffefc
push ebx
push esi
test dl, dl
je 0x45159f
add esp, 0xfffffff0
call fcn.00403420
mov byte [ebp - 1], dl
mov ebx, eax
xor edx, edx
mov eax, ebx
call fcn.00419240
mov eax, dword [0x469900]
cmp word [eax + 2], 0
jne 0x4515c7
mov eax, dword [0x469900]
mov dword [eax + 4], ebx
mov dword [eax], fcn.00452c60
mov eax, dword [0x4699b4]
cmp word [eax + 2], 0
jne 0x4515e1
mov eax, dword [0x4699b4]
mov dword [eax + 4], ebx
mov dword [eax], fcn.00452e58
mov byte [ebx + 0x34], 0
mov dl, 1
mov eax, dword [0x411538]
call fcn.004030cc
mov dword [ebx + 0x90], eax
mov dl, 1
mov eax, dword [0x411538]
call fcn.004030cc
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 [0x41b77c]
call fcn.00422e18
mov esi, eax
mov dword [ebx + 0x98], esi
push 0x451768
mov eax, dword [0x469828]
mov eax, dword [eax]
push eax
call sub.user32.dll_LoadIconA
mov edx, eax
mov eax, esi
call fcn.004231e8
mov eax, dword [ebx + 0x98]
mov dword [eax + 0x14], ebx
mov dword [eax + 0x10], 0x4533f8
push pe_nt_image_headers32
lea eax, [ebp - 0x101]
push eax
mov eax, dword [0x469828]
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.0040c0d4
test eax, eax
je 0x4516d6
lea edx, [eax + 1]
lea eax, [ebp - 0x101]
call fcn.00408374
lea eax, [ebp - 0x101]
mov dl, 0x2e
call fcn.0040c0fc
test eax, eax
je 0x4516ea
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.004040bc
mov eax, dword [0x469714]
cmp byte [eax], 0
jne 0x45171e
mov eax, ebx
call fcn.00451890
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.004535d4
mov eax, ebx
call fcn.00453f98
mov eax, ebx
cmp byte [ebp - 1], 0
je 0x45175e
call fcn.00403478
pop dword fs:[0]
add esp, 0xc
mov eax, ebx
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x451b10
Capabilities:
Enumerate gui resources

Disassembly:
push ebx
push esi
add esp, 0xfffffff8
mov ebx, eax
mov eax, dword [0x46abb0]
cmp dword [eax + 0x30], 0
je 0x451bba
cmp dword [ebx + 0x94], 0
jne 0x451bb4
mov eax, dword [ebx + 0x30]
mov dword [esp], eax
mov byte [esp + 4], dl
mov eax, esp
push eax
push 0x451aa0
call sub.user32.dll_EnumWindows
mov eax, dword [ebx + 0x90]
cmp dword [eax + 8], 0
je 0x451bb4
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 0x451b7a
mov dword [esp], 0xfffffffe
mov eax, dword [ebx + 0x90]
mov esi, dword [eax + 8]
dec esi
cmp esi, 0
jl 0x451bb4
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.004138a0
push eax
call sub.user32.dll_SetWindowPos
dec esi
cmp esi, 0xffffffff
jne 0x451b89
inc dword [ebx + 0x94]
pop ecx
pop edx
pop esi
pop ebx
ret

Function at 0x45271c
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 0x452751
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.00403f3c
jmp 0x45275e
mov eax, esi
mov edx, dword [ebx + 0x8c]
call fcn.00403ea0
add esp, 0x100
pop esi
pop ebx
ret

Function at 0x4537b0
Capabilities:
Hide graphical window

Disassembly:
push ebx
push esi
mov ebx, eax
mov esi, dword [ebx + 0x84]
test esi, esi
je 0x4537f1
mov eax, esi
call fcn.00439f78
test al, al
je 0x4537f1
mov eax, dword [ebx + 0x84]
call fcn.00439c74
push eax
call sub.user32.dll_IsWindowVisible
test eax, eax
je 0x4537f1
push 0
mov eax, dword [ebx + 0x84]
call fcn.00439c74
push eax
call sub.user32.dll_ShowWindow
pop esi
pop ebx
ret

Function at 0x457040
Capabilities:
Check for software breakpoints

Disassembly:
push ebx
mov ebx, eax
cmp dword [ebx + 0x14], 0xca
jne 0x45706e
mov eax, ebx
call fcn.00457af4
cmp dword [ebx + 0x40], 0
je 0x457067
mov dword [ebx + 0x14], 0xcf
mov eax, 1
pop ebx
ret
mov dword [ebx + 0x14], 0xcb
cmp dword [ebx + 0x14], 0xcb
jne 0x4570df
mov edx, dword [ebx + 0x1b4]
cmp dword [edx + 0x10], 0
je 0x4570d1
cmp dword [ebx + 8], 0
je 0x457090
mov eax, ebx
mov edx, dword [eax + 8]
call dword [edx]
mov eax, ebx
mov edx, dword [eax + 0x1b4]
call dword [edx]
test eax, eax
jne 0x4570a2
xor eax, eax
pop ebx
ret
cmp eax, 2
je 0x4570d1
cmp dword [ebx + 8], 0
je 0x457083
cmp eax, 3
je 0x4570b5
dec eax
jne 0x457083
mov edx, dword [ebx + 8]
inc dword [edx + 4]
mov ecx, dword [edx + 4]
mov eax, dword [ebx + 8]
cmp ecx, dword [eax + 8]
jl 0x457083
mov edx, dword [ebx + 0x140]
add dword [eax + 8], edx
jmp 0x457083
mov ecx, dword [ebx + 0x90]
mov dword [ebx + 0x98], ecx
jmp 0x4570fd
cmp dword [ebx + 0x14], 0xcc
je 0x4570fd
mov eax, dword [ebx]
mov dword [eax + 0x14], 0x14
mov edx, dword [ebx + 0x14]
mov dword [eax + 0x18], edx
mov eax, ebx
mov edx, dword [eax]
call dword [edx]
mov eax, ebx
call fcn.00457108
pop ebx
ret
Function at 0x40bb34
Capabilities:
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
add esp, 0xffffffec
push ebx
push esi
push edi
xor ebx, ebx
mov dword [ebp - 4], ebx
mov dword [ebp - 0xc], ecx
mov dword [ebp - 8], edx
mov edi, eax
xor eax, eax
push ebp
push 0x40bc6c
push dword fs:[eax]
mov dword fs:[eax], esp
xor ebx, ebx
xor eax, eax
mov dword [ebp - 0x14], eax
lea eax, [ebp - 0x14]
push eax
push 0
lea eax, [ebp - 0x10]
push eax
push 0
mov eax, dword [ebp - 8]
push eax
push edi
call sub.advapi32.dll_RegQueryValueExW_1
test eax, eax
jne 0x40bc56
mov eax, dword [ebp - 0x10]
cmp eax, dword [ebp + 0xc]
je 0x40bb91
mov eax, dword [ebp - 0x10]
cmp eax, dword [ebp + 8]
jne 0x40bc56
cmp dword [ebp - 0x14], 0
jne 0x40bba8
mov eax, dword [ebp - 0xc]
xor edx, edx
call fcn.00404c98
mov bl, 1
jmp 0x40bc56
cmp dword [ebp - 0x14], 0x70000000
jb 0x40bbb6
call fcn.00409818
mov esi, dword [ebp - 0x14]
inc esi
shr esi, 1
lea eax, [ebp - 4]
mov ecx, esi
xor edx, edx
call fcn.00404dd4
lea eax, [ebp - 0x14]
push eax
lea eax, [ebp - 4]
call fcn.004054ac
push eax
lea eax, [ebp - 0x10]
push eax
push 0
mov eax, dword [ebp - 8]
push eax
push edi
call sub.advapi32.dll_RegQueryValueExW_1
cmp eax, 0xea
je 0x40bb5a
test eax, eax
jne 0x40bc56
mov eax, dword [ebp - 0x10]
cmp eax, dword [ebp + 0xc]
je 0x40bc04
mov eax, dword [ebp - 0x10]
cmp eax, dword [ebp + 8]
jne 0x40bc56
mov esi, dword [ebp - 0x14]
shr esi, 1
jmp 0x40bc0c
dec esi
test esi, esi
je 0x40bc1b
mov eax, dword [ebp - 4]
cmp word [eax + esi*2 - 2], 0
je 0x40bc0b
cmp dword [ebp - 0x10], 7
jne 0x40bc26
test esi, esi
je 0x40bc26
inc esi
lea eax, [ebp - 4]
mov edx, esi
call fcn.00404f00
cmp dword [ebp - 0x10], 7
jne 0x40bc49
test esi, esi
je 0x40bc49
lea eax, [ebp - 4]
call fcn.004054ac
mov word [eax + esi*2 - 2], 0
mov eax, dword [ebp - 0xc]
mov edx, dword [ebp - 4]
call fcn.00404c98
mov bl, 1
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x40bc73
lea eax, [ebp - 4]
call fcn.00404c88
ret

Function at 0x40c6b0
Capabilities:
Hash data with crc32

Disassembly:
push esi
xor esi, esi
mov ecx, 0x417d9c
mov eax, esi
mov edx, 8
test al, 1
je 0x40c6cc
shr eax, 1
xor eax, 0xedb88320
jmp 0x40c6ce
shr eax, 1
dec edx
jne 0x40c6bf
mov dword [ecx], eax
inc esi
add ecx, 4
cmp esi, 0x100
jne 0x40c6b8
pop esi
ret

Function at 0x40c6fb
Capabilities:
Encode data using xor

Disassembly:
push ebx
push esi
push edi
mov esi, ecx
mov edi, edx
mov ebx, eax
cmp dword [0x417d98], 0
jne 0x40c707
call fcn.0040c6b0
push 1
push 0x417d98
call sub.kernel32.dll_InterlockedExchange
mov eax, edi
test esi, esi
je 0x40c732
mov edx, ebx
and edx, 0xff
movzx ecx, byte [eax]
xor dx, cx
movzx edx, dx
mov edx, dword [edx*4 + 0x417d9c]
shr ebx, 8
xor edx, ebx
mov ebx, edx
dec esi
inc eax
test esi, esi
jne 0x40c70d
mov eax, ebx
pop edi
pop esi
pop ebx
ret
Function at 0x40e168
Capabilities:
Delete file

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffff0
push ebx
push esi
mov esi, edx
mov ebx, eax
lea edx, [ebp - 0xc]
mov eax, ebx
call fcn.0040e11c
test al, al
jne 0x40e189
xor eax, eax
mov dword [ebp - 4], eax
jmp 0x40e1d5
xor eax, eax
push ebp
push 0x40e1c5
push dword fs:[eax]
mov dword fs:[eax], esp
mov eax, esi
call fcn.00404d24
push eax
call sub.kernel32.dll_DeleteFileW
mov dword [ebp - 4], eax
call sub.kernel32.dll_GetLastError
mov dword [ebp - 0x10], eax
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x40e1cc
lea eax, [ebp - 0xc]
call fcn.0040e158
ret
mov eax, dword [ebp - 4]
pop esi
pop ebx
mov esp, ebp
pop ebp
ret

Function at 0x40e414
Capabilities:
Create directory

Disassembly:
push ebp
mov ebp, esp
mov ecx, 4
push 0
push 0
dec ecx
jne 0x40e41c
push ecx
push ebx
push esi
mov esi, eax
xor eax, eax
push ebp
push 0x40e509
push dword fs:[eax]
mov dword fs:[eax], esp
lea eax, [ebp - 4]
push eax
lea eax, [ebp - 8]
call fcn.0040b9fc
mov edx, dword [ebp - 8]
mov ecx, 0x40e524
xor eax, eax
call fcn.0040e2f8
push 0
mov eax, dword [ebp - 4]
call fcn.00404d24
push eax
call sub.kernel32.dll_CreateDirectoryW
test eax, eax
jne 0x40e4d7
call sub.kernel32.dll_GetLastError
mov ebx, eax
cmp ebx, 0xb7
je 0x40e436
lea eax, [ebp - 0xc]
push eax
lea ecx, [ebp - 0x1c]
mov edx, dword [ebp - 4]
mov al, 0x36
call fcn.0040df20
mov eax, dword [ebp - 0x1c]
mov dword [ebp - 0x18], eax
mov eax, ebx
xor edx, edx
push edx
push eax
lea eax, [ebp - 0x20]
call fcn.00407ee8
mov eax, dword [ebp - 0x20]
mov dword [ebp - 0x14], eax
lea edx, [ebp - 0x24]
mov eax, ebx
call fcn.0040bf84
mov eax, dword [ebp - 0x24]
mov dword [ebp - 0x10], eax
lea edx, [ebp - 0x18]
mov ecx, 2
mov al, 0x68
call fcn.0040def0
mov ecx, dword [ebp - 0xc]
mov dl, 1
mov eax, dword [0x406d5c]
call fcn.00409824
call fcn.00403f88
jmp 0x40e436
mov eax, esi
mov edx, dword [ebp - 4]
call fcn.00404c98
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x40e510
lea eax, [ebp - 0x24]
mov edx, 3
call fcn.00404c90
lea eax, [ebp - 0xc]
mov edx, 3
call fcn.00404c90
ret

Function at 0x40e5dc
Capabilities:
Check if file exists

Disassembly:
push ebp
mov ebp, esp
push ecx
push ebx
push esi
push edi
mov dword [ebp - 4], edx
mov ebx, eax
mov esi, ecx
dec esi
test esi, esi
jl 0x40e636
inc esi
xor edi, edi
cmp edi, 1
jne 0x40e602
mov eax, dword [ebp + 0xc]
push eax
call sub.kernel32.dll_Sleep_1
jmp 0x40e610
cmp edi, 1
jle 0x40e610
mov eax, dword [ebp + 8]
push eax
call sub.kernel32.dll_Sleep_1
mov edx, dword [ebp - 4]
mov eax, ebx
call fcn.0040e168
test eax, eax
jne 0x40e636
call sub.kernel32.dll_GetLastError
cmp eax, 2
je 0x40e636
call sub.kernel32.dll_GetLastError
cmp eax, 3
je 0x40e636
inc edi
dec esi
jne 0x40e5f2
pop edi
pop esi
pop ebx
pop ecx
pop ebp
ret 8

Function at 0x40e640
Capabilities:
Get geographical location

Disassembly:
push ebp
mov ebp, esp
push ecx
push ebx
mov ebx, eax
push 2
lea eax, [ebp - 4]
push eax
push 0x20001004
movzx eax, bx
push eax
call sub.kernel32.dll_GetLocaleInfoW_1
test eax, eax
jle 0x40e664
mov eax, dword [ebp - 4]
jmp 0x40e667
or eax, 0xffffffff
pop ebx
pop ecx
pop ebp
ret
Function at 0x40e66c
Capabilities:
Identify system language via api

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffff8
push ebx
push esi
push edi
mov esi, ecx
mov byte [ebp - 1], dl
mov edi, eax
mov eax, dword [ebp + 8]
xor edx, edx
mov dword [eax], edx
mov byte [ebp - 2], 0
test esi, esi
je 0x40e6b9
xor ebx, ebx
jmp 0x40e6ae
mov eax, dword [ebp - 8]
mov edx, dword [eax]
mov eax, esi
call fcn.00407bdc
test eax, eax
jne 0x40e6ad
mov eax, dword [ebp + 8]
mov dword [eax], ebx
mov byte [ebp - 2], 2
jmp 0x40e763
inc ebx
lea edx, [ebp - 8]
mov eax, ebx
call edi
test al, al
jne 0x40e68f
movzx eax, byte [ebp - 1]
sub al, 1
jb 0x40e6c5
je 0x40e6ce
jmp 0x40e6d7
call fcn.0040bcb4
mov esi, eax
jmp 0x40e6d9
call sub.kernel32.dll_GetUserDefaultLangID
mov esi, eax
jmp 0x40e6d9
xor esi, esi
test si, si
je 0x40e763
xor ebx, ebx
jmp 0x40e6ff
mov eax, dword [ebp - 8]
mov eax, dword [eax + 0x28]
movzx edx, si
cmp eax, edx
jne 0x40e6fe
mov eax, dword [ebp + 8]
mov dword [eax], ebx
mov byte [ebp - 2], 1
jmp 0x40e763
inc ebx
lea edx, [ebp - 8]
mov eax, ebx
call edi
test al, al
jne 0x40e6e6
xor ebx, ebx
jmp 0x40e758
mov eax, dword [ebp - 8]
mov eax, dword [eax + 0x28]
and eax, 0x3ff
mov edx, esi
and dx, 0x3ff
movzx edx, dx
cmp eax, edx
jne 0x40e757
mov eax, esi
and ax, 0x3ff
cmp ax, 4
jne 0x40e74c
mov eax, dword [ebp - 8]
movzx eax, word [eax + 0x28]
call fcn.0040e640
push eax
mov eax, esi
call fcn.0040e640
pop edx
cmp edx, eax
jne 0x40e757
mov eax, dword [ebp + 8]
mov dword [eax], ebx
mov byte [ebp - 2], 1
jmp 0x40e763
inc ebx
lea edx, [ebp - 8]
mov eax, ebx
call edi
test al, al
jne 0x40e70e
movzx eax, byte [ebp - 2]
pop edi
pop esi
pop ebx
pop ecx
pop ecx
pop ebp
ret 4

Function at 0x40eb50
Capabilities:
Create process on windows
Create process suspended

Disassembly:
push ebp
mov ebp, esp
add esp, 0xffffffa8
push ebx
push esi
push edi
xor ebx, ebx
mov dword [ebp - 4], ebx
mov edi, ecx
mov esi, edx
mov ebx, eax
xor eax, eax
push ebp
push 0x40ec25
push dword fs:[eax]
mov dword fs:[eax], esp
push 0x40ec40
push ebx
push 0x40ec50
push esi
lea eax, [ebp - 4]
mov edx, 4
call fcn.0040513c
lea eax, [ebp - 0x48]
xor ecx, ecx
mov edx, 0x44
call fcn.00403250
mov dword [ebp - 0x48], 0x44
lea eax, [ebp - 0x58]
push eax
lea eax, [ebp - 0x48]
push eax
push 0
push 0
push 0
push 0
push 0
push 0
mov eax, dword [ebp - 4]
call fcn.00404d24
push eax
push 0
call sub.kernel32.dll_CreateProcessW
test eax, eax
jne 0x40ebd0
mov al, 0x6a
call fcn.0040e770
mov eax, dword [ebp - 0x54]
push eax
call sub.kernel32.dll_CloseHandle_1
call fcn.0040eb24
push 0xff
push 0xffffffffffffffff
push 0
lea eax, [ebp - 0x58]
push eax
push 1
call sub.user32.dll_MsgWaitForMultipleObjects
cmp eax, 1
je 0x40ebd9
call fcn.0040eb24
push edi
mov eax, dword [ebp - 0x58]
push eax
call sub.kernel32.dll_GetExitCodeProcess
mov eax, dword [ebp - 0x58]
push eax
call sub.kernel32.dll_CloseHandle_1
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x40ec2c
lea eax, [ebp - 4]
call fcn.00404c88
ret