joyce8/EMBER2024-capa huggingface dataset:
Function at 0x10001960
Capabilities:
Enumerate threads

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x24
mov eax, dword [0x10042040]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
push esi
push edi
xor ebx, ebx
mov esi, ecx
push ebx
push 4
call dword [sym.imp.KERNEL32.dll_CreateToolhelp32Snapshot]
mov edi, eax
mov dword [ebp - 0x24], edi
cmp edi, 0xffffffff
je 0x10001ab8
lea eax, [ebp - 0x20]
mov dword [ebp - 0x20], 0x1c
xorps xmm0, xmm0
push eax
push edi
movlpd qword [ebp - 0x1c], xmm0
movlpd qword [ebp - 0x14], xmm0
movlpd qword [ebp - 0xc], xmm0
call dword [sym.imp.KERNEL32.dll_Thread32First]
test eax, eax
je 0x10001ab1
mov ebx, 1
nop
cmp dword [ebp - 0x20], 0x10
jb 0x10001a44
call dword [sym.imp.KERNEL32.dll_GetCurrentProcessId]
cmp dword [ebp - 0x14], eax
jne 0x10001a44
call dword [sym.imp.KERNEL32.dll_GetCurrentThreadId]
cmp dword [ebp - 0x18], eax
je 0x10001a44
mov edx, dword [esi]
test edx, edx
jne 0x10001a09
push 0x200
push 8
push dword [0x10048268]
mov dword [esi + 4], 0x80
call dword [sym.imp.KERNEL32.dll_HeapAlloc]
mov edx, eax
mov dword [esi], edx
test edx, edx
je 0x10001a69
lea edi, [esi + 8]
jmp 0x10001a37
mov eax, dword [esi + 4]
lea edi, [esi + 8]
cmp dword [edi], eax
jb 0x10001a37
add eax, eax
mov dword [esi + 4], eax
shl eax, 2
push eax
push edx
push 8
push dword [0x10048268]
call dword [sym.imp.KERNEL32.dll_HeapReAlloc]
mov edx, eax
test edx, edx
je 0x10001acb
mov dword [esi], edx
mov ecx, dword [edi]
mov eax, dword [ebp - 0x18]
mov dword [edx + ecx*4], eax
inc dword [edi]
mov edi, dword [ebp - 0x24]
lea eax, [ebp - 0x20]
mov dword [ebp - 0x20], 0x1c
push eax
push edi
call dword [sym.imp.KERNEL32.dll_Thread32Next]
test eax, eax
jne 0x100019c0
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0x12
je 0x10001ab1
mov eax, dword [esi]
xor ebx, ebx
test eax, eax
je 0x10001ab1
push eax
push ebx
push dword [0x10048268]
call dword [sym.imp.KERNEL32.dll_HeapSize]
mov ecx, eax
cmp ecx, 0xffffffff
je 0x10001a9b
test ecx, ecx
je 0x10001a9b
mov eax, dword [esi]
nop dword [eax]
mov byte [eax], 0
lea eax, [eax + 1]
sub ecx, 1
jne 0x10001a90
push dword [esi]
push 0
push dword [0x10048268]
call dword [sym.imp.KERNEL32.dll_HeapFree]
mov dword [esi], 0
push edi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov ecx, dword [ebp - 4]
mov eax, ebx
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.100151d3
mov esp, ebp
pop ebp
ret
mov edi, dword [ebp - 0x24]
jmp 0x10001a69
Function at 0x10001ad0
Capabilities:
Suspend thread

