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

Disassembly:
push ebp
mov ebp, esp
mov ecx, dword [ebp + 0x14]
push ebx
mov ebx, dword [ebp + 8]
push esi
mov esi, dword [ebp + 0xc]
push edi
mov edi, dword [ebp + 0x10]
mov dword [esi + 0x20], ecx
mov dword [esi + 0x18], 0
mov dword [esi + 0x1c], 1
mov eax, dword [ebx + 0x10]
mov dword [esi + 0x30], eax
movzx eax, cx
push 2
push eax
push edi
call dword [sym.imp.KERNEL32.dll_FindResourceW]
test eax, eax
jne 0x45c501
pop edi
pop esi
xor eax, eax
pop ebx
pop ebp
ret
push eax
push edi
call dword [sym.imp.KERNEL32.dll_LoadResource]
mov edi, eax
test edi, edi
je 0x45c4fa
push edi
call dword [sym.imp.KERNEL32.dll_LockResource]
push eax
push esi
push ebx
call fcn.0045ad20
add esp, 0xc
push edi
call dword [sym.imp.KERNEL32.dll_FreeResource]
pop edi
pop esi
mov eax, 1
pop ebx
pop ebp
ret

Function at 0x45c540
Capabilities:
Extract resource via kernel32 functions

Disassembly:
push ebp
mov ebp, esp
push ecx
push edi
mov edi, dword [ebp + 0x10]
test edi, edi
jne 0x45c553
xor eax, eax
pop edi
mov esp, ebp
pop ebp
ret
push ebx
push esi
call fcn.0045c740
movzx ebx, word [ebp + 0xc]
mov esi, dword [ebp + 8]
push 0x475e00
push ebx
push esi
call dword [sym.imp.KERNEL32.dll_FindResourceW]
mov dword [ebp + 0x10], eax
test eax, eax
jne 0x45c5a2
push 2
push ebx
push esi
call dword [sym.imp.KERNEL32.dll_FindResourceW]
test eax, eax
jne 0x45c58a
pop esi
pop ebx
pop edi
mov esp, ebp
pop ebp
ret
push ebx
push esi
call fcn.0045c690
add esp, 8
mov dword [edi], eax
pop esi
pop ebx
mov eax, 1
pop edi
mov esp, ebp
pop ebp
ret
push eax
push esi
call dword [sym.imp.KERNEL32.dll_SizeofResource]
push dword [ebp + 0x10]
mov ebx, eax
push esi
mov dword [ebp - 4], ebx
call dword [sym.imp.KERNEL32.dll_LoadResource]
push eax
call dword [sym.imp.KERNEL32.dll_LockResource]
mov dword [ebp + 0x10], eax
test eax, eax
je 0x45c62f
push ebx
push 2
call dword [sym.imp.KERNEL32.dll_GlobalAlloc]
mov esi, eax
test esi, esi
je 0x45c62f
push esi
call dword [sym.imp.KERNEL32.dll_GlobalLock]
mov ebx, eax
test ebx, ebx
je 0x45c628
push dword [ebp - 4]
push dword [ebp + 0x10]
push ebx
call fcn.0043e4b0
add esp, 0xc
lea eax, [ebp + 0x10]
push eax
push 0
push esi
mov dword [ebp + 0x10], 0
call dword [sym.imp.ole32.dll_CreateStreamOnHGlobal]
test eax, eax
jne 0x45c621
push eax
push dword [ebp + 0x10]
call fcn.0045c6e0
mov dword [edi], eax
mov eax, dword [ebp + 0x10]
add esp, 8
mov ecx, dword [eax]
push eax
call dword [ecx + 8]
push ebx
call dword [sym.imp.KERNEL32.dll_GlobalUnlock]
push esi
call dword [sym.imp.KERNEL32.dll_GlobalFree]
pop esi
pop ebx
mov eax, 1
pop edi
mov esp, ebp
pop ebp
ret
Function at 0x45e312
Capabilities:
Get file size

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x20
push ebx
push esi
push 4
lea eax, [ebp - 0x18]
push eax
push dword [ebp + 0x10]
xor esi, esi
push dword [ebp + 0xc]
mov dword [ebp - 0x18], 0x7863513
call fcn.0045e4ac
add esp, 0x10
mov dword [ebp - 8], eax
push esi
push 0x80
push 3
push esi
push 1
push 0xc0000000
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.dll_CreateFileW]
mov ebx, eax
mov dword [ebp - 0x20], ebx
cmp ebx, 0xffffffff
je 0x45e46e
push edi
mov edi, dword [ebp + 0x18]
push edi
lea eax, [ebp - 0x10]
push eax
lea eax, [ebp - 0xc]
push eax
mov dword [ebp - 4], esi
mov dword [ebp - 0xc], esi
mov dword [ebp - 0x10], esi
call fcn.0045e47d
add esp, 0xc
lea eax, [ebp - 4]
push eax
push ebx
call dword [sym.imp.KERNEL32.dll_GetFileSize]
push esi
push eax
push dword [ebp - 4]
mov dword [ebp - 0x18], eax
push dword [ebp - 0xc]
push esi
push ebx
call dword [sym.imp.KERNEL32.dll_CreateFileMappingW]
mov dword [ebp - 0x1c], eax
test eax, eax
je 0x45e466
push esi
push esi
push esi
push dword [ebp - 0x10]
push eax
call dword [sym.imp.KERNEL32.dll_MapViewOfFile]
mov ebx, eax
test ebx, ebx
je 0x45e45a
mov ecx, dword [ebp - 4]
or ecx, dword [ebp - 0x18]
mov dword [ebp - 0x10], esi
mov dword [ebp - 0x18], ecx
cmp esi, esi
jl 0x45e437
jg 0x45e3d5
cmp ecx, esi
jbe 0x45e437
mov eax, dword [ebp + 0x10]
cdq
mov ecx, eax
mov dword [ebp - 0xc], ecx
mov dword [ebp - 0x14], edx
mov edi, esi
mov eax, esi
jmp 0x45e3ea
mov ecx, dword [ebp - 0xc]
push edx
push ecx
push eax
push edi
call fcn.0045e630
mov ecx, dword [ebp - 8]
movzx eax, byte [eax + ecx]
push eax
movzx eax, byte [edi + ebx]
push eax
cmp dword [ebp + 0x14], esi
je 0x45e40c
call fcn.0045e2f5
jmp 0x45e411
call fcn.0045e2e2
mov edx, dword [ebp - 0x14]
mov byte [edi + ebx], al
mov eax, dword [ebp - 0x10]
add edi, 1
adc eax, esi
pop ecx
pop ecx
mov ecx, dword [ebp - 0xc]
mov dword [ebp - 0x10], eax
cmp eax, esi
jl 0x45e3ea
mov ecx, dword [ebp - 0x18]
jg 0x45e434
cmp edi, ecx
jb 0x45e3e7
mov edi, dword [ebp + 0x18]
test edi, edi
je 0x45e450
mov eax, dword [edi + 4]
test eax, eax
je 0x45e450
push dword [edi + 8]
push esi
push ecx
push ebx
call eax
add esp, 0x10
mov dword [edi + 0xc], eax
xor esi, esi
push ebx
inc esi
call dword [sym.imp.KERNEL32.dll_UnmapViewOfFile]
push dword [ebp - 0x1c]
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov ebx, dword [ebp - 0x20]
push ebx
call dword [sym.imp.KERNEL32.dll_CloseHandle]
pop edi
push dword [ebp - 8]
call fcn.0043e3d8
pop ecx
mov eax, esi
pop esi
pop ebx
leave
ret

