joyce8/EMBER2024-capa huggingface dataset:
Function at 0x4047a7
Capabilities:
Create directory

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x11c
and dword [ebp - 4], 0
and dword [ebp - 0x10], 0
and dword [ebp - 0xc], 0
push esi
push edi
mov edi, dword [sym.imp.KERNEL32.dll_SetErrorMode]
push 1
mov dword [ebp - 0x14], 0xc
call edi
push 0xffffffffffffffff
mov dword [ebp - 8], eax
push dword [ebp + 8]
lea eax, [ebp - 0x11c]
push 0x105
push eax
call fcn.00405b01
lea eax, [ebp - 0x11c]
push eax
call fcn.0040491c
movsx eax, byte [0x414e98]
push eax
lea eax, [ebp - 0x11b]
push eax
call fcn.0040871b
mov esi, eax
add esp, 0xc
test esi, esi
je 0x4048a4
lea eax, [ebp - 0x11c]
cmp esi, eax
jbe 0x404825
cmp byte [esi - 1], 0x3a
je 0x404898
lea eax, [ebp - 0x11b]
cmp esi, eax
jne 0x404864
mov al, byte [0x414e98]
cmp byte [ebp - 0x11c], al
jne 0x404864
movsx eax, al
inc esi
push eax
push esi
call fcn.0040871b
pop ecx
test eax, eax
pop ecx
je 0x4048d6
movsx ecx, byte [0x414e98]
inc eax
push ecx
push eax
call fcn.0040871b
pop ecx
mov esi, eax
pop ecx
test esi, esi
je 0x4048a4
and byte [esi], 0
lea eax, [ebp - 0x11c]
push eax
call fcn.00404788
test eax, eax
pop ecx
jne 0x404891
lea eax, [ebp - 0x14]
push eax
lea eax, [ebp - 0x11c]
push eax
call dword [sym.imp.KERNEL32.dll_CreateDirectoryA]
test eax, eax
je 0x4048d6
mov al, byte [0x414e98]
mov byte [esi], al
movsx eax, byte [0x414e98]
inc esi
push eax
push esi
jmp 0x40485b
lea eax, [ebp - 0x14]
push eax
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.dll_CreateDirectoryA]
test eax, eax
jne 0x4048cf
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0xb7
jne 0x4048d6
push dword [ebp + 8]
call fcn.00404b55
test eax, eax
pop ecx
je 0x4048d6
mov dword [ebp - 4], 1
call dword [sym.imp.KERNEL32.dll_GetLastError]
push dword [ebp - 8]
mov esi, eax
call edi
push esi
call dword [sym.imp.KERNEL32.dll_SetLastError]
mov eax, dword [ebp - 4]
pop edi
pop esi
leave
ret

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

Disassembly:
push ebp
mov ebp, esp
push ebx
push esi
mov esi, dword [sym.imp.KERNEL32.dll_SetErrorMode]
push edi
push 1
call esi
push dword [ebp + 0xc]
mov ebx, eax
call dword [sym.imp.KERNEL32.dll_GetFileAttributesA]
mov edi, dword [ebp + 8]
mov dword [edi], eax
call dword [sym.imp.KERNEL32.dll_GetLastError]
push ebx
mov dword [ebp + 0xc], eax
call esi
push dword [ebp + 0xc]
call dword [sym.imp.KERNEL32.dll_SetLastError]
xor eax, eax
cmp dword [edi], 0xffffffff
pop edi
pop esi
setne al
pop ebx
pop ebp
ret
Function at 0x405100
Capabilities:
Allocate thread local storage

