joyce8/EMBER2024-capa huggingface dataset:
Function at 0x464b94
Capabilities:
Check if file exists
Get file attributes

Disassembly:
push ebp
mov ebp, esp
add esp, 0xffffffec
push ebx
push esi
push edi
call fcn.004659a4
test byte [ebp + 0xd], 0xc0
jne 0x464bb8
mov eax, dword [0x488d8c]
mov edx, dword [eax]
and edx, 0xc000
or dword [ebp + 0xc], edx
test byte [ebp + 0xd], 0x80
jne 0x464bc5
or dword [ebp + 0xc], 0x4000
mov ecx, dword [ebp + 0xc]
and ecx, 0x700
cmp ecx, 0x500
jg 0x464bf2
je 0x464c04
sub ecx, 0x100
je 0x464c12
sub ecx, 0x100
je 0x464c19
sub ecx, 0x100
je 0x464c0b
jmp 0x464c20
sub ecx, 0x600
je 0x464c19
sub ecx, 0x100
je 0x464c04
jmp 0x464c20
mov edi, 1
jmp 0x464c25
mov edi, 2
jmp 0x464c25
mov edi, 4
jmp 0x464c25
mov edi, 5
jmp 0x464c25
mov edi, 3
test byte [ebp + 0xd], 1
je 0x464c4c
lea eax, [ebp + 0x10]
add eax, 4
mov eax, dword [eax - 4]
and eax, dword [0x488804]
test al, 0x80
je 0x464c45
mov ebx, 0x80
jmp 0x464c5e
mov ebx, 1
jmp 0x464c5e
mov eax, dword [ebp + 8]
push eax
call sub.KERNEL32.DLL_GetFileAttributesA
mov ebx, eax
cmp eax, 0xffffffff
jne 0x464c5e
xor ebx, ebx
mov eax, dword [ebp + 0xc]
and eax, 3
sub eax, 1
jb 0x464c70
je 0x464c79
dec eax
je 0x464c82
jmp 0x464c8b
mov dword [ebp - 4], SysStringLen
jmp 0x464c9a
mov dword [ebp - 4], 0x40000000
jmp 0x464c9a
mov dword [ebp - 4], 0xc0000000
jmp 0x464c9a
push 1
call fcn.00465d9c
pop ecx
mov ebx, eax
jmp 0x464d8a
mov eax, dword [ebp + 0xc]
and eax, 0x70
sub eax, 0x10
je 0x464cb6
sub eax, 0x10
je 0x464cbd
sub eax, 0x10
je 0x464cc6
sub eax, 0x10
je 0x464ccf
jmp 0x464ccf
xor edx, edx
mov dword [ebp - 8], edx
jmp 0x464cd6
mov dword [ebp - 8], 1
jmp 0x464cd6
mov dword [ebp - 8], 2
jmp 0x464cd6
mov dword [ebp - 8], 3
mov dword [ebp - 0x14], 0xc
xor ecx, ecx
mov dword [ebp - 0x10], ecx
lea ecx, [ebp - 0x14]
mov eax, dword [ebp + 0xc]
and eax, 0x80
cmp eax, 1
sbb edx, edx
neg edx
mov dword [ebp - 0xc], edx
push 0
push ebx
push edi
push ecx
mov eax, dword [ebp - 8]
push eax
mov edx, dword [ebp - 4]
push edx
mov ecx, dword [ebp + 8]
push ecx
call sub.KERNEL32.DLL_CreateFileA
mov esi, eax
cmp eax, 0xffffffff
jne 0x464d43
call sub.KERNEL32.DLL_GetLastError
mov ebx, eax
and ebx, 0xffff
cmp ebx, 0x6e
jne 0x464d38
test byte [ebp + 0xd], 1
je 0x464d33
mov ebx, 0x50
jmp 0x464d38
mov ebx, 2
push ebx
call fcn.00465d9c
pop ecx
mov ebx, eax
jmp 0x464d8a
mov edi, esi
push edi
call fcn.00464af8
pop ecx
test eax, eax
je 0x464d57
or dword [ebp + 0xc], 0x2000
test bl, 1
jne 0x464d63
or dword [ebp + 0xc], 0x100
and dword [ebp + 0xc], 0xfffff8ff
mov eax, dword [ebp + 0xc]
push eax
push edi
call fcn.00465ac4
add esp, 8
mov ebx, eax
inc eax
jne 0x464d8a
push 4
call fcn.00465d9c
pop ecx
push esi
call sub.KERNEL32.DLL_CloseHandle
call fcn.004659d8
mov eax, ebx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x469a18
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
push ecx
push ebx
push esi
push edi
mov edi, dword [ebp + 0xc]
push 0
push 0x80
push 2
push 0
push 0
push 0xc0000000
mov eax, dword [ebp + 8]
push eax
call sub.KERNEL32.DLL_CreateFileA
mov ebx, eax
test eax, eax
je 0x469a7a
call fcn.004699c8
mov esi, eax
lea eax, [ebp - 4]
push 0
push eax
push esi
call fcn.004637b4
pop ecx
push eax
push esi
push ebx
call sub.KERNEL32.DLL_WriteFile
push 0
lea edx, [ebp - 4]
push edx
push edi
call fcn.004637b4
pop ecx
push eax
push edi
push ebx
call sub.KERNEL32.DLL_WriteFile
push ebx
call sub.KERNEL32.DLL_CloseHandle
pop edi
pop esi
pop ebx
pop ecx
pop ebp
ret

