joyce8/EMBER2024-capa huggingface dataset:
Function at 0x4090e0
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.004066f4
xor eax, eax
push ebp
push 0x409305
push dword fs:[eax]
mov dword fs:[eax], esp
cmp dword [ebp - 4], 0
jne 0x409120
push 0x105
lea eax, [ebp - 0x21a]
push eax
push 0
call sub.kernel32.dll_GetModuleFileNameW
jmp 0x40913a
push 0x105
mov eax, dword [ebp - 4]
call fcn.00407214
push eax
lea eax, [ebp - 0x21a]
push eax
call sub.kernel32.dll_lstrcpynW
cmp word [ebp - 0x21a], 0
je 0x4092ef
xor eax, eax
mov dword [ebp - 8], eax
lea eax, [ebp - 0xc]
push eax
push 0xf0019
push 0
push 0x409314
push 0x80000001
call sub.advapi32.dll_RegOpenKeyExW
test eax, eax
je 0x409209
lea eax, [ebp - 0xc]
push eax
push 0xf0019
push 0
push 0x409314
push 0x80000002
call sub.advapi32.dll_RegOpenKeyExW
test eax, eax
je 0x409209
lea eax, [ebp - 0xc]
push eax
push 0xf0019
push 0
push 0x409350
push 0x80000001
call sub.advapi32.dll_RegOpenKeyExW
test eax, eax
je 0x409209
lea eax, [ebp - 0xc]
push eax
push 0xf0019
push 0
push 0x409350
push 0x80000002
call sub.advapi32.dll_RegOpenKeyExW
test eax, eax
je 0x409209
lea eax, [ebp - 0xc]
push eax
push 0xf0019
push 0
push 0x409384
push 0x80000001
call sub.advapi32.dll_RegOpenKeyExW
test eax, eax
je 0x409209
lea eax, [ebp - 0xc]
push eax
push 0xf0019
push 0
push 0x4093b8
push 0x80000001
call sub.advapi32.dll_RegOpenKeyExW
test eax, eax
jne 0x4092ef
xor eax, eax
push ebp
push 0x4092e8
push dword fs:[eax]
mov dword fs:[eax], esp
lea eax, [ebp - 0x21a]
mov edx, 0x105
call fcn.00408eec
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 0x409278
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.0040726c
jmp 0x4092c3
lea eax, [ebp - 0x10]
push eax
push 0
push 0
push 0
push 0x4093f8
mov eax, dword [ebp - 0xc]
push eax
call sub.advapi32.dll_RegQueryValueExW
test eax, eax
jne 0x4092c3
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 0x4093f8
mov eax, dword [ebp - 0xc]
push eax
call sub.advapi32.dll_RegQueryValueExW
mov eax, ebx
mov edx, dword [ebp - 8]
call fcn.0040726c
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x4092ef
cmp dword [ebp - 8], 0
je 0x4092de
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 0x40930c
lea eax, [ebp - 4]
call fcn.00406610
ret
Function at 0x4095e8
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.004066f4
xor eax, eax
push ebp
push 0x4096a8
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.004072c0
mov ecx, dword [ebp - 0x10]
mov eax, ebx
mov edx, dword [ebp - 4]
call fcn.00407404
mov eax, dword [ebx]
call fcn.004094b0
test al, al
jne 0x409685
mov word [ebp - 8], 0
lea eax, [ebp - 0x14]
lea edx, [ebp - 0xc]
mov ecx, 4
call fcn.004072c0
mov ecx, dword [ebp - 0x14]
mov eax, ebx
mov edx, dword [ebp - 4]
call fcn.00407404
mov eax, dword [ebx]
call fcn.004094b0
test al, al
jne 0x409685
mov eax, ebx
call fcn.00406610
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x4096af
lea eax, [ebp - 0x14]
mov edx, 2
call fcn.00406670
lea eax, [ebp - 4]
call fcn.00406610
ret

