joyce8/EMBER2024-capa huggingface dataset:
Function at 0x408eac
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 0x408faf
push dword fs:[eax]
mov dword fs:[eax], esp
push 0x594b84
call sub.kernel32.dll_EnterCriticalSection
cmp bx, word [0x594b9c]
jne 0x408ef8
mov eax, esi
mov edx, 0x594b9e
mov ecx, 0x55
call fcn.00407374
push 0x594b84
call sub.kernel32.dll_LeaveCriticalSection
jmp 0x408f99
push 0x594b84
call sub.kernel32.dll_LeaveCriticalSection
mov eax, esi
call fcn.004065f8
push 2
movzx eax, bx
push eax
call sub.kernel32.dll_IsValidLocale
test eax, eax
je 0x408f67
cmp byte [0x594b80], 0
je 0x408f2c
mov edx, esi
mov eax, ebx
call fcn.00408d90
jmp 0x408f67
mov edx, esi
mov eax, ebx
call fcn.00408b94
call sub.kernel32.dll_GetSystemDefaultUILanguage
cmp bx, ax
je 0x408f67
cmp dword [esi], 0
je 0x408f50
mov eax, esi
mov edx, 0x408fc8
call fcn.00407460
call sub.kernel32.dll_GetSystemDefaultUILanguage
lea edx, [ebp - 4]
call fcn.00408b94
mov edx, dword [ebp - 4]
mov eax, esi
call fcn.00407460
push 0x594b84
call sub.kernel32.dll_EnterCriticalSection
mov word [0x594b9c], bx
push 0xaa
mov eax, dword [esi]
call fcn.004072c8
push eax
push 0x594b9e
call sub.kernel32.dll_lstrcpynW
push 0x594b84
call sub.kernel32.dll_LeaveCriticalSection
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x408fb6
lea eax, [ebp - 4]
call fcn.004065f8
ret
Function at 0x4091e4
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.004066dc
xor eax, eax
push ebp
push 0x409409
push dword fs:[eax]
mov dword fs:[eax], esp
cmp dword [ebp - 4], 0
jne 0x409224
push 0x105
lea eax, [ebp - 0x21a]
push eax
push 0
call sub.kernel32.dll_GetModuleFileNameW
jmp 0x40923e
push 0x105
mov eax, dword [ebp - 4]
call fcn.004072c8
push eax
lea eax, [ebp - 0x21a]
push eax
call sub.kernel32.dll_lstrcpynW
cmp word [ebp - 0x21a], 0
je 0x4093f3
xor eax, eax
mov dword [ebp - 8], eax
lea eax, [ebp - 0xc]
push eax
push 0xf0019
push 0
push 0x409418
push 0x80000001
call sub.advapi32.dll_RegOpenKeyExW
test eax, eax
je 0x40930d
lea eax, [ebp - 0xc]
push eax
push 0xf0019
push 0
push 0x409418
push 0x80000002
call sub.advapi32.dll_RegOpenKeyExW
test eax, eax
je 0x40930d
lea eax, [ebp - 0xc]
push eax
push 0xf0019
push 0
push 0x409454
push 0x80000001
call sub.advapi32.dll_RegOpenKeyExW
test eax, eax
je 0x40930d
lea eax, [ebp - 0xc]
push eax
push 0xf0019
push 0
push 0x409454
push 0x80000002
call sub.advapi32.dll_RegOpenKeyExW
test eax, eax
je 0x40930d
lea eax, [ebp - 0xc]
push eax
push 0xf0019
push 0
push 0x409488
push 0x80000001
call sub.advapi32.dll_RegOpenKeyExW
test eax, eax
je 0x40930d
lea eax, [ebp - 0xc]
push eax
push 0xf0019
push 0
push 0x4094bc
push 0x80000001
call sub.advapi32.dll_RegOpenKeyExW
test eax, eax
jne 0x4093f3
xor eax, eax
push ebp
push 0x4093ec
push dword fs:[eax]
mov dword fs:[eax], esp
lea eax, [ebp - 0x21a]
mov edx, 0x105
call fcn.00408ff0
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 0x40937c
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.00407320
jmp 0x4093c7
lea eax, [ebp - 0x10]
push eax
push 0
push 0
push 0
push 0x4094fc
mov eax, dword [ebp - 0xc]
push eax
call sub.advapi32.dll_RegQueryValueExW
test eax, eax
jne 0x4093c7
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 0x4094fc
mov eax, dword [ebp - 0xc]
push eax
call sub.advapi32.dll_RegQueryValueExW
mov eax, ebx
mov edx, dword [ebp - 8]
call fcn.00407320
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x4093f3
cmp dword [ebp - 8], 0
je 0x4093e2
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 0x409410
lea eax, [ebp - 4]
call fcn.004065f8
ret
Function at 0x4096ec
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.004066dc
xor eax, eax
push ebp
push 0x4097ac
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.00407374
mov ecx, dword [ebp - 0x10]
mov eax, ebx
mov edx, dword [ebp - 4]
call fcn.004074b8
mov eax, dword [ebx]
call fcn.004095b4
test al, al
jne 0x409789
mov word [ebp - 8], 0
lea eax, [ebp - 0x14]
lea edx, [ebp - 0xc]
mov ecx, 4
call fcn.00407374
mov ecx, dword [ebp - 0x14]
mov eax, ebx
mov edx, dword [ebp - 4]
call fcn.004074b8
mov eax, dword [ebx]
call fcn.004095b4
test al, al
jne 0x409789
mov eax, ebx
call fcn.004065f8
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x4097b3
lea eax, [ebp - 0x14]
mov edx, 2
call fcn.00406658
lea eax, [ebp - 4]
call fcn.004065f8
ret