Function at 0x45e4ac
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
push ecx
push esi
push dword [ebp + 0xc]
call fcn.0043dc69
mov esi, eax
xor eax, eax
pop ecx
mov dword [ebp - 4], eax
cmp dword [ebp + 0xc], eax
jle 0x45e4eb
push ebx
mov ebx, dword [ebp + 8]
sub ebx, esi
lea ecx, [eax + esi]
cdq
idiv dword [ebp + 0x14]
mov eax, dword [ebp + 0x10]
mov al, byte [edx + eax]
xor al, byte [ebx + ecx]
mov byte [ecx], al
mov eax, dword [ebp - 4]
inc eax
mov dword [ebp - 4], eax
cmp eax, dword [ebp + 0xc]
jl 0x45e4cc
pop ebx
mov eax, esi
pop esi
leave
ret
Function at 0x6ea3e0
Capabilities:
Get thread local storage value

Disassembly:
push esi
push ebx
sub esp, 0x14
mov dword [esp], 0x71b044
call sub.KERNEL32.dll_EnterCriticalSection
mov ebx, dword [0x71b03c]
sub esp, 4
test ebx, ebx
je 0x6ea42b
nop
mov eax, dword [ebx]
mov dword [esp], eax
call sub.KERNEL32.dll_TlsGetValue
sub esp, 4
mov esi, eax
call sub.KERNEL32.dll_GetLastError
test eax, eax
jne 0x6ea424
test esi, esi
je 0x6ea424
mov eax, dword [ebx + 4]
mov dword [esp], esi
call eax
mov ebx, dword [ebx + 8]
test ebx, ebx
jne 0x6ea400
mov dword [esp], 0x71b044
call sub.KERNEL32.dll_LeaveCriticalSection
sub esp, 4
add esp, 0x14
pop ebx
pop esi
ret

