joyce8/EMBER2024-capa huggingface dataset:
Function at 0x403720
Capabilities:
Delete file
Enumerate gui resources

Disassembly:
mov eax, dword [0x4b1b8c]
mov ecx, dword [0x4aea94]
sub esp, 0xc2c
push ebx
push ebp
shr eax, 3
push esi
push edi
test eax, eax
jbe 0x40382d
mov edi, dword [sym.imp.KERNEL32.dll_SetConsoleMode]
mov ebx, dword [sym.imp.KERNEL32.dll_WriteProfileSectionW]
mov ebp, dword [sym.imp.KERNEL32.dll_SearchPathA]
mov esi, dword [sym.imp.KERNEL32.dll_GetCommState]
mov dword [esp + 0x10], ecx
mov dword [esp + 0x14], eax
cmp dword [0x4b1b8c], 0x959
jne 0x403813
push 0
push 0
call edi
push 0
push 0
call ebx
lea eax, [esp + 0x18]
push eax
lea ecx, [esp + 0x43c]
push ecx
push 0
push 0
push 0
push 0
call ebp
push 0
call dword [sym.imp.KERNEL32.dll_DeleteFileA]
push 0
call dword [sym.imp.KERNEL32.dll_LoadLibraryW]
push 0
push 0
push 0
push 0
call dword [sym.imp.KERNEL32.dll_EnumCalendarInfoExW]
lea edx, [esp + 0x1c]
push edx
push 0
call esi
push 0
push 0
lea eax, [esp + 0x40]
push eax
call dword [sym.imp.KERNEL32.dll_AddConsoleAliasA]
push 0
push 0
call dword [sym.imp.KERNEL32.dll_SetStdHandle]
push 0
lea ecx, [esp + 0x83c]
push ecx
push 0
call dword [sym.imp.KERNEL32.dll_GetModuleFileNameA]
push 0
push 0
push 0
call dword [sym.imp.KERNEL32.dll_EnumResourceTypesW]
push 0
push 0
call esi
push 0
push 0x402e08
call dword [sym.imp.KERNEL32.dll_BeginUpdateResourceA]
push 0x402e28
push 0
push 0
call dword [sym.imp.KERNEL32.dll_OpenEventA]
mov edx, dword [esp + 0x10]
push edx
call fcn.00403580
add dword [esp + 0x10], 8
sub dword [esp + 0x14], 1
jne 0x403760
pop edi
pop esi
pop ebp
pop ebx
add esp, 0xc2c
ret
Function at 0x40745a
Capabilities:
Terminate process

Disassembly:
cmp ecx, dword [0x444248]
jne 0x407464
repz ret
jmp fcn.0040cbe8

