joyce8/EMBER2024-capa huggingface dataset:
Function at 0x447340
Capabilities:
Write file on windows

Disassembly:
sub esp, 0x3ec
push ebx
push esi
mov esi, edx
mov ebx, ecx
push edi
lea edi, [esi + 1]
mov al, byte [esi]
inc esi
test al, al
jne 0x447350
lea ecx, [esp + 0x10]
sub esi, edi
sub ecx, edx
nop
mov al, byte [edx]
lea edx, [edx + 1]
mov byte [ecx + edx - 1], al
test al, al
jne 0x447360
push 0
lea eax, [esp + 0x10]
mov byte [esp + esi + 0x14], 0xa
push eax
lea eax, [esi + 1]
push eax
lea eax, [esp + 0x1c]
push eax
push ebx
call dword [sym.imp.KERNEL32.dll_WriteFile]
pop edi
pop esi
pop ebx
add esp, 0x3ec
ret
Function at 0x447880
Capabilities:
Create directory
Get common file path

Disassembly:
push 0x4b1580
push 0x104
mov byte [0x4b1580], 0
call dword [sym.imp.KERNEL32.dll_GetTempPathA]
test eax, eax
je 0x44796a
mov ecx, 0x4b1580
lea edx, [ecx + 1]
mov al, byte [ecx]
inc ecx
test al, al
jne 0x4478a7
sub ecx, edx
push ebx
push edi
mov ebx, 0x4b1580
cmp byte [ecx + 0x4b157f], 0x5c
je 0x4478d6
lea edi, [ebx - 1]
mov al, byte [edi + 1]
lea edi, [edi + 1]
test al, al
jne 0x4478c3
mov ax, word [0x470354]
mov word [edi], ax
lea ecx, [ebx - 1]
lea esp, [esp]
mov al, byte [ecx + 1]
lea ecx, [ecx + 1]
test al, al
jne 0x4478e0
mov eax, dword [str.PureBasic]
mov dword [ecx], eax
mov eax, dword [0x47ddb0]
mov dword [ecx + 4], eax
mov ax, word [0x47ddb4]
push esi
mov word [ecx + 8], ax
call dword [sym.imp.KERNEL32.dll_GetTickCount]
push 0xa
push 0x487860
push eax
call fcn.0044e90f
mov edx, 0x487860
add esp, 0xc
mov esi, edx
mov al, byte [edx]
inc edx
test al, al
jne 0x447921
sub edx, esi
lea edi, [ebx - 1]
lea ecx, [ecx]
mov al, byte [edi + 1]
inc edi
test al, al
jne 0x447930
mov ecx, edx
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, edx
and ecx, 3
push 0
rep movsb byte es:[edi], byte [esi]
push 0x4b1580
call dword [sym.imp.KERNEL32.dll_CreateDirectoryA]
dec ebx
pop esi
mov al, byte [ebx + 1]
inc ebx
test al, al
jne 0x447955
mov ax, word [0x470354]
mov edi, ebx
mov word [edi], ax
pop edi
pop ebx
ret

Function at 0x447970
Capabilities:
Read file on windows

