joyce8/EMBER2024-capa huggingface dataset:
Function at 0x40ca60
Capabilities:
Packed with generic packer

Disassembly:
pushal
mov esi, section.UPX1
lea edi, [esi - 0x9000]
push edi
or ebp, 0xffffffff
jmp 0x40ca82
mov al, byte [esi]
inc esi
mov byte [edi], al
inc edi
add ebx, ebx
jne 0x40ca89
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
jb 0x40ca78
mov eax, 1
add ebx, ebx
jne 0x40ca9b
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc eax, eax
add ebx, ebx
jae 0x40ca90
jne 0x40caac
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
jae 0x40ca90
xor ecx, ecx
sub eax, 3
jb 0x40cac0
shl eax, 8
mov al, byte [esi]
inc esi
xor eax, 0xffffffff
je 0x40cb32
mov ebp, eax
add ebx, ebx
jne 0x40cacb
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc ecx, ecx
add ebx, ebx
jne 0x40cad8
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc ecx, ecx
jne 0x40cafc
inc ecx
add ebx, ebx
jne 0x40cae8
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc ecx, ecx
add ebx, ebx
jae 0x40cadd
jne 0x40caf9
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
jae 0x40cadd
add ecx, 2
cmp ebp, 0xfffff300
adc ecx, 1
lea edx, [edi + ebp]
cmp ebp, 0xfffffffc
jbe 0x40cb1c
mov al, byte [edx]
inc edx
mov byte [edi], al
inc edi
dec ecx
jne 0x40cb0d
jmp 0x40ca7e
mov eax, dword [edx]
add edx, 4
mov dword [edi], eax
add edi, 4
sub ecx, 4
ja 0x40cb1c
add edi, ecx
jmp 0x40ca7e
pop esi
lea edi, [esi + 0xa000]
mov eax, dword [edi]
or eax, eax
je 0x40cb7b
mov ebx, dword [edi + 4]
lea eax, [eax + esi + 0xe99c]
add ebx, esi
push eax
add edi, 8
call dword [esi + 0xe9f4]
xchg ebp, eax
mov al, byte [edi]
inc edi
or al, al
je 0x40cb39
mov ecx, edi
push edi
dec eax
repne scasb al, byte es:[edi]
push ebp
call dword [esi + 0xe9fc]
or eax, eax
je 0x40cb75
mov dword [ebx], eax
add ebx, 4
jmp 0x40cb56
call dword [esi + 0xe9f8]
mov ebp, dword [esi + 0xea00]
lea edi, [esi - 0x1000]
mov ebx, 0x1000
push eax
push esp
push 4
push ebx
push edi
call ebp
lea eax, [edi + 0x1df]
and byte [eax], 0x7f
and byte [eax + 0x28], 0x7f
pop eax
push eax
push esp
push eax
push ebx
push edi
call ebp
pop eax
popal
lea eax, [esp - 0x80]
push 0
cmp esp, eax
jne 0x40cbaf
sub esp, 0xffffff80
jmp 0x401978

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 0x408945
Capabilities:
Encode data using xor

Disassembly:
mov esi, 0x4085d8
mov edx, 0xf4bcc147
mov eax, 0x60fc62b0
call fcn.00408969
inc eax
xor dword [edi], esi
inc edi
cmp edi, ecx
jne fcn.00408945
ret
Function at 0x402900
Capabilities:
Get graphical window text
Open clipboard
Write clipboard data

Disassembly:
mov eax, dword [0x40f1a8]
push esi
push edi
mov edi, dword [sym.imp.USER32.dll_SendMessageA]
push 0
push 0
push 0xe
push eax
call edi
mov esi, eax
test esi, esi
jle 0x402994
push ebx
push ebp
inc esi
push esi
call sub.MSVCRT.dll_void____cdecl_operator_new_unsigned_int_
mov ecx, dword [0x40f1a8]
add esp, 4
mov ebx, eax
push ebx
push esi
push 0xd
push ecx
call edi
push esi
push 0x42
call dword [sym.imp.KERNEL32.dll_GlobalAlloc]
mov ebp, eax
push ebp
call dword [sym.imp.KERNEL32.dll_GlobalLock]
mov ecx, esi
mov edx, ecx
shr ecx, 2
mov edi, eax
mov eax, dword [0x40f1a8]
mov esi, ebx
rep movsd dword es:[edi], dword [esi]
mov ecx, edx
and ecx, 3
push eax
rep movsb byte es:[edi], byte [esi]
call dword [sym.imp.USER32.dll_OpenClipboard]
test eax, eax
je 0x402982
call dword [sym.imp.USER32.dll_EmptyClipboard]
push ebp
push 1
call dword [sym.imp.USER32.dll_SetClipboardData]
call dword [sym.imp.USER32.dll_CloseClipboard]
push ebp
call dword [sym.imp.KERNEL32.dll_GlobalUnlock]
push ebx
call sub.MSVCRT.dll_void___cdecl_operator_delete_void__
add esp, 4
pop ebp
pop ebx
pop edi
pop esi
ret

