joyce8/EMBER2024-capa huggingface dataset:
Function at 0x10030e99
Capabilities:
Set environment variable

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x18
movzx eax, byte [ebp + 8]
test eax, eax
je 0x10030ef8
mov eax, dword [ebp + 0x14]
mov dword [ebp - 4], eax
mov eax, dword [ebp + 0xc]
mov dword [ebp - 8], eax
mov eax, dword [ebp + 0x10]
mov dword [ebp - 0xc], eax
mov eax, dword [ebp - 4]
mov dword [ebp - 0x10], eax
mov eax, dword [ebp - 8]
mov dword [ebp - 0x18], eax
mov eax, dword [ebp - 0xc]
mov dword [ebp - 0x14], eax
mov eax, dword [ebp - 0x10]
push dword [eax]
push 0x316
push dword [ebp - 0x14]
push 0x55e3
push 0x4db4
mov eax, dword [ebp - 0x18]
push dword [eax]
push 1
push 0x8a9
call fcn.1002fb77
add esp, 0x20
jmp 0x10030f02
push 0
push 0
call dword [sym.imp.KERNEL32.dll_SetEnvironmentVariableW]
mov esp, ebp
pop ebp
ret

Function at 0x10032181
Capabilities:
Query environment variable

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x2c
movzx eax, byte [ebp + 0x18]
test eax, eax
je 0x10032227
mov eax, dword [ebp + 0xc]
mov dword [ebp - 0x18], eax
mov eax, dword [ebp + 0x14]
mov dword [ebp - 0x1c], eax
mov eax, dword [ebp + 0x10]
mov dword [ebp - 0x20], eax
mov eax, dword [ebp - 0x18]
mov dword [ebp - 4], eax
mov eax, dword [ebp - 0x1c]
mov dword [ebp - 0x14], eax
mov eax, dword [ebp - 0x20]
mov dword [ebp - 0xc], eax
mov eax, dword [ebp - 4]
mov dword [eax], 2
jmp 0x100321cd
mov eax, dword [ebp - 4]
mov eax, dword [eax]
dec eax
mov ecx, dword [ebp - 4]
mov dword [ecx], eax
mov eax, dword [ebp - 4]
cmp dword [eax], 0xffffffe9
jne 0x10032225
mov dword [ebp - 0x24], 0xa82a10aa
mov eax, dword [ebp - 0xc]
mov ecx, dword [ebp - 0x24]
cmp dword [eax], ecx
jge 0x100321ef
mov dword [ebp - 8], 1
jmp 0x100321f3
and dword [ebp - 8], 0
cmp dword [ebp - 8], 0xb593
je 0x1003220a
mov eax, dword [ebp - 0xc]
cmp dword [eax], 0
jne 0x1003220a
and dword [ebp - 0x10], 0
jmp 0x10032211
mov dword [ebp - 0x10], 1
mov eax, dword [ebp - 0x14]
mov ecx, dword [ebp - 0x10]
mov dword [eax], ecx
mov eax, dword [ebp - 0x14]
cmp dword [eax], 0
je 0x10032223
jmp 0x100321c2
jmp 0x100321c2
jmp 0x1003224c
mov eax, dword [ebp + 8]
mov dword [ebp - 0x28], eax
mov eax, dword [ebp - 0x28]
mov dword [ebp - 0x2c], eax
mov eax, dword [ebp - 0x2c]
movzx eax, byte [eax]
test eax, eax
je 0x1003224c
push 0x622
push 0
push 0
call dword [sym.imp.KERNEL32.dll_GetEnvironmentVariableW]
mov esp, ebp
pop ebp
ret

