joyce8/EMBER2024-capa huggingface dataset:
Function at 0x45c800
Capabilities:
Extract resource via kernel32 functions

Disassembly:
mov eax, dword [esp + 8]
sub esp, 4
push ebx
push esi
mov esi, dword [esp + 0x10]
push edi
push ebp
push 2
push eax
push esi
call dword [sym.imp.KERNEL32.dll_FindResourceA]
mov edi, eax
test edi, edi
jne 0x45c82b
xor eax, eax
pop ebp
pop edi
pop esi
pop ebx
add esp, 4
ret 0x20
push edi
push esi
call dword [sym.imp.KERNEL32.dll_SizeofResource]
mov ebx, eax
push edi
push esi
call dword [sym.imp.KERNEL32.dll_LoadResource]
mov esi, eax
test esi, esi
jne 0x45c84f
xor eax, eax
pop ebp
pop edi
pop esi
pop ebx
add esp, 4
ret 0x20
push ebx
push 0x40
call dword [sym.imp.KERNEL32.dll_GlobalAlloc]
mov ebp, eax
test ebp, ebp
jne 0x45c86a
xor eax, eax
pop ebp
pop edi
pop esi
pop ebx
add esp, 4
ret 0x20
mov edi, ebp
mov ecx, ebx
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, ebx
and ecx, 3
rep movsb byte es:[edi], byte [esi]
mov eax, dword [esp + 0x20]
xor ecx, ecx
mov cl, ah
mov edx, eax
mov dword [esp + 0x10], 0
shl ecx, 8
shr edx, 0x10
mov byte [esp + 0x10], dl
xor edx, edx
or ecx, dword [esp + 0x10]
mov dl, al
shl edx, 0x10
mov eax, dword [esp + 0x28]
or ecx, edx
mov edx, eax
shr edx, 0x10
mov dword [ebp + 0x28], ecx
mov dword [esp + 0x10], 0
xor ecx, ecx
mov byte [esp + 0x10], dl
mov cl, ah
xor edx, edx
shl ecx, 8
mov dl, al
shl edx, 0x10
or ecx, dword [esp + 0x10]
or ecx, edx
mov eax, dword [esp + 0x24]
mov edx, eax
mov dword [ebp + 0x44], ecx
shr edx, 0x10
xor ecx, ecx
mov dword [esp + 0x10], 0
mov cl, ah
mov byte [esp + 0x10], dl
shl ecx, 8
xor edx, edx
or ecx, dword [esp + 0x10]
mov dl, al
shl edx, 0x10
mov eax, dword [esp + 0x2c]
or ecx, edx
xor edx, edx
mov dl, al
mov dword [ebp + 0x48], ecx
shl edx, 0x10
xor ecx, ecx
mov cl, ah
shl ecx, 8
shr eax, 0x10
or ecx, edx
xor edx, edx
mov dl, al
mov eax, dword [esp + 0x30]
or ecx, edx
xor edx, edx
mov dl, al
mov dword [ebp + 0x64], ecx
shl edx, 0x10
xor ecx, ecx
mov cl, ah
shl ecx, 8
shr eax, 0x10
or ecx, edx
xor edx, edx
mov dl, al
mov eax, dword [esp + 0x34]
or ecx, edx
xor edx, edx
mov dl, al
mov dword [ebp + 0x54], ecx
shl edx, 0x10
xor ecx, ecx
mov cl, ah
shl ecx, 8
push 0
shr eax, 0x10
or ecx, edx
xor edx, edx
mov dl, al
or ecx, edx
mov dword [ebp + 0x50], ecx
call dword [sym.imp.USER32.dll_GetDC]
mov edi, eax
push 0
push ebp
lea ecx, [ebp + 0x68]
push ecx
push 4
push ebp
push edi
call dword [sym.imp.GDI32.dll_CreateDIBitmap]
mov esi, eax
push edi
push 0
call dword [sym.imp.USER32.dll_ReleaseDC]
push ebp
call dword [sym.imp.KERNEL32.dll_GlobalFree]
mov eax, esi
pop ebp
pop edi
pop esi
pop ebx
add esp, 4
ret 0x20
Function at 0x461092
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 0x4610d4
call fcn.00467275
mov esi, dword [eax + 0xc]
push 0xf0
push dword [esp + 0x14]
push esi
call dword [sym.imp.KERNEL32.dll_FindResourceA]
cmp eax, edi
je 0x4610d4
push eax
push esi
call dword [sym.imp.KERNEL32.dll_LoadResource]
cmp eax, edi
jne 0x4610cb
xor eax, eax
jmp 0x4610dc
push eax
call dword [sym.imp.KERNEL32.dll_LockResource]
mov edi, eax
push edi
mov ecx, ebx
call fcn.004610e2
pop edi
pop esi
pop ebx
ret 4

