joyce8/EMBER2024-capa huggingface dataset:
Function at 0x41643e
Capabilities:
Get geographical location

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x234
mov eax, dword [0x5749c8]
xor eax, ebp
mov dword [ebp - 4], eax
cmp dword [ebp + 0xc], 0x800
mov eax, dword [ebp + 8]
push esi
mov dword [ebp - 0x234], eax
mov esi, ecx
lea eax, [ebp - 0xc]
jne 0x416483
push 0x52dea8
push 4
push eax
call fcn.0050089b
push eax
call fcn.00401050
add esp, 0x10
jmp 0x416499
push 4
push eax
push 3
push dword [ebp + 0xc]
call dword [sym.imp.KERNEL32.dll_GetLocaleInfoW]
test eax, eax
je 0x416519
push edi
call fcn.005013bf
mov edi, dword [eax]
call fcn.005013bf
and dword [eax], 0
lea eax, [ebp - 0xc]
push eax
push dword [ebp - 0x234]
lea eax, [ebp - 0x230]
push esi
push 0x111
mov esi, 0x112
push esi
push eax
call fcn.005006c8
add esp, 0x18
mov dword [ebp - 0x234], eax
call fcn.005013bf
cmp dword [eax], 0
je 0x4164ed
call fcn.005013bf
push dword [eax]
call fcn.0040c516
pop ecx
jmp 0x4164f4
call fcn.005013bf
mov dword [eax], edi
cmp dword [ebp - 0x234], 0xffffffff
pop edi
je 0x416519
cmp dword [ebp - 0x234], esi
jae 0x416519
push 0
push 0
lea eax, [ebp - 0x230]
push eax
call dword [sym.imp.KERNEL32.dll_LoadLibraryExW]
jmp 0x41651b
xor eax, eax
mov ecx, dword [ebp - 4]
xor ecx, ebp
pop esi
call fcn.004ffbb1
leave
ret
Function at 0x4169ba
Capabilities:
Identify system language via api

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x144
mov eax, dword [0x5749c8]
xor eax, ebp
mov dword [ebp - 4], eax
mov eax, dword [ebp + 8]
push ebx
push esi
mov dword [ebp - 0x144], eax
mov eax, dword [ebp + 0xc]
push edi
push str.KERNEL32.DLL
mov dword [ebp - 0x13c], eax
xor esi, esi
call fcn.00410eb6
pop ecx
cmp eax, esi
je 0x416aa4
push str.GetThreadPreferredUILanguages
push eax
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
mov edi, eax
cmp edi, esi
je 0x416aa4
xor eax, eax
push 0xc8
mov word [ebp - 0xd0], ax
lea eax, [ebp - 0xce]
push esi
push eax
mov dword [ebp - 0x140], esi
call fcn.00500630
add esp, 0xc
lea eax, [ebp - 0x138]
push eax
lea eax, [ebp - 0xd0]
push eax
lea eax, [ebp - 0x140]
push eax
push 0x34
mov dword [ebp - 0x138], 0x65
call edi
test eax, eax
je 0x416aa4
lea edi, [ebp - 0xd0]
cmp word [ebp - 0xd0], si
je 0x416aa4
cmp esi, 0x14
jge 0x416aa4
push 0x10
push 0
push edi
call fcn.00503306
mov ebx, eax
add esp, 0xc
test ebx, ebx
je 0x416a93
call fcn.005013bf
cmp dword [eax], 0x22
je 0x416a93
mov dword [ebp + esi*4 - 0x134], ebx
inc esi
push edi
call fcn.00501362
lea edi, [edi + eax*2 + 2]
cmp word [edi], 0
pop ecx
jne 0x416a69
call dword [sym.imp.KERNEL32.dll_GetUserDefaultUILanguage]
mov edi, dword [sym.imp.KERNEL32.dll_ConvertDefaultLocale]
movzx eax, ax
mov ecx, eax
and ecx, 0x3ff
mov ebx, 0xfc00
and eax, ebx
or eax, ecx
push eax
mov dword [ebp - 0x138], ecx
call edi
push dword [ebp - 0x138]
mov dword [ebp + esi*4 - 0x134], eax
call edi
mov dword [ebp + esi*4 - 0x130], eax
call dword [sym.imp.KERNEL32.dll_GetSystemDefaultUILanguage]
movzx eax, ax
mov ecx, eax
and ecx, 0x3ff
and eax, ebx
or eax, ecx
push eax
mov dword [ebp - 0x138], ecx
call edi
push dword [ebp - 0x138]
mov dword [ebp + esi*4 - 0x12c], eax
call edi
mov dword [ebp + esi*4 - 0x128], eax
add esi, 4
cmp dword [0x5783ec], 0
jne 0x416b2f
mov dword [ebp + esi*4 - 0x134], 0x800
inc esi
xor edi, edi
test esi, esi
jle 0x416b58
push dword [ebp + edi*4 - 0x134]
mov ecx, dword [ebp - 0x144]
push dword [ebp - 0x13c]
call fcn.0041643e
pop ecx
pop ecx
test eax, eax
jne 0x416b5a
inc edi
cmp edi, esi
jl 0x416b35
xor eax, eax
mov ecx, dword [ebp - 4]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.004ffbb1
leave
ret 8

