joyce8/EMBER2024-capa huggingface dataset:
Function at 0x444de0
Capabilities:
Log keystrokes via polling

Disassembly:
push ebx
push esi
mov esi, eax
mov bl, byte [0x444e18]
push 0x10
call sub.user32.dll_GetKeyState
test ax, ax
jge 0x444df9
or bl, 1
push 0x11
call sub.user32.dll_GetKeyState
test ax, ax
jge 0x444e08
or bl, 4
test esi, 0x20000000
je 0x444e13
or bl, 2
mov eax, ebx
pop esi
pop ebx
ret

Function at 0x44b4c0
Capabilities:
Get keyboard layout

Disassembly:
push ebp
mov ebp, esp
push ecx
push ebx
push esi
test dl, dl
je 0x44b4d2
add esp, 0xfffffff0
call fcn.00403438
mov byte [ebp - 1], dl
mov ebx, eax
xor edx, edx
mov eax, ebx
call fcn.004190c4
mov eax, dword [0x451e9c]
mov dword [eax + 4], ebx
mov dword [eax], 0x44b864
mov eax, dword [0x451ea8]
mov dword [eax + 4], ebx
mov dword [eax], 0x44b870
mov eax, ebx
call fcn.0044b87c
push 0
call sub.user32.dll_GetKeyboardLayout
mov dword [ebx + 0x3c], eax
mov dl, 1
mov eax, dword [0x4113bc]
call fcn.004030fc
mov dword [ebx + 0x4c], eax
mov dl, 1
mov eax, dword [0x4113bc]
call fcn.004030fc
mov dword [ebx + 0x50], eax
mov dl, 1
mov eax, dword [0x4113bc]
call fcn.004030fc
mov dword [ebx + 0x54], eax
mov dl, 1
mov eax, dword [0x4113bc]
call fcn.004030fc
mov dword [ebx + 0x58], eax
mov dl, 1
mov eax, dword [0x4113bc]
call fcn.004030fc
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, 0x447c98
push eax
push 0
push 0
mov eax, dword [0x451fe8]
mov eax, dword [eax]
call eax
mov dl, 1
mov eax, dword [0x41aae8]
call fcn.0041bf2c
mov dword [ebx + 0x84], eax
mov dl, 1
mov eax, dword [0x41aae8]
call fcn.0041bf2c
mov dword [ebx + 0x88], eax
mov dl, 1
mov eax, dword [0x41aae8]
call fcn.0041bf2c
mov dword [ebx + 0x80], eax
mov eax, ebx
call fcn.0044bc9c
mov eax, dword [ebx + 0x84]
mov dword [eax + 0xc], ebx
mov dword [eax + 8], 0x44bb78
mov eax, dword [ebx + 0x88]
mov dword [eax + 0xc], ebx
mov dword [eax + 8], 0x44bb78
mov eax, dword [ebx + 0x80]
mov dword [eax + 0xc], ebx
mov dword [eax + 8], 0x44bb78
mov eax, ebx
cmp byte [ebp - 1], 0
je 0x44b60f
call fcn.00403490
pop dword fs:[0]
add esp, 0xc
mov eax, ebx
pop esi
pop ebx
pop ecx
pop ebp
ret
Function at 0x44b95c
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 0x44bb07
push dword fs:[eax]
mov dword fs:[eax], esp
mov eax, dword [ebp - 4]
cmp dword [eax + 0x34], 0
jne 0x44bae8
mov dl, 1
mov eax, dword [0x4117d8]
call fcn.004030fc
mov edx, dword [ebp - 4]
mov dword [edx + 0x34], eax
mov eax, dword [ebp - 4]
add eax, 0x38
call fcn.00403e64
lea eax, [ebp - 0x114]
push eax
push 0x40
call sub.user32.dll_GetKeyboardLayoutList
dec eax
test eax, eax
jl 0x44bad7
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.00439968
test al, al
je 0x44baca
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, 0x44bb18
lea eax, [ebp - 0x254]
call fcn.00408970
push eax
push 0x80000002
call sub.advapi32.dll_RegOpenKeyExA_1
test eax, eax
jne 0x44baca
xor eax, eax
push ebp
push 0x44bac3
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 0x44bb50
mov eax, dword [ebp - 0xc]
push eax
call sub.advapi32.dll_RegQueryValueExA_1
test eax, eax
jne 0x44baac
lea eax, [ebp - 0x260]
lea edx, [ebp - 0x214]
mov ecx, pe_nt_image_headers32
call fcn.004040d4
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 0x44baac
mov eax, dword [ebp - 4]
add eax, 0x38
lea edx, [ebp - 0x214]
mov ecx, pe_nt_image_headers32
call fcn.004040d4
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x44baca
mov eax, dword [ebp - 0xc]
push eax
call sub.advapi32.dll_RegCloseKey_1
ret
add dword [ebp - 0x14], 4
dec dword [ebp - 0x10]
jne 0x44b9cd
mov eax, dword [ebp - 4]
mov eax, dword [eax + 0x34]
mov byte [eax + 0x1d], 0
mov dl, 1
call fcn.004152b4
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 0x44bb0e
lea eax, [ebp - 0x260]
call fcn.00403e64
ret

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

