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

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x1a4
mov edx, dword [ebp + 8]
xor ecx, ecx
mov eax, 0x423a90
cmp edx, dword [eax]
je 0x40aebf
add eax, 8
inc ecx
cmp eax, 0x423b20
jl 0x40aeb0
push esi
mov esi, ecx
shl esi, 3
cmp edx, dword [esi + 0x423a90]
jne 0x40afed
mov eax, dword [0x4293b0]
cmp eax, 1
je 0x40afc7
test eax, eax
jne 0x40aef0
cmp dword [0x423464], 1
je 0x40afc7
cmp edx, 0xfc
je 0x40afed
lea eax, [ebp - 0x1a4]
push 0x104
push eax
push 0
call dword [sym.imp.KERNEL32.dll_GetModuleFileNameA]
test eax, eax
jne 0x40af27
lea eax, [ebp - 0x1a4]
push str._program_name_unknown_
push eax
call fcn.0040c3b0
pop ecx
pop ecx
lea eax, [ebp - 0x1a4]
push edi
push eax
lea edi, [ebp - 0x1a4]
call fcn.0040c070
inc eax
pop ecx
cmp eax, 0x3c
jbe 0x40af6a
lea eax, [ebp - 0x1a4]
push eax
call fcn.0040c070
mov edi, eax
lea eax, [ebp - 0x1a4]
sub eax, 0x3b
push 3
add edi, eax
push 0x422218
push edi
call fcn.0040cd70
add esp, 0x10
lea eax, [ebp - 0xa0]
push str.Runtime_Error__n_nProgram:
push eax
call fcn.0040c3b0
lea eax, [ebp - 0xa0]
push edi
push eax
call fcn.0040c3c0
lea eax, [ebp - 0xa0]
push 0x41e2e8
push eax
call fcn.0040c3c0
push dword [esi + 0x423a94]
lea eax, [ebp - 0xa0]
push eax
call fcn.0040c3c0
push 0x12010
lea eax, [ebp - 0xa0]
push str.Microsoft_Visual_C_Runtime_Library
push eax
call fcn.0040cce7
add esp, 0x2c
pop edi
jmp 0x40afed
lea eax, [ebp + 8]
lea esi, [esi + 0x423a94]
push 0
push eax
push dword [esi]
call fcn.0040c070
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 0x410840
Capabilities:
Get graphical window text

Disassembly:
push ebp
mov ebp, esp
sub esp, 8
push ebx
push esi
push edi
mov esi, dword [ebp + 0x10]
push 0xf00021
mov edx, dword [esi + 4]
mov ecx, dword [esi]
mov eax, dword [esi + 0xc]
sub eax, edx
push eax
mov eax, dword [esi + 8]
sub eax, ecx
push eax
push edx
push ecx
mov ecx, dword [ebp + 0xc]
push ecx
call dword [sym.imp.GDI32.dll_PatBlt]
mov edi, dword [ebp + 8]
push edi
call dword [sym.imp.USER32.dll_GetWindowTextLengthA]
mov ebx, eax
lea eax, [eax + 5]
add eax, 3
and eax, 0xfffffffc
call fcn.00407a00
mov dword [ebp - 4], esp
cmp dword [ebp - 4], 0
je 0x41090b
add ebx, 2
mov eax, dword [ebp - 4]
push ebx
push eax
push edi
call dword [sym.imp.USER32.dll_GetWindowTextA]
test eax, eax
je 0x41090b
mov bx, 0x140
mov edi, dword [ebp + 0x14]
mov eax, edi
and al, 0xf
cmp al, 0xc
je 0x4108be
mov ebx, edi
and bx, 0xf
or bx, 0x150
test edi, 0x80
je 0x4108c9
or bh, 8
and edi, 0x8000000
je 0x4108e4
mov eax, dword [0x42ab3c]
mov ecx, dword [ebp + 0xc]
push eax
push ecx
call dword [sym.imp.GDI32.dll_SetTextColor]
mov dword [ebp - 8], eax
mov ecx, dword [ebp - 4]
mov edx, dword [ebp + 0xc]
movzx eax, bx
push eax
push esi
push 0xffffffffffffffff
push ecx
push edx
call dword [sym.imp.USER32.dll_DrawTextA]
test edi, edi
je 0x41090b
mov eax, dword [ebp - 8]
mov ecx, dword [ebp + 0xc]
push eax
push ecx
call dword [sym.imp.GDI32.dll_SetTextColor]
lea esp, [ebp - 0x14]
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x410ce0
Capabilities:
Extract resource via kernel32 functions

