joyce8/EMBER2024-capa huggingface dataset:
Function at 0x10015b00
Capabilities:
Check os version

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
sub esp, 0xa0
mov eax, dword [0x1003c6c0]
mov ecx, dword [0x1003c6c4]
push esi
mov esi, dword [sym.imp.KERNEL32.dll_GetVersionExA]
push edi
mov dword [0x1004fb4c], ecx
mov dword [0x1004fb48], eax
xor eax, eax
lea edx, [esp + 8]
mov ecx, 0x27
lea edi, [esp + 8]
rep stosd dword es:[edi], eax
push edx
mov dword [esp + 0xc], 0x9c
call esi
test eax, eax
jne 0x10015b61
lea eax, [esp + 8]
push eax
mov dword [esp + 0xc], 0x94
call esi
test eax, eax
je 0x10015d35
mov eax, dword [esp + 0x18]
sub eax, 0
mov byte [0x1005048c], 0
je 0x10015cfd
dec eax
je 0x10015c40
dec eax
jne 0x10015d35
mov eax, dword [esp + 0xc]
cmp eax, 4
mov ecx, 1
mov byte [0x1005048c], cl
ja 0x10015bc9
mov edx, dword [str.Windows_NT]
mov dword [0x1004fb48], edx
mov edx, dword [0x10039dc4]
mov dword [0x1004fb4c], edx
mov dx, word [0x10039dc8]
mov word [0x1004fb50], dx
mov dl, byte [0x10039dca]
mov byte [0x1004fb52], dl
cmp eax, 5
jb 0x10015d35
cmp dword [esp + 0x10], ecx
jb 0x10015c0c
mov eax, dword [str.Windows_XP]
mov ecx, dword [0x1003c6b8]
mov dx, word [0x1003c6bc]
mov dword [0x1004fb48], eax
mov al, byte [0x1003c6be]
mov dword [0x1004fb4c], ecx
mov word [0x1004fb50], dx
mov byte [0x1004fb52], al
pop edi
pop esi
mov esp, ebp
pop ebp
ret
mov ecx, dword [str.Windows_2000]
mov edx, dword [0x1003c6a8]
mov eax, dword [0x1003c6ac]
mov dword [0x1004fb48], ecx
mov cl, byte [0x1003c6b0]
mov dword [0x1004fb4c], edx
mov dword [0x1004fb50], eax
mov byte [0x1004fb54], cl
pop edi
pop esi
mov esp, ebp
pop ebp
ret
mov eax, dword [esp + 0xc]
cmp eax, 4
mov ecx, dword [esp + 0x10]
jb 0x10015c93
cmp ecx, 0x5a
jb 0x10015c88
mov edx, dword [str.Windows_ME]
mov eax, dword [0x10039db8]
mov cx, word [0x10039dbc]
mov dword [0x1004fb48], edx
mov dl, byte [0x10039dbe]
mov dword [0x1004fb4c], eax
mov word [0x1004fb50], cx
mov byte [0x1004fb52], dl
pop edi
pop esi
mov esp, ebp
pop ebp
ret
cmp eax, 4
ja 0x10015cc7
jne 0x10015c93
test ecx, ecx
ja 0x10015cc7
mov eax, dword [str.Windows_95]
mov ecx, dword [0x10039da0]
mov dx, word [0x10039da4]
mov dword [0x1004fb48], eax
mov al, byte [0x10039da6]
mov dword [0x1004fb4c], ecx
mov word [0x1004fb50], dx
mov byte [0x1004fb52], al
pop edi
pop esi
mov esp, ebp
pop ebp
ret
mov ecx, dword [str.Windows_98]
mov edx, dword [0x10039dac]
mov ax, word [0x10039db0]
mov dword [0x1004fb48], ecx
mov cl, byte [0x10039db2]
mov dword [0x1004fb4c], edx
mov word [0x1004fb50], ax
mov byte [0x1004fb52], cl
pop edi
pop esi
mov esp, ebp
pop ebp
ret
mov edx, dword [str.Microsoft_Win32s]
mov eax, dword [0x1003c694]
mov ecx, dword [0x1003c698]
mov dword [0x1004fb48], edx
mov edx, dword [0x1003c69c]
mov dword [0x1004fb4c], eax
mov al, byte [0x1003c6a0]
mov dword [0x1004fb50], ecx
mov dword [0x1004fb54], edx
mov byte [0x1004fb58], al
pop edi
pop esi
mov esp, ebp
pop ebp
ret
Function at 0x10016be0
Capabilities:
Set registry value

