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

Disassembly:
push ebp
mov ebp, esp
push ecx
mov ecx, dword [ebp + 8]
push edi
xor edi, edi
test ecx, ecx
js 0x403340
mov eax, dword [0x429598]
push edi
add eax, ecx
push edi
push eax
push dword [0x40a014]
mov dword [0x40c954], eax
call dword [sym.imp.KERNEL32.dll_SetFilePointer]
push 4
call fcn.00403198
test eax, eax
js 0x403416
push ebx
push esi
push 4
lea eax, [ebp + 8]
push eax
push dword [0x40a014]
call fcn.00406b0d
test eax, eax
je 0x403411
push dword [ebp + 8]
add dword [0x40c954], 4
call fcn.00403198
mov esi, eax
test esi, esi
js 0x40340d
cmp dword [ebp + 0x10], edi
jne 0x4033e1
mov ecx, dword [ebp + 8]
test ecx, ecx
jle 0x40340d
mov ebx, 0x4000
mov edi, 0x4149f8
cmp ecx, ebx
mov eax, ebx
cmovl eax, ecx
push eax
push edi
push dword [0x40a014]
mov dword [ebp - 4], eax
call fcn.00406b0d
test eax, eax
je 0x403411
push dword [ebp - 4]
push edi
push dword [ebp + 0xc]
call fcn.00406bd0
test eax, eax
je 0x4033dd
mov eax, dword [ebp - 4]
add esi, eax
mov ecx, dword [ebp + 8]
add dword [0x40c954], eax
sub ecx, eax
mov dword [ebp + 8], ecx
test ecx, ecx
jg 0x403399
jmp 0x40340d
push 0xfffffffffffffffe
jmp 0x403413
push edi
lea eax, [ebp - 4]
push eax
mov eax, dword [ebp + 0x14]
cmp dword [ebp + 8], eax
cmovl eax, dword [ebp + 8]
push eax
push dword [ebp + 0x10]
push dword [0x40a014]
call dword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
je 0x403411
mov esi, dword [ebp - 4]
add dword [0x40c954], esi
mov eax, esi
jmp 0x403414
push 0xfffffffffffffffd
pop eax
pop esi
pop ebx
pop edi
leave
ret 0x10

Function at 0x403439
Capabilities:
Hide graphical window

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x80
cmp dword [ebp + 8], 0
je 0x403461
mov eax, dword [0x40c968]
test eax, eax
je 0x403458
push eax
call dword [sym.imp.USER32.dll_DestroyWindow]
and dword [0x40c968], 0
leave
ret
cmp dword [0x40c968], 0
je 0x403473
push 0
call fcn.004063d4
leave
ret
call dword [sym.imp.KERNEL32.dll_GetTickCount]
cmp eax, dword [0x429540]
jbe 0x4034dd
cmp dword [0x428538], 0
je 0x4034b8
test byte [0x429634], 1
je 0x4034dd
call fcn.0040341b
push eax
lea eax, [ebp - 0x80]
push str....__d__
push eax
call dword [sym.imp.USER32.dll_wsprintfW]
add esp, 0xc
lea eax, [ebp - 0x80]
push eax
push 0
call fcn.00405f0e
leave
ret
push 0
push 0x403797
push 0
push 0x6f
push dword [0x428534]
call dword [sym.imp.USER32.dll_CreateDialogParamW]
push 5
push eax
mov dword [0x40c968], eax
call dword [sym.imp.USER32.dll_ShowWindow]
leave
ret
Function at 0x405ff2
Capabilities:
Create directory

Disassembly:
push esi
xor esi, esi
push esi
push dword [esp + 0xc]
call dword [sym.imp.KERNEL32.dll_CreateDirectoryW]
test eax, eax
jne 0x40600c
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov esi, eax
mov eax, esi
pop esi
ret 4
Function at 0x406363
Capabilities:
Get common file path

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x23c
lea eax, [ebp - 0x23c]
push esi
mov esi, 0x104
push esi
push eax
call dword [sym.imp.KERNEL32.dll_GetSystemDirectoryW]
cmp eax, esi
pop esi
ja 0x40639d
test eax, eax
je 0x40639d
add eax, eax
cmp word [ebp + eax - 0x23e], 0x5c
je 0x40639f
mov ecx, 0x4082a8
jmp 0x4063a4
xor eax, eax
mov ecx, 0x4082aa
push dword [ebp + 8]
push ecx
lea ecx, [ebp - 0x23c]
add eax, ecx
push str._s_S.dll
push eax
call dword [sym.imp.USER32.dll_wsprintfW]
add esp, 0x10
lea eax, [ebp - 0x23c]
push 8
push 0
push eax
call dword [sym.imp.KERNEL32.dll_LoadLibraryExW]
leave
ret 4

