joyce8/EMBER2024-capa huggingface dataset:
Function at 0x401000
Capabilities:
Load windows common language runtime

Disassembly:
push ebp
mov ebp, esp
push ecx
push str.CorBindToRuntime
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
test eax, eax
je 0x401031
lea ecx, [ebp - 4]
push ecx
push 0x4111c0
push 0x4111b0
push 0x4112b0
push dword [ebp + 0xc]
call eax
add esp, 0x14
mov eax, dword [ebp - 4]
mov esp, ebp
pop ebp
ret

Function at 0x401038
Capabilities:
Load windows common language runtime

Disassembly:
push ebp
mov ebp, esp
sub esp, 0xc
and dword [ebp - 4], 0
and dword [ebp - 8], 0
push str.CLRCreateInstance
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
test eax, eax
je 0x4010ca
lea ecx, [ebp - 0xc]
push ecx
push 0x411180
push 0x411190
call eax
add esp, 0xc
test eax, eax
jne 0x4010b9
mov eax, dword [ebp - 0xc]
lea edx, [ebp - 4]
push edx
push 0x4111a0
push dword [ebp + 0xc]
mov ecx, dword [eax]
push eax
call dword [ecx + 0xc]
test eax, eax
jne 0x4010ae
mov eax, dword [ebp - 4]
lea edx, [ebp - 8]
push edx
push 0x4111c0
push 0x4111b0
mov ecx, dword [eax]
push eax
call dword [ecx + 0x24]
test eax, eax
je 0x4010ca
push eax
push dword [ebp + 0xc]
push str.___Unable_to_get_ICorRuntimeHost_version:_s_HRESULT:_x
jmp 0x4010c2
push eax
push dword [ebp + 0xc]
push str.___Unable_to_get_ICLRRuntimeInfo_version:_s_HRESULT:_x
jmp 0x4010c2
push eax
push dword [ebp + 0xc]
push str.___Unable_to_create_ICLRMetaHost_version:_s_HRESULT:_x
call fcn.004011c8
add esp, 0xc
mov eax, dword [ebp - 8]
mov esp, ebp
pop ebp
ret

Function at 0x4010d1
Capabilities:
Allocate or change rwx memory
Patch antimalware scan interface function

Disassembly:
push ebp
mov ebp, esp
push ecx
push ecx
push ebx
push str.amsi
xor ebx, ebx
call dword [sym.imp.KERNEL32.dll_LoadLibraryW]
test eax, eax
je 0x401132
push esi
push str.AmsiScanBuffer
push eax
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
mov esi, eax
test esi, esi
je 0x401131
lea eax, [ebp - 4]
push eax
push 0x40
push 0x20
push esi
call dword [sym.imp.KERNEL32.dll_VirtualProtect]
test eax, eax
je 0x401131
mov eax, 0x18c2
mov byte [esi + 6], bl
mov word [esi + 4], ax
inc ebx
lea eax, [ebp - 8]
mov dword [esi], 0x1b866
push eax
push dword [ebp - 4]
push 0x20
push esi
call dword [sym.imp.KERNEL32.dll_VirtualProtect]
pop esi
mov eax, ebx
pop ebx
mov esp, ebp
pop ebp
ret

Function at 0x401139
Capabilities:
Allocate or change rwx memory
Patch event tracing for windows function

Disassembly:
push ebp
mov ebp, esp
push ecx
push ecx
push edi
push str.ntdll
xor edi, edi
call dword [sym.imp.KERNEL32.dll_LoadLibraryW]
test eax, eax
je 0x401198
push esi
push str.EtwEventWrite
push eax
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
mov esi, eax
test esi, esi
je 0x401197
lea eax, [ebp - 4]
push eax
push 0x40
push 4
push esi
call dword [sym.imp.KERNEL32.dll_VirtualProtect]
test eax, eax
je 0x401197
push 4
push 0x4112f0
push esi
call fcn.00402020
add esp, 0xc
lea eax, [ebp - 8]
inc edi
push eax
push dword [ebp - 4]
push 4
push esi
call dword [sym.imp.KERNEL32.dll_VirtualProtect]
pop esi
mov eax, edi
pop edi
mov esp, ebp
pop ebp
ret
Function at 0x409147
Capabilities:
Set environment variable

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
pop ebp
jmp fcn.00408df5
Function at 0x404a7c
Capabilities:
Accept command line arguments

