joyce8/EMBER2024-capa huggingface dataset:
Function at 0x100419a0
Capabilities:
Query environment variable

Disassembly:
mov eax, dword [0x10126d44]
push esi
cmp eax, 0xffffffff
push edi
jne 0x10041ae0
call fcn.10046780
push str.JSIMD_FORCEMMX
mov dword [0x10126d44], eax
call sub.MSVCRT.dll_getenv
add esp, 4
test eax, eax
je 0x100419e4
mov esi, eax
mov edi, 0x10100100
mov ecx, 2
xor eax, eax
repe cmpsb byte [esi], byte es:[edi]
jne 0x100419e4
and dword [0x10126d44], 1
push str.JSIMD_FORCE3DNOW
call sub.MSVCRT.dll_getenv
add esp, 4
test eax, eax
je 0x10041a0e
mov edi, 0x10100100
mov esi, eax
mov ecx, 2
xor edx, edx
repe cmpsb byte [esi], byte es:[edi]
jne 0x10041a0e
and dword [0x10126d44], 3
push str.JSIMD_FORCESSE
call sub.MSVCRT.dll_getenv
add esp, 4
test eax, eax
je 0x10041a38
mov esi, eax
mov edi, 0x10100100
mov ecx, 2
xor eax, eax
repe cmpsb byte [esi], byte es:[edi]
jne 0x10041a38
and dword [0x10126d44], 5
push str.JSIMD_FORCESSE2
call sub.MSVCRT.dll_getenv
add esp, 4
test eax, eax
je 0x10041a62
mov edi, 0x10100100
mov esi, eax
mov ecx, 2
xor edx, edx
repe cmpsb byte [esi], byte es:[edi]
jne 0x10041a62
and dword [0x10126d44], 8
push str.JSIMD_FORCEAVX2
call sub.MSVCRT.dll_getenv
add esp, 4
test eax, eax
je 0x10041a8f
mov esi, eax
mov edi, 0x10100100
mov ecx, 2
xor eax, eax
repe cmpsb byte [esi], byte es:[edi]
jne 0x10041a8f
and dword [0x10126d44], 0x80
push str.JSIMD_FORCENONE
call sub.MSVCRT.dll_getenv
add esp, 4
test eax, eax
je 0x10041ab8
mov edi, 0x10100100
mov esi, eax
mov ecx, 2
xor edx, edx
repe cmpsb byte [esi], byte es:[edi]
jne 0x10041ab8
mov dword [0x10126d44], edx
push str.JSIMD_NOHUFFENC
call sub.MSVCRT.dll_getenv
add esp, 4
test eax, eax
je 0x10041ae0
mov esi, eax
mov edi, 0x10100100
mov ecx, 2
xor eax, eax
repe cmpsb byte [esi], byte es:[edi]
jne 0x10041ae0
mov dword [0x10126d48], eax
pop edi
pop esi
ret
Function at 0x10060ff0
Capabilities:
Get system information on windows

Disassembly:
sub esp, 0x24
push esi
mov esi, dword [esp + 0x2c]
cmp byte [esi + 2], 1
je 0x10061008
mov eax, 0xfffffffc
pop esi
add esp, 0x24
ret
mov dword [esi + 4], 0x10305
mov dword [esi + 8], str.xvid_1.3.5
call fcn.10060f10
mov dword [esi + 0xc], eax
lea eax, [esp + 4]
push eax
mov dword [esi + 0x10], 0
call dword [sym.imp.KERNEL32.dll_GetSystemInfo]
mov ecx, dword [esp + 0x18]
xor eax, eax
mov dword [esi + 0x10], ecx
pop esi
add esp, 0x24
ret

Function at 0x10078970
Capabilities:
Enumerate pe sections

