joyce8/EMBER2024-capa huggingface dataset:
Function at 0x436b90
Capabilities:
Access peb ldr_data

Disassembly:
mov eax, dword fs:[0]
push 0xffffffffffffffff
push 0x46cce8
push eax
mov dword fs:[0], esp
sub esp, 0x14
push ebx
push ebp
mov ebp, dword [esp + 0x30]
push esi
mov ebx, ecx
push edi
mov esi, dword [ebp]
mov ecx, dword [esi + 0xc]
mov eax, dword [esi + 0x10]
dec ecx
cmp eax, ecx
jge 0x436bc9
inc eax
mov dword [esi + 0x10], eax
jmp 0x436cdc
mov eax, dword [ebx + 0x3c]
mov ecx, dword [esi + 8]
cmp ecx, eax
jne 0x436bdd
mov eax, 0xffffffc7
jmp 0x436cde
mov esi, dword [esi]
mov edx, dword [esi + 0x10]
mov ecx, dword [esi + 0xc]
cmp edx, ecx
jl 0x436bee
cmp dword [esi + 8], eax
jne 0x436bdd
cmp dword [esi + 8], eax
jne 0x436c07
mov eax, dword [esi + 0x10]
mov ecx, dword [esi + 0xc]
cmp eax, ecx
jl 0x436c07
mov eax, 0xffffffc7
jmp 0x436cde
mov eax, dword [esi + 4]
xor edi, edi
cmp eax, edi
je 0x436c1b
push eax
mov ecx, ebx
call fcn.004363c0
mov dword [esi + 4], edi
mov dword [ebp], esi
mov ecx, dword [esi + 0x10]
inc ecx
mov dword [esi + 0x10], ecx
lea ecx, [esp + 0x10]
call fcn.004077a0
mov dword [esp + 0x2c], edi
mov edi, dword [esp + 0x3c]
test edi, edi
jne 0x436c4c
mov ecx, dword [ebx + 4]
mov edx, dword [ecx + 8]
lea ecx, [esp + 0x10]
push edx
call fcn.004077c0
mov edi, eax
mov eax, dword [esi + 8]
push edi
push eax
mov ecx, ebx
call fcn.00435b30
test eax, eax
mov dword [esp + 0x38], eax
je 0x436c7f
lea ecx, [esp + 0x10]
mov dword [esp + 0x2c], 0xffffffff
mov dword [esp + 0x10], 0x471618
call fcn.004079a0
mov eax, dword [esp + 0x38]
jmp 0x436cde
mov ecx, dword [esi + 0x10]
push ecx
push edi
mov ecx, ebx
call fcn.004369f0
mov dl, byte [edi]
and dl, 1
cmp dl, 1
jne 0x436cc3
mov ecx, dword [esp + 0x34]
push ebp
push ecx
push edi
push eax
mov ecx, ebx
call fcn.00436a10
mov esi, eax
test esi, esi
jne 0x436cf3
mov edx, dword [ebp]
push eax
push edi
mov ecx, ebx
mov dword [edx + 0x10], eax
call fcn.004369f0
mov cl, byte [edi]
and cl, 1
cmp cl, 1
je 0x436c95
lea ecx, [esp + 0x10]
mov dword [esp + 0x2c], 0xffffffff
mov dword [esp + 0x10], 0x471618
call fcn.004079a0
xor eax, eax
mov ecx, dword [esp + 0x24]
pop edi
pop esi
pop ebp
pop ebx
mov dword fs:[0], ecx
add esp, 0x20
ret 0xc
lea ecx, [esp + 0x10]
mov dword [esp + 0x2c], 0xffffffff
mov dword [esp + 0x10], 0x471618
call fcn.004079a0
mov eax, esi
jmp 0x436cde

Function at 0x439e10
Capabilities:
Create thread

Disassembly:
push ecx
cmp dword [ecx + 0xcc], 1
je 0x439e70
mov eax, dword [ecx + 0x1c]
test eax, eax
je 0x439e70
mov eax, dword [ecx + 0xb0]
test eax, eax
je 0x439e70
push esi
mov edx, 5
mov esi, dword [ecx + 0xbc]
cmp esi, edx
pop esi
je 0x439e70
mov dword [ecx + 0xb4], eax
mov dword [ecx + 0x94], 0
mov dword [ecx + 0xbc], edx
lea eax, [esp]
push eax
push 0
push ecx
push 0x439eb0
push 0
push 0
call dword [sym.imp.KERNEL32.dll_CreateThread]
push eax
call dword [sym.imp.KERNEL32.dll_CloseHandle]
pop ecx
ret
Function at 0x43ffe0
Capabilities:
Access peb ldr_data
Get number of processors

