joyce8/EMBER2024-capa huggingface dataset:
Function at 0x463b11
Capabilities:
Delete file
Enumerate files on windows
Move file

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x2cc
push ebx
push esi
mov esi, ecx
xor ebx, ebx
push edi
lea ecx, [ebp - 0x34]
mov byte [ebp - 1], bl
mov edi, edx
call fcn.00407627
lea ecx, [ebp - 0x44]
call fcn.00407627
lea ecx, [ebp - 0x24]
call fcn.00407627
lea ecx, [ebp - 0x14]
call fcn.00407627
lea edx, [ebp - 0x34]
mov ecx, esi
call fcn.00404712
lea edx, [ebp - 0x44]
mov ecx, edi
call fcn.00404712
lea edx, [ebp - 0x44]
lea ecx, [ebp - 0x34]
call fcn.00464ce6
mov ecx, dword [ebp - 0x34]
mov byte [ebp - 3], al
call fcn.00464d50
mov esi, 0x4b86c8
test al, al
je 0x463b82
push esi
lea ecx, [ebp - 0x34]
call fcn.00407c6b
mov ecx, dword [ebp - 0x44]
call fcn.00464d50
test al, al
je 0x463b97
push esi
lea ecx, [ebp - 0x44]
call fcn.00407c6b
lea ecx, [ebp - 0x54]
call fcn.00407627
lea ecx, [ebp - 0x64]
call fcn.00407627
push ebx
lea eax, [ebp - 0x64]
push ebx
push eax
lea edx, [ebp - 0x54]
lea ecx, [ebp - 0x34]
call fcn.0040455d
add esp, 0xc
lea eax, [ebp - 0x2c8]
push eax
push dword [ebp - 0x34]
call dword [sym.imp.KERNEL32.dll_FindFirstFileW]
mov esi, eax
mov al, 1
mov byte [ebp - 2], al
cmp esi, 0xffffffff
je 0x463ce3
mov edi, dword [sym.imp.KERNEL32.dll_DeleteFileW]
cmp al, 1
jne 0x463ce3
test byte [ebp - 0x2c8], 0x10
jne 0x463cb7
lea eax, [ebp - 0x29c]
push eax
lea ecx, [ebp - 0x74]
call fcn.00407da1
lea eax, [ebp - 0x24]
push eax
lea edx, [ebp - 0x44]
lea ecx, [ebp - 0x74]
call fcn.00464390
pop ecx
lea ecx, [ebp - 0x74]
call fcn.004058c3
lea eax, [ebp - 0x54]
push eax
lea ecx, [ebp - 0x14]
call fcn.00408007
lea eax, [ebp - 0x64]
push eax
lea ecx, [ebp - 0x14]
call fcn.00407aee
lea eax, [ebp - 0x29c]
push eax
lea ecx, [ebp - 0x14]
call fcn.00407c6b
lea ecx, [ebp - 0x24]
call fcn.00463f59
test al, al
je 0x463c6f
cmp byte [ebp + 8], bl
je 0x463cda
push ebx
lea eax, [ebp - 0x24]
push eax
lea ecx, [ebp - 0x14]
call fcn.004078c8
push dword [ebp - 0x24]
test eax, eax
je 0x463c7d
call edi
cmp byte [ebp + 0xc], 1
jne 0x463ca1
cmp byte [ebp - 3], bl
jne 0x463c88
push dword [ebp - 0x24]
push dword [ebp - 0x14]
call dword [sym.imp.KERNEL32.dll_MoveFileW]
jmp 0x463caf
lea edx, [ebp - 0x24]
lea ecx, [ebp - 0x14]
call fcn.00463d26
movzx eax, al
test eax, eax
je 0x463cda
push dword [ebp - 0x14]
call edi
jmp 0x463caf
lea edx, [ebp - 0x24]
lea ecx, [ebp - 0x14]
call fcn.00463d26
movzx eax, al
test eax, eax
je 0x463cda
mov byte [ebp - 1], 1
lea eax, [ebp - 0x2c8]
push eax
push esi
call dword [sym.imp.KERNEL32.dll_FindNextFileW]
test eax, eax
mov al, byte [ebp - 2]
jne 0x463be1
mov al, bl
mov byte [ebp - 2], al
jmp 0x463be1
push esi
call dword [sym.imp.KERNEL32.dll_FindClose]
jmp 0x463ced
push esi
call dword [sym.imp.KERNEL32.dll_FindClose]
mov bl, byte [ebp - 1]
lea ecx, [ebp - 0x64]
call fcn.004058c3
lea ecx, [ebp - 0x54]
call fcn.004058c3
lea ecx, [ebp - 0x14]
call fcn.004058c3
lea ecx, [ebp - 0x24]
call fcn.004058c3
lea ecx, [ebp - 0x44]
call fcn.004058c3
lea ecx, [ebp - 0x34]
call fcn.004058c3
pop edi
pop esi
mov al, bl
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x463e34
Capabilities:
Delete file
Enumerate files on windows

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
sub esp, 0x288
push ebx
push esi
mov esi, ecx
xor ebx, ebx
lea ecx, [esp + 0x10]
mov byte [esp + 0xf], bl
call fcn.00407627
lea ecx, [esp + 0x20]
call fcn.00407627
lea ecx, [esp + 0x30]
call fcn.00407627
lea edx, [esp + 0x10]
mov ecx, esi
call fcn.00404712
mov ecx, dword [esp + 0x10]
call fcn.00464d50
test al, al
je 0x463e8b
push 0x4b86c8
lea ecx, [esp + 0x14]
call fcn.00407c6b
push ebx
lea eax, [esp + 0x34]
push ebx
push eax
lea edx, [esp + 0x2c]
lea ecx, [esp + 0x1c]
call fcn.0040455d
add esp, 0xc
lea eax, [esp + 0x40]
push eax
push dword [esp + 0x14]
call dword [sym.imp.KERNEL32.dll_FindFirstFileW]
mov esi, eax
mov al, 1
mov byte [esp + 0xe], al
cmp esi, 0xffffffff
je 0x463f2b
cmp al, 1
jne 0x463f2b
test byte [esp + 0x40], 0x10
jne 0x463f06
mov byte [esp + 0xf], al
lea ecx, [esp + 0x10]
lea eax, [esp + 0x20]
push eax
call fcn.00408007
lea eax, [esp + 0x30]
push eax
lea ecx, [esp + 0x14]
call fcn.00407aee
lea eax, [esp + 0x6c]
push eax
lea ecx, [esp + 0x14]
call fcn.00407c6b
push dword [esp + 0x10]
call dword [sym.imp.KERNEL32.dll_DeleteFileW]
cmp eax, 1
jne 0x463f22
lea eax, [esp + 0x40]
push eax
push esi
call dword [sym.imp.KERNEL32.dll_FindNextFileW]
test eax, eax
mov al, byte [esp + 0xe]
jne 0x463ebe
mov al, bl
mov byte [esp + 0xe], al
jmp 0x463ebe
push esi
call dword [sym.imp.KERNEL32.dll_FindClose]
jmp 0x463f36
push esi
call dword [sym.imp.KERNEL32.dll_FindClose]
mov bl, byte [esp + 0xf]
lea ecx, [esp + 0x30]
call fcn.004058c3
lea ecx, [esp + 0x20]
call fcn.004058c3
lea ecx, [esp + 0x10]
call fcn.004058c3
pop esi
mov al, bl
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x46a434
Capabilities:
Create directory
Delete directory