Disassembly:
push ecx
push ebx
push ebp
mov ebx, ecx
call fcn.004472b0
mov ebp, eax
test ebp, ebp
je 0x447a73
push esi
mov esi, dword [sym.imp.KERNEL32.dll_SetFilePointer]
push edi
push 2
push 0
push 0
push ebp
call esi
push 0
push 0
push 0
push ebp
mov edi, eax
call esi
lea ecx, [edi + 1]
push ecx
push 0
push dword [0x49184c]
call dword [sym.imp.KERNEL32.dll_HeapAlloc]
push 0
lea ecx, [esp + 0x14]
mov dword [0x4922a8], eax
push ecx
push edi
push eax
push ebp
call dword [sym.imp.KERNEL32.dll_ReadFile]
push ebp
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov eax, dword [0x4922a8]
add eax, edi
mov dword [0x4922ac], eax
mov byte [eax], 0
cmp byte [ebx + 1], 0x3a
je 0x447a4c
push 2
push 0x47ddb8
push ebx
call fcn.0044e7f0
add esp, 0xc
test eax, eax
je 0x447a4c
xor ecx, ecx
lea esp, [esp]
mov al, byte [ecx + 0x4afd80]
lea ecx, [ecx + 1]
mov byte [ecx + 0x4b113f], al
test al, al
jne 0x447a00
mov ecx, ebx
call fcn.00446fd0
mov edx, eax
mov esi, eax
mov edi, edi
mov al, byte [edx]
inc edx
test al, al
jne 0x447a20
mov edi, 0x4b1140
sub edx, esi
dec edi
nop
mov al, byte [edi + 1]
inc edi
test al, al
jne 0x447a30
mov ecx, edx
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, edx
and ecx, 3
rep movsb byte es:[edi], byte [esi]
pop edi
pop esi
pop ebp
pop ebx
pop ecx
ret
mov ecx, ebx
call fcn.00446fd0
mov edx, 0x4b1140
sub edx, eax
lea ebx, [ebx]
mov cl, byte [eax]
lea eax, [eax + 1]
mov byte [edx + eax - 1], cl
test cl, cl
jne 0x447a60
pop edi
pop esi
pop ebp
pop ebx
pop ecx
ret
push ebx
push 0x5b
call fcn.00412c30
add esp, 8
pop ebp
pop ebx
pop ecx
ret
Function at 0x449353
Capabilities:
Parse pe header

Disassembly:
push 0
call dword [sym.imp.KERNEL32.dll_GetModuleHandleW]
test eax, eax
je 0x449392
mov ecx, 0x5a4d
cmp word [eax], cx
jne 0x449392
mov ecx, dword [eax + 0x3c]
add ecx, eax
cmp dword [ecx], 0x4550
jne 0x449392
mov eax, 0x10b
cmp word [ecx + 0x18], ax
jne 0x449392
cmp dword [ecx + 0x74], 0xe
jbe 0x449392
cmp dword [ecx + 0xe8], 0
setne al
ret
xor al, al
ret

Function at 0x459931
Capabilities:
Allocate thread local storage

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push esi
push 0x46a7a8
push 0x46a7a0
push str.FlsAlloc
push 0x1f
call fcn.004597f0
mov esi, eax
add esp, 0x10
test esi, esi
je 0x459965
push dword [ebp + 8]
mov ecx, esi
call dword [0x4681a4]
call esi
jmp 0x45996b
call dword [sym.imp.KERNEL32.dll_TlsAlloc]
pop esi
pop ebp
ret 4

Function at 0x4599af
Capabilities:
Get thread local storage value

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push esi
push 0x46a7b8
push 0x46a7b0
push str.FlsGetValue
push 0x21
call fcn.004597f0
mov esi, eax
add esp, 0x10
test esi, esi
je 0x4599e6
push dword [ebp + 8]
mov ecx, esi
call dword [0x4681a4]
call esi
pop esi
pop ebp
ret 4
pop esi
pop ebp
jmp dword [sym.imp.KERNEL32.dll_TlsGetValue]

