joyce8/EMBER2024-capa huggingface dataset:
Function at 0xb0e22d7
Capabilities:
Hash data using sha256

Disassembly:
push ebp
mov ebp, esp
mov eax, dword [ebp + 8]
test eax, eax
jne 0xb0e22e6
push 0x10
pop eax
pop ebp
ret
xor ecx, ecx
mov dword [eax + 8], 0x6a09e667
mov dword [eax + 0x28], ecx
mov dword [eax], ecx
mov dword [eax + 4], ecx
mov dword [eax + 0xc], 0xbb67ae85
mov dword [eax + 0x10], 0x3c6ef372
mov dword [eax + 0x14], 0xa54ff53a
mov dword [eax + 0x18], 0x510e527f
mov dword [eax + 0x1c], 0x9b05688c
mov dword [eax + 0x20], 0x1f83d9ab
mov dword [eax + 0x24], 0x5be0cd19
xor eax, eax
pop ebp
ret

Function at 0xb0e2609
Capabilities:
Encrypt data using des

Disassembly:
push ebp
mov ebp, esp
sub esp, 0xfc
mov eax, dword [0xa401080]
xor eax, ebp
mov dword [ebp - 4], eax
mov eax, dword [ebp + 8]
push ebx
push esi
mov bx, dx
mov dword [ebp - 0xfc], eax
push edi
mov word [ebp - 0xf6], bx
mov edi, ecx
xor esi, esi
movzx edx, byte [esi + 0xb09fee0]
mov eax, edx
shr edx, 3
and eax, 7
mov ecx, dword [eax*4 + 0xb09b860]
movzx eax, byte [edx + edi]
and eax, ecx
cmp eax, ecx
sete al
mov byte [ebp + esi - 0x3c], al
inc esi
cmp esi, 0x38
jb 0xb0e2636
xor esi, esi
cmp bx, 1
jne 0xb0e2672
push 0xf
pop ecx
sub ecx, esi
add ecx, ecx
jmp 0xb0e2675
lea ecx, [esi + esi]
and dword [ebp + ecx*4 - 0xf0], 0
and dword [ebp + ecx*4 - 0xf4], 0
xor eax, eax
movzx edx, byte [esi + 0xb0a0120]
cmp edx, 0x1c
jae 0xb0e2699
mov bl, byte [ebp + edx - 0x3c]
jmp 0xb0e269d
mov bl, byte [ebp + edx - 0x58]
mov byte [ebp + eax - 0x74], bl
inc eax
inc edx
cmp eax, 0x1c
jb 0xb0e268e
cmp eax, 0x38
jae 0xb0e26d0
movzx edx, byte [esi + 0xb0a0120]
add edx, eax
cmp edx, 0x38
jae 0xb0e26c1
mov bl, byte [ebp + edx - 0x3c]
jmp 0xb0e26c5
mov bl, byte [ebp + edx - 0x58]
mov byte [ebp + eax - 0x74], bl
inc eax
inc edx
cmp eax, 0x38
jb 0xb0e26b6
xor edx, edx
movzx eax, byte [edx + 0xb09f880]
mov edi, edx
cmp byte [ebp + eax - 0x74], 0
je 0xb0e26f0
mov eax, dword [edi*4 + 0xb097600]
or dword [ebp + ecx*4 - 0xf4], eax
movzx eax, byte [edx + 0xb09f898]
cmp byte [ebp + eax - 0x74], 0
je 0xb0e270c
mov eax, dword [edi*4 + 0xb097600]
or dword [ebp + ecx*4 - 0xf0], eax
inc edx
cmp edx, 0x18
jb 0xb0e26d2
mov bx, word [ebp - 0xf6]
inc esi
cmp esi, 0x10
jb 0xb0e2663
mov edx, dword [ebp - 0xfc]
lea ecx, [ebp - 0xf4]
pop edi
pop esi
pop ebx
call fcn.0b0e2743
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.0b0f3999
leave
ret
Function at 0xb0e3691
Capabilities:
Hash data using sha1

