joyce8/EMBER2024-capa huggingface dataset:
Function at 0x10021e80
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 0x10021ea0
jl 0x10021e97
cmp dword [ebp + 0xc], 0
ja 0x10021ea0
xor eax, eax
xor edx, edx
jmp 0x10021fd8
mov eax, dword [ebp - 8]
cmp dword [eax + 0x38], 0
je 0x10021ec2
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.100121f0
jmp 0x10021fd8
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.1000fe00
mov dword [ebp - 0x14], eax
cmp dword [ebp - 0x14], 0
jbe 0x10021f32
lea ecx, [ebp - 0x14]
push ecx
lea edx, [ebp - 4]
push edx
call fcn.10003780
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.10010fd0
push eax
mov edx, dword [ebp + 8]
push edx
call fcn.10004520
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.10010f40
nop
mov eax, dword [ebp - 8]
cmp dword [eax + 0x4c], 0
je 0x10021fc9
mov ecx, dword [ebp - 8]
call fcn.10020b00
mov dword [ebp - 0x18], 0xfff
cmp dword [ebp - 4], 0xfff
jbe 0x10021fa2
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.10041053
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 0x10021fa0
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 0x10021fd8
jmp 0x10021f4e
cmp dword [ebp - 4], 0
jbe 0x10021fc9
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.10041053
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 0x10022280
Capabilities:
Get hostname

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x10057b66
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x244
mov dword [ebp - 0x10], 0
mov ax, word [0x1005bdcc]
mov word [ebp - 0x250], ax
push 0x1fe
push 0
lea ecx, [ebp - 0x24e]
push ecx
call fcn.10039570
add esp, 0xc
mov dword [ebp - 0x18], 0xff
lea edx, [ebp - 0x18]
push edx
lea eax, [ebp - 0x250]
push eax
call dword [sym.imp.KERNEL32.dll_GetComputerNameW]
test eax, eax
je 0x1002235b
lea ecx, [ebp - 0x250]
push ecx
lea ecx, [ebp - 0x38]
call fcn.1001ff70
mov dword [ebp - 4], 0
lea ecx, [ebp - 0x11]
call fcn.10003870
push eax
lea edx, [ebp - 0x1c]
push edx
lea ecx, [ebp - 0x38]
call fcn.10026290
mov eax, dword [eax]
push eax
lea ecx, [ebp - 0x20]
push ecx
lea ecx, [ebp - 0x38]
call fcn.100258d0
mov edx, dword [eax]
push edx
lea ecx, [ebp - 0x50]
call fcn.10023930
nop
lea eax, [ebp - 0x50]
push eax
mov ecx, dword [ebp + 8]
call fcn.10003880
mov ecx, dword [ebp - 0x10]
or ecx, 1
mov dword [ebp - 0x10], ecx
lea ecx, [ebp - 0x50]
call fcn.10003c80
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x38]
call fcn.1000e2b0
mov eax, dword [ebp + 8]
jmp 0x10022374
push 0x1005bdc5
mov ecx, dword [ebp + 8]
call fcn.1000d250
mov edx, dword [ebp - 0x10]
or edx, 1
mov dword [ebp - 0x10], edx
mov eax, dword [ebp + 8]
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
mov esp, ebp
pop ebp
ret
Function at 0x10022890
Capabilities:
Get graphical window text

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x10057bed
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x85c
mov dword [ebp - 0x10], 0
call dword [sym.imp.USER32.dll_GetForegroundWindow]
mov dword [ebp - 0x18], eax
cmp dword [ebp - 0x18], 0
je 0x10022981
push 0x800
push 0
lea eax, [ebp - 0x868]
push eax
call fcn.10039570
add esp, 0xc
push 0x800
push 0
lea ecx, [ebp - 0x868]
push ecx
call fcn.10039570
add esp, 0xc
push 0x400
lea edx, [ebp - 0x868]
push edx
mov eax, dword [ebp - 0x18]
push eax
call dword [sym.imp.USER32.dll_GetWindowTextW]
mov dword [ebp - 0x1c], eax
cmp dword [ebp - 0x1c], 0
jle 0x10022981
lea ecx, [ebp - 0x868]
push ecx
lea ecx, [ebp - 0x50]
call fcn.1001ff70
mov dword [ebp - 4], 0
lea edx, [ebp - 0x50]
push edx
lea eax, [ebp - 0x38]
push eax
lea ecx, [ebp - 0x11]
call fcn.1001e7d0
mov dword [ebp - 0x20], eax
mov ecx, dword [ebp - 0x20]
mov dword [ebp - 0x24], ecx
mov byte [ebp - 4], 1
mov ecx, dword [ebp - 0x24]
call fcn.10004540
push eax
mov ecx, dword [ebp + 8]
call fcn.1000d250
mov edx, dword [ebp - 0x10]
or edx, 1
mov dword [ebp - 0x10], edx
mov byte [ebp - 4], 0
lea ecx, [ebp - 0x38]
call fcn.10003ca0
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x50]
call fcn.1000e2b0
nop
mov eax, dword [ebp + 8]
jmp 0x100229d5
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
lea eax, [ebp - 0x68]
push eax
call fcn.100047d0
add esp, 8
mov dword [ebp - 0x28], eax
mov ecx, dword [ebp - 0x28]
mov dword [ebp - 0x2c], ecx
mov dword [ebp - 4], 2
mov edx, dword [ebp - 0x2c]
push edx
push str.W_e:
mov eax, dword [ebp + 8]
push eax
call fcn.10002ee0
add esp, 0xc
mov ecx, dword [ebp - 0x10]
or ecx, 1
mov dword [ebp - 0x10], ecx
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x68]
call fcn.10003c80
nop
mov eax, dword [ebp + 8]
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
mov esp, ebp
pop ebp
ret
Function at 0x1002d5f0
Capabilities:
Terminate process

