joyce8/EMBER2024-capa huggingface dataset:
Function at 0x45058d
Capabilities:
Delete registry key
Set registry value

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x238
mov eax, dword [0x40afd4]
push ebx
push esi
push edi
mov ebx, ecx
push 0x40
mov dword [ebp - 0x134], eax
mov esi, dword [ebp + 8]
pop ecx
xor eax, eax
lea edi, [ebp - 0x130]
rep stosd dword es:[edi], eax
mov edi, esi
or ecx, 0xffffffff
repne scasb al, byte es:[edi]
not ecx
dec ecx
je 0x4506ff
push esi
mov ecx, ebx
push dword [ebx + 0xb20]
call fcn.004504f2
test eax, eax
jne 0x4506ff
and dword [ebp - 0x2c], eax
push esi
mov ecx, ebx
mov dword [ebp - 0x30], 7
mov dword [ebp - 0x28], esi
call fcn.0045049b
mov dword [ebp - 0x20], eax
mov dword [ebp - 0x1c], eax
mov esi, dword [sym.imp.USER32.dll_SendMessageA]
lea eax, [ebp - 0x30]
push eax
push 0
push 0x401
push dword [ebx + 0xb20]
call esi
mov edi, SysReAllocStringLen
push 0x4105fc
push edi
call dword [sym.imp.ADVAPI32.dll_RegDeleteKeyA]
lea eax, [ebp - 8]
push eax
push 0x4105fc
push edi
call dword [sym.imp.ADVAPI32.dll_RegCreateKeyA]
test eax, eax
jne 0x4506ff
xor edi, edi
push edi
push edi
push 0x146
push dword [ebx + 0xb20]
call esi
push 0x18
mov dword [ebp + 8], eax
pop eax
cmp dword [ebp + 8], eax
jle 0x450658
mov dword [ebp + 8], eax
xor eax, eax
cmp dword [ebp + 8], edi
mov dword [ebp - 0xc], eax
jle 0x4506f6
mov dword [ebp - 4], 1
mov dword [ebp - 0x2c], eax
lea eax, [ebp - 0x238]
mov dword [ebp - 0x28], eax
and byte [ebp - 0x238], 0
lea eax, [ebp - 0x30]
mov dword [ebp - 0x24], 0x104
push eax
push 0
push 0x404
push dword [ebx + 0xb20]
call esi
lea eax, [ebp - 0x131]
push 0xa
push eax
push dword [ebp - 4]
call dword [sym.imp.MSVCRT.dll__itoa]
mov edx, dword [ebp - 0x28]
add esp, 0xc
test edx, edx
je 0x4506e6
mov edi, edx
or ecx, 0xffffffff
xor eax, eax
repne scasb al, byte es:[edi]
not ecx
dec ecx
je 0x4506e6
mov edi, edx
or ecx, 0xffffffff
repne scasb al, byte es:[edi]
not ecx
dec ecx
push ecx
push edx
push 1
push eax
lea eax, [ebp - 0x134]
push eax
push dword [ebp - 8]
call dword [sym.imp.ADVAPI32.dll_RegSetValueExA]
inc dword [ebp - 4]
mov eax, dword [ebp - 0xc]
inc eax
cmp eax, dword [ebp + 8]
mov dword [ebp - 0xc], eax
jl 0x45066d
push dword [ebp - 8]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
pop edi
pop esi
pop ebx
leave
ret 4
Function at 0x45135e
Capabilities:
Log keystrokes via polling

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x10
push ebx
push esi
push edi
mov edi, dword [ebp + 8]
mov esi, ecx
mov eax, dword [edi + 4]
mov dword [ebp - 8], esi
sub eax, 0x100
je 0x45154c
dec eax
je 0x451505
sub eax, 0x103
je 0x4514d3
sub eax, 3
je 0x451468
dec eax
je 0x45144d
dec eax
dec eax
je 0x4513c9
dec eax
jne 0x4513f0
mov eax, dword [edi + 8]
test al, 0x20
je 0x4513b9
mov ecx, 0x474b78
call fcn.00415ceb
jmp 0x4513f0
test al, 0x40
je 0x4513f0
mov ecx, 0x474b78
call fcn.00415c95
jmp 0x4513f0
mov esi, 0x4969d0
mov ecx, esi
call fcn.0045b314
test eax, eax
je 0x451403
mov eax, dword [ebp + 8]
mov ecx, esi
mov eax, dword [eax + 8]
shr eax, 0x10
push eax
call fcn.004443e2
mov edi, dword [ebp + 8]
mov esi, dword [ebp - 8]
push edi
lea ecx, [esi + 0x900]
call fcn.00431b74
pop edi
pop esi
pop ebx
leave
ret 4
cmp dword [0x470f7c], 0
je 0x4513ea
mov esi, dword [sym.imp.USER32.dll_GetKeyState]
push 0x11
call esi
movsx eax, ax
shr eax, 0x10
test ax, ax
je 0x4513ea
push 0x12
call esi
movsx eax, ax
shr eax, 0x10
test ax, ax
je 0x451434
push 0
jmp 0x45143e
mov eax, dword [ebp + 8]
mov eax, dword [eax + 8]
shr eax, 0x10
push eax
mov ecx, 0x474b78
call fcn.004189a2
jmp 0x4515e9
cmp dword [0x470f90], 0
je 0x4513f0
cmp dword [0x45e2ac], 3
jne 0x4513f0
mov dword [edi + 4], 0x202
jmp 0x4513f0
mov al, byte [0x470dc8]
test al, 1
je 0x4514ad
cmp dword [0x472ee0], 0
je 0x451495
cmp dword [0x470dcc], 0
je 0x451495
mov esi, 0x531670
test al, 0x20
mov ecx, esi
jne 0x45149c
call fcn.0042fe23
jmp 0x4514a1
mov esi, 0x531670
mov ecx, esi
call fcn.0042d67c
mov ecx, esi
call fcn.0042fd37
jmp 0x4515e9
cmp dword [0x470f90], 0
je 0x4513f0
cmp dword [0x45e2ac], 3
jne 0x4513f0
mov dword [edi + 4], 0x201
jmp 0x4513f0
mov eax, dword [edi]
cmp eax, dword [esi + 0x90c]
je 0x4514e9
cmp eax, dword [esi + 0xacc]
jne 0x4513f0
lea eax, [ebp - 0x10]
push eax
call dword [sym.imp.USER32.dll_GetCursorPos]
push dword [ebp - 0xc]
mov ecx, esi
push dword [ebp - 0x10]
call fcn.0044ff47
jmp 0x4515e9
cmp dword [edi + 8], 9
mov ebx, dword [sym.imp.USER32.dll_GetKeyState]
jne 0x451526
push 0x11
call ebx
shr eax, 8
test al, al
je 0x451526
mov dword [esi + 0x8e4], 1
add esi, 0x8e4
cmp dword [esi], 0
je 0x4513ea
push 0x11
call ebx
shr eax, 8
test al, al
jne 0x4513ea
and dword [esi], 0
jmp 0x4513ea
and dword [ebp - 0xc], 0
cmp dword [0x473034], 0
jle 0x4513f0
mov esi, dword [sym.imp.USER32.dll_GetKeyState]
mov edi, 0x460968
mov ebx, dword [edi]
test ebx, ebx
je 0x4515b9
mov al, byte [edi]
shr ebx, 8
mov byte [ebp - 1], al
xor eax, eax
test bl, bl
jbe 0x4515ad
test bl, 2
je 0x45158b
push 0x11
call esi
shr eax, 8
movzx eax, al
test bl, 1
je 0x45159a
push 0x10
call esi
shr eax, 8
movzx eax, al
test bl, 4
je 0x4515a9
push 0x12
call esi
shr eax, 8
movzx eax, al
test eax, eax
je 0x4515b9
movzx eax, byte [ebp - 1]
mov ecx, dword [ebp + 8]
cmp eax, dword [ecx + 8]
je 0x4515d2
inc dword [ebp - 0xc]
mov eax, dword [ebp - 0xc]
add edi, 0x824
cmp eax, dword [0x473034]
jl 0x451568
jmp 0x4513ea
mov eax, dword [ebp - 0xc]
mov ecx, dword [ebp - 8]
imul eax, eax, 0x824
add eax, 0x46096c
push eax
call fcn.00450d8c
push 1
pop eax
jmp 0x4513fc
Function at 0x452a45
Capabilities:
Log keystrokes via polling