Function at 0x467c9c
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 0x467cca
push dword [esi]
call dword [sym.imp.KERNEL32.dll_TlsGetValue]
test eax, eax
je 0x467ce8
push dword [esp + 0xc]
mov ecx, esi
push eax
call fcn.00467c02
jmp 0x467ce8
mov eax, dword [esi + 0x14]
test eax, eax
je 0x467ce8
push edi
push dword [esp + 0x10]
mov edi, dword [eax + 4]
mov ecx, esi
push eax
call fcn.00467c02
test edi, edi
mov eax, edi
jne 0x467cd2
pop edi
push ebx
call dword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
pop esi
pop ebx
ret 8
Function at 0x407d9c
Capabilities:
Create process on windows

Disassembly:
push ebp
mov ebp, esp
xor ecx, ecx
push ecx
push ecx
push ecx
push ecx
push ecx
push ecx
push ebx
push esi
mov dword [ebp - 4], eax
mov eax, dword [ebp - 4]
call fcn.004033fc
xor eax, eax
push ebp
push 0x407e75
push dword fs:[eax]
mov dword fs:[eax], esp
mov eax, dword [ebp - 4]
cmp byte [eax], 0x5c
jne 0x407dd4
mov eax, dword [ebp - 4]
call fcn.004071d0
jmp 0x407ddc
mov eax, dword [ebp - 4]
call fcn.00407bd4
call fcn.00404ae8
mov esi, eax
test esi, esi
jle 0x407e28
mov ebx, 1
lea edx, [ebp - 8]
mov eax, ebx
call fcn.004049d0
mov eax, dword [ebp - 8]
cmp byte [eax], 0x5c
jne 0x407e12
lea edx, [ebp - 0xc]
mov eax, ebx
call fcn.004049d0
mov eax, dword [ebp - 0xc]
call fcn.004071d0
jmp 0x407e24
lea edx, [ebp - 0x10]
mov eax, ebx
call fcn.004049d0
mov eax, dword [ebp - 0x10]
call fcn.00407bd4
inc ebx
dec esi
jne 0x407dec
push 1
push dword [ebp - 4]
push 0x407e8c
lea edx, [ebp - 0x18]
xor eax, eax
call fcn.00406f34
push dword [ebp - 0x18]
lea eax, [ebp - 0x14]
mov edx, 3
call fcn.004032cc
mov eax, dword [ebp - 0x14]
call fcn.0040340c
push eax
call sub.kernel32.dll_WinExec
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x407e7c
lea eax, [ebp - 0x18]
mov edx, 6
call fcn.004030b8
ret

Function at 0x430000
Capabilities:
Encode data using xor
Packed with generic packer

Disassembly:
pushal
nop
nop
nop
nop
nop
call 0x43000c
pop eax
nop
nop
nop
nop
nop
nop
add eax, 0x403d7a
sub eax, 0x403d20
nop
nop
nop
nop
nop
mov ebx, dword [eax]
nop
mov ecx, dword [eax + 4]
nop
nop
mov edx, dword [eax + 8]
nop
nop
nop
xor dword [ebx], edx
nop
nop
nop
nop
nop
nop
nop
add ebx, 4
cmp ebx, ecx
nop
nop
nop
nop
nop
nop
nop
jl 0x430030
nop
nop
nop
add eax, 0xc
nop
nop
nop
nop
cmp dword [eax], 0
nop
jne 0x43001e
nop
nop
nop
nop
nop
popal
nop
nop
nop
jmp loc.00401219
Function at 0x4011a3
Capabilities:
Get common file path
Set current directory