Disassembly:
push ebx
push esi
push edi
add esp, 0xfffffdf4
mov ebx, edx
mov esi, eax
mov eax, ebx
call fcn.004065c4
test esi, esi
jne 0x404ab2
push 0x105
lea eax, [esp + 4]
push eax
push 0
call sub.kernel32.dll_GetModuleFileNameW
mov ecx, eax
mov edx, esp
mov eax, ebx
call fcn.00406730
jmp 0x404ad0
call sub.kernel32.dll_GetCommandLineW
mov edi, eax
mov edx, ebx
mov eax, edi
call fcn.00404960
mov edi, eax
test esi, esi
je 0x404ad0
cmp dword [ebx], 0
je 0x404ad0
dec esi
jmp 0x404ab9
add esp, 0x20c
pop edi
pop esi
pop ebx
ret

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

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

Function at 0x40552c
Capabilities:
Check for time delay via gettickcount

Disassembly:
push ebx
push esi
push edi
push ebp
add esp, 0xfffffff4
mov edi, edx
mov esi, eax
mov ebp, dword [esi + 0x10]
mov eax, esi
call fcn.004057dc
mov byte [esp], al
cmp byte [esp], 0
jne 0x4056b8
test edi, edi
je 0x4056b8
mov byte [esp + 1], 0
test ebp, ebp
jle 0x4055ef
call sub.kernel32.dll_GetTickCount
mov dword [esp + 4], eax
test ebp, ebp
jle 0x4055ca
cmp edi, 0xffffffff
je 0x40558b
call sub.kernel32.dll_GetTickCount
sub eax, dword [esp + 4]
cmp edi, eax
ja 0x40558b
mov byte [esp], 0
jmp 0x4056b8
mov ebx, dword [esi]
cmp ebx, 1
jg 0x4055ca
test ebx, ebx
jne 0x4055c0
mov eax, esi
xor ecx, ecx
mov edx, 1
call fcn.004026dc
test eax, eax
jne 0x4055c0
call sub.kernel32.dll_GetCurrentThreadId
mov dword [esi + 8], eax
mov dword [esi + 4], 1
mov byte [esp], 1
jmp 0x4056b8
call 0x405820
dec ebp
test ebp, ebp
jg 0x405570
cmp edi, 0xffffffff
je 0x4055ef
call sub.kernel32.dll_GetTickCount
mov dword [esp + 8], eax
mov eax, dword [esp + 8]
sub eax, dword [esp + 4]
cmp edi, eax
ja 0x4055ed
mov byte [esp], 0
jmp 0x4056b8
sub edi, eax
mov ebx, dword [esi]
test ebx, ebx
je 0x40553a
lea edx, [ebx + 2]
mov eax, esi
mov ecx, ebx
call fcn.004026dc
cmp ebx, eax
jne 0x4055ef
call sub.kernel32.dll_GetTickCount
mov dword [esp + 4], eax
mov eax, esi
call fcn.00405728
mov edx, eax
mov ebx, dword [0x58f8f4]
mov ecx, edi
xor eax, eax
call dword [ebx + 0x10]
test eax, eax
sete byte [esp]
cmp edi, 0xffffffff
je 0x405656
call sub.kernel32.dll_GetTickCount
mov dword [esp + 8], eax
mov eax, dword [esp + 8]
sub eax, dword [esp + 4]
cmp edi, eax
jbe 0x405654
mov eax, dword [esp + 8]
sub eax, dword [esp + 4]
sub edi, eax
jmp 0x405656
xor edi, edi
cmp byte [esp], 0
je 0x40567f
mov ebx, dword [esi]
test bl, 1
jne 0x405698
mov edx, ebx
sub edx, 2
or edx, 1
mov eax, esi
mov ecx, ebx
call fcn.004026dc
cmp ebx, eax
jne 0x40565c
mov byte [esp + 1], 1
jmp 0x405698
mov ebx, dword [esi]
mov edx, ebx
sub edx, 2
mov eax, esi
mov ecx, ebx
call fcn.004026dc
cmp ebx, eax
jne 0x40567f
mov byte [esp + 1], 1
cmp byte [esp + 1], 0
je 0x405609
cmp byte [esp], 0
je 0x4056b8
call sub.kernel32.dll_GetCurrentThreadId
mov dword [esi + 8], eax
mov dword [esi + 4], 1
movzx eax, byte [esp]
add esp, 0xc
pop ebp
pop edi
pop esi
pop ebx
ret
Function at 0x406220
Capabilities:
Write file on windows

