joyce8/EMBER2024-capa huggingface dataset:
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 sym.fpsrvutl.dll_Ordinal_2082
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 sym.fpsrvutl.dll_Ordinal_2082
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 sym.fpsrvutl.dll_Ordinal_2082
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 sym.fpsrvutl.dll_Ordinal_2082
push 0x100ef2b8
mov ecx, eax
call sym.fpsrvutl.dll_Ordinal_1561
push dword [ebp - 0x1018]
mov ecx, esi
push dword [ebp - 0x101c]
call sym.fpsrvutl.dll_Ordinal_2082
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 sym.fpsrvutl.dll_Ordinal_2082
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 0x1001b0b0
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x54
pushal
call 0x1001b0bf
pop dword [ebp - 0x44]
mov eax, 0x27beb507
add eax, 0xe842fbb8
sub dword [ebp - 0x44], eax
push 0x40
push 0x1000
push 0x7a073
push 0
mov eax, 0x4ceeffeb
add eax, 0xc31fe245
add eax, dword [ebp - 0x44]
call dword [eax]
mov ecx, 0xf6abde4
add ecx, 0xf09581b6
mov ebx, eax
mov esi, 0x10193200
add esi, dword [ebp - 0x44]
mov edi, 0x43eba5d
sub edi, 0x68c048a
add dword [ebp - 0x30], ecx
mov edx, dword [esi]
add dword [ebp - 0x1c], 0x16ee0cc5
xor edx, edi
sub dword [ebp - 8], ecx
mov dword [ebx], edx
add dword [ebp - 0x30], 0x62e66cff
add ebx, 0x8b09c97f
sub ebx, 0x8b09c97b
add esi, 4
loop 0x1001b118
add eax, 0x24977487
add eax, 0xdb697cb4
xor ebx, ebx
add ebx, eax
add eax, 0xc3d6db7f
add eax, 0x3c292486
mov ecx, 0x2ca71b2a
sub ecx, 0x1ca71b2a
add ecx, dword [ebp - 0x44]
call ebx
leave
ret
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 sym.fpsrvutl.dll_Ordinal_2082
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 sym.fpsrvutl.dll_Ordinal_2082
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 sym.fpsrvutl.dll_Ordinal_2082
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 sym.fpsrvutl.dll_Ordinal_2082
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 sym.fpsrvutl.dll_Ordinal_2082
mov dword [ebp - 4], ebx
mov ecx, dword [ebp - 0x98]
push 0x2e
lea ecx, [ecx - 0xc]
call sym.fpsrvutl.dll_Ordinal_2082
cmp eax, 0xffffffff
je 0x10037d18
push eax
lea ecx, [ebp - 0x98]
call sym.fpsrvutl.dll_Ordinal_2082
lea eax, [ebp - 0x98]
mov ecx, esi
push eax
call sym.fpsrvutl.dll_Ordinal_2082
lea eax, [ebp - 0x98]
lea edi, [esi + 4]
push eax
mov ecx, edi
call sym.fpsrvutl.dll_Ordinal_2082
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 sym.fpsrvutl.dll_Ordinal_2082
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 sym.fpsrvutl.dll_Ordinal_2082
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 sym.fpsrvutl.dll_Ordinal_2082
pop ecx
mov al, bl
jmp 0x10037f49
Function at 0x10038bed
Capabilities:
Get common file path

