joyce8/EMBER2024-capa huggingface dataset:
Function at 0x408650
Capabilities:
Access peb ldr_data
Get kernel32 base address

Disassembly:
push 0xffffffffffffffff
push 0x412270
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x1c
push ebp
push esi
push edi
lea ecx, [esp + 0x18]
call fcn.00404c00
mov eax, dword [0x41ac08]
mov ecx, 0x41ac08
mov dword [esp + 0x30], 0
call dword [eax + 0xc]
lea ebp, [eax + 0x10]
mov dword [esp + 0x14], ebp
mov edx, dword [0x41ac08]
mov ecx, 0x41ac08
mov byte [esp + 0x30], 1
call dword [edx + 0xc]
add eax, 0x10
mov dword [esp + 0xc], eax
mov eax, dword [0x41ac08]
mov ecx, 0x41ac08
mov byte [esp + 0x30], 2
call dword [eax + 0xc]
add eax, 0x10
mov dword [esp + 0x10], eax
mov byte [esp + 0x30], 3
call fcn.00408370
push eax
lea ecx, [esp + 0x14]
push 0x4137d0
push ecx
call fcn.00402a90
mov edx, dword [esp + 0x44]
mov eax, dword [edx]
push eax
lea ecx, [esp + 0x1c]
push 0x413358
push ecx
call fcn.00402a90
mov esi, dword [esp + 0x28]
add esp, 0x18
push 0x413285
push esi
lea ecx, [esp + 0x14]
call fcn.004028a0
push str.SOFTWAREMicrosoftWindowsCurrentVersionUninstall_
lea ecx, [esp + 0x1c]
call fcn.00404cf0
mov edi, dword [esp + 0xc]
push 1
push edi
lea ecx, [esp + 0x20]
call fcn.00404d80
lea eax, [esi - 0x10]
mov byte [esp + 0x30], 2
lea edx, [eax + 0xc]
or ecx, 0xffffffff
lock xadd dword [edx], ecx
dec ecx
test ecx, ecx
jg 0x408746
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
call dword [edx + 4]
lea eax, [edi - 0x10]
mov byte [esp + 0x30], 1
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x408765
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
call dword [edx + 4]
lea eax, [ebp - 0x10]
mov byte [esp + 0x30], 0
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
pop edi
pop esi
pop ebp
jg 0x408787
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
call dword [edx + 4]
lea ecx, [esp + 0xc]
mov dword [esp + 0x24], 0xffffffff
call fcn.00404c10
mov ecx, dword [esp + 0x1c]
mov dword fs:[0], ecx
add esp, 0x28
ret
Function at 0x408ee0
Capabilities:
Write file on windows

Disassembly:
push 0xffffffffffffffff
push 0x412318
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 8
mov eax, dword [0x41ac08]
push ebx
push esi
push edi
mov ecx, 0x41ac08
call dword [eax + 0xc]
lea edi, [eax + 0x10]
mov dword [esp + 0xc], edi
mov ecx, dword [esp + 0x24]
push 0
push 0
push 3
push 0
push 1
push 0x40000000
push ecx
mov dword [esp + 0x38], 0
call dword [sym.imp.KERNEL32.DLL_CreateFileA]
mov esi, eax
or ebx, 0xffffffff
cmp esi, ebx
je 0x408f80
push 2
push 0
push 0
push esi
call dword [sym.imp.KERNEL32.DLL_SetFilePointer]
lea eax, [esp + 0xc]
push eax
call fcn.00408ea0
mov edi, dword [esp + 0x10]
mov eax, edi
add esp, 4
lea edx, [eax + 1]
lea ecx, [ecx]
mov cl, byte [eax]
inc eax
test cl, cl
jne 0x408f60
push 0
lea ecx, [esp + 0x14]
push ecx
sub eax, edx
push eax
push edi
push esi
call dword [sym.imp.KERNEL32.DLL_WriteFile]
push esi
call dword [sym.imp.KERNEL32.DLL_CloseHandle]
lea eax, [edi - 0x10]
mov dword [esp + 0x1c], ebx
lea edx, [eax + 0xc]
lock xadd dword [edx], ebx
dec ebx
test ebx, ebx
jg 0x408f9b
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
call dword [edx + 4]
mov ecx, dword [esp + 0x14]
pop edi
pop esi
pop ebx
mov dword fs:[0], ecx
add esp, 0x14
ret
Function at 0x40a6ce
Capabilities:
Accept command line arguments
Parse pe header
Terminate process