Disassembly:
mov eax, 0x43caf8
call fcn.0041d79c
sub esp, 0x128
push ebx
push esi
push edi
mov ebx, ecx
mov cl, byte [ebp + 0x17]
xor eax, eax
mov dword [ebp - 4], eax
mov byte [ebp - 0x1c], cl
mov dword [ebp - 0x18], eax
mov dword [ebp - 0x14], eax
mov dword [ebp - 0x10], eax
and byte [ebp - 0x134], al
push 0x40
pop ecx
lea edi, [ebp - 0x133]
rep stosd dword es:[edi], eax
stosw word es:[edi], ax
stosb byte es:[edi], al
lea eax, [ebp - 0x134]
mov byte [ebp - 4], 1
push eax
push 0x104
mov byte [ebx + 0x6c], 1
call dword [sym.imp.KERNEL32.dll_GetCurrentDirectoryA]
mov eax, dword [ebx + 0x9c]
mov ecx, dword [ebx + 0x98]
lea esi, [ebx + 0x94]
push eax
push ecx
mov ecx, esi
call fcn.00402cf2
lea eax, [ebp - 0x1c]
push 0
push eax
lea eax, [ebp + 8]
sub esp, 0x10
mov ecx, esp
mov dword [ebp - 0x20], esp
push eax
call fcn.0040298a
mov ecx, ebx
call fcn.0040130b
cmp dword [ebp - 0x18], 0
mov edi, dword [ebp - 0x14]
je 0x4012ad
mov eax, edi
sub eax, dword [ebp - 0x18]
test eax, 0xfffffff0
je 0x4012ad
mov al, byte [edi - 0x10]
add edi, 0xfffffff0
push 0
lea ecx, [ebp - 0x30]
mov byte [ebp - 0x30], al
call fcn.00402b70
push dword [0x44067c]
lea ecx, [ebp - 0x30]
push 0
push edi
call fcn.00402a76
mov eax, dword [ebp - 0x14]
lea ecx, [ebp - 0x1c]
add eax, 0xfffffff0
mov byte [ebp - 4], 2
push eax
call fcn.00402c94
lea eax, [ebp - 0x1c]
push 1
push eax
lea eax, [ebp - 0x30]
sub esp, 0x10
mov ecx, esp
mov dword [ebp - 0x20], esp
push eax
call fcn.0040298a
mov ecx, ebx
call fcn.0040130b
push 1
lea ecx, [ebp - 0x30]
mov byte [ebp - 4], 1
call fcn.00402b70
jmp 0x401233
push edi
lea ecx, [ebp - 0x1c]
push dword [ebp - 0x18]
call fcn.00402cf2
lea eax, [ebp - 0x134]
push eax
call dword [sym.imp.KERNEL32.dll_SetCurrentDirectoryA]
mov eax, dword [esi + 4]
test eax, eax
jne 0x4012d1
xor esi, esi
jmp 0x4012d9
mov esi, dword [esi + 8]
sub esi, eax
sar esi, 4
test esi, esi
sete bl
and byte [ebp - 4], 0
lea ecx, [ebp - 0x1c]
call fcn.00402a30
or dword [ebp - 4], 0xffffffff
push 1
lea ecx, [ebp + 8]
call fcn.00402b70
mov ecx, dword [ebp - 0xc]
pop edi
mov al, bl
pop esi
mov dword fs:[0], ecx
pop ebx
leave
ret 0x10
Function at 0x4016af
Capabilities:
Read file on windows

