joyce8/EMBER2024-capa huggingface dataset:
Function at 0x1006ff10
Capabilities:
Access peb ldr_data

Disassembly:
push 0xffffffffffffffff
push 0x100a98ce
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
push ecx
mov eax, dword [esp + 0x18]
push esi
push edi
mov edi, ecx
mov ecx, dword [esp + 0x1c]
push eax
push ecx
mov ecx, edi
mov dword [esp + 0x10], edi
call fcn.10070830
push 0x10
mov dword [esp + 0x18], 0
mov dword [edi], 0x100e2054
call fcn.1009ab8b
mov esi, eax
add esp, 4
mov dword [esp + 0x20], esi
mov al, 1
test esi, esi
mov byte [esp + 0x14], al
je 0x1006ffa3
push 4
mov byte [esi + 8], al
mov dword [esi], 0
mov dword [esi + 4], 0
call fcn.1009ab8b
add esp, 4
mov dword [esp + 0x1c], eax
test eax, eax
mov byte [esp + 0x14], 2
je 0x1006ff9c
push 0
mov ecx, eax
call fcn.100670b0
mov dword [esi + 0xc], eax
jmp 0x1006ffa5
xor eax, eax
mov dword [esi + 0xc], eax
jmp 0x1006ffa5
xor esi, esi
mov ecx, dword [esp + 0xc]
mov dword [edi + 0x30], esi
mov dword [edi + 0x34], 0
mov eax, edi
pop edi
pop esi
mov dword fs:[0], ecx
add esp, 0x10
ret 8

Function at 0x1009d1ee
Capabilities:
Get graphical window text

Disassembly:
push esi
mov esi, ecx
mov ecx, dword [esi + 0x38]
test ecx, ecx
jne 0x1009d226
push dword [esi + 0x1c]
call dword [sym.imp.USER32.dll_GetWindowTextLengthA]
lea ecx, [eax + 1]
push ecx
mov ecx, dword [esp + 0xc]
push eax
call fcn.1009b2a5
push eax
push dword [esi + 0x1c]
call dword [sym.imp.USER32.dll_GetWindowTextA]
mov ecx, dword [esp + 8]
push 0xffffffffffffffff
call fcn.1009b27d
jmp 0x1009d232
mov eax, dword [ecx]
push dword [esp + 8]
call dword [eax + 0x88]
pop esi
ret 4

Function at 0x1009e8e0
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 0x1009e922
call fcn.100a4472
mov esi, dword [eax + 0xc]
push 0xf0
push dword [esp + 0x14]
push esi
call dword [sym.imp.KERNEL32.dll_FindResourceA]
cmp eax, edi
je 0x1009e922
push eax
push esi
call dword [sym.imp.KERNEL32.dll_LoadResource]
cmp eax, edi
jne 0x1009e919
xor eax, eax
jmp 0x1009e92a
push eax
call dword [sym.imp.KERNEL32.dll_LockResource]
mov edi, eax
push edi
mov ecx, ebx
call fcn.1009e930
pop edi
pop esi
pop ebx
ret 4
Function at 0x401570
Capabilities:
Extract resource via kernel32 functions

Disassembly:
push ebx
mov ebx, dword [esp + 8]
push edi
mov edi, dword [esp + 0x10]
push edi
push ebx
call dword [sym.imp.KERNEL32.dll_LoadResource]
test eax, eax
jne 0x401589
pop edi
pop ebx
ret
push esi
push eax
call dword [sym.imp.KERNEL32.dll_LockResource]
mov esi, eax
test esi, esi
jne 0x40159d
pop esi
pop edi
xor eax, eax
pop ebx
ret
push edi
push ebx
call dword [sym.imp.KERNEL32.dll_SizeofResource]
mov ecx, dword [esp + 0x18]
add eax, esi
and ecx, 0xf
jbe 0x4015be
cmp esi, eax
jae 0x401597
dec ecx
movzx edx, word [esi]
lea esi, [esi + edx*2 + 2]
jne 0x4015b0
cmp esi, eax
jae 0x401597
mov ax, word [esi]
neg ax
sbb eax, eax
and eax, esi
pop esi
pop edi
pop ebx
ret

