joyce8/EMBER2024-capa huggingface dataset:
Function at 0x478230
Capabilities:
Enumerate gui resources

Disassembly:
sub esp, 8
push ebx
push ebp
mov ebp, dword [sym.imp.USER32.dll_EnumWindows]
mov ebx, ecx
push esi
push edi
mov edi, dword [sym.imp.KERNEL32.dll_Sleep]
xor esi, esi
lea eax, [esp + 0x10]
mov dword [esp + 0x10], ebx
push eax
push 0x479970
mov dword [esp + 0x1c], 0
call ebp
mov eax, dword [esp + 0x14]
test eax, eax
jne 0x478279
push 0x64
call edi
inc esi
cmp esi, 0x14
jl 0x478247
pop edi
pop esi
pop ebp
pop ebx
add esp, 8
ret
push eax
call dword [sym.imp.USER32.dll_SetForegroundWindow]
pop edi
pop esi
pop ebp
pop ebx
add esp, 8
ret

Function at 0x4791d0
Capabilities:
Extract resource via kernel32 functions

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x4d4885
mov eax, dword fs:[0]
push eax
sub esp, 0x14
push ebx
push esi
push edi
mov eax, dword [0x50a074]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov dword [ebp - 0x14], edx
push 0x22
push 0
push dword [ecx]
call dword [sym.imp.KERNEL32.dll_LoadLibraryExW]
mov edi, eax
mov dword [ebp - 0x20], 0x4e6ee0
mov dword [ebp - 0x1c], edi
mov dword [ebp - 4], 0
test edi, edi
je 0x4792d9
push 0xa
push 1
push edi
call dword [sym.imp.KERNEL32.dll_FindResourceW]
mov ebx, eax
test ebx, ebx
je 0x4792d9
push ebx
push edi
call dword [sym.imp.KERNEL32.dll_LoadResource]
mov dword [ebp - 0x10], eax
call fcn.004043d0
mov ecx, eax
test ecx, ecx
je 0x47930b
mov eax, dword [ecx]
call dword [eax + 0xc]
lea esi, [eax + 0x10]
mov dword [ebp - 0x18], esi
mov byte [ebp - 4], 2
mov eax, dword [ebp - 0x10]
test eax, eax
je 0x4792bd
push eax
call dword [sym.imp.KERNEL32.dll_LockResource]
mov dword [ebp - 0x10], eax
test eax, eax
je 0x4792bd
push ebx
push edi
call dword [sym.imp.KERNEL32.dll_SizeofResource]
test eax, eax
je 0x4792bd
push eax
push dword [ebp - 0x10]
lea ecx, [ebp - 0x10]
call fcn.00434fd0
mov byte [ebp - 4], 3
lea eax, [ebp - 0x10]
push ecx
mov ecx, dword [ebp - 0x14]
push eax
call fcn.0041e8b0
mov byte [ebp - 4], 2
or eax, 0xffffffff
mov edx, dword [ebp - 0x10]
add edx, 0xfffffff0
lock xadd dword [edx + 0xc], eax
dec eax
test eax, eax
jg 0x4792bd
mov ecx, dword [edx]
push edx
mov eax, dword [ecx]
call dword [eax + 4]
mov byte [ebp - 4], 0
add esi, 0xfffffff0
or ebx, 0xffffffff
lock xadd dword [esi + 0xc], ebx
dec ebx
test ebx, ebx
jg 0x4792d9
mov ecx, dword [esi]
push esi
mov eax, dword [ecx]
call dword [eax + 4]
mov dword [ebp - 4], 0xffffffff
mov dword [ebp - 0x20], 0x4e6ee0
test edi, edi
je 0x4792f9
push edi
call dword [sym.imp.KERNEL32.dll_FreeLibrary]
mov dword [ebp - 0x1c], 0
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
push 0x80004005
call fcn.00402570
int3
Function at 0x47d2a0
Capabilities:
Access peb ldr_data

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x4d4f94
mov eax, dword fs:[0]
push eax
push ecx
push ebx
push esi
push edi
mov eax, dword [0x50a074]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov ebx, ecx
mov dword [ebp - 0x10], ebx
mov dword [ebx], 0x4edc9c
mov dword [ebx + 4], 0
mov dword [ebx + 8], 0
mov dword [ebx + 0xc], 0
mov dword [ebp - 4], 0
mov dword [ebx + 0x10], 0
mov dword [ebx + 0x14], 0
mov dword [ebx + 0x18], 0
mov byte [ebp - 4], 1
mov dword [ebx + 0x1c], 0
mov dword [ebx + 0x20], 0
mov dword [ebx + 0x24], 0
mov byte [ebp - 4], 2
lea edi, [ebx + 0x30]
mov eax, dword [ebp + 0x10]
lea esi, [edi + 4]
mov dword [ebx + 0x28], eax
mov eax, dword [ebp + 0xc]
mov dword [ebx + 0x2c], eax
mov eax, dword [ebp + 8]
mov dword [ebp + 0x10], edi
mov dword [edi], 0x4eaea8
mov dword [ebp + 0xc], esi
mov ecx, dword [eax]
sub ecx, 0x10
call fcn.004025a0
add eax, 0x10
mov dword [esi], eax
mov byte [ebp - 4], 5
mov dword [ebx + 0x38], 0x4ebaa8
mov dword [ebx + 0x3c], edi
mov dword [ebx + 0x40], 0
mov dword [ebp - 4], 0xffffffff
mov eax, ebx
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 0xc
Function at 0x47e300
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x4d5255
mov eax, dword fs:[0]
push eax
sub esp, 0x24
push ebx
push esi
push edi
mov eax, dword [0x50a074]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov ebx, ecx
lea eax, [ebp - 0x1c]
mov dword [ebp - 0x20], 0x4eae90
mov dword [ebp - 0x10], eax
mov eax, dword [ebp + 8]
mov dword [ebp - 0x20], 0x4eaea8
mov ecx, dword [eax]
sub ecx, 0x10
call fcn.004025a0
add eax, 0x10
mov dword [ebp - 0x1c], eax
mov dword [ebp - 4], 2
lea eax, [ebp - 0x20]
cmp byte [ebx + 0x10], 0
mov dword [ebp - 0x2c], 0x4ebaa8
mov dword [ebp - 0x28], eax
mov dword [ebp - 0x24], 0
je 0x47e42c
push 0
push 0x80
push 4
push 0
push 0
push 0x40000000
push dword [ebp - 0x1c]
mov dword [ebp - 0x10], 0xfeff
call dword [sym.imp.KERNEL32.dll_CreateFileW]
mov esi, eax
mov dword [ebp - 0x18], 0x4e5310
mov dword [ebp - 0x14], esi
mov byte [ebp - 4], 3
cmp esi, 0xffffffff
jne 0x47e3c3
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov edi, eax
mov byte [ebp - 4], 2
mov dword [ebp - 0x18], 0x4e5310
push esi
jmp 0x47e3f9
push 0
lea eax, [ebp + 8]
mov dword [ebp + 8], 0
push eax
push 2
lea eax, [ebp - 0x10]
push eax
push esi
call dword [sym.imp.KERNEL32.dll_WriteFile]
test eax, eax
jne 0x47e40f
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov edi, eax
mov byte [ebp - 4], 2
mov dword [ebp - 0x18], 0x4e5310
test esi, esi
je 0x47e406
push esi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov dword [ebp - 0x14], 0
test edi, edi
je 0x47e42c
jmp 0x47e4b3
mov byte [ebp - 4], 2
mov dword [ebp - 0x18], 0x4e5310
test esi, esi
je 0x47e42c
push esi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov dword [ebp - 0x14], 0
mov eax, dword [ebx + 4]
xor edi, edi
mov dword [ebp + 8], 0
test eax, eax
jle 0x47e49f
xor esi, esi
nop
test esi, esi
js 0x47e4f8
cmp edi, eax
jge 0x47e4f8
mov ecx, dword [ebx]
add ecx, esi
cmp byte [ecx + 0x15c], 0
je 0x47e47e
cmp byte [ebp + 0xc], 0
je 0x47e46c
test byte [ecx + 0x94], 1
je 0x47e47e
lea eax, [ebp - 0x2c]
push eax
call fcn.00460910
mov ecx, dword [ebp + 8]
inc ecx
mov dword [ebp + 8], ecx
jmp 0x47e481
mov ecx, dword [ebp + 8]
mov eax, dword [ebx + 4]
inc edi
add esi, 0x16c
cmp edi, eax
jl 0x47e440
test ecx, ecx
jle 0x47e49f
mov ecx, dword [ebx + 0xc]
lea eax, [ebp - 0x2c]
push eax
call fcn.004488a0
mov ecx, dword [ebx + 0xc]
lea eax, [ebp - 0x2c]
push eax
lea ecx, [ecx + 0xec]
call fcn.00440c70
xor edi, edi
mov dword [ebp - 4], 0xffffffff
lea eax, [ebp - 0x1c]
mov dword [ebp + 0xc], eax
mov dword [ebp - 4], 0xffffffff
or eax, 0xffffffff
mov esi, dword [ebp - 0x1c]
add esi, 0xfffffff0
lock xadd dword [esi + 0xc], eax
dec eax
test eax, eax
jg 0x47e4e2
mov ecx, dword [esi]
push esi
mov edx, dword [ecx]
call dword [edx + 4]
mov eax, edi
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 8
push 0x8000000b
call fcn.00402570
int3
Function at 0x497283
Capabilities:
Get geographical location