Disassembly:
mov edx, dword [esp + 0x14]
mov eax, dword [esp + 0x18]
push edi
mov edi, 1
sub edi, edx
test eax, eax
jbe 0x10078a5c
mov ecx, dword [esp + 0xc]
push ebx
push ebp
push esi
mov esi, dword [esp + 0x1c]
mov dword [esp + 0x24], eax
mov eax, dword [esp + 0x14]
xor edx, edx
xor ebx, ebx
mov dl, byte [ecx]
mov bl, byte [esi]
mov ebp, edi
add ebp, edx
xor edx, edx
add ebx, ebp
mov ebp, edi
sar ebx, 1
mov byte [eax], bl
mov dl, byte [ecx + 1]
xor ebx, ebx
add ebp, edx
mov bl, byte [esi + 1]
xor edx, edx
add ebx, ebp
mov ebp, edi
sar ebx, 1
mov byte [eax + 1], bl
mov dl, byte [ecx + 2]
xor ebx, ebx
add ebp, edx
mov bl, byte [esi + 2]
xor edx, edx
add ebx, ebp
mov ebp, edi
sar ebx, 1
mov byte [eax + 2], bl
mov dl, byte [ecx + 3]
xor ebx, ebx
add ebp, edx
mov bl, byte [esi + 3]
xor edx, edx
add ebx, ebp
mov ebp, edi
sar ebx, 1
mov byte [eax + 3], bl
mov dl, byte [ecx + 4]
xor ebx, ebx
add ebp, edx
mov bl, byte [esi + 4]
xor edx, edx
add ebx, ebp
mov ebp, edi
sar ebx, 1
mov byte [eax + 4], bl
mov dl, byte [ecx + 5]
xor ebx, ebx
add ebp, edx
mov bl, byte [esi + 5]
xor edx, edx
add ebx, ebp
mov ebp, edi
sar ebx, 1
mov byte [eax + 5], bl
mov dl, byte [ecx + 6]
xor ebx, ebx
add ebp, edx
mov bl, byte [esi + 6]
xor edx, edx
add ebx, ebp
mov ebp, edi
sar ebx, 1
mov byte [eax + 6], bl
mov dl, byte [ecx + 7]
xor ebx, ebx
add ebp, edx
mov bl, byte [esi + 7]
mov edx, dword [esp + 0x20]
add ebx, ebp
add ecx, edx
sar ebx, 1
mov byte [eax + 7], bl
add eax, edx
add esi, edx
mov edx, dword [esp + 0x24]
dec edx
mov dword [esp + 0x24], edx
jne 0x1007899b
pop esi
pop ebp
pop ebx
pop edi
ret
Function at 0x1008a4a0
Capabilities:
Encode data using xor

