joyce8/EMBER2024-capa huggingface dataset:
Function at 0x415ab0
Capabilities:
Get graphical window text

Disassembly:
push ebp
mov ebp, esp
sub esp, 8
push ebx
push esi
push edi
mov esi, dword [ebp + 0x10]
push 0xf00021
mov edx, dword [esi + 4]
mov ecx, dword [esi]
mov eax, dword [esi + 0xc]
sub eax, edx
push eax
mov eax, dword [esi + 8]
sub eax, ecx
push eax
push edx
push ecx
mov ecx, dword [ebp + 0xc]
push ecx
call dword [sym.imp.GDI32.dll_PatBlt]
mov edi, dword [ebp + 8]
push edi
call dword [sym.imp.USER32.dll_GetWindowTextLengthA]
mov ebx, eax
lea eax, [eax + 5]
add eax, 3
and eax, 0xfffffffc
call fcn.004081d0
mov dword [ebp - 4], esp
cmp dword [ebp - 4], 0
je 0x415b7b
add ebx, 2
mov eax, dword [ebp - 4]
push ebx
push eax
push edi
call dword [sym.imp.USER32.dll_GetWindowTextA]
test eax, eax
je 0x415b7b
mov bx, 0x140
mov edi, dword [ebp + 0x14]
mov eax, edi
and al, 0xf
cmp al, 0xc
je 0x415b2e
mov ebx, edi
and bx, 0xf
or bx, 0x150
test edi, 0x80
je 0x415b39
or bh, 8
and edi, 0x8000000
je 0x415b54
mov eax, dword [0x435d9c]
mov ecx, dword [ebp + 0xc]
push eax
push ecx
call dword [sym.imp.GDI32.dll_SetTextColor]
mov dword [ebp - 8], eax
mov ecx, dword [ebp - 4]
mov edx, dword [ebp + 0xc]
movzx eax, bx
push eax
push esi
push 0xffffffffffffffff
push ecx
push edx
call dword [sym.imp.USER32.dll_DrawTextA]
test edi, edi
je 0x415b7b
mov eax, dword [ebp - 8]
mov ecx, dword [ebp + 0xc]
push eax
push ecx
call dword [sym.imp.GDI32.dll_SetTextColor]
lea esp, [ebp - 0x14]
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x415f50
Capabilities:
Extract resource via kernel32 functions