Disassembly:
push ecx
mov eax, dword [0x453bb0]
cmp byte [eax + 0xa5], 0
jne 0x44c4ad
cmp dword [0x453bc8], 0
jne 0x44c46e
call sub.kernel32.dll_GetCurrentThreadId_1
push eax
push 0
mov eax, 0x44c3f8
push eax
push 3
call sub.user32.dll_SetWindowsHookExA
mov dword [0x453bc8], eax
cmp dword [0x453bc4], 0
jne 0x44c489
push 0
push 0
push 0
push 0
call sub.kernel32.dll_CreateEventA
mov dword [0x453bc4], eax
cmp dword [0x453bcc], 0
jne 0x44c4ad
push esp
push 0
push 0
push 0x44c39c
push 0x3e8
push 0
call sub.kernel32.dll_CreateThread
mov dword [0x453bcc], eax
pop edx
ret
Function at 0x44c5a4
Capabilities:
Inspect load icon resource

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffefc
push ebx
push esi
test dl, dl
je 0x44c5bb
add esp, 0xfffffff0
call fcn.00403438
mov byte [ebp - 1], dl
mov ebx, eax
xor edx, edx
mov eax, ebx
call fcn.004190c4
mov eax, dword [0x451fd4]
cmp word [eax + 2], 0
jne 0x44c5e3
mov eax, dword [0x451fd4]
mov dword [eax + 4], ebx
mov dword [eax], fcn.0044dd0c
mov eax, dword [0x45207c]
cmp word [eax + 2], 0
jne 0x44c5fd
mov eax, dword [0x45207c]
mov dword [eax + 4], ebx
mov dword [eax], fcn.0044df04
mov byte [ebx + 0x34], 0
mov dl, 1
mov eax, dword [0x4113bc]
call fcn.004030fc
mov dword [ebx + 0x90], eax
mov dl, 1
mov eax, dword [0x4113bc]
call fcn.004030fc
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 [0x41b298]
call fcn.00420ee0
mov esi, eax
mov dword [ebx + 0x98], esi
push 0x44c784
mov eax, dword [0x451efc]
mov eax, dword [eax]
push eax
call sub.user32.dll_LoadIconA
mov edx, eax
mov eax, esi
call fcn.004212b0
mov eax, dword [ebx + 0x98]
mov dword [eax + 0x14], ebx
mov dword [eax + 0x10], 0x44e4a4
push pe_nt_image_headers32
lea eax, [ebp - 0x101]
push eax
mov eax, dword [0x451efc]
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.0040bfac
test eax, eax
je 0x44c6f2
lea edx, [eax + 1]
lea eax, [ebp - 0x101]
call fcn.00408364
lea eax, [ebp - 0x101]
mov dl, 0x2e
call fcn.0040bfd4
test eax, eax
je 0x44c706
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.004040d4
mov eax, dword [0x451e00]
cmp byte [eax], 0
jne 0x44c73a
mov eax, ebx
call fcn.0044c8ac
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.0044e680
mov eax, ebx
call fcn.0044f044
mov eax, ebx
cmp byte [ebp - 1], 0
je 0x44c77a
call fcn.00403490
pop dword fs:[0]
add esp, 0xc
mov eax, ebx
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x44cb2c
Capabilities:
Enumerate gui resources