Disassembly:
push ecx
mov eax, dword [esp + 0xc]
mov ecx, dword [esp + 8]
mov edx, dword [esp + 0x10]
push ebx
lea eax, [eax + eax*2]
push ebp
xor ebp, ebp
push esi
lea eax, [eax + eax*4]
push edi
mov dword [esp + 0x10], ebp
lea ecx, [ecx + eax*2 + 0x20]
mov ax, word [edx]
imul ax, word [esp + 0x24]
cmp ax, 0xf800
mov word [ecx], ax
jge 0x1008a4da
mov eax, 0xfffff800
jmp 0x1008a4ea
cmp ax, 0x7ff
jle 0x1008a4e7
mov eax, 0x7ff
jmp 0x1008a4ea
movsx eax, ax
mov edi, edx
mov word [ecx], ax
lea esi, [edx + 0x10]
lea eax, [ecx + 2]
sub edi, ecx
mov dword [esp + 0x20], esi
mov ecx, 7
mov bx, word [edi + eax]
add esi, 0x10
mov word [eax], bx
mov bx, word [esi - 0x10]
mov word [eax + 0xe], bx
add eax, 2
dec ecx
jne 0x1008a500
mov edi, dword [esp + 0x28]
mov ecx, dword [esp + 0x18]
mov esi, 1
mov ax, word [edi]
sub word [edx], ax
mov eax, dword [esp + 0x1c]
cmp dword [ecx + eax*4 + 0xd4], esi
jne 0x1008a582
mov ebx, edx
lea esi, [edi + 2]
sub ebx, edi
mov edi, 7
mov cx, word [ebx + esi]
add esi, 2
movsx eax, cx
cdq
xor eax, edx
mov dword [esp + 0x18], ecx
sub cx, word [esi - 2]
sub eax, edx
add ebp, eax
movsx eax, cx
cdq
xor eax, edx
mov word [esi - 2], cx
sub eax, edx
mov edx, dword [esp + 0x10]
add edx, eax
dec edi
mov dword [esp + 0x10], edx
jne 0x1008a544
pop edi
mov eax, ebp
mov ecx, edx
pop esi
pop ebp
sub eax, ecx
pop ebx
pop ecx
ret
mov ebx, dword [esp + 0x20]
mov dx, word [ebx]
add ebx, 0x10
mov cx, dx
mov dword [esp + 0x18], edx
movsx eax, cx
sub cx, word [edi + esi*2]
cdq
xor eax, edx
mov word [edi + esi*2], cx
sub eax, edx
add ebp, eax
movsx eax, cx
cdq
xor eax, edx
sub eax, edx
mov edx, dword [esp + 0x10]
add edx, eax
inc esi
cmp esi, 8
mov dword [esp + 0x10], edx
jb 0x1008a586
pop edi
mov eax, ebp
mov ecx, edx
pop esi
pop ebp
sub eax, ecx
pop ebx
pop ecx
ret
Function at 0x40993c
Capabilities:
Contain obfuscated stackstrings

Disassembly:
mov byte [ebp - 0x5b], 0x35
mov byte [ebp - 0x5a], 0x41
call fcn.0040954d
push eax
push esi
push dword [ebp + 8]
call fcn.00409502
mov dword [ebp - 0xbc], eax
lea eax, [ebp - 0x2c]
mov byte [ebp - 0x2c], bl
push eax
mov byte [ebp - 0x2b], bl
mov byte [ebp - 0x2a], 0xd4
mov byte [ebp - 0x29], bl
mov byte [ebp - 0x28], 0x67
mov byte [ebp - 0x27], 0x44
mov byte [ebp - 0x26], 0x4a
mov byte [ebp - 0x25], 0x4f
mov byte [ebp - 0x24], 0x67
mov byte [ebp - 0x23], 0x42
mov byte [ebp - 0x22], 0x49
mov byte [ebp - 0x21], 0x59
mov byte [ebp - 0x20], 0x4a
mov byte [ebp - 0x1f], 0x59
invalid
inc ebp
invalid

Function at 0x409c6d
Capabilities:
Inspect section memory permissions

Disassembly:
dec ebp
sbb byte [ebx], bh
sal dword [esp + eax - 0x80], cl
or al, 8
add dword [ecx], edi
pop ebp
or byte [esp + eax - 0x80], dh
or al, 8
add bh, byte [ecx]
pop ebp
adc byte [ebp + eax + 3], dh
enter 0x980, 4

Function at 0x409d3d
Capabilities:
Contain obfuscated stackstrings

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x7ec
push ebx
push esi
push edi
invalid
invalid

Function at 0x409d4b
Capabilities:
Contain obfuscated stackstrings

Disassembly:
idiv edi
inc ebx
clc
and byte [ebp - 0x354], 0
and byte [ebp - 0x353], 0
mov byte [ebp - 0x352], 0xda
and byte [ebp - 0x351], 0
mov byte [ebp - 0x350], 0x62
mov byte [ebp - 0x34f], 0x40
mov byte [ebp - 0x34e], 0x51
mov byte [ebp - 0x34d], 0x75
mov byte [ebp - 0x34c], 0x57
mov byte [ebp - 0x34b], 0x4a
mov byte [ebp - 0x34a], 0x46
mov byte [ebp - 0x349], 0x40
mov byte [ebp - 0x348], 0x56
mov byte [ebp - 0x347], 0x56
mov byte [ebp - 0x346], 0x6d
mov byte [ebp - 0x345], 0x40
mov byte [ebp - 0x344], 0x44
mov byte [ebp - 0x343], 0x55
mov byte [ebp - 0x342], 0x25
lea eax, [ebp - 0x354]
push eax
Function at 0x40a0cd
Capabilities:
Contain obfuscated stackstrings