Disassembly:
push ebp
mov ebp, esp
mov eax, dword [ebp + 8]
test eax, eax
jne 0xb0e36a0
push 0x10
pop eax
pop ebp
ret
xor ecx, ecx
mov dword [eax + 8], 0x67452301
mov dword [eax + 0xc], 0xefcdab89
mov dword [eax + 0x10], 0x98badcfe
mov dword [eax + 0x14], 0x10325476
mov dword [eax + 0x18], 0xc3d2e1f0
mov dword [eax + 0x1c], ecx
mov dword [eax], ecx
mov dword [eax + 4], ecx
xor eax, eax
pop ebp
ret
Function at 0xb0e5ba0
Capabilities:
Hash data using sha256

Disassembly:
push ebp
mov ebp, esp
mov eax, dword [ebp + 8]
test eax, eax
jne 0xb0e5baf
push 0x10
pop eax
pop ebp
ret
xor ecx, ecx
mov dword [eax + 8], 0xf3bcc908
mov dword [eax + 0x48], ecx
mov dword [eax], ecx
mov dword [eax + 4], ecx
mov dword [eax + 0xc], 0x6a09e667
mov dword [eax + 0x10], 0x84caa73b
mov dword [eax + 0x14], 0xbb67ae85
mov dword [eax + 0x18], 0xfe94f82b
mov dword [eax + 0x1c], 0x3c6ef372
mov dword [eax + 0x20], 0x5f1d36f1
mov dword [eax + 0x24], 0xa54ff53a
mov dword [eax + 0x28], 0xade682d1
mov dword [eax + 0x2c], 0x510e527f
mov dword [eax + 0x30], 0x2b3e6c1f
mov dword [eax + 0x34], 0x9b05688c
mov dword [eax + 0x38], 0xfb41bd6b
mov dword [eax + 0x3c], 0x1f83d9ab
mov dword [eax + 0x40], 0x137e2179
mov dword [eax + 0x44], 0x5be0cd19
xor eax, eax
pop ebp
ret

Function at 0xb0e6634
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x1c
and dword [ebp - 4], 0
and dword [ebp - 8], 0
push esi
mov esi, edx
mov dword [ebp - 0x10], ecx
mov eax, esi
mov dword [ebp - 0x1c], eax
test esi, esi
je 0xb0e66e2
push ebx
push edi
dec esi
xor ebx, ebx
push 8
mov dword [ebp - 0x18], esi
mov esi, dword [ebp - 8]
pop eax
mov dword [ebp - 0xc], ebx
mov ebx, dword [ebp - 4]
dec eax
mov dword [ebp - 0x14], eax
call fcn.0b11a4f4
mov edi, eax
call fcn.0b11a4f4
cmp edi, eax
jne 0xb0e668c
xor esi, 1
call fcn.0b11a4f4
cmp edi, eax
je 0xb0e667d
mov dword [ebp - 8], esi
call fcn.0b11a4f4
mov edi, eax
call fcn.0b11a4f4
cmp edi, eax
jne 0xb0e66b4
mov esi, dword [ebp - 4]
xor esi, 1
call fcn.0b11a4f4
cmp edi, eax
je 0xb0e669f
mov dword [ebp - 4], esi
mov esi, dword [ebp - 8]
mov ebx, dword [ebp - 4]
cmp esi, ebx
je 0xb0e666d
mov ebx, dword [ebp - 0xc]
mov eax, dword [ebp - 0x14]
add ebx, ebx
or ebx, esi
mov dword [ebp - 0xc], ebx
test eax, eax
jne 0xb0e6666
mov ecx, dword [ebp - 0x10]
mov esi, dword [ebp - 0x18]
mov byte [ecx], bl
inc ecx
mov dword [ebp - 0x10], ecx
test esi, esi
jne 0xb0e6657
mov eax, dword [ebp - 0x1c]
pop edi
pop ebx
pop esi
leave
ret

Function at 0xb0e66e5
Capabilities:
Generate random numbers via winapi

