joyce8/EMBER2024-capa huggingface dataset:
Function at 0x1000ca20
Capabilities:
Allocate or change rwx memory

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x20
mov dword [ebp - 8], 0
call sub.KERNEL32.dll_GetCurrentThreadId
cmp dword [0x100342a8], eax
je 0x1000ca44
mov eax, 0x10dd
jmp 0x1000cbec
cmp dword [0x100342ac], 0
je 0x1000ca57
mov eax, dword [0x100342ac]
jmp 0x1000cbec
cmp dword [ebp + 0xc], 0
jne 0x1000ca67
mov eax, 0x57
jmp 0x1000cbec
cmp dword [ebp + 8], 0
jne 0x1000ca77
mov eax, 6
jmp 0x1000cbec
mov eax, dword [ebp + 8]
cmp dword [eax], 0
jne 0x1000caa0
mov dword [ebp - 8], 6
mov ecx, dword [ebp - 8]
mov dword [0x100342ac], ecx
mov edx, dword [ebp + 8]
mov dword [0x100342b0], edx
mov eax, dword [ebp - 8]
jmp 0x1000cbec
push 0x18
call fcn.1000e0e1
add esp, 4
mov dword [ebp - 0x1c], eax
mov eax, dword [ebp - 0x1c]
mov dword [ebp - 4], eax
cmp dword [ebp - 4], 0
jne 0x1000cafb
mov dword [ebp - 8], 8
mov ecx, dword [ebp - 8]
mov dword [0x100342ac], ecx
cmp dword [ebp - 4], 0
je 0x1000caea
mov edx, dword [ebp - 4]
mov dword [ebp - 0x20], edx
push 0x18
mov eax, dword [ebp - 0x20]
push eax
call fcn.1000e0ce
add esp, 8
mov dword [ebp - 4], 0
mov ecx, dword [ebp + 8]
mov dword [0x100342b0], ecx
mov eax, dword [ebp - 8]
jmp 0x1000cbec
push 0
mov edx, dword [ebp + 8]
mov eax, dword [edx]
push eax
call fcn.1000ca00
mov dword [ebp - 0x10], eax
push 0
mov ecx, dword [ebp + 0xc]
push ecx
call fcn.1000ca00
mov dword [ebp + 0xc], eax
mov edx, dword [ebp - 0x10]
movzx eax, byte [edx + 0x36]
mov dword [ebp - 0xc], eax
mov ecx, dword [ebp - 0x10]
mov edx, dword [ecx + 0x40]
sub edx, dword [ebp - 0xc]
mov dword [ebp - 0x14], edx
cmp dword [ebp - 0xc], 0
je 0x1000cb3b
cmp dword [ebp - 0xc], 0x1e
jbe 0x1000cb57
mov dword [ebp - 8], 9
cmp dword [0x100342a0], 0
je 0x1000cb52
jmp 0x1000cac9
jmp 0x1000cac0
mov eax, dword [ebp - 0x10]
mov ecx, dword [eax + 0x44]
cmp ecx, dword [ebp + 0xc]
je 0x1000cb7e
mov dword [ebp - 8], 9
cmp dword [0x100342a0], 0
je 0x1000cb79
jmp 0x1000cac9
jmp 0x1000cac0
mov dword [ebp - 0x18], 0
lea edx, [ebp - 0x18]
push edx
push 0x40
mov eax, dword [ebp - 0xc]
push eax
mov ecx, dword [ebp - 0x14]
push ecx
call sub.KERNEL32.dll_VirtualProtect
test eax, eax
jne 0x1000cba9
call sub.KERNEL32.dll_GetLastError
mov dword [ebp - 8], eax
jmp 0x1000cac0
mov edx, dword [ebp - 4]
mov dword [edx + 4], 1
mov eax, dword [ebp - 4]
mov ecx, dword [ebp + 8]
mov dword [eax + 8], ecx
mov edx, dword [ebp - 4]
mov eax, dword [ebp - 0x10]
mov dword [edx + 0x10], eax
mov ecx, dword [ebp - 4]
mov edx, dword [ebp - 0x14]
mov dword [ecx + 0xc], edx
mov eax, dword [ebp - 4]
mov ecx, dword [ebp - 0x18]
mov dword [eax + 0x14], ecx
mov edx, dword [ebp - 4]
mov eax, dword [0x100342b8]
mov dword [edx], eax
mov ecx, dword [ebp - 4]
mov dword [0x100342b8], ecx
xor eax, eax
mov esp, ebp
pop ebp
ret 8
Function at 0x1000cc00
Capabilities:
Resume thread

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x1c
call sub.KERNEL32.dll_GetCurrentThreadId
cmp dword [0x100342a8], eax
je 0x1000cc1d
mov eax, 0x10dd
jmp 0x1000cd00
mov eax, dword [0x100342b8]
mov dword [ebp - 4], eax
cmp dword [ebp - 4], 0
je 0x1000cc9c
lea ecx, [ebp - 0x1c]
push ecx
mov edx, dword [ebp - 4]
mov eax, dword [edx + 0x14]
push eax
mov ecx, dword [ebp - 4]
mov edx, dword [ecx + 0x10]
movzx eax, byte [edx + 0x36]
push eax
mov ecx, dword [ebp - 4]
mov edx, dword [ecx + 0xc]
push edx
call sub.KERNEL32.dll_VirtualProtect
mov eax, dword [ebp - 4]
cmp dword [eax + 4], 0
jne 0x1000cc78
mov ecx, dword [ebp - 4]
cmp dword [ecx + 0x10], 0
je 0x1000cc78
mov edx, dword [ebp - 4]
mov eax, dword [edx + 0x10]
push eax
call fcn.1000baa0
add esp, 4
mov ecx, dword [ebp - 4]
mov dword [ecx + 0x10], 0
mov edx, dword [ebp - 4]
mov eax, dword [edx]
mov dword [ebp - 0x10], eax
mov ecx, dword [ebp - 4]
mov dword [ebp - 0xc], ecx
push 0x18
mov edx, dword [ebp - 0xc]
push edx
call fcn.1000e0ce
add esp, 8
mov eax, dword [ebp - 0x10]
mov dword [ebp - 4], eax
jmp 0x1000cc25
mov dword [0x100342b8], 0
call fcn.1000c380
mov ecx, dword [0x100342b4]
mov dword [ebp - 8], ecx
cmp dword [ebp - 8], 0
je 0x1000ccea
mov edx, dword [ebp - 8]
mov eax, dword [edx + 4]
push eax
call sub.KERNEL32.dll_ResumeThread
mov ecx, dword [ebp - 8]
mov edx, dword [ecx]
mov dword [ebp - 0x18], edx
mov eax, dword [ebp - 8]
mov dword [ebp - 0x14], eax
push 8
mov ecx, dword [ebp - 0x14]
push ecx
call fcn.1000e0ce
add esp, 8
mov edx, dword [ebp - 0x18]
mov dword [ebp - 8], edx
jmp 0x1000ccb4
mov dword [0x100342b4], 0
mov dword [0x100342a8], 0
xor eax, eax
mov esp, ebp
pop ebp
ret

