joyce8/EMBER2024-capa huggingface dataset:
Function at 0x4533f9
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.0044ae10
mov esi, esp
push 0x1c
lea eax, [ebp - 0x28]
push eax
push esi
call dword [sym.imp.KERNEL32.dll_VirtualQuery]
test eax, eax
je 0x453494
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 [0x486bc0]
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 0x453494
cmp eax, 1
je 0x4534b5
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 0x453494
mov eax, dword [ebp - 0x1c]
add dword [ebp - 4], eax
test dword [ebp - 0x18], ebx
je 0x453461
test byte [ebp - 0x13], 1
mov eax, dword [ebp - 0x28]
mov dword [ebp - 4], eax
je 0x453490
xor eax, eax
inc eax
jmp 0x4534d4
cmp edi, eax
jae 0x453498
xor eax, eax
jmp 0x4534d4
cmp eax, esi
jae 0x45349f
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 [0x486bc0]
jmp 0x4534b8
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 0x455dce
Capabilities:
Link many functions at runtime

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x10
push ebx
xor ebx, ebx
cmp dword [0x486dc0], ebx
push esi
push edi
jne 0x455e4e
push str.user32.dll
call dword [sym.imp.KERNEL32.dll_LoadLibraryA]
mov edi, eax
cmp edi, ebx
je 0x455e89
mov esi, dword [sym.imp.KERNEL32.dll_GetProcAddress]
push str.MessageBoxA
push edi
call esi
test eax, eax
mov dword [0x486dc0], eax
je 0x455e89
push str.GetActiveWindow
push edi
call esi
push str.GetLastActivePopup
push edi
mov dword [0x486dc4], eax
call esi
cmp dword [0x486bc0], 2
mov dword [0x486dc8], eax
jne 0x455e4e
push str.GetUserObjectInformationA
push edi
call esi
test eax, eax
mov dword [0x486dd0], eax
je 0x455e4e
push str.GetProcessWindowStation
push edi
call esi
mov dword [0x486dcc], eax
mov eax, dword [0x486dcc]
test eax, eax
je 0x455e93
call eax
test eax, eax
je 0x455e7a
lea ecx, [ebp - 4]
push ecx
push 0xc
lea ecx, [ebp - 0x10]
push ecx
push 1
push eax
call dword [0x486dd0]
test eax, eax
je 0x455e7a
test byte [ebp - 8], 1
jne 0x455e93
cmp dword [0x486bcc], 4
jb 0x455e8d
or byte [ebp + 0x12], 0x20
jmp 0x455eb2
xor eax, eax
jmp 0x455ec2
or byte [ebp + 0x12], 4
jmp 0x455eb2
mov eax, dword [0x486dc4]
test eax, eax
je 0x455eb2
call eax
mov ebx, eax
test ebx, ebx
je 0x455eb2
mov eax, dword [0x486dc8]
test eax, eax
je 0x455eb2
push ebx
call eax
mov ebx, eax
push dword [ebp + 0x10]
push dword [ebp + 0xc]
push dword [ebp + 8]
push ebx
call dword [0x486dc0]
pop edi
pop esi
pop ebx
leave
ret
Function at 0x455fb6
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 0x455fe4
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 0x455feb
cmp ebx, dword [eax + 4]
jae 0x455feb
xor eax, eax
jmp 0x4561db
push edi
mov edi, dword [esi + 0xc]
cmp edi, 0xffffffff
jne 0x455ffc
xor eax, eax
inc eax
jmp 0x4561da
xor edx, edx
mov dword [ebp + 8], edx
mov eax, ebx
mov ecx, dword [eax]
cmp ecx, 0xffffffff
je 0x456012
cmp ecx, edx
jae 0x456157
cmp dword [eax + 4], 0
je 0x45601b
inc dword [ebp + 8]
inc edx
add eax, 0xc
cmp edx, edi
jbe 0x456003
cmp dword [ebp + 8], 0
je 0x45603d
mov eax, dword [esi - 8]
cmp eax, dword [ebp - 4]
jb 0x456157
cmp eax, esi
jae 0x456157
mov eax, dword [0x486dd8]
mov edi, ebx
and edi, 0xfffff000
xor esi, esi
test eax, eax
jle 0x456062
cmp dword [esi*4 + 0x486de0], edi
je 0x45615b
inc esi
cmp esi, eax
jl 0x456050
push 0x1c
lea eax, [ebp - 0x20]
push eax
push ebx
call dword [sym.imp.KERNEL32.dll_VirtualQuery]
test eax, eax
je 0x4561d7
cmp dword [ebp - 8], 0x1000000
jne 0x4561d7
test byte [ebp - 0xc], 0xcc
je 0x4560e0
mov ecx, dword [ebp - 0x1c]
cmp word [ecx], 0x5a4d
jne 0x4561d7
mov eax, dword [ecx + 0x3c]
add eax, ecx
cmp dword [eax], 0x4550
jne 0x4561d7
cmp word [eax + 0x18], 0x10b
jne 0x4561d7
sub ebx, ecx
cmp word [eax + 6], 0
movzx ecx, word [eax + 0x14]
lea ecx, [ecx + eax + 0x18]
jbe 0x4561d7
mov eax, dword [ecx + 0xc]
cmp ebx, eax
jb 0x4560e0
mov edx, dword [ecx + 8]
add edx, eax
cmp ebx, edx
jae 0x4560e0
test byte [ecx + 0x27], 0x80
jne 0x456157
push 1
push 0x486e20
call dword [sym.imp.KERNEL32.dll_InterlockedExchange]
test eax, eax
jne 0x455ff4
mov ecx, dword [0x486dd8]
test ecx, ecx
mov edx, ecx
jle 0x456114
lea eax, [ecx*4 + 0x486ddc]
cmp dword [eax], edi
je 0x456114
dec edx
sub eax, 4
test edx, edx
jg 0x456108
test edx, edx
jne 0x456145
push 0xf
pop ebx
cmp ecx, ebx
jg 0x456121
mov ebx, ecx
xor edx, edx
test ebx, ebx
jl 0x456139
lea eax, [edx*4 + 0x486de0]
mov esi, dword [eax]
inc edx
cmp edx, ebx
mov dword [eax], edi
mov edi, esi
jle 0x456127
cmp ecx, 0x10
jge 0x456145
inc ecx
mov dword [0x486dd8], ecx
push 0
push 0x486e20
call dword [sym.imp.KERNEL32.dll_InterlockedExchange]
jmp 0x455ff4
xor eax, eax
jmp 0x4561da
test esi, esi
jle 0x455ff4
mov ebx, dword [sym.imp.KERNEL32.dll_InterlockedExchange]
push 1
push 0x486e20
call ebx
test eax, eax
jne 0x455ff4
cmp dword [esi*4 + 0x486de0], edi
je 0x4561b1
mov eax, dword [0x486dd8]
lea esi, [eax - 1]
test esi, esi
jl 0x45619f
cmp dword [esi*4 + 0x486de0], edi
je 0x45619b
dec esi
jns 0x45618f
test esi, esi
jge 0x4561af
cmp eax, 0x10
jge 0x4561aa
inc eax
mov dword [0x486dd8], eax
lea esi, [eax - 1]
jmp 0x4561b1
je 0x4561c9
xor ecx, ecx
test esi, esi
jl 0x4561c9
lea eax, [ecx*4 + 0x486de0]
mov edx, dword [eax]
inc ecx
cmp ecx, esi
mov dword [eax], edi
mov edi, edx
jle 0x4561b7
push 0
push 0x486e20
call ebx
jmp 0x455ff4
or eax, 0xffffffff
pop edi
pop esi
pop ebx
leave
ret
Function at 0x456839
Capabilities:
Set environment variable

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x10
mov eax, dword [ebp + 8]
push ebx
xor ebx, ebx
cmp eax, ebx
push edi
mov dword [ebp - 0x10], ebx
jne 0x456852
or eax, 0xffffffff
jmp 0x4568b3
push esi
mov esi, dword [eax]
cmp esi, ebx
mov dword [ebp - 4], esi
je 0x4568af
push 0x3d
push esi
call fcn.00456a0e
cmp eax, ebx
pop ecx
pop ecx
mov dword [ebp - 0xc], eax
je 0x4568af
cmp esi, eax
je 0x4568af
xor ecx, ecx
cmp byte [eax + 1], bl
mov eax, dword [0x486be0]
sete cl
cmp eax, dword [0x486be4]
mov dword [ebp - 8], ecx
jne 0x456895
mov edi, eax
call fcn.004567d8
mov dword [0x486be0], eax
cmp eax, ebx
jne 0x4568ee
cmp dword [ebp + 0xc], ebx
je 0x4568b7
cmp dword [0x486be8], ebx
je 0x4568b7
call fcn.00452846
test eax, eax
je 0x4568ee
or eax, 0xffffffff
pop esi
pop edi
pop ebx
leave
ret
cmp dword [ebp - 8], ebx
je 0x4568c0
xor eax, eax
jmp 0x4568b2
push 4
call fcn.0044c0c0
cmp eax, ebx
pop ecx
mov dword [0x486be0], eax
je 0x4568af
mov dword [eax], ebx
cmp dword [0x486be8], ebx
jne 0x4568ee
push 4
call fcn.0044c0c0
cmp eax, ebx
pop ecx
mov dword [0x486be8], eax
je 0x4568af
mov dword [eax], ebx
mov edi, dword [ebp - 0xc]
sub edi, dword [ebp - 4]
push dword [ebp - 4]
mov esi, dword [0x486be0]
call fcn.0045678b
mov edi, eax
cmp edi, ebx
pop ecx
jl 0x45694f
cmp dword [esi], ebx
je 0x45694f
lea esi, [esi + edi*4]
push dword [esi]
call fcn.0044c234
cmp dword [ebp - 8], ebx
pop ecx
jne 0x456932
mov eax, dword [ebp - 4]
mov dword [esi], eax
mov eax, dword [ebp + 8]
mov dword [eax], ebx
jmp 0x456990
mov eax, dword [esi + 4]
mov dword [esi], eax
inc edi
add esi, 4
cmp dword [esi], ebx
jne 0x456929
mov eax, edi
shl eax, 2
push eax
push dword [0x486be0]
call fcn.0044c0d2
cmp eax, ebx
pop ecx
pop ecx
je 0x456990
jmp 0x45698b
cmp dword [ebp - 8], ebx
jne 0x4569fb
cmp edi, ebx
jge 0x45695e
neg edi
lea eax, [edi*4 + 8]
push eax
push dword [0x486be0]
call fcn.0044c0d2
cmp eax, ebx
pop ecx
pop ecx
je 0x4568af
mov edx, dword [ebp - 4]
lea ecx, [eax + edi*4]
mov dword [ecx], edx
mov dword [ecx + 4], ebx
mov ecx, dword [ebp + 8]
mov dword [ecx], ebx
mov dword [0x486be0], eax
cmp dword [ebp + 0xc], ebx
je 0x4569e5
push dword [ebp - 4]
call fcn.0044dcf0
inc eax
inc eax
push eax
call fcn.0044c0c0
mov esi, eax
cmp esi, ebx
pop ecx
pop ecx
je 0x4569e5
push dword [ebp - 4]
push esi
call fcn.00452920
mov eax, esi
sub eax, dword [ebp - 4]
pop ecx
add eax, dword [ebp - 0xc]
pop ecx
mov ecx, dword [ebp - 8]
mov byte [eax], bl
inc eax
neg ecx
sbb ecx, ecx
not ecx
and ecx, eax
push ecx
push esi
call dword [sym.imp.KERNEL32.dll_SetEnvironmentVariableA]
test eax, eax
jne 0x4569de
or dword [ebp - 0x10], 0xffffffff
push esi
call fcn.0044c234
pop ecx
cmp dword [ebp - 8], ebx
je 0x4569f3
push dword [ebp - 4]
call fcn.0044c234
pop ecx
mov eax, dword [ebp - 0x10]
jmp 0x4568b2
push dword [ebp - 4]
call fcn.0044c234
mov eax, dword [ebp + 8]
pop ecx
mov dword [eax], ebx
jmp 0x4568bc
Function at 0x456ebb
Capabilities:
Clear file content

