joyce8/EMBER2024-capa huggingface dataset:
Function at 0x41c750
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.0040f1d0
mov dword [ebp - 4], esp
cmp dword [ebp - 4], 0
je 0x41c81b
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 0x41c81b
mov bx, 0x140
mov edi, dword [ebp + 0x14]
mov eax, edi
and al, 0xf
cmp al, 0xc
je 0x41c7ce
mov ebx, edi
and bx, 0xf
or bx, 0x150
test edi, 0x80
je 0x41c7d9
or bh, 8
and edi, 0x8000000
je 0x41c7f4
mov eax, dword [0x45ef9c]
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 0x41c81b
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 0x41cbf0
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 0x41cc1b
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 0x41cc3f
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 0x41cc5a
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 0x41f40c
Capabilities:
Extract resource via kernel32 functions

Disassembly:
push ebx
mov ebx, dword [esp + 8]
push esi
mov eax, ebx
push edi
mov edi, ecx
shr eax, 0x10
test ax, ax
mov dword [edi + 0x40], ebx
jne 0x41f42e
cmp dword [edi + 0x3c], 0
jne 0x41f42e
movzx eax, bx
mov dword [edi + 0x3c], eax
call fcn.00436608
mov esi, dword [eax + 0xc]
push 5
push ebx
push esi
call dword [sym.imp.KERNEL32.dll_FindResourceA]
push eax
push esi
call dword [sym.imp.KERNEL32.dll_LoadResource]
push esi
mov ecx, edi
push dword [esp + 0x18]
push eax
call fcn.0041f45b
pop edi
pop esi
pop ebx
ret 8

Function at 0x41f4a9
Capabilities:
Extract resource via kernel32 functions

Disassembly:
push ebx
push esi
push edi
mov ebx, ecx
xor edi, edi
call fcn.00436608
mov esi, dword [eax + 0xc]
push 5
push dword [esp + 0x14]
push esi
call dword [sym.imp.KERNEL32.dll_FindResourceA]
push eax
push esi
call dword [sym.imp.KERNEL32.dll_LoadResource]
test eax, eax
je 0x41f4da
push eax
call dword [sym.imp.KERNEL32.dll_LockResource]
mov edi, eax
push esi
mov ecx, ebx
push dword [esp + 0x18]
push edi
call fcn.0041f4ed
pop edi
pop esi
pop ebx
ret 8
Function at 0x41f7df
Capabilities:
Extract resource via kernel32 functions

Disassembly:
mov eax, 0x43d334
call fcn.0040f618
sub esp, 0x18
push ebx
push esi
mov esi, ecx
push edi
mov dword [ebp - 0x10], esp
mov dword [ebp - 0x1c], esi
mov eax, dword [esi + 0x48]
mov edi, dword [esi + 0x44]
mov dword [ebp - 0x18], eax
call fcn.00436608
cmp dword [esi + 0x40], 0
mov ebx, dword [eax + 0xc]
je 0x41f81e
call fcn.00436608
mov ebx, dword [eax + 0xc]
push 5
push dword [esi + 0x40]
push ebx
call dword [sym.imp.KERNEL32.dll_FindResourceA]
push eax
push ebx
call dword [sym.imp.KERNEL32.dll_LoadResource]
mov edi, eax
test edi, edi
je 0x41f82c
push edi
call dword [sym.imp.KERNEL32.dll_LockResource]
mov dword [ebp - 0x18], eax
cmp dword [ebp - 0x18], 0
jne 0x41f83a
or eax, 0xffffffff
jmp 0x41f922
mov ecx, esi
call fcn.0041f755
mov dword [ebp - 0x14], eax
call fcn.0042168a
xor edi, edi
cmp dword [ebp - 0x14], edi
mov dword [ebp - 0x20], edi
je 0x41f871
push dword [ebp - 0x14]
call dword [sym.imp.USER32.dll_IsWindowEnabled]
test eax, eax
je 0x41f871
push edi
push dword [ebp - 0x14]
call dword [sym.imp.USER32.dll_EnableWindow]
mov dword [ebp - 0x20], 1
push esi
mov dword [ebp - 4], edi
call fcn.0042163e
push dword [ebp - 0x14]
call fcn.0042118b
push ebx
push eax
push dword [ebp - 0x18]
mov ecx, esi
call fcn.0041f4ed
cmp eax, edi
je 0x41f8e4
test byte [esi + 0x24], 0x10
je 0x41f8b2
push 4
mov ecx, esi
pop ebx
call fcn.0042093f
test ah, 1
je 0x41f8aa
push 5
pop ebx
push ebx
mov ecx, esi
call fcn.00423962
cmp dword [esi + 0x1c], edi
je 0x41f8e4
push 0x97
push edi
push edi
push edi
push edi
push edi
mov ecx, esi
call fcn.00420ab0
jmp 0x41f8e4
or dword [ebp - 4], 0xffffffff
cmp dword [ebp - 0x20], edi
je 0x41f8f8
push 1
push dword [ebp - 0x14]
call dword [sym.imp.USER32.dll_EnableWindow]
cmp dword [ebp - 0x14], edi
je 0x41f911
call dword [sym.imp.USER32.dll_GetActiveWindow]
cmp eax, dword [esi + 0x1c]
jne 0x41f911
push dword [ebp - 0x14]
call dword [sym.imp.USER32.dll_SetActiveWindow]
mov eax, dword [esi]
mov ecx, esi
call dword [eax + 0x58]
mov ecx, esi
call fcn.0041f78f
mov eax, dword [esi + 0x2c]
mov ecx, dword [ebp - 0xc]
pop edi
pop esi
mov dword fs:[0], ecx
pop ebx
leave
ret