Function at 0x40a164
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 0x40d044
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 0x597e24
call sub.kernel32.dll_CreateFileA
mov esi, eax
cmp esi, 0xffffffff
jne 0x40d0fe
lea eax, [ebp - 0xc10]
push eax
push 0
push 0
push 0x8005
push 0
call sub.SHFolder.dll_SHGetFolderPathA
test eax, eax
jne 0x40d0fe
lea eax, [ebp - 0xc10]
call fcn.0040c03c
mov ebx, eax
test ebx, ebx
je 0x40d0b2
cmp byte [ebp + ebx - 0xc11], 0x5c
je 0x40d0bb
mov byte [ebp + ebx - 0xc10], 0x5c
inc ebx
lea ecx, [ebp - 0xc]
lea edx, [ebp - 0x10]
mov eax, 0x597e24
call fcn.0040d024
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 0x40d232
push 2
push 0
push 0
push esi
call sub.kernel32.dll_SetFilePointer
lea edx, [ebp - 0x410]
mov eax, 0x40d23c
mov ecx, 2
call fcn.0040c324
mov ebx, eax
mov eax, 0x40d240
mov ecx, 0x20
mov edx, ebx
call fcn.0040c324
mov ebx, eax
lea eax, [ebp - 0xc20]
push eax
call sub.kernel32.dll_GetLocalTime
movzx eax, word [ebp - 0xc20]
mov edx, ebx
call fcn.0040c274
mov ebx, eax
mov byte [ebx], 0x2f
inc ebx
movzx eax, word [ebp - 0xc1e]
mov edx, ebx
call fcn.0040c274
mov ebx, eax
mov byte [ebx], 0x2f
inc ebx
movzx eax, word [ebp - 0xc1a]
mov edx, ebx
call fcn.0040c274
mov ebx, eax
mov byte [ebx], 0x20
inc ebx
movzx eax, word [ebp - 0xc18]
mov edx, ebx
call fcn.0040c274
mov ebx, eax
mov byte [ebx], 0x3a
inc ebx
cmp word [ebp - 0xc16], 0xa
jae 0x40d1a7
mov byte [ebx], 0x30
inc ebx
movzx eax, word [ebp - 0xc16]
mov edx, ebx
call fcn.0040c274
mov ebx, eax
mov byte [ebx], 0x3a
inc ebx
cmp word [ebp - 0xc14], 0xa
jae 0x40d1c9
mov byte [ebx], 0x30
inc ebx
movzx eax, word [ebp - 0xc14]
mov edx, ebx
call fcn.0040c274
mov ebx, eax
mov eax, 0x40d240
mov ecx, 0x20
mov edx, ebx
call fcn.0040c324
mov ebx, eax
mov eax, 0x40d23c
mov ecx, 2
mov edx, ebx
call fcn.0040c324
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 0x40d284
Capabilities:
Query environment variable

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffff7f8
push ebx
mov eax, 0x597e24
call fcn.0040c058
mov ebx, eax
test ebx, ebx
jbe 0x40d326
mov eax, dword [0x58b3fc]
call fcn.0040c03c
mov ecx, eax
inc ecx
lea edx, [ebx + 0x597e20]
mov eax, dword [0x58b3fc]
call fcn.00404860
push 0x3ff
lea eax, [ebp - 0x808]
push eax
push 0x40d32c
call sub.kernel32.dll_GetEnvironmentVariableA
mov ebx, eax
test ebx, ebx
jbe 0x40d326
cmp byte [ebp + ebx - 0x809], 0x5c
je 0x40d2ee
mov byte [ebp + ebx - 0x808], 0x5c
inc ebx
lea ecx, [ebp - 8]
lea edx, [ebp - 4]
mov eax, 0x597e24
call fcn.0040d024
mov ecx, dword [ebp - 8]
inc ecx
lea edx, [ebp + ebx - 0x808]
mov eax, dword [ebp - 4]
call fcn.00404860
mov edx, 0x597e24
lea eax, [ebp - 0x808]
mov ecx, 0x3ff
call fcn.00404860
pop ebx
mov esp, ebp
pop ebp
ret