Function at 0x4029a0
Capabilities:
Get graphical window text
Write file on windows

Disassembly:
push ecx
mov eax, dword [0x40f1a8]
push ebx
mov ebx, dword [sym.imp.USER32.dll_SendMessageA]
push ebp
push esi
xor ebp, ebp
push ebp
push ebp
push 0xe
push eax
call ebx
mov esi, eax
test esi, esi
jle 0x402a24
push edi
inc esi
push esi
call sub.MSVCRT.dll_void____cdecl_operator_new_unsigned_int_
mov ecx, dword [0x40f1a8]
add esp, 4
mov edi, eax
push edi
push esi
push 0xd
push ecx
call ebx
mov edx, dword [esp + 0x18]
push ebp
push 0x80
push 2
push ebp
push 1
push 0x40000000
push edx
call dword [sym.imp.KERNEL32.dll_CreateFileA]
mov ebx, eax
cmp ebx, 0xffffffff
je 0x402a1a
push ebp
lea eax, [esp + 0x14]
push eax
dec esi
push esi
push edi
push ebx
call dword [sym.imp.KERNEL32.dll_WriteFile]
test eax, eax
je 0x402a13
mov ebp, 1
push ebx
call dword [sym.imp.KERNEL32.dll_CloseHandle]
push edi
call sub.MSVCRT.dll_void___cdecl_operator_delete_void__
add esp, 4
pop edi
pop esi
mov eax, ebp
pop ebp
pop ebx
pop ecx
ret

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 0x402240
Capabilities:
Create process on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x3c
lea eax, [ebp + 8]
cmp dword [ebp + 0x1c], 0x10
cmovae eax, dword [ebp + 8]
push 1
push 0
push 0
push eax
push str.open
push 0
call dword [sym.imp.SHELL32.dll_ShellExecuteA]
cmp eax, 0x20
jg 0x4022b3
cmp dword [ebp + 0x1c], 0x10
lea eax, [ebp + 8]
mov dword [ebp - 0x3c], 0x3c
cmovae eax, dword [ebp + 8]
mov dword [ebp - 0x28], eax
lea eax, [ebp - 0x3c]
push eax
mov dword [ebp - 0x38], 0x400
mov dword [ebp - 0x34], 0
mov dword [ebp - 0x30], 0x53a708
mov dword [ebp - 0x2c], str.iexplore.exe
mov dword [ebp - 0x24], 0
mov dword [ebp - 0x20], 1
call dword [sym.imp.SHELL32.dll_ShellExecuteExA]
mov eax, dword [ebp + 0x1c]
cmp eax, 0x10
jb 0x4022c8
inc eax
lea ecx, [ebp + 8]
push eax
push dword [ebp + 8]
call fcn.00402920
mov esp, ebp
pop ebp
ret 0x18
Function at 0x4033d0
Capabilities:
Encode data using xor
Hash data using fnv

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x10
push ebx
mov ebx, dword [ebp + 0xc]
mov eax, ecx
push esi
push edi
mov dword [ebp - 4], eax
cmp dword [ebx + 0x14], 8
mov ecx, dword [ebx + 0x10]
mov dword [ebp + 0xc], ecx
jb 0x4033f1
mov esi, dword [ebx]
jmp 0x4033f3
mov esi, ebx
lea edi, [ecx + ecx]
mov edx, 0x811c9dc5
xor ecx, ecx
test edi, edi
je 0x403415
movzx eax, byte [esi + ecx]
inc ecx
xor eax, edx
imul edx, eax, 0x1000193
cmp ecx, edi
jb 0x403401
mov eax, dword [ebp - 4]
mov ecx, dword [eax + 0x18]
mov esi, dword [ebp - 4]
and ecx, edx
mov edx, dword [eax + 0xc]
mov esi, dword [esi + 4]
mov eax, dword [edx + ecx*8]
add ecx, ecx
mov dword [ebp - 4], esi
mov edi, dword [edx + ecx*4]
inc ecx
mov dword [ebp - 0xc], edi
lea ecx, [edx + ecx*4]
mov dword [ebp - 0x10], ecx
cmp edi, esi
jne 0x403440
mov ecx, esi
jmp 0x403444
mov ecx, dword [ecx]
mov ecx, dword [ecx]
cmp eax, ecx
je 0x403521
cmp dword [ebx + 0x14], 8
lea edx, [eax + 8]
jb 0x403459
mov esi, dword [ebx]
jmp 0x40345b
mov esi, ebx
cmp dword [edx + 0x14], 8
lea ecx, [edx + 0x10]
jb 0x403466
mov edx, dword [edx]
mov ecx, dword [ecx]
mov edi, dword [ebp + 0xc]
cmp ecx, edi
mov dword [ebp - 8], ecx
cmovb edi, ecx
test edi, edi
jne 0x403496
xor ecx, ecx
test ecx, ecx
jne 0x403489
mov ecx, dword [ebp - 8]
mov edx, dword [ebp + 0xc]
cmp ecx, edx
jb 0x403489
jbe 0x4034b7
mov eax, dword [eax]
mov esi, dword [ebp - 4]
mov edi, dword [ebp - 0xc]
mov ecx, dword [ebp - 0x10]
jmp 0x403438
mov cx, word [edx]
cmp cx, word [esi]
jne 0x4034a9
add edx, 2
add esi, 2
sub edi, 1
jmp 0x403475
movzx ecx, word [edx]
cmp cx, word [esi]
sbb ecx, ecx
and ecx, 0xfffffffe
inc ecx
jmp 0x403479
cmp dword [eax + 0x1c], 8
lea edx, [eax + 8]
lea edi, [edx + 0x10]
jb 0x4034c5
mov edx, dword [edx]
cmp dword [ebx + 0x14], 8
jb 0x4034cd
mov ebx, dword [ebx]
mov edi, dword [edi]
mov esi, edi
cmp dword [ebp + 0xc], edi
cmovb esi, dword [ebp + 0xc]
test esi, esi
jne 0x403500
xor ecx, ecx
test ecx, ecx
jne 0x4034eb
mov ecx, dword [ebp + 0xc]
cmp ecx, edi
jb 0x4034eb
jbe 0x4034ee
mov eax, dword [ebp - 4]
mov ecx, dword [ebp + 8]
pop edi
pop esi
pop ebx
mov dword [ecx], eax
mov eax, ecx
mov esp, ebp
pop ebp
ret 8
mov cx, word [ebx]
cmp cx, word [edx]
jne 0x403513
add ebx, 2
add edx, 2
sub esi, 1
jmp 0x4034da
movzx ecx, word [ebx]
cmp cx, word [edx]
sbb ecx, ecx
and ecx, 0xfffffffe
inc ecx
jmp 0x4034de
mov eax, dword [ebp + 8]
pop edi
mov dword [eax], esi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 8
Function at 0x403970
Capabilities:
Encode data using xor
Hash data using fnv