Function at 0x100324fa
Capabilities:
Create process on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x10
movzx eax, byte [ebp + 0x10]
test eax, eax
je 0x10032527
push 0
push 0
push 0
push 0
push 0x1b4e
push 1
push 0
push 0
push 0
push 0
call dword [sym.imp.KERNEL32.dll_CreateProcessA]
jmp 0x10032549
mov eax, dword [ebp + 0xc]
mov dword [ebp - 4], eax
mov eax, dword [ebp + 8]
mov dword [ebp - 8], eax
mov eax, dword [ebp - 4]
mov dword [ebp - 0xc], eax
mov eax, dword [ebp - 8]
mov dword [ebp - 0x10], eax
mov eax, dword [ebp - 0xc]
mov ecx, dword [ebp - 0x10]
mov ecx, dword [ecx]
mov dword [eax], ecx
mov esp, ebp
pop ebp
ret
Function at 0x1003313f
Capabilities:
Create pipe

Disassembly:
push ebp
mov ebp, esp
push ecx
push ecx
movzx eax, byte [ebp + 8]
test eax, eax
je 0x10033176
push 0
push 0x3e8
push 0x1090
push 0x2240
push 0x18da
push 0x236e
push 0xe31
push 0
call dword [sym.imp.KERNEL32.dll_CreateNamedPipeA]
jmp 0x1003319a
mov eax, dword [ebp + 0xc]
mov dword [ebp - 8], eax
mov eax, dword [ebp - 8]
mov dword [ebp - 4], eax
mov eax, dword [ebp - 4]
mov eax, dword [eax]
mov ecx, dword [ebp - 4]
mov ecx, dword [ecx]
mov ecx, dword [ecx]
mov eax, dword [eax]
add eax, dword [ecx + 4]
mov ecx, dword [ebp - 4]
mov ecx, dword [ecx]
mov dword [ecx], eax
mov esp, ebp
pop ebp
ret

Function at 0x100338bb
Capabilities:
Query environment variable

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x18
movzx eax, byte [ebp + 0x14]
test eax, eax
je 0x10033903
mov eax, dword [ebp + 0x10]
mov dword [ebp - 4], eax
mov eax, dword [ebp + 8]
mov dword [ebp - 8], eax
mov eax, dword [ebp + 0xc]
mov dword [ebp - 0xc], eax
mov eax, dword [ebp - 4]
mov dword [ebp - 0x18], eax
mov eax, dword [ebp - 8]
mov dword [ebp - 0x14], eax
mov eax, dword [ebp - 0xc]
mov dword [ebp - 0x10], eax
mov eax, dword [ebp - 0x10]
mov eax, dword [eax]
mov ecx, dword [ebp - 0x14]
mov ecx, dword [ecx]
add ecx, dword [eax + 0x10]
mov eax, dword [ebp - 0x18]
mov eax, dword [eax]
mov dword [eax], ecx
jmp 0x10033912
push 0x157e
push 0
push 0
call dword [sym.imp.KERNEL32.dll_ExpandEnvironmentStringsW]
mov esp, ebp
pop ebp
ret

