joyce8/EMBER2024-capa huggingface dataset:
Function at 0x431bf3
Capabilities:
Find taskbar

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
mov eax, dword [ebp + 8]
sub esp, 0x78
cmp dword [eax + 0x28], 2
push esi
push edi
jne 0x431d34
mov edi, dword [sym.imp.USER32.dll_GetWindowLongW]
push 0xfffffffffffffff0
push dword [eax + 4]
call edi
mov esi, eax
mov eax, dword [ebp + 8]
push 0xffffffffffffffec
push dword [eax + 4]
and esi, 0xff7fffff
or esi, 0x400000
call edi
xor edi, edi
push eax
push edi
push esi
lea eax, [esp + 0x18]
push eax
mov dword [esp + 0x1c], edi
mov dword [esp + 0x20], edi
mov dword [esp + 0x24], edi
mov dword [esp + 0x28], edi
call dword [sym.imp.USER32.dll_AdjustWindowRectEx]
mov eax, dword [esp + 0xc]
sub dword [ebx], eax
mov eax, dword [esp + 0x10]
sub dword [ebx + 4], eax
mov eax, dword [esp + 0x14]
sub dword [ebx + 8], eax
mov eax, dword [esp + 0x18]
sub dword [ebx + 0xc], eax
push edi
push 0x4787e0
call dword [sym.imp.USER32.dll_FindWindowW]
mov dword [esp + 8], eax
cmp eax, edi
je 0x431d34
mov esi, dword [sym.imp.USER32.dll_CopyRect]
push ebx
lea eax, [esp + 0x30]
push eax
call esi
lea eax, [esp + 0x2c]
push eax
lea eax, [esp + 0x20]
push eax
call esi
lea eax, [esp + 0x1c]
push eax
lea esi, [esp + 0x40]
call fcn.00431ba8
mov esi, dword [esp + 8]
push 8
pop ecx
xor eax, eax
lea edi, [esp + 0x60]
rep stosd dword es:[edi], eax
lea eax, [esp + 0x5c]
push eax
push 4
mov dword [esp + 0x64], 0x24
mov dword [esp + 0x68], esi
call dword [sym.imp.SHELL32.dll_SHAppBarMessage]
test al, 1
je 0x431d34
lea eax, [esp + 0x1c]
push eax
push esi
call dword [sym.imp.USER32.dll_GetWindowRect]
lea eax, [esp + 0x1c]
push eax
lea eax, [esp + 0x40]
push eax
lea eax, [esp + 0x54]
push eax
call dword [sym.imp.USER32.dll_SubtractRect]
lea eax, [esp + 0x4c]
push eax
call dword [sym.imp.USER32.dll_IsRectEmpty]
test eax, eax
jne 0x431d34
mov eax, dword [esp + 0x20]
cmp eax, dword [esp + 0x1c]
jne 0x431d2a
mov ecx, dword [esp + 0x28]
cmp ecx, dword [esp + 0x24]
jle 0x431d1f
inc dword [ebx]
jmp 0x431d34
jge 0x431d26
inc dword [ebx + 4]
jmp 0x431d34
cmp eax, dword [esp + 0x1c]
jle 0x431d31
dec dword [ebx + 0xc]
jmp 0x431d34
dec dword [ebx + 8]
pop edi
pop esi
mov esp, ebp
pop ebp
ret 4
Function at 0x435ba2
Capabilities:
Get file size
Read file on windows