Function at 0x469af8
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
add esp, 0xffffff7c
cmp dword [0x489d90], 0
push ebx
push esi
mov esi, dword [ebp + 8]
jne 0x469bd2
cmp dword [0x489d8c], 0
jne 0x469bd2
cmp dword [0x489f70], 0
je 0x469b8c
push 0x80
lea eax, [ebp - 0x84]
push eax
push 0
call sub.KERNEL32.DLL_GetModuleFileNameA
push 0x5c
lea edx, [ebp - 0x84]
push edx
call fcn.004698c8
add esp, 8
mov ebx, eax
test eax, eax
jne 0x469b72
push 0x3a
lea edx, [ebp - 0x84]
push edx
call fcn.004698c8
add esp, 8
mov ebx, eax
test eax, eax
jne 0x469b72
lea ebx, [ebp - 0x84]
jmp 0x469b73
inc ebx
call fcn.00469ab4
or eax, 0x10010
push eax
push ebx
push esi
push 0
call sub.USER32.DLL_MessageBoxA
jmp 0x469c0d
push 0xfffffffffffffff4
call sub.KERNEL32.DLL_GetStdHandle
mov ebx, eax
lea eax, [ebp - 4]
push 0
push eax
push 2
push 0x489d94
push ebx
call sub.KERNEL32.DLL_WriteFile
push 0
lea edx, [ebp - 4]
push edx
push esi
call fcn.004637b4
pop ecx
push eax
push esi
push ebx
call sub.KERNEL32.DLL_WriteFile
push 0
lea ecx, [ebp - 4]
push ecx
push 2
push 0x489d97
push ebx
call sub.KERNEL32.DLL_WriteFile
jmp 0x469c0d
cmp dword [0x489d8c], 0
je 0x469bec
cmp dword [0x489d8c], 0xffffffff
je 0x469c0d
push esi
call dword [0x489d8c]
pop ecx
mov eax, dword [0x489d90]
test eax, eax
je 0x469c0d
cmp dword [0x489d90], 0xffffffff
je 0x469c0d
cmp byte [eax], 0
je 0x469c0d
push esi
push eax
call fcn.00469a18
add esp, 8
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x46a3a4
Capabilities:
Query environment variable