Disassembly:
mov edx, dword [ecx]
or eax, 0xffffffff
test edx, edx
je 0x10016c12
push esi
mov esi, dword [esp + 0xc]
mov eax, esi
push edi
lea edi, [eax + 1]
mov cl, byte [eax]
inc eax
test cl, cl
jne 0x10016bf4
sub eax, edi
inc eax
push eax
mov eax, dword [esp + 0x10]
push esi
push 1
push 0
push eax
push edx
call dword [sym.imp.ADVAPI32.dll_RegSetValueExA]
pop edi
pop esi
ret 8

Function at 0x10016c20
Capabilities:
Query or enumerate registry value

Disassembly:
mov ecx, dword [ecx]
or eax, 0xffffffff
test ecx, ecx
je 0x10016c43
mov eax, dword [esp + 0xc]
mov edx, dword [esp + 8]
push eax
mov eax, dword [esp + 8]
push edx
push 0
push 0
push eax
push ecx
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
ret 0xc

Function at 0x10016c50
Capabilities:
Query or enumerate registry value

Disassembly:
push ecx
mov ecx, dword [ecx]
or eax, 0xffffffff
test ecx, ecx
je 0x10016c7b
mov edx, dword [esp + 0xc]
lea eax, [esp]
push eax
mov eax, dword [esp + 0xc]
push edx
push 0
push 0
push eax
push ecx
mov dword [esp + 0x18], 4
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
pop ecx
ret 8

Function at 0x100193ff
Capabilities:
Contain obfuscated stackstrings

Disassembly:
mov eax, dword [ebp - 0x700]
inc eax
mov dword [ebp - 0x700], eax
cmp dword [ebp - 0x700], 5
jge 0x10019435
mov eax, dword [ebp - 0x700]
movsx eax, byte [ebp + eax - 0x394]
insb byte es:[edi], dx
cld
invalid
dec dword [edi]
mov esi, 0xc133dc4d
mov ecx, dword [ebp - 0x700]
mov byte [ebp + ecx - 0x394], al
insb byte es:[edi], dx
cld
invalid
dec dword [ebx - 0x6ff7b]
dec dword [edi]
mov esi, 0xfc6c0584
add eax, 0xfffffc6c
add eax, 0xfffffc6c
not eax
mov ecx, dword [ebp - 0x700]
mov byte [ebp + ecx - 0x394], al
jmp 0x100193df
call fcn.10017fdf
push ebp
cmp al, 0x4c
aaa
and byte [ebp - 0x72c], 0
and byte [ebp - 0x72b], 0
mov byte [ebp - 0x72a], 0xc2
and byte [ebp - 0x729], 0
mov byte [ebp - 0x728], 0x6b
mov byte [ebp - 0x727], 0x54
mov byte [ebp - 0x726], 0x4f
mov byte [ebp - 0x725], 0x49
mov byte [ebp - 0x724], 0x48
mov byte [ebp - 0x723], 0x5c
mov byte [ebp - 0x722], 0x51
mov byte [ebp - 0x721], 0x6d
mov byte [ebp - 0x720], 0x4f
mov byte [ebp - 0x71f], 0x52
invalid

Function at 0x10019ea7
Capabilities:
Contain obfuscated stackstrings