Disassembly:
push 0xffffffffffffffff
push 0x4104bb
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
push ecx
push esi
push edi
call fcn.00405190
push 0x28
call fcn.00407ac3
add esp, 4
mov dword [esp + 8], eax
test eax, eax
mov dword [esp + 0x14], 0
je 0x405142
mov ecx, eax
call fcn.00404fb0
mov esi, eax
jmp 0x405144
xor esi, esi
mov eax, dword [esi]
push 0
push 0x405470
mov ecx, esi
mov dword [esp + 0x1c], 0xffffffff
call dword [eax + 0x18]
mov ecx, dword [esp + 0x24]
push eax
push ecx
call fcn.004054b0
mov edx, dword [esi]
add esp, 0x10
mov ecx, esi
mov edi, eax
call dword [edx + 0x10]
mov ecx, dword [esp + 0xc]
mov eax, edi
pop edi
pop esi
mov dword fs:[0], ecx
add esp, 0x10
ret

Function at 0x405260
Capabilities:
Get thread local storage value
Set thread local storage value

Disassembly:
sub esp, 0x14
push esi
mov esi, ecx
lea ecx, [esp + 4]
push edi
mov eax, dword [esi]
lea edx, [esp + 0x24]
push ecx
push edx
mov ecx, esi
mov dword [esp + 0x10], 0
call dword [eax + 0x1c]
mov eax, dword [0x414ea0]
push eax
call dword [sym.imp.KERNEL32.dll_TlsGetValue]
lea ecx, [esp + 0xc]
mov edi, eax
push ecx
push esi
call fcn.004055a0
add esp, 8
push 0
call dword [sym.imp.KERNEL32.dll_SetLastError]
mov edx, dword [esi]
mov ecx, esi
mov dword [esi + 0x24], 1
call dword [edx + 0x20]
mov ecx, dword [esp + 0x3c]
mov edx, dword [esp + 0x38]
push eax
mov eax, dword [esp + 0x44]
push eax
mov eax, dword [esp + 0x34]
push ecx
mov ecx, dword [esp + 0x40]
sub ecx, eax
push edx
mov edx, dword [esp + 0x40]
push ecx
mov ecx, dword [esp + 0x3c]
sub edx, ecx
push edx
mov edx, dword [esi]
push eax
mov eax, dword [esp + 0x40]
push ecx
mov ecx, dword [esp + 0x40]
push eax
push ecx
mov ecx, esi
call dword [edx + 0x18]
push eax
mov eax, dword [esp + 0x34]
push eax
call dword [0x418000]
mov dword [esi + 0x24], 0
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov esi, eax
mov eax, dword [esp + 0x10]
test eax, eax
je 0x40531b
lea ecx, [esp + 0xc]
push ecx
call fcn.004055e0
add esp, 4
mov edx, dword [0x414ea0]
push edi
push edx
call dword [sym.imp.KERNEL32.dll_TlsSetValue]
mov eax, esi
pop edi
pop esi
add esp, 0x14
ret 0x24

Function at 0x4055a0
Capabilities:
Set thread local storage value

Disassembly:
mov eax, dword [0x414ea0]
push esi
mov esi, dword [esp + 0xc]
push esi
push eax
call dword [sym.imp.KERNEL32.dll_TlsSetValue]
call dword [sym.imp.KERNEL32.dll_GetCurrentThreadId]
push eax
push 0
push 0x405600
push 5
call dword [0x418048]
mov ecx, dword [esp + 8]
mov dword [esi + 4], eax
mov dword [esi], ecx
mov dword [esi + 8], 0
pop esi
ret
Function at 0x401fc2
Capabilities:
Terminate process