Function at 0x6ea610
Capabilities:
Write file on windows

Disassembly:
push esi
push ebx
sub esp, 0x14
mov eax, dword [sym.imp.msvcrt.dll__iob]
mov dword [esp + 8], 0x17
mov dword [esp + 4], 1
lea esi, [esp + 0x24]
mov dword [esp], str.Mingw_runtime_failure:_n
lea ebx, [eax + 0x40]
mov dword [esp + 0xc], ebx
call sub.msvcrt.dll_fwrite
mov eax, dword [esp + 0x20]
mov dword [esp + 8], esi
mov dword [esp], ebx
mov dword [esp + 4], eax
call sub.msvcrt.dll_vfprintf
call sub.msvcrt.dll_abort
lea esi, [esi]

Function at 0x6ea660
Capabilities:
Allocate or change rwx memory

Disassembly:
push ebp
push edi
mov edi, ecx
push esi
push ebx
mov ebx, eax
mov esi, edx
sub esp, 0x4c
lea eax, [esp + 0x24]
mov dword [esp + 8], 0x1c
mov dword [esp], ebx
mov dword [esp + 4], eax
call sub.KERNEL32.dll_VirtualQuery
sub esp, 0xc
test eax, eax
je 0x6ea738
mov eax, dword [esp + 0x38]
cmp eax, 0x40
je 0x6ea69e
cmp eax, 4
jne 0x6ea6c0
mov dword [esp + 8], edi
mov dword [esp + 4], esi
mov dword [esp], ebx
call sub.msvcrt.dll_memcpy
add esp, 0x4c
pop ebx
pop esi
pop edi
pop ebp
ret
mov eax, dword [esp + 0x30]
lea ebp, [esp + 0x20]
mov dword [esp + 8], 0x40
mov dword [esp + 0xc], ebp
mov dword [esp + 4], eax
mov eax, dword [esp + 0x24]
mov dword [esp], eax
call sub.KERNEL32.dll_VirtualProtect
sub esp, 0x10
mov edx, dword [esp + 0x38]
mov dword [esp + 8], edi
mov dword [esp + 4], esi
mov dword [esp], ebx
mov dword [esp + 0x1c], edx
call sub.msvcrt.dll_memcpy
mov edx, dword [esp + 0x1c]
cmp edx, 0x40
je 0x6ea6ae
cmp edx, 4
je 0x6ea6ae
mov eax, dword [esp + 0x20]
mov dword [esp + 0xc], ebp
mov dword [esp + 8], eax
mov eax, dword [esp + 0x30]
mov dword [esp + 4], eax
mov eax, dword [esp + 0x24]
mov dword [esp], eax
call sub.KERNEL32.dll_VirtualProtect
sub esp, 0x10
add esp, 0x4c
pop ebx
pop esi
pop edi
pop ebp
ret
mov dword [esp + 8], ebx
mov dword [esp + 4], 0x1c
mov dword [esp], str.__VirtualQuery_failed_for__d_bytes_at_address__p
call fcn.006ea610
Function at 0x402720
Capabilities:
Accept command line arguments

Disassembly:
push ebx
push esi
push edi
add esp, 0xfffffef8
mov esi, edx
mov ebx, eax
test ebx, ebx
jne 0x40274f
push 0x105
lea eax, [esp + 4]
push eax
push 0
call sub.kernel32.dll_GetModuleFileNameA
mov ecx, eax
mov edx, esp
mov eax, esi
call fcn.0040330c
jmp 0x40276d
call sub.kernel32.dll_GetCommandLineA
mov edi, eax
mov edx, esi
mov eax, edi
call fcn.004026b4
mov edi, eax
test ebx, ebx
je 0x40276d
cmp dword [esi], 0
je 0x40276d
dec ebx
jmp 0x402756
add esp, 0x108
pop edi
pop esi
pop ebx
ret