Disassembly:
push ebp
mov ebp, esp
mov eax, 0x50000
call fcn.00432370
lea eax, [ebp - 4]
push eax
lea eax, [ebp - 0x20004]
push eax
push 0x7fff
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.dll_GetFullPathNameW]
test eax, eax
je 0x46a591
push ebx
lea eax, [ebp - 0x20004]
push eax
lea eax, [ebp - 0x10004]
push 0x4b8bf0
push eax
call fcn.004240c8
lea eax, [ebp - 0x10004]
push eax
call fcn.0042362c
mov ebx, eax
add esp, 0x10
cmp word [ebp + ebx*2 - 0x10006], 0x5c
jne 0x46a4ac
cmp word [ebp + ebx*2 - 0x10008], 0x3a
je 0x46a4ac
xor eax, eax
mov word [ebp + ebx*2 - 0x10006], ax
push edi
xor edi, edi
push edi
push dword [ebp + 0xc]
call dword [sym.imp.KERNEL32.dll_CreateDirectoryW]
test eax, eax
jne 0x46a4c6
cmp byte [ebp + 0x10], al
je 0x46a582
push edi
push 0x2200000
push 3
push edi
push edi
push 0x40000000
push dword [ebp + 0xc]
call dword [sym.imp.KERNEL32.dll_CreateFileW]
mov edi, eax
cmp edi, 0xffffffff
je 0x46a579
push 0x2fffa
lea eax, [ebp - 0x50000]
push 0
push eax
call fcn.00423810
lea eax, [ebx + ebx]
mov dword [ebp - 0x50000], 0xa0000003
mov word [ebp - 0x4fff6], ax
mov eax, dword [ebp - 0x4fff6]
add eax, 2
mov word [ebp - 0x4fff4], ax
lea eax, [ebp - 0x10004]
push 0x7fff
push eax
lea eax, [ebp - 0x4fff0]
push eax
call fcn.00424ade
mov eax, dword [ebp - 0x4fff6]
lea ecx, [ebp + 8]
add esp, 0x18
xor edx, edx
add eax, 0xc
mov word [ebp - 0x4fffc], ax
movzx eax, ax
push edx
push ecx
push edx
push edx
add eax, 8
push eax
lea eax, [ebp - 0x50000]
push eax
push 0x900a4
push edi
call dword [sym.imp.KERNEL32.dll_DeviceIoControl]
push edi
test eax, eax
jne 0x46a586
call dword [sym.imp.KERNEL32.dll_CloseHandle]
push dword [ebp + 0xc]
call dword [sym.imp.KERNEL32.dll_RemoveDirectoryW]
xor eax, eax
jmp 0x46a58f
call dword [sym.imp.KERNEL32.dll_CloseHandle]
xor eax, eax
inc eax
pop edi
pop ebx
mov esp, ebp
pop ebp
ret 0xc
Function at 0x430000
Capabilities:
Encode data using xor