Disassembly:
push ebx
push esi
push edi
push ebp
push ecx
cmp dword [0x48d718], 0
jne 0x46a425
cmp dword [0x48d738], 0
jne 0x46a3d4
call sub.KERNEL32.DLL_GetEnvironmentStrings
mov dword [0x48d738], eax
test eax, eax
jne 0x46a3d4
push str.GetEnvironmentStrings_failed
call fcn.00469c24
pop ecx
xor ebp, ebp
xor esi, esi
mov ebx, dword [0x48d738]
jmp 0x46a3e8
lea eax, [edi + 1]
inc esi
add ebp, eax
add ebx, eax
push ebx
call fcn.004637b4
pop ecx
mov edi, eax
test eax, eax
jne 0x46a3e0
lea edi, [ebp + 1]
push edi
call fcn.00463098
pop ecx
mov ebx, eax
mov dword [0x48d71c], ebx
test ebx, ebx
jne 0x46a412
xor eax, eax
jmp 0x46a4e8
push edi
mov edx, dword [0x48d738]
push edx
push ebx
call fcn.00463664
add esp, 0xc
jmp 0x46a445
xor esi, esi
mov ebx, dword [0x48d718]
jmp 0x46a43f
push eax
call fcn.004637b4
pop ecx
test eax, eax
jne 0x46a43b
dec esi
inc esi
add ebx, 4
mov eax, dword [ebx]
test eax, eax
jne 0x46a42f
lea ebx, [esi + 4]
push 4
mov dword [0x48d720], ebx
inc ebx
push ebx
call fcn.00462b70
add esp, 8
test eax, eax
mov dword [esp], eax
jne 0x46a468
xor eax, eax
jmp 0x46a4e8
cmp dword [0x48d718], 0
jne 0x46a499
xor esi, esi
mov ebx, dword [0x48d71c]
mov eax, dword [esp]
mov ebp, eax
jmp 0x46a48a
mov dword [ebp], ebx
add ebp, 4
inc esi
inc edi
add ebx, edi
push ebx
call fcn.004637b4
pop ecx
mov edi, eax
test eax, eax
jne 0x46a480
jmp 0x46a4ca
xor esi, esi
mov ebx, dword [0x48d718]
mov eax, dword [esp]
mov edi, eax
jmp 0x46a4c4
push eax
call fcn.004637b4
pop ecx
test eax, eax
je 0x46a4b9
mov eax, dword [ebx]
mov dword [edi], eax
jmp 0x46a4bd
dec esi
add edi, 0xfffffffc
add edi, 4
inc esi
add ebx, 4
mov eax, dword [ebx]
test eax, eax
jne 0x46a4a8
mov eax, dword [0x48d718]
test eax, eax
je 0x46a4da
push eax
call fcn.004630a8
pop ecx
mov edx, dword [esp]
mov eax, 1
mov dword [0x48d718], edx
pop edx
pop ebp
pop edi
pop esi
pop ebx
ret

Function at 0x4705b4
Capabilities:
Check for software breakpoints

Disassembly:
push ebx
mov ebx, eax
cmp dword [ebx + 0x10], 0xca
jne 0x4705e2
mov eax, ebx
call fcn.0047106c
cmp dword [ebx + 0x3c], 0
je 0x4705db
mov dword [ebx + 0x10], 0xcf
mov eax, 1
pop ebx
ret
mov dword [ebx + 0x10], 0xcb
cmp dword [ebx + 0x10], 0xcb
jne 0x470653
mov edx, dword [ebx + 0x1ac]
cmp dword [edx + 0x10], 0
je 0x470645
cmp dword [ebx + 8], 0
je 0x470604
mov eax, ebx
mov edx, dword [eax + 8]
call dword [edx]
mov eax, ebx
mov edx, dword [eax + 0x1ac]
call dword [edx]
test eax, eax
jne 0x470616
xor eax, eax
pop ebx
ret
cmp eax, 2
je 0x470645
cmp dword [ebx + 8], 0
je 0x4705f7
cmp eax, 3
je 0x470629
dec eax
jne 0x4705f7
mov edx, dword [ebx + 8]
inc dword [edx + 4]
mov ecx, dword [edx + 4]
mov eax, dword [ebx + 8]
cmp ecx, dword [eax + 8]
jl 0x4705f7
mov edx, dword [ebx + 0x138]
add dword [eax + 8], edx
jmp 0x4705f7
mov ecx, dword [ebx + 0x8c]
mov dword [ebx + 0x94], ecx
jmp 0x470671
cmp dword [ebx + 0x10], 0xcc
je 0x470671
mov eax, dword [ebx]
mov dword [eax + 0x14], 0x12
mov edx, dword [ebx + 0x10]
mov dword [eax + 0x18], edx
mov eax, ebx
mov edx, dword [eax]
call dword [edx]
mov eax, ebx
call fcn.0047067c
pop ebx
ret
Function at 0x40688e
Capabilities:
Access peb ldr_data
Get kernel32 base address

Disassembly:
push esi
push edi
mov eax, 0x1a1
cmp eax, 0x24
ja 0x40689c
call 0x8566898
mov al, byte [0x8b640041]
cmp eax, 0x30
call dword [sym.imp.KERNEL32.dll_FreeConsole]
mov edi, dword fs:[0x30]
mov edi, dword [edi + 0xc]
mov esi, dword [edi + 0xc]
mov eax, dword [esi]
mov eax, dword [eax]
mov eax, dword [eax + 0x18]
mov dword [0x42ae30], eax
sub eax, eax
je 0x4068c1
call 0xa8cf50d9
invalid
call 0x401154
call 0x406651
pop edi
xor eax, eax
pop esi
ret

Function at 0x407515
Capabilities:
Parse pe header

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