Function at 0x404200
Capabilities:
Delete file

Disassembly:
push esi
push edi
mov edi, dword [esp + 0xc]
mov eax, dword [edi - 0xc]
xor esi, esi
test eax, eax
je 0x404218
push edi
call dword [sym.imp.KERNEL32.dll_DeleteFileA]
mov esi, eax
lea eax, [edi - 0x10]
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x404232
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
call dword [edx + 4]
pop edi
mov eax, esi
pop esi
ret
Function at 0x4079b0
Capabilities:
Get common file path

Disassembly:
push 0xffffffffffffffff
push 0x454893
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x210
mov eax, dword [0x46e580]
mov dword [esp + 0x20c], eax
push esi
mov dword [esp + 4], 0
push 0x458d58
lea ecx, [esp + 8]
mov dword [esp + 0x220], 0
call fcn.00403590
mov esi, dword [esp + 0x228]
push 0x458d58
push esi
mov byte [esp + 0x224], 1
call fcn.00433d24
add esp, 8
test eax, eax
jne 0x407a4b
lea eax, [esp + 8]
push eax
push 0x104
call dword [sym.imp.KERNEL32.dll_GetTempPathA]
lea ecx, [esp + 8]
push ecx
lea edx, [esp + 0x22c]
push 0x459054
push edx
call fcn.004025f0
mov esi, dword [esp + 0x234]
add esp, 0xc
cmp dword [esi - 4], 1
jle 0x407a68
mov eax, dword [esi - 0xc]
push eax
lea ecx, [esp + 0x22c]
call fcn.00401ba0
mov esi, dword [esp + 0x228]
lea ecx, [esp + 0x10c]
push ecx
push 0
push 0x459050
push esi
call dword [sym.imp.KERNEL32.dll_GetTempFileNameA]
test esi, esi
jne 0x407a86
xor eax, eax
jmp 0x407a9f
mov eax, esi
lea edx, [eax + 1]
jmp 0x407a90
mov cl, byte [eax]
inc eax
test cl, cl
jne 0x407a90
sub eax, edx
js 0x407b53
cmp eax, dword [esi - 8]
jg 0x407b53
push edi
lea edx, [esp + 0x110]
mov dword [esi - 0xc], eax
push edx
mov byte [eax + esi], 0
lea eax, [esp + 0xc]
push 0x459054
push eax
call fcn.004025f0
mov eax, dword [esp + 0x14]
add eax, 0xfffffff0
push eax
call fcn.00401d90
mov edi, dword [esp + 0x238]
add eax, 0x10
mov dword [edi], eax
mov eax, dword [esp + 0x18]
add eax, 0xfffffff0
add esp, 0x10
mov byte [esp + 0x220], 0
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x407b09
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
call dword [edx + 4]
lea eax, [esi - 0x10]
mov dword [esp + 0x220], 0xffffffff
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x407b2e
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
call dword [edx + 4]
mov ecx, dword [esp + 0x218]
mov eax, edi
pop edi
mov dword fs:[0], ecx
mov ecx, dword [esp + 0x210]
pop esi
call fcn.004336ce
add esp, 0x21c
ret
push 0x80070057
call fcn.004011d0
int3
Function at 0x409590
Capabilities:
Terminate thread