Disassembly:
pushal
nop
nop
nop
nop
nop
mov eax, section..text
nop
nop
nop
nop
nop
push 4
pop edi
nop
nop
nop
nop
nop
nop
nop
cmp eax, 0
nop
nop
nop
nop
je 0x430072
nop
mov ebx, 0x408e84
nop
nop
nop
nop
nop
mov ecx, ebx
nop
nop
nop
nop
sub ecx, eax
nop
nop
nop
xor edx, edx
nop
nop
nop
push eax
nop
nop
nop
nop
nop
nop
mov eax, ecx
nop
nop
nop
div edi
nop
nop
nop
nop
nop
xchg ecx, eax
nop
nop
nop
nop
pop eax
nop
nop
nop
mov esi, 0x15513330
nop
nop
nop
nop
xor dword [eax], esi
nop
nop
nop
nop
add eax, edi
nop
nop
nop
loop 0x430060
nop
nop
mov eax, section..data
nop
cmp eax, 0
nop
nop
nop
nop
nop
nop
je 0x4300d2
nop
mov ebx, 0x42e1d0
nop
nop
nop
nop
mov ecx, ebx
nop
nop
nop
nop
nop
sub ecx, eax
nop
nop
nop
xor edx, edx
nop
nop
nop
nop
nop
push eax
nop
nop
nop
mov eax, ecx
nop
nop
nop
nop
div edi
nop
nop
nop
nop
nop
xchg ecx, eax
nop
nop
nop
nop
nop
pop eax
nop
nop
nop
mov esi, 0x42a8718e
nop
xor dword [eax], esi
nop
nop
nop
nop
nop
add eax, edi
nop
nop
nop
loop 0x4300c0
nop
nop
nop
nop
popal
nop
nop
nop
nop
jmp 0x401219

Function at 0x484cd5
Capabilities:
Encode data using xor

Disassembly:
mov ebx, 0x484a08
mov edx, 0x574751d2
sub edx, edx
dec ecx
call fcn.00484d1a
mov edx, 0xa58ce42c
sub ecx, edx
and edx, ecx
xor dword [edi], ebx
sub ecx, 0x2fcb209a
add edx, 0xbfbb9cc2
add edi, 2
add edx, ecx
and ecx, edx
mov ecx, edx
cmp edi, esi
jl fcn.00484cd5
or ecx, ecx
mov edx, 0xdb68e41e
add edx, edx
ret
Function at 0x4015f6
Capabilities:
Delete file

Disassembly:
sub esp, 0x140
push esi
mov esi, ecx
call fcn.004015d8
test eax, eax
je 0x401634
mov eax, dword [esi + 0xc]
test eax, eax
je 0x401638
lea ecx, [esp + 4]
push ecx
push eax
call dword [sym.imp.KERNEL32.dll_FindFirstFileA]
cmp eax, 0xffffffff
je 0x401638
push eax
call dword [sym.imp.KERNEL32.dll_FindClose]
push dword [esi + 0xc]
call dword [sym.imp.KERNEL32.dll_DeleteFileA]
test eax, eax
jne 0x401638
xor eax, eax
jmp 0x40163b
xor eax, eax
inc eax
pop esi
add esp, 0x140
ret
Function at 0x4018d5
Capabilities:
Get common file path