Disassembly:
push ebx
push esi
add esp, 0xfffffff8
mov ebx, eax
mov eax, dword [0x453bb0]
cmp dword [eax + 0x30], 0
je 0x44cbd6
cmp dword [ebx + 0x94], 0
jne 0x44cbd0
mov eax, dword [ebx + 0x30]
mov dword [esp], eax
mov byte [esp + 4], dl
mov eax, esp
push eax
push 0x44cabc
call sub.user32.dll_EnumWindows
mov eax, dword [ebx + 0x90]
cmp dword [eax + 8], 0
je 0x44cbd0
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 0x44cb96
mov dword [esp], 0xfffffffe
mov eax, dword [ebx + 0x90]
mov esi, dword [eax + 8]
dec esi
cmp esi, 0
jl 0x44cbd0
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.00413724
push eax
call sub.user32.dll_SetWindowPos
dec esi
cmp esi, 0xffffffff
jne 0x44cba5
inc dword [ebx + 0x94]
pop ecx
pop edx
pop esi
pop ebx
ret

Function at 0x44d738
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 0x44d76d
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.00403f54
jmp 0x44d77a
mov eax, esi
mov edx, dword [ebx + 0x8c]
call fcn.00403eb8
add esp, 0x100
pop esi
pop ebx
ret

Function at 0x44e85c
Capabilities:
Hide graphical window

Disassembly:
push ebx
push esi
mov ebx, eax
mov esi, dword [ebx + 0x84]
test esi, esi
je 0x44e89d
mov eax, esi
call fcn.004350dc
test al, al
je 0x44e89d
mov eax, dword [ebx + 0x84]
call fcn.00434dd8
push eax
call sub.user32.dll_IsWindowVisible
test eax, eax
je 0x44e89d
push 0
mov eax, dword [ebx + 0x84]
call fcn.00434dd8
push eax
call sub.user32.dll_ShowWindow
pop esi
pop ebx
ret
Function at 0x44f640
Capabilities:
Delete file

Disassembly:
push ebp
mov ebp, esp
add esp, 0xffffffd8
push ebx
xor ecx, ecx
mov dword [ebp - 0x28], ecx
mov byte [ebp - 5], dl
mov dword [ebp - 4], eax
mov eax, dword [ebp - 4]
call fcn.00404314
xor eax, eax
push ebp
push 0x44f72a
push dword fs:[eax]
mov dword fs:[eax], esp
xor ebx, ebx
mov eax, dword [ebp - 4]
call fcn.0040808c
test al, al
je 0x44f70c
cmp byte [ebp - 5], 0
je 0x44f68f
lea eax, [ebp - 4]
mov edx, 0x44f740
call fcn.0040412c
jmp 0x44f6cc
mov eax, dword [ebp - 4]
call fcn.00404124
mov edx, dword [ebp - 4]
mov dl, byte [edx + eax - 1]
lea eax, [ebp - 0x28]
call fcn.0040404c
mov eax, dword [ebp - 0x28]
mov edx, 0x44f74c
call fcn.00404270
jne 0x44f6cc
mov eax, dword [ebp - 4]
call fcn.00404124
mov edx, eax
lea eax, [ebp - 4]
mov ecx, 1
call fcn.004043c4
lea eax, [ebp - 0x23]
xor ecx, ecx
mov edx, 0x1e
call fcn.00402b2c
mov dword [ebp - 0x1f], 3
mov eax, dword [ebp - 4]
call fcn.00404324
mov dword [ebp - 0x1b], eax
mov word [ebp - 0x13], 0x50
lea eax, [ebp - 0x23]
push eax
call sub.shell32.dll_SHFileOperationA
test eax, eax
jne 0x44f706
cmp dword [ebp - 0x11], 0
je 0x44f70a
xor ebx, ebx
jmp 0x44f70c
mov bl, 1
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x44f731
lea eax, [ebp - 0x28]
call fcn.00403e64
lea eax, [ebp - 4]
call fcn.00403e64
ret
Function at 0x401a6f
Capabilities:
Accept command line arguments
Hide graphical window

