joyce8/EMBER2024-capa huggingface dataset:
Function at 0x5861c0
Capabilities:
Resolve function by parsing pe exports

Disassembly:
sub esp, 0x64
push ebx
push edi
mov edi, ecx
xor ebx, ebx
cmp dword [edi + 0x1c], ebx
je 0x5863c4
mov eax, dword [edi + 0x78]
mov dword [esp + 8], ebx
cmp eax, ebx
jle 0x5863c4
push ebp
push esi
mov ebp, 0x1c7
mov edx, dword [0xcf95d4]
mov esi, dword [edi + 0x68]
mov ecx, dword [0xcf95d0]
mov eax, ebx
add eax, esi
push edx
push ecx
push eax
call dword [sym.imp.USER32.dll_PtInRect]
mov ecx, dword [edi + 0x68]
mov esi, ebx
test eax, eax
je 0x5862ed
mov eax, 0x1b3
add esi, ecx
mov dword [esp + 0x28], eax
mov dword [esp + 0x38], eax
mov eax, dword [0xcea298]
mov dword [esp + 0x14], 0x1e3
test eax, eax
mov dword [esp + 0x18], 0x1b5
mov dword [esp + 0x1c], 0x208
mov dword [esp + 0x20], 0x1c9
mov dword [esp + 0x24], 0x1a3
mov dword [esp + 0x2c], 0x1c8
mov dword [esp + 0x30], ebp
mov dword [esp + 0x34], 0x21f
mov dword [esp + 0x3c], 0x244
mov dword [esp + 0x40], ebp
je 0x5862c9
mov eax, dword [0xcf95d4]
mov ecx, dword [0xcf95d0]
push eax
lea edx, [esp + 0x18]
push ecx
push edx
call dword [sym.imp.USER32.dll_PtInRect]
test eax, eax
jne 0x5862c9
mov eax, dword [0xcf95d4]
mov ecx, dword [0xcf95d0]
push eax
lea edx, [esp + 0x28]
push ecx
push edx
call dword [sym.imp.USER32.dll_PtInRect]
test eax, eax
jne 0x5862c9
mov eax, dword [0xcf95d4]
mov ecx, dword [0xcf95d0]
push eax
lea edx, [esp + 0x38]
push ecx
push edx
call dword [sym.imp.USER32.dll_PtInRect]
test eax, eax
je 0x5863ab
mov eax, dword [esi + 0x14]
test eax, eax
jne 0x5862e1
mov eax, dword [0x62d4c4]
add eax, 0x37
push eax
call fcn.00575a50
add esp, 4
mov dword [esi + 0x14], 1
jmp 0x5863ab
mov eax, 0x1b3
add esi, ecx
mov dword [esp + 0x58], eax
mov dword [esp + 0x68], eax
mov eax, dword [0xcea298]
mov dword [esp + 0x44], 0x1e3
test eax, eax
mov dword [esp + 0x48], 0x1b5
mov dword [esp + 0x4c], 0x208
mov dword [esp + 0x50], 0x1c9
mov dword [esp + 0x54], 0x1a3
mov dword [esp + 0x5c], 0x1c8
mov dword [esp + 0x60], ebp
mov dword [esp + 0x64], 0x21f
mov dword [esp + 0x6c], 0x244
mov dword [esp + 0x70], ebp
je 0x5863a4
mov ecx, dword [0xcf95d4]
mov edx, dword [0xcf95d0]
push ecx
lea eax, [esp + 0x48]
push edx
push eax
call dword [sym.imp.USER32.dll_PtInRect]
test eax, eax
jne 0x5863a4
mov ecx, dword [0xcf95d4]
mov edx, dword [0xcf95d0]
push ecx
lea eax, [esp + 0x58]
push edx
push eax
call dword [sym.imp.USER32.dll_PtInRect]
test eax, eax
jne 0x5863a4
mov ecx, dword [0xcf95d4]
mov edx, dword [0xcf95d0]
push ecx
lea eax, [esp + 0x68]
push edx
push eax
call dword [sym.imp.USER32.dll_PtInRect]
test eax, eax
je 0x5863ab
mov dword [esi + 0x14], 0
mov eax, dword [esp + 0x10]
mov ecx, dword [edi + 0x78]
inc eax
add ebx, 0x1c
cmp eax, ecx
mov dword [esp + 0x10], eax
jl 0x5861e8
pop esi
pop ebp
pop edi
pop ebx
add esp, 0x64
ret
Function at 0x5863d0
Capabilities:
Resolve function by parsing pe exports

