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

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x45f5ba
mov eax, dword fs:[0]
push eax
sub esp, 0x18
mov eax, dword [0x47f5dc]
xor eax, ebp
mov dword [ebp - 0x10], eax
push ebx
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov ebx, dword [ebp + 8]
push 0x68
mov edi, ecx
call fcn.00458c82
add esp, 4
mov dword [ebp - 0x24], eax
xor esi, esi
mov dword [ebp - 4], esi
cmp eax, esi
je 0x443c1f
fld qword [edi + 0x58]
sub esp, 0x10
fstp qword [esp + 8]
mov ecx, eax
fld qword [edi + 0x50]
fstp qword [esp]
call fcn.00443390
mov esi, eax
mov eax, dword [edi + 0xc]
mov dword [esi + 0xc], eax
mov ecx, dword [edi + 8]
mov dword [esi + 8], ecx
mov edx, dword [edi + 4]
lea ecx, [edi + 0x10]
mov dword [esi + 4], edx
mov eax, dword [edi + 0x14]
push ecx
lea ecx, [esi + 0x10]
mov dword [ebp - 4], 0xffffffff
mov dword [esi + 0x14], eax
call dword [fcn.00462bfc]
mov edx, dword [edi + 0x18]
mov dword [esi + 0x18], edx
mov eax, dword [edi + 0x30]
mov edx, dword [esi]
mov edx, dword [edx + 0x28]
mov dword [esi + 0x30], eax
push ebx
lea eax, [ebp - 0x20]
push eax
mov ecx, esi
call edx
mov eax, esi
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.00459a38
mov esp, ebp
pop ebp
ret 4