Disassembly:
mov eax, dword [esp + 8]
sub esp, 4
push ebx
push esi
mov esi, dword [esp + 0x10]
push edi
push ebp
push 2
push eax
push esi
call dword [sym.imp.KERNEL32.dll_FindResourceA]
mov edi, eax
test edi, edi
jne 0x410d0b
xor eax, eax
pop ebp
pop edi
pop esi
pop ebx
add esp, 4
ret 0x20
push edi
push esi
call dword [sym.imp.KERNEL32.dll_SizeofResource]
mov ebx, eax
push edi
push esi
call dword [sym.imp.KERNEL32.dll_LoadResource]
mov esi, eax
test esi, esi
jne 0x410d2f
xor eax, eax
pop ebp
pop edi
pop esi
pop ebx
add esp, 4
ret 0x20
push ebx
push 0x40
call dword [sym.imp.KERNEL32.dll_GlobalAlloc]
mov ebp, eax
test ebp, ebp
jne 0x410d4a
xor eax, eax
pop ebp
pop edi
pop esi
pop ebx
add esp, 4
ret 0x20
mov edi, ebp
mov ecx, ebx
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, ebx
and ecx, 3
rep movsb byte es:[edi], byte [esi]
mov eax, dword [esp + 0x20]
xor ecx, ecx
mov cl, ah
mov edx, eax
mov dword [esp + 0x10], 0
shl ecx, 8
shr edx, 0x10
mov byte [esp + 0x10], dl
xor edx, edx
or ecx, dword [esp + 0x10]
mov dl, al
shl edx, 0x10
mov eax, dword [esp + 0x28]
or ecx, edx
mov edx, eax
shr edx, 0x10
mov dword [ebp + 0x28], ecx
mov dword [esp + 0x10], 0
xor ecx, ecx
mov byte [esp + 0x10], dl
mov cl, ah
xor edx, edx
shl ecx, 8
mov dl, al
shl edx, 0x10
or ecx, dword [esp + 0x10]
or ecx, edx
mov eax, dword [esp + 0x24]
mov edx, eax
mov dword [ebp + 0x44], ecx
shr edx, 0x10
xor ecx, ecx
mov dword [esp + 0x10], 0
mov cl, ah
mov byte [esp + 0x10], dl
shl ecx, 8
xor edx, edx
or ecx, dword [esp + 0x10]
mov dl, al
shl edx, 0x10
mov eax, dword [esp + 0x2c]
or ecx, edx
xor edx, edx
mov dl, al
mov dword [ebp + 0x48], ecx
shl edx, 0x10
xor ecx, ecx
mov cl, ah
shl ecx, 8
shr eax, 0x10
or ecx, edx
xor edx, edx
mov dl, al
mov eax, dword [esp + 0x30]
or ecx, edx
xor edx, edx
mov dl, al
mov dword [ebp + 0x64], ecx
shl edx, 0x10
xor ecx, ecx
mov cl, ah
shl ecx, 8
shr eax, 0x10
or ecx, edx
xor edx, edx
mov dl, al
mov eax, dword [esp + 0x34]
or ecx, edx
xor edx, edx
mov dl, al
mov dword [ebp + 0x54], ecx
shl edx, 0x10
xor ecx, ecx
mov cl, ah
shl ecx, 8
push 0
shr eax, 0x10
or ecx, edx
xor edx, edx
mov dl, al
or ecx, edx
mov dword [ebp + 0x50], ecx
call dword [sym.imp.USER32.dll_GetDC]
mov edi, eax
push 0
push ebp
lea ecx, [ebp + 0x68]
push ecx
push 4
push ebp
push edi
call dword [sym.imp.GDI32.dll_CreateDIBitmap]
mov esi, eax
push edi
push 0
call dword [sym.imp.USER32.dll_ReleaseDC]
push ebp
call dword [sym.imp.KERNEL32.dll_GlobalFree]
mov eax, esi
pop ebp
pop edi
pop esi
pop ebx
add esp, 4
ret 0x20
Function at 0x41489e
Capabilities:
Extract resource via kernel32 functions