Disassembly:
push ebp
mov ebp, esp
push ecx
and dword [ebp - 4], 0
call fcn.004a932a
push 2
lea ecx, [ebp - 4]
push ecx
mov eax, dword [eax + 0x14]
push 0x22
push eax
call dword [sym.imp.KERNEL32.dll_GetLocaleInfoEx]
movzx eax, word [ebp - 4]
sub eax, 0x30
je 0x4972c2
sub eax, 1
je 0x4972bd
sub eax, 1
je 0x4972b9
xor eax, eax
leave
ret
push 3
jmp 0x4972c4
xor eax, eax
inc eax
leave
ret
push 2
pop eax
leave
ret

Function at 0x498289
Capabilities:
Parse pe header

Disassembly:
push 0
call dword [sym.imp.KERNEL32.dll_GetModuleHandleW]
test eax, eax
je 0x4982c8
mov ecx, 0x5a4d
cmp word [eax], cx
jne 0x4982c8
mov ecx, dword [eax + 0x3c]
add ecx, eax
cmp dword [ecx], 0x4550
jne 0x4982c8
mov eax, 0x10b
cmp word [ecx + 0x18], ax
jne 0x4982c8
cmp dword [ecx + 0x74], 0xe
jbe 0x4982c8
cmp dword [ecx + 0xe8], 0
setne al
ret
xor al, al
ret
Function at 0x4afcef
Capabilities:
Read file on windows

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
mov eax, 0x101c
call fcn.00498560
mov eax, dword [0x50a074]
xor eax, ebp
mov dword [ebp - 4], eax
mov eax, dword [ebp + 0x14]
push ebx
push dword [ebp + 8]
mov dword [ebp - 0x100c], eax
call fcn.004ae22d
pop ecx
mov ecx, dword [ebp + 8]
mov ebx, eax
cmp dword [ecx + 8], 0
jne 0x4afd31
mov eax, dword [ebp + 0xc]
mov edx, dword [ebp + 0x10]
jmp 0x4afe8d
mov eax, dword [ecx]
sub eax, dword [ecx + 4]
push esi
push edi
push 0
cdq
push 2
push edx
push eax
call fcn.004bd7e0
push dword [ebp - 0x100c]
mov ecx, ebx
mov dword [ebp - 0x1008], eax
mov esi, ebx
mov dword [ebp - 0x1018], edx
and ecx, 0x3f
sar esi, 6
imul edi, ecx, 0x38
push 0
mov eax, dword [esi*4 + 0x50c920]
push dword [edi + eax + 0x24]
push dword [edi + eax + 0x20]
push ebx
call fcn.004af884
mov ecx, dword [esi*4 + 0x50c920]
add esp, 0x14
mov dword [ebp - 0x1010], eax
mov eax, edx
mov edx, dword [ebp - 0x1010]
mov dword [ebp - 0x101c], eax
cmp edx, dword [edi + ecx + 0x20]
jne 0x4afe86
cmp eax, dword [edi + ecx + 0x24]
jne 0x4afe86
push 0
lea eax, [ebp - 0x1014]
push eax
push 0x1000
lea eax, [ebp - 0x1004]
push eax
push dword [edi + ecx + 0x18]
call dword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
je 0x4afe86
push dword [ebp - 0x100c]
push 0
push dword [ebp + 0x10]
push dword [ebp + 0xc]
push ebx
call fcn.004af884
add esp, 0x14
test edx, edx
jl 0x4afe86
jg 0x4afdfc
test eax, eax
jb 0x4afe86
mov ebx, dword [ebp - 0x1018]
mov eax, dword [ebp - 0x1014]
test ebx, ebx
jg 0x4afe86
jl 0x4afe16
cmp dword [ebp - 0x1008], eax
ja 0x4afe86
lea edi, [ebp - 0x1004]
xor edx, edx
add edi, eax
lea ecx, [ebp - 0x1004]
xor esi, esi
cmp dword [ebp - 0x1008], edx
jne 0x4afe34
test ebx, ebx
je 0x4afe6d
cmp ecx, edi
jae 0x4afe6d
mov al, byte [ecx]
cmp al, 0xd
jne 0x4afe4e
lea eax, [edi - 1]
cmp ecx, eax
jae 0x4afe5a
cmp byte [ecx + 1], 0xa
jne 0x4afe5a
inc ecx
jmp 0x4afe5a
movzx eax, al
movsx eax, byte [eax + 0x50a9c0]
add ecx, eax
add esi, 1
adc edx, 0
inc ecx
cmp esi, dword [ebp - 0x1008]
jne 0x4afe34
cmp edx, ebx
jne 0x4afe34
lea eax, [ebp - 0x1004]
sub ecx, eax
mov eax, ecx
cdq
add eax, dword [ebp - 0x1010]
adc edx, dword [ebp - 0x101c]
jmp 0x4afe8b
or edx, 0xffffffff
mov eax, edx
pop edi
pop esi
mov ecx, dword [ebp - 4]
xor ecx, ebp
pop ebx
call fcn.00497376
leave
ret