Disassembly:
push 0xffffffffffffffff
push 0x46d318
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x2c
push esi
mov esi, ecx
lea eax, [esp + 0xc]
mov ecx, dword [esi + 0x1c]
push eax
push ecx
call dword [sym.imp.USER32.dll_GetClientRect]
push 0
lea ecx, [esp + 0x20]
call fcn.00466210
mov eax, dword [esi + 0xd0]
lea edx, [esp + 0x1c]
push eax
push eax
push edx
mov dword [esp + 0x44], 0
call fcn.0043f980
mov eax, dword [esi + 0x4c]
mov ecx, dword [esi + 0x48]
add eax, 0x64
add esp, 0xc
add ecx, 0x64
mov dword [esp + 8], eax
lea eax, [esp + 4]
mov dword [esp + 4], ecx
push eax
lea ecx, [esp + 0x20]
call fcn.0046613e
mov ecx, dword [esp + 4]
mov eax, dword [esp + 0x14]
mov edx, dword [esp + 0xc]
sub ecx, eax
add ecx, edx
mov eax, 0x88888889
imul ecx
add edx, ecx
push 1
sar edx, 4
mov ecx, edx
shr ecx, 0x1f
lea eax, [edx + ecx + 1]
xor edx, edx
test eax, eax
setl dl
dec edx
mov ecx, esi
and eax, edx
push eax
push 0
push 0
call fcn.00462a07
mov ecx, dword [esp + 0x10]
mov eax, dword [esp + 0x18]
mov edx, dword [esp + 8]
sub ecx, eax
add ecx, edx
mov eax, 0x88888889
imul ecx
add edx, ecx
xor ecx, ecx
sar edx, 4
mov eax, edx
push 1
shr eax, 0x1f
lea eax, [edx + eax + 1]
test eax, eax
setl cl
dec ecx
and eax, ecx
mov ecx, esi
push eax
push 0
push 1
call fcn.00462a07
push 1
push 0
push 0
mov ecx, esi
call fcn.004629af
push 1
push 0
push 1
mov ecx, esi
call fcn.004629af
lea ecx, [esp + 0x1c]
mov dword [esp + 0x38], 0xffffffff
call fcn.00466282
mov ecx, dword [esp + 0x30]
pop esi
mov dword fs:[0], ecx
add esp, 0x38
ret

Function at 0x440160
Capabilities:
Get number of processors

Disassembly:
push 0xffffffffffffffff
push 0x46d338
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x2c
push esi
mov esi, ecx
push 0
lea ecx, [esp + 0x20]
call fcn.00466210
push 0x3e8
lea eax, [esp + 0x20]
push 0x3e8
push eax
mov dword [esp + 0x44], 0
call fcn.0043f980
mov ecx, dword [esi + 0x48]
mov eax, dword [esi + 0x4c]
add ecx, 0x64
add esp, 0xc
mov dword [esp + 4], ecx
lea ecx, [esp + 4]
add eax, 0x96
push ecx
lea ecx, [esp + 0x20]
mov dword [esp + 0xc], eax
call fcn.0046613e
mov eax, dword [esi + 0x1c]
lea edx, [esp + 0xc]
push edx
push eax
call dword [sym.imp.USER32.dll_GetClientRect]
mov eax, dword [esp + 0x18]
mov edx, dword [esp + 0x10]
sub eax, edx
lea eax, [eax + eax*4]
lea eax, [eax + eax*4]
lea eax, [eax + eax*4]
shl eax, 3
cdq
idiv dword [esp + 8]
mov edx, dword [esp + 0xc]
mov ecx, eax
mov eax, dword [esp + 0x14]
sub eax, edx
lea eax, [eax + eax*4]
lea eax, [eax + eax*4]
lea eax, [eax + eax*4]
shl eax, 3
cdq
idiv dword [esp + 4]
cmp dword [esp + 0x44], 1
jne 0x440224
cmp dword [esp + 0x40], 1
jne 0x440222
cmp ecx, eax
jge 0x440224
mov eax, ecx
cmp eax, 0xc8
jge 0x440230
mov eax, 0xc8
mov ecx, esi
mov dword [esi + 0xd0], eax
call fcn.0043ffe0
mov ecx, dword [esi + 0x1c]
push 1
push 0
push ecx
call dword [sym.imp.USER32.dll_InvalidateRect]
lea ecx, [esp + 0x1c]
mov dword [esp + 0x38], 0xffffffff
call fcn.00466282
mov ecx, dword [esp + 0x30]
pop esi
mov dword fs:[0], ecx
add esp, 0x38
ret 8
Function at 0x4409b0
Capabilities:
Access peb ldr_data
Get number of processors