Disassembly:
push ebp
mov ebp, esp
push ecx
push edi
mov edi, ecx
mov dword [ebp - 4], edx
mov dword [edi], 0
mov dword [edi + 4], 0
mov dword [edi + 8], 0
call fcn.10001960
test eax, eax
jne 0x10001b01
mov eax, 9
pop edi
mov esp, ebp
pop ebp
ret
cmp dword [edi], 0
je 0x10001b52
push esi
xor esi, esi
cmp dword [edi + 8], esi
jbe 0x10001b4a
push ebx
nop
mov eax, dword [edi]
push dword [eax + esi*4]
push 0
push 0x5a
call dword [sym.imp.KERNEL32.dll_OpenThread]
mov ebx, eax
test ebx, ebx
je 0x10001b43
push ebx
call dword [sym.imp.KERNEL32.dll_SuspendThread]
push dword [ebp + 8]
mov edx, dword [ebp - 4]
mov ecx, ebx
call fcn.100017d0
add esp, 4
push ebx
call dword [sym.imp.KERNEL32.dll_CloseHandle]
inc esi
cmp esi, dword [edi + 8]
jb 0x10001b10
pop ebx
pop esi
xor eax, eax
pop edi
mov esp, ebp
pop ebp
ret
xor eax, eax
pop edi
mov esp, ebp
pop ebp
ret

Function at 0x10001b60
Capabilities:
Resume thread

Disassembly:
push edi
mov edi, ecx
cmp dword [edi], 0
je 0x10001bd2
push esi
xor esi, esi
cmp dword [edi + 8], esi
jbe 0x10001b9b
push ebx
mov eax, dword [edi]
push dword [eax + esi*4]
push 0
push 0x5a
call dword [sym.imp.KERNEL32.dll_OpenThread]
mov ebx, eax
test ebx, ebx
je 0x10001b94
push ebx
call dword [sym.imp.KERNEL32.dll_ResumeThread]
push ebx
call dword [sym.imp.KERNEL32.dll_CloseHandle]
inc esi
cmp esi, dword [edi + 8]
jb 0x10001b71
pop ebx
push dword [edi]
push 0
push dword [0x10048268]
call dword [sym.imp.KERNEL32.dll_HeapSize]
pop esi
cmp eax, 0xffffffff
je 0x10001bc2
test eax, eax
je 0x10001bc2
mov ecx, dword [edi]
mov byte [ecx], 0
lea ecx, [ecx + 1]
sub eax, 1
jne 0x10001bb7
push dword [edi]
push 0
push dword [0x10048268]
call dword [sym.imp.KERNEL32.dll_HeapFree]
pop edi
ret
Function at 0x10001be0
Capabilities:
Allocate or change rwx memory

Disassembly:
push ebp
mov ebp, esp
sub esp, 0xc
mov eax, dword [0x10042040]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
push esi
imul esi, ecx, 0x2c
mov ebx, edx
mov dword [ebp - 8], 0
push edi
add esi, dword [0x1004a474]
mov eax, dword [esi]
mov cl, byte [esi + 0x14]
and cl, 1
lea edi, [eax - 5]
cmove edi, eax
movzx eax, cl
lea ecx, [ebp - 8]
push ecx
push 0x40
lea eax, [eax*2 + 5]
push eax
push edi
mov dword [ebp - 0xc], eax
call dword [sym.imp.KERNEL32.dll_VirtualProtect]
test eax, eax
jne 0x10001c48
pop edi
pop esi
mov eax, 0xa
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.100151d3
mov esp, ebp
pop ebp
ret
test ebx, ebx
je 0x10001c69
mov byte [edi], 0xe9
mov eax, dword [esi + 4]
sub eax, edi
sub eax, 5
mov dword [edi + 1], eax
test byte [esi + 0x14], 1
je 0x10001c8a
mov eax, dword [esi]
mov word [eax], 0xf9eb
jmp 0x10001c8a
mov eax, dword [esi + 0xc]
test byte [esi + 0x14], 1
mov dword [edi], eax
je 0x10001c84
mov ax, word [esi + 0x10]
mov word [edi + 4], ax
mov al, byte [esi + 0x12]
mov byte [edi + 6], al
jmp 0x10001c8a
mov al, byte [esi + 0x10]
mov byte [edi + 4], al
lea eax, [ebp - 8]
push eax
push dword [ebp - 8]
push dword [ebp - 0xc]
push edi
call dword [sym.imp.KERNEL32.dll_VirtualProtect]
push dword [ebp - 0xc]
push edi
call dword [sym.imp.KERNEL32.dll_GetCurrentProcess]
push eax
call dword [sym.imp.KERNEL32.dll_FlushInstructionCache]
mov cl, bl
xor eax, eax
add cl, cl
shl bl, 2
xor cl, byte [esi + 0x14]
and cl, 2
xor cl, byte [esi + 0x14]
xor bl, cl
and bl, 4
xor bl, cl
mov ecx, dword [ebp - 4]
pop edi
mov byte [esi + 0x14], bl
xor ecx, ebp
pop esi
pop ebx
call fcn.100151d3
mov esp, ebp
pop ebp
ret
Function at 0x10002b50
Capabilities:
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
sub esp, 0xc
mov eax, dword [0x10042040]
xor eax, ebp
mov dword [ebp - 4], eax
mov eax, dword [ebp + 8]
push esi
lea esi, [ebp - 8]
mov dword [ebp - 0xc], 1
push esi
push eax
lea eax, [ebp - 0xc]
mov dword [ebp - 8], 0x190
push eax
push 2
push edx
push ecx
push 0x80000002
call dword [sym.imp.ADVAPI32.dll_RegGetValueW]
mov ecx, dword [ebp - 4]
xor ecx, ebp
pop esi
call fcn.100151d3
mov esp, ebp
pop ebp
ret

