joyce8/EMBER2024-capa huggingface dataset:
Function at 0x5e93f0
Capabilities:
Packed with generic packer

Disassembly:
pushal
mov esi, 0x54a015
lea edi, [esi - 0x149015]
lea eax, [edi + 0x171d30]
push dword [eax]
mov dword [eax], 0xa7ea65ea
push eax
push edi
or ebp, 0xffffffff
jmp 0x5e9422
mov al, byte [esi]
inc esi
mov byte [edi], al
inc edi
add ebx, ebx
jne 0x5e9429
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
jb 0x5e9418
mov eax, 1
add ebx, ebx
jne 0x5e943b
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc eax, eax
add ebx, ebx
jae 0x5e944c
jne 0x5e946b
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
jb 0x5e946b
dec eax
add ebx, ebx
jne 0x5e9458
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc eax, eax
jmp 0x5e9430
add ebx, ebx
jne 0x5e9467
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc ecx, ecx
jmp 0x5e94bd
xor ecx, ecx
sub eax, 3
jb 0x5e9483
shl eax, 8
mov al, byte [esi]
inc esi
xor eax, 0xffffffff
je 0x5e94f2
sar eax, 1
mov ebp, eax
jmp 0x5e948e
add ebx, ebx
jne 0x5e948e
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
jb 0x5e945c
inc ecx
add ebx, ebx
jne 0x5e949c
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
jb 0x5e945c
add ebx, ebx
jne 0x5e94a9
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc ecx, ecx
add ebx, ebx
jae 0x5e949e
jne 0x5e94ba
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
jae 0x5e949e
add ecx, 2
cmp ebp, 0xfffffb00
adc ecx, 2
lea edx, [edi + ebp]
cmp ebp, 0xfffffffc
jbe 0x5e94dc
mov al, byte [edx]
inc edx
mov byte [edi], al
inc edi
dec ecx
jne 0x5e94ce
jmp 0x5e941e
mov eax, dword [edx]
add edx, 4
mov dword [edi], eax
add edi, 4
sub ecx, 4
ja 0x5e94dc
add edi, ecx
jmp 0x5e941e
pop esi
pop edi
pop eax
mov dword [edi], eax
mov edi, esi
mov ecx, 0x7a2f
mov al, byte [edi]
inc edi
sub al, 0xe8
cmp al, 1
ja 0x5e94fe
cmp byte [edi], 0x19
jne 0x5e94fe
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 0x5e9503
lea edi, [esi + 0x1e6000]
mov eax, dword [edi]
or eax, eax
je 0x5e9572
mov ebx, dword [edi + 4]
lea eax, [eax + esi + 0x1eb360]
add ebx, esi
push eax
add edi, 8
call dword [esi + 0x1eb424]
xchg ebp, eax
mov al, byte [edi]
inc edi
or al, al
je 0x5e9530
mov ecx, edi
push edi
dec eax
repne scasb al, byte es:[edi]
push ebp
call dword [esi + 0x1eb42c]
or eax, eax
je 0x5e956c
mov dword [ebx], eax
add ebx, 4
jmp 0x5e954d
call dword [esi + 0x1eb428]
mov ebp, dword [esi + 0x1eb430]
lea edi, [esi - 0x1000]
mov ebx, 0x1000
push eax
push esp
push 4
push ebx
push edi
call ebp
lea eax, [edi + 0x19f]
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
lea ebx, [esi - 0x1000]
lea edi, [ebx + 0x1e95cd]
push edi
xor eax, eax
stosb byte es:[edi], al
pop ecx
dec ecx
push eax
push 1
push ebx
call ecx
popal
lea eax, [esp - 0x80]
push 0
cmp esp, eax
jne 0x5e95be
sub esp, 0xffffff80
jmp 0x402bb0
Function at 0x4016d0
Capabilities:
Create process on windows