Function at 0x40d6df
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.00409bf5
and dword [ebp - 4], 0
cmp dword [0x447918], 0
mov ebx, eax
jne 0x40d790
push 0x4024dc
call dword [sym.imp.KERNEL32.dll_LoadLibraryA]
mov edi, eax
test edi, edi
je 0x40d841
mov esi, dword [sym.imp.KERNEL32.dll_GetProcAddress]
push 0x4024d0
push edi
call esi
test eax, eax
je 0x40d841
push eax
call fcn.00409b83
mov dword [esp], 0x4024c0
push edi
mov dword [0x447918], eax
call esi
push eax
call fcn.00409b83
mov dword [esp], 0x4024ac
push edi
mov dword [0x44791c], eax
call esi
push eax
call fcn.00409b83
mov dword [esp], 0x402490
push edi
mov dword [0x447920], eax
call esi
push eax
call fcn.00409b83
pop ecx
mov dword [0x447928], eax
test eax, eax
je 0x40d790
push 0x402478
push edi
call esi
push eax
call fcn.00409b83
pop ecx
mov dword [0x447924], eax
mov eax, dword [0x447924]
cmp eax, ebx
je 0x40d7e8
cmp dword [0x447928], ebx
je 0x40d7e8
push eax
call fcn.00409bfe
push dword [0x447928]
mov esi, eax
call fcn.00409bfe
pop ecx
pop ecx
mov edi, eax
test esi, esi
je 0x40d7e8
test edi, edi
je 0x40d7e8
call esi
test eax, eax
je 0x40d7df
lea ecx, [ebp - 8]
push ecx
push 0xc
lea ecx, [ebp - 0x14]
push ecx
push 1
push eax
call edi
test eax, eax
je 0x40d7df
test byte [ebp - 0xc], 1
jne 0x40d7e8
or dword [ebp + 0x10], 0x200000
jmp 0x40d821
mov eax, dword [0x44791c]
cmp eax, ebx
je 0x40d821
push eax
call fcn.00409bfe
pop ecx
test eax, eax
je 0x40d821
call eax
mov dword [ebp - 4], eax
test eax, eax
je 0x40d821
mov eax, dword [0x447920]
cmp eax, ebx
je 0x40d821
push eax
call fcn.00409bfe
pop ecx
test eax, eax
je 0x40d821
push dword [ebp - 4]
call eax
mov dword [ebp - 4], eax
push dword [0x447918]
call fcn.00409bfe
pop ecx
test eax, eax
je 0x40d841
push dword [ebp + 0x10]
push dword [ebp + 0xc]
push dword [ebp + 8]
push dword [ebp - 4]
call eax
jmp 0x40d843
xor eax, eax
pop edi
pop esi
pop ebx
leave
ret
Function at 0x406273
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
push ebx
xor ebx, ebx
cmp dword [ebp + 8], ebx
je 0x406298
mov eax, dword [0x40a8a0]
cmp eax, 0xffffffff
je 0x40628f
push eax
call dword [sym.imp.KERNEL32.dll_CloseHandle]
or dword [0x40a8a0], 0xffffffff
jmp 0x40630b
cmp dword [0x440a40], ebx
je 0x40630b
cmp byte [0x440640], bl
je 0x4062d7
cmp dword [0x40a8a0], 0xffffffff
jne 0x4062e0
push 4
push 0x40000000
push 0x440640
call fcn.00405c27
cmp eax, 0xffffffff
mov dword [0x40a8a0], eax
je 0x40630b
push 2
push ebx
push ebx
push eax
call dword [sym.imp.KERNEL32.dll_SetFilePointer]
cmp dword [0x40a8a0], 0xffffffff
je 0x40630b
push esi
mov esi, 0x444a60
push 0x40aae8
push esi
call fcn.00405f75
lea eax, [ebp + 8]
push ebx
push eax
push esi
call fcn.00405f68
push eax
push esi
push dword [0x40a8a0]
call dword [sym.imp.KERNEL32.dll_WriteFile]
pop esi
pop ebx
pop ebp
ret 4

Function at 0x4064bd
Capabilities:
Encode data using xor
Hash data with crc32

Disassembly:
push esi
xor esi, esi
cmp dword [0x44023c], esi
push edi
jne 0x4064f7
mov ecx, 0x440238
push 8
mov eax, esi
pop edi
mov edx, eax
and dl, 1
neg dl
sbb edx, edx
and edx, 0xedb88320
shr eax, 1
xor eax, edx
dec edi
jne 0x4064d3
mov dword [ecx], eax
add ecx, 4
inc esi
cmp ecx, 0x440638
jl 0x4064ce
mov ecx, dword [esp + 0x14]
mov eax, dword [esp + 0xc]
mov edx, ecx
dec ecx
test edx, edx
not eax
jbe 0x40652c
lea edx, [ecx + 1]
mov ecx, dword [esp + 0x10]
movzx edi, byte [ecx]
mov esi, eax
and esi, 0xff
xor esi, edi
shr eax, 8
mov esi, dword [esi*4 + 0x440238]
xor eax, esi
inc ecx
dec edx
jne 0x40650f
pop edi
pop esi
not eax
ret 0xc

Function at 0xa14000
Capabilities:
Decompress data using aplib

Disassembly:
jmp 0xa1400a
jmp 0xa1600f
jmp fcn.007d80b0
Function at 0x100152b0
Capabilities:
Packed with generic packer