Function at 0x421b3a
Capabilities:
Get graphical window text

Disassembly:
push esi
mov esi, ecx
mov ecx, dword [esi + 0x38]
test ecx, ecx
jne 0x421b72
push dword [esi + 0x1c]
call dword [sym.imp.USER32.dll_GetWindowTextLengthA]
lea ecx, [eax + 1]
push ecx
mov ecx, dword [esp + 0xc]
push eax
call fcn.004245bb
push eax
push dword [esi + 0x1c]
call dword [sym.imp.USER32.dll_GetWindowTextA]
mov ecx, dword [esp + 8]
push 0xffffffffffffffff
call fcn.00424593
jmp 0x421b7e
mov eax, dword [ecx]
push dword [esp + 8]
call dword [eax + 0x88]
pop esi
ret 4
Function at 0x42370b
Capabilities:
Extract resource via kernel32 functions

Disassembly:
push ebx
push esi
push edi
xor edi, edi
cmp dword [esp + 0x10], edi
mov ebx, ecx
je 0x42374d
call fcn.00436608
mov esi, dword [eax + 0xc]
push 0xf0
push dword [esp + 0x14]
push esi
call dword [sym.imp.KERNEL32.dll_FindResourceA]
cmp eax, edi
je 0x42374d
push eax
push esi
call dword [sym.imp.KERNEL32.dll_LoadResource]
cmp eax, edi
jne 0x423744
xor eax, eax
jmp 0x423755
push eax
call dword [sym.imp.KERNEL32.dll_LockResource]
mov edi, eax
push edi
mov ecx, ebx
call fcn.0042375b
pop edi
pop esi
pop ebx
ret 4
Function at 0x436014
Capabilities:
Extract resource via kernel32 functions

