joyce8/EMBER2024-capa huggingface dataset:
Function at 0x427070
Capabilities:
Read file on windows

Disassembly:
push ebp
mov eax, dword [esp + 0x14]
mov ebp, esp
sub esp, 8
test eax, eax
jne 0x427084
xor eax, eax
mov esp, ebp
pop ebp
ret
push 0
lea ecx, [ebp - 4]
push ecx
mov edx, dword [ebp + 0xc]
push eax
mov eax, dword [ebp + 0x10]
push eax
mov ecx, dword [edx]
push ecx
call dword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
jne 0x4270d1
call dword [sym.imp.KERNEL32.dll_GetLastError]
push 0
mov dword [ebp - 8], eax
push str.slfirb
lea eax, [ebp - 8]
push 0x19
mov ecx, dword [ebp + 8]
push eax
push 8
push 0x5e6
push ecx
call fcn.0041c220
add esp, 0x1c
mov eax, 0xfffffffe
mov esp, ebp
pop ebp
ret
mov eax, dword [ebp - 4]
mov esp, ebp
pop ebp
ret

Function at 0x427170
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 4
push esi
mov ecx, dword [ebp + 0x14]
push edi
mov esi, dword [ebp + 0xc]
mov edx, dword [ebp + 0x10]
mov eax, dword [esi + 4]
push eax
push ecx
push 1
push edx
call dword [sym.imp.MSVCRT.dll_fwrite]
add esp, 0x10
mov edi, eax
mov ecx, dword [esi + 4]
push ecx
call dword [sym.imp.MSVCRT.dll_fflush]
add esp, 4
test edi, edi
jne 0x4271db
call dword [sym.imp.MSVCRT.dll__errno]
mov eax, dword [eax]
push 0
push str.slfiws
mov dword [ebp - 4], eax
push 0x19
lea eax, [ebp - 4]
push eax
mov ecx, dword [ebp + 8]
push 8
push 0x5e3
push ecx
call fcn.0041c220
add esp, 0x1c
mov eax, 0xfffffffe
pop edi
pop esi
mov esp, ebp
pop ebp
ret
xor eax, eax
pop edi
pop esi
mov esp, ebp
pop ebp
ret

Function at 0x4271f0
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 8
push ebx
push esi
push edi
mov esi, dword [ebp + 0x14]
test esi, esi
je 0x427252
push 0
lea eax, [ebp - 8]
push eax
mov ecx, dword [ebp + 0x10]
push esi
mov edi, dword [ebp + 0xc]
push ecx
mov ebx, dword [sym.imp.KERNEL32.dll_WriteFile]
mov eax, dword [edi]
push eax
call ebx
test eax, eax
jne 0x42725b
call dword [sym.imp.KERNEL32.dll_GetLastError]
push 0
mov dword [ebp - 4], eax
push 0x437bf8
lea eax, [ebp - 4]
push 0x19
mov ecx, dword [ebp + 8]
push eax
push 8
push 0x5e3
push ecx
call fcn.0041c220
add esp, 0x1c
mov eax, 0xfffffffe
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
mov ebx, dword [sym.imp.KERNEL32.dll_WriteFile]
mov edi, dword [ebp + 0xc]
test esi, esi
jne 0x4272af
mov esi, dword [0x436510]
push 0
lea eax, [ebp - 8]
mov ecx, dword [edi]
push eax
push esi
push 0x436514
push ecx
call ebx
test eax, eax
jne 0x4272af
call dword [sym.imp.KERNEL32.dll_GetLastError]
push 0
mov dword [ebp - 4], eax
push str.slfiwl
lea eax, [ebp - 4]
push 0x19
mov ecx, dword [ebp + 8]
push eax
push 8
push 0x5e3
push ecx
call fcn.0041c220
add esp, 0x1c
mov eax, 0xfffffffe
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
mov eax, dword [ebp - 8]
pop edi
sub eax, esi
pop esi
pop ebx
cmp eax, 1
mov eax, 0
mov esp, ebp
adc eax, 0xffffffff
pop ebp
ret
Function at 0x4272d0
Capabilities:
Write file on windows

