joyce8/EMBER2024-capa huggingface dataset:
Function at 0x4c4fa0
Capabilities:
Create thread

Disassembly:
push 0xffffffffffffffff
push 0x4f7eae
mov eax, dword fs:[0]
push eax
mov eax, 0x3004
call fcn.004df2e0
mov eax, dword [0x50fb70]
xor eax, esp
mov dword [esp + 0x3000], eax
push esi
mov eax, dword [0x50fb70]
xor eax, esp
push eax
lea eax, [esp + 0x300c]
mov dword fs:[0], eax
mov esi, dword [esp + 0x301c]
test esi, esi
je 0x4c5025
push 0x501fe8
push esi
call fcn.00451140
test al, al
jne 0x4c4fff
call fcn.004c2ac0
test al, al
je 0x4c5025
push 0x30
push 0x65
call fcn.004610c0
push eax
push 0x596
call fcn.004610c0
push eax
mov eax, dword [0x5354dc]
push eax
call dword [sym.imp.USER32.dll_MessageBoxW]
jmp 0x4c518e
cmp byte [0x533389], 0
jne 0x4c5061
push 0
push 0
push 1
push 0
push 0
push esi
push 0
call fcn.004c2de0
test al, al
jne 0x4c518e
push esi
push 0x201
call fcn.004610c0
push eax
call fcn.004bbb10
add esp, 8
jmp 0x4c518e
push 1
push 0x800
lea ecx, [esp + 0x10]
push ecx
push str.Rar_EX
call fcn.004adc90
test al, al
je 0x4c518e
push 0x800
lea edx, [esp + 0x200c]
push edx
call fcn.004ae690
lea eax, [esp + 8]
push eax
call fcn.004ae630
push 1
call fcn.004a9c20
push 0x800
push 0x550b7a
mov ecx, 0x541e38
call fcn.00478250
mov ecx, dword [0x541e3c]
mov dword [0x54db28], ecx
push 0x4fa890
mov ecx, 0x551b7c
call fcn.00466d10
push 0
push 0
mov ecx, 0x541e38
mov dword [0x54cb18], 4
call fcn.0047a360
cmp byte [0x533388], 0
jne 0x4c518e
lea edx, [esp + 0x1008]
push edx
push esi
call fcn.00450f80
push 0x800
lea eax, [esp + 0x100c]
push eax
mov ecx, eax
push ecx
call fcn.00451c30
test byte [0x57b9b4], 1
jne 0x4c5156
or dword [0x57b9b4], 1
mov dword [esp + 0x3014], 0
mov ecx, 0x577890
call fcn.004c2600
push 0x4f8a00
call fcn.004e356f
add esp, 4
mov dword [esp + 0x3014], 0xffffffff
push 0
lea edx, [esp + 0x100c]
push edx
mov ecx, 0x577890
call fcn.004c3670
lea eax, [esp + 0x2008]
push eax
call fcn.004ae630
push 0x577890
push 0x10000
push 0x4c4340
call fcn.004e47a2
add esp, 0xc
mov ecx, dword [esp + 0x300c]
mov dword fs:[0], ecx
pop ecx
pop esi
mov ecx, dword [esp + 0x3000]
xor ecx, esp
call fcn.004df2c4
add esp, 0x3010
ret 4
Function at 0x4caf30
Capabilities:
Encode data using xor
Generate random numbers using the delphi lcg

Disassembly:
push esi
push 0x59f8e0
mov esi, ecx
call fcn.004389f0
mov edx, dword [esp + 8]
mov dword [esi + 8], 0x12345678
mov dword [esi + 0xc], 0x23456789
mov dword [esi + 0x10], 0x34567890
mov cl, byte [edx]
test cl, cl
je 0x4cafae
lea esp, [esp]
mov eax, dword [esi + 8]
movsx ecx, cl
xor ecx, eax
and ecx, 0xff
mov ecx, dword [ecx*4 + 0x59f8e0]
shr eax, 8
xor ecx, eax
movzx eax, cl
add eax, dword [esi + 0xc]
mov dword [esi + 8], ecx
mov ecx, dword [esi + 0x10]
imul eax, eax, 0x8088405
inc eax
mov dword [esi + 0xc], eax
shr eax, 0x18
xor eax, ecx
shr ecx, 8
and eax, 0xff
xor ecx, dword [eax*4 + 0x59f8e0]
inc edx
mov dword [esi + 0x10], ecx
mov cl, byte [edx]
test cl, cl
jne 0x4caf60
pop esi
ret 4
Function at 0x4cb3a0
Capabilities:
Encode data using xor
Generate random numbers using the delphi lcg