Function at 0x4599ee
Capabilities:
Set thread local storage value

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push esi
push 0x46a7c0
push 0x46a7b8
push str.FlsSetValue
push 0x22
call fcn.004597f0
mov esi, eax
add esp, 0x10
test esi, esi
je 0x459a28
push dword [ebp + 0xc]
mov ecx, esi
push dword [ebp + 8]
call dword [0x4681a4]
call esi
pop esi
pop ebp
ret 8
pop esi
pop ebp
jmp dword [sym.imp.KERNEL32.dll_TlsSetValue]
Function at 0x45b211
Capabilities:
Set environment variable

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
pop ebp
jmp fcn.0045ad2c
Function at 0x45e1bb
Capabilities:
Query environment variable

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push ecx
push ecx
push esi
call dword [sym.imp.KERNEL32.dll_GetEnvironmentStringsW]
mov esi, eax
test esi, esi
je 0x45e258
push ebx
push esi
call fcn.0045e184
xor ebx, ebx
sub eax, esi
push ebx
push ebx
push ebx
push ebx
sar eax, 1
push eax
push esi
push ebx
push ebx
mov dword [ebp - 8], eax
call fcn.0045aa60
add esp, 0x24
mov dword [ebp - 4], eax
test eax, eax
jne 0x45e205
push esi
call dword [sym.imp.KERNEL32.dll_FreeEnvironmentStringsW]
xor eax, eax
jmp 0x45e257
push edi
push eax
call fcn.004579bf
mov edi, eax
pop ecx
push ebx
test edi, edi
jne 0x45e225
call fcn.00457985
pop ecx
push esi
call dword [sym.imp.KERNEL32.dll_FreeEnvironmentStringsW]
xor eax, eax
jmp 0x45e256
push ebx
push dword [ebp - 4]
push edi
push dword [ebp - 8]
push esi
push ebx
push ebx
call fcn.0045aa60
add esp, 0x20
test eax, eax
jne 0x45e244
push edi
call fcn.00457985
jmp 0x45e24c
push ebx
call fcn.00457985
mov ebx, edi
pop ecx
push esi
call dword [sym.imp.KERNEL32.dll_FreeEnvironmentStringsW]
mov eax, ebx
pop edi
pop ebx
pop esi
leave
ret

Function at 0x45e25b
Capabilities:
Query environment variable