Disassembly:
push esi
mov esi, ecx
push edi
mov edi, edx
test esi, esi
jne 0xb0e66f4
push 0x10
pop eax
jmp 0xb0e671a
push 2
push edi
push esi
push 0
call dword [sym.imp.bcrypt.dll_BCryptGenRandom]
xor ecx, ecx
test eax, eax
cmovns ecx, edi
test ecx, ecx
je 0xb0e670f
mov eax, ecx
jmp 0xb0e671a
push ecx
mov edx, edi
mov ecx, esi
call fcn.0b0e6634
pop ecx
pop edi
pop esi
ret
Function at 0xb0ea623
Capabilities:
Enumerate threads

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x24
mov eax, dword [0xa401080]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
push esi
push edi
xor edi, edi
mov esi, ecx
push edi
push 4
call dword [sym.imp.KERNEL32.dll_CreateToolhelp32Snapshot]
mov ebx, eax
mov dword [ebp - 0x24], ebx
cmp ebx, 0xffffffff
je 0xb0ea72e
lea eax, [ebp - 0x20]
mov dword [ebp - 0x20], 0x1c
push eax
push ebx
call dword [sym.imp.KERNEL32.dll_Thread32First]
test eax, eax
je 0xb0ea727
inc edi
cmp dword [ebp - 0x20], 0x10
jb 0xb0ea6eb
call dword [sym.imp.KERNEL32.dll_GetCurrentProcessId]
cmp dword [ebp - 0x14], eax
jne 0xb0ea6eb
call dword [sym.imp.KERNEL32.dll_GetCurrentThreadId]
cmp dword [ebp - 0x18], eax
je 0xb0ea6eb
mov edx, dword [esi]
test edx, edx
jne 0xb0ea6b4
push 0x200
push edx
push dword [0xa417a9c]
mov dword [esi + 4], 0x80
call dword [sym.imp.KERNEL32.dll_HeapAlloc]
mov edx, eax
mov dword [esi], edx
test edx, edx
je 0xb0ea710
lea ebx, [esi + 8]
jmp 0xb0ea6de
mov eax, dword [esi + 4]
lea ebx, [esi + 8]
cmp dword [ebx], eax
jb 0xb0ea6de
add eax, eax
mov dword [esi + 4], eax
shl eax, 2
push eax
push edx
push 0
push dword [0xa417a9c]
call dword [sym.imp.KERNEL32.dll_HeapReAlloc]
mov edx, eax
test edx, edx
je 0xb0ea73f
mov dword [esi], edx
mov ecx, dword [ebx]
mov eax, dword [ebp - 0x18]
mov dword [edx + ecx*4], eax
inc dword [ebx]
mov ebx, dword [ebp - 0x24]
lea eax, [ebp - 0x20]
mov dword [ebp - 0x20], 0x1c
push eax
push ebx
call dword [sym.imp.KERNEL32.dll_Thread32Next]
test eax, eax
jne 0xb0ea66c
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0x12
je 0xb0ea727
xor edi, edi
cmp dword [esi], edi
je 0xb0ea727
push dword [esi]
push edi
push dword [0xa417a9c]
call dword [sym.imp.KERNEL32.dll_HeapFree]
and dword [esi], edi
push ebx
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov ecx, dword [ebp - 4]
mov eax, edi
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.0b0f3999
leave
ret
mov ebx, dword [ebp - 0x24]
jmp 0xb0ea710

Function at 0xb0ea744
Capabilities:
Suspend thread

Disassembly:
push ebp
mov ebp, esp
push ecx
push ecx
push esi
push edi
mov edi, ecx
mov dword [ebp - 8], edx
xor esi, esi
mov dword [edi], esi
mov dword [edi + 4], esi
mov dword [edi + 8], esi
call fcn.0b0ea623
test eax, eax
jne 0xb0ea768
push 9
pop esi
jmp 0xb0ea7af
cmp dword [edi], esi
je 0xb0ea7af
push ebx
mov ebx, esi
cmp dword [edi + 8], esi
jbe 0xb0ea7ae
mov eax, dword [edi]
push dword [eax + ebx*4]
push esi
push 0x5a
call dword [sym.imp.KERNEL32.dll_OpenThread]
mov dword [ebp - 4], eax
test eax, eax
je 0xb0ea7a8
push eax
call dword [sym.imp.KERNEL32.dll_SuspendThread]
push dword [ebp + 8]
mov edx, dword [ebp - 8]
mov ecx, dword [ebp - 4]
call fcn.0b0ea4d1
pop ecx
push dword [ebp - 4]
call dword [sym.imp.KERNEL32.dll_CloseHandle]
inc ebx
cmp ebx, dword [edi + 8]
jb 0xb0ea774
pop ebx
pop edi
mov eax, esi
pop esi
leave
ret
Function at 0xb0ea7b5
Capabilities:
Resume thread