Disassembly:
push ebp
mov ebp, esp
mov eax, 0x1008
call fcn.0044ae10
mov eax, dword [0x485cf0]
push ebx
mov ebx, dword [ebp + 8]
push esi
xor esi, esi
cmp ebx, dword [0x48708c]
mov dword [ebp - 4], eax
jae 0x456ffe
mov eax, ebx
sar eax, 5
mov eax, dword [eax*4 + 0x4870a0]
mov ecx, ebx
and ecx, 0x1f
test byte [eax + ecx*8 + 4], 1
je 0x456ffe
push 1
push esi
push ebx
call fcn.00450d4d
add esp, 0xc
cmp eax, 0xffffffff
mov dword [ebp - 0x1008], eax
je 0x457008
push 2
push esi
push ebx
call fcn.00450d4d
add esp, 0xc
cmp eax, 0xffffffff
je 0x457008
push edi
mov edi, dword [ebp + 0xc]
sub edi, eax
test edi, edi
jle 0x456fa8
push 0x1000
lea eax, [ebp - 0x1004]
push esi
push eax
call fcn.00453160
push 0x8000
push ebx
call fcn.004572fa
add esp, 0x14
mov dword [ebp + 8], eax
mov eax, 0x1000
cmp edi, eax
jge 0x456f67
mov eax, edi
push eax
lea eax, [ebp - 0x1004]
push eax
push ebx
call fcn.0044e144
add esp, 0xc
cmp eax, 0xffffffff
je 0x456f85
sub edi, eax
test edi, edi
jg 0x456f5c
jmp 0x456f9b
cmp dword [0x486bb8], 5
jne 0x456f98
mov dword [0x486bb4], 0xd
or esi, 0xffffffff
push dword [ebp + 8]
push ebx
call fcn.004572fa
pop ecx
pop ecx
jmp 0x456fe8
jge 0x456fe8
push 0
push dword [ebp + 0xc]
push ebx
call fcn.00450d4d
push ebx
call fcn.004536c9
add esp, 0x10
push eax
call dword [sym.imp.KERNEL32.dll_SetEndOfFile]
mov esi, eax
neg esi
sbb esi, esi
neg esi
dec esi
cmp esi, 0xffffffff
jne 0x456fe8
mov dword [0x486bb4], 0xd
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov dword [0x486bb8], eax
push 0
push dword [ebp - 0x1008]
push ebx
call fcn.00450d4d
add esp, 0xc
mov eax, esi
pop edi
jmp 0x45700b
mov dword [0x486bb4], 9
or eax, 0xffffffff
mov ecx, dword [ebp - 4]
pop esi
pop ebx
call fcn.0044e064
leave
ret
Function at 0x10006b70
Capabilities:
Read file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x20
mov dword [ebp - 8], ecx
cmp dword [ebp + 0x10], 0
jg 0x10006b90
jl 0x10006b87
cmp dword [ebp + 0xc], 0
ja 0x10006b90
xor eax, eax
xor edx, edx
jmp 0x10006cc8
mov eax, dword [ebp - 8]
cmp dword [eax + 0x38], 0
je 0x10006bb2
mov ecx, dword [ebp + 0x10]
push ecx
mov edx, dword [ebp + 0xc]
push edx
mov eax, dword [ebp + 8]
push eax
mov ecx, dword [ebp - 8]
call fcn.10006cd0
jmp 0x10006cc8
mov ecx, dword [ebp + 0xc]
mov dword [ebp - 4], ecx
mov edx, dword [ebp + 0xc]
mov eax, dword [ebp + 0x10]
mov dword [ebp - 0x20], edx
mov dword [ebp - 0x1c], eax
mov ecx, dword [ebp - 8]
call fcn.10004390
mov dword [ebp - 0x14], eax
cmp dword [ebp - 0x14], 0
jbe 0x10006c22
lea ecx, [ebp - 0x14]
push ecx
lea edx, [ebp - 4]
push edx
call fcn.10001e10
add esp, 8
mov eax, dword [eax]
mov dword [ebp - 0xc], eax
mov ecx, dword [ebp - 0xc]
push ecx
mov ecx, dword [ebp - 8]
call fcn.100057f0
push eax
mov edx, dword [ebp + 8]
push edx
call fcn.10005160
add esp, 0xc
mov eax, dword [ebp + 8]
add eax, dword [ebp - 0xc]
mov dword [ebp + 8], eax
mov ecx, dword [ebp - 4]
sub ecx, dword [ebp - 0xc]
mov dword [ebp - 4], ecx
mov edx, dword [ebp - 0xc]
push edx
mov ecx, dword [ebp - 8]
call fcn.10005740
nop
mov eax, dword [ebp - 8]
cmp dword [eax + 0x4c], 0
je 0x10006cb9
mov ecx, dword [ebp - 8]
call fcn.100049f0
mov dword [ebp - 0x18], 0xfff
cmp dword [ebp - 4], 0xfff
jbe 0x10006c92
mov ecx, dword [ebp - 8]
mov edx, dword [ecx + 0x4c]
push edx
push 0xfff
push 1
mov eax, dword [ebp + 8]
push eax
call fcn.1000eaee
add esp, 0x10
mov dword [ebp - 0x10], eax
mov ecx, dword [ebp + 8]
add ecx, dword [ebp - 0x10]
mov dword [ebp + 8], ecx
mov edx, dword [ebp - 4]
sub edx, dword [ebp - 0x10]
mov dword [ebp - 4], edx
cmp dword [ebp - 0x10], 0xfff
je 0x10006c90
xor eax, eax
mov ecx, dword [ebp - 0x20]
sub ecx, dword [ebp - 4]
mov edx, dword [ebp - 0x1c]
sbb edx, eax
mov eax, ecx
jmp 0x10006cc8
jmp 0x10006c3e
cmp dword [ebp - 4], 0
jbe 0x10006cb9
mov edx, dword [ebp - 8]
mov eax, dword [edx + 0x4c]
push eax
mov ecx, dword [ebp - 4]
push ecx
push 1
mov edx, dword [ebp + 8]
push edx
call fcn.1000eaee
add esp, 0x10
mov ecx, dword [ebp - 4]
sub ecx, eax
mov dword [ebp - 4], ecx
xor edx, edx
mov eax, dword [ebp - 0x20]
sub eax, dword [ebp - 4]
mov ecx, dword [ebp - 0x1c]
sbb ecx, edx
mov edx, ecx
mov esp, ebp
pop ebp
ret 0xc
Function at 0x10007c10
Capabilities:
Enumerate pe sections

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x14
mov eax, dword [ebp + 0x14]
mov ecx, dword [eax + 4]
mov dword [ebp - 0xc], ecx
mov edx, dword [ebp + 0x14]
mov eax, dword [edx]
mov ecx, dword [ebp + 0x14]
mov edx, dword [ecx]
movzx ecx, word [edx + 0x14]
lea edx, [eax + ecx + 0x18]
mov dword [ebp - 4], edx
mov dword [ebp - 0x10], 0
jmp 0x10007c4f
mov eax, dword [ebp - 0x10]
add eax, 1
mov dword [ebp - 0x10], eax
mov ecx, dword [ebp - 4]
add ecx, 0x28
mov dword [ebp - 4], ecx
mov edx, dword [ebp + 0x14]
mov eax, dword [edx]
movzx ecx, word [eax + 6]
cmp dword [ebp - 0x10], ecx
jge 0x10007d6b
mov edx, dword [ebp - 4]
cmp dword [edx + 0x10], 0
jne 0x10007cdc
mov eax, dword [ebp + 0x10]
mov ecx, dword [eax + 0x38]
mov dword [ebp - 0x14], ecx
cmp dword [ebp - 0x14], 0
jle 0x10007cd7
mov edx, dword [ebp + 0x14]
mov eax, dword [edx + 0x34]
push eax
push 4
push 0x1000
mov ecx, dword [ebp - 0x14]
push ecx
mov edx, dword [ebp - 4]
mov eax, dword [ebp - 0xc]
add eax, dword [edx + 0xc]
push eax
mov ecx, dword [ebp + 0x14]
mov edx, dword [ecx + 0x1c]
call edx
add esp, 0x14
mov dword [ebp - 8], eax
cmp dword [ebp - 8], 0
jne 0x10007cb0
xor eax, eax
jmp 0x10007d70
mov eax, dword [ebp - 4]
mov ecx, dword [ebp - 0xc]
add ecx, dword [eax + 0xc]
mov dword [ebp - 8], ecx
mov edx, dword [ebp - 4]
mov eax, dword [ebp - 8]
mov dword [edx + 8], eax
mov ecx, dword [ebp - 0x14]
push ecx
push 0
mov edx, dword [ebp - 8]
push edx
call fcn.1000ae90
add esp, 0xc
jmp 0x10007c3d
mov eax, dword [ebp - 4]
mov ecx, dword [eax + 0x14]
mov edx, dword [ebp - 4]
add ecx, dword [edx + 0x10]
push ecx
mov eax, dword [ebp + 0xc]
push eax
call fcn.10007bf0
add esp, 8
test eax, eax
jne 0x10007cfd
xor eax, eax
jmp 0x10007d70
mov ecx, dword [ebp + 0x14]
mov edx, dword [ecx + 0x34]
push edx
push 4
push 0x1000
mov eax, dword [ebp - 4]
mov ecx, dword [eax + 0x10]
push ecx
mov edx, dword [ebp - 4]
mov eax, dword [ebp - 0xc]
add eax, dword [edx + 0xc]
push eax
mov ecx, dword [ebp + 0x14]
mov edx, dword [ecx + 0x1c]
call edx
add esp, 0x14
mov dword [ebp - 8], eax
cmp dword [ebp - 8], 0
jne 0x10007d34
xor eax, eax
jmp 0x10007d70
mov eax, dword [ebp - 4]
mov ecx, dword [ebp - 0xc]
add ecx, dword [eax + 0xc]
mov dword [ebp - 8], ecx
mov edx, dword [ebp - 4]
mov eax, dword [edx + 0x10]
push eax
mov ecx, dword [ebp - 4]
mov edx, dword [ebp + 8]
add edx, dword [ecx + 0x14]
push edx
mov eax, dword [ebp - 8]
push eax
call fcn.1000a460
add esp, 0xc
mov ecx, dword [ebp - 4]
mov edx, dword [ebp - 8]
mov dword [ecx + 8], edx
jmp 0x10007c3d
mov eax, 1
mov esp, ebp
pop ebp
ret