Function at 0x406402
Capabilities:
Move file

Disassembly:
push 5
push dword [esp + 0xc]
push dword [esp + 0xc]
call dword [sym.imp.KERNEL32.dll_MoveFileExW]
test eax, eax
jne 0x406425
push dword [esp + 8]
push dword [esp + 8]
call fcn.004064cb
pop ecx
pop ecx
inc dword [0x429610]
ret 8

Function at 0x4064cb
Capabilities:
Get file size

Disassembly:
push ebx
push ebp
push esi
mov esi, dword [esp + 0x14]
mov ebx, 0x400
mov dword [0x426680], 0x55004e
mov ebp, 0x426680
mov dword [0x426684], 0x4c
push edi
mov edi, dword [sym.imp.KERNEL32.dll_GetShortPathNameW]
test esi, esi
je 0x406521
push 1
push 0
push esi
call fcn.00406ae0
push eax
call dword [sym.imp.KERNEL32.dll_CloseHandle]
push ebx
push ebp
push esi
call edi
test eax, eax
je 0x406601
cmp eax, ebx
jg 0x406601
push ebx
mov esi, 0x425e80
push esi
push dword [esp + 0x1c]
call edi
test eax, eax
je 0x406601
cmp eax, ebx
jg 0x406601
push esi
push ebp
push str._ls_ls_r_n
push 0x425a80
call dword [sym.imp.USER32.dll_wsprintfA]
mov ecx, dword [0x429550]
add esp, 0x10
mov ebp, eax
push dword [ecx + 0x128]
push esi
call fcn.0040606d
push 4
push 0xc0000000
push esi
call fcn.00406ae0
mov ebx, eax
cmp ebx, 0xffffffff
je 0x406601
push 0
push ebx
call dword [sym.imp.KERNEL32.dll_GetFileSize]
mov esi, eax
lea ecx, [ebp + 0xa]
add ecx, esi
push ecx
push 0x40
call dword [sym.imp.KERNEL32.dll_GlobalAlloc]
mov edi, eax
test edi, edi
je 0x4065fa
push esi
push edi
push ebx
call fcn.00406b0d
test eax, eax
je 0x4065fa
push str._Rename__r_n
push edi
call fcn.00406cfb
test eax, eax
jne 0x406606
push str._Rename__r_n
lea eax, [edi + esi]
push eax
call dword [sym.imp.KERNEL32.dll_lstrcpyA]
add esi, 0xa
mov ecx, esi
push ebp
push 0x425a80
lea eax, [ecx + edi]
push eax
call fcn.00406879
xor eax, eax
push eax
push eax
push eax
push ebx
call dword [sym.imp.KERNEL32.dll_SetFilePointer]
lea eax, [esi + ebp]
push eax
push edi
push ebx
call fcn.00406bd0
push edi
call dword [sym.imp.KERNEL32.dll_GlobalFree]
push ebx
call dword [sym.imp.KERNEL32.dll_CloseHandle]
pop edi
pop esi
pop ebp
pop ebx
ret
push 0x4089bc
add eax, 0xa
push eax
call fcn.00406cfb
mov ecx, eax
test ecx, ecx
je 0x4065cb
lea edx, [edi + esi]
jmp 0x406625
mov al, byte [edx]
mov byte [edx + ebp], al
dec edx
cmp edx, ecx
ja 0x40661f
sub ecx, edi
inc ecx
jmp 0x4065cd
Function at 0x40674a
Capabilities:
Delete directory
Delete file
Set file attributes

