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

Disassembly:
push 0xffffffffffffffff
push 0x4472a8
mov eax, dword fs:[0]
push eax
sub esp, 0x24
push ebx
push ebp
push esi
push edi
mov eax, dword [0x45cefc]
xor eax, esp
push eax
lea eax, [esp + 0x38]
mov dword fs:[0], eax
lea eax, [esp + 0x1c]
push eax
xor esi, esi
push esi
push str.Tahoma
mov dword [esp + 0x28], esi
call sub.gdiplus.dll_GdipCreateFontFamilyFromName
mov dword [esp + 0x20], eax
fld dword [0x4487e4]
mov edx, dword [esp + 0x1c]
lea ecx, [esp + 0x14]
push ecx
push 2
push esi
push ecx
fstp dword [esp]
push edx
mov dword [esp + 0x54], esi
mov dword [esp + 0x28], esi
call sub.gdiplus.dll_GdipCreateFont
mov edi, dword [esp + 0x14]
mov dword [esp + 0x28], eax
mov dword [esp + 0x24], edi
lea eax, [esp + 0x14]
push eax
push 0xfeffffff
mov dword [esp + 0x34], vtable.Gdiplus::SolidBrush.0
mov dword [esp + 0x1c], esi
call sub.gdiplus.dll_GdipCreateSolidFill
mov ebx, dword [esp + 0x14]
mov dword [esp + 0x34], eax
mov dword [esp + 0x30], ebx
lea ecx, [esp + 0x18]
mov dword [esp + 0x18], esi
mov esi, dword [esp + 0x4c]
push ecx
push esi
mov byte [esp + 0x48], 2
call fcn.00410720
mov ecx, eax
call fcn.00418c20
push esi
mov ebp, eax
call fcn.00410720
mov ecx, eax
call fcn.00418c00
mov esi, eax
mov eax, dword [esi]
sub eax, 0x10
cmp dword [eax + 0xc], 1
jle 0x42008e
mov edx, dword [eax + 4]
push edx
mov ecx, esi
call fcn.0040f4e0
mov ecx, dword [esp + 0x18]
lea eax, [esp + 0x2c]
push eax
mov eax, dword [esi]
push ecx
mov ecx, dword [esp + 0x50]
push ebp
lea edx, [esp + 0x30]
push edx
push 0xffffffffffffffff
push eax
call fcn.0040f0b0
push ebx
call sub.gdiplus.dll_GdipDeleteBrush
push edi
call sub.gdiplus.dll_GdipDeleteFont
mov ecx, dword [esp + 0x1c]
push ecx
call sub.gdiplus.dll_GdipDeleteFontFamily
mov ecx, dword [esp + 0x38]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x30
ret 8
Function at 0x420970
Capabilities:
Access peb ldr_data
Get ntdll base address