Disassembly:
sub esp, 0x34
push ebx
push edi
mov edi, ecx
xor ebx, ebx
cmp dword [edi + 0x1c], ebx
je 0x5865ed
mov eax, dword [edi + 0x6c]
push ebp
push esi
mov dword [esp + 0x10], ebx
mov dword [eax + 0x10], ebx
mov eax, dword [edi + 0x78]
cmp eax, ebx
mov ebp, 0x1c7
jle 0x5864da
mov ecx, dword [edi + 0x68]
mov eax, 0x1b3
mov esi, ebx
mov dword [esp + 0x28], eax
mov dword [esp + 0x38], eax
mov eax, dword [0xcea298]
add esi, ecx
mov dword [esp + 0x14], 0x1e3
test eax, eax
mov dword [esp + 0x18], 0x1b5
mov dword [esp + 0x1c], 0x208
mov dword [esp + 0x20], 0x1c9
mov dword [esp + 0x24], 0x1a3
mov dword [esp + 0x2c], 0x1c8
mov dword [esp + 0x30], ebp
mov dword [esp + 0x34], 0x21f
mov dword [esp + 0x3c], 0x244
mov dword [esp + 0x40], ebp
je 0x5864ba
mov ecx, dword [0xcf95d4]
mov edx, dword [0xcf95d0]
push ecx
lea eax, [esp + 0x18]
push edx
push eax
call dword [sym.imp.USER32.dll_PtInRect]
test eax, eax
jne 0x5864ba
mov ecx, dword [0xcf95d4]
mov edx, dword [0xcf95d0]
push ecx
lea eax, [esp + 0x28]
push edx
push eax
call dword [sym.imp.USER32.dll_PtInRect]
test eax, eax
jne 0x5864ba
mov ecx, dword [0xcf95d4]
mov edx, dword [0xcf95d0]
push ecx
lea eax, [esp + 0x38]
push edx
push eax
call dword [sym.imp.USER32.dll_PtInRect]
test eax, eax
je 0x5864c1
mov dword [esi + 0x18], 0
mov eax, dword [esp + 0x10]
mov ecx, dword [edi + 0x78]
inc eax
add ebx, 0x1c
cmp eax, ecx
mov dword [esp + 0x10], eax
jl 0x5863fe
xor ebx, ebx
mov ecx, dword [0xcf95d4]
mov eax, dword [0xcf95d0]
mov esi, dword [sym.imp.USER32.dll_PtInRect]
push ecx
lea ecx, [edi + 0x4c]
push eax
push ecx
call esi
test eax, eax
je 0x58652a
cmp dword [edi + 0x1c], ebx
je 0x58652a
mov ecx, dword [edi + 0x70]
lea eax, [edi + 0x70]
cmp ecx, ebx
mov dword [edi + 0x1c], ebx
je 0x586518
push ebx
lea edx, [edi + 0x74]
push ebx
push edx
push eax
call fcn.005a6840
add esp, 0x10
mov eax, dword [0xd0af88]
cmp eax, ebx
je 0x58652a
push eax
call fcn.004e6ba0
add esp, 4
mov eax, 0x1b3
mov dword [esp + 0x34], 0x1e3
mov dword [esp + 0x28], eax
mov dword [esp + 0x18], eax
mov eax, dword [0xcea298]
mov dword [esp + 0x38], 0x1b5
cmp eax, ebx
mov dword [esp + 0x3c], 0x208
mov dword [esp + 0x40], 0x1c9
mov dword [esp + 0x24], 0x1a3
mov dword [esp + 0x2c], 0x1c8
mov dword [esp + 0x30], ebp
mov dword [esp + 0x14], 0x21f
mov dword [esp + 0x1c], 0x244
mov dword [esp + 0x20], ebp
je 0x5865d0
mov eax, dword [0xcf95d4]
mov ecx, dword [0xcf95d0]
push eax
lea edx, [esp + 0x38]
push ecx
push edx
call esi
test eax, eax
jne 0x5865d0
mov eax, dword [0xcf95d4]
mov ecx, dword [0xcf95d0]
push eax
lea edx, [esp + 0x28]
push ecx
push edx
call esi
test eax, eax
jne 0x5865d0
mov eax, dword [0xcf95d4]
mov ecx, dword [0xcf95d0]
push eax
lea edx, [esp + 0x18]
push ecx
push edx
call esi
test eax, eax
je 0x5865d3
mov dword [edi + 0x64], ebx
mov eax, dword [0xcf95d4]
mov ecx, dword [0xcf95d0]
push eax
push ecx
lea ecx, [edi + 0xa84]
call fcn.0042dcc0
pop esi
pop ebp
pop edi
pop ebx
add esp, 0x34
ret
Function at 0x5981e0
Capabilities:
Get process heap force flags