Disassembly:
push ebp
mov ebp, esp
call sub.kernel32.dll_GetCommandLineA
mov dword [0x404f48], eax
add ebp, 8
mov dword [0x404123], ebp
sub ebp, 8
mov dword [0x404f4c], 0x30
mov dword [0x404f50], 3
mov dword [0x404f58], 0
mov dword [0x404f5c], 0
mov dword [0x404f54], 0x402a60
mov eax, dword [0x40411b]
mov dword [0x404f60], eax
mov dword [0x404f6c], 0x10
mov dword [0x404f74], 0x404108
push 0x7f00
push 0
call sub.user32.dll_LoadIconA
mov dword [0x404f64], eax
mov dword [0x404f78], eax
push 0x7f00
push 0
call sub.user32.dll_LoadCursorA
mov dword [0x404f68], eax
push 0x404f4c
call sub.user32.dll_RegisterClassExA
push 0
push dword [0x40411b]
push 0
push 0
push 0xc8
push 0x12c
push 0x50
push 0x190
push 0xc0000
push str.Hello_from_Win32
push str.Class1
push 0
call sub.user32.dll_CreateWindowExA
mov dword [0x404f40], eax
push 0
push dword [0x404f40]
call sub.user32.dll_ShowWindow
push dword [0x404f40]
call sub.user32.dll_UpdateWindow
push 0
push 0
push 0
push 0x404f7c
call sub.user32.dll_GetMessageA
or eax, eax
je 0x401b83
push 0x404f7c
call sub.user32.dll_TranslateMessage
push 0x404f7c
call sub.user32.dll_DispatchMessageA
jmp 0x401b59
mov eax, dword [0x404f84]
mov esi, dword [0x404fdc]
lea ecx, [0x40411b]
add esi, eax
call esi
mov eax, dword [0x404f84]
push eax
call sub.kernel32.dll_ExitProcess
int3

Function at 0x42e000
Capabilities:
Encode data using xor
Packed with generic packer

Disassembly:
pushal
nop
nop
nop
nop
nop
nop
mov eax, section..text
nop
nop
nop
push 4
nop
nop
nop
pop edi
nop
nop
nop
cmp eax, 0
nop
nop
nop
nop
nop
nop
je 0x42e072
nop
mov ebx, 0x407ef8
nop
nop
mov ecx, ebx
nop
nop
nop
sub ecx, eax
nop
nop
nop
nop
nop
nop
xor edx, edx
nop
nop
nop
nop
nop
nop
nop
push eax
mov eax, ecx
nop
nop
nop
nop
div edi
nop
nop
nop
nop
nop
nop
nop
nop
xchg ecx, eax
nop
nop
nop
nop
nop
pop eax
nop
mov esi, 0x53087d99
nop
xor dword [eax], esi
nop
nop
nop
nop
nop
nop
add eax, edi
nop
nop
nop
nop
nop
nop
loop 0x42e060
mov eax, section..data
nop
nop
cmp eax, 0
nop
nop
nop
nop
je 0x42e0d2
nop
nop
nop
mov ebx, 0x42cd70
nop
nop
mov ecx, ebx
nop
nop
nop
nop
sub ecx, eax
nop
nop
nop
xor edx, edx
nop
nop
nop
nop
nop
nop
push eax
nop
nop
nop
nop
nop
mov eax, ecx
nop
nop
nop
nop
nop
div edi
nop
nop
nop
xchg ecx, eax
nop
nop
nop
pop eax
nop
nop
nop
nop
mov esi, 0x48135895
nop
nop
nop
xor dword [eax], esi
nop
nop
add eax, edi
nop
nop
nop
nop
nop
loop 0x42e0c0
nop
nop
nop
popal
nop
nop
nop
nop
nop
jmp 0x401219
Function at 0x402700
Capabilities:
Read file via mapping