Disassembly:
mov edi, edi
push esi
call dword [sym.imp.KERNEL32.dll_GetEnvironmentStringsW]
mov esi, eax
test esi, esi
jne 0x45e26c
pop esi
ret
push ebx
push edi
push esi
call fcn.0045e184
mov ebx, eax
sub ebx, esi
and ebx, 0xfffffffe
push ebx
call fcn.004579bf
mov edi, eax
pop ecx
pop ecx
test edi, edi
je 0x45e294
push ebx
push esi
push edi
call fcn.0044a9b0
add esp, 0xc
push 0
call fcn.00457985
pop ecx
push esi
call dword [sym.imp.KERNEL32.dll_FreeEnvironmentStringsW]
mov eax, edi
pop edi
pop ebx
pop esi
ret
Function at 0x46177f
Capabilities:
Read file on windows

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x18
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 + 0x486638]
mov dword [ebp - 0xc], ecx
mov ecx, dword [edi + eax + 0x18]
mov dword [ebp - 0x14], ecx
mov ecx, dword [ebp + 0x10]
test ecx, ecx
je 0x4617bf
cmp byte [ebx], 0xa
jne 0x4617bf
or byte [edi + eax + 0x28], 4
jmp 0x4617c4
and byte [edi + eax + 0x28], 0xfb
add ecx, ebx
mov eax, ebx
mov dword [ebp - 0x10], ecx
mov esi, ebx
mov dword [ebp - 8], eax
cmp ebx, ecx
jae 0x4618c3
mov dl, byte [eax]
cmp dl, 0x1a
je 0x4618a6
inc eax
cmp dl, 0xd
je 0x4617f0
mov dword [ebp - 8], eax
mov byte [esi], dl
jmp 0x461816
cmp eax, ecx
jae 0x461824
mov cl, byte [eax]
xor eax, eax
cmp cl, 0xa
sete al
inc eax
add dword [ebp - 8], eax
cmp cl, 0xa
sete al
dec al
and al, 3
add al, 0xa
mov byte [esi], al
mov eax, dword [ebp - 8]
mov ecx, dword [ebp - 0x10]
xor edx, edx
inc edx
add esi, edx
cmp eax, ecx
jb 0x4617d8
jmp 0x4618c3
push 0
lea eax, [ebp - 0x10]
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 0x4618a1
cmp dword [ebp - 0x10], 0
je 0x4618a1
mov ecx, dword [ebp - 0xc]
mov eax, dword [ecx*4 + 0x486638]
test byte [eax + edi + 0x28], 0x48
je 0x46187b
mov dl, byte [ebp - 1]
lea eax, [esi + 1]
mov dword [ebp - 0x14], eax
cmp dl, 0xa
jne 0x461866
mov byte [esi], dl
jmp 0x461877
mov byte [esi], 0xd
mov eax, dword [ecx*4 + 0x486638]
mov byte [eax + edi + 0x2a], dl
mov eax, dword [ebp - 0x14]
mov esi, eax
jmp 0x4618c3
cmp byte [ebp - 1], 0xa
jne 0x46188a
cmp esi, ebx
jne 0x46188a
mov byte [esi], 0xa
jmp 0x4618c2
push 1
push 0xffffffffffffffff
push 0xffffffffffffffff
push dword [ebp + 8]
call fcn.004616ef
add esp, 0x10
cmp byte [ebp - 1], 0xa
je 0x4618c3
mov byte [esi], 0xd
jmp 0x4618c2
mov ecx, dword [ebp - 0xc]
mov ecx, dword [ecx*4 + 0x486638]
mov al, byte [ecx + edi + 0x28]
test al, 0x40
jne 0x4618c0
or al, 2
mov byte [ecx + edi + 0x28], al
jmp 0x4618c3
mov byte [esi], dl
inc esi
sub esi, ebx
pop edi
mov eax, esi
pop esi
pop ebx
leave
ret
Function at 0x4618cc
Capabilities:
Read file on windows

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x1c
mov eax, dword [ebp + 8]
mov ecx, eax
push ebx
mov ebx, dword [ebp + 0xc]
and eax, 0x3f
push esi
sar ecx, 6
push edi
imul edi, eax, 0x38
mov dword [ebp - 8], ecx
mov eax, dword [ecx*4 + 0x486638]
push 0xa
pop edx
mov dword [ebp - 0x18], edx
mov ecx, dword [eax + edi + 0x18]
mov dword [ebp - 0x1c], ecx
mov ecx, dword [ebp + 0x10]
test ecx, ecx
je 0x461912
cmp word [ebx], dx
jne 0x461912
or byte [eax + edi + 0x28], 4
jmp 0x461917
and byte [eax + edi + 0x28], 0xfb
lea edx, [ebx + ecx*2]
mov eax, ebx
mov dword [ebp - 0xc], edx
mov esi, ebx
mov dword [ebp - 4], eax
cmp ebx, edx
jae 0x461a7a
mov dword [ebp - 0x10], 0xd
movzx ecx, word [eax]
mov edx, ecx
mov dword [ebp - 0x14], edx
mov edx, dword [ebp - 0xc]
cmp ecx, 0x1a
je 0x461a5a
add eax, 2
cmp cx, word [ebp - 0x10]
je 0x461958
mov dword [ebp - 4], eax
mov word [esi], cx
jmp 0x46198e
cmp eax, edx
jae 0x46199c
movzx eax, word [eax]
xor ecx, ecx
cmp ax, word [ebp - 0x18]
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 - 0xc]
sete al
dec eax
and eax, 3
add eax, ecx
mov word [esi], ax
mov eax, dword [ebp - 4]
push 2
pop ecx
add esi, ecx
cmp eax, edx
jb 0x461933
jmp 0x461a7a
push 0
lea eax, [ebp - 0x18]
push eax
push 2
lea eax, [ebp - 4]
push eax
push dword [ebp - 0x1c]
call dword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
je 0x461a55
cmp dword [ebp - 0x18], 0
je 0x461a55
mov edx, dword [ebp - 8]
push 0xa
mov eax, dword [edx*4 + 0x486638]
test byte [eax + edi + 0x28], 0x48
je 0x461a2b
lea eax, [esi + 2]
mov dword [ebp - 0x1c], eax
mov ax, word [ebp - 4]
pop ecx
mov word [ebp - 2], ax
cmp ax, cx
jne 0x4619ef
mov word [esi], cx
jmp 0x461a26
push 0xd
pop ecx
mov word [esi], cx
movzx ecx, ax
mov eax, dword [edx*4 + 0x486638]
mov dx, word [ebp - 2]
shr ecx, 8
push 0xa
mov byte [eax + edi + 0x2a], dl
mov edx, dword [ebp - 8]
mov eax, dword [edx*4 + 0x486638]
mov byte [eax + edi + 0x2b], cl
mov eax, dword [edx*4 + 0x486638]
pop ecx
mov byte [eax + edi + 0x2c], cl
mov esi, dword [ebp - 0x1c]
jmp 0x461a7a
pop eax
cmp word [ebp - 4], ax
jne 0x461a3b
cmp esi, ebx
jne 0x461a3b
mov word [esi], ax
jmp 0x461a77
push 1
push 0xffffffffffffffff
push 0xfffffffffffffffe
push dword [ebp + 8]
call fcn.004616ef
add esp, 0x10
push 0xa
pop eax
cmp word [ebp - 4], ax
je 0x461a7a
push 0xd
pop eax
jmp 0x461a36
mov edx, dword [ebp - 8]
mov edx, dword [edx*4 + 0x486638]
mov al, byte [edx + edi + 0x28]
test al, 0x40
jne 0x461a74
or al, 2
mov byte [edx + edi + 0x28], al
jmp 0x461a7a
mov word [esi], cx
add esi, 2
sub esi, ebx
and esi, 0xfffffffe
pop edi
mov eax, esi
pop esi
pop ebx
leave
ret
Function at 0x46493e
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]
mov edi, dword [ebp + 0x14]
push dword [ebp + 0xc]
push ebx
call fcn.004648ba
mov eax, dword [ebp - 0x2c]
and eax, dword [ebp - 0x28]
cmp eax, 0xffffffff
je 0x464aad
mov eax, dword [ebp - 0x24]
and eax, dword [ebp - 0x20]
cmp eax, 0xffffffff
je 0x464aad
mov ecx, dword [ebp - 0x18]
mov eax, dword [ebp - 0x1c]
mov dword [ebp - 8], ecx
mov dword [ebp - 4], eax
test ecx, ecx
jl 0x464a62
jg 0x46499a
test eax, eax
je 0x464a58
push 1
push 0x1000
call fcn.00459660
mov esi, eax
pop ecx
pop ecx
test esi, esi
jne 0x4649bd
push 0xc
pop ebx
mov byte [edi + 0x1c], 1
mov dword [edi + 0x18], ebx
jmp 0x464a4f
push 0x8000
push ebx
call fcn.00456e3d
pop ecx
pop ecx
mov ecx, dword [ebp - 0x1c]
mov dword [ebp - 0xc], eax
mov eax, dword [ebp - 0x18]
test eax, eax
jl 0x4649e6
jg 0x4649e1
cmp ecx, 0x1000
jb 0x4649e6
mov ecx, 0x1000
push edi
push ecx
push esi
push ebx
call fcn.0045a647
add esp, 0x10
cmp eax, 0xffffffff
je 0x464a2b
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 0x4649e1
jl 0x464a12
test ecx, ecx
jne 0x4649d3
push dword [ebp - 0xc]
push ebx
call fcn.00456e3d
push esi
call fcn.00457985
add esp, 0xc
xor ebx, ebx
jmp 0x464abb
cmp byte [edi + 0x24], 0
je 0x464a42
cmp dword [edi + 0x20], 5
jne 0x464a42
mov byte [edi + 0x1c], 1
mov dword [edi + 0x18], 0xd
cmp byte [edi + 0x1c], 0
je 0x464a4d
mov ebx, dword [edi + 0x18]
jmp 0x464a4f
xor ebx, ebx
push esi
call fcn.00457985
pop ecx
jmp 0x464abb
test ecx, ecx
jg 0x464a24
jl 0x464a62
test eax, eax
jae 0x464a24
push 0
push dword [ebp + 0x10]
push dword [ebp + 0xc]
push ebx
call fcn.004616ef
and eax, edx
add esp, 0x10
cmp eax, 0xffffffff
jne 0x464a82
cmp byte [edi + 0x1c], 0
je 0x464a24
jmp 0x464ab3
push ebx
call fcn.0045e673
pop ecx
push eax
call dword [sym.imp.KERNEL32.dll_SetEndOfFile]
test eax, eax
jne 0x464a24
call dword [sym.imp.KERNEL32.dll_GetLastError]
push 0xd
mov byte [edi + 0x24], 1
mov dword [edi + 0x20], eax
pop ebx
mov byte [edi + 0x1c], 1
mov dword [edi + 0x18], ebx
jmp 0x464abb
cmp byte [edi + 0x1c], 0
je 0x464ab8
mov ebx, dword [edi + 0x18]
jmp 0x464abb
push 0x16
pop ebx
push 0
push dword [ebp - 0x28]
push dword [ebp - 0x2c]
push dword [ebp - 0x14]
call fcn.004616ef
add esp, 0x10
mov eax, ebx
pop edi
pop esi
pop ebx
leave
ret