Disassembly:
push ebp
mov ebp, esp
push edi
push dword [ebp + 8]
call fcn.00406d62
mov edi, eax
cmp edi, 0xffffffff
je 0x40678d
test byte [ebp + 0xc], 1
push dword [ebp + 8]
je 0x40676e
call dword [sym.imp.KERNEL32.dll_RemoveDirectoryW]
jmp 0x406774
call dword [sym.imp.KERNEL32.dll_DeleteFileW]
test eax, eax
je 0x40677d
xor eax, eax
inc eax
jmp 0x40678f
test byte [ebp + 0xc], 4
jne 0x40678d
push edi
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.dll_SetFileAttributesW]
xor eax, eax
pop edi
pop ebp
ret 8

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

Disassembly:
push ebx
push esi
push dword [esp + 0xc]
mov ebx, 0x425280
push ebx
call fcn.00406cdf
push ebx
call fcn.00406d8a
mov esi, eax
test esi, esi
je 0x406872
push esi
call fcn.00406f02
test byte [0x42954c], 0x80
je 0x406836
movzx eax, word [esi]
test ax, ax
je 0x406872
cmp eax, 0x5c
je 0x406872
sub esi, ebx
sar esi, 1
jmp 0x406850
call fcn.00406794
test eax, eax
je 0x40684a
test byte [eax], 0x10
je 0x406872
push ebx
call fcn.00406ed5
push ebx
call dword [sym.imp.KERNEL32.dll_lstrlenW]
push ebx
cmp eax, esi
jg 0x40683c
call fcn.0040671b
push ebx
call dword [sym.imp.KERNEL32.dll_GetFileAttributesW]
cmp eax, 0xffffffff
je 0x406872
xor eax, eax
inc eax
jmp 0x406874
xor eax, eax
pop esi
pop ebx
ret 4

Function at 0x40689b
Capabilities:
Create process on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x10
mov dword [0x424a38], 0x44
lea eax, [ebp - 0x10]
push eax
push 0x424a38
xor eax, eax
push eax
push eax
push 0x4000000
push eax
push eax
push eax
push dword [ebp + 8]
push eax
call dword [sym.imp.KERNEL32.dll_CreateProcessW]
test eax, eax
je 0x4068da
push dword [ebp - 0xc]
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov eax, dword [ebp - 0x10]
leave
ret 4
Function at 0x4068de
Capabilities:
Delete file
Enumerate files on windows
Enumerate files recursively

Disassembly:
sub esp, 0x25c
push ebx
mov ebx, dword [esp + 0x268]
push esi
mov esi, dword [esp + 0x268]
push edi
mov edi, ebx
push esi
and edi, 4
call fcn.004067fd
mov dword [esp + 0x14], eax
test bl, 8
je 0x406920
push esi
call dword [sym.imp.KERNEL32.dll_DeleteFileW]
neg eax
sbb eax, eax
inc eax
add dword [0x429608], eax
jmp 0x406a9f
push ebp
mov ebp, ebx
and ebp, 1
mov dword [esp + 0x14], ebp
je 0x40693d
test eax, eax
je 0x406a8e
test bl, 2
je 0x406a57
push esi
push 0x424a80
call fcn.00406cdf
test ebp, ebp
mov ebp, dword [sym.imp.KERNEL32.dll_lstrcatW]
je 0x406960
push str..
push 0x424a80
call ebp
jmp 0x406966
push esi
call fcn.00406ed5
xor eax, eax
cmp word [esi], ax
jne 0x406977
cmp word [0x424a80], 0x5c
jne 0x40697f
push 0x4082a8
push esi
call ebp
push esi
call dword [sym.imp.KERNEL32.dll_lstrlenW]
lea eax, [esi + eax*2]
mov dword [esp + 0x10], eax
lea eax, [esp + 0x1c]
push eax
push 0x424a80
call dword [sym.imp.KERNEL32.dll_FindFirstFileW]
mov ebp, eax
cmp ebp, 0xffffffff
je 0x406a40
push 0x2e
pop eax
cmp word [esp + 0x48], ax
jne 0x4069c9
cmp word [esp + 0x4a], 0
je 0x406a22
cmp word [esp + 0x4a], ax
jne 0x4069c9
cmp word [esp + 0x4c], 0
je 0x406a22
lea eax, [esp + 0x48]
push eax
push dword [esp + 0x14]
call fcn.00406cdf
test byte [esp + 0x1c], 0x10
je 0x4069f0
mov eax, ebx
and eax, 3
cmp al, 3
jne 0x406a22
push ebx
push esi
call fcn.004068de
jmp 0x406a22
push edi
push esi
call fcn.0040674a
test eax, eax
jne 0x406a1a
test edi, edi
je 0x406a12
push esi
push 0xfffffffffffffff1
call fcn.00405f0e
xor eax, eax
push eax
push esi
call fcn.00406402
jmp 0x406a22
inc dword [0x429608]
jmp 0x406a22
push esi
push 0xfffffffffffffff2
call fcn.00405f0e
lea eax, [esp + 0x1c]
push eax
push ebp
call dword [sym.imp.KERNEL32.dll_FindNextFileW]
push 0x2e
test eax, eax
pop eax
jne 0x4069ab
push ebp
call dword [sym.imp.KERNEL32.dll_FindClose]
cmp dword [esp + 0x14], 0
je 0x406a9e
mov eax, dword [esp + 0x10]
xor ecx, ecx
mov word [eax - 2], cx
cmp dword [esp + 0x18], ecx
je 0x406a8e
push esi
call fcn.00406794
test eax, eax
je 0x406a9e
push esi
call fcn.0040671b
mov eax, edi
or eax, 1
push eax
push esi
call fcn.0040674a
test eax, eax
jne 0x406a96
test edi, edi
je 0x406a8e
push esi
push 0xfffffffffffffff1
call fcn.00405f0e
xor eax, eax
push eax
push esi
call fcn.00406402
jmp 0x406a9e
inc dword [0x429608]
jmp 0x406a9e
push esi
push 0xffffffffffffffe5
call fcn.00405f0e
pop ebp
pop edi
pop esi
pop ebx
add esp, 0x25c
ret 8

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