Disassembly:
push esi
mov esi, ecx
cmp dword [esi], 0
je 0xb0ea801
push edi
xor edi, edi
cmp dword [esi + 8], edi
jbe 0xb0ea7f0
push ebx
mov eax, dword [esi]
push dword [eax + edi*4]
push 0
push 0x5a
call dword [sym.imp.KERNEL32.dll_OpenThread]
mov ebx, eax
test ebx, ebx
je 0xb0ea7e9
push ebx
call dword [sym.imp.KERNEL32.dll_ResumeThread]
push ebx
call dword [sym.imp.KERNEL32.dll_CloseHandle]
inc edi
cmp edi, dword [esi + 8]
jb 0xb0ea7c6
pop ebx
push dword [esi]
push 0
push dword [0xa417a9c]
call dword [sym.imp.KERNEL32.dll_HeapFree]
pop edi
pop esi
ret

Function at 0xb0ea803
Capabilities:
Allocate or change rwx memory

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x10
push ebx
push esi
push edi
imul edi, ecx, 0x2c
mov esi, edx
mov dword [ebp - 0x10], esi
add edi, dword [0xb066010]
mov dword [ebp - 8], edi
mov eax, dword [edi]
mov cl, byte [edi + 0x14]
and cl, 1
lea ebx, [eax - 5]
cmove ebx, eax
movzx eax, cl
lea ecx, [ebp - 4]
push ecx
push 0x40
lea eax, [eax*2 + 5]
push eax
push ebx
mov dword [ebp - 0xc], eax
call dword [sym.imp.KERNEL32.dll_VirtualProtect]
test eax, eax
jne 0xb0ea852
push 0xa
pop eax
jmp 0xb0ea8d2
test esi, esi
je 0xb0ea873
mov byte [ebx], 0xe9
mov eax, dword [edi + 4]
sub eax, ebx
sub eax, 5
mov dword [ebx + 1], eax
test byte [edi + 0x14], 1
je 0xb0ea892
mov eax, dword [edi]
mov word [eax], 0xf9eb
jmp 0xb0ea892
test byte [edi + 0x14], 1
je 0xb0ea887
lea esi, [edi + 0xc]
mov edi, ebx
movsd dword es:[edi], dword [esi]
movsw word es:[edi], word [esi]
movsb byte es:[edi], byte [esi]
mov edi, dword [ebp - 8]
jmp 0xb0ea892
mov eax, dword [edi + 0xc]
mov dword [ebx], eax
mov al, byte [edi + 0x10]
mov byte [ebx + 4], al
mov esi, dword [ebp - 0xc]
lea eax, [ebp - 4]
push eax
push dword [ebp - 4]
push esi
push ebx
call dword [sym.imp.KERNEL32.dll_VirtualProtect]
push esi
push ebx
call dword [sym.imp.KERNEL32.dll_GetCurrentProcess]
push eax
call dword [sym.imp.KERNEL32.dll_FlushInstructionCache]
mov edx, dword [ebp - 0x10]
mov cl, dl
add cl, cl
shl dl, 2
xor cl, byte [edi + 0x14]
and cl, 2
xor cl, byte [edi + 0x14]
xor dl, cl
and dl, 4
xor dl, cl
xor eax, eax
mov byte [edi + 0x14], dl
pop edi
pop esi
pop ebx
leave
ret

Function at 0xb0eaf71
Capabilities:
Allocate or change rwx memory

Disassembly:
mov edx, dword [0xb066004]
push esi
xor esi, esi
jmp 0xb0eaf83
cmp dword [edx + 4], esi
jne 0xb0eafd7
mov edx, dword [edx]
test edx, edx
jne 0xb0eaf7c
push 0x40
push 0x3000
push 0x1000
push esi
call dword [sym.imp.KERNEL32.dll_VirtualAlloc]
mov edx, eax
test edx, edx
je 0xb0eafd3
push edi
push 0x20
lea ecx, [edx + 0x20]
mov dword [edx + 8], esi
pop edi
mov dword [ecx], esi
mov eax, ecx
mov dword [edx + 4], ecx
add edi, 0x20
add ecx, 0x20
mov esi, eax
cmp edi, 0xfe0
jbe 0xb0eafaa
mov eax, dword [0xb066004]
mov dword [edx], eax
mov dword [0xb066004], edx
pop edi
test edx, edx
jne 0xb0eafd7
xor eax, eax
pop esi
ret
mov eax, dword [edx + 4]
pop esi
mov ecx, dword [eax]
inc dword [edx + 8]
mov dword [edx + 4], ecx
ret
Function at 0xb0f2da2
Capabilities:
Get geographical location