Disassembly:
cmp byte [0x54a894], 0
je 0x4cb42e
push ebx
mov ebx, dword [esp + 0xc]
imul ebx, dword [esp + 0x10]
push ebp
mov ebp, dword [esp + 0xc]
test ebx, ebx
je 0x4cb42c
push esi
push edi
movsx edx, byte [ebp]
mov edi, dword [ecx + 8]
xor edx, edi
and edx, 0xff
mov edx, dword [edx*4 + 0x59f8e0]
mov eax, dword [ecx + 0x10]
shr edi, 8
xor edx, edi
mov dword [ecx + 8], edx
movzx edx, dl
add edx, dword [ecx + 0xc]
mov esi, eax
imul edx, edx, 0x8088405
inc edx
mov dword [ecx + 0xc], edx
shr edx, 0x18
xor edx, eax
shr eax, 8
and edx, 0xff
xor eax, dword [edx*4 + 0x59f8e0]
and esi, 0xfffd
mov dword [ecx + 0x10], eax
or esi, 2
mov eax, esi
xor eax, 1
imul eax, esi
shr eax, 8
xor byte [ebp], al
inc ebp
sub ebx, 1
jne 0x4cb3c2
pop edi
pop esi
pop ebp
pop ebx
mov edx, dword [esp + 0xc]
mov eax, dword [esp + 8]
push 0
push edx
mov edx, dword [esp + 0xc]
push eax
push edx
call fcn.004c9e60
ret 0xc
Function at 0x4d39c0
Capabilities:
Check if file exists
Get file attributes
Set file attributes

Disassembly:
sub esp, 0x4c
push esi
mov esi, dword [esp + 0x54]
push edi
push esi
mov edi, ecx
call dword [sym.imp.KERNEL32.dll_GetFileAttributesW]
cmp eax, 0xffffffff
je 0x4d39f4
test al, 0x10
jne 0x4d39ea
and eax, 0xffffffdf
push eax
push esi
call dword [sym.imp.KERNEL32.dll_SetFileAttributesW]
test eax, eax
je 0x4d39f4
pop edi
mov al, 1
pop esi
add esp, 0x4c
ret 4
mov eax, dword [edi + 0x64b3fc]
lea ecx, [esp + 8]
mov dword [esp + 0x4c], 0
mov dword [esp + 0x50], 0x10
mov dword [esp + 8], eax
mov dword [esp + 0xc], esi
mov dword [esp + 0x48], 2
call fcn.00468710
pop edi
xor al, al
pop esi
add esp, 0x4c
ret 4
Function at 0x4db8a0
Capabilities:
Generate random numbers using the delphi lcg

Disassembly:
mov ecx, dword [0x5b166c]
mov eax, dword [esp + 4]
mov edx, ecx
shr ecx, 8
xor edx, eax
and edx, 0xff
xor ecx, dword [edx*4 + 0x5a00f0]
mov edx, dword [0x5b1674]
mov dword [0x5b166c], ecx
movzx ecx, cl
add ecx, dword [0x5b1670]
imul ecx, ecx, 0x8088405
inc ecx
mov dword [0x5b1670], ecx
shr ecx, 0x18
xor ecx, edx
and ecx, 0xff
shr edx, 8
xor edx, dword [ecx*4 + 0x5a00f0]
mov dword [0x5b1674], edx
ret 4

Function at 0x4db900
Capabilities:
Encode data using xor
Generate random numbers using the delphi lcg

Disassembly:
push esi
push edi
push 0x5a00f0
call fcn.004389f0
mov edi, dword [esp + 0xc]
mov eax, 0x12345678
mov edx, 0x23456789
mov esi, 0x34567890
mov dword [0x5b166c], eax
mov dword [0x5b1670], edx
mov dword [0x5b1674], esi
mov cl, byte [edi]
test cl, cl
je 0x4db990
jmp 0x4db940
movsx ecx, cl
xor ecx, eax
and ecx, 0xff
shr eax, 8
xor eax, dword [ecx*4 + 0x5a00f0]
inc edi
movzx ecx, al
add ecx, edx
imul ecx, ecx, 0x8088405
inc ecx
mov edx, ecx
shr ecx, 0x18
xor ecx, esi
and ecx, 0xff
shr esi, 8
xor esi, dword [ecx*4 + 0x5a00f0]
mov dword [0x5b166c], eax
mov dword [0x5b1670], edx
mov dword [0x5b1674], esi
mov cl, byte [edi]
test cl, cl
jne 0x4db940
pop edi
pop esi
ret 4
Function at 0x4dc1e0
Capabilities:
Encode data using xor