Disassembly:
sub esp, 0x44
push ebx
push esi
push edi
call fcn.004015a0
mov ecx, str.open
test al, al
jne 0x4016e9
mov ecx, str.runas
lea eax, [esp + 0xc]
push eax
call fcn.00401fd0
push 0x38
xor edi, edi
lea ecx, [esp + 0x1c]
push edi
push ecx
call fcn.00405360
mov edx, dword [esp + 0x60]
mov eax, dword [esp + 0x18]
add esp, 0xc
lea ecx, [esp + 0x14]
push ecx
mov dword [esp + 0x18], 0x3c
mov dword [esp + 0x1c], 0x40
mov dword [esp + 0x20], edi
mov dword [esp + 0x28], edx
mov dword [esp + 0x2c], edi
mov dword [esp + 0x24], eax
mov dword [esp + 0x30], edi
mov dword [esp + 0x34], 1
mov dword [esp + 0x50], edi
call dword [sym.imp.SHELL32.dll_ShellExecuteExW]
test eax, eax
jne 0x40177d
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov esi, eax
mov eax, dword [esp + 0xc]
add eax, 0xfffffff0
lea edx, [eax + 0xc]
or ecx, 0xffffffff
lock xadd dword [edx], ecx
dec ecx
test ecx, ecx
jg 0x401774
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov eax, esi
pop edi
pop esi
pop ebx
add esp, 0x44
ret
mov esi, dword [esp + 0x4c]
cmp esi, edi
je 0x40179d
push 0xffffffffffffffff
push esi
call dword [sym.imp.KERNEL32.dll_WaitForSingleObject]
test eax, eax
je 0x4017c9
cmp esi, edi
je 0x40179d
push esi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov eax, dword [esp + 0xc]
add eax, 0xfffffff0
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x4017bd
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov eax, 0x507
pop edi
pop esi
pop ebx
add esp, 0x44
ret
lea ecx, [esp + 0x10]
push ecx
push esi
mov dword [esp + 0x18], edi
call dword [sym.imp.KERNEL32.dll_GetExitCodeProcess]
test eax, eax
jne 0x401806
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov ebx, eax
cmp esi, edi
je 0x4017f0
push esi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov eax, dword [esp + 0xc]
add eax, 0xfffffff0
lea edx, [eax + 0xc]
or ecx, 0xffffffff
lock xadd dword [edx], ecx
dec ecx
test ecx, ecx
jmp 0x401829
mov ebx, dword [esp + 0x10]
cmp esi, edi
je 0x401815
push esi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov eax, dword [esp + 0xc]
add eax, 0xfffffff0
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x401835
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
pop edi
pop esi
mov eax, ebx
pop ebx
add esp, 0x44
ret
Function at 0x401840
Capabilities:
Delete file
Identify system language via api

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
sub esp, 0xc
push ebx
push esi
push edi
call fcn.00402930
call dword [sym.imp.KERNEL32.dll_GetUserDefaultUILanguage]
mov ecx, 0x3ff
and ax, cx
movzx eax, ax
cmp ax, 9
je 0x401873
cmp ax, 0x19
je 0x401873
lea esi, [ecx + 0xa]
jmp 0x40187b
or eax, 0x400
movzx esi, ax
push 0xc
call fcn.004042fc
add esp, 4
test eax, eax
je 0x4018a3
mov edx, dword [ebp + 8]
or esi, 0x400
mov dword [eax], 0x410cb8
mov word [eax + 4], si
mov dword [eax + 8], edx
mov ecx, eax
jmp 0x4018a5
xor ecx, ecx
sub esp, 8
mov eax, esp
mov dword [esp + 0x1c], esp
push ecx
push eax
mov dword [eax], 0
mov dword [eax + 4], 0
call fcn.00401c10
call fcn.00403ca0
mov eax, dword [0x4141cc]
mov edx, dword [eax + 0xc]
add esp, 8
mov ecx, 0x4141cc
call edx
add eax, 0x10
mov dword [esp + 0xc], eax
lea eax, [esp + 0xc]
push eax
call fcn.004010d0
mov esi, eax
add esp, 4
test esi, esi
je 0x40191e
mov eax, dword [esp + 0xc]
add eax, 0xfffffff0
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x401913
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov eax, esi
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 0x10
mov ebx, dword [esp + 0xc]
push ebx
call fcn.00401350
mov esi, eax
add esp, 4
mov dword [esp + 0xc], esi
test esi, esi
je 0x4019bc
cmp esi, 0x70
jne 0x4019b4
push 0x84
lea edi, [esp + 0x18]
call fcn.00403d20
mov esi, dword [eax]
add esp, 4
push 0x85
lea edi, [esp + 0x14]
call fcn.00403d20
mov ecx, dword [eax]
add esp, 4
push 0x10
push esi
push ecx
push 0
call dword [sym.imp.USER32.dll_MessageBoxW]
mov eax, dword [esp + 0x10]
add eax, 0xfffffff0
lea edx, [eax + 0xc]
or ecx, 0xffffffff
lock xadd dword [edx], ecx
dec ecx
test ecx, ecx
jg 0x401990
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov eax, dword [esp + 0x14]
add eax, 0xfffffff0
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x4019b0
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov esi, dword [esp + 0xc]
lea eax, [ebx - 0x10]
jmp 0x4018fa
push ebx
call fcn.004016d0
add esp, 4
push ebx
mov esi, eax
call dword [sym.imp.KERNEL32.dll_DeleteFileW]
lea eax, [ebx - 0x10]
or edx, 0xffffffff
lea ecx, [eax + 0xc]
lock xadd dword [ecx], edx
dec edx
test esi, esi
jne 0x401905
test edx, edx
jg 0x4019f2
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
pop edi
pop esi
xor eax, eax
pop ebx
mov esp, ebp
pop ebp
ret 0x10
Function at 0x401e00
Capabilities:
Extract resource via kernel32 functions