Disassembly:
push ebp
mov ebp, esp
push ecx
push ebx
push esi
push edi
mov edi, dword [ebp + 8]
call fcn.004360d0
xor edi, edi
push edi
push 0x8000000
push 3
push edi
push 1
push SysReAllocString
push dword [ebp + 0xc]
mov dword [ebp - 4], edi
call dword [sym.imp.KERNEL32.dll_CreateFileW]
mov esi, eax
mov dword [ebp + 0xc], esi
cmp esi, 0xffffffff
je 0x435c67
push edi
push esi
call dword [sym.imp.KERNEL32.dll_GetFileSize]
mov ebx, eax
cmp ebx, edi
jne 0x435bf9
inc edi
push dword [ebp + 0xc]
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov eax, edi
jmp 0x435c69
cmp ebx, 0xf4240
jle 0x435c0c
push ebx
push esi
call fcn.004368fc
test eax, eax
je 0x435c67
lea eax, [ebx + 2]
push eax
push 1
call fcn.00447bfb
mov esi, eax
pop ecx
pop ecx
cmp esi, edi
je 0x435bec
push edi
lea eax, [ebp - 4]
push eax
push ebx
push esi
push dword [ebp + 0xc]
call dword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
je 0x435c57
cmp dword [ebp - 4], ebx
jne 0x435c57
mov edi, dword [ebp + 8]
mov eax, esi
call fcn.00435c70
push dword [ebp + 0xc]
call dword [sym.imp.KERNEL32.dll_CloseHandle]
push esi
call fcn.00447b6d
xor eax, eax
pop ecx
inc eax
jmp 0x435c69
push esi
call fcn.00447b6d
pop ecx
push dword [ebp + 0xc]
call dword [sym.imp.KERNEL32.dll_CloseHandle]
xor eax, eax
pop edi
pop esi
pop ebx
leave
ret 8
Function at 0x4368fc
Capabilities:
Read file on windows

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
push 0xffffffffffffffff
push 0x469ed0
mov eax, dword fs:[0]
push eax
sub esp, 0x58
push ebx
push esi
push edi
mov eax, dword [0x484060]
xor eax, esp
push eax
lea eax, [esp + 0x68]
mov dword fs:[0], eax
mov ebx, 0x186a0
cmp dword [ebp + 0xc], ebx
jge 0x436935
mov ebx, dword [ebp + 0xc]
push ebx
call fcn.0044909f
mov edi, eax
xor esi, esi
pop ecx
mov dword [esp + 0x18], edi
cmp edi, esi
jne 0x43694c
xor eax, eax
jmp 0x4369c3
push esi
lea ecx, [esp + 0x20]
mov dword [esp + 0x14], esi
call fcn.00435b0c
push esi
lea eax, [esp + 0x18]
push eax
push ebx
push edi
push dword [ebp + 8]
mov dword [esp + 0x84], esi
call dword [sym.imp.KERNEL32.dll_ReadFile]
cmp eax, 1
jne 0x43699a
cmp dword [esp + 0x14], ebx
jne 0x43699a
mov eax, edi
lea edi, [esp + 0x1c]
call fcn.00435c70
test eax, eax
je 0x43699a
cmp dword [esp + 0x24], esi
je 0x43699a
mov dword [esp + 0x10], 1
push esi
push esi
push esi
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.dll_SetFilePointer]
push dword [esp + 0x18]
call fcn.00447b6d
or dword [esp + 0x74], 0xffffffff
pop ecx
lea eax, [esp + 0x1c]
push eax
call fcn.00435b7b
mov eax, dword [esp + 0x10]
mov ecx, dword [esp + 0x68]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 8

Function at 0x438520
Capabilities:
Delete file
Set file attributes

Disassembly:
push ebp
push edi
xor ebp, ebp
push ebp
mov eax, esi
call fcn.0043859e
push ebp
mov edi, 0x80
push edi
push 2
push ebp
mov ebp, dword [sym.imp.KERNEL32.dll_CreateFileW]
push 1
push 0x40000000
push ebx
call ebp
mov dword [esi + 4], eax
cmp eax, 0xffffffff
jne 0x43858b
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 5
jne 0x438587
push edi
push ebx
call dword [sym.imp.KERNEL32.dll_SetFileAttributesW]
push ebx
call dword [sym.imp.KERNEL32.dll_DeleteFileW]
push 0
push edi
push 2
push 0
push 1
push 0x40000000
push ebx
call ebp
mov dword [esi + 4], eax
cmp eax, 0xffffffff
jne 0x43858b
call dword [sym.imp.KERNEL32.dll_GetLastError]
xor eax, eax
jmp 0x43859b
push ebx
call fcn.0044a9bc
mov dword [esi + 0x1c], eax
xor eax, eax
inc eax
pop ecx
mov dword [esi + 0x18], eax
pop edi
pop ebp
ret