Function at 0x40a060
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 0x5e4e24
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, 0x5e4e24
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, 0x5e4e24
call fcn.0040bef0
mov ebx, eax
test ebx, ebx
jbe 0x40d2d2
mov eax, dword [0x5da404]
call fcn.0040bec0
mov ecx, eax
inc ecx
lea edx, [ebx + 0x5e4e20]
mov eax, dword [0x5da404]
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, 0x5e4e24
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, 0x5e4e24
lea eax, [ebp - 0x808]
mov ecx, 0x3ff
call fcn.00404860
pop ebx
mov esp, ebp
pop ebp
ret

Function at 0x41caa0
Capabilities:
Encrypt data using rc4 prga

Disassembly:
cmp eax, edx
je 0x41caf9
test eax, edx
je 0x41cafc
movzx ecx, word [edx]
cmp cx, word [eax]
je 0x41cab7
movzx eax, word [eax]
sub eax, ecx
jmp 0x41cade
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 0x41cadf
add ecx, 4
js 0x41cacf
pop eax
pop ebx
ret
bsf ebx, ebx
shr ebx, 4
add ebx, ebx
add ecx, ebx
jns 0x41cadc
movzx eax, word [ecx + eax]
movzx edx, word [ecx + edx]
sub eax, edx
pop ebx
pop ebx
jmp 0x41cade
xor eax, eax
ret
test eax, eax
je 0x41cb08
test edx, edx
jne 0x41caa8
mov eax, dword [eax - 4]
ret
sub eax, dword [edx - 4]
ret

Function at 0x41d868
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.00407214
mov edi, eax
push edi
call sub.kernel32.dll_GetFileAttributesW
cmp eax, 0xffffffff
je 0x41d8d2
test ah, 4
je 0x41d8cb
test bl, bl
jne 0x41d890
mov al, 1
jmp 0x41d8f9
test al, 0x10
je 0x41d898
xor eax, eax
jmp 0x41d8f9
push 0
push 0
push 3
push 0
push 1
push 0x80000000
push edi
call sub.kernel32.dll_CreateFileW
cmp eax, 0xffffffff
je 0x41d8bc
push eax
call sub.kernel32.dll_CloseHandle_1
mov al, 1
jmp 0x41d8f9
call sub.kernel32.dll_GetLastError_2
mov ebx, eax
cmp ebx, 0x20
sete al
jmp 0x41d8f9
test al, 0x10
sete al
jmp 0x41d8f9
call sub.kernel32.dll_GetLastError_2
mov ebx, eax
cmp ebx, 2
je 0x41d8f3
cmp ebx, 3
je 0x41d8f3
cmp ebx, 0x7b
je 0x41d8f3
mov eax, esi
call fcn.0041d828
test al, al
jne 0x41d8f7
xor eax, eax
jmp 0x41d8f9
mov al, 1
pop edi
pop esi
pop ebx
ret
Function at 0x41d900
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.00407214
mov ebp, eax
push ebp
call sub.kernel32.dll_DeleteFileW
cmp eax, 1
sbb ebx, ebx
inc ebx
test bl, bl
jne 0x41d955
call sub.kernel32.dll_GetLastError_2
mov edi, eax
push ebp
call sub.kernel32.dll_GetFileAttributesW
cmp eax, 0xffffffff
je 0x41d94f
test ah, 4
je 0x41d94f
test al, 0x10
je 0x41d94f
mov eax, esi
call fcn.00407214
push eax
call sub.kernel32.dll_RemoveDirectoryW
cmp eax, 1
sbb ebx, ebx
inc ebx
jmp 0x41d955
push edi
call sub.kernel32.dll_SetLastError
mov eax, ebx
pop ebp
pop edi
pop esi
pop ebx
ret

Function at 0x421c70
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 0x421ca9
mov ecx, eax
dec ecx
lea edx, [ebp - 0x200]
mov eax, ebx
call fcn.0040677c
jmp 0x421cb2
mov eax, ebx
mov edx, esi
call fcn.004069d4
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 4

Function at 0x421cbc
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 0x421cde
movzx eax, word [esp]
jmp 0x421ce0
mov eax, edi
pop edx
pop edi
pop esi
pop ebx
ret

