joyce8/EMBER2024-capa huggingface dataset:
Function at 0x409e0c
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 0x409f12
push dword fs:[eax]
mov dword fs:[eax], esp
push 0x431c0c
call sub.kernel32.dll_EnterCriticalSection
cmp bx, word [0x431c24]
jne 0x409e58
mov eax, esi
mov edx, 0x431c26
mov ecx, 0x55
call fcn.004076fc
push 0x431c0c
call sub.kernel32.dll_LeaveCriticalSection
jmp 0x409efa
push 0x431c0c
call sub.kernel32.dll_LeaveCriticalSection
mov eax, esi
call fcn.00407120
push 2
movzx eax, bx
push eax
call sub.kernel32.dll_IsValidLocale
test eax, eax
je 0x409ec7
cmp byte [0x431c08], 0
je 0x409e8c
mov edx, esi
mov eax, ebx
call fcn.00409cf0
jmp 0x409ec7
mov edx, esi
mov eax, ebx
call fcn.00409af0
call sub.kernel32.dll_GetSystemDefaultUILanguage
cmp bx, ax
je 0x409ec7
cmp dword [esi], 0
je 0x409eb0
mov eax, esi
mov edx, 0x409f2c
call fcn.004077d4
call sub.kernel32.dll_GetSystemDefaultUILanguage
lea edx, [ebp - 4]
call fcn.00409af0
mov edx, dword [ebp - 4]
mov eax, esi
call fcn.004077d4
push 0x431c0c
call sub.kernel32.dll_EnterCriticalSection
mov word [0x431c24], bx
mov eax, dword [esi]
call fcn.00407670
mov ecx, eax
mov eax, 0x431c26
mov edx, 0xaa
call fcn.0040996c
push 0x431c0c
call sub.kernel32.dll_LeaveCriticalSection
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x409f19
lea eax, [ebp - 4]
call fcn.00407120
pop eax
jmp eax
Function at 0x40a154
Capabilities:
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffde0
push ebx
push esi
xor ecx, ecx
mov dword [ebp - 8], ecx
mov esi, edx
mov dword [ebp - 4], eax
mov eax, dword [ebp - 4]
call fcn.00407214
xor eax, eax
push ebp
push 0x40a37c
push dword fs:[eax]
mov dword fs:[eax], esp
cmp dword [ebp - 4], 0
jne 0x40a19a
push 0x105
lea eax, [ebp - 0x21e]
push eax
push 0
call sub.kernel32.dll_GetModuleFileNameW
jmp 0x40a1b4
mov eax, dword [ebp - 4]
call fcn.00407670
mov ecx, eax
lea eax, [ebp - 0x21e]
mov edx, 0x105
call fcn.0040996c
cmp word [ebp - 0x21e], 0
je 0x40a35f
xor eax, eax
mov dword [ebp - 0xc], eax
lea eax, [ebp - 0x10]
push eax
push 0x20019
push 0
push 0x40a38c
push 0x80000001
call sub.advapi32.dll_RegOpenKeyExW
test eax, eax
je 0x40a283
lea eax, [ebp - 0x10]
push eax
push 0x20019
push 0
push 0x40a38c
push 0x80000002
call sub.advapi32.dll_RegOpenKeyExW
test eax, eax
je 0x40a283
lea eax, [ebp - 0x10]
push eax
push 0x20019
push 0
push 0x40a3c8
push 0x80000001
call sub.advapi32.dll_RegOpenKeyExW
test eax, eax
je 0x40a283
lea eax, [ebp - 0x10]
push eax
push 0x20019
push 0
push 0x40a3c8
push 0x80000002
call sub.advapi32.dll_RegOpenKeyExW
test eax, eax
je 0x40a283
lea eax, [ebp - 0x10]
push eax
push 0x20019
push 0
push 0x40a3fc
push 0x80000001
call sub.advapi32.dll_RegOpenKeyExW
test eax, eax
je 0x40a283
lea eax, [ebp - 0x10]
push eax
push 0x20019
push 0
push 0x40a430
push 0x80000001
call sub.advapi32.dll_RegOpenKeyExW
test eax, eax
jne 0x40a35f
xor eax, eax
push ebp
push 0x40a358
push dword fs:[eax]
mov dword fs:[eax], esp
lea edx, [ebp - 8]
lea eax, [ebp - 0x21e]
call fcn.00409f54
mov ebx, eax
lea eax, [ebp - 0x14]
push eax
push 0
push 0
push 0
push ebx
mov eax, dword [ebp - 0x10]
push eax
call sub.advapi32.dll_RegQueryValueExW
test eax, eax
jne 0x40a2e6
mov eax, dword [ebp - 0x14]
call fcn.00404500
mov dword [ebp - 0xc], eax
lea eax, [ebp - 0x14]
push eax
mov eax, dword [ebp - 0xc]
push eax
push 0
push 0
push ebx
mov eax, dword [ebp - 0x10]
push eax
call sub.advapi32.dll_RegQueryValueExW
mov eax, esi
mov edx, dword [ebp - 0xc]
call fcn.004076c0
jmp 0x40a331
lea eax, [ebp - 0x14]
push eax
push 0
push 0
push 0
push 0x40a470
mov eax, dword [ebp - 0x10]
push eax
call sub.advapi32.dll_RegQueryValueExW
test eax, eax
jne 0x40a331
mov eax, dword [ebp - 0x14]
call fcn.00404500
mov dword [ebp - 0xc], eax
lea eax, [ebp - 0x14]
push eax
mov eax, dword [ebp - 0xc]
push eax
push 0
push 0
push 0x40a470
mov eax, dword [ebp - 0x10]
push eax
call sub.advapi32.dll_RegQueryValueExW
mov eax, esi
mov edx, dword [ebp - 0xc]
call fcn.004076c0
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x40a35f
cmp dword [ebp - 0xc], 0
je 0x40a34c
mov eax, dword [ebp - 0xc]
call fcn.0040451c
mov eax, dword [ebp - 0x10]
push eax
call sub.advapi32.dll_RegCloseKey
pop eax
jmp eax
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x40a383
lea eax, [ebp - 8]
mov edx, 2
call fcn.00407180
pop eax
jmp eax
Function at 0x40a690
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.00407214
xor eax, eax
push ebp
push 0x40a752
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.004076fc
mov ecx, dword [ebp - 0x10]
mov eax, ebx
mov edx, dword [ebp - 4]
call fcn.0040782c
mov eax, dword [ebx]
call fcn.0040a538
test al, al
jne 0x40a72d
mov word [ebp - 8], 0
lea eax, [ebp - 0x14]
lea edx, [ebp - 0xc]
mov ecx, 4
call fcn.004076fc
mov ecx, dword [ebp - 0x14]
mov eax, ebx
mov edx, dword [ebp - 4]
call fcn.0040782c
mov eax, dword [ebx]
call fcn.0040a538
test al, al
jne 0x40a72d
mov eax, ebx
call fcn.00407120
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x40a759
lea eax, [ebp - 0x14]
mov edx, 2
call fcn.00407180
lea eax, [ebp - 4]
call fcn.00407120
pop eax
jmp eax