Disassembly:
cmp byte [esp + 8], 1
jne 0x10015441
pushal
mov esi, section.UPX1
lea edi, [esi - 0x10000]
push edi
or ebp, 0xffffffff
jmp 0x100152da
mov al, byte [esi]
inc esi
mov byte [edi], al
inc edi
add ebx, ebx
jne 0x100152e1
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
jb 0x100152d0
mov eax, 1
add ebx, ebx
jne 0x100152f3
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc eax, eax
add ebx, ebx
jae 0x100152e8
jne 0x10015304
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
jae 0x100152e8
xor ecx, ecx
sub eax, 3
jb 0x10015318
shl eax, 8
mov al, byte [esi]
inc esi
xor eax, 0xffffffff
je 0x1001538a
mov ebp, eax
add ebx, ebx
jne 0x10015323
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc ecx, ecx
add ebx, ebx
jne 0x10015330
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc ecx, ecx
jne 0x10015354
inc ecx
add ebx, ebx
jne 0x10015340
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc ecx, ecx
add ebx, ebx
jae 0x10015335
jne 0x10015351
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
jae 0x10015335
add ecx, 2
cmp ebp, 0xfffff300
adc ecx, 1
lea edx, [edi + ebp]
cmp ebp, 0xfffffffc
jbe 0x10015374
mov al, byte [edx]
inc edx
mov byte [edi], al
inc edi
dec ecx
jne 0x10015365
jmp 0x100152d6
mov eax, dword [edx]
add edx, 4
mov dword [edi], eax
add edi, 4
sub ecx, 4
ja 0x10015374
add edi, ecx
jmp 0x100152d6
pop esi
mov edi, esi
mov ecx, 0x391
mov al, byte [edi]
inc edi
sub al, 0xe8
cmp al, 1
ja 0x10015392
cmp byte [edi], 5
jne 0x10015392
mov eax, dword [edi]
mov bl, byte [edi + 4]
shr ax, 8
rol eax, 0x10
xchg ah, al
sub eax, edi
sub bl, 0xe8
add eax, esi
mov dword [edi], eax
add edi, 5
mov eax, ebx
loop 0x10015397
lea edi, [esi + 0x13000]
mov eax, dword [edi]
or eax, eax
je 0x1001540f
mov ebx, dword [edi + 4]
lea eax, [eax + esi + 0x15000]
add ebx, esi
push eax
add edi, 8
call dword [esi + 0x150dc]
xchg ebp, eax
mov al, byte [edi]
inc edi
or al, al
je 0x100153c4
mov ecx, edi
jns 0x100153f3
movzx eax, word [edi]
inc edi
push eax
inc edi
mov ecx, 0xaef24857
push edi
dec eax
repne scasb al, byte es:[edi]
push ebp
call dword [esi + 0x150e0]
or eax, eax
je 0x10015409
mov dword [ebx], eax
add ebx, 4
jmp 0x100153e1
popal
xor eax, eax
ret 0xc
add edi, 4
lea ebx, [esi - 4]
xor eax, eax
mov al, byte [edi]
inc edi
or eax, eax
je 0x10015440
cmp al, 0xef
ja 0x10015433
add ebx, eax
mov eax, dword [ebx]
xchg ah, al
rol eax, 0x10
xchg ah, al
add eax, esi
mov dword [ebx], eax
jmp 0x10015415
and al, 0xf
shl eax, 0x10
mov ax, word [edi]
add edi, 2
jmp 0x10015422
popal
jmp section.UPX0
Function at 0x4014f0
Capabilities:
Shutdown system

Disassembly:
push ebp
mov ebp, esp
push ebx
sub esp, 0x44
call dword [sym.imp.KERNEL32.dll_GetCurrentProcess]
lea edx, [ebp - 0x1c]
mov dword [esp + 4], 0x28
mov dword [esp + 8], edx
mov dword [esp], eax
call dword [sym.imp.ADVAPI32.dll_OpenProcessToken]
sub esp, 0xc
test eax, eax
jne 0x401523
xor eax, eax
jmp 0x4015b9
lea eax, [ebp - 0x14]
mov dword [esp + 4], str.SeShutdownPrivilege
lea ebx, [ebp - 0x18]
mov dword [esp + 8], eax
xor eax, eax
mov dword [esp], eax
call dword [sym.imp.ADVAPI32.dll_LookupPrivilegeValueA]
sub esp, 0xc
test eax, eax
je 0x40151c
xor eax, eax
mov dword [ebp - 0x18], 1
mov dword [esp + 0x14], eax
mov dword [esp + 0x10], eax
mov dword [esp + 0xc], eax
xor eax, eax
mov dword [esp + 4], eax
mov eax, dword [ebp - 0x1c]
mov dword [ebp - 0xc], 2
mov dword [esp + 8], ebx
mov dword [esp], eax
call dword [sym.imp.ADVAPI32.dll_AdjustTokenPrivileges]
sub esp, 0x18
test eax, eax
je 0x40151c
mov eax, dword [ebp - 0x1c]
mov dword [esp], eax
call dword [sym.imp.KERNEL32.dll_CloseHandle]
cmp dword [ebp + 8], 0
mov eax, 2
push ebx
je 0x40159d
mov eax, 8
xor edx, edx
or eax, 0x14
mov dword [esp + 4], edx
mov dword [esp], eax
call dword [sym.imp.USER32.dll_ExitWindowsEx]
test eax, eax
push ecx
push ecx
setne al
movzx eax, al
mov ebx, dword [ebp - 4]
leave
ret

