joyce8/EMBER2024-capa huggingface dataset:
Function at 0x10007a3e
Capabilities:
Create thread
Get file size
Read file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x24
mov ecx, dword [ecx + 0x84]
push ebx
push esi
xor ebx, ebx
push edi
push ebx
push 0x80
push 4
push ebx
push 1
push SysReAllocString
push ecx
call dword [sym.imp.KERNEL32.dll_CreateFileA]
cmp eax, 0xffffffff
mov dword [ebp - 4], eax
je 0x10007be1
push ebx
push eax
call dword [sym.imp.KERNEL32.dll_GetFileSize]
mov esi, eax
lea eax, [esi + 2]
push eax
call fcn.1000f5d0
pop ecx
mov edi, eax
lea eax, [ebp - 0x10]
push ebx
push eax
push esi
push edi
push dword [ebp - 4]
call dword [sym.imp.KERNEL32.dll_ReadFile]
mov ecx, dword [ebp + 8]
push edi
mov byte [edi + esi], bl
call fcn.10001576
push edi
call fcn.1000f588
pop ecx
push dword [ebp - 4]
call dword [sym.imp.KERNEL32.dll_CloseHandle]
cmp byte [0x1001adcd], bl
je 0x10007bce
cmp byte [0x10017133], bl
jne 0x10007bce
lea ecx, [ebp - 0x1c]
call fcn.10001000
mov ecx, dword [ebp + 8]
push 0x2c
call fcn.10001476
cmp eax, 0xffffffff
mov dword [ebp - 0xc], eax
jle 0x10007bc6
mov ecx, dword [ebp + 8]
push eax
lea eax, [ebp - 8]
push ebx
push eax
call fcn.10001766
push eax
lea ecx, [ebp - 0x1c]
call fcn.10001553
lea ecx, [ebp - 8]
call fcn.10001171
push 0x3a
lea ecx, [ebp - 0x1c]
call fcn.10001476
mov esi, eax
cmp esi, 0xffffffff
jle 0x10007bc6
push esi
lea eax, [ebp - 8]
push ebx
push eax
lea ecx, [ebp - 0x1c]
call fcn.10001766
push dword [eax + 4]
call fcn.100106e3
pop ecx
mov edi, eax
lea ecx, [ebp - 8]
call fcn.10001171
inc esi
lea eax, [ebp - 0x24]
push esi
push eax
lea ecx, [ebp - 0x1c]
call fcn.10001742
push dword [eax + 4]
call fcn.100106e3
pop ecx
mov dword [ebp - 4], eax
lea ecx, [ebp - 0x24]
call fcn.10001171
mov eax, dword [0x10019e20]
push 0x64
xor edx, edx
pop ecx
div ecx
cmp edi, edx
jle 0x10007c08
push edx
call dword [sym.imp.KERNEL32.dll_Sleep]
mov esi, dword [ebp + 8]
push 0x7c
mov ecx, esi
call fcn.10001476
push 0x64
mov ecx, eax
mov eax, dword [0x10019e20]
xor edx, edx
pop edi
div edi
cmp dword [ebp - 4], edx
jle 0x10007be8
mov eax, dword [ebp - 0xc]
mov byte [0x10017131], 1
sub ecx, eax
dec ecx
inc eax
push ecx
push eax
lea eax, [ebp - 0x24]
mov ecx, esi
push eax
call fcn.10001766
push eax
mov ecx, esi
call fcn.10001553
lea ecx, [ebp - 0x24]
call fcn.10001171
lea ecx, [ebp - 0x1c]
call fcn.10001171
lea eax, [ebp - 0x14]
push eax
push ebx
push ebx
push 0x100034db
push ebx
push ebx
call dword [sym.imp.KERNEL32.dll_CreateThread]
pop edi
pop esi
pop ebx
leave
ret 4
inc ecx
lea eax, [ebp - 0x24]
push ecx
push eax
mov ecx, esi
mov byte [0x10017131], bl
call fcn.10001742
push eax
mov ecx, esi
call fcn.10001553
lea ecx, [ebp - 0x24]
jmp 0x10007bc1
mov ecx, dword [ebp + 8]
mov byte [0x1001adcd], bl
call fcn.10001392
lea ecx, [ebp - 0x1c]
call fcn.10001171
jmp 0x10007be1
Function at 0x10008941
Capabilities:
Get disk information