Disassembly:
push ebp
mov ebp, esp
sub esp, 4
mov dword [ebp - 4], esp
push 0
push 0xffffffff
call dword [sym.imp.KERNEL32.dll_TerminateProcess]
nop
nop
nop
nop
cmp dword [ebp - 4], esp
je 0x401ff4
push 6
call fcn.00405a62
add esp, 4
push 0
call fcn.00405a4a
add esp, 4
mov esp, ebp
pop ebp
ret
Function at 0x402617
Capabilities:
Get common file path

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x10
mov dword [ebp - 4], 0
mov dword [ebp - 8], 0
mov dword [ebp - 0xc], esp
push dword [ebp - 8]
push 0
call dword [sym.imp.KERNEL32.dll_GetTempPathA]
nop
nop
nop
nop
cmp dword [ebp - 0xc], esp
je 0x402655
push 6
call fcn.00405a62
add esp, 4
mov dword [ebp - 4], eax
push 0x80000301
push 0
push dword [ebp - 4]
push 1
mov ebx, 0x184
call fcn.00406bf0
add esp, 0x10
mov dword [ebp - 0xc], eax
mov eax, dword [ebp - 0xc]
push eax
mov ebx, dword [ebp - 8]
test ebx, ebx
je 0x40268b
push ebx
call fcn.00405a5c
add esp, 4
pop eax
mov dword [ebp - 8], eax
mov dword [ebp - 0xc], esp
push dword [ebp - 8]
push dword [ebp - 4]
call dword [sym.imp.KERNEL32.dll_GetTempPathA]
nop
nop
nop
nop
cmp dword [ebp - 0xc], esp
je 0x4026b4
push 6
call fcn.00405a62
add esp, 4
mov eax, dword [ebp - 8]
test eax, eax
je 0x4026d0
push eax
mov ebx, eax
call fcn.00401010
inc eax
push eax
call fcn.00405a74
pop ecx
pop esi
mov edi, eax
rep movsb byte es:[edi], byte [esi]
jmp 0x4026d5
push eax
mov ebx, dword [ebp - 8]
test ebx, ebx
je 0x4026e6
push ebx
call fcn.00405a5c
add esp, 4
pop eax
mov esp, ebp
pop ebp
ret

Function at 0x4026eb
Capabilities:
Get common file path

Disassembly:
push ebp
mov ebp, esp
sub esp, 8
mov dword [ebp - 4], 0
push 0x80000301
push 0
push 0x100
push 1
mov ebx, 0x184
call fcn.00406bf0
add esp, 0x10
mov dword [ebp - 8], eax
mov eax, dword [ebp - 8]
push eax
mov ebx, dword [ebp - 4]
test ebx, ebx
je 0x402730
push ebx
call fcn.00405a5c
add esp, 4
pop eax
mov dword [ebp - 4], eax
mov dword [ebp - 8], esp
push 0x100
push dword [ebp - 4]
call dword [sym.imp.KERNEL32.dll_GetWindowsDirectoryA]
nop
nop
nop
nop
cmp dword [ebp - 8], esp
je 0x40275b
push 6
call fcn.00405a62
add esp, 4
push 0x409200
push dword [ebp - 4]
mov ecx, 2
call fcn.0040107b
add esp, 8
mov dword [ebp - 8], eax
mov eax, dword [ebp - 8]
jmp 0x40277b
push eax
mov ebx, dword [ebp - 4]
test ebx, ebx
je 0x40278c
push ebx
call fcn.00405a5c
add esp, 4
pop eax
mov esp, ebp
pop ebp
ret
Function at 0x4058f1
Capabilities:
Create thread

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x10
push 0x80000006
push 0
push 0x4059b5
push 1
mov ebx, 0x9dc
call fcn.004062b0
add esp, 0x10
mov dword [ebp - 4], eax
mov dword [ebp - 8], esp
push 0
push 0
push dword [ebp + 8]
push dword [ebp - 4]
push 0
push 0
call dword [sym.imp.KERNEL32.dll_CreateThread]
nop
nop
nop
nop
cmp dword [ebp - 8], esp
je 0x405954
push 6
call fcn.00405a62
add esp, 4
mov dword [ebp - 0xc], eax
mov dword [ebp - 0x10], esp
push dword [ebp - 0xc]
call dword [sym.imp.KERNEL32.dll_CloseHandle]
nop
nop
nop
nop
cmp dword [ebp - 0x10], esp
je 0x405979
push 6
call fcn.00405a62
add esp, 4
mov esp, ebp
pop ebp
ret 4

Function at 0x405df0
Capabilities:
Get file size
Read file on windows