Disassembly:
push ebp
mov ebp, esp
sub esp, 8
call dword [sym.imp.KERNEL32.dll_GetCurrentProcessId]
mov dword [ebp - 8], eax
mov eax, dword [ebp - 8]
push eax
push 0
push 0x100001
call dword [sym.imp.KERNEL32.dll_OpenProcess]
mov dword [ebp - 4], eax
push 0
mov ecx, dword [ebp - 4]
push ecx
call dword [sym.imp.KERNEL32.dll_TerminateProcess]
mov edx, dword [ebp - 4]
push edx
call dword [sym.imp.KERNEL32.dll_CloseHandle]
nop
mov esp, ebp
pop ebp
ret
Function at 0x1002e070
Capabilities:
Capture screenshot

Disassembly:
push ebp
mov ebp, esp
sub esp, 0xa0
mov dword [ebp - 0x38], ecx
lea ecx, [ebp - 0x20]
call fcn.1002f080
nop
lea eax, [ebp - 0x20]
push eax
push 0x1002ec60
push 0
push 0
call dword [sym.imp.USER32.dll_EnumDisplayMonitors]
test eax, eax
jne 0x1002e0b3
mov dword [ebp - 0x24], 0
lea ecx, [ebp - 0x20]
call fcn.10017c40
mov eax, dword [ebp - 0x24]
jmp 0x1002e205
cmp dword [ebp + 8], 0
jl 0x1002e0c6
lea ecx, [ebp - 0x20]
call fcn.1002f990
cmp dword [ebp + 8], eax
jb 0x1002e0dd
mov dword [ebp - 0x28], 0
lea ecx, [ebp - 0x20]
call fcn.10017c40
mov eax, dword [ebp - 0x28]
jmp 0x1002e205
mov ecx, dword [ebp + 8]
push ecx
lea ecx, [ebp - 0x20]
call fcn.1002f450
mov edx, dword [eax]
mov dword [ebp - 0x2c], edx
push 0x68
push 0
lea eax, [ebp - 0xa0]
push eax
call fcn.10039570
add esp, 0xc
mov dword [ebp - 0xa0], 0x68
lea ecx, [ebp - 0xa0]
push ecx
mov edx, dword [ebp - 0x2c]
push edx
call dword [sym.imp.USER32.dll_GetMonitorInfoW]
test eax, eax
je 0x1002e1fc
mov dword [ebp - 0x10], 0
mov dword [ebp - 0xc], 0
mov eax, dword [ebp - 0x94]
sub eax, dword [ebp - 0x9c]
mov dword [ebp - 0x10], eax
mov ecx, dword [ebp - 0x90]
sub ecx, dword [ebp - 0x98]
mov dword [ebp - 0xc], ecx
push 0
push 0
push 0
push str.DISPLAY
call dword [sym.imp.GDI32.dll_CreateDCW]
mov dword [ebp - 8], eax
mov edx, dword [ebp - 8]
push edx
call dword [sym.imp.GDI32.dll_CreateCompatibleDC]
mov dword [ebp - 4], eax
mov eax, dword [ebp - 0xc]
push eax
mov ecx, dword [ebp - 0x10]
push ecx
mov edx, dword [ebp - 8]
push edx
call dword [sym.imp.GDI32.dll_CreateCompatibleBitmap]
mov dword [ebp - 0x14], eax
mov eax, dword [ebp - 0x14]
push eax
mov ecx, dword [ebp - 4]
push ecx
call dword [sym.imp.GDI32.dll_SelectObject]
mov dword [ebp - 0x30], eax
push 0xcc0020
mov edx, dword [ebp - 0x98]
push edx
mov eax, dword [ebp - 0x9c]
push eax
mov ecx, dword [ebp - 8]
push ecx
mov edx, dword [ebp - 0xc]
push edx
mov eax, dword [ebp - 0x10]
push eax
push 0
push 0
mov ecx, dword [ebp - 4]
push ecx
call dword [sym.imp.GDI32.dll_BitBlt]
mov edx, dword [ebp - 0x30]
push edx
mov eax, dword [ebp - 4]
push eax
call dword [sym.imp.GDI32.dll_SelectObject]
mov ecx, dword [ebp - 4]
push ecx
call dword [sym.imp.GDI32.dll_DeleteDC]
mov edx, dword [ebp - 8]
push edx
push 0
call dword [sym.imp.USER32.dll_ReleaseDC]
nop
mov eax, dword [ebp - 0x14]
mov dword [ebp - 0x34], eax
lea ecx, [ebp - 0x20]
call fcn.10017c40
mov eax, dword [ebp - 0x34]
jmp 0x1002e205
lea ecx, [ebp - 0x20]
call fcn.10017c40
nop
mov esp, ebp
pop ebp
ret 4
Function at 0x100327d0
Capabilities:
Create thread

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x10058e0d
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x14
mov dword [ebp - 0x10], ecx
mov eax, dword [ebp + 0xc]
push eax
call fcn.10003290
add esp, 4
push eax
mov ecx, dword [ebp + 8]
push ecx
call fcn.10003290
add esp, 4
push eax
lea edx, [ebp - 0x1c]
push edx
call fcn.10032e80
add esp, 0xc
mov dword [ebp - 0x18], eax
mov eax, dword [ebp - 0x18]
push eax
lea ecx, [ebp - 0x14]
call fcn.10013b00
mov dword [ebp - 4], 0
lea ecx, [ebp - 0x1c]
call fcn.10033230
nop
mov dword [ebp - 0x20], 0x100324a0
mov ecx, dword [ebp - 0x10]
add ecx, 4
push ecx
push 0
lea ecx, [ebp - 0x14]
call fcn.1000ed80
push eax
mov edx, dword [ebp - 0x20]
push edx
push 0
push 0
call fcn.10041f60
add esp, 0x18
mov ecx, dword [ebp - 0x10]
mov dword [ecx], eax
mov edx, dword [ebp - 0x10]
cmp dword [edx], 0
je 0x10032874
lea ecx, [ebp - 0x14]
call fcn.100117c0
nop
jmp 0x10032886
mov eax, dword [ebp - 0x10]
mov dword [eax + 4], 0
push 6
call fcn.10037393
nop
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x14]
call fcn.10033230
nop
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
mov esp, ebp
pop ebp
ret 8