Function at 0x453300
Capabilities:
Access peb ldr_data

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x4606e0
mov eax, dword fs:[0]
push eax
push ecx
push ebx
push esi
push edi
mov eax, dword [0x47f5dc]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov esi, ecx
mov dword [ebp - 0x10], esi
call fcn.00421350
lea ecx, [esi + 0x50]
mov dword [ebp - 4], 0
mov dword [esi], vtable.CTextObj.0
call dword [fcn.00462f94]
lea ecx, [esi + 0x58]
call dword [fcn.00462f94]
push 0x463bc4
lea ecx, [esi + 0x50]
mov byte [ebp - 4], 2
call dword [fcn.00462c44]
fldz
fst qword [esi + 0x68]
push 0x464954
fst qword [esi + 0x60]
lea ecx, [esi + 0x58]
fst qword [esi + 0x78]
mov dword [esi + 0xc], 0xffffff
fstp qword [esi + 0x70]
mov dword [esi + 0x54], 0xa
call dword [fcn.00462c44]
fldz
fstp qword [esi + 0x80]
mov dword [esi + 0x30], 0
mov eax, esi
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x453400
Capabilities:
Access peb ldr_data

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x460729
mov eax, dword fs:[0]
push eax
push ecx
push ebx
push esi
push edi
mov eax, dword [0x47f5dc]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov esi, ecx
mov dword [ebp - 0x10], esi
mov dword [ebp - 4], 0
call fcn.00421350
lea ecx, [esi + 0x50]
mov dword [esi], vtable.CTextObj.0
call dword [fcn.00462f94]
lea ecx, [esi + 0x58]
call dword [fcn.00462f94]
fld qword [ebp + 8]
fstp qword [esi + 0x60]
lea eax, [ebp + 0x18]
fld qword [ebp + 0x10]
push eax
lea ecx, [esi + 0x50]
fstp qword [esi + 0x68]
mov byte [ebp - 4], 3
mov dword [esi + 0xc], 0xffffff
call dword [fcn.00462bfc]
push 0x464954
lea ecx, [esi + 0x58]
mov dword [esi + 0x54], 0x6e
call dword [fcn.00462c44]
fldz
lea ecx, [ebp + 0x18]
fstp qword [esi + 0x80]
mov dword [esi + 0x30], 0
call dword [fcn.00462fa4]
mov eax, esi
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 0x14
Function at 0x4556b0
Capabilities:
Access peb ldr_data
Get process heap force flags

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x460a06
mov eax, dword fs:[0]
push eax
sub esp, 0x20
push ebx
push esi
push edi
mov eax, dword [0x47f5dc]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov esi, ecx
mov dword [ebp - 0x10], esi
call fcn.00421350
lea ecx, [esi + 0x60]
mov dword [ebp - 4], 0
mov dword [esi], vtable.CWaterLevelObj.0
call fcn.004216c0
lea ecx, [esi + 0x78]
mov byte [ebp - 4], 1
call fcn.004216c0
lea ecx, [esi + 0x90]
mov byte [ebp - 4], 2
call fcn.004216c0
lea ecx, [esi + 0xa8]
mov byte [ebp - 4], 3
call fcn.004216c0
lea ecx, [esi + 0xc0]
mov byte [ebp - 4], 4
call fcn.004216c0
lea ecx, [esi + 0xd8]
mov byte [ebp - 4], 5
call fcn.004216c0
fldz
sub esp, 0x18
fstp qword [esi + 0x58]
fld qword [0x46f960]
xor eax, eax
mov ecx, esp
mov dword [ebp - 0x14], esp
sub esp, 0x10
fst qword [esp + 8]
mov byte [ebp - 4], 6
fstp qword [esp]
mov dword [esi + 0xc], 0xff
mov dword [esi + 4], eax
mov dword [esi + 8], 1
mov dword [esi + 0x30], eax
mov dword [esi + 0x50], eax
call fcn.004216e0
lea eax, [ebp - 0x2c]
push eax
lea ecx, [esi + 0x60]
call fcn.00421700
lea ecx, [ebp - 0x2c]
call fcn.004216d0
fld qword [0x46f960]
sub esp, 0x18
mov ecx, esp
mov dword [ebp - 0x14], esp
sub esp, 0x10
fst qword [esp + 8]
fstp qword [esp]
call fcn.004216e0
lea ecx, [ebp - 0x2c]
push ecx
lea ecx, [esi + 0x90]
call fcn.00421700
lea ecx, [ebp - 0x2c]
call fcn.004216d0
fld qword [0x46f960]
sub esp, 0x18
mov ecx, esp
mov dword [ebp - 0x14], esp
sub esp, 0x10
fst qword [esp + 8]
fstp qword [esp]
call fcn.004216e0
lea edx, [ebp - 0x2c]
push edx
lea ecx, [esi + 0xc0]
call fcn.00421700
lea ecx, [ebp - 0x2c]
call fcn.004216d0
sub esp, 0x18
mov ecx, esp
mov dword [ebp - 0x14], esp
fld qword [0x46f960]
sub esp, 0x10
fst qword [esp + 8]
fstp qword [esp]
call fcn.004216e0
lea eax, [ebp - 0x2c]
push eax
lea ecx, [esi + 0x78]
call fcn.00421700
lea ecx, [ebp - 0x2c]
call fcn.004216d0
fld qword [0x46f960]
sub esp, 0x18
mov ecx, esp
mov dword [ebp - 0x14], esp
sub esp, 0x10
fst qword [esp + 8]
fstp qword [esp]
call fcn.004216e0
lea ecx, [ebp - 0x2c]
push ecx
lea ecx, [esi + 0xa8]
call fcn.00421700
lea ecx, [ebp - 0x2c]
call fcn.004216d0
fld qword [0x46f960]
sub esp, 0x18
mov ecx, esp
mov dword [ebp - 0x14], esp
sub esp, 0x10
fst qword [esp + 8]
fstp qword [esp]
call fcn.004216e0
lea edx, [ebp - 0x2c]
push edx
lea ecx, [esi + 0xd8]
call fcn.00421700
lea ecx, [ebp - 0x2c]
call fcn.004216d0
mov eax, esi
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x455960
Capabilities:
Access peb ldr_data
Get process heap force flags

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x460af6
mov eax, dword fs:[0]
push eax
sub esp, 0x1c
push ebx
push esi
push edi
mov eax, dword [0x47f5dc]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov esi, ecx
mov dword [ebp - 0x10], esi
call fcn.00421350
lea ecx, [esi + 0x60]
mov dword [ebp - 4], 0
mov dword [esi], vtable.CWaterLevelObj.0
call fcn.004216c0
lea ecx, [esi + 0x78]
mov byte [ebp - 4], 1
call fcn.004216c0
lea ecx, [esi + 0x90]
mov byte [ebp - 4], 2
call fcn.004216c0
lea ecx, [esi + 0xa8]
mov byte [ebp - 4], 3
call fcn.004216c0
lea ecx, [esi + 0xc0]
mov byte [ebp - 4], 4
call fcn.004216c0
lea ecx, [esi + 0xd8]
mov byte [ebp - 4], 5
call fcn.004216c0
fld qword [ebp + 8]
sub esp, 0x18
fstp qword [esi + 0x58]
fld qword [0x46f960]
mov ecx, esp
mov dword [ebp + 0xc], esp
sub esp, 0x10
xor eax, eax
fst qword [esp + 8]
fstp qword [esp]
mov byte [ebp - 4], 6
mov dword [esi + 0xc], 0xff
mov dword [esi + 4], eax
mov dword [esi + 8], 1
mov dword [esi + 0x30], eax
call fcn.004216e0
lea eax, [ebp - 0x28]
push eax
lea ecx, [esi + 0x60]
call fcn.00421700
lea ecx, [ebp - 0x28]
call fcn.004216d0
fld qword [0x46f960]
sub esp, 0x18
mov ecx, esp
mov dword [ebp + 0xc], esp
sub esp, 0x10
fst qword [esp + 8]
fstp qword [esp]
call fcn.004216e0
lea ecx, [ebp - 0x28]
push ecx
lea ecx, [esi + 0x90]
call fcn.00421700
lea ecx, [ebp - 0x28]
call fcn.004216d0
fld qword [0x46f960]
sub esp, 0x18
mov ecx, esp
mov dword [ebp + 0xc], esp
sub esp, 0x10
fst qword [esp + 8]
fstp qword [esp]
call fcn.004216e0
lea edx, [ebp - 0x28]
push edx
lea ecx, [esi + 0xc0]
call fcn.00421700
lea ecx, [ebp - 0x28]
call fcn.004216d0
sub esp, 0x18
mov ecx, esp
mov dword [ebp + 0xc], esp
sub esp, 0x10
fld qword [0x46f960]
fst qword [esp + 8]
fstp qword [esp]
call fcn.004216e0
lea eax, [ebp - 0x28]
push eax
lea ecx, [esi + 0x78]
call fcn.00421700
lea ecx, [ebp - 0x28]
call fcn.004216d0
fld qword [0x46f960]
sub esp, 0x18
mov ecx, esp
mov dword [ebp + 0xc], esp
sub esp, 0x10
fst qword [esp + 8]
fstp qword [esp]
call fcn.004216e0
lea ecx, [ebp - 0x28]
push ecx
lea ecx, [esi + 0xa8]
call fcn.00421700
lea ecx, [ebp - 0x28]
call fcn.004216d0
fld qword [0x46f960]
sub esp, 0x18
mov ecx, esp
mov dword [ebp + 0xc], esp
sub esp, 0x10
fst qword [esp + 8]
fstp qword [esp]
call fcn.004216e0
lea edx, [ebp - 0x28]
push edx
lea ecx, [esi + 0xd8]
call fcn.00421700
lea ecx, [ebp - 0x28]
call fcn.004216d0
mov eax, esi
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 8
Function at 0x52583b
Capabilities:
Encode data using xor
Encrypt data using rc4 prga

