joyce8/EMBER2024-capa huggingface dataset:
Function at 0x4118a6
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 0x4118d4
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 0x4118db
cmp ebx, dword [eax + 4]
jae 0x4118db
xor eax, eax
jmp 0x411acb
push edi
mov edi, dword [esi + 0xc]
cmp edi, 0xffffffff
jne 0x4118ec
xor eax, eax
inc eax
jmp 0x411aca
xor edx, edx
mov dword [ebp + 8], edx
mov eax, ebx
mov ecx, dword [eax]
cmp ecx, 0xffffffff
je 0x411902
cmp ecx, edx
jae 0x411a47
cmp dword [eax + 4], 0
je 0x41190b
inc dword [ebp + 8]
inc edx
add eax, 0xc
cmp edx, edi
jbe 0x4118f3
cmp dword [ebp + 8], 0
je 0x41192d
mov eax, dword [esi - 8]
cmp eax, dword [ebp - 4]
jb 0x411a47
cmp eax, esi
jae 0x411a47
mov eax, dword [0x40a508]
mov edi, ebx
and edi, 0xfffff000
xor esi, esi
test eax, eax
jle 0x411952
cmp dword [esi*4 + 0x40a510], edi
je 0x411a4b
inc esi
cmp esi, eax
jl 0x411940
push 0x1c
lea eax, [ebp - 0x20]
push eax
push ebx
call dword [0x4010b8]
test eax, eax
je 0x411ac7
cmp dword [ebp - 8], 0x1000000
jne 0x411ac7
test byte [ebp - 0xc], 0xcc
je 0x4119d0
mov ecx, dword [ebp - 0x1c]
cmp word [ecx], 0x5a4d
jne 0x411ac7
mov eax, dword [ecx + 0x3c]
add eax, ecx
cmp dword [eax], 0x4550
jne 0x411ac7
cmp word [eax + 0x18], 0x10b
jne 0x411ac7
sub ebx, ecx
cmp word [eax + 6], 0
movzx ecx, word [eax + 0x14]
lea ecx, [ecx + eax + 0x18]
jbe 0x411ac7
mov eax, dword [ecx + 0xc]
cmp ebx, eax
jb 0x4119d0
mov edx, dword [ecx + 8]
add edx, eax
cmp ebx, edx
jae 0x4119d0
test byte [ecx + 0x27], 0x80
jne 0x411a47
push 1
push 0x40a550
call dword [0x4010b4]
test eax, eax
jne 0x4118e4
mov ecx, dword [0x40a508]
test ecx, ecx
mov edx, ecx
jle 0x411a04
lea eax, [ecx*4 + 0x40a50c]
cmp dword [eax], edi
je 0x411a04
dec edx
sub eax, 4
test edx, edx
jg 0x4119f8
test edx, edx
jne 0x411a35
push 0xf
pop ebx
cmp ecx, ebx
jg 0x411a11
mov ebx, ecx
xor edx, edx
test ebx, ebx
jl 0x411a29
lea eax, [edx*4 + 0x40a510]
mov esi, dword [eax]
inc edx
cmp edx, ebx
mov dword [eax], edi
mov edi, esi
jle 0x411a17
cmp ecx, 0x10
jge 0x411a35
inc ecx
mov dword [0x40a508], ecx
push 0
push 0x40a550
call dword [0x4010b4]
jmp 0x4118e4
xor eax, eax
jmp 0x411aca
test esi, esi
jle 0x4118e4
mov ebx, dword [0x4010b4]
push 1
push 0x40a550
call ebx
test eax, eax
jne 0x4118e4
cmp dword [esi*4 + 0x40a510], edi
je 0x411aa1
mov eax, dword [0x40a508]
lea esi, [eax - 1]
test esi, esi
jl 0x411a8f
cmp dword [esi*4 + 0x40a510], edi
je 0x411a8b
dec esi
jns 0x411a7f
test esi, esi
jge 0x411a9f
cmp eax, 0x10
jge 0x411a9a
inc eax
mov dword [0x40a508], eax
lea esi, [eax - 1]
jmp 0x411aa1
je 0x411ab9
xor ecx, ecx
test esi, esi
jl 0x411ab9
lea eax, [ecx*4 + 0x40a510]
mov edx, dword [eax]
inc ecx
cmp ecx, esi
mov dword [eax], edi
mov edi, edx
jle 0x411aa7
push 0
push 0x40a550
call ebx
jmp 0x4118e4
or eax, 0xffffffff
pop edi
pop esi
pop ebx
leave
ret
Function at 0x480660
Capabilities:
Packed with generic packer