Function at 0x41c553
Capabilities:
Get common file path

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x210
mov eax, dword [0x5749c8]
xor eax, ebp
mov dword [ebp - 4], eax
push esi
push edi
mov edi, dword [ebp + 8]
mov esi, 0x105
push esi
lea eax, [ebp - 0x210]
push eax
call dword [sym.imp.KERNEL32.dll_GetSystemDirectoryW]
test eax, eax
jne 0x41c588
xor eax, eax
jmp 0x41c5db
lea eax, [ebp - 0x210]
push eax
call fcn.00501362
cmp word [ebp + eax*2 - 0x212], 0x5c
pop ecx
je 0x41c5b9
push 0x5269f8
lea eax, [ebp - 0x210]
push esi
push eax
call fcn.00500b07
add esp, 0xc
test eax, eax
jne 0x41c584
push edi
lea eax, [ebp - 0x210]
push esi
push eax
call fcn.00500b07
add esp, 0xc
test eax, eax
jne 0x41c584
lea eax, [ebp - 0x210]
push eax
call fcn.00410eb6
pop ecx
mov ecx, dword [ebp - 4]
pop edi
xor ecx, ebp
pop esi
call fcn.004ffbb1
leave
ret
Function at 0x4229b0
Capabilities:
Get graphical window text

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push esi
mov esi, dword [ebp + 8]
push edi
push dword [ebp + 0xc]
mov ecx, esi
call fcn.00422654
cmp dword [esi], 0
mov edi, eax
mov dword [esi + 0xc], 1
je 0x4229fa
push edi
call dword [sym.imp.USER32.dll_GetWindowTextLengthW]
lea ecx, [eax + 1]
push ecx
mov ecx, dword [ebp + 0x10]
push eax
call fcn.0040cb56
push eax
push edi
call dword [sym.imp.USER32.dll_GetWindowTextW]
mov ecx, dword [ebp + 0x10]
push 0xffffffffffffffff
call fcn.0040cb27
jmp 0x422a05
mov eax, dword [ebp + 0x10]
push dword [eax]
push edi
call fcn.0041a468
pop edi
pop esi
pop ebp
ret 0xc

Function at 0x422a0b
Capabilities:
Get graphical window text

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push esi
mov esi, dword [ebp + 8]
mov ecx, dword [esi + 4]
lea eax, [ebp + 8]
push eax
push dword [ebp + 0xc]
call fcn.00416065
push 0xfffffffffffffff0
push dword [ebp + 8]
call dword [sym.imp.USER32.dll_GetWindowLongW]
push dword [ebp + 0xc]
and eax, 3
mov ecx, esi
cmp al, 3
je 0x422a48
call fcn.00422654
mov dword [esi + 0xc], 1
jmp 0x422a4d
call fcn.00422654
cmp dword [esi], 0
je 0x422a96
push dword [ebp + 8]
call dword [sym.imp.USER32.dll_GetWindowTextLengthW]
test eax, eax
jle 0x422a6e
lea ecx, [eax + 1]
push ecx
mov ecx, dword [ebp + 0x10]
push eax
call fcn.0040cb56
jmp 0x422a80
mov ecx, dword [ebp + 0x10]
push 0xff
call fcn.004017b0
push 0x100
push eax
push dword [ebp + 8]
call dword [sym.imp.USER32.dll_GetWindowTextW]
mov ecx, dword [ebp + 0x10]
push 0xffffffffffffffff
call fcn.0040cb27
jmp 0x422aba
mov esi, dword [ebp + 0x10]
push dword [esi]
push 0xffffffffffffffff
push 0x14d
push dword [ebp + 8]
call dword [sym.imp.USER32.dll_SendMessageW]
cmp eax, 0xffffffff
jne 0x422aba
push dword [esi]
push dword [ebp + 8]
call fcn.0041a468
pop esi
pop ebp
ret 0xc