Disassembly:
call fcn.10017f50
add esp, 0xc
jmp 0x10019f57
mov eax, dword [ebp - 0x6fc]
inc eax
mov dword [ebp - 0x6fc], eax
and dword [ebp - 0x37c], 0
call fcn.10017fdf
and dword [ecx], esi
dec ebp
push ecx
push dword [ebp - 0x3a0]
call dword [ebp - 0x704]
mov dword [ebp - 0x3a4], eax
cmp dword [ebp - 0x3a4], 0
inc dword [eax]
Function at 0x1001a952
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.1001ac40
mov esi, esp
push 0x1c
lea eax, [ebp - 0x28]
push eax
push esi
call dword [sym.imp.KERNEL32.dll_VirtualQuery]
test eax, eax
je 0x1001a9ed
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 [0x10052aac]
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 0x1001a9ed
cmp eax, 1
je 0x1001aa0e
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 0x1001a9ed
mov eax, dword [ebp - 0x1c]
add dword [ebp - 4], eax
test dword [ebp - 0x18], ebx
je 0x1001a9ba
test byte [ebp - 0x13], 1
mov eax, dword [ebp - 0x28]
mov dword [ebp - 4], eax
je 0x1001a9e9
xor eax, eax
inc eax
jmp 0x1001aa2d
cmp edi, eax
jae 0x1001a9f1
xor eax, eax
jmp 0x1001aa2d
cmp eax, esi
jae 0x1001a9f8
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 [0x10052aac]
jmp 0x1001aa11
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 0x1001b79b
Capabilities:
Create thread
Resume thread

Disassembly:
push ebx
push edi
mov edi, dword [esp + 0xc]
xor ebx, ebx
test edi, edi
jne 0x1001b7b7
call fcn.1001e03a
mov dword [eax], 0x16
or eax, 0xffffffff
jmp 0x1001b829
push esi
push 0x8c
push 1
call fcn.1001e391
mov esi, eax
test esi, esi
pop ecx
pop ecx
je 0x1001b80f
push esi
call fcn.1002166a
mov eax, dword [esp + 0x1c]
pop ecx
push esi
push 4
push esi
push 0x1001b709
push dword [esp + 0x24]
mov dword [esi + 0x4c], edi
push 0
mov dword [esi + 0x50], eax
call dword [sym.imp.KERNEL32.dll_CreateThread]
mov edi, eax
test edi, edi
mov dword [esi + 4], edi
je 0x1001b807
push edi
call dword [sym.imp.KERNEL32.dll_ResumeThread]
cmp eax, 0xffffffff
jne 0x1001b826
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov ebx, eax
push esi
call fcn.1001a8e1
test ebx, ebx
pop ecx
je 0x1001b821
push ebx
call fcn.1001e04c
pop ecx
or eax, 0xffffffff
jmp 0x1001b828
mov eax, edi
pop esi
pop edi
pop ebx
ret
Function at 0x1001be61
Capabilities:
Terminate process

Disassembly:
push 8
push 0x1003fb08
call fcn.1001ebd0
push 8
call fcn.1001ff18
pop ecx
xor edi, edi
mov dword [ebp - 4], edi
xor esi, esi
inc esi
cmp dword [0x10052aec], esi
jne 0x1001be95
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.dll_GetCurrentProcess]
push eax
call dword [sym.imp.KERNEL32.dll_TerminateProcess]
mov dword [0x10052ae8], esi
mov al, byte [ebp + 0x10]
mov byte [0x10052ae4], al
cmp dword [ebp + 0xc], edi
jne 0x1001bedf
cmp dword [0x100543cc], edi
je 0x1001becf
mov eax, dword [0x100543c8]
sub eax, 4
mov dword [0x100543c8], eax
cmp eax, dword [0x100543cc]
jb 0x1001becf
mov eax, dword [eax]
cmp eax, edi
je 0x1001beb0
call eax
jmp 0x1001beb0
push 0x100480c4
mov eax, 0x100480bc
call fcn.1001bddf
pop ecx
push 0x100480d0
mov eax, 0x100480c8
call fcn.1001bddf
pop ecx
or dword [ebp - 4], 0xffffffff
call 0x1001bf10
cmp dword [ebp + 0x10], edi
jne 0x1001bf1e
mov dword [0x10052aec], esi
push dword [ebp + 8]
call fcn.1001bd9d
xor edi, edi
xor esi, esi
inc esi
cmp dword [ebp + 0x10], edi
je 0x1001bf1d
push 8
call fcn.1001fe63
pop ecx
ret
call fcn.1001ec0b
ret

Function at 0x1001c1cf
Capabilities:
Accept command line arguments