Disassembly:
mov eax, 0x43cb86
call fcn.0041d79c
sub esp, 0x18c
push ebx
push esi
push edi
mov dword [ebp - 0x1c], ecx
push 1
lea eax, [ebp + 8]
pop esi
push 0x44e1c8
push eax
lea eax, [ebp - 0x98]
mov dword [ebp - 4], esi
push eax
call fcn.00403714
lea ecx, [ebp + 0x18]
mov byte [ebp - 4], 2
push ecx
push eax
lea eax, [ebp - 0x68]
push eax
call fcn.0040379d
push str..hdr
push eax
lea eax, [ebp - 0x50]
mov byte [ebp - 4], 3
push eax
call fcn.00403714
add esp, 0x24
push esi
lea ecx, [ebp - 0x68]
mov byte [ebp - 4], 6
call fcn.00402b70
push esi
lea ecx, [ebp - 0x98]
mov byte [ebp - 4], 5
call fcn.00402b70
mov eax, dword [ebp - 0x4c]
xor ebx, ebx
cmp eax, ebx
jne 0x401733
mov eax, 0x440680
push ebx
push 0x80
push 3
push ebx
push ebx
push 0x10000000
push eax
call dword [sym.imp.KERNEL32.dll_CreateFileA]
mov edi, eax
cmp edi, 0xffffffff
jne 0x401758
mov byte [ebp - 0xd], bl
jmp 0x40188a
mov eax, dword [ebp - 0x1c]
mov dword [ebp - 0x20], ebx
mov dword [ebp - 0x24], ebx
lea ecx, [eax + 0x28]
call fcn.00402c4a
mov esi, dword [sym.imp.KERNEL32.dll_ReadFile]
lea eax, [ebp - 0x14]
push ebx
push eax
lea eax, [ebp - 0x20]
push 4
push eax
push edi
call esi
cmp dword [ebp - 0x20], ebx
mov dword [ebp - 0x18], ebx
jle 0x40187c
push 0x100
lea eax, [ebp - 0x198]
push ebx
push eax
call fcn.0041d9b0
mov al, byte [ebp + 0x17]
add esp, 0xc
lea ecx, [ebp - 0x40]
mov byte [ebp - 0x40], al
push ebx
call fcn.00402b70
lea eax, [ebp - 0x14]
push ebx
push eax
lea eax, [ebp - 0x24]
push 4
push eax
push edi
mov byte [ebp - 4], 7
call esi
lea eax, [ebp - 0x14]
push ebx
push eax
lea eax, [ebp - 0x198]
push dword [ebp - 0x24]
push eax
push edi
call esi
lea eax, [ebp - 0x198]
push eax
call fcn.0041d7c0
pop ecx
push eax
lea eax, [ebp - 0x198]
push eax
lea ecx, [ebp - 0x40]
call fcn.00402d52
lea eax, [ebp - 0x14]
push ebx
push eax
lea eax, [ebp - 0x2c]
push 4
push eax
push edi
call esi
lea eax, [ebp - 0x14]
push ebx
push eax
lea eax, [ebp - 0x28]
push 4
push eax
push edi
call esi
mov eax, dword [ebp - 0x3c]
cmp eax, ebx
jne 0x401816
mov eax, 0x440680
mov ecx, dword [ebp - 0x1c]
push eax
call fcn.00404087
mov dword [ebp - 0x88], eax
lea eax, [ebp - 0x40]
push eax
lea ecx, [ebp - 0x84]
call fcn.0040257b
lea eax, [ebp - 0x88]
mov byte [ebp - 4], 8
push eax
lea eax, [ebp - 0x58]
push eax
mov eax, dword [ebp - 0x1c]
lea ecx, [eax + 0x28]
call fcn.00402bac
push 1
lea ecx, [ebp - 0x84]
mov byte [ebp - 4], 7
call fcn.00402b70
push 1
lea ecx, [ebp - 0x40]
mov byte [ebp - 4], 5
call fcn.00402b70
inc dword [ebp - 0x18]
mov eax, dword [ebp - 0x18]
cmp eax, dword [ebp - 0x20]
jl 0x401789
push edi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
push 1
mov byte [ebp - 0xd], 1
pop esi
push esi
lea ecx, [ebp - 0x50]
mov byte [ebp - 4], 1
call fcn.00402b70
push esi
lea ecx, [ebp + 8]
mov byte [ebp - 4], bl
call fcn.00402b70
or dword [ebp - 4], 0xffffffff
push esi
lea ecx, [ebp + 0x18]
call fcn.00402b70
mov ecx, dword [ebp - 0xc]
mov al, byte [ebp - 0xd]
pop edi
pop esi
pop ebx
mov dword fs:[0], ecx
leave
ret 0x20
Function at 0x4025b7
Capabilities:
Delete file

Disassembly:
mov eax, 0x43ccdc
call fcn.0041d79c
sub esp, 0x34
push ebx
push esi
push edi
mov edi, ecx
mov al, byte [ebp + 8]
sub esp, 0x10
xor ebx, ebx
mov esi, esp
mov dword [ebp - 0x10], esp
push ebx
mov ecx, esi
mov dword [ebp - 4], ebx
mov byte [esi], al
call fcn.00402b70
push dword [0x44067c]
lea eax, [ebp + 8]
mov ecx, esi
push ebx
push eax
call fcn.00402a76
mov ecx, edi
call fcn.004011a3
mov esi, dword [edi + 0x98]
mov eax, dword [edi + 0x9c]
cmp esi, eax
mov dword [ebp - 0x10], eax
je 0x4026b8
mov al, byte [esi]
push ebx
lea ecx, [ebp - 0x20]
mov byte [ebp - 0x20], al
call fcn.00402b70
push dword [0x44067c]
lea ecx, [ebp - 0x20]
push ebx
push esi
call fcn.00402a76
lea eax, [ebp + 8]
push 0x44e1c8
push eax
lea eax, [ebp - 0x40]
push eax
mov byte [ebp - 4], 1
call fcn.00403714
lea ecx, [ebp - 0x20]
mov byte [ebp - 4], 2
push ecx
push eax
lea eax, [ebp - 0x30]
push eax
call fcn.0040379d
add esp, 0x18
push dword [0x44067c]
lea ecx, [ebp - 0x20]
mov byte [ebp - 4], 3
push ebx
push eax
call fcn.00402a76
push 1
lea ecx, [ebp - 0x30]
mov byte [ebp - 4], 2
call fcn.00402b70
push 1
lea ecx, [ebp - 0x40]
mov byte [ebp - 4], 1
call fcn.00402b70
mov eax, dword [ebp - 0x1c]
cmp eax, ebx
jne 0x402698
mov eax, 0x440680
push eax
call dword [sym.imp.KERNEL32.dll_DeleteFileA]
push 1
lea ecx, [ebp - 0x20]
mov byte [ebp - 4], bl
call fcn.00402b70
add esi, 0x10
cmp esi, dword [ebp - 0x10]
jne 0x402613
mov eax, dword [edi + 0x9c]
mov edx, dword [edi + 0x98]
lea ecx, [edi + 0x94]
push eax
push edx
call fcn.00402cf2
or dword [ebp - 4], 0xffffffff
push 1
lea ecx, [ebp + 8]
call fcn.00402b70
mov ecx, dword [ebp - 0xc]
pop edi
pop esi
mov al, 1
mov dword fs:[0], ecx
pop ebx
leave
ret 0x10
Function at 0x4026f2
Capabilities:
Write file on windows

