joyce8/EMBER2024-capa huggingface dataset:
Function at 0x4014f2
Capabilities:
Contain obfuscated stackstrings

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x14
push esi
xor esi, esi
inc esi
call fcn.00404ac2
mov ecx, eax
call fcn.0040490c
test eax, eax
je 0x401556
lea ecx, [ebp - 0x14]
mov dword [ebp - 0x14], 0x51676552
push ecx
push eax
mov dword [ebp - 7], 0x577845
mov dword [ebp - 0xd], 0x6c615679
mov word [ebp - 9], 0x6575
mov word [ebp - 0x10], 0x6575
mov byte [ebp - 0xe], 0x72
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
test eax, eax
je 0x401556
push dword [ebp + 0x1c]
push dword [ebp + 0x18]
push dword [ebp + 0x14]
push dword [ebp + 0x10]
push dword [ebp + 0xc]
push dword [ebp + 8]
call eax
mov esi, eax
mov eax, esi
pop esi
leave
ret

Function at 0x4017a5
Capabilities:
Delete directory
Delete file
Enumerate files on windows
Enumerate files recursively
Move file

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x458
lea eax, [ebp - 0x208]
push ebx
push edi
push dword [ebp + 8]
mov ebx, 0x208
push ebx
push eax
call fcn.004217b8
push 0x4414fc
lea eax, [ebp - 0x208]
push ebx
push eax
call fcn.004100d8
add esp, 0x18
lea eax, [ebp - 0x458]
push eax
lea eax, [ebp - 0x208]
push eax
call dword [sym.imp.KERNEL32.dll_FindFirstFileW]
mov edi, dword [sym.imp.KERNEL32.dll_MoveFileExW]
mov ebx, eax
lea eax, [ebp - 0x42c]
push 0x441504
push eax
call fcn.004219e8
pop ecx
pop ecx
test eax, eax
je 0x4018e0
lea eax, [ebp - 0x42c]
push 0x441508
push eax
call fcn.004219e8
pop ecx
pop ecx
test eax, eax
je 0x4018e0
push dword [ebp + 8]
lea eax, [ebp - 0x208]
push 0x208
push eax
call fcn.004217b8
push 0x441510
lea eax, [ebp - 0x208]
push 0x208
push eax
call fcn.004100d8
lea eax, [ebp - 0x42c]
push eax
lea eax, [ebp - 0x208]
push 0x208
push eax
call fcn.004100d8
add esp, 0x24
test byte [ebp - 0x458], 0x10
je 0x4018a7
lea eax, [ebp - 0x208]
push eax
call dword [sym.imp.SHLWAPI.dll_PathIsDirectoryEmptyW]
test eax, eax
jne 0x401898
lea eax, [ebp - 0x208]
push eax
call fcn.004017a5
pop ecx
lea eax, [ebp - 0x208]
push eax
call dword [sym.imp.KERNEL32.dll_RemoveDirectoryW]
jmp 0x4018d0
test byte [ebp - 0x458], 1
je 0x4018c3
lea eax, [ebp - 0x208]
push 0x80
push eax
call fcn.00421a43
pop ecx
pop ecx
lea eax, [ebp - 0x208]
push eax
call dword [sym.imp.KERNEL32.dll_DeleteFileW]
test eax, eax
jne 0x4018e0
push 4
push eax
lea eax, [ebp - 0x208]
push eax
call edi
lea eax, [ebp - 0x458]
push eax
push ebx
call dword [sym.imp.KERNEL32.dll_FindNextFileW]
test eax, eax
jne 0x4017f6
push ebx
call dword [sym.imp.KERNEL32.dll_FindClose]
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.dll_RemoveDirectoryW]
test eax, eax
jne 0x401912
push 4
push eax
push dword [ebp + 8]
call edi
pop edi
pop ebx
leave
ret

Function at 0x401916
Capabilities:
Delete registry value

Disassembly:
push ebp
mov ebp, esp
push ecx
lea eax, [ebp - 4]
push eax
push 2
push 0
push dword [ebp + 0xc]
push dword [ebp + 8]
call fcn.00401496
add esp, 0x14
test eax, eax
jne 0x401949
push dword [ebp + 0x10]
push dword [ebp - 4]
call dword [sym.imp.ADVAPI32.dll_RegDeleteValueW]
push dword [ebp - 4]
call fcn.00402463
pop ecx
leave
ret
Function at 0x40194b
Capabilities:
Create thread