Disassembly:
push ecx
push ebx
push ebp
mov ebp, dword [sym.imp.KERNEL32.dll_WaitForSingleObject]
push esi
mov ebx, ecx
push edi
mov dword [esp + 0x10], ebx
mov dword [ebx], method.CDialog.virtual_0
xor edi, edi
lea esi, [ebx + 0x70]
lea esp, [esp]
mov eax, dword [esi + 0x10]
mov edx, dword [esi + 0x24]
xor ecx, ecx
cmp eax, edx
setne cl
dec ecx
and eax, ecx
cmp edi, eax
jge 0x409666
mov ecx, dword [esi + 0xc]
add ecx, edi
mov eax, ecx
shr eax, 2
lea ebx, [eax*4]
mov edx, esi
sub ecx, ebx
mov ebx, dword [edx + 8]
cmp ebx, eax
ja 0x4095e6
sub eax, ebx
mov edx, dword [edx + 4]
mov eax, dword [edx + eax*4]
mov ecx, dword [eax + ecx*4]
push 0x2710
push ecx
call ebp
cmp eax, 0x102
jne 0x40962e
mov ecx, dword [esi + 0xc]
add ecx, edi
mov eax, ecx
shr eax, 2
lea ebx, [eax*4]
mov edx, esi
sub ecx, ebx
mov ebx, dword [edx + 8]
cmp ebx, eax
ja 0x40961c
sub eax, ebx
mov edx, dword [edx + 4]
mov eax, dword [edx + eax*4]
mov ecx, dword [eax + ecx*4]
push 0
push ecx
call dword [sym.imp.KERNEL32.dll_TerminateThread]
mov ecx, dword [esi + 0xc]
add ecx, edi
mov eax, ecx
shr eax, 2
lea ebx, [eax*4]
mov edx, esi
sub ecx, ebx
mov ebx, dword [edx + 8]
cmp ebx, eax
ja 0x40964c
sub eax, ebx
mov edx, dword [edx + 4]
mov eax, dword [edx + eax*4]
mov ecx, dword [eax + ecx*4]
push ecx
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov ebx, dword [esp + 0x10]
inc edi
jmp 0x4095b0
lea ecx, [esi + 0x14]
call fcn.00407550
mov ecx, esi
call fcn.00404190
pop edi
pop esi
pop ebp
mov ecx, ebx
pop ebx
add esp, 4
jmp fcn.00449a9f

Function at 0x409760
Capabilities:
Access peb ldr_data
Get process heap flags

