joyce8/EMBER2024-capa huggingface dataset:
Function at 0x5c1a50
Capabilities:
Open clipboard

Disassembly:
push ebp
mov ebp, esp
sub esp, 8
push esi
mov dword [ebp - 8], 0xcccccccc
mov dword [ebp - 4], 0xcccccccc
push str.XRichEdit_Menu_Paste
mov eax, dword [ebp + 8]
push eax
call fcn.005cb940
add esp, 8
mov ecx, dword [ebp + 8]
mov dword [ebp - 4], ecx
mov edx, dword [ebp - 4]
cmp dword [edx + 0x138], 0
je 0x5c1a94
mov eax, dword [ebp + 8]
push eax
call fcn.005c50f0
add esp, 4
mov ecx, dword [ebp + 8]
mov edx, dword [ecx + 0x70]
mov esi, esp
mov eax, dword [edx + 0xc]
push eax
call dword [sym.imp.USER32.dll_OpenClipboard]
cmp esi, esp
call fcn.00605df0
test eax, eax
jne 0x5c1ab5
xor eax, eax
jmp 0x5c1b14
mov dword [ebp - 8], 0
mov ecx, dword [ebp + 8]
push ecx
call fcn.005c21e0
add esp, 4
test eax, eax
je 0x5c1ae0
mov dword [ebp - 8], 1
push 0
mov edx, dword [ebp + 8]
push edx
call fcn.00582ca0
jmp 0x5c1b02
mov eax, dword [ebp + 8]
push eax
call fcn.005c24a0
add esp, 4
test eax, eax
je 0x5c1b02
mov dword [ebp - 8], 1
push 0
mov ecx, dword [ebp + 8]
push ecx
call fcn.00582ca0
mov esi, esp
call dword [sym.imp.USER32.dll_CloseClipboard]
cmp esi, esp
call fcn.00605df0
mov eax, dword [ebp - 8]
pop esi
add esp, 8
cmp ebp, esp
call fcn.00605df0
mov esp, ebp
pop ebp
ret 4

Function at 0x5c1b30
Capabilities:
Write clipboard data

Disassembly:
push ebp
mov ebp, esp
sub esp, 0xc
push esi
mov dword [ebp - 0xc], 0xcccccccc
mov dword [ebp - 8], 0xcccccccc
mov dword [ebp - 4], 0xcccccccc
mov eax, dword [ebp + 0xc]
lea ecx, [eax + eax + 2]
mov dword [ebp - 4], ecx
mov edx, dword [ebp - 4]
add edx, 1
mov esi, esp
push edx
push 2
call dword [sym.imp.KERNEL32.dll_GlobalAlloc]
cmp esi, esp
call fcn.00605df0
mov dword [ebp - 8], eax
mov esi, esp
mov eax, dword [ebp - 8]
push eax
call dword [sym.imp.KERNEL32.dll_GlobalLock]
cmp esi, esp
call fcn.00605df0
mov dword [ebp - 0xc], eax
mov ecx, dword [ebp + 8]
push ecx
mov edx, dword [ebp - 0xc]
push edx
call fcn.005ff4e0
add esp, 8
mov esi, esp
mov eax, dword [ebp - 8]
push eax
call dword [sym.imp.KERNEL32.dll_GlobalUnlock]
cmp esi, esp
call fcn.00605df0
mov esi, esp
mov ecx, dword [ebp - 8]
push ecx
push 0xd
call dword [sym.imp.USER32.dll_SetClipboardData]
cmp esi, esp
call fcn.00605df0
pop esi
add esp, 0xc
cmp ebp, esp
call fcn.00605df0
mov esp, ebp
pop ebp
ret
Function at 0x5c24a0
Capabilities:
Read clipboard data

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x10
push esi
mov eax, 0xcccccccc
mov dword [ebp - 0x10], eax
mov dword [ebp - 0xc], eax
mov dword [ebp - 8], eax
mov dword [ebp - 4], eax
mov eax, dword [ebp + 8]
mov dword [ebp - 4], eax
mov esi, esp
push 0xd
call dword [sym.imp.USER32.dll_GetClipboardData]
cmp esi, esp
call fcn.00605df0
mov dword [ebp - 8], eax
cmp dword [ebp - 8], 0
jne 0x5c24dc
xor eax, eax
jmp 0x5c254d
mov dword [ebp - 0xc], 0
mov esi, esp
mov ecx, dword [ebp - 8]
push ecx
call dword [sym.imp.KERNEL32.dll_GlobalLock]
cmp esi, esp
call fcn.00605df0
mov dword [ebp - 0x10], eax
cmp dword [ebp - 0x10], 0
je 0x5c2537
mov edx, dword [ebp - 0x10]
push edx
call fcn.00600eb0
add esp, 4
test eax, eax
jbe 0x5c2537
mov eax, dword [ebp - 4]
mov ecx, dword [eax + 0x108]
push ecx
mov edx, dword [ebp - 4]
mov eax, dword [edx + 0x100]
push eax
mov ecx, dword [ebp - 0x10]
push ecx
mov edx, dword [ebp + 8]
push edx
call fcn.005bbcb0
mov dword [ebp - 0xc], 1
mov esi, esp
mov eax, dword [ebp - 8]
push eax
call dword [sym.imp.KERNEL32.dll_GlobalUnlock]
cmp esi, esp
call fcn.00605df0
mov eax, dword [ebp - 0xc]
pop esi
add esp, 0x10
cmp ebp, esp
call fcn.00605df0
mov esp, ebp
pop ebp
ret