Function at 0x10034742
Capabilities:
Create pipe

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x28
movzx eax, byte [ebp + 0x18]
test eax, eax
je 0x100347b5
mov eax, dword [ebp + 8]
mov dword [ebp - 4], eax
mov eax, dword [ebp + 0x1c]
mov dword [ebp - 8], eax
mov eax, dword [ebp + 0x10]
mov dword [ebp - 0xc], eax
mov eax, dword [ebp + 0xc]
mov dword [ebp - 0x10], eax
mov eax, dword [ebp + 0x14]
mov dword [ebp - 0x14], eax
mov eax, dword [ebp - 4]
mov dword [ebp - 0x1c], eax
mov eax, dword [ebp - 8]
mov dword [ebp - 0x28], eax
mov eax, dword [ebp - 0xc]
mov dword [ebp - 0x20], eax
mov eax, dword [ebp - 0x10]
mov dword [ebp - 0x18], eax
mov eax, dword [ebp - 0x14]
mov dword [ebp - 0x24], eax
push dword [ebp - 0x18]
push 0x6638
mov eax, dword [ebp - 0x1c]
push dword [eax]
push dword [ebp - 0x20]
push dword [ebp - 0x24]
push 1
push 0x434
mov eax, dword [ebp - 0x28]
push dword [eax]
call fcn.10034499
add esp, 0x20
jmp 0x100347dd
push 0
push 0x3e8
push 0x1090
push 0x2240
push 0x18da
push 0x236e
push 0xe31
push 0
call dword [sym.imp.KERNEL32.dll_CreateNamedPipeA]
mov esp, ebp
pop ebp
ret
Function at 0x10034841
Capabilities:
Parse pe header

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x24
and dword [ebp - 4], 0
push 1
push 0x1fc4
push 0x66fd
lea eax, [ebp - 0x10]
push eax
lea eax, [ebp + 8]
push eax
call fcn.1003462c
add esp, 0x14
mov eax, dword [ebp - 0x10]
movzx eax, word [eax]
cmp eax, 0x5a4d
je 0x1003487b
xor eax, eax
jmp 0x100349b1
lea eax, [ebp - 8]
push eax
lea eax, [ebp + 8]
push eax
push 1
lea eax, [ebp - 0x10]
push eax
push 0x7bc3
push 0x2841
call fcn.100346ad
add esp, 0x18
mov eax, dword [ebp - 8]
cmp dword [eax], 0x4550
je 0x100348ad
xor eax, eax
jmp 0x100349b1
push dword [ebp - 8]
push 0x2d98
push 0x224b
push 1
lea eax, [ebp - 0xc]
push eax
call fcn.100342a5
add esp, 0x14
cmp dword [ebp - 0xc], 0
jne 0x100348d5
xor eax, eax
jmp 0x100349b1
lea eax, [ebp - 8]
push eax
push 1
lea eax, [ebp - 4]
push eax
lea eax, [ebp - 0x24]
push eax
lea eax, [ebp - 0xc]
push eax
lea eax, [ebp - 0x10]
push eax
call fcn.10034742
add esp, 0x18
push dword [ebp - 4]
push dword [ebp + 8]
push 0
push 0xb7b
push dword [ebp - 8]
call fcn.1002a474
add esp, 0x14
mov eax, dword [ebp - 8]
mov ecx, dword [ebp - 0xc]
sub ecx, dword [eax + 0x34]
mov dword [ebp - 0x14], ecx
je 0x1003492e
push 1
push dword [ebp - 4]
push 0x4440
push dword [ebp - 0x14]
call fcn.10030f06
add esp, 0x10
push dword [ebp - 4]
call fcn.1003417a
pop ecx
test eax, eax
jne 0x1003493f
xor eax, eax
jmp 0x100349b1
push 0x5838
push 0x77d
lea eax, [ebp - 4]
push eax
push 1
call fcn.100347e1
add esp, 0x10
mov eax, dword [ebp - 4]
mov eax, dword [eax]
cmp dword [eax + 0x28], 0
je 0x10034999
mov eax, dword [ebp - 4]
mov eax, dword [eax]
mov ecx, dword [ebp - 0xc]
add ecx, dword [eax + 0x28]
mov dword [ebp - 0x18], ecx
jne 0x10034976
xor eax, eax
jmp 0x100349b1
push 0
push 1
push 0xdeadbeef
call dword [ebp - 0x18]
mov dword [ebp - 0x20], eax
cmp dword [ebp - 0x20], 0
jne 0x1003498f
xor eax, eax
jmp 0x100349b1
mov eax, dword [ebp - 4]
mov dword [eax + 0x10], 1
mov eax, dword [ebp - 4]
cmp dword [eax + 0x10], 0
je 0x100349aa
mov eax, dword [ebp - 4]
mov dword [ebp - 0x1c], eax
jmp 0x100349ae
and dword [ebp - 0x1c], 0
mov eax, dword [ebp - 0x1c]
mov esp, ebp
pop ebp
ret
Function at 0x1004ee9e
Capabilities:
Query environment variable

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x48
movzx eax, byte [ebp + 0xc]
test eax, eax
je 0x1004efd9
mov eax, dword [ebp + 0x10]
mov dword [ebp - 0x2c], eax
mov eax, dword [ebp + 0x1c]
mov dword [ebp - 0x30], eax
mov eax, dword [ebp + 0x18]
mov dword [ebp - 0x34], eax
mov eax, dword [ebp + 8]
mov dword [ebp - 0x38], eax
mov eax, dword [ebp + 0x14]
mov dword [ebp - 0x3c], eax
mov eax, dword [ebp - 0x2c]
mov dword [ebp - 0x48], eax
mov eax, dword [ebp - 0x30]
mov dword [ebp - 0x44], eax
mov eax, dword [ebp - 0x34]
mov dword [ebp - 4], eax
mov eax, dword [ebp - 0x38]
mov dword [ebp - 0x1c], eax
mov eax, dword [ebp - 0x3c]
mov dword [ebp - 0x40], eax
mov eax, dword [ebp - 4]
mov ecx, dword [ebp - 4]
mov ecx, dword [ecx]
cmp dword [eax], ecx
jge 0x1004ef01
mov dword [ebp - 0x14], 1
jmp 0x1004ef05
and dword [ebp - 0x14], 0
mov eax, dword [ebp - 4]
cmp dword [eax], 0
jne 0x1004ef16
mov dword [ebp - 0xc], 1
jmp 0x1004ef1a
and dword [ebp - 0xc], 0
mov eax, dword [ebp - 0xc]
add eax, 0xb8f6
mov ecx, dword [ebp - 4]
cmp eax, dword [ecx]
je 0x1004ef32
mov dword [ebp - 0x10], 1
jmp 0x1004ef36
and dword [ebp - 0x10], 0
mov eax, dword [ebp - 0x10]
mov ecx, dword [ebp - 0x14]
lea eax, [ecx + eax + 0x10994e85]
mov ecx, dword [ebp - 0x1c]
add eax, dword [ecx]
mov ecx, dword [ebp - 4]
cmp eax, dword [ecx]
jne 0x1004ef58
mov dword [ebp - 0x18], 1
jmp 0x1004ef5c
and dword [ebp - 0x18], 0
mov eax, dword [ebp - 4]
mov eax, dword [eax]
cmp dword [ebp - 0x18], eax
jne 0x1004ef77
mov eax, dword [ebp - 0x1c]
cmp dword [eax], 0
je 0x1004ef77
mov dword [ebp - 0x20], 1
jmp 0x1004ef7b
and dword [ebp - 0x20], 0
mov eax, dword [ebp - 4]
mov eax, dword [eax]
cmp eax, dword [ebp - 0x20]
jg 0x1004ef96
mov eax, dword [ebp - 0x40]
cmp dword [eax], 0
je 0x1004ef96
mov dword [ebp - 0x24], 1
jmp 0x1004ef9a
and dword [ebp - 0x24], 0
cmp dword [ebp - 0x24], 0xfffffffb
jb 0x1004efa9
mov dword [ebp - 8], 1
jmp 0x1004efad
and dword [ebp - 8], 0
mov eax, dword [ebp - 0x44]
mov ecx, dword [ebp - 8]
mov dword [eax], ecx
cmp dword [ebp - 8], 0xffffffff
jb 0x1004efc4
mov dword [ebp - 0x28], 1
jmp 0x1004efc8
and dword [ebp - 0x28], 0
push 0
mov ecx, dword [ebp - 0x48]
call fcn.10019cac
mov ecx, dword [ebp - 0x28]
mov dword [eax], ecx
jmp 0x1004efe8
push 0x157e
push 0
push 0
call dword [sym.imp.KERNEL32.dll_ExpandEnvironmentStringsW]
mov esp, ebp
pop ebp
ret