Disassembly:
push ebp
mov ebp, dword [esp + 8]
push edi
push ebx
push ebp
mov edi, eax
call dword [sym.imp.KERNEL32.dll_LoadResource]
test eax, eax
jne 0x401e17
pop edi
pop ebp
ret
push esi
push eax
call dword [sym.imp.KERNEL32.dll_LockResource]
mov esi, eax
test esi, esi
je 0x401e48
push ebx
push ebp
call dword [sym.imp.KERNEL32.dll_SizeofResource]
add eax, esi
and edi, 0xf
jbe 0x401e44
cmp esi, eax
jae 0x401e48
sub edi, 1
movzx ecx, word [esi]
lea esi, [esi + ecx*2 + 2]
jne 0x401e34
cmp esi, eax
jb 0x401e4e
pop esi
pop edi
xor eax, eax
pop ebp
ret
movzx eax, word [esi]
neg eax
sbb eax, eax
and eax, esi
pop esi
pop edi
pop ebp
ret

Function at 0x402930
Capabilities:
Allocate or change rwx memory
Execute shellcode via indirect call
Get common file path
Identify system language via api

Disassembly:
sub esp, 0x10
push ebx
push esi
push edi
mov ebx, 0x454dd4
mov dword [0x454dd0], 0xd0cd
call fcn.00402fa0
call dword [sym.imp.KERNEL32.dll_GetUserDefaultUILanguage]
mov ecx, 0x3ff
and ax, cx
movzx eax, ax
cmp ax, 9
je 0x40296c
cmp ax, 0x19
je 0x40296c
lea eax, [ecx + 0xa]
jmp 0x402974
or eax, 0x400
movzx eax, ax
xor edx, edx
push 0x414dd8
push edx
push edx
push 0x1a
push edx
mov word [0x454df4], ax
mov word [0x414dd8], dx
call dword [sym.imp.SHELL32.dll_SHGetFolderPathW]
push 0x410dfc
call fcn.00403030
add esp, 4
push str.Dumps
call fcn.00403030
add esp, 4
call fcn.00402a50
mov edi, dword [0x454dd4]
xor eax, eax
mov word [0x454df6], ax
mov ecx, dword [0x454df4]
mov eax, 0x83
lea ebx, [esp + 0x10]
call fcn.00403a20
mov esi, dword [esp + 0x14]
test esi, esi
je 0x402a11
mov ecx, dword [esp + 0x10]
push esi
push ecx
push 0x104
push 0x454df6
call fcn.00404e2a
add esp, 0x10
cmp esi, 0x104
jae 0x402a11
cmp word [esi*2 + 0x454df4], 0
je 0x402a11
xor edx, edx
mov word [esi*2 + 0x454df6], dx
xor eax, eax
push eax
mov word [0x454ffe], ax
call dword [sym.imp.KERNEL32.dll_GetModuleHandleW]
mov ecx, dword [eax + 0x3c]
add ecx, eax
mov dword [0x413f90], eax
mov ecx, dword [ecx + 0x50]
push 0x402d70
mov dword [0x413f94], ecx
call dword [sym.imp.KERNEL32.dll_SetUnhandledExceptionFilter]
pop edi
pop esi
pop ebx
add esp, 0x10
jmp 0x403c10
push ecx
push ebx
mov ebx, dword [sym.imp.KERNEL32.dll_GetModuleHandleW]
push esi
push edi
push str.KernelBase.dll
call ebx
mov edi, dword [sym.imp.KERNEL32.dll_GetProcAddress]
test eax, eax
je 0x403c39
push 0x410eb4
push eax
call edi
mov esi, eax
test esi, esi
jne 0x403c52
push 0x410ef0
call ebx
test eax, eax
je 0x403c8e
push 0x410eb4
push eax
call edi
mov esi, eax
test esi, esi
je 0x403c8e
mov edi, dword [sym.imp.KERNEL32.dll_VirtualProtect]
lea eax, [esp + 0xc]
push eax
push 0x40
push 8
push esi
call edi
test eax, eax
je 0x403c8e
mov ecx, 4
lea edx, [esp + 0xc]
push edx
mov byte [esi], 0xb8
mov dword [esi + 1], 0x402d70
mov byte [esi + 5], 0xc2
mov word [esi + 6], cx
mov eax, dword [esp + 0x10]
push eax
push 8
push esi
call edi
pop edi
pop esi
pop ebx
pop ecx
ret
Function at 0x402be0
Capabilities:
Terminate process

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
sub esp, 0xa8
push esi
push edi
mov eax, ebx
call fcn.00402b60
mov eax, 0xfd6
mov dword [esp + 0x3c], eax
mov dword [esp + 0x68], eax
xor eax, eax
mov dword [esp + 0x40], eax
push 0x40
xor esi, esi
mov dword [esp + 0x48], eax
mov dword [esp + 0x4c], eax
mov dword [esp + 0x50], eax
mov dword [esp + 0x54], eax
mov dword [esp + 0x58], eax
mov dword [esp + 0x5c], eax
mov dword [esp + 0x60], eax
mov dword [esp + 0x64], eax
mov dword [esp + 0x68], eax
lea eax, [esp + 0x74]
push esi
push eax
mov dword [esp + 0x44], 0x554d7a63
mov dword [esp + 0x4c], 0x28
call fcn.00405360
add esp, 0xc
lea edi, [esp + 0x38]
mov dword [esp + 0x70], 0x40
call fcn.00403b80
xor eax, eax
mov ecx, edi
mov dword [ebx + 0x50438], ecx
mov dword [esp + 0x14], esi
mov dword [esp + 0x18], eax
mov dword [esp + 0x1c], eax
call dword [sym.imp.KERNEL32.dll_GetCurrentThreadId]
mov edx, dword [ebp + 8]
mov dword [esp + 0x14], eax
mov eax, dword [0x41411c]
mov dword [esp + 0x18], edx
mov dword [esp + 0x24], ebx
mov dword [esp + 0x28], 0x41411c
mov dword [esp + 0x2c], eax
mov dword [esp + 0x30], esi
mov dword [esp + 0x34], esi
cmp eax, 0x41411c
je 0x402cbf
mov ecx, dword [eax + 0x10]
lea ecx, [ecx + ecx*2]
lea edx, [eax + ecx*4 + 0x14]
add eax, 0x14
mov dword [esp + 0x30], edx
mov dword [esp + 0x34], eax
lea ecx, [esp + 0xc]
push ecx
lea edx, [esp + 0x18]
push edx
lea eax, [esp + 0x2c]
lea edi, [ebx + 0x2fffa]
mov dword [esp + 0x18], esi
push edi
mov dword [esp + 0x18], 0x402e00
mov dword [esp + 0x1c], eax
mov dword [esp + 0x14], esi
call dword [sym.imp.KERNEL32.dll_GetCurrentProcessId]
mov dword [esp + 0x2c], eax
call dword [sym.imp.KERNEL32.dll_GetCurrentProcess]
mov ecx, dword [esp + 0x2c]
mov edx, ecx
lea esi, [esp + 0x14]
mov ecx, eax
call fcn.004030a0
add esp, 0xc
test eax, eax
jne 0x402d16
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp dword [esp + 8], 0
jne 0x402d60
cmp dword [ebx + 0x50430], 0
je 0x402d51
push edi
lea eax, [ebx + 0x4001e]
push eax
lea esi, [ebx + 0x40226]
push 0x8103
push esi
call fcn.00404ff3
mov ecx, dword [ebx + 0x50430]
mov edx, dword [ecx]
mov eax, dword [edx + 8]
add esp, 0x10
push esi
push edi
call eax
push 1
call dword [sym.imp.KERNEL32.dll_GetCurrentProcess]
push eax
call dword [sym.imp.KERNEL32.dll_TerminateProcess]
pop edi
pop esi
mov esp, ebp
pop ebp
ret 4