Disassembly:
push 0xffffffffffffffff
push 0x45499e
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
push ecx
push ebx
push ebp
push esi
mov esi, ecx
push edi
mov dword [esp + 0x10], esi
call fcn.0041c2f0
mov dword [esi + 4], eax
mov ebx, 1
mov byte [eax + 0x15], bl
mov eax, dword [esi + 4]
mov dword [eax + 4], eax
mov eax, dword [esi + 4]
mov dword [eax], eax
mov eax, dword [esi + 4]
xor ebp, ebp
mov dword [eax + 8], eax
mov dword [esi + 8], ebp
lea edi, [esi + 0xc]
mov ecx, edi
mov dword [esp + 0x1c], ebp
call fcn.0041c2f0
mov dword [edi + 4], eax
mov byte [eax + 0x15], bl
mov eax, dword [edi + 4]
mov dword [eax + 4], eax
mov eax, dword [edi + 4]
mov dword [eax], eax
mov eax, dword [edi + 4]
mov dword [eax + 8], eax
mov dword [edi + 8], ebp
lea edi, [esi + 0x18]
mov ecx, edi
mov byte [esp + 0x1c], bl
call fcn.0041c2f0
mov dword [edi + 4], eax
mov byte [eax + 0x15], bl
mov eax, dword [edi + 4]
mov dword [eax + 4], eax
mov eax, dword [edi + 4]
mov dword [eax], eax
mov eax, dword [edi + 4]
mov dword [eax + 8], eax
mov dword [edi + 8], ebp
lea edi, [esi + 0x24]
mov ecx, edi
mov byte [esp + 0x1c], 2
call fcn.0041c2f0
mov ecx, dword [esp + 0x14]
mov dword [edi + 4], eax
mov byte [eax + 0x15], bl
mov eax, dword [edi + 4]
mov dword [eax + 4], eax
mov eax, dword [edi + 4]
mov dword [eax], eax
mov eax, dword [edi + 4]
mov dword [eax + 8], eax
mov dword [edi + 8], ebp
pop edi
mov dword [esi + 0x30], ebx
mov eax, esi
pop esi
pop ebp
pop ebx
mov dword fs:[0], ecx
add esp, 0x10
ret
Function at 0x40ac10
Capabilities:
Extract resource via kernel32 functions

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x454b50
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x18
push ebx
mov ebx, dword [ebp + 8]
push esi
push edi
xor eax, eax
mov dword [ebp - 0x10], esp
mov dword [ebp - 0x18], eax
mov dword [ebp - 0x14], eax
mov dword [ebp - 4], eax
mov eax, dword [ebp + 0xc]
push 0x4598d8
push eax
push ebx
mov esi, ecx
call dword [sym.imp.KERNEL32.dll_FindResourceA]
mov edi, eax
test edi, edi
jne 0x40ac68
push 0x466104
lea ecx, [ebp - 0x1c]
push ecx
mov dword [ebp - 0x1c], eax
call fcn.00434249
push edi
push ebx
call dword [sym.imp.KERNEL32.dll_LoadResource]
test eax, eax
mov dword [ebp - 0x18], eax
jne 0x40ac88
push 0x466104
lea edx, [ebp - 0x20]
push edx
mov dword [ebp - 0x20], eax
call fcn.00434249
push eax
call dword [sym.imp.KERNEL32.dll_LockResource]
push edi
push ebx
mov dword [ebp + 0xc], eax
call dword [sym.imp.KERNEL32.dll_SizeofResource]
mov edi, eax
lea eax, [ebp - 0x14]
push eax
push 1
push 0
call dword [sym.imp.ole32.dll_CreateStreamOnHGlobal]
mov eax, dword [ebp - 0x14]
test eax, eax
jne 0x40acc2
push 0x466104
lea ecx, [ebp - 0x24]
push ecx
mov dword [ebp - 0x24], eax
call fcn.00434249
mov ecx, dword [ebp + 0xc]
mov edx, dword [eax]
push 0
push edi
push ecx
push eax
call dword [edx + 0x10]
mov ebx, dword [ebp - 0x14]
push 0x10
call sub.gdiplus.dll_GdipAlloc
mov edi, eax
test edi, edi
je 0x40ad01
lea edx, [ebp + 0xc]
push edx
push ebx
mov dword [edi], 0x459798
mov dword [ebp + 0xc], 0
call sub.gdiplus.dll_GdipCreateBitmapFromStream
mov dword [edi + 8], eax
mov eax, dword [ebp + 0xc]
mov dword [edi + 4], eax
jmp 0x40ad03
xor edi, edi
mov ecx, dword [ebp + 0x10]
mov dword [esi + 0x78], ecx
mov ecx, edi
mov dword [esi + 0x90], edi
call fcn.0040a9b0
mov ecx, dword [esi + 0x90]
mov dword [esi + 0x6c], eax
call fcn.0040a9e0
mov dword [esi + 0x70], eax
mov eax, dword [esi + 0x6c]
cdq
idiv dword [esi + 0x78]
mov edx, dword [esi + 0x1c]
push edx
mov dword [esi + 0x74], eax
call dword [sym.imp.USER32.dll_GetParent]
push eax
call fcn.004470ff
mov ebx, eax
mov eax, dword [esi + 0x1c]
lea edi, [esi + 0x94]
push edi
push eax
call dword [sym.imp.USER32.dll_GetWindowRect]
push edi
mov ecx, ebx
call fcn.0044cffb
mov eax, dword [esi + 0x74]
mov ecx, dword [edi]
mov edx, dword [esi + 0x98]
add edx, dword [esi + 0x70]
add ecx, eax
mov dword [esi + 0xa0], edx
mov dword [esi + 0x9c], ecx
mov eax, dword [edi + 4]
mov edx, dword [edi + 0xc]
mov ecx, dword [edi]
push 1
sub edx, eax
push edx
mov edx, dword [edi + 8]
sub edx, ecx
push edx
push eax
push ecx
mov ecx, esi
call fcn.0044a5bd
mov eax, dword [ebp - 0x14]
test eax, eax
je 0x40ada1
mov ecx, dword [eax]
push eax
call dword [ecx + 8]
mov edx, dword [ebp - 0x18]
push edx
call dword [sym.imp.KERNEL32.dll_FreeResource]
mov eax, 1
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 0xc
Function at 0x40be00
Capabilities:
Extract resource via kernel32 functions

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x454bf0
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x20
mov eax, dword [ecx + 4]
push ebx
push esi
xor ebx, ebx
cmp eax, ebx
push edi
mov dword [ebp - 0x10], esp
mov dword [ebp - 0x28], ecx
jne 0x40bf62
mov eax, dword [ebp + 0xc]
mov edi, dword [ebp + 8]
push 0x4598d8
push eax
push edi
mov dword [ebp - 0x18], ebx
mov dword [ebp - 0x14], ebx
mov dword [ebp - 4], ebx
call dword [sym.imp.KERNEL32.dll_FindResourceA]
mov esi, eax
cmp esi, ebx
jne 0x40be64
push 0x466104
lea ecx, [ebp - 0x1c]
push ecx
mov dword [ebp - 0x1c], ebx
call fcn.00434249
push esi
push edi
call dword [sym.imp.KERNEL32.dll_LoadResource]
cmp eax, ebx
mov dword [ebp - 0x18], eax
jne 0x40be84
push 0x466104
lea edx, [ebp - 0x20]
push edx
mov dword [ebp - 0x20], ebx
call fcn.00434249
push eax
call dword [sym.imp.KERNEL32.dll_LockResource]
push esi
push edi
mov ebx, eax
call dword [sym.imp.KERNEL32.dll_SizeofResource]
mov esi, eax
lea eax, [ebp - 0x14]
push eax
push 1
xor edi, edi
push edi
call dword [sym.imp.ole32.dll_CreateStreamOnHGlobal]
mov eax, dword [ebp - 0x14]
cmp eax, edi
jne 0x40bebe
push 0x466104
lea ecx, [ebp - 0x24]
push ecx
mov dword [ebp - 0x24], edi
call fcn.00434249
mov edx, dword [eax]
push edi
push esi
push ebx
push eax
call dword [edx + 0x10]
mov ebx, dword [ebp - 0x14]
push 0x10
call sub.gdiplus.dll_GdipAlloc
mov esi, eax
cmp esi, edi
je 0x40beee
lea eax, [esi + 4]
push eax
push ebx
mov dword [esi], 0x459790
mov dword [eax], edi
call sub.gdiplus.dll_GdipLoadImageFromStream
mov dword [esi + 8], eax
jmp 0x40bef0
xor esi, esi
cmp esi, edi
mov eax, dword [ebp - 0x28]
mov dword [eax + 4], esi
je 0x40bf30
mov eax, dword [esi + 8]
cmp eax, edi
mov dword [esi + 8], edi
jne 0x40bf30
mov eax, dword [ebp - 0x14]
cmp eax, edi
je 0x40bf11
mov ecx, dword [eax]
push eax
call dword [ecx + 8]
mov edx, dword [ebp - 0x18]
push edx
call dword [sym.imp.KERNEL32.dll_FreeResource]
mov al, 1
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 8
push 0x466104
lea eax, [ebp - 0x2c]
push eax
mov dword [ebp - 0x2c], edi
call fcn.00434249
mov eax, dword [ebp - 0x14]
test eax, eax
je 0x40bf4e
mov ecx, dword [eax]
push eax
call dword [ecx + 8]
mov eax, dword [ebp - 0x18]
test eax, eax
je 0x40bf5c
push eax
call dword [sym.imp.KERNEL32.dll_FreeResource]
mov eax, 0x40bf62
ret
mov ecx, dword [ebp - 0xc]
pop edi
pop esi
xor al, al
mov dword fs:[0], ecx
pop ebx
mov esp, ebp
pop ebp
ret 8
Function at 0x40cd90
Capabilities:
Encode data using xor