Function at 0x4229a4
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 0x422ac9
push dword fs:[ecx]
mov dword fs:[ecx], esp
push 0x400
lea ecx, [ebp - 0x888]
call fcn.004227ac
mov esi, eax
mov eax, dword [0x5de2dc]
cmp byte [eax], 0
je 0x422a71
mov eax, dword [0x5ddce4]
call fcn.00404c54
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 [0x422974]
call fcn.00408510
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 0x422ae4
push 0xfffffffffffffff4
call sub.kernel32.dll_GetStdHandle_1
push eax
call sub.kernel32.dll_WriteFile_1
jmp 0x422aad
push 0x40
lea eax, [ebp - 0x88]
push eax
mov eax, dword [0x5ddc3c]
mov eax, dword [eax + 4]
push eax
mov eax, dword [0x5e1c4c]
call fcn.004085d4
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 0x422ad0
lea eax, [ebp - 4]
mov edx, dword [0x422974]
call fcn.0040851c
ret
Function at 0x424268
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.00406afc
mov ebp, eax
push ebp
push 0
push 0
mov ecx, ebx
xor edx, edx
mov eax, 0xfde9
call fcn.0040a040
mov edi, eax
cmp edi, 0x104
jbe 0x42420f
mov eax, edi
add eax, eax
call fcn.0040464c
mov esi, eax
jmp 0x424211
mov esi, esp
push ebp
push esi
push edi
mov ecx, ebx
xor edx, edx
mov eax, 0xfde9
call fcn.0040a040
mov eax, esi
push eax
call sub.user32.dll_CharUpperW
xor ebx, ebx
mov eax, edi
dec eax
test eax, eax
jl 0x42424c
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 0x424236
mov eax, esp
cmp esi, eax
je 0x424259
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 0x424294
cmp bl, 0
je 0x424290
cmp bl, 0x41
jl 0x42428b
cmp bl, 0x5a
jg 0x42428b
or bl, 0x20
xor al, bl
inc esi
jmp 0x42426f
pop ecx
pop ebx
pop esi
ret
pop eax
pop ebx
pop esi
jmp 0x4241d0

Function at 0x424568
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.004072c0
add esp, 0x800
pop ebx
ret

Function at 0x4248b0
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.00406610
push 0x400
lea eax, [esp + 4]
push eax
mov eax, edi
call fcn.00407214
mov ebp, eax
push ebp
call sub.kernel32.dll_GetEnvironmentVariableW
mov ebx, eax
cmp ebx, 0x400
jge 0x4248f5
mov edx, esp
mov eax, esi
mov ecx, ebx
call fcn.0040677c
jmp 0x42490e
mov edx, ebx
dec edx
mov eax, esi
call fcn.0040732c
push ebx
mov eax, dword [esi]
call fcn.00407214
push eax
push ebp
call sub.kernel32.dll_GetEnvironmentVariableW
add esp, 0x800
pop ebp
pop edi
pop esi
pop ebx
ret

Function at 0x427e00
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 0x427e55
xor eax, eax
push ebp
push 0x427e4e
push dword fs:[eax]
mov dword fs:[eax], esp
mov edx, dword [ebp - 8]
mov eax, ebx
call fcn.0042be50
mov byte [ebp - 1], 1
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x427e55
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 0x427ed0
Capabilities:
Accept command line arguments

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffdf4
push ebx
push esi
push edi
mov ebx, edx
mov esi, eax
mov eax, ebx
call fcn.00406610
test esi, esi
jne 0x427f0f
push 0x105
lea eax, [ebp - 0x20a]
push eax
push 0
call sub.kernel32.dll_GetModuleFileNameW_1
mov ecx, eax
lea edx, [ebp - 0x20a]
mov eax, ebx
call fcn.0040677c
jmp 0x427f2d
call sub.kernel32.dll_GetCommandLineW_1
mov edi, eax
mov edx, ebx
mov eax, edi
call fcn.00427d40
mov edi, eax
test esi, esi
je 0x427f2d
cmp dword [ebx], 0
je 0x427f2d
dec esi
jmp 0x427f16
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret

Function at 0x427f40
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 0x428099
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 0x42807e
lea eax, [ebp - 4]
mov edx, ebx
call fcn.00406a1c
mov eax, dword [ebp - 4]
cmp word [eax], 0x22
je 0x427fa2
push 0x4280b8
push dword [ebp - 4]
push 0x4280b8
lea eax, [ebp - 4]
mov edx, 3
call fcn.0040748c
lea eax, [ebp - 8]
push eax
mov ecx, 0x4280c8
mov edx, edi
mov eax, dword [ebp - 4]
call fcn.0042b9b0
mov eax, dword [ebp - 8]
call fcn.00407214
mov ebx, eax
lea eax, [ebp - 0x58]
mov edx, 0x44
call fcn.0042b030
mov dword [ebp - 0x58], 0x44
mov word [ebp - 0x28], 1
lea eax, [ebp - 0x68]
mov edx, 0x10
call fcn.0042b030
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 0x42807e
mov eax, dword [ebp - 0x68]
mov dword [ebp - 0x10], eax
xor eax, eax
push ebp
push 0x428077
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 0x42803a
call fcn.00405dfc
jmp 0x42807e
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 0x428057
call fcn.00405dfc
jmp 0x42807e
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 0x42807e
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 0x4280a0
lea eax, [ebp - 8]
mov edx, 2
call fcn.00406670
ret

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

Disassembly:
push ebp
mov ebp, esp
push ebx
mov ebx, eax
mov eax, ebx
call fcn.00407214
push eax
call sub.kernel32.dll_GetFileAttributesW
cmp eax, 0xffffffff
je 0x428360
test al, 0x10
sete al
pop ebx
pop ebp
ret
xor eax, eax
pop ebx
pop ebp
ret
Function at 0x4283a0
Capabilities:
Check if file exists
Delete file
Get file attributes
Set file attributes

Disassembly:
push ebp
mov ebp, esp
push ebx
push esi
push edi
mov esi, eax
mov eax, esi
call fcn.00407214
mov edi, eax
push edi
call sub.kernel32.dll_DeleteFileW
cmp eax, 1
sbb ebx, ebx
inc ebx
test bl, bl
jne 0x4283f7
push edi
call sub.kernel32.dll_GetFileAttributesW
mov edi, eax
cmp edi, 0xffffffff
je 0x4283f7
test edi, 1
je 0x4283f7
and edi, 0xfffffffe
push edi
mov eax, esi
call fcn.00407214
mov ebx, eax
push ebx
call sub.kernel32.dll_SetFileAttributesW
push ebx
call sub.kernel32.dll_DeleteFileW
cmp eax, 1
sbb eax, eax
inc eax
mov ebx, eax
mov eax, ebx
pop edi
pop esi
pop ebx
pop ebp
ret

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

Disassembly:
push ebp
mov ebp, esp
push ebx
mov ebx, eax
mov eax, ebx
call fcn.00407214
push eax
call sub.kernel32.dll_GetFileAttributesW
cmp eax, 0xffffffff
je 0x428424
test eax, 0x10
seta al
pop ebx
pop ebp
ret
xor eax, eax
pop ebx
pop ebp
ret