Disassembly:
push ebp
mov ebp, esp
push ecx
push ebx
push esi
push edi
push 7
push 0x40aba0
xor esi, esi
push dword [ebp + 8]
mov dword [ebp - 4], esi
call dword [sym.imp.MSVCRT.dll__strnicmp]
add esp, 0xc
test eax, eax
je 0x452ab4
cmp dword [0x40d538], esi
jle 0x452ab4
mov ebx, dword [sym.imp.USER32.dll_GetKeyState]
mov edi, 0x40d49c
cmp dword [edi - 4], 0
je 0x452aa8
mov al, byte [edi]
test al, al
je 0x452a94
movzx eax, al
push eax
call ebx
shr eax, 8
test al, al
je 0x452aa8
mov al, byte [edi + 1]
test al, al
je 0x452ae0
movzx eax, al
push eax
call ebx
shr eax, 8
test al, al
jne 0x452ae0
inc esi
add edi, 0x28
cmp esi, dword [0x40d538]
jl 0x452a7b
push dword [ebp + 8]
push 0x40a158
push dword [ebp + 0x10]
push dword [ebp + 0xc]
call dword [sym.imp.MSVCRT.dll__snprintf]
add esp, 0x10
mov eax, dword [ebp + 0xc]
mov ecx, dword [ebp + 0x10]
pop edi
pop esi
and byte [eax + ecx - 1], 0
mov eax, dword [ebp - 4]
pop ebx
leave
ret 0xc
lea eax, [esi + esi*4]
shl eax, 3
lea ecx, [eax + 0x40d4ae]
lea eax, [eax + 0x40d49e]
push ecx
push dword [ebp + 8]
push eax
push 0x40b3e8
push dword [ebp + 0x10]
push dword [ebp + 0xc]
call dword [sym.imp.MSVCRT.dll__snprintf]
add esp, 0x18
mov dword [ebp - 4], 1
jmp 0x452acb
Function at 0x452b14
Capabilities:
Log keystrokes via polling

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x904
mov al, byte [0x45e298]
push esi
mov esi, ecx
push edi
mov byte [ebp - 0x904], al
mov ecx, 0x1ff
xor eax, eax
lea edi, [ebp - 0x903]
rep stosd dword es:[edi], eax
stosw word es:[edi], ax
stosb byte es:[edi], al
lea eax, [ebp - 0x904]
push 0x800
push eax
mov ecx, esi
push dword [ebp + 8]
call fcn.00452a45
test eax, eax
je 0x452b6b
lea eax, [ebp - 0x904]
push 1
push eax
mov ecx, 0x495e88
call fcn.0044f8bc
lea eax, [ebp - 0x904]
mov ecx, esi
push eax
call fcn.00450e1a
test eax, eax
jne 0x452cc1
lea eax, [ebp - 0x904]
mov ecx, 0x474b48
push eax
call fcn.0043a231
test eax, eax
jne 0x452cc1
lea eax, [ebp - 0x904]
push eax
call fcn.004233e6
lea eax, [ebp - 0x904]
push eax
call fcn.004257d9
pop ecx
test eax, eax
pop ecx
je 0x452bcd
lea eax, [ebp - 0x904]
push 0
push eax
mov ecx, esi
call fcn.0045014d
jmp 0x452cb7
mov al, byte [0x45e298]
push ebx
push 0x40
mov byte [ebp - 0x104], al
pop ecx
xor eax, eax
lea edi, [ebp - 0x103]
xor ebx, ebx
rep stosd dword es:[edi], eax
stosw word es:[edi], ax
stosb byte es:[edi], al
lea eax, [ebp - 0x104]
push 0x104
push eax
mov ecx, 0x4969d0
mov dword [ebp + 8], ebx
call fcn.004436e3
lea esi, [ebp - 0x904]
lea eax, [ebp - 0x104]
mov dl, byte [eax]
mov cl, dl
cmp dl, byte [esi]
jne 0x452c32
cmp cl, bl
je 0x452c2e
mov dl, byte [eax + 1]
mov cl, dl
cmp dl, byte [esi + 1]
jne 0x452c32
inc eax
inc eax
inc esi
inc esi
cmp cl, bl
jne 0x452c10
xor eax, eax
jmp 0x452c37
sbb eax, eax
sbb eax, 0xffffffff
cmp eax, ebx
jne 0x452c51
push 0x10
call dword [sym.imp.USER32.dll_GetKeyState]
shr eax, 8
test al, al
je 0x452c51
mov dword [ebp + 8], 1
cmp dword [0x470f94], ebx
je 0x452c77
cmp dword [ebp + 0xc], ebx
jne 0x452c77
cmp dword [ebp + 8], ebx
jne 0x452c77
lea eax, [ebp - 0x904]
push ebx
push eax
mov ecx, 0x474b78
call fcn.00415a4c
jmp 0x452c8d
push ebx
push ebx
push ebx
lea eax, [ebp - 0x904]
push 2
push eax
mov ecx, 0x474b78
call fcn.00415920
lea eax, [ebp - 0x904]
push 0x40a6a0
push eax
call dword [sym.imp.MSVCRT.dll__stricmp]
pop ecx
pop ecx
pop ebx
test eax, eax
je 0x452cb7
lea eax, [ebp - 0x904]
mov ecx, 0x495e88
push eax
call fcn.0045058d
mov ecx, 0x474b78
call fcn.00417cc5
pop edi
pop esi
leave
ret 8

