joyce8/EMBER2024-capa huggingface dataset:
Function at 0x1000dd90
Capabilities:
Get process heap flags

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x10094b0d
mov eax, dword fs:[0]
push eax
sub esp, 0xc
mov eax, dword [0x100b00f0]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov dword [ebp - 0x10], ecx
mov eax, dword [ebp - 0x10]
mov dword [ebp - 0x14], eax
push 0x100a4dd4
mov ecx, dword [ebp - 0x14]
call fcn.10016560
mov dword [ebp - 4], 0
mov ecx, dword [ebp - 0x10]
add ecx, 0x18
mov dword [ebp - 0x18], ecx
push 0x100a4d08
mov ecx, dword [ebp - 0x18]
call fcn.10016560
mov ecx, dword [ebp - 0x10]
add ecx, 0x30
call fcn.10016690
mov ecx, dword [ebp - 0x10]
add ecx, 0x48
call fcn.10016690
mov ecx, dword [ebp - 0x10]
add ecx, 0x60
call fcn.10016690
mov edx, dword [ebp - 0x10]
mov dword [edx + 0x78], 0
mov eax, dword [ebp - 0x10]
mov byte [eax + 0x7c], 0
mov ecx, dword [ebp - 0x10]
add ecx, 0x80
call fcn.1000a770
mov ecx, dword [ebp - 0x10]
add ecx, 0xe0
call fcn.10016690
mov ecx, dword [ebp - 0x10]
mov dword [ecx + 0xf8], 0
mov edx, dword [ebp - 0x10]
mov dword [edx + 0xfc], 0
mov dword [ebp - 4], 0xffffffff
mov eax, dword [ebp - 0x10]
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
mov esp, ebp
pop ebp
ret