Function at 0x10009838
Capabilities:
Enumerate pe sections

Disassembly:
push ebp
mov ebp, esp
mov eax, dword [ebp + 8]
push esi
mov ecx, dword [eax + 0x3c]
add ecx, eax
movzx eax, word [ecx + 0x14]
lea edx, [ecx + 0x18]
add edx, eax
movzx eax, word [ecx + 6]
imul esi, eax, 0x28
add esi, edx
jmp 0x1000986d
mov ecx, dword [edx + 0xc]
cmp dword [ebp + 0xc], ecx
jb 0x1000986a
mov eax, dword [edx + 8]
add eax, ecx
cmp dword [ebp + 0xc], eax
jb 0x10009876
add edx, 0x28
cmp edx, esi
jne 0x10009858
xor eax, eax
pop esi
pop ebp
ret
mov eax, edx
jmp 0x10009873
Function at 0x10011c67
Capabilities:
Parse pe header

Disassembly:
push 0
call dword [sym.imp.KERNEL32.dll_GetModuleHandleW]
test eax, eax
je 0x10011ca6
mov ecx, 0x5a4d
cmp word [eax], cx
jne 0x10011ca6
mov ecx, dword [eax + 0x3c]
add ecx, eax
cmp dword [ecx], 0x4550
jne 0x10011ca6
mov eax, 0x10b
cmp word [ecx + 0x18], ax
jne 0x10011ca6
cmp dword [ecx + 0x74], 0xe
jbe 0x10011ca6
cmp dword [ecx + 0xe8], 0
setne al
ret
xor al, al
ret

