joyce8/EMBER2024-capa huggingface dataset:
Function at 0x40dc00
Capabilities:
Log keystrokes via polling
Read file on windows

Disassembly:
sub esp, 8
mov eax, dword [0x427820]
push ebx
push ebp
push esi
push edi
xor ebx, ebx
push str.Loading_BINARY_File
push ebx
push 0x401
push eax
call dword [sym.imp.USER32.dll_SendMessageA]
mov edi, dword [esp + 0x28]
push 0x1b
call dword [sym.imp.USER32.dll_GetAsyncKeyState]
test ax, ax
jne 0x40dd4f
mov edx, dword [0x4228e0]
mov eax, dword [0x427738]
lea ecx, [esp + 0x10]
push 0
push ecx
push edx
push 0x426080
push eax
call dword [sym.imp.KERNEL32.dll_ReadFile]
mov ebp, dword [esp + 0x10]
test ebp, ebp
jle 0x40dd4f
xor esi, esi
test ebp, ebp
mov dword [esp + 0x28], esi
jle 0x40dce0
mov edx, edi
mov ecx, 0x426080
sub edx, ebx
mov eax, ebx
mov dword [esp + 0x14], edx
sub ecx, ebx
jmp 0x40dc81
mov edx, dword [esp + 0x14]
add edx, eax
cmp edx, dword [0x427760]
jae 0x40dd16
cmp eax, dword [esp + 0x20]
jb 0x40dcc4
cmp eax, dword [esp + 0x24]
ja 0x40dcc4
mov edx, dword [0x424018]
test edx, edx
jne 0x40dcba
mov edx, dword [0x427710]
lea ebp, [edx + esi]
mov dl, byte [ecx + eax]
mov byte [edi + ebp], dl
mov ebp, dword [esp + 0x10]
jmp 0x40dcc3
mov dl, byte [ecx + eax]
mov byte [esi + 0x426640], dl
inc esi
mov edx, dword [esp + 0x28]
inc edx
inc eax
cmp edx, ebp
mov dword [esp + 0x28], edx
jl 0x40dc7d
test esi, esi
jbe 0x40dce0
push esi
push edi
call fcn.00417590
add esp, 8
mov eax, dword [esp + 0x28]
add ebx, eax
mov eax, dword [esp + 0x1c]
push eax
mov dword [0x427740], ebx
call fcn.004156d0
mov eax, dword [0x427760]
add edi, esi
add esp, 4
cmp edi, eax
ja 0x40dd3d
mov ecx, dword [esp + 0x10]
mov eax, dword [0x4228e0]
cmp ecx, eax
jl 0x40dd4f
jmp 0x40dc24
test esi, esi
jbe 0x40dd24
push esi
push edi
call fcn.00417590
add esp, 8
mov edx, dword [esp + 0x28]
mov eax, dword [esp + 0x1c]
add edx, ebx
push eax
mov dword [0x427740], edx
call fcn.004156d0
add esp, 4
pop edi
mov eax, 1
pop esi
pop ebp
mov dword [0x424228], eax
pop ebx
add esp, 8
ret
pop edi
pop esi
pop ebp
mov eax, 1
pop ebx
add esp, 8
ret
Function at 0x40dd60
Capabilities:
Log keystrokes via polling
Read file on windows

