joyce8/EMBER2024-capa huggingface dataset:
Function at 0x1009f4fa
Capabilities:
Get geographical location

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
and esp, 0xfffffff8
sub esp, 0xc
push ebx
mov eax, ecx
mov dword [esp + 0xc], edx
mov ebx, eax
mov dword [esp + 4], eax
push esi
and ebx, 0x3ff
push edi
or ebx, 0x400
call dword [sym.imp.api_ms_win_core_errorhandling_l1_1_0.dll_GetLastError]
mov ecx, dword [0x1010e2c0]
mov esi, eax
cmp ecx, 0xffffffff
je 0x1009f559
call fcn.10029fa0
mov edi, eax
test edi, edi
je 0x1009f553
cmp edi, 0xffffffff
jne 0x1009f5b9
push esi
call dword [sym.imp.api_ms_win_core_errorhandling_l1_1_0.dll_SetLastError]
xor eax, eax
mov edi, eax
call sym.ucrtbase.dll_abort
mov ecx, dword [0x1010e2c0]
or edx, 0xffffffff
call fcn.10032a89
test eax, eax
je 0x1009f543
push 0x364
push 2
call sym.ucrtbase.dll__calloc_base
pop ecx
mov edi, eax
pop ecx
mov ecx, dword [0x1010e2c0]
test edi, edi
jne 0x1009f58f
xor edx, edx
call fcn.10032a89
push edi
call sym.ucrtbase.dll__free_base
pop ecx
jmp 0x1009f543
mov edx, edi
call fcn.10032a89
test eax, eax
jne 0x1009f5a9
mov ecx, dword [0x1010e2c0]
xor edx, edx
call fcn.10032a89
jmp 0x1009f586
mov ecx, edi
call fcn.10031ad6
xor eax, eax
push eax
call sym.ucrtbase.dll__free_base
pop ecx
test edi, edi
je 0x1009f543
mov ecx, dword [0x1010e2c4]
call fcn.10029fa0
imul eax, eax, 0x364
push esi
add edi, eax
call dword [sym.imp.api_ms_win_core_errorhandling_l1_1_0.dll_SetLastError]
test edi, edi
je 0x1009f54e
push 2
lea eax, [esp + 0x14]
push eax
push 0x20000001
push ebx
call dword [sym.imp.api_ms_win_core_localization_l1_2_0.dll_GetLocaleInfoW]
test eax, eax
jne 0x1009f5fa
xor eax, eax
jmp 0x1009f630
mov eax, dword [esp + 0xc]
cmp eax, dword [esp + 0x10]
je 0x1009f62d
cmp dword [esp + 0x14], 0
je 0x1009f62d
mov ecx, dword [edi + 0x50]
mov esi, ecx
xor edi, edi
lea edx, [esi + 2]
mov ax, word [esi]
add esi, 2
cmp ax, di
jne 0x1009f615
sub esi, edx
sar esi, 1
call fcn.1009ed75
cmp eax, esi
je 0x1009f5f6
xor eax, eax
inc eax
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x1009f69d
Capabilities:
Get geographical location

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x18
mov eax, dword [0x1010e2b0]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
mov ebx, dword [ebp + 8]
push esi
push edi
mov dword [ebp - 0x18], edx
mov esi, ecx
call fcn.1005de8f
add eax, 0x50
lea edi, [ebp - 0x10]
mov dword [ebp - 0x14], eax
xor eax, eax
stosd dword es:[edi], eax
stosd dword es:[edi], eax
stosd dword es:[edi], eax
call fcn.1005de8f
lea ecx, [ebp - 0x10]
xor edx, edx
mov dword [eax + 0x34c], ecx
lea ecx, [esi + 0x80]
mov eax, dword [ebp - 0x14]
mov dword [eax], esi
lea edi, [eax + 4]
mov dword [edi], ecx
test ecx, ecx
je 0x1009f70a
cmp word [ecx], dx
je 0x1009f70a
push edi
push 0x16
pop edx
mov ecx, 0x100018e0
call fcn.1009f637
mov eax, dword [ebp - 0x14]
xor edx, edx
pop ecx
mov dword [ebp - 0x10], edx
mov eax, dword [eax]
test eax, eax
je 0x1009f771
cmp word [eax], dx
je 0x1009f771
mov eax, dword [edi]
test eax, eax
je 0x1009f72d
cmp word [eax], dx
je 0x1009f72d
lea ecx, [ebp - 0x10]
call fcn.1009ec6a
jmp 0x1009f735
lea ecx, [ebp - 0x10]
call fcn.1009ed0e
cmp dword [ebp - 0x10], 0
jne 0x1009f7a3
push dword [ebp - 0x14]
mov ecx, 0x100015d0
push 0x40
pop edx
call fcn.1009f637
pop ecx
test al, al
je 0x1009f799
mov eax, dword [edi]
test eax, eax
je 0x1009f767
xor ecx, ecx
cmp word [eax], cx
je 0x1009f767
lea ecx, [ebp - 0x10]
call fcn.1009ec6a
jmp 0x1009f799
lea ecx, [ebp - 0x10]
call fcn.1009ed0e
jmp 0x1009f799
mov eax, dword [edi]
test eax, eax
je 0x1009f786
cmp word [eax], dx
je 0x1009f786
lea ecx, [ebp - 0x10]
call fcn.1009ec22
jmp 0x1009f799
mov dword [ebp - 0x10], 0x104
call dword [sym.imp.api_ms_win_core_localization_l1_2_0.dll_GetUserDefaultLCID]
mov dword [ebp - 8], eax
mov dword [ebp - 0xc], eax
cmp dword [ebp - 0x10], 0
je 0x1009f85b
lea ecx, [esi + 0x100]
neg esi
lea edx, [ebp - 0x10]
sbb esi, esi
and ecx, esi
call fcn.1009f3ec
mov esi, eax
test esi, esi
je 0x1009f85b
movzx ecx, si
push ecx
call dword [sym.imp.api_ms_win_core_localization_l1_2_0.dll_IsValidCodePage]
test eax, eax
je 0x1009f85b
push 1
push dword [ebp - 0xc]
call dword [sym.imp.api_ms_win_core_localization_l1_2_0.dll_IsValidLocale]
test eax, eax
je 0x1009f85b
mov eax, dword [ebp - 0x18]
test eax, eax
je 0x1009f7eb
mov dword [eax], esi
mov edx, dword [ebp - 0x14]
push ecx
push ecx
mov ecx, dword [ebp - 0xc]
lea edx, [edx + 0x250]
call fcn.1009e114
test ebx, ebx
je 0x1009f856
push ecx
push ecx
mov ecx, dword [ebp - 0xc]
lea edx, [ebx + 0x120]
call fcn.1009e114
push 0x40
push ebx
push 0x1001
push dword [ebp - 0xc]
call dword [sym.imp.api_ms_win_core_localization_l1_2_0.dll_GetLocaleInfoW]
test eax, eax
je 0x1009f85b
push 0x40
lea eax, [ebx + 0x80]
push eax
push 0x1002
push dword [ebp - 8]
call dword [sym.imp.api_ms_win_core_localization_l1_2_0.dll_GetLocaleInfoW]
test eax, eax
je 0x1009f85b
push 0xa
push 0x10
lea ecx, [ebx + 0x100]
push ecx
push esi
call sym.ucrtbase.dll__itow_s
add esp, 0x10
xor eax, eax
inc eax
jmp 0x1009f85d
xor eax, eax
mov ecx, dword [ebp - 4]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.1005cc20
mov esp, ebp
pop ebp
ret
Function at 0x100a0507
Capabilities:
Print debug messages

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push ebx
push esi
push edi
mov ebx, edx
mov esi, ecx
call dword [sym.imp.api_ms_win_core_debug_l1_1_0.dll_IsDebuggerPresent]
test eax, eax
jne 0x100a0521
push 3
jmp 0x100a0538
test esi, esi
je 0x100a052c
push esi
call dword [sym.imp.api_ms_win_core_debug_l1_1_0.dll_OutputDebugStringW]
call fcn.1009e619
push 4
cmp eax, 1
jne 0x100a057a
pop edi
call fcn.1009e596
cmp eax, 2
jne 0x100a0576
call fcn.1009e3c8
test al, al
je 0x100a0576
call fcn.1009e4b9
test al, al
jne 0x100a056a
mov eax, dword [ebp + 8]
or eax, 0x200000
xor ecx, ecx
push eax
mov edx, esi
push ebx
call fcn.1009e315
jmp 0x100a057b
call fcn.1009e436
push dword [ebp + 8]
mov ecx, eax
jmp 0x100a0560
mov eax, edi
jmp 0x100a057b
pop eax
pop edi
pop esi
pop ebx
pop ebp
ret