Function at 0x100501ac
Capabilities:
Create process on windows

Disassembly:
push ebp
mov ebp, esp
push ecx
push ecx
movzx eax, byte [ebp + 0xc]
test eax, eax
je 0x100501d8
push 0
push 0
push 0
push 0
push 0x1b4e
push 1
push 0
push 0
push 0
push 0
call dword [sym.imp.KERNEL32.dll_CreateProcessA]
jmp 0x100501ea
mov eax, dword [ebp + 8]
mov dword [ebp - 4], eax
mov eax, dword [ebp - 4]
mov dword [ebp - 8], eax
mov eax, dword [ebp - 8]
and dword [eax], 0
mov esp, ebp
pop ebp
ret
Function at 0x100680f0
Capabilities:
Manipulate console buffer

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x28
mov eax, dword [0x1009439c]
xor eax, ebp
mov dword [ebp - 4], eax
xor eax, eax
mov word [ebp - 0x20], ax
xor ecx, ecx
mov word [ebp - 0x1e], cx
cmp dword [ebp + 8], 0xffffffff
jne 0x10068114
jmp 0x10068183
lea edx, [ebp - 0x1c]
push edx
mov eax, dword [ebp + 8]
push eax
call dword [sym.imp.KERNEL32.dll_GetConsoleScreenBufferInfo]
test eax, eax
jne 0x10068128
jmp 0x10068183
movsx ecx, word [ebp - 0x1c]
movsx edx, word [ebp - 0x1a]
imul ecx, edx
mov dword [ebp - 0x24], ecx
lea eax, [ebp - 0x28]
push eax
mov ecx, dword [ebp - 0x20]
push ecx
mov edx, dword [ebp - 0x24]
push edx
push 0x20
mov eax, dword [ebp + 8]
push eax
call dword [sym.imp.KERNEL32.dll_FillConsoleOutputCharacterA]
test eax, eax
jne 0x10068154
jmp 0x10068183
lea ecx, [ebp - 0x28]
push ecx
mov edx, dword [ebp - 0x20]
push edx
mov eax, dword [ebp - 0x24]
push eax
movzx ecx, word [ebp - 0x14]
push ecx
mov edx, dword [ebp + 8]
push edx
call dword [sym.imp.KERNEL32.dll_FillConsoleOutputAttribute]
test eax, eax
jne 0x10068175
jmp 0x10068183
mov eax, dword [ebp - 0x20]
push eax
mov ecx, dword [ebp + 8]
push ecx
call dword [sym.imp.KERNEL32.dll_SetConsoleCursorPosition]
mov ecx, dword [ebp - 4]
xor ecx, ebp
call main
mov esp, ebp
pop ebp
ret