Disassembly:
push ebp
mov ebp, esp
push esi
xor esi, esi
cmp dword [ebp + 8], esi
je 0x40273f
push ebx
push dword [ebp + 0xc]
push esi
push esi
push 4
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.dll_MapViewOfFile]
mov ebx, eax
test ebx, ebx
je 0x402735
push ebx
push dword [ebp + 0xc]
call dword [sym.imp.GDI32.dll_SetEnhMetaFileBits]
push ebx
mov esi, eax
call dword [sym.imp.KERNEL32.dll_UnmapViewOfFile]
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.dll_CloseHandle]
pop ebx
mov eax, esi
pop esi
pop ebp
ret 8

Function at 0x4027eb
Capabilities:
Read file via mapping

Disassembly:
push ebp
mov ebp, esp
push esi
xor esi, esi
cmp dword [ebp + 8], esi
je 0x40282a
push ebx
push dword [ebp + 0xc]
push esi
push esi
push 4
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.dll_MapViewOfFile]
mov ebx, eax
test ebx, ebx
je 0x402820
push ebx
push dword [ebp + 0xc]
call dword [sym.imp.GDI32.dll_SetMetaFileBitsEx]
push ebx
mov esi, eax
call dword [sym.imp.KERNEL32.dll_UnmapViewOfFile]
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.dll_CloseHandle]
pop ebx
mov eax, esi
pop esi
pop ebp
ret 8

Function at 0x402b6f
Capabilities:
Accept command line arguments

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x7c
push ebx
push esi
push edi
call fcn.00402aec
call dword [sym.imp.KERNEL32.dll_GetCommandLineW]
push 0x20
pop esi
push 0x22
pop edx
cmp word [eax], dx
mov ecx, esi
cmove ecx, edx
add eax, 2
movzx ecx, cx
push ecx
push eax
call dword [sym.imp.VCRUNTIME140.dll_wcschr]
pop ecx
pop ecx
lea ebx, [eax + 2]
jmp 0x402ba9
add ebx, 2
cmp word [ebx], si
je 0x402ba6
push 0xa
pop ecx
xor eax, eax
lea edi, [ebp - 0x44]
rep stosd dword es:[edi], eax
lea eax, [ebp - 0x44]
mov dword [ebp - 0x40], 0x402b2f
mov edi, str.FltLdr
push eax
mov dword [ebp - 0x20], edi
call dword [sym.imp.USER32.dll_RegisterClassW]
test ax, ax
jne 0x402bde
or eax, 0xffffffff
jmp 0x402c7e
xor esi, esi
push esi
push esi
push esi
push 0xfffffffffffffffd
push esi
push esi
push esi
push esi
push 0x8000000
push edi
push edi
push esi
call dword [sym.imp.USER32.dll_CreateWindowExW]
mov edi, eax
test edi, edi
je 0x402bd6
push esi
call fcn.00404354
pop ecx
lea ecx, [ebp - 0x7c]
mov dword [ebp - 0x7c], esi
mov dword [ebp - 0x4c], esi
mov dword [ebp - 0x48], esi
call fcn.00401c25
test eax, eax
jne 0x402c1e
or esi, 0xffffffff
jmp 0x402c6f
lea eax, [ebp - 0x7c]
push 0x8b0
push edi
mov ecx, eax
mov dword [0x431bf8], eax
call fcn.0040267b
push ebx
lea ecx, [ebp - 0x7c]
mov dword [ebp - 0x74], edi
mov dword [ebp - 0x70], 0x8b1
call fcn.0040213c
mov ebx, dword [sym.imp.USER32.dll_GetMessageW]
jmp 0x402c62
lea eax, [ebp - 0x1c]
push eax
call dword [sym.imp.USER32.dll_TranslateMessage]
lea eax, [ebp - 0x1c]
push eax
call dword [sym.imp.USER32.dll_DispatchMessageW]
push esi
push esi
push edi
lea eax, [ebp - 0x1c]
push eax
call ebx
test eax, eax
jne 0x402c4e
lea ecx, [ebp - 0x7c]
call fcn.00405d33
call fcn.0040444c
mov eax, esi
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 0x10
Function at 0x405c27
Capabilities:
Query environment variable

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x426a9a
mov eax, dword fs:[0]
push eax
sub esp, 0x218
mov eax, dword [0x428bf0]
xor eax, ebp
mov dword [ebp - 0x14], 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, 0x104
lea eax, [ebp - 0x21c]
push esi
push eax
push str.LORI_099F5E083DF84BC98E90139DFB45C0B9
call dword [sym.imp.KERNEL32.dll_GetEnvironmentVariableW]
test eax, eax
jne 0x405c7b
mov al, 1
jmp 0x405d17
cmp eax, esi
jae 0x405d15
xor esi, esi
mov dword [ebp - 0x220], esi
push 1
mov dword [ebp - 4], esi
push 8
mov byte [ebp - 4], 1
call fcn.00402c87
mov dword [ebp - 0x224], eax
mov byte [ebp - 4], 2
test eax, eax
je 0x405cb2
mov ecx, eax
call fcn.004053a6
mov esi, eax
test esi, esi
mov byte [ebp - 4], 1
mov dword [ebp - 0x220], esi
sete al
test al, al
je 0x405cd3
xor ecx, ecx
mov dword [0], 1
int 0x29
lea ecx, [ebp - 0x21c]
push ecx
mov ecx, esi
call fcn.00405b42
mov dword [0x431c60], esi
jmp 0x405c74
xor al, al
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 0x14]
xor ecx, ebp
call fcn.00407223
mov esp, ebp
pop ebp
ret
Function at 0x406e61
Capabilities:
Read file on windows

