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

Disassembly:
mov eax, dword [0x30043ea0]
push ebx
push ebp
push esi
mov esi, dword [sym.imp.KERNEL32.dll_GetLocaleInfoA]
push edi
test eax, eax
jne 0x30026288
push 0
push 0
push 1
push 0
call esi
test eax, eax
je 0x30026268
mov eax, 2
jmp 0x30026283
push 0
push 0
push 1
push 0
call dword [sym.imp.KERNEL32.dll_GetLocaleInfoW]
test eax, eax
je 0x30026368
mov eax, 1
mov dword [0x30043ea0], eax
cmp eax, 2
jne 0x300262a8
mov eax, dword [esp + 0x20]
mov ecx, dword [esp + 0x1c]
mov edx, dword [esp + 0x18]
push eax
mov eax, dword [esp + 0x18]
push ecx
push edx
push eax
call esi
pop edi
pop esi
pop ebp
pop ebx
ret
cmp eax, 1
jne 0x3002637a
mov eax, dword [esp + 0x24]
test eax, eax
jne 0x300262c3
mov ecx, dword [0x30043c38]
mov dword [esp + 0x24], ecx
mov ebx, dword [esp + 0x18]
mov ebp, dword [esp + 0x14]
push 0
push 0
push ebx
push ebp
call dword [sym.imp.KERNEL32.dll_GetLocaleInfoW]
mov edi, eax
test edi, edi
jne 0x300262e2
pop edi
pop esi
pop ebp
pop ebx
ret
lea edx, [edi + edi]
push edx
call fcn.3001b250
mov esi, eax
add esp, 4
test esi, esi
jne 0x300262f9
pop edi
pop esi
pop ebp
pop ebx
ret
push edi
push esi
push ebx
push ebp
call dword [sym.imp.KERNEL32.dll_GetLocaleInfoW]
test eax, eax
je 0x3002635f
mov eax, dword [esp + 0x20]
push 0
test eax, eax
push 0
jne 0x30026340
mov eax, dword [esp + 0x2c]
push 0
push 0
push 0xffffffffffffffff
push esi
push 0x220
push eax
call dword [sym.imp.KERNEL32.dll_WideCharToMultiByte]
mov edi, eax
test edi, edi
je 0x3002635f
push esi
call fcn.3001b1e0
add esp, 4
mov eax, edi
pop edi
pop esi
pop ebp
pop ebx
ret
mov ecx, dword [esp + 0x24]
mov edx, dword [esp + 0x2c]
push eax
push ecx
push 0xffffffffffffffff
push esi
push 0x220
push edx
call dword [sym.imp.KERNEL32.dll_WideCharToMultiByte]
mov edi, eax
test edi, edi
jne 0x3002636f
push esi
call fcn.3001b1e0
add esp, 4
xor eax, eax
pop edi
pop esi
pop ebp
pop ebx
ret
push esi
call fcn.3001b1e0
add esp, 4
mov eax, edi
pop edi
pop esi
pop ebp
pop ebx
ret
Function at 0x30027f10
Capabilities:
Set environment variable