Disassembly:
push ebp
mov eax, dword [esp + 0x14]
mov ebp, esp
sub esp, 8
test eax, eax
mov dword [ebp - 4], 0
je 0x427338
push 0
lea ecx, [ebp - 4]
push ecx
mov edx, dword [ebp + 0xc]
push eax
mov eax, dword [ebp + 0x10]
push eax
mov ecx, dword [edx]
push ecx
call dword [sym.imp.KERNEL32.dll_WriteFile]
test eax, eax
je 0x427306
cmp dword [ebp - 4], 0
jne 0x427338
call dword [sym.imp.KERNEL32.dll_GetLastError]
push 0
mov dword [ebp - 8], eax
push str.slfiwb
lea eax, [ebp - 8]
push 0x19
mov ecx, dword [ebp + 8]
push eax
push 8
push 0x5e3
push ecx
call fcn.0041c220
add esp, 0x1c
mov eax, 0xfffffffe
mov esp, ebp
pop ebp
ret
mov eax, dword [ebp - 4]
mov esp, ebp
pop ebp
ret

Function at 0x427410
Capabilities:
Terminate process

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x42e380
push 0x427650
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
add esp, 0xffffff98
push ebx
push esi
push edi
mov dword [ebp - 0x18], esp
mov dword [ebp - 4], 0
push 2
call dword [sym.imp.MSVCRT.dll___set_app_type]
add esp, 4
mov dword [0x438620], 0xffffffff
mov dword [0x438624], 0xffffffff
call dword [sym.imp.MSVCRT.dll___p__fmode]
mov ecx, dword [0x4381a4]
mov dword [eax], ecx
call dword [sym.imp.MSVCRT.dll___p__commode]
mov edx, dword [0x4381a0]
mov dword [eax], edx
mov eax, dword [sym.imp.MSVCRT.dll__adjust_fdiv]
mov ecx, dword [eax]
mov dword [0x43861c], ecx
call fcn.00427640
mov eax, dword [0x437c30]
test eax, eax
jne 0x4274a1
push 0x427630
call dword [sym.imp.MSVCRT.dll___setusermatherr]
add esp, 4
call fcn.00427610
push 0x430014
push 0x430010
call sub.MSVCRT.dll__initterm
add esp, 8
mov edx, dword [0x43819c]
mov dword [ebp - 0x6c], edx
lea eax, [ebp - 0x6c]
push eax
mov ecx, dword [0x438198]
push ecx
lea edx, [ebp - 0x64]
push edx
lea eax, [ebp - 0x70]
push eax
lea ecx, [ebp - 0x60]
push ecx
call dword [sym.imp.MSVCRT.dll___getmainargs]
add esp, 0x14
push 0x43000c
push section..data
call sub.MSVCRT.dll__initterm
add esp, 8
call dword [sym.imp.MSVCRT.dll___p__acmdln]
mov esi, dword [eax]
mov dword [ebp - 0x74], esi
cmp byte [esi], 0x22
jne 0x4275af
inc esi
mov dword [ebp - 0x74], esi
mov al, byte [esi]
test al, al
je 0x427515
cmp al, 0x22
jne 0x427507
cmp byte [esi], 0x22
jne 0x42751e
inc esi
mov dword [ebp - 0x74], esi
mov al, byte [esi]
test al, al
je 0x42752e
cmp al, 0x20
ja 0x42752e
inc esi
mov dword [ebp - 0x74], esi
jmp 0x42751e
mov dword [ebp - 0x30], 0
lea edx, [ebp - 0x5c]
push edx
call dword [sym.imp.KERNEL32.dll_GetStartupInfoA]
test byte [ebp - 0x30], 1
je 0x42754f
mov eax, dword [ebp - 0x2c]
and eax, 0xffff
jmp 0x427554
mov eax, 0xa
push eax
push esi
push 0
push 0
call dword [sym.imp.KERNEL32.dll_GetModuleHandleA]
push eax
call main
mov dword [ebp - 0x68], eax
push eax
call dword [sym.imp.MSVCRT.dll_exit]
jmp 0x427594
add esp, 4
mov dword [ebp - 4], 0xffffffff
mov ecx, dword [ebp - 0x10]
mov dword fs:[0], ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
cmp byte [esi], 0x20
jbe 0x42751e
inc esi
mov dword [ebp - 0x74], esi
jmp 0x4275af
Function at 0x401006
Capabilities:
Terminate process