Disassembly:
push 0x60
push 0x4138e0
call fcn.0040ac30
mov edi, 0x94
mov eax, edi
call fcn.0040a500
mov dword [ebp - 0x18], esp
mov esi, esp
mov dword [esi], edi
push esi
call dword [sym.imp.KERNEL32.DLL_GetVersionExA]
mov ecx, dword [esi + 0x10]
mov dword [0x41aca8], ecx
mov eax, dword [esi + 4]
mov dword [0x41acb4], eax
mov edx, dword [esi + 8]
mov dword [0x41acb8], edx
mov esi, dword [esi + 0xc]
and esi, 0x7fff
mov dword [0x41acac], esi
cmp ecx, 2
je 0x40a72e
or esi, 0x8000
mov dword [0x41acac], esi
shl eax, 8
add eax, edx
mov dword [0x41acb0], eax
xor esi, esi
push esi
mov edi, dword [sym.imp.KERNEL32.DLL_GetModuleHandleA]
call edi
cmp word [eax], 0x5a4d
jne 0x40a769
mov ecx, dword [eax + 0x3c]
add ecx, eax
cmp dword [ecx], 0x4550
jne 0x40a769
movzx eax, word [ecx + 0x18]
cmp eax, 0x10b
je 0x40a781
cmp eax, 0x20b
je 0x40a76e
mov dword [ebp - 0x1c], esi
jmp 0x40a795
cmp dword [ecx + 0x84], 0xe
jbe 0x40a769
xor eax, eax
cmp dword [ecx + 0xf8], esi
jmp 0x40a78f
cmp dword [ecx + 0x74], 0xe
jbe 0x40a769
xor eax, eax
cmp dword [ecx + 0xe8], esi
setne al
mov dword [ebp - 0x1c], eax
push esi
call fcn.0040ccde
pop ecx
test eax, eax
jne 0x40a7c1
cmp dword [0x41ac6c], 1
jne 0x40a7ae
call fcn.0040db7b
push 0x1c
call fcn.0040da04
push 0xff
call fcn.0040d86d
pop ecx
pop ecx
call fcn.0040e330
mov dword [ebp - 4], esi
call fcn.0040e185
test eax, eax
jge 0x40a7da
push 0x1b
call fcn.0040a6a9
pop ecx
call dword [sym.imp.KERNEL32.DLL_GetCommandLineA]
mov dword [0x41c220], eax
call fcn.0040e063
mov dword [0x41ac64], eax
call fcn.0040dfc1
test eax, eax
jge 0x40a800
push 8
call fcn.0040a6a9
pop ecx
call fcn.0040dd8e
test eax, eax
jge 0x40a811
push 9
call fcn.0040a6a9
pop ecx
call fcn.0040d89d
mov dword [ebp - 0x20], eax
cmp eax, esi
je 0x40a824
push eax
call fcn.0040a6a9
pop ecx
mov dword [ebp - 0x38], esi
lea eax, [ebp - 0x64]
push eax
call dword [sym.imp.KERNEL32.DLL_GetStartupInfoA]
call fcn.0040dd25
mov dword [ebp - 0x68], eax
test byte [ebp - 0x38], 1
je 0x40a845
movzx eax, word [ebp - 0x34]
jmp 0x40a848
push 0xa
pop eax
push eax
push dword [ebp - 0x68]
push esi
push esi
call edi
push eax
call fcn.004043d0
mov edi, eax
mov dword [ebp - 0x6c], edi
cmp dword [ebp - 0x1c], esi
jne 0x40a866
push edi
call fcn.0040d9c4
call fcn.0040d9e6
jmp 0x40a898
or dword [ebp - 4], 0xffffffff
mov eax, edi
lea esp, [ebp - 0x7c]
call fcn.0040ac6b
ret
Function at 0x40d902
Capabilities:
Terminate process