Disassembly:
push ebp
mov ebp, esp
mov eax, dword [ebp + 0xc]
cmp eax, 1
push esi
jne 0x1001c2bf
mov eax, 0x94
call fcn.1001ac40
mov esi, esp
push esi
mov dword [esi], 0x94
call dword [sym.imp.KERNEL32.dll_GetVersionExA]
test eax, eax
je 0x1001c334
mov ecx, dword [esi + 0x10]
mov dword [0x10052aac], ecx
mov eax, dword [esi + 4]
mov dword [0x10052ab8], eax
mov edx, dword [esi + 8]
mov dword [0x10052abc], edx
mov esi, dword [esi + 0xc]
and esi, 0x7fff
cmp ecx, 2
mov dword [0x10052ab0], esi
je 0x1001c23a
or esi, 0x8000
mov dword [0x10052ab0], esi
shl eax, 8
add eax, edx
push 1
mov dword [0x10052ab4], eax
call fcn.1001ff63
test eax, eax
pop ecx
je 0x1001c334
call fcn.10021864
test eax, eax
jne 0x1001c267
call fcn.1001ffb4
jmp 0x1001c334
call fcn.10023973
call dword [sym.imp.KERNEL32.dll_GetCommandLineA]
mov dword [0x100543c0], eax
call fcn.10023fcc
mov dword [0x10052af4], eax
call fcn.10023aad
test eax, eax
jl 0x1001c2b8
call fcn.10023f2a
test eax, eax
jl 0x1001c2b3
call fcn.10023cf7
test eax, eax
jl 0x1001c2b3
push 0
call fcn.1001bdf7
test eax, eax
pop ecx
jne 0x1001c2b3
inc dword [0x10052af0]
jmp 0x1001c345
call fcn.10023cab
call fcn.1002164d
jmp 0x1001c25d
test eax, eax
jne 0x1001c2ef
cmp dword [0x10052af0], eax
jle 0x1001c334
dec dword [0x10052af0]
cmp dword [0x10052ae8], eax
jne 0x1001c2de
call fcn.1001bf46
call fcn.10023cab
call fcn.1002164d
call fcn.1001ffb4
jmp 0x1001c345
cmp eax, 2
jne 0x1001c338
push 0x8c
push 1
call fcn.1001e391
mov esi, eax
test esi, esi
pop ecx
pop ecx
je 0x1001c334
push esi
push dword [0x1004a6b8]
call dword [0x10052ce4]
test eax, eax
push esi
je 0x1001c32e
call fcn.1002166a
pop ecx
call dword [sym.imp.KERNEL32.dll_GetCurrentThreadId]
or dword [esi + 4], 0xffffffff
mov dword [esi], eax
jmp 0x1001c345
call fcn.1001a8e1
pop ecx
xor eax, eax
jmp 0x1001c348
cmp eax, 3
jne 0x1001c345
push 0
call fcn.10021835
pop ecx
xor eax, eax
inc eax
lea esp, [ebp - 4]
pop esi
pop ebp
ret 0xc
Function at 0x1001dba5
Capabilities:
Get common file path
Set current directory
Set environment variable