Disassembly:
push 0xffffffffffffffff
push 0x46d3a3
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
push ecx
push ebp
push esi
mov esi, ecx
push edi
mov dword [esp + 0xc], esi
call fcn.00460e22
lea edi, [esi + 0x64]
mov dword [esp + 0x18], 0
mov dword [edi + 4], 0
mov dword [edi], vtable.CBrush.0
mov eax, dword [esp + 0x2c]
mov ebp, dword [esp + 0x24]
mov ecx, dword [esp + 0x30]
mov dword [esi + 0x3c], eax
mov eax, ebp
mov dword [esi], method.CEdit.virtual_0
mov dword [esi + 0x40], ecx
mov dword [esi + 0x44], 0
mov ecx, dword [eax]
lea edx, [esi + 0x48]
mov byte [esp + 0x18], 1
mov dword [edx], ecx
mov ecx, dword [eax + 4]
mov dword [edx + 4], ecx
mov ecx, dword [eax + 8]
mov dword [edx + 8], ecx
mov eax, dword [eax + 0xc]
mov ecx, dword [esp + 0x40]
mov dword [edx + 0xc], eax
mov eax, dword [esp + 0x44]
push eax
mov dword [esi + 0x5c], ecx
mov dword [esi + 0x60], eax
call dword [sym.imp.GDI32.dll_CreateSolidBrush]
push eax
mov ecx, edi
call fcn.004664b8
mov edx, dword [esp + 0x28]
mov eax, dword [esp + 0x20]
push edx
push eax
push ebp
push 0x50800044
mov ecx, esi
call fcn.004679d4
test eax, eax
je 0x440acc
mov ecx, dword [esp + 0x3c]
call fcn.004664e5
mov ecx, dword [esi + 0x1c]
mov ebp, dword [sym.imp.USER32.dll_SendMessageA]
push 0
push eax
push 0x30
push ecx
mov dword [esi + 0x58], eax
call ebp
mov edi, dword [esp + 0x34]
test edi, edi
je 0x440a90
push edi
mov ecx, esi
call fcn.00463b51
mov ecx, esi
call fcn.00440c30
cmp dword [esp + 0x38], 1
jne 0x440ac5
or ecx, 0xffffffff
xor eax, eax
repne scasb al, byte es:[edi]
mov edx, dword [esi + 0x1c]
push 0xffffffffffffffff
not ecx
dec ecx
push ecx
push 0xb1
push edx
call ebp
mov eax, dword [esi + 0x1c]
push 0
push 0
push 0xb7
push eax
call ebp
mov ecx, esi
call fcn.00463c8c
mov ecx, dword [esp + 0x10]
mov eax, esi
pop edi
pop esi
pop ebp
mov dword fs:[0], ecx
add esp, 0x10
ret 0x28
Function at 0x4434f0
Capabilities:
Check for software breakpoints