Disassembly:
push ebp
mov ebp, esp
push esi
xor esi, esi
inc esi
cmp dword [0x41ace8], esi
push edi
jne 0x40d922
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.DLL_GetCurrentProcess]
push eax
call dword [sym.imp.KERNEL32.DLL_TerminateProcess]
cmp dword [ebp + 0xc], 0
mov al, byte [ebp + 0x10]
mov dword [0x41ace4], esi
mov byte [0x41ace0], al
jne 0x40d988
mov ecx, dword [0x41bfc8]
test ecx, ecx
je 0x40d969
mov eax, dword [0x41bfc4]
sub eax, 4
cmp eax, ecx
jmp 0x40d962
mov eax, dword [eax]
test eax, eax
je 0x40d954
call eax
mov eax, dword [0x41bfc4]
sub eax, 4
cmp eax, dword [0x41bfc8]
mov dword [0x41bfc4], eax
jae 0x40d94c
mov eax, 0x416038
mov esi, 0x416040
cmp eax, esi
mov edi, eax
jae 0x40d988
mov eax, dword [edi]
test eax, eax
je 0x40d981
call eax
add edi, 4
cmp edi, esi
jb 0x40d979
mov eax, 0x416044
mov esi, 0x41604c
cmp eax, esi
mov edi, eax
jae 0x40d9a7
mov eax, dword [edi]
test eax, eax
je 0x40d9a0
call eax
add edi, 4
cmp edi, esi
jb 0x40d998
cmp dword [ebp + 0x10], 0
pop edi
pop esi
jne 0x40d9c2
push dword [ebp + 8]
mov dword [0x41ace8], 1
call fcn.0040d86d
pop ecx
pop ebp
ret