Function at 0x100328b0
Capabilities:
Create thread

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x10058e0d
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x14
mov dword [ebp - 0x10], ecx
mov eax, dword [ebp + 0xc]
push eax
call fcn.10003290
add esp, 4
push eax
mov ecx, dword [ebp + 8]
push ecx
call fcn.10003290
add esp, 4
push eax
lea edx, [ebp - 0x1c]
push edx
call fcn.10032f10
add esp, 0xc
mov dword [ebp - 0x18], eax
mov eax, dword [ebp - 0x18]
push eax
lea ecx, [ebp - 0x14]
call fcn.10013b00
mov dword [ebp - 4], 0
lea ecx, [ebp - 0x1c]
call fcn.10033230
nop
mov dword [ebp - 0x20], 0x10032540
mov ecx, dword [ebp - 0x10]
add ecx, 4
push ecx
push 0
lea ecx, [ebp - 0x14]
call fcn.1000ed80
push eax
mov edx, dword [ebp - 0x20]
push edx
push 0
push 0
call fcn.10041f60
add esp, 0x18
mov ecx, dword [ebp - 0x10]
mov dword [ecx], eax
mov edx, dword [ebp - 0x10]
cmp dword [edx], 0
je 0x10032954
lea ecx, [ebp - 0x14]
call fcn.100117c0
nop
jmp 0x10032966
mov eax, dword [ebp - 0x10]
mov dword [eax + 4], 0
push 6
call fcn.10037393
nop
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x14]
call fcn.10033230
nop
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
mov esp, ebp
pop ebp
ret 8
Function at 0x100354d0
Capabilities:
Generate random numbers using a mersenne twister