Function at 0x100a318b
Capabilities:
Enumerate files on windows

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x268
mov eax, dword [0x1010e2b0]
xor eax, ebp
mov dword [ebp - 8], eax
push ebx
push esi
mov esi, ecx
mov ecx, dword [ebp + 8]
push edi
mov edi, edx
mov dword [ebp - 0x264], esi
mov dword [ebp - 0x260], ecx
jmp 0x100a31c8
movzx eax, word [edi]
push eax
call fcn.100a3351
test al, al
jne 0x100a31cc
sub edi, 2
cmp edi, esi
jne 0x100a31b8
movzx edx, word [edi]
cmp edx, 0x3a
jne 0x100a31eb
lea eax, [esi + 2]
cmp edi, eax
je 0x100a31eb
push ecx
push 0
xor edx, edx
mov ecx, esi
call fcn.100a2f71
pop ecx
pop ecx
jmp 0x100a3255
push edx
call fcn.100a3351
xor ebx, ebx
test al, al
je 0x100a31fe
sub edi, esi
sar edi, 1
inc edi
jmp 0x100a3200
mov edi, ebx
push 0x250
lea eax, [ebp - 0x25c]
push ebx
push eax
call sym.ucrtbase.dll__o_memset
add esp, 0xc
lea eax, [ebp - 0x25c]
push ebx
push ebx
push ebx
push eax
push ebx
push esi
call dword [sym.imp.api_ms_win_core_file_l1_1_0.dll_FindFirstFileExW]
mov esi, eax
cmp esi, 0xffffffff
jne 0x100a3266
mov eax, dword [ebp - 0x260]
xor edx, edx
mov ecx, dword [ebp - 0x264]
push eax
push ebx
call fcn.100a2f71
pop ecx
pop ecx
mov ebx, eax
cmp esi, 0xffffffff
je 0x100a3253
push esi
call dword [sym.imp.api_ms_win_core_file_l1_1_0.dll_FindClose]
mov eax, ebx
mov ecx, dword [ebp - 8]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.1005cc20
mov esp, ebp
pop ebp
ret
mov ecx, dword [ebp - 0x260]
push 0x2e
mov eax, dword [ecx + 4]
sub eax, dword [ecx]
sar eax, 2
mov dword [ebp - 0x268], eax
pop eax
cmp word [ebp - 0x230], ax
jne 0x100a32a1
cmp word [ebp - 0x22e], bx
je 0x100a32ba
cmp word [ebp - 0x22e], ax
jne 0x100a32a1
cmp word [ebp - 0x22c], bx
je 0x100a32ba
mov edx, dword [ebp - 0x264]
push ecx
push edi
lea ecx, [ebp - 0x230]
call fcn.100a2f71
pop ecx
pop ecx
test eax, eax
jne 0x100a3245
lea eax, [ebp - 0x25c]
push eax
push esi
call dword [sym.imp.api_ms_win_core_file_l1_1_0.dll_FindNextFileW]
mov ecx, dword [ebp - 0x260]
test eax, eax
push 0x2e
pop eax
jne 0x100a327d
mov eax, ecx
mov ecx, dword [ebp - 0x268]
mov edx, dword [eax]
mov eax, dword [eax + 4]
sub eax, edx
sar eax, 2
cmp ecx, eax
je 0x100a3247
push 0x100a29c0
sub eax, ecx
push 4
push eax
lea eax, [edx + ecx*4]
push eax
call sym.ucrtbase.dll_qsort
add esp, 0x10
jmp 0x100a3247
Function at 0x100a56ff
Capabilities:
Read file on windows

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
and esp, 0xfffffff8
mov eax, 0x101c
call fcn.1005d1a0
mov eax, dword [0x1010e2b0]
xor eax, esp
mov dword [esp + 0x1018], eax
push ebx
push esi
push edi
push dword [ebp + 8]
call sym.ucrtbase.dll__fileno
pop ecx
mov ecx, dword [ebp + 8]
mov ebx, eax
cmp dword [ecx + 8], 0
jne 0x100a5741
mov eax, dword [ebp + 0xc]
mov edx, dword [ebp + 0x10]
jmp 0x100a5866
mov eax, dword [ecx]
sub eax, dword [ecx + 4]
push 0
cdq
push 2
push edx
push eax
call fcn.10060030
mov ecx, ebx
mov dword [esp + 0x18], edx
and ecx, 0x3f
mov dword [esp + 0xc], eax
imul edi, ecx, 0x30
mov esi, ebx
sar esi, 6
xor edx, edx
mov ecx, dword [esi*4 + 0x1010f130]
push dword [ecx + edi + 0x24]
push dword [ecx + edi + 0x20]
mov ecx, ebx
call fcn.1003628d
pop ecx
pop ecx
mov ecx, dword [esi*4 + 0x1010f130]
mov dword [esp + 0x10], eax
mov eax, edx
mov edx, dword [esp + 0x10]
mov dword [esp + 0x1c], eax
cmp edx, dword [ecx + edi + 0x20]
jne 0x100a5861
cmp eax, dword [ecx + edi + 0x24]
jne 0x100a5861
push 0
lea eax, [esp + 0x18]
push eax
push 0x1000
lea eax, [esp + 0x2c]
push eax
push dword [ecx + edi + 0x18]
call dword [sym.imp.api_ms_win_core_file_l1_1_0.dll_ReadFile]
test eax, eax
je 0x100a5861
push dword [ebp + 0x10]
xor edx, edx
mov ecx, ebx
push dword [ebp + 0xc]
call fcn.1003628d
pop ecx
pop ecx
test edx, edx
jg 0x100a57e8
jl 0x100a5861
test eax, eax
jb 0x100a5861
mov ebx, dword [esp + 0x18]
mov eax, dword [esp + 0x14]
test ebx, ebx
jl 0x100a57fc
jg 0x100a5861
cmp dword [esp + 0xc], eax
ja 0x100a5861
lea edi, [esp + 0x20]
xor edx, edx
add edi, eax
lea ecx, [esp + 0x20]
xor esi, esi
cmp dword [esp + 0xc], edx
jne 0x100a5814
test ebx, ebx
je 0x100a584e
cmp ecx, edi
jae 0x100a584e
mov al, byte [ecx]
cmp al, 0xd
jne 0x100a5831
lea eax, [edi - 1]
cmp ecx, eax
jae 0x100a583d
lea eax, [ecx + 1]
cmp byte [eax], 0xa
jne 0x100a583d
mov ecx, eax
jmp 0x100a583d
movzx eax, al
movsx eax, byte [eax + 0x1000bb98]
add ecx, eax
add esi, 1
adc edx, 0
inc ecx
cmp esi, dword [esp + 0xc]
jne 0x100a5814
cmp edx, ebx
jne 0x100a5814
lea eax, [esp + 0x20]
sub ecx, eax
mov eax, ecx
cdq
add eax, dword [esp + 0x10]
adc edx, dword [esp + 0x1c]
jmp 0x100a5866
or eax, 0xffffffff
or edx, eax
mov ecx, dword [esp + 0x1024]
pop edi
pop esi
pop ebx
xor ecx, esp
call fcn.1005cc20
mov esp, ebp
pop ebp
ret