Disassembly:
push ebp
mov ebp, esp
push ecx
push ecx
push esi
mov dword [ebp - 8], ecx
call fcn.00436608
mov esi, dword [eax + 0xc]
push 0xf1
push dword [ebp + 8]
push esi
call dword [sym.imp.KERNEL32.dll_FindResourceA]
test eax, eax
je 0x436051
push eax
push esi
call dword [sym.imp.KERNEL32.dll_LoadResource]
test eax, eax
je 0x436051
push eax
call dword [sym.imp.KERNEL32.dll_LockResource]
mov esi, eax
test esi, esi
jne 0x436055
xor eax, eax
jmp 0x4360d3
movzx eax, word [esi + 6]
push ebx
push edi
shl eax, 2
push eax
call fcn.0041f1fe
and dword [ebp - 4], 0
cmp word [esi + 6], 0
pop ecx
mov ebx, eax
jbe 0x43608d
mov ecx, ebx
lea eax, [esi + 8]
movzx edx, word [eax]
inc dword [ebp - 4]
mov dword [ecx], edx
movzx edx, word [esi + 6]
inc eax
add ecx, 4
inc eax
cmp dword [ebp - 4], edx
jl 0x436077
movzx eax, word [esi + 6]
mov ecx, dword [ebp - 8]
push eax
push ebx
call fcn.004361c4
push ebx
mov edi, eax
call fcn.0041f227
test edi, edi
pop ecx
je 0x4360cf
movzx ecx, word [esi + 4]
movzx eax, word [esi + 2]
lea esi, [ecx + 7]
push ecx
mov ecx, dword [ebp - 8]
lea edx, [eax + 7]
push eax
push esi
push edx
call fcn.00435f8d
push dword [ebp + 8]
mov ecx, dword [ebp - 8]
call fcn.004360d8
mov edi, eax
mov eax, edi
pop edi
pop ebx
pop esi
leave
ret 4

Function at 0x436b6b
Capabilities:
Get thread local storage value

Disassembly:
push ebx
push esi
mov esi, ecx
lea ebx, [esi + 0x1c]
push ebx
call dword [sym.imp.KERNEL32.dll_EnterCriticalSection]
cmp dword [esp + 0x10], 0
jne 0x436b99
push dword [esi]
call dword [sym.imp.KERNEL32.dll_TlsGetValue]
test eax, eax
je 0x436bb7
push dword [esp + 0xc]
mov ecx, esi
push eax
call fcn.00436ad1
jmp 0x436bb7
mov eax, dword [esi + 0x14]
test eax, eax
je 0x436bb7
push edi
push dword [esp + 0x10]
mov edi, dword [eax + 4]
mov ecx, esi
push eax
call fcn.00436ad1
test edi, edi
mov eax, edi
jne 0x436ba1
pop edi
push ebx
call dword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
pop esi
pop ebx
ret 8
Function at 0x10006570
Capabilities:
Read .ini file

Disassembly:
push ebp
mov ebp, dword [esp + 8]
push esi
push edi
mov esi, eax
lea esp, [esp]
mov ecx, esi
call fcn.10005550
mov ecx, dword [esi + 0x1c]
mov edx, dword [esp + 0x14]
push eax
mov eax, dword [esi + 0x20]
push eax
push ecx
push edx
push ebp
push ebx
call dword [sym.imp.KERNEL32.dll_GetPrivateProfileStringA]
test ebx, ebx
je 0x100065aa
test ebp, ebp
je 0x100065aa
add eax, 1
jmp 0x100065ad
add eax, 2
mov ecx, dword [esi + 0x20]
cmp eax, ecx
jb 0x100065d1
mov eax, dword [esi + 0x1c]
lea edi, [ecx + ecx]
push eax
mov dword [esi + 0x20], edi
call fcn.100077d2
push edi
call fcn.100075fe
add esp, 8
mov dword [esi + 0x1c], eax
jmp 0x10006580
mov esi, dword [esi + 0x1c]
mov eax, esi
lea edx, [eax + 1]
lea esp, [esp]
mov cl, byte [eax]
add eax, 1
test cl, cl
jne 0x100065e0
mov ecx, dword [esp + 0x18]
sub eax, edx
push eax
push esi
call fcn.10005620
pop edi
pop esi
pop ebp
ret 0xc
Function at 0x100078da
Capabilities:
Terminate process

Disassembly:
cmp ecx, dword [0x1001b1c0]
jne 0x100078e4
repz ret
jmp fcn.10009076