Function at 0x10069d50
Capabilities:
Manipulate console buffer

Disassembly:
push ebp
mov ebp, esp
sub esp, 8
mov dword [ebp - 8], ecx
mov eax, dword [ebp - 8]
mov ecx, dword [eax]
push ecx
mov edx, dword [ebp + 8]
push edx
call dword [sym.imp.KERNEL32.dll_SetConsoleCursorPosition]
mov eax, dword [ebp - 8]
movzx ecx, byte [eax + 5]
and ecx, 0xf
movzx edx, byte [0x14b2a994]
or ecx, edx
mov byte [ebp - 1], cl
movzx ax, byte [ebp - 1]
movzx ecx, ax
push ecx
mov edx, dword [ebp + 8]
push edx
call dword [sym.imp.KERNEL32.dll_SetConsoleTextAttribute]
mov eax, dword [ebp - 8]
movzx ecx, byte [eax + 4]
push ecx
push 0x14b2ab88
call fcn.10068520
add esp, 8
mov esp, ebp
pop ebp
ret 4
Function at 0x100893a5
Capabilities:
Link many functions at runtime
Print debug messages

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x24
mov eax, dword [0x1009439c]
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.1007a1ac
mov dword [ebp - 0x14], eax
cmp dword [0x14b2bb74], esi
jne 0x10089498
push 0x800
push esi
push 0x10007b5c
call dword [sym.imp.KERNEL32.dll_LoadLibraryExW]
mov edi, eax
test edi, edi
jne 0x10089425
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0x57
jne 0x10089578
push esi
push esi
push 0x10007b5c
call dword [sym.imp.KERNEL32.dll_LoadLibraryExW]
mov edi, eax
test edi, edi
je 0x10089578
push 0x10007b74
push edi
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
test eax, eax
je 0x10089578
push eax
call ebx
push 0x10007b80
push edi
mov dword [0x14b2bb74], eax
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
push eax
call ebx
push 0x10007b90
push edi
mov dword [0x14b2bb78], eax
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
push eax
call ebx
push 0x10007ba4
push edi
mov dword [0x14b2bb7c], eax
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
push eax
call ebx
mov dword [0x14b2bb84], eax
test eax, eax
je 0x10089495
push 0x10007bc0
push edi
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
push eax
call ebx
mov dword [0x14b2bb80], eax
mov edi, dword [ebp - 0x18]
call dword [sym.imp.KERNEL32.dll_IsDebuggerPresent]
test eax, eax
je 0x100894bd
mov eax, dword [ebp - 0x1c]
test eax, eax
je 0x100894b0
push eax
call dword [sym.imp.KERNEL32.dll_OutputDebugStringW]
cmp dword [ebp - 0x14], esi
je 0x100894d2
push 4
pop eax
jmp 0x1008957a
cmp dword [ebp - 0x14], esi
je 0x100894d2
push dword [0x14b2bb74]
call dword [sym.imp.KERNEL32.dll_DecodePointer]
push 3
jmp 0x100894b7
mov eax, dword [0x14b2bb80]
mov ebx, dword [sym.imp.KERNEL32.dll_DecodePointer]
cmp eax, edi
je 0x10089530
cmp dword [0x14b2bb84], edi
je 0x10089530
push eax
call ebx
push dword [0x14b2bb84]
mov dword [ebp - 0x14], eax
call ebx
mov ecx, dword [ebp - 0x14]
mov dword [ebp - 0x18], eax
test ecx, ecx
je 0x10089530
test eax, eax
je 0x10089530
call ecx
test eax, eax
je 0x10089525
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 0x10089525
test byte [ebp - 8], 1
jne 0x10089530
mov edi, dword [ebp + 0x10]
or edi, 0x200000
jmp 0x10089560
mov eax, dword [0x14b2bb78]
cmp eax, edi
je 0x1008955d
push eax
call ebx
test eax, eax
je 0x1008955d
call eax
mov esi, eax
test esi, esi
je 0x1008955d
mov eax, dword [0x14b2bb7c]
cmp eax, edi
je 0x1008955d
push eax
call ebx
test eax, eax
je 0x1008955d
push esi
call eax
mov esi, eax
mov edi, dword [ebp + 0x10]
push dword [0x14b2bb74]
call ebx
test eax, eax
je 0x10089578
push edi
push dword [ebp - 0x20]
push dword [ebp - 0x1c]
push esi
call eax
jmp 0x1008957a
xor eax, eax
mov ecx, dword [ebp - 4]
pop edi
pop esi
xor ecx, ebp
pop ebx
call main
mov esp, ebp
pop ebp
ret
Function at 0x402cd9
Capabilities:
Encrypt data using rc4 ksa