Function at 0x1000e540
Capabilities:
Get local ipv4 addresses
Get socket information

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x94
mov eax, dword [0x100b00f0]
xor eax, ebp
mov dword [ebp - 4], eax
mov dword [ebp - 0x88], ecx
mov eax, dword [ebp - 0x88]
mov edx, dword [eax]
mov ecx, dword [ebp - 0x88]
mov eax, dword [edx + 4]
call eax
movzx ecx, al
test ecx, ecx
jne 0x1000e57b
or eax, 0xffffffff
jmp 0x1000e672
sub esp, 0x28
mov ecx, esp
mov dword [ebp - 0x94], esp
mov edx, dword [ebp - 0x88]
add edx, 0x240
push edx
call fcn.10013d70
mov eax, dword [ebp + 0x10]
push eax
mov ecx, dword [ebp + 0xc]
push ecx
mov edx, dword [ebp + 8]
push edx
mov ecx, dword [ebp - 0x88]
call fcn.1000e3e0
mov dword [ebp - 0x8c], eax
mov eax, dword [ebp - 0x8c]
push eax
mov ecx, dword [ebp - 0x88]
add ecx, 0x30
call fcn.10014180
mov ecx, dword [ebp - 0x88]
add ecx, 0x30
call fcn.10014160
cmp eax, 0xffffffff
jne 0x1000e5e5
or eax, 0xffffffff
jmp 0x1000e672
cmp dword [ebp + 0xc], 0
jne 0x1000e66f
mov dword [ebp - 0x90], pe_nt_image_headers32
lea ecx, [ebp - 0x90]
push ecx
lea edx, [ebp - 0x84]
push edx
mov ecx, dword [ebp - 0x88]
add ecx, 0x30
call fcn.10014160
push eax
call dword [sym.imp.WS2_32.dll_getsockname]
cmp eax, 0xffffffff
jne 0x1000e626
or eax, 0xffffffff
jmp 0x1000e672
movzx eax, word [ebp - 0x84]
cmp eax, 2
jne 0x1000e647
movzx ecx, word [ebp - 0x82]
push ecx
call dword [sym.imp.WS2_32.dll_ntohs]
movzx eax, ax
jmp 0x1000e672
movzx edx, word [ebp - 0x84]
cmp edx, 0x17
jne 0x1000e668
movzx eax, word [ebp - 0x82]
push eax
call dword [sym.imp.WS2_32.dll_ntohs]
movzx eax, ax
jmp 0x1000e672
or eax, 0xffffffff
jmp 0x1000e672
mov eax, dword [ebp + 0xc]
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.1006ddbb
mov esp, ebp
pop ebp
ret 0xc
Function at 0x100111a0
Capabilities:
Extract resource via kernel32 functions

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x18
mov dword [ebp - 0xc], 0
mov eax, dword [0x100ee0c0]
mov ecx, dword fs:[0x2c]
mov edx, dword [ecx + eax*4]
mov eax, dword [0x100efc5c]
cmp eax, dword [edx + 4]
jle 0x10011203
push 0x100efc5c
call fcn.1006df01
add esp, 4
cmp dword [0x100efc5c], 0xffffffff
jne 0x10011203
mov ecx, 0x100ef028
call fcn.10016690
push 0x10097ed0
call fcn.1006e421
add esp, 4
push 0x100efc5c
call fcn.1006deb7
add esp, 4
call fcn.10011100
mov dword [ebp - 4], eax
push 0x100a50a4
push 0x65
mov ecx, dword [ebp - 4]
push ecx
call dword [sym.imp.KERNEL32.dll_FindResourceW]
mov dword [ebp - 8], eax
mov edx, dword [ebp - 8]
push edx
mov eax, dword [ebp - 4]
push eax
call dword [sym.imp.KERNEL32.dll_LoadResource]
mov dword [ebp - 0x10], eax
mov ecx, dword [ebp - 0x10]
push ecx
call dword [sym.imp.KERNEL32.dll_LockResource]
mov dword [ebp - 0x14], eax
mov edx, dword [ebp - 8]
push edx
mov eax, dword [ebp - 4]
push eax
call dword [sym.imp.KERNEL32.dll_SizeofResource]
mov dword [ebp - 0x18], eax
mov ecx, dword [ebp - 0x14]
push ecx
mov ecx, 0x100ef028
call fcn.10016390
push 0x100ef028
mov ecx, dword [ebp + 8]
call fcn.100166d0
mov edx, dword [ebp - 0xc]
or edx, 1
mov dword [ebp - 0xc], edx
mov eax, dword [ebp + 8]
mov esp, ebp
pop ebp
ret

Function at 0x10011a50
Capabilities:
Link many functions at runtime

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x10
push str.cef_version_info
mov eax, dword [ebp + 8]
push eax
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
mov dword [ebp - 4], eax
cmp dword [ebp - 4], 0
je 0x10011ab8
mov ecx, dword [ebp - 4]
mov dword [ebp - 0xc], ecx
push 0
call dword [ebp - 0xc]
add esp, 4
mov dword [ebp - 8], eax
call fcn.10010f00
mov dword [ebp - 0x10], eax
mov edx, dword [ebp - 8]
push edx
push str.cef_version:__d_n
mov eax, dword [ebp - 0x10]
push eax
call fcn.10047970
add esp, 0xc
cmp dword [ebp - 8], 0x6c
je 0x10011ab8
push 0
push 0x100119d0
call fcn.10011070
add esp, 8
push 0
call fcn.10072d73
push str.cef_string_utf16_to_utf8
mov ecx, dword [ebp + 8]
push ecx
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
mov dword [0x100ee9f0], eax
push str.cef_string_userfree_utf16_free
mov edx, dword [ebp + 8]
push edx
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
mov dword [0x100ee9f8], eax
push str.cef_string_ascii_to_utf16
mov eax, dword [ebp + 8]
push eax
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
mov dword [0x100ee9f4], eax
push str.cef_browser_host_create_browser
mov ecx, dword [ebp + 8]
push ecx
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
mov dword [0x100ee9ec], eax
push str.cef_browser_host_create_browser_sync
mov edx, dword [ebp + 8]
push edx
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
mov dword [0x100ee9fc], eax
push str.cef_initialize
mov eax, dword [ebp + 8]
push eax
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
mov dword [0x100eea00], eax
cmp dword [0x100ee9fc], 0
je 0x10011b5d
push 0x10011910
push 0x100ee9ec
call fcn.1006af80
add esp, 8
push 0x10011970
push 0x100ee9fc
call fcn.1006af80
add esp, 8
mov esp, ebp
pop ebp
ret
Function at 0x10013000
Capabilities:
Generate random numbers using a mersenne twister