Function at 0x1000d1e0
Capabilities:
Suspend thread

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x10
cmp dword [0x100342ac], 0
je 0x1000d1f9
mov eax, dword [0x100342ac]
jmp 0x1000d298
call sub.KERNEL32.dll_GetCurrentThread
cmp dword [ebp + 8], eax
jne 0x1000d20a
xor eax, eax
jmp 0x1000d298
push 8
call fcn.1000e0e1
add esp, 4
mov dword [ebp - 0xc], eax
mov eax, dword [ebp - 0xc]
mov dword [ebp - 4], eax
cmp dword [ebp - 4], 0
jne 0x1000d262
mov dword [ebp - 8], 8
cmp dword [ebp - 4], 0
je 0x1000d24b
mov ecx, dword [ebp - 4]
mov dword [ebp - 0x10], ecx
push 8
mov edx, dword [ebp - 0x10]
push edx
call fcn.1000e0ce
add esp, 8
mov dword [ebp - 4], 0
mov eax, dword [ebp - 8]
mov dword [0x100342ac], eax
mov dword [0x100342b0], 0
mov eax, dword [ebp - 8]
jmp 0x1000d298
mov ecx, dword [ebp + 8]
push ecx
call sub.KERNEL32.dll_SuspendThread
cmp eax, 0xffffffff
jne 0x1000d27a
call sub.KERNEL32.dll_GetLastError
mov dword [ebp - 8], eax
jmp 0x1000d22a
mov edx, dword [ebp - 4]
mov eax, dword [ebp + 8]
mov dword [edx + 4], eax
mov ecx, dword [ebp - 4]
mov edx, dword [0x100342b4]
mov dword [ecx], edx
mov eax, dword [ebp - 4]
mov dword [0x100342b4], eax
xor eax, eax
mov esp, ebp
pop ebp
ret 4
Function at 0x10012f27
Capabilities:
Parse pe header