Disassembly:
xor eax, eax
push eax
push eax
push eax
push 0x4039d5
push eax
push eax
call dword [sym.imp.KERNEL32.dll_CreateThread]
mov dword [0x44cbd8], eax
ret

Function at 0x401b0c
Capabilities:
Check http status code

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x48
push ebx
push esi
push edi
push 0x6f
pop esi
push 0x77
mov edi, ecx
mov word [ebp - 0x3e], si
pop ecx
push 0x6c
pop eax
push 0x67
pop edx
push 0x2e
mov word [ebp - 0x48], cx
xor ebx, ebx
mov word [ebp - 0x44], cx
mov word [ebp - 0x38], ax
mov word [ebp - 0x46], cx
pop ecx
push 0x6d
pop eax
push 0x65
mov word [ebp - 0x2e], ax
pop eax
push 0x63
mov word [ebp - 0x36], ax
pop eax
mov word [ebp - 0x32], ax
xor eax, eax
mov word [ebp - 0x2c], ax
inc eax
push eax
push 0x1bb
sub esp, 0x18
mov word [ebp - 0x34], cx
mov word [ebp - 0x42], cx
lea eax, [ebp - 0x48]
mov ecx, esp
mov word [ebp - 0x40], dx
mov word [ebp - 0x3c], si
push eax
mov word [ebp - 0x3a], dx
mov word [ebp - 0x30], si
call fcn.00404c4f
mov ecx, edi
call fcn.00403f0a
cmp byte [edi + 0x18], bl
je 0x401c46
push 0x4415e4
lea ecx, [ebp - 0x28]
call fcn.00404c4f
cmp dword [ebp - 0x14], 8
lea eax, [ebp - 0x28]
push ebx
cmovae eax, dword [ebp - 0x28]
push 0x4883000
push ebx
push ebx
push str.HTTP_1.0
push 0x44167c
push eax
push dword [edi + 0x20]
call fcn.0040115f
add esp, 0x20
lea ecx, [ebp - 0x28]
mov esi, eax
call fcn.00404cd1
test esi, esi
je 0x401c3f
lea eax, [ebp - 0xc]
mov dword [ebp - 0xc], 4
push eax
lea eax, [ebp - 4]
push eax
push 0x1f
push esi
call fcn.00402336
or dword [ebp - 4], 0x180
lea eax, [ebp - 4]
push 4
push eax
push 0x1f
push esi
call fcn.004013be
push ebx
push ebx
push ebx
push ebx
push esi
call fcn.004011d4
push ebx
lea eax, [ebp - 0x10]
mov dword [ebp - 8], ebx
push eax
lea eax, [ebp - 8]
mov dword [ebp - 0x10], 4
push eax
push 0x20000013
push esi
call fcn.004022d1
add esp, 0x48
movzx ebx, bl
cmp dword [ebp - 8], 0xc8
push 1
pop ecx
cmove ebx, ecx
push esi
call fcn.00401239
pop ecx
mov ecx, edi
call fcn.00403f69
pop edi
pop esi
mov al, bl
pop ebx
leave
ret