Disassembly:
push 4
mov eax, 0x426bd7
call fcn.00407a6a
mov ebx, ecx
cmp byte [ebx + 0x21], 0
jne 0x406f15
cmp dword [ebp + 8], 0x10
jne 0x406f8a
mov eax, dword [ebx + 0x80]
cmp eax, 0x10
jb 0x406f8a
lea esi, [ebx + 0x24]
push eax
mov ecx, esi
call fcn.004194dd
cmp dword [esi], 0
jne 0x406ea7
call fcn.00403297
push dword [ebp + 8]
lea eax, [ebx + 0x74]
push eax
push dword [ebx + 0x80]
push dword [esi]
call fcn.00419256
mov edx, dword [ebx + 0x80]
add esp, 0x10
cmp edx, dword [ebp + 8]
je 0x406f15
push 5
pop ecx
lea eax, [ebx + 0x28]
mov esi, 0x428bdc
push eax
mov edi, eax
lea eax, [ebp + 8]
rep movsd dword es:[edi], dword [esi]
mov ecx, dword [ebx + 0x24]
push eax
lea eax, [edx - 0x10]
mov word [ebx + 0x20], 0x101
push eax
lea eax, [ecx + 0x10]
push eax
push dword [ebx + 0x14]
call dword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
jne 0x406f8a
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0x3e5
je 0x406f8a
mov byte [ebx + 0x20], 0
call fcn.00403271
lea edi, [ebx + 0x24]
mov ecx, edi
call fcn.004068dc
test dword [eax + 4], 0x2000000
je 0x406f92
mov ecx, edi
call fcn.004068dc
push 1
mov eax, dword [eax + 0xc]
push eax
call fcn.00402c87
mov edi, dword [edi]
lea ecx, [ebx + 0x24]
mov esi, eax
mov dword [ebp - 0x10], esi
call fcn.004068dc
push dword [eax + 0xc]
push edi
push esi
call sub.VCRUNTIME140.dll_memcpy
add esp, 0xc
lea eax, [ebp - 0x10]
mov ecx, ebx
push eax
call fcn.0040701a
cmp dword [ebp - 0x10], 0
je 0x406f70
push dword [ebp - 0x10]
call sub.api_ms_win_crt_heap_l1_1_0.dll_free
pop ecx
lea edi, [ebx + 0x24]
mov eax, dword [edi]
test eax, eax
je 0x406f83
and dword [edi], 0
push eax
call sub.api_ms_win_crt_heap_l1_1_0.dll_free
pop ecx
mov ecx, ebx
call fcn.00407043
call fcn.00407a3b
ret 4
and dword [ebp - 0x10], 0
and dword [ebp - 4], 0
lea eax, [ebp - 0x10]
push eax
push dword [ebx + 0x7c]
mov ecx, ebx
call fcn.00406b56
mov esi, dword [ebp - 0x10]
test esi, esi
je 0x406fed
mov ecx, edi
call fcn.004068dc
test byte [eax + 7], 1
je 0x406fd0
mov ecx, edi
call fcn.004068dc
mov ecx, dword [eax]
test ecx, ecx
js 0x406fe5
mov ecx, 0x8007000d
jmp 0x406fe5
mov ecx, dword [esi + 8]
push edi
mov eax, dword [ecx]
call dword [eax + 0xc]
xor ecx, ecx
mov edx, 0x8007000d
test al, al
cmove ecx, edx
mov eax, dword [esi]
push ecx
mov ecx, esi
call dword [eax + 0xc]
or dword [ebp - 4], 0xffffffff
test esi, esi
je 0x406f73
mov eax, dword [esi]
mov ecx, esi
call dword [eax + 4]
jmp 0x406f73
Function at 0x407097
Capabilities:
Write file on windows