Disassembly:
push ebx
push ebp
push esi
push edi
mov esi, ecx
call fcn.004015d8
mov ecx, esi
call fcn.00401643
mov ebx, dword [sym.imp.KERNEL32.dll_GetTempPathA]
push 0
push 0
call ebx
mov ebp, eax
test ebp, ebp
jne 0x4019a0
push 3
pop ebp
push ebp
push 0x40
call dword [sym.imp.KERNEL32.dll_GlobalAlloc]
push eax
call dword [sym.imp.KERNEL32.dll_GlobalLock]
mov edi, eax
test edi, edi
je 0x4019dc
push 0x41a318
push ebp
push edi
call fcn.004010dd
test eax, eax
jne 0x4019c2
lea eax, [ebp + 0x104]
push eax
push 0x40
xor ebx, ebx
mov dword [esi + 8], eax
call dword [sym.imp.KERNEL32.dll_GlobalAlloc]
push eax
call dword [sym.imp.KERNEL32.dll_GlobalLock]
test eax, eax
mov dword [esi + 0xc], eax
je 0x401974
push eax
push ebx
push 0x41a314
push edi
call dword [sym.imp.KERNEL32.dll_GetTempFileNameA]
test eax, eax
jbe 0x401974
mov eax, dword [esi + 0xc]
cmp byte [eax], bl
je 0x401974
push eax
call fcn.0040efd0
pop ecx
mov dword [esi + 4], eax
inc ebx
mov ebp, dword [sym.imp.KERNEL32.dll_GlobalHandle]
push edi
call ebp
push eax
call dword [sym.imp.KERNEL32.dll_GlobalUnlock]
push edi
call ebp
push eax
call dword [sym.imp.KERNEL32.dll_GlobalFree]
test ebx, ebx
jne 0x401999
mov ecx, esi
call fcn.00401643
mov eax, ebx
pop edi
pop esi
pop ebp
pop ebx
ret
push ebp
push 0x40
call dword [sym.imp.KERNEL32.dll_GlobalAlloc]
push eax
call dword [sym.imp.KERNEL32.dll_GlobalLock]
mov edi, eax
test edi, edi
je 0x4019dc
push edi
push ebp
call ebx
test eax, eax
jne 0x40192e
mov esi, dword [sym.imp.KERNEL32.dll_GlobalHandle]
push edi
call esi
push eax
call dword [sym.imp.KERNEL32.dll_GlobalUnlock]
push edi
call esi
push eax
call dword [sym.imp.KERNEL32.dll_GlobalFree]
xor eax, eax
jmp 0x40199b

Function at 0x4019e0
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
push ebx
xor ebx, ebx
cmp dword [ebp + 8], ebx
push esi
mov esi, ecx
je 0x401a23
cmp dword [ebp + 0xc], ebx
jbe 0x401a23
cmp dword [ebp + 0x10], ebx
je 0x401a23
call fcn.004018d5
test eax, eax
je 0x401a23
push ebx
push pe_nt_image_headers32
push 2
push ebx
push 1
push 0x40000000
push dword [esi + 0xc]
call dword [sym.imp.KERNEL32.dll_CreateFileA]
cmp eax, 0xffffffff
mov dword [esi], eax
jne 0x401a2b
mov dword [esi], ebx
xor eax, eax
pop esi
pop ebx
pop ebp
ret 0xc
push edi
push ebx
push dword [ebp + 0x10]
push dword [ebp + 0xc]
push dword [ebp + 8]
push eax
call dword [sym.imp.KERNEL32.dll_WriteFile]
mov edi, eax
cmp edi, ebx
jne 0x401a4a
mov ecx, esi
call fcn.004015f6
mov ecx, esi
call fcn.004015d8
mov eax, edi
pop edi
jmp 0x401a25
Function at 0x401c1a
Capabilities:
Check os version

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x94
push edi
xor edi, edi
cmp dword [0x41fc20], edi
je 0x401c36
xor eax, eax
inc eax
jmp 0x401cc0
push esi
mov esi, 0x94
push esi
lea eax, [ebp - 0x94]
push edi
push eax
call fcn.0040eef0
add esp, 0xc
lea eax, [ebp - 0x94]
push eax
mov dword [ebp - 0x94], esi
call dword [sym.imp.KERNEL32.dll_GetVersionExA]
test eax, eax
je 0x401cbd
cmp dword [ebp - 0x84], 2
jne 0x401cbd
cmp dword [ebp - 0x90], 5
jb 0x401cbd
mov esi, dword [ebp + 0xc]
xor edi, edi
push ebx
mov ebx, dword [ebp + 8]
inc edi
xor eax, eax
cmp ebx, edi
jne 0x401c8c
push esi
call fcn.0040cc86
cmp ebx, 2
jne 0x401c97
push esi
call fcn.0040ccc4
cmp ebx, 3
jne 0x401ca2
push esi
call fcn.0040cd02
cmp ebx, 4
pop ebx
jne 0x401cae
push esi
call fcn.0040cd40
test eax, eax
je 0x401cba
mov dword [0x41fc20], edi
jmp 0x401cbd
or edi, 0xffffffff
mov eax, edi
pop esi
pop edi
leave
ret