Function at 0x452cdc
Capabilities:
Create thread

Disassembly:
push ecx
push esi
mov esi, ecx
push 0x104
mov eax, dword [esi + 4]
mov dword [esi + 0xaa8], eax
lea eax, [esi + 0x9a4]
push eax
call fcn.00446f8b
lea eax, [esp + 0xc]
add esi, 0x9a0
push eax
push 0
push esi
push 0x4269f0
push 0
push 0
call dword [sym.imp.MSVCRT.dll__beginthreadex]
add esp, 0x20
test eax, eax
pop esi
je 0x452d26
push eax
call dword [sym.imp.KERNEL32.dll_CloseHandle]
pop ecx
ret
Function at 0x453e38
Capabilities:
Get graphical window text

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x320
and byte [ebp - 0x118], 0
push ebx
push esi
push edi
mov esi, ecx
push 0x40
pop ecx
xor eax, eax
lea edi, [ebp - 0x117]
push dword [esi + 0xb24]
rep stosd dword es:[edi], eax
stosw word es:[edi], ax
stosb byte es:[edi], al
lea edi, [esi + 0xb24]
call dword [sym.imp.USER32.dll_IsWindow]
test eax, eax
je 0x453fbe
mov ebx, 0x104
lea eax, [ebp - 0x118]
push ebx
push eax
push dword [edi]
call dword [sym.imp.USER32.dll_GetWindowTextA]
lea eax, [ebp - 0x118]
push eax
call fcn.004233e6
lea eax, [ebp - 0x118]
push eax
call fcn.004257d9
pop ecx
test eax, eax
pop ecx
je 0x453fbe
and dword [esi + 0x8dc], 0
and dword [esi + 0x8e0], 0
lea edi, [esi + 8]
mov ecx, 0x1f4
xor eax, eax
rep stosd dword es:[edi], eax
mov edi, dword [sym.imp.MSVCRT.dll__snprintf]
lea eax, [ebp - 0x118]
push eax
push 0x40a158
lea eax, [esi + 0x7d8]
push ebx
push eax
call edi
and byte [esi + 0x8db], 0
lea eax, [ebp - 0x118]
push 0xffffffffffffffff
push eax
call fcn.00419855
and dword [ebp - 4], 0
add esp, 0x18
test eax, eax
mov dword [ebp - 0xc], eax
je 0x453fb5
push 0
lea ecx, [ebp - 0x320]
push ebx
push ecx
push eax
call fcn.0042b92e
add esp, 0x10
test eax, eax
je 0x453fac
lea eax, [esi + 8]
mov dword [ebp - 8], eax
lea eax, [ebp - 0x320]
test eax, eax
je 0x453f78
lea eax, [ebp - 0x320]
push eax
call dword [sym.imp.KERNEL32.dll_lstrlenW]
lea eax, [eax + eax + 2]
mov dword [ebp - 0x10], eax
add eax, 3
and al, 0xfc
call fcn.0045c140
xor ecx, ecx
mov eax, esp
push ecx
push ecx
push dword [ebp - 0x10]
and byte [eax], 0
mov dword [ebp - 0x14], eax
push eax
lea eax, [ebp - 0x320]
push 0xffffffffffffffff
push eax
push ecx
push ecx
call dword [sym.imp.KERNEL32.dll_WideCharToMultiByte]
mov eax, dword [ebp - 0x14]
push eax
push 0x40a158
push 0xc7
push dword [ebp - 8]
call edi
inc dword [ebp - 4]
add dword [ebp - 8], 0xc8
push dword [ebp - 4]
lea eax, [ebp - 0x320]
push ebx
push eax
push dword [ebp - 0xc]
call fcn.0042b92e
add esp, 0x20
test eax, eax
jne 0x453f2c
push dword [ebp - 0xc]
call dword [sym.imp.OLEAUT32.dll_SysStringLen]
mov eax, dword [ebp - 4]
mov dword [esi + 0x8dc], eax
lea esp, [ebp - 0x32c]
pop edi
pop esi
pop ebx
leave
ret