Disassembly:
mov eax, dword [esp + 8]
sub esp, 4
push ebx
push esi
mov esi, dword [esp + 0x10]
push edi
push ebp
push 2
push eax
push esi
call dword [sym.imp.KERNEL32.dll_FindResourceA]
mov edi, eax
test edi, edi
jne 0x415f7b
xor eax, eax
pop ebp
pop edi
pop esi
pop ebx
add esp, 4
ret 0x20
push edi
push esi
call dword [sym.imp.KERNEL32.dll_SizeofResource]
mov ebx, eax
push edi
push esi
call dword [sym.imp.KERNEL32.dll_LoadResource]
mov esi, eax
test esi, esi
jne 0x415f9f
xor eax, eax
pop ebp
pop edi
pop esi
pop ebx
add esp, 4
ret 0x20
push ebx
push 0x40
call dword [sym.imp.KERNEL32.dll_GlobalAlloc]
mov ebp, eax
test ebp, ebp
jne 0x415fba
xor eax, eax
pop ebp
pop edi
pop esi
pop ebx
add esp, 4
ret 0x20
mov edi, ebp
mov ecx, ebx
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, ebx
and ecx, 3
rep movsb byte es:[edi], byte [esi]
mov eax, dword [esp + 0x20]
xor ecx, ecx
mov cl, ah
mov edx, eax
mov dword [esp + 0x10], 0
shl ecx, 8
shr edx, 0x10
mov byte [esp + 0x10], dl
xor edx, edx
or ecx, dword [esp + 0x10]
mov dl, al
shl edx, 0x10
mov eax, dword [esp + 0x28]
or ecx, edx
mov edx, eax
shr edx, 0x10
mov dword [ebp + 0x28], ecx
mov dword [esp + 0x10], 0
xor ecx, ecx
mov byte [esp + 0x10], dl
mov cl, ah
xor edx, edx
shl ecx, 8
mov dl, al
shl edx, 0x10
or ecx, dword [esp + 0x10]
or ecx, edx
mov eax, dword [esp + 0x24]
mov edx, eax
mov dword [ebp + 0x44], ecx
shr edx, 0x10
xor ecx, ecx
mov dword [esp + 0x10], 0
mov cl, ah
mov byte [esp + 0x10], dl
shl ecx, 8
xor edx, edx
or ecx, dword [esp + 0x10]
mov dl, al
shl edx, 0x10
mov eax, dword [esp + 0x2c]
or ecx, edx
xor edx, edx
mov dl, al
mov dword [ebp + 0x48], ecx
shl edx, 0x10
xor ecx, ecx
mov cl, ah
shl ecx, 8
shr eax, 0x10
or ecx, edx
xor edx, edx
mov dl, al
mov eax, dword [esp + 0x30]
or ecx, edx
xor edx, edx
mov dl, al
mov dword [ebp + 0x64], ecx
shl edx, 0x10
xor ecx, ecx
mov cl, ah
shl ecx, 8
shr eax, 0x10
or ecx, edx
xor edx, edx
mov dl, al
mov eax, dword [esp + 0x34]
or ecx, edx
xor edx, edx
mov dl, al
mov dword [ebp + 0x54], ecx
shl edx, 0x10
xor ecx, ecx
mov cl, ah
shl ecx, 8
push 0
shr eax, 0x10
or ecx, edx
xor edx, edx
mov dl, al
or ecx, edx
mov dword [ebp + 0x50], ecx
call dword [sym.imp.USER32.dll_GetDC]
mov edi, eax
push 0
push ebp
lea ecx, [ebp + 0x68]
push ecx
push 4
push ebp
push edi
call dword [sym.imp.GDI32.dll_CreateDIBitmap]
mov esi, eax
push edi
push 0
call dword [sym.imp.USER32.dll_ReleaseDC]
push ebp
call dword [sym.imp.KERNEL32.dll_GlobalFree]
mov eax, esi
pop ebp
pop edi
pop esi
pop ebx
add esp, 4
ret 0x20
Function at 0x418250
Capabilities:
Extract resource via kernel32 functions

Disassembly:
mov eax, 0x4249c0
call fcn.00407650
push ecx
sub esp, 0x14
push ebx
push esi
mov esi, ecx
push edi
mov dword [ebp - 0x10], esp
mov dword [ebp - 0x18], esi
mov eax, dword [esi + 0x48]
mov edi, dword [esi + 0x44]
mov dword [ebp - 0x14], eax
call fcn.00421c51
cmp dword [esi + 0x40], 0
mov ebx, dword [eax + 0xc]
je 0x41828f
call fcn.00421c51
mov ebx, dword [eax + 0xc]
push 5
push dword [esi + 0x40]
push ebx
call dword [sym.imp.KERNEL32.dll_FindResourceA]
push eax
push ebx
call dword [sym.imp.KERNEL32.dll_LoadResource]
mov edi, eax
test edi, edi
je 0x41829d
push edi
call dword [sym.imp.KERNEL32.dll_LockResource]
mov dword [ebp - 0x14], eax
cmp dword [ebp - 0x14], 0
jne 0x4182ab
or eax, 0xffffffff
jmp 0x418397
mov ecx, esi
call fcn.004181cc
mov edi, eax
mov dword [ebp - 0x20], edi
call fcn.00419004
push edi
call fcn.00418aa7
and dword [ebp - 0x1c], 0
test edi, edi
je 0x4182e5
push edi
call dword [sym.imp.USER32.dll_IsWindowEnabled]
test eax, eax
je 0x4182e5
push 0
push edi
call dword [sym.imp.USER32.dll_EnableWindow]
mov dword [ebp - 0x1c], 1
and dword [ebp - 4], 0
push esi
call fcn.00418fb8
push edi
call fcn.00418aa7
push ebx
push eax
push dword [ebp - 0x14]
mov ecx, esi
call fcn.00417f63
xor ebx, ebx
cmp eax, ebx
je 0x41835e
test byte [esi + 0x24], 0x10
je 0x418329
push 4
mov ecx, esi
pop ebx
call fcn.0041b3fc
test ah, 1
je 0x41831f
push 5
pop ebx
push ebx
mov ecx, esi
call fcn.0041b035
xor ebx, ebx
cmp dword [esi + 0x1c], ebx
je 0x41835e
push 0x97
push ebx
push ebx
push ebx
push ebx
push ebx
mov ecx, esi
call fcn.0041b516
jmp 0x41835e
or dword [ebp - 4], 0xffffffff
cmp dword [ebp - 0x1c], ebx
je 0x418370
push 1
push edi
call dword [sym.imp.USER32.dll_EnableWindow]
cmp edi, ebx
je 0x418386
call dword [sym.imp.USER32.dll_GetActiveWindow]
cmp eax, dword [esi + 0x1c]
jne 0x418386
push edi
call dword [sym.imp.USER32.dll_SetActiveWindow]
mov eax, dword [esi]
mov ecx, esi
call dword [eax + 0x60]
mov ecx, esi
call fcn.00418203
mov eax, dword [esi + 0x2c]
mov ecx, dword [ebp - 0xc]
pop edi
pop esi
mov dword fs:[0], ecx
pop ebx
leave
ret
Function at 0x41af2b
Capabilities:
Extract resource via kernel32 functions