Disassembly:
mov eax, dword [esp + 8]
push edi
push 0
push 0x20
push 3
push 0
push 3
push 0x80000000
push eax
call dword [sym.imp.KERNEL32.dll_CreateFileA]
mov edi, eax
xor eax, eax
cmp edi, 0xffffffff
je 0x405e59
push ebx
lea ecx, [esp + 0x10]
push esi
push ecx
push edi
call dword [sym.imp.KERNEL32.dll_GetFileSize]
mov ebx, eax
lea edx, [ebx + 8]
push edx
call fcn.00405b90
add esp, 4
mov esi, eax
lea eax, [esp + 0x14]
push 0
push eax
lea ecx, [esi + 8]
push ebx
push ecx
push edi
mov dword [esi], 1
mov dword [esi + 4], ebx
call dword [sym.imp.KERNEL32.dll_ReadFile]
push edi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov eax, esi
pop esi
pop ebx
pop edi
ret

Function at 0x406210
Capabilities:
Write file on windows

Disassembly:
sub esp, 8
mov eax, dword [esp + 0x10]
push edi
push 0
push 0x20
push 2
push 0
push 0
push 0x40000000
push eax
call dword [sym.imp.KERNEL32.dll_CreateFileA]
mov edi, eax
xor eax, eax
cmp edi, 0xffffffff
je 0x4062a2
mov eax, dword [esp + 0x10]
push ebx
mov ebx, 1
push ebp
cmp eax, ebx
push esi
mov dword [esp + 0x10], ebx
jle 0x406294
mov ebp, dword [sym.imp.KERNEL32.dll_WriteFile]
lea esi, [esp + 0x2c]
mov eax, dword [esi]
lea edx, [esp + 0x14]
push 0
push edx
lea ecx, [eax + 8]
mov eax, dword [eax + 4]
push eax
push ecx
push edi
call ebp
test eax, eax
je 0x40628c
mov eax, dword [esp + 0x1c]
inc ebx
add esi, 0xc
cmp ebx, eax
jl 0x406255
push edi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov eax, dword [esp + 0x10]
pop esi
pop ebp
pop ebx
pop edi
add esp, 8
ret
mov dword [esp + 0x10], 0
push edi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov eax, dword [esp + 0x10]
pop esi
pop ebp
pop ebx
pop edi
add esp, 8
ret
Function at 0x406ba0
Capabilities:
Delete directory

Disassembly:
push esi
mov esi, dword [esp + 0xc]
test esi, esi
jne 0x406bad
xor eax, eax
pop esi
ret
push edi
mov edi, esi
or ecx, 0xffffffff
xor eax, eax
repne scasb al, byte es:[edi]
not ecx
dec ecx
pop edi
jne 0x406bbf
pop esi
ret
cmp ecx, 1
jne 0x406bcd
cmp byte [esi], 0x5c
jne 0x406bcd
xor eax, eax
pop esi
ret
push esi
call fcn.00406950
add esp, 4
test eax, eax
je 0x406be1
push esi
call dword [sym.imp.KERNEL32.dll_RemoveDirectoryA]
pop esi
ret
Function at 0x403428
Capabilities:
Accept command line arguments

Disassembly:
push ebx
push esi
push edi
add esp, 0xfffffdf4
mov ebx, edx
mov esi, eax
mov eax, ebx
xor edx, edx
call fcn.00406278
test esi, esi
jne 0x403460
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.004063b4
jmp 0x40347e
call sub.kernel32.dll_GetCommandLineW
mov edi, eax
mov edx, ebx
mov eax, edi
call fcn.0040330c
mov edi, eax
test esi, esi
je 0x40347e
cmp dword [ebx], 0
je 0x40347e
dec esi
jmp 0x403467
add esp, 0x20c
pop edi
pop esi
pop ebx
ret