Function at 0x40d5eb
Capabilities:
Allocate thread local storage

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push esi
push 0x41c2c8
push 0x41c2c0
push str.FlsAlloc
push 0x1e
call fcn.0040d4ac
mov esi, eax
add esp, 0x10
test esi, esi
je 0x40d61f
push dword [ebp + 8]
mov ecx, esi
call dword [0x41a120]
call esi
jmp 0x40d625
call dword [sym.imp.KERNEL32.dll_TlsAlloc]
pop esi
pop ebp
ret 4

Function at 0x40d669
Capabilities:
Get thread local storage value

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push esi
push 0x41c2d8
push 0x41c2d0
push str.FlsGetValue
push 0x20
call fcn.0040d4ac
mov esi, eax
add esp, 0x10
test esi, esi
je 0x40d6a0
push dword [ebp + 8]
mov ecx, esi
call dword [0x41a120]
call esi
pop esi
pop ebp
ret 4
pop esi
pop ebp
jmp dword [sym.imp.KERNEL32.dll_TlsGetValue]
Function at 0x41c31f
Capabilities:
Parse pe header
Terminate process

Disassembly:
push 0x70
push 0x41fad8
call fcn.0041c5f8
xor ebx, ebx
mov dword [ebp - 4], ebx
lea eax, [ebp - 0x80]
push eax
call dword [sym.imp.KERNEL32.dll_GetStartupInfoA]
or edi, 0xffffffff
mov dword [ebp - 4], edi
cmp word [0x400000], 0x5a4d
jne 0x41c373
mov eax, dword [0x40003c]
cmp dword [eax + 0x400000], 0x4550
jne 0x41c373
movzx ecx, word [eax + 0x400018]
cmp ecx, 0x10b
je 0x41c38b
cmp ecx, 0x20b
je 0x41c378
mov dword [ebp - 0x1c], ebx
jmp 0x41c3a2
cmp dword [eax + 0x400084], 0xe
jbe 0x41c373
xor ecx, ecx
cmp dword [eax + 0x4000f8], ebx
jmp 0x41c39c
cmp dword [eax + 0x400074], 0xe
jbe 0x41c373
xor ecx, ecx
cmp dword [eax + 0x4000e8], ebx
setne cl
mov dword [ebp - 0x1c], ecx
mov dword [ebp - 4], 1
push 2
call dword [sym.imp.msvcrt.dll___set_app_type]
pop ecx
mov dword [0x426be8], edi
mov dword [0x426bec], edi
call dword [sym.imp.msvcrt.dll___p__fmode]
mov ecx, dword [0x424bd4]
mov dword [eax], ecx
call dword [sym.imp.msvcrt.dll___p__commode]
mov ecx, dword [0x424bd0]
mov dword [eax], ecx
mov eax, dword [sym.imp.msvcrt.dll__adjust_fdiv]
mov eax, dword [eax]
mov dword [0x426be4], eax
call fcn.0041c5f4
cmp dword [0x422640], ebx
jne 0x41c3ff
push fcn.0041c5f4
call dword [sym.imp.msvcrt.dll___setusermatherr]
pop ecx
call fcn.0041c5e2
push 0x41d414
push 0x41d410
call sub.msvcrt.dll__initterm
mov eax, dword [0x424bcc]
mov dword [ebp - 0x24], eax
lea eax, [ebp - 0x24]
push eax
push dword [0x424bc8]
lea eax, [ebp - 0x2c]
push eax
lea eax, [ebp - 0x30]
push eax
lea eax, [ebp - 0x34]
push eax
call dword [sym.imp.msvcrt.dll___getmainargs]
mov dword [ebp - 0x38], eax
push 0x41d40c
push 0x41d394
call sub.msvcrt.dll__initterm
add esp, 0x24
mov eax, dword [sym.imp.msvcrt.dll__acmdln]
mov eax, dword [eax]
mov dword [ebp - 0x20], eax
cmp byte [eax], 0x22
jne 0x41c48a
inc eax
mov dword [ebp - 0x20], eax
mov cl, byte [eax]
cmp cl, bl
je 0x41c46a
cmp cl, 0x22
jne 0x41c45b
cmp byte [eax], 0x22
jne 0x41c473
inc eax
mov dword [ebp - 0x20], eax
mov cl, byte [eax]
cmp cl, bl
je 0x41c47e
cmp cl, 0x20
jbe 0x41c46f
test byte [ebp - 0x54], 1
je 0x41c495
movzx ecx, word [ebp - 0x50]
jmp 0x41c498
cmp byte [eax], 0x20
jbe 0x41c473
inc eax
mov dword [ebp - 0x20], eax
jmp 0x41c48a
push 0xa
pop ecx
push ecx
push eax
push ebx
push 0x400000
call fcn.00406fb3
mov esi, eax
mov dword [ebp - 0x3c], esi
cmp dword [ebp - 0x1c], ebx
jne 0x41c4b6
push esi
call dword [sym.imp.msvcrt.dll_exit]
call dword [sym.imp.msvcrt.dll__cexit]
mov dword [ebp - 4], edi
jmp 0x41c4f2
mov eax, esi
jmp 0x41c506
call fcn.0041c633
ret
Function at 0x401110
Capabilities:
Get disk information