Function at 0x402257
Capabilities:
Contain obfuscated stackstrings

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x18
push ebx
xor ebx, ebx
call fcn.00404ac2
mov ecx, eax
call fcn.0040490c
test eax, eax
je 0x4022cc
lea ecx, [ebp - 0x18]
mov dword [ebp - 0x15], 0x54747375
push ecx
push eax
mov dword [ebp - 0xe], 0x6972506e
mov word [ebp - 9], 0x6c69
mov dword [ebp - 6], 0x736567
mov word [ebp - 0x18], 0x6441
mov byte [ebp - 0xa], 0x76
mov word [ebp - 0x11], 0x6b6f
mov byte [ebp - 0xf], 0x65
mov byte [ebp - 0x16], 0x6a
mov byte [ebp - 7], 0x65
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
test eax, eax
je 0x4022cc
push dword [ebp + 0x1c]
push dword [ebp + 0x18]
push dword [ebp + 0x14]
push dword [ebp + 0x10]
push dword [ebp + 0xc]
push dword [ebp + 8]
call eax
mov ebx, eax
mov eax, ebx
pop ebx
leave
ret
Function at 0x4022d1
Capabilities:
Contain obfuscated stackstrings

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x10
push ebx
xor ebx, ebx
call fcn.00404ac2
mov ecx, eax
call fcn.00404a5a
test eax, eax
je 0x402331
lea ecx, [ebp - 0x10]
mov dword [ebp - 0xb], 0x79726575
push ecx
push eax
mov word [ebp - 7], 0x6e49
mov word [ebp - 4], 0x576f
mov byte [ebp - 2], bl
mov dword [ebp - 0x10], 0x70747448
mov byte [ebp - 5], 0x66
mov byte [ebp - 0xc], 0x51
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
test eax, eax
je 0x402331
push dword [ebp + 0x18]
push dword [ebp + 0x14]
push dword [ebp + 0x10]
push dword [ebp + 0xc]
push dword [ebp + 8]
call eax
mov ebx, eax
mov eax, ebx
pop ebx
leave
ret

Function at 0x402336
Capabilities:
Contain obfuscated stackstrings

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x18
push ebx
xor ebx, ebx
call fcn.00404ac2
mov ecx, eax
call fcn.00404a5a
test eax, eax
je 0x4023a0
lea ecx, [ebp - 0x18]
mov dword [ebp - 0x18], 0x65746e49
push ecx
push eax
mov dword [ebp - 0x14], 0x74656e72
mov word [ebp - 6], 0x576e
mov dword [ebp - 0xd], 0x704f7972
mov word [ebp - 9], 0x6974
mov byte [ebp - 4], bl
mov word [ebp - 0xf], 0x6575
mov byte [ebp - 7], 0x6f
mov byte [ebp - 0x10], 0x51
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
test eax, eax
je 0x4023a0
push dword [ebp + 0x14]
push dword [ebp + 0x10]
push dword [ebp + 0xc]
push dword [ebp + 8]
call eax
mov ebx, eax
mov eax, ebx
pop ebx
leave
ret

Function at 0x4023a5
Capabilities:
Contain obfuscated stackstrings

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x14
push ebx
xor ebx, ebx
call fcn.00404ac2
mov ecx, eax
call fcn.0040490c
test eax, eax
je 0x4023ff
lea ecx, [ebp - 0x14]
mov dword [ebp - 0x12], 0x72506e65
push ecx
push eax
mov dword [ebp - 0xc], 0x54737365
mov word [ebp - 0x14], 0x704f
mov dword [ebp - 7], 0x6e656b
mov byte [ebp - 8], 0x6f
mov word [ebp - 0xe], 0x636f
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
test eax, eax
je 0x4023ff
push dword [ebp + 0x10]
push dword [ebp + 0xc]
push dword [ebp + 8]
call eax
mov ebx, eax
mov eax, ebx
pop ebx
leave
ret

Function at 0x402463
Capabilities:
Contain obfuscated stackstrings