Disassembly:
mov eax, 0x43ccf8
call fcn.0041d79c
sub esp, 0x30
push ebx
push edi
mov edi, ecx
mov eax, dword [edi + 0x34]
xor ebx, ebx
cmp eax, ebx
mov dword [ebp - 4], ebx
je 0x402821
mov eax, dword [ebp + 0xc]
cmp eax, ebx
jne 0x40271f
mov eax, 0x440680
push ebx
push 0x80
push 2
push ebx
push ebx
push 0x10000000
push eax
call dword [sym.imp.KERNEL32.dll_CreateFileA]
cmp eax, 0xffffffff
mov dword [ebp - 0x10], eax
je 0x402821
mov eax, dword [edi + 0x2c]
mov dword [ebp - 0x1c], ebx
push esi
mov esi, dword [sym.imp.KERNEL32.dll_WriteFile]
mov eax, dword [eax]
push ebx
mov dword [ebp - 0x18], eax
mov eax, dword [edi + 0x34]
mov dword [ebp - 0x20], eax
lea eax, [ebp - 0x14]
push eax
lea eax, [ebp - 0x20]
push 4
push eax
push dword [ebp - 0x10]
call esi
mov eax, dword [edi + 0x2c]
cmp dword [ebp - 0x18], eax
je 0x402815
mov eax, dword [ebp - 0x18]
lea ecx, [ebp - 0x3c]
add eax, 0x10
push eax
call fcn.0040257b
mov eax, dword [ebp - 0x34]
push ebx
mov dword [ebp - 0x1c], eax
lea eax, [ebp - 0x14]
push eax
lea eax, [ebp - 0x1c]
push 4
push eax
push dword [ebp - 0x10]
mov byte [ebp - 4], 1
call esi
cmp dword [ebp - 0x34], ebx
je 0x4027c1
cmp dword [ebp - 0x38], ebx
je 0x4027b5
lea ecx, [ebp - 0x3c]
call fcn.00402b44
mov eax, dword [ebp - 0x38]
jmp 0x4027ba
mov eax, 0x440680
push eax
call dword [sym.imp.USER32.dll_CharLowerA]
mov eax, dword [ebp - 0x38]
cmp eax, ebx
jne 0x4027cd
mov eax, 0x440680
lea ecx, [ebp - 0x14]
push ebx
push ecx
push dword [ebp - 0x1c]
push eax
push dword [ebp - 0x10]
call esi
lea eax, [ebp - 0x14]
push ebx
push eax
lea eax, [ebp - 0x28]
push 4
push eax
push dword [ebp - 0x10]
call esi
lea eax, [ebp - 0x14]
push ebx
push eax
lea eax, [ebp - 0x24]
push 4
push eax
push dword [ebp - 0x10]
call esi
push 1
lea ecx, [ebp - 0x3c]
mov byte [ebp - 4], bl
call fcn.00402b70
lea ecx, [ebp - 0x18]
call fcn.00402c5e
jmp 0x402769
push dword [ebp - 0x10]
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov bl, 1
pop esi
or dword [ebp - 4], 0xffffffff
push 1
lea ecx, [ebp + 8]
call fcn.00402b70
mov ecx, dword [ebp - 0xc]
mov al, bl
pop edi
pop ebx
mov dword fs:[0], ecx
leave
ret 0x10

Function at 0x40291e
Capabilities:
Get file size