Disassembly:
push ecx
push ebx
push ebp
push esi
push edi
mov edi, dword [esp + 0x18]
test edi, edi
je 0x300280ce
push 0x3d
push edi
call fcn.3001c030
mov esi, eax
add esp, 8
test esi, esi
je 0x300280ce
cmp edi, esi
je 0x300280ce
mov dl, byte [esi + 1]
mov ecx, dword [0x30043a34]
xor eax, eax
test dl, dl
sete al
mov ebp, eax
mov eax, dword [0x30043a30]
cmp eax, ecx
jne 0x30027f67
push eax
call fcn.300281a0
add esp, 4
mov dword [0x30043a30], eax
test eax, eax
jne 0x30027fe2
mov eax, dword [esp + 0x1c]
test eax, eax
je 0x30027f8e
mov eax, dword [0x30043a38]
test eax, eax
je 0x30027f8e
call fcn.30027900
test eax, eax
je 0x30027fdd
or eax, 0xffffffff
pop edi
pop esi
pop ebp
pop ebx
pop ecx
ret
test ebp, ebp
je 0x30027f9a
xor eax, eax
pop edi
pop esi
pop ebp
pop ebx
pop ecx
ret
push 4
call fcn.3001b250
add esp, 4
mov dword [0x30043a30], eax
test eax, eax
je 0x300280ce
mov dword [eax], 0
mov eax, dword [0x30043a38]
test eax, eax
jne 0x30027fdd
push 4
call fcn.3001b250
add esp, 4
mov dword [0x30043a38], eax
test eax, eax
je 0x300280ce
mov dword [eax], 0
mov eax, dword [0x30043a30]
mov ebx, eax
mov eax, esi
sub eax, edi
push eax
push edi
mov dword [esp + 0x18], eax
call fcn.30028120
mov esi, eax
add esp, 8
test esi, esi
jl 0x300280df
cmp dword [ebx], 0
je 0x300280df
test ebp, ebp
je 0x300280d7
mov ecx, dword [ebx + esi*4]
lea edi, [ebx + esi*4]
push ecx
call fcn.3001b1e0
mov eax, dword [edi]
add esp, 4
test eax, eax
je 0x30028039
mov eax, edi
mov edx, dword [eax + 4]
add eax, 4
mov dword [edi], edx
inc esi
mov ecx, dword [eax]
mov edi, eax
test ecx, ecx
jne 0x30028028
lea eax, [esi*4]
push eax
push ebx
call fcn.3001d9f0
add esp, 8
test eax, eax
je 0x30028053
mov dword [0x30043a30], eax
mov edi, dword [esp + 0x18]
mov eax, dword [esp + 0x1c]
test eax, eax
je 0x300280c6
or ecx, 0xffffffff
xor eax, eax
repne scasb al, byte es:[edi]
not ecx
inc ecx
push ecx
call fcn.3001b250
mov ebx, eax
add esp, 4
test ebx, ebx
je 0x300280c6
mov edi, dword [esp + 0x18]
or ecx, 0xffffffff
xor eax, eax
repne scasb al, byte es:[edi]
not ecx
sub edi, ecx
mov eax, dword [esp + 0x10]
mov edx, ecx
mov esi, edi
mov edi, ebx
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, edx
and ecx, 3
neg ebp
rep movsb byte es:[edi], byte [esi]
sbb ebp, ebp
mov byte [ebx + eax], 0
lea eax, [ebx + eax + 1]
not ebp
and ebp, eax
push ebp
push ebx
call dword [sym.imp.KERNEL32.dll_SetEnvironmentVariableA]
push ebx
call fcn.3001b1e0
add esp, 4
xor eax, eax
pop edi
pop esi
pop ebp
pop ebx
pop ecx
ret
xor eax, eax
pop edi
pop esi
pop ebp
pop ebx
pop ecx
ret
pop edi
pop esi
pop ebp
or eax, 0xffffffff
pop ebx
pop ecx
ret
mov dword [ebx + esi*4], edi
jmp 0x30028057
test ebp, ebp
jne 0x300280c6
test esi, esi
jge 0x300280e9
neg esi
lea ecx, [esi*4 + 8]
push ecx
push ebx
call fcn.3001d9f0
add esp, 8
test eax, eax
je 0x300280ce
mov dword [eax + esi*4], edi
mov dword [eax + esi*4 + 4], 0
mov dword [0x30043a30], eax
jmp 0x30028057
Function at 0x3002ea55
Capabilities:
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x11c
push edi
xor edi, edi
cmp dword [ebp + 8], edi
jne 0x3002ea72
cmp dword [0x300439e4], edi
jne 0x3002ebc4
cmp word [0x300439f0], di
mov dword [0x300439e4], 1
jne 0x3002eaa4
push str.MSH_SCROLL_LINES_MSG
call dword [sym.imp.USER32.dll_RegisterWindowMessageA]
xor ecx, ecx
cmp eax, edi
setne cl
inc ecx
mov dword [0x300439ec], eax
mov word [0x300439f0], cx
cmp word [0x300439f0], 2
jne 0x3002eae0
push str.Magellan_MSWHEEL
push str.MouseZ
call dword [sym.imp.USER32.dll_FindWindowA]
cmp eax, edi
je 0x3002eae0
mov ecx, dword [0x300439ec]
cmp ecx, edi
je 0x3002eae0
push edi
push edi
push ecx
push eax
call dword [sym.imp.USER32.dll_SendMessageA]
mov dword [0x300439e8], eax
jmp 0x3002ebc9
push 0x94
lea eax, [ebp - 0x9c]
push edi
push eax
call fcn.30019380
add esp, 0xc
lea eax, [ebp - 0x9c]
mov dword [ebp - 0x9c], 0x94
mov dword [0x300439e8], 3
push eax
call dword [sym.imp.KERNEL32.dll_GetVersionExA]
test eax, eax
je 0x3002ebc4
cmp dword [ebp - 0x8c], 1
je 0x3002eb34
cmp dword [ebp - 0x8c], 2
jne 0x3002ebc4
cmp dword [ebp - 0x98], 4
jae 0x3002eba3
lea eax, [ebp + 8]
push eax
push 1
push edi
push str.Control_PanelDesktop
push 0x80000001
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
test eax, eax
jne 0x3002ebc4
lea eax, [ebp - 4]
mov dword [ebp - 4], pe_nt_image_headers32
push eax
lea eax, [ebp - 0x11c]
push eax
lea eax, [ebp - 8]
push eax
push edi
push str.WheelScrollLines
push dword [ebp + 8]
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
test eax, eax
jne 0x3002eb98
push 0xa
lea eax, [ebp - 0x11c]
push edi
push eax
call fcn.3001b040
add esp, 0xc
mov dword [0x300439e8], eax
push dword [ebp + 8]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
jmp 0x3002ebc4
cmp dword [ebp - 0x8c], 2
jne 0x3002ebc4
cmp dword [ebp - 0x98], 4
jb 0x3002ebc4
push edi
push 0x300439e8
push edi
push 0x68
call dword [sym.imp.USER32.dll_SystemParametersInfoA]
mov eax, dword [0x300439e8]
pop edi
leave
ret