Disassembly:
push 0x128
push 0x1003fda8
call fcn.1001ebd0
mov eax, dword [0x1004a0f0]
mov dword [ebp - 0x1c], eax
lea edi, [ebp - 0x124]
xor ebx, ebx
mov dword [ebp - 0x130], ebx
or dword [ebp - 0x12c], 0xffffffff
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.dll_SetCurrentDirectoryA]
test eax, eax
je 0x1001dcb2
mov eax, edi
push eax
push 0x105
call dword [sym.imp.KERNEL32.dll_GetCurrentDirectoryA]
mov esi, eax
mov dword [ebp - 0x134], esi
cmp esi, 0x104
jle 0x1001dc63
mov dword [ebp - 4], ebx
lea eax, [esi + 1]
add eax, 3
and eax, 0xfffffffc
call fcn.1001ac40
mov dword [ebp - 0x18], esp
mov edi, esp
mov dword [ebp - 0x138], edi
jmp 0x1001dc50
or dword [ebp - 4], 0xffffffff
cmp esi, ebx
je 0x1001dcb2
push edi
inc esi
push esi
call dword [sym.imp.KERNEL32.dll_GetCurrentDirectoryA]
mov esi, eax
cmp esi, ebx
je 0x1001dcb2
mov al, byte [edi]
cmp al, 0x5c
je 0x1001dc71
cmp al, 0x2f
jne 0x1001dc76
cmp al, byte [edi + 1]
je 0x1001dcac
mov byte [ebp - 0x128], 0x3d
movzx eax, byte [edi]
push eax
call fcn.100279f0
pop ecx
mov byte [ebp - 0x127], al
mov byte [ebp - 0x126], 0x3a
mov byte [ebp - 0x125], bl
push edi
lea eax, [ebp - 0x128]
push eax
call dword [sym.imp.KERNEL32.dll_SetEnvironmentVariableA]
test eax, eax
je 0x1001dcb2
mov dword [ebp - 0x12c], ebx
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
call fcn.1001e04c
pop ecx
cmp dword [ebp - 0x130], ebx
je 0x1001dcce
push edi
call fcn.1001a8e1
pop ecx
mov eax, dword [ebp - 0x12c]
lea esp, [ebp - 0x144]
mov ecx, dword [ebp - 0x1c]
call fcn.1001b3e9
call fcn.1001ec0b
ret

Function at 0x1001dd24
Capabilities:
Set current directory

Disassembly:
push 0x10
push 0x1003fdb8
call fcn.1001ebd0
mov ebx, dword [ebp + 8]
cmp ebx, 1
jl 0x1001dd93
cmp ebx, 0x1f
jg 0x1001dd93
push 7
call fcn.1001ff18
pop ecx
and dword [ebp - 4], 0
add ebx, 0x40
mov byte [ebp - 0x1c], bl
mov byte [ebp - 0x1b], 0x3a
mov byte [ebp - 0x1a], 0
lea eax, [ebp - 0x1c]
push eax
call dword [sym.imp.KERNEL32.dll_SetCurrentDirectoryA]
test eax, eax
je 0x1001dd6b
and dword [ebp - 0x20], 0
jmp 0x1001dd7c
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
call fcn.1001e04c
pop ecx
or dword [ebp - 0x20], 0xffffffff
or dword [ebp - 4], 0xffffffff
call fcn.1001dd8a
mov eax, dword [ebp - 0x20]
jmp 0x1001ddac
call fcn.1001e03a
mov dword [eax], 0xd
call fcn.1001e043
mov dword [eax], 0xf
or eax, 0xffffffff
call fcn.1001ec0b
ret
Function at 0x1002315c
Capabilities:
Check if file exists
Get file attributes

Disassembly:
push dword [esp + 4]
call dword [sym.imp.KERNEL32.dll_GetFileAttributesA]
cmp eax, 0xffffffff
jne 0x1002317c
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
call fcn.1001e04c
pop ecx
or eax, 0xffffffff
ret
test al, 1
je 0x1002319f
test byte [esp + 8], 2
je 0x1002319f
call fcn.1001e03a
mov dword [eax], 0xd
call fcn.1001e043
mov dword [eax], 5
jmp 0x10023178
xor eax, eax
ret

Function at 0x100240ee
Capabilities:
Write file on windows