Function at 0x40280c
Capabilities:
Generate random numbers using the delphi lcg

Disassembly:
imul edx, dword [0x41b038], 0x8088405
inc edx
mov dword [0x41b038], edx
mul edx
mov eax, edx
ret

Function at 0x402904
Capabilities:
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffff4
movzx eax, word [section.DATA]
mov dword [ebp - 8], eax
lea eax, [ebp - 4]
push eax
push 1
push 0
push 0x40299c
push 0x80000002
call sub.advapi32.dll_RegOpenKeyExA
test eax, eax
jne 0x40297c
xor eax, eax
push ebp
push 0x402975
push dword fs:[eax]
mov dword fs:[eax], esp
mov dword [ebp - 0xc], 4
lea eax, [ebp - 0xc]
push eax
lea eax, [ebp - 8]
push eax
push 0
push 0
push 0x4029b8
mov eax, dword [ebp - 4]
push eax
call sub.advapi32.dll_RegQueryValueExA
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x40297c
mov eax, dword [ebp - 4]
push eax
call sub.advapi32.dll_RegCloseKey
ret
mov ax, word [section.DATA]
and ax, 0xffc0
mov dx, word [ebp - 8]
and dx, 0x3f
or ax, dx
mov word [section.DATA], ax
mov esp, ebp
pop ebp
ret
Function at 0x403e24
Capabilities:
Get geographical location
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffee0
push ebx
push esi
mov dword [ebp - 4], eax
push 0x105
lea eax, [ebp - 0x11d]
push eax
push 0
call sub.kernel32.dll_GetModuleFileNameA
mov byte [ebp - 0x12], 0
lea eax, [ebp - 8]
push eax
push 0xf003f
push 0
push 0x403fc0
push 0x80000001
call sub.advapi32.dll_RegOpenKeyExA
test eax, eax
jne 0x403ed4
xor eax, eax
push ebp
push 0x403ecd
push dword fs:[eax]
mov dword fs:[eax], esp
mov dword [ebp - 0x18], 5
lea eax, [ebp - 0x18]
push eax
lea eax, [ebp - 0x12]
push eax
push 0
push 0
lea eax, [ebp - 0x11d]
push eax
mov eax, dword [ebp - 8]
push eax
call sub.advapi32.dll_RegQueryValueExA
test eax, eax
je 0x403eb6
lea eax, [ebp - 0x18]
push eax
lea eax, [ebp - 0x12]
push eax
push 0
push 0
push 0x403fe0
mov eax, dword [ebp - 8]
push eax
call sub.advapi32.dll_RegQueryValueExA
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x403ed4
mov eax, dword [ebp - 8]
push eax
call sub.advapi32.dll_RegCloseKey
ret
mov eax, dword [ebp - 4]
push eax
lea eax, [ebp - 0x11d]
push eax
call sub.kernel32.dll_lstrcpyA
push 5
lea eax, [ebp - 0xd]
push eax
push 3
call sub.kernel32.dll_GetThreadLocale
push eax
call sub.kernel32.dll_GetLocaleInfoA
xor esi, esi
cmp byte [ebp - 0x11d], 0
je 0x403fb5
cmp byte [ebp - 0xd], 0
jne 0x403f16
cmp byte [ebp - 0x12], 0
je 0x403fb5
lea eax, [ebp - 0x11d]
push eax
call sub.kernel32.dll_lstrlenA
mov ebx, eax
lea eax, [ebp - 0x11d]
add ebx, eax
jmp 0x403f2f
dec ebx
cmp byte [ebx], 0x2e
je 0x403f3e
lea eax, [ebp - 0x11d]
cmp ebx, eax
jne 0x403f2e
lea eax, [ebp - 0x11d]
cmp ebx, eax
je 0x403fb5
inc ebx
cmp byte [ebp - 0x12], 0
je 0x403f6b
lea eax, [ebp - 0x12]
push eax
push ebx
call sub.kernel32.dll_lstrcpyA
push 2
push 0
lea eax, [ebp - 0x11d]
push eax
call sub.kernel32.dll_LoadLibraryExA
mov esi, eax
test esi, esi
jne 0x403fb5
cmp byte [ebp - 0xd], 0
je 0x403fb5
lea eax, [ebp - 0xd]
push eax
push ebx
call sub.kernel32.dll_lstrcpyA
push 2
push 0
lea eax, [ebp - 0x11d]
push eax
call sub.kernel32.dll_LoadLibraryExA
mov esi, eax
test esi, esi
jne 0x403fb5
mov byte [ebp - 0xb], 0
lea eax, [ebp - 0xd]
push eax
push ebx
call sub.kernel32.dll_lstrcpyA
push 2
push 0
lea eax, [ebp - 0x11d]
push eax
call sub.kernel32.dll_LoadLibraryExA
mov esi, eax
mov eax, esi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret

Function at 0x4061a8
Capabilities:
Get common file path

Disassembly:
push ebx
add esp, 0xfffffefc
mov ebx, eax
push esp
push 0x104
call sub.kernel32.dll_GetCurrentDirectoryA
mov ecx, eax
mov edx, esp
mov eax, ebx
call fcn.0040330c
add esp, 0x104
pop ebx
ret

Function at 0x406b7c
Capabilities:
Get geographical location

Disassembly:
push ebp
mov ebp, esp
add esp, 0xffffff00
push ebx
push esi
mov esi, ecx
mov ebx, dword [ebp + 8]
push pe_nt_image_headers32
lea ecx, [ebp - 0x100]
push ecx
push edx
push eax
call sub.kernel32.dll_GetLocaleInfoA_1
test eax, eax
jle 0x406bb5
mov ecx, eax
dec ecx
lea edx, [ebp - 0x100]
mov eax, ebx
call fcn.0040330c
jmp 0x406bbe
mov eax, ebx
mov edx, esi
call fcn.004032c0
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 4
Function at 0x406bc8
Capabilities:
Get geographical location

Disassembly:
push ebx
push esi
push edi
push ecx
mov ebx, ecx
mov esi, edx
mov edi, eax
push 2
lea eax, [esp + 4]
push eax
push esi
push edi
call sub.kernel32.dll_GetLocaleInfoA_1
test eax, eax
jle 0x406be9
mov al, byte [esp]
jmp 0x406beb
mov eax, ebx
pop edx
pop edi
pop esi
pop ebx
ret

Function at 0x40bb74
Capabilities:
Set registry value

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffff0
push ebx
push esi
push edi
xor ebx, ebx
mov dword [ebp - 0x10], ebx
mov dword [ebp - 4], ecx
mov edi, edx
mov ebx, eax
xor eax, eax
push ebp
push 0x40bc05
push dword fs:[eax]
mov dword fs:[eax], esp
mov al, byte [ebp + 8]
call fcn.0040b6ec
mov esi, eax
mov eax, dword [ebp + 0xc]
push eax
mov eax, dword [ebp - 4]
push eax
push esi
push 0
mov eax, edi
call fcn.00403668
push eax
mov eax, dword [ebx + 4]
push eax
call sub.advapi32.dll_RegSetValueExA
test eax, eax
je 0x40bbef
mov dword [ebp - 0xc], edi
mov byte [ebp - 8], 0xb
lea eax, [ebp - 0xc]
push eax
push 0
lea edx, [ebp - 0x10]
mov eax, dword [0x41a80c]
call fcn.00404140
mov ecx, dword [ebp - 0x10]
mov dl, 1
mov eax, dword [0x40b55c]
call fcn.00407548
call fcn.00402d40
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x40bc0c
lea eax, [ebp - 0x10]
call fcn.00403228
ret

Function at 0x40bc18
Capabilities:
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffff0
push ebx
push esi
push edi
xor ebx, ebx
mov dword [ebp - 0x10], ebx
mov edi, ecx
mov esi, edx
mov ebx, eax
xor eax, eax
push ebp
push 0x40bcb3
push dword fs:[eax]
mov dword fs:[eax], esp
xor eax, eax
mov dword [ebp - 4], eax
lea eax, [ebp + 0xc]
push eax
push edi
lea eax, [ebp - 4]
push eax
push 0
mov eax, esi
call fcn.00403668
push eax
mov eax, dword [ebx + 4]
push eax
call sub.advapi32.dll_RegQueryValueExA_1
test eax, eax
je 0x40bc8d
mov dword [ebp - 0xc], esi
mov byte [ebp - 8], 0xb
lea eax, [ebp - 0xc]
push eax
push 0
lea edx, [ebp - 0x10]
mov eax, dword [0x41a844]
call fcn.00404140
mov ecx, dword [ebp - 0x10]
mov dl, 1
mov eax, dword [0x40b55c]
call fcn.00407548
call fcn.00402d40
mov ebx, dword [ebp + 0xc]
mov eax, dword [ebp - 4]
call fcn.0040b71c
mov edx, dword [ebp + 8]
mov byte [edx], al
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x40bcba
lea eax, [ebp - 0x10]
call fcn.00403228
ret