Function at 0x401830
Capabilities:
Write file on windows

Disassembly:
push ebx
sub esp, 0x18
mov dword [esp], 2
lea ebx, [esp + 0x24]
call fcn.004025b0
mov dword [esp + 8], 0x1b
mov dword [esp + 0xc], eax
mov dword [esp + 4], 1
mov dword [esp], str.Mingw_w64_runtime_failure:_n
call sub.msvcrt.dll_fwrite
mov dword [esp], 2
call fcn.004025b0
mov edx, dword [esp + 0x20]
mov dword [esp + 8], ebx
mov dword [esp], eax
mov dword [esp + 4], edx
call sub.msvcrt.dll_vfprintf
call sub.msvcrt.dll_abort
lea esi, [esi]
Function at 0x401890
Capabilities:
Allocate or change rwx memory

Disassembly:
push edi
push esi
push ebx
mov ebx, eax
sub esp, 0x30
mov esi, dword [0x411068]
test esi, esi
jle 0x4019b0
mov eax, dword [0x41106c]
xor ecx, ecx
add eax, 0xc
mov edx, dword [eax]
cmp ebx, edx
jb 0x4018c4
mov edi, dword [eax + 4]
add edx, dword [edi + 8]
cmp ebx, edx
jb 0x401947
add ecx, 1
add eax, 0x14
cmp ecx, esi
jne 0x4018b0
mov dword [esp], ebx
call fcn.00402290
mov edi, eax
test eax, eax
je 0x4019d7
mov eax, dword [0x41106c]
lea ebx, [esi + esi*4]
shl ebx, 2
add eax, ebx
mov dword [eax + 0x10], edi
mov dword [eax], 0
call fcn.004023d0
mov edx, dword [0x41106c]
add eax, dword [edi + 0xc]
mov dword [edx + ebx + 0xc], eax
lea edx, [esp + 0x14]
mov dword [esp + 8], 0x1c
mov dword [esp + 4], edx
mov dword [esp], eax
call dword [sym.imp.KERNEL32.dll_VirtualQuery]
sub esp, 0xc
test eax, eax
je 0x4019b7
mov eax, dword [esp + 0x28]
lea edx, [eax - 4]
and edx, 0xfffffffb
je 0x401940
lea edx, [eax - 0x40]
and edx, 0xffffffbf
jne 0x401950
add dword [0x411068], 1
add esp, 0x30
pop ebx
pop esi
pop edi
ret
cmp eax, 2
mov edx, 4
mov eax, 0x40
mov ecx, dword [esp + 0x20]
cmove eax, edx
mov edx, dword [esp + 0x14]
add ebx, dword [0x41106c]
mov dword [ebx + 8], ecx
mov dword [ebx + 4], edx
mov dword [esp + 0xc], ebx
mov dword [esp + 8], eax
mov dword [esp + 4], ecx
mov dword [esp], edx
call dword [sym.imp.KERNEL32.dll_VirtualProtect]
sub esp, 0x10
test eax, eax
jne 0x401940
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov dword [esp], str.__VirtualProtect_failed_with_code_0x_x
mov dword [esp + 4], eax
call fcn.00401830
lea esi, cs:[esi]
nop
xor esi, esi
jmp 0x4018ce
mov eax, dword [0x41106c]
mov eax, dword [eax + ebx + 0xc]
mov dword [esp + 8], eax
mov eax, dword [edi + 8]
mov dword [esp], str.__VirtualQuery_failed_for__d_bytes_at_address__p
mov dword [esp + 4], eax
call fcn.00401830
mov dword [esp + 4], ebx
mov dword [esp], str.Address__p_has_no_image_section
call fcn.00401830
lea esi, cs:[esi]
nop