Disassembly:
push ebx
push esi
push edi
xor edi, edi
cmp dword [esp + 0x10], edi
mov ebx, ecx
je 0x41af6d
call fcn.00421c51
mov esi, dword [eax + 0xc]
push 0xf0
push dword [esp + 0x14]
push esi
call dword [sym.imp.KERNEL32.dll_FindResourceA]
cmp eax, edi
je 0x41af6d
push eax
push esi
call dword [sym.imp.KERNEL32.dll_LoadResource]
cmp eax, edi
jne 0x41af64
xor eax, eax
jmp 0x41af75
push eax
call dword [sym.imp.KERNEL32.dll_LockResource]
mov edi, eax
push edi
mov ecx, ebx
call fcn.0041af7b
pop edi
pop esi
pop ebx
ret 4

Function at 0x41bf01
Capabilities:
Clear file content

Disassembly:
push esi
mov esi, ecx
push 0
mov eax, dword [esi]
push dword [esp + 0xc]
call dword [eax + 0x30]
push dword [esi + 4]
call dword [sym.imp.KERNEL32.dll_SetEndOfFile]
test eax, eax
jne 0x41bf29
push eax
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
call fcn.0041c9b5
pop esi
ret 4

Function at 0x41d91b
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 0x41d938
cmp dword [0x434684], edi
jne 0x41da8a
cmp word [0x434690], di
mov dword [0x434684], 1
jne 0x41d96a
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 [0x43468c], eax
mov word [0x434690], cx
cmp word [0x434690], 2
jne 0x41d9a6
push str.Magellan_MSWHEEL
push str.MouseZ
call dword [sym.imp.USER32.dll_FindWindowA]
cmp eax, edi
je 0x41d9a6
mov ecx, dword [0x43468c]
cmp ecx, edi
je 0x41d9a6
push edi
push edi
push ecx
push eax
call dword [sym.imp.USER32.dll_SendMessageA]
mov dword [0x434688], eax
jmp 0x41da8f
push 0x94
lea eax, [ebp - 0x9c]
push edi
push eax
call fcn.004078a0
add esp, 0xc
lea eax, [ebp - 0x9c]
mov dword [ebp - 0x9c], 0x94
mov dword [0x434688], 3
push eax
call dword [sym.imp.KERNEL32.dll_GetVersionExA]
test eax, eax
je 0x41da8a
cmp dword [ebp - 0x8c], 1
je 0x41d9fa
cmp dword [ebp - 0x8c], 2
jne 0x41da8a
cmp dword [ebp - 0x98], 4
jae 0x41da69
lea eax, [ebp + 8]
push eax
push 1
push edi
push str.Control_PanelDesktop
push SysReAllocStringLen
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
test eax, eax
jne 0x41da8a
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 0x41da5e
push 0xa
lea eax, [ebp - 0x11c]
push edi
push eax
call fcn.004087e0
add esp, 0xc
mov dword [0x434688], eax
push dword [ebp + 8]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
jmp 0x41da8a
cmp dword [ebp - 0x8c], 2
jne 0x41da8a
cmp dword [ebp - 0x98], 4
jb 0x41da8a
push edi
push 0x434688
push edi
push 0x68
call dword [sym.imp.USER32.dll_SystemParametersInfoA]
mov eax, dword [0x434688]
pop edi
leave
ret
Function at 0x41eb01
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 0x41eb45
push dword [ebp + 8]
call fcn.004223a8
mov esi, eax
test esi, esi
je 0x41eb70
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 0x41eb70
push dword [ebp + 0x10]
lea eax, [ebp - 0x10]
push 0x427144
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 0x421a66
Capabilities:
Access peb ldr_data