Disassembly:
push 0xffffffffffffffff
push 0x447350
mov eax, dword fs:[0]
push eax
sub esp, 0x28
push ebp
push esi
push edi
mov eax, dword [0x45cefc]
xor eax, esp
push eax
lea eax, [esp + 0x38]
mov dword fs:[0], eax
mov edi, ecx
lea eax, [esp + 0x14]
push eax
xor esi, esi
push esi
push 0x4487e8
mov dword [esp + 0x20], esi
call sub.gdiplus.dll_GdipCreateFontFamilyFromName
mov dword [esp + 0x18], eax
lea ecx, [esp + 0x10]
push ecx
push 0xc8000000
mov dword [esp + 0x48], esi
mov dword [esp + 0x34], vtable.Gdiplus::SolidBrush.0
mov dword [esp + 0x18], esi
call sub.gdiplus.dll_GdipCreateSolidFill
mov edx, dword [esp + 0x10]
mov dword [esp + 0x34], eax
mov dword [esp + 0x30], edx
fld dword [0x448ae8]
fstp dword [esp + 0x1c]
push 0x110
fld dword [0x448af4]
mov byte [esp + 0x44], 1
fstp dword [esp + 0x24]
call fcn.00410720
mov ecx, eax
call fcn.00418c00
mov esi, eax
mov eax, dword [esi]
sub eax, 0x10
cmp dword [eax + 0xc], 1
jle 0x420a1f
mov eax, dword [eax + 4]
push eax
mov ecx, esi
call fcn.0040f4e0
mov esi, dword [esi]
lea ecx, [esp + 0x2c]
push ecx
lea edx, [esp + 0x20]
push edx
call fcn.00410720
mov ecx, eax
call fcn.00418be0
mov ebp, dword [esp + 0x50]
push eax
push 0xffffffffffffffff
push esi
mov ecx, ebp
call fcn.0040f040
fld dword [0x448958]
mov eax, dword [edi + 0x34]
fstp dword [esp + 0x1c]
fld dword [0x44900c]
lea esi, [edi + 0x34]
fstp dword [esp + 0x20]
sub eax, 0x10
fld dword [0x449008]
fstp dword [esp + 0x24]
fld dword [0x449004]
fstp dword [esp + 0x28]
cmp dword [eax + 0xc], 1
jle 0x420a88
mov eax, dword [eax + 4]
push eax
mov ecx, esi
call fcn.0040f4e0
mov esi, dword [esi]
call fcn.00410720
mov ecx, eax
call fcn.00418be0
test eax, eax
je 0x420a9e
mov eax, dword [eax]
jmp 0x420aa0
xor eax, eax
mov edi, dword [esp + 0x10]
mov edx, dword [ebp]
push edi
push 0
lea ecx, [esp + 0x24]
push ecx
push eax
push 0xffffffffffffffff
push esi
push edx
call sub.gdiplus.dll_GdipDrawString
test eax, eax
je 0x420ac0
mov dword [ebp + 4], eax
push edi
call sub.gdiplus.dll_GdipDeleteBrush
mov eax, dword [esp + 0x14]
push eax
call sub.gdiplus.dll_GdipDeleteFontFamily
mov ecx, dword [esp + 0x38]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebp
add esp, 0x34
ret 4
Function at 0x420eb0
Capabilities:
Get graphical window text

Disassembly:
sub esp, 0x28
test ecx, ecx
push ebx
push ebp
push esi
push edi
je 0x420ec4
lea esi, [ecx - 0x28]
mov dword [esp + 0x10], esi
jmp 0x420ed0
mov dword [esp + 0x10], 0
mov esi, dword [esp + 0x10]
cmp dword [esp + 0x48], 0
mov ecx, dword [esi + 4]
mov dword [esp + 0x14], 1
je 0x420f6d
mov eax, dword [esp + 0x3c]
push eax
push ecx
call dword [sym.imp.USER32.dll_GetDlgItem]
mov esi, eax
push esi
call dword [sym.imp.USER32.dll_GetWindowTextLengthW]
mov ebx, dword [esp + 0x40]
mov edi, eax
push edi
mov ecx, ebx
or ebp, 0xffffffff
call fcn.004126c0
test eax, eax
je 0x420f51
lea edx, [edi + 1]
push edx
push eax
push esi
call dword [sym.imp.USER32.dll_GetWindowTextW]
mov edx, dword [ebx]
test edx, edx
mov ebp, eax
jne 0x420f28
xor eax, eax
jmp 0x420f41
mov eax, edx
lea esi, [eax + 2]
lea ecx, [ecx]
mov cx, word [eax]
add eax, 2
test cx, cx
jne 0x420f30
sub eax, esi
sar eax, 1
js 0x420f63
cmp eax, dword [edx - 8]
jg 0x420f63
mov dword [edx - 0xc], eax
mov ecx, dword [ebx]
mov word [ecx + eax*2], 0
cmp ebp, edi
jge 0x420fc2
mov esi, dword [esp + 0x10]
mov dword [esp + 0x14], 0
jmp 0x420f88
push 0x80070057
call entry0
mov edx, dword [esp + 0x40]
mov eax, dword [edx]
push eax
mov eax, dword [esp + 0x40]
push eax
push ecx
call dword [sym.imp.USER32.dll_SetDlgItemTextW]
test eax, eax
mov dword [esp + 0x14], eax
jne 0x420ff7
push 0xffffffffffffffff
add esi, 0x28
call dword [sym.imp.USER32.dll_MessageBeep]
test esi, esi
je 0x420f9c
lea eax, [esi - 0x28]
jmp 0x420f9e
xor eax, eax
mov edx, dword [esp + 0x3c]
mov eax, dword [eax + 4]
push edx
push eax
call dword [sym.imp.USER32.dll_GetDlgItem]
push eax
call dword [sym.imp.USER32.dll_SetFocus]
mov eax, dword [esp + 0x14]
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x28
ret 0x18
cmp dword [esp + 0x4c], 0
je 0x420ff7
mov ecx, dword [ebx]
mov edx, dword [ecx - 0xc]
cmp edx, dword [esp + 0x50]
jle 0x420ff7
mov ecx, dword [esp + 0x48]
mov edx, dword [esp + 0x3c]
lea eax, [esp + 0x18]
push eax
push ecx
mov ecx, dword [esp + 0x18]
push edx
add ecx, 0x28
call fcn.00412620
mov dword [esp + 0x14], 0
mov eax, dword [esp + 0x14]
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x28
ret 0x18
Function at 0x4228a2
Capabilities:
Check os version

