joyce8/EMBER2024-capa huggingface dataset:
Function at 0x4f04ad
Capabilities:
Get common file path

Disassembly:
push 0x224
mov eax, 0x537153
call fcn.005137ab
mov esi, ecx
mov dword [ebp - 0x22c], esi
call fcn.004fe37d
push 0x15c
call fcn.00406ed2
pop ecx
mov ecx, eax
mov dword [ebp - 0x228], ecx
xor ebx, ebx
mov dword [ebp - 4], ebx
cmp ecx, ebx
je 0x4f04f1
mov eax, dword [esi + 4]
push ebx
push eax
call fcn.004ffcd8
jmp 0x4f04f3
xor eax, eax
or dword [ebp - 4], 0xffffffff
push eax
mov ecx, esi
call fcn.004fe34f
call fcn.00442a6f
mov eax, dword [eax + 4]
mov edi, dword [eax + 0x88]
lea eax, [ebp - 0x218]
push eax
push 0x104
call dword [sym.imp.KERNEL32.dll_GetCurrentDirectoryW]
lea eax, [ebp - 0x218]
push eax
call dword [sym.imp.KERNEL32.dll_lstrlenW]
mov esi, eax
push 0x5c
pop eax
mov word [ebp + esi*2 - 0x218], ax
inc esi
xor eax, eax
mov dword [ebp - 0x228], esi
mov word [ebp + esi*2 - 0x218], ax
mov dword [ebp - 0x224], ebx
cmp edi, ebx
je 0x4f0693
cmp dword [edi + 4], ebx
jle 0x4f0693
lea ecx, [ebp - 0x21c]
call fcn.004021e0
mov edx, dword [edi]
xor eax, eax
inc eax
push eax
mov dword [ebp - 4], eax
push esi
lea eax, [ebp - 0x218]
push eax
push ebx
lea eax, [ebp - 0x21c]
push eax
mov ecx, edi
call dword [edx + 8]
test eax, eax
je 0x4f0677
lea ecx, [ebp - 0x220]
call fcn.004021e0
mov eax, dword [ebp - 0x224]
mov byte [ebp - 4], 2
cmp eax, 9
jne 0x4f05c8
push dword [ebp - 0x21c]
lea eax, [ebp - 0x220]
push str.10__s
push eax
call fcn.00406050
add esp, 0xc
jmp 0x4f05fa
jge 0x4f05e8
push dword [ebp - 0x21c]
inc eax
push eax
lea eax, [ebp - 0x220]
push str._d__s
push eax
call fcn.00406050
add esp, 0x10
jmp 0x4f05fa
lea eax, [ebp - 0x21c]
push eax
lea ecx, [ebp - 0x220]
call fcn.00406500
push 0x15c
call fcn.00406ed2
pop ecx
mov dword [ebp - 0x230], eax
mov byte [ebp - 4], 3
test eax, eax
je 0x4f061e
mov ecx, eax
call fcn.0049a578
mov esi, eax
jmp 0x4f0620
xor esi, esi
push dword [ebp - 0x220]
mov eax, dword [esi]
mov ecx, esi
mov byte [ebp - 4], 2
call dword [eax + 0x10]
mov eax, dword [esi]
lea ecx, [ebx + 0xe110]
push ecx
mov ecx, esi
call dword [eax + 0xc]
push ebx
mov ecx, edi
call fcn.004118ee
mov eax, dword [eax]
mov edx, dword [esi]
push eax
mov ecx, esi
call dword [edx + 0x24]
mov ecx, dword [ebp - 0x22c]
push esi
call fcn.004fe34f
mov ecx, dword [ebp - 0x220]
inc dword [ebp - 0x224]
add ecx, 0xfffffff0
call fcn.004021c0
mov esi, dword [ebp - 0x228]
mov ecx, dword [ebp - 0x21c]
or dword [ebp - 4], 0xffffffff
add ecx, 0xfffffff0
call fcn.004021c0
inc ebx
cmp ebx, dword [edi + 4]
jl 0x4f0561
call fcn.0051382e
ret
Function at 0x4f2a6a
Capabilities:
Get keyboard layout
Log keystrokes via polling