Function at 0x41cef4
Capabilities:
Encrypt data using rc4 prga

Disassembly:
cmp eax, edx
je 0x41cf4d
test eax, edx
je 0x41cf50
movzx ecx, word [edx]
cmp cx, word [eax]
je 0x41cf0b
movzx eax, word [eax]
sub eax, ecx
jmp 0x41cf32
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 0x41cf33
add ecx, 4
js 0x41cf23
pop eax
pop ebx
ret
bsf ebx, ebx
shr ebx, 4
add ebx, ebx
add ecx, ebx
jns 0x41cf30
movzx eax, word [ecx + eax]
movzx edx, word [ecx + edx]
sub eax, edx
pop ebx
pop ebx
jmp 0x41cf32
xor eax, eax
ret
test eax, eax
je 0x41cf5c
test edx, edx
jne 0x41cefc
mov eax, dword [eax - 4]
ret
sub eax, dword [edx - 4]
ret

Function at 0x41dc6c
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.004072c8
mov edi, eax
push edi
call sub.kernel32.dll_GetFileAttributesW
cmp eax, 0xffffffff
je 0x41dcd6
test ah, 4
je 0x41dccf
test bl, bl
jne 0x41dc94
mov al, 1
jmp 0x41dcfd
test al, 0x10
je 0x41dc9c
xor eax, eax
jmp 0x41dcfd
push 0
push 0
push 3
push 0
push 1
push 0x80000000
push edi
call sub.kernel32.dll_CreateFileW
cmp eax, 0xffffffff
je 0x41dcc0
push eax
call sub.kernel32.dll_CloseHandle_1
mov al, 1
jmp 0x41dcfd
call sub.kernel32.dll_GetLastError_2
mov ebx, eax
cmp ebx, 0x20
sete al
jmp 0x41dcfd
test al, 0x10
sete al
jmp 0x41dcfd
call sub.kernel32.dll_GetLastError_2
mov ebx, eax
cmp ebx, 2
je 0x41dcf7
cmp ebx, 3
je 0x41dcf7
cmp ebx, 0x7b
je 0x41dcf7
mov eax, esi
call fcn.0041dc2c
test al, al
jne 0x41dcfb
xor eax, eax
jmp 0x41dcfd
mov al, 1
pop edi
pop esi
pop ebx
ret
Function at 0x41dd04
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.004072c8
mov ebp, eax
push ebp
call sub.kernel32.dll_GetFileAttributesW
mov esi, eax
cmp esi, 0xffffffff
je 0x41ddab
test esi, 0x400
jne 0x41dd40
test esi, 0x10
setne bl
jmp 0x41ddca
cmp byte [esp], 0
je 0x41dd74
push 0
push 0x2000000
push 3
push 0
push 1
push 0x80000000
push ebp
call sub.kernel32.dll_CreateFileW
cmp eax, 0xffffffff
je 0x41ddca
push eax
call sub.kernel32.dll_CloseHandle_1
test esi, 0x10
setne bl
jmp 0x41ddca
test esi, 0x10
je 0x41dd80
mov bl, 1
jmp 0x41ddca
push 0
push 0x2000000
push 3
push 0
push 1
push 0x80000000
push ebp
call sub.kernel32.dll_CreateFileW
cmp eax, 0xffffffff
je 0x41dda7
push eax
call sub.kernel32.dll_CloseHandle_1
xor ebx, ebx
jmp 0x41ddca
mov bl, 1
jmp 0x41ddca
call sub.kernel32.dll_GetLastError_2
cmp eax, 2
je 0x41ddc4
cmp eax, 3
je 0x41ddc4
cmp eax, 0x7b
je 0x41ddc4
cmp eax, 0x35
jne 0x41ddc8
xor ebx, ebx
jmp 0x41ddca
mov bl, 1
mov eax, ebx
pop edx
pop ebp
pop edi
pop esi
pop ebx
ret