Disassembly:
push 0xffffffffffffffff
push 0x62b37b
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x18
push esi
mov esi, dword [esp + 0x30]
and esi, 0xffff
push edi
mov edi, dword [esp + 0x30]
mov eax, esi
and edi, 0xffff
push 0xd123f0
shl eax, 0x10
or eax, edi
mov ecx, 0xd12500
mov dword [0xd123f0], eax
call fcn.00599330
mov ecx, dword [0xd12504]
mov dword [esp + 0x34], eax
cmp eax, ecx
je 0x59824c
mov edx, dword [0xd123f0]
push ebx
mov ebx, dword [eax + 0xc]
cmp edx, ebx
pop ebx
jb 0x59824c
lea eax, [esp + 0x34]
jmp 0x598254
mov dword [esp + 0x30], ecx
lea eax, [esp + 0x30]
mov eax, dword [eax]
cmp eax, ecx
mov dword [0xd124fc], eax
je 0x598282
mov eax, dword [eax + 0x10]
pop edi
mov dword [0xd123f4], eax
pop esi
mov ecx, dword [eax]
inc ecx
mov dword [eax], ecx
mov eax, dword [0xd123f4]
mov ecx, dword [esp + 0x18]
mov dword fs:[0], ecx
add esp, 0x24
ret
push 0x34
call fcn.00613321
add esp, 4
mov dword [esp + 0x34], eax
test eax, eax
mov dword [esp + 0x28], 0
je 0x5982a5
mov ecx, eax
call fcn.00598490
jmp 0x5982a7
xor eax, eax
test eax, eax
mov dword [esp + 0x28], 0xffffffff
mov dword [0xd123f4], eax
je 0x598357
push esi
push edi
mov ecx, eax
call fcn.005985a0
test eax, eax
je 0x598324
mov eax, dword [0xd123f4]
lea edx, [esp + 8]
push edx
mov dword [esp + 0x10], 0
mov dword [eax], 1
mov ecx, dword [0xd123f0]
lea eax, [esp + 0x14]
mov dword [esp + 0xc], ecx
push eax
mov ecx, 0xd12500
call fcn.00598dc0
mov ecx, eax
pop edi
pop esi
mov eax, dword [ecx]
mov edx, dword [ecx + 4]
mov ecx, dword [0xd123f4]
mov dword [eax + 0x10], ecx
mov eax, dword [0xd123f4]
mov dword [esp + 0x14], edx
mov ecx, dword [esp + 0x18]
mov dword fs:[0], ecx
add esp, 0x24
ret
mov ecx, dword [0xd123f4]
test ecx, ecx
je 0x598357
call fcn.005984e0
mov ecx, dword [0xd123f4]
test ecx, ecx
mov esi, ecx
je 0x59834d
call fcn.005984c0
push esi
call fcn.006066eb
add esp, 4
mov dword [0xd123f4], 0
mov ecx, dword [esp + 0x20]
pop edi
xor eax, eax
pop esi
mov dword fs:[0], ecx
add esp, 0x24
ret
Function at 0x59c640
Capabilities:
Access peb ldr_data
Get process heap flags

Disassembly:
push 0xffffffffffffffff
push 0x62b541
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
push ecx
push ebx
push ebp
push esi
mov esi, ecx
push edi
mov dword [esp + 0x10], esi
call fcn.005994f0
lea ebp, [esi + 0x18]
xor edi, edi
mov ecx, ebp
mov dword [esp + 0x1c], edi
call fcn.00597fe0
mov al, byte [esp + 0x28]
mov ebx, 1
push 0xc
mov byte [esp + 0x20], bl
mov byte [esi + 0x38], al
call fcn.00613321
mov dword [eax], eax
mov dword [eax + 4], eax
add esp, 4
mov dword [esi + 0x3c], eax
mov dword [esi + 0x40], edi
mov ecx, dword [esp + 0x28]
mov edx, dword [esp + 0x24]
mov dword [esi + 0x30], ecx
mov ecx, ebp
mov byte [esp + 0x1c], 2
mov dword [esi], 0x62f27c
mov dword [esi + 0x10], edi
mov dword [esi + 0xc], edx
mov dword [esi + 0x14], ebx
call fcn.005980f0
mov ebx, dword [esi + 0x3c]
mov edi, dword [ebx]
cmp edi, ebx
je 0x59c706
mov eax, edi
mov edi, dword [edi]
mov dword [esp + 0x28], eax
lea eax, [esp + 0x24]
push 0
push eax
lea ecx, [esp + 0x30]
call fcn.004525d0
mov eax, dword [eax]
push eax
mov ecx, dword [eax + 4]
mov edx, dword [eax]
mov dword [ecx], edx
mov ecx, dword [eax]
mov edx, dword [eax + 4]
mov dword [ecx + 4], edx
call fcn.006066eb
mov ecx, dword [esi + 0x40]
add esp, 4
dec ecx
cmp edi, ebx
mov dword [esi + 0x40], ecx
jne 0x59c6c9
lea edi, [esi + 0x44]
mov dword [esp + 0x1c], 3
mov ecx, edi
call fcn.00597fe0
mov ecx, ebp
mov byte [esp + 0x1c], 4
mov dword [esi], 0x62f260
call fcn.005980f0
mov ecx, edi
call fcn.005980f0
mov ecx, dword [esp + 0x14]
mov eax, esi
pop edi
pop esi
pop ebp
pop ebx
mov dword fs:[0], ecx
add esp, 0x10
ret 8
Function at 0x5a1c90
Capabilities:
Read file on windows