Function at 0x5d4710
Capabilities:
Print debug messages

Disassembly:
push ebp
mov ebp, esp
push esi
cmp dword [0x6c3060], 0
je 0x5d4778
mov esi, esp
push 0x6591a4
call dword [sym.imp.KERNEL32.dll_OutputDebugStringA]
cmp esi, esp
call fcn.00605df0
cmp dword [0x6c3064], 0
je 0x5d474e
mov eax, dword [0x6c3064]
mov ecx, dword [eax + 0x158]
push ecx
call fcn.005ee910
add esp, 4
mov esi, esp
mov edx, dword [0x6c3060]
push edx
call dword [sym.imp.USER32.dll_UnhookWindowsHookEx]
cmp esi, esp
call fcn.00605df0
mov dword [0x6c3060], 0
mov dword [0x6c3064], 0
pop esi
cmp ebp, esp
call fcn.00605df0
pop ebp
ret
Function at 0x5f0da0
Capabilities:
Terminate process

Disassembly:
cmp ecx, dword [0x6bc858]
jne 0x5f0daa
repz ret
jmp fcn.006082e0

Function at 0x5fc790
Capabilities:
Move file

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push ecx
mov eax, dword [ebp + 0xc]
push eax
mov ecx, dword [ebp + 8]
push ecx
call dword [sym.imp.KERNEL32.dll_MoveFileA]
test eax, eax
jne 0x5fc7b3
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov dword [ebp - 4], eax
jmp 0x5fc7ba
mov dword [ebp - 4], 0
cmp dword [ebp - 4], 0
je 0x5fc7d1
mov edx, dword [ebp - 4]
push edx
call fcn.005ff520
add esp, 4
or eax, 0xffffffff
jmp 0x5fc7d3
xor eax, eax
mov esp, ebp
pop ebp
ret

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

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0xc
xor eax, eax
cmp dword [ebp + 8], 0
setne al
mov dword [ebp - 8], eax
cmp dword [ebp - 8], 0
jne 0x5fc848
push str._path___NULL_
push 0
push 0x50
push str.f:dd_vctoolscrt_bld_self_x86crt_src_access.c
push 2
call fcn.005f3d20
add esp, 0x14
cmp eax, 1
jne 0x5fc848
int3
cmp dword [ebp - 8], 0
jne 0x5fc889
call fcn.005ff600
mov dword [eax], 0
call fcn.005ff5d0
mov dword [eax], 0x16
push 0
push 0x50
push str.f:dd_vctoolscrt_bld_self_x86crt_src_access.c
push str._access_s
push str._path___NULL_
call fcn.005f5140
add esp, 0x14
mov eax, 0x16
jmp 0x5fc961
mov edx, dword [ebp + 0xc]
and edx, 0xfffffff9
neg edx
sbb edx, edx
add edx, 1
mov dword [ebp - 0xc], edx
jne 0x5fc8b9
push str.__amode___6____0_
push 0
push 0x51
push str.f:dd_vctoolscrt_bld_self_x86crt_src_access.c
push 2
call fcn.005f3d20
add esp, 0x14
cmp eax, 1
jne 0x5fc8b9
int3
cmp dword [ebp - 0xc], 0
jne 0x5fc8f7
call fcn.005ff600
mov dword [eax], 0
call fcn.005ff5d0
mov dword [eax], 0x16
push 0
push 0x51
push str.f:dd_vctoolscrt_bld_self_x86crt_src_access.c
push str._access_s
push str.__amode___6____0_
call fcn.005f5140
add esp, 0x14
mov eax, 0x16
jmp 0x5fc961
mov ecx, dword [ebp + 8]
push ecx
call dword [sym.imp.KERNEL32.dll_GetFileAttributesA]
mov dword [ebp - 4], eax
cmp dword [ebp - 4], 0xffffffff
jne 0x5fc922
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
call fcn.005ff520
add esp, 4
call fcn.005ff5d0
mov eax, dword [eax]
jmp 0x5fc961
mov edx, dword [ebp - 4]
and edx, 0x10
je 0x5fc92e
xor eax, eax
jmp 0x5fc961
mov eax, dword [ebp - 4]
and eax, 1
je 0x5fc95f
mov ecx, dword [ebp + 0xc]
and ecx, 2
je 0x5fc95f
call fcn.005ff600
mov dword [eax], 5
call fcn.005ff5d0
mov dword [eax], 0xd
call fcn.005ff5d0
mov eax, dword [eax]
jmp 0x5fc961
xor eax, eax
mov esp, ebp
pop ebp
ret