Disassembly:
push ebx
push ebp
push esi
push edi
mov edi, dword [sym.imp.KERNEL32.dll_GetLogicalDriveStringsA]
push 0
mov ebp, ecx
push 0
call edi
mov ebx, eax
lea eax, [ebx + 1]
push eax
call fcn.10010580
pop ecx
mov esi, eax
push esi
push ebx
call edi
push esi
call fcn.1000f480
pop ecx
mov edi, eax
test edi, edi
jbe 0x10008995
lea esi, [esi + edi + 1]
push esi
call fcn.1000f480
pop ecx
mov edi, eax
push esi
call dword [sym.imp.KERNEL32.dll_GetDriveTypeA]
cmp eax, 2
jne 0x1000896e
push esi
mov ecx, ebp
call fcn.1000899a
jmp 0x1000896e
pop edi
pop esi
pop ebp
pop ebx
ret
Function at 0x10009fc6
Capabilities:
Check internet connectivity via wininet

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x338
push esi
push edi
lea ecx, [ebp - 0x234]
call fcn.1000f0cb
lea ecx, [ebp - 0x10]
call fcn.10001000
lea ecx, [ebp - 8]
call fcn.10001000
push 1
pop esi
cmp dword [ebp + 0xc], esi
jne 0x1000a0fc
lea eax, [ebp - 0x338]
push 0x104
xor edi, edi
push eax
push edi
call dword [sym.imp.KERNEL32.dll_GetModuleFileNameA]
lea eax, [ebp - 0x338]
lea ecx, [ebp - 8]
push eax
call fcn.10001576
lea ecx, [ebp - 8]
call fcn.10001401
push str.ClassesCLSIDBF50AC63_19DA_487E_AD4A_0B452D823B59_
mov ecx, 0x1001ae58
call fcn.1000171e
push str.explorer.exe
lea ecx, [ebp - 8]
call fcn.10001504
cmp eax, 0xffffffff
jle 0x1000a070
push str.liprip.dll
call dword [sym.imp.KERNEL32.dll_LoadLibraryA]
push edi
call fcn.10009196
test eax, eax
pop ecx
je 0x1000a0c7
lea eax, [ebp + 0xc]
push edi
push eax
call dword [sym.imp.WININET.dll_InternetGetConnectedState]
test eax, eax
je 0x1000a0c7
mov dword [0x1001af10], esi
push str.svchost.exe
lea ecx, [ebp - 8]
call fcn.10001504
cmp eax, 0xffffffff
jle 0x1000a0e9
push dword [ebp + 8]
mov eax, 0x1001ae70
mov dword [0x1001aee0], 0x10018cc0
mov dword [0x1001af24], eax
push 0x10018c78
push eax
mov dword [0x1001ae70], 0x84
mov dword [0x1001aed4], 0x300
call dword [sym.imp.ATL.DLL_AtlModuleInit]
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.dll_DisableThreadLibraryCalls]
jmp 0x1000a16f
lea ecx, [ebp - 8]
call fcn.10001171
lea ecx, [ebp - 0x10]
call fcn.10001171
lea ecx, [ebp - 0x234]
call fcn.1000f10c
xor eax, eax
jmp 0x1000a18c
push esi
call fcn.10009196
pop ecx
mov dword [0x1001af14], eax
call fcn.10009c22
jmp 0x1000a082
xor edi, edi
cmp dword [ebp + 0xc], edi
jne 0x1000a16f
push 0x32
mov dword [0x1001af04], esi
call dword [sym.imp.KERNEL32.dll_Sleep]
mov eax, dword [0x1001aff0]
cmp eax, edi
je 0x1000a164
cmp dword [0x1001af10], edi
jne 0x1000a164
mov dword [ebp + 8], edi
push dword [eax + 4]
call dword [sym.imp.USER32.dll_DestroyWindow]
push dword [0x1001ae5c]
lea ecx, [ebp - 0x234]
call fcn.1000f14e
push str.DWORD
push str.BLOD
lea ecx, [ebp - 0x234]
call fcn.1000f12f
lea eax, [ebp + 8]
push edi
push eax
lea ecx, [ebp - 0x234]
call fcn.1000f2db
push 0x1001ae70
call dword [sym.imp.ATL.DLL_AtlModuleTerm]
lea ecx, [ebp - 8]
call fcn.10001171
lea ecx, [ebp - 0x10]
call fcn.10001171
lea ecx, [ebp - 0x234]
call fcn.1000f10c
mov eax, esi
pop edi
pop esi
leave
ret 0xc
Function at 0x1000f227
Capabilities:
Query or enumerate registry value
Set registry value