Disassembly:
push ebp
mov ebp, esp
sub esp, 0xc
mov dword [ebp - 8], ecx
mov eax, dword [ebp - 8]
cmp dword [eax], 0x270
jne 0x1001301e
mov ecx, dword [ebp - 8]
call fcn.10017d00
jmp 0x10013031
mov ecx, dword [ebp - 8]
cmp dword [ecx], 0x4e0
jb 0x10013031
mov ecx, dword [ebp - 8]
call fcn.10017d90
mov edx, dword [ebp - 8]
mov eax, dword [edx]
mov ecx, dword [ebp - 8]
mov edx, dword [ecx + eax*4 + 4]
mov dword [ebp - 0xc], 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 - 0xc]
mov dword [ebp - 4], eax
mov ecx, dword [ebp - 4]
shr ecx, 0xb
mov edx, dword [ebp - 8]
and ecx, dword [edx + 0x1384]
xor ecx, dword [ebp - 4]
mov dword [ebp - 4], ecx
mov eax, dword [ebp - 4]
shl eax, 7
and eax, 0x9d2c5680
xor eax, dword [ebp - 4]
mov dword [ebp - 4], eax
mov ecx, dword [ebp - 4]
shl ecx, 0xf
and ecx, 0xefc60000
xor ecx, dword [ebp - 4]
mov dword [ebp - 4], ecx
mov edx, dword [ebp - 4]
shr edx, 0x12
xor edx, dword [ebp - 4]
mov dword [ebp - 4], edx
mov eax, dword [ebp - 4]
mov esp, ebp
pop ebp
ret