Disassembly:
push ebp
mov ebp, esp
push ecx
push 2
lea eax, [ebp - 4]
push eax
push 0x20000001
push 0xb085218
call dword [sym.imp.KERNEL32.dll_GetLocaleInfoEx]
xor ecx, ecx
test eax, eax
jne 0xb0f2dc9
mov eax, ecx
mov dword [ebp - 4], eax
jmp 0xb0f2dcc
mov eax, dword [ebp - 4]
push esi
mov esi, dword [ebp + 0xc]
push ecx
push ecx
push esi
push eax
push dword [ebp + 8]
push ecx
push 0x1300
call dword [sym.imp.KERNEL32.dll_FormatMessageA]
push eax
push dword [esi]
call fcn.0b0f2d7e
pop esi
leave
ret 8

Function at 0xb0f4a1b
Capabilities:
Parse pe header

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

Function at 0xb10a826
Capabilities:
Allocate thread local storage

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push esi
push 0xb08852c
push 0xb088524
push 0xb085f18
push 0x1f
call fcn.0b10a651
mov esi, eax
add esp, 0x10
test esi, esi
je 0xb10a85a
push dword [ebp + 8]
mov ecx, esi
call dword [0xb06728c]
call esi
jmp 0xb10a860
call dword [sym.imp.KERNEL32.dll_TlsAlloc]
pop esi
pop ebp
ret 4

Function at 0xb10a8a4
Capabilities:
Get thread local storage value

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push esi
push 0xb08853c
push 0xb088534
push 0xb085f3c
push 0x21
call fcn.0b10a651
mov esi, eax
add esp, 0x10
test esi, esi
je 0xb10a8db
push dword [ebp + 8]
mov ecx, esi
call dword [0xb06728c]
call esi
pop esi
pop ebp
ret 4
pop esi
pop ebp
jmp dword [sym.imp.KERNEL32.dll_TlsGetValue]