Function at 0x402275
Capabilities:
Read .ini file

Disassembly:
push ebp
mov ebp, esp
push ebx
xor eax, eax
cmp dword [ebp + 8], eax
push esi
push edi
je 0x4022c6
mov ebx, dword [ebp + 0x10]
cmp dword [ebx], eax
je 0x4022c6
cmp dword [ebp + 0x14], eax
je 0x4022c6
push dword [ebp + 0x14]
mov edi, dword [ebp + 0xc]
push edi
push dword [ebp + 8]
push str.Language
call dword [sym.imp.KERNEL32.dll_GetPrivateProfileSectionA]
mov esi, eax
test esi, esi
je 0x4022c6
add edi, 0xfffffffe
cmp edi, esi
jne 0x4022b5
push 0xfffffffffffffffc
pop eax
jmp 0x4022c9
push esi
push dword [ebp + 8]
call fcn.00402223
pop ecx
mov dword [ebx], eax
pop ecx
mov eax, esi
jmp 0x4022c9
or eax, 0xffffffff
pop edi
pop esi
pop ebx
pop ebp
ret
Function at 0x40250d
Capabilities:
Read .ini file

Disassembly:
sub esp, 0x214
push ebx
push ebp
mov ebp, dword [sym.imp.KERNEL32.dll_GlobalUnlock]
push esi
mov esi, dword [sym.imp.KERNEL32.dll_GlobalHandle]
push edi
xor ebx, ebx
mov dword [esp + 0x10], 1
mov edi, dword [esp + 0x10]
imul edi, edi, 0x104
inc dword [esp + 0x10]
test ebx, ebx
je 0x40254f
push ebx
call esi
push eax
call ebp
push ebx
call esi
push eax
call dword [sym.imp.KERNEL32.dll_GlobalFree]
push edi
push 0x42
call dword [sym.imp.KERNEL32.dll_GlobalAlloc]
push eax
call dword [sym.imp.KERNEL32.dll_GlobalLock]
mov ebx, eax
test ebx, ebx
je 0x4025ab
push dword [esp + 0x230]
lea eax, [esp + 0x14]
push eax
push edi
push ebx
call fcn.00402275
add esp, 0x10
test eax, eax
mov dword [esp + 0x14], eax
je 0x40252d
mov eax, dword [esp + 0x10]
lea eax, [eax + eax*2]
shl eax, 2
push eax
push 0x42
call dword [sym.imp.KERNEL32.dll_GlobalAlloc]
push eax
call dword [sym.imp.KERNEL32.dll_GlobalLock]
mov edi, eax
test edi, edi
jne 0x4025b3
push 0xfffffffffffffffd
pop edi
jmp 0x4026b0
push 0xfffffffffffffffd
pop eax
jmp 0x4026ed
push dword [esp + 0x10]
push dword [esp + 0x18]
push ebx
push edi
call fcn.00402134
push 0x104
lea eax, [esp + 0x30]
push 0
push eax
call fcn.0040eef0
and dword [esp + 0x34], 0
add esp, 0x1c
cmp dword [esp + 0x10], 0
jle 0x40263c
mov dword [esp + 0x14], edi
push dword [esp + 0x230]
lea eax, [esp + 0x20]
push 0x104
push eax
mov eax, dword [esp + 0x20]
push 0x41a32c
push str.ResDll
push dword [eax]
call dword [sym.imp.KERNEL32.dll_GetPrivateProfileStringA]
test eax, eax
jl 0x402629
push dword [esp + 0x230]
lea eax, [esp + 0x20]
push eax
call fcn.004024ae
cmp eax, 1
pop ecx
pop ecx
je 0x40267d
inc dword [esp + 0x18]
mov eax, dword [esp + 0x18]
add dword [esp + 0x14], 0xc
cmp eax, dword [esp + 0x10]
jl 0x4025e6
push edi
call esi
push eax
call ebp
push edi
call esi
mov edi, dword [sym.imp.KERNEL32.dll_GlobalFree]
push eax
call edi
push ebx
call esi
push eax
call ebp
push ebx
call esi
push eax
call edi
lea eax, [esp + 0x120]
push eax
call dword [sym.imp.KERNEL32.dll_lstrlenA]
mov edi, dword [esp + 0x22c]
mov esi, eax
mov eax, dword [edi]
inc esi
cmp eax, esi
jae 0x4026c4
push 0xfffffffffffffffc
pop eax
jmp 0x4026eb
mov eax, dword [esp + 0x18]
lea eax, [eax + eax*2]
push dword [edi + eax*4]
lea eax, [esp + 0x124]
push 0x104
push eax
call fcn.004010dd
test eax, eax
je 0x40263c
push edi
call esi
push eax
call ebp
push edi
call esi
push eax
call dword [sym.imp.KERNEL32.dll_GlobalFree]
or edi, 0xffffffff
push ebx
call esi
push eax
call ebp
push ebx
call esi
push eax
call dword [sym.imp.KERNEL32.dll_GlobalFree]
mov eax, edi
jmp 0x4026ed
cmp eax, 0x7fffffff
ja 0x4026e4
lea ecx, [esp + 0x120]
push ecx
push eax
push dword [esp + 0x230]
call fcn.004010dd
test eax, eax
je 0x4026e9
or eax, 0xffffffff
jmp 0x4026ed
xor eax, eax
mov dword [edi], esi
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x214
ret
Function at 0x4026f8
Capabilities:
Identify system language via api
Read .ini file

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x10c
cmp dword [ebp + 8], 0
push ebx
push esi
push edi
je 0x40281b
mov edi, dword [ebp + 0xc]
test edi, edi
je 0x40281b
mov ebx, dword [ebp + 0x10]
test ebx, ebx
je 0x40281b
cmp byte [ebx], 0
je 0x40281b
mov eax, dword [edi]
mov dword [ebp - 8], eax
call dword [sym.imp.KERNEL32.dll_GetUserDefaultLangID]
mov esi, 0x104
push esi
push 0
mov dword [ebp - 4], eax
lea eax, [ebp - 0x10c]
push eax
call fcn.0040eef0
push dword [ebp - 4]
push ebx
push edi
push dword [ebp + 8]
call fcn.0040238c
add esp, 0x1c
test eax, eax
jl 0x40281e
push ebx
mov ebx, dword [sym.imp.KERNEL32.dll_GetPrivateProfileStringA]
push esi
lea eax, [ebp - 0x10c]
push eax
push 0x41a32c
push str.ResDll
push dword [ebp + 8]
call ebx
test eax, eax
mov dword [ebp - 4], eax
jl 0x40281e
push dword [ebp + 0x10]
lea eax, [ebp - 0x10c]
push eax
call fcn.004024ae
test eax, eax
pop ecx
pop ecx
jne 0x402814
mov eax, dword [ebp - 8]
push 0x409
push dword [ebp + 0x10]
mov dword [edi], eax
push edi
push dword [ebp + 8]
call fcn.0040238c
add esp, 0x10
test eax, eax
jl 0x40281e
push dword [ebp + 0x10]
lea eax, [ebp - 0x10c]
push esi
push eax
push 0x41a32c
push str.ResDll
push dword [ebp + 8]
call ebx
mov esi, eax
test esi, esi
jl 0x402817
push dword [ebp + 0x10]
lea eax, [ebp - 0x10c]
push eax
call fcn.004024ae
test eax, eax
pop ecx
pop ecx
jne 0x402817
push dword [ebp + 0x10]
mov eax, dword [ebp - 8]
push edi
push dword [ebp + 8]
mov dword [edi], eax
call fcn.0040250d
add esp, 0xc
test eax, eax
mov dword [ebp - 4], eax
jge 0x402814
jmp 0x40281e
mov esi, dword [ebp - 4]
mov eax, esi
jmp 0x40281e
or eax, 0xffffffff
pop edi
pop esi
pop ebx
leave
ret