Disassembly:
push 0x234
mov eax, 0x100e25ea
call fcn.10001b03
mov esi, dword [ebp + 8]
xor ebx, ebx
mov edi, dword [ebp + 0xc]
mov dword [ebp - 0x230], esi
mov dword [ebp - 0x22c], ebx
mov dword [esi], 0x10181f8c
lock inc dword [0x10181f80]
lea eax, [ebp - 0x21c]
mov dword [ebp - 4], ebx
push eax
push 0x1a
push ebx
mov dword [ebp - 0x22c], 1
mov dword [ebp - 0x21c], ebx
call dword [sym.imp.SHELL32.dll_SHGetSpecialFolderLocation]
test eax, eax
js 0x10038d2b
xor eax, eax
mov word [ebp - 0x218], ax
lea eax, [ebp - 0x218]
push eax
push dword [ebp - 0x21c]
call dword [sym.imp.SHELL32.dll_SHGetPathFromIDListW]
test eax, eax
je 0x10038cef
push 0x100f9a9c
lea ecx, [ebp - 0x228]
call sym.fpsrvutl.dll_Ordinal_150
lea eax, [ebp - 0x218]
mov dword [ebp - 4], 1
push eax
lea ecx, [ebp - 0x224]
call sym.fpsrvutl.dll_Ordinal_150
push 0x100ee700
lea eax, [ebp - 0x228]
mov byte [ebp - 4], 2
push eax
lea eax, [ebp - 0x224]
push eax
lea ecx, [ebp - 0x240]
call sym.fpsrvutl.dll_Ordinal_3585
mov ecx, dword [ebp - 0x224]
lea ecx, [ecx - 0xc]
call sym.fpsrvutl.dll_Ordinal_5727
mov byte [ebp - 4], bl
mov ecx, dword [ebp - 0x228]
lea ecx, [ecx - 0xc]
call sym.fpsrvutl.dll_Ordinal_5727
lea eax, [ebp - 0x240]
mov ecx, esi
push eax
call sym.fpsrvutl.dll_Ordinal_2082
lea ecx, [ebp - 0x240]
call sym.fpsrvutl.dll_Ordinal_974
lea eax, [ebp - 0x220]
push eax
call dword [sym.imp.SHELL32.dll_SHGetMalloc]
test eax, eax
js 0x10038d2b
mov ecx, dword [ebp - 0x220]
test ecx, ecx
je 0x10038d2b
cmp dword [ebp - 0x21c], 0
je 0x10038d25
push dword [ebp - 0x21c]
mov eax, dword [ecx]
push ecx
call dword [eax + 0x14]
mov ecx, dword [ebp - 0x220]
mov eax, dword [ecx]
push ecx
call dword [eax + 8]
mov eax, dword [esi]
cmp dword [eax - 4], ebx
jne 0x10038d55
push edi
lea eax, [ebp - 0x220]
push eax
call sym.fpsrvutl.dll_Ordinal_5240
push eax
mov ecx, esi
call sym.fpsrvutl.dll_Ordinal_2082
mov ecx, dword [ebp - 0x220]
add ecx, 0xfffffff4
call sym.fpsrvutl.dll_Ordinal_5727
mov eax, esi
call fcn.10001b39
ret 8

Function at 0x1003926d
Capabilities:
Create directory

Disassembly:
push 0x218
mov eax, 0x100e261d
call fcn.10001b03
mov edi, ecx
call sym.fpsrvutl.dll_Ordinal_1195
push edi
lea ecx, [ebp - 0x220]
call sym.fpsrvutl.dll_Ordinal_2082
xor esi, esi
mov ecx, 0x1017e06c
mov dword [ebp - 4], esi
call sym.fpsrvutl.dll_Ordinal_2694
push esi
push dword [ebp - 0x20]
cmp eax, 2
jne 0x100392af
call dword [sym.imp.kernel32.dll_CreateDirectoryW]
jmp 0x100392b5
call dword [sym.imp.kernel32.dll_CreateDirectoryA]
test eax, eax
jne 0x100392c0
mov esi, 0x20003
jmp 0x100392f0
cmp byte [ebp + 8], 0
je 0x10039304
push 2
pop edx
lea ecx, [ebp - 0x220]
call fcn.100a1aa9
test eax, eax
jne 0x10039304
mov ecx, edi
call sym.fpsrvutl.dll_Ordinal_2142
test eax, eax
je 0x100392eb
mov edx, dword [eax]
mov ecx, eax
push 1
call dword [edx]
mov esi, 0x20051
mov edi, dword [edi]
call dword [sym.imp.kernel32.dll_GetLastError]
push edi
mov edx, eax
mov ecx, esi
call fcn.1006a99f
mov esi, eax
lea ecx, [ebp - 0x220]
call fcn.100058ed
mov eax, esi
call fcn.10001b39
ret 4
Function at 0x1003b713
Capabilities:
Get thread local storage value