Function at 0x40da04
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x10c
mov eax, dword [0x4160ac]
xor eax, dword [ebp + 4]
mov ecx, dword [ebp + 8]
push ebx
push esi
mov dword [ebp - 4], eax
xor edx, edx
push edi
xor eax, eax
cmp ecx, dword [eax*8 + 0x4161e8]
je 0x40da31
inc eax
cmp eax, 0x12
jb 0x40da22
mov esi, eax
shl esi, 3
cmp ecx, dword [esi + 0x4161e8]
jne 0x40db65
mov eax, dword [0x41ac6c]
cmp eax, 1
je 0x40db40
cmp eax, edx
jne 0x40da61
cmp dword [0x4160b4], 1
je 0x40db40
cmp ecx, 0xfc
je 0x40db65
push 0x104
lea eax, [ebp - 0x10c]
push eax
push edx
mov byte [ebp - 8], dl
call dword [sym.imp.KERNEL32.DLL_GetModuleFileNameA]
test eax, eax
jne 0x40da9a
lea eax, [ebp - 0x10c]
push str._program_name_unknown_
push eax
call fcn.0040eb40
pop ecx
pop ecx
lea eax, [ebp - 0x10c]
push eax
lea edi, [ebp - 0x10c]
call fcn.0040bd50
inc eax
cmp eax, 0x3c
pop ecx
jbe 0x40dadc
lea eax, [ebp - 0x10c]
push eax
call fcn.0040bd50
mov edi, eax
lea eax, [ebp - 0x10c]
sub eax, 0x3b
push 3
add edi, eax
push 0x4139a4
push edi
call fcn.0040a540
add esp, 0x10
push edi
call fcn.0040bd50
push dword [esi + 0x4161ec]
mov ebx, eax
call fcn.0040bd50
lea eax, [ebx + eax + 0x1c]
pop ecx
add eax, 3
pop ecx
and eax, 0xfffffffc
call fcn.0040a500
mov ebx, esp
push str.Runtime_Error__n_nProgram:
push ebx
call fcn.0040eb40
push edi
push ebx
call fcn.0040eb50
push 0x4139a0
push ebx
call fcn.0040eb50
push dword [esi + 0x4161ec]
push ebx
call fcn.0040eb50
push 0x12010
push str.Microsoft_Visual_C_Runtime_Library
push ebx
call fcn.0040ea3f
add esp, 0x2c
jmp 0x40db65
push edx
lea eax, [ebp + 8]
push eax
lea esi, [esi + 0x4161ec]
push dword [esi]
call fcn.0040bd50
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]
lea esp, [ebp - 0x118]
mov ecx, dword [ebp - 4]
xor ecx, dword [ebp + 4]
call fcn.0040a099
pop edi
pop esi
pop ebx
leave
ret
Function at 0x40ea3f
Capabilities:
Link many functions at runtime

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x10
push ebx
xor ebx, ebx
cmp dword [0x41ae28], ebx
push esi
push edi
jne 0x40eabf
push str.user32.dll
call dword [sym.imp.KERNEL32.DLL_LoadLibraryA]
mov edi, eax
cmp edi, ebx
je 0x40eafa
mov esi, dword [sym.imp.KERNEL32.DLL_GetProcAddress]
push str.MessageBoxA
push edi
call esi
test eax, eax
mov dword [0x41ae28], eax
je 0x40eafa
push str.GetActiveWindow
push edi
call esi
push str.GetLastActivePopup
push edi
mov dword [0x41ae2c], eax
call esi
cmp dword [0x41aca8], 2
mov dword [0x41ae30], eax
jne 0x40eabf
push str.GetUserObjectInformationA
push edi
call esi
test eax, eax
mov dword [0x41ae38], eax
je 0x40eabf
push str.GetProcessWindowStation
push edi
call esi
mov dword [0x41ae34], eax
mov eax, dword [0x41ae34]
test eax, eax
je 0x40eb04
call eax
test eax, eax
je 0x40eaeb
lea ecx, [ebp - 4]
push ecx
push 0xc
lea ecx, [ebp - 0x10]
push ecx
push 1
push eax
call dword [0x41ae38]
test eax, eax
je 0x40eaeb
test byte [ebp - 8], 1
jne 0x40eb04
cmp dword [0x41acb4], 4
jb 0x40eafe
or byte [ebp + 0x12], 0x20
jmp 0x40eb23
xor eax, eax
jmp 0x40eb33
or byte [ebp + 0x12], 4
jmp 0x40eb23
mov eax, dword [0x41ae2c]
test eax, eax
je 0x40eb23
call eax
mov ebx, eax
test ebx, ebx
je 0x40eb23
mov eax, dword [0x41ae30]
test eax, eax
je 0x40eb23
push ebx
call eax
mov ebx, eax
push dword [ebp + 0x10]
push dword [ebp + 0xc]
push dword [ebp + 8]
push ebx
call dword [0x41ae28]
pop edi
pop esi
pop ebx
leave
ret