Disassembly:
push esi
mov esi, dword [esp + 8]
cmp dword [esi + 0x10], 0xca
jne 0x443523
push esi
call fcn.004465f0
mov eax, dword [esi + 0x40]
add esp, 4
test eax, eax
je 0x44351c
mov dword [esi + 0x10], 0xcf
mov eax, 1
pop esi
ret
mov dword [esi + 0x10], 0xcb
mov eax, dword [esi + 0x10]
cmp eax, 0xcb
jne 0x4435a9
mov eax, dword [esi + 0x1b0]
mov ecx, dword [eax + 0x10]
test ecx, ecx
je 0x443592
mov eax, dword [esi + 8]
test eax, eax
je 0x443547
push esi
call dword [eax]
add esp, 4
mov ecx, dword [esi + 0x1b0]
push esi
call dword [ecx]
add esp, 4
test eax, eax
je 0x44358e
cmp eax, 2
je 0x443592
mov ecx, dword [esi + 8]
test ecx, ecx
je 0x44353a
cmp eax, 3
je 0x44356d
cmp eax, 1
jne 0x44353a
mov eax, dword [ecx + 4]
inc eax
mov dword [ecx + 4], eax
mov eax, dword [esi + 8]
mov ecx, dword [eax + 8]
mov edx, dword [eax + 4]
cmp edx, ecx
jl 0x44353a
mov edx, dword [esi + 0x13c]
add edx, ecx
mov dword [eax + 8], edx
jmp 0x44353a
xor eax, eax
pop esi
ret
mov eax, dword [esi + 0x90]
push esi
mov dword [esi + 0x98], eax
call fcn.004435d0
add esp, 4
pop esi
ret
cmp eax, 0xcc
je 0x4435b8
mov ecx, dword [esi]
push esi
call dword [ecx]
add esp, 4
push esi
call fcn.004435d0
add esp, 4
pop esi
ret

Function at 0x461c18
Capabilities:
Get graphical window text

Disassembly:
push esi
mov esi, ecx
mov ecx, dword [esi + 0x38]
test ecx, ecx
jne 0x461c50
push dword [esi + 0x1c]
call dword [sym.imp.USER32.dll_GetWindowTextLengthA]
lea ecx, [eax + 1]
push ecx
mov ecx, dword [esp + 0xc]
push eax
call fcn.0045fccc
push eax
push dword [esi + 0x1c]
call dword [sym.imp.USER32.dll_GetWindowTextA]
mov ecx, dword [esp + 8]
push 0xffffffffffffffff
call fcn.0045fca4
jmp 0x461c5c
mov eax, dword [ecx]
push dword [esp + 8]
call dword [eax + 0x88]
pop esi
ret 4

Function at 0x46330b
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 0x46334d
call fcn.00468dba
mov esi, dword [eax + 0xc]
push pe_nt_image_headers32
push dword [esp + 0x14]
push esi
call dword [sym.imp.KERNEL32.dll_FindResourceA]
cmp eax, edi
je 0x46334d
push eax
push esi
call dword [sym.imp.KERNEL32.dll_LoadResource]
cmp eax, edi
jne 0x463344
xor eax, eax
jmp 0x463355
push eax
call dword [sym.imp.KERNEL32.dll_LockResource]
mov edi, eax
push edi
mov ecx, ebx
call fcn.0046335b
pop edi
pop esi
pop ebx
ret 4

Function at 0x4692ea
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 0x469318
push dword [esi]
call dword [sym.imp.KERNEL32.dll_TlsGetValue]
test eax, eax
je 0x469336
push dword [esp + 0xc]
mov ecx, esi
push eax
call fcn.00469250
jmp 0x469336
mov eax, dword [esi + 0x14]
test eax, eax
je 0x469336
push edi
push dword [esp + 0x10]
mov edi, dword [eax + 4]
mov ecx, esi
push eax
call fcn.00469250
test edi, edi
mov eax, edi
jne 0x469320
pop edi
push ebx
call dword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
pop esi
pop ebx
ret 8
Function at 0x40b6d7
Capabilities:
Hide graphical window

Disassembly:
push ebp
mov ebp, esp
sub esp, 4
cmp dword [ebp + 0xc], 0
je 0x40b716
mov dword [ebp - 4], esp
push 0
push dword [ebp + 8]
call dword [sym.imp.USER32.dll_ShowWindow]
nop
nop
nop
nop
cmp dword [ebp - 4], esp
je 0x40b711
push 6
call fcn.0042dde6
add esp, 4
jmp 0x40b73d
mov dword [ebp - 4], esp
push 5
push dword [ebp + 8]
call dword [sym.imp.USER32.dll_ShowWindow]
nop
nop
nop
nop
cmp dword [ebp - 4], esp
je 0x40b73d
push 6
call fcn.0042dde6
add esp, 4
mov esp, ebp
pop ebp
ret 8

Function at 0x40d723
Capabilities:
Get common file path