Disassembly:
push ebp
mov ebp, esp
sub esp, 8
mov dword [ebp - 8], ecx
mov eax, dword [ebp - 8]
cmp dword [eax], 0x270
jne 0x100354ef
mov ecx, dword [ebp - 8]
call fcn.100357f0
nop
jmp 0x10035503
mov ecx, dword [ebp - 8]
cmp dword [ecx], 0x4e0
jb 0x10035503
mov ecx, dword [ebp - 8]
call fcn.10035650
nop
mov edx, dword [ebp - 8]
mov eax, dword [edx]
mov ecx, dword [ebp - 8]
mov edx, dword [ecx + eax*4 + 4]
mov dword [ebp - 4], edx
mov eax, dword [ebp - 8]
mov ecx, dword [eax]
add ecx, 1
mov edx, dword [ebp - 8]
mov dword [edx], ecx
mov eax, dword [ebp - 4]
shr eax, 0xb
mov ecx, dword [ebp - 8]
and eax, dword [ecx + 0x1384]
xor eax, dword [ebp - 4]
mov dword [ebp - 4], eax
mov edx, dword [ebp - 4]
shl edx, 7
and edx, 0x9d2c5680
xor edx, dword [ebp - 4]
mov dword [ebp - 4], edx
mov eax, dword [ebp - 4]
shl eax, 0xf
and eax, 0xefc60000
xor eax, dword [ebp - 4]
mov dword [ebp - 4], eax
mov ecx, dword [ebp - 4]
shr ecx, 0x12
xor ecx, dword [ebp - 4]
mov dword [ebp - 4], ecx
mov eax, dword [ebp - 4]
mov esp, ebp
pop ebp
ret
Function at 0x10035650
Capabilities:
Generate random numbers using a mersenne twister

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x30
mov dword [ebp - 4], ecx
mov dword [ebp - 0x28], 0x26f
mov dword [ebp - 0x2c], 0xe3
mov dword [ebp - 8], 0
jmp 0x10035679
mov eax, dword [ebp - 8]
add eax, 1
mov dword [ebp - 8], eax
cmp dword [ebp - 8], 0xe3
jae 0x100356e5
mov ecx, dword [ebp - 8]
mov edx, dword [ebp - 4]
mov eax, dword [edx + ecx*4 + 0x9c4]
and eax, 0x80000000
mov ecx, dword [ebp - 8]
mov edx, dword [ebp - 4]
mov ecx, dword [edx + ecx*4 + 0x9c8]
and ecx, 0x7fffffff
or eax, ecx
mov dword [ebp - 0x10], eax
mov edx, dword [ebp - 0x10]
and edx, 1
je 0x100356bd
mov dword [ebp - 0x14], 0x9908b0df
jmp 0x100356c4
mov dword [ebp - 0x14], 0
mov eax, dword [ebp - 0x10]
shr eax, 1
xor eax, dword [ebp - 0x14]
mov ecx, dword [ebp - 8]
mov edx, dword [ebp - 4]
xor eax, dword [edx + ecx*4 + 0xff8]
mov ecx, dword [ebp - 8]
mov edx, dword [ebp - 4]
mov dword [edx + ecx*4 + 4], eax
jmp 0x10035670
mov dword [ebp - 0xc], 0xe3
jmp 0x100356f7
mov eax, dword [ebp - 0xc]
add eax, 1
mov dword [ebp - 0xc], eax
cmp dword [ebp - 0xc], 0x26f
jae 0x10035763
mov ecx, dword [ebp - 0xc]
mov edx, dword [ebp - 4]
mov eax, dword [edx + ecx*4 + 0x9c4]
and eax, 0x80000000
mov ecx, dword [ebp - 0xc]
mov edx, dword [ebp - 4]
mov ecx, dword [edx + ecx*4 + 0x9c8]
and ecx, 0x7fffffff
or eax, ecx
mov dword [ebp - 0x18], eax
mov edx, dword [ebp - 0x18]
and edx, 1
je 0x1003573b
mov dword [ebp - 0x1c], 0x9908b0df
jmp 0x10035742
mov dword [ebp - 0x1c], 0
mov eax, dword [ebp - 0x18]
shr eax, 1
xor eax, dword [ebp - 0x1c]
mov ecx, dword [ebp - 0xc]
mov edx, dword [ebp - 4]
xor eax, dword [edx + ecx*4 - 0x388]
mov ecx, dword [ebp - 0xc]
mov edx, dword [ebp - 4]
mov dword [edx + ecx*4 + 4], eax
jmp 0x100356ee
mov dword [ebp - 0x30], 0x26f
mov eax, 4
imul ecx, eax, 0x4df
mov edx, dword [ebp - 4]
mov eax, dword [edx + ecx + 4]
and eax, 0x80000000
mov ecx, 4
imul edx, ecx, 0
mov ecx, dword [ebp - 4]
mov edx, dword [ecx + edx + 4]
and edx, 0x7fffffff
or eax, edx
mov dword [ebp - 0x20], eax
mov eax, dword [ebp - 0x20]
and eax, 1
je 0x100357ac
mov dword [ebp - 0x24], 0x9908b0df
jmp 0x100357b3
mov dword [ebp - 0x24], 0
mov ecx, dword [ebp - 0x20]
shr ecx, 1
xor ecx, dword [ebp - 0x24]
mov edx, 4
imul eax, edx, 0x18c
mov edx, dword [ebp - 4]
xor ecx, dword [edx + eax + 4]
mov eax, 4
imul edx, eax, 0x26f
mov eax, dword [ebp - 4]
mov dword [eax + edx + 4], ecx
mov ecx, dword [ebp - 4]
mov dword [ecx], 0
mov esp, ebp
pop ebp
ret
Function at 0x100357f0
Capabilities:
Generate random numbers using a mersenne twister

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x10
mov dword [ebp - 8], ecx
mov dword [ebp - 4], 0x270
jmp 0x1003580b
mov eax, dword [ebp - 4]
add eax, 1
mov dword [ebp - 4], eax
cmp dword [ebp - 4], 0x4e0
jae 0x10035877
mov ecx, dword [ebp - 4]
mov edx, dword [ebp - 8]
mov eax, dword [edx + ecx*4 - 0x9bc]
and eax, 0x80000000
mov ecx, dword [ebp - 4]
mov edx, dword [ebp - 8]
mov ecx, dword [edx + ecx*4 - 0x9b8]
and ecx, 0x7fffffff
or eax, ecx
mov dword [ebp - 0xc], eax
mov edx, dword [ebp - 0xc]
and edx, 1
je 0x1003584f
mov dword [ebp - 0x10], 0x9908b0df
jmp 0x10035856
mov dword [ebp - 0x10], 0
mov eax, dword [ebp - 0xc]
shr eax, 1
xor eax, dword [ebp - 0x10]
mov ecx, dword [ebp - 4]
mov edx, dword [ebp - 8]
xor eax, dword [edx + ecx*4 - 0x388]
mov ecx, dword [ebp - 4]
mov edx, dword [ebp - 8]
mov dword [edx + ecx*4 + 4], eax
jmp 0x10035802
mov esp, ebp
pop ebp
ret