Disassembly:
push 0
call dword [sym.imp.KERNEL32.dll_GetModuleHandleW]
test eax, eax
je 0x10012f66
mov ecx, 0x5a4d
cmp word [eax], cx
jne 0x10012f66
mov ecx, dword [eax + 0x3c]
add ecx, eax
cmp dword [ecx], 0x4550
jne 0x10012f66
mov eax, 0x10b
cmp word [ecx + 0x18], ax
jne 0x10012f66
cmp dword [ecx + 0x74], 0xe
jbe 0x10012f66
cmp dword [ecx + 0xe8], 0
setne al
ret
xor al, al
ret

Function at 0x100181cb
Capabilities:
Allocate thread local storage

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push esi
push 0x1002b8f8
push 0x1002b8f0
push str.FlsAlloc
push 0x1f
call fcn.10018093
mov esi, eax
add esp, 0x10
test esi, esi
je 0x100181ff
push dword [ebp + 8]
mov ecx, esi
call dword [0x10028160]
call esi
jmp 0x10018205
call dword [sym.imp.KERNEL32.dll_TlsAlloc]
pop esi
pop ebp
ret 4

Function at 0x10018249
Capabilities:
Get thread local storage value

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push esi
push 0x1002b908
push 0x1002b900
push str.FlsGetValue
push 0x21
call fcn.10018093
mov esi, eax
add esp, 0x10
test esi, esi
je 0x10018280
push dword [ebp + 8]
mov ecx, esi
call dword [0x10028160]
call esi
pop esi
pop ebp
ret 4
pop esi
pop ebp
jmp dword [sym.imp.KERNEL32.dll_TlsGetValue]