Disassembly:
push ebp
mov ebp, esp
push ecx
push ecx
push ebx
push esi
mov esi, ecx
push edi
push str.CString
mov dword [ebp - 8], 0x200
lea ecx, [esi + 0x14]
mov dword [ebp - 4], 1
call fcn.10001860
test eax, eax
jne 0x1000f286
mov eax, dword [esi + 8]
lea edi, [esi + 0x1c]
push edi
push eax
push dword [esi + 0x20]
call dword [sym.imp.ADVAPI32.dll_RegCreateKeyA]
test eax, eax
jne 0x1000f286
xor ecx, ecx
cmp dword [ebp + 0xc], ecx
je 0x1000f2a8
mov eax, dword [esi + 0x10]
lea edx, [ebp - 8]
lea ebx, [esi + 0x24]
push edx
push ebx
push ecx
push ecx
push eax
push dword [edi]
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
test eax, eax
je 0x1000f29d
and dword [ebp - 4], 0
push dword [esi + 0x1c]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov eax, dword [ebp - 4]
pop edi
pop esi
pop ebx
leave
ret 0xc
mov ecx, dword [ebp + 8]
push ebx
call fcn.10001576
jmp 0x1000f28a
mov ecx, dword [ebp + 8]
mov eax, dword [esi + 0x10]
mov dword [ebp + 8], eax
mov ebx, dword [ecx + 4]
call fcn.100013e2
inc eax
push eax
xor eax, eax
cmp dword [ebp + 0x10], eax
push ebx
sete al
inc eax
push eax
push 0
push dword [ebp + 8]
push dword [edi]
call dword [sym.imp.ADVAPI32.dll_RegSetValueExA]
test eax, eax
je 0x1000f28a
xor eax, eax
jmp 0x1000f296

Function at 0x1000f2db
Capabilities:
Query or enumerate registry value
Set registry value

