joyce8/EMBER2024-capa huggingface dataset:
Function at 0x100224fd
Capabilities:
Get geographical location

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x18
mov eax, dword [0x10034040]
xor eax, ebp
mov dword [ebp - 4], eax
mov eax, dword [ebp + 0xc]
push ebx
mov ebx, dword [ebp + 0x10]
push esi
mov esi, dword [ebp + 8]
push edi
mov dword [ebp - 0x18], eax
call fcn.100195c4
add eax, 0x50
lea edi, [ebp - 0x10]
mov dword [ebp - 0x14], eax
xor eax, eax
stosd dword es:[edi], eax
stosd dword es:[edi], eax
stosd dword es:[edi], eax
call fcn.100195c4
lea ecx, [ebp - 0x10]
xor edx, edx
mov dword [eax + 0x34c], ecx
lea ecx, [esi + 0x80]
mov eax, dword [ebp - 0x14]
mov dword [eax], esi
lea edi, [eax + 4]
mov dword [edi], ecx
test ecx, ecx
je 0x10022574
cmp word [ecx], dx
je 0x10022574
mov eax, dword [0x1002f684]
push edi
dec eax
push eax
push 0x1002f570
call fcn.1002249c
mov eax, dword [ebp - 0x14]
add esp, 0xc
xor edx, edx
mov dword [ebp - 0x10], edx
mov eax, dword [eax]
test eax, eax
je 0x100225e7
cmp word [eax], dx
je 0x100225e7
mov eax, dword [edi]
test eax, eax
je 0x10022598
cmp word [eax], dx
je 0x10022598
lea eax, [ebp - 0x10]
push eax
call fcn.10021e7f
jmp 0x100225a1
lea eax, [ebp - 0x10]
push eax
call fcn.10021f1a
cmp dword [ebp - 0x10], 0
pop ecx
jne 0x10022611
mov eax, dword [0x1002f56c]
push dword [ebp - 0x14]
dec eax
push eax
push 0x1002f260
call fcn.1002249c
add esp, 0xc
test al, al
je 0x10022611
mov eax, dword [edi]
xor edi, edi
test eax, eax
je 0x100225dc
cmp word [eax], di
je 0x100225dc
lea eax, [ebp - 0x10]
push eax
call fcn.10021e7f
pop ecx
jmp 0x10022613
lea eax, [ebp - 0x10]
push eax
call fcn.10021f1a
jmp 0x100225d9
mov eax, dword [edi]
test eax, eax
je 0x100225fe
cmp word [eax], dx
je 0x100225fe
lea eax, [ebp - 0x10]
push eax
call fcn.10021e34
pop ecx
jmp 0x10022611
mov dword [ebp - 0x10], 0x104
call dword [sym.imp.KERNEL32.dll_GetUserDefaultLCID]
mov dword [ebp - 8], eax
mov dword [ebp - 0xc], eax
xor edi, edi
cmp dword [ebp - 0x10], 0
je 0x100226dc
lea eax, [ebp - 0x10]
push eax
lea eax, [esi + 0x100]
neg esi
sbb esi, esi
and esi, eax
push esi
call fcn.10022321
mov esi, eax
pop ecx
pop ecx
test esi, esi
je 0x100226dc
movzx ecx, si
push ecx
call dword [sym.imp.KERNEL32.dll_IsValidCodePage]
test eax, eax
je 0x100226dc
push 1
push dword [ebp - 0xc]
call dword [sym.imp.KERNEL32.dll_IsValidLocale]
test eax, eax
je 0x100226dc
mov eax, dword [ebp - 0x18]
test eax, eax
je 0x10022669
mov dword [eax], esi
mov eax, dword [ebp - 0x14]
push edi
push 0x55
add eax, 0x250
push eax
push dword [ebp - 0xc]
call fcn.10018b28
test ebx, ebx
je 0x100226d7
push edi
push 0x55
lea eax, [ebx + 0x120]
push eax
push dword [ebp - 0xc]
call fcn.10018b28
push 0x40
push ebx
push 0x1001
push dword [ebp - 0xc]
call dword [sym.imp.KERNEL32.dll_GetLocaleInfoW]
test eax, eax
je 0x100226dc
push 0x40
lea eax, [ebx + 0x80]
push eax
push 0x1002
push dword [ebp - 8]
call dword [sym.imp.KERNEL32.dll_GetLocaleInfoW]
test eax, eax
je 0x100226dc
push 0xa
push 0x10
lea ecx, [ebx + 0x100]
push ecx
push esi
call fcn.100251d7
add esp, 0x10
xor eax, eax
inc eax
jmp 0x100226de
xor eax, eax
mov ecx, dword [ebp - 4]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.1000e820
leave
ret
Function at 0x10026e70
Capabilities:
Parse pe header