Disassembly:
push ecx
cmp byte [0x58f054], 0
je 0x406287
cmp word [0x58f340], 0xd7b2
jne 0x406249
cmp dword [0x58f348], 0
jbe 0x406249
mov eax, 0x58f33c
call dword [0x58f358]
push 0
lea eax, [esp + 4]
push eax
push 0x1d
push str.Runtime_error_____at_00000000
push 0xfffffffffffffff5
call sub.kernel32.dll_GetStdHandle
push eax
call sub.kernel32.dll_WriteFile
push 0
lea eax, [esp + 4]
push eax
push 2
mov eax, 0x4062b4
call fcn.00406ef8
push eax
push 0xfffffffffffffff5
call sub.kernel32.dll_GetStdHandle
push eax
call sub.kernel32.dll_WriteFile
pop edx
ret
cmp byte [0x58b032], 0
jne 0x4062a3
push 0
push 0x58b9c2
push str.Runtime_error_____at_00000000
push 0
call sub.user32.dll_MessageBoxA
pop edx
ret

Function at 0x406480
Capabilities:
Create thread

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffff8
push ebx
push esi
push edi
mov esi, ecx
mov dword [ebp - 8], edx
mov dword [ebp - 4], eax
mov edi, dword [ebp + 0x10]
cmp dword [0x58b034], 0
je 0x4064ab
mov edx, edi
mov eax, esi
call dword [0x58b034]
mov ebx, eax
jmp 0x4064bc
mov eax, 8
call fcn.0040464c
mov ebx, eax
mov dword [ebx], esi
mov dword [ebx + 4], edi
mov byte [0x58f055], 1
mov eax, dword [ebp + 8]
push eax
mov eax, dword [ebp + 0xc]
push eax
push ebx
mov eax, 0x406448
push eax
mov eax, dword [ebp - 8]
push eax
mov eax, dword [ebp - 4]
push eax
call sub.kernel32.dll_CreateThread
mov esi, eax
test esi, esi
jne 0x4064f1
mov edx, 8
mov eax, ebx
call fcn.00404668
mov eax, esi
pop edi
pop esi
pop ebx
pop ecx
pop ecx
pop ebp
ret 0xc
Function at 0x408a7c
Capabilities:
Get geographical location

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffe98
push ebx
push esi
push edi
xor ecx, ecx
mov dword [ebp - 0x160], ecx
mov dword [ebp - 0x164], ecx
mov dword [ebp - 0x168], ecx
mov dword [ebp - 4], edx
mov esi, eax
xor eax, eax
push ebp
push 0x408be1
push dword fs:[eax]
mov dword fs:[eax], esp
mov eax, dword [ebp - 4]
call fcn.004065c4
cmp si, word [0x58ba00]
jb 0x408b14
cmp si, word [0x58bc00]
ja 0x408b14
mov edi, 0x40
xor eax, eax
mov dword [ebp - 8], eax
cmp edi, dword [ebp - 8]
jb 0x408b14
mov ebx, edi
add ebx, dword [ebp - 8]
shr ebx, 1
cmp si, word [ebx*8 + 0x58ba00]
jae 0x408aee
mov edi, ebx
dec edi
jmp 0x408b0f
cmp si, word [ebx*8 + 0x58ba00]
jbe 0x408afe
inc ebx
mov dword [ebp - 8], ebx
jmp 0x408b0f
mov edx, dword [ebp - 4]
mov eax, dword [ebx*8 + 0x58ba04]
call fcn.0040898c
jmp 0x408b14
cmp edi, dword [ebp - 8]
jae 0x408ad8
mov eax, dword [ebp - 4]
cmp dword [eax], 0
jne 0x408bc3
push 2
movzx eax, si
push eax
call sub.kernel32.dll_IsValidLocale
test eax, eax
je 0x408bc3
push 0x55
lea eax, [ebp - 0xb2]
push eax
push 0x59
movzx ebx, si
push ebx
call sub.kernel32.dll_GetLocaleInfoW
push 0x55
lea eax, [ebp - 0x15c]
push eax
push 0x5a
push ebx
call sub.kernel32.dll_GetLocaleInfoW
lea eax, [ebp - 0x160]
lea edx, [ebp - 0xb2]
mov ecx, 0x55
call fcn.004072c4
push dword [ebp - 0x160]
push 0x408bfc
lea eax, [ebp - 0x164]
lea edx, [ebp - 0x15c]
mov ecx, 0x55
call fcn.004072c4
push dword [ebp - 0x164]
push 0x408c0c
lea eax, [ebp - 0x168]
lea edx, [ebp - 0xb2]
mov ecx, 0x55
call fcn.004072c4
push dword [ebp - 0x168]
mov eax, dword [ebp - 4]
mov edx, 5
call fcn.00407490
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x408be8
lea eax, [ebp - 0x168]
mov edx, 3
call fcn.00406624
ret
Function at 0x408d94
Capabilities:
Identify system language via api

