joyce8/EMBER2024-capa huggingface dataset:
Function at 0x10038b2b
Capabilities:
Extract resource via kernel32 functions
Get disk information

Disassembly:
mov eax, 0x100618c4
call fcn.10060104
sub esp, 0x28
push ebx
push esi
mov byte [ebp - 0x14], cl
mov esi, 0x1007b9d8
mov dword [ebp - 0x2c], 0x6f93
cmp dword [ebp - 0x2c], 0x721c
push edi
mov dword [ebp - 0x10], esp
jle 0x10038bb3
xor ebx, ebx
xor edi, edi
mov dword [ebp - 0x28], edi
xor eax, eax
mov dword [ebp - 0x24], 0x2bb3
mov dword [ebp - 0x1c], eax
mov edi, dword [ebp - 0x1c]
xor ecx, ecx
mov dword [ebp - 0x20], ecx
mov eax, edi
cdq
idiv ecx
mov ecx, esi
or edx, ebx
mov eax, edx
cdq
push edx
push eax
call fcn.1000616a
mov ecx, dword [ebp - 0x20]
inc ecx
mov dword [ebp - 0x20], ecx
cmp ecx, 0x5e84
jl 0x10038b71
mov edi, dword [ebp - 0x28]
add dword [ebp - 0x1c], edi
dec dword [ebp - 0x24]
jne 0x10038b69
inc edi
mov dword [ebp - 0x28], edi
cmp edi, 0x63fe
jl 0x10038b5d
inc ebx
cmp ebx, 0x452c
jl 0x10038b58
cmp byte [ebp - 0x14], 0
je 0x10038cf5
mov dword [ebp - 0x28], 0x491b
cmp dword [ebp - 0x28], 0x4c4c
jle 0x10038bfb
xor edi, edi
xor ebx, ebx
mov eax, ebx
mov ecx, esi
and eax, edi
cdq
push edx
push eax
call fcn.1000616a
inc ebx
cmp ebx, 0x6e75
jl 0x10038bd1
inc edi
cmp edi, 0x912
jl 0x10038bcf
push 0
push 0
call dword [sym.imp.KERNEL32.dll_LoadResource]
and dword [ebp - 4], 0
cmp dword [ebp - 0x28], 0x48ac
jge 0x10038c35
mov edx, str.ziha_qtubmqcp_angbl_zlepneqk_ospizj_jyfig_jzxcfh
mov ecx, esi
call fcn.10008de6
jmp 0x10038c35
or dword [ebp - 4], 0xffffffff
mov dword [ebp - 0x20], 0x6f7d
cmp dword [ebp - 0x20], 0x715e
jle 0x10038c96
xor edi, edi
mov dword [ebp - 0x24], edi
xor ebx, ebx
mov dword [ebp - 0x28], ebx
and dword [ebp - 0x30], 0
mov ecx, ebx
mov ebx, dword [ebp - 0x30]
mov dword [ebp - 0x1c], edi
shl edi, cl
mov eax, edi
mov ecx, esi
xor eax, ebx
cdq
push edx
push eax
call fcn.1000616a
inc ebx
cmp ebx, 0x966
jl 0x10038c61
mov ebx, dword [ebp - 0x28]
mov edi, dword [ebp - 0x24]
inc ebx
mov dword [ebp - 0x28], ebx
cmp ebx, 0x30c7
jl 0x10038c53
inc edi
mov dword [ebp - 0x24], edi
cmp edi, 0x6db2
jl 0x10038c4e
mov edx, dword [ebp + 8]
push 2
pop ebx
mov dword [edx], 0
cmp dword [edx], ebx
jge 0x10038cba
mov edi, dword [ebp + 0x14]
mov ecx, dword [edx]
mov eax, dword [edi]
mov dword [eax + ecx*4], 0x97989736
inc dword [edx]
cmp dword [edx], ebx
jl 0x10038ca9
mov dword [ebp - 4], ebx
cmp dword [ebp - 0x20], 0x6bba
jge 0x10038d07
mov edx, str.puomzb_opzywdw_zxiavia_iodxd_hpxkfgvgi_mihiw
mov ecx, esi
call fcn.10008de6
jmp 0x10038d07
mov byte [ebp - 0x15], 0
cmp byte [ebp - 0x15], 0
je 0x10038d07
push 0
call dword [sym.imp.KERNEL32.dll_GetDriveTypeW]
mov dword [ebp - 4], 4
cmp dword [ebp - 0x2c], 0x6e8f
jge 0x10038d23
mov edx, str.jfpphuwo_wtsdwclj_deam
mov ecx, esi
call fcn.10008de6
mov ecx, dword [ebp - 0xc]
pop edi
pop esi
mov dword fs:[0], ecx
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x10039c21
Capabilities:
Query service status