Disassembly:
sub esp, 0xc
mov eax, dword [0x427820]
push ebx
push ebp
push esi
push edi
xor ebx, ebx
push str.Loading_EMC_Code_File
push ebx
push 0x401
push eax
call dword [sym.imp.USER32.dll_SendMessageA]
mov edx, dword [0x427738]
lea ecx, [esp + 0x10]
push ebx
push ecx
push 2
push 0x426080
push edx
call dword [sym.imp.KERNEL32.dll_ReadFile]
mov eax, dword [0x426080]
xor ecx, ecx
mov cl, ah
mov edi, dword [esp + 0x2c]
mov esi, ecx
and eax, 0xff
shl esi, 8
or esi, eax
mov dword [esp + 0x18], esi
push 0x1b
call dword [sym.imp.USER32.dll_GetAsyncKeyState]
test ax, ax
jne 0x40def8
mov eax, dword [0x4228e0]
mov ecx, dword [0x427738]
lea edx, [esp + 0x10]
push 0
push edx
push eax
push 0x426080
push ecx
call dword [sym.imp.KERNEL32.dll_ReadFile]
mov ebp, dword [esp + 0x10]
test ebp, ebp
jle 0x40def8
lea edx, [ebx + ebp]
lea eax, [esi + esi + 2]
cmp edx, eax
jbe 0x40de05
sub ebp, 2
mov dword [esp + 0x10], ebp
xor esi, esi
test ebp, ebp
mov dword [esp + 0x2c], esi
jle 0x40de85
mov edx, edi
mov ecx, 0x426080
sub edx, ebx
mov eax, ebx
mov dword [esp + 0x14], edx
sub ecx, ebx
jmp 0x40de26
mov edx, dword [esp + 0x14]
add edx, eax
cmp edx, dword [0x427760]
jae 0x40debf
cmp eax, dword [esp + 0x24]
jb 0x40de69
cmp eax, dword [esp + 0x28]
ja 0x40de69
mov edx, dword [0x424018]
test edx, edx
jne 0x40de5f
mov edx, dword [0x427710]
lea ebp, [edx + esi]
mov dl, byte [ecx + eax]
mov byte [edi + ebp], dl
mov ebp, dword [esp + 0x10]
jmp 0x40de68
mov dl, byte [ecx + eax]
mov byte [esi + 0x426640], dl
inc esi
mov edx, dword [esp + 0x2c]
inc edx
inc eax
cmp edx, ebp
mov dword [esp + 0x2c], edx
jl 0x40de22
test esi, esi
jbe 0x40de85
push esi
push edi
call fcn.00417590
add esp, 8
mov eax, dword [esp + 0x2c]
add ebx, eax
mov eax, dword [esp + 0x20]
push eax
mov dword [0x427740], ebx
call fcn.004156d0
mov eax, dword [0x427760]
add edi, esi
add esp, 4
cmp edi, eax
ja 0x40dee6
mov ecx, dword [esp + 0x10]
mov eax, dword [0x4228e0]
cmp ecx, eax
jl 0x40def8
mov esi, dword [esp + 0x18]
jmp 0x40ddb7
test esi, esi
jbe 0x40decd
push esi
push edi
call fcn.00417590
add esp, 8
mov edx, dword [esp + 0x2c]
mov eax, dword [esp + 0x20]
add edx, ebx
push eax
mov dword [0x427740], edx
call fcn.004156d0
add esp, 4
pop edi
mov eax, 1
pop esi
pop ebp
mov dword [0x424228], eax
pop ebx
add esp, 0xc
ret
pop edi
pop esi
pop ebp
mov eax, 1
pop ebx
add esp, 0xc
ret
Function at 0x40e4b0
Capabilities:
Log keystrokes via polling