Disassembly:
cmp dword [0x10181be0], 0
jne sym.fpsrvutl.dll_Ordinal_5011
push ecx
call dword [sym.imp.api_ms_win_crt_heap_l1_1_0.dll_malloc]
pop ecx
ret

Function at 0x1003eb38
Capabilities:
Identify system language via api

Disassembly:
push ebp
mov ebp, esp
push ebx
push esi
mov esi, ecx
xor ebx, ebx
mov dword [esi], ebx
cmp byte [ebp + 8], bl
je 0x1003eb6d
push 4
cmp dword [0x10181be0], ebx
je 0x1003eb5a
pop ecx
call sym.fpsrvutl.dll_Ordinal_2082
jmp 0x1003eb61
call dword [sym.imp.api_ms_win_crt_heap_l1_1_0.dll_malloc]
pop ecx
test eax, eax
je 0x1003eb6d
mov dword [eax], vtable.VmsoApi.0
jmp 0x1003eb6f
mov eax, ebx
mov dword [esi + 4], eax
mov al, byte [ebp + 8]
mov byte [esi + 8], al
mov eax, dword [ebp + 0xc]
mov dword [esi + 0xc], eax
test eax, eax
jne 0x1003eb8e
call dword [sym.imp.kernel32.dll_GetUserDefaultLangID]
movzx eax, ax
mov dword [esi + 0xc], eax
cmp byte [0x10180b48], bl
jne 0x1003ebbc
mov ecx, 0x1017df40
call sym.fpsrvutl.dll_Ordinal_2082
test al, al
je 0x1003ebaf
call fcn.100b3521
test eax, eax
je 0x1003ebaf
mov bl, 1
mov byte [0x10180b49], bl
mov byte [0x10180b48], 1
mov eax, esi
pop esi
pop ebx
pop ebp
ret 8
Function at 0x10042abc
Capabilities:
Extract resource via kernel32 functions

Disassembly:
push esi
push edi
push 0x10
push 1
mov edi, sym.fpsrvutl.dll_Ordinal_53
push edi
call dword [sym.imp.kernel32.dll_FindResourceW]
mov esi, eax
test esi, esi
je 0x10042b01
push esi
push edi
call dword [sym.imp.kernel32.dll_SizeofResource]
test eax, eax
je 0x10042b01
push esi
push edi
call dword [sym.imp.kernel32.dll_LoadResource]
test eax, eax
je 0x10042b01
cmp word [eax + 2], 0
je 0x10042b01
cmp dword [eax + 0x28], 0xfeef04bd
jne 0x10042b01
add eax, 0x30
jmp 0x10042b06
mov eax, 0x100eefec
pop edi
pop esi
ret

Function at 0x10051777
Capabilities:
Read file on windows

Disassembly:
push ebp
mov ebp, esp
pop ebp
jmp sym.fpsrvutl.dll_Ordinal_2016

Function at 0x10051780
Capabilities:
Read file on windows

Disassembly:
push ebp
mov ebp, esp
pop ebp
jmp sym.fpsrvutl.dll_Ordinal_4301

Function at 0x10051789
Capabilities:
Read file on windows

Disassembly:
push ebp
mov ebp, esp
pop ebp
jmp sym.fpsrvutl.dll_Ordinal_783

Function at 0x10051792
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
pop ebp
jmp sym.fpsrvutl.dll_Ordinal_3995