Disassembly:
mov eax, 0x10061903
call fcn.10060104
sub esp, 0x24
push ebx
push esi
mov dword [ebp - 0x14], 0x1028
mov ebx, ecx
cmp dword [ebp - 0x14], 0x1245
push edi
mov dword [ebp - 0x10], esp
mov dword [ebp - 0x18], ebx
jle 0x10039c70
xor esi, esi
xor edi, edi
mov eax, edi
mov ecx, 0x1007b9d8
and eax, esi
cdq
push edx
push eax
call fcn.1000616a
inc edi
cmp edi, 0x7fc2
jl 0x10039c4d
inc esi
cmp esi, 0x5a43
jl 0x10039c4b
and dword [ebp - 4], 0
cmp dword [ebp - 0x14], 0xc4e
jge 0x10039cab
mov edx, str.qebygw_qxlyc_aqfgsadgc_lry_liejimab_fkd
mov ecx, 0x1007b9d8
call fcn.10008de6
jmp 0x10039cab
or dword [ebp - 4], 0xffffffff
cmp byte [ebp + 8], 0
je 0x10039d4a
mov dword [ebp - 0x14], 0x5502
cmp dword [ebp - 0x14], 0x5531
jle 0x10039d0e
xor esi, esi
xor edi, edi
mov eax, esi
lea ecx, [ebp - 0x30]
cdq
idiv edi
mov eax, edx
cdq
push edx
push eax
call fcn.10001a84
pop ecx
pop ecx
cmp dword [eax + 0x14], 0x10
jb 0x10039ce9
mov eax, dword [eax]
push eax
call fcn.1004823d
pop ecx
push 0
push 1
lea ecx, [ebp - 0x30]
call fcn.10006cdf
inc edi
cmp edi, 0x6bfc
jl 0x10039ccd
inc esi
cmp esi, 0x323e
jl 0x10039ccb
cmp dword [ebp - 0x14], 0x52d4
jge 0x10039d22
push str.mikdh_iauzjst_yvjkig_aezew_avejuwy_atfvfz
call fcn.1004823d
pop ecx
or dword [ebp - 4], 0xffffffff
cmp byte [ebx], 0
je 0x10039d54
push 1
push 0
push 0x729b
push 0x39ca
xor dl, dl
mov ecx, 0x5f23
call fcn.1003c3d6
add esp, 0x10
jmp 0x10039d54
push 0
push 0
call dword [sym.imp.ADVAPI32.dll_QueryServiceStatus]
mov ecx, dword [ebp - 0xc]
pop edi
pop esi
mov dword fs:[0], ecx
pop ebx
mov esp, ebp
pop ebp
ret

Function at 0x1003aff9
Capabilities:
Query environment variable

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
sub esp, 0x20
cmp byte [ebp + 0x10], 0
push esi
push edi
je 0x1003b02a
cmp byte [ebp + 0x14], 0
je 0x1003b01f
mov eax, dword [ebp + 0x18]
mov ecx, dword [ecx]
mov eax, dword [eax]
mov dword [eax + 0xc], ecx
jmp 0x1003b0c0
mov eax, dword [ebp + 8]
and dword [eax], 0
jmp 0x1003b0c0
cmp byte [ebp + 0xc], 0
je 0x1003b0be
mov dword [esp + 0xc], 0xc25
cmp dword [esp + 0xc], 0xd92
jle 0x1003b0a1
xor esi, esi
xor edi, edi
mov eax, edi
lea ecx, [esp + 0x10]
or eax, esi
cdq
push edx
push eax
call fcn.10001a84
pop ecx
pop ecx
cmp dword [eax + 0x14], 0x10
jb 0x1003b064
mov eax, dword [eax]
push eax
call fcn.1004823d
pop ecx
push 0
push 1
lea ecx, [esp + 0x18]
call fcn.10006cdf
inc edi
cmp edi, 0x51de
jl 0x1003b04a
inc esi
cmp esi, 0x6a1a
jl 0x1003b048
push 0
push 0x15f3
push 0x27c
push 0x1488
call dword [sym.imp.GDI32.dll_SetWindowOrgEx]
call dword [sym.imp.KERNEL32.dll_GetEnvironmentStringsW]
cmp dword [esp + 0xc], 0x8ed
jge 0x1003b0c0
push str.epm_oqolwwke_wdtjh_srk_xgmqye_lgdj_dfu_zpmjwey_sxh_malkc_iijm_rdfayr_vyvdrbt_zqdi
call fcn.1004823d
pop ecx
jmp 0x1003b0c0
inc dword [edx]
pop edi
pop esi
mov esp, ebp
pop ebp
ret
Function at 0x1003c6f9
Capabilities:
Get file attributes