Function at 0x403b74
Capabilities:
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffff4
movzx eax, word [0x55b020]
mov dword [ebp - 8], eax
lea eax, [ebp - 4]
push eax
push 1
push 0
push 0x403c0c
push 0x80000002
call sub.advapi32.dll_RegOpenKeyExW
test eax, eax
jne 0x403bec
xor eax, eax
push ebp
push 0x403be5
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 0x403c44
mov eax, dword [ebp - 4]
push eax
call sub.advapi32.dll_RegQueryValueExW
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x403bec
mov eax, dword [ebp - 4]
push eax
call sub.advapi32.dll_RegCloseKey
ret
movzx eax, word [0x55b020]
and ax, 0xffc0
movzx edx, word [ebp - 8]
and dx, 0x3f
or ax, dx
mov word [0x55b020], ax
mov esp, ebp
pop ebp
ret
Function at 0x4043f4
Capabilities:
Check for time delay via gettickcount

Disassembly:
push ebx
push esi
push edi
push ebp
add esp, 0xfffffff4
mov edi, edx
mov esi, eax
mov ebp, dword [esi + 0x10]
mov eax, esi
call fcn.004046a8
mov byte [esp], al
cmp byte [esp], 0
jne 0x40457d
test edi, edi
je 0x40457d
mov byte [esp + 1], 0
test ebp, ebp
jle 0x4044b4
call sub.kernel32.dll_GetTickCount
mov dword [esp + 4], eax
test ebp, ebp
jle 0x40448f
cmp edi, 0xffffffff
je 0x404453
call sub.kernel32.dll_GetTickCount
sub eax, dword [esp + 4]
cmp edi, eax
ja 0x404453
mov byte [esp], 0
jmp 0x40457d
mov ebx, dword [esi]
cmp ebx, 1
jg 0x40448f
test ebx, ebx
jne 0x404488
mov eax, esi
xor ecx, ecx
mov edx, 1
call fcn.004013e8
test eax, eax
jne 0x404488
call sub.kernel32.dll_GetCurrentThreadId
mov dword [esi + 8], eax
mov dword [esi + 4], 1
mov byte [esp], 1
jmp 0x40457d
pause
dec ebp
test ebp, ebp
jg 0x404438
cmp edi, 0xffffffff
je 0x4044b4
call sub.kernel32.dll_GetTickCount
mov dword [esp + 8], eax
mov eax, dword [esp + 8]
sub eax, dword [esp + 4]
cmp edi, eax
ja 0x4044b2
mov byte [esp], 0
jmp 0x40457d
sub edi, eax
mov ebx, dword [esi]
test ebx, ebx
je 0x404402
lea edx, [ebx + 2]
mov eax, esi
mov ecx, ebx
call fcn.004013e8
cmp ebx, eax
jne 0x4044b4
call sub.kernel32.dll_GetTickCount
mov dword [esp + 4], eax
mov eax, esi
call fcn.004045f0
mov edx, eax
mov ebx, dword [0x5678cc]
mov ecx, edi
xor eax, eax
call dword [ebx + 0x10]
test eax, eax
sete byte [esp]
cmp edi, 0xffffffff
je 0x40451b
call sub.kernel32.dll_GetTickCount
mov dword [esp + 8], eax
mov eax, dword [esp + 8]
sub eax, dword [esp + 4]
cmp edi, eax
jbe 0x404519
mov eax, dword [esp + 8]
sub eax, dword [esp + 4]
sub edi, eax
jmp 0x40451b
xor edi, edi
cmp byte [esp], 0
je 0x404544
mov ebx, dword [esi]
test bl, 1
jne 0x40455d
mov edx, ebx
sub edx, 2
or edx, 1
mov eax, esi
mov ecx, ebx
call fcn.004013e8
cmp ebx, eax
jne 0x404521
mov byte [esp + 1], 1
jmp 0x40455d
mov ebx, dword [esi]
mov edx, ebx
sub edx, 2
mov eax, esi
mov ecx, ebx
call fcn.004013e8
cmp ebx, eax
jne 0x404544
mov byte [esp + 1], 1
cmp byte [esp + 1], 0
je 0x4044ce
cmp byte [esp], 0
je 0x40457d
call sub.kernel32.dll_GetCurrentThreadId
mov dword [esi + 8], eax
mov dword [esi + 4], 1
movzx eax, byte [esp]
add esp, 0xc
pop ebp
pop edi
pop esi
pop ebx
ret