Function at 0x10018288
Capabilities:
Set thread local storage value

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push esi
push 0x1002b910
push 0x1002b908
push str.FlsSetValue
push 0x22
call fcn.10018093
mov esi, eax
add esp, 0x10
test esi, esi
je 0x100182c2
push dword [ebp + 0xc]
mov ecx, esi
push dword [ebp + 8]
call dword [0x10028160]
call esi
pop esi
pop ebp
ret 8
pop esi
pop ebp
jmp dword [sym.imp.KERNEL32.dll_TlsSetValue]
Function at 0x1001e68d
Capabilities:
Query environment variable

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push ecx
push ecx
push esi
call dword [sym.imp.KERNEL32.dll_GetEnvironmentStringsW]
mov esi, eax
test esi, esi
je 0x1001e72a
push ebx
push esi
call fcn.1001e656
xor ebx, ebx
sub eax, esi
push ebx
push ebx
push ebx
push ebx
sar eax, 1
push eax
push esi
push ebx
push ebx
mov dword [ebp - 8], eax
call fcn.1001d477
add esp, 0x24
mov dword [ebp - 4], eax
test eax, eax
jne 0x1001e6d7
push esi
call dword [sym.imp.KERNEL32.dll_FreeEnvironmentStringsW]
xor eax, eax
jmp 0x1001e729
push edi
push eax
call fcn.1001a814
mov edi, eax
pop ecx
push ebx
test edi, edi
jne 0x1001e6f7
call fcn.10017db4
pop ecx
push esi
call dword [sym.imp.KERNEL32.dll_FreeEnvironmentStringsW]
xor eax, eax
jmp 0x1001e728
push ebx
push dword [ebp - 4]
push edi
push dword [ebp - 8]
push esi
push ebx
push ebx
call fcn.1001d477
add esp, 0x20
test eax, eax
jne 0x1001e716
push edi
call fcn.10017db4
jmp 0x1001e71e
push ebx
call fcn.10017db4
mov ebx, edi
pop ecx
push esi
call dword [sym.imp.KERNEL32.dll_FreeEnvironmentStringsW]
mov eax, ebx
pop edi
pop ebx
pop esi
leave
ret
Function at 0x10021cc9
Capabilities:
Get geographical location

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push ecx
push esi
push edi
call fcn.10018e64
mov esi, dword [ebp + 8]
mov edi, eax
push 2
lea eax, [ebp - 4]
mov ecx, esi
push eax
and ecx, 0x3ff
push 0x20000001
or ecx, 0x400
push ecx
call dword [sym.imp.KERNEL32.dll_GetLocaleInfoW]
test eax, eax
je 0x10021d38
cmp esi, dword [ebp - 4]
je 0x10021d33
cmp dword [ebp + 0xc], 0
je 0x10021d33
mov esi, dword [edi + 0x50]
lea ecx, [esi + 2]
mov ax, word [esi]
add esi, 2
test ax, ax
jne 0x10021d10
push dword [edi + 0x50]
sub esi, ecx
sar esi, 1
call fcn.1002181b
pop ecx
xor ecx, ecx
cmp eax, esi
setne cl
mov eax, ecx
jmp 0x10021d3a
xor eax, eax
inc eax
jmp 0x10021d3a
xor eax, eax
pop edi
pop esi
leave
ret
Function at 0x10021d9f
Capabilities:
Get geographical location

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x18
mov eax, dword [0x10033040]
xor eax, ebp
mov dword [ebp - 4], eax
mov eax, dword [ebp + 0xc]
push ebx
mov ebx, dword [ebp + 0x10]
push esi
mov esi, dword [ebp + 8]
push edi
mov dword [ebp - 0x18], eax
call fcn.10018e64
add eax, 0x50
lea edi, [ebp - 0x10]
mov dword [ebp - 0x14], eax
xor eax, eax
stosd dword es:[edi], eax
stosd dword es:[edi], eax
stosd dword es:[edi], eax
call fcn.10018e64
lea ecx, [ebp - 0x10]
xor edx, edx
mov dword [eax + 0x34c], ecx
lea ecx, [esi + 0x80]
mov eax, dword [ebp - 0x14]
mov dword [eax], esi
lea edi, [eax + 4]
mov dword [edi], ecx
test ecx, ecx
je 0x10021e16
cmp word [ecx], dx
je 0x10021e16
mov eax, dword [0x1002e684]
push edi
dec eax
push eax
push 0x1002e570
call fcn.10021d3e
mov eax, dword [ebp - 0x14]
add esp, 0xc
xor edx, edx
mov dword [ebp - 0x10], edx
mov eax, dword [eax]
test eax, eax
je 0x10021e89
cmp word [eax], dx
je 0x10021e89
mov eax, dword [edi]
test eax, eax
je 0x10021e3a
cmp word [eax], dx
je 0x10021e3a
lea eax, [ebp - 0x10]
push eax
call fcn.10021721
jmp 0x10021e43
lea eax, [ebp - 0x10]
push eax
call fcn.100217bc
cmp dword [ebp - 0x10], 0
pop ecx
jne 0x10021eb3
mov eax, dword [0x1002e56c]
push dword [ebp - 0x14]
dec eax
push eax
push 0x1002e260
call fcn.10021d3e
add esp, 0xc
test al, al
je 0x10021eb3
mov eax, dword [edi]
xor edi, edi
test eax, eax
je 0x10021e7e
cmp word [eax], di
je 0x10021e7e
lea eax, [ebp - 0x10]
push eax
call fcn.10021721
pop ecx
jmp 0x10021eb5
lea eax, [ebp - 0x10]
push eax
call fcn.100217bc
jmp 0x10021e7b
mov eax, dword [edi]
test eax, eax
je 0x10021ea0
cmp word [eax], dx
je 0x10021ea0
lea eax, [ebp - 0x10]
push eax
call fcn.100216d6
pop ecx
jmp 0x10021eb3
mov dword [ebp - 0x10], 0x104
call dword [sym.imp.KERNEL32.dll_GetUserDefaultLCID]
mov dword [ebp - 8], eax
mov dword [ebp - 0xc], eax
xor edi, edi
cmp dword [ebp - 0x10], 0
je 0x10021f7e
lea eax, [ebp - 0x10]
push eax
lea eax, [esi + 0x100]
neg esi
sbb esi, esi
and esi, eax
push esi
call fcn.10021bc3
mov esi, eax
pop ecx
pop ecx
test esi, esi
je 0x10021f7e
movzx ecx, si
push ecx
call dword [sym.imp.KERNEL32.dll_IsValidCodePage]
test eax, eax
je 0x10021f7e
push 1
push dword [ebp - 0xc]
call dword [sym.imp.KERNEL32.dll_IsValidLocale]
test eax, eax
je 0x10021f7e
mov eax, dword [ebp - 0x18]
test eax, eax
je 0x10021f0b
mov dword [eax], esi
mov eax, dword [ebp - 0x14]
push edi
push 0x55
add eax, 0x250
push eax
push dword [ebp - 0xc]
call fcn.100183c8
test ebx, ebx
je 0x10021f79
push edi
push 0x55
lea eax, [ebx + 0x120]
push eax
push dword [ebp - 0xc]
call fcn.100183c8
push 0x40
push ebx
push 0x1001
push dword [ebp - 0xc]
call dword [sym.imp.KERNEL32.dll_GetLocaleInfoW]
test eax, eax
je 0x10021f7e
push 0x40
lea eax, [ebx + 0x80]
push eax
push 0x1002
push dword [ebp - 8]
call dword [sym.imp.KERNEL32.dll_GetLocaleInfoW]
test eax, eax
je 0x10021f7e
push 0xa
push 0x10
lea ecx, [ebx + 0x100]
push ecx
push esi
call fcn.10024a77
add esp, 0x10
xor eax, eax
inc eax
jmp 0x10021f80
xor eax, eax
mov ecx, dword [ebp - 4]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.1000e0c0
leave
ret
Function at 0x10026710
Capabilities:
Parse pe header