Disassembly:
push ebp
mov ebp, esp
sub esp, 0xc
push esi
xor esi, esi
inc esi
call fcn.00404ac2
mov ecx, eax
call fcn.0040490c
test eax, eax
je 0x4024bb
lea ecx, [ebp - 0xc]
mov word [ebp - 2], 0x79
push ecx
push eax
mov word [ebp - 0xb], 0x6765
mov word [ebp - 8], 0x6f6c
mov word [ebp - 5], 0x4b65
mov byte [ebp - 3], 0x65
mov byte [ebp - 0xc], 0x52
mov byte [ebp - 9], 0x43
mov byte [ebp - 6], 0x73
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
test eax, eax
je 0x4024bb
push dword [ebp + 8]
call eax
mov esi, eax
mov eax, esi
pop esi
leave
ret
Function at 0x402676
Capabilities:
Hide graphical window

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x244
mov eax, dword [ebp + 8]
push ebx
push esi
mov dword [0x44ca30], eax
lea eax, [ebp - 0x3c]
push edi
push eax
call dword [sym.imp.USER32.dll_GetDesktopWindow]
push eax
call dword [sym.imp.USER32.dll_GetWindowRect]
mov eax, dword [ebp - 0x34]
cdq
and edx, 3
lea ebx, [edx + eax]
mov eax, dword [ebp - 0x30]
cdq
and edx, 3
sar ebx, 2
lea edi, [edx + eax]
mov eax, 0x140
sar edi, 2
cmp ebx, eax
cmovl ebx, eax
add eax, 0xffffff88
cmp edi, eax
cmovl edi, eax
mov eax, dword [ebp - 0x34]
cdq
sub eax, edx
mov esi, eax
mov eax, ebx
cdq
sub eax, edx
sar esi, 1
sar eax, 1
sub esi, eax
mov eax, dword [ebp - 0x30]
cdq
sub eax, edx
mov ecx, eax
mov eax, edi
cdq
sub eax, edx
sar ecx, 1
sar eax, 1
sub ecx, eax
xor eax, eax
push eax
push dword [ebp + 8]
push eax
push eax
push edi
push ebx
push ecx
push esi
mov esi, dword [sym.imp.USER32.dll_CreateWindowExW]
push 0xca0000
push 0x44ca38
push 0x44cb00
push 0x300
call esi
mov dword [0x44ca34], eax
test eax, eax
je 0x402872
lea ecx, [ebp - 0x2c]
push ecx
push eax
call dword [sym.imp.USER32.dll_GetClientRect]
push 0x73
pop edi
push 0x74
pop edx
push 0x78
xor eax, eax
mov word [ebp - 4], di
mov word [ebp - 2], ax
pop eax
push 0x61
pop ecx
push 0x41
mov word [ebp - 0x1a], ax
pop eax
push 0x72
mov word [ebp - 0xa], ax
pop eax
push 0x70
mov word [ebp - 0x16], ax
pop eax
push 0x46
mov word [ebp - 6], ax
mov word [ebp - 8], ax
pop eax
push 0x45
mov word [ebp - 0x12], ax
pop eax
mov word [ebp - 0xe], di
xor edi, edi
push 0x208
mov word [ebp - 0x1c], ax
lea eax, [ebp - 0x244]
push edi
push eax
mov word [ebp - 0x18], dx
mov word [ebp - 0x10], cx
mov word [ebp - 0x14], cx
mov word [ebp - 0xc], dx
call fcn.00407330
lea eax, [ebp - 0x1c]
push eax
push str.You_are_about_to_remove_the_following_application:__s._Are_you_sure_you_want_to_delete_the_application_
push 0xffffffffffffffff
lea eax, [ebp - 0x244]
push 0x104
push eax
call fcn.00404b86
mov eax, dword [ebp - 0x24]
add esp, 0x20
add eax, 0xffffffec
mov ebx, 0x50000000
push edi
push dword [0x44ca30]
push edi
push dword [0x44ca34]
push 0x32
push eax
push 0xa
push 0xa
push ebx
lea eax, [ebp - 0x244]
push eax
push str.Static
push edi
call esi
push edi
push dword [0x44ca30]
mov dword [0x44cbc8], eax
mov eax, dword [ebp - 0x20]
push 0x6e
push dword [0x44ca34]
add eax, 0xffffffd8
push 0x1e
push 0x46
push eax
mov eax, dword [ebp - 0x24]
add eax, 0xffffff60
push eax
push ebx
push str.Uninstall
mov edi, str.Button
push edi
push 0
call esi
push 0
push dword [0x44ca30]
mov dword [0x44cbcc], eax
mov eax, dword [ebp - 0x20]
push 0x6d
push dword [0x44ca34]
add eax, 0xffffffd8
push 0x1e
push 0x46
push eax
mov eax, dword [ebp - 0x24]
add eax, 0xffffffb0
push eax
push ebx
push str.Cancel
push edi
push 0
call esi
push dword [ebp + 0xc]
mov dword [0x44cbd0], eax
push dword [0x44ca34]
call dword [sym.imp.USER32.dll_ShowWindow]
push dword [0x44ca34]
call dword [sym.imp.USER32.dll_UpdateWindow]
xor eax, eax
inc eax
pop edi
pop esi
pop ebx
leave
ret
Function at 0x402ac3
Capabilities:
Delete file
Get common file path
Move file

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x890
push ebx
push esi
push dword [ebp + 0x10]
push 0x441360
call dword [sym.imp.KERNEL32.dll_lstrcmpiW]
test eax, eax
je 0x402be3
mov esi, 0x208
lea eax, [ebp - 0x688]
push esi
xor ebx, ebx
push ebx
push eax
call fcn.00407330
push esi
lea eax, [ebp - 0x480]
push ebx
push eax
call fcn.00407330
push esi
lea eax, [ebp - 0x278]
push ebx
push eax
call fcn.00407330
add esp, 0x24
lea eax, [ebp - 0x688]
mov esi, 0x104
push esi
push eax
push ebx
call dword [sym.imp.KERNEL32.dll_GetModuleFileNameW]
lea eax, [ebp - 0x480]
push eax
push esi
call fcn.00401114
pop ecx
pop ecx
lea eax, [ebp - 0x278]
push eax
push ebx
push str.Unin_
lea eax, [ebp - 0x480]
push eax
call dword [sym.imp.KERNEL32.dll_GetTempFileNameW]
lea eax, [ebp - 0x278]
push eax
call dword [sym.imp.KERNEL32.dll_DeleteFileW]
lea eax, [ebp - 0x278]
push eax
call dword [sym.imp.SHLWAPI.dll_PathRemoveExtensionW]
push str..exe
lea eax, [ebp - 0x278]
push esi
push eax
call fcn.004100d8
push ebx
lea eax, [ebp - 0x278]
push eax
lea eax, [ebp - 0x688]
push eax
call fcn.00401000
add esp, 0x18
lea eax, [ebp - 0x70]
push 0x44
pop edx
mov ecx, edx
mov byte [eax], bl
inc eax
sub ecx, 1
jne 0x402ba0
push 0x441380
lea eax, [ebp - 0x278]
mov dword [ebp - 0x70], edx
push esi
push eax
call fcn.004100d8
lea eax, [ebp - 0x2c]
push eax
lea eax, [ebp - 0x70]
push eax
push ebx
push ebx
push 0x50
push ebx
push ebx
push ebx
lea eax, [ebp - 0x278]
push eax
push ebx
call fcn.00401051
add esp, 0x34
xor eax, eax
jmp 0x402ca3
mov esi, dword [sym.imp.USER32.dll_LoadStringW]
push edi
mov edi, dword [ebp + 8]
push 0x64
push 0x44ca38
push 0x6a
push edi
call esi
push 0x64
push 0x44cb00
push 0x71
push edi
call esi
push edi
call fcn.0040159d
push dword [ebp + 0x14]
push edi
call fcn.00402676
add esp, 0xc
test eax, eax
je 0x402ca2
push 0x71
push edi
call dword [sym.imp.USER32.dll_LoadAcceleratorsW]
mov esi, dword [sym.imp.USER32.dll_GetMessageW]
mov edi, eax
xor ebx, ebx
jmp 0x402c5a
lea eax, [ebp - 0x1c]
push eax
push edi
push dword [ebp - 0x1c]
call dword [sym.imp.USER32.dll_TranslateAcceleratorW]
test eax, eax
jne 0x402c5a
lea eax, [ebp - 0x1c]
push eax
call dword [sym.imp.USER32.dll_TranslateMessage]
lea eax, [ebp - 0x1c]
push eax
call dword [sym.imp.USER32.dll_DispatchMessageW]
push ebx
push ebx
push ebx
lea eax, [ebp - 0x1c]
push eax
call esi
test eax, eax
jne 0x402c34
push 0x208
lea eax, [ebp - 0x890]
push ebx
push eax
call fcn.00407330
add esp, 0xc
lea eax, [ebp - 0x890]
push 0x104
push eax
push ebx
call dword [sym.imp.KERNEL32.dll_GetModuleFileNameW]
push 4
push ebx
lea eax, [ebp - 0x890]
push eax
call dword [sym.imp.KERNEL32.dll_MoveFileExW]
mov eax, dword [ebp - 0x14]
pop edi
pop esi
pop ebx
leave
ret 0x10
Function at 0x403212
Capabilities:
Enumerate processes
Terminate process

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x22c
push esi
push edi
xor esi, esi
push esi
push 2
call sub.KERNEL32.dll_CreateToolhelp32Snapshot
mov edi, eax
cmp edi, 0xffffffff
je 0x4032a2
lea eax, [ebp - 0x22c]
mov dword [ebp - 0x22c], 0x22c
push eax
push edi
call sub.KERNEL32.dll_Process32FirstW
cmp eax, 1
jne 0x40329b
push ebx
push dword [ebp + 8]
lea eax, [ebp - 0x208]
push eax
call dword [sym.imp.KERNEL32.dll_lstrcmpiW]
test eax, eax
jne 0x403274
push dword [ebp - 0x224]
push esi
push 1
call dword [sym.imp.KERNEL32.dll_OpenProcess]
mov ebx, eax
test ebx, ebx
jne 0x403288
lea eax, [ebp - 0x22c]
push eax
push edi
call sub.KERNEL32.dll_Process32NextW
cmp eax, 1
je 0x40324b
jmp 0x40329a
push esi
push ebx
call dword [sym.imp.KERNEL32.dll_TerminateProcess]
push ebx
call dword [sym.imp.KERNEL32.dll_CloseHandle]
xor esi, esi
inc esi
pop ebx
push edi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
pop edi
mov eax, esi
pop esi
leave
ret

