joyce8/EMBER2024-capa huggingface dataset:
Function at 0x401160
Capabilities:
Delete file

Disassembly:
mov eax, dword [0x41d8c0]
sub esp, 0x24
test eax, eax
je 0x4011d0
push eax
call dword [sym.imp.KERNEL32.dll_GetProcessId]
push eax
push 0
call dword [sym.imp.KERNEL32.dll_GenerateConsoleCtrlEvent]
test eax, eax
jne 0x4011b6
push eax
push eax
lea eax, [esp + 8]
push eax
push 0x400
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
push 0
push 0x1300
call dword [sym.imp.KERNEL32.dll_FormatMessageA]
push str.Failed_to_send_CTRL_C_to_child_process.
call fcn.00403a4d
push dword [esp + 4]
call fcn.00403a4d
add esp, 8
push 0xffffffffffffffff
push dword [0x41d8c0]
call dword [sym.imp.KERNEL32.dll_WaitForSingleObject]
push dword [0x41d8c0]
call dword [sym.imp.KERNEL32.dll_CloseHandle]
cmp byte [0x41d8c4], 0
je 0x401226
mov eax, 0x414
mov dword [esp + 4], 0
mov word [esp + 0x14], ax
lea eax, [esp + 4]
push eax
mov dword [esp + 0xc], 3
mov dword [esp + 0x10], 0x41d8c8
mov dword [esp + 0x14], 0x416334
mov dword [esp + 0x1a], 0
mov dword [esp + 0x1e], 0
mov dword [esp + 0x22], 0x416334
call dword [sym.imp.SHELL32.dll_SHFileOperationW]
add esp, 0x24
ret
Function at 0x401230
Capabilities:
Accept command line arguments
Get common file path

Disassembly:
sub esp, 0xc90
mov eax, dword [0x41d004]
xor eax, esp
mov dword [esp + 0xc8c], eax
push ebx
mov ebx, dword [esp + 0xc9c]
xor eax, eax
push ebp
push esi
mov esi, dword [esp + 0xca0]
push edi
mov word [esi], ax
cmp word [ebx], ax
je 0x4013d5
mov ebp, dword [sym.imp.KERNEL32.dll_GetTempPathW]
mov edi, dword [esp + 0xcac]
movzx ecx, word [ebx]
cmp ecx, 0x25
jne 0x4013b0
xor ecx, ecx
test eax, eax
jne 0x401297
lea eax, [esp + 0x9c]
mov word [esp + 0x9c], cx
jmp 0x4013c8
mov word [eax], cx
lea eax, [esp + 0x9c]
push str.TEMP
push eax
call fcn.00407f44
add esp, 8
test eax, eax
jne 0x4012bc
push esi
push edi
call ebp
jmp 0x40139c
lea eax, [esp + 0x9c]
push str.PROGRAM
push eax
call fcn.00407f44
add esp, 8
test eax, eax
jne 0x4012f8
lea eax, [esp + 0x18]
push eax
call dword [sym.imp.KERNEL32.dll_GetCommandLineW]
push eax
call dword [sym.imp.SHELL32.dll_CommandLineToArgvW]
push edi
push dword [eax]
push esi
call fcn.00401100
add esp, 0xc
jmp 0x40139c
lea eax, [esp + 0x9c]
push 0x41627c
push eax
call fcn.00407f44
add esp, 8
test eax, eax
jne 0x40133a
push 0xa
push 0x80
lea eax, [esp + 0x24]
push eax
call dword [sym.imp.KERNEL32.dll_GetCurrentProcessId]
push eax
call fcn.004069f0
push edi
lea eax, [esp + 0x30]
push eax
push esi
call section..text
add esp, 0x1c
jmp 0x40139c
lea eax, [esp + 0x9c]
push str.TIME
push eax
call fcn.00407f44
add esp, 8
test eax, eax
jne 0x4013f5
lea eax, [esp + 0x10]
xorps xmm0, xmm0
push eax
movlpd qword [esp + 0x14], xmm0
call dword [sym.imp.KERNEL32.dll_GetSystemTimeAsFileTime]
push dword [esp + 0x14]
lea eax, [esp + 0x8a0]
push dword [esp + 0x14]
push str._lld
push 0x400
push eax
call fcn.00401b40
push edi
lea eax, [esp + 0x8b4]
push eax
push esi
call section..text
add esp, 0x20
cmp word [esi], 0
je 0x4013ac
add esi, 2
dec edi
cmp word [esi], 0
jne 0x4013a2
xor eax, eax
jmp 0x4013c8
test eax, eax
je 0x4013bc
mov word [eax], cx
add eax, 2
jmp 0x4013c8
cmp edi, 1
jb 0x4013f5
mov word [esi], cx
add esi, 2
dec edi
add ebx, 2
cmp word [ebx], 0
jne 0x401271
xor eax, eax
mov word [esi], ax
mov al, 1
mov ecx, dword [esp + 0xc9c]
pop edi
pop esi
pop ebp
pop ebx
xor ecx, esp
call fcn.00401b72
add esp, 0xc90
ret
xor al, al
jmp 0x4013dc