Function at 0x401f00
Capabilities:
Get thread local storage value

Disassembly:
push ebp
push edi
push esi
push ebx
sub esp, 0x1c
mov dword [esp], 0x411084
call dword [sym.imp.KERNEL32.dll_EnterCriticalSection]
mov ebx, dword [0x41107c]
sub esp, 4
test ebx, ebx
je 0x401f55
mov ebp, dword [sym.imp.KERNEL32.dll_TlsGetValue]
mov edi, dword [sym.imp.KERNEL32.dll_GetLastError]
lea esi, [esi]
mov eax, dword [ebx]
mov dword [esp], eax
call ebp
mov esi, eax
sub esp, 4
call edi
test esi, esi
je 0x401f4e
test eax, eax
jne 0x401f4e
mov eax, dword [ebx + 4]
mov dword [esp], esi
call eax
mov ebx, dword [ebx + 8]
test ebx, ebx
jne 0x401f30
mov dword [esp], 0x411084
call dword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
sub esp, 4
add esp, 0x1c
pop ebx
pop esi
pop edi
pop ebp
ret
Function at 0x402290
Capabilities:
Parse pe header

Disassembly:
xor eax, eax
cmp word [0x400000], 0x5a4d
jne 0x4022b5
mov ecx, dword [0x40003c]
cmp dword [ecx + 0x400000], 0x4550
lea edx, [ecx + 0x400000]
je 0x4022c0
ret
cmp word [ecx + 0x400018], 0x10b
jne 0x4022b5
push esi
push ebx
mov ebx, dword [esp + 0xc]
movzx eax, word [ecx + 0x400014]
movzx esi, word [ecx + 0x400006]
sub ebx, 0x400000
lea eax, [edx + eax + 0x18]
test si, si
je 0x402308
xor ecx, ecx
mov edx, dword [eax + 0xc]
cmp ebx, edx
jb 0x4022fe
add edx, dword [eax + 8]
cmp ebx, edx
jb 0x40230a
add ecx, 1
add eax, 0x28
cmp esi, ecx
jne 0x4022f0
xor eax, eax
pop ebx
pop esi
ret

Function at 0x402698
Capabilities:
Check if file exists
Get common file path
Get file attributes

Disassembly:
lea ecx, [esp + 4]
and esp, 0xfffffff0
push dword [ecx - 4]
push ebp
mov ebp, esp
push esi
push ebx
push ecx
sub esp, 0x43c
call fcn.00401660
lea eax, [ebp - 0x42c]
mov dword [esp], 0x40663c
mov dword [esp + 0xc], eax
xor eax, eax
mov dword [esp + 8], eax
mov dword [esp + 4], eax
call sub.SHELL32.dll_SHGetKnownFolderPath
sub esp, 0x10
test eax, eax
je 0x4026f7
mov dword [esp + 0xc], 0x10
mov dword [esp + 8], str.UltraSecurity
mov dword [esp + 4], str.Failed_to_get_Desktop_folder_path
jmp 0x40277a
mov ebx, eax
mov eax, dword [ebp - 0x42c]
lea esi, [ebp - 0x428]
mov dword [esp], esi
mov dword [esp + 4], eax
call sub.msvcrt.dll_wcscpy
mov eax, dword [ebp - 0x42c]
mov dword [esp], eax
call dword [sym.imp.ole32.dll_CoTaskMemFree]
push edx
mov dword [esp], esi
mov dword [esp + 4], str.iamhere
call sub.msvcrt.dll_wcscat
mov dword [esp], 0x2710
call dword [sym.imp.KERNEL32.dll_Sleep]
push ecx
mov dword [esp], esi
call dword [sym.imp.KERNEL32.dll_GetFileAttributesW]
push esi
cmp eax, 0xffffffff
je 0x402752
test al, 0x10
jne 0x40278b
mov dword [esp], 1
call fcn.004014f0
test eax, eax
jne 0x40278b
mov dword [esp + 0xc], 0x10
mov dword [esp + 8], str.UltraSecurity
mov dword [esp + 4], str.Failed_to_power_off
xor eax, eax
or ebx, 0xffffffff
mov dword [esp], eax
call dword [sym.imp.USER32.dll_MessageBoxA]
sub esp, 0x10
lea esp, [ebp - 0xc]
mov eax, ebx
pop ecx
pop ebx
pop esi
pop ebp
lea esp, [ecx - 4]
ret
Function at 0x402dfc
Capabilities:
Accept command line arguments

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffff8
push ebx
xor eax, eax
mov dword [ebp - 8], eax
xor eax, eax
push ebp
push 0x402e55
push dword fs:[eax]
mov dword fs:[eax], esp
xor ebx, ebx
call sub.kernel32.dll_GetCommandLineA
lea edx, [ebp - 8]
call fcn.00402c98
mov dword [ebp - 4], eax
lea edx, [ebp - 8]
mov eax, dword [ebp - 4]
call fcn.00402c98
mov dword [ebp - 4], eax
cmp dword [ebp - 8], 0
je 0x402e3f
inc ebx
jmp 0x402e28
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x402e5c
lea eax, [ebp - 8]
call fcn.00404464
ret