Disassembly:
mov eax, dword [esp + 4]
sub esp, 0x10
mov edx, dword [ecx + eax*4 + 0x607c]
test edx, edx
jne 0x5a1caa
xor eax, eax
add esp, 0x10
ret 0x14
cmp edx, 1
jne 0x5a1cc3
mov eax, dword [ecx + eax*4 + 0x107c]
add esp, 0x10
mov dword [esp + 4], eax
jmp dword [sym.imp.KERNEL32.dll_ReadFile]
lea edx, [eax + eax*8 - 9]
push ebx
mov ebx, dword [ecx + eax*8 + 0x4078]
push ebp
mov ebp, dword [ecx + edx*2 + 0x708a]
push esi
push edi
mov edi, dword [ecx + eax*8 + 0x407c]
mov edx, dword [ecx + edx*2 + 0x708e]
add ebp, ebx
adc edx, edi
xor esi, esi
mov dword [esp + 0x1c], edx
lea edx, [eax + eax*8 + 0x3840]
mov edx, dword [ecx + edx*2]
mov dword [esp + 0x24], edx
mov edx, dword [esp + 0x2c]
mov dword [esp + 0x2c], edx
add edx, ebx
adc esi, edi
mov dword [esp + 0x10], edx
xor edx, edx
cmp esi, edx
jb 0x5a1d3c
mov edx, dword [esp + 0x24]
ja 0x5a1d21
cmp dword [esp + 0x10], edx
jbe 0x5a1d3c
xor esi, esi
cmp edi, esi
jb 0x5a1d31
ja 0x5a1d2d
cmp ebx, edx
jbe 0x5a1d31
xor edx, edx
jmp 0x5a1d40
sub edx, dword [ecx + eax*8 + 0x4078]
mov dword [esp + 0x2c], edx
mov edx, dword [esp + 0x2c]
mov esi, dword [esp + 0x30]
test esi, esi
je 0x5a1d4a
mov dword [esi], edx
mov ebx, dword [ecx + eax*8 + 0x4078]
mov edi, dword [ecx + eax*8 + 0x407c]
add ebx, edx
push edx
mov edx, dword [esp + 0x20]
mov dword [ecx + eax*8 + 0x4078], ebx
adc edi, 0
push edx
mov edx, dword [esp + 0x30]
mov dword [ecx + eax*8 + 0x407c], edi
mov eax, dword [ecx + eax*4 + 0x7c]
push ebp
push edx
mov ecx, dword [ecx + eax*4]
call fcn.005be0f0
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x10
ret 0x14

Function at 0x5a2090
Capabilities:
Check if file exists
Get file attributes

Disassembly:
push ebx
push esi
mov esi, dword [esp + 0xc]
push edi
push esi
mov ebx, ecx
call dword [sym.imp.KERNEL32.dll_GetFileAttributesA]
mov edi, eax
cmp edi, 0xffffffff
jne 0x5a20d1
push esi
mov ecx, ebx
call fcn.005a19d0
test eax, eax
je 0x5a20be
pop edi
pop esi
mov eax, 0x20
pop ebx
ret 4
push esi
push str.File_s_n
push str.Missing.log
call fcn.00425c60
add esp, 0xc
mov eax, edi
pop edi
pop esi
pop ebx
ret 4
Function at 0x5a2f50
Capabilities:
Enumerate process modules