Disassembly:
mov eax, 0x100619d4
call fcn.10060104
sub esp, 0x18
mov byte [ebp - 0x14], cl
push ebx
push esi
push edi
mov dword [ebp - 0x10], esp
test cl, cl
je 0x1003c7da
mov dword [ebp - 0x20], 0x6f80
cmp dword [ebp - 0x20], 0x7179
jle 0x1003c791
xor esi, esi
mov dword [ebp - 0x1c], esi
xor edi, edi
mov dword [ebp - 0x18], edi
mov eax, esi
xor ebx, ebx
cdq
idiv edi
mov eax, edx
mov dword [ebp - 0x24], eax
mov esi, eax
mov ecx, ebx
xor edi, edi
sar esi, cl
mov eax, esi
mov ecx, 0x1007b9d8
and eax, edi
cdq
push edx
push eax
call fcn.1000616a
inc edi
cmp edi, 0x68f7
jl 0x1003c745
mov eax, dword [ebp - 0x24]
inc ebx
cmp ebx, 0x4211
jl 0x1003c73d
mov edi, dword [ebp - 0x18]
mov esi, dword [ebp - 0x1c]
inc edi
mov dword [ebp - 0x18], edi
cmp edi, 0x242f
jl 0x1003c731
inc esi
mov dword [ebp - 0x1c], esi
cmp esi, 0x73a8
jl 0x1003c72c
push 0
call dword [sym.imp.KERNEL32.dll_GetFileAttributesA]
mov dword [ebp - 4], 2
cmp dword [ebp - 0x20], 0x6dd2
jge 0x1003c7b0
mov edx, str.uxtnqzhxa_ufhsyao_jmym_ruj_dwnvixq_eefcjdl_sorfwwqav_eydcwqgex_tgbsrxv
mov ecx, 0x1007b9d8
call fcn.10008de6
mov eax, dword [ebp + 0x10]
mov ecx, dword [eax]
mov eax, dword [ebp + 0x24]
mov eax, dword [eax]
or dword [eax + ecx*4], 0xffffffff
jmp 0x1003c7ed
mov eax, dword [ebp + 0xc]
cmp byte [eax], 0
je 0x1003c7ed
push 0x1693
call dword [sym.imp.USER32.dll_IsIconic]
mov ecx, dword [ebp - 0xc]
pop edi
pop esi
mov dword fs:[0], ecx
pop ebx
mov esp, ebp
pop ebp
ret

