joyce8/EMBER2024-capa huggingface dataset:
Function at 0x404990
Capabilities:
Extract resource via kernel32 functions

Disassembly:
push ecx
movzx eax, word [esp + 8]
push esi
push edi
push 0x41b128
xor edi, edi
push eax
push edi
mov dword [esp + 0x14], edi
call dword [sym.imp.KERNEL32.dll_FindResourceW]
mov esi, eax
cmp esi, edi
jne 0x4049b7
pop edi
xor eax, eax
pop esi
pop ecx
ret
push ebp
push esi
push edi
call dword [sym.imp.KERNEL32.dll_LoadResource]
mov ebp, eax
cmp ebp, edi
jne 0x4049d4
push edi
call dword [sym.imp.KERNEL32.dll_FreeResource]
pop ebp
pop edi
xor eax, eax
pop esi
pop ecx
ret
push ebx
push ebp
call dword [sym.imp.KERNEL32.dll_LockResource]
push esi
push edi
mov ebx, eax
mov dword [esp + 0x20], edi
call dword [sym.imp.KERNEL32.dll_SizeofResource]
mov esi, eax
push esi
push 0x42
call dword [sym.imp.KERNEL32.dll_GlobalAlloc]
mov edi, eax
push edi
call dword [sym.imp.KERNEL32.dll_GlobalLock]
push esi
push ebx
push eax
call fcn.0040d080
add esp, 0xc
push edi
call dword [sym.imp.KERNEL32.dll_GlobalUnlock]
lea ecx, [esp + 0x18]
push ecx
push 1
push edi
call dword [sym.imp.ole32.dll_CreateStreamOnHGlobal]
test eax, eax
jne 0x404a94
mov edx, dword [esp + 0x18]
push edx
call fcn.004047b0
mov ebx, eax
add esp, 4
test ebx, ebx
je 0x404a84
mov eax, dword [ebx + 8]
mov dword [ebx + 8], 0
test eax, eax
jne 0x404a7a
push 0x10
call fcn.0040b61a
add esp, 4
test eax, eax
je 0x404a68
mov esi, eax
call fcn.00404870
mov dword [eax + 0xc], ebx
mov ecx, dword [esp + 0x18]
mov dword [esp + 0x10], eax
mov dword [eax + 8], ecx
jmp 0x404a94
xor eax, eax
mov dword [eax + 0xc], ebx
mov ecx, dword [esp + 0x18]
mov dword [esp + 0x10], eax
mov dword [eax + 8], ecx
jmp 0x404a94
mov edx, dword [ebx]
mov eax, dword [edx]
push 1
mov ecx, ebx
call eax
mov eax, dword [esp + 0x18]
test eax, eax
je 0x404a94
mov ecx, dword [eax]
mov edx, dword [ecx + 8]
push eax
call edx
push edi
call dword [sym.imp.KERNEL32.dll_GlobalFree]
push ebp
call dword [sym.imp.KERNEL32.dll_FreeResource]
mov eax, dword [esp + 0x10]
pop ebx
pop ebp
pop edi
pop esi
pop ecx
ret

Function at 0x405c80
Capabilities:
Set registry value

Disassembly:
push ebp
mov ebp, dword [esp + 0x10]
test ebp, ebp
jne 0x405c90
lea eax, [ebp + 0xd]
pop ebp
ret 0xc
push ebx
mov ebx, dword [sym.imp.KERNEL32.dll_lstrlenW]
push esi
push edi
xor edi, edi
mov esi, ebp
lea ecx, [ecx]
push esi
call ebx
inc eax
lea ecx, [eax + eax]
add esi, ecx
add edi, ecx
cmp eax, 1
jne 0x405ca0
mov eax, dword [esp + 0x18]
mov ecx, dword [esp + 0x14]
mov edx, dword [ecx]
push edi
push ebp
push 7
push 0
push eax
push edx
call dword [sym.imp.ADVAPI32.dll_RegSetValueExW]
pop edi
pop esi
pop ebx
pop ebp
ret 0xc
Function at 0x405cd0
Capabilities:
Query or enumerate registry key