Disassembly:
cmp ecx, dword [0x430004]
jne 0x401010
repz ret
jmp fcn.00401788

Function at 0x405655
Capabilities:
Link many functions at runtime

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x14
push ebx
push esi
push edi
call fcn.004030b9
and dword [ebp - 4], 0
cmp dword [0x431db0], 0
mov ebx, eax
jne 0x405706
push str.USER32.DLL
call dword [sym.imp.KERNEL32.dll_LoadLibraryA]
mov edi, eax
test edi, edi
je 0x4057b7
mov esi, dword [sym.imp.KERNEL32.dll_GetProcAddress]
push str.MessageBoxA
push edi
call esi
test eax, eax
je 0x4057b7
push eax
call fcn.00403047
mov dword [esp], str.GetActiveWindow
push edi
mov dword [0x431db0], eax
call esi
push eax
call fcn.00403047
mov dword [esp], str.GetLastActivePopup
push edi
mov dword [0x431db4], eax
call esi
push eax
call fcn.00403047
mov dword [esp], str.GetUserObjectInformationA
push edi
mov dword [0x431db8], eax
call esi
push eax
call fcn.00403047
pop ecx
mov dword [0x431dc0], eax
test eax, eax
je 0x405706
push str.GetProcessWindowStation
push edi
call esi
push eax
call fcn.00403047
pop ecx
mov dword [0x431dbc], eax
mov eax, dword [0x431dbc]
cmp eax, ebx
je 0x40575e
cmp dword [0x431dc0], ebx
je 0x40575e
push eax
call fcn.004030c2
push dword [0x431dc0]
mov esi, eax
call fcn.004030c2
pop ecx
pop ecx
mov edi, eax
test esi, esi
je 0x40575e
test edi, edi
je 0x40575e
call esi
test eax, eax
je 0x405755
lea ecx, [ebp - 8]
push ecx
push 0xc
lea ecx, [ebp - 0x14]
push ecx
push 1
push eax
call edi
test eax, eax
je 0x405755
test byte [ebp - 0xc], 1
jne 0x40575e
or dword [ebp + 0x10], 0x200000
jmp 0x405797
mov eax, dword [0x431db4]
cmp eax, ebx
je 0x405797
push eax
call fcn.004030c2
pop ecx
test eax, eax
je 0x405797
call eax
mov dword [ebp - 4], eax
test eax, eax
je 0x405797
mov eax, dword [0x431db8]
cmp eax, ebx
je 0x405797
push eax
call fcn.004030c2
pop ecx
test eax, eax
je 0x405797
push dword [ebp - 4]
call eax
mov dword [ebp - 4], eax
push dword [0x431db0]
call fcn.004030c2
pop ecx
test eax, eax
je 0x4057b7
push dword [ebp + 0x10]
push dword [ebp + 0xc]
push dword [ebp + 8]
push dword [ebp - 4]
call eax
jmp 0x4057b9
xor eax, eax
pop edi
pop esi
pop ebx
leave
ret

Function at 0x42c8be
Capabilities:
Allocate or change rwx memory

Disassembly:
push ebp
mov ebp, esp
push ecx
lea eax, [ebp - 4]
push eax
push 0x40
push dword [0x43fd24]
push dword [0x43fa40]
call dword [sym.imp.KERNEL32.dll_VirtualProtect]
leave
ret