Function at 0x40c11c
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 0x416278
Capabilities:
Encrypt data using rc4 prga

Disassembly:
cmp eax, edx
je 0x4162d1
test eax, edx
je 0x4162d4
movzx ecx, word [edx]
cmp cx, word [eax]
je 0x41628f
movzx eax, word [eax]
sub eax, ecx
jmp 0x4162b6
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 [eax + ecx]
xor ebx, dword [edx + ecx]
jne 0x4162b7
add ecx, 4
js 0x4162a7
pop eax
pop ebx
ret
bsf ebx, ebx
shr ebx, 4
add ebx, ebx
add ecx, ebx
jns 0x4162b4
movzx eax, word [eax + ecx]
movzx edx, word [edx + ecx]
sub eax, edx
pop ebx
pop ebx
jmp 0x4162b6
xor eax, eax
ret
test eax, eax
je 0x4162e0
test edx, edx
jne 0x416280
mov eax, dword [eax - 4]
ret
sub eax, dword [edx - 4]
ret

Function at 0x416bbc
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.00407670
mov edi, eax
push edi
call sub.kernel32.dll_GetFileAttributesW
cmp eax, 0xffffffff
je 0x416c26
test ah, 4
je 0x416c1f
test bl, bl
jne 0x416be4
mov al, 1
jmp 0x416c4d
test al, 0x10
je 0x416bec
xor eax, eax
jmp 0x416c4d
push 0
push 0
push 3
push 0
push 1
push 0x80000000
push edi
call sub.kernel32.dll_CreateFileW
cmp eax, 0xffffffff
je 0x416c10
push eax
call sub.kernel32.dll_CloseHandle
mov al, 1
jmp 0x416c4d
call sub.kernel32.dll_GetLastError
mov ebx, eax
cmp ebx, 0x20
sete al
jmp 0x416c4d
test al, 0x10
sete al
jmp 0x416c4d
call sub.kernel32.dll_GetLastError
mov ebx, eax
cmp ebx, 2
je 0x416c47
cmp ebx, 3
je 0x416c47
cmp ebx, 0x7b
je 0x416c47
mov eax, esi
call fcn.00416b7c
test al, al
jne 0x416c4b
xor eax, eax
jmp 0x416c4d
mov al, 1
pop edi
pop esi
pop ebx
ret
Function at 0x418618
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
test eax, eax
jle 0x418651
mov ecx, eax
dec ecx
lea edx, [ebp - 0x200]
mov eax, ebx
call fcn.0040726c
jmp 0x41865a
mov eax, ebx
mov edx, esi
call fcn.004073e8
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 4