Disassembly:
push ebp
lea ebp, [esp - 0x78]
sub esp, 0x98
mov eax, dword [0x45cefc]
xor eax, ebp
mov dword [ebp + 0x74], eax
push esi
mov esi, ecx
call fcn.004227e1
mov eax, 0x400000
push 0x94
mov dword [esi + 8], eax
mov dword [esi + 4], eax
lea eax, [ebp - 0x20]
push 0
push eax
mov dword [esi], 0x3c
mov byte [esi + 0xc], 0
call fcn.00423160
add esp, 0xc
lea eax, [ebp - 0x20]
push eax
mov dword [ebp - 0x20], 0x94
call dword [sym.imp.KERNEL32.dll_GetVersionExA]
cmp dword [ebp - 0x10], 2
jne 0x4228f1
cmp dword [ebp - 0x1c], 5
jb 0x422909
jmp 0x422905
cmp dword [ebp - 0x10], 1
jne 0x422909
cmp dword [ebp - 0x1c], 4
ja 0x422905
jne 0x422909
cmp dword [ebp - 0x18], 0
jbe 0x422909
mov byte [esi + 0xc], 1
lea ecx, [esi + 0x18]
mov dword [esi + 0x10], 0x800
mov dword [esi + 0x14], 0x449088
call fcn.00419490
test eax, eax
jge 0x42292a
mov byte [0x464df8], 1
mov ecx, dword [ebp + 0x74]
mov eax, esi
xor ecx, ebp
pop esi
call fcn.00423893
add ebp, 0x78
leave
ret

Function at 0x422adc
Capabilities:
Allocate or change rwx memory
Execute shellcode via indirect call

Disassembly:
cmp dword [0x4641a0], 0
push esi
jne 0x422a4f
call fcn.0042297a
test eax, eax
je 0x422a92
mov eax, dword [0x4641a0]
cmp eax, 1
jne 0x422a70
push 0xd
push 0
call dword [sym.imp.KERNEL32.dll_GetProcessHeap]
push eax
call dword [sym.imp.KERNEL32.dll_HeapAlloc]
test eax, eax
je 0x422a92
pop esi
ret
push eax
call dword [0x4641a8]
test eax, eax
jne 0x422ada
push 0x40
mov eax, 0x1000
push eax
push eax
push 0
call dword [sym.imp.KERNEL32.dll_VirtualAlloc]
mov esi, eax
test esi, esi
jne 0x422a96
xor eax, eax
pop esi
ret
mov eax, dword [esi]
push edi
push dword [0x4641a0]
call dword [0x4641a8]
mov edi, eax
test edi, edi
je 0x422abd
push 0x8000
push 0
push esi
call dword [sym.imp.KERNEL32.dll_VirtualFree]
mov eax, edi
jmp 0x422ad9
lea edi, [esi + 0xff0]
push esi
push dword [0x4641a0]
call dword [0x4641a4]
add esi, 0x10
cmp esi, edi
jb 0x422ac3
mov eax, esi
pop edi
pop esi
ret
jmp 0x422a3c