Function at 0xb10a8e3
Capabilities:
Set thread local storage value

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push esi
push 0xb088544
push 0xb08853c
push 0xb085f50
push 0x22
call fcn.0b10a651
mov esi, eax
add esp, 0x10
test esi, esi
je 0xb10a91d
push dword [ebp + 0xc]
mov ecx, esi
push dword [ebp + 8]
call dword [0xb06728c]
call esi
pop esi
pop ebp
ret 8
pop esi
pop ebp
jmp dword [sym.imp.KERNEL32.dll_TlsSetValue]
Function at 0xb10d8c1
Capabilities:
Read file on windows

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
mov eax, 0x101c
call fcn.0b0f4c80
mov eax, dword [0xa401080]
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.0b109f23
pop ecx
mov ecx, dword [ebp + 8]
mov ebx, eax
cmp dword [ecx + 8], 0
jne 0xb10d903
mov eax, dword [ebp + 0xc]
mov edx, dword [ebp + 0x10]
jmp 0xb10da5f
mov eax, dword [ecx]
sub eax, dword [ecx + 4]
push esi
push edi
push 0
cdq
push 2
push edx
push eax
call fcn.0b119f10
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 + 0xa4174d0]
push dword [eax + edi + 0x24]
push dword [eax + edi + 0x20]
push ebx
call fcn.0b10e6c2
mov ecx, dword [esi*4 + 0xa4174d0]
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 0xb10da58
cmp eax, dword [ecx + edi + 0x24]
jne 0xb10da58
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 0xb10da58
push dword [ebp - 0x100c]
push 0
push dword [ebp + 0x10]
push dword [ebp + 0xc]
push ebx
call fcn.0b10e6c2
add esp, 0x14
test edx, edx
jl 0xb10da58
jg 0xb10d9ce
test eax, eax
jb 0xb10da58
mov ebx, dword [ebp - 0x1018]
mov eax, dword [ebp - 0x1014]
test ebx, ebx
jg 0xb10da58
jl 0xb10d9e8
cmp dword [ebp - 0x1008], eax
ja 0xb10da58
lea edi, [ebp - 0x1004]
xor edx, edx
add edi, eax
lea ecx, [ebp - 0x1004]
xor esi, esi
cmp dword [ebp - 0x1008], edx
jne 0xb10da06
test ebx, ebx
je 0xb10da3f
cmp ecx, edi
jae 0xb10da3f
mov al, byte [ecx]
cmp al, 0xd
jne 0xb10da20
lea eax, [edi - 1]
cmp ecx, eax
jae 0xb10da2c
cmp byte [ecx + 1], 0xa
jne 0xb10da2c
inc ecx
jmp 0xb10da2c
movzx eax, al
movsx eax, byte [eax + 0xa4014e0]
add ecx, eax
add esi, 1
adc edx, 0
inc ecx
cmp esi, dword [ebp - 0x1008]
jne 0xb10da06
cmp edx, ebx
jne 0xb10da06
lea eax, [ebp - 0x1004]
sub ecx, eax
mov eax, ecx
cdq
add eax, dword [ebp - 0x1010]
adc edx, dword [ebp - 0x101c]
jmp 0xb10da5d
or edx, 0xffffffff
mov eax, edx
pop edi
pop esi
mov ecx, dword [ebp - 4]
xor ecx, ebp
pop ebx
call fcn.0b0f3999
leave
ret
Function at 0xb10db5a
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 + 0xa4174d0]
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 0xb10db9a
cmp byte [ebx], 0xa
jne 0xb10db9a
or byte [edi + eax + 0x28], 4
jmp 0xb10db9f
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 0xb10dc9e
mov dl, byte [eax]
cmp dl, 0x1a
je 0xb10dc81
inc eax
cmp dl, 0xd
je 0xb10dbcb
mov dword [ebp - 8], eax
mov byte [esi], dl
jmp 0xb10dbf1
cmp eax, ecx
jae 0xb10dbff
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 0xb10dbb3
jmp 0xb10dc9e
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 0xb10dc7c
cmp dword [ebp - 0x10], 0
je 0xb10dc7c
mov ecx, dword [ebp - 0xc]
mov eax, dword [ecx*4 + 0xa4174d0]
test byte [eax + edi + 0x28], 0x48
je 0xb10dc56
mov dl, byte [ebp - 1]
lea eax, [esi + 1]
mov dword [ebp - 0x14], eax
cmp dl, 0xa
jne 0xb10dc41
mov byte [esi], dl
jmp 0xb10dc52
mov byte [esi], 0xd
mov eax, dword [ecx*4 + 0xa4174d0]
mov byte [eax + edi + 0x2a], dl
mov eax, dword [ebp - 0x14]
mov esi, eax
jmp 0xb10dc9e
cmp byte [ebp - 1], 0xa
jne 0xb10dc65
cmp esi, ebx
jne 0xb10dc65
mov byte [esi], 0xa
jmp 0xb10dc9d
push 1
push 0xffffffffffffffff
push 0xffffffffffffffff
push dword [ebp + 8]
call fcn.0b10e6e0
add esp, 0x10
cmp byte [ebp - 1], 0xa
je 0xb10dc9e
mov byte [esi], 0xd
jmp 0xb10dc9d
mov ecx, dword [ebp - 0xc]
mov ecx, dword [ecx*4 + 0xa4174d0]
mov al, byte [ecx + edi + 0x28]
test al, 0x40
jne 0xb10dc9b
or al, 2
mov byte [ecx + edi + 0x28], al
jmp 0xb10dc9e
mov byte [esi], dl
inc esi
sub esi, ebx
pop edi
mov eax, esi
pop esi
pop ebx
leave
ret
Function at 0xb10dca7
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 + 0xa4174d0]
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 0xb10dced
cmp word [ebx], dx
jne 0xb10dced
or byte [eax + edi + 0x28], 4
jmp 0xb10dcf2
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 0xb10de55
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 0xb10de35
add eax, 2
cmp cx, word [ebp - 0x10]
je 0xb10dd33
mov dword [ebp - 4], eax
mov word [esi], cx
jmp 0xb10dd69
cmp eax, edx
jae 0xb10dd77
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 0xb10dd0e
jmp 0xb10de55
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 0xb10de30
cmp dword [ebp - 0x18], 0
je 0xb10de30
mov edx, dword [ebp - 8]
push 0xa
mov eax, dword [edx*4 + 0xa4174d0]
test byte [eax + edi + 0x28], 0x48
je 0xb10de06
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 0xb10ddca
mov word [esi], cx
jmp 0xb10de01
push 0xd
pop ecx
mov word [esi], cx
movzx ecx, ax
mov eax, dword [edx*4 + 0xa4174d0]
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 + 0xa4174d0]
mov byte [eax + edi + 0x2b], cl
mov eax, dword [edx*4 + 0xa4174d0]
pop ecx
mov byte [eax + edi + 0x2c], cl
mov esi, dword [ebp - 0x1c]
jmp 0xb10de55
pop eax
cmp word [ebp - 4], ax
jne 0xb10de16
cmp esi, ebx
jne 0xb10de16
mov word [esi], ax
jmp 0xb10de52
push 1
push 0xffffffffffffffff
push 0xfffffffffffffffe
push dword [ebp + 8]
call fcn.0b10e6e0
add esp, 0x10
push 0xa
pop eax
cmp word [ebp - 4], ax
je 0xb10de55
push 0xd
pop eax
jmp 0xb10de11
mov edx, dword [ebp - 8]
mov edx, dword [edx*4 + 0xa4174d0]
mov al, byte [edx + edi + 0x28]
test al, 0x40
jne 0xb10de4f
or al, 2
mov byte [edx + edi + 0x28], al
jmp 0xb10de55
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 0xb1113c9
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 0xb111466
push ebx
push esi
call fcn.0b111392
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.0b10c0d9
add esp, 0x24
mov dword [ebp - 4], eax
test eax, eax
jne 0xb111413
push esi
call dword [sym.imp.KERNEL32.dll_FreeEnvironmentStringsW]
xor eax, eax
jmp 0xb111465
push edi
push eax
call fcn.0b1090df
mov edi, eax
pop ecx
push ebx
test edi, edi
jne 0xb111433
call fcn.0b108f8c
pop ecx
push esi
call dword [sym.imp.KERNEL32.dll_FreeEnvironmentStringsW]
xor eax, eax
jmp 0xb111464
push ebx
push dword [ebp - 4]
push edi
push dword [ebp - 8]
push esi
push ebx
push ebx
call fcn.0b10c0d9
add esp, 0x20
test eax, eax
jne 0xb111452
push edi
call fcn.0b108f8c
jmp 0xb11145a
push ebx
call fcn.0b108f8c
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 0xb111469
Capabilities:
Query environment variable