Function at 0x4663c0
Capabilities:
Parse pe header

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

Disassembly:
mov eax, dword [str._ISMSIDEL.INI]
sub esp, 0xc00
lea edx, [esp]
push ebx
mov ebx, ecx
push edi
push eax
mov ecx, dword [ebx + 4]
push ecx
push edx
call fcn.004059e0
lea eax, [esp + 8]
push eax
call fcn.00405b60
test eax, eax
jne 0x40121a
pop edi
mov eax, 1
pop ebx
add esp, 0xc00
ret
cmp dword [ebx + 0xc], 0x1f4
jb 0x401231
pop edi
mov eax, 1
pop ebx
add esp, 0xc00
ret
mov ecx, 0x100
xor eax, eax
lea edi, [esp + 0x408]
lea edx, [esp + 8]
rep stosd dword es:[edi], eax
lea ecx, [esp + 0x408]
push ecx
push edx
mov ecx, ebx
call fcn.00401570
test eax, eax
jne 0x401282
lea eax, [esp + 8]
push eax
call fcn.00405c10
test eax, eax
je 0x401282
mov ecx, dword [ebx + 4]
push ecx
call fcn.00405bc0
test eax, eax
je 0x401282
pop edi
mov eax, 1
pop ebx
add esp, 0xc00
ret
mov al, byte [esp + 0x408]
push esi
test al, al
lea esi, [esp + 0x40c]
je 0x4012f7
mov edi, dword [sym.imp.KERNEL32.dll_lstrlenA]
push ebp
mov ebp, dword [sym.imp.KERNEL32.dll_GetPrivateProfileStringA]
mov ecx, dword [str.NO_KEY_VALUE]
lea edx, [esp + 0x10]
push edx
mov edx, dword [str.Files]
lea eax, [esp + 0x814]
push 0x400
push eax
push ecx
push esi
push edx
call ebp
lea eax, [esp + 0x810]
push eax
call fcn.00405c10
test eax, eax
je 0x4012e7
push 0
lea ecx, [esp + 0x14]
push esi
push ecx
mov ecx, ebx
call fcn.004015b0
jmp 0x4012ea
inc dword [ebx + 0xc]
push esi
call edi
lea esi, [esi + eax + 1]
cmp byte [esi], 0
jne 0x4012a2
pop ebp
pop esi
pop edi
xor eax, eax
pop ebx
add esp, 0xc00
ret