Function at 0x42deae
Capabilities:
Enumerate pe sections

Disassembly:
mov ecx, dword [esp + 8]
push esi
push edi
xor edi, edi
movzx eax, word [ecx + 0x14]
movzx esi, word [ecx + 6]
test esi, esi
lea eax, [eax + ecx + 0x18]
jbe 0x42dee9
mov ecx, dword [eax + 8]
test ecx, ecx
jne 0x42ded0
mov ecx, dword [eax + 0x10]
mov edx, dword [eax + 0xc]
cmp dword [esp + 0xc], edx
jb 0x42dee1
add edx, ecx
cmp dword [esp + 0xc], edx
jb 0x42deeb
inc edi
add eax, 0x28
cmp edi, esi
jb 0x42dec6
xor eax, eax
pop edi
pop esi
ret
Function at 0x42e51f
Capabilities:
Inspect section memory permissions

Disassembly:
add al, 0xeb
test eax, 0xeb0c5d89
push es
mov edi, dword [ebp - 0x88]
mov eax, dword [ebp + 0xc]
cmp ax, word [edi + 6]
jne 0x42e545
mov edx, dword [ebp - 0xb4]
xor ecx, ecx
mov edi, 0x60000000
jmp 0x42e563
movzx eax, ax
lea eax, [eax + eax*4]
mov ecx, dword [edi + eax*8 + 0x104]
mov edx, dword [edi + eax*8 + 0x108]
lea eax, [edi + eax*8 + 0xf8]
mov edi, dword [eax + 0x24]
lea eax, [edx + ecx - 1]
xor edx, edx
div dword [ebp - 0xac]
xor edx, edx
mov dword [ebp - 0x44], eax
mov eax, ecx
div dword [ebp - 0xac]
cmp eax, dword [ebp - 0x44]
ja 0x42e5c1
mov edx, edi
mov dword [ebp + 8], edi
and dword [ebp + 8], 0x40000000
mov dword [ebp + 0x10], edi
and edx, 0x20000000
and dword [ebp + 0x10], 0x80000000
mov ecx, dword [ebp + 0x18]
cmp edx, ebx
je 0x42e5a8
or byte [eax + ecx], 1
cmp dword [ebp + 8], ebx
je 0x42e5b1
or byte [eax + ecx], 2
cmp dword [ebp + 0x10], ebx
je 0x42e5bb
add ecx, eax
or byte [ecx], 4
inc eax
cmp eax, dword [ebp - 0x44]
jbe 0x42e59d
inc dword [ebp + 0xc]
mov eax, dword [ebp - 0x88]
mov cx, word [ebp + 0xc]
cmp cx, word [eax + 6]
jbe 0x42e527
mov dword [ebp + 8], esi
xor edi, edi
mov eax, dword [ebp + 0x18]
push 2
pop ecx
movzx eax, byte [edi + eax]
sub eax, ecx
je 0x42e60e
dec eax
je 0x42e605
sub eax, 3
je 0x42e5fc
mov dword [ebp - 4], 0x40
jmp 0x42e62b
mov dword [ebp - 4], 4
jmp 0x42e611
mov dword [ebp - 4], 0x20
jmp 0x42e611
mov dword [ebp - 4], ecx
lea eax, [ebp - 4]
push eax
push dword [ebp - 4]
push dword [ebp - 0xac]
push dword [ebp + 8]
call dword [ebp - 0xbc]
test eax, eax
je 0x42e65d
mov eax, dword [ebp - 0xac]
add dword [ebp + 8], eax
inc edi
cmp edi, dword [ebp - 0x8c]
jbe 0x42e5dd
mov eax, dword [ebp - 0x88]
mov edi, dword [eax + 0x28]
add edi, esi
call fcn.0042de6e
add eax, 0xff87525c
jne 0x42e668
push 1
push esi
call edi
mov eax, esi
jmp 0x42e669
rcr byte [edi + 0x5e], 0x5b
Function at 0x45abc3
Capabilities:
Extract resource via kernel32 functions

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push ecx
push ebx
push esi
push edi
mov dword [ebp - 4], ecx
xor ebx, ebx
call fcn.0040f371
mov esi, dword [eax + 0xc]
push 5
push dword [ebp + 8]
push esi
call dword [sym.imp.KERNEL32.dll_FindResourceW]
push eax
push esi
call dword [sym.imp.KERNEL32.dll_LoadResource]
mov edi, eax
test edi, edi
je 0x45abfc
push edi
call dword [sym.imp.KERNEL32.dll_LockResource]
mov ebx, eax
mov ecx, dword [ebp - 4]
push esi
push dword [ebp + 0xc]
push ebx
call fcn.0045a800
push edi
mov esi, eax
call dword [sym.imp.KERNEL32.dll_FreeResource]
pop edi
mov eax, esi
pop esi
pop ebx
leave
ret 8