Function at 0x1000d9e2
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 + 0x1001b690]
je 0x1000d9fd
inc edi
cmp edi, 0x17
jb 0x1000d9ee
cmp edi, 0x17
jae 0x1000db7d
push ebp
push 3
call fcn.1001121e
cmp eax, 1
pop ecx
je 0x1000db49
push 3
call fcn.1001121e
test eax, eax
pop ecx
jne 0x1000da31
cmp dword [0x1001c4a4], 1
je 0x1000db49
cmp ebx, 0xfc
je 0x1000db7c
push str.Runtime_Error__n_nProgram:
mov ebx, 0x314
push ebx
mov ebp, 0x1001caa8
push ebp
call fcn.10008615
add esp, 0xc
test eax, eax
je 0x1000da67
push esi
push esi
push esi
push esi
push esi
call fcn.1000794e
add esp, 0x14
push 0x104
mov esi, 0x1001cac1
push esi
push 0
mov byte [0x1001cbc5], 0
call dword [sym.imp.KERNEL32.dll_GetModuleFileNameA]
test eax, eax
jne 0x1000daab
push str._program_name_unknown_
push 0x2fb
push esi
call fcn.10008615
add esp, 0xc
test eax, eax
je 0x1000daab
xor eax, eax
push eax
push eax
push eax
push eax
push eax
call fcn.1000794e
add esp, 0x14
push esi
call fcn.10008110
inc eax
cmp eax, 0x3c
pop ecx
jbe 0x1000daf0
push esi
call fcn.10008110
sub esi, 0x3b
add eax, esi
push 3
mov ecx, 0x1001cdbc
push 0x1001791c
sub ecx, eax
push ecx
push eax
call fcn.1001116b
add esp, 0x14
test eax, eax
je 0x1000daf0
xor esi, esi
push esi
push esi
push esi
push esi
push esi
call fcn.1000794e
add esp, 0x14
jmp 0x1000daf2
xor esi, esi
push 0x10017918
push ebx
push ebp
call fcn.100110fa
add esp, 0xc
test eax, eax
je 0x1000db12
push esi
push esi
push esi
push esi
push esi
call fcn.1000794e
add esp, 0x14
push dword [edi*8 + 0x1001b694]
push ebx
push ebp
call fcn.100110fa
add esp, 0xc
test eax, eax
je 0x1000db34
push esi
push esi
push esi
push esi
push esi
call fcn.1000794e
add esp, 0x14
push 0x12010
push str.Microsoft_Visual_C_Runtime_Library
push ebp
call fcn.10010f3d
add esp, 0xc
jmp 0x1000db7c
push 0xfffffffffffffff4
call dword [sym.imp.KERNEL32.dll_GetStdHandle]
mov ebp, eax
cmp ebp, esi
je 0x1000db7c
cmp ebp, 0xffffffff
je 0x1000db7c
push 0
lea eax, [esp + 0x14]
push eax
lea esi, [edi*8 + 0x1001b694]
push dword [esi]
call fcn.10008110
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 0x10010f3d
Capabilities:
Link many functions at runtime

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x20
push ebx
push esi
push edi
call fcn.100095c7
xor ebx, ebx
cmp dword [0x1001ce6c], ebx
mov dword [ebp - 8], eax
mov dword [ebp - 4], ebx
mov dword [ebp - 0xc], ebx
mov dword [ebp - 0x10], ebx
jne 0x10011013
push str.USER32.DLL
call dword [sym.imp.KERNEL32.dll_LoadLibraryA]
mov edi, eax
cmp edi, ebx
je 0x100110f3
mov esi, dword [sym.imp.KERNEL32.dll_GetProcAddress]
push 0x100181e0
push edi
call esi
cmp eax, ebx
je 0x100110f3
push eax
call fcn.10009559
mov dword [esp], str.GetActiveWindow
push edi
mov dword [0x1001ce6c], eax
call esi
push eax
call fcn.10009559
mov dword [esp], str.GetLastActivePopup
push edi
mov dword [0x1001ce70], eax
call esi
push eax
call fcn.10009559
mov dword [0x1001ce74], eax
lea eax, [ebp - 0xc]
push eax
call fcn.1000b2d1
test eax, eax
pop ecx
pop ecx
je 0x10010fe1
push ebx
push ebx
push ebx
push ebx
push ebx
call fcn.1000794e
add esp, 0x14
cmp dword [ebp - 0xc], 2
jne 0x10011013
push str.GetUserObjectInformationA
push edi
call esi
push eax
call fcn.10009559
cmp eax, ebx
pop ecx
mov dword [0x1001ce7c], eax
je 0x10011013
push str.GetProcessWindowStation
push edi
call esi
push eax
call fcn.10009559
pop ecx
mov dword [0x1001ce78], eax
mov eax, dword [0x1001ce78]
mov ecx, dword [ebp - 8]
cmp eax, ecx
je 0x10011098
cmp dword [0x1001ce7c], ecx
je 0x10011098
push eax
call fcn.100095d0
push dword [0x1001ce7c]
mov esi, eax
call fcn.100095d0
cmp esi, ebx
pop ecx
pop ecx
mov edi, eax
je 0x10011098
cmp edi, ebx
je 0x10011098
call esi
cmp eax, ebx
je 0x10011065
lea ecx, [ebp - 0x14]
push ecx
push 0xc
lea ecx, [ebp - 0x20]
push ecx
push 1
push eax
call edi
test eax, eax
je 0x10011065
test byte [ebp - 0x18], 1
jne 0x10011098
lea eax, [ebp - 0x10]
push eax
call fcn.1000b308
test eax, eax
pop ecx
je 0x10011080
push ebx
push ebx
push ebx
push ebx
push ebx
call fcn.1000794e
add esp, 0x14
cmp dword [ebp - 0x10], 4
jb 0x1001108f
or dword [ebp + 0x10], 0x200000
jmp 0x100110d3
or dword [ebp + 0x10], 0x40000
jmp 0x100110d3
mov eax, dword [0x1001ce70]
cmp eax, dword [ebp - 8]
je 0x100110d3
push eax
call fcn.100095d0
cmp eax, ebx
pop ecx
je 0x100110d3
call eax
cmp eax, ebx
mov dword [ebp - 4], eax
je 0x100110d3
mov eax, dword [0x1001ce74]
cmp eax, dword [ebp - 8]
je 0x100110d3
push eax
call fcn.100095d0
cmp eax, ebx
pop ecx
je 0x100110d3
push dword [ebp - 4]
call eax
mov dword [ebp - 4], eax
push dword [0x1001ce6c]
call fcn.100095d0
cmp eax, ebx
pop ecx
je 0x100110f3
push dword [ebp + 0x10]
push dword [ebp + 0xc]
push dword [ebp + 8]
push dword [ebp - 4]
call eax
jmp 0x100110f5
xor eax, eax
pop edi
pop esi
pop ebx
leave
ret
Function at 0x401165
Capabilities:
Encrypt data using rc4 prga

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x38
push ebx
mov dword [ebp - 4], 0x19eb94e
mov eax, dword [ebp - 4]
test eax, eax
je 0x401181
mov dword [ebp - 4], 0x466e9dc
mov dword [ebp - 8], 0
push 0x36bc8cd
call fcn.00401446
add esp, 4
mov dword [ebp - 0xc], eax
mov dword [ebp - 0x10], 0
mov dword [ebp - 0x14], 0
mov eax, dword [ebp + 0x14]
mov dword [ebp - 0x18], eax
mov eax, dword [ebp - 0x18]
cmp dword [ebp - 0x14], eax
jae 0x401290
mov dword [ebp - 0x1c], 0x32042e2
mov eax, dword [ebp - 8]
add eax, 1
and eax, 0xff
mov dword [ebp - 8], eax
mov eax, dword [ebp - 0x10]
mov ecx, dword [ebp + 8]
mov edx, dword [ebp - 8]
movzx ecx, byte [ecx + edx]
add eax, ecx
and eax, 0xff
mov dword [ebp - 0x10], eax
mov dword [ebp - 0x24], 0x390d5e0
mov eax, dword [ebp - 0x24]
mov dword [ebp - 0x28], eax
cmp dword [ebp - 0x28], 0x4bc6c57
je 0x4011fc
jmp 0x401205
mov dword [ebp - 0x24], 0x2876f07
jmp 0x401205
mov eax, dword [ebp + 8]
add eax, dword [ebp - 0x10]
push eax
mov eax, dword [ebp + 8]
add eax, dword [ebp - 8]
push eax
call fcn.00401000
add esp, 8
mov dword [ebp - 0x2c], 0x1fbda0d
mov eax, dword [ebp + 8]
mov ecx, dword [ebp + 8]
mov edx, dword [ebp - 8]
movzx ecx, byte [ecx + edx]
mov edx, dword [ebp + 8]
mov ebx, dword [ebp - 0x10]
movzx edx, byte [edx + ebx]
add ecx, edx
and ecx, 0xff
movsx eax, byte [eax + ecx]
mov dword [ebp - 0x30], eax
call fcn.00401451
mov dword [ebp - 0x34], eax
call fcn.00401451
mov dword [ebp - 0x38], eax
mov eax, dword [ebp - 0x38]
sub eax, dword [ebp - 0x34]
cmp eax, 0x64
jle 0x40126a
mov dword [ebp - 0x34], 0x105bc8b
mov eax, dword [ebp - 0x30]
mov ecx, dword [ebp + 0xc]
mov edx, dword [ebp - 0x14]
movsx ecx, byte [ecx + edx]
xor eax, ecx
mov ecx, dword [ebp + 0x10]
mov edx, dword [ebp - 0x14]
mov byte [ecx + edx], al
mov eax, dword [ebp - 0x14]
mov dword [ebp - 0x1c], eax
inc dword [ebp - 0x14]
jmp 0x4011ac
mov dword [ebp - 0x14], 0x110cad7
mov eax, 0
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x401fdb
Capabilities:
Parse pe header

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