Function at 0x401480
Capabilities:
Read file on windows

Disassembly:
push ecx
push esi
mov esi, dword [esp + 0x10]
lea eax, [esp + 4]
push 0
push eax
push esi
push dword [esp + 0x18]
push dword [0x41f8c8]
call dword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
jne 0x4014b6
push 0x56
push str.static_srcWindowsOnefile.cpp
push str.bool_res
call fcn.00403767
add esp, 0xc
cmp dword [esp + 4], esi
pop esi
je 0x4014d1
push 0x57
push str.static_srcWindowsOnefile.cpp
push str.read_size__size
call fcn.00403767
add esp, 0xc
pop ecx
ret
Function at 0x4014e0
Capabilities:
Read file on windows

Disassembly:
sub esp, 8
push esi
push edi
mov edi, dword [sym.imp.KERNEL32.dll_ReadFile]
mov esi, 0x41f8d8
push 0
lea eax, [esp + 0x10]
push eax
push 2
lea eax, [esp + 0x14]
push eax
push dword [0x41f8c8]
call edi
test eax, eax
jne 0x40151e
push 0x56
push str.static_srcWindowsOnefile.cpp
push str.bool_res
call fcn.00403767
add esp, 0xc
cmp dword [esp + 0xc], 2
je 0x401539
push 0x57
push str.static_srcWindowsOnefile.cpp
push str.read_size__size
call fcn.00403767
add esp, 0xc
mov ax, word [esp + 8]
mov word [esi], ax
test ax, ax
je 0x40154b
add esi, 2
jmp 0x4014f0
pop edi
mov eax, 0x41f8d8
pop esi
add esp, 8
ret

Function at 0x401560
Capabilities:
Read file on windows

Disassembly:
sub esp, 0xc
lea eax, [esp]
push 0
push eax
push 8
lea eax, [esp + 0x10]
push eax
push dword [0x41f8c8]
call dword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
jne 0x401594
push 0x56
push str.static_srcWindowsOnefile.cpp
push str.bool_res
call fcn.00403767
add esp, 0xc
cmp dword [esp], 8
je 0x4015ae
push 0x57
push str.static_srcWindowsOnefile.cpp
push str.read_size__size
call fcn.00403767
add esp, 0xc
mov edx, dword [esp + 8]
mov eax, dword [esp + 4]
add esp, 0xc
ret
Function at 0x409173
Capabilities:
Print debug messages

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
pop ebp
jmp fcn.004090f5

Function at 0x402280
Capabilities:
Hide graphical window

Disassembly:
push ebp
mov ebp, esp
push ecx
mov eax, dword [ebp + 8]
mov dword [0x4051e6], eax
push 0
mov ecx, dword [ebp + 8]
push ecx
push 0
push 0
push 0
push 0x80000000
push 0
push 0x80000000
push 0xcf0000
push str.immortable
push str.Odios
push 0
call dword [sym.imp.USER32.dll_CreateWindowExA]
mov dword [ebp - 4], eax
cmp dword [ebp - 4], 0
jne 0x4022c8
xor eax, eax
jmp 0x4022e3
push 0
mov edx, dword [ebp - 4]
push edx
call dword [sym.imp.USER32.dll_ShowWindow]
mov eax, dword [ebp - 4]
push eax
call dword [sym.imp.USER32.dll_UpdateWindow]
mov eax, 1
mov esp, ebp
pop ebp
ret