Disassembly:
sub esp, 0x254
mov eax, dword [0x47c300]
xor eax, esp
mov dword [esp + 0x250], eax
and dword [esp + 4], 0
lea eax, [esp + 4]
and dword [esp + 8], 0
push ebx
push ebp
mov ebp, dword [esp + 0x260]
push esi
push edi
push eax
call fcn.00401367
mov esi, dword [esp + 0x274]
xor ebx, ebx
pop ecx
mov dword [esp + 0x14], eax
push str.JAHNsiu
push 0x47d630
call fcn.00401170
push eax
call fcn.00401fe7
mov eax, ebx
mov byte [esp + ebx + 0x6c], bl
cdq
add esp, 0xc
idiv dword [esp + 0x274]
mov al, byte [edx + esi]
mov byte [esp + ebx + 0x160], al
inc ebx
cmp ebx, 0x100
jl 0x402d1a
xor esi, esi
xor edi, edi
mov dl, byte [esp + esi + 0x60]
movzx eax, byte [esp + esi + 0x160]
add edi, eax
movzx ecx, dl
add edi, ecx
and edi, 0x800000ff
jns 0x402d7a
dec edi
or edi, 0xffffff00
inc edi
mov al, byte [esp + edi + 0x60]
mov byte [esp + esi + 0x60], al
inc esi
mov byte [esp + edi + 0x60], dl
cmp esi, 0x100
jl 0x402d57
xor ebx, ebx
xor esi, esi
xor edi, edi
mov dword [esp + 0x10], esi
cmp dword [esp + 0x26c], ebx
jle 0x402ee5
inc ebx
and ebx, 0x800000ff
jns 0x402db7
dec ebx
or ebx, 0xffffff00
inc ebx
mov cl, byte [esp + ebx + 0x60]
movzx edx, cl
add edi, edx
mov dword [esp + 0x1c], ebx
and edi, 0x800000ff
jns 0x402dd4
dec edi
or edi, 0xffffff00
inc edi
mov al, byte [esp + edi + 0x60]
mov byte [esp + ebx + 0x60], al
xor eax, eax
mov dword [esp + 0x3c], eax
mov dword [esp + 0x40], eax
mov dword [esp + 0x44], eax
mov byte [esp + edi + 0x60], cl
lea ecx, [esp + 0x60]
movzx eax, byte [esp + ebx + 0x60]
xor ebx, ebx
add eax, edx
mov dword [esp + 0x20], edi
movzx eax, al
add eax, ecx
lea ecx, [esp + 0x3c]
push eax
push ebx
call fcn.004015f8
lea eax, [esp + 0x10]
mov dword [esp + 0x30], ebx
push eax
push ebx
lea ecx, [esp + 0x38]
mov dword [esp + 0x3c], ebx
mov dword [esp + 0x40], ebx
call fcn.004016c0
push 0x4253d8
lea ecx, [esp + 0x4c]
call fcn.0040224c
cmp dword [esp + 0x5c], 0xf
lea eax, [esp + 0x48]
cmova eax, dword [esp + 0x48]
push eax
call fcn.0040d82e
pop ecx
push ebx
push ebx
mov edi, eax
mov dword [esp + 0x2c], ebx
push ebx
mov ecx, 0x47d6f0
mov dword [esp + 0x1c], edi
mov dword [esp + 0x34], ebx
mov dword [esp + 0x38], ebx
call fcn.004028c1
mov ecx, eax
call fcn.004028c1
mov ecx, eax
call fcn.004028c1
push 0xa
pop ebx
lea eax, [esp + 0x10]
push eax
lea ecx, [esp + 0x28]
call fcn.004015cc
sub ebx, 1
jne 0x402e7d
mov eax, dword [esp + 0x30]
mov edx, dword [eax]
mov eax, dword [esp + 0x24]
mov ecx, dword [eax + edi*4]
mov eax, dword [esp + 0x3c]
mov al, byte [ecx + eax]
lea ecx, [esp + 0x24]
xor byte [edx + ebp], al
call fcn.00403a62
lea ecx, [esp + 0x48]
call fcn.00403aae
lea ecx, [esp + 0x30]
call fcn.00403a62
lea ecx, [esp + 0x3c]
call fcn.00403a3f
mov ebx, dword [esp + 0x1c]
inc esi
mov edi, dword [esp + 0x20]
mov dword [esp + 0x10], esi
cmp esi, dword [esp + 0x26c]
jl 0x402da6
lea eax, [esp + 0x14]
push eax
mov ecx, eax
call fcn.00401846
mov ecx, dword [esp + 0x260]
pop edi
pop esi
pop ebp
pop ebx
xor ecx, esp
call fcn.004081cf
add esp, 0x254
ret
Function at 0x403dcf
Capabilities:
Encode data using xor