Disassembly:
mov eax, dword [0x4228e4]
sub esp, 0x14
mov dword [0x425464], eax
mov dword [0x425460], eax
mov eax, dword [0x427820]
push ebx
push ebp
push esi
push edi
xor edi, edi
push str.Loading_ASCII_Hex_HEX_File
push edi
push 0x401
push eax
xor esi, esi
call dword [sym.imp.USER32.dll_SendMessageA]
call fcn.0040df10
mov ebx, dword [0x427740]
inc ebx
inc esi
cmp eax, edi
mov dword [0x427740], ebx
jl 0x40e504
cmp eax, 1
je 0x40e515
cmp eax, 0x12
je 0x40e515
jmp 0x40e4e1
mov dword [esp + 0x10], esi
pop edi
pop esi
pop ebp
mov eax, 1
pop ebx
add esp, 0x14
ret
mov ebp, dword [esp + 0x2c]
mov dword [esp + 0x10], esi
mov byte [0x426080], al
mov dword [0x42416c], edi
mov dword [esp + 0x14], edi
mov dword [0x424200], edi
push 0x1b
call dword [sym.imp.USER32.dll_GetAsyncKeyState]
test ax, ax
jne 0x40e6f3
call fcn.0040df10
mov ecx, dword [0x427740]
mov ebx, eax
inc ecx
test ebx, ebx
mov dword [0x427740], ecx
jl 0x40e719
mov ecx, dword [esp + 0x28]
push ecx
call fcn.004156d0
add esp, 4
cmp ebx, 0x24
jne 0x40e5ec
call fcn.0040df10
mov esi, dword [0x427740]
mov edx, dword [esp + 0x10]
inc esi
inc edx
cmp eax, 0x41
mov dword [0x427740], esi
mov dword [esp + 0x10], edx
jne 0x40e5c4
xor esi, esi
call fcn.0040df10
mov edx, dword [esp + 0x10]
inc edx
cmp eax, 0x2c
mov dword [esp + 0x10], edx
je 0x40e5b0
mov byte [esp + esi + 0x18], al
inc esi
cmp esi, 4
jl 0x40e593
lea edx, [esp + 0x18]
push edx
call fcn.00415890
add esp, 4
mov edi, eax
jmp 0x40e532
cmp eax, 0x53
jne 0x40e532
xor esi, esi
inc dword [esp + 0x10]
call fcn.0040df10
cmp eax, 0x2c
je 0x40e532
inc esi
cmp esi, 4
jl 0x40e5cf
jmp 0x40e532
cmp ebx, 0x14
je 0x40e6f3
cmp ebx, 3
je 0x40e6f3
cmp dword [0x4233f0], 1
jle 0x40e617
push 0x80
push ebx
call fcn.004185ea
add esp, 8
jmp 0x40e624
mov eax, dword [str.________________________________H]
mov al, byte [eax + ebx*2]
and eax, 0x80
test eax, eax
je 0x40e532
mov eax, dword [esp + 0x14]
mov byte [esp + eax + 0x18], bl
inc eax
cmp eax, 2
mov dword [esp + 0x14], eax
jl 0x40e532
lea ecx, [esp + 0x18]
mov byte [esp + 0x1a], 0
push ecx
call fcn.00415800
add esp, 4
and eax, 0xffff
inc edi
mov dword [esp + 0x14], 0
cmp edi, ebp
jb 0x40e532
cmp edi, dword [esp + 0x30]
ja 0x40e532
mov ecx, dword [0x424018]
test ecx, ecx
jne 0x40e69f
mov edx, dword [0x427710]
mov esi, dword [0x424200]
mov ecx, dword [0x42416c]
sub edx, ebp
add edx, esi
add edx, ecx
mov ecx, dword [esp + 0x34]
mov byte [edx + ecx], al
jmp 0x40e6ab
mov edx, dword [0x42416c]
mov byte [edx + 0x426640], al
mov eax, dword [0x42416c]
inc eax
cmp eax, 0x20
mov dword [0x42416c], eax
jne 0x40e532
mov edx, dword [esp + 0x34]
push eax
mov eax, dword [0x424200]
sub eax, ebp
add eax, edx
push eax
call fcn.00417590
mov ecx, dword [0x42416c]
add esp, 8
add ecx, edi
mov dword [0x42416c], 0
mov dword [0x424200], ecx
jmp 0x40e532
mov eax, dword [0x42416c]
cmp eax, 0x20
je 0x40e719
test eax, eax
je 0x40e719
mov edx, dword [0x424200]
mov esi, dword [esp + 0x34]
sub edx, ebp
push eax
add edx, esi
push edx
call fcn.00417590
add esp, 8
pop edi
pop esi
pop ebp
mov eax, 1
pop ebx
add esp, 0x14
ret
Function at 0x40ebf0
Capabilities:
Write file on windows