Disassembly:
sub esp, 0x660
mov eax, dword [0x40c178]
xor eax, esp
mov dword [esp + 0x65c], eax
push ebx
push ebp
mov ebp, dword [esp + 0x66c]
push esi
push edi
lea eax, [esp + 0x268]
push eax
push 0x400
mov dword [esp + 0x1c], 0
call dword [sym.imp.KERNEL32.dll_GetLogicalDriveStringsW]
lea esi, [esp + 0x268]
mov ecx, esi
push ecx
call dword [sym.imp.KERNEL32.dll_GetDriveTypeW]
cmp word [esp + 0x268], 0
mov ebx, eax
je 0x4011b5
mov edi, dword [sym.imp.KERNEL32.dll_lstrcmpiW]
lea ecx, [ecx]
cmp ebx, 3
je 0x40117f
cmp ebx, 2
je 0x40117f
cmp ebx, 4
jne 0x4011af
push 0x40a2ac
push esi
call edi
test eax, eax
je 0x40119f
push 0x40a2b4
push esi
call edi
test eax, eax
je 0x40119f
push ebp
push esi
call edi
test eax, eax
je 0x4011db
push 0
push esi
call fcn.004026ab
add esp, 8
add eax, 2
mov esi, eax
cmp word [esi], 0
jne 0x401170
test ebp, ebp
je 0x4011ea
lea edx, [esp + 0x18]
push edx
push ebp
call dword [sym.imp.KERNEL32.dll_FindFirstFileW]
cmp eax, 0xffffffff
je 0x4011e2
push eax
mov dword [esp + 0x18], 1
call dword [sym.imp.KERNEL32.dll_FindClose]
jmp 0x4011ea
mov eax, 1
jmp 0x4011ee
mov dword [esp + 0x14], 0
mov eax, dword [esp + 0x14]
mov ecx, dword [esp + 0x66c]
pop edi
pop esi
pop ebp
pop ebx
xor ecx, esp
call fcn.0040269c
add esp, 0x660
ret

Function at 0x401210
Capabilities:
Query or enumerate registry value
Read .ini file

Disassembly:
sub esp, 0x624
mov eax, dword [0x40c178]
xor eax, esp
mov dword [esp + 0x620], eax
push edi
push 0x208
lea eax, [esp + 0x10]
push 0
push eax
mov dword [esp + 0x14], 0x104
call fcn.004046f0
push 0x208
lea ecx, [esp + 0x224]
push 0
push ecx
call fcn.004046f0
push 0x208
lea edx, [esp + 0x438]
push 0
push edx
call fcn.004046f0
mov edi, dword [sym.imp.KERNEL32.dll_GetPrivateProfileStringW]
add esp, 0x24
push esi
push 0x208
lea eax, [esp + 0x14]
push eax
push 0x40a2bc
push str.regpath
push str.launch
call edi
push esi
push 0x208
lea ecx, [esp + 0x21c]
push ecx
push 0x40a2bc
push 0x40a2e0
push str.launch
call edi
lea edx, [esp + 4]
push edx
push 0x20019
push 0
lea eax, [esp + 0x18]
push eax
push 0x80000002
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
test eax, eax
pop edi
jne 0x401327
lea ecx, [esp + 4]
push ecx
mov ecx, dword [esp + 4]
lea edx, [esp + 0x41c]
push edx
push eax
push eax
lea eax, [esp + 0x220]
push eax
push ecx
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
mov edx, dword [esp]
push edx
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
lea eax, [esp + 0x418]
push eax
push 0x104
push ebx
call fcn.00402630
add esp, 0xc
mov eax, 1
mov ecx, dword [esp + 0x620]
xor ecx, esp
call fcn.0040269c
add esp, 0x624
ret
mov ecx, dword [esp + 0x620]
xor ecx, esp
xor eax, eax
call fcn.0040269c
add esp, 0x624
ret
Function at 0x401ae0
Capabilities:
Read .ini file