Function at 0x100a5c25
Capabilities:
Get common file path

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x210
mov eax, dword [0x1010e2b0]
xor eax, ebp
mov dword [ebp - 4], eax
push esi
push edi
push 0x20a
lea eax, [ebp - 0x210]
mov edi, edx
push 0
push eax
mov esi, ecx
call sym.ucrtbase.dll__o_memset
add esp, 0xc
lea eax, [ebp - 0x210]
push eax
push 0x105
call dword [sym.imp.api_ms_win_core_file_l1_2_0.dll_GetTempPathW]
test eax, eax
jne 0x100a5c70
xor eax, eax
jmp 0x100a5c97
call fcn.1002400e
push 0
push ecx
neg eax
lea ecx, [ebp - 0x210]
push esi
sbb eax, eax
push edi
push 0xffffffffffffffff
push ecx
lea ecx, [eax + 1]
call fcn.1003f803
add esp, 0x18
test eax, eax
je 0x100a5c6c
dec eax
mov ecx, dword [ebp - 4]
pop edi
xor ecx, ebp
pop esi
call fcn.1005cc20
mov esp, ebp
pop ebp
ret
Function at 0x100b43ee
Capabilities:
Get common file path

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push ecx
push ecx
push ebx
push esi
mov esi, ecx
call fcn.100b4308
mov ebx, eax
mov dword [ebp - 8], ebx
test ebx, ebx
je 0x100b44b4
push ebx
push 0x104
call dword [sym.imp.api_ms_win_core_file_l1_2_0.dll_GetTempPathW]
test eax, eax
je 0x100b44af
cmp eax, 0xee
ja 0x100b44af
push edi
lea edi, [ebx + eax*2]
mov dword [ebp - 4], edi
mov ebx, edi
sub esi, 0
je 0x100b444a
sub esi, 1
je 0x100b4446
sub esi, 1
jne 0x100b4458
push 0x78
jmp 0x100b444c
push 0x77
jmp 0x100b444c
push 0x76
pop eax
lea ebx, [edi + 2]
mov word [edi], ax
mov edi, ebx
mov dword [ebp - 4], edi
call dword [sym.imp.api_ms_win_core_processthreads_l1_1_0.dll_GetCurrentProcessId]
mov esi, ebx
mov edx, 0x104
sub esi, dword [ebp - 8]
mov ecx, edi
push 0
sar esi, 1
sub edx, esi
xor esi, esi
push 0x24
push esi
push eax
call fcn.1003a4d0
add esp, 0x10
pop edi
test eax, eax
jne 0x100b44a5
lea ecx, [ebp - 4]
call fcn.1003abcd
push 0x2e
pop ecx
push 0x30
lea eax, [ebx + eax*2]
mov word [eax], cx
pop ecx
mov word [eax + 2], cx
xor ecx, ecx
mov word [eax + 4], cx
mov al, 1
jmp 0x100b44b6
push esi
push esi
push esi
push esi
push esi
call sym.ucrtbase.dll__invoke_watson
xor eax, eax
mov word [ebx], ax
xor al, al
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x100d39a0
Capabilities:
Check if file exists

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
mov edx, dword [ebp + 0xc]
mov ecx, dword [ebp + 8]
pop ebp
jmp fcn.100d17ca