Disassembly:
mov eax, dword [esp + 8]
sub esp, 0xc
sub eax, dword [esp + 0x10]
sar eax, 2
push edi
mov edi, dword [esp + 0x20]
test eax, eax
je 0x403ea7
push ebx
xor ebx, ebx
push esi
mov esi, ebx
cmp dword [esp + 0x2c], ebx
jbe 0x403ea5
push ebp
mov dword [esp + 0x10], ebx
mov ebp, 0x47d630
mov dword [esp + 0x14], ebx
mov dword [esp + 0x18], ebx
mov al, byte [edi + esi]
xor al, 0x73
sub al, 0x6c
xor al, 0x74
push str.Own_head
push ebp
mov byte [edi + esi], al
call fcn.00401170
push eax
call fcn.00401fe7
mov al, byte [edi + esi]
add al, 0x4e
xor al, 0xdc
push str.Earth
push ebp
mov byte [edi + esi], al
call fcn.00401170
push eax
call fcn.00401fe7
mov al, byte [edi + esi]
xor al, 0xac
sub al, 0x65
xor al, 0x22
sub al, 0x73
push 0x4253cc
mov byte [edi + esi], al
call fcn.0040d82e
add esp, 0x1c
mov dword [esp + 0x2c], eax
lea eax, [esp + 0x2c]
lea ecx, [esp + 0x10]
push eax
push ebx
call fcn.004016c0
mov ecx, dword [esp + 0x10]
mov al, byte [ecx]
xor byte [edi + esi], al
mov eax, dword [esp + 0x18]
sub eax, ecx
and eax, 0xfffffffc
push eax
push ecx
call fcn.004015a0
inc esi
mov dword [esp + 0x18], ebx
pop ecx
pop ecx
mov dword [esp + 0x14], ebx
mov dword [esp + 0x18], ebx
cmp esi, dword [esp + 0x30]
jb 0x403e0c
pop ebp
pop esi
pop ebx
lea ecx, [esp + 0x14]
call fcn.00403a62
pop edi
add esp, 0xc
ret 0x14