Function at 0x1003d3a4
Capabilities:
Create process on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x38
mov byte [ebp - 8], dl
push ebx
mov ebx, ecx
mov dword [ebp - 0xc], ebx
push esi
push edi
test dl, dl
je 0x1003d3d4
push 0x1db3
xor esi, esi
push esi
push esi
push esi
push esi
push 0x2447
call dword [sym.imp.SHELL32.dll_ShellExecuteW]
jmp 0x1003d495
mov dword [ebp - 0x10], 0x340c
cmp dword [ebp - 0x10], 0x355b
push 0
pop esi
jle 0x1003d42b
mov edi, esi
mov ebx, esi
mov eax, ebx
lea ecx, [ebp - 0x34]
xor eax, edi
cdq
push edx
push eax
call fcn.10001a84
pop ecx
pop ecx
cmp dword [eax + 0x14], 0x10
jb 0x1003d404
mov eax, dword [eax]
push eax
call fcn.1004823d
pop ecx
push esi
push 1
lea ecx, [ebp - 0x34]
call fcn.10006cdf
inc ebx
cmp ebx, 0x38c2
jl 0x1003d3eb
inc edi
cmp edi, 0x4168
jl 0x1003d3e9
mov ebx, dword [ebp - 0xc]
mov edi, dword [ebp + 0x10]
mov dword [edi], 2
jmp 0x1003d47d
push 3
lea ecx, [ebp - 0x1c]
call fcn.10006705
mov dword [ebp - 0xc], esi
jmp 0x1003d455
mov ecx, dword [ebp - 0xc]
mov eax, dword [ebp - 0x1c]
mov dword [eax + ecx*4], 1
inc dword [ebp - 0xc]
cmp dword [ebp - 0xc], 3
jl 0x1003d445
mov eax, dword [ebp - 0x1c]
mov dword [eax], esi
mov ecx, dword [edi]
mov eax, dword [ebx]
cmp dword [eax + ecx*4], esi
jne 0x1003d473
mov eax, dword [ebp - 0x1c]
inc dword [eax]
cmp dword [eax], 2
jle 0x1003d460
lea ecx, [ebp - 0x1c]
call fcn.10006788
dec dword [edi]
cmp dword [edi], esi
jge 0x1003d436
cmp dword [ebp - 0x10], 0x30e5
jge 0x1003d495
push str.apfhqjpmh_ibcdr_pmtywqvu_ielmja_odlljwwg_fijbl_hmodv_xefmntei_toazmyw_gtnhq_dugedhe_nuf
call fcn.1004823d
pop ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x401b9d
Capabilities:
Parse pe header

Disassembly:
push 0
call dword [sym.imp.KERNEL32.dll_GetModuleHandleW]
test eax, eax
je 0x401bdc
mov ecx, 0x5a4d
cmp word [eax], cx
jne 0x401bdc
mov ecx, dword [eax + 0x3c]
add ecx, eax
cmp dword [ecx], 0x4550
jne 0x401bdc
mov eax, 0x10b
cmp word [ecx + 0x18], ax
jne 0x401bdc
cmp dword [ecx + 0x74], 0xe
jbe 0x401bdc
cmp dword [ecx + 0xe8], 0
setne al
ret
xor al, al
ret
Function at 0x100015a3
Capabilities:
Resolve function by parsing pe exports

Disassembly:
push ebp
mov ebp, esp
mov eax, dword [ebp + 0xc]
xor edx, edx
push ebx
mov ebx, ecx
mov ecx, 0x10181f8c
push esi
push edi
mov dword [ebx + 0x2c], eax
mov dword [ebx], vtable.VthreadContext.0
mov word [ebx + 4], dx
mov dword [ebx + 8], 1
mov dword [ebx + 0xc], edx
mov dword [ebx + 0x10], edx
mov dword [ebx + 0x14], edx
mov dword [ebx + 0x18], edx
mov word [ebx + 0x1c], 0x101
mov byte [ebx + 0x1e], dl
mov dword [ebx + 0x20], edx
mov dword [ebx + 0x24], edx
mov dword [ebx + 0x28], edx
mov dword [ebx + 0x30], edx
mov dword [ebx + 0x34], edx
mov dword [ebx + 0x38], edx
mov dword [ebx + 0x3c], edx
mov dword [ebx + 0x40], edx
mov dword [ebx + 0x44], edx
mov dword [ebx + 0x48], edx
mov dword [ebx + 0x4c], edx
mov dword [ebx + 0x50], edx
mov dword [ebx + 0x54], edx
mov dword [ebx + 0x58], edx
mov dword [ebx + 0x5c], edx
mov dword [ebx + 0x60], ecx
lock inc dword [0x10181f80]
xor eax, eax
mov dword [ebx + 0x64], edx
mov dword [ebx + 0x68], eax
mov dword [ebx + 0x6c], ecx
lock inc dword [0x10181f80]
or dword [ebx + 0x70], 0xffffffff
lea edi, [ebx + 0x9c]
mov eax, dword [ebp + 8]
mov esi, 0x100ee538
mov dword [ebx + 0x78], eax
mov dword [ebx + 0x80], 0x10182a34
mov eax, dword [ebx + 0x2c]
mov dword [ebx + 0x74], edx
mov word [ebx + 0x7c], dx
mov dword [ebx + 0x84], 1
mov dword [ebx + 0x88], edx
mov dword [ebx + 0x8c], edx
mov byte [ebx + 0x90], dl
mov dword [ebx + 0x94], edx
mov byte [ebx + 0x98], dl
movsd dword es:[edi], dword [esi]
movsd dword es:[edi], dword [esi]
movsd dword es:[edi], dword [esi]
movsd dword es:[edi], dword [esi]
test al, 1
je 0x10001686
or eax, 2
mov dword [ebx + 0x2c], eax
mov al, byte [ebx + 0x2c]
and al, 1
mov byte [ebp + 0xf], al
cmp byte [0x10181cd9], dl
jne 0x100016c1
mov esi, 0x10181ce0
push esi
call dword [sym.imp.kernel32.dll_EnterCriticalSection]
cmp byte [0x10181cd9], 0
jne 0x100016ba
mov al, byte [ebp + 0xf]
mov byte [0x10181cda], al
mov byte [0x10181cd9], 1
push esi
call dword [sym.imp.kernel32.dll_LeaveCriticalSection]
mov eax, dword [ebx + 0x2c]
mov ecx, 0x1017e06c
shr eax, 1
and al, 1
movzx eax, al
push eax
call fcn.1004ba3f
pop edi
pop esi
mov eax, ebx
pop ebx
pop ebp
ret 8
Function at 0x10004632
Capabilities:
Set thread local storage value