Disassembly:
sub esp, 0x228
mov eax, dword [0x41f030]
xor eax, esp
mov dword [esp + 0x224], eax
mov eax, dword [ecx]
push ebx
mov ebx, dword [ecx + 4]
push ebp
push esi
push edi
mov edi, dword [esp + 0x23c]
mov dword [esp + 0x24], ecx
lea ecx, [esp + 0x20]
push ecx
xor ebp, ebp
or ebx, 0x2001f
push ebx
push ebp
push edi
push eax
mov dword [esp + 0x28], ebp
mov dword [esp + 0x2c], ebp
mov dword [esp + 0x34], ebp
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
mov ecx, dword [esp + 0x14]
mov esi, eax
cmp esi, ebp
jne 0x405d4a
xor eax, eax
cmp ecx, ebp
je 0x405d32
push ecx
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov ecx, dword [esp + 0x20]
and ebx, 0x300
mov esi, eax
mov dword [esp + 0x14], ecx
mov dword [esp + 0x18], ebx
cmp eax, ebp
je 0x405d58
cmp ecx, ebp
je 0x405deb
push ecx
jmp 0x405de5
mov esi, dword [sym.imp.ADVAPI32.dll_RegEnumKeyExW]
lea edx, [esp + 0x28]
push edx
push ebp
push ebp
push ebp
lea eax, [esp + 0x2c]
push eax
lea edx, [esp + 0x44]
push edx
push ebp
push ecx
mov dword [esp + 0x3c], 0x100
call esi
test eax, eax
jne 0x405dba
lea eax, [esp + 0x30]
push eax
lea ecx, [esp + 0x18]
call fcn.00405cd0
mov ebx, eax
cmp ebx, ebp
jne 0x405e08
lea ecx, [esp + 0x28]
push ecx
mov ecx, dword [esp + 0x18]
push ebp
push ebp
push ebp
lea edx, [esp + 0x2c]
push edx
lea eax, [esp + 0x44]
push eax
push ebp
push ecx
mov dword [esp + 0x3c], 0x100
call esi
test eax, eax
je 0x405d80
mov eax, dword [esp + 0x14]
cmp eax, ebp
je 0x405dcd
push eax
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov dword [esp + 0x14], ebp
mov esi, dword [esp + 0x24]
mov dword [esp + 0x18], ebp
call fcn.00405bc0
mov esi, eax
mov eax, dword [esp + 0x14]
cmp eax, ebp
je 0x405deb
push eax
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov eax, esi
mov ecx, dword [esp + 0x234]
pop edi
pop esi
pop ebp
pop ebx
xor ecx, esp
call fcn.0040b192
add esp, 0x228
ret 4
mov eax, dword [esp + 0x14]
cmp eax, ebp
je 0x405e17
push eax
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov eax, ebx
jmp 0x405ded
Function at 0x4062e0
Capabilities:
Extract resource via kernel32 functions