Function at 0x40ef26
Capabilities:
Get system information on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x48
push ebx
push esi
push edi
push 4
pop eax
call fcn.0040a500
mov ebx, esp
push 0x1c
lea eax, [ebp - 0x24]
push eax
push ebx
call dword [sym.imp.KERNEL32.DLL_VirtualQuery]
test eax, eax
je 0x40efbb
mov edi, dword [ebp - 0x20]
lea eax, [ebp - 0x48]
push eax
call dword [sym.imp.KERNEL32.DLL_GetSystemInfo]
mov eax, dword [ebp - 0x44]
lea esi, [eax - 1]
not esi
and esi, ebx
sub esi, eax
mov dword [ebp - 4], eax
mov eax, dword [0x41aca8]
mov ecx, eax
dec ecx
neg ecx
sbb ecx, ecx
and ecx, 0xffff1000
add ecx, 0x11000
add ecx, edi
cmp esi, ecx
jb 0x40efbb
cmp eax, 1
je 0x40efd3
mov ebx, edi
mov edi, 0x1000
push 0x1c
lea eax, [ebp - 0x24]
push eax
push ebx
call dword [sym.imp.KERNEL32.DLL_VirtualQuery]
test eax, eax
je 0x40efbb
add ebx, dword [ebp - 0x18]
test dword [ebp - 0x14], edi
je 0x40ef90
test byte [ebp - 0xf], 1
mov ebx, dword [ebp - 0x24]
je 0x40efb7
xor eax, eax
inc eax
jmp 0x40efef
cmp esi, ebx
jae 0x40efbf
xor eax, eax
jmp 0x40efef
push 4
push edi
push dword [ebp - 4]
push ebx
call dword [sym.imp.KERNEL32.DLL_VirtualAlloc]
mov eax, dword [0x41aca8]
jmp 0x40efd5
mov ebx, esi
dec eax
neg eax
sbb eax, eax
and eax, 0x103
lea ecx, [ebp - 8]
push ecx
inc eax
push eax
push dword [ebp - 4]
push ebx
call dword [sym.imp.KERNEL32.DLL_VirtualProtect]
lea esp, [ebp - 0x54]
pop edi
pop esi
pop ebx
leave
ret
Function at 0x40f083
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x41c
mov eax, dword [0x4160ac]
xor eax, dword [ebp + 4]
mov ecx, dword [ebp + 8]
cmp ecx, dword [0x41bea4]
push ebx
push esi
mov dword [ebp - 4], eax
push edi
jae 0x40f213
mov eax, ecx
sar eax, 5
lea ebx, [eax*4 + 0x41bec0]
mov eax, dword [ebx]
mov esi, ecx
and esi, 0x1f
shl esi, 3
mov al, byte [eax + esi + 4]
test al, 1
mov dword [ebp - 0x18], ebx
je 0x40f213
xor edi, edi
cmp dword [ebp + 0x10], edi
mov dword [ebp - 0xc], edi
mov dword [ebp - 0x14], edi
jne 0x40f0e2
xor eax, eax
jmp 0x40f227
test al, 0x20
je 0x40f0f3
push 2
push edi
push edi
push ecx
call fcn.0040f799
add esp, 0x10
mov eax, dword [ebx]
add eax, esi
test byte [eax + 4], 0x80
je 0x40f1af
cmp dword [ebp + 0x10], edi
mov eax, dword [ebp + 0xc]
mov dword [ebp - 8], eax
mov dword [ebp + 8], edi
jbe 0x40f1e7
mov ecx, dword [ebp - 8]
sub ecx, dword [ebp + 0xc]
lea eax, [ebp - 0x41c]
cmp ecx, dword [ebp + 0x10]
jae 0x40f149
mov edx, dword [ebp - 8]
inc dword [ebp - 8]
mov dl, byte [edx]
inc ecx
cmp dl, 0xa
jne 0x40f13a
inc dword [ebp - 0x14]
mov byte [eax], 0xd
inc eax
inc edi
mov ebx, dword [ebp - 0x18]
mov byte [eax], dl
inc eax
inc edi
cmp edi, 0x400
jl 0x40f11f
mov edi, eax
lea eax, [ebp - 0x41c]
sub edi, eax
push 0
lea eax, [ebp - 0x10]
push eax
push edi
lea eax, [ebp - 0x41c]
push eax
mov eax, dword [ebx]
push dword [eax + esi]
call dword [sym.imp.KERNEL32.DLL_WriteFile]
test eax, eax
je 0x40f189
mov eax, dword [ebp - 0x10]
add dword [ebp - 0xc], eax
cmp eax, edi
jl 0x40f192
mov eax, dword [ebp - 8]
sub eax, dword [ebp + 0xc]
xor edi, edi
cmp eax, dword [ebp + 0x10]
jb 0x40f113
jmp 0x40f194
call dword [sym.imp.KERNEL32.DLL_GetLastError]
mov dword [ebp + 8], eax
xor edi, edi
mov eax, dword [ebp - 0xc]
cmp eax, edi
jne 0x40f20e
cmp dword [ebp + 8], edi
je 0x40f1e7
push 5
pop eax
cmp dword [ebp + 8], eax
jne 0x40f1dc
mov dword [0x41aca0], eax
jmp 0x40f21a
push edi
lea ecx, [ebp - 0x10]
push ecx
push dword [ebp + 0x10]
push dword [ebp + 0xc]
push dword [eax]
call dword [sym.imp.KERNEL32.DLL_WriteFile]
test eax, eax
je 0x40f1d1
mov eax, dword [ebp - 0x10]
mov dword [ebp + 8], edi
mov dword [ebp - 0xc], eax
jmp 0x40f194
call dword [sym.imp.KERNEL32.DLL_GetLastError]
mov dword [ebp + 8], eax
jmp 0x40f194
push dword [ebp + 8]
call fcn.0040f684
pop ecx
jmp 0x40f224
mov eax, dword [ebx]
test byte [eax + esi + 4], 0x40
je 0x40f1fc
mov eax, dword [ebp + 0xc]
cmp byte [eax], 0x1a
je 0x40f0db
mov dword [0x41ac9c], 0x1c
mov dword [0x41aca0], edi
jmp 0x40f224
sub eax, dword [ebp - 0x14]
jmp 0x40f227
and dword [0x41aca0], 0
mov dword [0x41ac9c], 9
or eax, 0xffffffff
mov ecx, dword [ebp - 4]
xor ecx, dword [ebp + 4]
pop edi
pop esi
pop ebx
call fcn.0040a099
leave
ret
Function at 0x40ff80
Capabilities:
Access peb ldr_data
Create process on windows
Get ntdll base address