Function at 0x403030
Capabilities:
Create directory

Disassembly:
mov eax, 0x414dd8
lea edx, [eax + 2]
jmp 0x403040
mov cx, word [eax]
add eax, 2
test cx, cx
jne 0x403040
sub eax, edx
sar eax, 1
je 0x40307a
cmp word [eax*2 + 0x414dd6], 0x5c
je 0x40307a
cmp eax, 0x7fff
je 0x40307a
mov ecx, 0x5c
xor edx, edx
mov word [eax*2 + 0x414dd8], cx
mov word [eax*2 + 0x414dda], dx
mov eax, dword [esp + 4]
push eax
push 0x7fff
push 0x414dd8
call fcn.00405011
add esp, 0xc
push 0
push 0x414dd8
call dword [sym.imp.KERNEL32.dll_CreateDirectoryW]
ret
Function at 0x4034c0
Capabilities:
Get token membership

Disassembly:
push 0xffffffffffffffff
push 0x40e4b8
mov eax, dword fs:[0]
push eax
sub esp, 0x24
push ebx
push esi
push edi
mov eax, dword [0x413040]
xor eax, esp
push eax
lea eax, [esp + 0x34]
mov dword fs:[0], eax
xor edi, edi
mov dword [esp + 0x20], 0x410c90
mov dword [esp + 0x24], edi
mov dword [esp + 0x28], edi
mov dword [esp + 0x2c], edi
lea eax, [esp + 0x18]
push eax
mov dword [esp + 0x40], edi
mov edx, dword [ecx + 4]
push 2
push edx
mov dword [esp + 0x28], 0xb4
call dword [sym.imp.ADVAPI32.dll_DuplicateToken]
test eax, eax
jne 0x403521
xor bl, bl
jmp 0x403538
mov eax, dword [esp + 0x20]
mov edx, dword [eax + 4]
lea ecx, [esp + 0x20]
call edx
mov eax, dword [esp + 0x18]
mov dword [esp + 0x24], eax
mov bl, 1
call fcn.004041a0
test bl, bl
jne 0x403553
lea ecx, [esp + 0x1c]
push ecx
push eax
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
call fcn.00403610
mov eax, dword [esp + 0x44]
mov ecx, dword [esp + 0x24]
lea edx, [esp + 0x1c]
push edx
add eax, 4
push eax
push ecx
xor bl, bl
mov dword [esp + 0x24], 0xb8
call dword [sym.imp.ADVAPI32.dll_CheckTokenMembership]
test eax, eax
je 0x403587
cmp dword [esp + 0x1c], edi
mov byte [esp + 0x17], 1
setne bl
jmp 0x40358c
mov byte [esp + 0x17], 0
call fcn.004041a0
cmp byte [esp + 0x17], 0
jne 0x4035aa
lea edx, [esp + 0x18]
push edx
push eax
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
call fcn.00403610
mov ecx, dword [esp + 0x28]
xor eax, eax
test bl, bl
setne al
mov dword [esp + 0x20], 0x410c90
mov esi, eax
mov eax, dword [esp + 0x24]
cmp ecx, edi
je 0x4035db
cmp eax, edi
je 0x4035d7
push ecx
push eax
call dword [sym.imp.USERENV.dll_UnloadUserProfile]
mov eax, dword [esp + 0x24]
mov dword [esp + 0x28], edi
cmp eax, edi
je 0x4035ea
push eax
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov dword [esp + 0x24], edi
mov ecx, dword [esp + 0x2c]
push ecx
call fcn.004041a4
add esp, 4
mov eax, esi
mov ecx, dword [esp + 0x34]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
add esp, 0x30
ret