Disassembly:
push dword [esp + 4]
call dword [sym.imp.KERNEL32.dll_GetFileAttributesW]
xor ecx, ecx
cmp eax, 0xffffffff
push 0
cmove eax, ecx
push eax
push dword [esp + 0x14]
push ecx
push 1
push dword [esp + 0x1c]
push dword [esp + 0x1c]
call dword [sym.imp.KERNEL32.dll_CreateFileW]
ret 0xc
Function at 0x406b3c
Capabilities:
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
push ecx
push ecx
push edi
lea eax, [ebp - 4]
mov dword [ebp - 8], 0x800
push eax
mov eax, dword [ebp + 0x18]
neg eax
sbb eax, eax
and eax, 0x100
or eax, 0x20019
push eax
push dword [ebp + 0xc]
push dword [ebp + 8]
call fcn.0040649d
mov edi, dword [ebp + 0x14]
test eax, eax
jne 0x406bae
push esi
lea eax, [ebp - 8]
push eax
push edi
lea eax, [ebp + 0x18]
push eax
push 0
push dword [ebp + 0x10]
push dword [ebp - 4]
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
push dword [ebp - 4]
mov esi, eax
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
xor eax, eax
test esi, esi
mov word [edi + 0x7fe], ax
pop esi
jne 0x406bae
cmp dword [ebp + 0x18], 1
je 0x406bb3
cmp dword [ebp + 0x18], 2
je 0x406bb3
xor eax, eax
mov word [edi], ax
pop edi
leave
ret 0x14

Function at 0x406bb8
Capabilities:
Create process on windows

Disassembly:
mov eax, dword [esp + 4]
push eax
and dword [eax + 0x24], 0
mov dword [eax], 0x3c
call dword [sym.imp.SHELL32.dll_ShellExecuteExW]
ret 4

Function at 0x406c1b
Capabilities:
Get common file path

Disassembly:
push ebp
mov ebp, esp
push ecx
push ecx
push esi
mov esi, dword [ebp + 8]
push edi
push 0x64
pop edi
dec edi
mov dword [ebp - 8], 0x73006e
mov dword [ebp - 4], 0x61
call dword [sym.imp.KERNEL32.dll_GetTickCount]
push 0x1a
pop ecx
xor edx, edx
div ecx
push esi
add word [ebp - 4], dx
lea eax, [ebp - 8]
push 0
push eax
push dword [ebp + 0xc]
call dword [sym.imp.KERNEL32.dll_GetTempFileNameW]
test eax, eax
jne 0x406c65
test edi, edi
jne 0x406c28
mov word [esi], ax
jmp 0x406c67
mov eax, esi
pop edi
pop esi
leave
ret 8