Function at 0x401570
Capabilities:
Read .ini file

Disassembly:
mov eax, dword [esp + 4]
mov ecx, dword [str.Files]
push esi
mov esi, dword [esp + 0xc]
push eax
push 0x400
push esi
push 0x40fc60
push 0
push ecx
call dword [sym.imp.KERNEL32.dll_GetPrivateProfileStringA]
push esi
call dword [sym.imp.KERNEL32.dll_lstrlenA]
neg eax
sbb eax, eax
pop esi
neg eax
ret 8
Function at 0x401630
Capabilities:
Get common file path

Disassembly:
sub esp, 0x800
push ebx
push esi
push edi
mov ebx, ecx
call fcn.00401060
mov esi, eax
mov ecx, esi
call fcn.004041a0
push 1
mov ecx, esi
mov edi, eax
call fcn.00404170
mov ecx, edi
call fcn.00404be0
test ax, ax
jne 0x4016a1
push 2
mov ecx, esi
call fcn.00404170
mov ecx, esi
call fcn.00404160
push eax
mov ecx, esi
call fcn.004040d0
mov ecx, ebx
call fcn.00401850
test eax, eax
jne 0x40175f
push eax
push 0x481
call fcn.00405270
add esp, 8
xor eax, eax
pop edi
pop esi
pop ebx
add esp, 0x800
ret
mov ecx, edi
call fcn.00404c20
push eax
mov ecx, esi
call fcn.00404110
lea eax, [esp + 0x40c]
push 0x400
push eax
mov ecx, ebx
call fcn.00401770
test eax, eax
jne 0x4016ec
mov ecx, esi
call fcn.00404120
shr eax, 0xa
push eax
push 0x47f
call fcn.00405270
add esp, 8
xor eax, eax
pop edi
pop esi
pop ebx
add esp, 0x800
ret
lea ecx, [esp + 0xc]
lea edx, [esp + 0x40c]
push ecx
push 0
push 0x40f0e8
push edx
call dword [sym.imp.KERNEL32.dll_GetTempFileNameA]
lea eax, [esp + 0xc]
push eax
call fcn.00405c10
lea ecx, [esp + 0xc]
push 0x2e
push ecx
call fcn.004066a0
add esp, 8
lea edx, [esp + 0xc]
mov byte [eax], 0
push edx
call fcn.00405b90
test eax, eax
jne 0x40173a
lea eax, [esp + 0xc]
push eax
call fcn.00405ac0
lea ecx, [esp + 0xc]
push ecx
mov ecx, esi
call fcn.004040d0
mov ecx, esi
call fcn.00404720
test eax, eax
jne 0x401678
pop edi
pop esi
pop ebx
add esp, 0x800
ret
pop edi
pop esi
mov eax, 1
pop ebx
add esp, 0x800
ret