Disassembly:
sub esp, 0x624
mov eax, dword [0x40c178]
xor eax, esp
mov dword [esp + 0x620], eax
push esi
push 0x208
lea eax, [esp + 0x420]
push 0
push eax
mov esi, ecx
call fcn.004046f0
push 0x414
lea ecx, [esp + 0x18]
push 0
push ecx
call fcn.004046f0
add esp, 0x18
push esi
push 0x208
lea edx, [esp + 0x424]
push edx
push 0x40a2bc
push str.Lang
push str.launch
call dword [sym.imp.KERNEL32.dll_GetPrivateProfileStringW]
lea eax, [esp + 4]
push eax
lea ecx, [esp + 0x420]
push 0x40a4a0
push ecx
call fcn.004028e0
add esp, 0xc
test eax, eax
je 0x401be9
mov esi, 1
push ebx
lea ebx, [ebx]
push eax
lea edx, [esp + 0x21c]
push 0x104
push edx
call fcn.00402630
add esp, 0xc
lea ebx, [esp + 0xc]
call fcn.00401340
mov ecx, dword [esp + 0xc]
xor eax, eax
cmp ecx, dword [edi + eax*8]
je 0x401ba3
add eax, esi
cmp eax, 0xd
jl 0x401b95
jmp 0x401ba7
mov dword [edi + eax*8 + 4], esi
push 0x414
lea eax, [esp + 0x10]
push 0
push eax
call fcn.004046f0
lea ecx, [esp + 0x14]
push ecx
push 0x40a4a0
push 0
call fcn.004028e0
add esp, 0x18
test eax, eax
jne 0x401b70
pop ebx
mov eax, esi
pop esi
mov ecx, dword [esp + 0x620]
xor ecx, esp
call fcn.0040269c
add esp, 0x624
ret
mov ecx, dword [esp + 0x624]
pop esi
xor ecx, esp
mov eax, 1
call fcn.0040269c
add esp, 0x624
ret

Function at 0x401c10
Capabilities:
Read .ini file

Disassembly:
sub esp, 0x210
mov eax, dword [0x40c178]
xor eax, esp
mov dword [esp + 0x20c], eax
mov eax, dword [esp + 0x214]
push ebx
push ebp
push esi
push edi
push 0x208
mov esi, ecx
lea ecx, [esp + 0x18]
push 0
push ecx
mov dword [esp + 0x1c], eax
mov edi, edx
call fcn.004046f0
mov ebx, dword [sym.imp.KERNEL32.dll_GetPrivateProfileStringW]
add esp, 0xc
add edi, 0x20c
mov ebp, 7
lea esp, [esp]
push 0x414380
push 0x208
lea edx, [esp + 0x1c]
push edx
push 0x40a2bc
push esi
push edi
call ebx
lea eax, [esp + 0x14]
push eax
lea ecx, [esi + 0x208]
push 0x104
push ecx
call fcn.00402630
add esp, 0xc
add esi, 0x410
sub ebp, 1
jne 0x401c60
mov esi, dword [esp + 0x10]
mov ebp, 0xd
jmp 0x401cb0
push 0x414380
push 0x208
lea edx, [esp + 0x1c]
push edx
push 0x40a2bc
push esi
push edi
call ebx
lea eax, [esp + 0x14]
push eax
lea ecx, [esi + 0x208]
push 0x104
push ecx
call fcn.00402630
add esp, 0xc
add esi, 0x410
sub ebp, 1
jne 0x401cb0
mov ecx, dword [esp + 0x21c]
pop edi
pop esi
lea eax, [ebp + 1]
pop ebp
pop ebx
xor ecx, esp
call fcn.0040269c
add esp, 0x210
ret
Function at 0x40269c
Capabilities:
Terminate process

Disassembly:
cmp ecx, dword [0x40c178]
jne 0x4026a6
repz ret
jmp fcn.00402e27

Function at 0x40335b
Capabilities:
Write file on windows