Function at 0x42c94d
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
push ecx
push ecx
push edi
xor edi, edi
cmp dword [ebp + 0xc], edi
jle 0x42c990
push esi
and dword [ebp - 8], 0
lea esi, [ebp - 8]
mov dword [ebp - 4], 5
call fcn.0042c942
mov eax, dword [ebp - 8]
add eax, 0x46
mov dword [ebp - 4], eax
sub dword [ebp - 4], 0xa
sub dword [ebp - 4], 0x3c
mov eax, dword [ebp + 8]
mov cl, byte [ebp - 4]
add eax, edi
xor byte [eax], cl
inc edi
cmp edi, dword [ebp + 0xc]
jl 0x42c95b
pop esi
cmp dword [ebp + 0xc], 0x2d
pop edi
jne 0x42c9a8
or dword [0x43fd34], 0xffffffff
mov dword [0x43fd30], 0xa62e7790
leave
ret
Function at 0x42c9aa
Capabilities:
Create service

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x408
mov eax, dword [0x430004]
xor eax, ebp
mov dword [ebp - 4], eax
mov eax, dword [0x43fd24]
push ebx
push esi
mov esi, dword [0x43fa40]
push edi
xor edi, edi
mov ebx, eax
cmp eax, 0x5dd
jne 0x42c9e6
push edi
lea eax, [ebp - 0x404]
push eax
push edi
push edi
call dword [sym.imp.KERNEL32.dll_GetFullPathNameA]
mov eax, dword [0x430c70]
call fcn.0042c917
cmp dword [0x43fd24], 0x2f
jne 0x42ca35
push 0x42e2f4
push str.kedawicot
push str.Fug_nugonejecovutomodokayohet_navikocu_luyucohemevadagovukiyodowapeg_xuzemazabohofakahizalohovovijer
lea eax, [ebp - 0x408]
push eax
push str.fifebuzulapuyulacirilibotefe_vufibalagahosumidicegeduh
push str.bisabi_hojohabepegamikelomujo_hituduroyuwexutoyidavobe_gokovebubosiwedifocikoda
push edi
push edi
push edi
push edi
push str.razonekutifasijaloyayonexiz_tusarucutuvesibagitakuve_zumabasexawoxa_taxuxirosivuguhomopakepevamihe_bidokumegufej
push str.guvibahocutojekopulehah_ruhusiruduracibodera_nuduyujajejazizocebimiyebusagufe_jowelapuyewemomebiwupocasu
push edi
call dword [sym.imp.ADVAPI32.dll_CreateServiceA]
push edi
call dword [sym.imp.KERNEL32.dll_FreeEnvironmentStringsW]
push ebx
push esi
call fcn.0042c94d
cmp dword [0x43fd24], 0x568
pop ecx
pop ecx
jne 0x42ca58
push edi
call dword [sym.imp.KERNEL32.dll_HeapDestroy]
push edi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov ecx, dword [ebp - 4]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.00401006
leave
ret
Function at 0x433003
Capabilities:
Encode data using xor
Packed with generic packer