Disassembly:
push esi
mov esi, eax
mov eax, dword [esi + 0xdc]
cmp eax, 0xffffffff
je 0x4dc251
cmp eax, 0x40
jbe 0x4dc207
lea edx, [esi + 0x40]
mov al, 1
call fcn.004dc130
mov dword [esi + 0xdc], 0x14
mov eax, dword [esi + 0xdc]
mov ecx, 0x40
sub ecx, eax
push ecx
add eax, esi
push 0
push eax
call fcn.004e01d0
add esp, 0xc
xor eax, eax
xor dword [esi + eax*4], 0x36363636
inc eax
cmp eax, 0x10
jb 0x4dc224
push edi
lea edi, [esi + 0x40]
push edi
call fcn.00465b50
push 1
push 0x40
push esi
push edi
call fcn.00465b90
mov dword [esi + 0xdc], 0xffffffff
pop edi
test ebx, ebx
je 0x4dc266
mov edx, dword [esp + 8]
push 1
push ebx
push edx
add esi, 0x40
push esi
call fcn.00465b90
pop esi
ret 4

Function at 0x4dc270
Capabilities:
Encode data using xor

Disassembly:
sub esp, 0x2c
mov eax, dword [0x50fb70]
xor eax, esp
mov dword [esp + 0x28], eax
cmp dword [edi + 0xdc], 0xffffffff
push ebx
push ebp
mov ebp, dword [esp + 0x38]
je 0x4dc298
push 0
mov eax, edi
xor ebx, ebx
call fcn.004dc1e0
push esi
lea ebx, [edi + 0x40]
mov al, 1
lea esi, [esp + 0x20]
mov edx, ebx
call fcn.004dc130
xor eax, eax
pop esi
lea esp, [esp]
xor dword [edi + eax*4], 0x6a6a6a6a
inc eax
cmp eax, 0x10
jb 0x4dc2b0
push ebx
call fcn.00465b50
push 1
push 0x40
push edi
push ebx
call fcn.00465b90
push 1
push 0x14
lea eax, [esp + 0x24]
push eax
push ebx
call fcn.00465b90
push 1
lea ecx, [esp + 0xc]
push ecx
push ebx
call fcn.00465c50
xor eax, eax
lea esp, [esp]
mov edx, eax
and edx, 3
mov ecx, 3
sub ecx, edx
add ecx, ecx
mov edx, eax
shr edx, 2
mov edx, dword [esp + edx*4 + 8]
add ecx, ecx
add ecx, ecx
shr edx, cl
inc eax
mov byte [esp + eax + 0x1b], dl
cmp eax, 0x14
jb 0x4dc2f0
mov eax, dword [esp + 0x3c]
test eax, eax
jbe 0x4dc32e
push eax
lea eax, [esp + 0x20]
push eax
push ebp
call fcn.004dfe60
add esp, 0xc
mov ecx, dword [esp + 0x30]
pop ebp
pop ebx
xor ecx, esp
call fcn.004df2c4
add esp, 0x2c
ret 8
Function at 0x4dc350
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
sub esp, 0x2ec
mov eax, dword [0x50fb70]
xor eax, esp
mov dword [esp + 0x2e8], eax
mov eax, dword [ebp + 0x14]
push ebx
push esi
push edi
push 0xe0
mov esi, ecx
lea ecx, [esp + 0x10c]
push 0
push ecx
mov ebx, edx
mov dword [esp + 0x30], eax
call fcn.004e01d0
mov edi, dword [ebp + 8]
add esp, 0xc
push esi
lea esi, [esp + 0x10c]
call fcn.004dc170
push ebx
mov ebx, dword [ebp + 0xc]
mov ecx, 0x38
lea edi, [esp + 0x1ec]
lea eax, [esp + 0x1ec]
rep movsd dword es:[edi], dword [esi]
call fcn.004dc1e0
mov edx, dword [ebp + 0x18]
dec edx
mov eax, 0xcccccccd
mul edx
shr edx, 4
add edx, 1
mov dword [esp + 0x20], edx
je 0x4dc553
mov ebx, 1
lea eax, [esp + 0x2cc]
mov dword [esp + 0x14], 0
mov dword [esp + 0x1c], ebx
mov dword [esp + 0x10], eax
xor eax, eax
mov dword [esp + 0x2cc], eax
mov dword [esp + 0x2d0], eax
mov dword [esp + 0x2d4], eax
mov dword [esp + 0x2d8], eax
mov dword [esp + 0x2dc], eax
mov eax, ebx
shr eax, 8
mov ecx, 0x38
lea esi, [esp + 0x1e8]
lea edi, [esp + 0x28]
rep movsd dword es:[edi], dword [esi]
mov edx, ebx
shr edx, 0x10
mov ecx, ebx
mov byte [esp + 0x2e2], al
mov eax, dword [ebp + 0x10]
shr ecx, 0x18
mov byte [esp + 0x2e1], dl
mov byte [esp + 0x2e0], cl
mov byte [esp + 0x2e3], bl
mov edx, 4
test eax, eax
jbe 0x4dc514
mov dword [esp + 0x18], eax
lea ebx, [ebx]
lea ecx, [esp + 0x2e0]
push ecx
lea eax, [esp + 0x2c]
mov ebx, edx
call fcn.004dc1e0
push 0x14
lea edx, [esp + 0x2e4]
push edx
lea edi, [esp + 0x30]
call fcn.004dc270
xor edx, edx
jmp 0x4dc4a0
movzx eax, byte [esp + edx + 0x2e0]
xor byte [esp + edx + 0x2cc], al
movzx ecx, byte [esp + edx + 0x2e1]
movzx eax, byte [esp + edx + 0x2e2]
xor byte [esp + edx + 0x2cd], cl
xor byte [esp + edx + 0x2ce], al
movzx ecx, byte [esp + edx + 0x2e3]
movzx eax, byte [esp + edx + 0x2e4]
xor byte [esp + edx + 0x2cf], cl
xor byte [esp + edx + 0x2d0], al
add edx, 5
cmp edx, 0x14
jb 0x4dc4a0
sub dword [esp + 0x18], 1
mov ecx, 0x38
lea esi, [esp + 0x108]
lea edi, [esp + 0x28]
rep movsd dword es:[edi], dword [esi]
jne 0x4dc470
mov ebx, dword [esp + 0x1c]
mov eax, dword [esp + 0x14]
xor ecx, ecx
cmp eax, dword [ebp + 0x18]
jae 0x4dc534
mov edx, dword [esp + 0x10]
mov dl, byte [edx + eax]
mov esi, dword [esp + 0x24]
mov byte [eax + esi], dl
inc ecx
inc eax
cmp ecx, 0x14
jb 0x4dc51a
mov eax, 0x14
add dword [esp + 0x14], eax
sub dword [esp + 0x10], eax
inc ebx
lea eax, [ebx - 1]
mov dword [esp + 0x1c], ebx
cmp eax, dword [esp + 0x20]
jb 0x4dc3f4
mov ecx, dword [esp + 0x2f4]
pop edi
pop esi
pop ebx
xor ecx, esp
call fcn.004df2c4
mov esp, ebp
pop ebp
ret 0x14