Function at 0x402e64
Capabilities:
Accept command line arguments

Disassembly:
push ebx
push esi
add esp, 0xfffffef4
mov ebx, edx
mov esi, eax
mov eax, ebx
call fcn.00404464
test esi, esi
jne 0x402e9b
push 0x105
lea eax, [esp + 8]
push eax
push 0
call sub.kernel32.dll_GetModuleFileNameA
mov ecx, eax
lea edx, [esp + 4]
mov eax, ebx
call fcn.00404554
jmp 0x402ebc
call sub.kernel32.dll_GetCommandLineA
mov dword [esp], eax
mov edx, ebx
mov eax, dword [esp]
call fcn.00402c98
mov dword [esp], eax
test esi, esi
je 0x402ebc
cmp dword [ebx], 0
je 0x402ebc
dec esi
jmp 0x402ea3
add esp, 0x10c
pop esi
pop ebx
ret

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

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

Function at 0x403564
Capabilities:
Query or enumerate registry value

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

Function at 0x4042e0
Capabilities:
Write file on windows

Disassembly:
push ecx
cmp byte [0x454044], 0
je 0x404341
cmp word [0x454218], 0xd7b2
jne 0x404309
cmp dword [0x454220], 0
jbe 0x404309
mov eax, 0x454214
call dword [0x454230]
push 0
lea eax, [esp + 4]
push eax
push 0x1e
push 0x452070
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 0x404368
push 0xfffffffffffffff5
call sub.kernel32.dll_GetStdHandle
push eax
call sub.kernel32.dll_WriteFile
pop edx
ret
cmp byte [0x452034], 0
jne 0x40435d
push 0
push 0x452068
push 0x452070
push 0
call sub.user32.dll_MessageBoxA
pop edx
ret
Function at 0x406124
Capabilities:
Get geographical location

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffff0
push ebx
xor edx, edx
mov dword [ebp - 0x10], edx
xor edx, edx
push ebp
push 0x40618a
push dword fs:[edx]
mov dword fs:[edx], esp
push 7
lea edx, [ebp - 0xb]
push edx
push 0x1004
push eax
call sub.kernel32.dll_GetLocaleInfoA
lea eax, [ebp - 0x10]
lea edx, [ebp - 0xb]
mov ecx, 7
call fcn.004046d4
mov eax, dword [ebp - 0x10]
lea edx, [ebp - 4]
call fcn.00403128
mov ebx, eax
cmp dword [ebp - 4], 0
je 0x406174
xor ebx, ebx
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x406191
lea eax, [ebp - 0x10]
call fcn.00404464
ret

Function at 0x40b0d4
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 0x40b10d
mov ecx, eax
dec ecx
lea edx, [ebp - 0x100]
mov eax, ebx
call fcn.00404554
jmp 0x40b116
mov eax, ebx
mov edx, esi
call fcn.004044b8
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 4

Function at 0x40b120
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 0x40b141
mov al, byte [esp]
jmp 0x40b143
mov eax, ebx
pop edx
pop edi
pop esi
pop ebx
ret