Disassembly:
push ecx
mov eax, dword [esp + 8]
push esi
test eax, eax
mov dword [esp + 4], 0
jne 0x5a2f65
pop esi
pop ecx
ret
push eax
push 8
call sub.KERNEL32.dll_CreateToolhelp32Snapshot
mov esi, eax
cmp esi, 0xffffffff
jne 0x5a2f79
xor eax, eax
pop esi
pop ecx
ret
push edi
mov edi, dword [esp + 0x18]
push edi
push esi
mov dword [edi], 0x224
call sub.KERNEL32.dll_Module32First
test eax, eax
je 0x5a2fce
push ebx
push ebp
mov ebp, dword [esp + 0x1c]
lea ebx, [edi + 0x20]
push 4
push ebp
push ebx
call fcn.00621e70
add esp, 0xc
test eax, eax
je 0x5a2fc4
push edi
push esi
call sub.KERNEL32.dll_Module32Next
test eax, eax
jne 0x5a2f98
pop ebp
pop ebx
push esi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov eax, dword [esp + 8]
pop edi
pop esi
pop ecx
ret
pop ebp
mov dword [esp + 0xc], 1
pop ebx
push esi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov eax, dword [esp + 8]
pop edi
pop esi
pop ecx
ret
Function at 0x5a43e0
Capabilities:
Encode data using xor

Disassembly:
push 0xd14a70
call dword [sym.imp.KERNEL32.dll_QueryPerformanceFrequency]
mov eax, dword [0xd14a70]
mov ecx, dword [0xd14a74]
or eax, ecx
je 0x5a4416
fild qword [0xd14a70]
mov dword [0xd14a80], 0
fmul qword [0x62f3c8]
fstp qword [0xd14b48]
push ebx
xor eax, eax
mov bl, 0xaa
mov cl, byte [eax + 0x67579c]
xor cl, bl
mov byte [eax + 0x67579c], cl
inc eax
cmp eax, 9
jb 0x5a441b
push 0x67579c
call dword [sym.imp.KERNEL32.dll_GetModuleHandleA]
xor ecx, ecx
mov dl, byte [ecx + 0x67579c]
xor dl, bl
mov byte [ecx + 0x67579c], dl
inc ecx
cmp ecx, 9
jb 0x5a443c
test eax, eax
je 0x5a44d2
xor ecx, ecx
mov dl, byte [ecx + 0x6757a8]
xor dl, bl
mov byte [ecx + 0x6757a8], dl
inc ecx
cmp ecx, 0x19
jb 0x5a4456
push 0x6757a8
push eax
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
mov dword [0xd14b44], eax
xor ecx, ecx
mov dl, byte [ecx + 0x6757a8]
xor dl, bl
mov byte [ecx + 0x6757a8], dl
inc ecx
cmp ecx, 0x19
jb 0x5a447d
test eax, eax
je 0x5a44d2
push 0xd14a70
push 0xd14a78
call eax
test eax, eax
jl 0x5a44d2
mov ecx, dword [0xd14a70]
mov eax, dword [0xd14a74]
or ecx, eax
je 0x5a44d2
fild qword [0xd14a70]
mov eax, 1
pop ebx
mov dword [0xd14a80], eax
fmul qword [0x62f3c8]
fstp qword [0xd14b48]
ret
mov eax, dword [0xd14a80]
pop ebx
ret

Function at 0x5bdf4c
Capabilities:
Get system information on windows

Disassembly:
push 0xffffffffffffffff
push 0x62b641
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0xbc
push ebx
push esi
mov esi, ecx
push edi
push 0x110
mov dword [esp + 0x10], esi
lea ecx, [esi + 0x1020]
call fcn.005bdc00
lea eax, [esp + 0x10]
xor ebx, ebx
push eax
mov dword [esp + 0xd4], ebx
call dword [sym.imp.KERNEL32.dll_GetSystemInfo]
mov ecx, dword [esp + 0x2c]
xor eax, eax
mov dword [esi + 4], ecx
mov ecx, 0x25
lea edi, [esp + 0x34]
lea edx, [esp + 0x34]
rep stosd dword es:[edi], eax
push edx
mov dword [esp + 0x38], 0x94
call dword [sym.imp.KERNEL32.dll_GetVersionExA]
cmp dword [esp + 0x38], 4
jne 0x5bdfb3
mov ecx, dword [esp + 0x44]
mov eax, 1
cmp ecx, eax
je 0x5bdfb5
xor eax, eax
push 0x38
mov dword [esi], eax
call fcn.00613321
add esp, 4
cmp eax, ebx
je 0x5bdfce
mov ecx, eax
call fcn.005bdf10
jmp 0x5bdfd0
xor eax, eax
mov dword [esi + 8], eax
mov ecx, 0x400
xor eax, eax
lea edi, [esi + 0x1c]
mov dword [esi + 0xc], ebx
mov dword [esi + 0x10], ebx
mov dword [esi + 0x14], ebx
mov dword [esi + 0x18], ebx
mov dword [esi + 0x101c], ebx
rep stosd dword es:[edi], eax
mov ecx, dword [esp + 0xc8]
mov eax, esi
pop edi
pop esi
pop ebx
mov dword fs:[0], ecx
add esp, 0xc8
ret
Function at 0x5be0f0
Capabilities:
Read file on windows
Read file via mapping