Function at 0x406d62
Capabilities:
Check if file exists
Get file attributes
Set file attributes

Disassembly:
push esi
push dword [esp + 8]
call dword [sym.imp.KERNEL32.dll_GetFileAttributesW]
mov esi, eax
cmp esi, 0xffffffff
je 0x406d84
mov ecx, esi
and ecx, 0xfffffffe
push ecx
push dword [esp + 0xc]
call dword [sym.imp.KERNEL32.dll_SetFileAttributesW]
mov eax, esi
pop esi
ret 4

Function at 0x407001
Capabilities:
Encode data using xor
Hash data with crc32

Disassembly:
cmp dword [0x4270d4], 0
push esi
jne 0x40703b
xor ecx, ecx
push 8
mov edx, ecx
pop esi
mov eax, edx
and al, 1
movzx eax, al
neg eax
sbb eax, eax
shr edx, 1
and eax, 0xedb88320
xor edx, eax
sub esi, 1
jne 0x407012
mov dword [ecx*4 + 0x4270d0], edx
inc ecx
cmp ecx, 0x100
jl 0x40700d
mov ecx, dword [esp + 8]
mov edx, dword [esp + 0x10]
not ecx
test edx, edx
je 0x407065
mov esi, dword [esp + 0xc]
movzx eax, byte [esi]
xor eax, ecx
shr ecx, 8
movzx eax, al
xor ecx, dword [eax*4 + 0x4270d0]
inc esi
sub edx, 1
jne 0x40704d
not ecx
mov eax, ecx
pop esi
ret 0xc
Function at 0xec71ec
Capabilities:
Encode data using xor