Disassembly:
inc dword [eax - 0x5235b]
inc dword [eax]
and byte [ebp - 0x523], 0
mov byte [ebp - 0x522], 0x15
and byte [ebp - 0x521], 0
mov byte [ebp - 0x520], 0xa2
mov byte [ebp - 0x51f], 0x8f
mov byte [ebp - 0x51e], 0x8b
mov byte [ebp - 0x51d], 0x9a
mov byte [ebp - 0x51c], 0xac
mov byte [ebp - 0x51b], 0x98
mov byte [ebp - 0x51a], 0x8f
mov byte [ebp - 0x519], 0x8f
mov byte [ebp - 0x518], 0xea
lea eax, [ebp - 0x524]
push eax
call fcn.0040954d
pop ecx
push eax
push dword [ebp + 0x18]
push dword [ebp + 0x14]
call fcn.00409502
add esp, 0xc
mov dword [ebp - 0x39c], eax
call fcn.0040953d
invalid

Function at 0x40a20a
Capabilities:
Contain obfuscated stackstrings

Disassembly:
mov byte [ebp - 0x544], 1
cmp dword [ebp - 0x398], 0
je 0x40a231
cmp dword [ebp - 0x398], 0
je 0x40a3fb
cmp dword [ebp + 0xc], 1
je 0x40a3fb
cmp dword [ebp + 0xc], 8
jne 0x40a3c3
and byte [ebp - 0x6b8], 0
and byte [ebp - 0x6b7], 0
mov byte [ebp - 0x6b6], 0x9b
and byte [ebp - 0x6b5], 0
mov byte [ebp - 0x6b4], 0x33
mov byte [ebp - 0x6b3], 0x16
mov byte [ebp - 0x6b2], 0xd
mov byte [ebp - 0x6b1], 0x10
mov byte [ebp - 0x6b0], 1
mov byte [ebp - 0x6af], 0x34
mov byte [ebp - 0x6ae], 0x16
push ss
call fcn.0040953d
jge 0x40a3dd
out dx, al
fild word [eax - 0x5435b]
inc dword [eax]
push 0
call dword [ebp - 0x340]
mov dword [ebp + 8], eax
push 0x104
lea eax, [ebp - 0x334]
push eax
push 0
call dword [ebp - 0x538]
or byte [eax + 4], ch
add dword [eax], eax
add byte [ebp - 0x3337b], cl
call dword [eax + 0x6a]
add bh, bh
xchg ebp, eax
enter 0xfffffffffffffffa, 0xffffffffffffffff
call fcn.0040953d
cmp byte [esi - 0x3a], dl
mov eax, dword [eax - 0x22f5b]
inc dword [eax]
and byte [ebp - 0x230], 0
push 0x40
pop ecx
xor eax, eax
lea edi, [ebp - 0x22f]
rep stosd dword es:[edi], eax
stosw word es:[edi], ax
stosb byte es:[edi], al
and byte [ebp - 0x12c], 0
push 0x40
pop ecx
xor eax, eax
lea edi, [ebp - 0x12b]
rep stosd dword es:[edi], eax
stosw word es:[edi], ax
stosb byte es:[edi], al
and byte [ebp - 0x654], 0
push 0x40
pop ecx
xor eax, eax
lea edi, [ebp - 0x653]
rep stosd dword es:[edi], eax
stosw word es:[edi], ax
stosb byte es:[edi], al
and byte [ebp - 0x504], 0
push 0x40
pop ecx
xor eax, eax
lea edi, [ebp - 0x503]
rep stosd dword es:[edi], eax
stosd dword es:[edi], eax