Function at 0x5fc970
Capabilities:
Delete file

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push ecx
mov eax, dword [ebp + 8]
push eax
call dword [sym.imp.KERNEL32.dll_DeleteFileA]
test eax, eax
jne 0x5fc98f
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov dword [ebp - 4], eax
jmp 0x5fc996
mov dword [ebp - 4], 0
cmp dword [ebp - 4], 0
je 0x5fc9ad
mov ecx, dword [ebp - 4]
push ecx
call fcn.005ff520
add esp, 4
or eax, 0xffffffff
jmp 0x5fc9af
xor eax, eax
mov esp, ebp
pop ebp
ret
Function at 0x5fc9c0
Capabilities:
Create directory

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push ecx
push 0
mov eax, dword [ebp + 8]
push eax
call dword [sym.imp.KERNEL32.dll_CreateDirectoryA]
test eax, eax
jne 0x5fc9e1
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov dword [ebp - 4], eax
jmp 0x5fc9e8
mov dword [ebp - 4], 0
cmp dword [ebp - 4], 0
je 0x5fc9ff
mov ecx, dword [ebp - 4]
push ecx
call fcn.005ff520
add esp, 4
or eax, 0xffffffff
jmp 0x5fca01
xor eax, eax
mov esp, ebp
pop ebp
ret
Function at 0x40100b
Capabilities:
Query or enumerate registry value