Disassembly:
push ecx
push ebx
mov ebx, dword [esp + 0xc]
push esi
push edi
xor esi, esi
xor edi, edi
cmp ebx, dword [edi*8 + 0x40c188]
je 0x403376
inc edi
cmp edi, 0x17
jb 0x403367
cmp edi, 0x17
jae 0x4034f6
push ebp
push 3
call fcn.004052f0
cmp eax, 1
pop ecx
je 0x4034c2
push 3
call fcn.004052f0
test eax, eax
pop ecx
jne 0x4033aa
cmp dword [section..data], 1
je 0x4034c2
cmp ebx, 0xfc
je 0x4034f5
push str.Runtime_Error__n_nProgram:
mov ebx, 0x314
push ebx
mov ebp, 0x412200
push ebp
call fcn.0040528b
add esp, 0xc
test eax, eax
je 0x4033e0
push esi
push esi
push esi
push esi
push esi
call fcn.00402cb9
add esp, 0x14
push 0x104
mov esi, 0x412219
push esi
push 0
mov byte [0x41231d], 0
call dword [sym.imp.KERNEL32.dll_GetModuleFileNameA]
test eax, eax
jne 0x403424
push str._program_name_unknown_
push 0x2fb
push esi
call fcn.0040528b
add esp, 0xc
test eax, eax
je 0x403424
xor eax, eax
push eax
push eax
push eax
push eax
push eax
call fcn.00402cb9
add esp, 0x14
push esi
call fcn.00405200
inc eax
cmp eax, 0x3c
pop ecx
jbe 0x403469
push esi
call fcn.00405200
sub esi, 0x3b
add eax, esi
push 3
mov ecx, 0x412514
push 0x40976c
sub ecx, eax
push ecx
push eax
call fcn.00405142
add esp, 0x14
test eax, eax
je 0x403469
xor esi, esi
push esi
push esi
push esi
push esi
push esi
call fcn.00402cb9
add esp, 0x14
jmp 0x40346b
xor esi, esi
push 0x409768
push ebx
push ebp
call fcn.004050d1
add esp, 0xc
test eax, eax
je 0x40348b
push esi
push esi
push esi
push esi
push esi
call fcn.00402cb9
add esp, 0x14
push dword [edi*8 + 0x40c18c]
push ebx
push ebp
call fcn.004050d1
add esp, 0xc
test eax, eax
je 0x4034ad
push esi
push esi
push esi
push esi
push esi
call fcn.00402cb9
add esp, 0x14
push 0x12010
push str.Microsoft_Visual_C_Runtime_Library
push ebp
call fcn.00404f14
add esp, 0xc
jmp 0x4034f5
push 0xfffffffffffffff4
call dword [sym.imp.KERNEL32.dll_GetStdHandle]
mov ebp, eax
cmp ebp, esi
je 0x4034f5
cmp ebp, 0xffffffff
je 0x4034f5
push 0
lea eax, [esp + 0x14]
push eax
lea esi, [edi*8 + 0x40c18c]
push dword [esi]
call fcn.00405200
pop ecx
push eax
push dword [esi]
push ebp
call dword [sym.imp.KERNEL32.dll_WriteFile]
pop ebp
pop edi
pop esi
pop ebx
pop ecx
ret
Function at 0x404f14
Capabilities:
Link many functions at runtime

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x20
push ebx
push esi
push edi
call fcn.00403eb3
xor ebx, ebx
cmp dword [0x4127bc], ebx
mov dword [ebp - 8], eax
mov dword [ebp - 4], ebx
mov dword [ebp - 0xc], ebx
mov dword [ebp - 0x10], ebx
jne 0x404fea
push str.USER32.DLL
call dword [sym.imp.KERNEL32.dll_LoadLibraryA]
mov edi, eax
cmp edi, ebx
je 0x4050ca
mov esi, dword [sym.imp.KERNEL32.dll_GetProcAddress]
push str.MessageBoxA
push edi
call esi
cmp eax, ebx
je 0x4050ca
push eax
call fcn.00403e45
mov dword [esp], str.GetActiveWindow
push edi
mov dword [0x4127bc], eax
call esi
push eax
call fcn.00403e45
mov dword [esp], str.GetLastActivePopup
push edi
mov dword [0x4127c0], eax
call esi
push eax
call fcn.00403e45
mov dword [0x4127c4], eax
lea eax, [ebp - 0xc]
push eax
call fcn.004030e8
test eax, eax
pop ecx
pop ecx
je 0x404fb8
push ebx
push ebx
push ebx
push ebx
push ebx
call fcn.00402cb9
add esp, 0x14
cmp dword [ebp - 0xc], 2
jne 0x404fea
push str.GetUserObjectInformationA
push edi
call esi
push eax
call fcn.00403e45
cmp eax, ebx
pop ecx
mov dword [0x4127cc], eax
je 0x404fea
push str.GetProcessWindowStation
push edi
call esi
push eax
call fcn.00403e45
pop ecx
mov dword [0x4127c8], eax
mov eax, dword [0x4127c8]
mov ecx, dword [ebp - 8]
cmp eax, ecx
je 0x40506f
cmp dword [0x4127cc], ecx
je 0x40506f
push eax
call fcn.00403ebc
push dword [0x4127cc]
mov esi, eax
call fcn.00403ebc
cmp esi, ebx
pop ecx
pop ecx
mov edi, eax
je 0x40506f
cmp edi, ebx
je 0x40506f
call esi
cmp eax, ebx
je 0x40503c
lea ecx, [ebp - 0x14]
push ecx
push 0xc
lea ecx, [ebp - 0x20]
push ecx
push 1
push eax
call edi
test eax, eax
je 0x40503c
test byte [ebp - 0x18], 1
jne 0x40506f
lea eax, [ebp - 0x10]
push eax
call fcn.0040311f
test eax, eax
pop ecx
je 0x405057
push ebx
push ebx
push ebx
push ebx
push ebx
call fcn.00402cb9
add esp, 0x14
cmp dword [ebp - 0x10], 4
jb 0x405066
or dword [ebp + 0x10], 0x200000
jmp 0x4050aa
or dword [ebp + 0x10], 0x40000
jmp 0x4050aa
mov eax, dword [0x4127c0]
cmp eax, dword [ebp - 8]
je 0x4050aa
push eax
call fcn.00403ebc
cmp eax, ebx
pop ecx
je 0x4050aa
call eax
cmp eax, ebx
mov dword [ebp - 4], eax
je 0x4050aa
mov eax, dword [0x4127c4]
cmp eax, dword [ebp - 8]
je 0x4050aa
push eax
call fcn.00403ebc
cmp eax, ebx
pop ecx
je 0x4050aa
push dword [ebp - 4]
call eax
mov dword [ebp - 4], eax
push dword [0x4127bc]
call fcn.00403ebc
cmp eax, ebx
pop ecx
je 0x4050ca
push dword [ebp + 0x10]
push dword [ebp + 0xc]
push dword [ebp + 8]
push dword [ebp - 4]
call eax
jmp 0x4050cc
xor eax, eax
pop edi
pop esi
pop ebx
leave
ret
Function at 0x401005
Capabilities:
Persist via windows service
Set registry value