Disassembly:
push 0x74
mov eax, 0x5374bb
call fcn.005137ab
mov eax, dword [ebp + 8]
lea ecx, [ebp - 0x7c]
mov dword [ebp - 0x80], eax
call fcn.004021e0
mov esi, dword [ebp + 0xc]
xor edi, edi
mov dword [ebp - 4], edi
cmp esi, 0x13
jne 0x4f2a98
push 0x55a90c
jmp 0x4f2adb
push 0x66
lea eax, [ebp - 0x78]
push edi
push eax
call fcn.00513960
add esp, 0xc
push edi
call dword [sym.imp.USER32.dll_GetKeyboardLayout]
push eax
push edi
push esi
call dword [sym.imp.USER32.dll_MapVirtualKeyExW]
shl eax, 0x10
add esi, 0xffffffdf
or eax, 1
cmp esi, 0xe
ja 0x4f2aca
or eax, 0x1000000
push 0x32
lea ecx, [ebp - 0x78]
push ecx
push eax
call dword [sym.imp.USER32.dll_GetKeyNameTextW]
lea eax, [ebp - 0x78]
push eax
lea ecx, [ebp - 0x7c]
call fcn.00406230
lea ecx, [ebp - 0x7c]
call fcn.00449996
mov esi, dword [ebp - 0x7c]
cmp dword [esi - 0xc], edi
jle 0x4f2b2c
push edi
lea ecx, [ebp - 0x7c]
call fcn.00426ceb
movzx ebx, ax
push ebx
call dword [sym.imp.USER32.dll_IsCharLowerW]
test eax, eax
jne 0x4f2b12
inc edi
cmp edi, dword [esi - 0xc]
jl 0x4f2af3
jmp 0x4f2b2c
movzx eax, bx
push eax
call fcn.00516ba3
pop ecx
movzx eax, ax
push eax
push edi
lea ecx, [ebp - 0x7c]
call fcn.00485a23
mov esi, dword [ebp - 0x7c]
push dword [esi - 0xc]
mov ecx, dword [ebp - 0x80]
push esi
call fcn.004065c0
cmp dword [ebp + 0x10], 0
jne 0x4f2b48
mov ecx, dword [ebp - 0x80]
push 0x2b
call fcn.0040f211
lea ecx, [esi - 0x10]
call fcn.004021c0
call fcn.0051382e
ret 0xc

Function at 0x50546b
Capabilities:
Log keystrokes via polling
Open clipboard
Write clipboard data

Disassembly:
push 4
mov eax, 0x52d446
call fcn.00513742
mov edi, ecx
mov esi, dword [ebp + 8]
cmp dword [esi + 4], 0x100
jne 0x505544
mov ebx, dword [esi + 8]
push 0x11
call dword [sym.imp.USER32.dll_GetAsyncKeyState]
and eax, 0x8000
je 0x505544
cmp ebx, 0x43
je 0x5054ad
cmp ebx, 0x2d
jne 0x505544
push dword [edi + 0x20]
call dword [sym.imp.USER32.dll_OpenClipboard]
test eax, eax
je 0x505544
call dword [sym.imp.USER32.dll_EmptyClipboard]
lea ecx, [ebp - 0x10]
call fcn.004021e0
movzx ecx, byte [edi + 0xae]
and dword [ebp - 4], 0
push ecx
lea eax, [edi + 0xac]
movzx ecx, byte [eax + 1]
movzx eax, byte [eax]
push ecx
push eax
lea eax, [ebp - 0x10]
push str.RGB__d___d___d_
push eax
call fcn.00406050
mov esi, dword [ebp - 0x10]
mov eax, dword [esi - 0xc]
add esp, 0x14
lea eax, [eax + eax + 2]
push eax
push 0x2000
call dword [sym.imp.KERNEL32.dll_GlobalAlloc]
mov ebx, eax
push ebx
call dword [sym.imp.KERNEL32.dll_GlobalLock]
push esi
push eax
call dword [sym.imp.KERNEL32.dll_lstrcpyW]
push ebx
call dword [sym.imp.KERNEL32.dll_GlobalUnlock]
push ebx
push 0xd
call dword [sym.imp.USER32.dll_SetClipboardData]
call dword [sym.imp.USER32.dll_CloseClipboard]
or dword [ebp - 4], 0xffffffff
lea ecx, [esi - 0x10]
call fcn.004021c0
mov esi, dword [ebp + 8]
push esi
mov ecx, edi
call fcn.004888c4
call fcn.0051381a
ret 4
Function at 0x507994
Capabilities:
Log keystrokes

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push esi
mov esi, ecx
mov eax, dword [esi]
push edi
call dword [eax + 0x150]
mov edi, eax
movzx eax, word [ebp + 8]
push 2
push eax
call dword [sym.imp.USER32.dll_MapVirtualKeyW]
cmp byte [ebp + 0xc], 0
movzx eax, ax
jne 0x5079d9
test edi, edi
jl 0x5079d9
cmp ax, 0x20
je 0x5079ce
cmp word [ebp + 8], 0x71
jne 0x5079d9
mov eax, dword [esi]
push edi
mov ecx, esi
call dword [eax + 0x168]
pop edi
pop esi
pop ebp
ret 8