Function at 0x403750
Capabilities:
Accept command line arguments
Terminate process

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x54
call fcn.00403880
push 0x405004
push section..data
call fcn.00403850
add esp, 8
mov dword [ebp - 0x1c], 0
lea eax, [ebp - 0x48]
push eax
call dword [sym.imp.KERNEL32.dll_GetStartupInfoA]
call dword [sym.imp.KERNEL32.dll_GetCommandLineA]
mov dword [ebp - 0x4c], eax
mov ecx, dword [ebp - 0x4c]
movsx edx, byte [ecx]
cmp edx, 0x22
jne 0x4037d1
mov eax, dword [ebp - 0x4c]
add eax, 1
mov dword [ebp - 0x4c], eax
mov ecx, dword [ebp - 0x4c]
movsx edx, byte [ecx]
test edx, edx
je 0x4037bb
mov eax, dword [ebp - 0x4c]
movsx ecx, byte [eax]
cmp ecx, 0x22
je 0x4037bb
mov edx, dword [ebp - 0x4c]
add edx, 1
mov dword [ebp - 0x4c], edx
jmp 0x40379b
mov eax, dword [ebp - 0x4c]
movsx ecx, byte [eax]
cmp ecx, 0x22
jne 0x4037cf
mov edx, dword [ebp - 0x4c]
add edx, 1
mov dword [ebp - 0x4c], edx
jmp 0x4037e7
mov eax, dword [ebp - 0x4c]
movsx ecx, byte [eax]
cmp ecx, 0x20
jle 0x4037e7
mov edx, dword [ebp - 0x4c]
add edx, 1
mov dword [ebp - 0x4c], edx
jmp 0x4037d1
mov eax, dword [ebp - 0x4c]
movsx ecx, byte [eax]
test ecx, ecx
je 0x403807
mov edx, dword [ebp - 0x4c]
movsx eax, byte [edx]
cmp eax, 0x20
jg 0x403807
mov ecx, dword [ebp - 0x4c]
add ecx, 1
mov dword [ebp - 0x4c], ecx
jmp 0x4037e7
mov edx, dword [ebp - 0x1c]
and edx, 1
je 0x403818
movzx eax, word [ebp - 0x18]
mov dword [ebp - 0x54], eax
jmp 0x40381f
mov dword [ebp - 0x54], 0xa
mov ecx, dword [ebp - 0x54]
push ecx
mov edx, dword [ebp - 0x4c]
push edx
push 0
push 0
call dword [sym.imp.KERNEL32.dll_GetModuleHandleA]
push eax
call section..text
mov dword [ebp - 0x50], eax
call fcn.004038f0
mov eax, dword [ebp - 0x50]
push eax
call dword [sym.imp.KERNEL32.dll_ExitProcess]
Function at 0x10003bf6
Capabilities:
Read file on windows