Function at 0x45ac5a
Capabilities:
Extract resource via kernel32 functions

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push ebx
mov ebx, dword [ebp + 8]
push esi
push edi
mov edi, ecx
mov dword [edi + 0x78], ebx
test ebx, 0xffff0000
jne 0x45ac7e
cmp dword [edi + 0x74], 0
jne 0x45ac7e
movzx eax, bx
mov dword [edi + 0x74], eax
call fcn.0040f371
mov esi, dword [eax + 0xc]
push 5
push ebx
push esi
call dword [sym.imp.KERNEL32.dll_FindResourceW]
push eax
push esi
call dword [sym.imp.KERNEL32.dll_LoadResource]
push esi
push dword [ebp + 0xc]
mov ebx, eax
push ebx
mov ecx, edi
call fcn.0045ac1b
push ebx
mov esi, eax
call dword [sym.imp.KERNEL32.dll_FreeResource]
pop edi
mov eax, esi
pop esi
pop ebx
pop ebp
ret 8

Function at 0x48b25c
Capabilities:
Extract resource via kernel32 functions

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push ecx
push esi
mov esi, dword [ebp + 0xc]
push edi
mov dword [ebp - 4], ecx
test esi, esi
jne 0x48b276
call fcn.0040f371
mov esi, dword [eax + 0xc]
push dword [0x57a7ac]
push dword [ebp + 8]
push esi
call dword [sym.imp.KERNEL32.dll_FindResourceW]
mov edi, eax
test edi, edi
jne 0x48b294
xor eax, eax
pop edi
pop esi
leave
ret 8
push edi
push esi
call dword [sym.imp.KERNEL32.dll_LoadResource]
mov dword [ebp + 0xc], eax
test eax, eax
je 0x48b28c
push ebx
push eax
call dword [sym.imp.KERNEL32.dll_LockResource]
mov ebx, eax
test ebx, ebx
jne 0x48b2c1
xor esi, esi
push dword [ebp + 0xc]
call dword [sym.imp.KERNEL32.dll_FreeResource]
mov eax, esi
pop ebx
jmp 0x48b28e
push edi
push esi
call dword [sym.imp.KERNEL32.dll_SizeofResource]
mov ecx, dword [ebp - 4]
push eax
push ebx
call fcn.0048b18a
mov esi, eax
jmp 0x48b2b3

Function at 0x4dc6a9
Capabilities:
Resolve function by parsing pe exports