Disassembly:
push ebx
push esi
push edi
xor edi, edi
cmp dword [esp + 0x10], edi
mov ebx, ecx
je 0x4148e0
call fcn.00418f78
mov esi, dword [eax + 0xc]
push 0xf0
push dword [esp + 0x14]
push esi
call dword [sym.imp.KERNEL32.dll_FindResourceA]
cmp eax, edi
je 0x4148e0
push eax
push esi
call dword [sym.imp.KERNEL32.dll_LoadResource]
cmp eax, edi
jne 0x4148d7
xor eax, eax
jmp 0x4148e8
push eax
call dword [sym.imp.KERNEL32.dll_LockResource]
mov edi, eax
push edi
mov ecx, ebx
call fcn.004148ee
pop edi
pop esi
pop ebx
ret 4

Function at 0x419d02
Capabilities:
Get thread local storage value

Disassembly:
push ebx
push esi
mov esi, ecx
lea ebx, [esi + 0x1c]
push ebx
call dword [sym.imp.KERNEL32.dll_EnterCriticalSection]
cmp dword [esp + 0x10], 0
jne 0x419d30
push dword [esi]
call dword [sym.imp.KERNEL32.dll_TlsGetValue]
test eax, eax
je 0x419d4e
push dword [esp + 0xc]
mov ecx, esi
push eax
call fcn.00419c68
jmp 0x419d4e
mov eax, dword [esi + 0x14]
test eax, eax
je 0x419d4e
push edi
push dword [esp + 0x10]
mov edi, dword [eax + 4]
mov ecx, esi
push eax
call fcn.00419c68
test edi, edi
mov eax, edi
jne 0x419d38
pop edi
push ebx
call dword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
pop esi
pop ebx
ret 8
Function at 0x1012cfb3
Capabilities:
Decompress data using aplib

Disassembly:
push ebp
mov ebp, esp
mov esi, dword [ebp + 8]
mov edi, dword [ebp + 0xc]
cld
mov dl, 0x80
movsb byte es:[edi], byte [esi]
call fcn.1012d032
jae 0x1012cfbf
xor ecx, ecx
call fcn.1012d032
jae 0x1012cfe9
xor eax, eax
call fcn.1012d032
jae 0x1012cffa
mov al, 0x10
call fcn.1012d032
adc al, al
jae 0x1012cfdb
jne 0x1012d027
stosb byte es:[edi], al
jmp 0x1012cfc0
call fcn.1012d03e
dec ecx
loop 0x1012d006
mov eax, ebp
call fcn.1012d03c
jmp 0x1012d028
lodsb al, byte [esi]
shr eax, 1
je 0x1012d04e
adc ecx, 2
mov ebp, eax
jmp 0x1012d028
xchg ecx, eax
dec eax
shl eax, 8
lodsb al, byte [esi]
mov ebp, eax
call fcn.1012d03c
cmp eax, 0x7d00
jae 0x1012d026
cmp eax, 0x500
jae 0x1012d027
cmp eax, 0x7f
ja 0x1012d028
inc ecx
inc ecx
push esi
mov esi, edi
sub esi, eax
rep movsb byte es:[edi], byte [esi]
pop esi
jmp 0x1012cfc0
pop ebp
ret 8

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

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

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

Disassembly:
pushal
nop
nop
nop
nop
nop
nop
mov eax, section..rsrc
mov ebx, 0x40c7d0
nop
mov ecx, 0xf9c48a0
nop
nop
test eax, eax
nop
nop
nop
nop
nop
je 0x43204e
nop
nop
nop
xor dword [eax], ecx
nop
nop
nop
nop
nop
nop
inc eax
nop
nop
nop
nop
inc eax
nop
nop
nop
nop
nop
inc eax
nop
nop
nop
nop
nop
nop
inc eax
nop
nop
nop
nop
nop
nop
cmp eax, ebx
nop
nop
nop
jne 0x432024
nop
nop
mov eax, section..data
nop
mov ebx, 0x42f314
nop
mov ecx, 0x7218526e
test eax, eax
nop
nop
nop
nop
je 0x432084
nop
nop
nop
nop
nop
nop
nop
nop
xor dword [eax], ecx
nop
add eax, 4
nop
nop
nop
cmp eax, ebx
nop
nop
nop
nop
nop
nop
jne 0x43206c
nop
nop
nop
nop
nop
popal
nop
jmp 0x431219
Function at 0x407e15
Capabilities:
Terminate process