Disassembly:
jmp 0x4011b0
sub esp, 0x204
or ecx, 0xffffffff
xor eax, eax
lea edx, [esp + 0x104]
push ebx
push esi
push edi
mov edi, str.SYSTEMCurrentControlSetServices_
repne scasb al, byte es:[edi]
not ecx
sub edi, ecx
mov eax, ecx
mov esi, edi
mov edi, edx
lea edx, [esp + 0x110]
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, eax
xor eax, eax
and ecx, 3
rep movsb byte es:[edi], byte [esi]
mov edi, str.HxhyTempServer
or ecx, 0xffffffff
repne scasb al, byte es:[edi]
not ecx
sub edi, ecx
mov esi, edi
mov ebx, ecx
mov edi, edx
or ecx, 0xffffffff
repne scasb al, byte es:[edi]
mov ecx, ebx
dec edi
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, ebx
lea eax, [esp + 0xc]
and ecx, 3
push eax
rep movsb byte es:[edi], byte [esi]
lea ecx, [esp + 0x114]
push ecx
push 0x80000002
call dword [sym.imp.ADVAPI32.dll_RegCreateKeyA]
test eax, eax
je 0x40123b
pop edi
pop esi
xor eax, eax
pop ebx
add esp, 0x204
ret
mov ecx, 0xc
mov esi, 0x40da84
lea edi, [esp + 0x10]
xor eax, eax
rep movsd dword es:[edi], dword [esi]
movsb byte es:[edi], byte [esi]
mov ecx, 0x33
lea edi, [esp + 0x41]
rep stosd dword es:[edi], eax
stosw word es:[edi], ax
stosb byte es:[edi], al
lea edi, [esp + 0x10]
or ecx, 0xffffffff
xor eax, eax
lea edx, [esp + 0x10]
repne scasb al, byte es:[edi]
not ecx
push ecx
push edx
push 1
push eax
mov eax, dword [esp + 0x1c]
push str.Description
push eax
call dword [sym.imp.ADVAPI32.dll_RegSetValueExA]
mov ecx, dword [esp + 0xc]
push ecx
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
pop edi
pop esi
mov eax, 1
pop ebx
add esp, 0x204
ret