Function at 0x423893
Capabilities:
Terminate process

Disassembly:
cmp ecx, dword [0x45cefc]
jne 0x42389d
repz ret
jmp fcn.0042affc

Function at 0x425896
Capabilities:
Check if file exists
Get file attributes

Disassembly:
push esi
xor esi, esi
cmp dword [esp + 8], esi
jne 0x4258c3
call fcn.00425ae7
mov dword [eax], esi
call fcn.00425ad4
push esi
push esi
push esi
push esi
push esi
mov dword [eax], 0x16
call fcn.00424517
add esp, 0x14
push 0x16
pop eax
pop esi
ret
test dword [esp + 0xc], 0xfffffff9
jne 0x42589f
push dword [esp + 8]
call dword [sym.imp.KERNEL32.dll_GetFileAttributesA]
cmp eax, 0xffffffff
jne 0x4258f2
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
call fcn.00425afa
pop ecx
call fcn.00425ad4
mov eax, dword [eax]
pop esi
ret
test al, 0x10
jne 0x425919
test al, 1
je 0x425919
test byte [esp + 0xc], 2
je 0x425919
call fcn.00425ae7
mov dword [eax], 5
call fcn.00425ad4
mov dword [eax], 0xd
jmp 0x4258e9
xor eax, eax
pop esi
ret
Function at 0x425b18
Capabilities:
Check if file exists
Get file attributes
Set file attributes

Disassembly:
push esi
xor esi, esi
cmp dword [esp + 8], esi
jne 0x425b45
call fcn.00425ae7
mov dword [eax], esi
call fcn.00425ad4
push esi
push esi
push esi
push esi
push esi
mov dword [eax], 0x16
call fcn.00424517
add esp, 0x14
or eax, 0xffffffff
pop esi
ret
push dword [esp + 8]
call dword [sym.imp.KERNEL32.dll_GetFileAttributesA]
cmp eax, 0xffffffff
jne 0x425b63
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
call fcn.00425afa
pop ecx
jmp 0x425b40
test byte [esp + 0xc], 0x80
je 0x425b6f
and eax, 0xfffffffe
jmp 0x425b72
or eax, 1
push eax
push dword [esp + 0xc]
call dword [sym.imp.KERNEL32.dll_SetFileAttributesA]
test eax, eax
je 0x425b54
xor eax, eax
pop esi
ret