Disassembly:
call 0x40100b
push eax
call sub.KERNEL32.dll_ExitProcess
push ebp
mov ebp, esp
add esp, 0xfffffef0
jmp 0x40109c
lea eax, [ebp - 0x104]
push eax
call fcn.004011ec
push 0x401019
lea eax, [ebp - 0x104]
push eax
call sub.KERNEL32.dll_lstrcatA
push eax
call sub.KERNEL32.dll_LoadLibraryA
test eax, eax
jne 0x401165
lea eax, [ebp - 0x10c]
push eax
push 0x20019
push 0
push 0x401038
push 0x80000001
call sub.ADVAPI32.dll_RegOpenKeyExA
cmp eax, 0
jne 0x4011a5
mov dword [ebp - 0x110], 0x103
lea eax, [ebp - 0x110]
push eax
lea eax, [ebp - 0x104]
push eax
push 0
push 0
push 0x401052
push dword [ebp - 0x10c]
call sub.ADVAPI32.dll_RegQueryValueExA
push eax
push dword [ebp - 0x10c]
call sub.ADVAPI32.dll_RegCloseKey
pop eax
cmp eax, 0
jne 0x4011a5
lea eax, [ebp - 0x104]
push eax
call sub.KERNEL32.dll_lstrlenA
lea ebx, [ebp - 0x104]
add ebx, eax
dec ebx
cmp byte [ebx], 0x5c
je 0x40114a
mov word [ebx], 0x5c
push 0x401023
lea eax, [ebp - 0x104]
push eax
call sub.KERNEL32.dll_lstrcatA
push eax
call sub.KERNEL32.dll_LoadLibraryA
test eax, eax
je 0x4011a5
mov dword [ebp - 0x108], eax
push 0x40102d
push eax
call sub.KERNEL32.dll_GetProcAddress
test eax, eax
je 0x40119a
push 0x3e8
call eax
test eax, eax
je 0x40119a
call 0x40118a
add dword [esp], 0x1e76
call eax
push 0
call sub.KERNEL32.dll_ExitProcess
push dword [ebp - 0x108]
call sub.KERNEL32.dll_FreeLibrary
push 0x10
push 0x401096
push 0x401057
push 0
call sub.USER32.dll_MessageBoxA
mov eax, 0xffffffff
leave
ret

Function at 0x403910
Capabilities:
Accept command line arguments
Hide graphical window

Disassembly:
mov ecx, ebp
push ebp
mov ebp, esp
add ecx, 4
mov dword [0x4040fe], ecx
call dword [sym.imp.kernel32.dll_GetCommandLineA]
mov dword [0x404670], eax
push 0
call dword [sym.imp.kernel32.dll_GetModuleHandleA]
mov dword [0x404604], eax
mov dword [0x4040f6], eax
mov dword [0x4045f0], 0x30
mov dword [0x4045f4], 2
jmp 0x403955
mov dword [0x4045f8], 0x402f69
mov dword [0x4045fc], 0
mov dword [0x404600], 0
mov dword [0x404618], 0x404564
mov dword [0x404610], 0xf
push 0x7f00
push 0
call dword [sym.imp.user32.dll_LoadIconA]
mov dword [0x404608], eax
mov dword [0x40461c], eax
push 0x7f00
push 0
call dword [sym.imp.user32.dll_LoadCursorA]
mov dword [0x40460c], eax
push 0x4045f0
call dword [sym.imp.user32.dll_RegisterClassExA]
push 0
push dword [0x4040f6]
push 0
push 0
push 0x1e5
push 0x203
push 0xfffff98e
push 0xfffff9c0
push 0xcf0000
push str.asdlkjalsdj_ai8
push str.first
push 0
call dword [sym.imp.user32.dll_CreateWindowExA]
mov dword [0x404668], eax
push 5
push dword [0x404668]
call dword [sym.imp.user32.dll_ShowWindow]
push dword [0x404668]
call dword [sym.imp.user32.dll_UpdateWindow]
xor edi, edi
lea ebx, [0x404620]
jmp 0x403a29
push ebx
call dword [sym.imp.user32.dll_TranslateMessage]
push ebx
call dword [sym.imp.user32.dll_DispatchMessageA]
push edi
push edi
push edi
push ebx
call dword [sym.imp.user32.dll_GetMessageA]
test al, al
jne 0x403a1b
mov eax, dword [0x404628]
jmp 0x403a44
call 0x402a90
ret
Function at 0x42fb71
Capabilities:
Access peb ldr_data
Get kernel32 base address