Function at 0x403373
Capabilities:
Delete registry key
Query or enumerate registry key

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x218
push esi
mov esi, dword [ebp + 0xc]
push esi
push dword [ebp + 8]
call dword [sym.imp.ADVAPI32.dll_RegDeleteKeyW]
test eax, eax
je 0x4033b2
lea eax, [ebp - 8]
push eax
push 0x20019
push 0
push esi
push dword [ebp + 8]
call fcn.00401496
add esp, 0x14
test eax, eax
je 0x4033b8
cmp eax, 2
jne 0x40344d
xor eax, eax
inc eax
pop esi
leave
ret
push edi
push esi
call dword [sym.imp.KERNEL32.dll_lstrlenW]
push 0x5c
lea edi, [esi + eax*2]
pop eax
cmp word [edi - 2], ax
je 0x403402
mov word [edi], ax
add edi, 2
xor eax, eax
mov word [edi], ax
jmp 0x403402
xor eax, eax
mov word [edi], ax
lea eax, [ebp - 0x218]
push 0xffffffffffffffff
push eax
push 0x208
push esi
call fcn.00421905
push esi
push dword [ebp + 8]
call fcn.00403373
add esp, 0x18
test eax, eax
je 0x40342b
xor ecx, ecx
mov dword [ebp - 4], 0x104
lea eax, [ebp - 0x10]
push eax
push ecx
push ecx
push ecx
lea eax, [ebp - 4]
push eax
lea eax, [ebp - 0x218]
push eax
push ecx
push dword [ebp - 8]
call dword [sym.imp.ADVAPI32.dll_RegEnumKeyExW]
test eax, eax
je 0x4033d9
xor eax, eax
mov word [edi - 2], ax
push dword [ebp - 8]
call fcn.00402463
pop ecx
push esi
push dword [ebp + 8]
call dword [sym.imp.ADVAPI32.dll_RegDeleteKeyW]
pop edi
test eax, eax
je 0x4033b2
xor eax, eax
jmp 0x4033b5
Function at 0x403454
Capabilities:
Get common file path
Get program files directory

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x224
push 0x41
pop eax
push 0x78
mov word [ebp - 0xa], ax
pop eax
push 0x74
pop ecx
push 0x70
mov word [ebp - 0x1a], ax
xor eax, eax
mov word [ebp - 2], ax
pop eax
push 0x61
mov word [ebp - 6], ax
mov word [ebp - 8], ax
pop eax
push 0x72
mov word [ebp - 0x14], ax
mov word [ebp - 0x10], ax
pop eax
push 0x46
mov word [ebp - 0x16], ax
pop eax
push 0x45
mov word [ebp - 0x12], ax
pop eax
push 0x73
mov word [ebp - 0x1c], ax
pop eax
mov word [ebp - 4], ax
mov word [ebp - 0xe], ax
lea eax, [ebp - 0x1c]
push 0x4414f0
push eax
mov word [ebp - 0xc], cx
mov word [ebp - 0x18], cx
call dword [sym.imp.KERNEL32.dll_lstrcmpiW]
test eax, eax
je 0x403569
push esi
push edi
push 0x208
xor edi, edi
lea eax, [ebp - 0x224]
push edi
push eax
call fcn.00407330
mov esi, dword [sym.imp.SHELL32.dll_SHGetSpecialFolderPathW]
lea eax, [ebp - 0x224]
add esp, 0xc
push edi
push 0x2a
push eax
push edi
call esi
lea eax, [ebp - 0x1c]
push eax
lea eax, [ebp - 0x224]
push eax
call fcn.0040356b
lea eax, [ebp - 0x1c]
push eax
lea eax, [ebp - 0x224]
push eax
call fcn.00401963
add esp, 0x10
lea eax, [ebp - 0x224]
push edi
push 0x23
push eax
push edi
call esi
lea eax, [ebp - 0x1c]
push eax
lea eax, [ebp - 0x224]
push eax
call fcn.00401963
pop ecx
pop ecx
push edi
push 0x1c
lea eax, [ebp - 0x224]
push eax
push edi
call esi
lea eax, [ebp - 0x1c]
push eax
lea eax, [ebp - 0x224]
push eax
call fcn.0040356b
lea eax, [ebp - 0x1c]
push eax
lea eax, [ebp - 0x224]
push eax
call fcn.00401963
add esp, 0x10
pop edi
pop esi
leave
ret