Function at 0x418664
Capabilities:
Get geographical location

Disassembly:
push ebx
push esi
push edi
add esp, 0xfffffff8
mov edi, ecx
mov esi, edx
mov ebx, eax
push 3
lea eax, [esp + 4]
push eax
push esi
push ebx
call sub.kernel32.dll_GetLocaleInfoW
test eax, eax
jle 0x418688
movzx eax, word [esp]
jmp 0x41868a
mov eax, edi
pop ecx
pop edx
pop edi
pop esi
pop ebx
ret

Function at 0x419da4
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 0x419ecb
push dword fs:[ecx]
mov dword fs:[ecx], esp
push 0x400
lea ecx, [ebp - 0x888]
call fcn.00419bac
mov esi, eax
mov eax, dword [0x42e6dc]
cmp byte [eax], 0
je 0x419e71
mov eax, dword [0x42e5e4]
call fcn.00404cd0
call fcn.00404654
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
mov ebx, eax
push ebx
lea eax, [ebp - 4]
mov ecx, 1
mov edx, dword [0x419d74]
call fcn.00409268
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
push 0
lea eax, [ebp - 8]
push eax
push ebx
mov eax, dword [ebp - 4]
push eax
push 0xfffffffffffffff4
call sub.kernel32.dll_GetStdHandle
push eax
call sub.kernel32.dll_WriteFile
push 0
lea eax, [ebp - 8]
push eax
push 2
push 0x419ee4
push 0xfffffffffffffff4
call sub.kernel32.dll_GetStdHandle
push eax
call sub.kernel32.dll_WriteFile
jmp 0x419ead
push 0x40
lea eax, [ebp - 0x88]
push eax
mov eax, dword [0x42e5bc]
mov eax, dword [eax + 4]
push eax
mov eax, dword [0x43262c]
call fcn.00409610
push eax
call sub.user32.dll_LoadStringW
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 0x419ed2
lea eax, [ebp - 4]
mov edx, dword [0x419d74]
call fcn.0040938c
pop eax
jmp eax
Function at 0x41bd24
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.004074dc
mov ebp, eax
push ebp
push 0
push 0
mov ecx, ebx
xor edx, edx
mov eax, 0xfde9
call fcn.0040c0fc
mov edi, eax
cmp edi, 0x104
jbe 0x41bccf
mov eax, edi
add eax, eax
call fcn.00404500
mov esi, eax
jmp 0x41bcd1
mov esi, esp
push ebp
push esi
push edi
mov ecx, ebx
xor edx, edx
mov eax, 0xfde9
call fcn.0040c0fc
push esi
call sub.user32.dll_CharUpperW
xor ebx, ebx
mov eax, edi
dec eax
test eax, eax
jl 0x41bd0a
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 0x41bcf4
mov eax, esp
cmp esi, eax
je 0x41bd17
mov eax, esi
call fcn.0040451c
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 0x41bd50
cmp bl, 0
je 0x41bd4c
cmp bl, 0x41
jl 0x41bd47
cmp bl, 0x5a
jg 0x41bd47
or bl, 0x20
xor al, bl
inc esi
jmp 0x41bd2b
pop ecx
pop ebx
pop esi
ret
pop eax
pop ebx
pop esi
jmp 0x41bc90