Disassembly:
push ebp
lea ebp, [esp - 0x408]
sub esp, 0x408
push 0xffffffffffffffff
push 0x418e30
mov eax, dword fs:[0]
push eax
sub esp, 0x1c
mov eax, dword [0x41f030]
xor eax, ebp
mov dword [ebp + 0x404], eax
push ebx
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov dword [ebp - 0x10], esp
mov eax, dword [ebp + 0x410]
mov esi, dword [ebp + 0x414]
xor ebx, ebx
mov dword [ebp - 0x14], ecx
mov dword [ebp - 0x1c], ebx
mov dword [ebp - 4], ebx
mov dword [ebp - 0x24], edx
mov dword [ebp - 0x28], ebx
mov dword [ebp], ebx
push 2
push ebx
push eax
mov byte [ebp - 4], 1
call dword [sym.imp.KERNEL32.dll_LoadLibraryExW]
mov edi, eax
mov dword [ebp - 0x18], edi
cmp edi, ebx
jne 0x40635f
call fcn.00405990
mov esi, eax
jmp 0x406441
mov eax, dword [ebp - 0x14]
push eax
push esi
push edi
call dword [sym.imp.KERNEL32.dll_FindResourceW]
mov esi, eax
cmp esi, ebx
jne 0x40637b
call fcn.00405990
jmp 0x406438
push esi
push edi
call dword [sym.imp.KERNEL32.dll_LoadResource]
mov dword [ebp - 0x20], eax
cmp eax, ebx
jne 0x406394
call fcn.00405990
jmp 0x406438
push esi
push edi
call dword [sym.imp.KERNEL32.dll_SizeofResource]
lea ecx, [eax + 1]
mov dword [ebp - 0x14], eax
cmp ecx, eax
jae 0x4063c8
lea ecx, [ebp + 4]
cmp dword [ebp], ecx
je 0x4063b6
lea eax, [ebp]
call fcn.004096c0
lea esi, [ebp - 0x1c]
call fcn.00409300
mov eax, 0x8007000e
jmp 0x406453
mov eax, ecx
lea esi, [ebp]
mov byte [ebp - 4], 2
call fcn.004093e0
mov dword [ebp - 4], 1
jmp 0x4063f1
mov ecx, dword [ebp]
cmp ecx, ebx
jne 0x4063ff
mov esi, 0x8007000e
jmp 0x40643a
mov eax, dword [ebp - 0x14]
mov edx, dword [ebp - 0x20]
push eax
push ecx
push eax
push edx
push ebx
push 3
call dword [sym.imp.KERNEL32.dll_MultiByteToWideChar]
cmp eax, ebx
jne 0x40641d
call fcn.00405990
jmp 0x406438
mov edx, dword [ebp]
xor ecx, ecx
mov word [edx + eax*2], cx
mov eax, dword [ebp + 0x418]
mov ecx, dword [ebp]
push eax
lea edx, [ebp - 0x28]
call fcn.00407150
mov esi, eax
push edi
call dword [sym.imp.KERNEL32.dll_FreeLibrary]
lea ecx, [ebp + 4]
cmp dword [ebp], ecx
je 0x406451
lea eax, [ebp]
call fcn.004096c0
mov eax, esi
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [ebp + 0x404]
xor ecx, ebp
call fcn.0040b192
add ebp, 0x408
mov esp, ebp
pop ebp
ret 0xc
Function at 0x407f90
Capabilities:
Check os version

Disassembly:
sub esp, 0x118
mov eax, dword [0x41f030]
xor eax, esp
mov dword [esp + 0x114], eax
push 0x110
lea eax, [esp + 8]
push 0
push eax
call fcn.0040bea0
add esp, 0xc
lea ecx, [esp]
push ecx
mov dword [esp + 4], 0x114
call dword [sym.imp.KERNEL32.dll_GetVersionExW]
test eax, eax
je 0x407ffa
mov eax, dword [esp + 4]
cmp eax, 5
jae 0x407fe3
cmp eax, 4
jne 0x407ffa
cmp dword [esp + 8], 0x5a
jb 0x407ffa
xor eax, eax
mov ecx, dword [esp + 0x114]
xor ecx, esp
call fcn.0040b192
add esp, 0x118
ret
mov ecx, dword [esp + 0x114]
xor ecx, esp
mov eax, 1
call fcn.0040b192
add esp, 0x118
ret

Function at 0x408020
Capabilities:
Check os version

Disassembly:
sub esp, 0x118
mov eax, dword [0x41f030]
xor eax, esp
mov dword [esp + 0x114], eax
push 0x110
lea eax, [esp + 8]
push 0
push eax
mov dword [esp + 0xc], 0x114
call fcn.0040bea0
add esp, 0xc
lea ecx, [esp]
push ecx
call dword [sym.imp.KERNEL32.dll_GetVersionExW]
test eax, eax
je 0x40807f
cmp dword [esp + 4], 6
jb 0x40807f
mov eax, 1
mov ecx, dword [esp + 0x114]
xor ecx, esp
call fcn.0040b192
add esp, 0x118
ret
mov ecx, dword [esp + 0x114]
xor ecx, esp
xor eax, eax
call fcn.0040b192
add esp, 0x118
ret

Function at 0x408610
Capabilities:
Access peb ldr_data
Get ntdll base address