Function at 0x10017d00
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 0x10017d1b
mov eax, dword [ebp - 4]
add eax, 1
mov dword [ebp - 4], eax
cmp dword [ebp - 4], 0x4e0
jae 0x10017d87
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 0x10017d5f
mov dword [ebp - 0x10], 0x9908b0df
jmp 0x10017d66
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 0x10017d12
mov esp, ebp
pop ebp
ret
Function at 0x10017d90
Capabilities:
Generate random numbers using a mersenne twister

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x20
mov dword [ebp - 8], ecx
mov dword [ebp - 4], 0
jmp 0x10017dab
mov eax, dword [ebp - 4]
add eax, 1
mov dword [ebp - 4], eax
cmp dword [ebp - 4], 0xe3
jae 0x10017e17
mov ecx, dword [ebp - 4]
mov edx, dword [ebp - 8]
mov eax, dword [edx + ecx*4 + 0x9c4]
and eax, 0x80000000
mov ecx, dword [ebp - 4]
mov edx, dword [ebp - 8]
mov ecx, dword [edx + ecx*4 + 0x9c8]
and ecx, 0x7fffffff
or eax, ecx
mov dword [ebp - 0xc], eax
mov edx, dword [ebp - 0xc]
and edx, 1
je 0x10017def
mov dword [ebp - 0x10], 0x9908b0df
jmp 0x10017df6
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 + 0xff8]
mov ecx, dword [ebp - 4]
mov edx, dword [ebp - 8]
mov dword [edx + ecx*4 + 4], eax
jmp 0x10017da2
jmp 0x10017e22
mov eax, dword [ebp - 4]
add eax, 1
mov dword [ebp - 4], eax
cmp dword [ebp - 4], 0x26f
jae 0x10017e8e
mov ecx, dword [ebp - 4]
mov edx, dword [ebp - 8]
mov eax, dword [edx + ecx*4 + 0x9c4]
and eax, 0x80000000
mov ecx, dword [ebp - 4]
mov edx, dword [ebp - 8]
mov ecx, dword [edx + ecx*4 + 0x9c8]
and ecx, 0x7fffffff
or eax, ecx
mov dword [ebp - 0x14], eax
mov edx, dword [ebp - 0x14]
and edx, 1
je 0x10017e66
mov dword [ebp - 0x18], 0x9908b0df
jmp 0x10017e6d
mov dword [ebp - 0x18], 0
mov eax, dword [ebp - 0x14]
shr eax, 1
xor eax, dword [ebp - 0x18]
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 0x10017e19
mov eax, dword [ebp - 4]
mov ecx, dword [ebp - 8]
mov edx, dword [ecx + eax*4 + 0x9c4]
and edx, 0x80000000
mov eax, 4
imul ecx, eax, 0
mov eax, dword [ebp - 8]
mov ecx, dword [eax + ecx + 4]
and ecx, 0x7fffffff
or edx, ecx
mov dword [ebp - 0x1c], edx
mov edx, dword [ebp - 0x1c]
and edx, 1
je 0x10017ecc
mov dword [ebp - 0x20], 0x9908b0df
jmp 0x10017ed3
mov dword [ebp - 0x20], 0
mov eax, dword [ebp - 0x1c]
shr eax, 1
xor eax, dword [ebp - 0x20]
mov ecx, 4
imul edx, ecx, 0x18c
mov ecx, dword [ebp - 8]
xor eax, dword [ecx + edx + 4]
mov edx, dword [ebp - 4]
mov ecx, dword [ebp - 8]
mov dword [ecx + edx*4 + 4], eax
mov edx, dword [ebp - 8]
mov dword [edx], 0
mov esp, ebp
pop ebp
ret
Function at 0x1002fd90
Capabilities:
Create thread

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x1009681d
mov eax, dword fs:[0]
push eax
sub esp, 0xc
mov eax, dword [0x100b00f0]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov dword [ebp - 0x10], ecx
mov eax, dword [ebp + 8]
push eax
call fcn.1001a1c0
add esp, 4
push eax
lea ecx, [ebp - 0x14]
push ecx
call fcn.10036460
add esp, 8
mov dword [ebp - 4], 0
mov dword [ebp - 0x18], 0x100364d0
mov edx, dword [ebp - 0x10]
add edx, 4
push edx
push 0
lea ecx, [ebp - 0x14]
call fcn.10001e20
push eax
mov eax, dword [ebp - 0x18]
push eax
push 0
push 0
call fcn.10073092
add esp, 0x18
mov ecx, dword [ebp - 0x10]
mov dword [ecx], eax
mov edx, dword [ebp - 0x10]
cmp dword [edx], 0
je 0x1002fe18
lea ecx, [ebp - 0x14]
call fcn.10024aa0
jmp 0x1002fe29
mov eax, dword [ebp - 0x10]
mov dword [eax + 4], 0
push 6
call fcn.1006c582
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x14]
call fcn.10033790
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
mov esp, ebp
pop ebp
ret 4
Function at 0x1006a670
Capabilities:
Allocate or change rwx memory
Get system information on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x68
xor eax, eax
mov dword [ebp - 0x68], eax
mov dword [ebp - 0x64], eax
mov dword [ebp - 0x60], eax
mov dword [ebp - 0x5c], eax
mov dword [ebp - 0x58], eax
mov dword [ebp - 0x54], eax
mov dword [ebp - 0x50], eax
mov dword [ebp - 0x4c], eax
mov dword [ebp - 0x48], eax
lea ecx, [ebp - 0x68]
push ecx
call dword [sym.imp.KERNEL32.dll_GetSystemInfo]
cmp dword [ebp - 0x4c], 0x1000
jbe 0x1006a6ae
mov edx, dword [ebp - 0x4c]
mov dword [ebp - 0x18], edx
jmp 0x1006a6b5
mov dword [ebp - 0x18], 0x1000
mov eax, dword [ebp - 0x18]
mov dword [ebp - 0x10], eax
mov dword [ebp - 4], 0
mov ecx, dword [ebp - 0x10]
push ecx
mov edx, dword [ebp + 8]
push edx
call fcn.1006a650
add esp, 8
mov dword [ebp - 0x24], eax
mov dword [ebp - 0x14], 0
mov eax, dword [ebp - 0x24]
mov dword [ebp - 0xc], eax
jmp 0x1006a6ed
mov ecx, dword [ebp - 0x14]
add ecx, 1
mov dword [ebp - 0x14], ecx
mov edx, dword [ebp + 0xc]
cmp edx, dword [ebp - 0xc]
jae 0x1006a839
mov eax, dword [ebp - 0xc]
cmp eax, dword [ebp + 0x10]
jae 0x1006a839
push 0x1c
lea ecx, [ebp - 0x44]
push ecx
mov edx, dword [ebp - 0xc]
push edx
call dword [sym.imp.KERNEL32.dll_VirtualQuery]
test eax, eax
jne 0x1006a71e
jmp 0x1006a839
cmp dword [ebp - 0x34], 0x10000
jne 0x1006a7f7
mov eax, dword [ebp - 0x38]
cmp eax, dword [ebp - 0x10]
jb 0x1006a7f7
push 0x40
push 0x3000
mov ecx, dword [ebp - 0x10]
push ecx
mov edx, dword [ebp - 0xc]
push edx
call dword [sym.imp.KERNEL32.dll_VirtualAlloc]
mov dword [ebp - 4], eax
cmp dword [ebp - 4], 0
je 0x1006a7f7
mov eax, dword [ebp - 0x10]
xor edx, edx
mov ecx, 0x74
div ecx
mov dword [ebp - 0x1c], eax
mov edx, 0x74
imul eax, edx, 0
mov ecx, dword [ebp - 4]
mov dword [ecx + eax + 0x6c], 0
mov edx, 0x74
shl edx, 0
add edx, dword [ebp - 4]
mov eax, 0x74
imul ecx, eax, 0
mov eax, dword [ebp - 4]
mov dword [eax + ecx + 0x70], edx
mov dword [ebp - 8], 1
jmp 0x1006a7a7
mov ecx, dword [ebp - 8]
add ecx, 1
mov dword [ebp - 8], ecx
mov edx, dword [ebp - 8]
cmp edx, dword [ebp - 0x1c]
jae 0x1006a7df
mov eax, dword [ebp - 8]
sub eax, 1
imul ecx, eax, 0x74
add ecx, dword [ebp - 4]
imul edx, dword [ebp - 8], 0x74
mov eax, dword [ebp - 4]
mov dword [eax + edx + 0x6c], ecx
mov ecx, dword [ebp - 8]
add ecx, 1
imul edx, ecx, 0x74
add edx, dword [ebp - 4]
imul eax, dword [ebp - 8], 0x74
mov ecx, dword [ebp - 4]
mov dword [ecx + eax + 0x70], edx
jmp 0x1006a79e
mov edx, dword [ebp - 0x1c]
sub edx, 1
imul eax, edx, 0x74
mov ecx, dword [ebp - 4]
mov edx, dword [0x100eea14]
mov dword [ecx + eax + 0x70], edx
jmp 0x1006a839
mov eax, dword [ebp - 0x14]
and eax, reloc.WS2_32.dll_accept
jns 0x1006a806
dec eax
or eax, 0xfffffffe
inc eax
test eax, eax
jne 0x1006a813
mov dword [ebp - 0x20], 0xffffffff
jmp 0x1006a81a
mov dword [ebp - 0x20], 1
mov ecx, dword [ebp - 0x14]
add ecx, 1
imul ecx, dword [ebp - 0x10]
imul ecx, dword [ebp - 0x20]
mov dword [ebp - 0x28], ecx
mov edx, dword [ebp - 0xc]
add edx, dword [ebp - 0x28]
mov dword [ebp - 0xc], edx
jmp 0x1006a6e4
mov eax, dword [ebp - 4]
mov esp, ebp
pop ebp
ret
Function at 0x1006a9b0
Capabilities:
Resume thread
Suspend thread

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x2e0
mov eax, dword [0x100b00f0]
xor eax, ebp
mov dword [ebp - 4], eax
mov eax, dword [ebp + 8]
push eax
push 0
push 0x1fffff
call dword [sym.imp.KERNEL32.dll_OpenThread]
mov dword [ebp - 0x2d4], eax
cmp dword [ebp - 0x2d4], 0xffffffff
je 0x1006aaed
cmp dword [ebp - 0x2d4], 0
je 0x1006aaed
mov ecx, dword [ebp - 0x2d4]
push ecx
call dword [sym.imp.KERNEL32.dll_SuspendThread]
mov dword [ebp - 0x2e0], eax
cmp dword [ebp - 0x2e0], 0xffffffff
je 0x1006aad6
mov dword [ebp - 0x2d0], 0x10001
mov dword [ebp - 0x2d8], 0
lea edx, [ebp - 0x2d0]
push edx
mov eax, dword [ebp - 0x2d4]
push eax
call dword [sym.imp.KERNEL32.dll_GetThreadContext]
test eax, eax
je 0x1006aad4
mov ecx, dword [ebp - 0x218]
mov dword [ebp - 0x2dc], ecx
mov edx, dword [ebp - 0x2dc]
cmp edx, dword [ebp + 0xc]
jb 0x1006aacd
mov eax, dword [ebp + 0xc]
add eax, dword [ebp + 0x10]
cmp dword [ebp - 0x2dc], eax
jae 0x1006aacd
cmp dword [ebp - 0x2d8], 3
jge 0x1006aaa5
mov ecx, dword [ebp - 0x2d4]
push ecx
call dword [sym.imp.KERNEL32.dll_ResumeThread]
push 0x64
call dword [sym.imp.KERNEL32.dll_Sleep]
mov edx, dword [ebp - 0x2d4]
push edx
call dword [sym.imp.KERNEL32.dll_SuspendThread]
mov eax, dword [ebp - 0x2d8]
add eax, 1
mov dword [ebp - 0x2d8], eax
jmp 0x1006aacb
mov ecx, dword [ebp - 0x2d4]
push ecx
call dword [sym.imp.KERNEL32.dll_ResumeThread]
mov edx, dword [ebp - 0x2d4]
push edx
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov dword [ebp - 0x2d4], 0
jmp 0x1006aad4
jmp 0x1006aacf
jmp 0x1006aad4
jmp 0x1006aa28
jmp 0x1006aaed
mov eax, dword [ebp - 0x2d4]
push eax
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov dword [ebp - 0x2d4], 0
mov eax, dword [ebp - 0x2d4]
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.1006ddbb
mov esp, ebp
pop ebp
ret