Function at 0x511ff3
Capabilities:
Terminate process

Disassembly:
cmp ecx, dword [0x589c08]
jne 0x511ffd
repz ret
jmp fcn.00519406

Function at 0x524c08
Capabilities:
Link many functions at runtime

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x14
push ebx
push esi
push edi
call fcn.00518d6a
and dword [ebp - 4], 0
cmp dword [0x591140], 0
mov ebx, eax
jne 0x524cb9
push str.USER32.DLL
call dword [sym.imp.KERNEL32.dll_LoadLibraryA]
mov edi, eax
test edi, edi
je 0x524d6a
mov esi, dword [sym.imp.KERNEL32.dll_GetProcAddress]
push str.MessageBoxA
push edi
call esi
test eax, eax
je 0x524d6a
push eax
call fcn.00518cf8
mov dword [esp], 0x564684
push edi
mov dword [0x591140], eax
call esi
push eax
call fcn.00518cf8
mov dword [esp], 0x564670
push edi
mov dword [0x591144], eax
call esi
push eax
call fcn.00518cf8
mov dword [esp], str.GetUserObjectInformationA
push edi
mov dword [0x591148], eax
call esi
push eax
call fcn.00518cf8
pop ecx
mov dword [0x591150], eax
test eax, eax
je 0x524cb9
push str.GetProcessWindowStation
push edi
call esi
push eax
call fcn.00518cf8
pop ecx
mov dword [0x59114c], eax
mov eax, dword [0x59114c]
cmp eax, ebx
je 0x524d11
cmp dword [0x591150], ebx
je 0x524d11
push eax
call fcn.00518d73
push dword [0x591150]
mov esi, eax
call fcn.00518d73
pop ecx
pop ecx
mov edi, eax
test esi, esi
je 0x524d11
test edi, edi
je 0x524d11
call esi
test eax, eax
je 0x524d08
lea ecx, [ebp - 8]
push ecx
push 0xc
lea ecx, [ebp - 0x14]
push ecx
push 1
push eax
call edi
test eax, eax
je 0x524d08
test byte [ebp - 0xc], 1
jne 0x524d11
or dword [ebp + 0x10], 0x200000
jmp 0x524d4a
mov eax, dword [0x591144]
cmp eax, ebx
je 0x524d4a
push eax
call fcn.00518d73
pop ecx
test eax, eax
je 0x524d4a
call eax
mov dword [ebp - 4], eax
test eax, eax
je 0x524d4a
mov eax, dword [0x591148]
cmp eax, ebx
je 0x524d4a
push eax
call fcn.00518d73
pop ecx
test eax, eax
je 0x524d4a
push dword [ebp - 4]
call eax
mov dword [ebp - 4], eax
push dword [0x591140]
call fcn.00518d73
pop ecx
test eax, eax
je 0x524d6a
push dword [ebp + 0x10]
push dword [ebp + 0xc]
push dword [ebp + 8]
push dword [ebp - 4]
call eax
jmp 0x524d6c
xor eax, eax
pop edi
pop esi
pop ebx
leave
ret
Function at 0x40428c
Capabilities:
Accept command line arguments

Disassembly:
push ebx
push esi
push edi
add esp, 0xfffffdf4
mov ebx, edx
mov esi, eax
mov eax, ebx
call fcn.00406984
test esi, esi
jne 0x4042c2
push 0x105
lea eax, [esp + 4]
push eax
push 0
call sub.kernel32.dll_GetModuleFileNameW
mov ecx, eax
mov edx, esp
mov eax, ebx
call fcn.00406adc
jmp 0x4042e0
call sub.kernel32.dll_GetCommandLineW
mov edi, eax
mov edx, ebx
mov eax, edi
call fcn.004041d0
mov edi, eax
test esi, esi
je 0x4042e0
cmp dword [ebx], 0
je 0x4042e0
dec esi
jmp 0x4042c9
add esp, 0x20c
pop edi
pop esi
pop ebx
ret

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