Disassembly:
mov eax, 0x424aea
call fcn.00407650
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.0041668d
push 0xa
lea ecx, [esi + 0x4c]
mov byte [ebp - 4], 1
call fcn.0041668d
push 0xa
lea ecx, [esi + 0x68]
mov byte [ebp - 4], 2
call fcn.004164b0
mov ecx, dword [ebp - 0xc]
mov dword [esi], vtable.AFX_MODULE_THREAD_STATE.0
mov dword [esi + 0xc], 0x54
mov dword [esi + 0x28], 0x4178ac
mov eax, esi
mov dword fs:[0], ecx
pop esi
leave
ret

Function at 0x422004
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 0x422034
mov eax, dword [esp + 0x10]
cmp eax, dword [esi + 8]
jl 0x4220be
cmp dword [esp + 0x14], ebx
je 0x4220be
cmp esi, ebx
jne 0x42205a
push 0x10
call fcn.00421e21
cmp eax, ebx
je 0x422049
mov dword [eax], vtable.CThreadData.0
mov esi, eax
jmp 0x42204b
xor esi, esi
push esi
lea ecx, [edi + 0x14]
mov dword [esi + 8], ebx
mov dword [esi + 0xc], ebx
call fcn.00421dc3
mov eax, dword [esi + 0xc]
cmp eax, ebx
jne 0x422071
mov eax, dword [edi + 0xc]
shl eax, 2
push eax
push ebx
call dword [sym.imp.KERNEL32.dll_LocalAlloc]
jmp 0x422081
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 0x42208d
call fcn.004162e8
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.004078a0
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 0x4220f4
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 0x422147
mov eax, dword [ebp + 0xc]
test eax, eax
je 0x42212a
mov ecx, dword [ebx + 0x10]
cmp dword [ecx + edi*8 + 4], eax
je 0x42212a
mov eax, dword [esi + 0xc]
cmp dword [eax + edi*4], 0
je 0x422141
and dword [ebp - 4], 0
jmp 0x422141
mov eax, dword [esi + 0xc]
mov ecx, dword [eax + edi*4]
test ecx, ecx
je 0x42213a
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 0x42210b
cmp dword [ebp - 4], 0
je 0x422175
push esi
lea ecx, [ebx + 0x14]
call fcn.00421dd6
push dword [esi + 0xc]
call dword [sym.imp.KERNEL32.dll_LocalFree]
test esi, esi
je 0x42216b
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 0x432003
Capabilities:
Encode data using xor
Packed with generic packer