Disassembly:
push ebp
mov ebp, esp
push ecx
mov eax, dword [ebp + 0x10]
push ebx
mov ebx, ecx
push edi
mov edi, dword [ebp + 0xc]
test eax, eax
jg 0x10003c17
jl 0x10003c0e
test edi, edi
jne 0x10003c17
xor eax, eax
xor edx, edx
jmp 0x10003cd8
cmp dword [ebx + 0x38], 0
je 0x10003c2c
push eax
push edi
push dword [ebp + 8]
call fcn.10003cde
jmp 0x10003cd8
mov eax, dword [ebx + 0x1c]
push esi
mov esi, edi
mov ecx, dword [eax]
test ecx, ecx
je 0x10003c73
mov eax, dword [ebx + 0x2c]
mov eax, dword [eax]
mov dword [ebp - 4], eax
test eax, eax
je 0x10003c73
cmp eax, edi
jb 0x10003c4d
mov eax, edi
mov dword [ebp - 4], edi
push eax
push ecx
push dword [ebp + 8]
call fcn.100060c0
mov ecx, dword [ebp - 4]
add esp, 0xc
mov eax, dword [ebp + 8]
sub esi, ecx
add eax, ecx
mov dword [ebp - 4], eax
mov eax, dword [ebx + 0x2c]
sub dword [eax], ecx
mov eax, dword [ebx + 0x1c]
add dword [eax], ecx
jmp 0x10003c79
mov eax, dword [ebp + 8]
mov dword [ebp - 4], eax
cmp dword [ebx + 0x4c], 0
je 0x10003ccd
mov ecx, ebx
call fcn.10003400
mov ecx, dword [ebp - 4]
mov edx, esi
mov eax, 0xfff
cmp esi, eax
jbe 0x10003cb8
push dword [ebx + 0x4c]
push eax
push 1
push ecx
call fcn.1000a323
mov ecx, dword [ebp - 4]
sub esi, eax
add ecx, eax
add esp, 0x10
mov dword [ebp - 4], ecx
mov edx, esi
cmp eax, 0xfff
jne 0x10003ccd
jmp 0x10003c8b
test edx, edx
je 0x10003ccd
push dword [ebx + 0x4c]
push esi
push 1
push ecx
call fcn.1000a323
add esp, 0x10
sub esi, eax
mov edx, dword [ebp + 0x10]
sub edi, esi
mov eax, edi
sbb edx, 0
pop esi
pop edi
pop ebx
leave
ret 0xc

Function at 0x1000c328
Capabilities:
Parse pe header

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

Function at 0x1000f730
Capabilities:
Allocate thread local storage

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push esi
push 0x1001e2c8
push 0x1001e2c0
push str.FlsAlloc
push 0x1f
call fcn.1000f5f8
mov esi, eax
add esp, 0x10
test esi, esi
je 0x1000f764
push dword [ebp + 8]
mov ecx, esi
call dword [0x1001b130]
call esi
jmp 0x1000f76a
call dword [sym.imp.KERNEL32.dll_TlsAlloc]
pop esi
pop ebp
ret 4