Function at 0x4df2c4
Capabilities:
Terminate process

Disassembly:
cmp ecx, dword [0x50fb70]
jne 0x4df2ce
repz ret
jmp fcn.004e6105
Function at 0x4ede0b
Capabilities:
Link many functions at runtime

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x14
push ebx
push esi
push edi
call fcn.004e4e1f
and dword [ebp - 4], 0
cmp dword [0x5b4060], 0
mov ebx, eax
jne 0x4edebc
push str.USER32.DLL
call dword [sym.imp.KERNEL32.dll_LoadLibraryA]
mov edi, eax
test edi, edi
je 0x4edf6d
mov esi, dword [sym.imp.KERNEL32.dll_GetProcAddress]
push str.MessageBoxA
push edi
call esi
test eax, eax
je 0x4edf6d
push eax
call fcn.004e4dad
mov dword [esp], str.GetActiveWindow
push edi
mov dword [0x5b4060], eax
call esi
push eax
call fcn.004e4dad
mov dword [esp], 0x5031c4
push edi
mov dword [0x5b4064], eax
call esi
push eax
call fcn.004e4dad
mov dword [esp], str.GetUserObjectInformationA
push edi
mov dword [0x5b4068], eax
call esi
push eax
call fcn.004e4dad
pop ecx
mov dword [0x5b4070], eax
test eax, eax
je 0x4edebc
push str.GetProcessWindowStation
push edi
call esi
push eax
call fcn.004e4dad
pop ecx
mov dword [0x5b406c], eax
mov eax, dword [0x5b406c]
cmp eax, ebx
je 0x4edf14
cmp dword [0x5b4070], ebx
je 0x4edf14
push eax
call fcn.004e4e28
push dword [0x5b4070]
mov esi, eax
call fcn.004e4e28
pop ecx
pop ecx
mov edi, eax
test esi, esi
je 0x4edf14
test edi, edi
je 0x4edf14
call esi
test eax, eax
je 0x4edf0b
lea ecx, [ebp - 8]
push ecx
push 0xc
lea ecx, [ebp - 0x14]
push ecx
push 1
push eax
call edi
test eax, eax
je 0x4edf0b
test byte [ebp - 0xc], 1
jne 0x4edf14
or dword [ebp + 0x10], 0x200000
jmp 0x4edf4d
mov eax, dword [0x5b4064]
cmp eax, ebx
je 0x4edf4d
push eax
call fcn.004e4e28
pop ecx
test eax, eax
je 0x4edf4d
call eax
mov dword [ebp - 4], eax
test eax, eax
je 0x4edf4d
mov eax, dword [0x5b4068]
cmp eax, ebx
je 0x4edf4d
push eax
call fcn.004e4e28
pop ecx
test eax, eax
je 0x4edf4d
push dword [ebp - 4]
call eax
mov dword [ebp - 4], eax
push dword [0x5b4060]
call fcn.004e4e28
pop ecx
test eax, eax
je 0x4edf6d
push dword [ebp + 0x10]
push dword [ebp + 0xc]
push dword [ebp + 8]
push dword [ebp - 4]
call eax
jmp 0x4edf6f
xor eax, eax
pop edi
pop esi
pop ebx
leave
ret
Function at 0x403bc2
Capabilities:
Create thread