Disassembly:
mov edi, edi
push esi
mov esi, ecx
call fcn.00413e2c
call fcn.0040b370
cmp eax, esi
pop esi
jne 0x4dc6c5
mov ecx, 0x578920
jmp fcn.0041d178
ret
Function at 0x4e004c
Capabilities:
Extract resource via kernel32 functions

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push ebx
push esi
mov esi, dword [ebp + 8]
test byte [esi + 4], 1
push edi
mov ebx, ecx
je 0x4e0064
mov edi, dword [esi + 0xc]
jmp 0x4e00a4
push 5
push dword [esi + 0xc]
push dword [esi + 8]
call dword [sym.imp.KERNEL32.dll_FindResourceW]
mov edi, eax
test edi, edi
jne 0x4e007d
call fcn.0041abf8
push edi
push dword [esi + 8]
call dword [sym.imp.KERNEL32.dll_LoadResource]
mov edi, eax
test edi, edi
jne 0x4e0092
call fcn.0041abf8
push edi
call dword [sym.imp.KERNEL32.dll_LockResource]
mov edi, eax
test edi, edi
jne 0x4e00a4
call fcn.0041abf8
call fcn.0040f371
cmp dword [eax + 0x3c], 0
je 0x4e00b9
push edi
mov ecx, ebx
call fcn.004dee76
mov edi, eax
push dword [ebp + 0xc]
push edi
call fcn.004dff66
mov dword [ebp + 8], eax
mov eax, dword [ebx + 0x7c]
test eax, eax
je 0x4e00d7
push eax
call dword [sym.imp.KERNEL32.dll_GlobalFree]
and dword [ebx + 0x7c], 0
mov eax, dword [ebp + 8]
test eax, eax
je 0x4e00e3
mov edi, eax
mov dword [ebx + 0x7c], eax
or dword [esi + 4], 1
mov dword [esi + 0xc], edi
pop edi
pop esi
pop ebx
pop ebp
ret 8

Function at 0x4ffbb1
Capabilities:
Terminate process

Disassembly:
cmp ecx, dword [0x5749c8]
jne 0x4ffbbb
repz ret
jmp fcn.005080bc
Function at 0x510d18
Capabilities:
Link many functions at runtime

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x24
mov eax, dword [0x5749c8]
xor eax, ebp
mov dword [ebp - 4], eax
mov eax, dword [ebp + 8]
push ebx
mov dword [ebp - 0x20], eax
mov eax, dword [ebp + 0xc]
push esi
push edi
mov dword [ebp - 0x1c], eax
call fcn.00505c7b
and dword [ebp - 0x14], 0
cmp dword [0x57ce18], 0
mov dword [ebp - 0x18], eax
jne 0x510dcb
push str.USER32.DLL
call dword [sym.imp.KERNEL32.dll_LoadLibraryW]
mov ebx, eax
test ebx, ebx
je 0x510e73
mov edi, dword [sym.imp.KERNEL32.dll_GetProcAddress]
push 0x5541a8
push ebx
call edi
test eax, eax
je 0x510e73
mov esi, dword [sym.imp.KERNEL32.dll_EncodePointer]
push eax
call esi
push 0x554198
push ebx
mov dword [0x57ce18], eax
call edi
push eax
call esi
push 0x554184
push ebx
mov dword [0x57ce1c], eax
call edi
push eax
call esi
push str.GetUserObjectInformationW
push ebx
mov dword [0x57ce20], eax
call edi
push eax
call esi
mov dword [0x57ce28], eax
test eax, eax
je 0x510dcb
push str.GetProcessWindowStation
push ebx
call edi
push eax
call esi
mov dword [0x57ce24], eax
mov eax, dword [0x57ce24]
mov ecx, dword [ebp - 0x18]
mov esi, dword [sym.imp.KERNEL32.dll_DecodePointer]
cmp eax, ecx
je 0x510e24
cmp dword [0x57ce28], ecx
je 0x510e24
push eax
call esi
push dword [0x57ce28]
mov edi, eax
call esi
mov ebx, eax
test edi, edi
je 0x510e24
test ebx, ebx
je 0x510e24
call edi
test eax, eax
je 0x510e1b
lea ecx, [ebp - 0x24]
push ecx
push 0xc
lea ecx, [ebp - 0x10]
push ecx
push 1
push eax
call ebx
test eax, eax
je 0x510e1b
test byte [ebp - 8], 1
jne 0x510e24
or dword [ebp + 0x10], 0x200000
jmp 0x510e57
mov eax, dword [0x57ce1c]
cmp eax, dword [ebp - 0x18]
je 0x510e57
push eax
call esi
test eax, eax
je 0x510e57
call eax
mov dword [ebp - 0x14], eax
test eax, eax
je 0x510e57
mov eax, dword [0x57ce20]
cmp eax, dword [ebp - 0x18]
je 0x510e57
push eax
call esi
test eax, eax
je 0x510e57
push dword [ebp - 0x14]
call eax
mov dword [ebp - 0x14], eax
push dword [0x57ce18]
call esi
test eax, eax
je 0x510e73
push dword [ebp + 0x10]
push dword [ebp - 0x1c]
push dword [ebp - 0x20]
push dword [ebp - 0x14]
call eax
jmp 0x510e75
xor eax, eax
mov ecx, dword [ebp - 4]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.004ffbb1
leave
ret
Function at 0x5c50a335
Capabilities:
Delete file

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push ecx
push ebx
push esi
push edi
mov esi, ecx
call fcn.5c50ac69
push dword [esi + 4]
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov edi, dword [esi + 0x10]
test edi, edi
je 0x5c50a364
mov ecx, dword [edi + 0xc]
call fcn.5c5074e0
mov ecx, edi
call fcn.5c5074e0
mov edi, dword [esi + 0x14]
test edi, edi
je 0x5c50a37a
mov ecx, dword [edi + 0xc]
call fcn.5c5074e0
mov ecx, edi
call fcn.5c5074e0
mov edi, dword [esi + 0x18]
xor ebx, ebx
test edi, edi
je 0x5c50a3be
cmp dword [edi], ebx
jbe 0x5c50a3ab
mov eax, dword [edi + 0xc]
push dword [eax + ebx*4]
call dword [sym.imp.KERNEL32.dll_DeleteFileA]
mov eax, dword [esi + 0x18]
mov ecx, dword [eax + 0xc]
mov ecx, dword [ecx + ebx*4]
call fcn.5c5074e0
mov edi, dword [esi + 0x18]
inc ebx
cmp ebx, dword [edi]
jb 0x5c50a387
xor ebx, ebx
test edi, edi
je 0x5c50a3be
mov ecx, dword [edi + 0xc]
call fcn.5c5074e0
mov ecx, edi
call fcn.5c5074e0
mov edi, dword [esi + 0x1c]
test edi, edi
je 0x5c50a3d4
mov ecx, dword [edi + 0xc]
call fcn.5c5074e0
mov ecx, edi
call fcn.5c5074e0
cmp dword [esi + 0xc], 1
jne 0x5c50a3e1
mov ecx, dword [esi]
call fcn.5c51ac42
mov ecx, dword [esi + 0x24]
test ecx, ecx
je 0x5c50a41f
mov edi, 0x5c502508
mov edx, ebx
movzx eax, byte [ecx + edx]
cmp al, byte [edi + edx]
jne 0x5c50a400
inc edx
cmp edx, 2
jne 0x5c50a3ef
jmp 0x5c50a405
sbb ebx, ebx
or ebx, 1
test ebx, ebx
je 0x5c50a417
push ecx
push 4
call dword [sym.imp.msvcrt.dll_setlocale]
pop ecx
pop ecx
mov ecx, dword [esi + 0x24]
push ecx
call dword [sym.imp.msvcrt.dll_free]
pop ecx
mov ecx, dword [esi]
pop edi
pop esi
pop ebx
test ecx, ecx
je 0x5c50a42d
call fcn.5c5074e0
mov esp, ebp
pop ebp
ret