Disassembly:
pushal
mov esi, section..MC1
lea edi, [esi - 0x53000]
mov dword [edi + 0x65c24], 0xbca42e16
push edi
jmp 0x48068a
mov al, byte [esi]
inc esi
mov byte [edi], al
inc edi
add ebx, ebx
jne 0x480691
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
jb 0x480680
mov eax, 1
add ebx, ebx
jne 0x4806a3
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc eax, eax
add ebx, ebx
jae 0x4806b4
jne 0x4806d3
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
jb 0x4806d3
dec eax
add ebx, ebx
jne 0x4806c0
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc eax, eax
jmp 0x480698
add ebx, ebx
jne 0x4806cf
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc ecx, ecx
jmp 0x480725
xor ecx, ecx
sub eax, 3
jb 0x4806eb
shl eax, 8
mov al, byte [esi]
inc esi
xor eax, 0xffffffff
je 0x48075a
sar eax, 1
mov ebp, eax
jmp 0x4806f6
add ebx, ebx
jne 0x4806f6
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
jb 0x4806c4
inc ecx
add ebx, ebx
jne 0x480704
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
jb 0x4806c4
add ebx, ebx
jne 0x480711
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc ecx, ecx
add ebx, ebx
jae 0x480706
jne 0x480722
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
jae 0x480706
add ecx, 2
cmp ebp, 0xfffffb00
adc ecx, 2
lea edx, [edi + ebp]
cmp ebp, 0xfffffffc
jbe 0x480744
mov al, byte [edx]
inc edx
mov byte [edi], al
inc edi
dec ecx
jne 0x480736
jmp 0x480686
mov eax, dword [edx]
add edx, 4
mov dword [edi], eax
add edi, 4
sub ecx, 4
ja 0x480744
add edi, ecx
jmp 0x480686
pop esi
mov edi, esi
mov ecx, 0x31e5
mov al, byte [edi]
inc edi
sub al, 0xe8
cmp al, 1
ja 0x480762
cmp byte [edi], 0x19
jne 0x480762
mov eax, dword [edi]
mov bl, byte [edi + 4]
shr ax, 8
rol eax, 0x10
xchg ah, al
sub eax, edi
sub bl, 0xe8
add eax, esi
mov dword [edi], eax
add edi, 5
mov al, bl
loop 0x480767
lea edi, [esi + 0x7d000]
mov eax, dword [edi]
or eax, eax
je 0x4807df
mov ebx, dword [edi + 4]
lea eax, [eax + esi + 0x81e24]
add ebx, esi
push eax
add edi, 8
call dword [esi + 0x81eb0]
xchg ebp, eax
mov al, byte [edi]
inc edi
or al, al
je 0x480794
mov ecx, edi
jns 0x4807c3
movzx eax, word [edi]
inc edi
push eax
inc edi
mov ecx, 0xaef24857
push edi
dec eax
repne scasb al, byte es:[edi]
push ebp
call dword [esi + 0x81eb4]
or eax, eax
je 0x4807d9
mov dword [ebx], eax
add ebx, 4
jmp 0x4807b1
call dword [esi + 0x81ec4]
mov ebp, dword [esi + 0x81eb8]
lea edi, [esi - 0x1000]
mov ebx, 0x1000
push eax
push esp
push 4
push ebx
push edi
call ebp
lea eax, [edi + 0x31f]
and byte [eax], 0x7f
and byte [eax + 0x28], 0x7f
pop eax
push eax
push esp
push eax
push ebx
push edi
call ebp
pop eax
popal
lea eax, [esp - 0x80]
push 0
cmp esp, eax
jne 0x480813
sub esp, 0xffffff80
jmp 0x401314
Function at 0x40100b
Capabilities:
Query or enumerate registry value