Function at 0x42ff98
Capabilities:
Link many functions at runtime

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x20
push ebx
push esi
push edi
call fcn.00428120
xor ebx, ebx
cmp dword [0x464ccc], ebx
mov dword [ebp - 0x10], eax
mov dword [ebp - 4], ebx
mov dword [ebp - 8], ebx
mov dword [ebp - 0xc], ebx
jne 0x43006d
push str.USER32.DLL
call dword [sym.imp.KERNEL32.dll_LoadLibraryA]
mov edi, eax
cmp edi, ebx
jne 0x42ffd8
xor eax, eax
jmp 0x430131
mov esi, dword [sym.imp.KERNEL32.dll_GetProcAddress]
push str.MessageBoxA
push edi
call esi
cmp eax, ebx
je 0x42ffd1
push eax
call fcn.004280bd
mov dword [esp], 0x449afc
push edi
mov dword [0x464ccc], eax
call esi
push eax
call fcn.004280bd
mov dword [esp], 0x449ae8
push edi
mov dword [0x464cd0], eax
call esi
push eax
call fcn.004280bd
mov dword [0x464cd4], eax
lea eax, [ebp - 8]
push eax
call fcn.00425e62
test eax, eax
pop ecx
pop ecx
je 0x43003b
push ebx
push ebx
push ebx
push ebx
push ebx
call fcn.0042441b
add esp, 0x14
cmp dword [ebp - 8], 2
jne 0x43006d
push str.GetUserObjectInformationA
push edi
call esi
push eax
call fcn.004280bd
cmp eax, ebx
pop ecx
mov dword [0x464cdc], eax
je 0x43006d
push 0x449ab4
push edi
call esi
push eax
call fcn.004280bd
pop ecx
mov dword [0x464cd8], eax
mov eax, dword [0x464cd8]
mov esi, dword [ebp - 0x10]
cmp eax, esi
je 0x4300e6
cmp dword [0x464cdc], esi
je 0x4300e6
push eax
call fcn.00428129
pop ecx
call eax
cmp eax, ebx
je 0x4300b3
lea ecx, [ebp - 0x14]
push ecx
push 0xc
lea ecx, [ebp - 0x20]
push ecx
push 1
push eax
push dword [0x464cdc]
call fcn.00428129
pop ecx
call eax
test eax, eax
je 0x4300b3
test byte [ebp - 0x18], 1
jne 0x4300e6
lea eax, [ebp - 0xc]
push eax
call fcn.00425e99
test eax, eax
pop ecx
je 0x4300ce
push ebx
push ebx
push ebx
push ebx
push ebx
call fcn.0042441b
add esp, 0x14
cmp dword [ebp - 0xc], 4
jb 0x4300dd
or dword [ebp + 0x10], 0x200000
jmp 0x430117
or dword [ebp + 0x10], 0x40000
jmp 0x430117
mov eax, dword [0x464cd0]
cmp eax, esi
je 0x430117
push eax
call fcn.00428129
pop ecx
call eax
cmp eax, ebx
mov dword [ebp - 4], eax
je 0x430117
mov eax, dword [0x464cd4]
cmp eax, esi
je 0x430117
push dword [ebp - 4]
push eax
call fcn.00428129
pop ecx
call eax
mov dword [ebp - 4], eax
push dword [ebp + 0x10]
push dword [ebp + 0xc]
push dword [ebp + 8]
push dword [ebp - 4]
push dword [0x464ccc]
call fcn.00428129
pop ecx
call eax
pop edi
pop esi
pop ebx
leave
ret
Function at 0x436060
Capabilities:
Encode data using xor

Disassembly:
push ecx
push ebx
push esi
xor eax, eax
push edi
mov dl, al
shr dl, 4
movzx edi, dl
mov cl, al
and cl, 0xf
movzx esi, cl
mov byte [esp + 0xf], cl
mov ecx, edi
movzx edi, byte [edi + 0x45e400]
xor ecx, esi
movzx esi, byte [esi + 0x45e3f0]
mov cl, byte [ecx + 0x45e410]
xor edi, esi
movzx esi, byte [edi + 0x45e430]
movzx ebx, byte [esi + 0x45e3f0]
movzx ecx, cl
movzx edi, byte [ecx + 0x45e400]
xor ecx, esi
xor edi, ebx
mov bl, byte [edi + 0x45e470]
movzx esi, dl
shl bl, 4
or bl, byte [ecx + 0x45e450]
movzx ecx, byte [esp + 0xf]
mov edx, esi
movzx esi, byte [esi + 0x45e400]
xor edx, ecx
movzx ecx, byte [ecx + 0x45e3f0]
mov dl, byte [edx + 0x45e420]
xor esi, ecx
movzx esi, byte [esi + 0x45e440]
movzx edi, byte [esi + 0x45e3f0]
movzx ecx, dl
movzx edx, byte [ecx + 0x45e400]
xor edx, edi
movzx edx, byte [edx + 0x45e480]
shl dl, 4
xor ecx, esi
or dl, byte [ecx + 0x45e460]
mov byte [eax + 0x473ee0], bl
mov byte [eax + 0x473fe0], dl
add eax, 1
cmp eax, 0x100
jb 0x436066
pop edi
pop esi
pop ebx
pop ecx
ret
Function at 0x437e10
Capabilities:
Encrypt data using blowfish