Disassembly:
mov eax, dword [esp + 8]
sub esp, 0x204
push 0
push 0x80
push 2
push 0
push 0
push 0x40000000
push eax
call dword [sym.imp.KERNEL32.dll_CreateFileA]
cmp eax, 0xffffffff
mov dword [0x427738], eax
jne 0x40ec3d
mov ecx, dword [esp + 0x208]
push 0x10
push 0
push str.Error_filename_specified.
push ecx
call dword [sym.imp.USER32.dll_MessageBoxA]
xor eax, eax
add esp, 0x204
ret
push ebx
push ebp
push esi
push edi
push 0x7f02
push 0
call dword [sym.imp.USER32.dll_LoadCursorA]
push eax
mov dword [0x427658], eax
call dword [sym.imp.USER32.dll_SetCursor]
mov edx, dword [0x427820]
push str.Saving_buffer_to_file_now_
push 0
push 0x401
push edx
mov dword [0x427788], eax
call dword [sym.imp.USER32.dll_SendMessageA]
mov ebx, dword [esp + 0x224]
mov edi, dword [esp + 0x220]
mov ecx, dword [esp + 0x218]
mov eax, ebx
sub eax, edi
push ecx
inc eax
mov dword [0x427740], 0
mov dword [0x427780], eax
call fcn.004156d0
add esp, 4
mov ebp, 0x200
push 0x200
push edi
call fcn.00417510
mov ecx, dword [0x424018]
mov eax, dword [0x427710]
add esp, 8
xor esi, esi
cmp edi, ebx
ja 0x40eceb
test ecx, ecx
jne 0x40ecd7
mov dl, byte [eax + edi]
jmp 0x40ecdd
mov dl, byte [esi + 0x426640]
mov byte [esp + esi + 0x14], dl
inc edi
inc esi
cmp esi, 0x200
jl 0x40ecca
mov edx, dword [0x427738]
lea eax, [esp + 0x10]
push 0
push eax
lea ecx, [esp + 0x1c]
push esi
push ecx
push edx
call dword [sym.imp.KERNEL32.dll_WriteFile]
cmp esi, 0x200
jl 0x40ed2b
mov eax, dword [esp + 0x218]
mov dword [0x427740], ebp
push eax
add ebp, 0x200
call fcn.004156d0
add esp, 4
jmp 0x40ecaf
mov ecx, dword [0x427738]
push ecx
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov eax, dword [esp + 0x218]
mov edx, dword [0x427780]
push eax
mov dword [0x427740], edx
call fcn.004156d0
add esp, 4
call fcn.004157b0
mov ecx, dword [0x427788]
push ecx
call dword [sym.imp.USER32.dll_SetCursor]
pop edi
pop esi
pop ebp
mov eax, 1
pop ebx
add esp, 0x204
ret
Function at 0x416c40
Capabilities:
Read file on windows

Disassembly:
sub esp, 8
mov eax, dword [0x423154]
push ebx
push ebp
xor ebx, ebx
push esi
cmp eax, 0xffffffff
push edi
mov dword [esp + 0x10], ebx
je 0x416cab
mov eax, dword [esp + 0x1c]
and eax, 0xffff
inc eax
cmp eax, ebx
mov dword [esp + 0x14], eax
jle 0x416cab
mov edi, dword [sym.imp.KERNEL32.dll_ReadFile]
mov ebp, 1
xor esi, esi
mov eax, dword [0x423154]
lea ecx, [esp + 0x10]
push 0
push ecx
lea edx, [esp + 0x24]
push ebp
push edx
push eax
call edi
cmp dword [esp + 0x10], ebp
je 0x416cb6
inc esi
cmp esi, 0xfffffff
jb 0x416c76
mov eax, dword [esp + 0x14]
inc ebx
mov ecx, ebx
and ecx, 0xffff
cmp ecx, eax
jl 0x416c74
pop edi
pop esi
pop ebp
xor ax, ax
pop ebx
add esp, 8
ret
movzx ax, byte [esp + 0x1c]
pop edi
pop esi
pop ebp
or ah, 1
pop ebx
add esp, 8
ret

Function at 0x416cd0
Capabilities:
Read file on windows
Write file on windows

Disassembly:
mov eax, dword [0x423154]
sub esp, 8
cmp eax, 0xffffffff
push ebx
push esi
push edi
jne 0x416cec
pop edi
pop esi
mov eax, 1
pop ebx
add esp, 8
ret
mov ebx, dword [sym.imp.KERNEL32.dll_WriteFile]
lea ecx, [esp + 0x10]
push 0
push ecx
push 2
push 0x423160
push eax
call ebx
mov edi, dword [sym.imp.KERNEL32.dll_ReadFile]
xor esi, esi
mov ecx, dword [0x423154]
lea edx, [esp + 0x10]
push 0
push edx
lea eax, [esp + 0x16]
push 1
push eax
push ecx
call edi
cmp dword [esp + 0x10], 1
je 0x416d3e
inc esi
cmp esi, 0x61a80
jb 0x416d0b
pop edi
pop esi
mov eax, 2
pop ebx
add esp, 8
ret
cmp byte [esp + 0xe], 0x4f
jne 0x416d32
mov dl, byte [esp + 0x18]
lea eax, [esp + 0x10]
push 0
mov byte [esp + 0x12], dl
mov edx, dword [0x423154]
push eax
lea ecx, [esp + 0x16]
push 1
push ecx
push edx
call ebx
mov eax, dword [esp + 0x10]
pop edi
dec eax
pop esi
neg eax
sbb eax, eax
pop ebx
and eax, 3
add esp, 8
ret