Disassembly:
xor ecx, ecx
lea ebx, [ebp]
mov word [ebx + 0x200], 0
add ebx, 2
mov word [ebx + 0x200], 0
add ebx, 2
mov word [ebx + 0x200], 0
add ebx, 2
mov word [ebx + 0x200], 0
add ebx, 2
add ecx, 8
cmp ecx, 0x100
jl 0x525840
xor ecx, ecx
and ecx, 0xff
mov ebx, ecx
add ebx, ebp
mov byte [ebx], cl
inc cx
cmp cx, 0x100
jl 0x52587d
xor ecx, ecx
xor edx, edx
and edx, 0xff
mov ebx, edx
add ebx, ebp
add dl, byte [ebx + 0x200]
and ecx, 0xff
mov ebx, ecx
add ebx, ebp
add dl, byte [ebx]
and ecx, 0xff
mov ebx, ecx
add ebx, ebp
mov al, byte [ebx]
and edx, 0xff
mov ebx, edx
add ebx, ebp
mov ah, byte [ebx]
and ecx, 0xff
mov ebx, ecx
add ebx, ebp
mov byte [ebx], ah
and edx, 0xff
mov ebx, edx
add ebx, ebp
mov byte [ebx], al
inc cx
cmp cx, 0x100
jl 0x525896
xor edi, edi
add cl, 1
and ecx, 0xff
mov ebx, ecx
add ebx, ebp
add dl, byte [ebx]
mov al, byte [ebx]
and edx, 0xff
mov ebx, edx
add ebx, ebp
mov ah, byte [ebx]
and ecx, 0xff
mov ebx, ecx
add ebx, ebp
mov byte [ebx], ah
and edx, 0xff
mov ebx, edx
add ebx, ebp
mov byte [ebx], al
and ecx, 0xff
mov ebx, ecx
add ebx, ebp
mov al, byte [ebx]
and edx, 0xff
mov ebx, edx
add ebx, ebp
add al, byte [ebx]
and eax, 0xff
mov ebx, eax
add ebx, ebp
mov ch, byte [ebx]
xor ch, byte [esi + edi]
mov byte [esi + edi], ch
inc edi
cmp edi, dword [ebp + 0x108]
jne 0x5258ed
ret
Function at 0x9eb058
Capabilities:
Decompress data using aplib