Function at 0x41dfe8
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.004072c8
mov ebp, eax
push ebp
call sub.kernel32.dll_DeleteFileW
cmp eax, 1
sbb ebx, ebx
inc ebx
test bl, bl
jne 0x41e03d
call sub.kernel32.dll_GetLastError_2
mov edi, eax
push ebp
call sub.kernel32.dll_GetFileAttributesW
cmp eax, 0xffffffff
je 0x41e037
test ah, 4
je 0x41e037
test al, 0x10
je 0x41e037
mov eax, esi
call fcn.004072c8
push eax
call sub.kernel32.dll_RemoveDirectoryW
cmp eax, 1
sbb ebx, ebx
inc ebx
jmp 0x41e03d
push edi
call sub.kernel32.dll_SetLastError
mov eax, ebx
pop ebp
pop edi
pop esi
pop ebx
ret

Function at 0x422500
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 0x422539
mov ecx, eax
dec ecx
lea edx, [ebp - 0x200]
mov eax, ebx
call fcn.00406764
jmp 0x422542
mov eax, ebx
mov edx, esi
call fcn.004069bc
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 4

Function at 0x42254c
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 0x42256e
movzx eax, word [esp]
jmp 0x422570
mov eax, edi
pop edx
pop edi
pop esi
pop ebx
ret
Function at 0x423234
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffff778
push ebx
push esi
xor ecx, ecx
mov dword [ebp - 4], ecx
xor ecx, ecx
push ebp
push 0x423359
push dword fs:[ecx]
mov dword fs:[ecx], esp
push 0x400
lea ecx, [ebp - 0x888]
call fcn.0042303c
mov esi, eax
mov eax, dword [0x5914f4]
cmp byte [eax], 0
je 0x423301
mov eax, dword [0x591008]
call fcn.00404c10
call fcn.00404810
push 0
push 0
push 0
push 0
push esi
lea eax, [ebp - 0x888]
push eax
push 0
push 1
call sub.kernel32.dll_WideCharToMultiByte_1
mov ebx, eax
push ebx
lea eax, [ebp - 4]
mov ecx, 1
mov edx, dword [0x423204]
call fcn.00408614
add esp, 4
push 0
push 0
push ebx
mov eax, dword [ebp - 4]
push eax
push esi
lea eax, [ebp - 0x888]
push eax
push 0
push 1
call sub.kernel32.dll_WideCharToMultiByte_1
push 0
lea eax, [ebp - 8]
push eax
push ebx
mov eax, dword [ebp - 4]
push eax
push 0xfffffffffffffff4
call sub.kernel32.dll_GetStdHandle_1
push eax
call sub.kernel32.dll_WriteFile_1
push 0
lea eax, [ebp - 8]
push eax
push 2
push 0x423374
push 0xfffffffffffffff4
call sub.kernel32.dll_GetStdHandle_1
push eax
call sub.kernel32.dll_WriteFile_1
jmp 0x42333d
push 0x40
lea eax, [ebp - 0x88]
push eax
mov eax, dword [0x590f70]
mov eax, dword [eax + 4]
push eax
mov eax, dword [0x594c4c]
call fcn.004086d8
push eax
call sub.user32.dll_LoadStringW_1
push 0x2010
lea eax, [ebp - 0x88]
push eax
lea eax, [ebp - 0x888]
push eax
push 0
call sub.user32.dll_MessageBoxW
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x423360
lea eax, [ebp - 4]
mov edx, dword [0x423204]
call fcn.00408620
ret

Function at 0x424acc
Capabilities:
Encode data using xor