Function at 0x417e10
Capabilities:
Check for time delay via gettickcount

Disassembly:
push ebx
mov ebx, dword [sym.imp.KERNEL32.dll_GetTickCount]
push esi
push edi
call ebx
mov edi, dword [esp + 0x10]
mov esi, eax
call ebx
cmp eax, esi
jb 0x417e37
mov ecx, edi
sub eax, esi
and ecx, 0xffff
cmp eax, ecx
jae 0x417e48
jmp 0x417e21
mov edx, edi
sub eax, esi
and edx, 0xffff
dec eax
add edx, esi
cmp eax, edx
jb 0x417e21
pop edi
pop esi
pop ebx
ret
Function at 0x41af3d
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x1a4
mov edx, dword [ebp + 8]
xor ecx, ecx
mov eax, 0x4234d8
cmp edx, dword [eax]
je 0x41af5f
add eax, 8
inc ecx
cmp eax, 0x423568
jl 0x41af50
push esi
mov esi, ecx
shl esi, 3
cmp edx, dword [esi + 0x4234d8]
jne 0x41b08d
mov eax, dword [0x42424c]
cmp eax, 1
je 0x41b067
test eax, eax
jne 0x41af90
cmp dword [0x423400], 1
je 0x41b067
cmp edx, 0xfc
je 0x41b08d
lea eax, [ebp - 0x1a4]
push 0x104
push eax
push 0
call dword [sym.imp.KERNEL32.dll_GetModuleFileNameA]
test eax, eax
jne 0x41afc7
lea eax, [ebp - 0x1a4]
push str._program_name_unknown_
push eax
call fcn.0041bea0
pop ecx
pop ecx
lea eax, [ebp - 0x1a4]
push edi
push eax
lea edi, [ebp - 0x1a4]
call fcn.00419250
inc eax
pop ecx
cmp eax, 0x3c
jbe 0x41b00a
lea eax, [ebp - 0x1a4]
push eax
call fcn.00419250
mov edi, eax
lea eax, [ebp - 0x1a4]
sub eax, 0x3b
push 3
add edi, eax
push 0x41f69c
push edi
call fcn.0041d550
add esp, 0x10
lea eax, [ebp - 0xa0]
push str.Runtime_Error__n_nProgram:
push eax
call fcn.0041bea0
lea eax, [ebp - 0xa0]
push edi
push eax
call fcn.0041beb0
lea eax, [ebp - 0xa0]
push 0x41f67c
push eax
call fcn.0041beb0
push dword [esi + 0x4234dc]
lea eax, [ebp - 0xa0]
push eax
call fcn.0041beb0
push 0x12010
lea eax, [ebp - 0xa0]
push str.Microsoft_Visual_C_Runtime_Library
push eax
call fcn.0041d4be
add esp, 0x2c
pop edi
jmp 0x41b08d
lea eax, [ebp + 8]
lea esi, [esi + 0x4234dc]
push 0
push eax
push dword [esi]
call fcn.00419250
pop ecx
push eax
push dword [esi]
push 0xfffffffffffffff4
call dword [sym.imp.KERNEL32.dll_GetStdHandle]
push eax
call dword [sym.imp.KERNEL32.dll_WriteFile]
pop esi
leave
ret
Function at 0x10100960
Capabilities:
Access peb ldr_data

Disassembly:
mov eax, dword fs:[0x30]
mov eax, dword [eax + 0xc]
mov eax, dword [eax + 0x14]
mov eax, dword [eax]
mov eax, dword [eax]
mov eax, dword [eax + 0x10]
ret
Function at 0x10131950
Capabilities:
Access peb ldr_data

Disassembly:
mov eax, dword fs:[0x30]
mov eax, dword [eax + 0xc]
mov eax, dword [eax + 0x14]
mov eax, dword [eax]
mov eax, dword [eax + 0x10]
ret
Function at 0x101992b1
Capabilities:
Parse pe header

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

Function at 0x101a3ff0
Capabilities:
Parse pe header

Disassembly:
push ebp
mov ebp, esp
mov eax, dword [ebp + 8]
mov ecx, 0x5a4d
cmp word [eax], cx
jne 0x101a401d
mov ecx, dword [eax + 0x3c]
add ecx, eax
cmp dword [ecx], 0x4550
jne 0x101a401d
mov edx, 0x10b
xor eax, eax
cmp word [ecx + 0x18], dx
sete al
pop ebp
ret
xor eax, eax
pop ebp
ret