Function at 0x100d39c0
Capabilities:
Check if file exists

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
mov edx, dword [ebp + 0xc]
mov ecx, dword [ebp + 8]
pop ebp
jmp fcn.100d1c18

Function at 0x100d39e0
Capabilities:
Check if file exists

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
mov edx, dword [ebp + 0xc]
mov ecx, dword [ebp + 8]
pop ebp
jmp fcn.100d206f

Function at 0x100d3a00
Capabilities:
Check if file exists

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
mov edx, dword [ebp + 0xc]
mov ecx, dword [ebp + 8]
pop ebp
jmp fcn.100d24cf

Function at 0x100d3a20
Capabilities:
Check if file exists

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
mov edx, dword [ebp + 0xc]
mov ecx, dword [ebp + 8]
pop ebp
jmp fcn.100d2919

Function at 0x100d3a40
Capabilities:
Check if file exists

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
mov edx, dword [ebp + 0xc]
mov ecx, dword [ebp + 8]
pop ebp
jmp fcn.100d2d6f

Function at 0x100d3a60
Capabilities:
Check if file exists

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
mov edx, dword [ebp + 0xc]
mov ecx, dword [ebp + 8]
pop ebp
jmp fcn.100d31ce

Function at 0x100d88ae
Capabilities:
Inspect section memory permissions