Disassembly:
cmp ecx, dword [0x42e180]
jne 0x407e1f
repz ret
jmp fcn.0040bc0c

Function at 0x417786
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x50
pushal
call 0x417795
pop dword [ebp - 0x40]
mov eax, 0x1b7ed8fc
sub eax, 0x1b3d6167
sub dword [ebp - 0x40], eax
mov dword [ebp - 0x50], 0xda37debb
sub dword [ebp - 0x50], 0x8be59970
mov dword [ebp - 0x4c], 0x9b75c4d0
sub dword [ebp - 0x4c], 0x6942788b
mov dword [ebp - 0x48], 0x426c85b5
add dword [ebp - 0x48], 0x9dfbe79
mov dword [ebp - 0x44], 0xb634d214
add dword [ebp - 0x44], 0x49cb2dec
lea eax, [ebp - 0x50]
push eax
mov eax, 0xa70fe8e7
add eax, 0x5932478d
add eax, dword [ebp - 0x40]
call dword [eax]
mov dword [ebp - 0x50], 0x708502c5
add dword [ebp - 0x50], 0x3ed6691
mov dword [ebp - 0x4c], 0x50ebc750
add dword [ebp - 0x4c], 0xf0809a25
mov dword [ebp - 0x48], 0x69684198
sub dword [ebp - 0x48], 0x5f8d52c
mov dword [ebp - 0x44], 0xcb66eb48
add dword [ebp - 0x44], 0x349914b8
lea ebx, [ebp - 0x50]
push ebx
push eax
mov eax, sym.imp.kernel32.dll_GetProcAddress
add eax, dword [ebp - 0x40]
call dword [eax]
push 0x40
push 0x1000
push 0x3f3a6
push 0
call eax
mov ecx, 0x450c3150
sub ecx, 0x450be4c2
xor esi, esi
add esi, eax
mov edx, 0x5ee0cf60
add edx, 0xa16274a0
add edx, dword [ebp - 0x40]
mov edi, 0xf2ca4324
add dword [ebp - 0x2c], 0x9c171303
mov ebx, dword [edx]
sub ebx, edi
xor dword [ebp - 0x38], eax
mov dword [esi], ebx
mov dword [ebp - 0x28], 0x43a48c88
add esi, 4
add edx, 0x8358578f
add edx, 0x7ca7a875
loop 0x4178ae
add eax, 0x6d121324
sub eax, 0x6d10ee19
mov ebx, eax
add eax, 5
mov ecx, 0x400000
add ecx, dword [ebp - 0x40]
call ebx
leave
ret
Function at 0x461f20
Capabilities:
Packed with generic packer