Disassembly:
push ebx
xor ebx, ebx
imul edx, dword [ebx + 0x432008], 0x8088405
inc edx
mov dword [ebx + 0x432008], edx
mul edx
mov eax, edx
pop ebx
ret

Function at 0x405b98
Capabilities:
Check for time delay via gettickcount

Disassembly:
push ebx
push esi
push edi
push ebp
add esp, 0xfffffff0
mov edi, edx
mov esi, eax
mov ebp, dword [esi + 0x10]
mov eax, esi
call fcn.00405e34
mov byte [esp], al
cmp byte [esp], 0
jne 0x405d22
test edi, edi
je 0x405d22
mov byte [esp + 1], 0
test ebp, ebp
jle 0x405c62
call sub.kernel32.dll_GetTickCount
mov dword [esp + 4], eax
xor eax, eax
mov dword [esp + 0xc], eax
test ebp, ebp
jle 0x405c3d
cmp edi, 0xffffffff
je 0x405bfd
call sub.kernel32.dll_GetTickCount
sub eax, dword [esp + 4]
cmp edi, eax
ja 0x405bfd
mov byte [esp], 0
jmp 0x405d22
mov ebx, dword [esi]
cmp ebx, 1
jg 0x405c3d
test ebx, ebx
jne 0x405c2f
xor eax, eax
mov edx, 1
lock cmpxchg dword [esi], edx
test eax, eax
jne 0x405c2f
call sub.kernel32.dll_GetCurrentThreadId
mov dword [esi + 8], eax
mov dword [esi + 4], 1
mov byte [esp], 1
jmp 0x405d22
lea eax, [esp + 0xc]
call fcn.00405948
dec ebp
test ebp, ebp
jg 0x405be2
cmp edi, 0xffffffff
je 0x405c62
call sub.kernel32.dll_GetTickCount
mov dword [esp + 8], eax
mov eax, dword [esp + 8]
sub eax, dword [esp + 4]
cmp edi, eax
ja 0x405c60
mov byte [esp], 0
jmp 0x405d22
sub edi, eax
mov ebx, dword [esi]
test ebx, ebx
je 0x405ba6
lea edx, [ebx + 2]
mov eax, ebx
lock cmpxchg dword [esi], edx
cmp ebx, eax
jne 0x405c62
call sub.kernel32.dll_GetTickCount
mov dword [esp + 4], eax
mov eax, esi
call fcn.00405d90
mov edx, eax
mov ebx, dword [0x4348f4]
mov ecx, edi
xor eax, eax
call dword [ebx + 0x10]
test eax, eax
sete byte [esp]
cmp edi, 0xffffffff
je 0x405cc6
call sub.kernel32.dll_GetTickCount
mov dword [esp + 8], eax
mov eax, dword [esp + 8]
sub eax, dword [esp + 4]
cmp edi, eax
jbe 0x405cc4
mov eax, dword [esp + 8]
sub eax, dword [esp + 4]
sub edi, eax
jmp 0x405cc6
xor edi, edi
cmp byte [esp], 0
je 0x405cec
mov ebx, dword [esi]
test bl, 1
jne 0x405d02
mov edx, ebx
sub edx, 2
or edx, 1
mov eax, ebx
lock cmpxchg dword [esi], edx
cmp ebx, eax
jne 0x405ccc
mov byte [esp + 1], 1
jmp 0x405d02
mov ebx, dword [esi]
mov edx, ebx
sub edx, 2
mov eax, ebx
lock cmpxchg dword [esi], edx
cmp ebx, eax
jne 0x405cec
mov byte [esp + 1], 1
cmp byte [esp + 1], 0
je 0x405c79
cmp byte [esp], 0
je 0x405d22
call sub.kernel32.dll_GetCurrentThreadId
mov dword [esi + 8], eax
mov dword [esi + 4], 1
movzx eax, byte [esp]
add esp, 0x10
pop ebp
pop edi
pop esi
pop ebx
ret
Function at 0x406704
Capabilities:
Write file on windows