Function at 0x10002ba0
Capabilities:
Set registry value

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x10
mov eax, dword [0x10042040]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
mov ebx, dword [ebp + 8]
lea eax, [ebp - 0xc]
push esi
push edi
mov edi, dword [ebp + 0xc]
mov esi, ecx
push eax
push 0x20206
push 0
push esi
push edi
mov dword [ebp - 0x10], edx
mov dword [ebp - 0xc], 0
mov dword [ebp - 8], 0
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
test eax, eax
je 0x10002c04
lea eax, [ebp - 8]
push eax
lea eax, [ebp - 0xc]
push eax
push 0
push 0x20206
push 0
push 0
push 0
push esi
push edi
call dword [sym.imp.ADVAPI32.dll_RegCreateKeyExW]
test eax, eax
jne 0x10002c45
mov ecx, ebx
lea edx, [ecx + 2]
nop dword [eax]
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x10002c10
sub ecx, edx
sar ecx, 1
lea eax, [ecx*2 + 2]
push eax
push ebx
push 1
push 0
push dword [ebp - 0x10]
push dword [ebp - 0xc]
call dword [sym.imp.ADVAPI32.dll_RegSetValueExW]
push dword [ebp - 0xc]
mov esi, eax
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov eax, esi
mov ecx, dword [ebp - 4]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.100151d3
mov esp, ebp
pop ebp
ret

Function at 0x10002c60
Capabilities:
Read .ini file