Disassembly:
mov eax, 0x43cd28
call fcn.0041d79c
push ebx
push esi
mov eax, dword [ebp + 0xc]
xor ebx, ebx
cmp eax, ebx
jne 0x402938
mov eax, 0x440680
push ebx
push 0x80
push 3
push ebx
push ebx
push 0x10000000
push eax
call dword [sym.imp.KERNEL32.dll_CreateFileA]
mov esi, eax
cmp esi, 0xffffffff
je 0x402963
push ebx
push esi
call dword [sym.imp.KERNEL32.dll_GetFileSize]
test eax, eax
jbe 0x402963
mov bl, 1
push esi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
or dword [ebp - 4], 0xffffffff
push 1
lea ecx, [ebp + 8]
call fcn.00402b70
mov ecx, dword [ebp - 0xc]
mov al, bl
pop esi
pop ebx
mov dword fs:[0], ecx
leave
ret 0x10
Function at 0x403d24
Capabilities:
Read file on windows

Disassembly:
mov eax, 0x43ceb0
call fcn.0041d79c
sub esp, 0x158
push ebx
push edi
mov dword [ebp - 0x1c], ecx
xor ebx, ebx
add ecx, 0x28
mov dword [ebp - 4], ebx
call fcn.00402c4a
mov eax, dword [ebp + 0xc]
cmp eax, ebx
jne 0x403d52
mov eax, 0x440680
push ebx
push 0x80
push 3
push ebx
push ebx
push 0x10000000
push eax
call dword [sym.imp.KERNEL32.dll_CreateFileA]
mov edi, eax
cmp edi, 0xffffffff
je 0x403e8a
push esi
mov esi, dword [sym.imp.KERNEL32.dll_ReadFile]
lea eax, [ebp - 0x10]
push ebx
push eax
lea eax, [ebp - 0x18]
push 4
push eax
push edi
mov dword [ebp - 0x18], ebx
mov dword [ebp - 0x20], ebx
call esi
cmp dword [ebp - 0x18], ebx
mov dword [ebp - 0x14], ebx
jle 0x403e80
push 0x100
lea eax, [ebp - 0x164]
push ebx
push eax
call fcn.0041d9b0
mov al, byte [ebp + 0x17]
add esp, 0xc
lea ecx, [ebp - 0x3c]
mov byte [ebp - 0x3c], al
push ebx
call fcn.00402b70
lea eax, [ebp - 0x10]
push ebx
push eax
lea eax, [ebp - 0x20]
push 4
push eax
push edi
mov byte [ebp - 4], 1
call esi
lea eax, [ebp - 0x10]
push ebx
push eax
lea eax, [ebp - 0x164]
push dword [ebp - 0x20]
push eax
push edi
call esi
lea eax, [ebp - 0x164]
push eax
call fcn.0041d7c0
pop ecx
push eax
lea eax, [ebp - 0x164]
push eax
lea ecx, [ebp - 0x3c]
call fcn.00402d52
lea eax, [ebp - 0x10]
push ebx
push eax
lea eax, [ebp - 0x28]
push 4
push eax
push edi
call esi
lea eax, [ebp - 0x10]
push ebx
push eax
lea eax, [ebp - 0x24]
push 4
push eax
push edi
call esi
mov eax, dword [ebp - 0x38]
cmp eax, ebx
jne 0x403e27
mov eax, 0x440680
mov ecx, dword [ebp - 0x1c]
push eax
call fcn.00404087
mov dword [ebp - 0x5c], eax
lea eax, [ebp - 0x3c]
push eax
lea ecx, [ebp - 0x58]
call fcn.0040257b
lea eax, [ebp - 0x5c]
mov byte [ebp - 4], 2
push eax
lea eax, [ebp - 0x64]
push eax
mov eax, dword [ebp - 0x1c]
lea ecx, [eax + 0x28]
call fcn.00402bac
push 1
lea ecx, [ebp - 0x58]
mov byte [ebp - 4], 1
call fcn.00402b70
push 1
lea ecx, [ebp - 0x3c]
mov byte [ebp - 4], bl
call fcn.00402b70
inc dword [ebp - 0x14]
mov eax, dword [ebp - 0x14]
cmp eax, dword [ebp - 0x18]
jl 0x403d9a
push edi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov bl, 1
pop esi
or dword [ebp - 4], 0xffffffff
push 1
lea ecx, [ebp + 8]
call fcn.00402b70
mov ecx, dword [ebp - 0xc]
mov al, bl
pop edi
pop ebx
mov dword fs:[0], ecx
leave
ret 0x10
Function at 0x403eaa
Capabilities:
Write file on windows