Disassembly:
call 0x40100b
push eax
call sub.KERNEL32.dll_ExitProcess
push ebp
mov ebp, esp
add esp, 0xfffffef0
jmp 0x40109c
lea eax, [ebp - 0x104]
push eax
call fcn.004015f4
push 0x401019
lea eax, [ebp - 0x104]
push eax
call sub.KERNEL32.dll_lstrcatA
push eax
call sub.KERNEL32.dll_LoadLibraryA
test eax, eax
jne 0x401165
lea eax, [ebp - 0x10c]
push eax
push 0x20019
push 0
push 0x401038
push 0x80000001
call sub.ADVAPI32.dll_RegOpenKeyExA
cmp eax, 0
jne 0x4011a5
mov dword [ebp - 0x110], 0x103
lea eax, [ebp - 0x110]
push eax
lea eax, [ebp - 0x104]
push eax
push 0
push 0
push 0x401052
push dword [ebp - 0x10c]
call sub.ADVAPI32.dll_RegQueryValueExA
push eax
push dword [ebp - 0x10c]
call sub.ADVAPI32.dll_RegCloseKey
pop eax
cmp eax, 0
jne 0x4011a5
lea eax, [ebp - 0x104]
push eax
call sub.KERNEL32.dll_lstrlenA
lea ebx, [ebp - 0x104]
add ebx, eax
dec ebx
cmp byte [ebx], 0x5c
je 0x40114a
mov word [ebx], 0x5c
push 0x401023
lea eax, [ebp - 0x104]
push eax
call sub.KERNEL32.dll_lstrcatA
push eax
call sub.KERNEL32.dll_LoadLibraryA
test eax, eax
je 0x4011a5
mov dword [ebp - 0x108], eax
push 0x40102d
push eax
call sub.KERNEL32.dll_GetProcAddress
test eax, eax
je 0x40119a
push 0x3e8
call eax
test eax, eax
je 0x40119a
call 0x40118a
add dword [esp], 0x1e76
call eax
push 0
call sub.KERNEL32.dll_ExitProcess
push dword [ebp - 0x108]
call sub.KERNEL32.dll_FreeLibrary
push 0x10
push 0x401096
push 0x401057
push 0
call sub.USER32.dll_MessageBoxA
mov eax, 0xffffffff
leave
ret
Function at 0x10169aa
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
push ecx
push ebx
push esi
push edi
xor esi, esi
push esi
push 0x80
push 2
push esi
push esi
push 0x40000000
push dword [ebp + 8]
xor ebx, ebx
call dword [sym.imp.KERNEL32.dll_CreateFileA]
mov edi, eax
cmp edi, 0xffffffff
jne 0x10169d9
xor eax, eax
inc eax
jmp 0x1016a06
push esi
mov esi, dword [ebp + 0xc]
lea eax, [ebp - 4]
push eax
mov eax, dword [esi]
push esi
call dword [eax + 0x10]
push eax
mov eax, dword [esi]
push esi
call dword [eax + 0xc]
push eax
push edi
call dword [sym.imp.KERNEL32.dll_WriteFile]
test eax, eax
jne 0x10169fd
xor ebx, ebx
inc ebx
push edi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov eax, ebx
pop edi
pop esi
pop ebx
leave
ret
Function at 0x101742c
Capabilities:
Accept command line arguments
Parse pe header
Terminate process