Disassembly:
pushal
mov esi, 0x455015
lea edi, [esi - 0x54015]
push edi
or ebp, 0xffffffff
jmp 0x461f42
mov al, byte [esi]
inc esi
mov byte [edi], al
inc edi
add ebx, ebx
jne 0x461f49
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
jb 0x461f38
mov eax, 1
add ebx, ebx
jne 0x461f5b
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc eax, eax
add ebx, ebx
jae 0x461f50
jne 0x461f6c
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
jae 0x461f50
xor ecx, ecx
sub eax, 3
jb 0x461f80
shl eax, 8
mov al, byte [esi]
inc esi
xor eax, 0xffffffff
je 0x461ff2
mov ebp, eax
add ebx, ebx
jne 0x461f8b
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc ecx, ecx
add ebx, ebx
jne 0x461f98
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc ecx, ecx
jne 0x461fbc
inc ecx
add ebx, ebx
jne 0x461fa8
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc ecx, ecx
add ebx, ebx
jae 0x461f9d
jne 0x461fb9
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
jae 0x461f9d
add ecx, 2
cmp ebp, 0xfffff300
adc ecx, 1
lea edx, [edi + ebp]
cmp ebp, 0xfffffffc
jbe 0x461fdc
mov al, byte [edx]
inc edx
mov byte [edi], al
inc edi
dec ecx
jne 0x461fcd
jmp 0x461f3e
mov eax, dword [edx]
add edx, 4
mov dword [edi], eax
add edi, 4
sub ecx, 4
ja 0x461fdc
add edi, ecx
jmp 0x461f3e
pop esi
mov edi, esi
mov ecx, 0x32d
mov al, byte [edi]
inc edi
sub al, 0xe8
cmp al, 1
ja 0x461ffa
cmp byte [edi], 0
jne 0x461ffa
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 eax, ebx
loop 0x461fff
lea edi, [esi + 0x5f000]
mov eax, dword [edi]
or eax, eax
je 0x46206e
mov ebx, dword [edi + 4]
lea eax, [eax + esi + 0x621f0]
add ebx, esi
push eax
add edi, 8
call dword [esi + 0x62254]
xchg ebp, eax
mov al, byte [edi]
inc edi
or al, al
je 0x46202c
mov ecx, edi
push edi
dec eax
repne scasb al, byte es:[edi]
push ebp
call dword [esi + 0x62258]
or eax, eax
je 0x462068
mov dword [ebx], eax
add ebx, 4
jmp 0x462049
call dword [esi + 0x6225c]
popal
jmp 0x4095a4

Function at 0x66b807
Capabilities:
Decompress data using aplib

Disassembly:
push ebp
mov ebp, esp
mov esi, dword [ebp + 8]
mov edi, dword [ebp + 0xc]
cld
mov dl, 0x80
movsb byte es:[edi], byte [esi]
call fcn.0066b886
jae 0x66b813
xor ecx, ecx
call fcn.0066b886
jae 0x66b83d
xor eax, eax
call fcn.0066b886
jae 0x66b84e
mov al, 0x10
call fcn.0066b886
adc al, al
jae 0x66b82f
jne 0x66b87b
stosb byte es:[edi], al
jmp 0x66b814
call fcn.0066b892
dec ecx
loop 0x66b85a
mov eax, ebp
call fcn.0066b890
jmp 0x66b87c
lodsb al, byte [esi]
shr eax, 1
je 0x66b8a2
adc ecx, 2
mov ebp, eax
jmp 0x66b87c
xchg ecx, eax
dec eax
shl eax, 8
lodsb al, byte [esi]
mov ebp, eax
call fcn.0066b890
cmp eax, 0x7d00
jae 0x66b87a
cmp eax, 0x500
jae 0x66b87b
cmp eax, 0x7f
ja 0x66b87c
inc ecx
inc ecx
push esi
mov esi, edi
sub esi, eax
rep movsb byte es:[edi], byte [esi]
pop esi
jmp 0x66b814
pop ebp
ret 8
Function at 0x406420
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffff8
push ebx
push esi
push edi
mov edi, 0x40ee50
mov dword [ebp - 4], edx
mov esi, ecx
cmp dword [edi + 4], 0
mov ebx, eax
jne 0x406440
call fcn.004063e8
mov eax, dword [ebp - 4]
jmp 0x406459
mov edx, ebx
xor ecx, ecx
xor dl, byte [eax]
dec esi
mov cl, dl
shr ebx, 8
mov edx, dword [edi + ecx*4]
xor edx, ebx
inc eax
mov ebx, edx
test esi, esi
jbe 0x406461
test al, 7
jne 0x406445
cmp esi, 8
jb 0x4064ea
xor ebx, dword [eax]
xor ecx, ecx
mov cl, bl
sub esi, 8
shr ebx, 8
mov edx, dword [edi + ecx*4]
xor edx, ebx
xor ecx, ecx
mov ebx, edx
mov cl, bl
shr ebx, 8
mov edx, dword [edi + ecx*4]
xor edx, ebx
xor ecx, ecx
mov ebx, edx
mov cl, bl
shr ebx, 8
mov edx, dword [edi + ecx*4]
xor edx, ebx
xor ecx, ecx
mov ebx, edx
mov cl, bl
shr ebx, 8
mov edx, dword [edi + ecx*4]
xor edx, ebx
xor ecx, ecx
mov ebx, edx
xor ebx, dword [eax + 4]
add eax, 8
mov cl, bl
shr ebx, 8
mov edx, dword [edi + ecx*4]
xor edx, ebx
xor ecx, ecx
mov ebx, edx
mov cl, bl
shr ebx, 8
mov edx, dword [edi + ecx*4]
xor edx, ebx
xor ecx, ecx
mov ebx, edx
mov cl, bl
shr ebx, 8
mov edx, dword [edi + ecx*4]
xor edx, ebx
xor ecx, ecx
mov ebx, edx
mov cl, bl
shr ebx, 8
mov edx, dword [edi + ecx*4]
xor edx, ebx
cmp esi, 8
mov ebx, edx
jae 0x40646a
xor ecx, ecx
mov dword [ebp - 8], ecx
cmp esi, dword [ebp - 8]
jbe 0x406514
mov ecx, dword [ebp - 8]
mov edx, ebx
shr ebx, 8
xor dl, byte [eax + ecx]
and edx, 0xff
mov ecx, dword [edi + edx*4]
xor ecx, ebx
mov ebx, ecx
inc dword [ebp - 8]
cmp esi, dword [ebp - 8]
ja 0x4064f4
mov eax, ebx
pop edi
pop esi
pop ebx
pop ecx
pop ecx
pop ebp
ret