Disassembly:
push ebp
mov ebp, esp
push esi
mov esi, ecx
cmp byte [esi + 0x208], 0
jne 0x10002c85
push str.Ini_is_not_available__r_n_r_n
push 1
call fcn.10002740
add esp, 8
xor eax, eax
pop esi
pop ebp
ret 0xc
push edi
push 0
call dword [sym.imp.KERNEL32.dll_SetLastError]
call fcn.1002216a
push esi
mov esi, dword [ebp + 0x10]
push esi
push dword [ebp + 0xc]
mov dword [eax], 0
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.dll_GetPrivateProfileIntW]
mov edi, eax
call dword [sym.imp.KERNEL32.dll_GetLastError]
test eax, eax
jne 0x10002cc8
call fcn.1002216a
cmp dword [eax], 0
jne 0x10002cc8
mov eax, edi
pop edi
pop esi
pop ebp
ret 0xc
push str.GetPrivateProfileInt_Failed__r_n_r_n
push 1
call fcn.10002740
add esp, 8
mov eax, esi
pop edi
pop esi
pop ebp
ret 0xc
Function at 0x1000dbc0
Capabilities:
Query environment variable

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x28
mov eax, dword [0x10042040]
xor eax, ebp
mov dword [ebp - 8], eax
push ebx
push esi
push edi
push 0x104
mov ebx, edx
mov edi, ecx
push ebx
push str.APPDATA
call dword [sym.imp.KERNEL32.dll_GetEnvironmentVariableW]
xor ecx, ecx
cmp ecx, eax
sbb esi, esi
and esi, 0x7ff8ffa9
add esi, 0x80070057
test eax, eax
je 0x1000dc1b
push str.MicrosoftWindowsStart_MenuPrograms_
push 0x104
push ebx
call fcn.1001cea2
add esp, 0xc
neg eax
sbb esi, esi
and esi, 0x80070057
test esi, esi
js 0x1000dca9
mov ecx, dword [edi + 0x10]
mov eax, 0x7ffffffe
sub eax, ecx
cmp eax, 4
jb 0x1000dcbc
cmp dword [edi + 0x14], 7
jbe 0x1000dc3e
mov edi, dword [edi]
push 4
push ecx
push ecx
push edi
push ecx
push dword [ebp - 0x24]
lea ecx, [ebp - 0x20]
call fcn.10013e00
cmp dword [ebp - 0xc], 7
lea eax, [ebp - 0x20]
cmova eax, dword [ebp - 0x20]
push eax
push 0x104
push ebx
call fcn.1001cea2
mov ecx, dword [ebp - 0xc]
add esp, 0xc
neg eax
sbb esi, esi
and esi, 0x80070057
cmp ecx, 7
jbe 0x1000dca9
mov edx, dword [ebp - 0x20]
lea ecx, [ecx*2 + 2]
mov eax, edx
cmp ecx, 0x1000
jb 0x1000dc9f
mov edx, dword [eax - 4]
add ecx, 0x23
sub eax, edx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x1000dcc1
push ecx
push edx
call fcn.10015330
add esp, 8
mov ecx, dword [ebp - 8]
mov eax, esi
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.100151d3
mov esp, ebp
pop ebp
ret
call fcn.10002500
call fcn.10018fff
int3
Function at 0x10012da0
Capabilities:
Access peb ldr_data
Get ntdll base address

Disassembly:
push ebx
mov ebx, esp
sub esp, 8
and esp, 0xfffffff8
add esp, 4
push ebp
mov ebp, dword [ebx + 4]
mov dword [esp + 4], ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x1002f7b7
mov eax, dword fs:[0]
push eax
push ebx
sub esp, 0x40
mov eax, dword [0x10042040]
xor eax, ebp
mov dword [ebp - 0x14], eax
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov edi, ecx
mov dword [ebp - 0x30], edi
mov dword [ebp - 0x34], edi
mov dword [ebp - 0x38], edi
mov dword [edi], 0
mov dword [edi + 4], 0
mov dword [edi + 8], 0
mov dword [ebp - 4], 0
mov dword [edi + 0xc], 0
mov dword [edi + 0x10], 0
mov dword [edi + 0x14], 0
xorps xmm0, xmm0
xor eax, eax
movups xmmword [edi + 0x18], xmm0
mov dword [edi + 0x28], 0
mov dword [edi + 0x2c], 7
mov word [edi + 0x18], ax
movups xmmword [edi + 0x30], xmm0
mov dword [edi + 0x40], eax
mov dword [edi + 0x44], 7
mov word [edi + 0x30], ax
mov byte [edi + 0x48], al
movups xmmword [edi + 0x4c], xmm0
mov dword [edi + 0x5c], eax
mov dword [edi + 0x60], 7
mov word [edi + 0x4c], ax
movups xmmword [edi + 0x64], xmm0
mov dword [edi + 0x74], eax
mov dword [edi + 0x78], 7
mov word [edi + 0x64], ax
lea ecx, [edi + 0x7c]
mov byte [ebp - 4], 5
push str.Default
call fcn.1000d2c0
mov byte [ebp - 4], 6
lea ecx, [ebp - 0x50]
push 0x1003626c
mov dword [edi + 0x98], 0
mov dword [edi + 0x9c], 0
mov dword [edi + 0xa0], 0
mov dword [edi + 0xa4], 5
mov dword [edi + 0xa8], 0
mov dword [edi + 0xac], 0
call fcn.1000d2c0
mov byte [ebp - 4], 7
lea ecx, [ebp - 0x2c]
push 2
mov dword [ebp - 0x2c], 0
mov dword [ebp - 0x28], 0
mov dword [ebp - 0x24], 0
call fcn.10013d70
lea eax, [ebp - 0x2c]
mov dword [ebp - 0x34], eax
mov esi, dword [ebp - 0x2c]
xorps xmm0, xmm0
movq qword [ebp - 0x20], xmm0
mov edi, 2
mov dword [ebp - 0x18], 0
mov dword [ebp - 0x20], esi
mov dword [ebp - 0x1c], esi
mov dword [ebp - 0x18], eax
mov byte [ebp - 4], 9
lea eax, [ebp - 0x50]
mov ecx, esi
push eax
call fcn.10013290
add esi, 0x18
mov dword [ebp - 0x1c], esi
sub edi, 1
jne 0x10012f18
push ecx
mov edx, esi
mov ecx, esi
call fcn.1000d4f0
mov edi, dword [ebp - 0x30]
lea eax, [ebp - 0x2c]
add esp, 4
mov dword [ebp - 0x28], esi
cmp edi, eax
je 0x10012f75
mov ecx, edi
call fcn.1000d3f0
mov eax, dword [ebp - 0x2c]
mov dword [edi], eax
mov eax, dword [ebp - 0x28]
mov dword [edi + 4], eax
mov eax, dword [ebp - 0x24]
mov dword [edi + 8], eax
mov dword [ebp - 0x2c], 0
mov dword [ebp - 0x28], 0
mov dword [ebp - 0x24], 0
lea ecx, [ebp - 0x2c]
call fcn.1000d3f0
mov ecx, dword [ebp - 0x3c]
cmp ecx, 7
jbe 0x10012fb3
mov edx, dword [ebp - 0x50]
lea ecx, [ecx*2 + 2]
mov eax, edx
cmp ecx, 0x1000
jb 0x10012fa9
mov edx, dword [eax - 4]
add ecx, 0x23
sub eax, edx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x10012fd5
push ecx
push edx
call fcn.10015330
add esp, 8
mov eax, edi
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
mov ecx, dword [ebp - 0x14]
xor ecx, ebp
call fcn.100151d3
mov esp, ebp
pop ebp
mov esp, ebx
pop ebx
ret 4
call fcn.10018fff
int3
Function at 0x10022f81
Capabilities:
Parse pe header