Function at 0x411660
Capabilities:
Read .ini file

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffc00
push ebx
push esi
push edi
mov edi, ecx
mov esi, edx
mov ebx, eax
mov eax, dword [ebx + 4]
call fcn.00403668
push eax
push 0x400
lea eax, [ebp - 0x400]
push eax
mov eax, dword [ebp + 0xc]
call fcn.00403668
push eax
mov eax, edi
call fcn.00403668
push eax
mov eax, esi
call fcn.00403668
push eax
call sub.kernel32.dll_GetPrivateProfileStringA
mov ecx, eax
lea edx, [ebp - 0x400]
mov eax, dword [ebp + 8]
call fcn.0040330c
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 8
Function at 0x4120e8
Capabilities:
Get file size

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffff8
push ebx
mov ebx, edx
mov dword [ebp - 4], eax
mov eax, dword [ebp - 4]
call fcn.00403658
xor eax, eax
push ebp
push 0x412198
push dword fs:[eax]
mov dword fs:[eax], esp
mov edx, 0x40
mov eax, dword [ebp - 4]
call fcn.00405d70
mov dword [ebp - 8], eax
cmp dword [ebp - 8], 0xffffffff
je 0x412182
xor eax, eax
push ebp
push 0x41217b
push dword fs:[eax]
mov dword fs:[eax], esp
push 0
mov eax, dword [ebp - 8]
push eax
call sub.kernel32.dll_GetFileSize_1
mov edx, eax
mov eax, ebx
call fcn.00403778
mov eax, dword [ebx]
call fcn.004034a4
push eax
mov eax, ebx
call fcn.00403674
mov edx, eax
mov eax, dword [ebp - 8]
pop ecx
call fcn.00405dd4
mov edx, eax
mov eax, ebx
call fcn.00403778
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x412182
mov eax, dword [ebp - 8]
call fcn.00405e38
ret
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x41219f
lea eax, [ebp - 4]
call fcn.00403228
ret
Function at 0x414ff0
Capabilities:
Query environment variable

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffe00
push ebx
push esi
xor ecx, ecx
mov dword [ebp - 0x200], ecx
mov esi, edx
mov ebx, eax
xor eax, eax
push ebp
push 0x415095
push dword fs:[eax]
mov dword fs:[eax], esp
mov byte [ebp - 0x1f9], 0
push 0x1f4
lea eax, [ebp - 0x1f9]
push eax
lea edx, [ebp - 0x200]
mov eax, esi
call fcn.00414fbc
mov eax, dword [ebp - 0x200]
call fcn.00403668
push eax
call sub.kernel32.dll_GetEnvironmentVariableA
lea eax, [ebp - 0x200]
lea edx, [ebp - 0x1f9]
mov ecx, 0x1f5
call fcn.00403454
mov eax, dword [ebp - 0x200]
lea edx, [ebp - 4]
call fcn.00402824
cmp dword [ebp - 4], 0
jne 0x415074
cmp ebx, eax
je 0x415078
xor eax, eax
jmp 0x41507a
mov al, 1
mov ebx, eax
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x41509c
lea eax, [ebp - 0x200]
call fcn.00403228
ret

Function at 0x416924
Capabilities:
Check if file exists
Get file attributes

Disassembly:
push ebx
mov ebx, eax
mov eax, ebx
call fcn.00403668
push eax
call sub.kernel32.dll_GetFileAttributesA
cmp eax, 0xffffffff
je 0x41693d
test al, 0x10
jne 0x416941
xor eax, eax
pop ebx
ret
mov al, 1
pop ebx
ret