Disassembly:
push ebp
mov ebp, esp
push ecx
push ecx
push ebx
push esi
mov esi, ecx
push edi
push str.DWORD
mov dword [ebp - 8], 0x64
lea ecx, [esi + 0x14]
mov dword [ebp - 4], 1
call fcn.10001860
test eax, eax
je 0x1000f31b
and dword [ebp - 4], 0
push dword [esi + 0x1c]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov eax, dword [ebp - 4]
pop edi
pop esi
pop ebx
leave
ret 8
mov eax, dword [esi + 8]
lea edi, [esi + 0x1c]
push edi
push eax
push dword [esi + 0x20]
call dword [sym.imp.ADVAPI32.dll_RegCreateKeyA]
test eax, eax
jne 0x1000f304
mov eax, dword [esi + 0x10]
xor ebx, ebx
cmp dword [ebp + 0xc], ebx
je 0x1000f355
lea ecx, [ebp - 8]
push ecx
push dword [ebp + 8]
push ebx
push ebx
push eax
push dword [edi]
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
test eax, eax
je 0x1000f308
mov dword [ebp - 4], ebx
jmp 0x1000f308
push 4
push dword [ebp + 8]
push 4
push ebx
push eax
push dword [edi]
call dword [sym.imp.ADVAPI32.dll_RegSetValueExA]
test eax, eax
je 0x1000f308
xor eax, eax
jmp 0x1000f314
Function at 0x10012d51
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x1a4
mov edx, dword [ebp + 8]
xor ecx, ecx
mov eax, 0x10019740
cmp edx, dword [eax]
je 0x10012d73
add eax, 8
inc ecx
cmp eax, 0x100197d0
jl 0x10012d64
push esi
mov esi, ecx
shl esi, 3
cmp edx, dword [esi + 0x10019740]
jne 0x10012ea1
mov eax, dword [0x1001b010]
cmp eax, 1
je 0x10012e7b
test eax, eax
jne 0x10012da4
cmp dword [0x1001b014], 1
je 0x10012e7b
cmp edx, 0xfc
je 0x10012ea1
lea eax, [ebp - 0x1a4]
push 0x104
push eax
push 0
call dword [sym.imp.KERNEL32.dll_GetModuleFileNameA]
test eax, eax
jne 0x10012ddb
lea eax, [ebp - 0x1a4]
push str._program_name_unknown_
push eax
call fcn.10010440
pop ecx
pop ecx
lea eax, [ebp - 0x1a4]
push edi
push eax
lea edi, [ebp - 0x1a4]
call fcn.1000f480
inc eax
pop ecx
cmp eax, 0x3c
jbe 0x10012e1e
lea eax, [ebp - 0x1a4]
push eax
call fcn.1000f480
mov edi, eax
lea eax, [ebp - 0x1a4]
sub eax, 0x3b
push 3
add edi, eax
push 0x1001570c
push edi
call fcn.1000f380
add esp, 0x10
lea eax, [ebp - 0xa0]
push str.Runtime_Error__n_nProgram:
push eax
call fcn.10010440
lea eax, [ebp - 0xa0]
push edi
push eax
call fcn.10010450
lea eax, [ebp - 0xa0]
push 0x100156ec
push eax
call fcn.10010450
push dword [esi + 0x10019744]
lea eax, [ebp - 0xa0]
push eax
call fcn.10010450
push 0x12010
lea eax, [ebp - 0xa0]
push str.Microsoft_Visual_C_Runtime_Library
push eax
call fcn.10013cc6
add esp, 0x2c
pop edi
jmp 0x10012ea1
lea eax, [ebp + 8]
lea esi, [esi + 0x10019744]
push 0
push eax
push dword [esi]
call fcn.1000f480
pop ecx
push eax
push dword [esi]
push 0xfffffffffffffff4
call dword [sym.imp.KERNEL32.dll_GetStdHandle]
push eax
call dword [sym.imp.KERNEL32.dll_WriteFile]
pop esi
leave
ret
Function at 0x401006
Capabilities:
Terminate process

Disassembly:
cmp ecx, dword [0x423004]
jne 0x401010
repz ret
jmp fcn.004016df

Function at 0x4065a8
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.00402408
and dword [ebp - 4], 0
cmp dword [0x424fdc], 0
mov ebx, eax
jne 0x406659
push str.USER32.DLL
call dword [sym.imp.KERNEL32.dll_LoadLibraryA]
mov edi, eax
test edi, edi
je 0x40670a
mov esi, dword [sym.imp.KERNEL32.dll_GetProcAddress]
push str.MessageBoxA
push edi
call esi
test eax, eax
je 0x40670a
push eax
call fcn.00402396
mov dword [esp], str.GetActiveWindow
push edi
mov dword [0x424fdc], eax
call esi
push eax
call fcn.00402396
mov dword [esp], str.GetLastActivePopup
push edi
mov dword [0x424fe0], eax
call esi
push eax
call fcn.00402396
mov dword [esp], str.GetUserObjectInformationA
push edi
mov dword [0x424fe4], eax
call esi
push eax
call fcn.00402396
pop ecx
mov dword [0x424fec], eax
test eax, eax
je 0x406659
push str.GetProcessWindowStation
push edi
call esi
push eax
call fcn.00402396
pop ecx
mov dword [0x424fe8], eax
mov eax, dword [0x424fe8]
cmp eax, ebx
je 0x4066b1
cmp dword [0x424fec], ebx
je 0x4066b1
push eax
call fcn.00402411
push dword [0x424fec]
mov esi, eax
call fcn.00402411
pop ecx
pop ecx
mov edi, eax
test esi, esi
je 0x4066b1
test edi, edi
je 0x4066b1
call esi
test eax, eax
je 0x4066a8
lea ecx, [ebp - 8]
push ecx
push 0xc
lea ecx, [ebp - 0x14]
push ecx
push 1
push eax
call edi
test eax, eax
je 0x4066a8
test byte [ebp - 0xc], 1
jne 0x4066b1
or dword [ebp + 0x10], 0x200000
jmp 0x4066ea
mov eax, dword [0x424fe0]
cmp eax, ebx
je 0x4066ea
push eax
call fcn.00402411
pop ecx
test eax, eax
je 0x4066ea
call eax
mov dword [ebp - 4], eax
test eax, eax
je 0x4066ea
mov eax, dword [0x424fe4]
cmp eax, ebx
je 0x4066ea
push eax
call fcn.00402411
pop ecx
test eax, eax
je 0x4066ea
push dword [ebp - 4]
call eax
mov dword [ebp - 4], eax
push dword [0x424fdc]
call fcn.00402411
pop ecx
test eax, eax
je 0x40670a
push dword [ebp + 0x10]
push dword [ebp + 0xc]
push dword [ebp + 8]
push dword [ebp - 4]
call eax
jmp 0x40670c
xor eax, eax
pop edi
pop esi
pop ebx
leave
ret