Disassembly:
pushal
nop
nop
call 0x43300c
nop
nop
nop
pop eax
nop
nop
add eax, 0x40a063
nop
sub eax, 0x40a009
nop
nop
nop
mov ebx, dword [eax]
nop
nop
nop
nop
mov ecx, dword [eax + 4]
nop
nop
mov edx, dword [eax + 8]
nop
nop
nop
nop
nop
nop
xor dword [ebx], edx
nop
add ebx, 4
nop
nop
nop
nop
nop
cmp ebx, ecx
nop
jl 0x433030
nop
nop
nop
nop
nop
add eax, 0xc
nop
nop
nop
nop
cmp dword [eax], 0
nop
nop
nop
nop
jne 0x43301e
nop
nop
nop
popal
nop
nop
nop
jmp 0x431219
Function at 0x40efb0
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
push ebx
push edi
sub esp, 0x14
mov eax, dword [ebp + 0xc]
mov eax, dword [ebp + 8]
mov dword [ebp - 0x18], eax
mov eax, dword [0x43f080]
xor eax, ebp
mov dword [ebp - 0xc], eax
mov dword [ebp - 0x14], 0xf8713163
mov eax, dword [ebp - 0x14]
mov dword [ebp - 0x1c], eax
sub eax, 0xe7deb325
je 0x40f07f
jmp 0x40efe8
mov eax, dword [ebp - 0x1c]
sub eax, 0xf8713163
je 0x40f039
jmp 0x40effb
mov eax, dword [ebp - 0x1c]
sub eax, 0xfaf3f72e
je 0x40f140
jmp 0x40f00e
mov eax, dword [ebp - 0x1c]
sub eax, 0x2b4ac4a4
je 0x40f151
jmp 0x40f021
mov eax, dword [ebp - 0x1c]
sub eax, 0x2fd6b960
je 0x40f0f2
jmp 0x40f034
jmp 0x40f158
mov eax, dword [ebp - 0x18]
mov dword [ebp - 0x10], eax
nop
mov eax, ebx
mov ebx, 0x99
nop
xor ebx, eax
mov ecx, dword [ebp + 0xc]
mov edi, dword [ebp - 0x10]
not byte [edi]
nop
mov eax, ebx
mov ebx, 0x99
nop
xor ebx, eax
add byte [edi], 0x79
sub byte [edi], 0x35
nop
mov eax, ebx
mov ebx, 0x99
nop
xor ebx, eax
imul byte [edi]
inc edi
loop 0x40f050
mov dword [ebp - 0x14], 0xe7deb325
jmp 0x40f158
mov ecx, dword [0x44054c]
mov eax, dword [0x440548]
mov edx, ecx
sub edx, 0x91a6021e
sub edx, 1
add edx, 0x91a6021e
imul ecx, edx
and ecx, 1
cmp ecx, 0
sete bl
cmp eax, 0xa
setl dh
mov al, bl
xor al, 0xff
mov ah, dh
xor ah, 0xff
mov cl, 1
xor cl, 0
mov dl, al
and dl, 0
and bl, cl
mov ch, ah
and ch, 0
and dh, cl
or dl, bl
or ch, dh
xor dl, ch
or al, ah
xor al, 0xff
or cl, 0
and al, cl
or dl, al
mov eax, 0x2b4ac4a4
mov ecx, 0x2fd6b960
test dl, 1
cmovne eax, ecx
mov dword [ebp - 0x14], eax
jmp 0x40f158
mov eax, dword [0x44054c]
mov ecx, dword [0x440548]
mov edx, eax
add edx, 0x42b125f8
sub edx, 1
sub edx, 0x42b125f8
imul eax, edx
and eax, 1
cmp eax, 0
sete al
cmp ecx, 0xa
setl cl
mov dl, al
and dl, cl
xor al, cl
or dl, al
mov eax, 0x2b4ac4a4
mov ecx, 0xfaf3f72e
test dl, 1
cmovne eax, ecx
mov dword [ebp - 0x14], eax
jmp 0x40f158
mov ecx, dword [ebp - 0xc]
xor ecx, ebp
call fcn.00428c30
add esp, 0x14
pop edi
pop ebx
pop ebp
ret
mov dword [ebp - 0x14], 0x2fd6b960
jmp 0x40efd2
Function at 0x4294fb
Capabilities:
Parse pe header

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

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push ecx
push ecx
push esi
call dword [sym.imp.KERNEL32.dll_GetEnvironmentStringsW]
mov esi, eax
test esi, esi
je 0x430d48
push ebx
push esi
call fcn.00430c74
xor ebx, ebx
sub eax, esi
push ebx
push ebx
push ebx
push ebx
sar eax, 1
push eax
push esi
push ebx
push ebx
mov dword [ebp - 8], eax
call fcn.00430c08
add esp, 0x24
mov dword [ebp - 4], eax
test eax, eax
jne 0x430cf5
push esi
call dword [sym.imp.KERNEL32.dll_FreeEnvironmentStringsW]
xor eax, eax
jmp 0x430d47
push edi
push eax
call fcn.0042f740
mov edi, eax
pop ecx
push ebx
test edi, edi
jne 0x430d15
call fcn.0042f78e
pop ecx
push esi
call dword [sym.imp.KERNEL32.dll_FreeEnvironmentStringsW]
xor eax, eax
jmp 0x430d46
push ebx
push dword [ebp - 4]
push edi
push dword [ebp - 8]
push esi
push ebx
push ebx
call fcn.00430c08
add esp, 0x20
test eax, eax
jne 0x430d34
push edi
call fcn.0042f78e
jmp 0x430d3c
push ebx
call fcn.0042f78e
mov ebx, edi
pop ecx
push esi
call dword [sym.imp.KERNEL32.dll_FreeEnvironmentStringsW]
mov eax, ebx
pop edi
pop ebx
pop esi
leave
ret