Function at 0x416948
Capabilities:
Create directory

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffff8
xor edx, edx
mov dword [ebp - 8], edx
mov dword [ebp - 4], eax
mov eax, dword [ebp - 4]
call fcn.00403658
xor eax, eax
push ebp
push 0x416a15
push dword fs:[eax]
mov dword fs:[eax], esp
mov eax, dword [ebp - 4]
call fcn.004034a4
test eax, eax
mov eax, dword [ebp - 4]
call fcn.004168f4
test eax, eax
je 0x4169a6
mov eax, dword [ebp - 4]
call fcn.004168f4
cmp byte [eax], 0x5c
jne 0x4169a6
mov eax, dword [ebp - 4]
call fcn.004034a4
mov edx, eax
lea eax, [ebp - 4]
mov ecx, 1
call fcn.004036e8
mov eax, dword [ebp - 4]
call fcn.004034a4
cmp eax, 3
jl 0x4169fa
mov eax, dword [ebp - 4]
call fcn.00416924
test al, al
jne 0x4169fa
lea edx, [ebp - 8]
mov eax, dword [ebp - 4]
call fcn.00406098
mov eax, dword [ebp - 8]
mov edx, dword [ebp - 4]
call fcn.004035b4
je 0x4169fa
lea edx, [ebp - 8]
mov eax, dword [ebp - 4]
call fcn.00406098
mov eax, dword [ebp - 8]
call fcn.00416948
push 0
mov eax, dword [ebp - 4]
call fcn.00403668
push eax
call sub.kernel32.dll_CreateDirectoryA_1
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x416a1c
lea eax, [ebp - 8]
mov edx, 2
call fcn.0040324c
ret
Function at 0x417020
Capabilities:
Log keystrokes via polling

Disassembly:
push ebx
push esi
add esp, 0xfffffff8
mov ebx, eax
cmp dword [edx + 4], 0x4cf
jne 0x4170eb
cmp byte [ebx + 0x1f4], 0
je 0x4170eb
call sub.user32.dll_GetCapture
cmp eax, dword [ebx + 0x1d0]
je 0x4170eb
push esp
call sub.user32.dll_GetCursorPos
push 0x17
call sub.user32.dll_GetSystemMetrics
test eax, eax
setne al
and eax, 0x7f
inc eax
push eax
call sub.user32.dll_GetAsyncKeyState
test ax, ax
jl 0x41707c
mov byte [ebx + 0x1f4], 0
jmp 0x4170eb
mov ecx, dword [esp]
sub ecx, dword [ebx + 0x1f8]
mov esi, dword [esp + 4]
sub esi, dword [ebx + 0x1fc]
cmp byte [ebx + 0x1f5], 0
jne 0x4170b0
mov eax, ecx
cdq
xor eax, edx
sub eax, edx
cmp eax, 8
jge 0x4170b0
mov eax, esi
cdq
xor eax, edx
sub eax, edx
cmp eax, 8
jl 0x4170eb
add dword [ebx + 0x1c], ecx
add dword [ebx + 0x18], esi
mov eax, dword [esp]
mov dword [ebx + 0x1f8], eax
mov eax, dword [esp + 4]
mov dword [ebx + 0x1fc], eax
push 0xffffffffffffffff
mov eax, dword [ebx + 0x14]
push eax
mov eax, dword [ebx + 0x10]
push eax
mov eax, dword [ebx + 0x18]
push eax
mov eax, dword [ebx + 0x1c]
push eax
mov eax, dword [ebx + 4]
push eax
call sub.user32.dll_MoveWindow
mov byte [ebx + 0x1f5], 1
pop ecx
pop edx
pop esi
pop ebx
ret
Function at 0x4170f0
Capabilities:
Create process on windows

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffeec
push ebx
push esi
push edi
xor edx, edx
mov dword [ebp - 0x10], edx
mov dword [ebp - 0x14], edx
mov dword [ebp - 8], edx
mov dword [ebp - 0xc], edx
mov esi, eax
xor eax, eax
push ebp
push 0x4172ab
push dword fs:[eax]
mov dword fs:[eax], esp
lea eax, [ebp - 0xc]
mov edx, dword [esi + 0x254]
call fcn.004032c0
mov edx, dword [ebp - 0xc]
mov eax, 0x4172c4
call fcn.00403730
mov ebx, eax
test ebx, ebx
jne 0x417146
mov eax, dword [ebp - 0xc]
call fcn.004034a4
mov ebx, eax
inc ebx
lea eax, [ebp - 0x10]
push eax
mov ecx, ebx
dec ecx
mov edx, 1
mov eax, dword [ebp - 0xc]
call fcn.004036a8
mov ecx, dword [ebp - 0x10]
mov eax, dword [esi + 0x74]
mov edx, dword [eax + 0x30]
lea eax, [ebp - 8]
call fcn.004034f0
lea eax, [ebp - 0xc]
mov ecx, ebx
mov edx, 1
call fcn.004036e8
lea edx, [ebp - 0x14]
mov eax, dword [ebp - 8]
call fcn.00406160
mov eax, dword [ebp - 0x14]
lea edx, [ebp - 0x10]
call fcn.00405be0
mov eax, dword [ebp - 0x10]
mov edx, 0x4172d0
call fcn.004035b4
jne 0x417243
mov eax, dword [ebp - 8]
call fcn.00403668
push eax
call sub.kernel32.dll_LoadLibraryA
mov dword [ebp - 4], eax
cmp dword [ebp - 4], 0
je 0x417290
xor eax, eax
push ebp
push 0x41723c
push dword fs:[eax]
mov dword fs:[eax], esp
push 0x4172d8
mov eax, dword [ebp - 4]
push eax
call sub.kernel32.dll_GetProcAddress
mov ebx, eax
test ebx, ebx
je 0x417225
xor eax, eax
push ebp
push 0x41721b
push dword fs:[eax]
mov dword fs:[eax], esp
lea eax, [ebp - 0xc]
mov edx, 0x4172ec
call fcn.004034ac
mov eax, dword [ebp - 0xc]
call fcn.00403668
push eax
mov eax, dword [esi + 4]
push eax
lea eax, [ebp - 0x114]
push eax
call ebx
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
jmp 0x417225
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x417290
mov eax, dword [ebp - 4]
push eax
call sub.kernel32.dll_FreeLibrary_1
ret
lea edx, [ebp - 0x14]
mov eax, dword [ebp - 8]
call fcn.00406160
mov eax, dword [ebp - 0x14]
lea edx, [ebp - 0x10]
call fcn.00405be0
mov eax, dword [ebp - 0x10]
mov edx, 0x4172f8
call fcn.004035b4
jne 0x417290
push 1
push dword [ebp - 8]
push 0x4172c4
push dword [ebp - 0xc]
lea eax, [ebp - 0x10]
mov edx, 3
call fcn.00403564
mov eax, dword [ebp - 0x10]
call fcn.00403668
push eax
call sub.kernel32.dll_WinExec
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x4172b2
lea eax, [ebp - 0x14]
mov edx, 4
call fcn.0040324c
ret
Function at 0x4090c0
Capabilities:
Resolve function by parsing pe exports