Function at 0x409d7c
Capabilities:
Encrypt data using rc4 prga

Disassembly:
push ebx
push esi
cmp dword [0x40f7cc], 0
jg 0x409d9a
dec dword [0x40f7cc]
xor eax, eax
mov dword [0x41be04], eax
or eax, 0xffffffff
pop esi
pop ebx
ret
cmp dword [0x41be04], 0
jg 0x409def
push dword [0x41be20]
mov ecx, 0x2000
mov edx, 1
mov eax, dword [0x41bdfc]
call fcn.004070b4
mov dword [0x41be04], eax
test eax, eax
jne 0x409dd4
xor edx, edx
or eax, 0xffffffff
mov dword [0x41be04], edx
pop esi
pop ebx
ret
add dword [0x41be28], 0x2000
mov edx, dword [0x41bdfc]
mov dword [0x41be00], edx
call fcn.00409c34
mov ecx, dword [0x40fdf0]
test byte [ecx + 0x14], 1
je 0x409e26
mov esi, dword [0x41be04]
mov ebx, dword [0x41be00]
jmp 0x409e1d
call fcn.0040b0b4
xor byte [ebx], al
mov al, byte [ebx]
and eax, 0xff
call fcn.0040b0d8
inc ebx
mov edx, esi
add esi, 0xffffffff
test edx, edx
jne 0x409e09
dec dword [0x41be04]
mov ecx, dword [0x41be00]
inc dword [0x41be00]
xor eax, eax
mov al, byte [ecx]
pop esi
pop ebx
ret
Function at 0x40aff6
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffff4
push ebx
push esi
mov ebx, eax
mov eax, edx
call fcn.0040b154
lea eax, [ebp - 0xc]
mov ecx, 0xc
mov edx, ebx
call fcn.00407138
xor ebx, ebx
call fcn.0040b0b4
xor byte [ebp + ebx - 0xc], al
mov al, byte [ebp + ebx - 0xc]
and eax, 0xff
call fcn.0040b0d8
inc ebx
cmp ebx, 0xc
jl 0x40b018
mov edx, dword [0x40fdf0]
xor eax, eax
mov al, byte [ebp - 1]
test byte [edx + 0x14], 2
je 0x40b052
movzx ecx, word [0x41be4e]
sar ecx, 8
jmp 0x40b05e
mov ecx, dword [0x41be54]
shr ecx, 0x18
movzx ecx, cx
movzx eax, ax
cmp ecx, eax
je 0x40b06a
or eax, 0xffffffff
jmp 0x40b0ad
mov edx, dword [0x41be04]
cmp edx, dword [0x40f7cc]
jle 0x40b080
mov ebx, dword [0x40f7cc]
jmp 0x40b086
mov ebx, dword [0x41be04]
mov esi, dword [0x41be00]
jmp 0x40b0a2
call fcn.0040b0b4
xor byte [esi], al
mov al, byte [esi]
and eax, 0xff
call fcn.0040b0d8
inc esi
mov edx, ebx
add ebx, 0xffffffff
test edx, edx
jne 0x40b08e
xor eax, eax
pop esi
pop ebx
mov esp, ebp
pop ebp
ret

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