Disassembly:
push 0x18
push 0x1001e88
call fcn.010183fc
mov edi, 0x94
mov eax, edi
call fcn.010176a0
mov dword [ebp - 0x18], esp
mov esi, esp
mov dword [esi], edi
push esi
call dword [sym.imp.KERNEL32.dll_GetVersionExA]
mov eax, dword [esi + 0x10]
mov dword [0x104fc9c], eax
mov ecx, dword [esi + 4]
mov dword [0x104fca8], ecx
mov edx, dword [esi + 8]
mov dword [0x104fcac], edx
mov esi, dword [esi + 0xc]
and esi, 0x7fff
mov dword [0x104fca0], esi
cmp eax, 2
je 0x101748c
or esi, 0x8000
mov dword [0x104fca0], esi
shl ecx, 8
add ecx, edx
mov dword [0x104fca4], ecx
cmp word [0x1000000], 0x5a4d
jne 0x10174ca
mov eax, dword [0x100003c]
cmp dword [eax + 0x1000000], 0x4550
jne 0x10174ca
movzx ecx, word [eax + 0x1000018]
cmp ecx, 0x10b
je 0x10174e3
cmp ecx, 0x20b
je 0x10174d0
and dword [ebp - 0x1c], 0
jmp 0x10174fa
cmp dword [eax + 0x1000084], 0xe
jbe 0x10174ca
xor ecx, ecx
cmp dword [eax + 0x10000f8], ecx
jmp 0x10174f4
cmp dword [eax + 0x1000074], 0xe
jbe 0x10174ca
xor ecx, ecx
cmp dword [eax + 0x10000e8], ecx
setne cl
mov dword [ebp - 0x1c], ecx
push 0
call fcn.010183a9
pop ecx
test eax, eax
jne 0x1017527
cmp dword [0x104fb74], 2
je 0x1017514
call fcn.01017e1e
push 0x1c
call fcn.01017c50
push 0xff
call fcn.01017ad1
pop ecx
pop ecx
and dword [ebp - 4], 0
call fcn.010181cc
test eax, eax
jge 0x101753c
push 0x1b
call fcn.01017407
pop ecx
call dword [sym.imp.KERNEL32.dll_GetCommandLineA]
mov dword [0x10536c4], eax
call fcn.010180a6
mov dword [0x104fb6c], eax
call fcn.010172fb
test eax, eax
jge 0x1017562
push 8
call fcn.01017407
pop ecx
call fcn.01017fc8
test eax, eax
jge 0x1017573
push 9
call fcn.01017407
pop ecx
call fcn.01017b01
mov dword [ebp - 0x20], eax
test eax, eax
je 0x1017586
push eax
call fcn.01017407
pop ecx
mov eax, dword [0x104fcbc]
mov dword [0x104fcc0], eax
push eax
push dword [0x104fcb4]
push dword [0x104fcb0]
call fcn.01016ba5
add esp, 0xc
mov esi, eax
mov dword [ebp - 0x24], esi
cmp dword [ebp - 0x1c], 0
jne 0x10175b6
push esi
call fcn.01017c10
call fcn.01017c32
jmp 0x10175e8
or dword [ebp - 4], 0xffffffff
mov eax, esi
lea esp, [ebp - 0x34]
call fcn.01018437
ret
Function at 0x1017c50
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x10c
mov ecx, dword [ebp + 8]
push ebx
push esi
push edi
xor eax, eax
cmp ecx, dword [eax*8 + 0x1045510]
je 0x1017c70
inc eax
cmp eax, 0x12
jb 0x1017c61
mov esi, eax
shl esi, 3
cmp ecx, dword [esi + 0x1045510]
mov dword [ebp + 8], esi
jne 0x1017e13
mov eax, dword [0x104fb74]
cmp eax, 1
je 0x1017de4
test eax, eax
jne 0x1017ca3
cmp dword [0x1045270], 1
je 0x1017de4
cmp ecx, 0xfc
je 0x1017e13
and byte [ebp - 8], 0
push 0x104
lea eax, [ebp - 0x10c]
push eax
push 0
call dword [sym.imp.KERNEL32.dll_GetModuleFileNameA]
test eax, eax
jne 0x1017cde
push 5
pop ecx
mov esi, 0x10021fc
lea edi, [ebp - 0x10c]
rep movsd dword es:[edi], dword [esi]
movsw word es:[edi], word [esi]
movsb byte es:[edi], byte [esi]
lea eax, [ebp - 0x10c]
lea ebx, [ebp - 0x10c]
lea edx, [eax + 1]
mov cl, byte [eax]
inc eax
test cl, cl
jne 0x1017ced
sub eax, edx
inc eax
cmp eax, 0x3c
jbe 0x1017d25
lea eax, [ebp - 0x10c]
lea edx, [eax + 1]
mov cl, byte [eax]
inc eax
test cl, cl
jne 0x1017d05
sub eax, edx
push 3
lea ebx, [ebp + eax - 0x147]
push 0x10021f8
push ebx
call fcn.0101a100
add esp, 0xc
mov eax, ebx
lea edx, [eax + 1]
mov cl, byte [eax]
inc eax
test cl, cl
jne 0x1017d2a
sub eax, edx
mov ecx, eax
mov eax, dword [ebp + 8]
mov eax, dword [eax + 0x1045514]
lea esi, [eax + 1]
mov dl, byte [eax]
inc eax
test dl, dl
jne 0x1017d41
sub eax, esi
lea eax, [eax + ecx + 0x1c]
add eax, 3
and eax, 0xfffffffc
call fcn.010176a0
mov edx, esp
push 6
pop ecx
mov esi, 0x10021dc
mov edi, edx
rep movsd dword es:[edi], dword [esi]
mov eax, ebx
movsw word es:[edi], word [esi]
mov esi, eax
mov cl, byte [eax]
inc eax
test cl, cl
jne 0x1017d6d
mov edi, edx
sub eax, esi
dec edi
mov cl, byte [edi + 1]
inc edi
test cl, cl
jne 0x1017d79
mov ecx, eax
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, eax
and ecx, 3
rep movsb byte es:[edi], byte [esi]
mov edi, edx
dec edi
mov al, byte [edi + 1]
inc edi
test al, al
jne 0x1017d92
mov eax, dword [ebp + 8]
mov esi, 0x10021d8
movsw word es:[edi], word [esi]
movsb byte es:[edi], byte [esi]
mov eax, dword [eax + 0x1045514]
mov esi, eax
mov cl, byte [eax]
inc eax
test cl, cl
jne 0x1017dad
mov edi, edx
sub eax, esi
dec edi
mov cl, byte [edi + 1]
inc edi
test cl, cl
jne 0x1017db9
mov ecx, eax
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
push 0x12010
mov ecx, eax
and ecx, 3
push 0x10021b0
push edx
rep movsb byte es:[edi], byte [esi]
call fcn.01019ff8
add esp, 0xc
jmp 0x1017e13
push 0xfffffffffffffff4
call dword [sym.imp.KERNEL32.dll_GetStdHandle]
test eax, eax
je 0x1017e13
mov esi, dword [esi + 0x1045514]
mov ecx, esi
lea edx, [ecx + 1]
mov bl, byte [ecx]
inc ecx
test bl, bl
jne 0x1017dfb
push 0
sub ecx, edx
lea edx, [ebp - 4]
push edx
push ecx
push esi
push eax
call dword [sym.imp.KERNEL32.dll_WriteFile]
lea esp, [ebp - 0x118]
pop edi
pop esi
pop ebx
leave
ret
Function at 0x10196ff
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x418
mov ecx, dword [ebp + 8]
cmp ecx, dword [0x1052588]
push ebx
push esi
push edi
jae 0x1019884
mov eax, ecx
sar eax, 5
lea ebx, [eax*4 + 0x10525a0]
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 - 0x14], ebx
je 0x1019884
xor edi, edi
cmp dword [ebp + 0x10], edi
mov dword [ebp - 8], edi
mov dword [ebp - 0x10], edi
jne 0x1019753
xor eax, eax
jmp 0x1019898
test al, 0x20
je 0x1019764
push 2
push edi
push edi
push ecx
call fcn.0101c031
add esp, 0x10
mov eax, dword [ebx]
add eax, esi
test byte [eax + 4], 0x80
je 0x1019820
cmp dword [ebp + 0x10], edi
mov eax, dword [ebp + 0xc]
mov dword [ebp - 4], eax
mov dword [ebp + 8], edi
jbe 0x1019858
mov ecx, dword [ebp - 4]
sub ecx, dword [ebp + 0xc]
lea eax, [ebp - 0x418]
cmp ecx, dword [ebp + 0x10]
jae 0x10197ba
mov edx, dword [ebp - 4]
inc dword [ebp - 4]
mov dl, byte [edx]
inc ecx
cmp dl, 0xa
jne 0x10197ab
inc dword [ebp - 0x10]
mov byte [eax], 0xd
inc eax
inc edi
mov ebx, dword [ebp - 0x14]
mov byte [eax], dl
inc eax
inc edi
cmp edi, 0x400
jl 0x1019790
mov edi, eax
lea eax, [ebp - 0x418]
sub edi, eax
push 0
lea eax, [ebp - 0xc]
push eax
push edi
lea eax, [ebp - 0x418]
push eax
mov eax, dword [ebx]
push dword [eax + esi]
call dword [sym.imp.KERNEL32.dll_WriteFile]
test eax, eax
je 0x10197fa
mov eax, dword [ebp - 0xc]
add dword [ebp - 8], eax
cmp eax, edi
jl 0x1019803
mov eax, dword [ebp - 4]
sub eax, dword [ebp + 0xc]
xor edi, edi
cmp eax, dword [ebp + 0x10]
jb 0x1019784
jmp 0x1019805
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov dword [ebp + 8], eax
xor edi, edi
mov eax, dword [ebp - 8]
cmp eax, edi
jne 0x101987f
cmp dword [ebp + 8], edi
je 0x1019858
push 5
pop eax
cmp dword [ebp + 8], eax
jne 0x101984d
mov dword [0x104fc94], eax
jmp 0x101988b
push edi
lea ecx, [ebp - 0xc]
push ecx
push dword [ebp + 0x10]
push dword [ebp + 0xc]
push dword [eax]
call dword [sym.imp.KERNEL32.dll_WriteFile]
test eax, eax
je 0x1019842
mov eax, dword [ebp - 0xc]
mov dword [ebp + 8], edi
mov dword [ebp - 8], eax
jmp 0x1019805
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov dword [ebp + 8], eax
jmp 0x1019805
push dword [ebp + 8]
call fcn.0101b991
pop ecx
jmp 0x1019895
mov eax, dword [ebx]
test byte [eax + esi + 4], 0x40
je 0x101986d
mov eax, dword [ebp + 0xc]
cmp byte [eax], 0x1a
je 0x101974c
mov dword [0x104fc90], 0x1c
mov dword [0x104fc94], edi
jmp 0x1019895
sub eax, dword [ebp - 0x10]
jmp 0x1019898
and dword [0x104fc94], 0
mov dword [0x104fc90], 9
or eax, 0xffffffff
pop edi
pop esi
pop ebx
leave
ret
Function at 0x1019d24
Capabilities:
Enumerate files on windows