Function at 0x4547d4
Capabilities:
Get graphical window text

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x5c
push esi
push edi
mov edx, ecx
push 0xa
pop ecx
xor eax, eax
lea edi, [ebp - 0x28]
push 0xd
rep stosd dword es:[edi], eax
mov eax, dword [ebp + 0xc]
pop ecx
mov dword [ebp - 0x18], eax
mov eax, dword [ebp + 0x18]
mov dword [ebp - 0x10], eax
mov dword [ebp - 0xc], eax
mov eax, dword [ebp + 0x14]
lea edi, [ebp - 0x5c]
mov dword [ebp - 4], eax
xor eax, eax
rep stosd dword es:[edi], eax
mov eax, dword [ebp + 8]
push 0xa
pop ecx
lea esi, [ebp - 0x28]
lea edi, [ebp - 0x54]
mov dword [ebp - 0x28], 0x27
rep movsd dword es:[edi], dword [esi]
xor ecx, ecx
cmp eax, 0xffff0000
mov dword [ebp - 0x5c], eax
lea eax, [ebp - 0x5c]
push eax
push 0
setne cl
push 0x1100
add ecx, 0xffff0001
push dword [edx + 4]
mov dword [ebp - 0x58], ecx
call dword [sym.imp.USER32.dll_SendMessageA]
pop edi
pop esi
leave
ret 0x14
Function at 0x45484c
Capabilities:
Get graphical window text

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x5c
push esi
push edi
mov edx, ecx
push 0xa
pop ecx
xor eax, eax
lea edi, [ebp - 0x28]
push 0xd
rep stosd dword es:[edi], eax
mov eax, dword [ebp + 0xc]
pop ecx
mov dword [ebp - 0x18], eax
mov eax, dword [ebp + 0x18]
mov dword [ebp - 0x10], eax
mov dword [ebp - 0xc], eax
mov eax, dword [ebp + 0x14]
lea edi, [ebp - 0x5c]
mov dword [ebp - 4], eax
xor eax, eax
rep stosd dword es:[edi], eax
mov eax, dword [ebp + 8]
push 0xa
pop ecx
lea esi, [ebp - 0x28]
lea edi, [ebp - 0x54]
mov dword [ebp - 0x28], 0x27
rep movsd dword es:[edi], dword [esi]
xor ecx, ecx
cmp eax, 0xffff0000
mov dword [ebp - 0x5c], eax
lea eax, [ebp - 0x5c]
push eax
push 0
setne cl
push 0x1132
add ecx, 0xffff0001
push dword [edx + 4]
mov dword [ebp - 0x58], ecx
call dword [sym.imp.USER32.dll_SendMessageW]
pop edi
pop esi
leave
ret 0x14