Disassembly:
call fcn.009eb1a8
push ebx
mov ebx, esp
push ebx
mov esi, dword [ebx + 8]
mov edi, dword [ebx + 0x10]
cld
mov dl, 0x80
mov al, byte [esi]
inc esi
mov byte [edi], al
inc edi
mov ebx, 2
add dl, dl
jne 0x9eb07e
mov dl, byte [esi]
inc esi
adc dl, dl
jae 0x9eb06a
add dl, dl
jne 0x9eb089
mov dl, byte [esi]
inc esi
adc dl, dl
jae 0x9eb0dc
xor eax, eax
add dl, dl
jne 0x9eb096
mov dl, byte [esi]
inc esi
adc dl, dl
jae 0x9eb17d
add dl, dl
jne 0x9eb0a5
mov dl, byte [esi]
inc esi
adc dl, dl
adc eax, eax
add dl, dl
jne 0x9eb0b0
mov dl, byte [esi]
inc esi
adc dl, dl
adc eax, eax
add dl, dl
jne 0x9eb0bb
mov dl, byte [esi]
inc esi
adc dl, dl
adc eax, eax
add dl, dl
jne 0x9eb0c6
mov dl, byte [esi]
inc esi
adc dl, dl
adc eax, eax
je 0x9eb0d2
push edi
mov eax, eax
sub edi, eax
mov al, byte [edi]
pop edi
mov byte [edi], al
inc edi
mov ebx, 2
jmp 0x9eb075
mov eax, 1
add dl, dl
jne 0x9eb0ea
mov dl, byte [esi]
inc esi
adc dl, dl
adc eax, eax
add dl, dl
jne 0x9eb0f5
mov dl, byte [esi]
inc esi
adc dl, dl
jb 0x9eb0e1
sub eax, ebx
mov ebx, 1
jne 0x9eb128
mov ecx, 1
add dl, dl
jne 0x9eb10e
mov dl, byte [esi]
inc esi
adc dl, dl
adc ecx, ecx
add dl, dl
jne 0x9eb119
mov dl, byte [esi]
inc esi
adc dl, dl
jb 0x9eb105
push esi
mov esi, edi
sub esi, ebp
rep movsb byte es:[edi], byte [esi]
pop esi
jmp 0x9eb075
dec eax
shl eax, 8
mov al, byte [esi]
inc esi
mov ebp, eax
mov ecx, 1
add dl, dl
jne 0x9eb13f
mov dl, byte [esi]
inc esi
adc dl, dl
adc ecx, ecx
add dl, dl
jne 0x9eb14a
mov dl, byte [esi]
inc esi
adc dl, dl
jb 0x9eb136
cmp eax, 0x7d00
jae 0x9eb16d
cmp eax, 0x500
jb 0x9eb168
inc ecx
push esi
mov esi, edi
sub esi, eax
rep movsb byte es:[edi], byte [esi]
pop esi
jmp 0x9eb075
cmp eax, 0x7f
ja 0x9eb170
add ecx, 2
push esi
mov esi, edi
sub esi, eax
rep movsb byte es:[edi], byte [esi]
pop esi
jmp 0x9eb075
mov al, byte [esi]
inc esi
xor ecx, ecx
shr al, 1
je 0x9eb19e
adc ecx, 2
mov ebp, eax
push esi
mov esi, edi
sub esi, eax
rep movsb byte es:[edi], byte [esi]
pop esi
mov ebx, 1
jmp 0x9eb075
pop ebx
sub edi, dword [ebx + 0x10]
mov eax, edi
pop ebx
ret 0x10
Function at 0x401310
Capabilities:
Initialize winsock library
Terminate process

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
push 0xffffffffffffffff
push 0x449fab
mov eax, dword fs:[0]
push eax
sub esp, 0x1b4
mov eax, dword [0x460770]
xor eax, esp
mov dword [esp + 0x1ac], eax
push esi
push edi
mov eax, dword [0x460770]
xor eax, esp
push eax
lea eax, [esp + 0x1c0]
mov dword fs:[0], eax
mov esi, ecx
call fcn.00416430
mov eax, dword [esi + 0x74]
mov edi, dword [sym.imp.USER32.dll_SendMessageA]
push eax
mov eax, dword [esi + 0x20]
push 1
push 0x80
push eax
call edi
mov eax, dword [esi + 0x74]
mov ecx, dword [esi + 0x20]
push eax
push 0
push 0x80
push ecx
call edi
lea edx, [esp + 0x24]
push edx
push 0x202
call dword [sym.imp.WS2_32.dll_WSAStartup]
lea eax, [esp + 0x18]
push eax
call fcn.00401170
lea ecx, [esp + 0x14]
push ecx
lea edx, [esp + 0x14]
mov dword [esp + 0x1cc], 0
push edx
lea ecx, [esp + 0x20]
mov dword [esp + 0x18], 0
mov dword [esp + 0x1c], 0
call fcn.00403280
test al, al
je 0x401467
mov edi, dword [esp + 0x10]
test edi, edi
je 0x401467
cmp dword [esp + 0x14], 0
je 0x401467
mov eax, dword [esp + 0x20]
push ecx
add eax, 0xfffffff0
mov dword [esp + 0x14], esp
mov esi, esp
push eax
call fcn.00401db0
add esp, 4
add eax, 0x10
push 0x464c90
mov dword [esi], eax
call fcn.0040a240
test al, al
jne 0x40142d
mov eax, dword [esp + 0x14]
push eax
push edi
sub esp, 0xc
mov ecx, esp
mov dword [esp + 0x24], esp
push ecx
lea edi, [esp + 0x30]
call fcn.004014e0
call fcn.00403950
push edi
call fcn.004141cb
add esp, 4
lea esi, [esp + 0x18]
call fcn.004014a0
mov eax, 1
mov ecx, dword [esp + 0x1c0]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
mov ecx, dword [esp + 0x1ac]
xor ecx, esp
call fcn.00432019
mov esp, ebp
pop ebp
ret
call fcn.004172f0
test eax, eax
je 0x40147d
mov edx, dword [eax]
mov ecx, eax
mov eax, dword [edx + 0x74]
call eax
test eax, eax
jne 0x401481
xor eax, eax
jmp 0x401484
mov eax, dword [eax + 0x20]
push 0x10
push 0x450fe8
push 0x450ff0
push eax
call dword [sym.imp.USER32.dll_MessageBoxA]
push 0
call dword [sym.imp.KERNEL32.dll_ExitProcess]