Function at 0x40a453
Capabilities:
Contain obfuscated stackstrings

Disassembly:
stosd dword es:[edi], eax
stosw word es:[edi], ax
stosb byte es:[edi], al
call fcn.0040951b
or byte [eax + 0x2ff845c6], ah
mov byte [ebp - 0x24], 0x34
and byte [ebp - 0x36c], 0
and byte [ebp - 0x36b], 0
mov byte [ebp - 0x36a], 0xaa
and byte [ebp - 0x369], 0
mov byte [ebp - 0x368], 0x12
mov byte [ebp - 0x367], 0x30
mov byte [ebp - 0x366], 0x21
mov byte [ebp - 0x365], 6
mov byte [ebp - 0x364], 0x2c
mov byte [ebp - 0x363], 0x26
mov byte [ebp - 0x362], 0x21
mov byte [ebp - 0x361], 0x30
mov byte [ebp - 0x360], 0x38
mov byte [ebp - 0x35f], 0x11
mov byte [ebp - 0x35e], 0x3c
mov byte [ebp - 0x35d], 0x27
jmp dword [edi]
mov byte [ebp - 0x35c], 0x30
mov byte [ebp - 0x35b], 0x36
Function at 0x406450
Capabilities:
Read file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x20
mov dword [ebp - 8], ecx
cmp dword [ebp + 0x10], 0
jg 0x406470
jl 0x406467
cmp dword [ebp + 0xc], 0
ja 0x406470
xor eax, eax
xor edx, edx
jmp 0x4065a8
mov eax, dword [ebp - 8]
cmp dword [eax + 0x38], 0
je 0x406492
mov ecx, dword [ebp + 0x10]
push ecx
mov edx, dword [ebp + 0xc]
push edx
mov eax, dword [ebp + 8]
push eax
mov ecx, dword [ebp - 8]
call fcn.004065b0
jmp 0x4065a8
mov ecx, dword [ebp + 0xc]
mov dword [ebp - 4], ecx
mov edx, dword [ebp + 0xc]
mov eax, dword [ebp + 0x10]
mov dword [ebp - 0x20], edx
mov dword [ebp - 0x1c], eax
mov ecx, dword [ebp - 8]
call fcn.00403df0
mov dword [ebp - 0x14], eax
cmp dword [ebp - 0x14], 0
jbe 0x406502
lea ecx, [ebp - 0x14]
push ecx
lea edx, [ebp - 4]
push edx
call fcn.00401db0
add esp, 8
mov eax, dword [eax]
mov dword [ebp - 0xc], eax
mov ecx, dword [ebp - 0xc]
push ecx
mov ecx, dword [ebp - 8]
call fcn.004051f0
push eax
mov edx, dword [ebp + 8]
push edx
call fcn.00404b60
add esp, 0xc
mov eax, dword [ebp + 8]
add eax, dword [ebp - 0xc]
mov dword [ebp + 8], eax
mov ecx, dword [ebp - 4]
sub ecx, dword [ebp - 0xc]
mov dword [ebp - 4], ecx
mov edx, dword [ebp - 0xc]
push edx
mov ecx, dword [ebp - 8]
call fcn.00405140
nop
mov eax, dword [ebp - 8]
cmp dword [eax + 0x4c], 0
je 0x406599
mov ecx, dword [ebp - 8]
call fcn.004043f0
mov dword [ebp - 0x18], 0xfff
cmp dword [ebp - 4], 0xfff
jbe 0x406572
mov ecx, dword [ebp - 8]
mov edx, dword [ecx + 0x4c]
push edx
push 0xfff
push 1
mov eax, dword [ebp + 8]
push eax
call fcn.0040cdc3
add esp, 0x10
mov dword [ebp - 0x10], eax
mov ecx, dword [ebp + 8]
add ecx, dword [ebp - 0x10]
mov dword [ebp + 8], ecx
mov edx, dword [ebp - 4]
sub edx, dword [ebp - 0x10]
mov dword [ebp - 4], edx
cmp dword [ebp - 0x10], 0xfff
je 0x406570
xor eax, eax
mov ecx, dword [ebp - 0x20]
sub ecx, dword [ebp - 4]
mov edx, dword [ebp - 0x1c]
sbb edx, eax
mov eax, ecx
jmp 0x4065a8
jmp 0x40651e
cmp dword [ebp - 4], 0
jbe 0x406599
mov edx, dword [ebp - 8]
mov eax, dword [edx + 0x4c]
push eax
mov ecx, dword [ebp - 4]
push ecx
push 1
mov edx, dword [ebp + 8]
push edx
call fcn.0040cdc3
add esp, 0x10
mov ecx, dword [ebp - 4]
sub ecx, eax
mov dword [ebp - 4], ecx
xor edx, edx
mov eax, dword [ebp - 0x20]
sub eax, dword [ebp - 4]
mov ecx, dword [ebp - 0x1c]
sbb ecx, edx
mov edx, ecx
mov esp, ebp
pop ebp
ret 0xc