Function at 0x454bb3
Capabilities:
Read file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x118
push esi
xor esi, esi
cmp dword [ebp + 8], esi
push edi
jne 0x454bd7
xor edi, edi
or ecx, 0xffffffff
xor eax, eax
repne scasb al, byte es:[edi]
not ecx
dec ecx
je 0x454c91
push 0x40a240
push dword [ebp + 8]
call dword [sym.imp.MSVCRT.dll_fopen]
pop ecx
cmp eax, esi
pop ecx
mov dword [ebp + 8], eax
je 0x454c91
push ebx
mov ebx, dword [ebp + 0xc]
mov ecx, ebx
push dword [ebx + 8]
push dword [ebx + 4]
call fcn.00458d4d
push dword [ebp + 8]
lea eax, [ebp - 4]
mov dword [ebp + 0xc], esi
mov dword [ebp - 4], esi
mov esi, dword [sym.imp.MSVCRT.dll_fread]
push 1
push 4
push eax
call esi
and dword [ebp - 8], 0
add esp, 0x10
cmp dword [ebp - 4], 0
jbe 0x454c81
push 0x44
and dword [ebp + 0xc], 0
pop ecx
xor eax, eax
push dword [ebp + 8]
lea edi, [ebp - 0x118]
rep stosd dword es:[edi], eax
push 1
lea eax, [ebp + 0xc]
push 4
push eax
call esi
push dword [ebp + 8]
lea eax, [ebp - 0x118]
push 1
push dword [ebp + 0xc]
push eax
call esi
push dword [ebp + 8]
lea eax, [ebp - 0x10]
push 1
push 4
push eax
call esi
add esp, 0x30
lea eax, [ebp - 0x118]
mov ecx, ebx
push eax
call fcn.0045435f
inc dword [ebp - 8]
mov eax, dword [ebp - 8]
cmp eax, dword [ebp - 4]
jb 0x454c29
push dword [ebp + 8]
call dword [sym.imp.MSVCRT.dll_fclose]
pop ecx
push 1
pop eax
pop ebx
jmp 0x454c93
xor eax, eax
pop edi
pop esi
leave
ret 8
Function at 0x454c99
Capabilities:
Set file attributes
Write file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x114
push esi
xor esi, esi
cmp dword [ebp + 8], esi
push edi
jne 0x454cbd
xor edi, edi
or ecx, 0xffffffff
xor eax, eax
repne scasb al, byte es:[edi]
not ecx
dec ecx
je 0x454e52
push ebx
mov ebx, dword [ebp + 0xc]
mov dword [ebp - 4], esi
mov ecx, dword [ebx + 4]
cmp ecx, esi
jne 0x454cd0
mov dword [ebp + 0xc], esi
jmp 0x454ce0
mov eax, dword [ebx + 8]
sub eax, ecx
mov ecx, pe_nt_image_headers32
cdq
idiv ecx
mov dword [ebp + 0xc], eax
mov al, byte [0x45e298]
push 0x40
mov byte [ebp - 0x114], al
pop ecx
xor eax, eax
lea edi, [ebp - 0x113]
rep stosd dword es:[edi], eax
stosw word es:[edi], ax
stosb byte es:[edi], al
lea eax, [ebp - 0x114]
push 0x104
push eax
call fcn.00446f8b
pop ecx
lea edi, [ebp - 0x114]
pop ecx
xor eax, eax
or ecx, 0xffffffff
repne scasb al, byte es:[edi]
not ecx
dec ecx
and byte [ebp + ecx - 0x115], al
cmp dword [ebp + 0xc], esi
jbe 0x454e4e
push 0x20
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.dll_SetFileAttributesA]
mov ecx, dword [ebx + 4]
cmp ecx, esi
jne 0x454d44
xor eax, eax
jmp 0x454d51
mov eax, dword [ebx + 8]
sub eax, ecx
mov ecx, pe_nt_image_headers32
cdq
idiv ecx
imul eax, eax, 0x110
push eax
call sub.MSVCRT.dll_void____cdecl_operator_new_unsigned_int_
mov esi, eax
pop ecx
test esi, esi
mov dword [ebp - 0x10], esi
je 0x454e4e
mov ecx, dword [ebx + 4]
test ecx, ecx
jne 0x454d76
xor eax, eax
jmp 0x454d83
mov eax, dword [ebx + 8]
sub eax, ecx
mov ecx, pe_nt_image_headers32
cdq
idiv ecx
mov ecx, eax
xor eax, eax
imul ecx, ecx, 0x110
mov edx, ecx
mov edi, esi
shr ecx, 2
rep stosd dword es:[edi], eax
mov ecx, edx
push 0x40a7ec
push dword [ebp + 8]
and ecx, 3
rep stosb byte es:[edi], al
call dword [sym.imp.MSVCRT.dll_fopen]
pop ecx
mov dword [ebp - 8], eax
test eax, eax
pop ecx
je 0x454e47
mov eax, dword [ebp + 0xc]
lea edx, [esi + 4]
test eax, eax
mov dword [esi], eax
jbe 0x454e1c
and dword [ebp + 0xc], 0
mov dword [ebp - 4], eax
mov edi, dword [ebx + 4]
or ecx, 0xffffffff
add edi, dword [ebp + 0xc]
xor eax, eax
repne scasb al, byte es:[edi]
not ecx
dec ecx
mov dword [edx], ecx
mov esi, dword [ebx + 4]
add esi, dword [ebp + 0xc]
mov dword [ebp - 0xc], ecx
add edx, 4
mov eax, ecx
mov edi, edx
add edx, eax
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, eax
and ecx, 3
rep movsb byte es:[edi], byte [esi]
mov eax, dword [ebx + 4]
mov ecx, dword [ebp + 0xc]
add dword [ebp + 0xc], 0x110
mov eax, dword [eax + ecx + 0x108]
mov dword [edx], eax
add edx, 4
dec dword [ebp - 4]
jne 0x454dcb
mov esi, dword [ebp - 0x10]
push dword [ebp - 8]
sub edx, esi
push 1
pop edi
push edi
push edx
push esi
call dword [sym.imp.MSVCRT.dll_fwrite]
push dword [ebp - 8]
call dword [sym.imp.MSVCRT.dll_fclose]
add esp, 0x14
push 2
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.dll_SetFileAttributesA]
mov dword [ebp - 4], edi
push esi
call fcn.0045c12b
pop ecx
mov eax, dword [ebp - 4]
pop ebx
pop edi
pop esi
leave
ret 8
Function at 0x45537e
Capabilities:
Read .ini file

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x440
mov al, byte [0x45e298]
push ebx
push esi
push edi
mov esi, ecx
push 0x40
mov byte [ebp - 0x238], al
pop ecx
xor eax, eax
lea edi, [ebp - 0x237]
rep stosd dword es:[edi], eax
stosw word es:[edi], ax
stosb byte es:[edi], al
mov ebx, 0x104
lea eax, [ebp - 0x33c]
push ebx
push eax
mov dword [ebp - 8], esi
call fcn.00446f8b
mov eax, dword [ebp + 8]
pop ecx
mov dword [ebp - 0x2c], eax
pop ecx
lea eax, [ebp - 0x30]
mov dword [ebp - 0x30], 0x12
push eax
push 0
push 0x110c
push dword [esi + 4]
call dword [sym.imp.USER32.dll_SendMessageA]
mov eax, dword [ebp - 0x18]
mov dword [ebp - 4], eax
lea edi, [ebp - 0x238]
or ecx, 0xffffffff
xor eax, eax
lea edx, [ebp - 0x134]
repne scasb al, byte es:[edi]
not ecx
sub edi, ecx
push ebx
mov eax, ecx
mov esi, edi
mov edi, edx
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, eax
lea eax, [ebp - 0x440]
and ecx, 3
push eax
push dword [ebp + 8]
rep movsb byte es:[edi], byte [esi]
mov esi, dword [ebp - 8]
mov ecx, esi
call fcn.0045493f
lea eax, [ebp - 0x134]
push eax
lea eax, [ebp - 0x440]
push eax
push 0x40dcfc
lea eax, [ebp - 0x238]
push ebx
push eax
call dword [sym.imp.MSVCRT.dll__snprintf]
add esp, 0x14
push dword [ebp + 8]
push 3
push 0x110a
push dword [esi + 4]
call dword [sym.imp.USER32.dll_SendMessageA]
test eax, eax
mov dword [ebp + 8], eax
jne 0x4553e5
lea edi, [ebp - 0x238]
or ecx, 0xffffffff
repne scasb al, byte es:[edi]
mov esi, dword [ebp - 4]
not ecx
dec ecx
and byte [ebp + ecx - 0x239], al
cmp esi, 3
je 0x455514
cmp esi, 7
je 0x455514
cmp esi, 4
je 0x4554d8
cmp esi, 9
je 0x4554d8
lea eax, [ebp - 0x238]
push eax
lea eax, [ebp - 0x33c]
push eax
push 0x40ab20
lea eax, [ebp - 0x134]
push ebx
push eax
call dword [sym.imp.MSVCRT.dll__snprintf]
mov ecx, dword [ebp + 0x10]
mov edi, dword [ebp + 0xc]
and byte [ebp - 0x31], 0
mov edx, ecx
xor eax, eax
add esp, 0x14
shr ecx, 2
rep stosd dword es:[edi], eax
mov ecx, edx
and ecx, 3
rep stosb byte es:[edi], al
jmp 0x45555e
lea eax, [ebp - 0x238]
push eax
lea eax, [ebp - 0x33c]
push eax
push 0x4106f4
lea eax, [ebp - 0x134]
push ebx
push eax
call dword [sym.imp.MSVCRT.dll__snprintf]
push dword [ebp + 0x10]
and byte [ebp - 0x31], 0
lea eax, [ebp - 0x134]
push dword [ebp + 0xc]
push eax
call fcn.00426c55
add esp, 0x20
jmp 0x45555e
lea eax, [ebp - 0x238]
push eax
lea eax, [ebp - 0x33c]
push eax
push 0x4106e8
lea eax, [ebp - 0x134]
push ebx
push eax
call dword [sym.imp.MSVCRT.dll__snprintf]
add esp, 0x14
lea eax, [ebp - 0x134]
and byte [ebp - 0x31], 0
push eax
push dword [ebp + 0x10]
push dword [ebp + 0xc]
push 0x45e298
push 0x40aa8c
push 0x40aa78
call dword [sym.imp.KERNEL32.dll_GetPrivateProfileStringA]
mov edi, dword [ebp + 0x14]
test edi, edi
je 0x455584
mov ebx, dword [ebp + 0x18]
lea eax, [ebp - 0x134]
push eax
push 0x40a158
push ebx
push edi
call dword [sym.imp.MSVCRT.dll__snprintf]
add esp, 0x10
and byte [edi + ebx - 1], 0
mov eax, dword [ebp + 0x1c]
test eax, eax
je 0x45558d
mov dword [eax], esi
push 1
pop eax
pop edi
pop esi
pop ebx
leave
ret 0x18
Function at 0x4555e8
Capabilities:
Read .ini file

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x954
mov ax, word [0x45ec14]
push ebx
push esi
mov ebx, ecx
push edi
mov word [ebp - 0x440], ax
mov ecx, 0x81
xor eax, eax
lea edi, [ebp - 0x43e]
mov esi, 0x104
rep stosd dword es:[edi], eax
stosw word es:[edi], ax
lea eax, [ebp - 0x544]
push esi
push eax
mov dword [ebp - 4], ebx
call fcn.00446f8b
lea eax, [ebp - 0x74c]
push esi
push eax
lea eax, [ebp - 0x544]
push eax
call fcn.00424855
mov eax, dword [ebp + 8]
add esp, 0x14
mov dword [ebp - 0x2c], eax
mov edi, dword [sym.imp.USER32.dll_SendMessageA]
lea eax, [ebp - 0x30]
mov dword [ebp - 0x30], 0x12
push eax
push 0
push 0x110c
push dword [ebx + 4]
call edi
mov eax, dword [ebp - 0x18]
mov ebx, dword [sym.imp.MSVCRT.dll__snwprintf]
mov dword [ebp - 8], eax
lea eax, [ebp - 0x440]
push eax
lea eax, [ebp - 0x238]
push eax
call dword [sym.imp.MSVCRT.dll_wcscpy]
pop ecx
lea eax, [ebp - 0x954]
pop ecx
mov ecx, dword [ebp - 4]
push esi
push eax
push dword [ebp + 8]
call fcn.00454976
lea eax, [ebp - 0x238]
push eax
lea eax, [ebp - 0x954]
push eax
push 0x410728
lea eax, [ebp - 0x440]
push esi
push eax
call ebx
mov eax, dword [ebp - 4]
add esp, 0x14
push dword [ebp + 8]
push 3
push 0x110a
push dword [eax + 4]
call edi
test eax, eax
mov dword [ebp + 8], eax
jne 0x45566f
lea eax, [ebp - 0x440]
push eax
call dword [sym.imp.MSVCRT.dll_wcslen]
xor edi, edi
pop ecx
mov word [ebp + eax*2 - 0x442], di
mov eax, dword [ebp - 8]
cmp eax, 3
je 0x455778
cmp eax, 7
je 0x455778
cmp eax, 4
je 0x455740
cmp eax, 9
je 0x455740
lea eax, [ebp - 0x440]
push eax
lea eax, [ebp - 0x74c]
push eax
push 0x40ab2c
lea eax, [ebp - 0x238]
push esi
push eax
call ebx
mov ecx, dword [ebp + 0x10]
mov word [ebp - 0x32], di
mov edi, dword [ebp + 0xc]
mov edx, ecx
xor eax, eax
add esp, 0x14
shr ecx, 2
rep stosd dword es:[edi], eax
mov ecx, edx
and ecx, 3
rep stosb byte es:[edi], al
jmp 0x4557be
lea eax, [ebp - 0x440]
push eax
lea eax, [ebp - 0x74c]
push eax
push 0x410714
lea eax, [ebp - 0x238]
push esi
push eax
call ebx
push dword [ebp + 0x10]
lea eax, [ebp - 0x238]
mov word [ebp - 0x32], di
push dword [ebp + 0xc]
push eax
call fcn.00426d25
add esp, 0x20
jmp 0x4557be
lea eax, [ebp - 0x440]
push eax
lea eax, [ebp - 0x74c]
push eax
push 0x410700
lea eax, [ebp - 0x238]
push esi
push eax
call ebx
add esp, 0x14
lea eax, [ebp - 0x238]
mov word [ebp - 0x32], di
push eax
push dword [ebp + 0x10]
push dword [ebp + 0xc]
push 0x45ec14
push 0x40aa70
push 0x40aa4c
call dword [sym.imp.KERNEL32.dll_GetPrivateProfileStringW]
mov esi, dword [ebp + 0x14]
test esi, esi
je 0x4557e1
mov edi, dword [ebp + 0x18]
lea eax, [ebp - 0x238]
push eax
push 0x40a36c
push edi
push esi
call ebx
add esp, 0x10
and word [esi + edi*2 - 2], 0
mov eax, dword [ebp + 0x1c]
pop edi
pop esi
pop ebx
test eax, eax
je 0x4557f0
mov ecx, dword [ebp - 8]
mov dword [eax], ecx
push 1
pop eax
leave
ret 0x18