Function at 0x101a4529
Capabilities:
Allocate thread local storage

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push esi
push 0x101c89c8
push 0x101c89c0
push 0x101c89c8
push 0x1f
call fcn.101a4f4a
mov esi, eax
add esp, 0x10
test esi, esi
je 0x101a455d
push dword [ebp + 8]
mov ecx, esi
call dword [section..00cfg]
call esi
jmp 0x101a4563
call dword [sym.imp.KERNEL32.dll_TlsAlloc]
pop esi
pop ebp
ret 4

Function at 0x101a45a7
Capabilities:
Get thread local storage value

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push esi
push 0x101c89ec
push 0x101c89e4
push 0x101c89ec
push 0x21
call fcn.101a4f4a
mov esi, eax
add esp, 0x10
test esi, esi
je 0x101a45de
push dword [ebp + 8]
mov ecx, esi
call dword [section..00cfg]
call esi
pop esi
pop ebp
ret 4
pop esi
pop ebp
jmp dword [sym.imp.KERNEL32.dll_TlsGetValue]

Function at 0x101a45e6
Capabilities:
Set thread local storage value

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push esi
push 0x101c8a00
push 0x101c89f8
push 0x101c8a00
push 0x22
call fcn.101a4f4a
mov esi, eax
add esp, 0x10
test esi, esi
je 0x101a4620
push dword [ebp + 0xc]
mov ecx, esi
push dword [ebp + 8]
call dword [section..00cfg]
call esi
pop esi
pop ebp
ret 8
pop esi
pop ebp
jmp dword [sym.imp.KERNEL32.dll_TlsSetValue]
Function at 0x101ad19d
Capabilities:
Enumerate files on windows

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x264
mov eax, dword [0x101d3b48]
xor eax, ebp
mov dword [ebp - 4], eax
mov edx, dword [ebp + 0xc]
mov ecx, dword [ebp + 0x10]
push ebx
push esi
push edi
mov edi, dword [ebp + 8]
mov dword [ebp - 0x25c], ecx
cmp edx, edi
je 0x101ad1e8
movzx eax, word [edx]
lea ecx, [ebp - 0x255]
push eax
call fcn.101ad48f
test al, al
jne 0x101ad1e2
sub edx, 2
cmp edx, edi
jne 0x101ad1c8
mov ecx, dword [ebp - 0x25c]
movzx esi, word [edx]
cmp esi, 0x3a
jne 0x101ad20a
lea eax, [edi + 2]
cmp edx, eax
je 0x101ad20a
push ecx
xor ebx, ebx
push ebx
push ebx
push edi
call fcn.101ad0e9
add esp, 0x10
jmp 0x101ad304
push esi
lea ecx, [ebp - 0x255]
call fcn.101ad48f
sub edx, edi
movzx eax, al
sar edx, 1
inc edx
neg eax
sbb eax, eax
xor ebx, ebx
push ebx
push ebx
and eax, edx
push ebx
mov dword [ebp - 0x260], eax
lea eax, [ebp - 0x254]
push eax
push ebx
push edi
call dword [sym.imp.KERNEL32.dll_FindFirstFileExW]
mov esi, eax
cmp esi, 0xffffffff
jne 0x101ad24d
push dword [ebp - 0x25c]
jmp 0x101ad1fa
mov ebx, dword [ebp - 0x25c]
push 0x2e
mov eax, dword [ebx + 4]
sub eax, dword [ebx]
sar eax, 2
mov dword [ebp - 0x25c], eax
pop eax
cmp word [ebp - 0x228], ax
jne 0x101ad28a
cmp word [ebp - 0x226], 0
je 0x101ad2ab
cmp word [ebp - 0x226], ax
jne 0x101ad28a
cmp word [ebp - 0x224], 0
je 0x101ad2ab
push ebx
push dword [ebp - 0x260]
lea eax, [ebp - 0x228]
push edi
push eax
call fcn.101ad0e9
add esp, 0x10
mov dword [ebp - 0x264], eax
test eax, eax
jne 0x101ad2f7
lea eax, [ebp - 0x254]
push eax
push esi
call dword [sym.imp.KERNEL32.dll_FindNextFileW]
push 0x2e
test eax, eax
pop eax
jne 0x101ad264
mov eax, dword [ebx + 4]
mov edx, dword [ebx]
sub eax, edx
mov ecx, dword [ebp - 0x25c]
sar eax, 2
cmp ecx, eax
jne 0x101ad2df
push esi
call dword [sym.imp.KERNEL32.dll_FindClose]
xor eax, eax
jmp 0x101ad304
push 0x101ad4cd
sub eax, ecx
push 4
push eax
lea eax, [edx + ecx*4]
push eax
call fcn.101bc850
add esp, 0x10
jmp 0x101ad2d4
push esi
call dword [sym.imp.KERNEL32.dll_FindClose]
mov eax, dword [ebp - 0x264]
mov ecx, dword [ebp - 4]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.1017ab8f
leave
ret
Function at 0x101addbd
Capabilities:
Query environment variable

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push ecx
push ecx
push esi
call dword [sym.imp.KERNEL32.dll_GetEnvironmentStringsW]
mov esi, eax
test esi, esi
je 0x101ade5a
push ebx
push esi
call fcn.101adec0
xor ebx, ebx
sub eax, esi
push ebx
push ebx
push ebx
push ebx
sar eax, 1
push eax
push esi
push ebx
push ebx
mov dword [ebp - 8], eax
call fcn.101adcc1
add esp, 0x24
mov dword [ebp - 4], eax
test eax, eax
jne 0x101ade07
push esi
call dword [sym.imp.KERNEL32.dll_FreeEnvironmentStringsW]
xor eax, eax
jmp 0x101ade59
push edi
push eax
call fcn.101a8029
mov edi, eax
pop ecx
push ebx
test edi, edi
jne 0x101ade27
call fcn.101a6e51
pop ecx
push esi
call dword [sym.imp.KERNEL32.dll_FreeEnvironmentStringsW]
xor eax, eax
jmp 0x101ade58
push ebx
push dword [ebp - 4]
push edi
push dword [ebp - 8]
push esi
push ebx
push ebx
call fcn.101adcc1
add esp, 0x20
test eax, eax
jne 0x101ade46
push edi
call fcn.101a6e51
jmp 0x101ade4e
push ebx
call fcn.101a6e51
mov ebx, edi
pop ecx
push esi
call dword [sym.imp.KERNEL32.dll_FreeEnvironmentStringsW]
mov eax, ebx
pop edi
pop ebx
pop esi
leave
ret