Disassembly:
mov edx, dword [0x41c014]
xor edx, eax
and edx, 0xff
mov ecx, dword [0x41bdf4]
mov edx, dword [ecx + edx*4]
mov ecx, dword [0x41c014]
shr ecx, 8
xor edx, ecx
mov dword [0x41c014], edx
mov edx, dword [0x41c014]
and edx, 0xff
add dword [0x41c018], edx
imul ecx, dword [0x41c018], 0x8088405
inc ecx
mov dword [0x41c018], ecx
mov edx, dword [0x41c018]
shr edx, 0x18
xor edx, dword [0x41c01c]
and edx, 0xff
mov ecx, dword [0x41bdf4]
mov edx, dword [ecx + edx*4]
mov ecx, dword [0x41c01c]
shr ecx, 8
xor edx, ecx
mov dword [0x41c01c], edx
ret
Function at 0x40b610
Capabilities:
Enumerate files on windows

Disassembly:
push 0xffffffffffffffff
push 0x46b96b
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x180
push ebx
push ebp
mov ebp, ecx
lea ecx, [esp + 8]
lea eax, [ebp + 0x40]
push eax
call fcn.0045fe3d
mov ecx, dword [esp + 8]
mov dword [esp + 0x190], 0
mov eax, dword [ecx - 8]
test eax, eax
je 0x40b692
lea edx, [esp + 0x10]
push 1
push edx
lea ecx, [esp + 0x10]
call fcn.0045dc5d
mov eax, dword [eax]
push 0x48f1d0
push eax
call fcn.00450114
add esp, 8
lea ecx, [esp + 0x10]
test eax, eax
setne bl
call fcn.004600c8
test bl, bl
je 0x40b692
push 0x48f1d0
lea ecx, [esp + 0xc]
call fcn.00460458
push 0x492d4c
lea ecx, [esp + 0xc]
call fcn.00460458
mov ecx, dword [esp + 8]
lea eax, [esp + 0x48]
push eax
push ecx
call dword [sym.imp.KERNEL32.dll_FindFirstFileA]
cmp eax, 0xffffffff
mov dword [esp + 0xc], eax
jne 0x40b6ce
lea ecx, [esp + 8]
mov dword [esp + 0x190], eax
call fcn.004600c8
jmp 0x40b799
push esi
mov esi, dword [esp + 0x19c]
push edi
mov edi, dword [sym.imp.USER32.dll_SendMessageA]
mov ebx, 0x23
test byte [esp + 0x50], 0x10
je 0x40b752
lea edx, [esp + 0x7c]
push 0x492d48
push edx
call fcn.00450114
add esp, 8
test eax, eax
je 0x40b752
lea eax, [esp + 0x7c]
push 0x492d44
push eax
call fcn.00450114
add esp, 8
test eax, eax
je 0x40b752
mov eax, dword [ebp + 0x1c]
lea edx, [esp + 0x1c]
push edx
push 0
lea ecx, [esp + 0x84]
push 0x1100
push eax
mov dword [esp + 0x2c], esi
mov dword [esp + 0x30], 0xffff0003
mov dword [esp + 0x4c], 0
mov dword [esp + 0x50], 1
mov dword [esp + 0x44], ecx
mov dword [esp + 0x34], ebx
call edi
mov edx, dword [esp + 0x14]
lea ecx, [esp + 0x50]
push ecx
push edx
call dword [sym.imp.KERNEL32.dll_FindNextFileA]
test eax, eax
jne 0x40b6e2
mov eax, dword [esp + 0x14]
push eax
call dword [sym.imp.KERNEL32.dll_FindClose]
mov ecx, dword [ebp + 0x1c]
push esi
push 2
push 0x1102
push ecx
call edi
lea ecx, [esp + 0x10]
mov dword [esp + 0x198], 0xffffffff
call fcn.004600c8
pop edi
pop esi
mov ecx, dword [esp + 0x188]
pop ebp
pop ebx
mov dword fs:[0], ecx
add esp, 0x18c
ret 4

Function at 0x40bf90
Capabilities:
Query or enumerate registry value