Disassembly:
push ebp
mov ebp, esp
push 0
push ebx
push esi
mov esi, edx
mov ebx, eax
xor eax, eax
push ebp
push 0x408e97
push dword fs:[eax]
mov dword fs:[eax], esp
push 0x591b84
call sub.kernel32.dll_EnterCriticalSection
cmp bx, word [0x591b9c]
jne 0x408de0
mov eax, esi
mov edx, 0x591b9e
mov ecx, 0x55
call fcn.004072c4
push 0x591b84
call sub.kernel32.dll_LeaveCriticalSection
jmp 0x408e81
push 0x591b84
call sub.kernel32.dll_LeaveCriticalSection
mov eax, esi
call fcn.004065c4
push 2
movzx eax, bx
push eax
call sub.kernel32.dll_IsValidLocale
test eax, eax
je 0x408e4f
cmp byte [0x591b80], 0
je 0x408e14
mov edx, esi
mov eax, ebx
call fcn.00408c78
jmp 0x408e4f
mov edx, esi
mov eax, ebx
call fcn.00408a7c
call sub.kernel32.dll_GetSystemDefaultUILanguage
cmp bx, ax
je 0x408e4f
cmp dword [esi], 0
je 0x408e38
mov eax, esi
mov edx, 0x408eb0
call fcn.004073b0
call sub.kernel32.dll_GetSystemDefaultUILanguage
lea edx, [ebp - 4]
call fcn.00408a7c
mov edx, dword [ebp - 4]
mov eax, esi
call fcn.004073b0
push 0x591b84
call sub.kernel32.dll_EnterCriticalSection
mov word [0x591b9c], bx
push 0xaa
mov eax, dword [esi]
call fcn.00407218
push eax
push 0x591b9e
call sub.kernel32.dll_lstrcpynW
push 0x591b84
call sub.kernel32.dll_LeaveCriticalSection
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x408e9e
lea eax, [ebp - 4]
call fcn.004065c4
ret
Function at 0x4090cc
Capabilities:
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffde4
push ebx
mov ebx, edx
mov dword [ebp - 4], eax
mov eax, dword [ebp - 4]
call fcn.004066a8
xor eax, eax
push ebp
push 0x4092f1
push dword fs:[eax]
mov dword fs:[eax], esp
cmp dword [ebp - 4], 0
jne 0x40910c
push 0x105
lea eax, [ebp - 0x21a]
push eax
push 0
call sub.kernel32.dll_GetModuleFileNameW
jmp 0x409126
push 0x105
mov eax, dword [ebp - 4]
call fcn.00407218
push eax
lea eax, [ebp - 0x21a]
push eax
call sub.kernel32.dll_lstrcpynW
cmp word [ebp - 0x21a], 0
je 0x4092db
xor eax, eax
mov dword [ebp - 8], eax
lea eax, [ebp - 0xc]
push eax
push 0xf0019
push 0
push 0x409300
push 0x80000001
call sub.advapi32.dll_RegOpenKeyExW
test eax, eax
je 0x4091f5
lea eax, [ebp - 0xc]
push eax
push 0xf0019
push 0
push 0x409300
push 0x80000002
call sub.advapi32.dll_RegOpenKeyExW
test eax, eax
je 0x4091f5
lea eax, [ebp - 0xc]
push eax
push 0xf0019
push 0
push 0x40933c
push 0x80000001
call sub.advapi32.dll_RegOpenKeyExW
test eax, eax
je 0x4091f5
lea eax, [ebp - 0xc]
push eax
push 0xf0019
push 0
push 0x40933c
push 0x80000002
call sub.advapi32.dll_RegOpenKeyExW
test eax, eax
je 0x4091f5
lea eax, [ebp - 0xc]
push eax
push 0xf0019
push 0
push 0x409370
push 0x80000001
call sub.advapi32.dll_RegOpenKeyExW
test eax, eax
je 0x4091f5
lea eax, [ebp - 0xc]
push eax
push 0xf0019
push 0
push 0x4093a4
push 0x80000001
call sub.advapi32.dll_RegOpenKeyExW
test eax, eax
jne 0x4092db
xor eax, eax
push ebp
push 0x4092d4
push dword fs:[eax]
mov dword fs:[eax], esp
lea eax, [ebp - 0x21a]
mov edx, 0x105
call fcn.00408ed8
lea eax, [ebp - 0x10]
push eax
push 0
push 0
push 0
lea eax, [ebp - 0x21a]
push eax
mov eax, dword [ebp - 0xc]
push eax
call sub.advapi32.dll_RegQueryValueExW
test eax, eax
jne 0x409264
mov eax, dword [ebp - 0x10]
call fcn.0040464c
mov dword [ebp - 8], eax
lea eax, [ebp - 0x10]
push eax
mov eax, dword [ebp - 8]
push eax
push 0
push 0
lea eax, [ebp - 0x21a]
push eax
mov eax, dword [ebp - 0xc]
push eax
call sub.advapi32.dll_RegQueryValueExW
mov eax, ebx
mov edx, dword [ebp - 8]
call fcn.00407270
jmp 0x4092af
lea eax, [ebp - 0x10]
push eax
push 0
push 0
push 0
push 0x4093e4
mov eax, dword [ebp - 0xc]
push eax
call sub.advapi32.dll_RegQueryValueExW
test eax, eax
jne 0x4092af
mov eax, dword [ebp - 0x10]
call fcn.0040464c
mov dword [ebp - 8], eax
lea eax, [ebp - 0x10]
push eax
mov eax, dword [ebp - 8]
push eax
push 0
push 0
push 0x4093e4
mov eax, dword [ebp - 0xc]
push eax
call sub.advapi32.dll_RegQueryValueExW
mov eax, ebx
mov edx, dword [ebp - 8]
call fcn.00407270
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x4092db
cmp dword [ebp - 8], 0
je 0x4092ca
mov eax, dword [ebp - 8]
call fcn.00404668
mov eax, dword [ebp - 0xc]
push eax
call sub.advapi32.dll_RegCloseKey
ret
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x4092f8
lea eax, [ebp - 4]
call fcn.004065c4
ret
Function at 0x4095d4
Capabilities:
Get geographical location
Identify system language via api