Function at 0x101ade5d
Capabilities:
Query environment variable

Disassembly:
mov edi, edi
push esi
call dword [sym.imp.KERNEL32.dll_GetEnvironmentStringsW]
mov esi, eax
test esi, esi
jne 0x101ade6e
pop esi
ret
push ebx
push edi
push esi
call fcn.101adec0
mov ebx, eax
sub ebx, esi
and ebx, 0xfffffffe
push ebx
call fcn.101a8029
mov edi, eax
pop ecx
pop ecx
test edi, edi
je 0x101ade96
push ebx
push esi
push edi
call fcn.1017da50
add esp, 0xc
push 0
call fcn.101a6e51
pop ecx
push esi
call dword [sym.imp.KERNEL32.dll_FreeEnvironmentStringsW]
mov eax, edi
pop edi
pop ebx
pop esi
ret

Function at 0x101adf67
Capabilities:
Set environment variable

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
pop ebp
jmp fcn.101ae1f6
Function at 0x101b914b
Capabilities:
Get geographical location

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x18
mov eax, dword [0x101d3b48]
xor eax, ebp
mov dword [ebp - 4], eax
mov eax, dword [ebp + 0xc]
push ebx
mov ebx, dword [ebp + 0x10]
push esi
mov esi, dword [ebp + 8]
push edi
mov dword [ebp - 0x18], eax
call fcn.101a5689
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.101a5689
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 0x101b91c2
cmp word [ecx], dx
je 0x101b91c2
mov eax, dword [0x101cc80c]
push edi
dec eax
push eax
push 0x101cc6f8
call fcn.101b933b
mov eax, dword [ebp - 0x14]
add esp, 0xc
xor edx, edx
mov dword [ebp - 0x10], edx
mov eax, dword [eax]
test eax, eax
je 0x101b9235
cmp word [eax], dx
je 0x101b9235
mov eax, dword [edi]
test eax, eax
je 0x101b91e6
cmp word [eax], dx
je 0x101b91e6
lea eax, [ebp - 0x10]
push eax
call fcn.101b939c
jmp 0x101b91ef
lea eax, [ebp - 0x10]
push eax
call fcn.101b968a
cmp dword [ebp - 0x10], 0
pop ecx
jne 0x101b925f
mov eax, dword [0x101cc6f4]
push dword [ebp - 0x14]
dec eax
push eax
push 0x101cc3e8
call fcn.101b933b
add esp, 0xc
test al, al
je 0x101b925f
mov eax, dword [edi]
xor edi, edi
test eax, eax
je 0x101b922a
cmp word [eax], di
je 0x101b922a
lea eax, [ebp - 0x10]
push eax
call fcn.101b939c
pop ecx
jmp 0x101b9261
lea eax, [ebp - 0x10]
push eax
call fcn.101b968a
jmp 0x101b9227
mov eax, dword [edi]
test eax, eax
je 0x101b924c
cmp word [eax], dx
je 0x101b924c
lea eax, [ebp - 0x10]
push eax
call fcn.101b97be
pop ecx
jmp 0x101b925f
mov dword [ebp - 0x10], 0x104
call dword [sym.imp.KERNEL32.dll_GetUserDefaultLCID]
mov dword [ebp - 8], eax
mov dword [ebp - 0xc], eax
xor edi, edi
cmp dword [ebp - 0x10], 0
je 0x101b932a
lea eax, [ebp - 0x10]
push eax
lea eax, [esi + 0x100]
neg esi
sbb esi, esi
and esi, eax
push esi
call fcn.101b98ce
mov esi, eax
pop ecx
pop ecx
test esi, esi
je 0x101b932a
movzx ecx, si
push ecx
call dword [sym.imp.KERNEL32.dll_IsValidCodePage]
test eax, eax
je 0x101b932a
push 1
push dword [ebp - 0xc]
call dword [sym.imp.KERNEL32.dll_IsValidLocale]
test eax, eax
je 0x101b932a
mov eax, dword [ebp - 0x18]
test eax, eax
je 0x101b92b7
mov dword [eax], esi
mov eax, dword [ebp - 0x14]
push edi
push 0x55
add eax, 0x250
push eax
push dword [ebp - 0xc]
call fcn.101a4914
test ebx, ebx
je 0x101b9325
push edi
push 0x55
lea eax, [ebx + 0x120]
push eax
push dword [ebp - 0xc]
call fcn.101a4914
push 0x40
push ebx
push 0x1001
push dword [ebp - 0xc]
call dword [sym.imp.KERNEL32.dll_GetLocaleInfoW]
test eax, eax
je 0x101b932a
push 0x40
lea eax, [ebx + 0x80]
push eax
push 0x1002
push dword [ebp - 8]
call dword [sym.imp.KERNEL32.dll_GetLocaleInfoW]
test eax, eax
je 0x101b932a
push 0xa
push 0x10
lea ecx, [ebx + 0x100]
push ecx
push esi
call fcn.101c0844
add esp, 0x10
xor eax, eax
inc eax
jmp 0x101b932c
xor eax, eax
mov ecx, dword [ebp - 4]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.1017ab8f
leave
ret
Function at 0x101b99d4
Capabilities:
Get geographical location

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push ecx
push esi
push edi
call fcn.101a5689
mov esi, dword [ebp + 8]
mov edi, eax
push 2
lea eax, [ebp - 4]
mov ecx, esi
push eax
and ecx, 0x3ff
push 0x20000001
or ecx, 0x400
push ecx
call dword [sym.imp.KERNEL32.dll_GetLocaleInfoW]
test eax, eax
je 0x101b9a43
cmp esi, dword [ebp - 4]
je 0x101b9a3e
cmp dword [ebp + 0xc], 0
je 0x101b9a3e
mov esi, dword [edi + 0x50]
lea ecx, [esi + 2]
mov ax, word [esi]
add esi, 2
test ax, ax
jne 0x101b9a1b
push dword [edi + 0x50]
sub esi, ecx
sar esi, 1
call fcn.101b9a9d
pop ecx
xor ecx, ecx
cmp eax, esi
setne cl
mov eax, ecx
jmp 0x101b9a45
xor eax, eax
inc eax
jmp 0x101b9a45
xor eax, eax
pop edi
pop esi
leave
ret