Disassembly:
mov ecx, dword [esp + 8]
mov edx, dword [esp + 4]
sub esp, 0x10c
lea eax, [esp]
push esi
push eax
push 1
push 0
push ecx
push edx
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
mov esi, eax
test esi, esi
jne 0x40bff2
mov edx, dword [esp + 4]
lea eax, [esp + 8]
lea ecx, [esp + 0xc]
push eax
push ecx
push esi
push edx
mov dword [esp + 0x18], 0x104
call dword [sym.imp.ADVAPI32.dll_RegQueryValueA]
mov ecx, dword [esp + 0x11c]
lea eax, [esp + 0xc]
push eax
push ecx
call dword [sym.imp.KERNEL32.dll_lstrcpyA]
mov edx, dword [esp + 4]
push edx
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov eax, esi
pop esi
add esp, 0x10c
ret 0xc
Function at 0x40c000
Capabilities:
Create process on windows

Disassembly:
push 0xffffffffffffffff
push 0x46b9eb
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x20c
mov eax, dword [0x49949c]
push esi
push edi
mov edi, ecx
mov dword [esp + 8], eax
mov eax, dword [edi + 0x44]
mov dword [esp + 0x21c], 0
test eax, eax
jne 0x40c138
mov ecx, dword [edi + 0x48]
lea esi, [edi + 0x48]
mov eax, dword [ecx - 8]
test eax, eax
jne 0x40c066
lea ecx, [esp + 8]
mov dword [esp + 0x21c], 0xffffffff
call fcn.004600c8
xor eax, eax
jmp 0x40c1af
push str.mailto:
lea ecx, [esp + 0xc]
call fcn.00460205
push esi
lea ecx, [esp + 0xc]
call fcn.00460494
mov ecx, dword [esp + 8]
push ebx
push ebp
mov ebp, dword [esp + 0x22c]
push ebp
push 0
push 0
push ecx
push str.open
push 0
call dword [sym.imp.SHELL32.dll_ShellExecuteA]
mov esi, eax
cmp esi, 0x20
ja 0x40c18d
lea edx, [esp + 0x14]
mov ecx, edi
push edx
push str..htm
push accept
call fcn.0040bf90
test eax, eax
jne 0x40c18d
mov ebx, dword [sym.imp.KERNEL32.dll_lstrcatA]
lea eax, [esp + 0x14]
push str._shellopencommand
push eax
call ebx
lea ecx, [esp + 0x14]
lea edx, [esp + 0x14]
push ecx
push edx
push accept
mov ecx, edi
call fcn.0040bf90
test eax, eax
jne 0x40c18d
lea eax, [esp + 0x14]
push 0x492d60
push eax
call fcn.00451150
mov esi, eax
add esp, 8
test esi, esi
jne 0x40c16c
lea ecx, [esp + 0x14]
push 0x492d5c
push ecx
call fcn.004510d0
mov esi, eax
add esp, 8
test esi, esi
jne 0x40c16c
lea edx, [esp + 0x14]
push edx
call dword [sym.imp.KERNEL32.dll_lstrlenA]
lea esi, [esp + eax + 0x13]
jmp 0x40c16f
lea edx, [edi + 0x4c]
lea ecx, [esp + 8]
push edx
call fcn.004601b5
mov eax, dword [esp + 8]
mov ecx, dword [eax - 8]
test ecx, ecx
jne 0x40c07e
lea ecx, [esp + 8]
mov dword [esp + 0x21c], 0xffffffff
call fcn.004600c8
xor eax, eax
jmp 0x40c1af
mov byte [esi], 0
push 0x492d58
push esi
call ebx
mov eax, dword [esp + 0x10]
push eax
push esi
call ebx
lea ecx, [esp + 0x14]
push ebp
push ecx
call dword [sym.imp.KERNEL32.dll_WinExec]
mov esi, eax
xor edx, edx
cmp esi, 0x20
setg dl
lea ecx, [esp + 0x10]
mov esi, edx
mov dword [esp + 0x224], 0xffffffff
call fcn.004600c8
pop ebp
mov eax, esi
pop ebx
mov ecx, dword [esp + 0x214]
pop edi
pop esi
mov dword fs:[0], ecx
add esp, 0x218
ret 4