Disassembly:
push 0xffffffffffffffff
push 0x418dd3
mov eax, dword fs:[0]
push eax
push esi
push edi
mov eax, dword [0x41f030]
xor eax, esp
push eax
lea eax, [esp + 0xc]
mov dword fs:[0], eax
mov esi, dword [esp + 0x1c]
mov eax, dword [sym.imp.USER32.dll_DefWindowProcW]
xor edi, edi
mov dword [esi + 4], edi
mov dword [esi + 0x14], edi
mov dword [esi + 0x18], edi
mov dword [esi + 0x1c], edi
mov dword [esi + 0x20], eax
mov dword [esi + 0x24], edi
mov dword [esi + 0x28], edi
mov dword [esi + 0x2c], edi
mov dword [esi + 0x30], edi
lea ecx, [esi + 0x34]
mov dword [esp + 0x14], edi
push ecx
mov dword [esi], vtable.CMainFrm.0
call fcn.00401370
lea edx, [esi + 0x70]
push edx
mov byte [esp + 0x18], 1
call fcn.00409c00
mov dword [esi + 0xa0], edi
mov dword [esi + 0x9c], edi
mov dword [esi + 0x90], edi
mov dword [esi + 0x94], edi
mov dword [esi + 0x98], edi
mov dword [esi + 0xa4], edi
xor eax, eax
mov dword [esi + 0xc0], 7
mov dword [esi + 0xbc], edi
mov word [esi + 0xac], ax
mov eax, esi
mov ecx, dword [esp + 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
add esp, 0xc
ret 4
Function at 0x40ab86
Capabilities:
Allocate or change rwx memory
Execute shellcode via indirect call

Disassembly:
cmp dword [0x4209e0], 0
push esi
jne 0x40aaf9
call fcn.0040aa1f
test eax, eax
je 0x40ab3c
mov eax, dword [0x4209e0]
cmp eax, 1
jne 0x40ab1a
push 0xd
push 0
call dword [sym.imp.KERNEL32.dll_GetProcessHeap]
push eax
call dword [sym.imp.KERNEL32.dll_HeapAlloc]
test eax, eax
je 0x40ab3c
pop esi
ret
push eax
call dword [0x4209e8]
test eax, eax
jne 0x40ab84
push 0x40
mov eax, 0x1000
push eax
push eax
push 0
call dword [sym.imp.KERNEL32.dll_VirtualAlloc]
mov esi, eax
test esi, esi
jne 0x40ab40
xor eax, eax
pop esi
ret
mov eax, dword [esi]
push edi
push dword [0x4209e0]
call dword [0x4209e8]
mov edi, eax
test edi, edi
je 0x40ab65
push 0x8000
push 0
push esi
call dword [sym.imp.KERNEL32.dll_VirtualFree]
jmp 0x40ab81
mov edi, esi
add esi, 0xff0
push edi
push dword [0x4209e0]
call dword [0x4209e4]
add edi, 0x10
cmp edi, esi
jb 0x40ab6d
mov eax, edi
pop edi
pop esi
ret
jmp 0x40aae6

Function at 0x40b192
Capabilities:
Terminate process

Disassembly:
cmp ecx, dword [0x41f030]
jne 0x40b19c
repz ret
jmp fcn.0040c636

Function at 0x413433
Capabilities:
Link many functions at runtime

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x14
push ebx
push esi
push edi
call fcn.0040d5ca
and dword [ebp - 4], 0
cmp dword [0x421568], 0
mov ebx, eax
jne 0x4134e4
push str.USER32.DLL
call dword [sym.imp.KERNEL32.dll_LoadLibraryA]
mov edi, eax
test edi, edi
je 0x413595
mov esi, dword [sym.imp.KERNEL32.dll_GetProcAddress]
push str.MessageBoxA
push edi
call esi
test eax, eax
je 0x413595
push eax
call fcn.0040d558
mov dword [esp], str.GetActiveWindow
push edi
mov dword [0x421568], eax
call esi
push eax
call fcn.0040d558
mov dword [esp], str.GetLastActivePopup
push edi
mov dword [0x42156c], eax
call esi
push eax
call fcn.0040d558
mov dword [esp], str.GetUserObjectInformationA
push edi
mov dword [0x421570], eax
call esi
push eax
call fcn.0040d558
pop ecx
mov dword [0x421578], eax
test eax, eax
je 0x4134e4
push str.GetProcessWindowStation
push edi
call esi
push eax
call fcn.0040d558
pop ecx
mov dword [0x421574], eax
mov eax, dword [0x421574]
cmp eax, ebx
je 0x41353c
cmp dword [0x421578], ebx
je 0x41353c
push eax
call fcn.0040d5d3
push dword [0x421578]
mov esi, eax
call fcn.0040d5d3
pop ecx
pop ecx
mov edi, eax
test esi, esi
je 0x41353c
test edi, edi
je 0x41353c
call esi
test eax, eax
je 0x413533
lea ecx, [ebp - 8]
push ecx
push 0xc
lea ecx, [ebp - 0x14]
push ecx
push 1
push eax
call edi
test eax, eax
je 0x413533
test byte [ebp - 0xc], 1
jne 0x41353c
or dword [ebp + 0x10], 0x200000
jmp 0x413575
mov eax, dword [0x42156c]
cmp eax, ebx
je 0x413575
push eax
call fcn.0040d5d3
pop ecx
test eax, eax
je 0x413575
call eax
mov dword [ebp - 4], eax
test eax, eax
je 0x413575
mov eax, dword [0x421570]
cmp eax, ebx
je 0x413575
push eax
call fcn.0040d5d3
pop ecx
test eax, eax
je 0x413575
push dword [ebp - 4]
call eax
mov dword [ebp - 4], eax
push dword [0x421568]
call fcn.0040d5d3
pop ecx
test eax, eax
je 0x413595
push dword [ebp + 0x10]
push dword [ebp + 0xc]
push dword [ebp + 8]
push dword [ebp - 4]
call eax
jmp 0x413597
xor eax, eax
pop edi
pop esi
pop ebx
leave
ret
Function at 0x40f650
Capabilities:
Access peb ldr_data
Contain obfuscated stackstrings
Encode data using xor
Query or enumerate registry value

Disassembly:
push 0xffffffffffffffff
push 0x4413d8
mov eax, dword fs:[0]
push eax
sub esp, 0x60
mov eax, dword [0x4558d0]
xor eax, esp
mov dword [esp + 0x5c], eax
push esi
push edi
mov eax, dword [0x4558d0]
xor eax, esp
push eax
lea eax, [esp + 0x6c]
mov dword fs:[0], eax
mov edi, dword [esp + 0x7c]
lea ecx, [esp + 0xc]
call fcn.004020b0
mov dword [esp + 0x74], 0
lea eax, [esp + 0xc]
push eax
call fcn.0040e8f0
push 0x32
lea ecx, [esp + 0x3c]
push 0
push ecx
call fcn.0042cc70
mov ecx, dword [esp + 0x1c]
add esp, 0x10
lea edx, [esp + 0x18]
push edx
mov edx, dword [0x456cd0]
lea eax, [esp + 0x38]
push eax
push 0
push 0
push ecx
push edx
mov dword [esp + 0x30], 0x32
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
test eax, eax
je 0x40f6ff
push edi
call fcn.0040f1f0
add esp, 4
mov esi, eax
mov dword [esp + 0x74], 0xffffffff
lea ecx, [esp + 0xc]
call fcn.00402120
mov eax, esi
jmp 0x40f82a
lea ecx, [esp + 0x10]
call fcn.004020b0
mov byte [esp + 0x74], 1
lea eax, [esp + 0x10]
push eax
call fcn.0040e970
add esp, 4
mov dword [esp + 0x14], vtable.CProtection.0
mov byte [esp + 0x74], 2
mov ecx, dword [esp + 0x10]
mov eax, ecx
lea esi, [eax + 1]
mov dl, byte [eax]
inc eax
test dl, dl
jne 0x40f730
sub eax, esi
push eax
push ecx
push 0x28
lea ecx, [esp + 0x40]
push ecx
lea ecx, [esp + 0x24]
call fcn.004051b0
mov al, 0x73
mov byte [esp + 0x21], al
mov byte [esp + 0x27], al
mov al, 0x61
mov cl, 0x4e
mov dl, 0x51
mov byte [esp + 0x28], al
mov byte [esp + 0x29], al
mov byte [esp + 0x2b], al
lea eax, [esp + 0x1c]
mov byte [esp + 0x24], cl
mov byte [esp + 0x2c], cl
mov byte [esp + 0x32], cl
mov byte [esp + 0x1c], 0x41
mov byte [esp + 0x1d], 0x7d
mov byte [esp + 0x1e], 0x74
mov byte [esp + 0x1f], 0x66
mov byte [esp + 0x20], 0x65
mov byte [esp + 0x22], 0x60
mov byte [esp + 0x23], 0x77
mov byte [esp + 0x25], dl
mov byte [esp + 0x26], 0x7e
mov byte [esp + 0x2a], 0x77
mov byte [esp + 0x2d], dl
mov byte [esp + 0x2e], 0x5e
mov byte [esp + 0x2f], 0x41
mov byte [esp + 0x30], 0x5b
mov byte [esp + 0x31], 0x56
mov byte [esp + 0x33], 0
lea ecx, [eax + 1]
mov dl, byte [eax]
inc eax
test dl, dl
jne 0x40f7c8
sub eax, ecx
xor ecx, ecx
test eax, eax
jle 0x40f7e1
xor byte [esp + ecx + 0x1c], 0x12
inc ecx
cmp ecx, eax
jl 0x40f7d7
lea edx, [esp + 0x34]
push edx
lea eax, [esp + 0x20]
push eax
push 0x444960
push edi
call fcn.00406280
add esp, 0x10
mov byte [esp + 0x74], 1
mov dword [esp + 0x14], vtable.CProtection.0
mov byte [esp + 0x74], 0
lea ecx, [esp + 0x10]
call fcn.00402120
mov dword [esp + 0x74], 0xffffffff
lea ecx, [esp + 0xc]
call fcn.00402120
mov eax, 1
mov ecx, dword [esp + 0x6c]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
mov ecx, dword [esp + 0x5c]
xor ecx, esp
invalid
Function at 0x1363d80
Capabilities:
Packed with generic packer

Disassembly:
pushal
mov esi, section.UPX1
lea edi, [esi - 0x87e000]
push edi
or ebp, 0xffffffff
jmp 0x1363da2
mov al, byte [esi]
inc esi
mov byte [edi], al
inc edi
add ebx, ebx
jne 0x1363da9
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
jb 0x1363d98
mov eax, 1
add ebx, ebx
jne 0x1363dbb
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc eax, eax
add ebx, ebx
jae 0x1363dcc
jne 0x1363deb
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
jb 0x1363deb
dec eax
add ebx, ebx
jne 0x1363dd8
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc eax, eax
jmp 0x1363db0
add ebx, ebx
jne 0x1363de7
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc ecx, ecx
jmp 0x1363e3d
xor ecx, ecx
sub eax, 3
jb 0x1363e03
shl eax, 8
mov al, byte [esi]
inc esi
xor eax, 0xffffffff
je 0x1363e72
sar eax, 1
mov ebp, eax
jmp 0x1363e0e
add ebx, ebx
jne 0x1363e0e
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
jb 0x1363ddc
inc ecx
add ebx, ebx
jne 0x1363e1c
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
jb 0x1363ddc
add ebx, ebx
jne 0x1363e29
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc ecx, ecx
add ebx, ebx
jae 0x1363e1e
jne 0x1363e3a
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
jae 0x1363e1e
add ecx, 2
cmp ebp, 0xfffffb00
adc ecx, 2
lea edx, [edi + ebp]
cmp ebp, 0xfffffffc
jbe 0x1363e5c
mov al, byte [edx]
inc edx
mov byte [edi], al
inc edi
dec ecx
jne 0x1363e4e
jmp 0x1363d9e
mov eax, dword [edx]
add edx, 4
mov dword [edi], eax
add edi, 4
sub ecx, 4
ja 0x1363e5c
add edi, ecx
jmp 0x1363d9e
pop esi
mov edi, esi
mov ecx, 0x5ef
mov al, byte [edi]
inc edi
sub al, 0xe8
cmp al, 1
ja 0x1363e7a
cmp byte [edi], 7
jne 0x1363e7a
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 0x1363e7f
lea edi, [esi + 0xf60000]
mov eax, dword [edi]
or eax, eax
je 0x1363ef7
mov ebx, dword [edi + 4]
lea eax, [eax + esi + 0xf73eec]
add ebx, esi
push eax
add edi, 8
call dword [esi + 0xf73f94]
xchg ebp, eax
mov al, byte [edi]
inc edi
or al, al
je 0x1363eac
mov ecx, edi
jns 0x1363edb
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 + 0xf73f9c]
or eax, eax
je 0x1363ef1
mov dword [ebx], eax
add ebx, 4
jmp 0x1363ec9
call dword [esi + 0xf73f98]
add edi, 4
lea ebx, [esi - 4]
xor eax, eax
mov al, byte [edi]
inc edi
or eax, eax
je 0x1363f28
cmp al, 0xef
ja 0x1363f1b
add ebx, eax
mov eax, dword [ebx]
xchg ah, al
rol eax, 0x10
xchg ah, al
add eax, esi
mov dword [ebx], eax
jmp 0x1363efd
and al, 0xf
shl eax, 0x10
mov ax, word [edi]
add edi, 2
jmp 0x1363f0a
mov ebp, dword [esi + 0xf73fa0]
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 0x1363f5c
sub esp, 0xffffff80
jmp 0x4048ce
Function at 0x405b24
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
mov eax, dword [ebp + 0xc]
sub eax, dword [ebp + 8]
sar eax, 2
push edi
mov edi, dword [ebp + 0x14]
test eax, eax
je 0x405ba4
push esi
xor esi, esi
cmp dword [ebp + 0x18], esi
jbe 0x405ba3
push ebx
mov ebx, 0x451848
mov al, byte [edi + esi]
xor al, 0x73
sub al, 0x6c
xor al, 0x74
push str.Own_head
push ebx
mov byte [edi + esi], al
call fcn.004013cb
push eax
call fcn.00402409
mov al, byte [edi + esi]
add al, 0x4e
xor al, 0xdc
push str.Earth
push ebx
mov byte [edi + esi], al
call fcn.004013cb
push eax
call fcn.00402409
mov al, byte [edi + esi]
xor al, 0xac
sub al, 0x65
xor al, 0x22
sub al, 0x73
push 0x428558
mov byte [edi + esi], al
call fcn.0040f67e
xor byte [edi + esi], al
add esp, 0x1c
inc esi
cmp esi, dword [ebp + 0x18]
jb 0x405b46
pop ebx
pop esi
lea ecx, [ebp + 8]
call fcn.0040563b
pop edi
pop ebp
ret 0x14