Disassembly:
pushal
nop
nop
mov eax, section..reloc
nop
mov ebx, 0x40c7d0
nop
nop
mov ecx, 0x6db40e9
nop
nop
nop
nop
test eax, eax
nop
nop
je 0x43204e
nop
nop
nop
nop
nop
nop
xor dword [eax], ecx
nop
nop
nop
inc eax
nop
nop
nop
inc eax
nop
nop
nop
nop
nop
nop
nop
inc eax
nop
nop
nop
nop
inc eax
nop
nop
nop
nop
nop
nop
cmp eax, ebx
nop
nop
nop
nop
nop
jne 0x432024
nop
mov eax, section..data
nop
mov ebx, 0x42f314
nop
mov ecx, 0x45585e25
nop
nop
test eax, eax
nop
nop
nop
nop
nop
nop
je 0x432084
nop
xor dword [eax], ecx
nop
nop
nop
nop
nop
nop
add eax, 4
nop
nop
nop
nop
cmp eax, ebx
jne 0x43206c
nop
nop
nop
nop
nop
nop
nop
popal
nop
nop
jmp 0x431219
Function at 0x407288
Capabilities:
Encrypt data using tea

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x38
and dword [ebp - 0x14], 0
push ebx
mov ebx, ecx
lea ecx, [ebp - 0x14]
push esi
mov esi, edx
mov dword [ebp - 0x38], ebx
push edi
mov eax, dword [ebx]
mov dword [ebp - 0xc], eax
mov eax, dword [ebx + 4]
mov dword [ebp - 0x24], eax
mov eax, dword [esi]
mov dword [ebp - 0x30], eax
mov eax, dword [esi + 4]
mov dword [ebp - 0x34], eax
call fcn.004071cc
mov edi, dword [ebp - 0x14]
mov eax, dword [esi + 8]
add edi, 0x23f
mov ebx, dword [ebp - 0x24]
mov dword [ebp - 0x28], eax
mov eax, dword [esi + 0xc]
push 0x20
mov dword [ebp - 0x14], edi
mov dword [ebp - 0x2c], eax
pop esi
mov dword [ebp - 0x20], 2
add dword [ebp - 0x20], 3
mov edx, dword [ebp - 0xc]
mov eax, edx
mov ecx, dword [0x1a27254]
shl eax, 4
mov dword [ebp - 4], eax
cmp ecx, 0xc
jne 0x407310
push 0x401118
call dword [sym.imp.KERNEL32.dll_LoadLibraryA]
mov edx, dword [ebp - 0xc]
mov eax, dword [ebp - 4]
mov ecx, dword [0x1a27254]
add eax, dword [ebp - 0x28]
cmp ecx, 0xfa9
mov dword [ebp - 4], eax
mov eax, dword [0x1a27298]
mov dword [ebp - 0x24], 0xedeb2e40
cmove eax, dword [ebp - 0x24]
and dword [ebp - 0x24], 0
cmp ecx, 0x3eb
mov dword [0x1a27298], eax
mov eax, dword [0x1a272a0]
cmove eax, dword [ebp - 0x24]
mov dword [0x1a272a0], eax
lea eax, [edi + edx]
mov dword [ebp - 0x24], eax
mov eax, dword [ebp - 0xc]
shr eax, 5
mov dword [ebp - 8], eax
mov eax, dword [ebp - 0x2c]
add dword [ebp - 8], eax
mov eax, dword [ebp - 4]
and dword [ebp - 0x18], 0
mov dword [0x1a2729c], 0xf4ea3dee
mov dword [ebp - 0x1c], eax
mov eax, dword [ebp - 0x24]
add dword [ebp - 0x18], eax
mov eax, dword [ebp - 0x18]
xor dword [ebp - 0x1c], eax
mov eax, dword [ebp - 8]
xor eax, dword [ebp - 0x1c]
sub ebx, eax
mov dword [ebp - 8], eax
mov eax, ebx
mov dword [ebp - 0x1c], ebx
shl eax, 4
mov dword [ebp - 4], eax
mov eax, dword [ebp - 0x30]
add dword [ebp - 4], eax
and dword [ebp - 0x10], 0
mov eax, dword [ebp - 0x14]
add dword [ebp - 0x10], eax
mov eax, dword [ebp - 0x1c]
nop
add dword [ebp - 0x10], eax
mov eax, dword [ebp - 0x10]
mov dword [ebp - 0x24], eax
mov ecx, dword [ebp - 0x20]
mov eax, ebx
shr eax, cl
add eax, dword [ebp - 0x34]
mov dword [ebp - 8], eax
mov eax, dword [ebp - 0x24]
xor dword [ebp - 4], eax
cmp dword [0x1a27254], 0xb03
jne 0x4073e7
push 0
call dword [sym.imp.KERNEL32.dll_GetConsoleAliasesLengthA]
push 0x40111c
push 0
push 0
call dword [sym.imp.KERNEL32.dll_OpenMutexW]
mov eax, dword [ebp - 4]
and dword [ebp - 0x14], 0
mov dword [ebp - 0x1c], eax
mov eax, dword [ebp - 0x1c]
mov dword [ebp - 0x14], eax
mov eax, dword [ebp - 8]
xor dword [ebp - 0x14], eax
mov eax, dword [ebp - 0x14]
mov dword [ebp - 4], eax
mov eax, dword [ebp - 4]
sub dword [ebp - 0xc], eax
add edi, 0x61c88647
mov dword [ebp - 0x14], edi
dec esi
jne 0x4072d8
mov eax, dword [ebp - 0xc]
mov dword [ebp - 0x24], ebx
mov ebx, dword [ebp - 0x38]
pop edi
pop esi
mov dword [ebx], eax
mov eax, dword [ebp - 0x24]
mov dword [ebx + 4], eax
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x407431
Capabilities:
Set environment variable