Disassembly:
push ebp
mov ebp, esp
sub esp, 8
mov dword [ebp - 4], esp
push dword [ebp + 0x14]
push 0
push dword [ebp + 0xc]
push dword [ebp + 8]
push 0
push 0
call dword [sym.imp.KERNEL32.dll_CreateThread]
nop
nop
nop
nop
cmp dword [ebp - 4], esp
je 0x403c02
push 6
call fcn.004158ae
add esp, 4
jmp 0x403c07
mov esp, ebp
pop ebp
ret 0x14

Function at 0x403c29
Capabilities:
Terminate thread

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x10
mov dword [ebp - 4], esp
push 0
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.dll_TerminateThread]
nop
nop
nop
nop
cmp dword [ebp - 4], esp
je 0x403c59
push 6
call fcn.004158ae
add esp, 4
mov dword [ebp - 0xc], eax
cmp dword [ebp - 0xc], 0
mov eax, 0
setne al
jmp 0x403c6d
mov esp, ebp
pop ebp
ret 4
Function at 0x416380
Capabilities:
Create process on windows

Disassembly:
sub esp, 0x54
push esi
lea eax, [esp + 0x14]
push edi
push eax
mov dword [esp + 0x1c], 0x44
call dword [sym.imp.KERNEL32.dll_GetStartupInfoA]
mov eax, dword [esp + 0x84]
xor edi, edi
cmp eax, edi
mov dword [esp + 0x54], edi
mov dword [esp + 0x58], edi
mov dword [esp + 0x44], 1
je case.0x4163c1.2
mov ecx, dword [esp + 0x7c]
lea eax, [ecx - 1]
cmp eax, 5
ja case.0x4163c1.2
jmp dword [eax*4 + 0x41644c]
mov word [esp + 0x48], di
jmp 0x4163fa
mov word [esp + 0x48], 2
jmp 0x4163fa
mov word [esp + 0x48], 3
jmp 0x4163fa
mov word [esp + 0x48], 4
jmp 0x4163fa
mov word [esp + 0x48], 7
jmp 0x4163fa
mov word [esp + 0x48], 5
lea edx, [esp + 8]
mov ecx, dword [esp + 0x64]
lea eax, [esp + 0x18]
push edx
push eax
push edi
push edi
push edi
push 1
push edi
push edi
push ecx
push edi
call dword [sym.imp.KERNEL32.dll_CreateProcessA]
mov esi, eax
cmp esi, edi
je 0x416444
cmp dword [esp + 0x70], edi
je 0x416430
mov edx, dword [esp + 8]
push 0xffffffffffffffff
push edx
call dword [sym.imp.KERNEL32.dll_WaitForSingleObject]
mov eax, dword [esp + 8]
mov edi, dword [sym.imp.KERNEL32.dll_CloseHandle]
push eax
call edi
mov ecx, dword [esp + 0xc]
push ecx
call edi
mov eax, esi
pop edi
pop esi
add esp, 0x54
ret
Function at 0x416f30
Capabilities:
Write file on windows