Function at 0x4051c4
Capabilities:
Write file on windows

Disassembly:
push ecx
cmp byte [0x567054], 0
je 0x405225
cmp word [0x567330], 0xd7b2
jne 0x4051ed
cmp dword [0x567338], 0
jbe 0x4051ed
mov eax, 0x56732c
call dword [0x567348]
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
push 0x405250
push 0xfffffffffffffff5
call sub.kernel32.dll_GetStdHandle
push eax
call sub.kernel32.dll_WriteFile
pop edx
ret
cmp byte [0x55b02c], 0
jne 0x405241
push 0
push str.Error
push str.Runtime_error_____at_00000000
push 0
call sub.user32.dll_MessageBoxA
pop edx
ret
Function at 0x4053f0
Capabilities:
Create thread

Disassembly:
push ebp
mov ebp, esp
push ecx
push ebx
push esi
push edi
mov ebx, ecx
mov dword [ebp - 4], edx
mov edi, eax
mov esi, dword [ebp + 0x10]
cmp dword [0x55b030], 0
je 0x405416
mov edx, esi
mov eax, ebx
call dword [0x55b030]
jmp 0x405425
mov eax, 8
call fcn.00403054
mov dword [eax], ebx
mov dword [eax + 4], esi
mov byte [0x567055], 1
mov edx, dword [ebp + 8]
push edx
mov edx, dword [ebp + 0xc]
push edx
push eax
mov eax, 0x4053b8
push eax
mov eax, dword [ebp - 4]
push eax
push edi
call sub.kernel32.dll_CreateThread
pop edi
pop esi
pop ebx
pop ecx
pop ebp
ret 0xc
Function at 0x408a70
Capabilities:
Get system information on windows

Disassembly:
add esp, 0xffffffdc
push esp
call sub.kernel32.dll_GetSystemInfo
mov eax, dword [esp + 0x14]
add esp, 0x24
ret

Function at 0x40a888
Capabilities:
Extract resource via kernel32 functions

Disassembly:
push ebx
push esi
mov esi, 0x569b60
push 0xa
push 0x40a91c
mov eax, dword [0x569b50]
push eax
call sub.kernel32.dll_FindResourceW
mov ebx, eax
test ebx, ebx
jne 0x40a8ac
call fcn.00416904
push ebx
mov eax, dword [0x569b50]
push eax
call sub.kernel32.dll_LoadResource
mov ebx, eax
test ebx, ebx
jne 0x40a8c3
call fcn.00416904
push ebx
call sub.kernel32.dll_LockResource
mov dword [esi], eax
cmp dword [esi], 0
jne 0x40a8d5
call fcn.00416904
mov eax, dword [esi]
mov edx, dword [esi]
mov ecx, edx
add ecx, dword [eax]
mov dword [0x569b64], ecx
mov ecx, edx
add ecx, dword [eax + 4]
mov dword [0x569b68], ecx
mov ecx, edx
add ecx, dword [eax + 8]
mov dword [0x569b6c], ecx
mov ecx, edx
add ecx, dword [eax + 0xc]
mov dword [0x569b70], ecx
mov ecx, edx
add ecx, dword [eax + 0x10]
mov dword [0x569b74], ecx
add edx, dword [eax + 0x14]
mov dword [0x569b78], edx
pop esi
pop ebx
ret

Function at 0x40c5c4
Capabilities:
Encrypt data using rc4 prga