Disassembly:
push ebp
mov ebp, esp
push ecx
push ebx
push esi
push edi
mov edi, dword [ebp + 0xc]
cmp dword [edi + 0x1c], 8
lea edx, [edi + 8]
mov ebx, dword [edx + 0x10]
mov dword [ebp - 4], ecx
jb 0x40398b
mov edx, dword [edx]
xor ecx, ecx
mov esi, 0x811c9dc5
add ebx, ebx
je 0x4039a7
movzx eax, byte [edx + ecx]
inc ecx
xor eax, esi
imul esi, eax, 0x1000193
cmp ecx, ebx
jb 0x403996
mov edx, dword [ebp - 4]
mov eax, dword [edx + 0x18]
mov ecx, dword [edx + 0xc]
and eax, esi
lea esi, [eax*8]
add ecx, esi
cmp dword [ecx + 4], edi
jne 0x4039dd
cmp dword [ecx], edi
jne 0x4039d5
mov eax, dword [edx + 4]
mov dword [ecx], eax
mov ecx, dword [edx + 0xc]
mov eax, dword [edx + 4]
mov dword [esi + ecx + 4], eax
jmp 0x4039e5
mov eax, dword [edi + 4]
mov dword [ecx + 4], eax
jmp 0x4039e5
cmp dword [ecx], edi
jne 0x4039e8
mov eax, dword [edi]
mov dword [ecx], eax
mov edi, dword [ebp + 0xc]
mov eax, dword [edi + 4]
mov esi, dword [edi]
mov dword [eax], esi
mov ecx, dword [edi]
mov eax, dword [edi + 4]
mov dword [ecx + 4], eax
lea ecx, [edi + 8]
dec dword [edx + 8]
call fcn.00403e60
push edi
call fcn.004e1ddf
mov eax, dword [ebp + 8]
add esp, 4
pop edi
mov dword [eax], esi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 8
Function at 0x4088c0
Capabilities:
Access peb ldr_data

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x51f486
mov eax, dword fs:[0]
push eax
push esi
push edi
mov eax, dword [0x5640a8]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov edi, ecx
push 8
mov dword [edi], vtable.std::basic_streambuf_wchar_t__struct_std::char_traits_wchar_t__.0
call fcn.004e204b
mov esi, eax
push 1
mov dword [ebp - 4], 0
call fcn.004df4b7
mov dword [esi + 4], eax
lea ecx, [edi + 8]
lea eax, [edi + 4]
mov dword [edi + 0x34], esi
mov dword [edi + 0xc], eax
add esp, 8
lea eax, [edi + 0x14]
mov dword [edi + 0x10], ecx
mov dword [edi + 0x1c], eax
lea eax, [edi + 0x18]
mov dword [edi + 0x20], eax
lea eax, [edi + 0x24]
mov dword [edi + 0x2c], eax
lea eax, [edi + 0x28]
mov dword [edi + 0x30], eax
mov dword [ecx], 0
mov eax, dword [edi + 0x20]
mov dword [eax], 0
mov eax, dword [edi + 0x30]
mov dword [eax], 0
mov eax, dword [edi + 0xc]
mov dword [eax], 0
mov eax, dword [edi + 0x1c]
mov dword [eax], 0
mov eax, dword [edi + 0x2c]
mov dword [eax], 0
mov eax, edi
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
mov esp, ebp
pop ebp
ret
Function at 0x418020
Capabilities:
Create thread