Disassembly:
push ebp
mov ebp, esp
add esp, 0xffffffec
push ebx
xor ecx, ecx
mov dword [ebp - 0x14], ecx
mov dword [ebp - 0x10], ecx
mov ebx, edx
mov dword [ebp - 4], eax
mov eax, dword [ebp - 4]
call fcn.004066a8
xor eax, eax
push ebp
push 0x409694
push dword fs:[eax]
mov dword fs:[eax], esp
push 4
lea eax, [ebp - 0xc]
push eax
push 3
call sub.kernel32.dll_GetUserDefaultUILanguage
movzx eax, ax
push eax
call sub.kernel32.dll_GetLocaleInfoW
lea eax, [ebp - 0x10]
lea edx, [ebp - 0xc]
mov ecx, 4
call fcn.004072c4
mov ecx, dword [ebp - 0x10]
mov eax, ebx
mov edx, dword [ebp - 4]
call fcn.00407408
mov eax, dword [ebx]
call fcn.0040949c
test al, al
jne 0x409671
mov word [ebp - 8], 0
lea eax, [ebp - 0x14]
lea edx, [ebp - 0xc]
mov ecx, 4
call fcn.004072c4
mov ecx, dword [ebp - 0x14]
mov eax, ebx
mov edx, dword [ebp - 4]
call fcn.00407408
mov eax, dword [ebx]
call fcn.0040949c
test al, al
jne 0x409671
mov eax, ebx
call fcn.004065c4
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x40969b
lea eax, [ebp - 0x14]
mov edx, 2
call fcn.00406624
lea eax, [ebp - 4]
call fcn.004065c4
ret