Function at 0x431f57
Capabilities:
Allocate thread local storage

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push esi
push 0x43ac40
push 0x43ac38
push str.FlsAlloc
push 0x1f
call fcn.00431e16
mov esi, eax
add esp, 0x10
test esi, esi
je 0x431f8b
push dword [ebp + 8]
mov ecx, esi
call dword [0x438144]
call esi
jmp 0x431f91
call dword [sym.imp.KERNEL32.dll_TlsAlloc]
pop esi
pop ebp
ret 4

Function at 0x431fd5
Capabilities:
Get thread local storage value

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push esi
push 0x43ac50
push 0x43ac48
push str.FlsGetValue
push 0x21
call fcn.00431e16
mov esi, eax
add esp, 0x10
test esi, esi
je 0x43200c
push dword [ebp + 8]
mov ecx, esi
call dword [0x438144]
call esi
pop esi
pop ebp
ret 4
pop esi
pop ebp
jmp dword [sym.imp.KERNEL32.dll_TlsGetValue]

Function at 0x432014
Capabilities:
Set thread local storage value

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push esi
push 0x43ac58
push 0x43ac50
push str.FlsSetValue
push 0x22
call fcn.00431e16
mov esi, eax
add esp, 0x10
test esi, esi
je 0x43204e
push dword [ebp + 0xc]
mov ecx, esi
push dword [ebp + 8]
call dword [0x438144]
call esi
pop esi
pop ebp
ret 8
pop esi
pop ebp
jmp dword [sym.imp.KERNEL32.dll_TlsSetValue]
Function at 0x437320
Capabilities:
Parse pe header

Disassembly:
push ebp
mov ebp, esp
mov eax, dword [ebp + 8]
mov ecx, 0x5a4d
cmp word [eax], cx
jne 0x43734d
mov ecx, dword [eax + 0x3c]
add ecx, eax
cmp dword [ecx], 0x4550
jne 0x43734d
mov edx, 0x10b
xor eax, eax
cmp word [ecx + 0x18], dx
sete al
pop ebp
ret
xor eax, eax
pop ebp
ret

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

Disassembly:
pushal
nop
nop
nop
call 0x43200c
nop
nop
pop eax
nop
nop
nop
nop
add eax, 0x40729f
nop
sub eax, 0x407245
nop
nop
mov ebx, dword [eax]
nop
nop
nop
nop
mov ecx, dword [eax + 4]
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
cmp ebx, ecx
nop
nop
nop
nop
nop
nop
jl 0x432030
nop
add eax, 0xc
nop
nop
cmp dword [eax], 0
nop
nop
nop
nop
nop
nop
jne 0x43201e
nop
nop
nop
nop
popal
nop
nop
jmp 0x431219
Function at 0x46d1e0
Capabilities:
Packed with generic packer