Disassembly:
cmp dword [esp + 4], 0
je 0x1019d81
cmp dword [0x104fd0c], 0
jne 0x1019d47
mov ecx, 0x244
call fcn.01019631
test eax, eax
mov dword [0x104fd0c], eax
je 0x1019daa
mov eax, dword [0x104fd10]
test eax, eax
je 0x1019d5e
push eax
call dword [sym.imp.KERNEL32.dll_FindClose]
and dword [0x104fd10], 0
push dword [0x104fd0c]
push dword [esp + 8]
call dword [sym.imp.KERNEL32.dll_FindFirstFileA]
cmp eax, 0xffffffff
mov dword [0x104fd10], eax
je 0x1019daa
mov eax, dword [0x104fd0c]
add eax, 0x2c
ret
push dword [0x104fd0c]
push dword [0x104fd10]
call dword [sym.imp.KERNEL32.dll_FindNextFileA]
test eax, eax
jne 0x1019d78
push dword [0x104fd10]
call dword [sym.imp.KERNEL32.dll_FindClose]
and dword [0x104fd10], 0
xor eax, eax
ret

Function at 0x1019ff8
Capabilities:
Link many functions at runtime

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x10
push ebx
xor ebx, ebx
cmp dword [0x104fd18], ebx
push esi
push edi
jne 0x101a078
push 0x100231c
call dword [sym.imp.KERNEL32.dll_LoadLibraryA]
mov edi, eax
cmp edi, ebx
je 0x101a0b3
mov esi, dword [sym.imp.KERNEL32.dll_GetProcAddress]
push 0x1002310
push edi
call esi
test eax, eax
mov dword [0x104fd18], eax
je 0x101a0b3
push 0x1002300
push edi
call esi
push 0x10022ec
push edi
mov dword [0x104fd1c], eax
call esi
cmp dword [0x104fc9c], 2
mov dword [0x104fd20], eax
jne 0x101a078
push 0x10022d0
push edi
call esi
test eax, eax
mov dword [0x104fd28], eax
je 0x101a078
push 0x10022b8
push edi
call esi
mov dword [0x104fd24], eax
mov eax, dword [0x104fd24]
test eax, eax
je 0x101a0bd
call eax
test eax, eax
je 0x101a0a4
lea ecx, [ebp - 4]
push ecx
push 0xc
lea ecx, [ebp - 0x10]
push ecx
push 1
push eax
call dword [0x104fd28]
test eax, eax
je 0x101a0a4
test byte [ebp - 8], 1
jne 0x101a0bd
cmp dword [0x104fca8], 4
jb 0x101a0b7
or byte [ebp + 0x12], 0x20
jmp 0x101a0dc
xor eax, eax
jmp 0x101a0ec
or byte [ebp + 0x12], 4
jmp 0x101a0dc
mov eax, dword [0x104fd1c]
test eax, eax
je 0x101a0dc
call eax
mov ebx, eax
test ebx, ebx
je 0x101a0dc
mov eax, dword [0x104fd20]
test eax, eax
je 0x101a0dc
push ebx
call eax
mov ebx, eax
push dword [ebp + 0x10]
push dword [ebp + 0xc]
push dword [ebp + 8]
push ebx
call dword [0x104fd18]
pop edi
pop esi
pop ebx
leave
ret
Function at 0x101d35f
Capabilities:
Clear file content