Disassembly:
push 0xc
mov eax, 0x426bfa
call fcn.00407a6a
mov ebx, ecx
mov esi, dword [ebp + 8]
lea ecx, [ebp - 0x18]
push 1
mov eax, dword [esi + 8]
mov edi, dword [eax + 8]
lea eax, [ebx + 0x58]
push eax
mov dword [ebp + 8], edi
call fcn.0040668f
mov eax, dword [ebx + 0x70]
lea ecx, [ebx + 0x3c]
and dword [ebp - 4], 0
mov dword [edi + 8], eax
inc dword [ebx + 0x70]
push dword [edi + 8]
call fcn.00403b8e
push esi
mov ecx, eax
call fcn.00406628
or dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x18]
call fcn.004067d6
push 5
pop ecx
lea eax, [esi + 0xc]
mov esi, 0x428bdc
push eax
mov edi, eax
mov eax, dword [ebp + 8]
push 0
rep movsd dword es:[edi], dword [esi]
push dword [eax + 0xc]
push eax
push dword [ebx + 0x14]
call dword [sym.imp.KERNEL32.dll_WriteFile]
test eax, eax
jne 0x407123
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0x3e5
je 0x407123
call fcn.00403271
call fcn.00407a3b
ret 4

Function at 0x407230
Capabilities:
Allocate or change rwx memory

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x14
xor eax, eax
push ebx
mov ebx, 0xbb40e64e
cmp dword [0x428bf0], eax
je 0x407252
cmp dword [0x428bf0], ebx
jne 0x4072e6
push edi
push eax
push eax
push 1
call dword [sym.imp.KERNEL32.dll_GetProcessHeap]
push eax
call dword [sym.imp.KERNEL32.dll_HeapSetInformation]
lea eax, [ebp - 0xc]
push eax
call dword [sym.imp.KERNEL32.dll_GetSystemTimeAsFileTime]
mov edi, dword [ebp - 8]
xor edi, dword [ebp - 0xc]
call dword [sym.imp.KERNEL32.dll_GetCurrentProcessId]
xor edi, eax
call dword [sym.imp.KERNEL32.dll_GetCurrentThreadId]
xor edi, eax
call dword [sym.imp.KERNEL32.dll_GetTickCount]
xor edi, eax
lea eax, [ebp - 0x14]
push eax
call dword [sym.imp.KERNEL32.dll_QueryPerformanceCounter]
mov eax, dword [ebp - 0x10]
xor eax, dword [ebp - 0x14]
xor edi, eax
lea eax, [ebp - 4]
push eax
push 0x40
push 4
push 0x428bf0
call dword [sym.imp.KERNEL32.dll_VirtualProtect]
lea eax, [ebp - 4]
test edi, edi
push eax
push dword [ebp - 4]
cmovne ebx, edi
mov edi, 0x428bf0
push 4
push edi
mov dword [0x428bf0], ebx
call dword [sym.imp.KERNEL32.dll_VirtualProtect]
push 4
push edi
call sub.KERNEL32.dll_WerRegisterMemoryBlock
mov eax, dword [0x428bf0]
not eax
mov dword [0x431124], eax
pop edi
pop ebx
mov esp, ebp
pop ebp
ret