Function at 0x403a20
Capabilities:
Extract resource via kernel32 functions

Disassembly:
push ebp
push esi
mov esi, eax
shr eax, 4
inc eax
push ecx
movzx edx, ax
push edx
push 6
push edi
and esi, 0xf
call dword [sym.imp.KERNEL32.dll_FindResourceExW]
xor ebp, ebp
cmp eax, ebp
je 0x403a7b
push eax
push edi
call dword [sym.imp.KERNEL32.dll_LoadResource]
cmp eax, ebp
je 0x403a7b
push eax
call dword [sym.imp.KERNEL32.dll_LockResource]
cmp eax, ebp
je 0x403a7b
xor edx, edx
jmp 0x403a60
movzx ecx, word [eax]
add eax, 2
cmp cx, bp
je 0x403a75
movzx ecx, cx
cmp edx, esi
je 0x403a85
lea eax, [eax + ecx*2]
inc edx
cmp edx, 0x10
jb 0x403a60
pop esi
mov dword [ebx + 4], ebp
mov dword [ebx], ebp
mov eax, ebx
pop ebp
ret
pop esi
mov dword [ebx], eax
mov dword [ebx + 4], ecx
mov eax, ebx
pop ebp
ret
Function at 0x403b80
Capabilities:
Get memory capacity