Disassembly:
mov eax, 0x43757a
call fcn.004339e0
push ecx
push ebx
push esi
mov esi, ecx
xor ebx, ebx
mov dword [ebp - 0x10], esi
mov dword [esi], 0x43c770
mov dword [esi + 4], 0x43c758
mov dword [esi + 8], ebx
mov dword [ebp - 4], ebx
mov dword [esi + 0xc], ebx
mov dword [esi + 0x10], ebx
mov dword [esi + 0x14], ebx
lea ecx, [esi + 0x18]
mov byte [ebp - 4], 1
call fcn.004028e9
mov ecx, dword [ebp - 0xc]
mov byte [esi + 0x24], 1
mov dword [esi + 0x28], ebx
mov dword [esi + 0x2c], ebx
mov dword [esi + 0x30], ebx
mov dword [esi + 0x34], ebx
mov dword [esi + 0x38], ebx
mov dword [esi + 0x3c], ebx
mov dword [esi + 0x40], ebx
mov dword [esi + 0x44], ebx
mov dword [esi + 0x48], ebx
mov byte [esi + 0x4c], bl
mov byte [esi + 0x4d], bl
mov dword [esi], 0x43c73c
mov dword [esi + 4], 0x43c724
mov eax, esi
pop esi
pop ebx
mov dword fs:[0], ecx
leave
ret

Function at 0x43196e
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x30
pushal
call 0x43197d
pop dword [ebp - 0x20]
mov eax, 0xf7575ba9
sub eax, 0xf714422c
sub dword [ebp - 0x20], eax
push 0x40
push 0x1000
push 0x3a088
push 0
mov eax, 0x5f9d6d77
sub eax, 0x5f59ed47
add eax, dword [ebp - 0x20]
call dword [eax]
mov ecx, 0x454d
mov ebx, eax
mov edx, 0x44c600
add edx, dword [ebp - 0x20]
mov edi, 0x62598871
sub edi, 0x8b2b1973
sub dword [ebp - 0x10], ebx
mov esi, dword [edx]
add esi, edi
xor dword [ebp - 0x18], 0xf3da634a
mov dword [ebx], esi
add ebx, 0xf05f5efc
sub ebx, 0xf05f5ef8
add edx, 0x1806edaa
add edx, 0xe7f9125a
loop 0x4319d0
add eax, 0x83ed0608
add eax, 0x7c1401ff
mov ebx, eax
add eax, 0xe65c6d10
add eax, 0x19a392f5
mov ecx, 0x36e7fd3a
sub ecx, 0x36a7fd3a
add ecx, dword [ebp - 0x20]
call ebx
leave
ret

Function at 0x433770
Capabilities:
Create thread

Disassembly:
push esi
lea eax, [esp + 8]
push eax
push 0
mov esi, ecx
mov ecx, dword [esp + 0x10]
push ecx
push edx
push 0
push 0
call dword [sym.imp.msvcrt.dll__beginthreadex]
add esp, 0x18
mov dword [esi], eax
pop esi
test eax, eax
je 0x433799
xor eax, eax
ret 4
call dword [sym.imp.kernel32.dll_GetLastError]
test eax, eax
jne 0x4337a8
mov eax, 1
ret 4
Function at 0x67f1b0
Capabilities:
Acquire debug privileges

Disassembly:
push ecx
lea eax, [esp]
mov dword [esp], 0
push eax
push 0x20
call dword [sym.imp.KERNEL32.dll_GetCurrentProcess]
push eax
call dword [sym.imp.ADVAPI32.dll_OpenProcessToken]
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov ecx, dword [esp]
push 1
push str.SeBackupPrivilege
push ecx
call fcn.0067f140
mov edx, dword [esp + 0xc]
push 1
push str.SeDebugPrivilege
push edx
call fcn.0067f140
mov eax, dword [esp + 0x18]
push 1
push str.SeRestorePrivilege
push eax
call fcn.0067f140
mov ecx, dword [esp + 0x24]
push 1
push str.SeSecurityPrivilege
push ecx
call fcn.0067f140
mov edx, dword [esp + 0x30]
add esp, 0x30
push edx
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov al, 1
pop ecx
ret