Function at 0x4b028a
Capabilities:
Read file on windows

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
pop ebp
jmp fcn.004aff2c

Function at 0x4b0295
Capabilities:
Read file on windows

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
pop ebp
jmp fcn.004b00bb

Function at 0x4b0b61
Capabilities:
Allocate thread local storage

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push esi
push 0x4dd8b0
push 0x4dd8a8
push str.FlsAlloc
push 0x1e
call fcn.004b09ce
mov esi, eax
add esp, 0x10
test esi, esi
je 0x4b0b95
push dword [ebp + 8]
mov ecx, esi
call dword [0x4d8508]
call esi
jmp 0x4b0b9b
call dword [sym.imp.KERNEL32.dll_TlsAlloc]
pop esi
pop ebp
ret 4
Function at 0x4b0bdf
Capabilities:
Get thread local storage value

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push esi
push 0x4dd8c0
push 0x4dd8b8
push str.FlsGetValue
push 0x20
call fcn.004b09ce
mov esi, eax
add esp, 0x10
test esi, esi
je 0x4b0c16
push dword [ebp + 8]
mov ecx, esi
call dword [0x4d8508]
call esi
pop esi
pop ebp
ret 4
pop esi
pop ebp
jmp dword [sym.imp.KERNEL32.dll_TlsGetValue]