Function at 0x4294e0
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 0x42950e
push ebp
call fcn.00429430
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 0x429528
push ebp
call fcn.00429430
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 0x42b040
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 0x42b1bb
mov eax, 0x42b1c8
mov dword [esp + 8], eax
movzx eax, word [esi]
mov edx, dword [esp + 8]
cmp ax, 0xff
ja 0x42b076
movzx eax, ax
bt dword [edx], eax
setb al
mov byte [esp + 0xc], al
cmp byte [esp + 0xc], 0
je 0x42b088
mov al, 1
jmp 0x42b0b0
mov eax, 0x42b1e8
mov dword [esp + 0x10], eax
movzx eax, word [esi]
mov edx, dword [esp + 0x10]
cmp ax, 0xff
ja 0x42b0a4
movzx eax, ax
bt dword [edx], eax
setb al
mov byte [esp + 0x14], al
movzx eax, byte [esp + 0x14]
test al, al
je 0x42b0b8
mov dl, 1
jmp 0x42b11c
mov eax, 0x42b1c8
mov dword [esp + 0x18], eax
movzx eax, word [esi + 2]
mov edx, dword [esp + 0x18]
cmp ax, 0xff
ja 0x42b0d5
movzx eax, ax
bt dword [edx], eax
setb al
mov byte [esp + 0x1c], al
cmp byte [esp + 0x1c], 0
je 0x42b0ea
mov byte [esp + 0x25], 1
jmp 0x42b117
mov eax, 0x42b1e8
mov dword [esp + 0x20], eax
movzx eax, word [esi + 2]
mov edx, dword [esp + 0x20]
cmp ax, 0xff
ja 0x42b107
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 0x42b1bb
mov eax, 0x42b208
mov dword [esp + 0x28], eax
movzx eax, word [esi]
mov edx, dword [esp + 0x28]
cmp ax, 0xff
ja 0x42b140
movzx eax, ax
bt dword [edx], eax
setb al
mov byte [esp + 0x2c], al
cmp byte [esp + 0x2c], 0
jne 0x42b155
mov byte [esp + 0x35], 1
jmp 0x42b184
mov eax, 0x42b208
mov dword [esp + 0x30], eax
movzx eax, word [esi + 2]
mov edx, dword [esp + 0x30]
cmp ax, 0xff
ja 0x42b172
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 0x42b1bb
movzx eax, byte [esi]
movzx eax, word [eax*2 + 0x5daef8]
shl eax, 4
movzx edx, byte [esi + 2]
movzx edx, word [edx*2 + 0x5daef8]
add al, dl
mov edx, dword [esp]
mov byte [edx], al
inc dword [esp]
add esi, 4
dec edi
test edi, edi
jg 0x42b05a
mov eax, dword [esp + 4]
sub eax, edi
add esp, 0x38
pop edi
pop esi
ret
Function at 0x42e490
Capabilities:
Get file size

Disassembly:
push ebp
mov ebp, esp
add esp, 0xffffffdc
mov word [ebp - 0x12], dx
mov dword [ebp - 0x10], eax
xor eax, eax
mov dword [ebp - 0x18], eax
mov dword [ebp - 0xc], 0xffffffff
xor eax, eax
mov dword [ebp - 8], eax
movzx edx, word [ebp - 0x12]
mov eax, dword [ebp - 0x10]
call fcn.0041d6bc
mov dword [ebp - 0xc], eax
cmp dword [ebp - 0xc], 0xffffffff
je 0x42e57a
mov ax, word [ebp - 0x12]
and ax, 0xf
cmp ax, 2
jne 0x42e4e5
mov dword [ebp - 0x1c], 8
mov dword [ebp - 0x20], 1
jmp 0x42e4f3
mov dword [ebp - 0x1c], 2
mov dword [ebp - 0x20], 4
push 0
push 0
push 0
mov eax, dword [ebp - 0x1c]
push eax
push 0
mov eax, dword [ebp - 0xc]
push eax
call sub.kernel32.dll_CreateFileMappingW
mov dword [ebp - 8], eax
cmp dword [ebp - 8], 0
jne 0x42e51a
push ebp
call fcn.0042e430
pop ecx
jmp 0x42e57a
push 0
push 0
push 0
mov eax, dword [ebp - 0x20]
push eax
mov eax, dword [ebp - 8]
push eax
call sub.kernel32.dll_MapViewOfFile
mov dword [ebp - 4], eax
cmp dword [ebp - 4], 0
jne 0x42e53f
push ebp
call fcn.0042e430
pop ecx
jmp 0x42e57a
push 0
mov eax, dword [ebp - 0xc]
push eax
call sub.kernel32.dll_GetFileSize
mov dword [ebp - 0x24], eax
cmp dword [ebp - 0x24], 0xffffffff
jne 0x42e55c
push ebp
call fcn.0042e430
pop ecx
jmp 0x42e57a
mov eax, dword [ebp - 8]
push eax
mov eax, dword [ebp - 4]
push eax
mov eax, dword [ebp - 0x24]
push eax
mov ecx, dword [ebp - 0xc]
mov dl, 1
mov eax, dword [0x42e1ec]
call fcn.0042e9e0
mov dword [ebp - 0x18], eax
mov eax, dword [ebp - 0x18]
mov esp, ebp
pop ebp
ret