Disassembly:
push ebp
lea ebp, [esp - 0x8c]
sub esp, 0x10c
mov eax, dword [0x1004a0f0]
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 + 0x1004aa28]
je 0x10024123
inc eax
cmp eax, 0x13
jb 0x10024114
mov esi, eax
shl esi, 3
cmp ecx, dword [esi + 0x1004aa28]
jne 0x10024249
mov eax, dword [0x10052afc]
cmp eax, 1
je 0x10024221
cmp eax, edx
jne 0x10024153
cmp dword [0x10052b00], 1
je 0x10024221
cmp ecx, 0xfc
je 0x10024249
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 0x10024189
lea eax, [ebp - 0x80]
push str._program_name_unknown_
push eax
call fcn.10023510
pop ecx
pop ecx
lea edi, [ebp - 0x80]
mov eax, edi
push eax
call fcn.1001e870
inc eax
cmp eax, 0x3c
pop ecx
jbe 0x100241bd
mov eax, edi
push eax
call fcn.1001e870
mov edi, eax
lea eax, [ebp - 0x80]
sub eax, 0x3b
push 3
add edi, eax
push 0x10040004
push edi
call fcn.1001b910
add esp, 0x10
push edi
call fcn.1001e870
push dword [esi + 0x1004aa2c]
mov ebx, eax
call fcn.1001e870
lea eax, [ebx + eax + 0x1c]
pop ecx
add eax, 3
pop ecx
and eax, 0xfffffffc
call fcn.1001ac40
mov ebx, esp
push str.Runtime_Error__n_nProgram:
push ebx
call fcn.10023510
push edi
push ebx
call fcn.10023520
push 0x10040000
push ebx
call fcn.10023520
push dword [esi + 0x1004aa2c]
push ebx
call fcn.10023520
push 0x12010
push str.Microsoft_Visual_C_Runtime_Library
push ebx
call fcn.100282ba
add esp, 0x2c
jmp 0x10024249
push edx
lea eax, [ebp + 0x94]
push eax
lea esi, [esi + 0x1004aa2c]
push dword [esi]
call fcn.1001e870
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.1001b3e9
pop edi
pop esi
pop ebx
add ebp, 0x8c
leave
ret
Function at 0x1002429e
Capabilities:
Write file on windows