Disassembly:
push ebp
mov ebp, esp
sub esp, 8
mov dword [ebp - 4], 0
push 0x80000301
push 0
push 0xff
push 1
mov ebx, 0x184
call fcn.0042e4a0
add esp, 0x10
mov dword [ebp - 8], eax
mov eax, dword [ebp - 8]
push eax
mov ebx, dword [ebp - 4]
test ebx, ebx
je 0x40d768
push ebx
call fcn.0042dde0
add esp, 4
pop eax
mov dword [ebp - 4], eax
mov dword [ebp - 8], esp
push dword [ebp - 4]
push 0xff
call dword [sym.imp.KERNEL32.dll_GetCurrentDirectoryA]
nop
nop
nop
nop
cmp dword [ebp - 8], esp
je 0x40d793
push 6
call fcn.0042dde6
add esp, 4
mov eax, dword [ebp - 4]
test eax, eax
je 0x40d7af
push eax
mov ebx, eax
call fcn.004011c8
inc eax
push eax
call fcn.0042ddda
pop ecx
pop esi
mov edi, eax
rep movsb byte es:[edi], byte [esi]
jmp 0x40d7b4
push eax
mov ebx, dword [ebp - 4]
test ebx, ebx
je 0x40d7c5
push ebx
call fcn.0042dde0
add esp, 4
pop eax
mov esp, ebp
pop ebp
ret

Function at 0x40dcb9
Capabilities:
Create directory

Disassembly:
push ebp
mov ebp, esp
sub esp, 4
mov dword [ebp - 4], esp
push 0
mov ebx, dword [ebp + 8]
push dword [ebx]
push 0
call dword [sym.imp.SHELL32.dll_SHCreateDirectoryExA]
nop
nop
nop
nop
cmp dword [ebp - 4], esp
je 0x40dcf0
push 6
call fcn.0042dde6
add esp, 4
mov esp, ebp
pop ebp
ret 4

Function at 0x40f45f
Capabilities:
Create process on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 4
mov dword [ebp - 4], esp
push 5
push 0x44d244
push 0x44d244
mov ebx, dword [ebp + 8]
push dword [ebx]
push str.open
push 0
call dword [sym.imp.SHELL32.dll_ShellExecuteA]
nop
nop
nop
nop
cmp dword [ebp - 4], esp
je 0x40f4a5
push 6
call fcn.0042dde6
add esp, 4
mov esp, ebp
pop ebp
ret 4
Function at 0x41fc5b
Capabilities:
Shutdown system

Disassembly:
push ebp
mov ebp, esp
sub esp, 0xc
mov dword [ebp - 4], 0
push 1
call fcn.004064d4
mov dword [ebp - 4], eax
mov dword [ebp - 8], esp
mov eax, 0
mov dword [ebp - 0xc], eax
lea eax, [ebp - 0xc]
push eax
push 0
push 1
push 0x13
call dword [sym.imp.ntdll.dll_RtlAdjustPrivilege]
nop
nop
nop
nop
cmp dword [ebp - 8], esp
je 0x41fcb2
push 6
call fcn.0042dde6
add esp, 4
cmp dword [ebp - 4], 0
je 0x41fcea
mov dword [ebp - 8], esp
push 0
push 0xc
call dword [sym.imp.USER32.dll_ExitWindowsEx]
nop
nop
nop
nop
cmp dword [ebp - 8], esp
je 0x41fce5
push 6
call fcn.0042dde6
add esp, 4
jmp 0x41fd13
mov dword [ebp - 8], esp
push 0
push 9
call dword [sym.imp.USER32.dll_ExitWindowsEx]
nop
nop
nop
nop
cmp dword [ebp - 8], esp
je 0x41fd13
push 6
call fcn.0042dde6
add esp, 4
mov eax, 0
jmp 0x41fd1d
mov esp, ebp
pop ebp
ret 4

Function at 0x420029
Capabilities:
Check os version