Function at 0x404a46
Capabilities:
Create thread

Disassembly:
xor eax, eax
push eax
push eax
push eax
push 0x404bf9
push eax
push eax
call dword [sym.imp.KERNEL32.dll_CreateThread]
push 0xffffffffffffffff
push eax
call dword [sym.imp.KERNEL32.dll_WaitForSingleObject]
ret
Function at 0x406854
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 0x406875
jl 0x40686c
test edi, edi
jne 0x406875
xor eax, eax
xor edx, edx
jmp 0x406936
cmp dword [ebx + 0x38], 0
je 0x40688a
push eax
push edi
push dword [ebp + 8]
call fcn.0040693c
jmp 0x406936
mov eax, dword [ebx + 0x1c]
push esi
mov esi, edi
mov ecx, dword [eax]
test ecx, ecx
je 0x4068d1
mov eax, dword [ebx + 0x2c]
mov eax, dword [eax]
mov dword [ebp - 4], eax
test eax, eax
je 0x4068d1
cmp eax, edi
jb 0x4068ab
mov eax, edi
mov dword [ebp - 4], edi
push eax
push ecx
push dword [ebp + 8]
call fcn.00408f80
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 0x4068d7
mov eax, dword [ebp + 8]
mov dword [ebp - 4], eax
cmp dword [ebx + 0x4c], 0
je 0x40692b
mov ecx, ebx
call fcn.004060eb
mov ecx, dword [ebp - 4]
mov edx, esi
mov eax, 0xfff
cmp esi, eax
jbe 0x406916
push dword [ebx + 0x4c]
push eax
push 1
push ecx
call fcn.00410f13
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 0x40692b
jmp 0x4068e9
test edx, edx
je 0x40692b
push dword [ebx + 0x4c]
push esi
push 1
push ecx
call fcn.00410f13
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 0x408dc6
Capabilities:
Parse pe header

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

Function at 0x41808d
Capabilities:
Allocate thread local storage

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push esi
push 0x429370
push 0x429368
push str.FlsAlloc
push 0x1e
call fcn.00417efa
mov esi, eax
add esp, 0x10
test esi, esi
je 0x4180c1
push dword [ebp + 8]
mov ecx, esi
call dword [0x425148]
call esi
jmp 0x4180c7
call dword [sym.imp.KERNEL32.dll_TlsAlloc]
pop esi
pop ebp
ret 4

Function at 0x41810b
Capabilities:
Get thread local storage value

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push esi
push 0x429380
push 0x429378
push str.FlsGetValue
push 0x20
call fcn.00417efa
mov esi, eax
add esp, 0x10
test esi, esi
je 0x418142
push dword [ebp + 8]
mov ecx, esi
call dword [0x425148]
call esi
pop esi
pop ebp
ret 4
pop esi
pop ebp
jmp dword [sym.imp.KERNEL32.dll_TlsGetValue]