Disassembly:
push 0xffffffffffffffff
push 0x412408
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0xc
push ebx
push ebp
push esi
push edi
mov ebx, ecx
mov eax, dword [0x41ac08]
mov ecx, 0x41ac08
mov dword [esp + 0x24], 0
call dword [eax + 0xc]
lea ebp, [eax + 0x10]
mov dword [esp + 0x14], ebp
mov edx, dword [0x41ac08]
mov ecx, 0x41ac08
mov byte [esp + 0x24], 1
call dword [edx + 0xc]
add eax, 0x10
mov dword [esp + 0x10], eax
mov esi, dword [esp + 0x2c]
lea eax, [esp + 0x10]
push eax
push ecx
add esi, 0xfffffff0
mov dword [esp + 0x20], esp
mov edi, esp
push esi
mov byte [esp + 0x30], 2
call fcn.00401270
add eax, 0x10
add esp, 4
mov dword [edi], eax
call fcn.0040fe80
mov edi, dword [esp + 0x18]
add esp, 8
test al, al
je 0x41003d
push edi
push str.__B___Nologo
lea ecx, [esp + 0x1c]
push str._s__s
push ecx
call fcn.00402a90
mov ebp, dword [esp + 0x24]
add esp, 0x10
push 0
push 0
push ebp
push 0x414434
push str.open
push 0
call dword [sym.imp.SHELL32.dll_ShellExecuteA]
lea eax, [edi - 0x10]
mov byte [esp + 0x24], 1
lea edx, [eax + 0xc]
or ecx, 0xffffffff
lock xadd dword [edx], ecx
dec ecx
test ecx, ecx
jg 0x41005c
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
call dword [edx + 4]
lea eax, [ebp - 0x10]
mov byte [esp + 0x24], 0
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x41007b
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
call dword [edx + 4]
mov dword [esp + 0x24], 0xffffffff
lea eax, [esi + 0xc]
or ecx, 0xffffffff
lock xadd dword [eax], ecx
dec ecx
test ecx, ecx
jg 0x41009a
mov ecx, dword [esi]
mov edx, dword [ecx]
push esi
call dword [edx + 4]
mov ecx, dword [esp + 0x1c]
pop edi
pop esi
pop ebp
mov eax, ebx
mov dword fs:[0], ecx
pop ebx
add esp, 0x18
ret 4
Function at 0x430005
Capabilities:
Encode data using xor
Packed with generic packer