Disassembly:
push 0
call dword [sym.imp.KERNEL32.dll_GetModuleHandleW]
test eax, eax
je 0x10022fc0
mov ecx, 0x5a4d
cmp word [eax], cx
jne 0x10022fc0
mov ecx, dword [eax + 0x3c]
add ecx, eax
cmp dword [ecx], 0x4550
jne 0x10022fc0
mov eax, 0x10b
cmp word [ecx + 0x18], ax
jne 0x10022fc0
cmp dword [ecx + 0x74], 0xe
jbe 0x10022fc0
cmp dword [ecx + 0xe8], 0
setne al
ret
xor al, al
ret
Function at 0x10027159
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 0x100271f6
push ebx
push esi
call fcn.10027122
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.100270b6
add esp, 0x24
mov dword [ebp - 4], eax
test eax, eax
jne 0x100271a3
push esi
call dword [sym.imp.KERNEL32.dll_FreeEnvironmentStringsW]
xor eax, eax
jmp 0x100271f5
push edi
push eax
call fcn.10024427
mov edi, eax
pop ecx
push ebx
test edi, edi
jne 0x100271c3
call fcn.100243ed
pop ecx
push esi
call dword [sym.imp.KERNEL32.dll_FreeEnvironmentStringsW]
xor eax, eax
jmp 0x100271f4
push ebx
push dword [ebp - 4]
push edi
push dword [ebp - 8]
push esi
push ebx
push ebx
call fcn.100270b6
add esp, 0x20
test eax, eax
jne 0x100271e2
push edi
call fcn.100243ed
jmp 0x100271ea
push ebx
call fcn.100243ed
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 0x10027463
Capabilities:
Allocate thread local storage

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push esi
push 0x10033288
push 0x10033280
push str.FlsAlloc
push 0x1f
call fcn.1002737f
mov esi, eax
add esp, 0x10
test esi, esi
je 0x10027497
push dword [ebp + 8]
mov ecx, esi
call dword [0x10030218]
call esi
jmp 0x1002749d
call dword [sym.imp.KERNEL32.dll_TlsAlloc]
pop esi
pop ebp
ret 4