Function at 0x67fbfa
Capabilities:
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
push ecx
push ecx
push esi
lea eax, [ebp - 4]
push eax
push 0x20019
xor esi, esi
push esi
push str.CLSIDADB880A6_D8FF_11CF_9377_00AA003B7A11InprocServer32
push SysReAllocString
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
test eax, eax
jne 0x67fc50
lea eax, [ebp - 8]
push eax
push dword [ebp + 8]
mov dword [ebp - 8], 0x104
push esi
push esi
push 0x69187c
push dword [ebp - 4]
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
test eax, eax
jne 0x67fc43
inc esi
push dword [ebp - 4]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov eax, esi
jmp 0x67fc52
xor eax, eax
pop esi
leave
ret 4
Function at 0x403d61
Capabilities:
Encode data using xor

Disassembly:
push eax
push ebx
mov eax, 0x499
mov ecx, 0x404498
mov bl, byte [ecx]
sub bl, 0xf2
rol bl, 2
sub bl, cl
ror bl, 1
mov byte [ecx], bl
dec ecx
dec eax
jne 0x403d6d
mov eax, 0x261d
mov ecx, 0x403764
mov bl, byte [ecx]
rol bl, 7
ror bl, 2
sub bl, cl
xor bl, 0x91
mov byte [ecx], bl
dec ecx
dec eax
jne 0x403d8a
pop ebx
pop eax
add ecx, 0x2c1a
jmp ecx

Function at 0xee8638
Capabilities:
Encode data using xor

Disassembly:
jmp 0xee8642
or eax, dword [eax]
add byte [eax], al
add byte [eax], al
pushal
call 0xee8648
pop ebp
sub ebp, 0x10
sub ebp, 0xae8638
jmp 0xee865e
mov eax, 0xae8638
add eax, ebp
add eax, 0x4c
mov ecx, 0x5c8
mov edx, 0x36a75e94
xor byte [eax], dl
inc eax
dec ecx
jne 0xee8675
jmp 0xee8688
pop ds
pop ecx
pop ds
sbb eax, 0x949494a8
adc eax, 0x94946c55
xchg esp, eax
xchg edi, eax
pop ecx
sub al, 0x91
xchg esp, eax
xchg esp, eax
xchg esp, eax
mov esp, 0x63949494
jbe 0xee863c
pop esp
pop ds
adc eax, 0x94949498
xchg edi, eax
push ecx
les ebx, [ecx]
invalid

Function at 0x403d61
Capabilities:
Encode data using xor

Disassembly:
push eax
push ebx
mov eax, 0x499
mov ecx, 0x404498
mov bl, byte [ecx]
sub bl, 0xf2
rol bl, 2
sub bl, cl
ror bl, 1
mov byte [ecx], bl
dec ecx
dec eax
jne 0x403d6d
mov eax, 0x261d
mov ecx, 0x403764
mov bl, byte [ecx]
rol bl, 7
ror bl, 2
sub bl, cl
xor bl, 0x91
mov byte [ecx], bl
dec ecx
dec eax
jne 0x403d8a
pop ebx
pop eax
add ecx, 0x2c1a
jmp ecx
Function at 0x403b20
Capabilities:
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffff4
movzx eax, word [0x416020]
mov dword [ebp - 8], eax
lea eax, [ebp - 4]
push eax
push 1
push 0
push 0x403bb8
push 0x80000002
call sub.advapi32.dll_RegOpenKeyExA
test eax, eax
jne 0x403b98
xor eax, eax
push ebp
push 0x403b91
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 0x403bd4
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 0x403b98
mov eax, dword [ebp - 4]
push eax
call sub.advapi32.dll_RegCloseKey
ret
movzx eax, word [0x416020]
and ax, 0xffc0
movzx edx, word [ebp - 8]
and dx, 0x3f
or ax, dx
mov word [0x416020], ax
mov esp, ebp
pop ebp
ret