Disassembly:
sub esp, 0x10
push esi
mov esi, dword [esp + 0x1c]
test esi, esi
jne 0x416f43
xor eax, eax
pop esi
add esp, 0x10
ret
push esi
call fcn.004194a0
add esp, 4
test eax, eax
jne 0x416f55
pop esi
add esp, 0x10
ret
mov eax, dword [esi]
mov ecx, 1
push ebx
push ebp
cmp eax, ecx
push edi
mov dword [esp + 0x10], 0
jne 0x417016
mov eax, dword [esi + 4]
mov dword [esp + 0x10], ecx
mov dword [esp + 0x18], eax
mov eax, dword [esp + 0x24]
cmp eax, ecx
mov dword [esp + 0x14], ecx
jle 0x417093
lea ebx, [esp + 0x34]
mov eax, dword [ebx + 8]
xor ebp, ebp
cmp eax, 0x80000004
jne 0x416f9e
mov esi, dword [ebx]
jmp 0x416fb2
push ebx
call fcn.00419300
mov esi, eax
add esp, 4
test esi, esi
je 0x416ff6
mov ebp, 1
mov edi, esi
or ecx, 0xffffffff
xor eax, eax
repne scasb al, byte es:[edi]
not ecx
dec ecx
test ecx, ecx
jle 0x416fdd
lea edx, [esp + 0x1c]
push eax
mov eax, dword [esp + 0x1c]
push edx
push ecx
push esi
push eax
call dword [sym.imp.KERNEL32.dll_WriteFile]
test eax, eax
jne 0x416fdd
mov dword [esp + 0x10], eax
test ebp, ebp
je 0x416fea
push esi
call fcn.0041a70e
add esp, 4
mov eax, dword [esp + 0x10]
test eax, eax
je 0x417093
mov eax, dword [esp + 0x14]
mov ecx, dword [esp + 0x24]
inc eax
add ebx, 0xc
cmp eax, ecx
mov dword [esp + 0x14], eax
jl 0x416f8e
mov eax, dword [esp + 0x10]
pop edi
pop ebp
pop ebx
pop esi
add esp, 0x10
ret
cmp eax, 2
jne 0x417093
mov eax, dword [esp + 0x24]
mov edx, dword [esi + 4]
cmp eax, ecx
mov dword [esp + 0x18], edx
mov dword [esp + 0x10], ecx
jle 0x417093
dec eax
lea ebx, [esp + 0x34]
mov dword [esp + 0x24], eax
mov eax, dword [ebx + 8]
xor ebp, ebp
cmp eax, 0x80000004
jne 0x417047
mov esi, dword [ebx]
jmp 0x41705b
push ebx
call fcn.00419300
mov esi, eax
add esp, 4
test esi, esi
je 0x417085
mov ebp, 1
mov edi, esi
or ecx, 0xffffffff
xor eax, eax
repne scasb al, byte es:[edi]
not ecx
dec ecx
test ecx, ecx
jle 0x417078
mov eax, dword [esp + 0x18]
push ecx
push esi
mov ecx, eax
mov edx, dword [eax]
call dword [edx + 0x24]
test ebp, ebp
je 0x417085
push esi
call fcn.0041a70e
add esp, 4
mov eax, dword [esp + 0x24]
add ebx, 0xc
dec eax
mov dword [esp + 0x24], eax
jne 0x417037
mov eax, dword [esp + 0x10]
pop edi
pop ebp
pop ebx
pop esi
add esp, 0x10
ret
Function at 0x417100
Capabilities:
Get file size
Read file on windows