Function at 0x4387d7
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
push ecx
push ecx
push esi
push edi
mov edi, ecx
mov dword [ebp - 8], eax
jmp 0x43882a
and dword [ebp - 4], 0
mov esi, 0x1000000
cmp edi, 0x1000000
ja 0x4387f8
mov esi, edi
push 0
lea eax, [ebp - 4]
push eax
push esi
push dword [ebp - 8]
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.dll_WriteFile]
test eax, eax
je 0x438835
cmp esi, dword [ebp - 4]
jb 0x438839
cmp dword [ebp - 4], 0
jne 0x438822
push 1
call dword [sym.imp.KERNEL32.dll_Sleep]
mov eax, dword [ebp - 4]
sub edi, eax
add dword [ebp - 8], eax
test edi, edi
jne 0x4387e5
xor eax, eax
inc eax
pop edi
pop esi
leave
ret
xor eax, eax
jmp 0x438831
call dword [sym.imp.USER32.dll_GetDesktopWindow]
test eax, eax
je 0x438835
and dword [ebp - 8], 0
push 0x47ce44
lea eax, [ebp - 8]
push eax
call fcn.0045824a
int3
Function at 0x438856
Capabilities:
Read file on windows

Disassembly:
push ebp
mov ebp, esp
push ecx
push ecx
and dword [esi], 0
push ebx
push edi
mov ebx, ecx
mov dword [ebp - 4], eax
jmp 0x43889b
and dword [ebp - 8], 0
mov edi, 0x1000000
cmp ebx, edi
ja 0x438876
mov edi, ebx
push 0
lea eax, [ebp - 8]
push eax
push edi
push dword [ebp - 4]
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
je 0x4388a6
mov eax, dword [ebp - 8]
add dword [esi], eax
cmp eax, edi
jb 0x43889f
sub ebx, eax
add dword [ebp - 4], eax
test ebx, ebx
jne 0x438867
xor eax, eax
inc eax
pop edi
pop ebx
leave
ret
xor eax, eax
jmp 0x4388a2

Function at 0x4388aa
Capabilities:
Encode data using xor
Hash data with crc32

Disassembly:
push edi
mov edi, edx
test ecx, ecx
jne 0x4388b5
xor eax, eax
pop edi
ret
push esi
not eax
mov edx, 0xff
cmp edi, 8
jb 0x438967
mov esi, edi
shr esi, 3
push ebx
movzx ebx, byte [ecx]
xor ebx, eax
and ebx, edx
shr eax, 8
xor eax, dword [ebx*4 + 0x46f4c0]
inc ecx
movzx ebx, byte [ecx]
xor ebx, eax
and ebx, edx
shr eax, 8
xor eax, dword [ebx*4 + 0x46f4c0]
inc ecx
movzx ebx, byte [ecx]
xor ebx, eax
and ebx, edx
shr eax, 8
xor eax, dword [ebx*4 + 0x46f4c0]
inc ecx
movzx ebx, byte [ecx]
xor ebx, eax
and ebx, edx
shr eax, 8
xor eax, dword [ebx*4 + 0x46f4c0]
inc ecx
movzx ebx, byte [ecx]
xor ebx, eax
and ebx, edx
shr eax, 8
xor eax, dword [ebx*4 + 0x46f4c0]
inc ecx
movzx ebx, byte [ecx]
xor ebx, eax
and ebx, edx
shr eax, 8
xor eax, dword [ebx*4 + 0x46f4c0]
inc ecx
movzx ebx, byte [ecx]
xor ebx, eax
and ebx, edx
shr eax, 8
xor eax, dword [ebx*4 + 0x46f4c0]
inc ecx
movzx ebx, byte [ecx]
xor ebx, eax
and ebx, edx
shr eax, 8
xor eax, dword [ebx*4 + 0x46f4c0]
inc ecx
sub edi, 8
dec esi
jne 0x4388cc
pop ebx
test edi, edi
je 0x438980
movzx esi, byte [ecx]
xor esi, eax
and esi, edx
shr eax, 8
xor eax, dword [esi*4 + 0x46f4c0]
inc ecx
dec edi
jne 0x43896b
pop esi
not eax
pop edi
ret
Function at 0x441f0e
Capabilities:
Encode data using xor
Hash data with crc32