Disassembly:
push ebp
mov ebp, esp
mov eax, dword [ebp + 8]
mov ecx, 0x5a4d
cmp word [eax], cx
jne 0x1002673d
mov ecx, dword [eax + 0x3c]
add ecx, eax
cmp dword [ecx], 0x4550
jne 0x1002673d
mov edx, 0x10b
xor eax, eax
cmp word [ecx + 0x18], dx
sete al
pop ebp
ret
xor eax, eax
pop ebp
ret
Function at 0x40128c
Capabilities:
Check os version

Disassembly:
push ebx
add esp, 0xffffff64
xor ebx, ebx
push 0
push 0x80000
push 0
call sub.kernel32.dll_HeapCreate
mov dword [0x406030], eax
cmp dword [0x406030], 0
je 0x401330
mov bl, 1
mov byte [0x40602c], 1
mov eax, esp
xor ecx, ecx
mov edx, 0x9c
call fcn.004016c0
mov dword [esp], 0x9c
push esp
call sub.kernel32.dll_GetVersionExA
push 0x40133c
push 0x401350
call sub.kernel32.dll_GetModuleHandleA
push eax
call sub.kernel32.dll_GetProcAddress
mov dword [0x40604c], eax
cmp dword [0x40604c], 0
je 0x401330
cmp dword [esp + 4], 5
jne 0x40131b
cmp dword [esp + 8], 1
jne 0x40131b
cmp dword [esp + 0xc], 0xa28
jne 0x40131b
cmp word [esp + 0x94], 0
je 0x401330
push 4
push 0x406034
push 0
mov eax, dword [0x406030]
push eax
call dword [0x40604c]
mov eax, ebx
add esp, 0x9c
pop ebx
ret

Function at 0x402074
Capabilities:
Write file on windows

Disassembly:
push ecx
cmp byte [0x41a040], 0
je 0x4020d5
cmp word [0x41a214], 0xd7b2
jne 0x40209d
cmp dword [0x41a21c], 0
jbe 0x40209d
mov eax, 0x41a210
call dword [0x41a22c]
push 0
lea eax, [esp + 4]
push eax
push 0x1e
push 0x406080
push 0xfffffffffffffff5
call sub.kernel32.dll_GetStdHandle
push eax
call sub.kernel32.dll_WriteFile
push 0
lea eax, [esp + 4]
push eax
push 2
push 0x4020fc
push 0xfffffffffffffff5
call sub.kernel32.dll_GetStdHandle
push eax
call sub.kernel32.dll_WriteFile
pop edx
ret
cmp byte [0x406020], 0
jne 0x4020f1
push 0
push 0x406078
push 0x406080
push 0
call sub.user32.dll_MessageBoxA
pop edx
ret

Function at 0x402228
Capabilities:
Create thread

Disassembly:
push ebp
mov ebp, esp
push ebx
push esi
push edi
mov edi, ecx
mov esi, edx
mov ebx, eax
mov eax, 8
call fcn.004014c0
mov dword [eax], edi
mov edx, dword [ebp + 0x10]
mov dword [eax + 4], edx
mov byte [0x41a041], 1
mov edx, dword [ebp + 8]
push edx
mov edx, dword [ebp + 0xc]
push edx
push eax
mov eax, 0x4021f0
push eax
push esi
push ebx
call sub.kernel32.dll_CreateThread
pop edi
pop esi
pop ebx
pop ebp
ret 0xc