Function at 0x401aa0
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 0x401ab9
pop edi
pop ebx
ret
push esi
push eax
call dword [sym.imp.KERNEL32.dll_LockResource]
mov esi, eax
test esi, esi
je 0x401af4
push edi
push ebx
call dword [sym.imp.KERNEL32.dll_SizeofResource]
mov ecx, dword [esp + 0x18]
add eax, esi
and ecx, 0xf
jbe 0x401af0
lea ebx, [ebx]
cmp esi, eax
jae 0x401af4
sub ecx, 1
movzx edx, word [esi]
lea esi, [esi + edx*2 + 2]
jne 0x401ae0
cmp esi, eax
jb 0x401afa
pop esi
pop edi
xor eax, eax
pop ebx
ret
movzx eax, word [esi]
neg eax
sbb eax, eax
and eax, esi
pop esi
pop edi
pop ebx
ret
Function at 0x402490
Capabilities:
Get common file path
Get program files directory

Disassembly:
push 0xffffffffffffffff
push 0x449894
mov eax, dword fs:[0]
push eax
sub esp, 0x110
mov eax, dword [0x460770]
xor eax, esp
mov dword [esp + 0x10c], eax
push ebx
push ebp
mov eax, dword [0x460770]
xor eax, esp
push eax
lea eax, [esp + 0x11c]
mov dword fs:[0], eax
mov dword [esp + 0xc], 0
or ebp, 0xffffffff
test byte [0x464cac], 1
jne 0x402512
or dword [0x464cac], 1
push 0x4511ab
mov ecx, 0x464ca8
mov dword [esp + 0x128], 0
call fcn.00401cb0
push 0x44a400
call fcn.0043214f
add esp, 4
mov dword [esp + 0x124], ebp
mov eax, dword [0x464ca8]
push 0x4511ab
push eax
call fcn.00432ae9
add esp, 8
test eax, eax
setne al
test al, al
je 0x402549
mov eax, dword [0x464ca8]
add eax, 0xfffffff0
push eax
call fcn.00401db0
add esp, 4
add eax, 0x10
mov dword [edi], eax
jmp 0x402668
lea ecx, [esp + 0x14]
push ecx
push 0
push 0
push 0x26
push 0
call dword [sym.imp.SHELL32.dll_SHGetFolderPathA]
lea edx, [esp + 0x14]
push edx
lea ecx, [esp + 0x14]
call fcn.00401cb0
push 1
lea eax, [esp + 0x10]
push eax
lea ecx, [esp + 0x18]
mov dword [esp + 0x12c], 1
call fcn.00403d60
mov eax, dword [eax]
push 0x4511c8
push eax
call fcn.00432ae9
add esp, 8
test eax, eax
mov eax, dword [esp + 0xc]
setne bl
add eax, 0xfffffff0
lea ecx, [eax + 0xc]
mov edx, ebp
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x4025b9
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
test bl, bl
je 0x4025cd
push 1
push 0x4511c8
lea ecx, [esp + 0x18]
call fcn.004040d0
cmp byte [esp + 0x12c], 1
mov eax, str.LBTClient_
je 0x4025e1
mov eax, str.LBClient_
push eax
lea ecx, [esp + 0x14]
push ecx
lea edx, [esp + 0x14]
push edx
call fcn.00401830
add esp, 0xc
push eax
mov ecx, 0x464ca8
mov byte [esp + 0x128], 2
call fcn.00404260
mov byte [esp + 0x124], 1
mov eax, dword [esp + 0xc]
add eax, 0xfffffff0
lea ecx, [eax + 0xc]
mov edx, ebp
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x40262e
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov eax, dword [0x464ca8]
add eax, 0xfffffff0
push eax
call fcn.00401db0
add eax, 0x10
mov dword [edi], eax
mov dword [esp + 0x128], ebp
mov eax, dword [esp + 0x14]
add eax, 0xfffffff0
add esp, 4
lea ecx, [eax + 0xc]
lock xadd dword [ecx], ebp
dec ebp
test ebp, ebp
jg 0x402668
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov eax, edi
mov ecx, dword [esp + 0x11c]
mov dword fs:[0], ecx
pop ecx
pop ebp
pop ebx
mov ecx, dword [esp + 0x10c]
xor ecx, esp
call fcn.00432019
add esp, 0x11c
ret
Function at 0x4063b0
Capabilities:
Encode data using xor
Hash data with crc32