Disassembly:
push esi
xor ecx, ecx
push 8
mov eax, ecx
pop edx
mov esi, eax
and esi, 1
dec esi
not esi
and esi, 0xedb88320
shr eax, 1
xor eax, esi
dec edx
jne 0x441f16
mov dword [ecx*4 + 0x489c80], eax
inc ecx
cmp ecx, 0x100
jb 0x441f11
mov edx, 0x800
jmp 0x441f63
mov eax, dword [ecx*4 + 0x489880]
mov esi, eax
and esi, 0xff
shr eax, 8
xor eax, dword [esi*4 + 0x489c80]
inc ecx
mov dword [ecx*4 + 0x489c7c], eax
cmp ecx, edx
jb 0x441f42
mov eax, 0x44426d
mov esi, 0x444309
mov dword [0x489c60], eax
mov dword [0x48bc80], eax
mov dword [0x489c5c], esi
call fcn.004444a4
test eax, eax
jne 0x441f90
mov dword [0x48bc80], esi
pop esi
ret

Function at 0x445695
Capabilities:
Encrypt data using rc4 prga

Disassembly:
push ebp
mov ebp, esp
push ecx
push ecx
mov edx, dword [ebp + 0xc]
mov edx, dword [edx]
mov eax, dword [ebp + 8]
push edi
xor edi, edi
and edx, 7
cmp ecx, 5
jae 0x4456b4
xor eax, eax
jmp 0x4457b7
sub ecx, 4
add ecx, eax
push ebx
mov dword [ebp - 4], ecx
push esi
lea esi, [edi + eax]
jmp 0x4456ce
mov cl, byte [esi]
and cl, 0xfe
cmp cl, 0xe8
je 0x4456d3
inc esi
cmp esi, dword [ebp - 4]
jb 0x4456c3
mov ecx, esi
sub ecx, edi
mov edi, esi
sub ecx, eax
sub edi, eax
cmp esi, dword [ebp - 4]
jae 0x4457a1
cmp ecx, 2
jbe 0x44576f
xor edx, edx
movzx ecx, byte [esi + 4]
lea ebx, [ecx + 1]
test bl, 0xfe
jne 0x445796
movzx ebx, byte [esi + 3]
shl ecx, 8
or ecx, ebx
movzx ebx, byte [esi + 2]
shl ecx, 8
or ecx, ebx
movzx ebx, byte [esi + 1]
shl ecx, 8
or ecx, ebx
add edi, 5
mov ebx, ecx
sub ebx, edi
test edx, edx
je 0x44574c
and edx, 6
shl edx, 2
mov ecx, edx
mov eax, ebx
shr eax, cl
mov dword [ebp - 8], ecx
inc eax
test al, 0xfe
jne 0x445747
mov eax, 0x100
shl eax, cl
dec eax
xor ebx, eax
sub ebx, edi
mov eax, dword [ebp + 8]
xor edx, edx
mov ecx, ebx
shr ecx, 8
mov byte [esi + 1], bl
mov byte [esi + 2], cl
mov ecx, ebx
shr ebx, 0x18
shr ecx, 0x10
and bl, 1
neg bl
mov byte [esi + 3], cl
mov byte [esi + 4], bl
jmp 0x4456be
shr edx, cl
test edx, edx
je 0x4456f1
cmp edx, 4
ja 0x445796
cmp edx, 3
je 0x445796
mov ecx, edx
shr ecx, 1
movzx ecx, byte [ecx + esi + 1]
inc ecx
test cl, 0xfe
jne 0x4456f1
or edx, 8
shr edx, 1
inc edi
jmp 0x4456be
push 2
pop eax
shr edx, cl
cmp eax, ecx
mov ecx, dword [ebp + 0xc]
sbb eax, eax
not eax
and eax, edx
pop esi
mov dword [ecx], eax
mov eax, edi
pop ebx
pop edi
leave
ret
Function at 0x44773d
Capabilities:
Allocate or change rwx memory
Execute shellcode via indirect call

Disassembly:
cmp dword [0x487368], 0
push esi
jne 0x4476b0
call fcn.004475d6
test eax, eax
je 0x4476f3
mov eax, dword [0x487368]
cmp eax, 1
jne 0x4476d1
push 0xd
push 0
call dword [sym.imp.KERNEL32.dll_GetProcessHeap]
push eax
call dword [sym.imp.KERNEL32.dll_HeapAlloc]
test eax, eax
je 0x4476f3
pop esi
ret
push eax
call dword [0x487370]
test eax, eax
jne 0x44773b
push 0x40
mov eax, 0x1000
push eax
push eax
push 0
call dword [sym.imp.KERNEL32.dll_VirtualAlloc]
mov esi, eax
test esi, esi
jne 0x4476f7
xor eax, eax
pop esi
ret
mov eax, dword [esi]
push edi
push dword [0x487368]
call dword [0x487370]
mov edi, eax
test edi, edi
je 0x44771c
push 0x8000
push 0
push esi
call dword [sym.imp.KERNEL32.dll_VirtualFree]
jmp 0x447738
mov edi, esi
add esi, 0xff0
push edi
push dword [0x487368]
call dword [0x48736c]
add edi, 0x10
cmp edi, esi
jb 0x447724
mov eax, edi
pop edi
pop esi
ret
jmp 0x44769d