Disassembly:
pushal
mov esi, section.UPX1
lea edi, [esi - 0x42000]
push edi
jmp 0x46d1fa
mov al, byte [esi]
inc esi
mov byte [edi], al
inc edi
add ebx, ebx
jne 0x46d201
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
jb 0x46d1f0
mov eax, 1
add ebx, ebx
jne 0x46d213
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc eax, eax
add ebx, ebx
jae 0x46d224
jne 0x46d243
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
jb 0x46d243
dec eax
add ebx, ebx
jne 0x46d230
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc eax, eax
jmp 0x46d208
add ebx, ebx
jne 0x46d23f
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc ecx, ecx
jmp 0x46d295
xor ecx, ecx
sub eax, 3
jb 0x46d25b
shl eax, 8
mov al, byte [esi]
inc esi
xor eax, 0xffffffff
je 0x46d2ca
sar eax, 1
mov ebp, eax
jmp 0x46d266
add ebx, ebx
jne 0x46d266
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
jb 0x46d234
inc ecx
add ebx, ebx
jne 0x46d274
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
jb 0x46d234
add ebx, ebx
jne 0x46d281
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc ecx, ecx
add ebx, ebx
jae 0x46d276
jne 0x46d292
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
jae 0x46d276
add ecx, 2
cmp ebp, 0xfffffb00
adc ecx, 2
lea edx, [edi + ebp]
cmp ebp, 0xfffffffc
jbe 0x46d2b4
mov al, byte [edx]
inc edx
mov byte [edi], al
inc edi
dec ecx
jne 0x46d2a6
jmp 0x46d1f6
mov eax, dword [edx]
add edx, 4
mov dword [edi], eax
add edi, 4
sub ecx, 4
ja 0x46d2b4
add edi, ecx
jmp 0x46d1f6
pop esi
mov edi, esi
mov ecx, 0x1961
mov al, byte [edi]
inc edi
sub al, 0xe8
cmp al, 1
ja 0x46d2d2
cmp byte [edi], 0x12
jne 0x46d2d2
mov eax, dword [edi]
mov bl, byte [edi + 4]
shr ax, 8
rol eax, 0x10
xchg ah, al
sub eax, edi
sub bl, 0xe8
add eax, esi
mov dword [edi], eax
add edi, 5
mov al, bl
loop 0x46d2d7
lea edi, [esi + 0x6a000]
mov eax, dword [edi]
or eax, eax
je 0x46d34f
mov ebx, dword [edi + 4]
lea eax, [eax + esi + 0x7072c]
add ebx, esi
push eax
add edi, 8
call dword [esi + 0x7086c]
xchg ebp, eax
mov al, byte [edi]
inc edi
or al, al
je 0x46d304
mov ecx, edi
jns 0x46d333
movzx eax, word [edi]
inc edi
push eax
inc edi
mov ecx, 0xaef24857
push edi
dec eax
repne scasb al, byte es:[edi]
push ebp
call dword [esi + 0x70870]
or eax, eax
je 0x46d349
mov dword [ebx], eax
add ebx, 4
jmp 0x46d321
call dword [esi + 0x70880]
mov ebp, dword [esi + 0x70874]
lea edi, [esi - 0x1000]
mov ebx, 0x1000
push eax
push esp
push 4
push ebx
push edi
call ebp
lea eax, [edi + 0x217]
and byte [eax], 0x7f
and byte [eax + 0x28], 0x7f
pop eax
push eax
push esp
push eax
push ebx
push edi
call ebp
pop eax
popal
lea eax, [esp - 0x80]
push 0
cmp esp, eax
jne 0x46d383
sub esp, 0xffffff80
jmp 0x42651e
Function at 0x402cd8
Capabilities:
Get common file path
Set current directory