Function at 0x1000f7ae
Capabilities:
Get thread local storage value

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push esi
push 0x1001e2d8
push 0x1001e2d0
push str.FlsGetValue
push 0x21
call fcn.1000f5f8
mov esi, eax
add esp, 0x10
test esi, esi
je 0x1000f7e5
push dword [ebp + 8]
mov ecx, esi
call dword [0x1001b130]
call esi
pop esi
pop ebp
ret 4
pop esi
pop ebp
jmp dword [sym.imp.KERNEL32.dll_TlsGetValue]
Function at 0x1000f7ed
Capabilities:
Set thread local storage value

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push esi
push 0x1001e2e0
push 0x1001e2d8
push str.FlsSetValue
push 0x22
call fcn.1000f5f8
mov esi, eax
add esp, 0x10
test esi, esi
je 0x1000f827
push dword [ebp + 0xc]
mov ecx, esi
push dword [ebp + 8]
call dword [0x1001b130]
call esi
pop esi
pop ebp
ret 8
pop esi
pop ebp
jmp dword [sym.imp.KERNEL32.dll_TlsSetValue]
Function at 0x1001111c
Capabilities:
Read file on windows

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
mov eax, 0x101c
call fcn.10005a20
mov eax, dword [0x10025014]
xor eax, ebp
mov dword [ebp - 4], eax
mov eax, dword [ebp + 0x14]
push ebx
push dword [ebp + 8]
mov dword [ebp - 0x100c], eax
call fcn.1000fd63
pop ecx
mov ecx, dword [ebp + 8]
mov ebx, eax
cmp dword [ecx + 8], 0
jne 0x1001115e
mov eax, dword [ebp + 0xc]
mov edx, dword [ebp + 0x10]
jmp 0x100112ba
mov eax, dword [ecx]
sub eax, dword [ecx + 4]
push esi
push edi
push 0
cdq
push 2
push edx
push eax
call fcn.1001a450
push dword [ebp - 0x100c]
mov ecx, ebx
mov dword [ebp - 0x1008], eax
mov esi, ebx
mov dword [ebp - 0x1018], edx
and ecx, 0x3f
sar esi, 6
imul edi, ecx, 0x38
push 0
mov eax, dword [esi*4 + 0x100268e0]
push dword [eax + edi + 0x24]
push dword [eax + edi + 0x20]
push ebx
call fcn.10012119
mov ecx, dword [esi*4 + 0x100268e0]
add esp, 0x14
mov dword [ebp - 0x1010], eax
mov eax, edx
mov edx, dword [ebp - 0x1010]
mov dword [ebp - 0x101c], eax
cmp edx, dword [ecx + edi + 0x20]
jne 0x100112b3
cmp eax, dword [ecx + edi + 0x24]
jne 0x100112b3
push 0
lea eax, [ebp - 0x1014]
push eax
push 0x1000
lea eax, [ebp - 0x1004]
push eax
push dword [ecx + edi + 0x18]
call dword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
je 0x100112b3
push dword [ebp - 0x100c]
push 0
push dword [ebp + 0x10]
push dword [ebp + 0xc]
push ebx
call fcn.10012119
add esp, 0x14
test edx, edx
jl 0x100112b3
jg 0x10011229
test eax, eax
jb 0x100112b3
mov ebx, dword [ebp - 0x1018]
mov eax, dword [ebp - 0x1014]
test ebx, ebx
jg 0x100112b3
jl 0x10011243
cmp dword [ebp - 0x1008], eax
ja 0x100112b3
lea edi, [ebp - 0x1004]
xor edx, edx
add edi, eax
lea ecx, [ebp - 0x1004]
xor esi, esi
cmp dword [ebp - 0x1008], edx
jne 0x10011261
test ebx, ebx
je 0x1001129a
cmp ecx, edi
jae 0x1001129a
mov al, byte [ecx]
cmp al, 0xd
jne 0x1001127b
lea eax, [edi - 1]
cmp ecx, eax
jae 0x10011287
cmp byte [ecx + 1], 0xa
jne 0x10011287
inc ecx
jmp 0x10011287
movzx eax, al
movsx eax, byte [eax + 0x10025278]
add ecx, eax
add esi, 1
adc edx, 0
inc ecx
cmp esi, dword [ebp - 0x1008]
jne 0x10011261
cmp edx, ebx
jne 0x10011261
lea eax, [ebp - 0x1004]
sub ecx, eax
mov eax, ecx
cdq
add eax, dword [ebp - 0x1010]
adc edx, dword [ebp - 0x101c]
jmp 0x100112b8
or edx, 0xffffffff
mov eax, edx
pop edi
pop esi
mov ecx, dword [ebp - 4]
xor ecx, ebp
pop ebx
call fcn.10004b84
leave
ret
Function at 0x100115b1
Capabilities:
Read file on windows

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x18
mov eax, dword [ebp + 8]
mov ecx, eax
push ebx
mov ebx, dword [ebp + 0xc]
and eax, 0x3f
sar ecx, 6
push esi
push edi
imul edi, eax, 0x38
mov eax, dword [ecx*4 + 0x100268e0]
mov dword [ebp - 0xc], ecx
mov ecx, dword [edi + eax + 0x18]
mov dword [ebp - 0x14], ecx
mov ecx, dword [ebp + 0x10]
test ecx, ecx
je 0x100115f1
cmp byte [ebx], 0xa
jne 0x100115f1
or byte [edi + eax + 0x28], 4
jmp 0x100115f6
and byte [edi + eax + 0x28], 0xfb
add ecx, ebx
mov eax, ebx
mov dword [ebp - 0x10], ecx
mov esi, ebx
mov dword [ebp - 8], eax
cmp ebx, ecx
jae 0x100116f5
mov dl, byte [eax]
cmp dl, 0x1a
je 0x100116d8
inc eax
cmp dl, 0xd
je 0x10011622
mov dword [ebp - 8], eax
mov byte [esi], dl
jmp 0x10011648
cmp eax, ecx
jae 0x10011656
mov cl, byte [eax]
xor eax, eax
cmp cl, 0xa
sete al
inc eax
add dword [ebp - 8], eax
cmp cl, 0xa
sete al
dec al
and al, 3
add al, 0xa
mov byte [esi], al
mov eax, dword [ebp - 8]
mov ecx, dword [ebp - 0x10]
xor edx, edx
inc edx
add esi, edx
cmp eax, ecx
jb 0x1001160a
jmp 0x100116f5
push 0
lea eax, [ebp - 0x10]
push eax
push 1
lea eax, [ebp - 1]
push eax
push dword [ebp - 0x14]
call dword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
je 0x100116d3
cmp dword [ebp - 0x10], 0
je 0x100116d3
mov ecx, dword [ebp - 0xc]
mov eax, dword [ecx*4 + 0x100268e0]
test byte [eax + edi + 0x28], 0x48
je 0x100116ad
mov dl, byte [ebp - 1]
lea eax, [esi + 1]
mov dword [ebp - 0x14], eax
cmp dl, 0xa
jne 0x10011698
mov byte [esi], dl
jmp 0x100116a9
mov byte [esi], 0xd
mov eax, dword [ecx*4 + 0x100268e0]
mov byte [eax + edi + 0x2a], dl
mov eax, dword [ebp - 0x14]
mov esi, eax
jmp 0x100116f5
cmp byte [ebp - 1], 0xa
jne 0x100116bc
cmp esi, ebx
jne 0x100116bc
mov byte [esi], 0xa
jmp 0x100116f4
push 1
push 0xffffffffffffffff
push 0xffffffffffffffff
push dword [ebp + 8]
call fcn.10012137
add esp, 0x10
cmp byte [ebp - 1], 0xa
je 0x100116f5
mov byte [esi], 0xd
jmp 0x100116f4
mov ecx, dword [ebp - 0xc]
mov ecx, dword [ecx*4 + 0x100268e0]
mov al, byte [ecx + edi + 0x28]
test al, 0x40
jne 0x100116f2
or al, 2
mov byte [ecx + edi + 0x28], al
jmp 0x100116f5
mov byte [esi], dl
inc esi
sub esi, ebx
pop edi
mov eax, esi
pop esi
pop ebx
leave
ret
Function at 0x100116fe
Capabilities:
Read file on windows

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x1c
mov eax, dword [ebp + 8]
mov ecx, eax
push ebx
mov ebx, dword [ebp + 0xc]
and eax, 0x3f
push esi
sar ecx, 6
push edi
imul edi, eax, 0x38
mov dword [ebp - 8], ecx
mov eax, dword [ecx*4 + 0x100268e0]
push 0xa
pop edx
mov dword [ebp - 0x18], edx
mov ecx, dword [eax + edi + 0x18]
mov dword [ebp - 0x1c], ecx
mov ecx, dword [ebp + 0x10]
test ecx, ecx
je 0x10011744
cmp word [ebx], dx
jne 0x10011744
or byte [eax + edi + 0x28], 4
jmp 0x10011749
and byte [eax + edi + 0x28], 0xfb
lea edx, [ebx + ecx*2]
mov eax, ebx
mov dword [ebp - 0xc], edx
mov esi, ebx
mov dword [ebp - 4], eax
cmp ebx, edx
jae 0x100118ac
mov dword [ebp - 0x10], 0xd
movzx ecx, word [eax]
mov edx, ecx
mov dword [ebp - 0x14], edx
mov edx, dword [ebp - 0xc]
cmp ecx, 0x1a
je 0x1001188c
add eax, 2
cmp cx, word [ebp - 0x10]
je 0x1001178a
mov dword [ebp - 4], eax
mov word [esi], cx
jmp 0x100117c0
cmp eax, edx
jae 0x100117ce
movzx eax, word [eax]
xor ecx, ecx
cmp ax, word [ebp - 0x18]
mov edx, eax
push 0xa
sete cl
xor eax, eax
lea ecx, [ecx*2 + 2]
add dword [ebp - 4], ecx
pop ecx
cmp dx, cx
mov edx, dword [ebp - 0xc]
sete al
dec eax
and eax, 3
add eax, ecx
mov word [esi], ax
mov eax, dword [ebp - 4]
push 2
pop ecx
add esi, ecx
cmp eax, edx
jb 0x10011765
jmp 0x100118ac
push 0
lea eax, [ebp - 0x18]
push eax
push 2
lea eax, [ebp - 4]
push eax
push dword [ebp - 0x1c]
call dword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
je 0x10011887
cmp dword [ebp - 0x18], 0
je 0x10011887
mov edx, dword [ebp - 8]
push 0xa
mov eax, dword [edx*4 + 0x100268e0]
test byte [eax + edi + 0x28], 0x48
je 0x1001185d
lea eax, [esi + 2]
mov dword [ebp - 0x1c], eax
mov ax, word [ebp - 4]
pop ecx
mov word [ebp - 2], ax
cmp ax, cx
jne 0x10011821
mov word [esi], cx
jmp 0x10011858
push 0xd
pop ecx
mov word [esi], cx
movzx ecx, ax
mov eax, dword [edx*4 + 0x100268e0]
mov dx, word [ebp - 2]
shr ecx, 8
push 0xa
mov byte [eax + edi + 0x2a], dl
mov edx, dword [ebp - 8]
mov eax, dword [edx*4 + 0x100268e0]
mov byte [eax + edi + 0x2b], cl
mov eax, dword [edx*4 + 0x100268e0]
pop ecx
mov byte [eax + edi + 0x2c], cl
mov esi, dword [ebp - 0x1c]
jmp 0x100118ac
pop eax
cmp word [ebp - 4], ax
jne 0x1001186d
cmp esi, ebx
jne 0x1001186d
mov word [esi], ax
jmp 0x100118a9
push 1
push 0xffffffffffffffff
push 0xfffffffffffffffe
push dword [ebp + 8]
call fcn.10012137
add esp, 0x10
push 0xa
pop eax
cmp word [ebp - 4], ax
je 0x100118ac
push 0xd
pop eax
jmp 0x10011868
mov edx, dword [ebp - 8]
mov edx, dword [edx*4 + 0x100268e0]
mov al, byte [edx + edi + 0x28]
test al, 0x40
jne 0x100118a6
or al, 2
mov byte [edx + edi + 0x28], al
jmp 0x100118ac
mov word [esi], cx
add esi, 2
sub esi, ebx
and esi, 0xfffffffe
pop edi
mov eax, esi
pop esi
pop ebx
leave
ret
Function at 0x100153ef
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 0x1001548c
push ebx
push esi
call fcn.100153b8
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.1001418d
add esp, 0x24
mov dword [ebp - 4], eax
test eax, eax
jne 0x10015439
push esi
call dword [sym.imp.KERNEL32.dll_FreeEnvironmentStringsW]
xor eax, eax
jmp 0x1001548b
push edi
push eax
call fcn.10012318
mov edi, eax
pop ecx
push ebx
test edi, edi
jne 0x10015459
call fcn.1000d5a2
pop ecx
push esi
call dword [sym.imp.KERNEL32.dll_FreeEnvironmentStringsW]
xor eax, eax
jmp 0x1001548a
push ebx
push dword [ebp - 4]
push edi
push dword [ebp - 8]
push esi
push ebx
push ebx
call fcn.1001418d
add esp, 0x20
test eax, eax
jne 0x10015478
push edi
call fcn.1000d5a2
jmp 0x10015480
push ebx
call fcn.1000d5a2
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 0x10017709
Capabilities:
Get geographical location

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push ecx
push esi
push edi
call fcn.1000d946
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 0x10017778
cmp esi, dword [ebp - 4]
je 0x10017773
cmp dword [ebp + 0xc], 0
je 0x10017773
mov esi, dword [edi + 0x50]
lea ecx, [esi + 2]
mov ax, word [esi]
add esi, 2
test ax, ax
jne 0x10017750
push dword [edi + 0x50]
sub esi, ecx
sar esi, 1
call fcn.1001725b
pop ecx
xor ecx, ecx
cmp eax, esi
setne cl
mov eax, ecx
jmp 0x1001777a
xor eax, eax
inc eax
jmp 0x1001777a
xor eax, eax
pop edi
pop esi
leave
ret
Function at 0x100177df
Capabilities:
Get geographical location

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x18
mov eax, dword [0x10025014]
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.1000d946
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.1000d946
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 0x10017856
cmp word [ecx], dx
je 0x10017856
mov eax, dword [0x1001e924]
push edi
dec eax
push eax
push 0x1001e810
call fcn.1001777e
mov eax, dword [ebp - 0x14]
add esp, 0xc
xor edx, edx
mov dword [ebp - 0x10], edx
mov eax, dword [eax]
test eax, eax
je 0x100178c9
cmp word [eax], dx
je 0x100178c9
mov eax, dword [edi]
test eax, eax
je 0x1001787a
cmp word [eax], dx
je 0x1001787a
lea eax, [ebp - 0x10]
push eax
call fcn.10017161
jmp 0x10017883
lea eax, [ebp - 0x10]
push eax
call fcn.100171fc
cmp dword [ebp - 0x10], 0
pop ecx
jne 0x100178f3
mov eax, dword [0x1001e80c]
push dword [ebp - 0x14]
dec eax
push eax
push 0x1001e500
call fcn.1001777e
add esp, 0xc
test al, al
je 0x100178f3
mov eax, dword [edi]
xor edi, edi
test eax, eax
je 0x100178be
cmp word [eax], di
je 0x100178be
lea eax, [ebp - 0x10]
push eax
call fcn.10017161
pop ecx
jmp 0x100178f5
lea eax, [ebp - 0x10]
push eax
call fcn.100171fc
jmp 0x100178bb
mov eax, dword [edi]
test eax, eax
je 0x100178e0
cmp word [eax], dx
je 0x100178e0
lea eax, [ebp - 0x10]
push eax
call fcn.10017116
pop ecx
jmp 0x100178f3
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 0x100179be
lea eax, [ebp - 0x10]
push eax
lea eax, [esi + 0x100]
neg esi
sbb esi, esi
and esi, eax
push esi
call fcn.10017603
mov esi, eax
pop ecx
pop ecx
test esi, esi
je 0x100179be
movzx ecx, si
push ecx
call dword [sym.imp.KERNEL32.dll_IsValidCodePage]
test eax, eax
je 0x100179be
push 1
push dword [ebp - 0xc]
call dword [sym.imp.KERNEL32.dll_IsValidLocale]
test eax, eax
je 0x100179be
mov eax, dword [ebp - 0x18]
test eax, eax
je 0x1001794b
mov dword [eax], esi
mov eax, dword [ebp - 0x14]
push edi
push 0x55
add eax, 0x250
push eax
push dword [ebp - 0xc]
call fcn.1000f92d
test ebx, ebx
je 0x100179b9
push edi
push 0x55
lea eax, [ebx + 0x120]
push eax
push dword [ebp - 0xc]
call fcn.1000f92d
push 0x40
push ebx
push 0x1001
push dword [ebp - 0xc]
call dword [sym.imp.KERNEL32.dll_GetLocaleInfoW]
test eax, eax
je 0x100179be
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 0x100179be
push 0xa
push 0x10
lea ecx, [ebx + 0x100]
push ecx
push esi
call fcn.10018c34
add esp, 0x10
xor eax, eax
inc eax
jmp 0x100179c0
xor eax, eax
mov ecx, dword [ebp - 4]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.10004b84
leave
ret
Function at 0x1001a410
Capabilities:
Parse pe header

Disassembly:
push ebp
mov ebp, esp
mov eax, dword [ebp + 8]
mov ecx, 0x5a4d
cmp word [eax], cx
jne 0x1001a43d
mov ecx, dword [eax + 0x3c]
add ecx, eax
cmp dword [ecx], 0x4550
jne 0x1001a43d
mov edx, 0x10b
xor eax, eax
cmp word [ecx + 0x18], dx
sete al
pop ebp
ret
xor eax, eax
pop ebp
ret
Function at 0x438cb0
Capabilities:
Encode data using xor

Disassembly:
sub esp, 4
mov dword [esp], 0x438a14
pop ebx
dec ecx
sub edi, 1
mov edi, ecx
call fcn.00438cf2
inc ecx
xor dword [esi], ebx
add edi, 0x4671ae6c
add edi, edi
add esi, 1
add ecx, 0xe773ab8a
sub ecx, edi
cmp esi, edx
jne fcn.00438cb0
add edi, 1
mov edi, edi
or edi, ecx
ret