Function at 0x447882
Capabilities:
Terminate process

Disassembly:
cmp ecx, dword [0x484060]
jne 0x44788c
repz ret
jmp fcn.0044c55c

Function at 0x45e10b
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.0044c6d4
and dword [ebp - 4], 0
cmp dword [0x487f40], 0
mov ebx, eax
jne 0x45e1bc
push str.USER32.DLL
call dword [sym.imp.KERNEL32.dll_LoadLibraryA]
mov edi, eax
test edi, edi
je 0x45e26d
mov esi, dword [sym.imp.KERNEL32.dll_GetProcAddress]
push str.MessageBoxA
push edi
call esi
test eax, eax
je 0x45e26d
push eax
call fcn.0044c662
mov dword [esp], str.GetActiveWindow
push edi
mov dword [0x487f40], eax
call esi
push eax
call fcn.0044c662
mov dword [esp], str.GetLastActivePopup
push edi
mov dword [0x487f44], eax
call esi
push eax
call fcn.0044c662
mov dword [esp], str.GetUserObjectInformationA
push edi
mov dword [0x487f48], eax
call esi
push eax
call fcn.0044c662
pop ecx
mov dword [0x487f50], eax
test eax, eax
je 0x45e1bc
push str.GetProcessWindowStation
push edi
call esi
push eax
call fcn.0044c662
pop ecx
mov dword [0x487f4c], eax
mov eax, dword [0x487f4c]
cmp eax, ebx
je 0x45e214
cmp dword [0x487f50], ebx
je 0x45e214
push eax
call fcn.0044c6dd
push dword [0x487f50]
mov esi, eax
call fcn.0044c6dd
pop ecx
pop ecx
mov edi, eax
test esi, esi
je 0x45e214
test edi, edi
je 0x45e214
call esi
test eax, eax
je 0x45e20b
lea ecx, [ebp - 8]
push ecx
push 0xc
lea ecx, [ebp - 0x14]
push ecx
push 1
push eax
call edi
test eax, eax
je 0x45e20b
test byte [ebp - 0xc], 1
jne 0x45e214
or dword [ebp + 0x10], 0x200000
jmp 0x45e24d
mov eax, dword [0x487f44]
cmp eax, ebx
je 0x45e24d
push eax
call fcn.0044c6dd
pop ecx
test eax, eax
je 0x45e24d
call eax
mov dword [ebp - 4], eax
test eax, eax
je 0x45e24d
mov eax, dword [0x487f48]
cmp eax, ebx
je 0x45e24d
push eax
call fcn.0044c6dd
pop ecx
test eax, eax
je 0x45e24d
push dword [ebp - 4]
call eax
mov dword [ebp - 4], eax
push dword [0x487f40]
call fcn.0044c6dd
pop ecx
test eax, eax
je 0x45e26d
push dword [ebp + 0x10]
push dword [ebp + 0xc]
push dword [ebp + 8]
push dword [ebp - 4]
call eax
jmp 0x45e26f
xor eax, eax
pop edi
pop esi
pop ebx
leave
ret
Function at 0x401f10
Capabilities:
Get disk information
Inspect load icon resource
Read file on windows