Function at 0x40480c
Capabilities:
Write file on windows

Disassembly:
push ecx
cmp byte [0x419044], 0
je 0x40486d
cmp word [0x419218], 0xd7b2
jne 0x404835
cmp dword [0x419220], 0
jbe 0x404835
mov eax, 0x419214
call dword [0x419230]
push 0
lea eax, [esp + 4]
push eax
push 0x1e
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 0x404894
push 0xfffffffffffffff5
call sub.kernel32.dll_GetStdHandle
push eax
call sub.kernel32.dll_WriteFile
pop edx
ret
cmp byte [0x41602c], 0
jne 0x404889
push 0
push str.Error
push str.Runtime_error_____at_00000000
push 0
call sub.user32.dll_MessageBoxA
pop edx
ret
Function at 0x405a4c
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 0xf0019
push 0
push 0x405c7c
push 0x80000001
call sub.advapi32.dll_RegOpenKeyExA
test eax, eax
je 0x405acf
lea eax, [ebp - 8]
push eax
push 0xf0019
push 0
push 0x405c7c
push 0x80000002
call sub.advapi32.dll_RegOpenKeyExA
test eax, eax
je 0x405acf
lea eax, [ebp - 8]
push eax
push 0xf0019
push 0
push 0x405c98
push 0x80000001
call sub.advapi32.dll_RegOpenKeyExA
test eax, eax
jne 0x405b58
xor eax, eax
push ebp
push 0x405b51
push dword fs:[eax]
mov dword fs:[eax], esp
mov dword [ebp - 0x18], 5
lea eax, [ebp - 0x11d]
mov edx, 0x105
call fcn.00405888
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 0x405b36
lea eax, [ebp - 0x18]
push eax
lea eax, [ebp - 0x12]
push eax
push 0
push 0
push 0x405cb8
mov eax, dword [ebp - 8]
push eax
call sub.advapi32.dll_RegQueryValueExA
test eax, eax
je 0x405b36
mov byte [ebp - 0x12], 0
mov byte [ebp - 0xe], 0
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x405b58
mov eax, dword [ebp - 8]
push eax
call sub.advapi32.dll_RegCloseKey
ret
push 0x105
mov eax, dword [ebp - 4]
push eax
lea eax, [ebp - 0x11d]
push eax
call sub.kernel32.dll_lstrcpynA
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 0x405c72
cmp byte [ebp - 0xd], 0
jne 0x405b9f
cmp byte [ebp - 0x12], 0
je 0x405c72
lea eax, [ebp - 0x11d]
push eax
call sub.kernel32.dll_lstrlenA
mov ebx, eax
lea eax, [ebp - 0x11d]
add ebx, eax
jmp 0x405bb8
dec ebx
cmp byte [ebx], 0x2e
je 0x405bc7
lea eax, [ebp - 0x11d]
cmp ebx, eax
jne 0x405bb7
lea eax, [ebp - 0x11d]
cmp ebx, eax
je 0x405c72
inc ebx
cmp byte [ebp - 0x12], 0
je 0x405c04
mov edx, ebx
sub edx, eax
mov eax, 0x105
sub eax, edx
push eax
lea eax, [ebp - 0x12]
push eax
push ebx
call sub.kernel32.dll_lstrcpynA
push 2
push 0
lea eax, [ebp - 0x11d]
push eax
call sub.kernel32.dll_LoadLibraryExA
mov esi, eax
test esi, esi
jne 0x405c72
cmp byte [ebp - 0xd], 0
je 0x405c72
lea eax, [ebp - 0x11d]
mov edx, ebx
sub edx, eax
mov eax, 0x105
sub eax, edx
push eax
lea eax, [ebp - 0xd]
push eax
push ebx
call sub.kernel32.dll_lstrcpynA
push 2
push 0
lea eax, [ebp - 0x11d]
push eax
call sub.kernel32.dll_LoadLibraryExA
mov esi, eax
test esi, esi
jne 0x405c72
mov byte [ebp - 0xb], 0
lea eax, [ebp - 0x11d]
mov edx, ebx
sub edx, eax
mov eax, 0x105
sub eax, edx
push eax
lea eax, [ebp - 0xd]
push eax
push ebx
call sub.kernel32.dll_lstrcpynA
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 0x4074b0
Capabilities:
Check if file exists
Get file attributes