Disassembly:
jmp 0xec71f6
pushal
call 0xec71fc
pop ebp
sub ebp, 0x10
sub ebp, 0xac71ec
jmp 0xec7212
mov eax, 0xac71ec
add eax, ebp
add eax, 0x4c
mov ecx, 0x5b2
mov edx, 0x2c39dd8c
xor byte [eax], dl
inc eax
dec ecx
jne 0xec7229
jmp 0xec723c
pop es
inc ecx
pop es
add eax, 0x8c8c8cb0
or eax, 0x8c8c744d
mov word [edi - 0x7374cbbf], cs
mov word [esi + esi - 0x7373735c], cs
jnp 0xec72c6
pop dword [edi + eax + 0xd]
or byte [esp + ecx*4 - 0x23b67074], 0xdc
in al, 0x1c
mov byte [0xd0e48cae], al
iretd
mov word [esp - 0x73515de4], cs
in al, 0xd0
iretd
mov word [ebp - 0x73737123], cs
fld dword [edi]
pushal
jae 0xec72cb
mov word [ecx + ebx*8 - 0x68c9ff9], cs
xor byte [ebx - 7], 0x84
or byte fs:[esp + ecx*4 - 0x7bcef874], cl
mov word [esp + ecx*4 + 0x24257d0d], cs
salc
jne 0xec72f5
mov word [edi], es
xor dword [esp + ecx*4 + 0x7d0d8c8c], eax
and eax, 0xd75d624
jge 0xec730f
and eax, 0xbf75d624
and al, 0xd6
jne 0xec72ad
inc ebp
or eax, 0xc300137e
push ebx
or eax, 0xc300137e
push ebx
mov edi, 0x89640f5e
les eax, [ebx - 0x73733df8]
mov word [ebx - 0x73733bfc], es
mov edx, gs
pop es
nop
mov ch, 0xc
ja 0xec7378
or dword [eax], 0xffffff96
mov word [esp + ecx*4 - 0x7c9a88f4], cs
or byte [ebp - 0x15737374], bl
or eax, 0x83a97377
or byte [ecx - 0x32737374], bl
inc eax
jae 0xec73a6
jae 0xec72da
sal byte [ebp - 0x76b2f073], 0xf
mov byte fs:[ebp + 0x31], ah
jae 0xec73b5
jae 0xec72e9
fdiv dword [ebp - 0x75b2f072]
pcmpgtd mm1, qword [eax + 0x6589640f]
daa
jae 0xec73c7
jae 0xec735d
mov al, byte [0xa8e801a8]
mov byte [esi - 0x80], cl
mov ecx, ds
pop es
pushal
fcmovu st(0), st(3)
fld dword [edi]
or byte [ecx + ebx*8 - 0x24259ff9], 0xd9
pop es
stc
add byte [edi], 0xf1
test byte [eax + 0x3e], dh
or al, 6
mov cl, byte [0x8c8c8d4a]
mov word [ebx + ecx*4], es
or eax, 0x8c8c8d4b
invalid
mov word [esp + ecx*4 + 0x5e8e4cbf], cs
or dword [ecx], 0xffffff89
mov word [esp + ecx*4 - 0x613565fa], cs
pop esi
or dword [edi], 0xffffffa6
lea ecx, [esp + ecx*4 + 0x9835e8e]
mov dword [esp + ecx*4 - 0x3565f974], ecx
sahf
pop esi
lahf
dec esp
mov ds, word [esi - 0x7d]
or dword [ecx + 0x68c8c8c], ecx
lcall 0x8e4c, 0x9f5e9eca
pop esi
or dword [ecx], 0xffffff89
mov word [esp + ecx*4 - 0x613565fa], cs
pop esi
lahf
dec esp
mov ds, word [esi - 0x7d]
or dword [ecx + 0x68c8c8c], ecx
lcall 0x834c, 0x9f5e9eca
or byte [edx + 0x78c8c8c], cl
push ebx
cmpsd dword [esi], dword es:[edi]
push esp
retf 0x5e9e
lcall 0x8e4c, 0x9f5e9eca
pop esi
or dword [ecx], 0xffffff89
mov word [esp + ecx*4 - 0x613565fa], cs
pop esi
lahf
dec esp
mov ds, word [esi - 0x7d]
or dword [ecx + 0x68c8c8c], ecx
lcall 0x8e4c, 0x9f5e9eca
pop esi
or dword [ecx], 0xffffff89
mov word [esp + ecx*4 - 0x613565fa], cs
pop esi
lahf
dec esp
or dword [eax], 0xffffff8a
mov word [esp + ecx*4 + 0x54a75307], cs
push es
pop dword [ebx + ecx*4]
retf
Function at 0x406864
Capabilities:
Get common file path

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x23c
push esi
mov esi, 0x104
lea eax, [ebp - 0x23c]
push esi
push eax
call dword [sym.imp.KERNEL32.dll_GetSystemDirectoryW]
cmp eax, esi
pop esi
jbe 0x406888
xor eax, eax
test eax, eax
je 0x40689b
cmp word [ebp + eax*2 - 0x23e], 0x5c
je 0x40689b
xor ecx, ecx
jmp 0x40689e
xor ecx, ecx
inc ecx
push dword [ebp + 8]
lea ecx, [ecx*2 + 0x40a014]
lea eax, [ebp + eax*2 - 0x23c]
push ecx
push str._s_S.dll
push eax
call dword [sym.imp.USER32.dll_wsprintfW]
add esp, 0x10
lea eax, [ebp - 0x23c]
push 8
push 0
push eax
call dword [sym.imp.KERNEL32.dll_LoadLibraryExW]
leave
ret 4

Function at 0x4069c1
Capabilities:
Encode data using xor
Hash data with crc32

Disassembly:
cmp dword [0x427dac], 0
push esi
jne 0x4069f8
xor ecx, ecx
push 8
mov eax, ecx
pop esi
mov edx, eax
and dl, 1
neg dl
sbb edx, edx
and edx, 0xedb88320
shr eax, 1
xor eax, edx
dec esi
jne 0x4069d2
mov dword [ecx*4 + 0x427da8], eax
inc ecx
cmp ecx, 0x100
jl 0x4069cd
mov edx, dword [esp + 0x10]
mov eax, dword [esp + 8]
test edx, edx
not eax
jbe 0x406a29
mov ecx, dword [esp + 0xc]
push edi
movzx edi, byte [ecx]
mov esi, eax
and esi, 0xff
xor esi, edi
shr eax, 8
mov esi, dword [esi*4 + 0x427da8]
xor eax, esi
inc ecx
dec edx
jne 0x406a0b
pop edi
not eax
pop esi
ret 0xc

Function at 0x403d61
Capabilities:
Encode data using xor