Disassembly:
push ebx
push esi
push edi
push ebp
add esp, 0xfffffdf8
mov ebx, eax
mov eax, ebx
call fcn.00406ae4
mov ebp, eax
push ebp
push 0
push 0
mov ecx, ebx
xor edx, edx
mov eax, 0xfde9
call fcn.0040a144
mov edi, eax
cmp edi, 0x104
jbe 0x424a73
mov eax, edi
add eax, eax
call fcn.0040464c
mov esi, eax
jmp 0x424a75
mov esi, esp
push ebp
push esi
push edi
mov ecx, ebx
xor edx, edx
mov eax, 0xfde9
call fcn.0040a144
mov eax, esi
push eax
call sub.user32.dll_CharUpperW
xor ebx, ebx
mov eax, edi
dec eax
test eax, eax
jl 0x424ab0
inc eax
xor edx, edx
mov ecx, ebx
shl ecx, 5
shr ebx, 0x1b
or ecx, ebx
mov ebx, ecx
movzx ecx, word [esi + edx*2]
xor ebx, ecx
inc edx
dec eax
jne 0x424a9a
mov eax, esp
cmp esi, eax
je 0x424abd
mov eax, esi
call fcn.00404668
mov eax, ebx
add esp, 0x208
pop ebp
pop edi
pop esi
pop ebx
ret
push esi
push ebx
mov esi, eax
xor eax, eax
push esi
rol eax, 5
mov bl, byte [esi]
test bl, 0x80
jne 0x424af8
cmp bl, 0
je 0x424af4
cmp bl, 0x41
jl 0x424aef
cmp bl, 0x5a
jg 0x424aef
or bl, 0x20
xor al, bl
inc esi
jmp 0x424ad3
pop ecx
pop ebx
pop esi
ret
pop eax
pop ebx
pop esi
jmp 0x424a34

Function at 0x424dcc
Capabilities:
Get geographical location

Disassembly:
push ebx
add esp, 0xfffff800
mov ebx, ecx
mov word [esp], 0
push 0x400
lea ecx, [esp + 4]
push ecx
push edx
push eax
call sub.kernel32.dll_GetLocaleInfoW_1
mov eax, ebx
mov edx, esp
mov ecx, 0x400
call fcn.00407374
add esp, 0x800
pop ebx
ret
Function at 0x425090
Capabilities:
Query environment variable

Disassembly:
push ebx
push esi
push edi
push ebp
add esp, 0xfffff800
mov esi, edx
mov edi, eax
mov eax, esi
call fcn.004065f8
push 0x400
lea eax, [esp + 4]
push eax
mov eax, edi
call fcn.004072c8
mov ebp, eax
push ebp
call sub.kernel32.dll_GetEnvironmentVariableW
mov ebx, eax
cmp ebx, 0x400
jge 0x4250d5
mov edx, esp
mov eax, esi
mov ecx, ebx
call fcn.00406764
jmp 0x4250ee
mov edx, ebx
dec edx
mov eax, esi
call fcn.004073e0
push ebx
mov eax, dword [esi]
call fcn.004072c8
push eax
push ebp
call sub.kernel32.dll_GetEnvironmentVariableW
add esp, 0x800
pop ebp
pop edi
pop esi
pop ebx
ret

Function at 0x427f20
Capabilities:
Query environment variable

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffff8
push ebx
mov ebx, eax
mov byte [ebp - 1], 0
call sub.kernel32.dll_GetEnvironmentStringsW
mov dword [ebp - 8], eax
cmp dword [ebp - 8], 0
je 0x427f75
xor eax, eax
push ebp
push 0x427f6e
push dword fs:[eax]
mov dword fs:[eax], esp
mov edx, dword [ebp - 8]
mov eax, ebx
call fcn.0042b440
mov byte [ebp - 1], 1
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x427f75
mov eax, dword [ebp - 8]
push eax
call sub.kernel32.dll_FreeEnvironmentStringsW
ret
movzx eax, byte [ebp - 1]
pop ebx
pop ecx
pop ecx
pop ebp
ret