Disassembly:
push ecx
push ebp
push esi
push edi
mov edi, dword [esp + 0x14]
xor esi, esi
cmp edi, dword [0x1052588]
jae 0x101d4bb
mov eax, edi
sar eax, 5
mov eax, dword [eax*4 + 0x10525a0]
mov ecx, edi
and ecx, 0x1f
test byte [eax + ecx*8 + 4], 1
je 0x101d4bb
push 1
push esi
push edi
call fcn.0101bc11
or ebp, 0xffffffff
add esp, 0xc
cmp eax, ebp
mov dword [esp + 0xc], eax
je 0x101d4b7
push 2
push esi
push edi
call fcn.0101bc11
add esp, 0xc
cmp eax, ebp
je 0x101d4b7
push ebx
mov ebx, dword [esp + 0x1c]
sub ebx, eax
test ebx, ebx
jle 0x101d463
push 0x1000
push 8
call dword [sym.imp.KERNEL32.dll_GetProcessHeap]
push eax
call dword [sym.imp.KERNEL32.dll_HeapAlloc]
mov ebp, eax
test ebp, ebp
jne 0x101d3fb
mov dword [0x104fc90], 0xc
or esi, 0xffffffff
jmp 0x101d4a3
push 0x8000
push edi
call fcn.0101dc98
pop ecx
pop ecx
mov dword [esp + 0x18], eax
mov eax, 0x1000
cmp ebx, eax
jge 0x101d417
mov eax, ebx
push eax
push ebp
push edi
call fcn.010196ff
add esp, 0xc
cmp eax, 0xffffffff
je 0x101d42f
sub ebx, eax
test ebx, ebx
jg 0x101d40c
jmp 0x101d445
cmp dword [0x104fc94], 5
jne 0x101d442
mov dword [0x104fc90], 0xd
or esi, 0xffffffff
push dword [esp + 0x18]
push edi
call fcn.0101dc98
pop ecx
pop ecx
push ebp
push 0
call dword [sym.imp.KERNEL32.dll_GetProcessHeap]
push eax
call dword [sym.imp.KERNEL32.dll_HeapFree]
jmp 0x101d4a3
jge 0x101d4a3
push 0
push dword [esp + 0x20]
push edi
call fcn.0101bc11
push edi
call fcn.0101bb7e
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, ebp
jne 0x101d4a3
mov dword [0x104fc90], 0xd
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov dword [0x104fc94], eax
push 0
push dword [esp + 0x14]
push edi
call fcn.0101bc11
add esp, 0xc
mov eax, esi
pop ebx
jmp 0x101d4c8
mov eax, ebp
jmp 0x101d4c8
mov dword [0x104fc90], 9
or eax, 0xffffffff
pop edi
pop esi
pop ebp
pop ecx
ret
Function at 0x101d4cd
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 [0x1052588]
push edi
jae 0x101d694
mov eax, esi
sar eax, 5
lea ebx, [eax*4 + 0x10525a0]
mov eax, dword [ebx]
and esi, 0x1f
shl esi, 3
add eax, esi
mov dl, byte [eax + 4]
test dl, 1
je 0x101d694
and dword [ebp - 0xc], 0
cmp dword [ebp + 0x10], 0
mov edi, dword [ebp + 0xc]
mov ecx, edi
je 0x101d573
test dl, 2
jne 0x101d573
test dl, 0x48
je 0x101d53d
mov al, byte [eax + 5]
cmp al, 0xa
je 0x101d53d
dec dword [ebp + 0x10]
mov byte [edi], al
mov eax, dword [ebx]
lea ecx, [edi + 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 [ebx]
push ecx
push dword [eax + esi]
call dword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
jne 0x101d586
call dword [sym.imp.KERNEL32.dll_GetLastError]
push 5
pop ecx
cmp eax, ecx
jne 0x101d56e
mov dword [0x104fc94], ecx
jmp 0x101d69b
cmp eax, 0x6d
jne 0x101d57a
xor eax, eax
jmp 0x101d6a8
push eax
call fcn.0101b991
pop ecx
jmp 0x101d6a5
mov eax, dword [ebx]
mov edx, dword [ebp - 0x10]
add dword [ebp - 0xc], edx
lea ecx, [eax + esi + 4]
mov al, byte [ecx]
test al, al
jns 0x101d68f
test edx, edx
je 0x101d5a9
cmp byte [edi], 0xa
jne 0x101d5a9
or al, 4
jmp 0x101d5ab
and al, 0xfb
mov byte [ecx], al
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 0x101d689
mov eax, dword [ebp - 8]
mov al, byte [eax]
cmp al, 0x1a
je 0x101d679
cmp al, 0xd
je 0x101d5df
mov byte [edi], al
inc edi
inc dword [ebp - 8]
jmp 0x101d66b
dec ecx
cmp dword [ebp - 8], ecx
jae 0x101d5f9
mov eax, dword [ebp - 8]
inc eax
cmp byte [eax], 0xa
jne 0x101d5f4
add dword [ebp - 8], 2
jmp 0x101d64d
mov dword [ebp - 8], eax
jmp 0x101d667
inc dword [ebp - 8]
push 0
lea eax, [ebp - 0x10]
push eax
push 1
lea eax, [ebp - 1]
push eax
mov eax, dword [ebx]
push dword [eax + esi]
call dword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
jne 0x101d621
call dword [sym.imp.KERNEL32.dll_GetLastError]
test eax, eax
jne 0x101d667
cmp dword [ebp - 0x10], 0
je 0x101d667
mov eax, dword [ebx]
test byte [eax + esi + 4], 0x48
je 0x101d642
mov al, byte [ebp - 1]
cmp al, 0xa
je 0x101d64d
mov byte [edi], 0xd
mov ecx, dword [ebx]
mov byte [ecx + esi + 5], al
jmp 0x101d66a
cmp edi, dword [ebp + 0xc]
jne 0x101d652
cmp byte [ebp - 1], 0xa
jne 0x101d652
mov byte [edi], 0xa
jmp 0x101d66a
push 1
push 0xffffffffffffffff
push dword [ebp + 8]
call fcn.0101bc11
add esp, 0xc
cmp byte [ebp - 1], 0xa
je 0x101d66b
mov byte [edi], 0xd
inc edi
mov ecx, dword [ebp - 0xc]
cmp dword [ebp - 8], ecx
jb 0x101d5c3
jmp 0x101d689
mov eax, dword [ebx]
lea esi, [eax + esi + 4]
mov al, byte [esi]
test al, 0x40
jne 0x101d689
or al, 2
mov byte [esi], al
sub edi, dword [ebp + 0xc]
mov dword [ebp - 0xc], edi
mov eax, dword [ebp - 0xc]
jmp 0x101d6a8
and dword [0x104fc94], 0
mov dword [0x104fc90], 9
or eax, 0xffffffff
pop edi
pop esi
pop ebx
leave
ret