Function at 0x4035b3
Capabilities:
Check if file exists

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x208
lea eax, [ebp - 0x208]
push 0x208
push 0
push eax
call fcn.00407330
push dword [ebp + 0x10]
lea eax, [ebp - 0x208]
push dword [ebp + 0xc]
push dword [ebp + 8]
push str._s_s_s
push 0xffffffffffffffff
push 0x104
push eax
call fcn.00404b86
add esp, 0x28
lea eax, [ebp - 0x208]
push eax
call dword [sym.imp.SHLWAPI.dll_PathFileExistsW]
test eax, eax
je 0x40361c
lea eax, [ebp - 0x208]
push eax
call dword [sym.imp.GDI32.dll_RemoveFontResourceW]
push 0xfa
call dword [sym.imp.KERNEL32.dll_Sleep]
leave
ret

Function at 0x42e966
Capabilities:
Set environment variable

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
pop ebp
jmp fcn.0042e140

Function at 0x42e971
Capabilities:
Set environment variable

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
pop ebp
jmp fcn.0042e37b

Function at 0x42f52f
Capabilities:
Create thread
Print debug messages

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
pop ebp
jmp fcn.0042f2b6
Function at 0x402fb4
Capabilities:
Generate random numbers using the delphi lcg

Disassembly:
push ebx
xor ebx, ebx
imul edx, dword [ebx + 0x470008], 0x8088405
inc edx
mov dword [ebx + 0x470008], edx
mul edx
mov eax, edx
pop ebx
ret