Function at 0x41be30
Capabilities:
Encode data using xor

Disassembly:
sub esp, 8
push ebp
mov ebp, dword [esp + 0x10]
push edi
cmp ebp, 0x19f
jne 0x41be51
push 0
push 0
push 0
push 0
push 0
call dword [sym.imp.KERNEL32.dll_VirtualAllocEx]
xor edi, edi
test ebp, ebp
jle 0x41bea6
push esi
jmp 0x41be60
lea esi, [esp + 0x10]
mov dword [esp + 0xc], 5
mov dword [esp + 0x10], 0
call fcn.0041be20
mov eax, dword [esp + 0x10]
add eax, 0x46
mov dword [esp + 0xc], eax
sub dword [esp + 0xc], 0x46
movsx eax, byte [edi + ebx]
mov dword [esp + 0x18], eax
mov eax, dword [esp + 0xc]
xor dword [esp + 0x18], eax
mov cl, byte [esp + 0x18]
mov byte [edi + ebx], cl
inc edi
cmp edi, ebp
jl 0x41be60
pop esi
pop edi
cmp ebp, 0x2d
pop ebp
jne 0x41bec1
mov dword [0x2b231f8], 0xa62e7790
mov dword [0x2b231fc], 0xffffffff
add esp, 8
ret
Function at 0x401000
Capabilities:
Terminate process

Disassembly:
cmp ecx, dword [0x43d004]
jne 0x40100a
repz ret
jmp fcn.004018f4

Function at 0x4067a8
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.0040261d
and dword [ebp - 4], 0
cmp dword [0x43ecdc], 0
mov ebx, eax
jne 0x406859
push str.USER32.DLL
call dword [sym.imp.KERNEL32.dll_LoadLibraryA]
mov edi, eax
test edi, edi
je 0x40690a
mov esi, dword [sym.imp.KERNEL32.dll_GetProcAddress]
push str.MessageBoxA
push edi
call esi
test eax, eax
je 0x40690a
push eax
call fcn.004025ab
mov dword [esp], str.GetActiveWindow
push edi
mov dword [0x43ecdc], eax
call esi
push eax
call fcn.004025ab
mov dword [esp], str.GetLastActivePopup
push edi
mov dword [0x43ece0], eax
call esi
push eax
call fcn.004025ab
mov dword [esp], str.GetUserObjectInformationA
push edi
mov dword [0x43ece4], eax
call esi
push eax
call fcn.004025ab
pop ecx
mov dword [0x43ecec], eax
test eax, eax
je 0x406859
push str.GetProcessWindowStation
push edi
call esi
push eax
call fcn.004025ab
pop ecx
mov dword [0x43ece8], eax
mov eax, dword [0x43ece8]
cmp eax, ebx
je 0x4068b1
cmp dword [0x43ecec], ebx
je 0x4068b1
push eax
call fcn.00402626
push dword [0x43ecec]
mov esi, eax
call fcn.00402626
pop ecx
pop ecx
mov edi, eax
test esi, esi
je 0x4068b1
test edi, edi
je 0x4068b1
call esi
test eax, eax
je 0x4068a8
lea ecx, [ebp - 8]
push ecx
push 0xc
lea ecx, [ebp - 0x14]
push ecx
push 1
push eax
call edi
test eax, eax
je 0x4068a8
test byte [ebp - 0xc], 1
jne 0x4068b1
or dword [ebp + 0x10], 0x200000
jmp 0x4068ea
mov eax, dword [0x43ece0]
cmp eax, ebx
je 0x4068ea
push eax
call fcn.00402626
pop ecx
test eax, eax
je 0x4068ea
call eax
mov dword [ebp - 4], eax
test eax, eax
je 0x4068ea
mov eax, dword [0x43ece4]
cmp eax, ebx
je 0x4068ea
push eax
call fcn.00402626
pop ecx
test eax, eax
je 0x4068ea
push dword [ebp - 4]
call eax
mov dword [ebp - 4], eax
push dword [0x43ecdc]
call fcn.00402626
pop ecx
test eax, eax
je 0x40690a
push dword [ebp + 0x10]
push dword [ebp + 0xc]
push dword [ebp + 8]
push dword [ebp - 4]
call eax
jmp 0x40690c
xor eax, eax
pop edi
pop esi
pop ebx
leave
ret

Function at 0x439a90
Capabilities:
Encode data using xor

Disassembly:
sub esp, 0xc
cmp edi, 0x19f
jne 0x439aa9
push 0
push 0
push 0
push 0
call dword [sym.imp.KERNEL32.dll_VirtualAlloc]
xor edx, edx
test edi, edi
jle 0x439af1
nop
lea ecx, [esp + 8]
mov dword [esp], 5
mov dword [esp + 8], 0
call fcn.00439a80
mov eax, dword [esp + 8]
add eax, 0x46
mov dword [esp], eax
sub dword [esp], 0x46
movsx eax, byte [edx + esi]
mov dword [esp + 4], eax
mov eax, dword [esp]
xor dword [esp + 4], eax
mov cl, byte [esp + 4]
mov byte [edx + esi], cl
inc edx
cmp edx, edi
jl 0x439ab0
cmp edi, 0x2d
jne 0x439b0a
mov dword [0x2b3cef8], 0xa62e7790
mov dword [0x2b3cefc], 0xffffffff
add esp, 0xc
ret
Function at 0x403320
Capabilities:
Accept command line arguments

Disassembly:
push ebx
push esi
push edi
add esp, 0xfffffef8
mov ebx, edx
mov esi, eax
mov eax, ebx
call fcn.00404c9c
test esi, esi
jne 0x403356
push 0x105
lea eax, [esp + 4]
push eax
push 0
call sub.kernel32.dll_GetModuleFileNameA
mov ecx, eax
mov edx, esp
mov eax, ebx
call fcn.00404d8c
jmp 0x403374
call sub.kernel32.dll_GetCommandLineA
mov edi, eax
mov edx, ebx
mov eax, edi
call fcn.00403224
mov edi, eax
test esi, esi
je 0x403374
cmp dword [ebx], 0
je 0x403374
dec esi
jmp 0x40335d
add esp, 0x108
pop edi
pop esi
pop ebx
ret

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

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

Function at 0x403c44
Capabilities:
Query or enumerate registry value

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

Function at 0x404b1c
Capabilities:
Write file on windows

Disassembly:
push ecx
cmp byte [0x48d04c], 0
je 0x404b7d
cmp word [0x48d220], 0xd7b2
jne 0x404b45
cmp dword [0x48d228], 0
jbe 0x404b45
mov eax, 0x48d21c
call dword [0x48d238]
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 0x404ba4
push 0xfffffffffffffff5
call sub.kernel32.dll_GetStdHandle
push eax
call sub.kernel32.dll_WriteFile
pop edx
ret
cmp byte [0x48a030], 0
jne 0x404b99
push 0
push str.Error
push str.Runtime_error_____at_00000000
push 0
call sub.user32.dll_MessageBoxA
pop edx
ret
Function at 0x406308
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 0x406538
push 0x80000001
call sub.advapi32.dll_RegOpenKeyExA
test eax, eax
je 0x40638b
lea eax, [ebp - 8]
push eax
push 0xf0019
push 0
push 0x406538
push 0x80000002
call sub.advapi32.dll_RegOpenKeyExA
test eax, eax
je 0x40638b
lea eax, [ebp - 8]
push eax
push 0xf0019
push 0
push 0x406554
push 0x80000001
call sub.advapi32.dll_RegOpenKeyExA
test eax, eax
jne 0x406414
xor eax, eax
push ebp
push 0x40640d
push dword fs:[eax]
mov dword fs:[eax], esp
mov dword [ebp - 0x18], 5
lea eax, [ebp - 0x11d]
mov edx, 0x105
call fcn.00406144
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 0x4063f2
lea eax, [ebp - 0x18]
push eax
lea eax, [ebp - 0x12]
push eax
push 0
push 0
push 0x406574
mov eax, dword [ebp - 8]
push eax
call sub.advapi32.dll_RegQueryValueExA
test eax, eax
je 0x4063f2
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 0x406414
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 0x40652e
cmp byte [ebp - 0xd], 0
jne 0x40645b
cmp byte [ebp - 0x12], 0
je 0x40652e
lea eax, [ebp - 0x11d]
push eax
call sub.kernel32.dll_lstrlenA
mov ebx, eax
lea eax, [ebp - 0x11d]
add ebx, eax
jmp 0x406474
dec ebx
cmp byte [ebx], 0x2e
je 0x406483
lea eax, [ebp - 0x11d]
cmp ebx, eax
jne 0x406473
lea eax, [ebp - 0x11d]
cmp ebx, eax
je 0x40652e
inc ebx
cmp byte [ebp - 0x12], 0
je 0x4064c0
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 0x40652e
cmp byte [ebp - 0xd], 0
je 0x40652e
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 0x40652e
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 0x4091f8
Capabilities:
Encrypt data using rc4 prga

Disassembly:
cmp eax, edx
je 0x40924a
test eax, edx
je 0x40924d
movzx ecx, byte [edx]
cmp cl, byte [eax]
je 0x40920d
movzx eax, byte [eax]
sub eax, ecx
ret
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]
sub eax, ecx
sub edx, ecx
mov ebx, dword [ecx + eax]
xor ebx, dword [ecx + edx]
jne 0x409233
add ecx, 4
js 0x409223
pop eax
pop ebx
ret
bsf ebx, ebx
shr ebx, 3
add ecx, ebx
jns 0x409230
movzx eax, byte [ecx + eax]
movzx edx, byte [ecx + edx]
sub eax, edx
pop ebx
pop ebx
ret
xor eax, eax
ret
test eax, eax
je 0x409259
test edx, edx
jne 0x409200
mov eax, dword [eax - 4]
ret
sub eax, dword [edx - 4]
ret

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

Disassembly:
push ebx
mov ebx, eax
mov eax, ebx
call fcn.0040512c
push eax
call sub.kernel32.dll_GetFileAttributesA
cmp eax, 0xffffffff
je 0x409ad9
test al, 0x10
je 0x409add
xor eax, eax
pop ebx
ret
mov al, 1
pop ebx
ret

Function at 0x40c680
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 0x40c6b9
mov ecx, eax
dec ecx
lea edx, [ebp - 0x100]
mov eax, ebx
call fcn.00404d8c
jmp 0x40c6c2
mov eax, ebx
mov edx, esi
call fcn.00404cf0
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 4

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

Function at 0x40cd80
Capabilities:
Write file on windows

Disassembly:
add esp, 0xfffffbbc
push 0x400
lea ecx, [esp + 0x48]
call 0x40cbf8
mov eax, dword [0x48c71c]
cmp byte [eax], 0
je 0x40cdfc
mov eax, dword [0x48c504]
call fcn.0040347c
call fcn.00403090
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.00409d8c
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 0x40ce44
push 0xfffffffffffffff4
call sub.kernel32.dll_GetStdHandle_1
push eax
call sub.kernel32.dll_WriteFile_1
jmp 0x40ce32
push 0x40
lea eax, [esp + 8]
push eax
mov eax, dword [0x48c4ac]
mov eax, dword [eax + 4]
push eax
mov eax, dword [0x48f7f8]
call fcn.004060ec
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