Function at 0x4014ab
Capabilities:
Get common file path

Disassembly:
push ebp
mov ebp, esp
push esi
push ebx
sub esp, 0x250
call dword [sym.imp.KERNEL32.dll_GetTickCount]
mov ebx, dword [sym.imp.KERNEL32.dll_GetModuleHandleA]
mov dword [esp], 0
mov dword [ebp - 0x238], 0
mov dword [ebp - 0x234], 0
call ebx
push esi
mov dword [esp + 4], 0
mov dword [esp], 0
mov dword [ebp - 0x228], eax
call dword [sym.imp.KERNEL32.dll_LocalAlloc]
mov dword [ebp - 0x21c], 6
push eax
push eax
mov dword [esp + 4], 0x7f00
mov dword [esp], 0
mov dword [ebp - 0x214], 0
mov dword [ebp - 0x218], 0
call dword [sym.imp.USER32.dll_LoadCursorA]
push edx
push edx
mov dword [esp + 4], 0x7f00
mov dword [esp], 0
mov dword [ebp - 0x220], eax
call dword [sym.imp.USER32.dll_LoadIconA]
push ecx
push ecx
mov dword [ebp - 0x224], eax
lea eax, [ebp - 0x238]
mov dword [esp], eax
call dword [sym.imp.USER32.dll_RegisterClassW]
push esi
mov dword [esp], 0
call ebx
lea ebx, [ebp - 0x210]
push edx
mov dword [esp + 4], 0
mov dword [esp], eax
call dword [sym.imp.USER32.dll_LoadAcceleratorsA]
push ecx
push ecx
mov dword [esp + 4], ebx
mov dword [esp], 0x104
call dword [sym.imp.KERNEL32.dll_GetTempPathW]
push esi
push esi
mov dword [esp], ebx
mov dword [esp + 0x18], 0
mov dword [esp + 0x14], 0
mov dword [esp + 0x10], 3
mov dword [esp + 0xc], 0
mov dword [esp + 8], 0
mov dword [esp + 4], 0x80000000
call dword [sym.imp.KERNEL32.dll_CreateFileW]
sub esp, 0x1c
mov esi, eax
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov dword [esp], esi
mov ebx, eax
call dword [sym.imp.KERNEL32.dll_CloseHandle]
push eax
mov dword [esp], 0
call dword [sym.imp.KERNEL32.dll_LocalFree]
push eax
lea esp, [ebp - 8]
lea eax, [ebx - 3]
pop ebx
pop esi
pop ebp
ret