Disassembly:
push ecx
cmp byte [0x434054], 0
je 0x40676b
cmp word [0x434340], 0xd7b2
jne 0x40672d
cmp dword [0x434348], 0
jbe 0x40672d
mov eax, 0x43433c
call dword [0x434358]
push 0
lea eax, [esp + 4]
push eax
push 0x1d
push str.Runtime_error_____at_00000000
push 0xfffffffffffffff5
call sub.kernel32.dll_GetStdHandle
push eax
call sub.kernel32.dll_WriteFile
push 0
lea eax, [esp + 4]
push eax
push 2
mov eax, 0x406798
call fcn.00406f40
push eax
push 0xfffffffffffffff5
call sub.kernel32.dll_GetStdHandle
push eax
call sub.kernel32.dll_WriteFile
pop edx
ret
cmp byte [0x432026], 0
jne 0x406787
push 0
push 0x4329b2
push str.Runtime_error_____at_00000000
push 0
call sub.user32.dll_MessageBoxA
pop edx
ret

Function at 0x408288
Capabilities:
Get geographical location

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffe98
push ebx
push esi
push edi
xor ecx, ecx
mov dword [ebp - 0x160], ecx
mov dword [ebp - 0x164], ecx
mov dword [ebp - 0x168], ecx
mov dword [ebp - 4], edx
mov esi, eax
xor eax, eax
push ebp
push 0x4083ed
push dword fs:[eax]
mov dword fs:[eax], esp
mov eax, dword [ebp - 4]
call fcn.00406984
cmp si, word [0x4329f0]
jb 0x408320
cmp si, word [0x432bf0]
ja 0x408320
mov edi, 0x40
xor eax, eax
mov dword [ebp - 8], eax
cmp edi, dword [ebp - 8]
jb 0x408320
mov ebx, edi
add ebx, dword [ebp - 8]
shr ebx, 1
cmp si, word [ebx*8 + 0x4329f0]
jae 0x4082fa
mov edi, ebx
dec edi
jmp 0x40831b
cmp si, word [ebx*8 + 0x4329f0]
jbe 0x40830a
inc ebx
mov dword [ebp - 8], ebx
jmp 0x40831b
mov edx, dword [ebp - 4]
mov eax, dword [ebx*8 + 0x4329f4]
call fcn.004081a8
jmp 0x408320
cmp edi, dword [ebp - 8]
jae 0x4082e4
mov eax, dword [ebp - 4]
cmp dword [eax], 0
jne 0x4083cf
push 2
movzx eax, si
push eax
call sub.kernel32.dll_IsValidLocale
test eax, eax
je 0x4083cf
push 0x55
lea eax, [ebp - 0xb2]
push eax
push 0x59
movzx ebx, si
push ebx
call sub.kernel32.dll_GetLocaleInfoW
push 0x55
lea eax, [ebp - 0x15c]
push eax
push 0x5a
push ebx
call sub.kernel32.dll_GetLocaleInfoW
lea eax, [ebp - 0x160]
lea edx, [ebp - 0xb2]
mov ecx, 0x55
call fcn.004070d8
push dword [ebp - 0x160]
push 0x408408
lea eax, [ebp - 0x164]
lea edx, [ebp - 0x15c]
mov ecx, 0x55
call fcn.004070d8
push dword [ebp - 0x164]
push 0x408418
lea eax, [ebp - 0x168]
lea edx, [ebp - 0xb2]
mov ecx, 0x55
call fcn.004070d8
push dword [ebp - 0x168]
mov eax, dword [ebp - 4]
mov edx, 5
call fcn.00407290
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x4083f4
lea eax, [ebp - 0x168]
mov edx, 3
call fcn.004069e4
ret
Function at 0x4085a0
Capabilities:
Identify system language via api