Disassembly:
mov eax, dword [esp + 4]
sub esp, 0x148
push ebx
push esi
push edi
push 0x65
push eax
call dword [sym.imp.USER32.dll_LoadIconA]
lea ecx, [esp + 0xc]
call fcn.00401000
lea ecx, [esp + 0x50]
push 0x104
push ecx
push 0
call dword [sym.imp.KERNEL32.dll_GetModuleFileNameA]
lea edx, [esp + 0x50]
lea ecx, [esp + 0xc]
push edx
call fcn.004012b0
test eax, eax
je 0x402021
lea eax, [esp + 0x50]
push 0x404030
push eax
call dword [sym.imp.MSVCRT.dll_fopen]
mov esi, eax
add esp, 8
test esi, esi
je 0x402084
lea ecx, [esp + 0x50]
push ecx
lea ecx, [esp + 0x10]
call fcn.00401290
mov edi, dword [sym.imp.MSVCRT.dll_fseek]
sub eax, 8
push 0
push eax
push esi
call edi
mov ebx, dword [sym.imp.MSVCRT.dll_fread]
push esi
push 1
lea edx, [esp + 0x24]
push 8
push edx
call ebx
mov eax, dword [esp + 0x2c]
push 0
push eax
push esi
call edi
push esi
push 1
lea ecx, [esp + 0x48]
push 0x38
push ecx
call ebx
push esi
call dword [sym.imp.MSVCRT.dll_fclose]
mov eax, dword [esp + 0x88]
mov edx, dword [esp + 0x50]
add esp, 0x3c
test eax, eax
mov eax, dword [esp + 0x10]
push edx
push eax
jne 0x401ffe
sub esp, 0x38
mov ecx, 0xe
lea esi, [esp + 0x58]
mov edi, esp
rep movsd dword es:[edi], dword [esi]
lea ecx, [esp + 0x90]
push ecx
lea ecx, [esp + 0x50]
call fcn.00401800
jmp 0x402084
sub esp, 0x38
mov ecx, 0xe
lea esi, [esp + 0x58]
mov edi, esp
rep movsd dword es:[edi], dword [esi]
lea ecx, [esp + 0x90]
push ecx
lea ecx, [esp + 0x50]
call fcn.00401a90
jmp 0x402084
lea ecx, [esp + 0x10]
call sub.MFC42.DLL_CString::CString_1
call dword [sym.imp.KERNEL32.dll_GetLogicalDrives]
mov edi, eax
mov esi, 1
xor ebx, ebx
test edi, esi
je 0x40206a
mov dl, bl
lea ecx, [esp + 0x10]
add dl, 0x41
push edx
call sub.MFC42.DLL_CString::operator_1
push 0x40412c
lea ecx, [esp + 0x14]
call fcn.004020e2
lea ecx, [esp + 0xc]
mov eax, dword [esp + 0x10]
push eax
push 0
call fcn.00401cf0
add esi, esi
inc ebx
cmp ebx, 0x1a
jl 0x402039
lea ecx, [esp + 0xc]
call fcn.00401040
lea ecx, [esp + 0x10]
call sub.MFC42.DLL_CString::CString
lea ecx, [esp + 0xc]
call fcn.00401030
pop edi
pop esi
xor eax, eax
pop ebx
add esp, 0x148
ret 0x10

Function at 0x433000
Capabilities:
Encode data using xor
Packed with generic packer

Disassembly:
pushal
nop
nop
nop
nop
nop
mov eax, section..text
nop
nop
mov ebx, 0x40de38
nop
mov ecx, 0x416c4f0f
nop
nop
test eax, eax
nop
nop
nop
nop
je 0x43304e
nop
nop
xor dword [eax], ecx
nop
nop
nop
nop
nop
nop
inc eax
nop
nop
nop
nop
nop
nop
nop
inc eax
nop
nop
nop
nop
inc eax
nop
nop
nop
inc eax
nop
nop
nop
nop
nop
cmp eax, ebx
nop
nop
nop
nop
nop
nop
nop
jne 0x433024
mov eax, section..data
nop
mov ebx, 0x4304d8
nop
mov ecx, 0x49014397
nop
nop
nop
nop
nop
test eax, eax
nop
je 0x433084
nop
nop
nop
nop
nop
nop
nop
xor dword [eax], ecx
add eax, 4
nop
nop
nop
nop
cmp eax, ebx
nop
nop
nop
jne 0x43306c
nop
nop
nop
nop
nop
nop
popal
nop
nop
nop
jmp 0x431219
Function at 0x4017a3
Capabilities:
Hide graphical window

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x28
mov dword [esp + 4], 0
mov dword [esp], str.ConsoleWindowClass
call sym._FindWindowA_8
sub esp, 8
mov dword [ebp - 0xc], eax
mov dword [esp + 4], 0
mov eax, dword [ebp - 0xc]
mov dword [esp], eax
call sym._ShowWindow_8
sub esp, 8
nop
leave
ret
Function at 0x404450
Capabilities:
Get thread local storage value