Disassembly:
cmp dword [eax], ebx
je 0x100d88d7
mov edx, dword [eax + 4]
lea ecx, [eax + 8]
add edx, eax
mov dword [ebp + 8], ecx
cmp ecx, edx
jae 0x100d88d2
mov ecx, dword [ebp + 8]
movzx ecx, word [ecx]
mov edx, ecx
and edx, 0xf000
cmp edx, 0x3000
jne 0x100d88bc
and ecx, 0xfff
mov edx, esi
sub edx, dword [edi + 0x34]
add byte [ebx + 0x34572bd6], cl
add ecx, esi
add ecx, dword [eax]
add dword [ecx], edx
jmp 0x100d88c4
cmp edx, ebx
jne 0x100d8a12
mov ecx, dword [eax + 4]
add dword [ebp + 8], 2
add ecx, eax
cmp dword [ebp + 8], ecx
jb 0x100d8893
add eax, dword [eax + 4]
jmp 0x100d8880
mov dword [ebp + 0xc], ebx
jmp 0x100d88e2
Function at 0x100d8960
Capabilities:
Inspect section memory permissions

Disassembly:
mov edi, dword [ebp - 0x88]
mov eax, dword [ebp + 0xc]
cmp ax, word [edi + 6]
jne 0x100d88fa
mov edx, dword [ebp - 0xb4]
xor ecx, ecx
mov edi, 0x60000000
jmp 0x100d8918
movzx eax, ax
lea eax, [eax + eax*4]
mov ecx, dword [edi + eax*8 + 0x104]
mov edx, dword [edi + eax*8 + 0x108]
lea eax, [edi + eax*8 + 0xf8]
mov edi, dword [eax + 0x24]
lea eax, [edx + ecx - 1]
xor edx, edx
div dword [ebp - 0xac]
xor edx, edx
mov dword [ebp - 0x44], eax
mov eax, ecx
div dword [ebp - 0xac]
cmp eax, dword [ebp - 0x44]
ja 0x100d8976
mov edx, edi
mov dword [ebp + 8], edi
and dword [ebp + 8], 0x40000000
mov dword [ebp + 0x10], edi
and edx, 0x20000000
and dword [ebp + 0x10], 0x80000000
mov ecx, dword [ebp + 0x18]
cmp edx, ebx
je 0x100d895d
or byte [eax + ecx], 1
cmp dword [ebp + 8], ebx
je 0x100d8966
or byte [eax + ecx], 2
cmp dword [ebp + 0x10], ebx
je 0x100d8970
add ecx, eax
or byte [ecx], 4
inc eax
cmp eax, dword [ebp - 0x44]
jbe 0x100d8952
inc dword [ebp + 0xc]
mov eax, dword [ebp - 0x88]
mov cx, word [ebp + 0xc]
mov ecx, dword [ebp + 0xc]
cmp cx, word [eax + 6]
jbe 0x100d88dc
mov dword [ebp + 8], esi
xor edi, edi
mov eax, dword [ebp + 0x18]
push 2
pop ecx
movzx eax, byte [edi + eax]
sub eax, ecx
je 0x100d89c3
mov dword [ebp - 4], ecx