Disassembly:
push ebx
mov eax, 0xfd6
mov dword [edi + 4], eax
mov dword [edi + 0x30], eax
xor eax, eax
mov dword [edi + 0xc], eax
mov dword [edi + 0x10], eax
push esi
lea esi, [edi + 8]
mov dword [esi + 0xc], eax
mov dword [esi + 0x10], eax
mov dword [esi + 0x14], eax
mov dword [esi + 0x18], eax
mov dword [esi + 0x1c], eax
push 0x40
mov dword [esi + 0x20], eax
push eax
lea ebx, [edi + 0x38]
mov dword [esi + 0x24], eax
push ebx
mov dword [esi], 0x28
call fcn.00405360
add esp, 0xc
push 0x28
push esi
mov dword [ebx], 0x40
call dword [sym.imp.KERNEL32.dll_GetCurrentProcess]
push eax
call sub.PSAPI.DLL_GetProcessMemoryInfo
mov esi, dword [sym.imp.KERNEL32.dll_GetLastError]
test eax, eax
je 0x403bea
mov dword [edi + 4], 0
jmp 0x403bef
call esi
mov dword [edi + 4], eax
push ebx
call dword [sym.imp.KERNEL32.dll_GlobalMemoryStatusEx]
test eax, eax
je 0x403c04
pop esi
mov dword [edi + 0x30], 0
pop ebx
ret
call esi
pop esi
mov dword [edi + 0x30], eax
pop ebx
ret