Disassembly:
push ebp
mov ebp, esp
push ecx
push esi
push dword [ebp + 8]
mov esi, ecx
mov dword [ebp - 4], esi
push dword [esi + 0x58]
call dword [sym.imp.kernel32.dll_TlsSetValue]
test eax, eax
je 0x100046a5
cmp dword [0x10181be0], 0
push ebx
push 0xc
je 0x10004660
pop ecx
call fcn.1004ba3f
jmp 0x10004667
call dword [sym.imp.api_ms_win_crt_heap_l1_1_0.dll_malloc]
pop ecx
mov ebx, eax
test ebx, ebx
je 0x1000469f
push edi
call dword [sym.imp.kernel32.dll_GetCurrentThreadId]
mov ecx, dword [ebp + 8]
mov edi, eax
add esi, 0x40
mov dword [ebx + 8], ecx
push esi
and edi, 0xf
mov dword [ebx + 4], eax
call dword [sym.imp.kernel32.dll_EnterCriticalSection]
mov ecx, dword [ebp - 4]
push esi
mov eax, dword [ecx + edi*4]
mov dword [ebx], eax
mov dword [ecx + edi*4], ebx
call dword [sym.imp.kernel32.dll_LeaveCriticalSection]
pop edi
xor eax, eax
inc eax
pop ebx
jmp 0x100046a7
xor eax, eax
pop esi
leave
ret 4

Function at 0x1000634a
Capabilities:
Get thread local storage value