Function at 0x100d8a60
Capabilities:
Contain obfuscated stackstrings

Disassembly:
mov byte [ebp - 0x34e], 0x51
mov byte [ebp - 0x34d], 0x75
mov byte [ebp - 0x34c], 0x57
mov byte [ebp - 0x34b], 0x4a
invalid
invalid
mov dh, 0xfc
Function at 0x100dce40
Capabilities:
Read file on windows

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
and esp, 0xfffffff8
sub esp, 0x2c
push ebx
mov eax, ecx
mov ebx, edx
push esi
sar ecx, 6
mov dword [esp + 0x30], eax
and eax, 0x3f
push edi
imul edi, eax, 0x30
mov eax, dword [ecx*4 + 0x1010f130]
mov dword [esp + 0x20], ecx
push 0xa
pop edx
mov dword [esp + 0x18], ebx
mov dword [esp + 0x30], edx
mov ecx, dword [eax + edi + 0x18]
mov dword [esp + 0x28], ecx
mov ecx, dword [ebp + 8]
test ecx, ecx
je 0x100dce90
cmp word [ebx], dx
jne 0x100dce90
or byte [eax + edi + 0x28], 4
jmp 0x100dce95
and byte [eax + edi + 0x28], 0xfb
lea eax, [ebx + ecx*2]
mov edx, ebx
mov dword [esp + 0x1c], eax
mov esi, ebx
cmp ebx, eax
jae 0x100dcfec
push 0x1a
pop ecx
movzx eax, word [edx]
cmp ax, cx
je 0x100dcfc8
push 0xd
pop ebx
cmp ax, bx
lea ecx, [edx + 2]
mov ebx, dword [esp + 0x18]
je 0x100dced3
mov word [esi], ax
mov edx, ecx
add esi, 2
jmp 0x100dcfb9
cmp ecx, dword [esp + 0x1c]
jae 0x100dcf1a
movzx ecx, word [ecx]
mov dword [esp + 0x14], ecx
lea ecx, [esi + 2]
push 0xa
mov dword [esp + 0x28], ecx
mov ecx, dword [esp + 0x18]
pop ebx
cmp cx, bx
jne 0x100dcef5
push ebx
pop eax
mov ecx, eax
xor eax, eax
cmp word [esp + 0x14], bx
mov ebx, dword [esp + 0x18]
sete al
mov word [esi], cx
mov esi, dword [esp + 0x24]
lea eax, [eax*2 + 2]
add edx, eax
jmp 0x100dcfb9
push 0
lea eax, [esp + 0x30]
mov dword [esp + 0x18], ecx
push eax
push 2
lea eax, [esp + 0x1c]
push eax
push dword [esp + 0x38]
call dword [sym.imp.api_ms_win_core_file_l1_1_0.dll_ReadFile]
test eax, eax
je 0x100dcfac
cmp dword [esp + 0x2c], 0
je 0x100dcfac
mov eax, dword [esp + 0x20]
mov ecx, dword [eax*4 + 0x1010f130]
test byte [ecx + edi + 0x28], 0x48
je 0x100dcf82
mov ax, word [esp + 0x10]
cmp ax, word [esp + 0x30]
jne 0x100dcf63
push 0xa
jmp 0x100dcfae
push 0xd
pop ebx
mov word [esi], bx
mov ebx, dword [esp + 0x18]
mov byte [ecx + edi + 0x2a], al
shr ax, 8
mov byte [ecx + edi + 0x2b], al
push 0xa
pop eax
mov byte [ecx + edi + 0x2c], al
jmp 0x100dcfb2
push 0xa
pop eax
cmp word [esp + 0x10], ax
jne 0x100dcf90
cmp esi, ebx
je 0x100dcfaf
mov ecx, dword [esp + 0x34]
xor edx, edx
push 0xffffffffffffffff
push 0xfffffffffffffffe
inc edx
call fcn.10036464
pop ecx
pop ecx
push 0xa
pop eax
cmp word [esp + 0x10], ax
je 0x100dcfb5
push 0xd
pop eax
mov word [esi], ax
add esi, 2
mov edx, dword [esp + 0x14]
push 0x1a
pop ecx
cmp edx, dword [esp + 0x1c]
jb 0x100dceab
jmp 0x100dcfec
mov eax, dword [esp + 0x20]
mov ecx, dword [eax*4 + 0x1010f130]
mov al, byte [ecx + edi + 0x28]
test al, 0x40
jne 0x100dcfe3
or al, 2
mov byte [ecx + edi + 0x28], al
jmp 0x100dcfec
push 0x1a
pop eax
mov word [esi], ax
add esi, 2
sub esi, ebx
and esi, 0xfffffffe
pop edi
mov eax, esi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x100dd673
Capabilities:
Write file on windows

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
mov eax, 0x1414
call fcn.1005d1a0
mov eax, dword [0x1010e2b0]
xor eax, ebp
mov dword [ebp - 4], eax
mov eax, ecx
and ecx, 0x3f
sar eax, 6
imul ecx, ecx, 0x30
push ebx
mov ebx, dword [ebp + 8]
mov eax, dword [eax*4 + 0x1010f130]
push esi
push edi
mov edi, ebx
mov eax, dword [eax + ecx + 0x18]
mov ecx, dword [ebp + 0xc]
mov dword [ebp - 0x140c], eax
add ecx, edx
xor eax, eax
mov dword [ebp - 0x1414], ecx
stosd dword es:[edi], eax
stosd dword es:[edi], eax
stosd dword es:[edi], eax
jmp 0x100dd73d
lea esi, [ebp - 0x1404]
cmp edx, ecx
jae 0x100dd6f1
movzx eax, word [edx]
add edx, 2
cmp eax, 0xa
jne 0x100dd6e4
add dword [ebx + 8], 2
push 0xd
pop edi
mov word [esi], di
add esi, 2
mov word [esi], ax
add esi, 2
lea eax, [ebp - 6]
cmp esi, eax
jb 0x100dd6c8
mov edi, dword [ebp - 0x140c]
lea eax, [ebp - 0x1404]
sub esi, eax
mov dword [ebp - 0x1408], edx
push 0
lea eax, [ebp - 0x1410]
and esi, 0xfffffffe
push eax
push esi
lea eax, [ebp - 0x1404]
push eax
push edi
call dword [sym.imp.api_ms_win_core_file_l1_1_0.dll_WriteFile]
test eax, eax
je 0x100dd743
mov eax, dword [ebp - 0x1410]
add dword [ebx + 4], eax
cmp eax, esi
jb 0x100dd74b
mov edx, dword [ebp - 0x1408]
mov ecx, dword [ebp - 0x1414]
cmp edx, ecx
jb 0x100dd6c2
jmp 0x100dd74b
call dword [sym.imp.api_ms_win_core_errorhandling_l1_1_0.dll_GetLastError]
mov dword [ebx], eax
mov ecx, dword [ebp - 4]
mov eax, ebx
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.1005cc20
mov esp, ebp
pop ebp
ret
Function at 0x100e1f80
Capabilities:
Timestomp file

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
mov edx, dword [ebp + 0xc]
mov ecx, dword [ebp + 8]
pop ebp
jmp fcn.100e0a8e