Disassembly:
test ecx, ecx
je 0x4090d8
cmp dword [eax + 0x118], 0
jne 0x4090d4
jmp sym._d_print_comp.part.8
ret
mov dword [eax + 0x118], 1
ret

Function at 0x4096c8
Capabilities:
Resolve function by parsing pe exports

Disassembly:
cmp dword [ecx], 0x2d
je 0x4096e4
cmp dword [eax + 0x118], 0
jne 0x4096e3
jmp sym._d_print_comp.part.8
add esp, 0x2c
pop ebx
pop esi
pop edi
pop ebp
ret
push ebp
push edi
push esi
push ebx
sub esp, 0x2c
mov edx, dword [ecx + 4]
mov edi, dword [edx + 8]
mov ebp, dword [edx + 4]
test edi, edi
je 0x4096dc
mov edx, dword [eax + 0x100]
xor ebx, ebx
jmp 0x40971b
mov esi, edx
inc edx
mov byte [eax + esi], cl
mov dword [eax + 0x100], edx
mov byte [eax + 0x104], cl
inc ebx
cmp edi, ebx
je 0x4096dc
mov cl, byte [ebp + ebx]
cmp edx, 0xff
jne 0x409704
mov byte [eax + 0xff], 0
mov edx, dword [eax + 0x10c]
mov dword [esp + 8], edx
mov dword [esp + 4], 0xff
mov dword [esp], eax
mov dword [esp + 0x18], eax
mov byte [esp + 0x1c], cl
call dword [eax + 0x108]
mov eax, dword [esp + 0x18]
inc dword [eax + 0x120]
mov edx, 1
xor esi, esi
mov cl, byte [esp + 0x1c]
jmp 0x409707