Function at 0x1005179b
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
pop ebp
jmp sym.fpsrvutl.dll_Ordinal_1161

Function at 0x100517a4
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
pop ebp
jmp sym.fpsrvutl.dll_Ordinal_2453

Function at 0x10052259
Capabilities:
Encode data using xor

Disassembly:
push esi
mov esi, dword [ecx + 8]
mov edx, esi
push edi
lea edi, [ecx + 0xc]
mov ecx, esi
shr ecx, 2
test ecx, ecx
je 0x1005227b
mov eax, dword [edi]
add edi, 4
rol edx, 5
xor edx, eax
sub ecx, 1
jne 0x1005226c
and esi, 3
je 0x10052295
xor ecx, ecx
movsx eax, byte [edi]
shl ecx, 8
or ecx, eax
inc edi
sub esi, 1
jne 0x10052282
rol edx, 5
xor edx, ecx
pop edi
mov eax, edx
pop esi
ret

Function at 0x10057e7c
Capabilities:
Read file on windows

Disassembly:
push ebp
mov ebp, esp
push dword [ecx + 4]
push 1
push 1
push dword [ebp + 8]
call dword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll_fread]
add esp, 0x10
dec eax
neg eax
sbb eax, eax
inc eax
pop ebp
ret 4

Function at 0x10057e9c
Capabilities:
Read file on windows

Disassembly:
push ebp
mov ebp, esp
push dword [ecx + 4]
push 1
push 2
push dword [ebp + 8]
call dword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll_fread]
add esp, 0x10
dec eax
neg eax
sbb eax, eax
inc eax
pop ebp
ret 4

Function at 0x10057ebc
Capabilities:
Read file on windows

Disassembly:
push ebp
mov ebp, esp
push dword [ecx + 4]
push 1
push 4
push dword [ebp + 8]
call dword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll_fread]
add esp, 0x10
dec eax
neg eax
sbb eax, eax
inc eax
pop ebp
ret 4

Function at 0x10057edc
Capabilities:
Read file on windows

Disassembly:
push ebp
mov ebp, esp
push dword [ecx + 4]
push 1
push 8
push dword [ebp + 8]
call dword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll_fread]
add esp, 0x10
dec eax
neg eax
sbb eax, eax
inc eax
pop ebp
ret 4
Function at 0x10057f65
Capabilities:
Read file on windows

Disassembly:
push ebp
mov ebp, esp
push dword [ecx + 4]
push dword [ebp + 0xc]
push 8
push dword [ebp + 8]
call dword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll_fread]
sub eax, dword [ebp + 0xc]
add esp, 0x10
neg eax
sbb eax, eax
inc eax
pop ebp
ret 8

Function at 0x10057f88
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
push dword [ecx + 4]
lea eax, [ebp + 8]
push 1
push 1
push eax
call dword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll_fwrite]
add esp, 0x10
dec eax
neg eax
sbb eax, eax
inc eax
pop ebp
ret 4

Function at 0x10057fa9
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
push dword [ecx + 4]
lea eax, [ebp + 8]
push 1
push 2
push eax
call dword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll_fwrite]
add esp, 0x10
dec eax
neg eax
sbb eax, eax
inc eax
pop ebp
ret 4

Function at 0x10057fca
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
push dword [ecx + 4]
lea eax, [ebp + 8]
push 1
push 4
push eax
call dword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll_fwrite]
add esp, 0x10
dec eax
neg eax
sbb eax, eax
inc eax
pop ebp
ret 4

Function at 0x10057feb
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
push dword [ecx + 4]
lea eax, [ebp + 8]
push 1
push 8
push eax
call dword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll_fwrite]
add esp, 0x10
dec eax
neg eax
sbb eax, eax
inc eax
pop ebp
ret 8