Disassembly:
push ebx
push ebp
mov ebp, ecx
push esi
push edi
cmp dword [ebp], 0
je 0x5be136
mov eax, dword [esp + 0x18]
mov ecx, dword [ebp + 0xc]
push 0
push 0
push eax
push ecx
call dword [sym.imp.KERNEL32.dll_SetFilePointer]
mov eax, dword [esp + 0x20]
mov ecx, dword [esp + 0x14]
lea edx, [esp + 0x18]
push 0
push edx
mov edx, dword [ebp + 0xc]
push eax
push ecx
push edx
call dword [sym.imp.KERNEL32.dll_ReadFile]
pop edi
pop esi
pop ebp
mov eax, 1
pop ebx
ret 0x10
mov edi, dword [esp + 0x1c]
mov ecx, dword [ebp + 4]
mov esi, dword [esp + 0x18]
xor eax, eax
cmp edi, eax
jb 0x5be162
ja 0x5be14d
cmp esi, ecx
jb 0x5be162
push eax
push ecx
push edi
push esi
call fcn.00615eb0
mov ebx, eax
xor eax, eax
sub esi, ebx
sbb edi, eax
mov eax, edi
jmp 0x5be168
mov ebx, esi
xor esi, esi
xor eax, eax
mov edi, dword [esp + 0x20]
mov edx, dword [ebp + 0x10]
lea ecx, [ebx + edi]
push ecx
push esi
push eax
push 4
push edx
call dword [sym.imp.KERNEL32.dll_MapViewOfFile]
test eax, eax
mov dword [ebp + 0x18], eax
jne 0x5be194
call dword [sym.imp.KERNEL32.dll_GetLastError]
pop edi
pop esi
pop ebp
xor eax, eax
pop ebx
ret 0x10
mov ecx, edi
mov edi, dword [esp + 0x14]
lea esi, [eax + ebx]
mov eax, ecx
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, eax
and ecx, 3
rep movsb byte es:[edi], byte [esi]
mov eax, dword [ebp + 0x18]
test eax, eax
je 0x5be1c0
push eax
call dword [sym.imp.KERNEL32.dll_UnmapViewOfFile]
mov dword [ebp + 0x18], 0
pop edi
pop esi
pop ebp
mov eax, 1
pop ebx
ret 0x10
Function at 0x5be1d0
Capabilities:
Read file on windows
Read file via mapping

Disassembly:
push ebx
push esi
mov esi, ecx
push edi
xor edi, edi
lea eax, [esi + 0x1c]
cmp dword [eax], 0
je 0x5be1eb
inc edi
add eax, 4
cmp edi, 0x400
jl 0x5be1da
cmp edi, 0x400
jne 0x5be1fb
pop edi
pop esi
xor eax, eax
pop ebx
ret 0x10
cmp dword [esi], 0
je 0x5be24e
mov ebx, dword [esp + 0x18]
push ebx
call fcn.00613321
add esp, 4
mov dword [esi + edi*4 + 0x1c], eax
mov eax, dword [esp + 0x10]
mov ecx, dword [esi + 0xc]
push 0
push 0
push eax
push ecx
call dword [sym.imp.KERNEL32.dll_SetFilePointer]
mov eax, dword [esi + edi*4 + 0x1c]
mov ecx, dword [esi + 0xc]
lea edx, [esp + 0x18]
push 0
push edx
push ebx
push eax
push ecx
call dword [sym.imp.KERNEL32.dll_ReadFile]
mov eax, dword [esp + 0x1c]
lea edx, [edi + 1]
mov dword [eax], edx
mov eax, dword [esi + edi*4 + 0x1c]
pop edi
pop esi
pop ebx
ret 0x10
mov ecx, dword [esi + 4]
mov ebx, dword [esp + 0x10]
push ebp
mov ebp, dword [esp + 0x18]
xor eax, eax
cmp ebp, eax
jb 0x5be27b
ja 0x5be266
cmp ebx, ecx
jb 0x5be27b
push eax
push ecx
push ebp
push ebx
call fcn.00615eb0
xor ecx, ecx
sub ebx, eax
mov dword [esp + 0x14], eax
sbb ebp, ecx
jmp 0x5be287
mov dword [esp + 0x14], ebx
xor ebx, ebx
mov eax, dword [esp + 0x14]
xor ebp, ebp
mov edx, dword [esp + 0x1c]
add eax, edx
push eax
mov eax, dword [esi + 0x10]
push ebx
push ebp
push 4
push eax
call dword [sym.imp.KERNEL32.dll_MapViewOfFile]
test eax, eax
mov dword [esi + edi*4 + 0x1c], eax
pop ebp
jne 0x5be2b3
call dword [sym.imp.KERNEL32.dll_GetLastError]
pop edi
pop esi
xor eax, eax
pop ebx
ret 0x10
mov edx, dword [esp + 0x1c]
lea ecx, [edi + 1]
mov dword [edx], ecx
mov eax, dword [esi + edi*4 + 0x1c]
mov ecx, dword [esp + 0x10]
pop edi
pop esi
add eax, ecx
pop ebx
ret 0x10