Function at 0x4b4e5c
Capabilities:
Enumerate files on windows

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x264
mov eax, dword [0x50a074]
xor eax, ebp
mov dword [ebp - 4], eax
mov edx, dword [ebp + 0xc]
mov ecx, dword [ebp + 0x10]
push ebx
push esi
push edi
mov edi, dword [ebp + 8]
mov dword [ebp - 0x25c], ecx
cmp edx, edi
je 0x4b4ea7
movzx eax, word [edx]
lea ecx, [ebp - 0x255]
push eax
call fcn.004b4ffb
test al, al
jne 0x4b4ea1
sub edx, 2
cmp edx, edi
jne 0x4b4e87
mov ecx, dword [ebp - 0x25c]
movzx esi, word [edx]
cmp esi, 0x3a
jne 0x4b4ec9
lea eax, [edi + 2]
cmp edx, eax
je 0x4b4ec9
push ecx
xor ebx, ebx
push ebx
push ebx
push edi
call fcn.004b4da8
add esp, 0x10
jmp 0x4b4fc3
push esi
lea ecx, [ebp - 0x255]
call fcn.004b4ffb
sub edx, edi
movzx eax, al
sar edx, 1
inc edx
neg eax
sbb eax, eax
xor ebx, ebx
push ebx
push ebx
and eax, edx
push ebx
mov dword [ebp - 0x260], eax
lea eax, [ebp - 0x254]
push eax
push ebx
push edi
call dword [sym.imp.KERNEL32.dll_FindFirstFileExW]
mov esi, eax
cmp esi, 0xffffffff
jne 0x4b4f0c
push dword [ebp - 0x25c]
jmp 0x4b4eb9
mov ebx, dword [ebp - 0x25c]
push 0x2e
mov eax, dword [ebx + 4]
sub eax, dword [ebx]
sar eax, 2
mov dword [ebp - 0x25c], eax
pop eax
cmp word [ebp - 0x228], ax
jne 0x4b4f49
cmp word [ebp - 0x226], 0
je 0x4b4f6a
cmp word [ebp - 0x226], ax
jne 0x4b4f49
cmp word [ebp - 0x224], 0
je 0x4b4f6a
push ebx
push dword [ebp - 0x260]
lea eax, [ebp - 0x228]
push edi
push eax
call fcn.004b4da8
add esp, 0x10
mov dword [ebp - 0x264], eax
test eax, eax
jne 0x4b4fb6
lea eax, [ebp - 0x254]
push eax
push esi
call dword [sym.imp.KERNEL32.dll_FindNextFileW]
push 0x2e
test eax, eax
pop eax
jne 0x4b4f23
mov eax, dword [ebx + 4]
mov edx, dword [ebx]
sub eax, edx
mov ecx, dword [ebp - 0x25c]
sar eax, 2
cmp ecx, eax
jne 0x4b4f9e
push esi
call dword [sym.imp.KERNEL32.dll_FindClose]
xor eax, eax
jmp 0x4b4fc3
push 0x4b4bd8
sub eax, ecx
push 4
push eax
lea eax, [edx + ecx*4]
push eax
call fcn.004bc2c0
add esp, 0x10
jmp 0x4b4f93
push esi
call dword [sym.imp.KERNEL32.dll_FindClose]
mov eax, dword [ebp - 0x264]
mov ecx, dword [ebp - 4]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.00497376
leave
ret