Function at 0x409508
Capabilities:
Read file on windows

Disassembly:
push ebp
mov ebp, esp
push ecx
mov eax, dword [ebp + 0x10]
push ebx
mov ebx, ecx
push edi
mov edi, dword [ebp + 0xc]
test eax, eax
jg 0x409529
jl 0x409520
test edi, edi
jne 0x409529
xor eax, eax
xor edx, edx
jmp 0x4095ea
cmp dword [ebx + 0x38], 0
je 0x40953e
push eax
push edi
push dword [ebp + 8]
call fcn.004095f0
jmp 0x4095ea
mov eax, dword [ebx + 0x1c]
push esi
mov esi, edi
mov ecx, dword [eax]
test ecx, ecx
je 0x409585
mov eax, dword [ebx + 0x2c]
mov eax, dword [eax]
mov dword [ebp - 4], eax
test eax, eax
je 0x409585
cmp eax, edi
jb 0x40955f
mov eax, edi
mov dword [ebp - 4], edi
push eax
push ecx
push dword [ebp + 8]
call fcn.0040ad50
mov ecx, dword [ebp - 4]
add esp, 0xc
mov eax, dword [ebp + 8]
sub esi, ecx
add eax, ecx
mov dword [ebp - 4], eax
mov eax, dword [ebx + 0x2c]
sub dword [eax], ecx
mov eax, dword [ebx + 0x1c]
add dword [eax], ecx
jmp 0x40958b
mov eax, dword [ebp + 8]
mov dword [ebp - 4], eax
cmp dword [ebx + 0x4c], 0
je 0x4095df
mov ecx, ebx
call fcn.00408da2
mov ecx, dword [ebp - 4]
mov edx, esi
mov eax, 0xfff
cmp esi, eax
jbe 0x4095ca
push dword [ebx + 0x4c]
push eax
push 1
push ecx
call fcn.004133f8
mov ecx, dword [ebp - 4]
sub esi, eax
add ecx, eax
add esp, 0x10
mov dword [ebp - 4], ecx
mov edx, esi
cmp eax, 0xfff
jne 0x4095df
jmp 0x40959d
test edx, edx
je 0x4095df
push dword [ebx + 0x4c]
push esi
push 1
push ecx
call fcn.004133f8
add esp, 0x10
sub esi, eax
mov edx, dword [ebp + 0x10]
sub edi, esi
mov eax, edi
sbb edx, 0
pop esi
pop edi
pop ebx
leave
ret 0xc