Disassembly:
sub esp, 0xc
push esi
mov esi, dword [esp + 0x18]
test esi, esi
jne 0x417116
mov eax, 1
pop esi
add esp, 0xc
ret
push esi
call fcn.004194a0
add esp, 4
test eax, eax
jne 0x41712d
mov eax, 1
pop esi
add esp, 0xc
ret
mov eax, dword [esi]
push ebx
push ebp
cmp eax, 1
push edi
mov dword [esp + 0x10], 1
jne 0x4171dd
mov esi, dword [esi + 4]
lea eax, [esp + 0x14]
push eax
push esi
call dword [sym.imp.KERNEL32.dll_GetFileSize]
mov ebp, dword [sym.imp.KERNEL32.dll_SetFilePointer]
push 1
push 0
push 0
push esi
mov ebx, eax
call ebp
mov edi, eax
cmp edi, 0xffffffff
je 0x417245
cmp edi, ebx
jae 0x417245
mov eax, dword [esp + 0x38]
mov dword [esp + 0x10], 0
test eax, eax
je 0x417245
mov eax, dword [esp + 0x30]
test eax, eax
je 0x417245
lea ecx, [esp + 0x18]
push 0
push ecx
lea edx, [esp + 0x2c]
push 1
push edx
push esi
call dword [sym.imp.KERNEL32.dll_ReadFile]
push 0
push 0
push edi
push esi
mov ebx, eax
call ebp
test ebx, ebx
je 0x417245
mov al, byte [esp + 0x24]
test al, al
je 0x41723d
cmp al, 0x1a
jne 0x417245
pop edi
mov dword [esp + 0xc], 1
mov eax, dword [esp + 0xc]
pop ebp
pop ebx
pop esi
add esp, 0xc
ret
cmp eax, 2
jne 0x417245
mov esi, dword [esi + 4]
mov ecx, esi
call fcn.004192f0
mov ebx, eax
mov eax, dword [esi]
mov ecx, esi
call dword [eax + 0x14]
mov edi, eax
cmp edi, ebx
jae 0x417245
mov eax, dword [esp + 0x38]
mov dword [esp + 0x10], 0
test eax, eax
je 0x417245
mov eax, dword [esp + 0x30]
test eax, eax
je 0x417245
mov edx, dword [esi]
lea eax, [esp + 0x24]
push 1
push eax
mov ecx, esi
call dword [edx + 0x20]
mov edx, dword [esi]
push 0
push edi
mov ecx, esi
mov ebp, eax
call dword [edx + 0x18]
test ebp, ebp
je 0x417245
mov al, byte [esp + 0x24]
test al, al
je 0x41723d
cmp al, 0x1a
jne 0x417245
mov dword [esp + 0x10], 1
mov eax, dword [esp + 0x10]
pop edi
pop ebp
pop ebx
pop esi
add esp, 0xc
ret
Function at 0x417260
Capabilities:
Read file on windows