Disassembly:
mov eax, dword [esp + 8]
sub esp, 0x10
push esi
mov esi, dword [esp + 0x18]
push edi
push esi
mov byte [eax], 0
call dword [sym.imp.KERNEL32.dll_lstrlenA]
mov edi, eax
cmp di, 0x14
jae 0x40cdb8
pop edi
xor ax, ax
pop esi
add esp, 0x10
ret
mov cl, byte [esi]
mov dl, byte [esi + 1]
push ebp
push 0x10
lea eax, [esp + 0x18]
mov byte [esp + 0x10], cl
push eax
lea ecx, [esp + 0x14]
push ecx
mov dword [esp + 0x20], 0
mov byte [esp + 0x19], dl
mov byte [esp + 0x1a], 0
call fcn.0043483b
mov ecx, eax
movzx ebp, cx
lea edx, [ebp + 4]
mov eax, 0x66666667
imul edx
sar edx, 1
mov eax, edx
shr eax, 0x1f
add eax, edx
lea edx, [eax + eax*4]
movzx eax, di
shl edx, 2
add esp, 0xc
cmp eax, edx
mov dword [esp + 0x18], ecx
je 0x40ce1a
pop ebp
pop edi
xor ax, ax
pop esi
add esp, 0x10
ret
movzx edx, word [esp + 0x28]
dec edx
cmp ebp, edx
jg 0x40ce9a
xor edi, edi
test ebp, ebp
jle 0x40ce92
add esi, 2
push ebx
mov edi, edi
mov cl, byte [esi - 1]
mov dl, byte [esi]
mov al, byte [esi - 2]
mov byte [esp + 0x15], cl
push 0x10
lea ecx, [esp + 0x1c]
mov byte [esp + 0x14], dl
mov byte [esp + 0x18], al
mov al, byte [esi + 1]
push ecx
lea edx, [esp + 0x1c]
push edx
mov byte [esp + 0x22], 0
mov byte [esp + 0x1d], al
mov byte [esp + 0x1e], 0
call fcn.0043483b
mov ebx, eax
push 0x10
lea eax, [esp + 0x28]
push eax
lea ecx, [esp + 0x24]
push ecx
call fcn.0043483b
mov edx, dword [esp + 0x40]
xor al, bl
add esp, 0x18
mov byte [edi + edx], al
inc edi
add esi, 4
cmp edi, ebp
jl 0x40ce30
mov ecx, dword [esp + 0x1c]
pop ebx
mov eax, dword [esp + 0x24]
mov byte [eax + ebp], 0
pop ebp
pop edi
mov ax, cx
pop esi
add esp, 0x10
ret