Function at 0x40a04c
Capabilities:
Get system information on windows

Disassembly:
add esp, 0xffffffdc
push esp
call sub.kernel32.dll_GetSystemInfo
mov eax, dword [esp + 0x14]
add esp, 0x24
ret
Function at 0x40cff0
Capabilities:
Get common file path
Write file on windows

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffff3e0
push ebx
push esi
push edi
mov dword [ebp - 4], edx
mov edi, eax
push 0
push 0x80
push 4
push 0
push 0
push 0xc0000000
push 0x594e24
call sub.kernel32.dll_CreateFileA
mov esi, eax
cmp esi, 0xffffffff
jne 0x40d0aa
lea eax, [ebp - 0xc10]
push eax
push 0
push 0
push 0x8005
push 0
call sub.SHFolder.dll_SHGetFolderPathA
test eax, eax
jne 0x40d0aa
lea eax, [ebp - 0xc10]
call fcn.0040bec0
mov ebx, eax
test ebx, ebx
je 0x40d05e
cmp byte [ebp + ebx - 0xc11], 0x5c
je 0x40d067
mov byte [ebp + ebx - 0xc10], 0x5c
inc ebx
lea ecx, [ebp - 0xc]
lea edx, [ebp - 0x10]
mov eax, 0x594e24
call fcn.0040cfd0
mov ecx, dword [ebp - 0xc]
inc ecx
lea edx, [ebp + ebx - 0xc10]
mov eax, dword [ebp - 0x10]
call fcn.00404860
push 0
push 0x80
push 4
push 0
push 0
push 0xc0000000
lea eax, [ebp - 0xc10]
push eax
call sub.kernel32.dll_CreateFileA
mov esi, eax
cmp esi, 0xffffffff
je 0x40d1de
push 2
push 0
push 0
push esi
call sub.kernel32.dll_SetFilePointer
lea edx, [ebp - 0x410]
mov eax, 0x40d1e8
mov ecx, 2
call fcn.0040c220
mov ebx, eax
mov eax, 0x40d1ec
mov ecx, 0x20
mov edx, ebx
call fcn.0040c220
mov ebx, eax
lea eax, [ebp - 0xc20]
push eax
call sub.kernel32.dll_GetLocalTime
movzx eax, word [ebp - 0xc20]
mov edx, ebx
call fcn.0040c160
mov ebx, eax
mov byte [ebx], 0x2f
inc ebx
movzx eax, word [ebp - 0xc1e]
mov edx, ebx
call fcn.0040c160
mov ebx, eax
mov byte [ebx], 0x2f
inc ebx
movzx eax, word [ebp - 0xc1a]
mov edx, ebx
call fcn.0040c160
mov ebx, eax
mov byte [ebx], 0x20
inc ebx
movzx eax, word [ebp - 0xc18]
mov edx, ebx
call fcn.0040c160
mov ebx, eax
mov byte [ebx], 0x3a
inc ebx
cmp word [ebp - 0xc16], 0xa
jae 0x40d153
mov byte [ebx], 0x30
inc ebx
movzx eax, word [ebp - 0xc16]
mov edx, ebx
call fcn.0040c160
mov ebx, eax
mov byte [ebx], 0x3a
inc ebx
cmp word [ebp - 0xc14], 0xa
jae 0x40d175
mov byte [ebx], 0x30
inc ebx
movzx eax, word [ebp - 0xc14]
mov edx, ebx
call fcn.0040c160
mov ebx, eax
mov eax, 0x40d1ec
mov ecx, 0x20
mov edx, ebx
call fcn.0040c220
mov ebx, eax
mov eax, 0x40d1e8
mov ecx, 2
mov edx, ebx
call fcn.0040c220
mov ebx, eax
push 0
lea eax, [ebp - 8]
push eax
lea eax, [ebp - 0x410]
sub ebx, eax
push ebx
lea eax, [ebp - 0x410]
push eax
push esi
call sub.kernel32.dll_WriteFile_1
push 0
lea eax, [ebp - 8]
push eax
mov eax, dword [ebp - 4]
push eax
push edi
push esi
call sub.kernel32.dll_WriteFile_1
push esi
call sub.kernel32.dll_CloseHandle_1
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x40d230
Capabilities:
Query environment variable

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffff7f8
push ebx
mov eax, 0x594e24
call fcn.0040bef0
mov ebx, eax
test ebx, ebx
jbe 0x40d2d2
mov eax, dword [0x58c3fc]
call fcn.0040bec0
mov ecx, eax
inc ecx
lea edx, [ebx + 0x594e20]
mov eax, dword [0x58c3fc]
call fcn.00404860
push 0x3ff
lea eax, [ebp - 0x808]
push eax
push 0x40d2d8
call sub.kernel32.dll_GetEnvironmentVariableA
mov ebx, eax
test ebx, ebx
jbe 0x40d2d2
cmp byte [ebp + ebx - 0x809], 0x5c
je 0x40d29a
mov byte [ebp + ebx - 0x808], 0x5c
inc ebx
lea ecx, [ebp - 8]
lea edx, [ebp - 4]
mov eax, 0x594e24
call fcn.0040cfd0
mov ecx, dword [ebp - 8]
inc ecx
lea edx, [ebp + ebx - 0x808]
mov eax, dword [ebp - 4]
call fcn.00404860
mov edx, 0x594e24
lea eax, [ebp - 0x808]
mov ecx, 0x3ff
call fcn.00404860
pop ebx
mov esp, ebp
pop ebp
ret