Disassembly:
push 4
mov eax, 0x100dfa13
call fcn.10001371
mov esi, ecx
mov dword [ebp - 0x10], esi
push dword [0x10174460]
xor ebx, ebx
mov word [esi], bx
call dword [sym.imp.kernel32.dll_TlsGetValue]
or dword [esi + 0xc], 0xffffffff
mov dword [esi + 4], eax
mov eax, dword [ebp + 8]
mov byte [esi + 8], bl
mov dword [esi + 0x10], ebx
mov eax, dword [eax]
mov dword [esi + 0x14], eax
add eax, 0xfffffff4
lock inc dword [eax]
mov al, byte [ebp + 0xc]
mov dword [ebp - 4], ebx
mov byte [esi + 0x18], al
call fcn.100ad21c
push esi
mov ecx, eax
call fcn.100068ef
mov eax, esi
call fcn.1000140a
ret 8
Function at 0x100075c1
Capabilities:
Get thread local storage value

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x100dfc50
mov eax, dword fs:[0]
push eax
mov eax, 0x1024
call fcn.100077c0
mov eax, dword [0x1014d250]
xor eax, ebp
mov dword [ebp - 0x10], eax
push ebx
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov ebx, ecx
mov eax, dword [ebp + 0x14]
mov ecx, dword [ebp + 0x18]
mov dword [ebp - 0x101c], eax
mov dword [ebp - 0x1018], ecx
test eax, eax
je 0x1000761e
push ecx
push eax
lea ecx, [ebp - 0x1010]
call fcn.1004ba3f
pop ecx
pop ecx
test eax, eax
jns 0x10007622
mov byte [ebp - 0x11], 0
mov eax, dword [ebp + 0x10]
movzx eax, ax
cmp eax, dword [0x101827bc]
jg 0x100077a4
push dword [0x10174460]
xor esi, esi
xor edi, edi
call dword [sym.imp.kernel32.dll_TlsGetValue]
test eax, eax
je 0x100077a4
mov eax, dword [ebx]
mov ecx, ebx
call dword [eax + 0x20]
mov dword [ebp - 0x1014], eax
test eax, eax
je 0x1000778c
mov ecx, dword [eax]
cmp dword [ecx - 4], esi
je 0x1000778c
mov edx, dword [0x10177120]
inc edx
mov dword [0x10177120], edx
cmp edx, 0x64
jb 0x10007685
mov ecx, ebx
call fcn.100a5dfa
push 0x38
cmp dword [0x10181be0], esi
je 0x10007697
pop ecx
call fcn.1004ba3f
jmp 0x1000769e
call dword [sym.imp.api_ms_win_crt_heap_l1_1_0.dll_malloc]
pop ecx
mov dword [ebp - 0x1020], eax
xor ebx, ebx
mov dword [ebp - 4], ebx
test eax, eax
je 0x100076d2
mov ecx, dword [ebp - 0x1014]
push ebx
push 0xea60
push ebx
push ebx
push 0x180
push 0x100f0454
push dword [ecx]
mov ecx, eax
call sym.fpsrvutl.dll_Ordinal_800
mov esi, eax
jmp 0x100076d4
mov esi, ebx
or dword [ebp - 4], 0xffffffff
mov ecx, esi
mov eax, dword [esi]
call dword [eax + 0x14]
mov edi, eax
test edi, edi
jne 0x1000778c
cmp dword [esi + 0x1c], 3
je 0x100076f6
mov dword [esi + 0x1c], 2
push dword [ebp + 0x10]
mov ecx, esi
call fcn.1004ba3f
lea ecx, [ebp - 0x1030]
call sym.fpsrvutl.dll_Ordinal_4931
push str.__m__d__H:_M:_S
lea ecx, [ebp - 0x1014]
push ecx
mov ecx, eax
call sym.fpsrvutl.dll_Ordinal_5768
push ebx
lea eax, [ebp - 0x1014]
mov dword [ebp - 4], 1
push eax
mov ecx, esi
call sym.fpsrvutl.dll_Ordinal_3754
or dword [ebp - 4], 0xffffffff
mov ecx, dword [ebp - 0x1014]
lea ecx, [ecx - 0xc]
call sym.fpsrvutl.dll_Ordinal_5727
call dword [sym.imp.kernel32.dll_GetCurrentThreadId]
push eax
mov ecx, esi
call fcn.1004ba3f
push 0x100ef2b8
mov ecx, eax
call sym.fpsrvutl.dll_Ordinal_1561
push dword [ebp - 0x1018]
mov ecx, esi
push dword [ebp - 0x101c]
call fcn.1004ba3f
mov edi, eax
test edi, edi
jne 0x1000778c
push 0x100ef294
mov ecx, esi
call sym.fpsrvutl.dll_Ordinal_1561
mov ecx, esi
call sym.fpsrvutl.dll_Ordinal_5512
test esi, esi
je 0x10007798
mov eax, dword [esi]
mov ecx, esi
push 1
call dword [eax]
test edi, edi
je 0x100077a4
mov eax, dword [edi]
mov ecx, edi
push 1
call dword [eax]
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.100013fd
leave
ret 0x14
Function at 0x1001350e
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0xc
push ebx
mov ebx, dword [ebp + 0xc]
push esi
push edi
mov edi, ecx
xor esi, esi
mov eax, esi
mov dword [ebp + 0xc], eax
cmp dword [edi + 0x34], esi
jne 0x100135f2
test ebx, ebx
je 0x100135f2
cmp dword [edi + 0x28], 0xffffffff
je 0x100135f2
cmp byte [edi + 0x30], al
je 0x10013564
xorps xmm0, xmm0
push 2
movlpd qword [ebp - 0xc], xmm0
push dword [ebp - 8]
push dword [ebp - 0xc]
call fcn.1004ba3f
mov eax, dword [ebp + 0xc]
cmp dword [edi + 0x34], esi
jne 0x100135f2
cmp dword [edi + 0x1c], 3
mov edx, esi
jne 0x1001358f
push esi
lea eax, [ebp + 0xc]
push eax
mov eax, ebx
shr eax, 1
push eax
push dword [ebp + 8]
push dword [edi + 0x28]
call dword [sym.imp.kernel32.dll_WriteConsoleW]
mov edx, eax
mov eax, dword [ebp + 0xc]
test edx, edx
je 0x1001358f
add eax, eax
jmp 0x100135e7
mov ecx, ebx
mov dword [ebp - 8], esi
mov dword [ebp - 4], ecx
jmp 0x100135d4
mov esi, 0x100000
lea eax, [ebp - 8]
push 0
cmp ecx, esi
push eax
cmovb esi, ecx
push esi
push dword [ebp + 8]
push dword [edi + 0x28]
call dword [sym.imp.kernel32.dll_WriteFile]
mov ecx, dword [ebp - 8]
mov edx, eax
mov eax, dword [ebp + 0xc]
add dword [ebp + 8], ecx
add eax, ecx
sub dword [ebp - 4], ecx
mov dword [ebp + 0xc], eax
cmp ecx, esi
jb 0x100135d8
test edx, edx
je 0x100135dc
mov ecx, dword [ebp - 4]
cmp eax, ebx
jb 0x10013599
test edx, edx
jne 0x100135e7
call dword [sym.imp.kernel32.dll_GetLastError]
mov dword [edi + 0x34], eax
xor eax, eax
cmp eax, ebx
jae 0x100135f2
mov dword [edi + 0x34], 0x70
pop edi
pop esi
pop ebx
leave
ret 8