Function at 0x1006ab10
Capabilities:
Resume thread

Disassembly:
push ebp
mov ebp, esp
sub esp, 8
call dword [sym.imp.KERNEL32.dll_GetCurrentThread]
push eax
call dword [sym.imp.KERNEL32.dll_GetThreadPriority]
mov dword [ebp - 8], eax
push 0xf
call dword [sym.imp.KERNEL32.dll_GetCurrentThread]
push eax
call dword [sym.imp.KERNEL32.dll_SetThreadPriority]
mov dword [ebp - 4], 0
jmp 0x1006ab47
mov eax, dword [ebp - 4]
add eax, 1
mov dword [ebp - 4], eax
mov ecx, dword [ebp - 4]
cmp ecx, dword [0x100eea10]
jae 0x1006ab78
mov edx, dword [ebp - 4]
mov eax, dword [0x100eea30]
mov ecx, dword [eax + edx*4]
push ecx
call dword [sym.imp.KERNEL32.dll_ResumeThread]
mov edx, dword [ebp - 4]
mov eax, dword [0x100eea30]
mov ecx, dword [eax + edx*4]
push ecx
call dword [sym.imp.KERNEL32.dll_CloseHandle]
jmp 0x1006ab3e
mov edx, dword [0x100eea30]
push edx
call fcn.100798f2
add esp, 4
mov dword [0x100eea30], 0
mov dword [0x100eea10], 0
mov eax, dword [ebp - 8]
push eax
call dword [sym.imp.KERNEL32.dll_GetCurrentThread]
push eax
call dword [sym.imp.KERNEL32.dll_SetThreadPriority]
mov esp, ebp
pop ebp
ret
Function at 0x10072c5b
Capabilities:
Parse pe header

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