Function at 0x4029fc
Capabilities:
Get geographical location

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffff0
push ebx
xor edx, edx
mov dword [ebp - 0x10], edx
xor edx, edx
push ebp
push 0x402a62
push dword fs:[edx]
mov dword fs:[edx], esp
push 7
lea edx, [ebp - 0xb]
push edx
push 0x1004
push eax
call sub.kernel32.dll_GetLocaleInfoA
lea eax, [ebp - 0x10]
lea edx, [ebp - 0xb]
mov ecx, 7
call fcn.004023c4
mov eax, dword [ebp - 0x10]
lea edx, [ebp - 4]
call fcn.004016fc
mov ebx, eax
cmp dword [ebp - 4], 0
je 0x402a4c
xor ebx, ebx
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x402a69
lea eax, [ebp - 0x10]
call fcn.00402274
ret

Function at 0x403344
Capabilities:
Resume thread

Disassembly:
mov eax, dword [eax + 4]
push eax
call sub.kernel32.dll_ResumeThread
ret
Function at 0x403350
Capabilities:
Terminate thread

Disassembly:
push ebx
push esi
push 0x41a5f4
call sub.kernel32.dll_EnterCriticalSection
mov eax, dword [0x41a5f0]
mov ebx, dword [eax + 8]
dec ebx
test ebx, ebx
jl 0x40338a
inc ebx
xor esi, esi
push 1
mov edx, esi
mov eax, dword [0x41a5f0]
call fcn.0040300c
mov eax, dword [eax + 0x100]
push eax
call sub.kernel32.dll_TerminateThread
inc esi
dec ebx
jne 0x40336c
push 0x41a5f4
call sub.kernel32.dll_LeaveCriticalSection
pop esi
pop ebx
ret

Function at 0x4038dc
Capabilities:
Get hostname

Disassembly:
push ebx
add esp, 0xfffffbfc
mov ebx, eax
cmp dword [0x406178], 0
jne 0x403917
mov dword [esp], 0x400
push esp
lea eax, [esp + 8]
push eax
call sub.kernel32.dll_GetComputerNameA
test eax, eax
je 0x403917
mov eax, 0x406178
lea edx, [esp + 4]
mov ecx, 0x400
call fcn.004023c4
mov eax, ebx
mov edx, dword [0x406178]
call fcn.004022c8
add esp, 0x404
pop ebx
ret

Function at 0x403970
Capabilities:
Get memory capacity

Disassembly:
push ebp
mov ebp, esp
add esp, 0xffffffd8
push ebx
xor edx, edx
mov dword [ebp - 0x24], edx
mov dword [ebp - 0x28], edx
mov ebx, eax
xor eax, eax
push ebp
push 0x403a07
push dword fs:[eax]
mov dword fs:[eax], esp
lea eax, [ebp - 0x20]
push eax
call sub.kernel32.dll_GlobalMemoryStatus
mov ecx, 0x100000
mov eax, dword [ebp - 0x18]
xor edx, edx
div ecx
add eax, 3
and eax, 0xfffffff0
mov dword [ebp - 0x18], eax
mov eax, dword [ebp - 0x14]
xor edx, edx
div ecx
mov dword [ebp - 0x14], eax
mov eax, dword [ebp - 0x18]
xor edx, edx
push edx
push eax
lea eax, [ebp - 0x24]
call fcn.004036e4
push dword [ebp - 0x24]
push 0x403a1c
mov eax, dword [ebp - 0x14]
xor edx, edx
push edx
push eax
lea eax, [ebp - 0x28]
call fcn.004036e4
push dword [ebp - 0x28]
mov eax, ebx
mov edx, 3
call fcn.0040249c
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x403a0e
lea eax, [ebp - 0x28]
mov edx, 2
call fcn.00402298
ret
Function at 0x40402c
Capabilities:
Encode data using xor