Function at 0x4016af
Capabilities:
Allocate or change rwx memory

Disassembly:
push ebp
mov ebp, esp
push ebx
sub esp, 0xa4
mov dword [ebp - 0x88], 1
call fcn.004014ab
test eax, eax
jne 0x401749
lea eax, [ebp - 0x8c]
mov dword [esp + 8], 0x40
mov dword [esp + 0xc], eax
mov eax, 0x4021b2
sub eax, 0x401750
mov dword [esp], 0x401750
mov dword [esp + 4], eax
mov dword [ebp - 0x8c], 0
call dword [sym.imp.KERNEL32.dll_VirtualProtect]
sub esp, 0x10
cmp dword [ebp - 0x8c], 0
je 0x401749
lea ebx, [ebp - 0x88]
mov dword [esp], 0
call fcn.00401423
mov dword [esp + 4], ebx
mov dword [esp], 0
call fcn.00401630
mov dword [esp + 8], ebx
mov dword [esp + 4], 0x1ba00
mov dword [esp], 0x40300c
call fcn.00401eb5
xor eax, eax
mov ebx, dword [ebp - 4]
leave
ret
Function at 0x402c93
Capabilities:
Query or enumerate registry key

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x210
push ebx
push esi
lea eax, [ebp - 4]
push edi
push eax
mov eax, dword [0x42a2f0]
or al, 8
xor ebx, ebx
push eax
push ebx
push dword [ebp + 0xc]
push dword [ebp + 8]
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
cmp eax, ebx
jne 0x402d27
mov esi, dword [sym.imp.ADVAPI32.dll_RegEnumKeyW]
mov edi, 0x105
jmp 0x402ce4
cmp dword [ebp + 0x10], ebx
jne 0x402d1b
lea eax, [ebp - 0x210]
push ebx
push eax
push dword [ebp - 4]
call fcn.00402c93
test eax, eax
jne 0x402cf6
lea eax, [ebp - 0x210]
push edi
push eax
push ebx
push dword [ebp - 4]
call esi
test eax, eax
je 0x402ccb
push dword [ebp - 4]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
push 3
call fcn.004065ec
cmp eax, ebx
je 0x402d2e
push ebx
push dword [0x42a2f0]
push dword [ebp + 0xc]
push dword [ebp + 8]
call eax
jmp 0x402d27
push dword [ebp - 4]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
xor eax, eax
inc eax
pop edi
pop esi
pop ebx
leave
ret 0xc
cmp dword [0x42a2f0], ebx
jne 0x402d24
push dword [ebp + 0xc]
push dword [ebp + 8]
call dword [sym.imp.ADVAPI32.dll_RegDeleteKeyW]
test eax, eax
jne 0x402d24
jmp 0x402d27