Disassembly:
sub esp, 8
push ebx
mov ebx, dword [esp + 0x10]
push esi
push 0x1048
push 0x45e490
push ebx
call fcn.00423b90
mov ecx, dword [esp + 0x24]
add esp, 0xc
cmp ecx, 0x48
jle 0x437e3a
mov ecx, 0x48
push edi
mov edi, dword [esp + 0x20]
mov eax, edi
add ecx, edi
lea esi, [ebx + 8]
mov dword [esp + 0x18], 6
push ebp
nop
movzx edx, byte [eax]
add eax, 1
cmp eax, ecx
jb 0x437e5c
mov eax, edi
movzx ebp, byte [eax]
shl edx, 8
add eax, 1
or edx, ebp
cmp eax, ecx
jb 0x437e6d
mov eax, edi
movzx ebp, byte [eax]
shl edx, 8
add eax, 1
or edx, ebp
cmp eax, ecx
jb 0x437e7e
mov eax, edi
movzx ebp, byte [eax]
shl edx, 8
add eax, 1
or edx, ebp
cmp eax, ecx
jb 0x437e8f
mov eax, edi
xor dword [esi - 8], edx
movzx edx, byte [eax]
add eax, 1
cmp eax, ecx
jb 0x437e9e
mov eax, edi
movzx ebp, byte [eax]
shl edx, 8
add eax, 1
or edx, ebp
cmp eax, ecx
jb 0x437eaf
mov eax, edi
movzx ebp, byte [eax]
shl edx, 8
add eax, 1
or edx, ebp
cmp eax, ecx
jb 0x437ec0
mov eax, edi
movzx ebp, byte [eax]
shl edx, 8
add eax, 1
or edx, ebp
cmp eax, ecx
jb 0x437ed1
mov eax, edi
xor dword [esi - 4], edx
movzx edx, byte [eax]
add eax, 1
cmp eax, ecx
jb 0x437ee0
mov eax, edi
movzx ebp, byte [eax]
shl edx, 8
add eax, 1
or edx, ebp
cmp eax, ecx
jb 0x437ef1
mov eax, edi
movzx ebp, byte [eax]
shl edx, 8
add eax, 1
or edx, ebp
cmp eax, ecx
jb 0x437f02
mov eax, edi
movzx ebp, byte [eax]
shl edx, 8
add eax, 1
or edx, ebp
cmp eax, ecx
jb 0x437f13
mov eax, edi
xor dword [esi], edx
add esi, 0xc
sub dword [esp + 0x1c], 1
jne 0x437e50
xor edi, edi
mov dword [esp + 0x10], edi
mov dword [esp + 0x14], edi
xor esi, esi
pop ebp
lea eax, [esp + 0xc]
push ebx
push eax
call fcn.00444b10
mov ecx, dword [esp + 0x14]
mov edx, dword [esp + 0x18]
mov dword [ebx + esi*4], ecx
mov dword [ebx + esi*4 + 4], edx
add esi, 2
add esp, 8
cmp esi, 0x12
jl 0x437f30
xor esi, esi
pop edi
lea eax, [esp + 8]
push ebx
push eax
call fcn.00444b10
mov ecx, dword [esp + 0x10]
mov edx, dword [esp + 0x14]
mov dword [ebx + esi*4 + 0x48], ecx
mov dword [ebx + esi*4 + 0x4c], edx
add esi, 2
add esp, 8
cmp esi, 0x400
jl 0x437f58
pop esi
pop ebx
add esp, 8
ret
Function at 0x441040
Capabilities:
Hash data using sha1

Disassembly:
mov eax, dword [esp + 4]
mov dword [eax + 4], 0
mov dword [eax], 0
mov dword [eax + 8], 0x67452301
mov dword [eax + 0xc], 0xefcdab89
mov dword [eax + 0x10], 0x98badcfe
mov dword [eax + 0x14], 0x10325476
mov dword [eax + 0x18], 0xc3d2e1f0
ret

Function at 0x441220
Capabilities:
Hash data using sha1