Function at 0x4041af
Capabilities:
Terminate process

Disassembly:
cmp ecx, dword [0x413040]
jne 0x4041b9
repz ret
jmp fcn.00405ac3
Function at 0x40a80b
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.00405c3b
and dword [ebp - 4], 0
cmp dword [0x414ce0], 0
mov ebx, eax
jne 0x40a8bc
push str.USER32.DLL
call dword [sym.imp.KERNEL32.dll_LoadLibraryA]
mov edi, eax
test edi, edi
je 0x40a96d
mov esi, dword [sym.imp.KERNEL32.dll_GetProcAddress]
push str.MessageBoxA
push edi
call esi
test eax, eax
je 0x40a96d
push eax
call fcn.00405bc9
mov dword [esp], str.GetActiveWindow
push edi
mov dword [0x414ce0], eax
call esi
push eax
call fcn.00405bc9
mov dword [esp], str.GetLastActivePopup
push edi
mov dword [0x414ce4], eax
call esi
push eax
call fcn.00405bc9
mov dword [esp], str.GetUserObjectInformationA
push edi
mov dword [0x414ce8], eax
call esi
push eax
call fcn.00405bc9
pop ecx
mov dword [0x414cf0], eax
test eax, eax
je 0x40a8bc
push str.GetProcessWindowStation
push edi
call esi
push eax
call fcn.00405bc9
pop ecx
mov dword [0x414cec], eax
mov eax, dword [0x414cec]
cmp eax, ebx
je 0x40a914
cmp dword [0x414cf0], ebx
je 0x40a914
push eax
call fcn.00405c44
push dword [0x414cf0]
mov esi, eax
call fcn.00405c44
pop ecx
pop ecx
mov edi, eax
test esi, esi
je 0x40a914
test edi, edi
je 0x40a914
call esi
test eax, eax
je 0x40a90b
lea ecx, [ebp - 8]
push ecx
push 0xc
lea ecx, [ebp - 0x14]
push ecx
push 1
push eax
call edi
test eax, eax
je 0x40a90b
test byte [ebp - 0xc], 1
jne 0x40a914
or dword [ebp + 0x10], 0x200000
jmp 0x40a94d
mov eax, dword [0x414ce4]
cmp eax, ebx
je 0x40a94d
push eax
call fcn.00405c44
pop ecx
test eax, eax
je 0x40a94d
call eax
mov dword [ebp - 4], eax
test eax, eax
je 0x40a94d
mov eax, dword [0x414ce8]
cmp eax, ebx
je 0x40a94d
push eax
call fcn.00405c44
pop ecx
test eax, eax
je 0x40a94d
push dword [ebp - 4]
call eax
mov dword [ebp - 4], eax
push dword [0x414ce0]
call fcn.00405c44
pop ecx
test eax, eax
je 0x40a96d
push dword [ebp + 0x10]
push dword [ebp + 0xc]
push dword [ebp + 8]
push dword [ebp - 4]
call eax
jmp 0x40a96f
xor eax, eax
pop edi
pop esi
pop ebx
leave
ret
Function at 0x10001240
Capabilities:
Create thread

Disassembly:
cmp dword [esp + 8], 1
jne 0x1000125e
push 0
push 0
push dword [esp + 0xc]
push section..text
push 0
push 0
call dword [sym.imp.KERNEL32.dll_CreateThread]
mov eax, 1
ret 0xc
Function at 0x10037370
Capabilities:
Encode data using xor
Hash data with crc32