Function at 0x100828e1
Capabilities:
Allocate thread local storage

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push esi
push 0x1009c9b0
push 0x1009c9a8
push str.FlsAlloc
push 0x1f
call fcn.100826e9
mov esi, eax
add esp, 0x10
test esi, esi
je 0x10082915
push dword [ebp + 8]
mov ecx, esi
call dword [0x1009827c]
call esi
jmp 0x1008291b
call dword [sym.imp.KERNEL32.dll_TlsAlloc]
pop esi
pop ebp
ret 4

Function at 0x1008295f
Capabilities:
Get thread local storage value

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push esi
push 0x1009c9c0
push 0x1009c9b8
push str.FlsGetValue
push 0x21
call fcn.100826e9
mov esi, eax
add esp, 0x10
test esi, esi
je 0x10082996
push dword [ebp + 8]
mov ecx, esi
call dword [0x1009827c]
call esi
pop esi
pop ebp
ret 4
pop esi
pop ebp
jmp dword [sym.imp.KERNEL32.dll_TlsGetValue]

Function at 0x1008299e
Capabilities:
Set thread local storage value

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push esi
push 0x1009c9c8
push 0x1009c9c0
push str.FlsSetValue
push 0x22
call fcn.100826e9
mov esi, eax
add esp, 0x10
test esi, esi
je 0x100829d8
push dword [ebp + 0xc]
mov ecx, esi
push dword [ebp + 8]
call dword [0x1009827c]
call esi
pop esi
pop ebp
ret 8
pop esi
pop ebp
jmp dword [sym.imp.KERNEL32.dll_TlsSetValue]
Function at 0x10088764
Capabilities:
Read file on windows

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
mov eax, 0x101c
call fcn.1006f140
mov eax, dword [0x100b00f0]
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.10086148
pop ecx
mov ecx, dword [ebp + 8]
mov ebx, eax
cmp dword [ecx + 8], 0
jne 0x100887a6
mov eax, dword [ebp + 0xc]
mov edx, dword [ebp + 0x10]
jmp 0x10088902
mov eax, dword [ecx]
sub eax, dword [ecx + 4]
push esi
push edi
push 0
cdq
push 2
push edx
push eax
call fcn.10093440
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 + 0x100ee528]
push dword [eax + edi + 0x24]
push dword [eax + edi + 0x20]
push ebx
call fcn.10089565
mov ecx, dword [esi*4 + 0x100ee528]
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 0x100888fb
cmp eax, dword [ecx + edi + 0x24]
jne 0x100888fb
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 0x100888fb
push dword [ebp - 0x100c]
push 0
push dword [ebp + 0x10]
push dword [ebp + 0xc]
push ebx
call fcn.10089565
add esp, 0x14
test edx, edx
jl 0x100888fb
jg 0x10088871
test eax, eax
jb 0x100888fb
mov ebx, dword [ebp - 0x1018]
mov eax, dword [ebp - 0x1014]
test ebx, ebx
jg 0x100888fb
jl 0x1008888b
cmp dword [ebp - 0x1008], eax
ja 0x100888fb
lea edi, [ebp - 0x1004]
xor edx, edx
add edi, eax
lea ecx, [ebp - 0x1004]
xor esi, esi
cmp dword [ebp - 0x1008], edx
jne 0x100888a9
test ebx, ebx
je 0x100888e2
cmp ecx, edi
jae 0x100888e2
mov al, byte [ecx]
cmp al, 0xd
jne 0x100888c3
lea eax, [edi - 1]
cmp ecx, eax
jae 0x100888cf
cmp byte [ecx + 1], 0xa
jne 0x100888cf
inc ecx
jmp 0x100888cf
movzx eax, al
movsx eax, byte [eax + 0x100b0380]
add ecx, eax
add esi, 1
adc edx, 0
inc ecx
cmp esi, dword [ebp - 0x1008]
jne 0x100888a9
cmp edx, ebx
jne 0x100888a9
lea eax, [ebp - 0x1004]
sub ecx, eax
mov eax, ecx
cdq
add eax, dword [ebp - 0x1010]
adc edx, dword [ebp - 0x101c]
jmp 0x10088900
or edx, 0xffffffff
mov eax, edx
pop edi
pop esi
mov ecx, dword [ebp - 4]
xor ecx, ebp
pop ebx
call fcn.1006ddbb
leave
ret
Function at 0x100889fd
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 + 0x100ee528]
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 0x10088a3d
cmp byte [ebx], 0xa
jne 0x10088a3d
or byte [edi + eax + 0x28], 4
jmp 0x10088a42
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 0x10088b41
mov dl, byte [eax]
cmp dl, 0x1a
je 0x10088b24
inc eax
cmp dl, 0xd
je 0x10088a6e
mov dword [ebp - 8], eax
mov byte [esi], dl
jmp 0x10088a94
cmp eax, ecx
jae 0x10088aa2
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 0x10088a56
jmp 0x10088b41
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 0x10088b1f
cmp dword [ebp - 0x10], 0
je 0x10088b1f
mov ecx, dword [ebp - 0xc]
mov eax, dword [ecx*4 + 0x100ee528]
test byte [eax + edi + 0x28], 0x48
je 0x10088af9
mov dl, byte [ebp - 1]
lea eax, [esi + 1]
mov dword [ebp - 0x14], eax
cmp dl, 0xa
jne 0x10088ae4
mov byte [esi], dl
jmp 0x10088af5
mov byte [esi], 0xd
mov eax, dword [ecx*4 + 0x100ee528]
mov byte [eax + edi + 0x2a], dl
mov eax, dword [ebp - 0x14]
mov esi, eax
jmp 0x10088b41
cmp byte [ebp - 1], 0xa
jne 0x10088b08
cmp esi, ebx
jne 0x10088b08
mov byte [esi], 0xa
jmp 0x10088b40
push 1
push 0xffffffffffffffff
push 0xffffffffffffffff
push dword [ebp + 8]
call fcn.10089583
add esp, 0x10
cmp byte [ebp - 1], 0xa
je 0x10088b41
mov byte [esi], 0xd
jmp 0x10088b40
mov ecx, dword [ebp - 0xc]
mov ecx, dword [ecx*4 + 0x100ee528]
mov al, byte [ecx + edi + 0x28]
test al, 0x40
jne 0x10088b3e
or al, 2
mov byte [ecx + edi + 0x28], al
jmp 0x10088b41
mov byte [esi], dl
inc esi
sub esi, ebx
pop edi
mov eax, esi
pop esi
pop ebx
leave
ret