Disassembly:
push ebp
lea ebp, [esp - 0x3a0]
sub esp, 0x420
mov eax, dword [0x1004a0f0]
push edi
xor edi, edi
cmp dword [ebp + 0x3b0], edi
mov dword [ebp + 0x39c], eax
mov dword [ebp - 0x78], edi
mov dword [ebp - 0x7c], edi
jne 0x100242cf
xor eax, eax
jmp 0x10024458
mov eax, dword [ebp + 0x3a8]
push ebx
mov ebx, dword [ebp + 0x3a8]
and eax, 0x1f
sar ebx, 5
push esi
lea esi, [eax + eax*8]
lea ebx, [ebx*4 + 0x10053040]
mov eax, dword [ebx]
shl esi, 2
test byte [eax + esi + 4], 0x20
je 0x1002430b
push 2
push edi
push edi
push dword [ebp + 0x3a8]
call fcn.100296f6
add esp, 0x10
mov eax, dword [ebx]
add eax, esi
test byte [eax + 4], 0x80
je 0x100243e6
cmp dword [ebp + 0x3b0], edi
mov eax, dword [ebp + 0x3ac]
mov dword [ebp - 0x74], eax
mov dword [ebp - 0x6c], edi
jbe 0x10024424
mov ecx, dword [ebp - 0x74]
sub ecx, dword [ebp + 0x3ac]
lea eax, [ebp - 0x68]
mov dword [ebp - 0x70], edi
cmp ecx, dword [ebp + 0x3b0]
jae 0x1002436f
mov edx, dword [ebp - 0x74]
inc dword [ebp - 0x74]
mov dl, byte [edx]
inc ecx
cmp dl, 0xa
jne 0x10024360
inc dword [ebp - 0x7c]
mov byte [eax], 0xd
inc eax
inc dword [ebp - 0x70]
mov byte [eax], dl
inc eax
inc dword [ebp - 0x70]
cmp dword [ebp - 0x70], 0x400
jl 0x10024340
mov edi, eax
lea eax, [ebp - 0x68]
sub edi, eax
push 0
lea eax, [ebp - 0x80]
push eax
push edi
lea eax, [ebp - 0x68]
push eax
mov eax, dword [ebx]
push dword [eax + esi]
call dword [sym.imp.KERNEL32.dll_WriteFile]
test eax, eax
je 0x100243af
mov eax, dword [ebp - 0x80]
add dword [ebp - 0x78], eax
cmp eax, edi
jl 0x100243b8
mov eax, dword [ebp - 0x74]
sub eax, dword [ebp + 0x3ac]
xor edi, edi
cmp eax, dword [ebp + 0x3b0]
jb 0x10024331
jmp 0x100243ba
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov dword [ebp - 0x6c], eax
xor edi, edi
mov eax, dword [ebp - 0x78]
cmp eax, edi
jne 0x10024453
cmp dword [ebp - 0x6c], edi
je 0x10024424
push 5
pop esi
cmp dword [ebp - 0x6c], esi
jne 0x10024419
call fcn.1001e03a
mov dword [eax], 9
call fcn.1001e043
mov dword [eax], esi
jmp 0x1002444e
push edi
lea ecx, [ebp - 0x80]
push ecx
push dword [ebp + 0x3b0]
push dword [ebp + 0x3ac]
push dword [eax]
call dword [sym.imp.KERNEL32.dll_WriteFile]
test eax, eax
je 0x1002440e
mov eax, dword [ebp - 0x80]
mov dword [ebp - 0x6c], edi
mov dword [ebp - 0x78], eax
jmp 0x100243ba
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov dword [ebp - 0x6c], eax
jmp 0x100243ba
push dword [ebp - 0x6c]
call fcn.1001e04c
pop ecx
jmp 0x1002444e
mov eax, dword [ebx]
test byte [eax + esi + 4], 0x40
je 0x1002443c
mov eax, dword [ebp + 0x3ac]
cmp byte [eax], 0x1a
jne 0x1002443c
xor eax, eax
jmp 0x10024456
call fcn.1001e03a
mov dword [eax], 0x1c
call fcn.1001e043
mov dword [eax], edi
or eax, 0xffffffff
jmp 0x10024456
sub eax, dword [ebp - 0x7c]
pop esi
pop ebx
mov ecx, dword [ebp + 0x39c]
pop edi
call fcn.1001b3e9
add ebp, 0x3a0
leave
ret
Function at 0x10027a75
Capabilities:
Read file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0xc
and dword [ebp - 8], 0
cmp dword [ebp + 0x10], 0
push ebx
mov ebx, dword [ebp + 0xc]
push esi
push edi
mov edx, ebx
je 0x10027c49
mov eax, dword [ebp + 8]
mov ecx, eax
and eax, 0x1f
sar ecx, 5
lea esi, [eax + eax*8]
lea edi, [ecx*4 + 0x10053040]
mov eax, dword [edi]
shl esi, 2
add eax, esi
mov cl, byte [eax + 4]
test cl, 2
jne 0x10027c49
test cl, 0x48
je 0x10027ae0
cmp byte [eax + 5], 0xa
je 0x10027ae0
mov eax, dword [edi]
mov al, byte [eax + esi + 5]
dec dword [ebp + 0x10]
mov byte [ebx], al
mov eax, dword [edi]
lea edx, [ebx + 1]
mov dword [ebp - 8], 1
mov byte [eax + esi + 5], 0xa
push 0
lea eax, [ebp - 0xc]
push eax
push dword [ebp + 0x10]
mov eax, dword [edi]
push edx
push dword [eax + esi]
call dword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
jne 0x10027b32
call dword [sym.imp.KERNEL32.dll_GetLastError]
push 5
pop esi
cmp eax, esi
jne 0x10027b1a
call fcn.1001e03a
mov dword [eax], 9
call fcn.1001e043
mov dword [eax], esi
jmp 0x10027b2a
cmp eax, 0x6d
je 0x10027c49
push eax
call fcn.1001e04c
pop ecx
or eax, 0xffffffff
jmp 0x10027c4b
mov eax, dword [ebp - 0xc]
mov ecx, dword [edi]
add dword [ebp - 8], eax
test byte [ecx + esi + 4], 0x80
je 0x10027c44
test eax, eax
je 0x10027b59
cmp byte [ebx], 0xa
jne 0x10027b59
mov eax, ecx
lea eax, [eax + esi + 4]
or byte [eax], 4
jmp 0x10027b62
mov eax, dword [edi]
lea eax, [eax + esi + 4]
and byte [eax], 0xfb
mov eax, dword [ebp + 0xc]
mov ecx, dword [ebp - 8]
add ecx, eax
cmp eax, ecx
mov dword [ebp + 0x10], eax
mov dword [ebp - 8], ecx
jae 0x10027c3e
mov eax, dword [ebp + 0x10]
mov al, byte [eax]
cmp al, 0x1a
je 0x10027c2e
cmp al, 0xd
je 0x10027b94
mov byte [ebx], al
inc ebx
inc dword [ebp + 0x10]
jmp 0x10027c20
dec ecx
cmp dword [ebp + 0x10], ecx
jae 0x10027bae
mov eax, dword [ebp + 0x10]
inc eax
cmp byte [eax], 0xa
jne 0x10027ba9
add dword [ebp + 0x10], 2
jmp 0x10027c02
mov dword [ebp + 0x10], eax
jmp 0x10027c1c
inc dword [ebp + 0x10]
push 0
lea eax, [ebp - 0xc]
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 0x10027bd6
call dword [sym.imp.KERNEL32.dll_GetLastError]
test eax, eax
jne 0x10027c1c
cmp dword [ebp - 0xc], 0
je 0x10027c1c
mov eax, dword [edi]
test byte [eax + esi + 4], 0x48
je 0x10027bf7
mov al, byte [ebp - 1]
cmp al, 0xa
je 0x10027c02
mov byte [ebx], 0xd
mov ecx, dword [edi]
mov byte [ecx + esi + 5], al
jmp 0x10027c1f
cmp ebx, dword [ebp + 0xc]
jne 0x10027c07
cmp byte [ebp - 1], 0xa
jne 0x10027c07
mov byte [ebx], 0xa
jmp 0x10027c1f
push 1
push 0xffffffffffffffff
push dword [ebp + 8]
call fcn.10027cfb
add esp, 0xc
cmp byte [ebp - 1], 0xa
je 0x10027c20
mov byte [ebx], 0xd
inc ebx
mov ecx, dword [ebp - 8]
cmp dword [ebp + 0x10], ecx
jb 0x10027b78
jmp 0x10027c3e
mov eax, dword [edi]
test byte [eax + esi + 4], 0x40
jne 0x10027c3e
lea esi, [eax + esi + 4]
or byte [esi], 2
sub ebx, dword [ebp + 0xc]
mov dword [ebp - 8], ebx
mov eax, dword [ebp - 8]
jmp 0x10027c4b
xor eax, eax
pop edi
pop esi
pop ebx
leave
ret
Function at 0x100282ba
Capabilities:
Link many functions at runtime

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x10
push ebx
xor ebx, ebx
cmp dword [0x10052f98], ebx
push esi
push edi
jne 0x1002833a
push str.user32.dll
call dword [sym.imp.KERNEL32.dll_LoadLibraryA]
mov edi, eax
cmp edi, ebx
je 0x10028375
mov esi, dword [sym.imp.KERNEL32.dll_GetProcAddress]
push 0x10041c5c
push edi
call esi
test eax, eax
mov dword [0x10052f98], eax
je 0x10028375
push 0x10041c4c
push edi
call esi
push 0x10041c38
push edi
mov dword [0x10052f9c], eax
call esi
cmp dword [0x10052aac], 2
mov dword [0x10052fa0], eax
jne 0x1002833a
push str.GetUserObjectInformationA
push edi
call esi
test eax, eax
mov dword [0x10052fa8], eax
je 0x1002833a
push str.GetProcessWindowStation
push edi
call esi
mov dword [0x10052fa4], eax
mov eax, dword [0x10052fa4]
test eax, eax
je 0x1002837f
call eax
test eax, eax
je 0x10028366
lea ecx, [ebp - 4]
push ecx
push 0xc
lea ecx, [ebp - 0x10]
push ecx
push 1
push eax
call dword [0x10052fa8]
test eax, eax
je 0x10028366
test byte [ebp - 8], 1
jne 0x1002837f
cmp dword [0x10052ab8], 4
jb 0x10028379
or byte [ebp + 0x12], 0x20
jmp 0x1002839e
xor eax, eax
jmp 0x100283ae
or byte [ebp + 0x12], 4
jmp 0x1002839e
mov eax, dword [0x10052f9c]
test eax, eax
je 0x1002839e
call eax
mov ebx, eax
test ebx, ebx
je 0x1002839e
mov eax, dword [0x10052fa0]
test eax, eax
je 0x1002839e
push ebx
call eax
mov ebx, eax
push dword [ebp + 0x10]
push dword [ebp + 0xc]
push dword [ebp + 8]
push ebx
call dword [0x10052f98]
pop edi
pop esi
pop ebx
leave
ret