Disassembly:
pushal
mov eax, section..text
nop
nop
push 4
nop
nop
nop
nop
nop
pop edi
nop
nop
nop
nop
cmp eax, 0
nop
nop
je 0x430072
nop
nop
nop
nop
nop
mov ebx, 0x408ed0
nop
nop
nop
mov ecx, ebx
nop
nop
sub ecx, eax
nop
nop
nop
nop
nop
nop
nop
xor edx, edx
nop
nop
nop
nop
nop
push eax
nop
mov eax, ecx
nop
nop
nop
nop
nop
nop
nop
div edi
nop
xchg ecx, eax
nop
nop
nop
nop
nop
nop
nop
nop
nop
pop eax
nop
mov esi, 0x464212d
nop
nop
nop
nop
xor dword [eax], esi
nop
nop
add eax, edi
nop
nop
loop 0x430060
nop
nop
nop
nop
nop
mov eax, section..data
nop
cmp eax, 0
nop
nop
nop
nop
nop
nop
je 0x4300d2
mov ebx, 0x42e1d0
nop
nop
nop
mov ecx, ebx
nop
nop
nop
nop
sub ecx, eax
nop
nop
xor edx, edx
nop
nop
nop
nop
push eax
nop
nop
nop
nop
nop
mov eax, ecx
nop
nop
nop
nop
nop
nop
nop
div edi
nop
nop
nop
nop
nop
xchg ecx, eax
nop
nop
nop
nop
nop
pop eax
nop
nop
mov esi, 0x50d55fe8
nop
nop
xor dword [eax], esi
nop
nop
nop
nop
nop
nop
add eax, edi
nop
loop 0x4300c0
nop
nop
nop
nop
nop
nop
nop
nop
popal
jmp 0x401219
Function at 0x431000
Capabilities:
Encode data using xor
Packed with generic packer

Disassembly:
pushal
nop
nop
nop
nop
nop
call 0x43100c
pop eax
nop
nop
nop
nop
nop
nop
add eax, 0x403e6a
sub eax, 0x403e10
nop
nop
nop
nop
nop
mov ebx, dword [eax]
mov ecx, dword [eax + 4]
nop
nop
nop
nop
mov edx, dword [eax + 8]
nop
nop
nop
nop
xor dword [ebx], edx
nop
nop
nop
nop
add ebx, 4
nop
nop
nop
nop
nop
cmp ebx, ecx
jl 0x431030
nop
nop
nop
nop
nop
add eax, 0xc
nop
nop
nop
cmp dword [eax], 0
nop
nop
nop
nop
jne 0x43101e
nop
nop
popal
nop
nop
nop
nop
nop
jmp loc.00401219

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