Function at 0x1002d556
Capabilities:
Get thread local storage value

Disassembly:
push ebp
mov ebp, esp
push esi
mov esi, ecx
push edi
mov edx, dword [esi + 0x20c]
mov eax, edx
cmp dword [ebp + 8], edx
mov edi, dword [esi]
cmova eax, dword [ebp + 8]
add eax, edx
mov dword [esi + 0x20c], eax
jns 0x1002d595
push dword [0x10174460]
call dword [sym.imp.kernel32.dll_TlsGetValue]
push dword [esi + 0x20c]
call sym.fpsrvutl.dll_Ordinal_2749
push eax
call fcn.1004ba3f
mov ecx, dword [esi + 0x20c]
inc ecx
call fcn.1003b713
mov edx, dword [esi + 0x20c]
mov ecx, dword [esi + 0x208]
inc edx
cmp edx, ecx
mov dword [esi], eax
cmovae edx, ecx
push edx
push edi
push eax
call sub.VCRUNTIME140.dll_memcpy
lea eax, [esi + 4]
add esp, 0xc
cmp edi, eax
je 0x1002d5ce
push edi
call fcn.1004ba3f
pop ecx
pop edi
pop esi
pop ebp
ret 4
Function at 0x10030740
Capabilities:
Get thread local storage value

Disassembly:
push ebp
mov ebp, esp
push esi
mov esi, ecx
push edi
mov edx, dword [esi + 0x40c]
mov eax, edx
cmp dword [ebp + 8], edx
mov edi, dword [esi]
cmova eax, dword [ebp + 8]
add eax, edx
mov dword [esi + 0x40c], eax
add eax, eax
jns 0x10030781
push dword [0x10174460]
call dword [sym.imp.kernel32.dll_TlsGetValue]
push dword [esi + 0x40c]
call sym.fpsrvutl.dll_Ordinal_2749
push eax
call fcn.1004ba3f
mov eax, dword [esi + 0x40c]
xor ecx, ecx
push 2
inc eax
pop edx
mul edx
seto cl
neg ecx
or ecx, eax
call fcn.1003b713
mov edx, dword [esi + 0x40c]
mov ecx, dword [esi + 0x408]
inc edx
cmp edx, ecx
mov dword [esi], eax
cmovae edx, ecx
add edx, edx
push edx
push edi
push eax
call sub.VCRUNTIME140.dll_memcpy
lea eax, [esi + 4]
add esp, 0xc
cmp edi, eax
je 0x100307ca
push edi
call fcn.1004ba3f
pop ecx
pop edi
pop esi
pop ebp
ret 4

Function at 0x10037cb2
Capabilities:
Get hostname