Function at 0x10014a63
Capabilities:
Allocate thread local storage

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push esi
push 0x10024568
push 0x10024560
push str.FlsAlloc
push 0x1f
call fcn.1001492b
mov esi, eax
add esp, 0x10
test esi, esi
je 0x10014a97
push dword [ebp + 8]
mov ecx, esi
call dword [0x10021154]
call esi
jmp 0x10014a9d
call dword [sym.imp.KERNEL32.dll_TlsAlloc]
pop esi
pop ebp
ret 4

Function at 0x10014ae1
Capabilities:
Get thread local storage value

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push esi
push 0x10024578
push 0x10024570
push str.FlsGetValue
push 0x21
call fcn.1001492b
mov esi, eax
add esp, 0x10
test esi, esi
je 0x10014b18
push dword [ebp + 8]
mov ecx, esi
call dword [0x10021154]
call esi
pop esi
pop ebp
ret 4
pop esi
pop ebp
jmp dword [sym.imp.KERNEL32.dll_TlsGetValue]

Function at 0x10014b20
Capabilities:
Set thread local storage value

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push esi
push 0x10024580
push 0x10024578
push str.FlsSetValue
push 0x22
call fcn.1001492b
mov esi, eax
add esp, 0x10
test esi, esi
je 0x10014b5a
push dword [ebp + 0xc]
mov ecx, esi
push dword [ebp + 8]
call dword [0x10021154]
call esi
pop esi
pop ebp
ret 8
pop esi
pop ebp
jmp dword [sym.imp.KERNEL32.dll_TlsSetValue]
Function at 0x100165e1
Capabilities:
Read file on windows

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
mov eax, 0x101c
call fcn.1000a410
mov eax, dword [0x1002b0c0]
xor eax, ebp
mov dword [ebp - 4], eax
mov eax, dword [ebp + 0x14]
push ebx
push dword [ebp + 8]
mov dword [ebp - 0x100c], eax
call fcn.10015096
pop ecx
mov ecx, dword [ebp + 8]
mov ebx, eax
cmp dword [ecx + 8], 0
jne 0x10016623
mov eax, dword [ebp + 0xc]
mov edx, dword [ebp + 0x10]
jmp 0x1001677f
mov eax, dword [ecx]
sub eax, dword [ecx + 4]
push esi
push edi
push 0
cdq
push 2
push edx
push eax
call fcn.10020530
push dword [ebp - 0x100c]
mov ecx, ebx
mov dword [ebp - 0x1008], eax
mov esi, ebx
mov dword [ebp - 0x1018], edx
and ecx, 0x3f
sar esi, 6
imul edi, ecx, 0x38
push 0
mov eax, dword [esi*4 + 0x1002cac8]
push dword [eax + edi + 0x24]
push dword [eax + edi + 0x20]
push ebx
call fcn.100175de
mov ecx, dword [esi*4 + 0x1002cac8]
add esp, 0x14
mov dword [ebp - 0x1010], eax
mov eax, edx
mov edx, dword [ebp - 0x1010]
mov dword [ebp - 0x101c], eax
cmp edx, dword [ecx + edi + 0x20]
jne 0x10016778
cmp eax, dword [ecx + edi + 0x24]
jne 0x10016778
push 0
lea eax, [ebp - 0x1014]
push eax
push 0x1000
lea eax, [ebp - 0x1004]
push eax
push dword [ecx + edi + 0x18]
call dword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
je 0x10016778
push dword [ebp - 0x100c]
push 0
push dword [ebp + 0x10]
push dword [ebp + 0xc]
push ebx
call fcn.100175de
add esp, 0x14
test edx, edx
jl 0x10016778
jg 0x100166ee
test eax, eax
jb 0x10016778
mov ebx, dword [ebp - 0x1018]
mov eax, dword [ebp - 0x1014]
test ebx, ebx
jg 0x10016778
jl 0x10016708
cmp dword [ebp - 0x1008], eax
ja 0x10016778
lea edi, [ebp - 0x1004]
xor edx, edx
add edi, eax
lea ecx, [ebp - 0x1004]
xor esi, esi
cmp dword [ebp - 0x1008], edx
jne 0x10016726
test ebx, ebx
je 0x1001675f
cmp ecx, edi
jae 0x1001675f
mov al, byte [ecx]
cmp al, 0xd
jne 0x10016740
lea eax, [edi - 1]
cmp ecx, eax
jae 0x1001674c
cmp byte [ecx + 1], 0xa
jne 0x1001674c
inc ecx
jmp 0x1001674c
movzx eax, al
movsx eax, byte [eax + 0x1002b368]
add ecx, eax
add esi, 1
adc edx, 0
inc ecx
cmp esi, dword [ebp - 0x1008]
jne 0x10016726
cmp edx, ebx
jne 0x10016726
lea eax, [ebp - 0x1004]
sub ecx, eax
mov eax, ecx
cdq
add eax, dword [ebp - 0x1010]
adc edx, dword [ebp - 0x101c]
jmp 0x1001677d
or edx, 0xffffffff
mov eax, edx
pop edi
pop esi
mov ecx, dword [ebp - 4]
xor ecx, ebp
pop ebx
call fcn.100094a6
leave
ret
Function at 0x10016a76
Capabilities:
Read file on windows

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x18
mov eax, dword [ebp + 8]
mov ecx, eax
push ebx
mov ebx, dword [ebp + 0xc]
and eax, 0x3f
sar ecx, 6
push esi
push edi
imul edi, eax, 0x38
mov eax, dword [ecx*4 + 0x1002cac8]
mov dword [ebp - 0xc], ecx
mov ecx, dword [edi + eax + 0x18]
mov dword [ebp - 0x14], ecx
mov ecx, dword [ebp + 0x10]
test ecx, ecx
je 0x10016ab6
cmp byte [ebx], 0xa
jne 0x10016ab6
or byte [edi + eax + 0x28], 4
jmp 0x10016abb
and byte [edi + eax + 0x28], 0xfb
add ecx, ebx
mov eax, ebx
mov dword [ebp - 0x10], ecx
mov esi, ebx
mov dword [ebp - 8], eax
cmp ebx, ecx
jae 0x10016bba
mov dl, byte [eax]
cmp dl, 0x1a
je 0x10016b9d
inc eax
cmp dl, 0xd
je 0x10016ae7
mov dword [ebp - 8], eax
mov byte [esi], dl
jmp 0x10016b0d
cmp eax, ecx
jae 0x10016b1b
mov cl, byte [eax]
xor eax, eax
cmp cl, 0xa
sete al
inc eax
add dword [ebp - 8], eax
cmp cl, 0xa
sete al
dec al
and al, 3
add al, 0xa
mov byte [esi], al
mov eax, dword [ebp - 8]
mov ecx, dword [ebp - 0x10]
xor edx, edx
inc edx
add esi, edx
cmp eax, ecx
jb 0x10016acf
jmp 0x10016bba
push 0
lea eax, [ebp - 0x10]
push eax
push 1
lea eax, [ebp - 1]
push eax
push dword [ebp - 0x14]
call dword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
je 0x10016b98
cmp dword [ebp - 0x10], 0
je 0x10016b98
mov ecx, dword [ebp - 0xc]
mov eax, dword [ecx*4 + 0x1002cac8]
test byte [eax + edi + 0x28], 0x48
je 0x10016b72
mov dl, byte [ebp - 1]
lea eax, [esi + 1]
mov dword [ebp - 0x14], eax
cmp dl, 0xa
jne 0x10016b5d
mov byte [esi], dl
jmp 0x10016b6e
mov byte [esi], 0xd
mov eax, dword [ecx*4 + 0x1002cac8]
mov byte [eax + edi + 0x2a], dl
mov eax, dword [ebp - 0x14]
mov esi, eax
jmp 0x10016bba
cmp byte [ebp - 1], 0xa
jne 0x10016b81
cmp esi, ebx
jne 0x10016b81
mov byte [esi], 0xa
jmp 0x10016bb9
push 1
push 0xffffffffffffffff
push 0xffffffffffffffff
push dword [ebp + 8]
call fcn.100175fc
add esp, 0x10
cmp byte [ebp - 1], 0xa
je 0x10016bba
mov byte [esi], 0xd
jmp 0x10016bb9
mov ecx, dword [ebp - 0xc]
mov ecx, dword [ecx*4 + 0x1002cac8]
mov al, byte [ecx + edi + 0x28]
test al, 0x40
jne 0x10016bb7
or al, 2
mov byte [ecx + edi + 0x28], al
jmp 0x10016bba
mov byte [esi], dl
inc esi
sub esi, ebx
pop edi
mov eax, esi
pop esi
pop ebx
leave
ret