Function at 0x401770
Capabilities:
Get common file path

Disassembly:
push ebx
push ebp
push esi
push edi
mov ebx, ecx
call fcn.00401060
mov ecx, eax
call fcn.00404120
mov edi, dword [esp + 0x14]
mov ebp, dword [esp + 0x18]
mov esi, eax
push edi
push ebp
shr esi, 0xa
call dword [sym.imp.KERNEL32.dll_GetTempPathA]
test eax, eax
je 0x4017b3
push 0x8003
call dword [sym.imp.KERNEL32.dll_SetErrorMode]
push esi
push edi
mov ecx, ebx
call fcn.00401810
test eax, eax
jne 0x401801
push ebp
push edi
call dword [sym.imp.KERNEL32.dll_GetWindowsDirectoryA]
test eax, eax
jle 0x4017cc
push esi
push edi
mov ecx, ebx
call fcn.00401810
test eax, eax
jne 0x401801
push 0x40fc60
push edi
call dword [sym.imp.KERNEL32.dll_lstrcpyA]
push edi
push esi
push 3
call fcn.004058a0
add esp, 0xc
test eax, eax
jge 0x401801
push edi
push esi
push 4
call fcn.004058a0
add esp, 0xc
test eax, eax
jge 0x401801
pop edi
pop esi
pop ebp
xor eax, eax
pop ebx
ret 8
pop edi
pop esi
pop ebp
mov eax, 1
pop ebx
ret 8
Function at 0x4021b0
Capabilities:
Hide graphical window