Disassembly:
push ebp
mov ebp, esp
push ecx
push esi
push edi
mov edi, dword [0x56e84c]
cmp dword [edi + 0x20], 0
jne 0x41804b
push 0
push 0
push edi
push 0x418390
push 0
push 0
call fcn.00500eb9
add esp, 0x18
mov dword [edi + 0x20], eax
lea esi, [edi + 4]
push esi
call dword [sym.imp.KERNEL32.dll_EnterCriticalSection]
lea eax, [ebp + 8]
push eax
lea ecx, [edi + 0x24]
call fcn.00418470
push esi
call dword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
mov eax, dword [edi + 0x1c]
pop edi
pop esi
test eax, eax
je 0x418078
push eax
call dword [sym.imp.KERNEL32.dll_SetEvent]
mov esp, ebp
pop ebp
ret 4
Function at 0x41c400
Capabilities:
Get common file path

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x5211fb
mov eax, dword fs:[0]
push eax
sub esp, 0x228
mov eax, dword [0x5640a8]
xor eax, ebp
mov dword [ebp - 0x10], eax
push esi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov esi, dword [ebp + 8]
lea eax, [ebp - 0x218]
push 0x208
push 0
push eax
mov dword [ebp - 0x234], 0
call fcn.004fb530
add esp, 0xc
lea eax, [ebp - 0x218]
push 0x104
push eax
call dword [sym.imp.KERNEL32.dll_GetWindowsDirectoryW]
xor eax, eax
mov dword [ebp - 0x21c], 7
mov dword [ebp - 0x220], 0
mov word [ebp - 0x230], ax
cmp word [ebp - 0x218], ax
jne 0x41c48b
xor ecx, ecx
jmp 0x41c4a3
lea ecx, [ebp - 0x218]
lea edx, [ecx + 2]
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x41c494
sub ecx, edx
sar ecx, 1
push ecx
lea eax, [ebp - 0x218]
push eax
lea ecx, [ebp - 0x230]
call fcn.00402570
push 2
push 0
push esi
lea ecx, [ebp - 0x230]
mov dword [ebp - 4], 0
call fcn.0040c150
mov ecx, dword [ebp - 0x21c]
cmp ecx, 8
jb 0x41c4eb
inc ecx
push ecx
push dword [ebp - 0x230]
lea ecx, [ebp - 0x230]
call fcn.00402f10
mov eax, esi
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop esi
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.004e1de4
mov esp, ebp
pop ebp
ret 4