Disassembly:
push ebp
mov ebp, esp
push 0
push ebx
push esi
mov esi, edx
mov ebx, eax
xor eax, eax
push ebp
push 0x4086a4
push dword fs:[eax]
mov dword fs:[eax], esp
push 0x436b84
call sub.kernel32.dll_EnterCriticalSection
cmp bx, word [0x436b9c]
jne 0x4085ec
mov eax, esi
mov edx, 0x436b9e
mov ecx, 0x55
call fcn.004070d8
push 0x436b84
call sub.kernel32.dll_LeaveCriticalSection
jmp 0x40868e
push 0x436b84
call sub.kernel32.dll_LeaveCriticalSection
mov eax, esi
call fcn.00406984
push 2
movzx eax, bx
push eax
call sub.kernel32.dll_IsValidLocale
test eax, eax
je 0x40865b
cmp byte [0x436b80], 0
je 0x408620
mov edx, esi
mov eax, ebx
call fcn.00408484
jmp 0x40865b
mov edx, esi
mov eax, ebx
call fcn.00408288
call sub.kernel32.dll_GetSystemDefaultUILanguage
cmp bx, ax
je 0x40865b
cmp dword [esi], 0
je 0x408644
mov eax, esi
mov edx, 0x4086bc
call fcn.004071b0
call sub.kernel32.dll_GetSystemDefaultUILanguage
lea edx, [ebp - 4]
call fcn.00408288
mov edx, dword [ebp - 4]
mov eax, esi
call fcn.004071b0
push 0x436b84
call sub.kernel32.dll_EnterCriticalSection
mov word [0x436b9c], bx
mov eax, dword [esi]
call fcn.00407044
mov ecx, eax
mov eax, 0x436b9e
mov edx, 0xaa
call fcn.00408108
push 0x436b84
call sub.kernel32.dll_LeaveCriticalSection
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x4086ab
lea eax, [ebp - 4]
call fcn.00406984
ret
Function at 0x4176c0
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffff778
push ebx
push esi
xor ecx, ecx
mov dword [ebp - 4], ecx
xor ecx, ecx
push ebp
push 0x4177e5
push dword fs:[ecx]
mov dword fs:[ecx], esp
push 0x400
lea ecx, [ebp - 0x888]
call fcn.004174c8
mov esi, eax
mov eax, dword [0x433d34]
cmp byte [eax], 0
je 0x41778d
mov eax, dword [0x433b20]
call fcn.00404764
call fcn.00404080
push 0
push 0
push 0
push 0
push esi
lea eax, [ebp - 0x888]
push eax
push 0
push 1
call sub.kernel32.dll_WideCharToMultiByte_1
mov ebx, eax
push ebx
lea eax, [ebp - 4]
mov ecx, 1
mov edx, dword [0x417690]
call fcn.00407cf0
add esp, 4
push 0
push 0
push ebx
mov eax, dword [ebp - 4]
push eax
push esi
lea eax, [ebp - 0x888]
push eax
push 0
push 1
call sub.kernel32.dll_WideCharToMultiByte_1
push 0
lea eax, [ebp - 8]
push eax
push ebx
mov eax, dword [ebp - 4]
push eax
push 0xfffffffffffffff4
call sub.kernel32.dll_GetStdHandle_1
push eax
call sub.kernel32.dll_WriteFile_1
push 0
lea eax, [ebp - 8]
push eax
push 2
push 0x417800
push 0xfffffffffffffff4
call sub.kernel32.dll_GetStdHandle_1
push eax
call sub.kernel32.dll_WriteFile_1
jmp 0x4177c9
push 0x40
lea eax, [ebp - 0x88]
push eax
mov eax, dword [0x433ae0]
mov eax, dword [eax + 4]
push eax
mov eax, dword [0x436c4c]
call fcn.00407da8
push eax
call sub.user32.dll_LoadStringW_1
push 0x2010
lea eax, [ebp - 0x88]
push eax
lea eax, [ebp - 0x888]
push eax
push 0
call sub.user32.dll_MessageBoxW
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x4177ec
lea eax, [ebp - 4]
mov edx, dword [0x417690]
call fcn.00407cfc
ret

Function at 0x418e60
Capabilities:
Encode data using xor

Disassembly:
push ebx
push esi
push edi
push ebp
add esp, 0xfffffdf8
mov ebx, eax
mov eax, ebx
call fcn.00406d8c
mov ebp, eax
push ebp
push 0
push 0
mov ecx, ebx
xor edx, edx
mov eax, 0xfde9
call fcn.0040950c
mov edi, eax
cmp edi, 0x104
jbe 0x418e07
mov eax, edi
add eax, eax
call fcn.00403f2c
mov esi, eax
jmp 0x418e09
mov esi, esp
push ebp
push esi
push edi
mov ecx, ebx
xor edx, edx
mov eax, 0xfde9
call fcn.0040950c
mov eax, esi
push eax
call sub.user32.dll_CharUpperW
xor ebx, ebx
mov eax, edi
dec eax
test eax, eax
jl 0x418e44
inc eax
xor edx, edx
mov ecx, ebx
shl ecx, 5
shr ebx, 0x1b
or ecx, ebx
mov ebx, ecx
movzx ecx, word [esi + edx*2]
xor ebx, ecx
inc edx
dec eax
jne 0x418e2e
mov eax, esp
cmp esi, eax
je 0x418e51
mov eax, esi
call fcn.00403f48
mov eax, ebx
add esp, 0x208
pop ebp
pop edi
pop esi
pop ebx
ret
push esi
push ebx
mov esi, eax
xor eax, eax
push esi
rol eax, 5
mov bl, byte [esi]
test bl, 0x80
jne 0x418e8c
cmp bl, 0
je 0x418e88
cmp bl, 0x41
jl 0x418e83
cmp bl, 0x5a
jg 0x418e83
or bl, 0x20
xor al, bl
inc esi
jmp 0x418e67
pop ecx
pop ebx
pop esi
ret
pop eax
pop ebx
pop esi
jmp 0x418dc8