Disassembly:
mov edi, edi
push esi
call dword [sym.imp.KERNEL32.dll_GetEnvironmentStringsW]
mov esi, eax
test esi, esi
jne 0xb11147a
pop esi
ret
push ebx
push edi
push esi
call fcn.0b111392
mov ebx, eax
sub ebx, esi
and ebx, 0xfffffffe
push ebx
call fcn.0b1090df
mov edi, eax
pop ecx
pop ecx
test edi, edi
je 0xb1114a2
push ebx
push esi
push edi
call fcn.0b0f54d0
add esp, 0xc
push 0
call fcn.0b108f8c
pop ecx
push esi
call dword [sym.imp.KERNEL32.dll_FreeEnvironmentStringsW]
mov eax, edi
pop edi
pop ebx
pop esi
ret

Function at 0xb111bfc
Capabilities:
Set environment variable

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
pop ebp
jmp fcn.0b111717

Function at 0xb114269
Capabilities:
Get geographical location

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push ecx
push esi
push edi
call fcn.0b108be4
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 0xb1142d8
cmp esi, dword [ebp - 4]
je 0xb1142d3
cmp dword [ebp + 0xc], 0
je 0xb1142d3
mov esi, dword [edi + 0x50]
lea ecx, [esi + 2]
mov ax, word [esi]
add esi, 2
test ax, ax
jne 0xb1142b0
push dword [edi + 0x50]
sub esi, ecx
sar esi, 1
call fcn.0b113dbb
pop ecx
xor ecx, ecx
cmp eax, esi
setne cl
mov eax, ecx
jmp 0xb1142da
xor eax, eax
inc eax
jmp 0xb1142da
xor eax, eax
pop edi
pop esi
leave
ret