Function at 0x427ff0
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.004065f8
test esi, esi
jne 0x428026
push 0x105
lea eax, [esp + 4]
push eax
push 0
call sub.kernel32.dll_GetModuleFileNameW_1
mov ecx, eax
mov edx, esp
mov eax, ebx
call fcn.00406764
jmp 0x428044
call sub.kernel32.dll_GetCommandLineW_1
mov edi, eax
mov edx, ebx
mov eax, edi
call fcn.00427e60
mov edi, eax
test esi, esi
je 0x428044
cmp dword [ebx], 0
je 0x428044
dec esi
jmp 0x42802d
add esp, 0x20c
pop edi
pop esi
pop ebx
ret
Function at 0x428050
Capabilities:
Create process on windows

Disassembly:
push ebp
mov ebp, esp
add esp, 0xffffff98
push ebx
push esi
push edi
xor ebx, ebx
mov dword [ebp - 4], ebx
mov dword [ebp - 8], ebx
mov esi, ecx
mov edi, edx
mov ebx, eax
xor eax, eax
push ebp
push 0x4281a9
push dword fs:[eax]
mov dword fs:[eax], esp
mov byte [ebp - 9], 0
xor eax, eax
mov dword [esi], eax
test ebx, ebx
je 0x42818e
lea eax, [ebp - 4]
mov edx, ebx
call fcn.00406a04
mov eax, dword [ebp - 4]
cmp word [eax], 0x22
je 0x4280b2
push 0x4281c8
push dword [ebp - 4]
push 0x4281c8
lea eax, [ebp - 4]
mov edx, 3
call fcn.00407540
lea eax, [ebp - 8]
push eax
mov ecx, 0x4281d8
mov edx, edi
mov eax, dword [ebp - 4]
call fcn.0042afa0
mov eax, dword [ebp - 8]
call fcn.004072c8
mov ebx, eax
lea eax, [ebp - 0x58]
mov edx, 0x44
call fcn.0042a710
mov dword [ebp - 0x58], 0x44
mov word [ebp - 0x28], 1
lea eax, [ebp - 0x68]
mov edx, 0x10
call fcn.0042a710
lea eax, [ebp - 0x68]
push eax
lea eax, [ebp - 0x58]
push eax
push 0
push 0
push 0
push 0xffffffffffffffff
push 0
push 0
push ebx
push 0
call sub.kernel32.dll_CreateProcessW
test eax, eax
je 0x42818e
mov eax, dword [ebp - 0x68]
mov dword [ebp - 0x10], eax
xor eax, eax
push ebp
push 0x428187
push dword fs:[eax]
mov dword fs:[eax], esp
mov eax, dword [ebp - 0x64]
push eax
call sub.kernel32.dll_CloseHandle_1
push 0xffffffffffffffff
mov eax, dword [ebp - 0x10]
push eax
call sub.kernel32.dll_WaitForSingleObject
cmp eax, 0xffffffff
jne 0x42814a
call fcn.00405de4
jmp 0x42818e
xor eax, eax
mov dword [ebp - 0x14], eax
lea eax, [ebp - 0x14]
push eax
mov eax, dword [ebp - 0x10]
push eax
call sub.kernel32.dll_GetExitCodeProcess
test eax, eax
jne 0x428167
call fcn.00405de4
jmp 0x42818e
mov eax, dword [ebp - 0x14]
mov dword [esi], eax
mov byte [ebp - 9], 1
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x42818e
mov eax, dword [ebp - 0x10]
push eax
call sub.kernel32.dll_CloseHandle_1
ret
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x4281b0
lea eax, [ebp - 8]
mov edx, 2
call fcn.00406658
ret

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

Disassembly:
push ebx
mov ebx, eax
mov eax, ebx
call fcn.004072c8
push eax
call sub.kernel32.dll_GetFileAttributesW
cmp eax, 0xffffffff
je 0x42843c
test al, 0x10
sete al
pop ebx
ret
xor eax, eax
pop ebx
ret

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