Disassembly:
push esi
push ebx
sub esp, 0x14
mov dword [esp], 0x410184
call sym._EnterCriticalSection_4
mov ebx, dword [0x41017c]
sub esp, 4
test ebx, ebx
je 0x40449b
nop
mov eax, dword [ebx]
mov dword [esp], eax
call sym._TlsGetValue_4
sub esp, 4
mov esi, eax
call sym._GetLastError_0
test eax, eax
jne 0x404494
test esi, esi
je 0x404494
mov eax, dword [ebx + 4]
mov dword [esp], esi
call eax
mov ebx, dword [ebx + 8]
test ebx, ebx
jne 0x404470
mov dword [esp], 0x410184
call sym._LeaveCriticalSection_4
sub esp, 4
add esp, 0x14
pop ebx
pop esi
ret

Function at 0x404680
Capabilities:
Write file on windows

Disassembly:
push esi
push ebx
sub esp, 0x14
mov eax, dword [sym.imp.msvcrt.dll__iob]
mov dword [esp + 8], 0x17
mov dword [esp + 4], 1
lea esi, [esp + 0x24]
mov dword [esp], str.Mingw_runtime_failure:_n
lea ebx, [eax + 0x40]
mov dword [esp + 0xc], ebx
call sym._fwrite
mov eax, dword [esp + 0x20]
mov dword [esp + 8], esi
mov dword [esp], ebx
mov dword [esp + 4], eax
call sym._vfprintf
call sym._abort
lea esi, [esi]

Function at 0x4046d0
Capabilities:
Allocate or change rwx memory

Disassembly:
push ebp
push edi
mov edi, ecx
push esi
push ebx
mov ebx, eax
mov esi, edx
sub esp, 0x4c
lea eax, [esp + 0x24]
mov dword [esp + 8], 0x1c
mov dword [esp], ebx
mov dword [esp + 4], eax
call sym._VirtualQuery_12
sub esp, 0xc
test eax, eax
je 0x4047a8
mov eax, dword [esp + 0x38]
cmp eax, 0x40
je 0x40470e
cmp eax, 4
jne 0x404730
mov dword [esp + 8], edi
mov dword [esp + 4], esi
mov dword [esp], ebx
call sym._memcpy
add esp, 0x4c
pop ebx
pop esi
pop edi
pop ebp
ret
mov eax, dword [esp + 0x30]
lea ebp, [esp + 0x20]
mov dword [esp + 8], 0x40
mov dword [esp + 0xc], ebp
mov dword [esp + 4], eax
mov eax, dword [esp + 0x24]
mov dword [esp], eax
call sym._VirtualProtect_16
sub esp, 0x10
mov edx, dword [esp + 0x38]
mov dword [esp + 8], edi
mov dword [esp + 4], esi
mov dword [esp], ebx
mov dword [esp + 0x1c], edx
call sym._memcpy
mov edx, dword [esp + 0x1c]
cmp edx, 0x40
je 0x40471e
cmp edx, 4
je 0x40471e
mov eax, dword [esp + 0x20]
mov dword [esp + 0xc], ebp
mov dword [esp + 8], eax
mov eax, dword [esp + 0x30]
mov dword [esp + 4], eax
mov eax, dword [esp + 0x24]
mov dword [esp], eax
call sym._VirtualProtect_16
sub esp, 0x10
add esp, 0x4c
pop ebx
pop esi
pop edi
pop ebp
ret
mov dword [esp + 8], ebx
mov dword [esp + 4], 0x1c
mov dword [esp], str.__VirtualQuery_failed_for__d_bytes_at_address__p
call fcn.00404680
Function at 0x401000
Capabilities:
Read .ini file