Function at 0x4b58e7
Capabilities:
Query environment variable

Disassembly:
mov edi, edi
push esi
call dword [sym.imp.KERNEL32.dll_GetEnvironmentStringsW]
mov esi, eax
test esi, esi
jne 0x4b58f8
pop esi
ret
push ebx
push edi
push esi
call fcn.004b58b0
mov ebx, eax
sub ebx, esi
and ebx, 0xfffffffe
push ebx
call fcn.004ad2cb
mov edi, eax
pop ecx
pop ecx
test edi, edi
je 0x4b5920
push ebx
push esi
push edi
call fcn.00498ed0
add esp, 0xc
push 0
call fcn.004ad291
pop ecx
push esi
call dword [sym.imp.KERNEL32.dll_FreeEnvironmentStringsW]
mov eax, edi
pop edi
pop ebx
pop esi
ret
Function at 0x4b5ce4
Capabilities:
Set environment variable

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
pop ebp
jmp fcn.004b5935

Function at 0x4ba2f8
Capabilities:
Read file on windows

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x14
mov eax, dword [ebp + 8]
mov ecx, eax
push ebx
mov ebx, dword [ebp + 0xc]
and eax, 0x3f
sar ecx, 6
push esi
push edi
imul edi, eax, 0x38
mov eax, dword [ecx*4 + 0x50c920]
mov dword [ebp - 0x10], ecx
mov ecx, dword [eax + edi + 0x18]
mov dword [ebp - 0x14], ecx
mov ecx, dword [ebp + 0x10]
test ecx, ecx
je 0x4ba338
cmp byte [ebx], 0xa
jne 0x4ba338
or byte [eax + edi + 0x28], 4
jmp 0x4ba33d
and byte [eax + edi + 0x28], 0xfb
add ecx, ebx
mov edx, ebx
mov dword [ebp - 0xc], ecx
mov esi, ebx
cmp ebx, ecx
jae 0x4ba43b
mov al, byte [edx]
cmp al, 0x1a
je 0x4ba41d
lea ecx, [edx + 1]
mov dword [ebp - 8], ecx
mov ecx, dword [ebp - 0xc]
cmp al, 0xd
je 0x4ba36c
mov edx, dword [ebp - 8]
mov byte [esi], al
jmp 0x4ba391
mov eax, dword [ebp - 8]
cmp eax, ecx
jae 0x4ba39b
mov cl, byte [eax]
xor eax, eax
cmp cl, 0xa
sete al
inc eax
add edx, eax
cmp cl, 0xa
sete al
dec al
and al, 3
add al, 0xa
mov byte [esi], al
mov ecx, dword [ebp - 0xc]
inc esi
cmp edx, ecx
jb 0x4ba34e
jmp 0x4ba43b
push 0
lea eax, [ebp - 0xc]
push eax
push 1
lea eax, [ebp - 1]
push eax
push dword [ebp - 0x14]
call dword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
je 0x4ba418
cmp dword [ebp - 0xc], 0
je 0x4ba418
mov ecx, dword [ebp - 0x10]
mov eax, dword [ecx*4 + 0x50c920]
test byte [eax + edi + 0x28], 0x48
je 0x4ba3f2
mov dl, byte [ebp - 1]
lea eax, [esi + 1]
mov dword [ebp - 0x14], eax
cmp dl, 0xa
jne 0x4ba3dd
mov byte [esi], dl
jmp 0x4ba3ee
mov byte [esi], 0xd
mov eax, dword [ecx*4 + 0x50c920]
mov byte [eax + edi + 0x2a], dl
mov eax, dword [ebp - 0x14]
mov esi, eax
jmp 0x4ba43b
cmp byte [ebp - 1], 0xa
jne 0x4ba401
cmp esi, ebx
jne 0x4ba401
mov byte [esi], 0xa
jmp 0x4ba43a
push 1
push 0xffffffffffffffff
push 0xffffffffffffffff
push dword [ebp + 8]
call fcn.004af8a2
add esp, 0x10
cmp byte [ebp - 1], 0xa
je 0x4ba43b
mov byte [esi], 0xd
jmp 0x4ba43a
mov ecx, dword [ebp - 0x10]
mov ecx, dword [ecx*4 + 0x50c920]
mov al, byte [ecx + edi + 0x28]
test al, 0x40
jne 0x4ba437
or al, 2
mov byte [ecx + edi + 0x28], al
jmp 0x4ba43b
mov byte [esi], 0x1a
inc esi
sub esi, ebx
pop edi
mov eax, esi
pop esi
pop ebx
leave
ret
Function at 0x4ba444
Capabilities:
Read file on windows

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x18
mov eax, dword [ebp + 8]
push ebx
push esi
mov esi, dword [ebp + 0xc]
mov ebx, eax
and eax, 0x3f
sar ebx, 6
push edi
imul edi, eax, 0x38
push 0xa
mov eax, dword [ebx*4 + 0x50c920]
pop edx
mov dword [ebp - 0x14], edx
mov ecx, dword [edi + eax + 0x18]
mov dword [ebp - 0x18], ecx
mov ecx, dword [ebp + 0x10]
test ecx, ecx
je 0x4ba487
cmp word [esi], dx
jne 0x4ba487
or byte [edi + eax + 0x28], 4
jmp 0x4ba48c
and byte [edi + eax + 0x28], 0xfb
lea edx, [esi + ecx*2]
mov eax, esi
mov dword [ebp - 8], edx
mov dword [ebp - 4], eax
cmp eax, edx
jae 0x4ba5df
mov dword [ebp - 0xc], 0xd
movzx ecx, word [eax]
mov edx, ecx
mov dword [ebp - 0x10], edx
push 0x1a
pop edx
cmp cx, dx
mov edx, dword [ebp - 8]
je 0x4ba5bf
add eax, 2
cmp cx, word [ebp - 0xc]
je 0x4ba4ce
mov dword [ebp - 4], eax
mov word [esi], cx
jmp 0x4ba504
cmp eax, edx
jae 0x4ba510
movzx eax, word [eax]
xor ecx, ecx
cmp ax, word [ebp - 0x14]
mov edx, eax
push 0xa
sete cl
xor eax, eax
lea ecx, [ecx*2 + 2]
add dword [ebp - 4], ecx
pop ecx
cmp dx, cx
mov edx, dword [ebp - 8]
sete al
dec eax
and eax, 3
add eax, ecx
mov word [esi], ax
mov eax, dword [ebp - 4]
add esi, 2
cmp eax, edx
jb 0x4ba4a6
jmp 0x4ba5df
push 0
lea eax, [ebp - 0x14]
push eax
push 2
lea eax, [ebp - 4]
push eax
push dword [ebp - 0x18]
call dword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
je 0x4ba5bb
cmp dword [ebp - 0x14], 0
je 0x4ba5bb
mov eax, dword [ebx*4 + 0x50c920]
push 0xa
test byte [edi + eax + 0x28], 0x48
je 0x4ba593
mov dx, word [ebp - 4]
lea eax, [esi + 2]
pop ecx
mov dword [ebp - 0x18], eax
cmp dx, cx
jne 0x4ba55c
mov word [esi], cx
jmp 0x4ba58f
push 0xd
pop eax
mov word [esi], ax
mov eax, dword [ebx*4 + 0x50c920]
movzx ecx, dx
shr ecx, 8
push 0xa
mov byte [edi + eax + 0x2a], dl
mov eax, dword [ebx*4 + 0x50c920]
mov byte [edi + eax + 0x2b], cl
mov eax, dword [ebx*4 + 0x50c920]
pop ecx
mov byte [edi + eax + 0x2c], cl
mov eax, dword [ebp - 0x18]
mov esi, eax
jmp 0x4ba5df
pop ebx
cmp word [ebp - 4], bx
jne 0x4ba5a4
cmp esi, dword [ebp + 0xc]
jne 0x4ba5a4
mov word [esi], bx
jmp 0x4ba5dc
push 1
push 0xffffffffffffffff
push 0xfffffffffffffffe
push dword [ebp + 8]
call fcn.004af8a2
add esp, 0x10
cmp word [ebp - 4], bx
je 0x4ba5df
push 0xd
jmp 0x4ba5d8
mov ecx, dword [ebx*4 + 0x50c920]
mov al, byte [ecx + edi + 0x28]
test al, 0x40
jne 0x4ba5d6
or al, 2
mov byte [ecx + edi + 0x28], al
jmp 0x4ba5df
push 0x1a
pop eax
mov word [esi], ax
add esi, 2
sub esi, dword [ebp + 0xc]
and esi, 0xfffffffe
pop edi
mov eax, esi
pop esi
pop ebx
leave
ret
Function at 0x4bd055
Capabilities:
Clear file content

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x2c
push ebx
mov ebx, dword [ebp + 8]
lea ecx, [ebp - 0x2c]
push esi
push edi
push dword [ebp + 0x10]
push dword [ebp + 0xc]
push ebx
call fcn.004bcfd1
mov eax, dword [ebp - 0x2c]
and eax, dword [ebp - 0x28]
cmp eax, 0xffffffff
je 0x4bd1cd
mov eax, dword [ebp - 0x24]
and eax, dword [ebp - 0x20]
cmp eax, 0xffffffff
je 0x4bd1cd
mov ecx, dword [ebp - 0x18]
mov eax, dword [ebp - 0x1c]
mov dword [ebp - 8], ecx
mov dword [ebp - 4], eax
test ecx, ecx
jl 0x4bd17c
jg 0x4bd0ae
test eax, eax
je 0x4bd172
push 1
push 0x1000
call fcn.004ae927
mov esi, eax
pop ecx
pop ecx
test esi, esi
jne 0x4bd0d4
mov eax, dword [ebp + 0x14]
push 0xc
pop edi
mov byte [eax + 0x1c], 1
mov dword [eax + 0x18], edi
jmp 0x4bd169
push 0x8000
push ebx
call fcn.004ab304
mov edi, dword [ebp + 0x14]
pop ecx
pop ecx
mov ecx, dword [ebp - 0x1c]
mov dword [ebp - 0xc], eax
mov eax, dword [ebp - 0x18]
test eax, eax
jl 0x4bd100
jg 0x4bd0fb
cmp ecx, 0x1000
jb 0x4bd100
mov ecx, 0x1000
push edi
push ecx
push esi
push ebx
call fcn.004af45b
add esp, 0x10
cmp eax, 0xffffffff
je 0x4bd145
mov ecx, dword [ebp - 4]
cdq
sub ecx, eax
mov eax, dword [ebp - 8]
mov dword [ebp - 4], ecx
sbb eax, edx
mov dword [ebp - 8], eax
test eax, eax
jg 0x4bd0fb
jl 0x4bd12c
test ecx, ecx
jne 0x4bd0ed
push dword [ebp - 0xc]
push ebx
call fcn.004ab304
push esi
call fcn.004ad291
add esp, 0xc
xor edi, edi
jmp 0x4bd1de
cmp byte [edi + 0x24], 0
je 0x4bd15c
cmp dword [edi + 0x20], 5
jne 0x4bd15c
mov byte [edi + 0x1c], 1
mov dword [edi + 0x18], 0xd
cmp byte [edi + 0x1c], 0
je 0x4bd167
mov edi, dword [edi + 0x18]
jmp 0x4bd169
xor edi, edi
push esi
call fcn.004ad291
pop ecx
jmp 0x4bd1de
test ecx, ecx
jg 0x4bd13e
jl 0x4bd17c
test eax, eax
jae 0x4bd13e
push 0
push dword [ebp + 0x10]
push dword [ebp + 0xc]
push ebx
call fcn.004af8a2
and eax, edx
add esp, 0x10
cmp eax, 0xffffffff
jne 0x4bd19f
mov edi, dword [ebp + 0x14]
cmp byte [edi + 0x1c], 0
je 0x4bd13e
jmp 0x4bd1d6
push ebx
call fcn.004b616d
pop ecx
push eax
call dword [sym.imp.KERNEL32.dll_SetEndOfFile]
test eax, eax
jne 0x4bd13e
mov esi, dword [ebp + 0x14]
call dword [sym.imp.KERNEL32.dll_GetLastError]
push 0xd
mov byte [esi + 0x24], 1
mov dword [esi + 0x20], eax
pop edi
mov byte [esi + 0x1c], 1
mov dword [esi + 0x18], edi
jmp 0x4bd1de
mov edi, dword [ebp + 0x14]
cmp byte [edi + 0x1c], 0
je 0x4bd1db
mov edi, dword [edi + 0x18]
jmp 0x4bd1de
push 0x16
pop edi
push 0
push dword [ebp - 0x28]
push dword [ebp - 0x2c]
push dword [ebp - 0x14]
call fcn.004af8a2
add esp, 0x10
mov eax, edi
pop edi
pop esi
pop ebx
leave
ret