Function at 0x10058075
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
push dword [ecx + 4]
push dword [ebp + 0xc]
push 8
push dword [ebp + 8]
call dword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll_fwrite]
sub eax, dword [ebp + 0xc]
add esp, 0x10
neg eax
sbb eax, eax
inc eax
pop ebp
ret 8
Function at 0x10064a48
Capabilities:
Get domain controller name

Disassembly:
push 8
mov eax, 0x100e3850
call fcn.10001371
mov ebx, 0x1017e06c
mov ecx, ebx
call sym.fpsrvutl.dll_Ordinal_2694
cmp eax, 2
je 0x10064a6c
xor eax, eax
jmp 0x10064b4f
mov edi, dword [ebp + 8]
lea ecx, [ebp - 0x14]
push edi
xor esi, esi
call sym.fpsrvutl.dll_Ordinal_150
mov dword [ebp - 4], esi
mov dword [ebp - 0x10], esi
call fcn.100a49fe
push dword [ebp + 0xc]
lea ecx, [ebp - 0x14]
push ecx
mov ecx, eax
call sym.fpsrvutl.dll_Ordinal_2082
test al, al
jne 0x10064b42
mov ecx, ebx
call sym.fpsrvutl.dll_Ordinal_869
cmp eax, 3
sete cl
test edi, edi
je 0x10064afd
cmp word [edi], si
je 0x10064afd
mov eax, dword [ebp + 0x10]
test eax, eax
jne 0x10064aca
test cl, cl
je 0x10064ac3
call fcn.100a5159
jmp 0x10064ac8
call sym.fpsrvutl.dll_Ordinal_4523
mov eax, dword [eax]
push edi
push eax
call sym.fpsrvutl.dll_Ordinal_2082
test eax, eax
je 0x10064afd
lea eax, [ebp - 0x10]
push eax
push 0x40010010
push esi
push esi
push edi
push esi
call dword [sym.imp.NETAPI32.dll_DsGetDcNameW]
mov esi, eax
test esi, esi
je 0x10064afd
mov ecx, dword [ebp + 0xc]
push 0x100ee700
call sym.fpsrvutl.dll_Ordinal_2082
jmp 0x10064b2b
cmp dword [ebp - 0x10], 0
je 0x10064b18
call fcn.100a49fe
mov ecx, dword [ebp - 0x10]
push dword [ecx]
lea ecx, [ebp - 0x14]
push ecx
mov ecx, eax
call fcn.100647d6
call fcn.100a49fe
push dword [ebp + 0xc]
lea edx, [ebp - 0x14]
mov ecx, eax
push edx
call sym.fpsrvutl.dll_Ordinal_2082
cmp dword [ebp - 0x10], 0
je 0x10064b42
mov ecx, ebx
call sym.fpsrvutl.dll_Ordinal_3269
push dword [ebp - 0x10]
mov ecx, eax
call sym.fpsrvutl.dll_Ordinal_2082
mov ecx, dword [ebp - 0x14]
add ecx, 0xfffffff4
call sym.fpsrvutl.dll_Ordinal_5727
mov eax, esi
call fcn.1000140a
ret 0xc

Function at 0x10065b23
Capabilities:
Get thread local storage value
Terminate process

Disassembly:
push ebp
mov ebp, esp
push dword [0x10174460]
call dword [sym.imp.kernel32.dll_TlsGetValue]
test eax, eax
je 0x10065b3e
mov ecx, eax
pop ebp
jmp sym.fpsrvutl.dll_Ordinal_2134
pop ebp
ret 0x18

Function at 0x10065b42
Capabilities:
Get thread local storage value

Disassembly:
push ebp
mov ebp, esp
push dword [0x10174460]
call dword [sym.imp.kernel32.dll_TlsGetValue]
test eax, eax
je 0x10065b5f
mov ecx, dword [eax]
mov edx, dword [ecx + 0xc]
mov ecx, eax
pop ebp
jmp edx
xor eax, eax
pop ebp
ret 4