Disassembly:
push ebp
mov ebp, esp
push edx
push ebx
xor eax, eax
mov ebx, dword fs:[0x18]
mov ecx, dword fs:[0x30]
test ecx, ecx
jns 0x420062
mov ecx, 0x530000
cmp dword [ebx + 0x58], ecx
jne 0x420050
mov al, 1
jmp 0x4200aa
cmp dword [ebx + 0x54], ecx
jne 0x420059
mov al, 2
jmp 0x4200aa
cmp dword [ebx + 0x7c], ecx
jmp 0x4200aa
mov ebx, dword [ecx + 0xa8]
mov ecx, dword [ecx + 0xa4]
cmp ecx, 4
ja 0x420077
mov al, 4
jmp 0x4200aa
cmp ecx, 5
jne 0x420097
cmp ebx, 0
jne 0x420085
mov al, 5
jmp 0x4200aa
cmp ebx, 1
jne 0x42008e
mov al, 6
jmp 0x4200aa
cmp ebx, 2
jne 0x420097
mov al, 7
jmp 0x4200aa
cmp ecx, 6
jne 0x4200aa
cmp ebx, 0
jne 0x4200a3
mov al, 8
cmp ebx, 1
jne 0x4200aa
mov al, 9
pop ebx
pop edx
leave
ret
Function at 0x420414
Capabilities:
Initialize winsock library

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x10
push 0x1c
call fcn.0042ddda
add esp, 4
mov dword [ebp - 4], eax
mov ebx, eax
mov edi, eax
xor eax, eax
mov ecx, 7
rep stosd dword es:[edi], eax
add ebx, 8
push ebx
push 0x109
call fcn.0042ddda
add esp, 4
pop ebx
mov dword [ebx], eax
mov edi, eax
mov esi, 0x44eee5
lodsd eax, dword [esi]
stosd dword es:[edi], eax
lodsd eax, dword [esi]
stosd dword es:[edi], eax
xor eax, eax
mov ecx, 0x101
rep stosb byte es:[edi], al
add ebx, 4
push ebx
push 0xa
call fcn.0042ddda
add esp, 4
pop ebx
mov dword [ebx], eax
mov edi, eax
mov esi, 0x44eeed
lodsd eax, dword [esi]
stosd dword es:[edi], eax
lodsd eax, dword [esi]
stosd dword es:[edi], eax
xor eax, eax
stosb byte es:[edi], al
stosb byte es:[edi], al
mov dword [ebp - 8], esp
mov eax, dword [ebp - 4]
push eax
push 0x10f
call fcn.0042ddda
add esp, 4
mov edi, eax
pop ebx
push eax
mov dword [ebp - 0x10], ebx
mov dword [ebp - 0xc], eax
mov eax, dword [ebx]
add ebx, 4
mov word [edi], ax
add edi, 2
mov eax, dword [ebx]
add ebx, 4
mov word [edi], ax
add edi, 2
push ebx
mov ebx, dword [ebx]
add ebx, 8
mov ecx, 0x101
mov esi, ebx
rep movsb byte es:[edi], byte [esi]
pop ebx
add ebx, 4
push ebx
mov ebx, dword [ebx]
add ebx, 8
mov ecx, 2
mov esi, ebx
rep movsb byte es:[edi], byte [esi]
pop ebx
add ebx, 4
mov eax, dword [ebx]
add ebx, 4
mov word [edi], ax
add edi, 2
mov eax, dword [ebx]
add ebx, 4
mov word [edi], ax
add edi, 2
mov eax, dword [ebx]
add ebx, 4
mov dword [edi], eax
add edi, 4
push 2
call dword [sym.imp.WS2_32.dll_WSAStartup]
nop
nop
nop
nop
cmp dword [ebp - 8], esp
je 0x420526
push 6
call fcn.0042dde6
add esp, 4
push eax
mov ebx, dword [ebp - 0xc]
push ebx
mov edi, dword [ebp - 0x10]
mov ax, word [ebx]
add ebx, 2
mov dword [edi], eax
add edi, 4
mov ax, word [ebx]
add ebx, 2
mov dword [edi], eax
add edi, 4
push ebx
push edi
push 1
mov eax, 2
call fcn.0042e020
add esp, 4
pop edi
pop ebx
push ebx
push edi
mov edi, dword [edi]
mov ecx, dword [edi]
add edi, 4
test ecx, ecx
je 0x420573
mov eax, dword [edi]
add edi, 4
dec ecx
je 0x420571
imul eax, dword [edi]
jmp 0x420566
mov ecx, eax
cmp ecx, 0x101
jle 0x420580
mov ecx, 0x101
mov esi, ebx
rep movsb byte es:[edi], byte [esi]
pop edi
pop ebx
add edi, 4
add ebx, 0x101
push ebx
push edi
push 1
mov eax, 2
call fcn.0042e020
add esp, 4
pop edi
pop ebx
push ebx
push edi
mov edi, dword [edi]
mov ecx, dword [edi]
add edi, 4
test ecx, ecx
je 0x4205be
mov eax, dword [edi]
add edi, 4
dec ecx
je 0x4205bc
imul eax, dword [edi]
jmp 0x4205b1
mov ecx, eax
cmp ecx, 2
jle 0x4205c8
mov ecx, 2
mov esi, ebx
rep movsb byte es:[edi], byte [esi]
pop edi
pop ebx
add edi, 4
add ebx, 2
mov ax, word [ebx]
add ebx, 2
mov dword [edi], eax
add edi, 4
mov ax, word [ebx]
add ebx, 2
mov dword [edi], eax
add edi, 4
mov eax, dword [ebx]
add ebx, 4
mov dword [edi], eax
add edi, 4
call fcn.0042dde0
add esp, 4
pop eax
mov ebx, dword [ebp - 4]
push ebx
add ebx, 8
push ebx
mov ebx, dword [ebx]
push ebx
call fcn.0042dde0
add esp, 4
pop ebx
add ebx, 4
push ebx
mov ebx, dword [ebx]
push ebx
call fcn.0042dde0
add esp, 4
pop ebx
call fcn.0042dde0
add esp, 4
mov esp, ebp
pop ebp
ret 4
Function at 0x42e140
Capabilities:
Accept command line arguments