Disassembly:
cmp eax, edx
je 0x40c66d
test eax, edx
je 0x40c670
push 0
push 0
cmp word [eax - 0xa], 2
je 0x40c5ed
push edx
mov edx, eax
mov eax, esp
call fcn.00406494
pop edx
mov eax, dword [esp]
cmp word [edx - 0xa], 2
je 0x40c603
push eax
lea eax, [esp + 8]
call fcn.00406494
pop eax
mov edx, dword [esp + 4]
movzx ecx, word [edx]
cmp cx, word [eax]
je 0x40c612
movzx eax, word [eax]
sub eax, ecx
jmp 0x40c639
push ebx
mov ebx, dword [eax - 4]
xor ecx, ecx
sub ebx, dword [edx - 4]
push ebx
adc ecx, 0xffffffff
and ecx, ebx
sub ecx, dword [eax - 4]
shl ecx, 1
sub eax, ecx
sub edx, ecx
mov ebx, dword [ecx + eax]
xor ebx, dword [ecx + edx]
jne 0x40c653
add ecx, 4
js 0x40c62a
pop eax
pop ebx
mov ecx, esp
mov edx, dword [ecx]
or edx, dword [ecx + 4]
je 0x40c650
push eax
mov eax, ecx
mov edx, 2
call fcn.00405490
pop eax
pop edx
pop edx
ret
bsf ebx, ebx
shr ebx, 4
add ebx, ebx
add ecx, ebx
jns 0x40c637
movzx eax, word [ecx + eax]
movzx edx, word [ecx + edx]
sub eax, edx
pop ebx
pop ebx
jmp 0x40c639
xor eax, eax
ret
test eax, eax
je 0x40c680
test edx, edx
jne 0x40c5d4
mov eax, dword [eax - 4]
ret
sub eax, dword [edx - 4]
ret

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

Disassembly:
push ebx
push esi
mov esi, eax
mov eax, esi
call fcn.00406304
push eax
call sub.kernel32.dll_GetFileAttributesW
cmp eax, 0xffffffff
je 0x40d626
test al, 0x10
sete al
pop esi
pop ebx
ret
call sub.kernel32.dll_GetLastError
mov ebx, eax
cmp ebx, 2
je 0x40d647
cmp ebx, 3
je 0x40d647
cmp ebx, 0x7b
je 0x40d647
mov eax, esi
call fcn.0040d5c8
test al, al
jne 0x40d64b
xor eax, eax
jmp 0x40d64d
mov al, 1
pop esi
pop ebx
ret

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

Disassembly:
push ebx
mov ebx, eax
mov eax, ebx
call fcn.00406304
push eax
call sub.kernel32.dll_GetFileAttributesW
cmp eax, 0xffffffff
je 0x40d669
test al, 0x10
jne 0x40d66d
xor eax, eax
pop ebx
ret
mov al, 1
pop ebx
ret
Function at 0x40d788
Capabilities:
Get file attributes

Disassembly:
push ebx
mov ebx, eax
mov eax, ebx
call fcn.00406304
push eax
call sub.kernel32.dll_GetFileAttributesW
pop ebx
ret

Function at 0x40d79c
Capabilities:
Set file attributes

Disassembly:
push ebx
push esi
push edi
mov edi, edx
mov esi, eax
xor ebx, ebx
push edi
mov eax, esi
call fcn.00406304
push eax
call sub.kernel32.dll_SetFileAttributesW
test eax, eax
jne 0x40d7be
call sub.kernel32.dll_GetLastError
mov ebx, eax
mov eax, ebx
pop edi
pop esi
pop ebx
ret

Function at 0x4139c8
Capabilities:
Get geographical location

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffe00
push ebx
push esi
mov esi, ecx
mov ebx, dword [ebp + 8]
push pe_nt_image_headers32
lea ecx, [ebp - 0x200]
push ecx
push edx
push eax
call sub.kernel32.dll_GetLocaleInfoW_1
test eax, eax
jle 0x413a01
mov ecx, eax
dec ecx
lea edx, [ebp - 0x200]
mov eax, ebx
call fcn.004063b4
jmp 0x413a0a
mov eax, ebx
mov edx, esi
call fcn.00406278
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 4

Function at 0x413a14
Capabilities:
Get geographical location

Disassembly:
push ebx
push esi
push edi
push ecx
mov edi, ecx
mov esi, edx
mov ebx, eax
push 2
lea eax, [esp + 4]
push eax
push esi
push ebx
call sub.kernel32.dll_GetLocaleInfoW_1
test eax, eax
jle 0x413a36
movzx eax, word [esp]
jmp 0x413a38
mov eax, edi
pop edx
pop edi
pop esi
pop ebx
ret