Function at 0x100274e1
Capabilities:
Get thread local storage value

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push esi
push 0x10033298
push 0x10033290
push str.FlsGetValue
push 0x21
call fcn.1002737f
mov esi, eax
add esp, 0x10
test esi, esi
je 0x10027518
push dword [ebp + 8]
mov ecx, esi
call dword [0x10030218]
call esi
pop esi
pop ebp
ret 4
pop esi
pop ebp
jmp dword [sym.imp.KERNEL32.dll_TlsGetValue]

Function at 0x10027520
Capabilities:
Set thread local storage value

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push esi
push 0x100332a0
push 0x10033298
push str.FlsSetValue
push 0x22
call fcn.1002737f
mov esi, eax
add esp, 0x10
test esi, esi
je 0x1002755a
push dword [ebp + 0xc]
mov ecx, esi
push dword [ebp + 8]
call dword [0x10030218]
call esi
pop esi
pop ebp
ret 8
pop esi
pop ebp
jmp dword [sym.imp.KERNEL32.dll_TlsSetValue]
Function at 0x1002e530
Capabilities:
Parse pe header

Disassembly:
push ebp
mov ebp, esp
mov eax, dword [ebp + 8]
mov ecx, 0x5a4d
cmp word [eax], cx
jne 0x1002e55d
mov ecx, dword [eax + 0x3c]
add ecx, eax
cmp dword [ecx], 0x4550
jne 0x1002e55d
mov edx, 0x10b
xor eax, eax
cmp word [ecx + 0x18], dx
sete al
pop ebp
ret
xor eax, eax
pop ebp
ret

Function at 0x9b01bd
Capabilities:
Encrypt data using tea

Disassembly:
push ebp
mov ebp, esp
pushal
mov edi, dword [ebp + 8]
mov esi, dword [ebp + 0xc]
mov ebx, dword [edi]
mov ecx, dword [edi + 4]
imul eax, dword [ebp + 0x10], 0x9e3779b9
cmp dword [ebp + 0x10], 0
jbe 0x9b021d
mov edx, ebx
shl edx, 4
sub ecx, edx
mov edx, dword [esi + 8]
xor edx, ebx
sub ecx, edx
mov edx, ebx
shr edx, 5
xor edx, eax
sub ecx, edx
sub ecx, dword [esi + 0xc]
mov edx, ecx
shl edx, 4
sub ebx, edx
mov edx, dword [esi]
xor edx, ecx
sub ebx, edx
mov edx, ecx
shr edx, 5
xor edx, eax
sub ebx, edx
sub ebx, dword [esi + 4]
sub eax, 0x9e3779b9
dec dword [ebp + 0x10]
jmp 0x9b01d3
mov dword [edi], ebx
mov dword [edi + 4], ecx
popal
leave
ret 0xc
Function at 0x4017b4
Capabilities:
Allocate or change rwx memory

Disassembly:
push ebx
push ecx
push edx
push esi
push edi
enter 0x84, 0
sub ebp, 0x82
mov esi, eax
mov edx, dword [0x404080]
or dl, 1
imul edx, eax
mov eax, dword [0x404080]
sub eax, edx
mov ebx, esi
mov edx, eax
mov eax, 0x404084
call fcn.004016fd
xor eax, eax
mov dword [ebp + 0x7e], eax
lea eax, [ebp + 0x7e]
push eax
mov eax, esi
or al, 0x40
mov edi, 0x403432
push eax
sub edi, fcn.00402bdc
push edi
push fcn.00402bdc
call dword [sym.imp.KERNEL32.DLL_VirtualProtect]
cmp dword [ebp + 0x7e], 0
je 0x401830
mov eax, fcn.00402bdc
mov ebx, esi
mov edx, edi
call fcn.004016fd
mov edx, 0x1c000
mov eax, 0x404084
mov ebx, esi
call fcn.00402180
lea edx, [ebp - 2]
mov eax, esi
mov dword [ebp - 2], 1
call fcn.00401631
lea edx, [esi + 0x1c000]
add edx, esi
lea eax, [esi - 1]
lea ebx, [ebp - 2]
and eax, 0x404084
call fcn.00402bdc
lea esp, [ebp + 0x82]
pop ebp
pop edi
pop esi
pop edx
pop ecx
pop ebx
ret
Function at 0x402bdc
Capabilities:
Packed with generic packer