Function at 0x1004370f
Capabilities:
Parse pe header

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

Function at 0x10046536
Capabilities:
Allocate thread local storage

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push esi
push 0x10060188
push 0x10060180
push str.FlsAlloc
push 0x1f
call fcn.100463be
mov esi, eax
add esp, 0x10
test esi, esi
je 0x1004656a
push dword [ebp + 8]
mov ecx, esi
call dword [0x1005a294]
call esi
jmp 0x10046570
call dword [sym.imp.KERNEL32.dll_TlsAlloc]
pop esi
pop ebp
ret 4

Function at 0x100465b4
Capabilities:
Get thread local storage value

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push esi
push 0x10060198
push 0x10060190
push str.FlsGetValue
push 0x21
call fcn.100463be
mov esi, eax
add esp, 0x10
test esi, esi
je 0x100465eb
push dword [ebp + 8]
mov ecx, esi
call dword [0x1005a294]
call esi
pop esi
pop ebp
ret 4
pop esi
pop ebp
jmp dword [sym.imp.KERNEL32.dll_TlsGetValue]

Function at 0x100465f3
Capabilities:
Set thread local storage value

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push esi
push 0x100601a0
push 0x10060198
push str.FlsSetValue
push 0x22
call fcn.100463be
mov esi, eax
add esp, 0x10
test esi, esi
je 0x1004662d
push dword [ebp + 0xc]
mov ecx, esi
push dword [ebp + 8]
call dword [0x1005a294]
call esi
pop esi
pop ebp
ret 8
pop esi
pop ebp
jmp dword [sym.imp.KERNEL32.dll_TlsSetValue]
Function at 0x100495d6
Capabilities:
Read file on windows

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
mov eax, 0x101c
call fcn.100381f0
mov eax, dword [0x1006d200]
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.10047b12
pop ecx
mov ecx, dword [ebp + 8]
mov ebx, eax
cmp dword [ecx + 8], 0
jne 0x10049618
mov eax, dword [ebp + 0xc]
mov edx, dword [ebp + 0x10]
jmp 0x10049774
mov eax, dword [ecx]
sub eax, dword [ecx + 4]
push esi
push edi
push 0
cdq
push 2
push edx
push eax
call fcn.10037f90
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 + 0x100702d0]
push dword [eax + edi + 0x24]
push dword [eax + edi + 0x20]
push ebx
call fcn.1004ac98
mov ecx, dword [esi*4 + 0x100702d0]
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 0x1004976d
cmp eax, dword [ecx + edi + 0x24]
jne 0x1004976d
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 0x1004976d
push dword [ebp - 0x100c]
push 0
push dword [ebp + 0x10]
push dword [ebp + 0xc]
push ebx
call fcn.1004ac98
add esp, 0x14
test edx, edx
jl 0x1004976d
jg 0x100496e3
test eax, eax
jb 0x1004976d
mov ebx, dword [ebp - 0x1018]
mov eax, dword [ebp - 0x1014]
test ebx, ebx
jg 0x1004976d
jl 0x100496fd
cmp dword [ebp - 0x1008], eax
ja 0x1004976d
lea edi, [ebp - 0x1004]
xor edx, edx
add edi, eax
lea ecx, [ebp - 0x1004]
xor esi, esi
cmp dword [ebp - 0x1008], edx
jne 0x1004971b
test ebx, ebx
je 0x10049754
cmp ecx, edi
jae 0x10049754
mov al, byte [ecx]
cmp al, 0xd
jne 0x10049735
lea eax, [edi - 1]
cmp ecx, eax
jae 0x10049741
cmp byte [ecx + 1], 0xa
jne 0x10049741
inc ecx
jmp 0x10049741
movzx eax, al
movsx eax, byte [eax + 0x1006d4a8]
add ecx, eax
add esi, 1
adc edx, 0
inc ecx
cmp esi, dword [ebp - 0x1008]
jne 0x1004971b
cmp edx, ebx
jne 0x1004971b
lea eax, [ebp - 0x1004]
sub ecx, eax
mov eax, ecx
cdq
add eax, dword [ebp - 0x1010]
adc edx, dword [ebp - 0x101c]
jmp 0x10049772
or edx, 0xffffffff
mov eax, edx
pop edi
pop esi
mov ecx, dword [ebp - 4]
xor ecx, ebp
pop ebx
call fcn.100385a2
leave
ret
Function at 0x1004a130
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 + 0x100702d0]
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 0x1004a170
cmp byte [ebx], 0xa
jne 0x1004a170
or byte [edi + eax + 0x28], 4
jmp 0x1004a175
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 0x1004a274
mov dl, byte [eax]
cmp dl, 0x1a
je 0x1004a257
inc eax
cmp dl, 0xd
je 0x1004a1a1
mov dword [ebp - 8], eax
mov byte [esi], dl
jmp 0x1004a1c7
cmp eax, ecx
jae 0x1004a1d5
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 0x1004a189
jmp 0x1004a274
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 0x1004a252
cmp dword [ebp - 0x10], 0
je 0x1004a252
mov ecx, dword [ebp - 0xc]
mov eax, dword [ecx*4 + 0x100702d0]
test byte [eax + edi + 0x28], 0x48
je 0x1004a22c
mov dl, byte [ebp - 1]
lea eax, [esi + 1]
mov dword [ebp - 0x14], eax
cmp dl, 0xa
jne 0x1004a217
mov byte [esi], dl
jmp 0x1004a228
mov byte [esi], 0xd
mov eax, dword [ecx*4 + 0x100702d0]
mov byte [eax + edi + 0x2a], dl
mov eax, dword [ebp - 0x14]
mov esi, eax
jmp 0x1004a274
cmp byte [ebp - 1], 0xa
jne 0x1004a23b
cmp esi, ebx
jne 0x1004a23b
mov byte [esi], 0xa
jmp 0x1004a273
push 1
push 0xffffffffffffffff
push 0xffffffffffffffff
push dword [ebp + 8]
call fcn.1004acb6
add esp, 0x10
cmp byte [ebp - 1], 0xa
je 0x1004a274
mov byte [esi], 0xd
jmp 0x1004a273
mov ecx, dword [ebp - 0xc]
mov ecx, dword [ecx*4 + 0x100702d0]
mov al, byte [ecx + edi + 0x28]
test al, 0x40
jne 0x1004a271
or al, 2
mov byte [ecx + edi + 0x28], al
jmp 0x1004a274
mov byte [esi], dl
inc esi
sub esi, ebx
pop edi
mov eax, esi
pop esi
pop ebx
leave
ret