Function at 0x40a8af
Capabilities:
Parse pe header

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

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
pop ebp
jmp fcn.0041cb19

Function at 0x41d0a2
Capabilities:
Read file on windows

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
mov eax, 0x101c
call fcn.0040ad00
mov eax, dword [0x44fbc0]
xor eax, ebp
mov dword [ebp - 4], eax
mov eax, dword [ebp + 0x14]
push ebx
push dword [ebp + 8]
mov dword [ebp - 0x100c], eax
call fcn.0041ac65
pop ecx
mov ecx, dword [ebp + 8]
mov ebx, eax
cmp dword [ecx + 8], 0
jne 0x41d0e4
mov eax, dword [ebp + 0xc]
mov edx, dword [ebp + 0x10]
jmp 0x41d240
mov eax, dword [ecx]
sub eax, dword [ecx + 4]
push esi
push edi
push 0
cdq
push 2
push edx
push eax
call fcn.00426830
push dword [ebp - 0x100c]
mov ecx, ebx
mov dword [ebp - 0x1008], eax
mov esi, ebx
mov dword [ebp - 0x1018], edx
and ecx, 0x3f
sar esi, 6
imul edi, ecx, 0x38
push 0
mov eax, dword [esi*4 + 0x4521f0]
push dword [edi + eax + 0x24]
push dword [edi + eax + 0x20]
push ebx
call fcn.0041de41
mov ecx, dword [esi*4 + 0x4521f0]
add esp, 0x14
mov dword [ebp - 0x1010], eax
mov eax, edx
mov edx, dword [ebp - 0x1010]
mov dword [ebp - 0x101c], eax
cmp edx, dword [edi + ecx + 0x20]
jne 0x41d239
cmp eax, dword [edi + ecx + 0x24]
jne 0x41d239
push 0
lea eax, [ebp - 0x1014]
push eax
push 0x1000
lea eax, [ebp - 0x1004]
push eax
push dword [edi + ecx + 0x18]
call dword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
je 0x41d239
push dword [ebp - 0x100c]
push 0
push dword [ebp + 0x10]
push dword [ebp + 0xc]
push ebx
call fcn.0041de41
add esp, 0x14
test edx, edx
jl 0x41d239
jg 0x41d1af
test eax, eax
jb 0x41d239
mov ebx, dword [ebp - 0x1018]
mov eax, dword [ebp - 0x1014]
test ebx, ebx
jg 0x41d239
jl 0x41d1c9
cmp dword [ebp - 0x1008], eax
ja 0x41d239
lea edi, [ebp - 0x1004]
xor edx, edx
add edi, eax
lea ecx, [ebp - 0x1004]
xor esi, esi
cmp dword [ebp - 0x1008], edx
jne 0x41d1e7
test ebx, ebx
je 0x41d220
cmp ecx, edi
jae 0x41d220
mov al, byte [ecx]
cmp al, 0xd
jne 0x41d201
lea eax, [edi - 1]
cmp ecx, eax
jae 0x41d20d
cmp byte [ecx + 1], 0xa
jne 0x41d20d
inc ecx
jmp 0x41d20d
movzx eax, al
movsx eax, byte [eax + 0x44fe88]
add ecx, eax
add esi, 1
adc edx, 0
inc ecx
cmp esi, dword [ebp - 0x1008]
jne 0x41d1e7
cmp edx, ebx
jne 0x41d1e7
lea eax, [ebp - 0x1004]
sub ecx, eax
mov eax, ecx
cdq
add eax, dword [ebp - 0x1010]
adc edx, dword [ebp - 0x101c]
jmp 0x41d23e
or edx, 0xffffffff
mov eax, edx
pop edi
pop esi
mov ecx, dword [ebp - 4]
xor ecx, ebp
pop ebx
call fcn.0040a110
leave
ret