Disassembly:
sub esp, 8
push ebx
push ebp
push esi
mov esi, dword [esp + 0x1c]
test esi, esi
push edi
jne 0x417279
pop edi
pop esi
pop ebp
xor eax, eax
pop ebx
add esp, 8
ret
push esi
call fcn.004194a0
add esp, 4
test eax, eax
jne 0x41728e
pop edi
pop esi
pop ebp
pop ebx
add esp, 8
ret
mov eax, dword [esi]
xor edi, edi
cmp eax, 1
jne 0x4173ce
mov edi, dword [esi + 4]
mov esi, dword [sym.imp.KERNEL32.dll_SetFilePointer]
push eax
push 0
push 0
push edi
mov dword [esp + 0x24], edi
call esi
cmp eax, 0xffffffff
mov dword [esp + 0x10], eax
jne 0x4172cc
push 2
push 0
push 0
push edi
call esi
pop edi
pop esi
pop ebp
xor eax, eax
pop ebx
add esp, 8
ret
push 0x1000
xor ebp, ebp
call fcn.0041ab26
add esp, 4
mov ebx, eax
lea eax, [esp + 0x20]
mov esi, ebx
push ebp
push eax
push 0x1000
push ebx
push edi
call dword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
je 0x4173ae
mov edx, dword [esp + 0x20]
xor ecx, ecx
test edx, edx
jbe 0x417314
mov al, byte [esi]
cmp al, 0xd
je 0x417356
cmp al, 0xa
je 0x417356
inc ecx
inc esi
cmp ecx, edx
jb 0x417304
add ebp, edx
cmp edx, 0x1000
jb 0x417358
push 0x1000
push ebx
call fcn.0041a7f7
mov ebx, eax
mov eax, dword [esp + 0x28]
add esp, 8
cmp eax, 0x1000
jne 0x417358
lea ecx, [esp + 0x20]
push 0
lea esi, [ebx + ebp]
push ecx
push 0x1000
push esi
push edi
call dword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
je 0x4173ae
jmp 0x4172fa
add ebp, ecx
lea edx, [ebp + 1]
push edx
call fcn.00415e40
mov ecx, dword [esp + 0x14]
mov edi, eax
mov al, byte [esi]
add esp, 4
add ecx, ebp
cmp al, 0xd
je 0x417376
cmp al, 0xa
jne 0x41737f
mov al, byte [esi + 1]
inc ecx
cmp al, 0xa
jne 0x41737f
inc ecx
mov eax, dword [esp + 0x14]
push 0
push 0
push ecx
push eax
call dword [sym.imp.KERNEL32.dll_SetFilePointer]
push ebp
push ebx
push edi
call fcn.0041a610
push ebx
mov byte [edi + ebp], 0
call fcn.0041a70e
add esp, 0x10
mov eax, edi
pop edi
pop esi
pop ebp
pop ebx
add esp, 8
ret
push 2
push 0
push 0
push edi
call dword [sym.imp.KERNEL32.dll_SetFilePointer]
push ebx
call fcn.0041a70e
add esp, 4
xor eax, eax
pop edi
pop esi
pop ebp
pop ebx
add esp, 8
ret
cmp eax, 2
jne 0x41745c
mov esi, dword [esi + 4]
mov ecx, esi
mov edx, dword [esi]
call dword [edx + 0x14]
lea ecx, [esp + 0x10]
lea edx, [esp + 0x20]
push ecx
mov dword [esp + 0x18], eax
mov eax, dword [esi]
push edx
push 0xffffffffffffffff
push 0
mov ecx, esi
call dword [eax + 0x30]
mov ebp, dword [esp + 0x20]
xor ebx, ebx
test eax, eax
jbe 0x417417
mov cl, byte [ebp]
cmp cl, 0xd
je 0x417417
cmp cl, 0xa
je 0x417417
inc ebx
inc ebp
cmp ebx, eax
jb 0x417404
lea eax, [ebx + 1]
push eax
call fcn.00415e40
mov ecx, dword [esp + 0x18]
mov edi, eax
mov al, byte [ebp]
add esp, 4
add ecx, ebx
cmp al, 0xd
je 0x417436
cmp al, 0xa
jne 0x41743f
mov al, byte [ebp + 1]
inc ecx
cmp al, 0xa
jne 0x41743f
inc ecx
mov edx, dword [esi]
push 0
push ecx
mov ecx, esi
call dword [edx + 0x18]
mov eax, dword [esp + 0x20]
push ebx
push eax
push edi
call fcn.0041a610
add esp, 0xc
mov byte [ebx + edi], 0
mov eax, edi
pop edi
pop esi
pop ebp
pop ebx
add esp, 8
ret
Function at 0x418250
Capabilities:
Read .ini file

Disassembly:
push ebx
push ebp
push esi
push edi
push 0x400
call fcn.00425b02
mov ebx, dword [esp + 0x1c]
mov ebp, dword [esp + 0x40]
mov ecx, dword [esp + 0x28]
add esp, 4
mov esi, eax
mov eax, dword [esp + 0x30]
push ebx
push 0x400
push esi
push ebp
push eax
push ecx
call dword [sym.imp.KERNEL32.dll_GetPrivateProfileStringA]
cmp eax, 0x3ff
jl 0x4182ba
push esi
lea edi, [eax + 0x400]
call fcn.00425b2b
push edi
call fcn.00425b02
mov edx, dword [esp + 0x38]
add esp, 8
mov esi, eax
mov eax, dword [esp + 0x24]
push ebx
push edi
push esi
push ebp
push edx
push eax
call dword [sym.imp.KERNEL32.dll_GetPrivateProfileStringA]
dec edi
cmp eax, edi
jge 0x41828a
mov edi, esi
or ecx, 0xffffffff
xor eax, eax
xor ebx, ebx
repne scasb al, byte es:[edi]
not ecx
dec ecx
je 0x4182d6
push ecx
push esi
call fcn.00418de0
add esp, 8
mov ebx, eax
push esi
call fcn.00425b2b
add esp, 4
mov eax, ebx
pop edi
pop esi
pop ebp
pop ebx
ret

Function at 0x42a0ca
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 0x42a0f8
push dword [esi]
call dword [sym.imp.KERNEL32.dll_TlsGetValue]
test eax, eax
je 0x42a116
push dword [esp + 0xc]
mov ecx, esi
push eax
call fcn.0042a030
jmp 0x42a116
mov eax, dword [esi + 0x14]
test eax, eax
je 0x42a116
push edi
push dword [esp + 0x10]
mov edi, dword [eax + 4]
mov ecx, esi
push eax
call fcn.0042a030
test edi, edi
mov eax, edi
jne 0x42a100
pop edi
push ebx
call dword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
pop esi
pop ebx
ret 8