Function at 0x41430c
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 0x414431
push dword fs:[ecx]
mov dword fs:[ecx], esp
push 0x400
lea ecx, [ebp - 0x888]
call fcn.00414120
mov esi, eax
mov eax, dword [0x566d60]
cmp byte [eax], 0
je 0x4143d9
mov eax, dword [0x566888]
call fcn.0040354c
call fcn.004031bc
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 [0x4142e8]
call fcn.00407c90
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 0x41444c
push 0xfffffffffffffff4
call sub.kernel32.dll_GetStdHandle_1
push eax
call sub.kernel32.dll_WriteFile_1
jmp 0x414415
push 0x40
lea eax, [ebp - 0x88]
push eax
mov eax, dword [0x5667e8]
mov eax, dword [eax + 4]
push eax
mov eax, dword [0x569b50]
call fcn.00407d84
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 0x414438
lea eax, [ebp - 4]
mov edx, dword [0x4142e8]
call fcn.00407c9c
ret
Function at 0x415084
Capabilities:
Get file version info

Disassembly:
push ebp
mov ebp, esp
add esp, 0xffffffe8
push ebx
xor edx, edx
mov dword [ebp - 4], edx
mov ebx, eax
xor eax, eax
push ebp
push 0x41515a
push dword fs:[eax]
mov dword fs:[eax], esp
mov dword [ebp - 8], 0xffffffff
lea eax, [ebp - 4]
mov edx, ebx
call fcn.004062cc
lea eax, [ebp - 4]
call fcn.00406ce8
lea eax, [ebp - 0xc]
push eax
mov eax, dword [ebp - 4]
call fcn.00406304
push eax
call sub.version.dll_GetFileVersionInfoSizeW
mov ebx, eax
test ebx, ebx
je 0x415144
mov eax, ebx
call fcn.00403054
mov dword [ebp - 0x10], eax
xor eax, eax
push ebp
push 0x41513d
push dword fs:[eax]
mov dword fs:[eax], esp
mov eax, dword [ebp - 0x10]
push eax
push ebx
mov eax, dword [ebp - 0xc]
push eax
mov eax, dword [ebp - 4]
call fcn.00406304
push eax
call sub.version.dll_GetFileVersionInfoW
test eax, eax
je 0x415127
lea eax, [ebp - 0x18]
push eax
lea eax, [ebp - 0x14]
push eax
push 0x41516c
mov eax, dword [ebp - 0x10]
push eax
call sub.version.dll_VerQueryValueW
test eax, eax
je 0x415127
mov eax, dword [ebp - 0x14]
mov eax, dword [eax + 8]
mov dword [ebp - 8], eax
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x415144
mov eax, dword [ebp - 0x10]
call fcn.00403070
ret
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x415161
lea eax, [ebp - 4]
call fcn.00406268
ret

Function at 0x41677c
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.0040583c
mov ebp, eax
push 0
push 0
push ebp
push ebx
push 0
push 0xfde9
call sub.kernel32.dll_MultiByteToWideChar_1
mov edi, eax
cmp edi, 0x104
jbe 0x416726
mov eax, edi
add eax, eax
call fcn.00403054
mov esi, eax
jmp 0x416728
mov esi, esp
push edi
push esi
push ebp
push ebx
push 0
push 0xfde9
call sub.kernel32.dll_MultiByteToWideChar_1
push edi
push esi
call sub.user32.dll_CharUpperBuffW
xor ebx, ebx
mov eax, edi
dec eax
test eax, eax
jl 0x416761
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 0x41674b
mov eax, esp
cmp esi, eax
je 0x41676e
mov eax, esi
call fcn.00403070
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 0x4167a8
cmp bl, 0
je 0x4167a4
cmp bl, 0x41
jl 0x41679f
cmp bl, 0x5a
jg 0x41679f
or bl, 0x20
xor al, bl
inc esi
jmp 0x416783
pop ecx
pop ebx
pop esi
ret
pop eax
pop ebx
pop esi
jmp 0x4166e8