Disassembly:
push eax
push ebx
mov eax, 0x499
mov ecx, 0x404498
mov bl, byte [ecx]
sub bl, 0xf2
rol bl, 2
sub bl, cl
ror bl, 1
mov byte [ecx], bl
dec ecx
dec eax
jne 0x403d6d
mov eax, 0x261d
mov ecx, 0x403764
mov bl, byte [ecx]
rol bl, 7
ror bl, 2
sub bl, cl
xor bl, 0x91
mov byte [ecx], bl
dec ecx
dec eax
jne 0x403d8a
pop ebx
pop eax
add ecx, 0x2c1a
jmp ecx

Function at 0x403d61
Capabilities:
Encode data using xor

Disassembly:
push eax
push ebx
mov eax, 0x499
mov ecx, 0x404498
mov bl, byte [ecx]
sub bl, 0xf2
rol bl, 2
sub bl, cl
ror bl, 1
mov byte [ecx], bl
dec ecx
dec eax
jne 0x403d6d
mov eax, 0x261d
mov ecx, 0x403764
mov bl, byte [ecx]
rol bl, 7
ror bl, 2
sub bl, cl
xor bl, 0x91
mov byte [ecx], bl
dec ecx
dec eax
jne 0x403d8a
pop ebx
pop eax
add ecx, 0x2c1a
jmp ecx
Function at 0x40279c
Capabilities:
Generate random numbers using the delphi lcg

Disassembly:
imul edx, dword [0x40c02c], 0x8088405
inc edx
mov dword [0x40c02c], edx
mul edx
mov eax, edx
ret

Function at 0x4042e8
Capabilities:
Encode data using xor

Disassembly:
mov edi, 0xd020825
mov ebx, 0x2040402
xor edi, ebx
mov ecx, 0x175c2522
xor edi, ecx
xor edi, 0x185a0b2d
mov eax, 0x6724f5f1
cmc
and al, 0x67
mov esi, 0
xor esi, edx
mov eax, 0xfffffffc
add esp, eax
mov dword [esp], esi
pop edx
jmp 0x403f4c

Function at 0x4051fc
Capabilities:
Get geographical location

Disassembly:
push ebp
mov ebp, esp
add esp, 0xffffff00
push ebx
push esi
mov esi, ecx
mov ebx, dword [ebp + 8]
push pe_nt_image_headers32
lea ecx, [ebp - 0x100]
push ecx
push edx
push eax
call sub.kernel32.dll_GetLocaleInfoA
test eax, eax
jle 0x405235
mov ecx, eax
dec ecx
lea edx, [ebp - 0x100]
mov eax, ebx
call fcn.00403278
jmp 0x40523e
mov eax, ebx
mov edx, esi
call fcn.0040322c
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 4

Function at 0x405248
Capabilities:
Get geographical location