Function at 0x402823
Capabilities:
Read .ini file

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x108
push dword [ebp + 0x14]
lea eax, [ebp - 4]
push eax
lea eax, [ebp - 0x108]
push eax
mov dword [ebp - 4], 0x104
call fcn.004026f8
add esp, 0xc
test eax, eax
jge 0x402852
or eax, 0xffffffff
leave
ret
mov eax, dword [ebp + 0x10]
push esi
push dword [ebp + 0x14]
mov esi, dword [ebp + 0xc]
push dword [eax]
lea eax, [ebp - 0x108]
push esi
push 0x41a32c
push dword [ebp + 8]
push eax
call dword [sym.imp.KERNEL32.dll_GetPrivateProfileStringA]
test eax, eax
jne 0x40287d
or eax, 0xffffffff
jmp 0x402889
cmp byte [esi], 0
jne 0x402887
push 0xfffffffffffffffe
pop eax
jmp 0x402889
xor eax, eax
pop esi
leave
ret
Function at 0x402b01
Capabilities:
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
sub esp, 0xc
push ebx
push esi
push edi
xor ebx, ebx
mov edi, 0x104
push edi
push ebx
mov esi, 0x41fc28
push esi
mov dword [0x41fd2c], ebx
mov dword [0x41fd30], ebx
call fcn.0040eef0
mov eax, dword [ebp + 8]
add esp, 0xc
cmp eax, ebx
je 0x402ba3
cmp byte [eax], bl
je 0x402ba3
push eax
push edi
push esi
call fcn.004010dd
test eax, eax
jne 0x402ba3
lea eax, [ebp - 4]
push eax
push 0x20019
push ebx
push str.SOFTWAREEPSONSTM3Debug
push 0x80000002
mov dword [ebp - 4], ebx
mov dword [ebp - 8], ebx
mov dword [ebp - 0xc], 4
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
test eax, eax
jne 0x402ba3
lea eax, [ebp - 0xc]
push eax
lea eax, [ebp - 8]
push eax
push ebx
push ebx
push dword [ebp + 0xc]
push dword [ebp - 4]
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
push dword [ebp - 4]
mov esi, eax
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
cmp esi, ebx
jne 0x402ba3
cmp dword [ebp - 8], ebx
je 0x402ba3
xor eax, eax
inc eax
mov dword [0x41fd2c], eax
jmp 0x402ba5
xor eax, eax
pop edi
pop esi
pop ebx
leave
ret

Function at 0x403bc8
Capabilities:
Query or enumerate registry value

Disassembly:
mov eax, 0x41923a
call fcn.0040f528
push ecx
push ecx
push ebx
xor ebx, ebx
push edi
mov edi, ecx
mov dword [ebp - 0x14], ebx
cmp dword [edi + 8], ebx
jne 0x403bf2
push dword [ebp + 0x10]
mov ecx, dword [ebp + 8]
call fcn.00407c9a
jmp 0x403cd7
push esi
push dword [ebp + 0x10]
lea ecx, [ebp + 0x10]
call fcn.00407c9a
xor esi, esi
inc esi
cmp dword [ebp + 0x14], ebx
mov dword [ebp - 4], esi
jne 0x403c81
mov esi, dword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
lea eax, [ebp + 0x14]
push eax
push ebx
push ebx
push ebx
push dword [ebp + 0xc]
push dword [edi + 4]
call esi
mov eax, dword [ebp + 0x14]
cmp eax, ebx
jbe 0x403c6c
inc eax
push eax
call fcn.0040f581
cmp eax, ebx
pop ecx
mov dword [ebp - 0x10], eax
je 0x403c6c
mov ecx, dword [ebp + 0x14]
inc ecx
push ecx
push ebx
push eax
call fcn.0040eef0
add esp, 0xc
lea eax, [ebp + 0x14]
push eax
push dword [ebp - 0x10]
push ebx
push ebx
push dword [ebp + 0xc]
push dword [edi + 4]
call esi
test eax, eax
jne 0x403c63
push dword [ebp - 0x10]
lea ecx, [ebp + 0x10]
call fcn.004077ea
push dword [ebp - 0x10]
call fcn.0040ef50
pop ecx
mov ecx, dword [ebp + 8]
lea eax, [ebp + 0x10]
push eax
call fcn.00407c9a
mov dword [ebp - 0x14], 1
jmp 0x403ccb
push dword [ebp + 0x14]
call fcn.0040f581
cmp eax, ebx
pop ecx
mov dword [ebp - 0x10], eax
je 0x403cbc
lea ecx, [ebp + 0x14]
push ecx
push eax
push ebx
push ebx
push dword [ebp + 0xc]
push dword [edi + 4]
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
test eax, eax
jne 0x403cb3
push dword [ebp - 0x10]
lea ecx, [ebp + 0x10]
call fcn.004077ea
push dword [ebp - 0x10]
call fcn.0040ef50
pop ecx
mov ecx, dword [ebp + 8]
lea eax, [ebp + 0x10]
push eax
call fcn.00407c9a
mov dword [ebp - 0x14], esi
lea ecx, [ebp + 0x10]
mov byte [ebp - 4], bl
call fcn.00407659
pop esi
mov ecx, dword [ebp - 0xc]
mov eax, dword [ebp + 8]
pop edi
pop ebx
mov dword fs:[0], ecx
leave
ret 0x10
Function at 0x403cea
Capabilities:
Query or enumerate registry value