Disassembly:
mov eax, dword [esp + 4]
xor ecx, ecx
mov dword [eax + 0x18], ecx
mov dword [eax + 0x1c], ecx
mov dword [eax], 0x67452301
mov dword [eax + 4], 0xefcdab89
mov dword [eax + 8], 0x98badcfe
mov dword [eax + 0xc], 0x10325476
mov dword [eax + 0x10], 0xc3d2e1f0
ret
Function at 0x406de0
Capabilities:
Hide graphical window

Disassembly:
push 0
mov eax, dword [0x40a930]
push eax
call sub.user32.dll_ShowWindow
push 0xffffffffffffffec
mov eax, dword [0x40a930]
push eax
call sub.user32.dll_GetWindowLongA
or eax, 0x80
push eax
push 0xffffffffffffffec
mov eax, dword [0x40a930]
push eax
call sub.user32.dll_SetWindowLongA
push 5
mov eax, dword [0x40a930]
push eax
call sub.user32.dll_ShowWindow
ret

Function at 0x431000
Capabilities:
Encode data using xor

Disassembly:
pushal
nop
nop
nop
nop
nop
mov eax, section..text
nop
mov ebx, 0x40915c
nop
nop
mov ecx, 0x2fec6021
nop
nop
nop
test eax, eax
nop
nop
nop
nop
nop
je 0x43104e
nop
nop
nop
nop
xor dword [eax], ecx
nop
inc eax
nop
nop
nop
nop
nop
nop
nop
nop
nop
inc eax
nop
nop
nop
inc eax
nop
nop
nop
nop
inc eax
nop
nop
nop
nop
cmp eax, ebx
nop
nop
nop
nop
jne 0x431024
nop
nop
nop
mov eax, section..data
nop
nop
mov ebx, 0x42f3f8
nop
mov ecx, 0x26ff2c37
nop
nop
test eax, eax
nop
nop
nop
je 0x431084
nop
nop
nop
nop
xor dword [eax], ecx
nop
nop
nop
nop
nop
add eax, 4
nop
cmp eax, ebx
nop
nop
nop
nop
jne 0x43106c
nop
nop
nop
nop
nop
nop
nop
nop
nop
popal
jmp 0x401219
Function at 0x402afc
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.00404684
test esi, esi
jne 0x402b32
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.00404774
jmp 0x402b50
call sub.kernel32.dll_GetCommandLineA
mov edi, eax
mov edx, ebx
mov eax, edi
call fcn.00402a10
mov edi, eax
test esi, esi
je 0x402b50
cmp dword [ebx], 0
je 0x402b50
dec esi
jmp 0x402b39
add esp, 0x108
pop edi
pop esi
pop ebx
ret

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

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

Function at 0x4037a4
Capabilities:
Query or enumerate registry value

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

Function at 0x404508
Capabilities:
Write file on windows