Disassembly:
push ebp
mov ebp, esp
mov eax, dword [ebp + 8]
mov ecx, 0x5a4d
cmp word [eax], cx
jne 0x10026e9d
mov ecx, dword [eax + 0x3c]
add ecx, eax
cmp dword [ecx], 0x4550
jne 0x10026e9d
mov edx, 0x10b
xor eax, eax
cmp word [ecx + 0x18], dx
sete al
pop ebp
ret
xor eax, eax
pop ebp
ret
Function at 0x403042
Capabilities:
Accept command line arguments

Disassembly:
push ecx
push ecx
push ebx
push ebp
push esi
push edi
push dword [0x405f20]
call fcn.004037a8
mov ebp, eax
or ebx, 0xffffffff
xor eax, eax
mov esi, eax
call dword [sym.imp.KERNEL32.dll_GetCommandLineW]
mov edi, dword [esp + 0x1c]
movzx edx, word [eax]
test dx, dx
je 0x403142
mov ecx, dword [esp + 0x1c]
mov dword [esp + 0x10], 0x20
mov dword [esp + 0x14], 0x22
cmp dx, word [esp + 0x10]
jne 0x403098
push 0x20
pop edx
add eax, 2
cmp word [eax], dx
je 0x403090
movzx edx, word [eax]
mov dword [esp + 0x1c], 1
cmp dx, word [esp + 0x14]
jne 0x4030d8
add eax, 2
mov esi, eax
movzx ecx, word [eax]
test cx, cx
je 0x40311a
push 0x22
pop edx
cmp cx, dx
je 0x4030ca
add eax, 2
movzx ecx, word [eax]
test cx, cx
jne 0x4030ba
xor ecx, ecx
cmp word [eax], cx
je 0x40311a
mov ecx, eax
add eax, 2
jmp 0x40311c
test dx, dx
je 0x403122
push 0x20
mov esi, eax
pop ecx
cmp dx, cx
je 0x4030ca
add eax, 2
push 0x22
pop edx
cmp word [eax], dx
jne 0x403110
add eax, 2
movzx ecx, word [eax]
test cx, cx
je 0x40311a
cmp cx, dx
je 0x40310d
add eax, 2
movzx ecx, word [eax]
test cx, cx
jne 0x4030fd
push 0x20
pop ecx
movzx edx, word [eax]
test dx, dx
jne 0x4030e2
jmp 0x4030ca
mov ecx, eax
mov edx, dword [esp + 0x1c]
jmp 0x403124
xor edx, edx
cmp dword [ebp], ebx
jne 0x40312d
test edi, edi
jne 0x40314a
test edx, edx
je 0x403132
inc ebx
xor edx, edx
mov esi, edx
movzx edx, word [eax]
test dx, dx
jne 0x403086
test edi, edi
jne 0x40315b
mov eax, ebx
jmp 0x40315f
test esi, esi
je 0x40315b
sub ecx, esi
mov eax, esi
sar ecx, 1
mov dword [edi], ecx
inc dword [ebp]
jmp 0x40315f
xor ecx, ecx
mov dword [edi], ecx
pop edi
pop esi
pop ebp
pop ebx
pop ecx
pop ecx
ret
Function at 0x40362b
Capabilities:
Get disk information
Get file attributes

Disassembly:
mov eax, dword [esp + 4]
sub esp, 0x45c
push esi
or esi, 0xffffffff
push edi
mov edi, esi
test eax, eax
je 0x403773
xor ecx, ecx
cmp word [eax], cx
je 0x403773
push 0x104
push eax
lea eax, [esp + 0x10]
push eax
call sub.MSVCRT.dll_wcsncpy
xor eax, eax
mov word [esp + 0x21c], ax
lea eax, [esp + 0x14]
push eax
call sub.MSVCRT.dll_wcslen
add esp, 0x10
lea ecx, [esp + eax*2 + 6]
cmp eax, 2
je 0x403684
cmp eax, 3
jne 0x4036be
cmp word [esp + 0xa], 0x3a
jne 0x4036be
cmp eax, 2
jne 0x4036a2
lea eax, [esp + 8]
push 0x404020
push eax
call sub.MSVCRT.dll_wcscat
pop ecx
pop ecx
lea eax, [esp + 8]
push eax
call dword [sym.imp.KERNEL32.dll_GetDriveTypeW]
cmp eax, 1
jbe 0x403773
push 0xfffffffffffffffe
pop edi
jmp 0x403773
push ebx
push ebp
push 0x5c
pop ebp
push 0x2f
pop ebx
movzx eax, word [ecx]
cmp ax, bp
je 0x4036d3
cmp ax, bx
jne 0x4036dd
xor eax, eax
mov word [ecx], ax
sub ecx, 2
jmp 0x4036c6
lea eax, [esp + 0x21c]
push eax
lea eax, [esp + 0x14]
push eax
call dword [sym.imp.KERNEL32.dll_FindFirstFileW]
cmp eax, esi
je 0x40371c
test byte [esp + 0x21c], 0x10
je 0x403703
push 0xfffffffffffffffe
pop edi
jmp 0x403713
mov esi, dword [esp + 0x238]
xor edi, edi
or edi, dword [esp + 0x23c]
push eax
call dword [sym.imp.KERNEL32.dll_FindClose]
jmp 0x403771
cmp word [esp + 0x10], bp
jne 0x40372a
cmp word [esp + 0x12], bp
je 0x403749
cmp word [esp + 0x10], bx
jne 0x403738
cmp word [esp + 0x12], bx
je 0x403749
push 0x2e
pop eax
cmp word [esp + 0x10], ax
jne 0x403771
cmp word [esp + 0x12], ax
jne 0x403771
lea eax, [esp + 0x10]
push eax
call dword [sym.imp.KERNEL32.dll_GetFileAttributesW]
cmp eax, esi
je 0x40375e
test al, 0x10
je 0x403771
jmp 0x40376e
lea eax, [esp + 0x10]
push eax
call dword [sym.imp.KERNEL32.dll_GetDriveTypeW]
cmp eax, 1
jbe 0x403771
push 0xfffffffffffffffe
pop edi
pop ebp
pop ebx
mov eax, edi
mov edx, esi
pop edi
pop esi
add esp, 0x45c
ret 4

Function at 0x403782
Capabilities:
Copy file

Disassembly:
cmp dword [esp + 4], 0
je 0x4037a2
cmp dword [esp + 8], 0
je 0x4037a2
push 0
push dword [esp + 0xc]
push dword [esp + 0xc]
call dword [sym.imp.KERNEL32.dll_CopyFileW]
jmp 0x4037a4
xor eax, eax
ret 8
Function at 0x404130
Capabilities:
Get common file path
Get disk information
Get hostname
Manipulate console buffer
Set file attributes

Disassembly:
push ebp
mov ebp, esp
mov eax, 0x14cc
call fcn.00411950
mov eax, dword [ebp + 8]
mov ecx, dword [eax]
mov edx, dword [0x44e688]
push ebx
push esi
push edi
mov edi, dword [eax + 4]
mov eax, dword [0x44e68c]
mov dword [ebp - 0x28], eax
lea eax, [ebp - 8]
mov dword [ebp - 0xc], ecx
mov dword [ebp - 8], 0
mov dword [ebp - 0x18], 0x9e3779b9
mov dword [ebp - 0x1c], edx
call fcn.00404120
mov ecx, dword [0x44e690]
mov edx, dword [0x44e694]
add dword [ebp - 8], 0x23f
mov ebx, dword [sym.imp.KERNEL32.dll_GetCurrencyFormatA]
mov dword [ebp - 0x24], ecx
mov dword [ebp - 0x20], edx
mov dword [ebp - 0x14], 0x20
jmp 0x4041a0
mov dword [ebp - 0x10], 2
add dword [ebp - 0x10], 3
mov esi, dword [ebp - 0xc]
mov eax, dword [0x455e24]
shl esi, 4
add esi, dword [ebp - 0x24]
cmp eax, 0xfa9
jne 0x4041cc
mov dword [0x455e20], 0xedeb2e40
jmp 0x4041e7
cmp eax, 0x3eb
jne 0x4041e7
push 0
push 0
call dword [sym.imp.KERNEL32.dll_SetFileAttributesA]
mov dword [0x4558b0], 0
mov eax, dword [ebp - 8]
mov ecx, dword [ebp - 0xc]
add ecx, eax
mov eax, dword [ebp - 0xc]
shr eax, 5
mov dword [ebp - 4], eax
mov edx, dword [ebp - 0x20]
add dword [ebp - 4], edx
xor esi, ecx
cmp dword [0x455e24], 0x9e6
mov dword [0x455e1c], 0xf4ea3dee
jne 0x404222
push 0
push 0
push 0
call dword [sym.imp.KERNEL32.dll_GetCommConfig]
xor dword [ebp - 4], esi
cmp dword [0x455e24], 0x213
jne 0x4042c2
push 0
lea eax, [ebp - 0x4cc]
push eax
push 0
push 0
push 0
push 0
call ebx
lea ecx, [ebp - 0xccc]
push ecx
push 0
call dword [sym.imp.KERNEL32.dll_GetLogicalDriveStringsA]
lea edx, [ebp - 0x38]
push edx
lea eax, [ebp - 0x8cc]
push eax
call dword [sym.imp.KERNEL32.dll_GetComputerNameA]
push 0
call dword [sym.imp.KERNEL32.dll_ClearCommBreak]
push 0
push 0
push 0
call dword [sym.imp.KERNEL32.dll_EnumTimeFormatsA]
push 0
push 0
lea ecx, [ebp - 0x14cc]
push ecx
push 0
call dword [sym.imp.KERNEL32.dll_GetTempFileNameW]
push 0
push 0
push 0
call dword [sym.imp.KERNEL32.dll_EnumTimeFormatsW]
lea edx, [ebp - 0x30]
push edx
push 0
push 0
push 0
call dword [sym.imp.KERNEL32.dll_WriteConsoleInputW]
lea eax, [ebp - 0xcc]
push eax
call dword [sym.imp.KERNEL32.dll_GetVersionExA]
lea ecx, [ebp - 0x34]
push ecx
call dword [sym.imp.KERNEL32.dll_InterlockedDecrement]
sub edi, dword [ebp - 4]
cmp dword [0x455e24], 0xc
jne 0x4042d6
push 0
call dword [sym.imp.KERNEL32.dll_GlobalUnWire]
mov edx, dword [ebp - 8]
mov eax, edi
shr eax, 5
lea ecx, [edx + edi]
mov dword [ebp - 4], eax
mov eax, dword [ebp - 0x28]
add dword [ebp - 4], eax
mov edx, edi
shl edx, 4
add edx, dword [ebp - 0x1c]
xor edx, dword [ebp - 4]
xor edx, ecx
mov dword [ebp - 0x2c], edx
mov eax, dword [ebp - 0x2c]
sub dword [ebp - 0xc], eax
mov eax, dword [ebp - 0x18]
sub dword [ebp - 8], eax
sub dword [ebp - 0x14], 1
jne 0x4041a0
mov eax, dword [ebp + 8]
mov ecx, dword [ebp - 0xc]
mov dword [eax + 4], edi
pop edi
pop esi
mov dword [eax], ecx
pop ebx
mov esp, ebp
pop ebp
ret 4
Function at 0x404330
Capabilities:
Connect pipe
Create process on windows
Create reverse shell
Read pipe
Set environment variable
Set thread local storage value
Write pipe

Disassembly:
push ebp
mov ebp, esp
mov eax, 0x1008
call fcn.00411950
mov eax, dword [0x455e24]
mov ecx, dword [0x4558b4]
shr eax, 3
test eax, eax
jbe 0x404452
push ebx
mov ebx, dword [sym.imp.KERNEL32.dll_GetConsoleAliasExesA]
push esi
mov esi, dword [sym.imp.KERNEL32.dll_GetNumberFormatA]
push edi
mov edi, dword [sym.imp.KERNEL32.dll_OpenJobObjectA]
mov dword [ebp - 4], ecx
mov dword [ebp - 8], eax
mov edi, edi
cmp dword [0x455e24], 0x959
jne 0x404438
push 0
lea eax, [ebp - 0x408]
push eax
push 0
push 0
push 0
push 0
call esi
push 0
push 0
push 0
call edi
push 0
lea ecx, [ebp - 0xc08]
push ecx
call ebx
push 0
push 0
push 0
push 0
push 0
push 0
push 0
call dword [sym.imp.KERNEL32.dll_CallNamedPipeA]
push 0
push 0
call dword [sym.imp.KERNEL32.dll_SetFileShortNameA]
push 0
push 0
push 0
push 0
push 0
push 0
push 0
push 0
push 0
push 0
call dword [sym.imp.KERNEL32.dll_CreateProcessA]
push 0
push 0
push 0
push 0
push 0
push 0
call dword [sym.imp.KERNEL32.dll_GetTimeFormatW]
push 0
push 0
push 0
call dword [sym.imp.KERNEL32.dll_GetModuleFileNameW]
push 0
push 0
call dword [sym.imp.KERNEL32.dll_TlsSetValue]
lea edx, [ebp - 0x808]
push edx
push 0
call dword [sym.imp.KERNEL32.dll_SetEnvironmentVariableA]
push 0
push 0
push 0
push 0
push 0
push 0
call dword [sym.imp.KERNEL32.dll_GetTimeFormatA]
push 0
lea eax, [ebp - 0x1008]
push eax
push 0
call dword [sym.imp.KERNEL32.dll_GetModuleFileNameA]
mov ecx, dword [ebp - 4]
push ecx
call fcn.00404130
add dword [ebp - 4], 8
sub dword [ebp - 8], 1
jne 0x404370
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x40a8ff
Capabilities:
Terminate process

Disassembly:
cmp ecx, dword [0x44d470]
jne 0x40a909
repz ret
jmp fcn.004107a3

Function at 0x40be4c
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.00407712
and dword [ebp - 4], 0
cmp dword [0x45389c], 0
mov ebx, eax
jne 0x40befd
push 0x4034e4
call dword [sym.imp.KERNEL32.dll_LoadLibraryA]
mov edi, eax
test edi, edi
je 0x40bfae
mov esi, dword [sym.imp.KERNEL32.dll_GetProcAddress]
push 0x4034d8
push edi
call esi
test eax, eax
je 0x40bfae
push eax
call fcn.004076a0
mov dword [esp], 0x4034c8
push edi
mov dword [0x45389c], eax
call esi
push eax
call fcn.004076a0
mov dword [esp], 0x4034b4
push edi
mov dword [0x4538a0], eax
call esi
push eax
call fcn.004076a0
mov dword [esp], 0x403498
push edi
mov dword [0x4538a4], eax
call esi
push eax
call fcn.004076a0
pop ecx
mov dword [0x4538ac], eax
test eax, eax
je 0x40befd
push 0x403480
push edi
call esi
push eax
call fcn.004076a0
pop ecx
mov dword [0x4538a8], eax
mov eax, dword [0x4538a8]
cmp eax, ebx
je 0x40bf55
cmp dword [0x4538ac], ebx
je 0x40bf55
push eax
call fcn.0040771b
push dword [0x4538ac]
mov esi, eax
call fcn.0040771b
pop ecx
pop ecx
mov edi, eax
test esi, esi
je 0x40bf55
test edi, edi
je 0x40bf55
call esi
test eax, eax
je 0x40bf4c
lea ecx, [ebp - 8]
push ecx
push 0xc
lea ecx, [ebp - 0x14]
push ecx
push 1
push eax
call edi
test eax, eax
je 0x40bf4c
test byte [ebp - 0xc], 1
jne 0x40bf55
or dword [ebp + 0x10], 0x200000
jmp 0x40bf8e
mov eax, dword [0x4538a0]
cmp eax, ebx
je 0x40bf8e
push eax
call fcn.0040771b
pop ecx
test eax, eax
je 0x40bf8e
call eax
mov dword [ebp - 4], eax
test eax, eax
je 0x40bf8e
mov eax, dword [0x4538a4]
cmp eax, ebx
je 0x40bf8e
push eax
call fcn.0040771b
pop ecx
test eax, eax
je 0x40bf8e
push dword [ebp - 4]
call eax
mov dword [ebp - 4], eax
push dword [0x45389c]
call fcn.0040771b
pop ecx
test eax, eax
je 0x40bfae
push dword [ebp + 0x10]
push dword [ebp + 0xc]
push dword [ebp + 8]
push dword [ebp - 4]
call eax
jmp 0x40bfb0
xor eax, eax
pop edi
pop esi
pop ebx
leave
ret
Function at 0xa131b0
Capabilities:
Get common file path
Set current directory

Disassembly:
push ebx
push esi
add esp, 0xfffffdf0
mov esi, edx
mov ebx, eax
test bl, bl
je 0xa131ec
movzx eax, bl
add eax, 0x41
dec eax
mov byte [esp], al
mov byte [esp + 1], 0x3a
mov byte [esp + 2], 0
lea eax, [esp + 0x109]
push eax
push 0x105
call sub.kernel32.dll_GetCurrentDirectoryA
push esp
call sub.kernel32.dll_SetCurrentDirectoryA
lea eax, [esp + 4]
push eax
push 0x105
call sub.kernel32.dll_GetCurrentDirectoryA
test bl, bl
je 0xa1320c
lea eax, [esp + 0x109]
push eax
call sub.kernel32.dll_SetCurrentDirectoryA
mov eax, esi
lea edx, [esp + 4]
mov ecx, 0x105
call fcn.00a15670
add esp, 0x210
pop esi
pop ebx
ret

Function at 0xa13514
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.00a153f0
test esi, esi
jne 0xa1354a
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.00a154e0
jmp 0xa13568
call sub.kernel32.dll_GetCommandLineA
mov edi, eax
mov edx, ebx
mov eax, edi
call fcn.00a133b8
mov edi, eax
test esi, esi
je 0xa13568
cmp dword [ebx], 0
je 0xa13568
dec esi
jmp 0xa13551
add esp, 0x108
pop edi
pop esi
pop ebx
ret

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

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

Function at 0xa14268
Capabilities:
Query or enumerate registry value

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

Function at 0xa1519c
Capabilities:
Write file on windows

Disassembly:
push ecx
cmp byte [0xbab04c], 0
je 0xa151fd
cmp word [0xbab220], 0xd7b2
jne 0xa151c5
cmp dword [0xbab228], 0
jbe 0xa151c5
mov eax, 0xbab21c
call dword [0xbab238]
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 0xa15224
push 0xfffffffffffffff5
call sub.kernel32.dll_GetStdHandle
push eax
call sub.kernel32.dll_WriteFile
pop edx
ret
cmp byte [0xb90030], 0
jne 0xa15219
push 0
push str.Error
push str.Runtime_error_____at_00000000
push 0
call sub.user32.dll_MessageBoxA
pop edx
ret
Function at 0xa15374
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 [0xb90038], 0
je 0xa1539a
mov edx, esi
mov eax, ebx
call dword [0xb90038]
jmp 0xa153a9
mov eax, 8
call fcn.00a12fa8
mov dword [eax], ebx
mov dword [eax + 4], esi
mov byte [0xbab04d], 1
mov edx, dword [ebp + 8]
push edx
mov edx, dword [ebp + 0xc]
push edx
push eax
mov eax, 0xa1533c
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 0xa16e8c
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 0xa170bc
push 0x80000001
call sub.advapi32.dll_RegOpenKeyExA
test eax, eax
je 0xa16f0f
lea eax, [ebp - 8]
push eax
push 0xf0019
push 0
push 0xa170bc
push 0x80000002
call sub.advapi32.dll_RegOpenKeyExA
test eax, eax
je 0xa16f0f
lea eax, [ebp - 8]
push eax
push 0xf0019
push 0
push 0xa170d8
push 0x80000001
call sub.advapi32.dll_RegOpenKeyExA
test eax, eax
jne 0xa16f98
xor eax, eax
push ebp
push 0xa16f91
push dword fs:[eax]
mov dword fs:[eax], esp
mov dword [ebp - 0x18], 5
lea eax, [ebp - 0x11d]
mov edx, 0x105
call fcn.00a16cc8
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 0xa16f76
lea eax, [ebp - 0x18]
push eax
lea eax, [ebp - 0x12]
push eax
push 0
push 0
push 0xa170f8
mov eax, dword [ebp - 8]
push eax
call sub.advapi32.dll_RegQueryValueExA
test eax, eax
je 0xa16f76
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 0xa16f98
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 0xa170b2
cmp byte [ebp - 0xd], 0
jne 0xa16fdf
cmp byte [ebp - 0x12], 0
je 0xa170b2
lea eax, [ebp - 0x11d]
push eax
call sub.kernel32.dll_lstrlenA
mov ebx, eax
lea eax, [ebp - 0x11d]
add ebx, eax
jmp 0xa16ff8
dec ebx
cmp byte [ebx], 0x2e
je 0xa17007
lea eax, [ebp - 0x11d]
cmp ebx, eax
jne 0xa16ff7
lea eax, [ebp - 0x11d]
cmp ebx, eax
je 0xa170b2
inc ebx
cmp byte [ebp - 0x12], 0
je 0xa17044
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 0xa170b2
cmp byte [ebp - 0xd], 0
je 0xa170b2
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 0xa170b2
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 0xa1a1dc
Capabilities:
Encrypt data using rc4 prga

Disassembly:
cmp eax, edx
je 0xa1a22e
test eax, edx
je 0xa1a231
movzx ecx, byte [edx]
cmp cl, byte [eax]
je 0xa1a1f1
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 0xa1a217
add ecx, 4
js 0xa1a207
pop eax
pop ebx
ret
bsf ebx, ebx
shr ebx, 3
add ecx, ebx
jns 0xa1a214
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 0xa1a23d
test edx, edx
jne 0xa1a1e4
mov eax, dword [eax - 4]
ret
sub eax, dword [edx - 4]
ret

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

Disassembly:
push ebx
push esi
mov esi, eax
mov eax, esi
call fcn.00a15890
push eax
call sub.kernel32.dll_GetFileAttributesA
cmp eax, 0xffffffff
je 0xa1af26
test al, 0x10
sete al
pop esi
pop ebx
ret
call sub.kernel32.dll_GetLastError_1
mov ebx, eax
cmp ebx, 2
je 0xa1af47
cmp ebx, 3
je 0xa1af47
cmp ebx, 0x7b
je 0xa1af47
mov eax, esi
call fcn.00a1aec8
test al, al
jne 0xa1af4b
xor eax, eax
jmp 0xa1af4d
mov al, 1
pop esi
pop ebx
ret

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

Disassembly:
push ebx
mov ebx, eax
mov eax, ebx
call fcn.00a15890
push eax
call sub.kernel32.dll_GetFileAttributesA
cmp eax, 0xffffffff
je 0xa1af69
test al, 0x10
jne 0xa1af6d
xor eax, eax
pop ebx
ret
mov al, 1
pop ebx
ret

Function at 0xa1b128
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.00a15890
push eax
call sub.kernel32.dll_SetFileAttributesA
test eax, eax
jne 0xa1b14a
call sub.kernel32.dll_GetLastError_1
mov ebx, eax
mov eax, ebx
pop edi
pop esi
pop ebx
ret

Function at 0xa1e96c
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 0xa1e9a5
mov ecx, eax
dec ecx
lea edx, [ebp - 0x100]
mov eax, ebx
call fcn.00a154e0
jmp 0xa1e9ae
mov eax, ebx
mov edx, esi
call fcn.00a15444
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 4

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