Disassembly:
push ebx
mov ebx, eax
mov eax, ebx
call fcn.004072c8
push eax
call sub.kernel32.dll_GetFileAttributesW
cmp eax, 0xffffffff
je 0x4284b0
test eax, 0x10
seta al
pop ebx
ret
xor eax, eax
pop ebx
ret
Function at 0x4291f0
Capabilities:
Extract resource via kernel32 functions

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffff8
push ebx
push esi
push edi
mov dword [ebp - 4], ecx
mov esi, edx
mov ebx, eax
mov eax, dword [ebp + 0xc]
push eax
mov eax, dword [ebp - 4]
push eax
push esi
call sub.kernel32.dll_FindResourceW
mov edi, eax
mov dword [ebx + 0x10], edi
test edi, edi
jne 0x42921e
push ebp
call fcn.00429150
pop ecx
mov eax, dword [ebx + 0x10]
push eax
push esi
call sub.kernel32.dll_LoadResource
mov edi, eax
mov dword [ebx + 0x14], edi
test edi, edi
jne 0x429238
push ebp
call fcn.00429150
pop ecx
mov edi, ebx
mov eax, dword [ebx + 0x14]
push eax
call sub.kernel32.dll_LockResource
mov dword [ebp - 8], eax
mov eax, dword [ebx + 0x10]
push eax
push esi
call sub.kernel32.dll_SizeofResource
mov edx, dword [ebp - 8]
mov dword [edi + 4], edx
mov dword [edi + 8], eax
pop edi
pop esi
pop ebx
pop ecx
pop ecx
pop ebp
ret 8

Function at 0x42a720
Capabilities:
Encrypt data using rc4 prga

Disassembly:
push esi
push edi
add esp, 0xffffffc8
mov dword [esp + 4], ecx
mov dword [esp], edx
mov esi, eax
mov edi, dword [esp + 4]
test edi, edi
jle 0x42a89b
mov eax, 0x42a8a8
mov dword [esp + 8], eax
movzx eax, word [esi]
mov edx, dword [esp + 8]
cmp ax, 0xff
ja 0x42a756
movzx eax, ax
bt dword [edx], eax
setb al
mov byte [esp + 0xc], al
cmp byte [esp + 0xc], 0
je 0x42a768
mov al, 1
jmp 0x42a790
mov eax, 0x42a8c8
mov dword [esp + 0x10], eax
movzx eax, word [esi]
mov edx, dword [esp + 0x10]
cmp ax, 0xff
ja 0x42a784
movzx eax, ax
bt dword [edx], eax
setb al
mov byte [esp + 0x14], al
movzx eax, byte [esp + 0x14]
test al, al
je 0x42a798
mov dl, 1
jmp 0x42a7fc
mov eax, 0x42a8a8
mov dword [esp + 0x18], eax
movzx eax, word [esi + 2]
mov edx, dword [esp + 0x18]
cmp ax, 0xff
ja 0x42a7b5
movzx eax, ax
bt dword [edx], eax
setb al
mov byte [esp + 0x1c], al
cmp byte [esp + 0x1c], 0
je 0x42a7ca
mov byte [esp + 0x25], 1
jmp 0x42a7f7
mov eax, 0x42a8c8
mov dword [esp + 0x20], eax
movzx eax, word [esi + 2]
mov edx, dword [esp + 0x20]
cmp ax, 0xff
ja 0x42a7e7
movzx eax, ax
bt dword [edx], eax
setb al
mov byte [esp + 0x24], al
movzx eax, byte [esp + 0x24]
mov byte [esp + 0x25], al
movzx edx, byte [esp + 0x25]
test dl, dl
jne 0x42a89b
mov eax, 0x42a8e8
mov dword [esp + 0x28], eax
movzx eax, word [esi]
mov edx, dword [esp + 0x28]
cmp ax, 0xff
ja 0x42a820
movzx eax, ax
bt dword [edx], eax
setb al
mov byte [esp + 0x2c], al
cmp byte [esp + 0x2c], 0
jne 0x42a835
mov byte [esp + 0x35], 1
jmp 0x42a864
mov eax, 0x42a8e8
mov dword [esp + 0x30], eax
movzx eax, word [esi + 2]
mov edx, dword [esp + 0x30]
cmp ax, 0xff
ja 0x42a852
movzx eax, ax
bt dword [edx], eax
setb al
mov byte [esp + 0x34], al
movzx eax, byte [esp + 0x34]
xor al, 1
mov byte [esp + 0x35], al
cmp byte [esp + 0x35], 0
jne 0x42a89b
movzx eax, byte [esi]
movzx eax, word [eax*2 + 0x58be44]
shl eax, 4
movzx edx, byte [esi + 2]
movzx edx, word [edx*2 + 0x58be44]
add al, dl
mov edx, dword [esp]
mov byte [edx], al
inc dword [esp]
add esi, 4
dec edi
test edi, edi
jg 0x42a73a
mov eax, dword [esp + 4]
sub eax, edi
add esp, 0x38
pop edi
pop esi
ret