Function at 0x41c0b8
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
mov eax, ebx
mov edx, esp
mov ecx, 0x400
call fcn.004076fc
add esp, 0x800
pop ebx
ret
Function at 0x41c8f4
Capabilities:
Encrypt data using rc4 prga

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffff0
push ebx
push esi
push edi
mov dword [ebp - 4], eax
mov edi, dword [ebp + 8]
mov esi, dword [ebp + 0xc]
mov eax, dword [ebp - 4]
mov eax, dword [eax]
test eax, eax
je 0x41c914
sub eax, 4
mov eax, dword [eax]
lea ebx, [edi + esi]
cmp eax, ebx
jg 0x41c92e
mov eax, dword [ebp - 4]
mov eax, dword [eax]
test eax, eax
je 0x41c929
sub eax, 4
mov eax, dword [eax]
mov dword [ebp - 8], eax
jmp 0x41c933
add edi, esi
mov dword [ebp - 8], edi
movzx eax, word [ebp + 0x14]
cmp ax, word [ebp + 0x10]
je 0x41c9a1
xor eax, eax
mov dword [ebp - 0xc], eax
cmp esi, dword [ebp - 8]
jge 0x41c9ea
mov eax, dword [ebp - 4]
mov eax, dword [eax]
movzx eax, word [eax + esi*2]
cmp ax, word [ebp + 0x14]
jne 0x41c95f
inc dword [ebp - 0xc]
jmp 0x41c977
mov eax, dword [ebp - 4]
mov eax, dword [eax]
movzx eax, word [eax + esi*2]
cmp ax, word [ebp + 0x10]
jne 0x41c977
cmp dword [ebp - 0xc], 0
jle 0x41c977
dec dword [ebp - 0xc]
cmp dword [ebp - 0xc], 0
jne 0x41c999
xor eax, eax
jmp 0x41c995
movzx edi, word [edx + eax*2]
mov ebx, dword [ebp - 4]
mov ebx, dword [ebx]
cmp di, word [ebx + esi*2]
jne 0x41c994
mov eax, esi
jmp 0x41c9ed
inc eax
cmp eax, ecx
jle 0x41c981
inc esi
cmp esi, dword [ebp - 8]
jl 0x41c94b
jmp 0x41c9ea
mov byte [ebp - 0xd], 0
cmp esi, dword [ebp - 8]
jge 0x41c9ea
mov eax, dword [ebp - 4]
mov eax, dword [eax]
movzx eax, word [eax + esi*2]
cmp ax, word [ebp + 0x14]
jne 0x41c9c2
movzx eax, byte [ebp - 0xd]
xor al, 1
mov byte [ebp - 0xd], al
cmp byte [ebp - 0xd], 0
jne 0x41c9e4
xor eax, eax
jmp 0x41c9e0
movzx edi, word [edx + eax*2]
mov ebx, dword [ebp - 4]
mov ebx, dword [ebx]
cmp di, word [ebx + esi*2]
jne 0x41c9df
mov eax, esi
jmp 0x41c9ed
inc eax
cmp eax, ecx
jle 0x41c9cc
inc esi
cmp esi, dword [ebp - 8]
jl 0x41c9aa
or eax, 0xffffffff
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 0x10
Function at 0x41cbd0
Capabilities:
Encrypt data using rc4 prga

Disassembly:
push ebp
mov ebp, esp
add esp, 0xffffffe4
push ebx
push esi
push edi
mov word [ebp - 0xa], cx
mov dword [ebp - 8], edx
mov dword [ebp - 4], eax
mov eax, dword [ebp - 8]
test eax, eax
je 0x41cbef
sub eax, 4
mov eax, dword [eax]
mov esi, eax
mov eax, dword [ebp - 4]
mov eax, dword [eax]
test eax, eax
je 0x41cbff
sub eax, 4
mov eax, dword [eax]
mov ebx, eax
sub ebx, dword [ebp + 8]
sub ebx, esi
inc ebx
cmp dword [ebp + 8], 0
jl 0x41cd21
test ebx, ebx
jl 0x41cd21
test esi, esi
jle 0x41cd21
mov eax, dword [ebp - 8]
call fcn.00407670
mov dword [ebp - 0x10], eax
mov eax, dword [ebp - 4]
mov eax, dword [eax]
call fcn.00407670
mov ecx, eax
mov eax, dword [ebp + 8]
add eax, eax
add ecx, eax
movzx eax, word [ebp - 0xa]
cmp ax, word [ebp + 0xc]
je 0x41ccbe
xor eax, eax
mov dword [ebp - 0x14], eax
test ebx, ebx
jl 0x41cd21
inc ebx
mov dword [ebp - 0x1c], ebx
xor edx, edx
xor eax, eax
jmp 0x41cca3
lea ebx, [eax + edx]
movzx ebx, word [ecx + ebx*2]
cmp bx, word [ebp - 0xa]
jne 0x41cc72
inc dword [ebp - 0x14]
jmp 0x41cc82
lea ebx, [eax + edx]
movzx ebx, word [ecx + ebx*2]
cmp bx, word [ebp + 0xc]
jne 0x41cc82
dec dword [ebp - 0x14]
cmp dword [ebp - 0x14], 0
jle 0x41cc8d
or eax, 0xffffffff
jmp 0x41cca3
lea ebx, [eax + edx]
movzx ebx, word [ecx + ebx*2]
mov edi, dword [ebp - 0x10]
cmp bx, word [edi + eax*2]
jne 0x41cca0
inc eax
jmp 0x41cca3
or eax, 0xffffffff
test eax, eax
jl 0x41ccab
cmp esi, eax
jg 0x41cc60
cmp esi, eax
jg 0x41ccb6
mov eax, edx
add eax, dword [ebp + 8]
jmp 0x41cd24
inc edx
dec dword [ebp - 0x1c]
jne 0x41cc5c
jmp 0x41cd21
mov byte [ebp - 0x15], 0
test ebx, ebx
jl 0x41cd21
inc ebx
mov dword [ebp - 0x1c], ebx
xor edx, edx
xor eax, eax
jmp 0x41cd08
lea ebx, [eax + edx]
movzx ebx, word [ecx + ebx*2]
cmp bx, word [ebp - 0xa]
jne 0x41cce7
movzx ebx, byte [ebp - 0x15]
xor bl, 1
mov byte [ebp - 0x15], bl
cmp byte [ebp - 0x15], 0
je 0x41ccf2
or eax, 0xffffffff
jmp 0x41cd08
lea ebx, [eax + edx]
movzx ebx, word [ecx + ebx*2]
mov edi, dword [ebp - 0x10]
cmp bx, word [edi + eax*2]
jne 0x41cd05
inc eax
jmp 0x41cd08
or eax, 0xffffffff
test eax, eax
jl 0x41cd10
cmp esi, eax
jg 0x41ccd0
cmp esi, eax
jg 0x41cd1b
mov eax, edx
add eax, dword [ebp + 8]
jmp 0x41cd24
inc edx
dec dword [ebp - 0x1c]
jne 0x41cccc
or eax, 0xffffffff
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 8

Function at 0x41e2b0
Capabilities:
Terminate process

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffff4
push ebx
push esi
push edi
mov dword [ebp - 4], eax
mov byte [ebp - 5], 0
mov eax, dword [ebp - 4]
call fcn.0041e288
mov dword [ebp - 0xc], eax
cmp dword [ebp - 0xc], 0
jbe 0x41e335
xor eax, eax
push ebp
push 0x41e32b
push dword fs:[eax]
mov dword fs:[eax], esp
xor eax, eax
push ebp
push 0x41e31a
push dword fs:[eax]
mov dword fs:[eax], esp
push 0
mov eax, dword [ebp - 0xc]
push eax
call sub.kernel32.dll_TerminateProcess
cmp eax, 1
sbb eax, eax
inc eax
mov byte [ebp - 5], al
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x41e321
mov eax, dword [ebp - 0xc]
push eax
call sub.kernel32.dll_CloseHandle
pop eax
jmp eax
mov al, byte [ebp - 5]
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x420ee4
Capabilities:
Enumerate processes via ntquerysysteminformation
Get system information on windows

Disassembly:
push ebp
mov ebp, esp
pop ebp
mov eax, dword fs:[0]
push ebp
mov ebp, esp
push 0xffffffff
push 0x731b3448
push 0x731b2e38
push eax
mov dword fs:[0], esp
sub esp, 0x14
push ebx
push esi
push edi
mov esi, 0x8000
xor edi, edi
mov dword [ebp - 0x18], esp
push esi
push edi
call sub.kernel32.dll_LocalAlloc
mov dword [ebp - 0x1c], eax
cmp eax, edi
je 0x420fb9
push edi
push esi
push eax
push 5
call sub.ntdll.dll_NtQuerySystemInformation
cmp eax, 0xc0000004
jne 0x420f4c
push dword [ebp - 0x1c]
call sub.kernel32.dll_LocalFree
add esi, 0x8000
jmp 0x420f19
test eax, eax
jge 0x420f5e
push eax
call sub.ntdll.dll_RtlNtStatusToDosError
push eax
call sub.kernel32.dll_SetLastError
jmp 0x420fb9
xor esi, esi
mov edx, dword [ebp + 0xc]
shr edx, 2
xor edi, edi
mov ecx, dword [ebp + 8]
mov eax, dword [ebp - 0x1c]
add eax, esi
cmp edi, edx
jae 0x420f89
mov dword [ebp - 4], 0
mov ebx, dword [eax + 0x44]
mov dword [ecx + edi*4], ebx
inc edi
mov dword [ebp - 4], 0xffffffff
mov eax, dword [eax]
add esi, eax
test eax, eax
jne 0x420f6b
mov esi, 1
mov dword [ebp - 4], esi
lea ecx, ds:[edi*4]
mov eax, dword [ebp + 0x10]
mov dword [eax], ecx
mov dword [ebp - 4], 0xffffffff
push dword [ebp - 0x1c]
call sub.kernel32.dll_LocalFree
mov eax, esi
jmp 0x420fbb
xor eax, eax
mov ecx, dword [ebp - 0x10]
pop edi
mov dword fs:[0], ecx
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 0xc
Function at 0x406cf0
Capabilities:
Create thread

Disassembly:
mov eax, dword fs:[0]
push 0xffffffffffffffff
push 0x435608
push eax
mov dword fs:[0], esp
push esi
mov esi, ecx
lea eax, [esp + 0x14]
mov ecx, 0x4551dc
push eax
mov dword [esp + 0x10], 0
call fcn.00428447
lea ecx, [esi + 0x450]
push ecx
push 0
push 0
push 0x4011c0
push 0
push 0
call dword [sym.imp.KERNEL32.dll_CreateThread]
test eax, eax
mov dword [esi + 0x44c], eax
je 0x406d5d
mov edx, dword [esi + 0x1c]
push 0
push 0x32
push 1
push edx
mov dword [esi + 0x424], 0
call dword [sym.imp.USER32.dll_SetTimer]
lea ecx, [esp + 0x14]
mov dword [esp + 0xc], 0xffffffff
call fcn.0042830e
mov ecx, dword [esp + 4]
pop esi
mov dword fs:[0], ecx
add esp, 0xc
ret 4

Function at 0x406d80
Capabilities:
Create thread

Disassembly:
mov eax, dword fs:[0]
push 0xffffffffffffffff
push 0x435628
push eax
mov dword fs:[0], esp
push esi
mov esi, ecx
mov eax, dword [esi + 0x68]
mov dword [esp + 0xc], 0
cmp eax, 2
jne 0x406dd7
lea eax, [esp + 0x14]
mov ecx, 0x4551d8
push eax
call fcn.00428447
lea ecx, [esi + 0x458]
push ecx
push 0
push 0
push 0x401860
push 0
push 0
call dword [sym.imp.KERNEL32.dll_CreateThread]
mov dword [esi + 0x454], eax
lea ecx, [esp + 0x14]
mov dword [esp + 0xc], 0xffffffff
call fcn.0042830e
mov ecx, dword [esp + 4]
pop esi
mov dword fs:[0], ecx
add esp, 0xc
ret 4
Function at 0x40a040
Capabilities:
Terminate thread

Disassembly:
push esi
mov esi, ecx
mov eax, dword [esi + 0x10260]
test eax, eax
je 0x40a067
mov eax, dword [eax + 0x28]
push 0
push eax
call dword [sym.imp.KERNEL32.dll_TerminateThread]
test eax, eax
je 0x40a067
mov dword [esi + 0x10260], 0
push 0
push 0
push 0
push 0
push esi
push 0x4076c0
call fcn.0042d55f
mov dword [esi + 0x10260], eax
mov dword [eax + 0x24], 1
mov eax, 1
pop esi
ret

Function at 0x40b660
Capabilities:
Get common file path

Disassembly:
sub esp, 0x104
mov dword [0x4573c0], 1
push ebx
mov ebx, ecx
push esi
push edi
mov eax, dword [ebx + 0x100]
lea esi, [ebx + 0x98]
push eax
mov ecx, esi
call fcn.0040e730
xor edi, edi
mov ecx, esi
push edi
call fcn.0040e790
push 0x64
push edi
mov ecx, esi
call fcn.0040e770
push 0x455208
mov ecx, esi
call fcn.0042d0b7
push edi
push edi
lea esi, [ebx + 0x17c]
push edi
push str._02d:_02d:_02d
push esi
mov dword [ebx + 0x210], edi
mov dword [ebx + 0x214], edi
mov dword [ebx + 0x218], edi
call fcn.00426b2a
mov esi, dword [esi]
add esp, 0x14
mov ecx, ebx
push esi
push 0x403
call fcn.0042cff8
mov ecx, eax
call fcn.0042d0b7
push 0x455208
lea ecx, [ebx + 0x5c]
call fcn.0042d0b7
push str.SIM_ULOADER_PATH
call fcn.004172bf
add esp, 4
cmp eax, edi
jne 0x40b718
lea ecx, [esp + 0xc]
push ecx
push 0x104
call dword [sym.imp.KERNEL32.dll_GetCurrentDirectoryA]
jmp 0x40b73b
mov edi, eax
or ecx, 0xffffffff
xor eax, eax
lea edx, [esp + 0xc]
repne scasb al, byte es:[edi]
not ecx
sub edi, ecx
mov eax, ecx
mov esi, edi
mov edi, edx
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, eax
and ecx, 3
rep movsb byte es:[edi], byte [esi]
lea ecx, [esp + 0xc]
push ecx
lea ecx, [ebx + 0x10ddc]
call fcn.00428497
pop edi
pop esi
mov eax, 1
pop ebx
add esp, 0x104
ret
Function at 0x40c590
Capabilities:
Set registry value