Disassembly:
mov eax, 0x43cee4
call fcn.0041d79c
sub esp, 0x60
push ebx
push esi
push edi
mov dword [ebp - 0x1c], ecx
mov eax, dword [ecx + 0x34]
xor ebx, ebx
cmp eax, ebx
mov dword [ebp - 4], ebx
jne 0x403ed1
push 1
pop esi
jmp 0x404067
mov eax, dword [ecx + 0x2c]
mov ecx, dword [eax]
cmp ecx, eax
mov dword [ebp - 0x18], ecx
je 0x404062
mov edi, dword [sym.imp.KERNEL32.dll_CloseHandle]
mov al, byte [ebp + 0x17]
push ebx
lea ecx, [ebp - 0x30]
mov byte [ebp - 0x30], al
call fcn.00402b70
mov eax, dword [ebp - 0x18]
lea ecx, [ebp - 0x6c]
add eax, 0x10
mov byte [ebp - 4], 1
push eax
call fcn.0040257b
lea eax, [ebp + 8]
push 0x44e1c8
push eax
lea eax, [ebp - 0x50]
push eax
mov byte [ebp - 4], 2
call fcn.00403714
lea ecx, [ebp - 0x6c]
mov byte [ebp - 4], 3
push ecx
push eax
lea eax, [ebp - 0x40]
push eax
call fcn.0040379d
add esp, 0x18
push dword [0x44067c]
lea ecx, [ebp - 0x30]
mov byte [ebp - 4], 4
push ebx
push eax
call fcn.00402a76
push 1
lea ecx, [ebp - 0x40]
pop esi
mov byte [ebp - 4], 3
push esi
call fcn.00402b70
push esi
lea ecx, [ebp - 0x50]
mov byte [ebp - 4], 2
call fcn.00402b70
mov eax, dword [ebp - 0x2c]
cmp eax, ebx
jne 0x403f71
mov eax, 0x440680
push ebx
push 0x80
push 2
push ebx
push esi
push 0x10000000
push eax
call dword [sym.imp.KERNEL32.dll_CreateFileA]
cmp eax, 0xffffffff
mov dword [ebp - 0x10], eax
je 0x403ffc
mov eax, dword [ebp - 0x54]
mov dword [ebp - 0x20], ebx
inc eax
push eax
call fcn.00430bbc
cmp eax, ebx
pop ecx
mov dword [ebp - 0x14], eax
je 0x404033
mov ecx, dword [ebp - 0x54]
inc ecx
push ecx
push ebx
push eax
call fcn.0041d9b0
mov eax, dword [ebp - 0x1c]
add esp, 0xc
mov ecx, dword [eax + 0x20]
cmp ecx, ebx
je 0x404033
push dword [ebp - 0x54]
mov eax, dword [ecx]
push dword [ebp - 0x58]
call dword [eax + 8]
cmp eax, ebx
je 0x404033
push dword [ebp - 0x54]
push eax
push dword [ebp - 0x14]
call fcn.0041dc60
add esp, 0xc
lea eax, [ebp - 0x20]
push ebx
push eax
push dword [ebp - 0x54]
push dword [ebp - 0x14]
push dword [ebp - 0x10]
call dword [sym.imp.KERNEL32.dll_WriteFile]
push dword [ebp - 0x14]
call fcn.00430be5
pop ecx
push dword [ebp - 0x10]
call edi
push esi
lea ecx, [ebp - 0x6c]
mov byte [ebp - 4], 1
call fcn.00402b70
push esi
lea ecx, [ebp - 0x30]
mov byte [ebp - 4], bl
call fcn.00402b70
lea ecx, [ebp - 0x18]
call fcn.00402c5e
mov eax, dword [ebp - 0x1c]
mov eax, dword [eax + 0x2c]
cmp dword [ebp - 0x18], eax
jne 0x403ee7
jmp 0x404065
push dword [ebp - 0x10]
call edi
push esi
lea ecx, [ebp - 0x6c]
mov byte [ebp - 4], 1
call fcn.00402b70
push esi
lea ecx, [ebp - 0x30]
mov byte [ebp - 4], bl
call fcn.00402b70
or dword [ebp - 4], 0xffffffff
push esi
lea ecx, [ebp + 8]
call fcn.00402b70
xor al, al
jmp 0x404076
push 1
pop esi
mov bl, 1
or dword [ebp - 4], 0xffffffff
push esi
lea ecx, [ebp + 8]
call fcn.00402b70
mov al, bl
mov ecx, dword [ebp - 0xc]
pop edi
pop esi
pop ebx
mov dword fs:[0], ecx
leave
ret 0x10
Function at 0x404087
Capabilities:
Hash data using djb2

Disassembly:
push esi
mov esi, dword [esp + 8]
push esi
call fcn.0041d7c0
pop ecx
mov edx, eax
xor ecx, ecx
mov eax, 0x1505
test edx, edx
jbe 0x4040b0
push edi
movsx edi, byte [ecx + esi]
imul eax, eax, 0x21
add eax, edi
inc ecx
cmp ecx, edx
jb 0x4040a1
pop edi
pop esi
ret 4
Function at 0x4048f0
Capabilities:
Get common file path
Read .ini file