Function at 0x41cfb4
Capabilities:
Encrypt data using rc4 prga

Disassembly:
cmp eax, edx
je 0x41d00d
test eax, edx
je 0x41d010
movzx ecx, word [edx]
cmp cx, word [eax]
je 0x41cfcb
movzx eax, word [eax]
sub eax, ecx
jmp 0x41cff2
push ebx
mov ebx, dword [eax - 4]
xor ecx, ecx
sub ebx, dword [edx - 4]
push ebx
adc ecx, 0xffffffff
and ecx, ebx
sub ecx, dword [eax - 4]
shl ecx, 1
sub eax, ecx
sub edx, ecx
mov ebx, dword [ecx + eax]
xor ebx, dword [ecx + edx]
jne 0x41cff3
add ecx, 4
js 0x41cfe3
pop eax
pop ebx
ret
bsf ebx, ebx
shr ebx, 4
add ebx, ebx
add ecx, ebx
jns 0x41cff0
movzx eax, word [ecx + eax]
movzx edx, word [ecx + edx]
sub eax, edx
pop ebx
pop ebx
jmp 0x41cff2
xor eax, eax
ret
test eax, eax
je 0x41d01c
test edx, edx
jne 0x41cfbc
mov eax, dword [eax - 4]
ret
sub eax, dword [edx - 4]
ret

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