Function at 0x4036b4
Capabilities:
Query or enumerate registry value

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

Function at 0x404558
Capabilities:
Write file on windows

Disassembly:
push ecx
cmp byte [0x4e1048], 0
je 0x4045b9
cmp word [0x4e121c], 0xd7b2
jne 0x404581
cmp dword [0x4e1224], 0
jbe 0x404581
mov eax, 0x4e1218
call dword [0x4e1234]
push 0
lea eax, [esp + 4]
push eax
push 0x1e
push str.Runtime_error_____at_00000000
push 0xfffffffffffffff5
call sub.kernel32.dll_GetStdHandle
push eax
call sub.kernel32.dll_WriteFile
push 0
lea eax, [esp + 4]
push eax
push 2
push 0x4045e0
push 0xfffffffffffffff5
call sub.kernel32.dll_GetStdHandle
push eax
call sub.kernel32.dll_WriteFile
pop edx
ret
cmp byte [0x470030], 0
jne 0x4045d5
push 0
push str.Error
push str.Runtime_error_____at_00000000
push 0
call sub.user32.dll_MessageBoxA
pop edx
ret
Function at 0x408100
Capabilities:
Encode data using xor

Disassembly:
push ebx
push esi
push edi
mov esi, eax
mov eax, edx
test esi, esi
je 0x408190
mov edx, dword [esi - 4]
mov edi, eax
test edx, edx
jle 0x408190
mov ecx, dword [eax]
mov ebx, edx
test ecx, ecx
je 0x408143
test edx, 3
jne 0x408132
xor edx, dword [ecx - 4]
cmp edx, 3
jbe 0x40813d
jmp 0x408143
or edx, 2
xor edx, dword [ecx - 4]
cmp edx, 1
ja 0x408143
cmp dword [ecx - 8], 1
je 0x40814d
mov edx, ebx
or edx, 3
call fcn.00404e24
mov edi, dword [edi]
mov dword [edi - 4], ebx
mov byte [edi + ebx], 0
add ebx, 0xffffffff
and ebx, 0xfffffffc
mov eax, dword [esi + ebx]
mov ecx, eax
or eax, 0x80808080
mov edx, eax
sub eax, 0x7b7b7b7b
xor edx, ecx
or eax, 0x80808080
sub eax, 0x66666666
and eax, edx
shr eax, 2
xor eax, ecx
mov dword [edi + ebx], eax
mov eax, dword [esi + ebx - 4]
sub ebx, 4
jge 0x40815f
pop edi
pop esi
pop ebx
ret
pop edi
pop esi
pop ebx
jmp fcn.004046d8