Disassembly:
push ecx
cmp byte [0x53304c], 0
je 0x404569
cmp word [0x533220], 0xd7b2
jne 0x404531
cmp dword [0x533228], 0
jbe 0x404531
mov eax, 0x53321c
call dword [0x533238]
push 0
lea eax, [esp + 4]
push eax
push 0x1e
push 0x523074
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 0x404590
push 0xfffffffffffffff5
call sub.kernel32.dll_GetStdHandle
push eax
call sub.kernel32.dll_WriteFile
pop edx
ret
cmp byte [0x523034], 0
jne 0x404585
push 0
push 0x52306c
push 0x523074
push 0
call sub.user32.dll_MessageBoxA
pop edx
ret
Function at 0x405d2c
Capabilities:
Get geographical location
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffee0
push ebx
push esi
mov dword [ebp - 4], eax
push 0x105
lea eax, [ebp - 0x11d]
push eax
push 0
call sub.kernel32.dll_GetModuleFileNameA
mov byte [ebp - 0x12], 0
lea eax, [ebp - 8]
push eax
push 0xf0019
push 0
push 0x405f5c
push 0x80000001
call sub.advapi32.dll_RegOpenKeyExA
test eax, eax
je 0x405daf
lea eax, [ebp - 8]
push eax
push 0xf0019
push 0
push 0x405f5c
push 0x80000002
call sub.advapi32.dll_RegOpenKeyExA
test eax, eax
je 0x405daf
lea eax, [ebp - 8]
push eax
push 0xf0019
push 0
push 0x405f78
push 0x80000001
call sub.advapi32.dll_RegOpenKeyExA
test eax, eax
jne 0x405e38
xor eax, eax
push ebp
push 0x405e31
push dword fs:[eax]
mov dword fs:[eax], esp
mov dword [ebp - 0x18], 5
lea eax, [ebp - 0x11d]
mov edx, 0x105
call fcn.00405b74
lea eax, [ebp - 0x18]
push eax
lea eax, [ebp - 0x12]
push eax
push 0
push 0
lea eax, [ebp - 0x11d]
push eax
mov eax, dword [ebp - 8]
push eax
call sub.advapi32.dll_RegQueryValueExA
test eax, eax
je 0x405e16
lea eax, [ebp - 0x18]
push eax
lea eax, [ebp - 0x12]
push eax
push 0
push 0
push 0x405f98
mov eax, dword [ebp - 8]
push eax
call sub.advapi32.dll_RegQueryValueExA
test eax, eax
je 0x405e16
mov byte [ebp - 0x12], 0
mov byte [ebp - 0xe], 0
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x405e38
mov eax, dword [ebp - 8]
push eax
call sub.advapi32.dll_RegCloseKey
ret
push 0x105
mov eax, dword [ebp - 4]
push eax
lea eax, [ebp - 0x11d]
push eax
call sub.kernel32.dll_lstrcpynA
push 5
lea eax, [ebp - 0xd]
push eax
push 3
call sub.kernel32.dll_GetThreadLocale
push eax
call sub.kernel32.dll_GetLocaleInfoA
xor esi, esi
cmp byte [ebp - 0x11d], 0
je 0x405f52
cmp byte [ebp - 0xd], 0
jne 0x405e7f
cmp byte [ebp - 0x12], 0
je 0x405f52
lea eax, [ebp - 0x11d]
push eax
call sub.kernel32.dll_lstrlenA
mov ebx, eax
lea eax, [ebp - 0x11d]
add ebx, eax
jmp 0x405e98
dec ebx
cmp byte [ebx], 0x2e
je 0x405ea7
lea eax, [ebp - 0x11d]
cmp ebx, eax
jne 0x405e97
lea eax, [ebp - 0x11d]
cmp ebx, eax
je 0x405f52
inc ebx
cmp byte [ebp - 0x12], 0
je 0x405ee4
mov edx, ebx
sub edx, eax
mov eax, 0x105
sub eax, edx
push eax
lea eax, [ebp - 0x12]
push eax
push ebx
call sub.kernel32.dll_lstrcpynA
push 2
push 0
lea eax, [ebp - 0x11d]
push eax
call sub.kernel32.dll_LoadLibraryExA
mov esi, eax
test esi, esi
jne 0x405f52
cmp byte [ebp - 0xd], 0
je 0x405f52
lea eax, [ebp - 0x11d]
mov edx, ebx
sub edx, eax
mov eax, 0x105
sub eax, edx
push eax
lea eax, [ebp - 0xd]
push eax
push ebx
call sub.kernel32.dll_lstrcpynA
push 2
push 0
lea eax, [ebp - 0x11d]
push eax
call sub.kernel32.dll_LoadLibraryExA
mov esi, eax
test esi, esi
jne 0x405f52
mov byte [ebp - 0xb], 0
lea eax, [ebp - 0x11d]
mov edx, ebx
sub edx, eax
mov eax, 0x105
sub eax, edx
push eax
lea eax, [ebp - 0xd]
push eax
push ebx
call sub.kernel32.dll_lstrcpynA
push 2
push 0
lea eax, [ebp - 0x11d]
push eax
call sub.kernel32.dll_LoadLibraryExA
mov esi, eax
mov eax, esi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret