joyce8/EMBER2024-capa huggingface dataset:
Function at 0x409f74
Capabilities:
Create thread

Disassembly:
push ebp
mov ebp, esp
push ecx
push ebx
push esi
push edi
lea eax, [ebp - 4]
mov esi, ecx
push eax
mov ecx, 0x421450
call fcn.004067db
mov edx, dword [ebp - 4]
xor ebx, ebx
xor ecx, ecx
cmp edx, ebx
jbe 0x409fa3
add eax, 0x14
add ecx, dword [eax]
add eax, 0x11c
dec edx
jne 0x409f99
mov edi, dword [sym.imp.USER32.dll_SendMessageA]
push ecx
push ebx
push 0x406
push dword [ebp + 0xc]
call edi
push ebx
push 1
push 0x404
push dword [ebp + 0xc]
call edi
push ebx
push ebx
push 0x402
push dword [ebp + 0xc]
call edi
mov eax, dword [ebp + 0xc]
mov dword [esi + 0x230], eax
mov eax, dword [ebp + 8]
mov dword [esi + 0x22c], eax
mov eax, dword [ebp + 0x10]
mov dword [esi + 0x234], eax
mov eax, dword [ebp + 0x14]
push eax
mov dword [esi + 0x23c], ebx
mov dword [esi + 0x238], eax
call dword [sym.imp.USER32.dll_GetDC]
push ebx
push ebx
push 0x31
push dword [esi + 0x238]
mov dword [ebp + 0xc], eax
call edi
mov edi, dword [sym.imp.GDI32.dll_SelectObject]
push eax
push dword [ebp + 0xc]
call edi
mov dword [ebp + 8], eax
lea eax, [esi + 0x658]
push eax
push 0xff
push ebx
push dword [ebp + 0xc]
call dword [sym.imp.GDI32.dll_GetCharABCWidthsA]
push dword [ebp + 8]
push dword [ebp + 0xc]
call edi
push dword [ebp + 0xc]
push dword [esi + 0x238]
call dword [sym.imp.USER32.dll_ReleaseDC]
lea eax, [esi + 8]
push eax
push dword [esi + 0x240]
mov ecx, 0x420b20
call fcn.00406d53
lea eax, [ebp - 4]
push eax
push ebx
push esi
push 0x409f43
push ebx
push ebx
call dword [sym.imp.KERNEL32.dll_CreateThread]
pop edi
mov dword [esi + 0x228], eax
pop esi
pop ebx
leave
ret 0x10
Function at 0x40bcf2
Capabilities:
Accept command line arguments
Parse pe header
Terminate process

Disassembly:
push 0x60
push 0x402610
call fcn.0040dec0
mov edi, 0x94
mov eax, edi
call fcn.0040c030
mov dword [ebp - 0x18], esp
mov esi, esp
mov dword [esi], edi
push esi
call dword [sym.imp.KERNEL32.dll_GetVersionExA]
mov ecx, dword [esi + 0x10]
mov dword [0x4218b0], ecx
mov eax, dword [esi + 4]
mov dword [0x4218bc], eax
mov edx, dword [esi + 8]
mov dword [0x4218c0], edx
mov esi, dword [esi + 0xc]
and esi, 0x7fff
mov dword [0x4218b4], esi
cmp ecx, 2
je 0x40bd52
or esi, 0x8000
mov dword [0x4218b4], esi
shl eax, 8
add eax, edx
mov dword [0x4218b8], eax
xor esi, esi
push esi
mov edi, dword [sym.imp.KERNEL32.dll_GetModuleHandleA]
call edi
cmp word [eax], 0x5a4d
jne 0x40bd8d
mov ecx, dword [eax + 0x3c]
add ecx, eax
cmp dword [ecx], 0x4550
jne 0x40bd8d
movzx eax, word [ecx + 0x18]
cmp eax, 0x10b
je 0x40bda5
cmp eax, 0x20b
je 0x40bd92
mov dword [ebp - 0x1c], esi
jmp 0x40bdb9
cmp dword [ecx + 0x84], 0xe
jbe 0x40bd8d
xor eax, eax
cmp dword [ecx + 0xf8], esi
jmp 0x40bdb3
cmp dword [ecx + 0x74], 0xe
jbe 0x40bd8d
xor eax, eax
cmp dword [ecx + 0xe8], esi
setne al
mov dword [ebp - 0x1c], eax
push esi
call fcn.0040de6f
pop ecx
test eax, eax
jne 0x40bde5
cmp dword [0x421898], 1
jne 0x40bdd2
call fcn.0040d624
push 0x1c
call fcn.0040d4ad
push 0xff
call fcn.0040d312
pop ecx
pop ecx
cmp dword [ebp - 0x1c], esi
je 0x40be01
mov eax, dword [0x424078]
cmp eax, esi
je 0x40be01
call eax
test eax, eax
jne 0x40be01
push 0x1d
call main
pop ecx
call fcn.0040ddcd
mov dword [ebp - 4], esi
call fcn.0040dc22
test eax, eax
jge 0x40be1a
push 0x1b
call main
pop ecx
call dword [sym.imp.KERNEL32.dll_GetCommandLineA]
mov dword [0x424074], eax
call fcn.0040db00
mov dword [0x421890], eax
call fcn.0040da5e
test eax, eax
jge 0x40be40
push 8
call main
pop ecx
call fcn.0040d82b
test eax, eax
jge 0x40be51
push 9
call main
pop ecx
push 1
call fcn.0040d342
pop ecx
mov dword [ebp - 0x28], eax
cmp eax, esi
je 0x40be67
push eax
call main
pop ecx
mov dword [ebp - 0x44], esi
lea eax, [ebp - 0x70]
push eax
call dword [sym.imp.KERNEL32.dll_GetStartupInfoA]
call fcn.0040d7ce
mov dword [ebp - 0x20], eax
test byte [ebp - 0x44], 1
je 0x40be88
movzx eax, word [ebp - 0x40]
jmp 0x40be8b
push 0xa
pop eax
push eax
push dword [ebp - 0x20]
push esi
push esi
call edi
push eax
call fcn.00409e55
mov edi, eax
mov dword [ebp - 0x2c], edi
cmp dword [ebp - 0x1c], esi
jne 0x40bea9
push edi
call fcn.0040d46d
call fcn.0040d48f
jmp 0x40bedb
or dword [ebp - 4], 0xffffffff
mov eax, edi
lea esp, [ebp - 0x7c]
call fcn.0040defb
ret
Function at 0x40d3ac
Capabilities:
Terminate process

Disassembly:
push ebp
mov ebp, esp
push esi
xor esi, esi
inc esi
cmp dword [0x4218f0], esi
push edi
jne 0x40d3cc
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.dll_GetCurrentProcess]
push eax
call dword [sym.imp.KERNEL32.dll_TerminateProcess]
cmp dword [ebp + 0xc], 0
mov al, byte [ebp + 0x10]
mov dword [0x4218ec], esi
mov byte [0x4218e8], al
jne 0x40d432
mov ecx, dword [0x424068]
test ecx, ecx
je 0x40d413
mov eax, dword [0x424064]
sub eax, 4
cmp eax, ecx
jmp 0x40d40c
mov eax, dword [eax]
test eax, eax
je 0x40d3fe
call eax
mov eax, dword [0x424064]
sub eax, 4
cmp eax, dword [0x424068]
mov dword [0x424064], eax
jae 0x40d3f6
mov eax, 0x420034
mov esi, 0x42003c
cmp eax, esi
mov edi, eax
jae 0x40d432
mov eax, dword [edi]
test eax, eax
je 0x40d42b
call eax
add edi, 4
cmp edi, esi
jb 0x40d423
mov eax, 0x420040
mov esi, 0x420048
cmp eax, esi
mov edi, eax
jae 0x40d451
mov eax, dword [edi]
test eax, eax
je 0x40d44a
call eax
add edi, 4
cmp edi, esi
jb 0x40d442
cmp dword [ebp + 0x10], 0
pop edi
pop esi
jne 0x40d46b
push dword [ebp + 8]
mov dword [0x4218f0], 1
call fcn.0040d312
pop ebp
ret

Function at 0x40d4ad
Capabilities:
Write file on windows

Disassembly:
push ebp
lea ebp, [esp - 0x8c]
sub esp, 0x10c
mov eax, dword [0x42005c]
mov ecx, dword [ebp + 0x94]
push ebx
push esi
mov dword [ebp + 0x88], eax
xor edx, edx
push edi
xor eax, eax
cmp ecx, dword [eax*8 + 0x420070]
je 0x40d4e2
inc eax
cmp eax, 0x13
jb 0x40d4d3
mov esi, eax
shl esi, 3
cmp ecx, dword [esi + 0x420070]
jne 0x40d608
mov eax, dword [0x421898]
cmp eax, 1
je 0x40d5e0
cmp eax, edx
jne 0x40d512
cmp dword [0x420058], 1
je 0x40d5e0
cmp ecx, 0xfc
je 0x40d608
push 0x104
lea eax, [ebp - 0x80]
push eax
push edx
mov byte [ebp + 0x84], dl
call dword [sym.imp.KERNEL32.dll_GetModuleFileNameA]
test eax, eax
jne 0x40d548
lea eax, [ebp - 0x80]
push 0x402a38
push eax
call fcn.00411070
pop ecx
pop ecx
lea edi, [ebp - 0x80]
mov eax, edi
push eax
call fcn.004106d0
inc eax
cmp eax, 0x3c
pop ecx
jbe 0x40d57c
mov eax, edi
push eax
call fcn.004106d0
mov edi, eax
lea eax, [ebp - 0x80]
sub eax, 0x3b
push 3
add edi, eax
push 0x4022d8
push edi
call fcn.0040cd70
add esp, 0x10
push edi
call fcn.004106d0
push dword [esi + 0x420074]
mov ebx, eax
call fcn.004106d0
lea eax, [ebx + eax + 0x1c]
pop ecx
add eax, 3
pop ecx
and eax, 0xfffffffc
call fcn.0040c030
mov ebx, esp
push 0x402a1c
push ebx
call fcn.00411070
push edi
push ebx
call fcn.00411080
push 0x402a18
push ebx
call fcn.00411080
push dword [esi + 0x420074]
push ebx
call fcn.00411080
push 0x12010
push 0x4029f0
push ebx
call fcn.00411c24
add esp, 0x2c
jmp 0x40d608
push edx
lea eax, [ebp + 0x94]
push eax
lea esi, [esi + 0x420074]
push dword [esi]
call fcn.004106d0
pop ecx
push eax
push dword [esi]
push 0xfffffffffffffff4
call dword [sym.imp.KERNEL32.dll_GetStdHandle]
push eax
call dword [sym.imp.KERNEL32.dll_WriteFile]
lea esp, [ebp - 0x8c]
mov ecx, dword [ebp + 0x88]
call fcn.0040bf1b
pop edi
pop esi
pop ebx
add ebp, 0x8c
leave
ret
Function at 0x411c24
Capabilities:
Link many functions at runtime

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x10
push ebx
xor ebx, ebx
cmp dword [0x421a58], ebx
push esi
push edi
jne 0x411ca4
push 0x4032a8
call dword [sym.imp.KERNEL32.dll_LoadLibraryA]
mov edi, eax
cmp edi, ebx
je 0x411cdf
mov esi, dword [sym.imp.KERNEL32.dll_GetProcAddress]
push 0x40329c
push edi
call esi
test eax, eax
mov dword [0x421a58], eax
je 0x411cdf
push 0x40328c
push edi
call esi
push 0x403278
push edi
mov dword [0x421a5c], eax
call esi
cmp dword [0x4218b0], 2
mov dword [0x421a60], eax
jne 0x411ca4
push 0x40325c
push edi
call esi
test eax, eax
mov dword [0x421a68], eax
je 0x411ca4
push 0x403244
push edi
call esi
mov dword [0x421a64], eax
mov eax, dword [0x421a64]
test eax, eax
je 0x411ce9
call eax
test eax, eax
je 0x411cd0
lea ecx, [ebp - 4]
push ecx
push 0xc
lea ecx, [ebp - 0x10]
push ecx
push 1
push eax
call dword [0x421a68]
test eax, eax
je 0x411cd0
test byte [ebp - 8], 1
jne 0x411ce9
cmp dword [0x4218bc], 4
jb 0x411ce3
or byte [ebp + 0x12], 0x20
jmp 0x411d08
xor eax, eax
jmp 0x411d18
or byte [ebp + 0x12], 4
jmp 0x411d08
mov eax, dword [0x421a5c]
test eax, eax
je 0x411d08
call eax
mov ebx, eax
test ebx, ebx
je 0x411d08
mov eax, dword [0x421a60]
test eax, eax
je 0x411d08
push ebx
call eax
mov ebx, eax
push dword [ebp + 0x10]
push dword [ebp + 0xc]
push dword [ebp + 8]
push ebx
call dword [0x421a58]
pop edi
pop esi
pop ebx
leave
ret
Function at 0x41248d
Capabilities:
Parse pe header

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x20
push ebx
push esi
mov esi, dword [ebp + 8]
mov ebx, dword [esi + 8]
test bl, 3
jne 0x4124bb
mov eax, dword fs:[0x18]
mov dword [ebp + 8], eax
mov eax, dword [ebp + 8]
mov ecx, dword [eax + 8]
cmp ebx, ecx
mov dword [ebp - 4], ecx
jb 0x4124c2
cmp ebx, dword [eax + 4]
jae 0x4124c2
xor eax, eax
jmp 0x4126b2
push edi
mov edi, dword [esi + 0xc]
cmp edi, 0xffffffff
jne 0x4124d3
xor eax, eax
inc eax
jmp 0x4126b1
xor edx, edx
mov dword [ebp + 8], edx
mov eax, ebx
mov ecx, dword [eax]
cmp ecx, 0xffffffff
je 0x4124e9
cmp ecx, edx
jae 0x41262e
cmp dword [eax + 4], 0
je 0x4124f2
inc dword [ebp + 8]
inc edx
add eax, 0xc
cmp edx, edi
jbe 0x4124da
cmp dword [ebp + 8], 0
je 0x412514
mov eax, dword [esi - 8]
cmp eax, dword [ebp - 4]
jb 0x41262e
cmp eax, esi
jae 0x41262e
mov eax, dword [0x421a70]
mov edi, ebx
and edi, 0xfffff000
xor esi, esi
test eax, eax
jle 0x412539
cmp dword [esi*4 + 0x421a78], edi
je 0x412632
inc esi
cmp esi, eax
jl 0x412527
push 0x1c
lea eax, [ebp - 0x20]
push eax
push ebx
call dword [sym.imp.KERNEL32.dll_VirtualQuery]
test eax, eax
je 0x4126ae
cmp dword [ebp - 8], 0x1000000
jne 0x4126ae
test byte [ebp - 0xc], 0xcc
je 0x4125b7
mov ecx, dword [ebp - 0x1c]
cmp word [ecx], 0x5a4d
jne 0x4126ae
mov eax, dword [ecx + 0x3c]
add eax, ecx
cmp dword [eax], 0x4550
jne 0x4126ae
cmp word [eax + 0x18], 0x10b
jne 0x4126ae
sub ebx, ecx
cmp word [eax + 6], 0
movzx ecx, word [eax + 0x14]
lea ecx, [ecx + eax + 0x18]
jbe 0x4126ae
mov eax, dword [ecx + 0xc]
cmp ebx, eax
jb 0x4125b7
mov edx, dword [ecx + 8]
add edx, eax
cmp ebx, edx
jae 0x4125b7
test byte [ecx + 0x27], 0x80
jne 0x41262e
push 1
push 0x421ab8
call dword [sym.imp.KERNEL32.dll_InterlockedExchange]
test eax, eax
jne 0x4124cb
mov ecx, dword [0x421a70]
test ecx, ecx
mov edx, ecx
jle 0x4125eb
lea eax, [ecx*4 + 0x421a74]
cmp dword [eax], edi
je 0x4125eb
dec edx
sub eax, 4
test edx, edx
jg 0x4125df
test edx, edx
jne 0x41261c
push 0xf
pop ebx
cmp ecx, ebx
jg 0x4125f8
mov ebx, ecx
xor edx, edx
test ebx, ebx
jl 0x412610
lea eax, [edx*4 + 0x421a78]
mov esi, dword [eax]
inc edx
cmp edx, ebx
mov dword [eax], edi
mov edi, esi
jle 0x4125fe
cmp ecx, 0x10
jge 0x41261c
inc ecx
mov dword [0x421a70], ecx
push 0
push 0x421ab8
call dword [sym.imp.KERNEL32.dll_InterlockedExchange]
jmp 0x4124cb
xor eax, eax
jmp 0x4126b1
test esi, esi
jle 0x4124cb
mov ebx, dword [sym.imp.KERNEL32.dll_InterlockedExchange]
push 1
push 0x421ab8
call ebx
test eax, eax
jne 0x4124cb
cmp dword [esi*4 + 0x421a78], edi
je 0x412688
mov eax, dword [0x421a70]
lea esi, [eax - 1]
test esi, esi
jl 0x412676
cmp dword [esi*4 + 0x421a78], edi
je 0x412672
dec esi
jns 0x412666
test esi, esi
jge 0x412686
cmp eax, 0x10
jge 0x412681
inc eax
mov dword [0x421a70], eax
lea esi, [eax - 1]
jmp 0x412688
je 0x4126a0
xor ecx, ecx
test esi, esi
jl 0x4126a0
lea eax, [ecx*4 + 0x421a78]
mov edx, dword [eax]
inc ecx
cmp ecx, esi
mov dword [eax], edi
mov edi, edx
jle 0x41268e
push 0
push 0x421ab8
call ebx
jmp 0x4124cb
or eax, 0xffffffff
pop edi
pop esi
pop ebx
leave
ret
Function at 0x412742
Capabilities:
Write file on windows

Disassembly:
push ebp
lea ebp, [esp - 0x39c]
sub esp, 0x41c
mov ecx, dword [ebp + 0x3a4]
cmp ecx, dword [0x423f44]
mov eax, dword [0x42005c]
push ebx
push esi
mov dword [ebp + 0x398], eax
push edi
jae 0x412908
mov eax, ecx
sar eax, 5
lea ebx, [eax*4 + 0x423f60]
mov eax, dword [ebx]
mov esi, ecx
and esi, 0x1f
shl esi, 3
mov al, byte [eax + esi + 4]
test al, 1
mov dword [ebp - 0x80], ebx
je 0x412908
xor edi, edi
cmp dword [ebp + 0x3ac], edi
mov dword [ebp - 0x74], edi
mov dword [ebp - 0x7c], edi
jne 0x4127ac
xor eax, eax
jmp 0x41291c
test al, 0x20
je 0x4127bd
push 2
push edi
push edi
push ecx
call fcn.00413c6c
add esp, 0x10
mov eax, dword [ebx]
add eax, esi
test byte [eax + 4], 0x80
je 0x412892
cmp dword [ebp + 0x3ac], edi
mov eax, dword [ebp + 0x3a8]
mov dword [ebp - 0x70], eax
mov dword [ebp + 0x3a4], edi
jbe 0x4128d9
mov ecx, dword [ebp - 0x70]
sub ecx, dword [ebp + 0x3a8]
lea eax, [ebp - 0x6c]
cmp ecx, dword [ebp + 0x3ac]
jae 0x41281f
mov edx, dword [ebp - 0x70]
inc dword [ebp - 0x70]
mov dl, byte [edx]
inc ecx
cmp dl, 0xa
jne 0x412810
inc dword [ebp - 0x7c]
mov byte [eax], 0xd
inc eax
inc edi
mov ebx, dword [ebp - 0x80]
mov byte [eax], dl
inc eax
inc edi
cmp edi, 0x400
jl 0x4127f2
mov edi, eax
lea eax, [ebp - 0x6c]
sub edi, eax
push 0
lea eax, [ebp - 0x78]
push eax
push edi
lea eax, [ebp - 0x6c]
push eax
mov eax, dword [ebx]
push dword [eax + esi]
call dword [sym.imp.KERNEL32.dll_WriteFile]
test eax, eax
je 0x41285f
mov eax, dword [ebp - 0x78]
add dword [ebp - 0x74], eax
cmp eax, edi
jl 0x41286b
mov eax, dword [ebp - 0x70]
sub eax, dword [ebp + 0x3a8]
xor edi, edi
cmp eax, dword [ebp + 0x3ac]
jb 0x4127e6
jmp 0x41286d
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov dword [ebp + 0x3a4], eax
xor edi, edi
mov eax, dword [ebp - 0x74]
cmp eax, edi
jne 0x412903
cmp dword [ebp + 0x3a4], edi
je 0x4128d9
push 5
pop eax
cmp dword [ebp + 0x3a4], eax
jne 0x4128cb
mov dword [0x4218a8], eax
jmp 0x41290f
push edi
lea ecx, [ebp - 0x78]
push ecx
push dword [ebp + 0x3ac]
push dword [ebp + 0x3a8]
push dword [eax]
call dword [sym.imp.KERNEL32.dll_WriteFile]
test eax, eax
je 0x4128bd
mov eax, dword [ebp - 0x78]
mov dword [ebp + 0x3a4], edi
mov dword [ebp - 0x74], eax
jmp 0x41286d
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov dword [ebp + 0x3a4], eax
jmp 0x41286d
push dword [ebp + 0x3a4]
call fcn.00413510
pop ecx
jmp 0x412919
mov eax, dword [ebx]
test byte [eax + esi + 4], 0x40
je 0x4128f1
mov eax, dword [ebp + 0x3a8]
cmp byte [eax], 0x1a
je 0x4127a5
mov dword [0x4218a4], 0x1c
mov dword [0x4218a8], edi
jmp 0x412919
sub eax, dword [ebp - 0x7c]
jmp 0x41291c
and dword [0x4218a8], 0
mov dword [0x4218a4], 9
or eax, 0xffffffff
mov ecx, dword [ebp + 0x398]
pop edi
pop esi
pop ebx
call fcn.0040bf1b
add ebp, 0x39c
leave
ret
Function at 0x4132c0
Capabilities:
Get system information on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x4c
push ebx
push esi
push edi
push 4
pop eax
call fcn.0040c030
mov esi, esp
push 0x1c
lea eax, [ebp - 0x28]
push eax
push esi
call dword [sym.imp.KERNEL32.dll_VirtualQuery]
test eax, eax
je 0x41335b
mov ebx, dword [ebp - 0x24]
lea eax, [ebp - 0x4c]
push eax
call dword [sym.imp.KERNEL32.dll_GetSystemInfo]
mov ecx, dword [ebp - 0x48]
mov eax, dword [0x4218b0]
lea edi, [ecx - 1]
not edi
and edi, esi
sub edi, ecx
mov esi, eax
dec esi
neg esi
sbb esi, esi
and esi, 0xfffffff1
add esi, 0x11
imul esi, ecx
add esi, ebx
cmp edi, esi
mov dword [ebp - 8], ecx
jb 0x41335b
cmp eax, 1
je 0x41337c
mov dword [ebp - 4], ebx
mov ebx, 0x1000
push 0x1c
lea eax, [ebp - 0x28]
push eax
push dword [ebp - 4]
call dword [sym.imp.KERNEL32.dll_VirtualQuery]
test eax, eax
je 0x41335b
mov eax, dword [ebp - 0x1c]
add dword [ebp - 4], eax
test dword [ebp - 0x18], ebx
je 0x413328
test byte [ebp - 0x13], 1
mov eax, dword [ebp - 0x28]
mov dword [ebp - 4], eax
je 0x413357
xor eax, eax
inc eax
jmp 0x41339b
cmp edi, eax
jae 0x41335f
xor eax, eax
jmp 0x41339b
cmp eax, esi
jae 0x413366
mov dword [ebp - 4], esi
push 4
push ebx
push dword [ebp - 8]
push dword [ebp - 4]
call dword [sym.imp.KERNEL32.dll_VirtualAlloc]
mov eax, dword [0x4218b0]
jmp 0x41337f
mov dword [ebp - 4], edi
dec eax
neg eax
sbb eax, eax
and eax, 0x103
lea ecx, [ebp - 0xc]
push ecx
inc eax
push eax
push dword [ebp - 8]
push dword [ebp - 4]
call dword [sym.imp.KERNEL32.dll_VirtualProtect]
lea esp, [ebp - 0x58]
pop edi
pop esi
pop ebx
leave
ret
Function at 0x413de7
Capabilities:
Read file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x10
push ebx
push esi
mov esi, dword [ebp + 8]
cmp esi, dword [0x423f44]
push edi
jae 0x413fbc
mov eax, esi
sar eax, 5
lea edi, [eax*4 + 0x423f60]
mov eax, dword [edi]
and esi, 0x1f
shl esi, 3
add eax, esi
mov dl, byte [eax + 4]
test dl, 1
je 0x413fbc
and dword [ebp - 0xc], 0
cmp dword [ebp + 0x10], 0
mov ebx, dword [ebp + 0xc]
mov ecx, ebx
je 0x413e92
test dl, 2
jne 0x413e92
test dl, 0x48
je 0x413e5c
cmp byte [eax + 5], 0xa
je 0x413e5c
mov eax, dword [edi]
mov al, byte [eax + esi + 5]
dec dword [ebp + 0x10]
mov byte [ebx], al
mov eax, dword [edi]
lea ecx, [ebx + 1]
mov dword [ebp - 0xc], 1
mov byte [eax + esi + 5], 0xa
push 0
lea eax, [ebp - 0x10]
push eax
push dword [ebp + 0x10]
mov eax, dword [edi]
push ecx
push dword [eax + esi]
call dword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
jne 0x413ea5
call dword [sym.imp.KERNEL32.dll_GetLastError]
push 5
pop ecx
cmp eax, ecx
jne 0x413e8d
mov dword [0x4218a8], ecx
jmp 0x413fc3
cmp eax, 0x6d
jne 0x413e99
xor eax, eax
jmp 0x413fd0
push eax
call fcn.00413510
pop ecx
jmp 0x413fcd
mov eax, dword [ebp - 0x10]
mov ecx, dword [edi]
add dword [ebp - 0xc], eax
test byte [ecx + esi + 4], 0x80
je 0x413fb7
test eax, eax
je 0x413ecc
cmp byte [ebx], 0xa
jne 0x413ecc
mov eax, ecx
lea eax, [eax + esi + 4]
or byte [eax], 4
jmp 0x413ed5
mov eax, dword [edi]
lea eax, [eax + esi + 4]
and byte [eax], 0xfb
mov eax, dword [ebp + 0xc]
mov ecx, dword [ebp - 0xc]
add ecx, eax
cmp eax, ecx
mov dword [ebp - 8], eax
mov dword [ebp - 0xc], ecx
jae 0x413fb1
mov eax, dword [ebp - 8]
mov al, byte [eax]
cmp al, 0x1a
je 0x413fa1
cmp al, 0xd
je 0x413f07
mov byte [ebx], al
inc ebx
inc dword [ebp - 8]
jmp 0x413f93
dec ecx
cmp dword [ebp - 8], ecx
jae 0x413f21
mov eax, dword [ebp - 8]
inc eax
cmp byte [eax], 0xa
jne 0x413f1c
add dword [ebp - 8], 2
jmp 0x413f75
mov dword [ebp - 8], eax
jmp 0x413f8f
inc dword [ebp - 8]
push 0
lea eax, [ebp - 0x10]
push eax
push 1
lea eax, [ebp - 1]
push eax
mov eax, dword [edi]
push dword [eax + esi]
call dword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
jne 0x413f49
call dword [sym.imp.KERNEL32.dll_GetLastError]
test eax, eax
jne 0x413f8f
cmp dword [ebp - 0x10], 0
je 0x413f8f
mov eax, dword [edi]
test byte [eax + esi + 4], 0x48
je 0x413f6a
mov al, byte [ebp - 1]
cmp al, 0xa
je 0x413f75
mov byte [ebx], 0xd
mov ecx, dword [edi]
mov byte [ecx + esi + 5], al
jmp 0x413f92
cmp ebx, dword [ebp + 0xc]
jne 0x413f7a
cmp byte [ebp - 1], 0xa
jne 0x413f7a
mov byte [ebx], 0xa
jmp 0x413f92
push 1
push 0xffffffffffffffff
push dword [ebp + 8]
call fcn.004126b6
add esp, 0xc
cmp byte [ebp - 1], 0xa
je 0x413f93
mov byte [ebx], 0xd
inc ebx
mov ecx, dword [ebp - 0xc]
cmp dword [ebp - 8], ecx
jb 0x413eeb
jmp 0x413fb1
mov eax, dword [edi]
test byte [eax + esi + 4], 0x40
jne 0x413fb1
lea esi, [eax + esi + 4]
or byte [esi], 2
sub ebx, dword [ebp + 0xc]
mov dword [ebp - 0xc], ebx
mov eax, dword [ebp - 0xc]
jmp 0x413fd0
and dword [0x4218a8], 0
mov dword [0x4218a4], 9
or eax, 0xffffffff
pop edi
pop esi
pop ebx
leave
ret
Function at 0x414137
Capabilities:
Clear file content

Disassembly:
push ebp
mov ebp, esp
mov eax, 0x1008
call fcn.0040c030
mov eax, dword [0x42005c]
push ebx
mov ebx, dword [ebp + 8]
push esi
xor esi, esi
cmp ebx, dword [0x423f44]
mov dword [ebp - 4], eax
jae 0x41427a
mov eax, ebx
sar eax, 5
mov eax, dword [eax*4 + 0x423f60]
mov ecx, ebx
and ecx, 0x1f
test byte [eax + ecx*8 + 4], 1
je 0x41427a
push 1
push esi
push ebx
call fcn.004126b6
add esp, 0xc
cmp eax, 0xffffffff
mov dword [ebp - 0x1008], eax
je 0x414284
push 2
push esi
push ebx
call fcn.004126b6
add esp, 0xc
cmp eax, 0xffffffff
je 0x414284
push edi
mov edi, dword [ebp + 0xc]
sub edi, eax
test edi, edi
jle 0x414224
push 0x1000
lea eax, [ebp - 0x1004]
push esi
push eax
call fcn.00413260
push 0x8000
push ebx
call fcn.00414293
add esp, 0x14
mov dword [ebp + 8], eax
mov eax, 0x1000
cmp edi, eax
jge 0x4141e3
mov eax, edi
push eax
lea eax, [ebp - 0x1004]
push eax
push ebx
call fcn.00412742
add esp, 0xc
cmp eax, 0xffffffff
je 0x414201
sub edi, eax
test edi, edi
jg 0x4141d8
jmp 0x414217
cmp dword [0x4218a8], 5
jne 0x414214
mov dword [0x4218a4], 0xd
or esi, 0xffffffff
push dword [ebp + 8]
push ebx
call fcn.00414293
pop ecx
pop ecx
jmp 0x414264
jge 0x414264
push 0
push dword [ebp + 0xc]
push ebx
call fcn.004126b6
push ebx
call fcn.004136fd
add esp, 0x10
push eax
call dword [sym.imp.KERNEL32.dll_SetEndOfFile]
mov esi, eax
neg esi
sbb esi, esi
neg esi
dec esi
cmp esi, 0xffffffff
jne 0x414264
mov dword [0x4218a4], 0xd
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov dword [0x4218a8], eax
push 0
push dword [ebp - 0x1008]
push ebx
call fcn.004126b6
add esp, 0xc
mov eax, esi
pop edi
jmp 0x414287
mov dword [0x4218a4], 9
or eax, 0xffffffff
mov ecx, dword [ebp - 4]
pop esi
pop ebx
call fcn.0040bf1b
leave
ret

Function at 0x41431c
Capabilities:
Delete file

Disassembly:
push esi
mov esi, ecx
mov eax, dword [esi]
test eax, eax
je 0x41433d
cmp dword [esi + 0xc], 0
je 0x414332
push eax
call dword [sym.imp.KERNEL32.dll_DeleteFileA]
push dword [esi]
call fcn.0040c06d
and dword [esi], 0
pop ecx
pop esi
ret
Function at 0x414621
Capabilities:
Read .ini file

Disassembly:
push ebp
mov ebp, esp
mov eax, 0x110c
call fcn.0040c030
and dword [ebp - 4], 0
push ebx
push esi
mov esi, ecx
push edi
mov dword [ebp - 8], esi
call fcn.00414e1d
movzx eax, ax
push eax
push dword [ebp + 8]
lea eax, [ebp - 0x10c]
push 0x403604
push eax
call fcn.0040c280
add esp, 0x10
push dword [esi]
mov esi, dword [sym.imp.KERNEL32.dll_GetPrivateProfileStringA]
mov ebx, 0x1000
push ebx
lea eax, [ebp - 0x110c]
push eax
mov edi, 0x401c49
push edi
push 0
lea eax, [ebp - 0x10c]
push eax
call esi
test eax, eax
jne 0x414699
mov eax, dword [ebp - 8]
push dword [eax]
lea eax, [ebp - 0x110c]
push ebx
push eax
push edi
push 0
push dword [ebp + 8]
call esi
mov cl, byte [ebp - 0x110c]
test cl, cl
lea eax, [ebp - 0x110c]
je 0x4146c6
cmp byte [ebp - 0x110b], 0
je 0x4146c6
test cl, cl
je 0x4146bc
inc eax
cmp byte [eax], 0
jne 0x4146b6
inc dword [ebp - 4]
inc eax
mov cl, byte [eax]
test cl, cl
jne 0x4146b6
mov ebx, dword [ebp - 4]
lea eax, [ebx*8 + 4]
push eax
call fcn.0040c34a
test ebx, ebx
pop ecx
mov dword [ebp - 4], eax
mov dword [eax], ebx
lea esi, [ebp - 0x110c]
jbe 0x41471c
lea edi, [eax + 8]
push esi
call fcn.0040c8da
pop ecx
mov ecx, dword [ebp - 8]
push esi
push dword [ebp + 8]
mov dword [edi - 4], eax
call fcn.0041433f
mov dword [edi], eax
mov eax, esi
add edi, 8
lea ecx, [eax + 1]
mov dl, byte [eax]
inc eax
test dl, dl
jne 0x414709
sub eax, ecx
dec ebx
lea esi, [esi + eax + 1]
jne 0x4146e9
mov eax, dword [ebp - 4]
pop edi
pop esi
pop ebx
leave
ret 4

Function at 0x414759
Capabilities:
Copy file
Get common file path
Set file attributes

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x208
push esi
mov esi, ecx
cmp dword [esi], 0
je 0x41476f
call fcn.0041431c
mov eax, dword [ebp + 0xc]
test eax, eax
mov dword [esi + 0xc], eax
jne 0x41477e
push dword [ebp + 8]
jmp 0x4147e2
lea eax, [ebp - 0x208]
push eax
push 0x104
call dword [sym.imp.KERNEL32.dll_GetTempPathA]
lea eax, [ebp - 0x104]
push eax
push 0
push 0x40360c
lea eax, [ebp - 0x208]
push eax
call dword [sym.imp.KERNEL32.dll_GetTempFileNameA]
push 0
lea eax, [ebp - 0x104]
push eax
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.dll_CopyFileA]
test eax, eax
je 0x4147d7
push 0x80
lea eax, [ebp - 0x104]
push eax
call dword [sym.imp.KERNEL32.dll_SetFileAttributesA]
test eax, eax
jne 0x4147db
xor eax, eax
jmp 0x4147ed
lea eax, [ebp - 0x104]
push eax
call fcn.0040c8da
mov dword [esi], eax
xor eax, eax
pop ecx
inc eax
pop esi
leave
ret 8