Disassembly:
dec esp
inc ebp
inc ebp
outsd dx, dword [esi]
inc ebp
mov dword [ebx], esi
jb 0x402c51
push esi
add al, 0x50
insb byte es:[edi], dx
mov byte [0xc7896345], al
push eax
or al, 4
jae 0x402c26
add byte [edx - 0x77], dh
or ebp, dword [esi + 0x7a]
jb 0x402c6e
push esi
pushal
mov dword [eax], 0x6050c8d7
push edx
inc dword [eax*2 + 0x64455046]
ror byte [ecx + 0x6c89c36e], 0x53
push ebx
mov dword [esi - 1], 0x458dc789
add byte [ebx + 0x53], dh
push esi
push eax
inc ecx
call 0x40b56b
inc ebp
inc ebp
jbe 0x402c12
jp 0x402ca0
mov dword [ecx + 0xe], eax
inc edi
jb 0x402c96
push esi
jbe 0x402c7c
add dh, ch
outsb dx, byte [esi]
outsb dx, byte fs:[esi]
imul edi, edi, 0xffffffde
imul ebx, eax, 0x563100c7
popal
ret
outsb dx, byte fs:[esi]
inc ebp
push edi
jb 0x402c9c
outsb dx, byte [esi]
popal
mov edx, 0x6e6e64
mov dword [eax], 0x89814560
push ebx
inc ebx
jbe 0x402cb8
jbe 0x402cde
add byte [ecx + 0x41], ch
push esi
mov dword [esi - 0x75], eax
add byte [ecx], dh
inc ebp
inc ebp
invalid
jb 0x402cc3
add bh, 0x6f
popal
insb byte es:[edi], dx
jp 0x402cd7
push ecx
insb byte es:[edi], dx
outsd dx, dword [esi]
inc ebp
shr eax, cl
add byte [ebp + 0x4cc77264], cl
bound edi, qword gs:[ecx + 0x6c]
jb 0x402cdf
dec eax
jne 0x402cfe
jb 0x402cf1
mov edx, 0x6e003145
inc ebp
xor dword [eax], eax
outsb dx, byte [esi]
invalid
je 0x402d28
outsb dx, byte [esi]
push ebx
invalid
outsb dx, byte [esi]
invalid
inc ebp
inc ebp
push edx
mov dword gs:[ebp + 0x45], esp
invalid
invalid
shl byte [edi + eax*8 + 0x63], 0xc7
inc esi
lea esi, [esi + 0x45]
je 0x402c85
dec dword [ecx - 0x40]
inc ebp
push esi
push eax
rol byte [ebp + 0x56], 0x50
lea eax, [ebp - 0x39]
inc ebp
jb 0x402d5b
invalid
insb byte es:[edi], dx
dec ebp
outsb dx, byte gs:[esi]
push eax
mov edi, 0x4f754550
pop esp
push esi
invalid
add byte fs:[esi - 0x39], al
inc esi
insb byte es:[edi], dx
outsb dx, byte [esi]
insb byte es:[edi], dx
jb 0x402d65
push esi
lea eax, [ebp + 0x56]
mov dword [ebp - 0x39], eax
add edx, edi
jb 0x402dce
inc ebp
mov dword [eax], 0xeb636a45
add byte [ebx + 0x45bf8945], al
pop ebp
add al, byte [eax]
add byte [eax - 1], bh
jae 0x402db1
mov edi, edi
invalid
mov dword [ebp], eax
push ecx
push esi
add al, 0xfa
push 0x30722a40
out dx, al
jne 0x402dbf
dec dword [eax + 0x3008a68]
mov byte [eax - 0x76], ch
add byte [ebx], al
outsb dx, byte [esi]
invalid
jmp [edi - 1]
Function at 0x402d04
Capabilities:
Get common file path
Set current directory