Function at 0x100e1fa0
Capabilities:
Timestomp file

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
mov edx, dword [ebp + 0xc]
mov ecx, dword [ebp + 8]
pop ebp
jmp fcn.100e0ef6
Function at 0x100f67eb
Capabilities:
Set environment variable

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0xc
mov eax, dword [0x1010e2b0]
xor eax, ebp
mov dword [ebp - 4], eax
push esi
mov esi, ecx
movzx eax, word [esi]
mov cl, al
cmp eax, 0x5c
je 0x100f6811
mov dl, al
cmp eax, 0x2f
jne 0x100f681d
mov dl, cl
cmp ax, word [esi + 2]
jne 0x100f681d
xor eax, eax
jmp 0x100f6861
movsx eax, dl
push eax
call sym.ucrtbase.dll_toupper
pop ecx
push 0x3d
pop ecx
movzx eax, ax
push 0x3a
mov word [ebp - 0xa], ax
pop eax
mov word [ebp - 8], ax
xor eax, eax
mov word [ebp - 6], ax
lea eax, [ebp - 0xc]
push esi
push eax
mov word [ebp - 0xc], cx
call dword [sym.imp.api_ms_win_core_processenvironment_l1_1_0.dll_SetEnvironmentVariableW]
test eax, eax
jne 0x100f6819
call dword [sym.imp.api_ms_win_core_errorhandling_l1_1_0.dll_GetLastError]
mov ecx, eax
call fcn.1003779a
or eax, 0xffffffff
mov ecx, dword [ebp - 4]
xor ecx, ebp
pop esi
call fcn.1005cc20
mov esp, ebp
pop ebp
ret