Disassembly:
mov eax, 0x419265
call fcn.0040f528
sub esp, 0xc
push ebx
xor ebx, ebx
push edi
mov edi, ecx
mov dword [ebp - 0x14], ebx
cmp dword [edi + 8], ebx
jne 0x403d15
push dword [ebp + 0x10]
mov ecx, dword [ebp + 8]
call fcn.00408625
jmp 0x403dfc
push esi
push dword [ebp + 0x10]
lea ecx, [ebp + 0x10]
call fcn.00408625
mov eax, dword [ebp + 0x14]
xor esi, esi
inc esi
cmp eax, ebx
mov dword [ebp - 4], esi
jne 0x403da3
mov esi, dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
lea eax, [ebp + 0x14]
push eax
push ebx
push ebx
push ebx
push dword [ebp + 0xc]
push dword [edi + 4]
call esi
cmp dword [ebp + 0x14], ebx
jbe 0x403d8e
push dword [ebp + 0x14]
call fcn.0040f581
cmp eax, ebx
pop ecx
mov dword [ebp - 0x10], eax
je 0x403d8e
push dword [ebp + 0x14]
push ebx
push eax
call fcn.0040eef0
add esp, 0xc
lea eax, [ebp + 0x14]
push eax
push dword [ebp - 0x10]
push ebx
push ebx
push dword [ebp + 0xc]
push dword [edi + 4]
call esi
test eax, eax
jne 0x403d85
push dword [ebp - 0x10]
lea ecx, [ebp + 0x10]
call fcn.00408201
push dword [ebp - 0x10]
call fcn.0040ef50
pop ecx
mov ecx, dword [ebp + 8]
lea eax, [ebp + 0x10]
push eax
call fcn.00408625
mov dword [ebp - 0x14], 1
jmp 0x403df0
add eax, eax
push eax
mov dword [ebp - 0x18], eax
call fcn.0040f581
cmp eax, ebx
pop ecx
mov dword [ebp - 0x10], eax
je 0x403de1
lea ecx, [ebp - 0x18]
push ecx
push eax
push ebx
push ebx
push dword [ebp + 0xc]
push dword [edi + 4]
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
test eax, eax
jne 0x403dd8
push dword [ebp - 0x10]
lea ecx, [ebp + 0x10]
call fcn.00408201
push dword [ebp - 0x10]
call fcn.0040ef50
pop ecx
mov ecx, dword [ebp + 8]
lea eax, [ebp + 0x10]
push eax
call fcn.00408625
mov dword [ebp - 0x14], esi
lea ecx, [ebp + 0x10]
mov byte [ebp - 4], bl
call fcn.00408017
pop esi
mov ecx, dword [ebp - 0xc]
mov eax, dword [ebp + 8]
pop edi
pop ebx
mov dword fs:[0], ecx
leave
ret 0x10

Function at 0x404463
Capabilities:
Read .ini file

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x30c
push esi
mov esi, 0x104
push esi
lea eax, [ebp - 0x104]
push 0
push eax
call fcn.0040eef0
push dword [ebp + 0x14]
lea eax, [ebp - 0x104]
push dword [ebp + 0x10]
push esi
push eax
call fcn.0040431e
add esp, 0x1c
test eax, eax
je 0x404531
cmp byte [ebp - 0x104], 0
je 0x404531
lea eax, [ebp - 0x104]
push eax
push esi
lea eax, [ebp - 0x30c]
push eax
push 0x41a32c
push str.PrnDll
push dword [ebp + 0x14]
call dword [sym.imp.KERNEL32.dll_GetPrivateProfileStringA]
test eax, eax
je 0x404531
cmp eax, 0x102
je 0x404531
push dword [ebp + 0x14]
lea eax, [ebp - 0x208]
push dword [ebp + 0x10]
push esi
push eax
call fcn.004040fb
add esp, 0x10
test eax, eax
jne 0x404509
push 0x41a474
push esi
lea eax, [ebp - 0x208]
push eax
call fcn.004010dd
test eax, eax
jne 0x404531
lea eax, [ebp - 0x30c]
push eax
lea eax, [ebp - 0x208]
push eax
push 0x41a414
push dword [ebp + 0xc]
push dword [ebp + 8]
call fcn.00403f12
add esp, 0x14
neg eax
sbb eax, eax
inc eax
jmp 0x404533
xor eax, eax
pop esi
leave
ret