Disassembly:
pushal
nop
nop
nop
nop
mov eax, section..text
nop
nop
push 4
nop
nop
pop edi
nop
nop
nop
nop
nop
nop
nop
cmp eax, 0
nop
nop
nop
nop
nop
je 0x433072
mov ebx, 0x40de38
nop
nop
mov ecx, ebx
nop
nop
nop
sub ecx, eax
nop
nop
nop
nop
nop
xor edx, edx
nop
nop
nop
nop
nop
nop
nop
push eax
nop
nop
nop
nop
nop
mov eax, ecx
div edi
nop
nop
nop
nop
xchg ecx, eax
nop
nop
nop
nop
nop
pop eax
nop
nop
nop
nop
nop
mov esi, 0x79832bd5
nop
nop
xor dword [eax], esi
nop
nop
nop
nop
nop
nop
nop
add eax, edi
nop
nop
nop
loop 0x433060
nop
nop
mov eax, section..data
nop
nop
cmp eax, 0
nop
je 0x4330d2
nop
nop
nop
nop
nop
mov ebx, 0x4304d8
nop
nop
nop
nop
mov ecx, ebx
nop
nop
sub ecx, eax
nop
nop
nop
xor edx, edx
nop
nop
nop
nop
nop
nop
nop
push eax
nop
nop
nop
nop
mov eax, ecx
nop
nop
nop
nop
div edi
nop
nop
nop
nop
nop
nop
xchg ecx, eax
nop
nop
nop
nop
pop eax
nop
mov esi, 0x215b6cf6
nop
nop
nop
nop
xor dword [eax], esi
nop
add eax, edi
nop
nop
nop
nop
nop
nop
nop
loop 0x4330c0
nop
nop
nop
nop
nop
nop
popal
jmp 0x431219
Function at 0x403330
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.00404d60
test esi, esi
jne 0x403366
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.00404e50
jmp 0x403384
call sub.kernel32.dll_GetCommandLineA
mov edi, eax
mov edx, ebx
mov eax, edi
call fcn.00403234
mov edi, eax
test esi, esi
je 0x403384
cmp dword [ebx], 0
je 0x403384
dec esi
jmp 0x40336d
add esp, 0x108
pop edi
pop esi
pop ebx
ret

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

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

Function at 0x403c54
Capabilities:
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffff4
movzx eax, word [0x48b024]
mov dword [ebp - 8], eax
lea eax, [ebp - 4]
push eax
push 1
push 0
push 0x403cec
push 0x80000002
call sub.advapi32.dll_RegOpenKeyExA
test eax, eax
jne 0x403ccc
xor eax, eax
push ebp
push 0x403cc5
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 0x403d08
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 0x403ccc
mov eax, dword [ebp - 4]
push eax
call sub.advapi32.dll_RegCloseKey
ret
movzx eax, word [0x48b024]
and ax, 0xffc0
movzx edx, word [ebp - 8]
and dx, 0x3f
or ax, dx
mov word [0x48b024], ax
mov esp, ebp
pop ebp
ret

Function at 0x404b2c
Capabilities:
Write file on windows

Disassembly:
push ecx
cmp byte [0x48e04c], 0
je 0x404b8d
cmp word [0x48e220], 0xd7b2
jne 0x404b55
cmp dword [0x48e228], 0
jbe 0x404b55
mov eax, 0x48e21c
call dword [0x48e238]
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 0x404bb4
push 0xfffffffffffffff5
call sub.kernel32.dll_GetStdHandle
push eax
call sub.kernel32.dll_WriteFile
pop edx
ret
cmp byte [0x48b030], 0
jne 0x404ba9
push 0
push str.Error
push str.Runtime_error_____at_00000000
push 0
call sub.user32.dll_MessageBoxA
pop edx
ret

Function at 0x404ce4
Capabilities:
Create thread

Disassembly:
push ebp
mov ebp, esp
push ecx
push ebx
push esi
push edi
mov ebx, ecx
mov dword [ebp - 4], edx
mov edi, eax
mov esi, dword [ebp + 0x10]
cmp dword [0x48b034], 0
je 0x404d0a
mov edx, esi
mov eax, ebx
call dword [0x48b034]
jmp 0x404d19
mov eax, 8
call fcn.00402f44
mov dword [eax], ebx
mov dword [eax + 4], esi
mov byte [0x48e04d], 1
mov edx, dword [ebp + 8]
push edx
mov edx, dword [ebp + 0xc]
push edx
push eax
mov eax, 0x404cac
push eax
mov eax, dword [ebp - 4]
push eax
push edi
call sub.kernel32.dll_CreateThread
pop edi
pop esi
pop ebx
pop ecx
pop ebp
ret 0xc