Disassembly:
push ebx
push esi
push edi
mov ebx, edx
mov esi, eax
mov eax, esi
call fcn.00407218
mov edi, eax
push edi
call sub.kernel32.dll_GetFileAttributesW
cmp eax, 0xffffffff
je 0x41dd96
test ah, 4
je 0x41dd8f
test bl, bl
jne 0x41dd54
mov al, 1
jmp 0x41ddbd
test al, 0x10
je 0x41dd5c
xor eax, eax
jmp 0x41ddbd
push 0
push 0
push 3
push 0
push 1
push 0x80000000
push edi
call sub.kernel32.dll_CreateFileW
cmp eax, 0xffffffff
je 0x41dd80
push eax
call sub.kernel32.dll_CloseHandle_1
mov al, 1
jmp 0x41ddbd
call sub.kernel32.dll_GetLastError_2
mov ebx, eax
cmp ebx, 0x20
sete al
jmp 0x41ddbd
test al, 0x10
sete al
jmp 0x41ddbd
call sub.kernel32.dll_GetLastError_2
mov ebx, eax
cmp ebx, 2
je 0x41ddb7
cmp ebx, 3
je 0x41ddb7
cmp ebx, 0x7b
je 0x41ddb7
mov eax, esi
call fcn.0041dcec
test al, al
jne 0x41ddbb
xor eax, eax
jmp 0x41ddbd
mov al, 1
pop edi
pop esi
pop ebx
ret
Function at 0x41ddc4
Capabilities:
Check if file exists
Get file attributes

Disassembly:
push ebx
push esi
push edi
push ebp
push ecx
mov byte [esp], dl
mov edi, eax
xor ebx, ebx
mov eax, edi
call fcn.00407218
mov ebp, eax
push ebp
call sub.kernel32.dll_GetFileAttributesW
mov esi, eax
cmp esi, 0xffffffff
je 0x41de6b
test esi, 0x400
jne 0x41de00
test esi, 0x10
setne bl
jmp 0x41de8a
cmp byte [esp], 0
je 0x41de34
push 0
push 0x2000000
push 3
push 0
push 1
push 0x80000000
push ebp
call sub.kernel32.dll_CreateFileW
cmp eax, 0xffffffff
je 0x41de8a
push eax
call sub.kernel32.dll_CloseHandle_1
test esi, 0x10
setne bl
jmp 0x41de8a
test esi, 0x10
je 0x41de40
mov bl, 1
jmp 0x41de8a
push 0
push 0x2000000
push 3
push 0
push 1
push 0x80000000
push ebp
call sub.kernel32.dll_CreateFileW
cmp eax, 0xffffffff
je 0x41de67
push eax
call sub.kernel32.dll_CloseHandle_1
xor ebx, ebx
jmp 0x41de8a
mov bl, 1
jmp 0x41de8a
call sub.kernel32.dll_GetLastError_2
cmp eax, 2
je 0x41de84
cmp eax, 3
je 0x41de84
cmp eax, 0x7b
je 0x41de84
cmp eax, 0x35
jne 0x41de88
xor ebx, ebx
jmp 0x41de8a
mov bl, 1
mov eax, ebx
pop edx
pop ebp
pop edi
pop esi
pop ebx
ret

Function at 0x41dfac
Capabilities:
Check if file exists
Delete directory
Delete file
Get file attributes

Disassembly:
push ebx
push esi
push edi
push ebp
mov esi, eax
mov eax, esi
call fcn.00407218
mov ebp, eax
push ebp
call sub.kernel32.dll_DeleteFileW
cmp eax, 1
sbb ebx, ebx
inc ebx
test bl, bl
jne 0x41e001
call sub.kernel32.dll_GetLastError_2
mov edi, eax
push ebp
call sub.kernel32.dll_GetFileAttributesW
cmp eax, 0xffffffff
je 0x41dffb
test ah, 4
je 0x41dffb
test al, 0x10
je 0x41dffb
mov eax, esi
call fcn.00407218
push eax
call sub.kernel32.dll_RemoveDirectoryW
cmp eax, 1
sbb ebx, ebx
inc ebx
jmp 0x41e001
push edi
call sub.kernel32.dll_SetLastError
mov eax, ebx
pop ebp
pop edi
pop esi
pop ebx
ret

Function at 0x4223f0
Capabilities:
Get geographical location

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

Function at 0x42243c
Capabilities:
Get geographical location

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