Function at 0x4bd6c0
Capabilities:
Parse pe header

Disassembly:
push ebp
mov ebp, esp
mov eax, dword [ebp + 8]
mov ecx, 0x5a4d
cmp word [eax], cx
jne 0x4bd6ed
mov ecx, dword [eax + 0x3c]
add ecx, eax
cmp dword [ecx], 0x4550
jne 0x4bd6ed
mov edx, 0x10b
xor eax, eax
cmp word [ecx + 0x18], dx
sete al
pop ebp
ret
xor eax, eax
pop ebp
ret
Function at 0x402294
Capabilities:
Read .ini file

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffffc
pushal
mov ecx, 6
lea edx, [0x4032b6]
mov eax, 0
add eax, dword [edx]
add edx, 4
sub ecx, 1
jne 0x4022ab
add eax, 5
add eax, 2
mov dword [0x4032fe], eax
push 0x100
push 0x403eac
push dword [0x403cf0]
call sub.kernel32.dll_GetModuleFileNameA
lea eax, [ebp - 4]
push eax
push 0x403bc0
push 0x100
push 0x403eac
call sub.kernel32.dll_GetFullPathNameA
mov esi, dword [ebp - 4]
lodsb al, byte [esi]
test al, al
jne 0x4022fa
mov al, 0x2e
mov byte [esi - 1], al
cmp al, 0x2e
jne 0x4022f0
mov dword [esi], 0x696e69
push 0x403bc0
push 0x104
push 0x403eac
push str.Position
push str.Position
push str.Position
call sub.kernel32.dll_GetPrivateProfileStringA
cmp byte [0x403eac], 0x50
je 0x402381
mov edi, 0x403cc4
mov edx, 0x403eac
mov ecx, 0xb
call fcn.00402490
stosd dword es:[edi], eax
loop 0x40233f
push 0x403cc4
push dword [0x4039a0]
call sub.user32.dll_SetWindowPlacement
push 0x403e64
push dword [0x4039a0]
call sub.user32.dll_GetClientRect
mov eax, dword [0x4032fe]
mov edx, 0xb0
cmp dword [0x403e6c], eax
jb 0x402381
cmp dword [0x403e70], edx
jae 0x40239e
push 2
push 0xdc
push 0x190
push 0
push 0
push 0
push dword [0x4039a0]
call sub.user32.dll_SetWindowPos
clc
popal
mov esp, ebp
pop ebp
ret

Function at 0x438c8b
Capabilities:
Encode data using xor

Disassembly:
mov ecx, 0x438a14
mov edi, edi
call fcn.00438cc6
add edx, edi
add edi, 0x8db6806b
xor dword [eax], ecx
add edi, 0x9d118932
inc eax
and edx, edi
sub edx, 0x52fa0508
mov edx, 0xf8104e37
cmp eax, esi
jne fcn.00438c8b
and edi, edi
mov edi, 0xc8b01eb5
ret