Function at 0x5c4cc0
Capabilities:
Read file on windows

Disassembly:
push ebp
mov ebp, dword [esp + 8]
mov ecx, dword [esp + 0xc]
mov edx, dword [esp + 0x10]
mov eax, dword [esp + 0x14]
push 0
push eax
push edx
push ecx
push ebp
call dword [sym.imp.KERNEL32.dll_ReadFile]
pop ebp
ret

Function at 0x5c4ce0
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, dword [esp + 8]
mov ecx, dword [esp + 0xc]
mov edx, dword [esp + 0x10]
mov eax, dword [esp + 0x14]
push 0
push eax
push edx
push ecx
push ebp
call dword [sym.imp.KERNEL32.dll_WriteFile]
pop ebp
ret
Function at 0x5e9e60
Capabilities:
Enumerate pe sections

Disassembly:
push edi
push esi
push ebx
sub esp, 0x10
mov edx, dword [esp + 0x20]
mov eax, dword [esp + 0x24]
mov ebx, dword [esp + 0x28]
mov esi, dword [esp + 0x2c]
mov edi, dword [esp + 0x30]
xor ecx, ecx
mov dword [esp + 8], ecx
mov dword [esp + 4], esi
mov dword [esp + 0xc], ebx
nop
lea esi, [esi]
mov cl, byte [edx]
mov esi, dword [esp + 4]
mov edi, dword [esp + 0xc]
mov byte [esi], cl
mov bl, byte [eax]
mov byte [esi + 1], bl
mov cl, byte [edi]
mov byte [esi + 2], cl
mov cl, byte [edx + 2]
mov byte [esi + 3], cl
mov cl, byte [eax]
mov byte [esi + 4], cl
mov ecx, edi
mov cl, byte [ecx]
mov byte [esi + 5], cl
mov cl, byte [edx + 4]
mov byte [esi + 6], cl
mov cl, byte [eax + 2]
mov byte [esi + 7], cl
mov ecx, edi
mov cl, byte [ecx + 2]
mov byte [esi + 8], cl
mov cl, byte [edx + 6]
mov byte [esi + 9], cl
mov cl, byte [eax + 2]
mov byte [esi + 0xa], cl
mov ecx, edi
mov cl, byte [ecx + 2]
mov byte [esi + 0xb], cl
mov cl, byte [edx + 8]
mov byte [esi + 0xc], cl
mov cl, byte [eax + 4]
mov byte [esi + 0xd], cl
mov ecx, edi
mov cl, byte [ecx + 4]
mov byte [esi + 0xe], cl
mov cl, byte [edx + 0xa]
mov byte [esi + 0xf], cl
mov cl, byte [eax + 4]
mov byte [esi + 0x10], cl
mov ecx, edi
mov cl, byte [ecx + 4]
mov byte [esi + 0x11], cl
mov cl, byte [edx + 0xc]
mov byte [esi + 0x12], cl
mov cl, byte [eax + 6]
mov byte [esi + 0x13], cl
mov ecx, edi
mov cl, byte [ecx + 6]
mov byte [esi + 0x14], cl
mov cl, byte [edx + 0xe]
mov byte [esi + 0x15], cl
mov cl, byte [eax + 6]
mov byte [esi + 0x16], cl
mov ecx, edi
mov cl, byte [ecx + 6]
mov byte [esi + 0x17], cl
mov cl, byte [edx + 0x10]
add esi, dword [esp + 0x30]
mov byte [esi], cl
mov cl, byte [eax]
mov byte [esi + 1], cl
mov ecx, edi
mov cl, byte [ecx]
mov byte [esi + 2], cl
mov cl, byte [edx + 0x12]
mov byte [esi + 3], cl
mov cl, byte [eax]
mov byte [esi + 4], cl
mov ecx, edi
mov cl, byte [ecx]
mov byte [esi + 5], cl
mov cl, byte [edx + 0x14]
mov byte [esi + 6], cl
mov cl, byte [eax + 2]
mov byte [esi + 7], cl
mov ecx, edi
mov cl, byte [ecx + 2]
mov byte [esi + 8], cl
mov cl, byte [edx + 0x16]
mov byte [esi + 9], cl
mov cl, byte [eax + 2]
mov byte [esi + 0xa], cl
mov ecx, edi
mov cl, byte [ecx + 2]
mov byte [esi + 0xb], cl
mov cl, byte [edx + 0x18]
mov byte [esi + 0xc], cl
mov cl, byte [eax + 4]
mov byte [esi + 0xd], cl
mov ecx, edi
mov cl, byte [ecx + 4]
mov byte [esi + 0xe], cl
mov cl, byte [edx + 0x1a]
mov byte [esi + 0xf], cl
mov cl, byte [eax + 4]
mov byte [esi + 0x10], cl
mov ecx, edi
mov cl, byte [ecx + 4]
mov byte [esi + 0x11], cl
mov cl, byte [edx + 0x1c]
mov byte [esi + 0x12], cl
mov cl, byte [eax + 6]
mov byte [esi + 0x13], cl
mov ecx, edi
mov cl, byte [ecx + 6]
mov byte [esi + 0x14], cl
mov cl, byte [edx + 0x1e]
add edx, 0x20
mov byte [esi + 0x15], cl
mov cl, byte [eax + 6]
add eax, 0x10
mov byte [esi + 0x16], cl
mov ecx, edi
mov cl, byte [ecx + 6]
mov byte [esi + 0x17], cl
mov ecx, dword [esp + 8]
inc ecx
add dword [esp + 0xc], 0x10
add esi, dword [esp + 0x30]
mov dword [esp + 4], esi
cmp ecx, 4
mov dword [esp + 8], ecx
jl 0x5e9e90
add esp, 0x10
pop ebx
pop esi
pop edi
ret
Function at 0x61d572
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x1a4
mov edx, dword [ebp + 8]
xor ecx, ecx
mov eax, 0x67e8e8
cmp edx, dword [eax]
je 0x61d594
add eax, 8
inc ecx
cmp eax, 0x67e978
jl 0x61d585
push esi
mov esi, ecx
shl esi, 3
cmp edx, dword [esi + 0x67e8e8]
jne 0x61d6c2
mov eax, dword [0xd37798]
cmp eax, 1
je 0x61d69c
test eax, eax
jne 0x61d5c5
cmp dword [0x67deec], 1
je 0x61d69c
cmp edx, 0xfc
je 0x61d6c2
lea eax, [ebp - 0x1a4]
push 0x104
push eax
push 0
call dword [sym.imp.KERNEL32.dll_GetModuleFileNameA]
test eax, eax
jne 0x61d5fc
lea eax, [ebp - 0x1a4]
push str._program_name_unknown_
push eax
call fcn.0061a580
pop ecx
pop ecx
lea eax, [ebp - 0x1a4]
push edi
push eax
lea edi, [ebp - 0x1a4]
call fcn.00616100
inc eax
pop ecx
cmp eax, 0x3c
jbe 0x61d63f
lea eax, [ebp - 0x1a4]
push eax
call fcn.00616100
mov edi, eax
lea eax, [ebp - 0x1a4]
sub eax, 0x3b
push 3
add edi, eax
push 0x632e20
push edi
call fcn.006147d0
add esp, 0x10
lea eax, [ebp - 0xa0]
push str.Runtime_Error__n_nProgram:
push eax
call fcn.0061a580
lea eax, [ebp - 0xa0]
push edi
push eax
call fcn.0061a590
lea eax, [ebp - 0xa0]
push 0x632e00
push eax
call fcn.0061a590
push dword [esi + 0x67e8ec]
lea eax, [ebp - 0xa0]
push eax
call fcn.0061a590
push 0x12010
lea eax, [ebp - 0xa0]
push str.Microsoft_Visual_C_Runtime_Library
push eax
call fcn.00621a35
add esp, 0x2c
pop edi
jmp 0x61d6c2
lea eax, [ebp + 8]
lea esi, [esi + 0x67e8ec]
push 0
push eax
push dword [esi]
call fcn.00616100
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]
pop esi
leave
ret

Function at 0x61d872
Capabilities:
Check if file exists
Get file attributes

Disassembly:
push dword [esp + 4]
call dword [sym.imp.KERNEL32.dll_GetFileAttributesA]
cmp eax, 0xffffffff
jne 0x61d892
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
call fcn.006137a0
pop ecx
or eax, 0xffffffff
ret
test al, 1
je 0x61d8b5
test byte [esp + 8], 2
je 0x61d8b5
call fcn.00613813
mov dword [eax], 0xd
call fcn.0061381c
mov dword [eax], 5
jmp 0x61d88e
xor eax, eax
ret