Function at 0x5c50a431
Capabilities:
Delete file

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push ecx
push ecx
push edi
mov edi, edx
mov eax, ecx
mov dword [ebp - 4], eax
cmp edi, 3
jbe 0x5c50a44f
mov eax, 0x88760353
jmp 0x5c50a4e1
push ebx
push esi
xor esi, esi
push esi
push 0x8000080
push 2
push esi
push esi
push 0x40000000
push eax
call dword [sym.imp.KERNEL32.dll_CreateFileA]
mov ebx, eax
cmp ebx, 0xffffffff
je 0x5c50a4d1
push 0x28
pop edx
lea ecx, [ebp - 8]
call fcn.5c507487
mov ecx, dword [ebp - 8]
test ecx, ecx
je 0x5c50a49c
mov eax, edi
and edi, 1
shr eax, 1
and eax, 1
push eax
push edi
mov edi, dword [ebp - 4]
push ebx
push edi
call fcn.5c50a2c0
mov esi, eax
jmp 0x5c50a49f
mov edi, dword [ebp - 4]
test esi, esi
jne 0x5c50a4b1
push ebx
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov eax, 0x88760356
jmp 0x5c50a4df
mov ecx, esi
call fcn.5c50a5ea
test eax, eax
je 0x5c50a4d8
mov ecx, esi
call fcn.5c50a335
mov ecx, esi
call fcn.5c5074e0
push edi
call dword [sym.imp.KERNEL32.dll_DeleteFileA]
mov eax, 0x88760361
jmp 0x5c50a4df
mov eax, dword [ebp + 8]
mov dword [eax], esi
xor eax, eax
pop esi
pop ebx
pop edi
mov esp, ebp
pop ebp
ret
Function at 0x5c50ac69
Capabilities:
Read file on windows

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x98
mov eax, dword [0x5c50e0e4]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
push esi
mov esi, ecx
push edi
mov eax, dword [esi + 0x18]
test eax, eax
je 0x5c50ae32
xor ebx, ebx
cmp dword [eax], ebx
je 0x5c50ae32
mov eax, dword [esi + 0x1c]
test eax, eax
je 0x5c50ae32
cmp dword [eax], ebx
je 0x5c50ae32
mov eax, dword [esi + 8]
sub eax, ebx
je 0x5c50acce
sub eax, 1
jne 0x5c50acd5
push dword [esi + 0x20]
call fcn.5c50a4e6
push 0x5c5025b8
push esi
call fcn.5c51ac42
pop ecx
pop ecx
jmp 0x5c50acd5
push 0x37
call fcn.5c50b278
push 1
push ebx
push ebx
push dword [esi + 4]
call dword [sym.imp.KERNEL32.dll_SetFilePointer]
mov edi, eax
mov dword [ebp - 0x94], edi
cmp edi, 0xffffffff
jne 0x5c50acf9
mov eax, 0x88760361
jmp 0x5c50ae34
mov eax, dword [esi + 0x18]
mov dword [ebp - 0x98], ebx
cmp dword [eax], ebx
jbe 0x5c50ae32
mov eax, dword [esi + 0x1c]
mov ecx, ebx
push 0
push 0
mov eax, dword [eax + 0xc]
push dword [eax + ecx*4]
push dword [esi + 4]
call dword [sym.imp.KERNEL32.dll_SetFilePointer]
cmp eax, 0xffffffff
je 0x5c50acef
push edi
mov ecx, esi
call fcn.5c50b2c7
push 0
mov ecx, esi
call fcn.5c50b2c7
push 0
push 0
push edi
push dword [esi + 4]
call dword [sym.imp.KERNEL32.dll_SetFilePointer]
cmp eax, 0xffffffff
je 0x5c50acef
mov eax, dword [esi + 0x18]
mov ecx, ebx
shl ecx, 2
mov eax, dword [eax + 0xc]
add eax, ecx
xor ecx, ecx
push ecx
push 0x8000080
push 3
push ecx
push ecx
push 0x80000000
push dword [eax]
call dword [sym.imp.KERNEL32.dll_CreateFileA]
mov dword [ebp - 0x90], eax
cmp eax, 0xffffffff
je 0x5c50acef
and dword [ebp - 0x8c], 0
lea ecx, [ebp - 0x88]
push 0
push ecx
push 0x80
lea ecx, [ebp - 0x84]
push ecx
push eax
call dword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
je 0x5c50ae08
mov ebx, dword [ebp - 0x90]
mov edi, dword [ebp - 0x8c]
cmp dword [ebp - 0x88], 0
je 0x5c50adf6
lea eax, [ebp - 0x84]
mov ecx, esi
push eax
push dword [ebp - 0x88]
call fcn.5c50b254
add edi, dword [ebp - 0x88]
lea eax, [ebp - 0x88]
push 0
push eax
push 0x80
lea eax, [ebp - 0x84]
push eax
push ebx
call dword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
jne 0x5c50adb3
mov ebx, dword [ebp - 0x98]
mov dword [ebp - 0x8c], edi
mov edi, dword [ebp - 0x94]
push dword [ebp - 0x90]
call dword [sym.imp.KERNEL32.dll_CloseHandle]
add edi, dword [ebp - 0x8c]
inc ebx
mov eax, dword [esi + 0x18]
mov dword [ebp - 0x94], edi
mov dword [ebp - 0x98], ebx
cmp ebx, dword [eax]
jb 0x5c50ad0a
xor eax, eax
mov ecx, dword [ebp - 4]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.5c50cb00
mov esp, ebp
pop ebp
ret
Function at 0x5c50c088
Capabilities:
Get file size
Read file on windows
Write file on windows

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x2c
mov eax, dword [0x5c50e0e4]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
mov ebx, dword [ebp + 8]
push esi
push edi
mov edi, dword [ebp + 0xc]
mov esi, ecx
push 0
push ebx
mov byte [ebp - 0x24], 0
mov eax, dword [esi + 0xc]
mov dword [ebp - 0x2c], eax
call dword [sym.imp.KERNEL32.dll_GetFileSize]
push 0
mov dword [ebp - 0x28], eax
lea eax, [ebp - 0x18]
push eax
push 0x10
lea eax, [ebp - 0x14]
push eax
push ebx
call dword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
je 0x5c50c1e9
cmp dword [ebp - 0x18], 0x10
je 0x5c50c0e4
push 0xe
pop eax
jmp 0x5c50c1ee
mov ax, word [0x5c502618]
mov word [ebp - 0xb], ax
mov al, byte [0x5c50261a]
push 0
mov byte [ebp - 9], al
lea eax, [ebp - 0x1c]
push eax
push 0x10
lea eax, [ebp - 0x14]
push eax
push edi
call dword [sym.imp.KERNEL32.dll_WriteFile]
test eax, eax
je 0x5c50c1e9
push 0
lea eax, [ebp - 0x1c]
push eax
push 4
lea eax, [ebp - 0x28]
push eax
push edi
call dword [sym.imp.KERNEL32.dll_WriteFile]
test eax, eax
je 0x5c50c1e9
push 0
lea eax, [ebp - 0x18]
push eax
push 0x8000
push dword [ebp - 0x2c]
jmp 0x5c50c1da
cmp dword [ebp - 0x18], 0
je 0x5c50c208
mov edx, dword [esi + 0xc]
lea eax, [ebp - 0x20]
push eax
push dword [ebp - 0x24]
push dword [esi + 0x20]
push dword [esi + 0x1c]
push dword [esi + 0x18]
push dword [esi + 0x14]
push ecx
push dword [esi + 0x10]
mov ecx, dword [esi]
push dword [ebp - 0x18]
call fcn.5c502946
add esp, 0x24
test eax, eax
jne 0x5c50c201
push eax
lea eax, [ebp - 0x1c]
push eax
push 2
lea eax, [ebp - 0x18]
push eax
push edi
call dword [sym.imp.KERNEL32.dll_WriteFile]
test eax, eax
je 0x5c50c1e9
push 0
lea eax, [ebp - 0x1c]
push eax
push 2
lea eax, [ebp - 0x20]
push eax
push edi
call dword [sym.imp.KERNEL32.dll_WriteFile]
test eax, eax
je 0x5c50c1e9
push 0
lea eax, [ebp - 0x1c]
push eax
push dword [ebp - 0x20]
push dword [esi + 0x10]
push edi
call dword [sym.imp.KERNEL32.dll_WriteFile]
test eax, eax
je 0x5c50c1e9
mov eax, dword [ebp - 0x1c]
cmp eax, dword [ebp - 0x20]
jne 0x5c50c201
mov eax, dword [esi + 0xc]
lea ecx, [ebp - 0x18]
push 0
mov edx, 0x8000
mov byte [ebp - 0x24], 1
push ecx
add eax, edx
push edx
push eax
push ebx
call dword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
jne 0x5c50c13f
mov eax, 0x88760361
mov ecx, dword [ebp - 4]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.5c50cb00
mov esp, ebp
pop ebp
ret 8
mov eax, 0x88760356
jmp 0x5c50c1ee
xor eax, eax
jmp 0x5c50c1ee

Function at 0x5c50cd20
Capabilities:
Enumerate pe sections

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
mov eax, dword [ebp + 8]
xor edx, edx
push ebx
push esi
push edi
mov ecx, dword [eax + 0x3c]
add ecx, eax
movzx eax, word [ecx + 0x14]
movzx ebx, word [ecx + 6]
add eax, 0x18
add eax, ecx
test ebx, ebx
je 0x5c50cd5e
mov edi, dword [ebp + 0xc]
mov esi, dword [eax + 0xc]
cmp edi, esi
jb 0x5c50cd56
mov ecx, dword [eax + 8]
add ecx, esi
cmp edi, ecx
jb 0x5c50cd60
inc edx
add eax, 0x28
cmp edx, ebx
jb 0x5c50cd46
xor eax, eax
pop edi
pop esi
pop ebx
pop ebp
ret