Disassembly:
push ebx
push esi
push edi
push ecx
mov dword [esp], ecx
movzx esi, byte [edx]
shl esi, 0x18
xor ecx, ecx
mov cl, byte [edx + 1]
shl ecx, 0x10
or esi, ecx
xor ecx, ecx
mov cl, byte [edx + 2]
shl ecx, 8
or esi, ecx
xor ecx, ecx
mov cl, byte [edx + 3]
or esi, ecx
xor ecx, ecx
mov cl, byte [edx + 4]
shl ecx, 0x18
xor ebx, ebx
mov bl, byte [edx + 5]
shl ebx, 0x10
or ecx, ebx
xor ebx, ebx
mov bl, byte [edx + 6]
shl ebx, 8
or ecx, ebx
movzx edx, byte [edx + 7]
or ecx, edx
mov edx, ecx
mov ecx, 0x10
xor esi, dword [eax + 0x44]
cmp ecx, 1
jb 0x404116
mov ebx, esi
shr ebx, 0x10
and ebx, 0xff
mov edi, dword [eax + ebx*4 + 0x448]
mov ebx, esi
shr ebx, 0x18
add edi, dword [eax + ebx*4 + 0x48]
mov ebx, esi
shr ebx, 8
and ebx, 0xff
xor edi, dword [eax + ebx*4 + 0x848]
mov ebx, esi
and ebx, 0xff
add edi, dword [eax + ebx*4 + 0xc48]
xor edx, dword [eax + ecx*4]
xor edi, edx
mov edx, edi
dec ecx
mov ebx, edx
shr ebx, 0x10
and ebx, 0xff
mov edi, dword [eax + ebx*4 + 0x448]
mov ebx, edx
shr ebx, 0x18
add edi, dword [eax + ebx*4 + 0x48]
mov ebx, edx
shr ebx, 8
and ebx, 0xff
xor edi, dword [eax + ebx*4 + 0x848]
xor ebx, ebx
mov bl, dl
add edi, dword [eax + ebx*4 + 0xc48]
xor esi, dword [eax + ecx*4]
xor edi, esi
mov esi, edi
dec ecx
cmp ecx, 1
jae 0x404089
xor edx, dword [eax]
mov eax, edx
shr eax, 0x18
mov ecx, dword [esp]
mov byte [ecx], al
mov eax, edx
shr eax, 0x10
mov ecx, dword [esp]
mov byte [ecx + 1], al
mov eax, edx
shr eax, 8
mov ecx, dword [esp]
mov byte [ecx + 2], al
mov eax, dword [esp]
mov byte [eax + 3], dl
mov eax, esi
shr eax, 0x18
mov edx, dword [esp]
mov byte [edx + 4], al
mov eax, esi
shr eax, 0x10
mov edx, dword [esp]
mov byte [edx + 5], al
mov eax, esi
shr eax, 8
mov edx, dword [esp]
mov byte [edx + 6], al
mov eax, esi
mov edx, dword [esp]
mov byte [edx + 7], al
pop edx
pop edi
pop esi
pop ebx
ret

Function at 0x40416c
Capabilities:
Encode data using xor

Disassembly:
push ebx
push esi
push edi
add esp, 0xfffffff8
mov dword [esp + 4], ecx
mov dword [esp], edx
mov esi, dword [esp]
mov esi, dword [esi]
mov ecx, dword [esp + 4]
mov ecx, dword [ecx]
mov edx, 1
xor esi, dword [eax]
cmp edx, 0x10
ja 0x404221
mov ebx, esi
shr ebx, 0x10
and ebx, 0xff
mov edi, dword [eax + ebx*4 + 0x448]
mov ebx, esi
shr ebx, 0x18
add edi, dword [eax + ebx*4 + 0x48]
mov ebx, esi
shr ebx, 8
and ebx, 0xff
xor edi, dword [eax + ebx*4 + 0x848]
mov ebx, esi
and ebx, 0xff
add edi, dword [eax + ebx*4 + 0xc48]
xor ecx, dword [eax + edx*4]
xor edi, ecx
mov ecx, edi
inc edx
mov ebx, ecx
shr ebx, 0x10
and ebx, 0xff
mov edi, dword [eax + ebx*4 + 0x448]
mov ebx, ecx
shr ebx, 0x18
add edi, dword [eax + ebx*4 + 0x48]
mov ebx, ecx
shr ebx, 8
and ebx, 0xff
xor edi, dword [eax + ebx*4 + 0x848]
xor ebx, ebx
mov bl, cl
add edi, dword [eax + ebx*4 + 0xc48]
xor esi, dword [eax + edx*4]
xor edi, esi
mov esi, edi
inc edx
cmp edx, 0x10
jbe 0x404194
xor ecx, dword [eax + 0x44]
mov eax, dword [esp]
mov dword [eax], ecx
mov eax, dword [esp + 4]
mov dword [eax], esi
pop ecx
pop edx
pop edi
pop esi
pop ebx
ret
Function at 0x404238
Capabilities:
Encrypt data using blowfish