Disassembly:
test ecx, ecx
jne 0x4063b7
xor eax, eax
ret
push esi
not eax
cmp edx, 8
jb 0x406494
mov esi, edx
shr esi, 3
push edi
lea esp, [esp]
movzx edi, byte [ecx]
xor edi, eax
and edi, 0xff
shr eax, 8
xor eax, dword [edi*4 + 0x4527e8]
movzx edi, byte [ecx + 1]
xor edi, eax
and edi, 0xff
inc ecx
shr eax, 8
xor eax, dword [edi*4 + 0x4527e8]
movzx edi, byte [ecx + 1]
xor edi, eax
and edi, 0xff
inc ecx
shr eax, 8
xor eax, dword [edi*4 + 0x4527e8]
movzx edi, byte [ecx + 1]
xor edi, eax
inc ecx
and edi, 0xff
shr eax, 8
xor eax, dword [edi*4 + 0x4527e8]
movzx edi, byte [ecx + 1]
xor edi, eax
inc ecx
and edi, 0xff
shr eax, 8
xor eax, dword [edi*4 + 0x4527e8]
movzx edi, byte [ecx + 1]
xor edi, eax
inc ecx
and edi, 0xff
shr eax, 8
xor eax, dword [edi*4 + 0x4527e8]
movzx edi, byte [ecx + 1]
inc ecx
xor edi, eax
and edi, 0xff
shr eax, 8
xor eax, dword [edi*4 + 0x4527e8]
movzx edi, byte [ecx + 1]
inc ecx
xor edi, eax
and edi, 0xff
shr eax, 8
xor eax, dword [edi*4 + 0x4527e8]
inc ecx
sub edx, 8
sub esi, 1
jne 0x4063d0
pop edi
test edx, edx
je 0x4064bb
jmp 0x4064a0
movzx esi, byte [ecx]
xor esi, eax
and esi, 0xff
shr eax, 8
xor eax, dword [esi*4 + 0x4527e8]
inc ecx
sub edx, 1
jne 0x4064a0
not eax
pop esi
ret

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