Disassembly:
push ebx
push esi
add esp, 0xfffffdf0
mov esi, edx
mov ebx, eax
test bl, bl
je 0x402d41
xor eax, eax
mov al, bl
add eax, 0x41
dec eax
mov byte [esp], al
mov byte [esp + 1], 0x3a
mov byte [esp + 2], 0
lea eax, [esp + 0x109]
push eax
push 0x105
call sub.kernel32.dll_GetCurrentDirectoryA
push esp
call sub.kernel32.dll_SetCurrentDirectoryA
lea eax, [esp + 4]
push eax
push 0x105
call sub.kernel32.dll_GetCurrentDirectoryA
test bl, bl
je 0x402d61
lea eax, [esp + 0x109]
push eax
call sub.kernel32.dll_SetCurrentDirectoryA
mov eax, esi
lea edx, [esp + 4]
mov ecx, 0x105
call fcn.00404f48
add esp, 0x210
pop esi
pop ebx
ret

Function at 0x402fdc
Capabilities:
Accept command line arguments

Disassembly:
push ebx
push esi
add esp, 0xfffffef4
mov ebx, edx
mov esi, eax
mov eax, ebx
call fcn.00404cd8
test esi, esi
jne 0x403013
push 0x105
lea eax, [esp + 8]
push eax
push 0
call sub.kernel32.dll_GetModuleFileNameA
mov ecx, eax
lea edx, [esp + 4]
mov eax, ebx
call fcn.00404dc8
jmp 0x403034
call sub.kernel32.dll_GetCommandLineA
mov dword [esp], eax
mov edx, ebx
mov eax, dword [esp]
call fcn.00402e78
mov dword [esp], eax
test esi, esi
je 0x403034
cmp dword [ebx], 0
je 0x403034
dec esi
jmp 0x40301b
add esp, 0x10c
pop esi
pop ebx
ret

Function at 0x403d34
Capabilities:
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffff4
movzx eax, word [0x4b1020]
mov dword [ebp - 8], eax
lea eax, [ebp - 4]
push eax
push 1
push 0
push 0x403dcc
push 0x80000002
call sub.advapi32.dll_RegOpenKeyExA
test eax, eax
jne 0x403dac
xor eax, eax
push ebp
push 0x403da5
push dword fs:[eax]
mov dword fs:[eax], esp
mov dword [ebp - 0xc], 4
lea eax, [ebp - 0xc]
push eax
lea eax, [ebp - 8]
push eax
push 0
push 0
push 0x403de8
mov eax, dword [ebp - 4]
push eax
call sub.advapi32.dll_RegQueryValueExA
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x403dac
mov eax, dword [ebp - 4]
push eax
call sub.advapi32.dll_RegCloseKey
ret
mov ax, word [0x4b1020]
and ax, 0xffc0
mov dx, word [ebp - 8]
and dx, 0x3f
or ax, dx
mov word [0x4b1020], ax
mov esp, ebp
pop ebp
ret

Function at 0x404ad0
Capabilities:
Write file on windows

Disassembly:
push ecx
cmp byte [0x4b804c], 0
je 0x404b31
cmp word [0x4b8220], 0xd7b2
jne 0x404af9
cmp dword [0x4b8228], 0
jbe 0x404af9
mov eax, 0x4b821c
call dword [0x4b8238]
push 0
lea eax, [esp + 4]
push eax
push 0x1e
push 0x4b1098
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 0x404b58
push 0xfffffffffffffff5
call sub.kernel32.dll_GetStdHandle
push eax
call sub.kernel32.dll_WriteFile
pop edx
ret
cmp byte [0x4b1030], 0
jne 0x404b4d
push 0
push 0x4b1090
push 0x4b1098
push 0
call sub.user32.dll_MessageBoxA
pop edx
ret
Function at 0x404c8c
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.00402acc
mov dword [eax], edi
mov edx, dword [ebp + 0x10]
mov dword [eax + 4], edx
mov byte [0x4b804d], 1
mov edx, dword [ebp + 8]
push edx
mov edx, dword [ebp + 0xc]
push edx
push eax
mov eax, 0x404c54
push eax
push esi
push ebx
call sub.kernel32.dll_CreateThread
pop edi
pop esi
pop ebx
pop ebp
ret 0xc