Disassembly:
push ebx
push esi
push edi
push ebp
add esp, 0xffffffec
mov dword [esp + 4], ecx
mov dword [esp], eax
mov dword [esp + 8], edx
mov ebx, 0x12
mov eax, 0x406188
mov edx, dword [esp]
mov ecx, dword [eax]
mov dword [edx], ecx
add edx, 4
add eax, 4
dec ebx
jne 0x404257
mov ebx, pe_nt_image_headers32
mov edx, 0x4061d0
mov eax, dword [esp]
add eax, 0x48
mov esi, 0x4065d0
mov edi, 0x4069d0
mov ecx, 0x406dd0
mov ebp, dword [edx]
mov dword [eax], ebp
mov ebp, dword [esi]
mov dword [eax + 0x400], ebp
mov ebp, dword [edi]
mov dword [eax + 0x800], ebp
mov ebp, dword [ecx]
mov dword [eax + 0xc00], ebp
add ecx, 4
add edi, 4
add esi, 4
add eax, 4
add edx, 4
dec ebx
jne 0x404283
xor esi, esi
mov ebx, 0x12
mov ebp, dword [esp]
xor eax, eax
mov dword [esp + 0xc], eax
mov edi, 4
shl dword [esp + 0xc], 8
mov eax, dword [esp + 8]
movzx eax, byte [eax + esi]
or dword [esp + 0xc], eax
inc esi
mov eax, esi
cdq
idiv dword [esp + 4]
mov esi, edx
dec edi
jne 0x4042c6
mov eax, dword [esp + 0xc]
xor dword [ebp], eax
add ebp, 4
dec ebx
jne 0x4042bb
xor eax, eax
mov dword [esp + 0xc], eax
xor eax, eax
mov dword [esp + 0x10], eax
xor ebx, ebx
lea ecx, [esp + 0x10]
lea edx, [esp + 0xc]
mov eax, dword [esp]
call fcn.0040416c
mov eax, dword [esp]
mov edx, dword [esp + 0xc]
mov dword [eax + ebx*4], edx
mov eax, dword [esp]
mov edx, dword [esp + 0x10]
mov dword [eax + ebx*4 + 4], edx
add ebx, 2
cmp ebx, 0x12
jl 0x4042ff
xor esi, esi
xor edi, edi
mov eax, edi
sub eax, 1
jb 0x404341
je 0x404349
dec eax
je 0x404354
dec eax
je 0x40435f
jmp 0x404368
mov esi, dword [esp]
add esi, 0x48
jmp 0x404368
mov esi, dword [esp]
add esi, 0x448
jmp 0x404368
mov esi, dword [esp]
add esi, 0x848
jmp 0x404368
mov esi, dword [esp]
add esi, 0xc48
xor ebx, ebx
lea ecx, [esp + 0x10]
lea edx, [esp + 0xc]
mov eax, dword [esp]
call fcn.0040416c
mov eax, dword [esp + 0xc]
mov dword [esi + ebx*4], eax
mov eax, dword [esp + 0x10]
mov dword [esi + ebx*4 + 4], eax
add ebx, 2
cmp ebx, 0x100
jl 0x40436a
inc edi
cmp edi, 4
jne 0x404330
add esp, 0x14
pop ebp
pop edi
pop esi
pop ebx
ret

Function at 0x4043bc
Capabilities:
Encode data using add xor sub operations
Encode data using xor

Disassembly:
push ebx
push esi
push edi
push ebp
add esp, 0xfffffff4
mov ebp, ecx
mov dword [esp], edx
mov esi, eax
mov ebx, dword [esp]
cmp ebp, 8
jl 0x404432
mov edi, ebx
mov eax, dword [edi]
lea edx, [esp + 4]
mov dword [edx], eax
mov eax, dword [edi + 4]
lea edx, [esp + 4]
mov dword [edx + 4], eax
mov eax, ebx
mov ecx, eax
push eax
mov eax, esi
pop edx
call fcn.0040402c
lea eax, [esi + 0x1050]
mov eax, dword [eax]
xor dword [edi], eax
lea eax, [esi + 0x1050]
mov eax, dword [eax + 4]
xor dword [edi + 4], eax
lea eax, [esp + 4]
mov eax, dword [eax]
lea edx, [esi + 0x1050]
mov dword [edx], eax
lea eax, [esp + 4]
mov eax, dword [eax + 4]
lea edx, [esi + 0x1050]
mov dword [edx + 4], eax
add ebx, 8
sub ebp, 8
cmp ebp, 8
jge 0x4043d2
add esp, 0xc
pop ebp
pop edi
pop esi
pop ebx
ret