Function at 0x41dd90
Capabilities:
Get file version info

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x20
push ebx
push esi
xor esi, esi
mov dword [ebp - 0x14], ecx
mov eax, edx
xor bl, bl
push edi
mov dword [ebp - 0xc], eax
cmp dword [ecx + 0x10], esi
je 0x41dec8
cmp dword [eax + 0x10], esi
je 0x41dec8
lea ecx, [ebp - 8]
push ecx
mov ecx, eax
call fcn.004023f0
push eax
call dword [sym.imp.VERSION.dll_GetFileVersionInfoSizeW]
mov dword [ebp - 4], eax
test eax, eax
je 0x41dec8
push 0x56d498
push eax
call fcn.004e251b
mov edi, eax
add esp, 8
test edi, edi
je 0x41dec8
mov ecx, dword [ebp - 0xc]
push edi
push dword [ebp - 4]
push dword [ebp - 8]
call fcn.004023f0
push eax
call dword [sym.imp.VERSION.dll_GetFileVersionInfoW]
test eax, eax
je 0x41deb2
lea eax, [ebp - 0x18]
push eax
lea eax, [ebp - 0x10]
push eax
push str.VarFileInfoTranslation
push edi
call dword [sym.imp.VERSION.dll_VerQueryValueW]
test eax, eax
je 0x41deb2
mov eax, dword [ebp - 0x10]
push 0x56d498
push 0x100
movzx ecx, word [eax]
movzx eax, word [eax + 2]
shl ecx, 0x10
or ecx, eax
mov dword [ebp - 0xc], ecx
call fcn.004e251b
mov esi, eax
add esp, 8
test esi, esi
je 0x41deb2
mov ecx, dword [ebp - 0x14]
call fcn.004023f0
push eax
push dword [ebp - 0xc]
push str.StringFileInfo_08lx_s
push 0x80
push esi
call fcn.0041dd70
add esp, 0x14
lea eax, [ebp - 0x18]
push eax
lea eax, [ebp - 0x1c]
push eax
push esi
push edi
call dword [sym.imp.VERSION.dll_VerQueryValueW]
test eax, eax
je 0x41deb0
mov edx, dword [ebp - 0x1c]
cmp word [edx], 0
jne 0x41de90
xor ecx, ecx
jmp 0x41dea4
mov ecx, edx
lea ebx, [ecx + 2]
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x41de95
sub ecx, ebx
sar ecx, 1
push ecx
push edx
mov ecx, 0x56e984
call fcn.00402570
mov bl, 1
push edi
call fcn.004e2516
add esp, 4
test esi, esi
je 0x41dec8
push esi
call fcn.004e2516
add esp, 4
pop edi
pop esi
mov al, bl
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x41ea50
Capabilities:
Create directory