Disassembly:
push 0x94
mov eax, 0x100e23d8
call fcn.10001b03
mov esi, ecx
push 0x80
lea eax, [ebp - 0x94]
xor ebx, ebx
push eax
call dword [sym.imp.WS2_32.dll_gethostname]
test eax, eax
je 0x10037ce2
xor eax, eax
jmp 0x10037ddc
lea eax, [ebp - 0x94]
push eax
lea ecx, [ebp - 0x98]
call fcn.1004ba3f
mov dword [ebp - 4], ebx
mov ecx, dword [ebp - 0x98]
push 0x2e
lea ecx, [ecx - 0xc]
call fcn.1004ba3f
cmp eax, 0xffffffff
je 0x10037d18
push eax
lea ecx, [ebp - 0x98]
call fcn.1004ba3f
lea eax, [ebp - 0x98]
mov ecx, esi
push eax
call fcn.1004ba3f
lea eax, [ebp - 0x98]
lea edi, [esi + 4]
push eax
mov ecx, edi
call fcn.1004ba3f
push 0x100ee700
push str.CheckedHostName
push str.MicrosoftShared_ToolsWeb_Server_Extensions
push 0x80000002
push 1
lea eax, [ebp - 0x9c]
mov byte [esi + 0xc], bl
push eax
call sym.fpsrvutl.dll_Ordinal_1532
push 1
mov byte [ebp - 4], 1
lea ecx, [ebp - 0x9c]
push dword [esi]
call fcn.1004ba3f
test eax, eax
je 0x10037d79
mov byte [esi + 0xc], 1
jmp 0x10037dbc
push 0x100ee700
push str.HostOverride
push str.MicrosoftShared_ToolsWeb_Server_Extensions
push 0x80000002
push 1
lea eax, [ebp - 0xa0]
push eax
call sym.fpsrvutl.dll_Ordinal_1532
mov esi, dword [ebp - 0xa0]
cmp dword [esi - 4], ebx
je 0x10037db4
lea eax, [ebp - 0xa0]
mov ecx, edi
push eax
call fcn.1004ba3f
lea ecx, [esi - 0xc]
call sym.fpsrvutl.dll_Ordinal_5727
mov ecx, dword [ebp - 0x9c]
mov esi, dword [edi]
add ecx, 0xfffffff4
call sym.fpsrvutl.dll_Ordinal_5727
mov ecx, dword [ebp - 0x98]
add ecx, 0xfffffff4
call sym.fpsrvutl.dll_Ordinal_5727
mov eax, esi
call fcn.10001b39
ret
Function at 0x10037f21
Capabilities:
Get file version info

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x120
mov eax, dword [0x1014d250]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
push esi
mov esi, dword [ebp + 0xc]
xor edx, edx
push edi
mov edi, dword [ebp + 8]
test edi, edi
jne 0x10037f5a
test esi, esi
jne 0x10037f60
xor al, al
mov ecx, dword [ebp - 4]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.100013fd
leave
ret 8
mov dword [edi], edx
test esi, esi
je 0x10037f62
mov dword [esi], edx
lea eax, [ebp - 0x11c]
push eax
lea eax, [ebp - 0x10c]
push eax
push 0x105
push edx
push dword [ecx]
push edx
call dword [sym.imp.kernel32.dll_SearchPathA]
test eax, eax
je 0x10037f47
lea eax, [ebp - 0x114]
push eax
lea eax, [ebp - 0x10c]
push eax
call dword [sym.imp.VERSION.dll_GetFileVersionInfoSizeA]
mov ebx, eax
test ebx, ebx
je 0x10037f47
mov ecx, ebx
call fcn.1003b713
push eax
push ebx
push dword [ebp - 0x114]
mov dword [ebp - 0x110], eax
lea eax, [ebp - 0x10c]
push eax
call dword [sym.imp.VERSION.dll_GetFileVersionInfoA]
mov ebx, eax
test ebx, ebx
je 0x10038002
lea eax, [ebp - 0x120]
push eax
lea eax, [ebp - 0x118]
push eax
push 0x100f0440
push dword [ebp - 0x110]
call dword [sym.imp.VERSION.dll_VerQueryValueA]
mov ebx, eax
test ebx, ebx
je 0x10038002
mov ecx, dword [ebp - 0x118]
test edi, edi
je 0x10037ff9
mov eax, dword [ecx + 8]
mov dword [edi], eax
test esi, esi
je 0x10038002
mov eax, dword [ecx + 0xc]
mov dword [esi], eax
push dword [ebp - 0x110]
call fcn.1004ba3f
pop ecx
mov al, bl
jmp 0x10037f49