Disassembly:
mov eax, dword [0x40fc78]
push eax
call dword [sym.imp.USER32.dll_IsWindow]
test eax, eax
je 0x4021cf
mov ecx, dword [0x40fc78]
push 0
push ecx
call dword [sym.imp.USER32.dll_ShowWindow]
ret

Function at 0x4024f0
Capabilities:
Inspect load icon resource

Disassembly:
mov eax, dword [esp + 4]
push ebx
push esi
push edi
push eax
call fcn.00403100
add esp, 4
test eax, eax
jne 0x402671
push 0x410190
call fcn.004031a0
add esp, 4
test eax, eax
jne 0x402671
mov ecx, dword [esp + 0x28]
mov edx, dword [0x410190]
push 0x41059c
mov dword [ecx], edx
call fcn.00403150
add esp, 4
test eax, eax
jne 0x402671
mov ebx, dword [esp + 0x24]
mov eax, dword [0x41059c]
mov dword [ebx], eax
mov eax, dword [0x410190]
cmp eax, 1
jne 0x402559
pop edi
pop esi
xor eax, eax
pop ebx
ret
lea ecx, [esp + 0x10]
push ecx
push 0x4105b0
call fcn.004024d0
test eax, eax
jne 0x402671
mov edx, dword [0x410190]
lea eax, [edx*4]
push eax
push 0x42
call dword [sym.imp.KERNEL32.dll_GlobalAlloc]
push eax
call dword [sym.imp.KERNEL32.dll_GlobalLock]
test eax, eax
mov dword [0x410194], eax
jne 0x40259f
pop edi
pop esi
mov eax, 0xfffffffc
pop ebx
ret
push 0x410190
call fcn.004031d0
mov esi, eax
add esp, 4
test esi, esi
je 0x4025de
mov ecx, dword [0x410194]
mov edi, dword [sym.imp.KERNEL32.dll_GlobalHandle]
push ecx
call edi
push eax
call dword [sym.imp.KERNEL32.dll_GlobalUnlock]
mov edx, dword [0x410194]
push edx
call edi
push eax
call dword [sym.imp.KERNEL32.dll_GlobalFree]
mov eax, esi
pop edi
pop esi
pop ebx
ret
mov eax, dword [esp + 0x20]
mov esi, dword [esp + 0x18]
and eax, 0xffff
mov dword [0x4105a8], ebx
push eax
push esi
call dword [sym.imp.USER32.dll_LoadIconA]
mov edx, dword [esp + 0x1c]
mov ecx, dword [esp + 0x14]
push 0
push 0x4028a0
and edx, 0xffff
push ecx
push edx
push esi
mov dword [0x4105ac], eax
call dword [sym.imp.USER32.dll_DialogBoxParamA]
mov esi, eax
mov eax, dword [0x4105ac]
test eax, eax
je 0x40262e
push eax
call dword [sym.imp.USER32.dll_DestroyIcon]
cmp esi, 1
jne 0x402637
xor esi, esi
jmp 0x40263f
cmp esi, 2
jne 0x40263f
or esi, 0xffffffff
mov eax, dword [0x410194]
test eax, eax
je 0x402667
mov edi, dword [sym.imp.KERNEL32.dll_GlobalHandle]
push eax
call edi
push eax
call dword [sym.imp.KERNEL32.dll_GlobalUnlock]
mov eax, dword [0x410194]
push eax
call edi
push eax
call dword [sym.imp.KERNEL32.dll_GlobalFree]
mov ecx, dword [ebx]
mov eax, esi
mov dword [0x41059c], ecx
pop edi
pop esi
pop ebx
ret