joyce8/EMBER2024-capa huggingface dataset:
Function at 0x4010d4
Capabilities:
Create thread

Disassembly:
push ebp
mov ebp, esp
sub esp, 0xc
mov dword [ebp - 0xc], ecx
push 0
push 0
push 0
push 0
call dword [sym.imp.KERNEL32.dll_CreateEventA]
mov ecx, dword [ebp - 0xc]
mov dword [ecx + 0x88], eax
mov edx, dword [ebp - 0xc]
cmp dword [edx + 0x88], 0
jne 0x401104
xor al, al
jmp 0x401129
lea eax, [ebp - 4]
push eax
push 0
mov ecx, dword [ebp - 0xc]
push ecx
push 0x40112d
push 0
push 0
call dword [sym.imp.KERNEL32.dll_CreateThread]
mov dword [ebp - 8], eax
xor eax, eax
cmp dword [ebp - 8], 0
setne al
mov esp, ebp
pop ebp
ret

Function at 0x4011b1
Capabilities:
Accept command line arguments

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x38
call dword [sym.imp.KERNEL32.dll_GetCommandLineA]
mov dword [ebp + 0x10], eax
call fcn.0040400b
mov dword [ebp - 4], eax
mov eax, dword [0x437818]
mov dword [ebp - 0x10], eax
mov ecx, dword [ebp - 4]
push ecx
call dword [ebp - 0x10]
push 0
call dword [sym.imp.ole32.dll_CoInitialize]
mov dword [ebp - 0xc], eax
push 0x4071b8
mov edx, dword [ebp + 8]
push edx
push 0x437820
mov ecx, 0x437788
call fcn.004059c0
call dword [sym.imp.KERNEL32.dll_GetCurrentThreadId]
mov dword [0x43780c], eax
mov ax, word [0x4370dc]
mov word [ebp - 0x1c], ax
mov cl, byte [0x4370de]
mov byte [ebp - 0x1a], cl
mov dword [ebp - 8], 0
mov dword [ebp - 0x14], 1
lea edx, [ebp - 0x1c]
push edx
mov eax, dword [ebp + 0x10]
push eax
call fcn.00401147
add esp, 8
mov dword [ebp - 0x18], eax
cmp dword [ebp - 0x18], 0
je 0x4012d5
push str.UnregServer
mov ecx, dword [ebp - 0x18]
push ecx
call dword [sym.imp.KERNEL32.dll_lstrcmpiA]
test eax, eax
jne 0x401280
push 0
push 0
push 0x64
push 0x437788
call fcn.00405bc0
push 0
push 1
mov ecx, 0x437788
call fcn.00405ba0
mov dword [ebp - 8], eax
mov dword [ebp - 0x14], 0
jmp 0x4012d5
push str.RegServer
mov edx, dword [ebp - 0x18]
push edx
call dword [sym.imp.KERNEL32.dll_lstrcmpiA]
test eax, eax
jne 0x4012bd
push 0
push 1
push 0x64
push 0x437788
call fcn.00405bc0
push 0
push 1
mov ecx, 0x437788
call fcn.00405b80
mov dword [ebp - 8], eax
mov dword [ebp - 0x14], 0
jmp 0x4012d5
lea eax, [ebp - 0x1c]
push eax
mov ecx, dword [ebp - 0x18]
push ecx
call fcn.00401147
add esp, 8
mov dword [ebp - 0x18], eax
jmp 0x401239
cmp dword [ebp - 0x14], 0
je 0x40132b
mov ecx, 0x437788
call fcn.004010d4
push 1
push 4
mov ecx, 0x437788
call fcn.00405bf0
mov dword [ebp - 0xc], eax
push 0
push 0
push 0
lea edx, [ebp - 0x38]
push edx
call dword [sym.imp.USER32.dll_GetMessageA]
test eax, eax
je 0x401316
lea eax, [ebp - 0x38]
push eax
call dword [sym.imp.USER32.dll_DispatchMessageA]
jmp 0x4012f6
mov ecx, 0x437788
call fcn.00405c10
push 0x3e8
call dword [sym.imp.KERNEL32.dll_Sleep]
mov ecx, 0x437788
call fcn.00405b20
call dword [sym.imp.ole32.dll_CoUninitialize]
mov eax, dword [ebp - 8]
mov esp, ebp
pop ebp
ret 0x10
Function at 0x40198a
Capabilities:
Delete file
Read file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x14
mov dword [ebp - 8], 0x64
mov eax, dword [ebp + 0xc]
mov dword [ebp - 4], eax
push 0
call dword [sym.imp.KERNEL32.dll_GetModuleHandleA]
mov ecx, dword [ebp - 4]
mov dword [ecx + 0x80], eax
mov edx, dword [ebp - 4]
cmp dword [edx + 0x80], 0
je 0x4019c8
mov eax, dword [ebp - 8]
add eax, 0x7c
mov dword [ebp - 8], eax
jmp 0x401a50
push 0
push 0
push 4
push 0
push 0
push 2
push 0x437150
call dword [sym.imp.KERNEL32.dll_CreateFileA]
mov dword [ebp - 0x10], eax
cmp dword [ebp - 0x10], 0
je 0x401a3b
push 0x80
call fcn.00405ea3
add esp, 4
mov dword [ebp - 0x14], eax
mov ecx, dword [ebp - 0x14]
mov dword [ebp - 4], ecx
cmp dword [ebp - 4], 0
je 0x401a3b
push 0
lea edx, [ebp - 8]
push edx
push 4
mov eax, dword [ebp - 4]
push eax
mov ecx, dword [ebp - 0x10]
push ecx
call dword [sym.imp.KERNEL32.dll_ReadFile]
cmp dword [ebp - 8], 4
jne 0x401a3b
push 0
lea edx, [ebp - 8]
push edx
push 4
mov eax, dword [ebp - 4]
add eax, 0x580
push eax
mov ecx, dword [ebp - 0x10]
push ecx
call dword [sym.imp.KERNEL32.dll_ReadFile]
mov edx, dword [ebp - 0x10]
push edx
call dword [sym.imp.KERNEL32.dll_CloseHandle]
push str.wing.txt
call dword [sym.imp.KERNEL32.dll_DeleteFileA]
mov eax, dword [ebp - 4]
mov ecx, dword [ebp - 4]
mov edx, dword [ecx + 0x80]
mov dword [eax + 0x6c], edx
mov eax, dword [ebp - 4]
mov dword [eax + 0x15c], 0x433f84
mov ecx, dword [ebp - 4]
mov edx, dword [sym.imp.KERNEL32.dll_GetModuleHandleA]
mov dword [ecx + 0x150], edx
mov eax, dword [ebp - 4]
mov dword [eax + 0x124], 0x408000
mov ecx, dword [ebp - 4]
push ecx
call fcn.004041af
xor eax, eax
mov esp, ebp
pop ebp
ret 8
Function at 0x403ce7
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x2c
mov eax, dword [ebp + 0x10]
mov dword [ebp - 0x18], eax
mov ecx, dword [ebp - 0x18]
mov edx, dword [ecx + 0x14]
push edx
push 0
call dword [sym.imp.KERNEL32.dll_GlobalAlloc]
mov dword [ebp - 4], eax
push 0
mov eax, dword [ebp + 0x10]
push eax
mov ecx, dword [ebp - 4]
push ecx
mov edx, dword [ebp - 0x18]
xor eax, eax
mov ax, word [edx + 8]
push eax
push 0
mov ecx, dword [ebp + 0x14]
push ecx
mov edx, dword [ebp + 0x18]
push edx
call dword [sym.imp.GDI32.dll_GetDIBits]
push 0
push 0x80
push 2
push 0
push 0
push 0xc0000000
mov eax, dword [ebp + 0xc]
push eax
call dword [sym.imp.KERNEL32.dll_CreateFileA]
mov dword [ebp - 0x2c], eax
mov word [ebp - 0x28], 0x4d42
mov ecx, dword [ebp - 0x18]
mov edx, dword [ecx]
mov eax, dword [ebp - 0x18]
mov ecx, dword [eax + 0x20]
lea edx, [edx + ecx*4 + 0xe]
mov eax, dword [ebp - 0x18]
add edx, dword [eax + 0x14]
mov dword [ebp - 0x26], edx
mov word [ebp - 0x22], 0
mov word [ebp - 0x20], 0
mov ecx, dword [ebp - 0x18]
mov edx, dword [ecx]
mov eax, dword [ebp - 0x18]
mov ecx, dword [eax + 0x20]
lea edx, [edx + ecx*4 + 0xe]
mov dword [ebp - 0x1e], edx
push 0
lea eax, [ebp - 0xc]
push eax
push 0xe
lea ecx, [ebp - 0x28]
push ecx
mov edx, dword [ebp - 0x2c]
push edx
call dword [sym.imp.KERNEL32.dll_WriteFile]
push 0
lea eax, [ebp - 0xc]
push eax
mov ecx, dword [ebp - 0x18]
mov edx, dword [ecx + 0x20]
lea eax, [edx*4 + 0x28]
push eax
mov ecx, dword [ebp - 0x18]
push ecx
mov edx, dword [ebp - 0x2c]
push edx
call dword [sym.imp.KERNEL32.dll_WriteFile]
mov eax, dword [ebp - 0x18]
mov ecx, dword [eax + 0x14]
mov dword [ebp - 8], ecx
mov edx, dword [ebp - 8]
mov dword [ebp - 0x14], edx
mov eax, dword [ebp - 4]
mov dword [ebp - 0x10], eax
push 0
lea ecx, [ebp - 0xc]
push ecx
mov edx, dword [ebp - 8]
push edx
mov eax, dword [ebp - 0x10]
push eax
mov ecx, dword [ebp - 0x2c]
push ecx
call dword [sym.imp.KERNEL32.dll_WriteFile]
test eax, eax
jne 0x403e05
mov edx, dword [ebp - 0x2c]
push edx
call dword [sym.imp.KERNEL32.dll_CloseHandle]
test eax, eax
jne 0x403e05
mov eax, dword [ebp - 4]
push eax
call dword [sym.imp.KERNEL32.dll_GlobalFree]
mov esp, ebp
pop ebp
ret
Function at 0x40400b
Capabilities:
Read file on windows
Write file on windows

Disassembly:
push ebp
mov ebp, esp
mov eax, 0x1030
call fcn.00406270
mov dword [ebp - 0x18], 0
call dword [sym.imp.USER32.dll_GetDesktopWindow]
mov dword [ebp - 4], eax
mov dword [ebp - 0x14], 0
push 1
push 0xd
call fcn.00401b13
add esp, 8
mov dword [ebp - 8], eax
cmp dword [ebp - 4], 0
jne 0x404078
mov eax, dword [ebp - 4]
push eax
call dword [sym.imp.USER32.dll_GetDC]
mov dword [ebp - 0x10], eax
push 0xa
mov ecx, dword [ebp - 0x10]
push ecx
call dword [sym.imp.GDI32.dll_GetDeviceCaps]
push eax
push 8
mov edx, dword [ebp - 0x10]
push edx
call dword [sym.imp.GDI32.dll_GetDeviceCaps]
push eax
mov eax, dword [ebp - 0x10]
push eax
call dword [sym.imp.GDI32.dll_CreateCompatibleBitmap]
mov dword [ebp - 0x1c], eax
cmp dword [ebp - 4], 0
je 0x404090
mov ecx, dword [ebp - 4]
push ecx
call dword [sym.imp.USER32.dll_IsWindowVisible]
mov eax, dword [ebp - 8]
jmp 0x4041ab
push 0
push 0x80
push 3
push 0
push 0
push 0x80000000
push str.one.txt
call dword [sym.imp.KERNEL32.dll_CreateFileA]
mov dword [ebp - 0x1028], eax
cmp dword [ebp - 0x1028], 0xffffffff
jne 0x4040c3
xor eax, eax
jmp 0x4041ab
push 0
push 0x80
push 4
push 0
push 1
push 4
push str.two.txt
call dword [sym.imp.KERNEL32.dll_CreateFileA]
mov dword [ebp - 0x20], eax
cmp dword [ebp - 0x20], 0xffffffff
jne 0x4040ed
xor eax, eax
jmp 0x4041ab
push 0
lea edx, [ebp - 0x1030]
push edx
push 0x1000
lea eax, [ebp - 0x1020]
push eax
mov ecx, dword [ebp - 0x1028]
push ecx
call dword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
je 0x404182
push 2
push 0
push 0
mov edx, dword [ebp - 0x20]
push edx
call dword [sym.imp.KERNEL32.dll_SetFilePointer]
mov dword [ebp - 0x102c], eax
push 0
mov eax, dword [ebp - 0x1030]
push eax
push 0
mov ecx, dword [ebp - 0x102c]
push ecx
mov edx, dword [ebp - 0x20]
push edx
call dword [sym.imp.KERNEL32.dll_LockFile]
push 0
lea eax, [ebp - 0x1024]
push eax
mov ecx, dword [ebp - 0x1030]
push ecx
lea edx, [ebp - 0x1020]
push edx
mov eax, dword [ebp - 0x20]
push eax
call dword [sym.imp.KERNEL32.dll_WriteFile]
push 0
mov ecx, dword [ebp - 0x1030]
push ecx
push 0
mov edx, dword [ebp - 0x102c]
push edx
mov eax, dword [ebp - 0x20]
push eax
call dword [sym.imp.KERNEL32.dll_UnlockFile]
cmp dword [ebp - 0x1030], 0x1000
je 0x4040ed
mov ecx, dword [ebp - 0x1028]
push ecx
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov edx, dword [ebp - 0x20]
push edx
call dword [sym.imp.KERNEL32.dll_CloseHandle]
xor eax, eax
mov esp, ebp
pop ebp
ret
Function at 0x4059c0
Capabilities:
Get system information on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x34
mov dword [ebp - 0x34], ecx
mov eax, dword [ebp - 0x34]
mov dword [eax + 0x70], 0x4376a8
mov ecx, dword [ebp - 0x34]
mov dword [0x437858], ecx
mov edx, dword [ebp - 0x34]
mov dword [edx], 0x84
mov eax, dword [ebp - 0x34]
mov dword [eax + 0x64], 0x300
mov ecx, dword [ebp + 0xc]
push ecx
mov edx, dword [ebp + 8]
push edx
mov eax, dword [ebp - 0x34]
push eax
call dword [sym.imp.ATL.DLL_AtlModuleInit]
cmp dword [ebp + 0x10], 0
je 0x405a1a
push 0x10
mov ecx, dword [ebp + 0x10]
push ecx
push 0x437848
call fcn.00405f30
add esp, 0xc
push 0
push 0
push 0
call dword [sym.imp.KERNEL32.dll_HeapCreate]
mov edx, dword [ebp - 0x34]
mov dword [edx + 0x18], eax
lea eax, [ebp - 0x24]
push eax
call dword [sym.imp.KERNEL32.dll_GetSystemInfo]
cmp dword [ebp - 0x10], 1
jbe 0x405afb
mov ecx, dword [ebp - 0x10]
shl ecx, 1
mov dword [ebp - 0x28], ecx
mov edx, dword [ebp - 0x34]
mov dword [edx + 0x74], 0xffffffff
mov dword [ebp - 0x2c], 0
jmp 0x405a64
mov eax, dword [ebp - 0x2c]
add eax, 1
mov dword [ebp - 0x2c], eax
cmp dword [ebp - 0x2c], 0x20
jge 0x405a91
mov ecx, dword [ebp - 0x28]
and ecx, 0x80000000
test ecx, ecx
je 0x405a79
jmp 0x405a91
mov edx, dword [ebp - 0x28]
shl edx, 1
mov dword [ebp - 0x28], edx
mov eax, dword [ebp - 0x34]
mov ecx, dword [eax + 0x74]
shr ecx, 1
mov edx, dword [ebp - 0x34]
mov dword [edx + 0x74], ecx
jmp 0x405a5b
mov eax, dword [ebp - 0x34]
mov ecx, dword [eax + 0x74]
shr ecx, 1
mov edx, dword [ebp - 0x34]
mov dword [edx + 0x74], ecx
mov eax, dword [ebp - 0x34]
mov ecx, dword [eax + 0x74]
lea edx, [ecx*4 + 4]
push edx
push 0
mov eax, dword [ebp - 0x34]
mov ecx, dword [eax + 0x18]
push ecx
call dword [sym.imp.KERNEL32.dll_HeapAlloc]
mov edx, dword [ebp - 0x34]
mov dword [edx + 0x78], eax
mov dword [ebp - 0x30], 0
jmp 0x405ad4
mov eax, dword [ebp - 0x30]
add eax, 1
mov dword [ebp - 0x30], eax
mov ecx, dword [ebp - 0x34]
mov edx, dword [ebp - 0x30]
cmp edx, dword [ecx + 0x74]
ja 0x405af9
push 0
push 0
push 0
call dword [sym.imp.KERNEL32.dll_HeapCreate]
mov ecx, dword [ebp - 0x34]
mov edx, dword [ecx + 0x78]
mov ecx, dword [ebp - 0x30]
mov dword [edx + ecx*4], eax
jmp 0x405acb
jmp 0x405b0f
mov edx, dword [ebp - 0x34]
mov dword [edx + 0x78], 0
mov eax, dword [ebp - 0x34]
mov dword [eax + 0x74], 0
xor eax, eax
mov esp, ebp
pop ebp
ret 0xc
Function at 0x405c30
Capabilities:
Accept command line arguments
Terminate process

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x50
call dword [sym.imp.KERNEL32.dll_GetCommandLineA]
mov dword [ebp - 0x4c], eax
cmp dword [ebp - 0x4c], 0
jne 0x405c4d
push 0xffffffffffffffff
call dword [sym.imp.KERNEL32.dll_ExitProcess]
mov eax, dword [ebp - 0x4c]
movsx ecx, byte [eax]
cmp ecx, 0x22
jne 0x405c94
mov edx, dword [ebp - 0x4c]
push edx
call dword [sym.imp.USER32.dll_CharNextA]
mov dword [ebp - 0x4c], eax
mov eax, dword [ebp - 0x4c]
movsx ecx, byte [eax]
cmp ecx, 0x22
je 0x405c7a
mov edx, dword [ebp - 0x4c]
movsx eax, byte [edx]
test eax, eax
jne 0x405c58
mov ecx, dword [ebp - 0x4c]
movsx edx, byte [ecx]
cmp edx, 0x22
jne 0x405c92
mov eax, dword [ebp - 0x4c]
push eax
call dword [sym.imp.USER32.dll_CharNextA]
mov dword [ebp - 0x4c], eax
jmp 0x405cae
mov ecx, dword [ebp - 0x4c]
movsx edx, byte [ecx]
cmp edx, 0x20
jle 0x405cae
mov eax, dword [ebp - 0x4c]
push eax
call dword [sym.imp.USER32.dll_CharNextA]
mov dword [ebp - 0x4c], eax
jmp 0x405c94
mov ecx, dword [ebp - 0x4c]
movsx edx, byte [ecx]
test edx, edx
je 0x405cd2
mov eax, dword [ebp - 0x4c]
movsx ecx, byte [eax]
cmp ecx, 0x20
jg 0x405cd2
mov edx, dword [ebp - 0x4c]
push edx
call dword [sym.imp.USER32.dll_CharNextA]
mov dword [ebp - 0x4c], eax
jmp 0x405cae
mov dword [ebp - 0x18], 0
lea eax, [ebp - 0x44]
push eax
call dword [sym.imp.KERNEL32.dll_GetStartupInfoA]
mov ecx, dword [ebp - 0x18]
and ecx, 1
test ecx, ecx
je 0x405cfb
mov edx, dword [ebp - 0x14]
and edx, 0xffff
mov dword [ebp - 0x50], edx
jmp 0x405d02
mov dword [ebp - 0x50], 0xa
mov eax, dword [ebp - 0x50]
push eax
mov ecx, dword [ebp - 0x4c]
push ecx
push 0
push 0
call dword [sym.imp.KERNEL32.dll_GetModuleHandleA]
push eax
call main
mov dword [ebp - 0x48], eax
mov edx, dword [ebp - 0x48]
push edx
call dword [sym.imp.KERNEL32.dll_ExitProcess]
Function at 0x432000
Capabilities:
Encode data using xor
Packed with generic packer

Disassembly:
pushal
nop
nop
nop
nop
nop
mov eax, section..text
nop
mov ebx, 0x40c7d0
nop
nop
mov ecx, 0x65221476
nop
nop
test eax, eax
nop
nop
nop
nop
nop
nop
je 0x43204e
nop
nop
xor dword [eax], ecx
nop
nop
nop
nop
nop
nop
inc eax
nop
nop
nop
inc eax
nop
nop
nop
nop
nop
nop
inc eax
nop
nop
nop
nop
nop
nop
inc eax
nop
nop
nop
nop
cmp eax, ebx
nop
nop
nop
nop
nop
jne 0x432024
nop
mov eax, section..data
mov ebx, 0x42f314
nop
mov ecx, 0x1f1b7076
nop
nop
nop
nop
test eax, eax
nop
nop
nop
nop
nop
je 0x432084
nop
nop
xor dword [eax], ecx
nop
nop
nop
nop
add eax, 4
nop
nop
nop
nop
nop
cmp eax, ebx
jne 0x43206c
nop
nop
nop
nop
nop
popal
nop
nop
nop
nop
jmp 0x431219

Function at 0x403d61
Capabilities:
Encode data using xor

Disassembly:
push eax
push ebx
mov eax, 0x499
mov ecx, 0x404498
mov bl, byte [ecx]
sub bl, 0xf2
rol bl, 2
sub bl, cl
ror bl, 1
mov byte [ecx], bl
dec ecx
dec eax
jne 0x403d6d
mov eax, 0x261d
mov ecx, 0x403764
mov bl, byte [ecx]
rol bl, 7
ror bl, 2
sub bl, cl
xor bl, 0x91
mov byte [ecx], bl
dec ecx
dec eax
jne 0x403d8a
pop ebx
pop eax
add ecx, 0x2c1a
jmp ecx
Function at 0x4a89d0f9
Capabilities:
Query or enumerate registry key

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x218
mov eax, dword [0x4a8a40ac]
xor eax, ebp
mov dword [ebp - 4], eax
mov eax, dword [ebp + 0xc]
push ebx
push esi
mov esi, dword [ebp + 8]
xor ebx, ebx
push edi
mov dword [ebp - 0x214], esi
cmp eax, ebx
jne 0x4a89d1e5
mov dword [ebp - 0x210], ebx
push 0x104
lea eax, [ebp - 0x20c]
push eax
push dword [ebp - 0x210]
push dword [ebp - 0x214]
call dword [0x4a8a4018]
mov esi, eax
cmp esi, ebx
jne 0x4a89d1be
cmp word [ebp - 0x20c], 0x2e
jne 0x4a89d1a3
lea eax, [ebp - 0x20c]
push eax
push dword [ebp - 0x214]
call fcn.4a89d003
mov edi, eax
cmp edi, ebx
je 0x4a89d1d1
lea edx, [eax + 2]
mov cx, word [eax]
inc eax
inc eax
cmp cx, bx
jne 0x4a89d176
sub eax, edx
sar eax, 1
je 0x4a89d19d
push edi
lea eax, [ebp - 0x20c]
push eax
push str._s_s_r_n
call fcn.4a8858f3
add esp, 0xc
mov esi, eax
push edi
call fcn.4a88142e
cmp dword [0x4a8a41b4], ebx
jne 0x4a89d1e0
inc dword [ebp - 0x210]
cmp esi, ebx
jne 0x4a89d257
jmp 0x4a89d12d
cmp esi, 0x103
jne 0x4a89d257
xor esi, esi
jmp 0x4a89d257
push ebx
call dword [fcn.4a8812d4]
push eax
call fcn.4a886d44
pop ecx
pop ecx
xor eax, eax
inc eax
jmp 0x4a89d259
push ebx
push eax
call fcn.4a882b0d
push eax
call fcn.4a8819d6
mov edi, eax
cmp edi, ebx
je 0x4a89d1e0
push 0x20
push edi
call fcn.4a882148
cmp eax, ebx
je 0x4a89d209
xor ecx, ecx
mov word [eax], cx
push edi
push esi
call fcn.4a89d003
mov ebx, eax
test ebx, ebx
je 0x4a89d239
lea edx, [eax + 2]
mov cx, word [eax]
inc eax
inc eax
test cx, cx
jne 0x4a89d219
sub eax, edx
sar eax, 1
je 0x4a89d239
push ebx
push edi
push str._s_s_r_n
call fcn.4a8858f3
mov esi, eax
jmp 0x4a89d248
xor esi, esi
push edi
inc esi
push esi
push 0x400023a3
call fcn.4a886d44
add esp, 0xc
push ebx
call fcn.4a88142e
push edi
call fcn.4a88142e
mov eax, esi
mov ecx, dword [ebp - 4]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.4a8813a9
leave
ret 8
Function at 0x4a89d26f
Capabilities:
Set registry value

Disassembly:
push 0xc
push 0x4a89d398
call fcn.4a88264a
mov edi, dword [ebp + 0x10]
xor esi, esi
cmp edi, esi
je 0x4a89d2e6
cmp word [edi], si
je 0x4a89d2e6
mov eax, edi
lea edx, [eax + 2]
mov cx, word [eax]
inc eax
inc eax
cmp cx, si
jne 0x4a89d28e
sub eax, edx
sar eax, 1
push eax
push edi
push 1
push dword [ebp + 0xc]
push dword [ebp + 8]
call dword [0x4a8a401c]
mov ebx, eax
mov dword [ebp + 0x10], ebx
cmp ebx, esi
jne 0x4a89d2cb
push edi
push dword [ebp + 0xc]
push str._s_s_r_n
call fcn.4a8858f3
add esp, 0xc
jmp 0x4a89d355
push esi
push ebx
call fcn.4a886d44
push dword [ebp + 0xc]
push 1
push 0x235d
call fcn.4a886d44
add esp, 0x14
jmp 0x4a89d355
push esi
push esi
push dword [ebp + 0xc]
push dword [ebp + 8]
call dword [0x4a881368]
mov ebx, eax
mov dword [ebp + 0x10], ebx
cmp ebx, esi
je 0x4a89d359
lea eax, [ebp + 0xc]
push eax
push 0x2000000
push esi
push dword [ebp + 0xc]
push dword [ebp + 8]
call dword [fcn.4a881360]
mov ebx, eax
mov dword [ebp + 0x10], ebx
cmp ebx, esi
je 0x4a89d32c
cmp ebx, 2
je 0x4a89d355
push esi
push ebx
call fcn.4a886d44
pop ecx
pop ecx
jmp 0x4a89d355
push 0x4a883afc
push dword [ebp + 0xc]
call dword [0x4a881364]
mov ebx, eax
mov dword [ebp + 0x10], eax
cmp ebx, esi
je 0x4a89d34c
push esi
push ebx
call fcn.4a886d44
pop ecx
pop ecx
push dword [ebp + 0xc]
call dword [fcn.4a881354]
cmp ebx, esi
jne 0x4a89d389
mov dword [ebp - 4], esi
push esi
push esi
push esi
push 0x8000000
call dword [0x4a8a4040]
jmp 0x4a89d382
mov dword [ebp - 4], 0xfffffffe
mov eax, dword [ebp + 0x10]
call fcn.4a8813b6
ret 0xc
Function at 0x4a89d685
Capabilities:
Parse pe header

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x64
mov eax, dword [0x4a8a40ac]
xor eax, ebp
mov dword [ebp - 4], eax
mov eax, dword [ebp + 8]
push edi
xor edi, edi
mov dword [ebp - 0x48], edi
cmp eax, edi
jne 0x4a89d6ab
xor eax, eax
jmp 0x4a89d7b5
push ebx
push edi
push 0x80
push 3
push edi
push 1
push 0x80000000
push eax
call dword [0x4a8812f0]
mov ebx, eax
mov dword [ebp - 0x4c], ebx
cmp ebx, 0xffffffff
je 0x4a89d7b0
push esi
lea eax, [ebp - 0x44]
push eax
push ebx
push 0x40
pop esi
call fcn.4a89d3db
test eax, eax
je 0x4a89d6f5
mov eax, 0x5a4d
xor ecx, ecx
cmp ax, word [ebp - 0x44]
sete cl
mov eax, ecx
jmp 0x4a89d6f7
xor eax, eax
cmp eax, edi
je 0x4a89d7a6
push edi
push edi
push dword [ebp - 8]
push ebx
call dword [fcn.4a881284]
xor ecx, ecx
cmp eax, 0xffffffff
setne cl
mov eax, ecx
cmp eax, edi
je 0x4a89d7a6
lea eax, [ebp - 0x50]
push eax
push ebx
push 4
pop esi
call fcn.4a89d3db
test eax, eax
je 0x4a89d73c
xor eax, eax
cmp dword [ebp - 0x50], 0x4550
sete al
jmp 0x4a89d73e
xor eax, eax
cmp eax, edi
je 0x4a89d7a6
lea eax, [ebp - 0x64]
push eax
push ebx
push 0x14
pop esi
call fcn.4a89d3db
test eax, eax
je 0x4a89d7a6
cmp word [ebp - 0x54], di
jbe 0x4a89d7a6
movzx eax, word [ebp - 0x54]
mov edi, dword [fcn.4a881294]
push eax
push 8
call edi
push eax
call dword [fcn.4a8812a8]
mov ebx, eax
test ebx, ebx
je 0x4a89d7a6
movzx esi, word [ebp - 0x54]
push ebx
push dword [ebp - 0x4c]
call fcn.4a89d3db
test eax, eax
je 0x4a89d79a
mov edx, dword [ebp - 0x64]
mov ecx, ebx
call fcn.4a89d3b9
test eax, eax
je 0x4a89d79a
movzx eax, word [eax]
mov dword [ebp - 0x48], eax
push ebx
push 0
call edi
push eax
call dword [fcn.4a881290]
push dword [ebp - 0x4c]
call dword [0x4a8812ac]
pop esi
mov ax, word [ebp - 0x48]
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
pop edi
call fcn.4a8813a9
leave
ret 4
Function at 0x100018c0
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x24
mov eax, dword [section..data]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
push esi
push edi
lea ecx, [ebp - 0xc]
call fcn.100015d0
mov dword [ebp - 0x24], eax
test eax, eax
je 0x10001a62
mov edx, dword [ebp - 0xc]
mov ecx, eax
push 0
sub esp, 0xc
push 0x100022d0
push 0x100022b0
call fcn.10002330
mov ebx, eax
add esp, 0x18
mov dword [ebp - 0x20], ebx
test ebx, ebx
je 0x10001a57
mov edx, 0xa
mov dword [ebp - 0x18], 0x7059585a
mov dword [ebp - 0x1c], edx
xor ecx, ecx
mov dword [ebp - 0x14], 0x27232d4a
mov dword [ebp - 0x10], 0x453731
nop
lea eax, [ecx + 0x3b]
xor byte [ebp + ecx - 0x18], al
inc ecx
mov edx, dword [ebp - 0x1c]
cmp ecx, edx
jb 0x10001930
mov byte [ebp + edx - 0x18], 0
lea ecx, [ebp - 0x18]
mov esi, dword [ebx]
mov edx, dword [ebx + 4]
mov dword [ebp - 8], ecx
mov dword [ebp - 0xc], edx
cmp dword [esi + 0x7c], 0
je 0x10001a44
mov esi, dword [esi + 0x78]
add esi, edx
cmp dword [esi + 0x18], 0
je 0x10001a44
cmp dword [esi + 0x14], 0
je 0x10001a44
mov eax, ecx
shr eax, 0x10
test eax, eax
jne 0x10001993
mov eax, dword [esi + 0x10]
movzx ecx, cx
cmp ecx, eax
jb 0x10001a44
sub ecx, eax
jmp 0x10001a32
cmp dword [ebx + 0x30], 0
jne 0x10001a0e
mov edi, dword [esi + 0x20]
xor ecx, ecx
mov ebx, dword [esi + 0x24]
add edi, edx
mov eax, dword [esi + 0x18]
add ebx, edx
mov edx, 8
mul edx
seto cl
neg ecx
or ecx, eax
push ecx
call fcn.1000bac8
mov ecx, eax
add esp, 4
mov eax, dword [ebp - 0x20]
mov dword [eax + 0x30], ecx
test ecx, ecx
jne 0x100019cf
push 0xe
jmp 0x10001a46
mov eax, dword [esi + 0x18]
xor edx, edx
test eax, eax
je 0x100019f8
mov eax, dword [edi]
lea edi, [edi + 4]
add eax, dword [ebp - 0xc]
lea ebx, [ebx + 2]
mov dword [ecx], eax
lea ecx, [ecx + 8]
mov ax, word [ebx - 2]
inc edx
mov word [ecx - 4], ax
mov eax, dword [esi + 0x18]
cmp edx, eax
jb 0x100019d8
mov ebx, dword [ebp - 0x20]
push 0x100027e0
push 8
push eax
push dword [ebx + 0x30]
call fcn.1000bae0
add esp, 0x10
push 0x100027e0
push 8
push dword [esi + 0x18]
lea eax, [ebp - 8]
push dword [ebx + 0x30]
push eax
call fcn.1000bfce
add esp, 0x14
test eax, eax
je 0x10001a44
movzx ecx, word [eax + 4]
mov edx, dword [ebp - 0xc]
cmp ecx, dword [esi + 0x14]
ja 0x10001a44
mov eax, dword [esi + 0x1c]
lea eax, [eax + ecx*4]
mov eax, dword [eax + edx]
add eax, edx
jmp 0x10001a4e
push 0x7f
call dword [sym.imp.KERNEL32.dll_SetLastError]
xor eax, eax
push 2
push 0x6f
call eax
add esp, 8
push dword [ebp - 0x24]
call fcn.1000b063
add esp, 4
mov ecx, dword [ebp - 4]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.100055b0
mov esp, ebp
pop ebp
ret