Disassembly:
push ebp
mov ebp, esp
sub esp, 0xc
cmp dword [0x56e8cc], 0
push ebx
push esi
push edi
jne 0x41eabf
push 0x10
call fcn.004e204b
add esp, 4
mov esi, eax
mov dword [ebp - 8], esi
mov dword [0x56e8cc], esi
push 0
push 0
push 0
mov dword [esi], 0
mov dword [esi + 4], 0
mov dword [esi + 8], 0
mov dword [esi + 0xc], 0
call dword [sym.imp.SHELL32.dll_SHCreateDirectoryExW]
cmp dword [esi + 4], 0
jne 0x41eabf
push 0
mov dword [esi + 8], fcn.0046b770
mov dword [esi + 0xc], 0x46b7c0
call fcn.0046b770
add esp, 4
mov dword [esi + 4], eax
mov dword [ebp - 4], 0x56e8d0
nop word [eax + eax]
mov esi, dword [0x56e8d0]
mov ebx, esi
mov edi, dword [0x56e8d4]
add ebx, 1
mov ecx, edi
mov dword [ebp - 8], edi
adc ecx, 0
mov eax, esi
mov edx, edi
mov edi, dword [ebp - 4]
lock cmpxchg8b qword [edi]
mov edi, dword [ebp - 8]
cmp eax, esi
jne 0x41ead0
cmp edx, edi
jne 0x41ead0
pop edi
pop esi
mov al, 1
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x4245b0
Capabilities:
Check if file exists
Create directory

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x521d16
mov eax, dword fs:[0]
push eax
sub esp, 0x224
mov eax, dword [0x5640a8]
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, ecx
mov edi, dword [ebp + 8]
mov esi, dword [ebp + 0xc]
cmp dword [edi + 0x10], 0
je 0x424733
cmp dword [esi + 0x10], 0
jne 0x42463d
push 0x208
lea eax, [ebp - 0x218]
push 0
push eax
call fcn.004fb530
add esp, 0xc
lea eax, [ebp - 0x218]
push 0x104
push eax
push 0
call dword [sym.imp.KERNEL32.dll_GetModuleFileNameW]
lea eax, [ebp - 0x218]
push eax
call dword [sym.imp.SHLWAPI.dll_PathRemoveFileSpecW]
cmp esi, edi
je 0x42463d
push 0xffffffffffffffff
push 0
push edi
mov ecx, esi
call fcn.00402670
cmp dword [esi + 0x14], 8
mov ecx, dword [esi + 0x10]
jb 0x42464a
mov eax, dword [esi]
jmp 0x42464c
mov eax, esi
cmp word [eax + ecx*2 - 2], 0x5c
je 0x424662
push 1
push 0x53ca00
mov ecx, esi
call fcn.0040c780
cmp dword [esi + 0x14], 8
jb 0x42466c
mov eax, dword [esi]
jmp 0x42466e
mov eax, esi
push eax
call dword [sym.imp.SHLWAPI.dll_PathFileExistsW]
test eax, eax
jne 0x424690
cmp dword [esi + 0x14], 8
jb 0x424683
mov eax, dword [esi]
jmp 0x424685
mov eax, esi
push 0
push eax
push 0
call dword [sym.imp.SHELL32.dll_SHCreateDirectoryExW]
push edi
lea eax, [ebp - 0x230]
push esi
push eax
call fcn.0041e100
add esp, 0xc
lea esi, [ebx + 4]
mov edi, eax
cmp esi, edi
je 0x4246e4
mov eax, dword [esi + 0x14]
cmp eax, 8
jb 0x4246bd
inc eax
mov ecx, esi
push eax
push dword [esi]
call fcn.00402f10
mov dword [esi + 0x14], 7
cmp dword [esi + 0x14], 8
mov dword [esi + 0x10], 0
jb 0x4246d5
mov eax, dword [esi]
jmp 0x4246d7
mov eax, esi
xor ecx, ecx
mov word [eax], cx
mov ecx, esi
push edi
call fcn.004032f0
mov eax, dword [ebp - 0x21c]
cmp eax, 8
jb 0x424702
inc eax
lea ecx, [ebp - 0x230]
push eax
push dword [ebp - 0x230]
call fcn.00402f10
cmp dword [esi + 0x14], 8
jb 0x42470a
mov esi, dword [esi]
push 0
push 0x80
push 1
push 0
push 1
push 0xc0000000
push esi
call dword [sym.imp.KERNEL32.dll_CreateFileW]
cmp eax, 0xffffffff
je 0x424733
push eax
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov al, 1
jmp 0x424735
xor al, al
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.004e1de4
mov esp, ebp
pop ebp
ret 8
Function at 0x424760
Capabilities:
Read .ini file

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x204
mov eax, dword [0x5640a8]
xor eax, ebp
mov dword [ebp - 4], eax
push esi
mov esi, dword [ebp + 8]
lea eax, [ebp - 0x204]
push edi
mov edi, dword [ebp + 0xc]
push 0x200
push 0
push eax
call fcn.004fb530
add esp, 0xc
mov eax, 0x564a34
cmp dword [0x564a48], 8
cmovae eax, dword [0x564a34]
cmp dword [edi + 0x14], 8
jb 0x4247ac
mov edi, dword [edi]
cmp dword [esi + 0x14], 8
jb 0x4247b4
mov esi, dword [esi]
push eax
push 0x100
lea eax, [ebp - 0x204]
push eax
push 0x53e028
push edi
push esi
call dword [sym.imp.KERNEL32.dll_GetPrivateProfileStringW]
pop edi
pop esi
test eax, eax
jne 0x4247e4
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.004e1de4
mov esp, ebp
pop ebp
ret 0xc
lea eax, [ebp - 0x204]
push eax
call fcn.00502b45
mov ecx, dword [ebp - 4]
add esp, 4
xor ecx, ebp
call fcn.004e1de4
mov esp, ebp
pop ebp
ret 0xc