Function at 0x3002f9cc
Capabilities:
Set registry value

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x10
push esi
mov esi, ecx
push edi
cmp dword [esi + 0x7c], 0
je 0x3002fa10
push dword [ebp + 8]
call fcn.300330ac
mov esi, eax
test esi, esi
je 0x3002fa3b
lea eax, [ebp + 0x10]
push 4
push eax
push 4
push 0
push dword [ebp + 0xc]
push esi
call dword [sym.imp.ADVAPI32.dll_RegSetValueExA]
push esi
mov edi, eax
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
xor eax, eax
test edi, edi
sete al
jmp 0x3002fa3b
push dword [ebp + 0x10]
lea eax, [ebp - 0x10]
push 0x30036474
push eax
call dword [sym.imp.USER32.dll_wsprintfA]
add esp, 0xc
lea eax, [ebp - 0x10]
push dword [esi + 0x90]
push eax
push dword [ebp + 0xc]
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.dll_WritePrivateProfileStringA]
pop edi
pop esi
leave
ret 0xc
Function at 0x300327a7
Capabilities:
Access peb ldr_data

Disassembly:
mov eax, 0x300344ca
call fcn.3001bce0
push ecx
push esi
mov esi, ecx
mov dword [ebp - 0x10], esi
mov dword [esi], vtable.CNoTrackObject.0
xor eax, eax
push 0xa
lea ecx, [esi + 0x30]
mov dword [ebp - 4], eax
mov dword [esi + 8], eax
mov dword [esi + 0xc], eax
call fcn.30028d37
push 0xa
lea ecx, [esi + 0x4c]
mov byte [ebp - 4], 1
call fcn.30028d37
push 0xa
lea ecx, [esi + 0x68]
mov byte [ebp - 4], 2
call fcn.30028b5b
mov ecx, dword [ebp - 0xc]
mov dword [esi], vtable.AFX_MODULE_THREAD_STATE.0
mov dword [esi + 0xc], 0x54
mov dword [esi + 0x28], 0x30029190
mov eax, esi
mov dword fs:[0], ecx
pop esi
leave
ret

Function at 0x30032cdb
Capabilities:
Get thread local storage value
Set thread local storage value

Disassembly:
push ebx
push esi
push edi
mov edi, ecx
push dword [edi]
call dword [sym.imp.KERNEL32.dll_TlsGetValue]
mov esi, eax
xor ebx, ebx
cmp esi, ebx
je 0x30032d0b
mov eax, dword [esp + 0x10]
cmp eax, dword [esi + 8]
jl 0x30032d95
cmp dword [esp + 0x14], ebx
je 0x30032d95
cmp esi, ebx
jne 0x30032d31
push 0x10
call fcn.30032af8
cmp eax, ebx
je 0x30032d20
mov dword [eax], vtable.CThreadData.0
mov esi, eax
jmp 0x30032d22
xor esi, esi
push esi
lea ecx, [edi + 0x14]
mov dword [esi + 8], ebx
mov dword [esi + 0xc], ebx
call fcn.30032a9a
mov eax, dword [esi + 0xc]
cmp eax, ebx
jne 0x30032d48
mov eax, dword [edi + 0xc]
shl eax, 2
push eax
push ebx
call dword [sym.imp.KERNEL32.dll_LocalAlloc]
jmp 0x30032d58
mov ecx, dword [edi + 0xc]
push 2
shl ecx, 2
push ecx
push eax
call dword [sym.imp.KERNEL32.dll_LocalReAlloc]
cmp eax, ebx
mov dword [esi + 0xc], eax
jne 0x30032d64
call fcn.300288bf
mov eax, dword [esi + 8]
mov ecx, eax
imul ecx, ecx, 0x3fffffff
add ecx, dword [edi + 0xc]
shl ecx, 2
push ecx
mov ecx, dword [esi + 0xc]
push ebx
lea eax, [ecx + eax*4]
push eax
call fcn.30019380
mov eax, dword [edi + 0xc]
add esp, 0xc
mov dword [esi + 8], eax
push esi
push dword [edi]
call dword [sym.imp.KERNEL32.dll_TlsSetValue]
mov eax, dword [esi + 0xc]
mov edx, dword [esp + 0x10]
mov ecx, dword [esp + 0x14]
pop edi
pop esi
mov dword [eax + edx*4], ecx
pop ebx
ret 8
Function at 0x30032dcb
Capabilities:
Set thread local storage value

Disassembly:
push ebp
mov ebp, esp
push ecx
push ebx
push esi
mov esi, dword [ebp + 8]
push edi
push 1
mov ebx, ecx
pop edi
cmp dword [esi + 8], edi
mov dword [ebp - 4], edi
jle 0x30032e1e
mov eax, dword [ebp + 0xc]
test eax, eax
je 0x30032e01
mov ecx, dword [ebx + 0x10]
cmp dword [ecx + edi*8 + 4], eax
je 0x30032e01
mov eax, dword [esi + 0xc]
cmp dword [eax + edi*4], 0
je 0x30032e18
and dword [ebp - 4], 0
jmp 0x30032e18
mov eax, dword [esi + 0xc]
mov ecx, dword [eax + edi*4]
test ecx, ecx
je 0x30032e11
mov eax, dword [ecx]
push 1
call dword [eax]
mov eax, dword [esi + 0xc]
and dword [eax + edi*4], 0
inc edi
cmp edi, dword [esi + 8]
jl 0x30032de2
cmp dword [ebp - 4], 0
je 0x30032e4c
push esi
lea ecx, [ebx + 0x14]
call fcn.30032aad
push dword [esi + 0xc]
call dword [sym.imp.KERNEL32.dll_LocalFree]
test esi, esi
je 0x30032e42
mov eax, dword [esi]
push 1
mov ecx, esi
call dword [eax]
push 0
push dword [ebx]
call dword [sym.imp.KERNEL32.dll_TlsSetValue]
pop edi
pop esi
pop ebx
leave
ret 8
Function at 0x45bb10
Capabilities:
Packed with generic packer

Disassembly:
pushal
mov esi, section.UPX1
lea edi, [esi - 0x28000]
push edi
jmp 0x45bb2a
mov al, byte [esi]
inc esi
mov byte [edi], al
inc edi
add ebx, ebx
jne 0x45bb31
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
jb 0x45bb20
mov eax, 1
add ebx, ebx
jne 0x45bb43
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc eax, eax
add ebx, ebx
jae 0x45bb54
jne 0x45bb73
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
jb 0x45bb73
dec eax
add ebx, ebx
jne 0x45bb60
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc eax, eax
jmp 0x45bb38
add ebx, ebx
jne 0x45bb6f
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc ecx, ecx
jmp 0x45bbc5
xor ecx, ecx
sub eax, 3
jb 0x45bb8b
shl eax, 8
mov al, byte [esi]
inc esi
xor eax, 0xffffffff
je 0x45bbfa
sar eax, 1
mov ebp, eax
jmp 0x45bb96
add ebx, ebx
jne 0x45bb96
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
jb 0x45bb64
inc ecx
add ebx, ebx
jne 0x45bba4
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
jb 0x45bb64
add ebx, ebx
jne 0x45bbb1
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc ecx, ecx
add ebx, ebx
jae 0x45bba6
jne 0x45bbc2
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
jae 0x45bba6
add ecx, 2
cmp ebp, 0xfffffb00
adc ecx, 2
lea edx, [edi + ebp]
cmp ebp, 0xfffffffc
jbe 0x45bbe4
mov al, byte [edx]
inc edx
mov byte [edi], al
inc edi
dec ecx
jne 0x45bbd6
jmp 0x45bb26
mov eax, dword [edx]
add edx, 4
mov dword [edi], eax
add edi, 4
sub ecx, 4
ja 0x45bbe4
add edi, ecx
jmp 0x45bb26
pop esi
mov edi, esi
mov ecx, 0xdfa
mov al, byte [edi]
inc edi
sub al, 0xe8
cmp al, 1
ja 0x45bc02
cmp byte [edi], 0x13
jne 0x45bc02
mov eax, dword [edi]
mov bl, byte [edi + 4]
shr ax, 8
rol eax, 0x10
xchg ah, al
sub eax, edi
sub bl, 0xe8
add eax, esi
mov dword [edi], eax
add edi, 5
mov al, bl
loop 0x45bc07
lea edi, [esi + 0x58000]
mov eax, dword [edi]
or eax, eax
je 0x45bc7f
mov ebx, dword [edi + 4]
lea eax, [eax + esi + 0x5d6ec]
add ebx, esi
push eax
add edi, 8
call dword [esi + 0x5d7f0]
xchg ebp, eax
mov al, byte [edi]
inc edi
or al, al
je 0x45bc34
mov ecx, edi
jns 0x45bc63
movzx eax, word [edi]
inc edi
push eax
inc edi
mov ecx, 0xaef24857
push edi
dec eax
repne scasb al, byte es:[edi]
push ebp
call dword [esi + 0x5d7f4]
or eax, eax
je 0x45bc79
mov dword [ebx], eax
add ebx, 4
jmp 0x45bc51
call dword [esi + 0x5d804]
mov ebp, dword [esi + 0x5d7f8]
lea edi, [esi - 0x1000]
mov ebx, 0x1000
push eax
push esp
push 4
push ebx
push edi
call ebp
lea eax, [edi + 0x21f]
and byte [eax], 0x7f
and byte [eax + 0x28], 0x7f
pop eax
push eax
push esp
push eax
push ebx
push edi
call ebp
pop eax
popal
lea eax, [esp - 0x80]
push 0
cmp esp, eax
jne 0x45bcb3
sub esp, 0xffffff80
jmp 0x40b614
Function at 0x402b50
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x34
mov eax, dword [0x40a040]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
mov ebx, dword [ebp + 8]
push esi
push edi
mov edi, 0xffff
movzx eax, bx
mov dword [ebp - 0x34], eax
mov esi, ecx
cmp di, bx
jne 0x402b8d
pop edi
pop esi
xor eax, eax
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.00405453
mov esp, ebp
pop ebp
ret 4
mov eax, dword [esi + 0x20]
mov ecx, dword [eax]
test ecx, ecx
je 0x402bc7
mov edx, dword [esi + 0x30]
mov eax, dword [edx]
lea eax, [ecx + eax*2]
cmp ecx, eax
jae 0x402bc7
dec dword [edx]
mov ax, bx
mov edx, dword [esi + 0x20]
pop edi
mov esi, dword [edx]
lea ecx, [esi + 2]
mov dword [edx], ecx
mov word [esi], bx
pop esi
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.00405453
mov esp, ebp
pop ebp
ret 4
cmp dword [esi + 0x4c], 0
je 0x402c97
mov ecx, dword [esi + 0xc]
lea eax, [esi + 0x3c]
cmp dword [ecx], eax
jne 0x402bf4
mov eax, dword [esi + 0xc]
mov edx, dword [esi + 0x54]
mov ecx, dword [esi + 0x50]
sub edx, ecx
sar edx, 1
mov dword [eax], ecx
mov eax, dword [esi + 0x1c]
mov dword [eax], ecx
mov eax, dword [esi + 0x2c]
mov dword [eax], edx
mov ecx, dword [esi + 0x38]
test ecx, ecx
jne 0x402c27
push dword [esi + 0x4c]
push ebx
call dword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll_fputwc]
add esp, 8
movzx ecx, bx
cmp ax, di
cmove ecx, edi
pop edi
pop esi
mov ax, cx
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.00405453
mov esp, ebp
pop ebp
ret 4
movzx eax, bx
mov dword [ebp - 0x28], eax
lea eax, [ebp - 0x2c]
push eax
lea eax, [ebp - 4]
push eax
lea eax, [ebp - 0x24]
push eax
lea eax, [ebp - 0x30]
push eax
lea eax, [ebp - 0x26]
push eax
lea eax, [ebp - 0x28]
push eax
lea eax, [esi + 0x40]
push eax
call dword [sym.imp.MSVCP140.dll_public:_int___thiscall_std::codecvt_wchar_t__char__struct__Mbstatet_::out_struct__Mbstatet___wchar_t_const___wchar_t_const___wchar_t_const____char___char___char___const]
sub eax, 0
je 0x402c66
sub eax, 1
je 0x402c66
sub eax, 2
jne 0x402c97
push dword [esi + 0x4c]
push dword [ebp - 0x28]
jmp 0x402bff
mov ebx, dword [ebp - 0x2c]
lea eax, [ebp - 0x24]
sub ebx, eax
je 0x402c84
push dword [esi + 0x4c]
push ebx
push 1
push eax
call dword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll_fwrite]
add esp, 0x10
cmp ebx, eax
jne 0x402c97
mov eax, dword [ebp - 0x34]
lea ecx, [ebp - 0x28]
cmp dword [ebp - 0x30], ecx
movzx eax, ax
mov byte [esi + 0x3e], 1
cmovne edi, eax
mov ecx, dword [ebp - 4]
mov ax, di
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.00405453
mov esp, ebp
pop ebp
ret 4
Function at 0x4030f0
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x28
mov eax, dword [0x40a040]
xor eax, ebp
mov dword [ebp - 4], eax
push esi
mov esi, ecx
cmp dword [esi + 0x38], 0
je 0x4031b4
cmp byte [esi + 0x3e], 0
je 0x4031b4
mov eax, dword [esi]
push edi
push 0xffff
call dword [eax + 0xc]
mov ecx, 0xffff
cmp cx, ax
je 0x4031a2
mov ecx, dword [esi + 0x38]
lea eax, [ebp - 0x28]
push eax
lea eax, [ebp - 4]
push eax
lea eax, [ebp - 0x24]
push eax
lea eax, [esi + 0x40]
push eax
call dword [sym.imp.MSVCP140.dll_public:_int___thiscall_std::codecvt_wchar_t__char__struct__Mbstatet_::unshift_struct__Mbstatet___char___char___char___const]
sub eax, 0
je 0x403169
sub eax, 1
je 0x40316d
sub eax, 2
jne 0x4031a2
mov byte [esi + 0x3e], al
mov al, 1
pop edi
pop esi
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.00405453
mov esp, ebp
pop ebp
ret
mov byte [esi + 0x3e], 0
mov edi, dword [ebp - 0x28]
lea eax, [ebp - 0x24]
sub edi, eax
je 0x40318b
push dword [esi + 0x4c]
push edi
push 1
push eax
call dword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll_fwrite]
add esp, 0x10
cmp edi, eax
jne 0x4031a2
cmp byte [esi + 0x3e], 0
pop edi
sete al
pop esi
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.00405453
mov esp, ebp
pop ebp
ret
pop edi
xor al, al
pop esi
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.00405453
mov esp, ebp
pop ebp
ret
mov ecx, dword [ebp - 4]
mov al, 1
xor ecx, ebp
pop esi
call fcn.00405453
mov esp, ebp
pop ebp
ret
Function at 0x405cf4
Capabilities:
Parse pe header

Disassembly:
push 0
call dword [sym.imp.KERNEL32.dll_GetModuleHandleW]
test eax, eax
je 0x405d33
mov ecx, 0x5a4d
cmp word [eax], cx
jne 0x405d33
mov ecx, dword [eax + 0x3c]
add ecx, eax
cmp dword [ecx], 0x4550
jne 0x405d33
mov eax, 0x10b
cmp word [ecx + 0x18], ax
jne 0x405d33
cmp dword [ecx + 0x74], 0xe
jbe 0x405d33
cmp dword [ecx + 0xe8], 0
setne al
ret
xor al, al
ret
Function at 0x1026446
Capabilities:
Get system information on windows

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x50
mov eax, dword [0x1034060]
xor eax, ebp
mov dword [ebp - 4], eax
test byte [0x1034b8c], 1
push ebx
push esi
push edi
jne 0x1026475
or dword [0x1034b8c], 1
call fcn.010263e5
mov dword [0x1034b88], eax
push 4
pop eax
call fcn.01029090
mov esi, esp
push 0x1c
lea eax, [ebp - 0x2c]
push eax
push esi
call dword [sym.imp.KERNEL32.dll_VirtualQuery]
test eax, eax
jne 0x1026497
xor eax, eax
jmp 0x1026554
mov ebx, dword [ebp - 0x28]
lea eax, [ebp - 0x50]
push eax
call dword [sym.imp.KERNEL32.dll_GetSystemInfo]
mov eax, dword [ebp - 0x4c]
lea edi, [eax - 1]
not edi
and edi, esi
sub edi, eax
mov dword [ebp - 0xc], eax
mov eax, dword [0x1034b70]
mov esi, eax
dec esi
neg esi
sbb esi, esi
and esi, 0xffff1000
add esi, 0x11000
add esi, ebx
cmp edi, esi
jb 0x1026490
cmp eax, 1
je 0x1026535
mov dword [ebp - 8], ebx
mov ebx, 0x1000
push 0x1c
lea eax, [ebp - 0x2c]
push eax
push dword [ebp - 8]
call dword [sym.imp.KERNEL32.dll_VirtualQuery]
test eax, eax
je 0x1026490
mov eax, dword [ebp - 0x20]
add dword [ebp - 8], eax
test dword [ebp - 0x1c], ebx
je 0x10264de
test dword [ebp - 0x18], 0x100
mov eax, dword [ebp - 0x2c]
mov dword [ebp - 8], eax
je 0x1026510
xor eax, eax
inc eax
jmp 0x1026554
cmp edi, eax
jb 0x1026490
cmp eax, esi
jae 0x102651f
mov dword [ebp - 8], esi
push 4
push ebx
push dword [ebp - 0xc]
push dword [ebp - 8]
call dword [sym.imp.KERNEL32.dll_VirtualAlloc]
mov eax, dword [0x1034b70]
jmp 0x1026538
mov dword [ebp - 8], edi
dec eax
neg eax
sbb eax, eax
and eax, 0x103
lea ecx, [ebp - 0x10]
push ecx
inc eax
push eax
push dword [ebp - 0xc]
push dword [ebp - 8]
call dword [sym.imp.KERNEL32.dll_VirtualProtect]
lea esp, [ebp - 0x5c]
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.01029060
leave
ret