Disassembly:
push ebx
push esi
push edi
push ecx
mov ebx, ecx
mov esi, edx
mov edi, eax
push 2
lea eax, [esp + 4]
push eax
push esi
push edi
call sub.kernel32.dll_GetLocaleInfoA
test eax, eax
jle 0x405269
mov al, byte [esp]
jmp 0x40526b
mov eax, ebx
pop edx
pop edi
pop esi
pop ebx
ret
Function at 0x426db0
Capabilities:
Read .ini file

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x114
push esi
push edi
push ecx
lea edi, [ebp - 0x114]
mov ecx, 0x45
mov eax, 0xcccccccc
rep stosd dword es:[edi], eax
pop ecx
mov eax, dword [0x50a8b4]
xor eax, ebp
mov dword [ebp - 4], eax
mov dword [ebp - 8], ecx
push 0x100
push 0
lea eax, [ebp - 0x10c]
push eax
call fcn.00452fd0
add esp, 0xc
mov esi, esp
mov ecx, dword [ebp + 0x14]
push ecx
push 0x80
lea edx, [ebp - 0x10c]
push edx
push 0x4e3424
mov eax, dword [ebp + 0xc]
push eax
mov ecx, dword [ebp + 8]
push ecx
call dword [sym.imp.KERNEL32.dll_GetPrivateProfileStringW]
cmp esi, esp
call fcn.00453050
lea edx, [ebp - 0x10c]
push edx
call fcn.00459730
add esp, 4
fstp dword [ebp - 0x114]
fld dword [ebp - 0x114]
fcomp qword [0x4e2718]
fnstsw ax
test ah, 0x44
jp 0x426e4f
fld dword [ebp + 0x10]
fstp dword [ebp - 0x114]
fld dword [ebp - 0x114]
push edx
mov ecx, ebp
push eax
lea edx, [0x426e88]
call fcn.00453080
pop eax
pop edx
pop edi
pop esi
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.004538d0
add esp, 0x114
cmp ebp, esp
call fcn.00453050
mov esp, ebp
pop ebp
ret 0x10
Function at 0x4271f0
Capabilities:
Read .ini file

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x438
push esi
push edi
push ecx
lea edi, [ebp - 0x438]
mov ecx, 0x10e
mov eax, 0xcccccccc
rep stosd dword es:[edi], eax
pop ecx
mov eax, dword [0x50a8b4]
xor eax, ebp
mov dword [ebp - 4], eax
mov dword [ebp - 8], ecx
xor eax, eax
mov word [ebp - 0x214], ax
push 0x206
push 0
lea ecx, [ebp - 0x212]
push ecx
call fcn.00452fd0
add esp, 0xc
push 0x208
lea edx, [ebp - 0x214]
push edx
mov eax, dword [ebp + 8]
push eax
mov ecx, dword [ebp - 8]
call fcn.0040137a
test eax, eax
jne 0x42725e
xor eax, eax
jmp 0x4273e0
mov dword [ebp - 0x21c], 0x4e3604
push 0x4e360c
push 0xffff
mov ecx, dword [0x50c350]
push ecx
call fcn.0040256d
add esp, 0xc
push 0x15
push str.___Loading_Hash_Table______u___n
push 0xffff
mov edx, dword [0x50c350]
push edx
call fcn.0040256d
add esp, 0x10
mov dword [ebp - 0x430], 0
jmp 0x4272b7
mov eax, dword [ebp - 0x430]
add eax, 1
mov dword [ebp - 0x430], eax
cmp dword [ebp - 0x430], 0x15
jge 0x4273c3
mov esi, esp
push 0x104
lea ecx, [ebp - 0x428]
push ecx
mov edx, dword [ebp - 0x430]
imul edx, edx, 0x214
add edx, str.Engine
push edx
call fcn.004538e0
add esp, 4
push eax
mov eax, dword [ebp - 0x430]
imul eax, eax, 0x214
add eax, str.Engine
push eax
push 1
push 0
call dword [sym.imp.KERNEL32.dll_MultiByteToWideChar]
cmp esi, esp
call fcn.00453050
mov dword [ebp - 0x434], eax
xor ecx, ecx
mov edx, dword [ebp - 0x434]
mov word [ebp + edx*2 - 0x428], cx
mov esi, esp
lea eax, [ebp - 0x214]
push eax
push 0
lea ecx, [ebp - 0x428]
push ecx
mov edx, dword [ebp - 0x21c]
push edx
call dword [sym.imp.KERNEL32.dll_GetPrivateProfileIntW]
cmp esi, esp
call fcn.00453050
mov ecx, dword [ebp - 0x430]
mov edx, dword [ebp - 8]
mov dword [edx + ecx*4 + 0x171c], eax
mov dword [ebp - 0x438], 0xff00
mov eax, dword [ebp - 0x430]
mov ecx, dword [ebp - 8]
cmp dword [ecx + eax*4 + 0x171c], 0
jne 0x427384
mov dword [ebp - 0x438], 0xff
mov edx, dword [ebp - 0x430]
mov eax, dword [ebp - 8]
mov ecx, dword [eax + edx*4 + 0x171c]
push ecx
lea edx, [ebp - 0x428]
push edx
mov eax, dword [ebp - 0x430]
push eax
push str.___d_:___s______u__n
mov ecx, dword [ebp - 0x438]
push ecx
mov edx, dword [0x50c350]
push edx
call fcn.0040256d
add esp, 0x18
jmp 0x4272a8
push str.____________________________n
push 0xffff
mov eax, dword [0x50c350]
push eax
call fcn.0040256d
add esp, 0xc
mov eax, 1
push edx
mov ecx, ebp
push eax
lea edx, [0x427410]
call fcn.00453080
pop eax
pop edx
pop edi
pop esi
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.004538d0
add esp, 0x438
cmp ebp, esp
call fcn.00453050
mov esp, ebp
pop ebp
ret 4