Disassembly:
push ebp
mov ebp, esp
push esi
mov esi, edx
shr esi, 3
push edi
mov edi, ecx
test esi, esi
je 0x40746f
cmp dword [0x1a27254], 0x959
jne 0x40745f
push 0
call dword [sym.imp.KERNEL32.dll_AttachConsole]
push 0
push 0
call dword [sym.imp.KERNEL32.dll_SetEnvironmentVariableA]
mov edx, dword [ebp + 8]
mov ecx, edi
call fcn.00407288
add edi, 8
dec esi
jne 0x407441
pop edi
pop esi
pop ebp
ret 4
Function at 0x410c0f
Capabilities:
Link many functions at runtime
Print debug messages

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x24
mov eax, dword [0x435890]
xor eax, ebp
mov dword [ebp - 4], eax
mov eax, dword [ebp + 8]
push ebx
mov ebx, dword [sym.imp.KERNEL32.dll_EncodePointer]
push esi
push edi
mov dword [ebp - 0x1c], eax
xor esi, esi
mov eax, dword [ebp + 0xc]
push esi
mov dword [ebp - 0x20], eax
call ebx
mov edi, eax
mov dword [ebp - 0x18], edi
call fcn.0040a843
mov dword [ebp - 0x14], eax
cmp dword [0x1a28034], esi
jne 0x410d02
push 0x800
push esi
push 0x40515c
call dword [sym.imp.KERNEL32.dll_LoadLibraryExW]
mov edi, eax
test edi, edi
jne 0x410c8f
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0x57
jne 0x410de2
push esi
push esi
push 0x40515c
call dword [sym.imp.KERNEL32.dll_LoadLibraryExW]
mov edi, eax
test edi, edi
je 0x410de2
push 0x405174
push edi
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
test eax, eax
je 0x410de2
push eax
call ebx
push 0x405180
push edi
mov dword [0x1a28034], eax
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
push eax
call ebx
push 0x405190
push edi
mov dword [0x1a28038], eax
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
push eax
call ebx
push 0x4051a4
push edi
mov dword [0x1a2803c], eax
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
push eax
call ebx
mov dword [0x1a28044], eax
test eax, eax
je 0x410cff
push 0x4051c0
push edi
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
push eax
call ebx
mov dword [0x1a28040], eax
mov edi, dword [ebp - 0x18]
call dword [sym.imp.KERNEL32.dll_IsDebuggerPresent]
test eax, eax
je 0x410d27
mov eax, dword [ebp - 0x1c]
test eax, eax
je 0x410d1a
push eax
call dword [sym.imp.KERNEL32.dll_OutputDebugStringW]
cmp dword [ebp - 0x14], esi
je 0x410d3c
push 4
pop eax
jmp 0x410de4
cmp dword [ebp - 0x14], esi
je 0x410d3c
push dword [0x1a28034]
call dword [sym.imp.KERNEL32.dll_DecodePointer]
push 3
jmp 0x410d21
mov eax, dword [0x1a28040]
mov ebx, dword [sym.imp.KERNEL32.dll_DecodePointer]
cmp eax, edi
je 0x410d9a
cmp dword [0x1a28044], edi
je 0x410d9a
push eax
call ebx
push dword [0x1a28044]
mov dword [ebp - 0x14], eax
call ebx
mov ecx, dword [ebp - 0x14]
mov dword [ebp - 0x18], eax
test ecx, ecx
je 0x410d9a
test eax, eax
je 0x410d9a
call ecx
test eax, eax
je 0x410d8f
lea ecx, [ebp - 0x24]
push ecx
push 0xc
lea ecx, [ebp - 0x10]
push ecx
push 1
push eax
call dword [ebp - 0x18]
test eax, eax
je 0x410d8f
test byte [ebp - 8], 1
jne 0x410d9a
mov edi, dword [ebp + 0x10]
or edi, 0x200000
jmp 0x410dca
mov eax, dword [0x1a28038]
cmp eax, edi
je 0x410dc7
push eax
call ebx
test eax, eax
je 0x410dc7
call eax
mov esi, eax
test esi, esi
je 0x410dc7
mov eax, dword [0x1a2803c]
cmp eax, edi
je 0x410dc7
push eax
call ebx
test eax, eax
je 0x410dc7
push esi
call eax
mov esi, eax
mov edi, dword [ebp + 0x10]
push dword [0x1a28034]
call ebx
test eax, eax
je 0x410de2
push edi
push dword [ebp - 0x20]
push dword [ebp - 0x1c]
push esi
call eax
jmp 0x410de4
xor eax, eax
mov ecx, dword [ebp - 4]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.00409e7e
mov esp, ebp
pop ebp
ret
Function at 0x10001bc0
Capabilities:
Enumerate pe sections

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
mov eax, dword [ebp + 8]
xor edx, edx
push ebx
push esi
push edi
mov ecx, dword [eax + 0x3c]
add ecx, eax
movzx eax, word [ecx + 0x14]
movzx ebx, word [ecx + 6]
add eax, 0x18
add eax, ecx
test ebx, ebx
je 0x10001bfe
mov edi, dword [ebp + 0xc]
mov esi, dword [eax + 0xc]
cmp edi, esi
jb 0x10001bf6
mov ecx, dword [eax + 8]
add ecx, esi
cmp edi, ecx
jb 0x10001c00
inc edx
add eax, 0x28
cmp edx, ebx
jb 0x10001be6
xor eax, eax
pop edi
pop esi
pop ebx
pop ebp
ret