Function at 0x40f2f0
Capabilities:
Hash data with md5

Disassembly:
sub esp, 0x74
mov eax, dword [0x46e580]
mov dword [esp + 0x70], eax
xor eax, eax
mov dword [esp], eax
mov byte [esp + 0x6c], al
mov dword [esp + 0x18], eax
mov dword [esp + 0x14], eax
mov eax, dword [esp + 0x7c]
cmp dword [eax + 0x18], 0x10
mov ecx, dword [eax + 0x14]
mov dword [esp + 4], 0x67452301
mov dword [esp + 8], 0xefcdab89
mov dword [esp + 0xc], 0x98badcfe
mov dword [esp + 0x10], 0x10325476
jb 0x40f33f
mov eax, dword [eax + 4]
jmp 0x40f342
add eax, 4
push esi
push ecx
push eax
lea ecx, [esp + 0x10]
call fcn.0040e060
mov esi, dword [esp + 0x7c]
push esi
lea ecx, [esp + 0xc]
call fcn.0040f2b0
mov ecx, dword [esp + 0x74]
mov eax, esi
pop esi
call fcn.004336ce
add esp, 0x74
ret 8
Function at 0x40fac0
Capabilities:
Hash data with md5

Disassembly:
push 0xffffffffffffffff
push 0x454efb
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x540
mov eax, dword [0x46e580]
push ebx
push esi
mov esi, dword [esp + 0x55c]
push 1
push 0x1b6
xor ebx, ebx
mov dword [esp + 0x54c], eax
mov dword [esp + 0x14], ebx
mov eax, dword [esi]
push 0x20
push eax
lea ecx, [esp + 0x50]
call fcn.0040f8d0
mov eax, dword [esp + 0x40]
mov ecx, dword [eax + 4]
mov eax, dword [esp + ecx + 0x48]
test al, 6
mov dword [esp + 0x550], 1
je 0x40fb63
push esi
lea edx, [esp + 0x18]
push str.MD5Helper::GetMD5_cause_a_exception__cant_open_file
push edx
call fcn.0040ef70
add esp, 0xc
mov eax, dword [eax]
lea ecx, [esp + 0x10]
push ecx
lea ecx, [esp + 0x38]
mov byte [esp + 0x554], 2
mov dword [esp + 0x14], eax
call fcn.00434294
push 0x4665e0
lea edx, [esp + 0x38]
push edx
call fcn.00434249
test al, 1
mov byte [esp + 0x140], bl
mov dword [esp + 0xec], ebx
mov dword [esp + 0xe8], ebx
mov dword [esp + 0xd8], 0x67452301
mov dword [esp + 0xdc], 0xefcdab89
mov dword [esp + 0xe0], 0x98badcfe
mov dword [esp + 0xe4], 0x10325476
jne 0x40fbf1
jmp 0x40fbb0
push 0x400
lea eax, [esp + 0x148]
push eax
lea ecx, [esp + 0x48]
call fcn.0040eaa0
mov eax, dword [esp + 0x44]
cmp eax, ebx
jle 0x40fbe3
push eax
lea ecx, [esp + 0x148]
push ecx
lea ecx, [esp + 0xe0]
call fcn.0040e060
mov edx, dword [esp + 0x40]
mov eax, dword [edx + 4]
test byte [esp + eax + 0x48], 1
je 0x40fbb0
lea ecx, [esp + 0x48]
call fcn.0040f7c0
test eax, eax
jne 0x40fc22
mov ecx, dword [esp + 0x40]
mov ecx, dword [ecx + 4]
mov eax, dword [esp + ecx + 0x48]
mov edx, dword [esp + ecx + 0x68]
lea ecx, [esp + ecx + 0x40]
or eax, 2
cmp edx, ebx
jne 0x40fc1b
or eax, 4
push ebx
push eax
call fcn.004441a3
lea edx, [esp + 0x18]
push edx
lea ecx, [esp + 0xdc]
call fcn.0040f2b0
mov ecx, dword [eax + 0x18]
mov esi, 0x10
cmp ecx, esi
mov byte [esp + 0x550], 3
jb 0x40fc4c
mov eax, dword [eax + 4]
jmp 0x40fc4f
add eax, 4
push eax
lea ecx, [esp + 0xc]
call fcn.00403590
cmp dword [esp + 0x30], esi
mov byte [esp + 0x550], 5
jb 0x40fc74
mov eax, dword [esp + 0x1c]
push eax
call fcn.0044a466
add esp, 4
lea ecx, [esp + 8]
mov dword [esp + 0x30], 0xf
mov dword [esp + 0x2c], ebx
mov byte [esp + 0x1c], bl
call fcn.0040ea40
mov eax, dword [esp + 8]
add eax, 0xfffffff0
push eax
call fcn.00401d90
mov esi, dword [esp + 0x55c]
add eax, 0x10
add esp, 4
mov dword [esi], eax
mov eax, dword [esp + 8]
add eax, 0xfffffff0
mov dword [esp + 0xc], 1
mov byte [esp + 0x550], 1
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x40fcd7
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
call dword [edx + 4]
lea ecx, [esp + 0xa4]
mov byte [esp + 0x550], bl
call fcn.0040fa10
lea ecx, [esp + 0xa4]
mov dword [esp + 0xa4], vtable.std::basic_ios_char__struct_std::char_traits_char__.0
call fcn.004440b9
mov ecx, dword [esp + 0x548]
mov eax, esi
pop esi
mov dword fs:[0], ecx
mov ecx, dword [esp + 0x540]
pop ebx
call fcn.004336ce
add esp, 0x54c
ret 8
Function at 0x412d70
Capabilities:
Encode data using xor
Hash data with crc32