Function at 0x4083a9
Capabilities:
Parse pe header

Disassembly:
push 0
call dword [sym.imp.KERNEL32.dll_GetModuleHandleW]
test eax, eax
je 0x4083e8
mov ecx, 0x5a4d
cmp word [eax], cx
jne 0x4083e8
mov ecx, dword [eax + 0x3c]
add ecx, eax
cmp dword [ecx], 0x4550
jne 0x4083e8
mov eax, 0x10b
cmp word [ecx + 0x18], ax
jne 0x4083e8
cmp dword [ecx + 0x74], 0xe
jbe 0x4083e8
cmp dword [ecx + 0xe8], 0
setne al
ret
xor al, al
ret
Function at 0x4126ec
Capabilities:
Allocate thread local storage

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push esi
push 0x4235c8
push 0x4235c0
push str.FlsAlloc
push 0x1f
call fcn.00412557
mov esi, eax
add esp, 0x10
test esi, esi
je 0x412720
push dword [ebp + 8]
mov ecx, esi
call dword [0x420134]
call esi
jmp 0x412726
call dword [sym.imp.KERNEL32.dll_TlsAlloc]
pop esi
pop ebp
ret 4

Function at 0x41276a
Capabilities:
Get thread local storage value

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push esi
push 0x4235d8
push 0x4235d0
push str.FlsGetValue
push 0x21
call fcn.00412557
mov esi, eax
add esp, 0x10
test esi, esi
je 0x4127a1
push dword [ebp + 8]
mov ecx, esi
call dword [0x420134]
call esi
pop esi
pop ebp
ret 4
pop esi
pop ebp
jmp dword [sym.imp.KERNEL32.dll_TlsGetValue]