Function at 0x40819c
Capabilities:
Encode data using xor

Disassembly:
push ebx
push esi
push edi
mov esi, eax
mov eax, edx
test esi, esi
je 0x40822c
mov edx, dword [esi - 4]
mov edi, eax
test edx, edx
jle 0x40822c
mov ecx, dword [eax]
mov ebx, edx
test ecx, ecx
je 0x4081df
test edx, 3
jne 0x4081ce
xor edx, dword [ecx - 4]
cmp edx, 3
jbe 0x4081d9
jmp 0x4081df
or edx, 2
xor edx, dword [ecx - 4]
cmp edx, 1
ja 0x4081df
cmp dword [ecx - 8], 1
je 0x4081e9
mov edx, ebx
or edx, 3
call fcn.00404e24
mov edi, dword [edi]
mov dword [edi - 4], ebx
mov byte [edi + ebx], 0
add ebx, 0xffffffff
and ebx, 0xfffffffc
mov eax, dword [esi + ebx]
mov ecx, eax
or eax, 0x80808080
mov edx, eax
sub eax, 0x5b5b5b5b
xor edx, ecx
or eax, 0x80808080
sub eax, 0x66666666
and eax, edx
shr eax, 2
xor eax, ecx
mov dword [edi + ebx], eax
mov eax, dword [esi + ebx - 4]
sub ebx, 4
jge 0x4081fb
pop edi
pop esi
pop ebx
ret
pop edi
pop esi
pop ebx
jmp fcn.004046d8

Function at 0x40b490
Capabilities:
Get geographical location

Disassembly:
push ebp
mov ebp, esp
add esp, 0xffffff00
push ebx
push esi
mov esi, ecx
mov ebx, dword [ebp + 8]
push pe_nt_image_headers32
lea ecx, [ebp - 0x100]
push ecx
push edx
push eax
call sub.kernel32.dll_GetLocaleInfoA_1
test eax, eax
jle 0x40b4c9
mov ecx, eax
dec ecx
lea edx, [ebp - 0x100]
mov eax, ebx
call fcn.004047c8
jmp 0x40b4d2
mov eax, ebx
mov edx, esi
call fcn.0040472c
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 4

Function at 0x40b4dc
Capabilities:
Get geographical location

Disassembly:
push ebx
push esi
push edi
push ecx
mov ebx, ecx
mov esi, edx
mov edi, eax
push 2
lea eax, [esp + 4]
push eax
push esi
push edi
call sub.kernel32.dll_GetLocaleInfoA_1
test eax, eax
jle 0x40b4fe
movzx eax, byte [esp]
jmp 0x40b500
mov eax, ebx
pop edx
pop edi
pop esi
pop ebx
ret