Function at 0x405371
Capabilities:
Contain obfuscated stackstrings

Disassembly:
mov byte [ebp - 0x662], 7
and byte [ebp - 0x661], 0
mov byte [ebp - 0x660], 0xb0
mov byte [ebp - 0x65f], 0x9d
mov byte [ebp - 0x65e], 0x99
mov byte [ebp - 0x65d], 0x88
mov byte [ebp - 0x65c], 0xb9
mov byte [ebp - 0x65b], 0x94
mov byte [ebp - 0x65a], 0x94
mov byte [ebp - 0x659], 0x97
mov byte [ebp - 0x658], 0x9b
mov byte [ebp - 0x657], 0xf8
lea eax, [ebp - 0x664]
push eax
call fcn.00404866
pop ecx
push eax
push dword [ebp + 0x18]
push dword [ebp + 0x14]
call fcn.0040481b
add esp, 0xc
mov dword [ebp - 0x67c], eax
and byte [ebp - 0x524], 0
and byte [ebp - 0x523], 0
mov byte [ebp - 0x522], 0x15
and byte [ebp - 0x521], 0
mov byte [ebp - 0x520], 0xa2
mov byte [ebp - 0x51f], 0x8f
mov byte [ebp - 0x51e], 0x8b
mov byte [ebp - 0x51d], 0x9a
mov byte [ebp - 0x51c], 0xac
mov byte [ebp - 0x51b], 0x98
mov byte [ebp - 0x51a], 0x8f
mov byte [ebp - 0x519], 0x8f
mov byte [ebp - 0x518], 0xea
invalid
invalid