Disassembly:
push ebx
push esi
add esp, 0xfffffdf0
mov esi, edx
mov ebx, eax
test bl, bl
je 0x402d15
xor eax, eax
mov al, bl
add eax, 0x41
dec eax
mov byte [esp], al
mov byte [esp + 1], 0x3a
mov byte [esp + 2], 0
lea eax, [esp + 0x109]
push eax
push 0x105
call sub.kernel32.dll_GetCurrentDirectoryA
push esp
call sub.kernel32.dll_SetCurrentDirectoryA
lea eax, [esp + 4]
push eax
push 0x105
call sub.kernel32.dll_GetCurrentDirectoryA
test bl, bl
je 0x402d35
lea eax, [esp + 0x109]
push eax
call sub.kernel32.dll_SetCurrentDirectoryA
mov eax, esi
lea edx, [esp + 4]
mov ecx, 0x105
call fcn.00404db4
add esp, 0x210
pop esi
pop ebx
ret

Function at 0x402f40
Capabilities:
Accept command line arguments

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffff8
push ebx
xor eax, eax
mov dword [ebp - 8], eax
xor eax, eax
push ebp
push 0x402f99
push dword fs:[eax]
mov dword fs:[eax], esp
xor ebx, ebx
call sub.kernel32.dll_GetCommandLineA
lea edx, [ebp - 8]
call fcn.00402ddc
mov dword [ebp - 4], eax
lea edx, [ebp - 8]
mov eax, dword [ebp - 4]
call fcn.00402ddc
mov dword [ebp - 4], eax
cmp dword [ebp - 8], 0
je 0x402f83
inc ebx
jmp 0x402f6c
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x402fa0
lea eax, [ebp - 8]
call fcn.00404b44
ret

Function at 0x402fa8
Capabilities:
Accept command line arguments

Disassembly:
push ebx
push esi
add esp, 0xfffffef4
mov ebx, edx
mov esi, eax
mov eax, ebx
call fcn.00404b44
test esi, esi
jne 0x402fdf
push 0x105
lea eax, [esp + 8]
push eax
push 0
call sub.kernel32.dll_GetModuleFileNameA
mov ecx, eax
lea edx, [esp + 4]
mov eax, ebx
call fcn.00404c34
jmp 0x403000
call sub.kernel32.dll_GetCommandLineA
mov dword [esp], eax
mov edx, ebx
mov eax, dword [esp]
call fcn.00402ddc
mov dword [esp], eax
test esi, esi
je 0x403000
cmp dword [ebx], 0
je 0x403000
dec esi
jmp 0x402fe7
add esp, 0x10c
pop esi
pop ebx
ret

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

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

Function at 0x403c1c
Capabilities:
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffff4
movzx eax, word [0x4df024]
mov dword [ebp - 8], eax
lea eax, [ebp - 4]
push eax
push 1
push 0
push 0x403cb4
push 0x80000002
call sub.advapi32.dll_RegOpenKeyExA
test eax, eax
jne 0x403c94
xor eax, eax
push ebp
push 0x403c8d
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 0x403cd0
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 0x403c94
mov eax, dword [ebp - 4]
push eax
call sub.advapi32.dll_RegCloseKey
ret
mov ax, word [0x4df024]
and ax, 0xffc0
mov dx, word [ebp - 8]
and dx, 0x3f
or ax, dx
mov word [0x4df024], ax
mov esp, ebp
pop ebp
ret
Function at 0x4049c0
Capabilities:
Write file on windows

Disassembly:
push ecx
cmp byte [0x4ec04c], 0
je 0x404a21
cmp word [0x4ec220], 0xd7b2
jne 0x4049e9
cmp dword [0x4ec228], 0
jbe 0x4049e9
mov eax, 0x4ec21c
call dword [0x4ec238]
push 0
lea eax, [esp + 4]
push eax
push 0x1e
push 0x4df094
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 0x404a48
push 0xfffffffffffffff5
call sub.kernel32.dll_GetStdHandle
push eax
call sub.kernel32.dll_WriteFile
pop edx
ret
cmp byte [0x4df034], 0
jne 0x404a3d
push 0
push 0x4df08c
push 0x4df094
push 0
call sub.user32.dll_MessageBoxA
pop edx
ret