Disassembly:
sub esp, 0x14
push ebx
push esi
push edi
call dword [sym.imp.KERNEL32.dll_GetCommandLineA]
mov edi, eax
mov al, 0x20
mov cl, byte [edi]
inc edi
cmp cl, 0x22
jne 0x42e15a
mov al, cl
mov dl, byte [edi]
inc edi
cmp dl, al
je 0x42e168
mov cl, byte [edi]
inc edi
cmp cl, al
jne 0x42e161
cmp al, 0x20
je 0x42e172
cmp byte [edi], 0x20
jne 0x42e172
inc edi
lea ecx, [esp + 0xc]
call fcn.00434e00
mov dword [esp + 0xc], 0x449724
mov al, byte [edi]
test al, al
je 0x42e236
mov esi, dword [esp + 0x28]
cmp al, 0x22
jne 0x42e1de
mov al, byte [edi + 1]
inc edi
test al, al
mov esi, edi
je 0x42e1b9
mov al, byte [esi]
cmp al, 0x22
je 0x42e1b9
test al, al
jge 0x42e1b1
mov al, byte [esi + 1]
test al, al
je 0x42e1b9
inc esi
mov al, byte [esi + 1]
inc esi
test al, al
jne 0x42e19f
mov edx, esi
sub edx, edi
push edx
push edi
call fcn.00435290
add esp, 8
lea ecx, [esp + 0xc]
push eax
call fcn.00435090
mov al, byte [esi]
mov edi, esi
test al, al
je 0x42e22c
lea edi, [esi + 1]
jmp 0x42e22c
cmp al, 0x20
jg 0x42e1ea
cmp byte [esi], 0
jl 0x42e1ea
inc edi
jmp 0x42e22c
test al, al
mov esi, edi
je 0x42e212
mov al, byte [esi]
cmp al, 0x22
je 0x42e212
cmp al, 0x20
jg 0x42e1fe
test al, al
jge 0x42e212
test al, al
jge 0x42e20a
mov al, byte [esi + 1]
test al, al
je 0x42e212
inc esi
mov al, byte [esi + 1]
inc esi
test al, al
jne 0x42e1f0
mov eax, esi
sub eax, edi
push eax
push edi
call fcn.00435290
add esp, 8
lea ecx, [esp + 0xc]
push eax
call fcn.00435090
mov edi, esi
mov al, byte [edi]
test al, al
jne 0x42e191
mov ebx, dword [esp + 0x28]
mov eax, dword [ebx]
test eax, eax
je 0x42e249
push eax
call fcn.00435230
add esp, 4
mov edi, dword [esp + 0x1c]
shr edi, 2
shl edi, 2
lea ecx, [edi + 8]
push ecx
call fcn.0042df20
mov dword [eax], 1
mov edx, dword [esp + 0x20]
shr edx, 2
mov dword [eax + 4], edx
mov esi, dword [esp + 0x20]
mov ecx, dword [esp + 0x18]
add esp, 4
neg esi
sbb esi, esi
and esi, ecx
mov ecx, edi
mov edx, ecx
lea edi, [eax + 8]
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, edx
and ecx, 3
rep movsb byte es:[edi], byte [esi]
lea ecx, [esp + 0xc]
mov dword [ebx], eax
mov dword [esp + 0xc], 0x449720
call fcn.00435000
pop edi
pop esi
pop ebx
add esp, 0x14
ret