Disassembly:
mov eax, dword [edx]
movsx ecx, cl
xor ecx, eax
shr eax, 8
and ecx, 0xff
mov ecx, dword [ecx*4 + 0x4527e8]
xor ecx, eax
movzx eax, cl
add eax, dword [edx + 4]
mov dword [edx], 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
shr ecx, 8
xor ecx, dword [eax*4 + 0x4527e8]
mov dword [edx + 8], ecx
ret

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

Disassembly:
mov ecx, dword [esi + 8]
push ebx
mov edx, ecx
and edx, 0xfffd
or edx, 2
mov ebx, edx
xor ebx, 1
imul ebx, edx
mov edx, dword [esi]
shr ebx, 8
push edi
xor al, bl
movsx edi, al
xor edi, edx
shr edx, 8
and edi, 0xff
mov ebx, dword [edi*4 + 0x4527e8]
xor ebx, edx
movzx edx, bl
add edx, dword [esi + 4]
mov dword [esi], ebx
imul edx, edx, 0x8088405
inc edx
mov dword [esi + 4], edx
shr edx, 0x18
xor edx, ecx
and edx, 0xff
shr ecx, 8
xor ecx, dword [edx*4 + 0x4527e8]
pop edi
mov dword [esi + 8], ecx
pop ebx
ret

Function at 0x406c60
Capabilities:
Read file on windows

Disassembly:
push esi
mov esi, ebx
imul esi, dword [esp + 8]
cmp byte [edi], 0
je 0x406c92
mov ecx, dword [edi + 4]
push 0
lea eax, [esp + 0xc]
push eax
push esi
push edx
push ecx
call dword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
jne 0x406c88
mov byte [edi + 8], 1
mov eax, dword [esp + 8]
xor edx, edx
div ebx
pop esi
ret
mov ecx, dword [edi + 0x1c]
mov eax, dword [edi + 0x18]
push ebp
lea ebp, [ecx + esi]
cmp ebp, eax
pop ebp
jbe 0x406ca5
sub eax, ecx
mov esi, eax
mov eax, dword [edi + 0x14]
push esi
add eax, ecx
push eax
push edx
call fcn.00439410
add dword [edi + 0x1c], esi
mov eax, esi
add esp, 0xc
xor edx, edx
div ebx
pop esi
ret
Function at 0x406cc0
Capabilities:
Read file on windows

Disassembly:
sub esp, 8
cmp byte [esi], 0
push edi
mov edi, 1
je 0x406cf3
mov edx, dword [esi + 4]
push 0
lea eax, [esp + 0xc]
push eax
push edi
lea ecx, [esp + 0x13]
push ecx
push edx
call dword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
jne 0x406ced
mov byte [esi + 8], 1
mov edi, dword [esp + 8]
jmp 0x406d1f
mov eax, dword [esi + 0x18]
push ebx
mov ebx, dword [esi + 0x1c]
lea ecx, [ebx + 1]
cmp ecx, eax
jbe 0x406d05
sub eax, ebx
mov edi, eax
mov edx, dword [esi + 0x14]
push edi
add edx, ebx
push edx
lea eax, [esp + 0x13]
push eax
call fcn.00439410
add esp, 0xc
add ebx, edi
mov dword [esi + 0x1c], ebx
pop ebx
cmp edi, 1
pop edi
jne 0x406d36
movzx ecx, byte [esp + 3]
mov edx, dword [esp + 0xc]
mov dword [edx], ecx
xor eax, eax
add esp, 8
ret
cmp byte [esi], 0
je 0x406d30
cmp byte [esi + 8], 0
je 0x406d30
or eax, 0xffffffff
add esp, 8
ret
Function at 0x406e20
Capabilities:
Read file on windows