Function at 0x10001cd0
Capabilities:
Parse pe header

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
mov ecx, dword [ebp + 8]
mov eax, 0x5a4d
cmp word [ecx], ax
jne 0x10001d01
mov eax, dword [ecx + 0x3c]
add eax, ecx
cmp dword [eax], 0x4550
jne 0x10001d01
mov ecx, 0x10b
cmp word [eax + 0x18], cx
jne 0x10001d01
mov eax, 1
pop ebp
ret
xor eax, eax
pop ebp
ret
Function at 0x1000acc5
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
sub esp, 8
push eax
push ebx
push edx
add esp, 0xfffffffc
mov dword [esp], ecx
push edi
push esi
mov ebx, 0x738c6033
sub ebx, dword [0x738e5114]
push eax
mov eax, ebp
add eax, 0xfffffff8
mov dword [eax], ebx
pop eax
xchg esi, eax
push 0x738e5104
call fcn.10006b94
xchg esi, eax
add esi, ebx
mov edx, dword [ebp + 8]
sub edx, ebx
call fcn.10006268
and edi, 0
sub edi, eax
dec edi
not edi
mov eax, dword [esi + 8]
xor eax, edi
cmp edx, eax
jb 0x1000aef2
mov eax, dword [esi + 0xc]
xor eax, edi
cmp edx, eax
ja 0x1000aef2
mov ecx, dword [esi + 0x10]
xor ecx, edi
push esi
sub esp, 4
mov dword [esp], 0x47788fcc
xor dword [esp], 0x47788fd8
add esi, dword [esp]
lea esp, [esp + 4]
mov edx, dword [esi]
pop esi
jmp 0x1000ad55
xor edx, edi
shl edx, 2
mov dword [esp - 0x1b], eax
add edx, 0x18
mov eax, dword [esi]
xor eax, edi
cmp eax, 1
je 0x1000ae1f
or eax, 0xffffffff
and eax, 1
lock xchg dword [0x738e5110], eax
cmp eax, 0
jne 0x1000ad6e
sub esp, 4
jmp 0x1000ad95
push 0xcc96c45a
xor dword [esp], 0xa770a49
xor dword [esp], 0xc6e1ce13
sub ebx, dword [esp]
lea esp, [esp + 4]
mov dword [esp], edx
xchg eax, edi
mov edi, eax
sub dword [esp - 0xd], edx
xor byte [esi + edx], al
inc edx
dec ecx
jne 0x1000adb6
pop edx
mov eax, dword [esi + 0x14]
push 0xc070b981
call 0x1000adde
adc al, 0xbd
mov dl, 3
cmp byte [ecx - 0x7c53a002], 0xc4
or byte [ecx], dh
clc
cmp eax, 0
je 0x1000ae08
mov dword [ebp - 4], eax
lea ecx, [esi + 0x18]
mov eax, dword [esi + ecx]
xor eax, edi
add eax, edx
add dword [esi + eax], ebx
add ecx, 4
dec dword [ebp - 4]
jne 0x1000adf2
or eax, 0xffffffff
and eax, 1
xor eax, edi
mov dword [esi], eax
mov dword [0x738e5110], 0
add edx, esi
sub esp, 0x15
mov dword [esp + 0x11], edx
add esp, 0x11
pop dword [ebp + 4]
mov esi, dword [esp]
add esp, 4
push esi
inc esi
mov esi, esp
sub ecx, 0
jne 0x1000ae43
xor eax, 0
push esi
add esi, 4
mov edi, dword [esi]
pop esi
mov esi, dword [esi]
add esp, 8
les ecx, [eax]
pop ecx
xor edx, 0x382ffd5e
shr edx, 7
push 0x55e95355
call 0x1000ae74
push 0x5b
clc
sal dword [esi], 1
aaa
movsb byte es:[edi], byte [esi]
or eax, 0x910d3c2
push cs
das
cmp al, 0xc5
sbb al, byte [ebx - 0x153ef73c]
sbb dword [eax - 9], edx
fmul dword [ebx + 0x45033c4]
push ebp
call 0x1000ae93
aam 0x7d
jb 0x1000ae4f
inc eax
jns 0x1000ae4d
pop ds
insb byte es:[edi], dx
xor eax, 0x8c483ca
push ebx
lea ebx, [edx + edi*8 + 0x655820ed]
mov ebx, esp
sub dword [ebx - 0x47], esi
pop ebx
mov eax, dword [eax]
push ecx
or ecx, 0xffffffff
not ecx
add ecx, esp
lea ecx, [ecx - 0x59]
sub ecx, 0
mov ecx, dword [ecx + 0x12]
mov ecx, esp
xor dword [ecx - 0x5e], esi
pop ecx
push 0xf6d95007
call fcn.1000aed7
xor al, 0x5d
shl byte [ebx - 0xe1a660], cl
int3
mov eax, dword [esi + 4]
jmp 0x1000af01
push edx
inc edx
mov edx, esp
and dword [edx - 0x3c], esi
pop edx
xor eax, edi
add esi, eax
jmp 0x1000ad0a