Function at 0x42e780
Capabilities:
Get file size
Read file on windows

Disassembly:
mov eax, dword [esp + 8]
push edi
push 0
push 0x20
push 3
push 0
push 3
push SysReAllocString
push eax
call dword [sym.imp.KERNEL32.dll_CreateFileA]
mov edi, eax
xor eax, eax
cmp edi, 0xffffffff
je 0x42e7e9
push ebx
lea ecx, [esp + 0x10]
push esi
push ecx
push edi
call dword [sym.imp.KERNEL32.dll_GetFileSize]
mov ebx, eax
lea edx, [ebx + 8]
push edx
call fcn.0042df20
add esp, 4
mov esi, eax
lea eax, [esp + 0x14]
push 0
push eax
lea ecx, [esi + 8]
push ebx
push ecx
push edi
mov dword [esi], 1
mov dword [esi + 4], ebx
call dword [sym.imp.KERNEL32.dll_ReadFile]
push edi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov eax, esi
pop esi
pop ebx
pop edi
ret
Function at 0x42e800
Capabilities:
Get common file path

Disassembly:
sub esp, 0x104
lea eax, [esp]
push esi
push eax
push 0x104
xor esi, esi
call dword [sym.imp.KERNEL32.dll_GetCurrentDirectoryA]
test eax, eax
je 0x42e843
push edi
lea edi, [esp + 8]
or ecx, 0xffffffff
xor eax, eax
repne scasb al, byte es:[edi]
not ecx
dec ecx
push ecx
lea ecx, [esp + 0xc]
push ecx
call fcn.00435290
add esp, 8
pop edi
pop esi
add esp, 0x104
ret
mov eax, esi
pop esi
add esp, 0x104
ret

Function at 0x42e9f0
Capabilities:
Write file on windows

Disassembly:
sub esp, 8
mov eax, dword [esp + 0x10]
push edi
push 0
push 0x20
push 2
push 0
push 0
push 0x40000000
push eax
call dword [sym.imp.KERNEL32.dll_CreateFileA]
mov edi, eax
xor eax, eax
cmp edi, 0xffffffff
je 0x42ea82
mov eax, dword [esp + 0x10]
push ebx
mov ebx, 1
push ebp
cmp eax, ebx
push esi
mov dword [esp + 0x10], ebx
jle 0x42ea74
mov ebp, dword [sym.imp.KERNEL32.dll_WriteFile]
lea esi, [esp + 0x2c]
mov eax, dword [esi]
lea edx, [esp + 0x14]
push 0
push edx
lea ecx, [eax + 8]
mov eax, dword [eax + 4]
push eax
push ecx
push edi
call ebp
test eax, eax
je 0x42ea6c
mov eax, dword [esp + 0x1c]
inc ebx
add esi, 0xc
cmp ebx, eax
jl 0x42ea35
push edi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov eax, dword [esp + 0x10]
pop esi
pop ebp
pop ebx
pop edi
add esp, 8
ret
mov dword [esp + 0x10], 0
push edi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov eax, dword [esp + 0x10]
pop esi
pop ebp
pop ebx
pop edi
add esp, 8
ret

Function at 0x42ea90
Capabilities:
Read .ini file

Disassembly:
push ebx
push ebp
push esi
push edi
push 0x400
call fcn.0043ee5d
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 0x42eafa
push esi
lea edi, [eax + 0x400]
call fcn.0043ecf1
push edi
call fcn.0043ee5d
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 0x42eaca
mov edi, esi
or ecx, 0xffffffff
xor eax, eax
xor ebx, ebx
repne scasb al, byte es:[edi]
not ecx
dec ecx
je 0x42eb16
push ecx
push esi
call fcn.00435290
add esp, 8
mov ebx, eax
push esi
call fcn.0043ecf1
add esp, 4
mov eax, ebx
pop edi
pop esi
pop ebp
pop ebx
ret
Function at 0x42fcb0
Capabilities:
Encode data using xor

Disassembly:
mov edx, dword [esp + 4]
mov eax, dword [esp + 8]
cmp edx, 1
jle 0x42fcce
push esi
lea ecx, [esp + 0x18]
dec edx
mov esi, dword [ecx]
add ecx, 0xc
xor eax, esi
dec edx
jne 0x42fcc3
pop esi
ret