Disassembly:
sub esp, 0x218
mov eax, dword [0x437368]
xor eax, esp
mov dword [esp + 0x214], eax
push esi
call fcn.00409a30
push 0x104
lea eax, [esp + 0x10]
push eax
push 0
call dword [sym.imp.KERNEL32.dll_GetModuleFileNameW]
lea ecx, [esp + 0xc]
push 0x2e
push ecx
call fcn.00414011
add esp, 8
lea edx, [esp + 0xc]
push edx
add eax, 2
mov word [eax], 0x69
push 0x2710
add eax, 2
push 0x42e5f4
mov word [eax], 0x6e
push 0x42e604
mov word [eax + 2], 0x69
call dword [sym.imp.KERNEL32.dll_GetPrivateProfileIntW]
cmp eax, 0xffffffff
mov dword [esp], eax
mov dword [esp + 4], eax
mov dword [esp + 8], eax
je 0x4010d2
mov ecx, dword [esi]
push edi
mov edi, dword [sym.imp.WININET.dll_InternetSetOptionW]
push 4
lea eax, [esp + 0x10]
push eax
push 2
push ecx
call edi
cmp dword [esp + 8], 0xffffffff
je 0x4010a5
mov eax, dword [esi]
push 4
lea edx, [esp + 0xc]
push edx
push 5
push eax
call edi
cmp dword [esp + 4], 0xffffffff
je 0x4010ba
mov edx, dword [esi]
push 4
lea ecx, [esp + 8]
push ecx
push 6
push edx
call edi
mov eax, esi
pop edi
mov ecx, dword [esp + 0x214]
xor ecx, esp
call fcn.00414002
add esp, 0x218
ret
mov ecx, dword [esp + 0x214]
xor ecx, esp
mov eax, esi
call fcn.00414002
add esp, 0x218
ret
Function at 0x401c30
Capabilities:
Create service
Persist via windows service

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
push 0xffffffffffffffff
push 0x42b3a0
mov eax, dword fs:[0]
push eax
sub esp, 0x90
push ebx
push esi
push edi
mov eax, dword [0x437368]
xor eax, esp
push eax
lea eax, [esp + 0xa0]
mov dword fs:[0], eax
mov ebx, ecx
push 2
push 0x42e888
push 0
call dword [sym.imp.ADVAPI32.dll_OpenSCManagerW]
test eax, eax
mov dword [esp + 0x10], eax
jne 0x401cbb
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
mov ecx, 0x42e8a8
lea ebx, [esp + 0x84]
call fcn.0040a2d0
add esp, 4
push eax
lea eax, [esp + 0x40]
push eax
mov dword [esp + 0xb0], 0
call fcn.0040a6e0
push 0x4340d8
lea ecx, [esp + 0x40]
push ecx
call fcn.004166ab
lea eax, [ebx + 0x8c]
lea edx, [eax + 2]
mov cx, word [eax]
add eax, 2
test cx, cx
jne 0x401cc4
sub eax, edx
sar eax, 1
lea edi, [eax + 0xa]
xor ecx, ecx
mov eax, edi
mov edx, 2
mul edx
seto cl
neg ecx
or ecx, eax
push ecx
call fcn.004134ab
mov esi, eax
add esp, 4
lea eax, [ebx + 0x8c]
push eax
push edi
push esi
call fcn.00414067
add esp, 0xc
push 0x42e8dc
push edi
push esi
call fcn.0041446b
add esp, 0xc
push 0
mov edx, dword [esp + 0x14]
push 0
push 0
push 0
push 0
push esi
push 1
push 2
push 0x110
push 0xf01ff
lea eax, [ebx + 0x294]
push eax
lea ecx, [ebx + 0xc]
push ecx
push edx
call dword [sym.imp.ADVAPI32.dll_CreateServiceW]
mov edi, eax
test edi, edi
jne 0x401da4
call dword [sym.imp.KERNEL32.dll_GetLastError]
push esi
mov edi, eax
call fcn.00414062
mov eax, dword [esp + 0x14]
add esp, 4
push eax
call dword [sym.imp.ADVAPI32.dll_CloseServiceHandle]
push esi
call fcn.00414062
add esp, 4
push edi
mov ecx, 0x42e8ec
lea ebx, [esp + 0x68]
call fcn.0040a2d0
add esp, 4
push eax
lea ecx, [esp + 0x18]
push ecx
mov dword [esp + 0xb0], 1
call fcn.0040a6e0
push 0x4340d8
lea edx, [esp + 0x18]
push edx
call fcn.004166ab
push esi
call fcn.00414062
mov esi, dword [sym.imp.ADVAPI32.dll_CloseServiceHandle]
add esp, 4
push edi
call esi
mov eax, dword [esp + 0x10]
push eax
call esi
mov ecx, dword [ebp + 8]
push ecx
push ebx
call fcn.00401de0
mov ecx, dword [esp + 0xa0]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 4