Disassembly:
push ebp
mov ebp, esp
push ebx
mov ebx, dword [ebp + 8]
push esi
mov esi, dword [ebp + 0xc]
push edi
mov eax, dword [ebx]
mov edi, dword [ebp + 0x10]
cmp edi, 7
ja case.default.0x10037386
jmp dword [edi*4 + 0x1003751c]
mov ecx, esi
and ecx, 3
sub edi, ecx
sub ecx, 1
je 0x100373c9
sub ecx, 1
je 0x100373b6
sub ecx, 1
jne 0x100373dc
movzx edx, byte [esi]
movzx ecx, al
xor edx, ecx
shr eax, 8
xor eax, dword [edx*4 + 0x100c91e0]
inc esi
movzx edx, byte [esi]
movzx ecx, al
xor edx, ecx
shr eax, 8
xor eax, dword [edx*4 + 0x100c91e0]
inc esi
movzx edx, byte [esi]
movzx ecx, al
xor edx, ecx
shr eax, 8
xor eax, dword [edx*4 + 0x100c91e0]
inc esi
mov edx, edi
sar edx, 3
test edx, edx
je 0x1003745e
xor eax, dword [esi]
movzx ecx, al
shr eax, 8
xor eax, dword [ecx*4 + 0x100c91e0]
movzx ecx, al
shr eax, 8
xor eax, dword [ecx*4 + 0x100c91e0]
movzx ecx, al
shr eax, 8
xor eax, dword [ecx*4 + 0x100c91e0]
mov ecx, eax
movzx eax, cl
shr ecx, 8
mov eax, dword [eax*4 + 0x100c91e0]
xor eax, dword [esi + 4]
add esi, 8
xor eax, ecx
movzx ecx, al
shr eax, 8
xor eax, dword [ecx*4 + 0x100c91e0]
movzx ecx, al
shr eax, 8
xor eax, dword [ecx*4 + 0x100c91e0]
movzx ecx, al
shr eax, 8
xor eax, dword [ecx*4 + 0x100c91e0]
movzx ecx, al
shr eax, 8
xor eax, dword [ecx*4 + 0x100c91e0]
sub edx, 1
jne 0x100373e5
and edi, 7
jmp 0x10037381
movzx edx, byte [esi]
movzx ecx, al
xor edx, ecx
shr eax, 8
xor eax, dword [edx*4 + 0x100c91e0]
inc esi
movzx edx, byte [esi]
movzx ecx, al
xor edx, ecx
shr eax, 8
xor eax, dword [edx*4 + 0x100c91e0]
inc esi
movzx edx, byte [esi]
movzx ecx, al
xor edx, ecx
shr eax, 8
xor eax, dword [edx*4 + 0x100c91e0]
inc esi
xor eax, dword [esi]
movzx ecx, al
shr eax, 8
pop edi
pop esi
xor eax, dword [ecx*4 + 0x100c91e0]
movzx ecx, al
shr eax, 8
xor eax, dword [ecx*4 + 0x100c91e0]
movzx ecx, al
shr eax, 8
xor eax, dword [ecx*4 + 0x100c91e0]
movzx ecx, al
shr eax, 8
xor eax, dword [ecx*4 + 0x100c91e0]
mov dword [ebx], eax
pop ebx
pop ebp
ret
movzx edx, byte [esi]
movzx ecx, al
xor edx, ecx
shr eax, 8
xor eax, dword [edx*4 + 0x100c91e0]
inc esi
movzx edx, byte [esi]
movzx ecx, al
xor edx, ecx
shr eax, 8
xor eax, dword [edx*4 + 0x100c91e0]
inc esi
movzx edx, byte [esi]
movzx ecx, al
xor edx, ecx
shr eax, 8
xor eax, dword [edx*4 + 0x100c91e0]
pop edi
pop esi
mov dword [ebx], eax
pop ebx
pop ebp
ret