Disassembly:
mov eax, 0x43cf6c
call fcn.0041d79c
sub esp, 0x350
mov dl, byte [0x454040]
push ebx
push esi
push edi
mov dword [ebp - 0x14], ecx
push 0x40
pop ecx
xor eax, eax
lea edi, [ebp - 0x153]
mov byte [ebp - 0x154], dl
rep stosd dword es:[edi], eax
stosw word es:[edi], ax
stosb byte es:[edi], al
push 0x40
xor eax, eax
pop ecx
lea edi, [ebp - 0x257]
mov byte [ebp - 0x258], dl
push 0x40
rep stosd dword es:[edi], eax
stosw word es:[edi], ax
stosb byte es:[edi], al
pop ecx
xor eax, eax
lea edi, [ebp - 0x35b]
mov byte [ebp - 0x35c], dl
rep stosd dword es:[edi], eax
stosw word es:[edi], ax
mov esi, dword [sym.imp.KERNEL32.dll_GetCurrentDirectoryA]
mov ebx, 0x104
stosb byte es:[edi], al
lea eax, [ebp - 0x154]
push eax
push ebx
call esi
lea eax, [ebp - 0x35c]
push eax
push ebx
call esi
mov esi, dword [sym.imp.KERNEL32.dll_lstrcatA]
lea eax, [ebp - 0x154]
push str.Path.Ini
push eax
call esi
lea eax, [ebp - 0x154]
push eax
push 0
push str.Count
push 0x44e1f0
call dword [sym.imp.KERNEL32.dll_GetPrivateProfileIntA]
test eax, eax
mov dword [ebp - 0x1c], eax
jg 0x4049a8
xor al, al
jmp 0x404acd
mov edi, dword [ebp - 0x14]
mov eax, dword [edi + 0x640]
mov edx, dword [edi + 0x63c]
lea ecx, [edi + 0x638]
push eax
push edx
mov dword [ebp - 0x20], ecx
call fcn.00402cf2
mov eax, dword [ebp - 0x1c]
and dword [ebp - 0x14], 0
test eax, eax
mov dword [edi + 0x634], eax
jle 0x404acb
add edi, 0x28
mov dword [ebp - 0x10], edi
mov al, byte [0x454040]
push 7
mov byte [ebp - 0x50], al
pop ecx
xor eax, eax
lea edi, [ebp - 0x4f]
rep stosd dword es:[edi], eax
stosw word es:[edi], ax
stosb byte es:[edi], al
push ebx
lea eax, [ebp - 0x258]
push 0
push eax
call fcn.0041d9b0
add esp, 0xc
lea eax, [ebp - 0x50]
push dword [ebp - 0x14]
push 0x44e1ec
push eax
call fcn.0041d950
mov eax, dword [ebp - 0x10]
add esp, 0xc
lea edi, [eax + 0x100]
lea eax, [ebp - 0x154]
push eax
push 0x20
push edi
lea eax, [ebp - 0x50]
push 0x454040
push eax
push 0x44e1f0
call dword [sym.imp.KERNEL32.dll_GetPrivateProfileStringA]
lea eax, [ebp - 0x258]
push edi
push eax
call esi
mov al, byte [ebp - 0x15]
push 0
lea ecx, [ebp - 0x30]
mov byte [ebp - 0x30], al
call fcn.00402b70
lea eax, [ebp - 0x258]
push eax
call fcn.0041d7c0
pop ecx
push eax
lea eax, [ebp - 0x258]
push eax
lea ecx, [ebp - 0x30]
call fcn.00402d52
mov ecx, dword [ebp - 0x20]
and dword [ebp - 4], 0
lea eax, [ebp - 0x30]
push eax
call fcn.00402a65
or dword [ebp - 4], 0xffffffff
push 1
lea ecx, [ebp - 0x30]
call fcn.00402b70
lea eax, [ebp - 0x35c]
push eax
push dword [ebp - 0x10]
call esi
push 0x44e1c8
push dword [ebp - 0x10]
call esi
push edi
push dword [ebp - 0x10]
call esi
inc dword [ebp - 0x14]
add dword [ebp - 0x10], 0x204
mov eax, dword [ebp - 0x14]
cmp eax, dword [ebp - 0x1c]
jl 0x4049e2
mov al, 1
mov ecx, dword [ebp - 0xc]
pop edi
pop esi
pop ebx
mov dword fs:[0], ecx
leave
ret