Disassembly:
push 0xffffffffffffffff
push 0x435aeb
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x8c
mov eax, dword [0x451114]
push ebx
push ebp
push esi
mov esi, ecx
mov dword [esp + 0x10], eax
lea ecx, [esp + 0x18]
xor ebx, ebx
push str.SOFTWARELoaderModuleUpgradeHostDlgParams
push ecx
mov dword [esp + 0xa8], ebx
call fcn.00416df9
add esp, 8
lea edx, [esp + 0xc]
lea eax, [esp + 0x18]
mov dword [esp + 0xc], ebx
push edx
push 0xf003f
push ebx
push eax
push SysReAllocString
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
mov ebp, dword [sym.imp.ADVAPI32.dll_RegCloseKey]
cmp eax, ebx
jne 0x40c620
mov ecx, dword [esi + 0x220]
xor eax, eax
cmp ecx, ebx
je 0x40c612
push ecx
call ebp
mov dword [esi + 0x220], ebx
mov ecx, dword [esp + 0xc]
cmp eax, ebx
mov dword [esi + 0x220], ecx
je 0x40c668
lea edx, [esp + 0x14]
lea eax, [esp + 0xc]
push edx
push eax
push ebx
push 0xf003f
push ebx
push ebx
lea ecx, [esp + 0x30]
push ebx
push ecx
push SysReAllocString
mov dword [esp + 0x30], ebx
call dword [sym.imp.ADVAPI32.dll_RegCreateKeyExA]
cmp eax, ebx
jne 0x40c668
mov eax, dword [esi + 0x220]
cmp eax, ebx
je 0x40c65e
push eax
call ebp
mov dword [esi + 0x220], ebx
mov edx, dword [esp + 0xc]
mov dword [esi + 0x220], edx
push edi
lea ecx, [esi + 0x104]
call fcn.0040d220
mov ecx, dword [esi + 0x220]
mov edi, dword [sym.imp.ADVAPI32.dll_RegSetValueExA]
mov dword [esi + 0x20c], eax
mov dword [esp + 0x10], eax
lea eax, [esp + 0x10]
push 4
push eax
push 4
push ebx
push str.ActivePage
push ecx
call edi
mov ecx, dword [esi + 0x220]
mov edx, dword [esi + 0x10de0]
lea eax, [esp + 0x10]
push 4
push eax
push 4
push ebx
push str.UsbChipType
push ecx
mov dword [esp + 0x28], edx
call edi
mov ecx, dword [esi + 0x220]
mov edx, dword [esi + 0x10de4]
lea eax, [esp + 0x10]
push 4
push eax
push 4
push ebx
push str.SerialChipType
push ecx
mov dword [esp + 0x28], edx
call edi
mov ecx, dword [esi + 0x220]
mov edx, dword [esi + 0x10df4]
lea eax, [esp + 0x10]
push 4
push eax
push 4
push ebx
push str.Stopbits
push ecx
mov dword [esp + 0x28], edx
call edi
mov ecx, dword [esi + 0x220]
mov edx, dword [esi + 0x10df8]
lea eax, [esp + 0x10]
push 4
push eax
push 4
push ebx
push str.EraseType
push ecx
mov dword [esp + 0x28], edx
call edi
mov ecx, dword [esi + 0x220]
mov edx, dword [esi + 0x10de8]
lea eax, [esp + 0x10]
push 4
push eax
push 4
push ebx
push str.MasterClock
push ecx
mov dword [esp + 0x28], edx
call edi
mov ecx, dword [esi + 0x220]
mov edx, dword [esi + 0x10dec]
lea eax, [esp + 0x10]
push 4
push eax
push 4
push ebx
push str.BaudRate
push ecx
mov dword [esp + 0x28], edx
call edi
mov ecx, dword [esi + 0x220]
mov edx, dword [esi + 0x10df0]
lea eax, [esp + 0x10]
push 4
push eax
push 4
push ebx
push str.Port
push ecx
mov dword [esp + 0x28], edx
call edi
mov eax, dword [esi + 0x220]
pop edi
cmp eax, ebx
je 0x40c79e
push eax
call ebp
mov dword [esi + 0x220], ebx
lea ecx, [esp + 0x10]
mov dword [esp + 0xa0], 0xffffffff
call fcn.0042830e
mov ecx, dword [esp + 0x98]
pop esi
pop ebp
mov al, 1
pop ebx
mov dword fs:[0], ecx
add esp, 0x98
ret