Disassembly:
mov ecx, dword [esp + 8]
test ecx, ecx
jne 0x412d7b
xor eax, eax
ret
push ebp
push esi
mov esi, dword [esp + 0xc]
push edi
mov edi, dword [esp + 0x18]
cmp edi, 8
not esi
jb 0x412e73
mov ebp, edi
shr ebp, 3
xor edx, edx
mov dl, byte [ecx]
mov eax, esi
shr eax, 8
sub edi, 8
xor edx, esi
and edx, 0xff
mov esi, dword [edx*4 + 0x45b088]
xor edx, edx
mov dl, byte [ecx + 1]
xor eax, esi
inc ecx
xor edx, eax
and edx, 0xff
mov esi, dword [edx*4 + 0x45b088]
xor edx, edx
mov dl, byte [ecx + 1]
shr eax, 8
xor eax, esi
inc ecx
xor edx, eax
and edx, 0xff
mov esi, dword [edx*4 + 0x45b088]
xor edx, edx
mov dl, byte [ecx + 1]
shr eax, 8
xor eax, esi
inc ecx
xor edx, eax
and edx, 0xff
mov esi, dword [edx*4 + 0x45b088]
xor edx, edx
mov dl, byte [ecx + 1]
shr eax, 8
xor eax, esi
inc ecx
xor edx, eax
and edx, 0xff
mov esi, dword [edx*4 + 0x45b088]
shr eax, 8
xor eax, esi
xor edx, edx
mov dl, byte [ecx + 1]
inc ecx
xor edx, eax
and edx, 0xff
mov esi, dword [edx*4 + 0x45b088]
shr eax, 8
xor eax, esi
xor edx, edx
mov dl, byte [ecx + 1]
inc ecx
xor edx, eax
and edx, 0xff
mov esi, dword [edx*4 + 0x45b088]
shr eax, 8
xor eax, esi
xor edx, edx
mov dl, byte [ecx + 1]
inc ecx
xor edx, eax
and edx, 0xff
mov esi, dword [edx*4 + 0x45b088]
shr eax, 8
xor eax, esi
inc ecx
dec ebp
mov esi, eax
jne 0x412d96
test edi, edi
je 0x412e92
xor eax, eax
mov al, byte [ecx]
xor eax, esi
and eax, 0xff
mov ebp, dword [eax*4 + 0x45b088]
shr esi, 8
xor esi, ebp
inc ecx
dec edi
jne 0x412e77
pop edi
mov eax, esi
pop esi
not eax
pop ebp
ret