Function at 0x100f68a0
Capabilities:
Set current directory

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
mov ecx, dword [ebp + 8]
pop ebp
jmp fcn.100f652d
Function at 0x100f6b20
Capabilities:
Get common file path

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x214
mov eax, dword [0x1010e2b0]
xor eax, ebp
mov dword [ebp - 4], eax
xor eax, eax
push 0x20a
push eax
mov dword [ebp - 0x214], eax
lea eax, [ebp - 0x210]
push eax
call sym.ucrtbase.dll__o_memset
add esp, 0xc
lea eax, [ebp - 0x210]
push eax
push 0x105
call dword [sym.imp.api_ms_win_core_processenvironment_l1_1_0.dll_GetCurrentDirectoryW]
cmp eax, 0x104
ja 0x100f6b7b
lea ecx, [ebp - 0x210]
call fcn.100f68ae
jmp 0x100f6c91
push ebx
push esi
push edi
lea edi, [eax + 1]
push 2
push edi
call sym.ucrtbase.dll__calloc_base
mov esi, eax
pop ecx
pop ecx
test esi, esi
je 0x100f6ba1
push esi
push edi
call dword [sym.imp.api_ms_win_core_processenvironment_l1_1_0.dll_GetCurrentDirectoryW]
test eax, eax
jne 0x100f6c74
call dword [sym.imp.api_ms_win_core_errorhandling_l1_1_0.dll_GetLastError]
mov ecx, dword [0x1010e2c0]
mov edi, eax
cmp ecx, 0xffffffff
je 0x100f6be1
call fcn.10029fa0
mov ebx, eax
test ebx, ebx
je 0x100f6bdb
cmp ebx, 0xffffffff
jne 0x100f6c42
push edi
call dword [sym.imp.api_ms_win_core_errorhandling_l1_1_0.dll_SetLastError]
mov eax, 0x1010eac0
mov dword [eax], 0xc
jmp 0x100f6c81
mov ecx, dword [0x1010e2c0]
or edx, 0xffffffff
call fcn.10032a89
test eax, eax
je 0x100f6bc4
push 0x364
push 2
call sym.ucrtbase.dll__calloc_base
pop ecx
mov ebx, eax
pop ecx
mov ecx, dword [0x1010e2c0]
test ebx, ebx
je 0x100f6c22
mov edx, ebx
call fcn.10032a89
test eax, eax
jne 0x100f6c33
mov ecx, dword [0x1010e2c0]
xor edx, edx
call fcn.10032a89
push ebx
jmp 0x100f6c2b
xor edx, edx
call fcn.10032a89
push 0
call sym.ucrtbase.dll__free_base
pop ecx
jmp 0x100f6bc4
mov ecx, ebx
call fcn.10031ad6
push 0
call sym.ucrtbase.dll__free_base
pop ecx
test ebx, ebx
je 0x100f6bc4
mov ecx, dword [0x1010e2c4]
call fcn.10029fa0
imul eax, eax, 0x364
push edi
add ebx, eax
call dword [sym.imp.api_ms_win_core_errorhandling_l1_1_0.dll_SetLastError]
test ebx, ebx
je 0x100f6bcb
lea eax, [ebx + 0x10]
jmp 0x100f6bd0
mov ecx, esi
call fcn.100f68ae
mov dword [ebp - 0x214], eax
push esi
call sym.ucrtbase.dll__free_base
mov eax, dword [ebp - 0x214]
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.1005cc20
mov esp, ebp
pop ebp
ret