Function at 0x4248a0
Capabilities:
Read .ini file

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x204
mov eax, dword [0x5640a8]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
mov ebx, dword [ebp + 0xc]
lea eax, [ebp - 0x204]
push esi
push edi
mov edi, dword [ebp + 8]
mov esi, ecx
push 0x200
push 0
push eax
call fcn.004fb530
add esi, 4
add esp, 0xc
cmp dword [esi + 0x14], 8
jb 0x4248df
mov esi, dword [esi]
cmp dword [ebx + 0x14], 8
jb 0x4248e7
mov ebx, dword [ebx]
cmp dword [edi + 0x14], 8
jb 0x4248ef
mov edi, dword [edi]
push esi
push 0x100
lea eax, [ebp - 0x204]
push eax
push 0x53e028
push ebx
push edi
call dword [sym.imp.KERNEL32.dll_GetPrivateProfileStringW]
pop edi
pop esi
pop ebx
test eax, eax
jne 0x424922
xor edx, edx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.004e1de4
mov esp, ebp
pop ebp
ret 0x10
lea eax, [ebp - 0x204]
push eax
call fcn.00502b6f
mov ecx, dword [ebp - 4]
add esp, 4
xor ecx, ebp
call fcn.004e1de4
mov esp, ebp
pop ebp
ret 0x10
Function at 0x4249f0
Capabilities:
Read .ini file

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
sub esp, 0x24
mov eax, dword [0x5640a8]
xor eax, esp
mov dword [esp + 0x20], eax
mov eax, dword [ebp + 0x10]
xor ecx, ecx
mov dword [esp], eax
mov edx, 2
mov eax, 0x200
mov dword [esp + 4], 0
mul edx
push ebx
push esi
mov esi, dword [ebp + 8]
seto cl
neg ecx
push edi
mov edi, dword [ebp + 0xc]
or ecx, eax
push ecx
call fcn.004e2524
add esp, 4
mov ebx, eax
cmp dword [0x564a48], 8
mov ecx, 0x564a34
mov eax, dword [esp + 0xc]
cmovae ecx, dword [0x564a34]
cmp dword [eax + 0x14], 8
jb 0x424a5a
mov eax, dword [eax]
cmp dword [edi + 0x14], 8
jb 0x424a62
mov edi, dword [edi]
push ecx
push 0x200
push ebx
push 0x53cb08
push eax
push edi
call dword [sym.imp.KERNEL32.dll_GetPrivateProfileStringW]
test eax, eax
jne 0x424a9a
push 2
push ebx
call fcn.004e22e6
add esp, 8
mov dword [esi + 0x14], 7
xor eax, eax
mov dword [esi + 0x10], 0
mov word [esi], ax
jmp 0x424afe
xor ecx, ecx
mov dword [esp + 0x28], 7
push eax
mov word [esp + 0x18], cx
lea ecx, [esp + 0x18]
push ebx
mov dword [esp + 0x2c], 0
call fcn.00402570
push 2
push ebx
call fcn.004e22e6
xor eax, eax
mov dword [esi + 0x14], 7
add esp, 8
mov dword [esi + 0x10], 0
mov word [esi], ax
mov ecx, esi
lea eax, [esp + 0x14]
push eax
call fcn.004032f0
mov eax, dword [esp + 0x28]
cmp eax, 8
jb 0x424afe
inc eax
lea ecx, [esp + 0x14]
push eax
push dword [esp + 0x18]
call fcn.00402f10
mov ecx, dword [esp + 0x2c]
mov eax, esi
pop edi
pop esi
pop ebx
xor ecx, esp
call fcn.004e1de4
mov esp, ebp
pop ebp
ret 0x10