Function at 0x4127a9
Capabilities:
Set thread local storage value

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push esi
push 0x4235e0
push 0x4235d8
push str.FlsSetValue
push 0x22
call fcn.00412557
mov esi, eax
add esp, 0x10
test esi, esi
je 0x4127e3
push dword [ebp + 0xc]
mov ecx, esi
push dword [ebp + 8]
call dword [0x420134]
call esi
pop esi
pop ebp
ret 8
pop esi
pop ebp
jmp dword [sym.imp.KERNEL32.dll_TlsSetValue]
Function at 0x41426b
Capabilities:
Read file on windows

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
mov eax, 0x101c
call fcn.00408510
mov eax, dword [0x42a080]
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.00412d1f
pop ecx
mov ecx, dword [ebp + 8]
mov ebx, eax
cmp dword [ecx + 8], 0
jne 0x4142ad
mov eax, dword [ebp + 0xc]
mov edx, dword [ebp + 0x10]
jmp 0x414409
mov eax, dword [ecx]
sub eax, dword [ecx + 4]
push esi
push edi
push 0
cdq
push 2
push edx
push eax
call fcn.0041f460
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 + 0x42bac8]
push dword [eax + edi + 0x24]
push dword [eax + edi + 0x20]
push ebx
call fcn.00415268
mov ecx, dword [esi*4 + 0x42bac8]
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 0x414402
cmp eax, dword [ecx + edi + 0x24]
jne 0x414402
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 0x414402
push dword [ebp - 0x100c]
push 0
push dword [ebp + 0x10]
push dword [ebp + 0xc]
push ebx
call fcn.00415268
add esp, 0x14
test edx, edx
jl 0x414402
jg 0x414378
test eax, eax
jb 0x414402
mov ebx, dword [ebp - 0x1018]
mov eax, dword [ebp - 0x1014]
test ebx, ebx
jg 0x414402
jl 0x414392
cmp dword [ebp - 0x1008], eax
ja 0x414402
lea edi, [ebp - 0x1004]
xor edx, edx
add edi, eax
lea ecx, [ebp - 0x1004]
xor esi, esi
cmp dword [ebp - 0x1008], edx
jne 0x4143b0
test ebx, ebx
je 0x4143e9
cmp ecx, edi
jae 0x4143e9
mov al, byte [ecx]
cmp al, 0xd
jne 0x4143ca
lea eax, [edi - 1]
cmp ecx, eax
jae 0x4143d6
cmp byte [ecx + 1], 0xa
jne 0x4143d6
inc ecx
jmp 0x4143d6
movzx eax, al
movsx eax, byte [eax + 0x42a348]
add ecx, eax
add esi, 1
adc edx, 0
inc ecx
cmp esi, dword [ebp - 0x1008]
jne 0x4143b0
cmp edx, ebx
jne 0x4143b0
lea eax, [ebp - 0x1004]
sub ecx, eax
mov eax, ecx
cdq
add eax, dword [ebp - 0x1010]
adc edx, dword [ebp - 0x101c]
jmp 0x414407
or edx, 0xffffffff
mov eax, edx
pop edi
pop esi
mov ecx, dword [ebp - 4]
xor ecx, ebp
pop ebx
call fcn.00407686
leave
ret
Function at 0x414700
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 + 0x42bac8]
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 0x414740
cmp byte [ebx], 0xa
jne 0x414740
or byte [edi + eax + 0x28], 4
jmp 0x414745
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 0x414844
mov dl, byte [eax]
cmp dl, 0x1a
je 0x414827
inc eax
cmp dl, 0xd
je 0x414771
mov dword [ebp - 8], eax
mov byte [esi], dl
jmp 0x414797
cmp eax, ecx
jae 0x4147a5
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 0x414759
jmp 0x414844
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 0x414822
cmp dword [ebp - 0x10], 0
je 0x414822
mov ecx, dword [ebp - 0xc]
mov eax, dword [ecx*4 + 0x42bac8]
test byte [eax + edi + 0x28], 0x48
je 0x4147fc
mov dl, byte [ebp - 1]
lea eax, [esi + 1]
mov dword [ebp - 0x14], eax
cmp dl, 0xa
jne 0x4147e7
mov byte [esi], dl
jmp 0x4147f8
mov byte [esi], 0xd
mov eax, dword [ecx*4 + 0x42bac8]
mov byte [eax + edi + 0x2a], dl
mov eax, dword [ebp - 0x14]
mov esi, eax
jmp 0x414844
cmp byte [ebp - 1], 0xa
jne 0x41480b
cmp esi, ebx
jne 0x41480b
mov byte [esi], 0xa
jmp 0x414843
push 1
push 0xffffffffffffffff
push 0xffffffffffffffff
push dword [ebp + 8]
call fcn.00415286
add esp, 0x10
cmp byte [ebp - 1], 0xa
je 0x414844
mov byte [esi], 0xd
jmp 0x414843
mov ecx, dword [ebp - 0xc]
mov ecx, dword [ecx*4 + 0x42bac8]
mov al, byte [ecx + edi + 0x28]
test al, 0x40
jne 0x414841
or al, 2
mov byte [ecx + edi + 0x28], al
jmp 0x414844
mov byte [esi], dl
inc esi
sub esi, ebx
pop edi
mov eax, esi
pop esi
pop ebx
leave
ret
Function at 0x41484d
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 + 0x42bac8]
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 0x414893
cmp word [ebx], dx
jne 0x414893
or byte [eax + edi + 0x28], 4
jmp 0x414898
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 0x4149fb
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 0x4149db
add eax, 2
cmp cx, word [ebp - 0x10]
je 0x4148d9
mov dword [ebp - 4], eax
mov word [esi], cx
jmp 0x41490f
cmp eax, edx
jae 0x41491d
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 0x4148b4
jmp 0x4149fb
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 0x4149d6
cmp dword [ebp - 0x18], 0
je 0x4149d6
mov edx, dword [ebp - 8]
push 0xa
mov eax, dword [edx*4 + 0x42bac8]
test byte [eax + edi + 0x28], 0x48
je 0x4149ac
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 0x414970
mov word [esi], cx
jmp 0x4149a7
push 0xd
pop ecx
mov word [esi], cx
movzx ecx, ax
mov eax, dword [edx*4 + 0x42bac8]
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 + 0x42bac8]
mov byte [eax + edi + 0x2b], cl
mov eax, dword [edx*4 + 0x42bac8]
pop ecx
mov byte [eax + edi + 0x2c], cl
mov esi, dword [ebp - 0x1c]
jmp 0x4149fb
pop eax
cmp word [ebp - 4], ax
jne 0x4149bc
cmp esi, ebx
jne 0x4149bc
mov word [esi], ax
jmp 0x4149f8
push 1
push 0xffffffffffffffff
push 0xfffffffffffffffe
push dword [ebp + 8]
call fcn.00415286
add esp, 0x10
push 0xa
pop eax
cmp word [ebp - 4], ax
je 0x4149fb
push 0xd
pop eax
jmp 0x4149b7
mov edx, dword [ebp - 8]
mov edx, dword [edx*4 + 0x42bac8]
mov al, byte [edx + edi + 0x28]
test al, 0x40
jne 0x4149f5
or al, 2
mov byte [edx + edi + 0x28], al
jmp 0x4149fb
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 0x418a6f
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 0x418b0c
push ebx
push esi
call fcn.00418a38
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.00417728
add esp, 0x24
mov dword [ebp - 4], eax
test eax, eax
jne 0x418ab9
push esi
call dword [sym.imp.KERNEL32.dll_FreeEnvironmentStringsW]
xor eax, eax
jmp 0x418b0b
push edi
push eax
call fcn.00415467
mov edi, eax
pop ecx
push ebx
test edi, edi
jne 0x418ad9
call fcn.0041221b
pop ecx
push esi
call dword [sym.imp.KERNEL32.dll_FreeEnvironmentStringsW]
xor eax, eax
jmp 0x418b0a
push ebx
push dword [ebp - 4]
push edi
push dword [ebp - 8]
push esi
push ebx
push ebx
call fcn.00417728
add esp, 0x20
test eax, eax
jne 0x418af8
push edi
call fcn.0041221b
jmp 0x418b00
push ebx
call fcn.0041221b
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 0x41b2de
Capabilities:
Get geographical location

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push ecx
push esi
push edi
call fcn.00411f30
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 0x41b34d
cmp esi, dword [ebp - 4]
je 0x41b348
cmp dword [ebp + 0xc], 0
je 0x41b348
mov esi, dword [edi + 0x50]
lea ecx, [esi + 2]
mov ax, word [esi]
add esi, 2
test ax, ax
jne 0x41b325
push dword [edi + 0x50]
sub esi, ecx
sar esi, 1
call fcn.0041ae30
pop ecx
xor ecx, ecx
cmp eax, esi
setne cl
mov eax, ecx
jmp 0x41b34f
xor eax, eax
inc eax
jmp 0x41b34f
xor eax, eax
pop edi
pop esi
leave
ret