Disassembly:
sub esp, 0x18
cmp byte [esi], 0
je 0x406e65
cmp byte [esi + 1], 0
je 0x406e6d
mov eax, dword [esi + 4]
push 2
push 0
push 0
push eax
call dword [sym.imp.KERNEL32.dll_SetFilePointer]
cmp byte [esi], 0
push ebp
je 0x406e82
cmp byte [esi + 1], 0
je 0x406e74
mov edx, dword [esi + 4]
push 1
push 0
push 0
push edx
call dword [sym.imp.KERNEL32.dll_SetFilePointer]
mov ebp, eax
sub ebp, dword [esi + 0xc]
mov dword [esp + 4], ebp
jmp 0x406e8b
mov ecx, dword [esi + 0x18]
mov dword [esi + 0x1c], ecx
jmp 0x406e3e
or eax, 0xffffffff
add esp, 0x18
ret
mov dword [esp + 4], 0
mov ebp, dword [esp + 4]
jmp 0x406e8b
mov eax, dword [esi + 0x1c]
mov dword [esp + 4], eax
mov ebp, eax
push edi
mov edi, 0xffff
mov dword [esp + 0xc], edi
cmp ebp, edi
jae 0x406e9f
mov dword [esp + 0xc], ebp
mov edi, ebp
push ebx
push 0x404
call fcn.00432c3a
mov ebx, eax
add esp, 4
test ebx, ebx
jne 0x406ebd
pop ebx
pop edi
or eax, 0xffffffff
pop ebp
add esp, 0x18
ret
mov eax, 4
mov dword [esp + 0x18], 0xffffffff
cmp edi, eax
jbe 0x406fd1
jmp 0x406ee0
mov edi, dword [esp + 0x10]
mov eax, dword [esp + 0x14]
mov ebp, dword [esp + 0xc]
add eax, 0x400
mov dword [esp + 0x14], edi
cmp eax, edi
ja 0x406ef1
mov dword [esp + 0x14], eax
mov eax, ebp
sub eax, dword [esp + 0x14]
sub ebp, eax
mov dword [esp + 0x20], eax
cmp ebp, 0x404
jbe 0x406f0a
mov ebp, 0x404
cmp byte [esi], 0
je 0x406f2f
cmp byte [esi + 1], 0
je 0x406fd1
mov ecx, dword [esi + 0xc]
mov edx, dword [esi + 4]
push 0
push 0
add ecx, eax
push ecx
push edx
call dword [sym.imp.KERNEL32.dll_SetFilePointer]
jmp 0x406f32
mov dword [esi + 0x1c], eax
cmp byte [esi], 0
mov edi, ebp
je 0x406f5a
mov ecx, dword [esi + 4]
push 0
lea eax, [esp + 0x20]
push eax
push ebp
push ebx
push ecx
call dword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
jne 0x406f54
mov byte [esi + 8], 1
mov eax, dword [esp + 0x1c]
jmp 0x406f80
mov eax, dword [esi + 0x1c]
mov ecx, dword [esi + 0x18]
lea edx, [eax + ebp]
cmp edx, ecx
jbe 0x406f6b
sub ecx, eax
mov edi, ecx
mov ecx, dword [esi + 0x14]
push edi
add ecx, eax
push ecx
push ebx
call fcn.00439410
add esp, 0xc
add dword [esi + 0x1c], edi
mov eax, edi
xor edx, edx
div ebp
cmp eax, 1
jne 0x406fd1
lea eax, [ebp - 3]
test eax, eax
jl 0x406fbc
dec eax
cmp byte [eax + ebx], 0x50
jne 0x406fac
cmp byte [eax + ebx + 1], 0x4b
jne 0x406fac
cmp byte [eax + ebx + 2], 5
jne 0x406fac
cmp byte [eax + ebx + 3], 6
je 0x406fb2
test eax, eax
jge 0x406f90
jmp 0x406fbc
mov edx, dword [esp + 0x20]
add eax, edx
mov dword [esp + 0x18], eax
cmp dword [esp + 0x18], 0
jne 0x406fd1
mov eax, dword [esp + 0x10]
cmp dword [esp + 0x14], eax
jb 0x406ed4
push ebx
call fcn.00432b1d
mov eax, dword [esp + 0x1c]
add esp, 4
pop ebx
pop edi
pop ebp
add esp, 0x18
ret