Function at 0x40b7d8
Capabilities:
Write file on windows

Disassembly:
add esp, 0xfffffbbc
push 0x400
lea ecx, [esp + 0x48]
call 0x40b640
mov eax, dword [0x452f90]
cmp byte [eax], 0
je 0x40b854
mov eax, dword [0x452dd0]
call fcn.00402f78
call fcn.00402bc4
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.004088c4
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 0x40b89c
push 0xfffffffffffffff4
call sub.kernel32.dll_GetStdHandle_1
push eax
call sub.kernel32.dll_WriteFile_1
jmp 0x40b88a
push 0x40
lea eax, [esp + 8]
push eax
mov eax, dword [0x452d84]
mov eax, dword [eax + 4]
push eax
mov eax, dword [0x454660]
call fcn.00405590
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 0x41a9c0
Capabilities:
Allocate or change rwx memory

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffff4
push ebx
push esi
lea ebx, [ebp - 0xc]
mov esi, 0x454880
cmp dword [esi], 0
jne 0x41aa66
push 0x40
push 0x1000
push 0x1000
push 0
call sub.kernel32.dll_VirtualAlloc_1
mov dword [ebp - 8], eax
mov eax, dword [ebp - 8]
mov edx, dword [0x45487c]
mov dword [eax], edx
mov eax, dword [ebp - 8]
lea edx, [eax + 4]
mov eax, 0x4523ec
mov ecx, 2
call fcn.00402c58
mov edx, 0x41a998
mov eax, dword [ebp - 8]
add eax, 5
call fcn.0041a9b8
mov edx, dword [ebp - 8]
mov dword [edx + 6], eax
mov eax, dword [ebp - 8]
add eax, 0xa
mov dword [ebx], eax
mov eax, dword [ebx]
mov byte [eax], 0xe8
mov eax, dword [ebp - 8]
lea edx, [eax + 4]
mov eax, dword [ebx]
call fcn.0041a9b8
mov edx, dword [ebx]
mov dword [edx + 1], eax
mov eax, dword [ebx]
mov edx, dword [esi]
mov dword [eax + 5], edx
mov eax, dword [ebx]
mov dword [esi], eax
add dword [ebx], 0xd
mov eax, dword [ebx]
sub eax, dword [ebp - 8]
cmp eax, 0xffc
jl 0x41aa2d
mov eax, dword [ebp - 8]
mov dword [0x45487c], eax
mov eax, dword [esi]
mov dword [ebp - 4], eax
mov eax, dword [esi]
mov dword [ebx], eax
mov eax, dword [ebx]
mov eax, dword [eax + 5]
mov dword [esi], eax
mov eax, dword [ebx]
mov edx, dword [ebp + 8]
mov dword [eax + 5], edx
mov edx, dword [ebp + 0xc]
mov dword [eax + 9], edx
mov eax, dword [ebp - 4]
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 8

Function at 0x41bc3c
Capabilities:
Encode data using xor

Disassembly:
mov ecx, edx
mov edx, eax
xor eax, eax
rol ax, 5
xor al, byte [edx]
inc edx
dec ecx
jne 0x41bc42
ret

Function at 0x41e0b4
Capabilities:
Get system information on windows

Disassembly:
push ebp
mov ebp, esp
add esp, 0xffffffd4
mov dword [ebp - 8], edx
mov dword [ebp - 4], eax
lea eax, [ebp - 0x2c]
push eax
call sub.kernel32.dll_GetSystemInfo
mov edx, dword [ebp - 4]
mov ecx, dword [ebp - 8]
dec ecx
js 0x41e105
lea eax, [ebp - 0x2c]
cmp word [eax + 0x20], 3
je 0x41e0ec
mov eax, dword [edx + ecx*4]
bswap eax
shr eax, 8
mov dword [edx + ecx*4], eax
dec ecx
jns 0x41e0dc
jmp 0x41e105
push ebx
xor ebx, ebx
mov eax, dword [edx + ecx*4]
mov bh, al
mov bl, ah
shr eax, 0x10
shl ebx, 8
mov bl, al
mov dword [edx + ecx*4], ebx
dec ecx
jns 0x41e0ed
pop ebx
mov esp, ebp
pop ebp
ret