Disassembly:
push ebx
mov ebx, eax
mov eax, ebx
call fcn.00404de8
push eax
call sub.kernel32.dll_GetFileAttributesA
cmp eax, 0xffffffff
je 0x4074c9
test al, 0x10
je 0x4074cd
xor eax, eax
pop ebx
ret
mov al, 1
pop ebx
ret

Function at 0x409ce8
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 0x409d21
mov ecx, eax
dec ecx
lea edx, [ebp - 0x100]
mov eax, ebx
call fcn.00404a7c
jmp 0x409d2a
mov eax, ebx
mov edx, esi
call fcn.004049e0
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 4

Function at 0x409d34
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 0x409d56
movzx eax, byte [esp]
jmp 0x409d58
mov eax, ebx
pop edx
pop edi
pop esi
pop ebx
ret

Function at 0x40a3e8
Capabilities:
Write file on windows

Disassembly:
add esp, 0xfffffbbc
push 0x400
lea ecx, [esp + 0x48]
call 0x40a260
mov eax, dword [0x4181cc]
cmp byte [eax], 0
je 0x40a464
mov eax, dword [0x418104]
call fcn.004032d8
call fcn.00402e14
lea eax, [esp + 0x44]
push eax
lea eax, [esp + 0x48]
push eax
call sub.user32.dll_CharToOemA
push 0
lea eax, [esp + 4]
push eax
lea eax, [esp + 0x4c]
call fcn.00407610
push eax
lea eax, [esp + 0x50]
push eax
push 0xfffffffffffffff4
call sub.kernel32.dll_GetStdHandle_1
push eax
call sub.kernel32.dll_WriteFile_1
push 0
lea eax, [esp + 4]
push eax
push 2
push 0x40a4ac
push 0xfffffffffffffff4
call sub.kernel32.dll_GetStdHandle_1
push eax
call sub.kernel32.dll_WriteFile_1
jmp 0x40a49a
push 0x40
lea eax, [esp + 8]
push eax
mov eax, dword [0x4180e4]
mov eax, dword [eax + 4]
push eax
mov eax, dword [0x41b7f0]
call fcn.00405830
push eax
call sub.user32.dll_LoadStringA_1
push 0x2010
lea eax, [esp + 8]
push eax
lea eax, [esp + 0x4c]
push eax
push 0
call sub.user32.dll_MessageBoxA_1
add esp, 0x444
ret

Function at 0x40c6b8
Capabilities:
Hash data with crc32

Disassembly:
push esi
xor esi, esi
mov ecx, 0x41d90c
mov eax, esi
mov edx, 8
test al, 1
je 0x40c6d4
shr eax, 1
xor eax, 0xedb88320
jmp 0x40c6d6
shr eax, 1
dec edx
jne 0x40c6c7
mov dword [ecx], eax
inc esi
add ecx, 4
cmp esi, 0x100
jne 0x40c6c0
pop esi
ret

Function at 0x40c6ec
Capabilities:
Encode data using xor

Disassembly:
push ebx
push esi
push edi
mov esi, ecx
mov edi, edx
mov ebx, eax
cmp byte [0x41d908], 0
jne 0x40c70a
call fcn.0040c6b8
mov byte [0x41d908], 1
mov eax, edi
test esi, esi
je 0x40c735
mov edx, ebx
and edx, 0xff
movzx ecx, byte [eax]
xor dx, cx
movzx edx, dx
mov edx, dword [edx*4 + 0x41d90c]
shr ebx, 8
xor edx, ebx
mov ebx, edx
dec esi
inc eax
test esi, esi
jne 0x40c710
mov eax, ebx
pop edi
pop esi
pop ebx
ret