Function at 0x412ea0
Capabilities:
Generate random numbers using the delphi lcg
Hash data with crc32

Disassembly:
mov edx, dword [esp + 4]
mov ecx, dword [edx]
xor eax, eax
mov al, byte [esp + 8]
push esi
xor eax, ecx
and eax, 0xff
mov eax, dword [eax*4 + 0x45b088]
shr ecx, 8
xor eax, ecx
mov ecx, dword [edx + 4]
mov dword [edx], eax
and eax, 0xff
add eax, ecx
mov ecx, dword [edx + 8]
imul eax, eax, 0x8088405
inc eax
mov dword [edx + 4], eax
shr eax, 0x18
xor eax, ecx
and eax, 0xff
mov esi, dword [eax*4 + 0x45b088]
shr ecx, 8
xor ecx, esi
mov dword [edx + 8], ecx
pop esi
ret

Function at 0x412f00
Capabilities:
Generate random numbers using the delphi lcg
Hash data with crc32

Disassembly:
push esi
mov esi, dword [esp + 8]
mov edx, dword [esi + 8]
mov eax, edx
and eax, 0xfffd
or eax, 2
mov ecx, eax
xor ecx, 1
imul ecx, eax
mov al, byte [esp + 0xc]
shr ecx, 8
xor al, cl
xor ecx, ecx
push edi
mov edi, dword [esi]
mov cl, al
xor ecx, edi
and ecx, 0xff
mov ecx, dword [ecx*4 + 0x45b088]
shr edi, 8
xor ecx, edi
mov edi, dword [esi + 4]
mov dword [esi], ecx
and ecx, 0xff
add ecx, edi
imul ecx, ecx, 0x8088405
inc ecx
mov dword [esi + 4], ecx
shr ecx, 0x18
xor ecx, edx
and ecx, 0xff
mov edi, dword [ecx*4 + 0x45b088]
shr edx, 8
xor edx, edi
pop edi
mov dword [esi + 8], edx
pop esi
ret