Function at 0x419160
Capabilities:
Get geographical location

Disassembly:
push ebx
add esp, 0xfffff800
mov ebx, ecx
mov word [esp], 0
push 0x400
lea ecx, [esp + 4]
push ecx
push edx
push eax
call sub.kernel32.dll_GetLocaleInfoW_1
mov eax, ebx
mov edx, esp
mov ecx, 0x400
call fcn.004070d8
add esp, 0x800
pop ebx
ret
Function at 0x41bd98
Capabilities:
Accept command line arguments
Query environment variable

Disassembly:
push ebx
push esi
push edi
mov ebx, eax
mov edi, 0x43ef84
xor esi, esi
push 0x2001
push edi
push ebx
call sub.kernel32.dll_GetEnvironmentVariableW
test eax, eax
je 0x41bdbb
mov esi, edi
jmp 0x41beda
mov eax, dword [0x433adc]
cmp byte [eax], 0
je 0x41beda
mov edx, 0x41bee0
mov eax, ebx
call fcn.00414c0c
test eax, eax
jne 0x41bde9
mov eax, edi
xor edx, edx
call fcn.0041ddbc
mov esi, edi
jmp 0x41beda
mov edx, 0x41bee8
mov eax, ebx
call fcn.00414c0c
test eax, eax
jne 0x41be13
push 0xa
push edi
mov eax, dword [0x433cf0]
mov eax, dword [eax]
push eax
call sub.msvcrt.dll__ltow
add esp, 0xc
mov esi, edi
jmp 0x41beda
mov edx, 0x41bf00
mov eax, ebx
call fcn.00414c0c
test eax, eax
jne 0x41be37
push 0xa
push edi
push 2
call sub.msvcrt.dll__ultow
add esp, 0xc
mov esi, edi
jmp 0x41beda
mov edx, 0x41bf1c
mov eax, ebx
call fcn.00414c0c
test eax, eax
jne 0x41be53
call sub.kernel32.dll_GetCommandLineW_1
mov esi, eax
jmp 0x41beda
mov edx, 0x41bf34
mov eax, ebx
call fcn.00414c0c
test eax, eax
jne 0x41be80
push 0x2001
mov ecx, edi
mov edx, 1
xor eax, eax
call fcn.0041ac54
mov word [edi + eax*2], 0
mov esi, edi
jmp 0x41beda
mov edx, 0x41bf40
mov eax, ebx
call fcn.00414c0c
test eax, eax
jne 0x41bead
push 0x2001
mov ecx, edi
mov edx, 1
xor eax, eax
call fcn.0041b1d0
mov word [edi + eax*2], 0
mov esi, edi
jmp 0x41beda
mov edx, 0x41bf4c
mov eax, ebx
call fcn.00414c0c
test eax, eax
jne 0x41beda
call fcn.004042ec
mov eax, 0x7fff
call fcn.00404314
push 0xa
push edi
push eax
call sub.msvcrt.dll__ultow
add esp, 0xc
mov esi, edi
mov eax, esi
pop edi
pop esi
pop ebx
ret

Function at 0x41d870
Capabilities:
Enumerate files on windows

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffff4
push ebx
push esi
push edi
mov dword [ebp - 0xc], ecx
mov dword [ebp - 8], edx
mov dword [ebp - 4], eax
mov edi, dword [ebp + 8]
mov esi, dword [ebp + 0xc]
xor ebx, ebx
push esi
mov eax, dword [ebp - 8]
push eax
call sub.kernel32.dll_FindFirstFileW_1
mov dword [edi], eax
jmp 0x41d8ce
mov eax, esi
mov edx, dword [ebp - 0xc]
call dword [ebp - 4]
test al, al
je 0x41d8b1
mov eax, dword [0x433d18]
xor edx, edx
mov dword [eax], edx
mov bl, 1
jmp 0x41d8d3
push esi
mov eax, dword [edi]
push eax
call sub.kernel32.dll_FindNextFileW
test eax, eax
jne 0x41d8ce
mov eax, dword [edi]
push eax
call sub.kernel32.dll_FindClose_1
mov dword [edi], 0xffffffff
jmp 0x41d8d3
cmp dword [edi], 0xffffffff
jne 0x41d898
cmp dword [edi], 0xffffffff
je 0x41d918
mov eax, dword [0x433608]
inc eax
push eax
mov eax, 0x442f88
mov ecx, 1
mov edx, dword [0x41d82c]
call fcn.00407cf0
add esp, 4
cmp dword [0x442f88], 0
je 0x41d916
mov eax, dword [0x442f88]
mov edx, dword [0x433608]
mov ecx, dword [edi]
mov dword [eax + edx*4], ecx
inc dword [0x433608]
mov bl, 1
test bl, bl
jne 0x41d929
call sub.kernel32.dll_GetLastError_2
mov edx, dword [0x433d18]
mov dword [edx], eax
mov eax, ebx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 8
Function at 0x41daa4
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffff0
push ebx
push esi
push edi
mov esi, ecx
mov ebx, edx
mov edi, dword [ebp + 8]
mov dword [ebp - 0xc], esi
push eax
call sub.msvcrt.dll__get_osfhandle
pop ecx
mov dword [ebp - 0x10], eax
mov dword [ebp - 8], ebx
cmp esi, 0x4000
jbe 0x41db2b
push 0
push 0
push 0x2000
mov eax, dword [0x433a90]
push eax
push 0x2000
mov eax, dword [ebp - 8]
push eax
push 0
mov eax, dword [0x433c88]
mov eax, dword [eax]
push eax
call sub.kernel32.dll_WideCharToMultiByte_1
mov ebx, eax
add dword [ebp - 8], 0x4000
sub esi, 0x4000
push 0
push edi
push ebx
mov eax, dword [0x433a90]
push eax
mov eax, dword [ebp - 0x10]
push eax
call sub.kernel32.dll_WriteFile_1
test eax, eax
je 0x41db1d
cmp ebx, dword [edi]
je 0x41db23
mov byte [ebp - 1], 0
jmp 0x41db80
cmp esi, 0x4000
ja 0x41dacc
test esi, esi
je 0x41db77
push 0
push 0
push 0x2000
mov eax, dword [0x433a90]
push eax
push 0xffffffffffffffff
mov eax, dword [ebp - 8]
push eax
push 0
mov eax, dword [0x433c88]
mov eax, dword [eax]
push eax
call sub.kernel32.dll_WideCharToMultiByte_1
mov esi, eax
dec esi
push 0
push edi
push esi
mov eax, dword [0x433a90]
push eax
mov eax, dword [ebp - 0x10]
push eax
call sub.kernel32.dll_WriteFile_1
test eax, eax
je 0x41db71
cmp esi, dword [edi]
je 0x41db77
mov byte [ebp - 1], 0
jmp 0x41db80
mov eax, dword [ebp - 0xc]
mov dword [edi], eax
mov byte [ebp - 1], 1
movzx eax, byte [ebp - 1]
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 4

Function at 0x41ddbc
Capabilities:
Get common file path

Disassembly:
push ebx
push esi
add esp, 0xfffffff8
mov ebx, edx
mov esi, eax
test bx, bx
jne 0x41ddd9
push esi
push 0x104
call sub.kernel32.dll_GetCurrentDirectoryW
xor eax, eax
jmp 0x41de50
mov word [esp], 0x3d
mov eax, ebx
mov edx, ebx
add edx, 0xffffff9f
sub dx, 0x1a
jae 0x41ddf2
mov eax, ebx
and ax, 0xffdf
mov word [esp + 2], ax
mov word [esp + 4], 0x3a
mov word [esp + 6], 0
mov eax, esp
call fcn.0041bd98
test eax, eax
jne 0x41de45
mov eax, ebx
mov edx, ebx
add edx, 0xffffff9f
sub dx, 0x1a
jae 0x41de23
mov eax, ebx
and ax, 0xffdf
mov word [esi], ax
add esi, 2
mov word [esi], 0x3a
add esi, 2
mov word [esi], 0x5c
add esi, 2
mov word [esi], 0
mov eax, 1
jmp 0x41de50
mov edx, eax
mov eax, esi
call fcn.00419ff4
xor eax, eax
pop ecx
pop edx
pop esi
pop ebx
ret