Function at 0x1026bfc
Capabilities:
Encrypt data using rc4 prga

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push ecx
mov ecx, dword [ebp + 0xc]
cmp word [ecx], 0
mov eax, dword [ebp + 8]
mov dword [ebp + 8], eax
je 0x1026c87
cmp word [eax], 0
push ebx
push esi
push edi
je 0x1026c82
mov ebx, dword [sym.imp.USER32.dll_CharNextW]
mov esi, dword [ebp + 8]
mov edi, dword [ebp + 0xc]
jmp 0x1026c68
movzx eax, word [edi]
test ax, ax
je 0x1026c8b
movzx ecx, word [esi]
movzx eax, ax
sub ecx, eax
jne 0x1026c6e
push esi
call ebx
push edi
mov dword [ebp - 4], eax
call ebx
mov ecx, dword [ebp - 4]
sub eax, edi
sub ecx, esi
xor eax, ecx
test eax, 0xfffffffe
jne 0x1026c6e
jmp 0x1026c63
inc esi
inc esi
movzx ecx, word [esi]
inc edi
inc edi
movzx eax, word [edi]
sub ecx, eax
je 0x1026c68
cmp esi, dword [ebp - 4]
jb 0x1026c55
cmp word [esi], 0
jne 0x1026c28
cmp word [edi], 0
je 0x1026c8b
push dword [ebp + 8]
call ebx
cmp word [eax], 0
mov dword [ebp + 8], eax
jne 0x1026c20
xor eax, eax
pop edi
pop esi
pop ebx
leave
ret 8
mov eax, dword [ebp + 8]
jmp 0x1026c84
Function at 0x10274c0
Capabilities:
Query or enumerate registry key

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x224
mov eax, dword [0x1034060]
xor eax, ebp
mov dword [ebp - 4], eax
push esi
push edi
xor esi, esi
mov eax, ecx
mov ecx, dword [ebp + 8]
push esi
push 0x2001f
push ecx
push dword [eax]
mov dword [ebp - 0x21c], ecx
lea ecx, [ebp - 0x214]
mov dword [ebp - 0x218], eax
mov dword [ebp - 0x214], esi
mov dword [ebp - 0x210], esi
mov dword [ebp - 0x20c], esi
call fcn.01026829
mov edi, eax
cmp edi, esi
je 0x1027533
lea ecx, [ebp - 0x214]
call fcn.010267b6
mov eax, edi
mov ecx, dword [ebp - 4]
pop edi
xor ecx, ebp
pop esi
call fcn.01029060
leave
ret 4
mov edi, dword [sym.imp.ADVAPI32.dll_RegEnumKeyExW]
jmp 0x1027551
lea eax, [ebp - 0x204]
push eax
lea ecx, [ebp - 0x214]
call fcn.010274c0
cmp eax, esi
jne 0x102759c
lea eax, [ebp - 0x224]
push eax
push esi
push esi
push esi
lea eax, [ebp - 0x208]
push eax
lea eax, [ebp - 0x204]
push eax
push esi
push dword [ebp - 0x214]
mov dword [ebp - 0x208], 0x100
call edi
test eax, eax
je 0x102753b
lea ecx, [ebp - 0x214]
call fcn.010267b6
push dword [ebp - 0x21c]
mov ecx, dword [ebp - 0x218]
call fcn.01026730
lea ecx, [ebp - 0x214]
mov esi, eax
call fcn.010267b6
mov eax, esi
jmp 0x1027523