joyce8/EMBER2024-capa huggingface dataset:
Function at 0x10158c8e
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 + 0x101c17e0]
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 0x10158cce
cmp byte [ebx], 0xa
jne 0x10158cce
or byte [edi + eax + 0x28], 4
jmp 0x10158cd3
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 0x10158dd2
mov dl, byte [eax]
cmp dl, 0x1a
je 0x10158db5
inc eax
cmp dl, 0xd
je 0x10158cff
mov dword [ebp - 8], eax
mov byte [esi], dl
jmp 0x10158d25
cmp eax, ecx
jae 0x10158d33
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 0x10158ce7
jmp 0x10158dd2
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 0x10158db0
cmp dword [ebp - 0x10], 0
je 0x10158db0
mov ecx, dword [ebp - 0xc]
mov eax, dword [ecx*4 + 0x101c17e0]
test byte [eax + edi + 0x28], 0x48
je 0x10158d8a
mov dl, byte [ebp - 1]
lea eax, [esi + 1]
mov dword [ebp - 0x14], eax
cmp dl, 0xa
jne 0x10158d75
mov byte [esi], dl
jmp 0x10158d86
mov byte [esi], 0xd
mov eax, dword [ecx*4 + 0x101c17e0]
mov byte [eax + edi + 0x2a], dl
mov eax, dword [ebp - 0x14]
mov esi, eax
jmp 0x10158dd2
cmp byte [ebp - 1], 0xa
jne 0x10158d99
cmp esi, ebx
jne 0x10158d99
mov byte [esi], 0xa
jmp 0x10158dd1
push 1
push 0xffffffffffffffff
push 0xffffffffffffffff
push dword [ebp + 8]
call fcn.101560ad
add esp, 0x10
cmp byte [ebp - 1], 0xa
je 0x10158dd2
mov byte [esi], 0xd
jmp 0x10158dd1
mov ecx, dword [ebp - 0xc]
mov ecx, dword [ecx*4 + 0x101c17e0]
mov al, byte [ecx + edi + 0x28]
test al, 0x40
jne 0x10158dcf
or al, 2
mov byte [ecx + edi + 0x28], al
jmp 0x10158dd2
mov byte [esi], dl
inc esi
sub esi, ebx
pop edi
mov eax, esi
pop esi
pop ebx
leave
ret
Function at 0x10158ddb
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 + 0x101c17e0]
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 0x10158e21
cmp word [ebx], dx
jne 0x10158e21
or byte [eax + edi + 0x28], 4
jmp 0x10158e26
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 0x10158f89
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 0x10158f69
add eax, 2
cmp cx, word [ebp - 0x10]
je 0x10158e67
mov dword [ebp - 4], eax
mov word [esi], cx
jmp 0x10158e9d
cmp eax, edx
jae 0x10158eab
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 0x10158e42
jmp 0x10158f89
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 0x10158f64
cmp dword [ebp - 0x18], 0
je 0x10158f64
mov edx, dword [ebp - 8]
push 0xa
mov eax, dword [edx*4 + 0x101c17e0]
test byte [eax + edi + 0x28], 0x48
je 0x10158f3a
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 0x10158efe
mov word [esi], cx
jmp 0x10158f35
push 0xd
pop ecx
mov word [esi], cx
movzx ecx, ax
mov eax, dword [edx*4 + 0x101c17e0]
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 + 0x101c17e0]
mov byte [eax + edi + 0x2b], cl
mov eax, dword [edx*4 + 0x101c17e0]
pop ecx
mov byte [eax + edi + 0x2c], cl
mov esi, dword [ebp - 0x1c]
jmp 0x10158f89
pop eax
cmp word [ebp - 4], ax
jne 0x10158f4a
cmp esi, ebx
jne 0x10158f4a
mov word [esi], ax
jmp 0x10158f86
push 1
push 0xffffffffffffffff
push 0xfffffffffffffffe
push dword [ebp + 8]
call fcn.101560ad
add esp, 0x10
push 0xa
pop eax
cmp word [ebp - 4], ax
je 0x10158f89
push 0xd
pop eax
jmp 0x10158f45
mov edx, dword [ebp - 8]
mov edx, dword [edx*4 + 0x101c17e0]
mov al, byte [edx + edi + 0x28]
test al, 0x40
jne 0x10158f83
or al, 2
mov byte [edx + edi + 0x28], al
jmp 0x10158f89
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 0x1015c6a7
Capabilities:
Get geographical location

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x18
mov eax, dword [0x101bba40]
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.101503ca
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.101503ca
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 0x1015c71e
cmp word [ecx], dx
je 0x1015c71e
mov eax, dword [0x1016a8c4]
push edi
dec eax
push eax
push 0x1016a7b0
call fcn.1015c897
mov eax, dword [ebp - 0x14]
add esp, 0xc
xor edx, edx
mov dword [ebp - 0x10], edx
mov eax, dword [eax]
test eax, eax
je 0x1015c791
cmp word [eax], dx
je 0x1015c791
mov eax, dword [edi]
test eax, eax
je 0x1015c742
cmp word [eax], dx
je 0x1015c742
lea eax, [ebp - 0x10]
push eax
call fcn.1015c8f8
jmp 0x1015c74b
lea eax, [ebp - 0x10]
push eax
call fcn.1015cbf3
cmp dword [ebp - 0x10], 0
pop ecx
jne 0x1015c7bb
mov eax, dword [0x1016a7ac]
push dword [ebp - 0x14]
dec eax
push eax
push 0x1016a4a0
call fcn.1015c897
add esp, 0xc
test al, al
je 0x1015c7bb
mov eax, dword [edi]
xor edi, edi
test eax, eax
je 0x1015c786
cmp word [eax], di
je 0x1015c786
lea eax, [ebp - 0x10]
push eax
call fcn.1015c8f8
pop ecx
jmp 0x1015c7bd
lea eax, [ebp - 0x10]
push eax
call fcn.1015cbf3
jmp 0x1015c783
mov eax, dword [edi]
test eax, eax
je 0x1015c7a8
cmp word [eax], dx
je 0x1015c7a8
lea eax, [ebp - 0x10]
push eax
call fcn.1015cd35
pop ecx
jmp 0x1015c7bb
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 0x1015c886
lea eax, [ebp - 0x10]
push eax
lea eax, [esi + 0x100]
neg esi
sbb esi, esi
and esi, eax
push esi
call fcn.1015ce27
mov esi, eax
pop ecx
pop ecx
test esi, esi
je 0x1015c886
movzx ecx, si
push ecx
call dword [sym.imp.KERNEL32.dll_IsValidCodePage]
test eax, eax
je 0x1015c886
push 1
push dword [ebp - 0xc]
call dword [sym.imp.KERNEL32.dll_IsValidLocale]
test eax, eax
je 0x1015c886
mov eax, dword [ebp - 0x18]
test eax, eax
je 0x1015c813
mov dword [eax], esi
mov eax, dword [ebp - 0x14]
push edi
push 0x55
add eax, 0x250
push eax
push dword [ebp - 0xc]
call fcn.1015272c
test ebx, ebx
je 0x1015c881
push edi
push 0x55
lea eax, [ebx + 0x120]
push eax
push dword [ebp - 0xc]
call fcn.1015272c
push 0x40
push ebx
push 0x1001
push dword [ebp - 0xc]
call dword [sym.imp.KERNEL32.dll_GetLocaleInfoW]
test eax, eax
je 0x1015c886
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 0x1015c886
push 0xa
push 0x10
lea ecx, [ebx + 0x100]
push ecx
push esi
call fcn.10160e16
add esp, 0x10
xor eax, eax
inc eax
jmp 0x1015c888
xor eax, eax
mov ecx, dword [ebp - 4]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.10127dc5
leave
ret
Function at 0x1015cf2d
Capabilities:
Get geographical location

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push ecx
push esi
push edi
call fcn.101503ca
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 0x1015cf9c
cmp esi, dword [ebp - 4]
je 0x1015cf97
cmp dword [ebp + 0xc], 0
je 0x1015cf97
mov esi, dword [edi + 0x50]
lea ecx, [esi + 2]
mov ax, word [esi]
add esi, 2
test ax, ax
jne 0x1015cf74
push dword [edi + 0x50]
sub esi, ecx
sar esi, 1
call fcn.1015cff6
pop ecx
xor ecx, ecx
cmp eax, esi
setne cl
mov eax, ecx
jmp 0x1015cf9e
xor eax, eax
inc eax
jmp 0x1015cf9e
xor eax, eax
pop edi
pop esi
leave
ret
Function at 0x101616e4
Capabilities:
Clear file content

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x2c
push ebx
mov ebx, dword [ebp + 8]
lea ecx, [ebp - 0x2c]
push esi
push edi
push dword [ebp + 0x10]
mov edi, dword [ebp + 0x14]
push dword [ebp + 0xc]
push ebx
call fcn.1016187b
mov eax, dword [ebp - 0x2c]
and eax, dword [ebp - 0x28]
cmp eax, 0xffffffff
je 0x10161853
mov eax, dword [ebp - 0x24]
and eax, dword [ebp - 0x20]
cmp eax, 0xffffffff
je 0x10161853
mov ecx, dword [ebp - 0x18]
mov eax, dword [ebp - 0x1c]
mov dword [ebp - 8], ecx
mov dword [ebp - 4], eax
test ecx, ecx
jl 0x10161808
jg 0x10161740
test eax, eax
je 0x101617fe
push 1
push 0x1000
call fcn.101532d3
mov esi, eax
pop ecx
pop ecx
test esi, esi
jne 0x10161763
push 0xc
pop ebx
mov byte [edi + 0x1c], 1
mov dword [edi + 0x18], ebx
jmp 0x101617f5
push 0x8000
push ebx
call fcn.101615de
pop ecx
pop ecx
mov ecx, dword [ebp - 0x1c]
mov dword [ebp - 0xc], eax
mov eax, dword [ebp - 0x18]
test eax, eax
jl 0x1016178c
jg 0x10161787
cmp ecx, 0x1000
jb 0x1016178c
mov ecx, 0x1000
push edi
push ecx
push esi
push ebx
call fcn.10157754
add esp, 0x10
cmp eax, 0xffffffff
je 0x101617d1
mov ecx, dword [ebp - 4]
cdq
sub ecx, eax
mov eax, dword [ebp - 8]
mov dword [ebp - 4], ecx
sbb eax, edx
mov dword [ebp - 8], eax
test eax, eax
jg 0x10161787
jl 0x101617b8
test ecx, ecx
jne 0x10161779
push dword [ebp - 0xc]
push ebx
call fcn.101615de
push esi
call fcn.10150137
add esp, 0xc
xor ebx, ebx
jmp 0x10161861
cmp byte [edi + 0x24], 0
je 0x101617e8
cmp dword [edi + 0x20], 5
jne 0x101617e8
mov byte [edi + 0x1c], 1
mov dword [edi + 0x18], 0xd
cmp byte [edi + 0x1c], 0
je 0x101617f3
mov ebx, dword [edi + 0x18]
jmp 0x101617f5
xor ebx, ebx
push esi
call fcn.10150137
pop ecx
jmp 0x10161861
test ecx, ecx
jg 0x101617ca
jl 0x10161808
test eax, eax
jae 0x101617ca
push 0
push dword [ebp + 0x10]
push dword [ebp + 0xc]
push ebx
call fcn.101560ad
and eax, edx
add esp, 0x10
cmp eax, 0xffffffff
jne 0x10161828
cmp byte [edi + 0x1c], 0
je 0x101617ca
jmp 0x10161859
push ebx
call fcn.1015d3e5
pop ecx
push eax
call dword [sym.imp.KERNEL32.dll_SetEndOfFile]
test eax, eax
jne 0x101617ca
call dword [sym.imp.KERNEL32.dll_GetLastError]
push 0xd
mov byte [edi + 0x24], 1
mov dword [edi + 0x20], eax
pop ebx
mov byte [edi + 0x1c], 1
mov dword [edi + 0x18], ebx
jmp 0x10161861
cmp byte [edi + 0x1c], 0
je 0x1016185e
mov ebx, dword [edi + 0x18]
jmp 0x10161861
push 0x16
pop ebx
push 0
push dword [ebp - 0x28]
push dword [ebp - 0x2c]
push dword [ebp - 0x14]
call fcn.101560ad
add esp, 0x10
mov eax, ebx
pop edi
pop esi
pop ebx
leave
ret
Function at 0x1002068
Capabilities:
Get common file path

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push ecx
mov eax, dword [ebp + 0xc]
and dword [eax], 0
push esi
push 0
lea eax, [ebp - 1]
push eax
call dword [sym.imp.KERNEL32.dll_GetSystemDirectoryA]
mov esi, eax
test esi, esi
je 0x1007775
mov eax, dword [ebp + 8]
lea ecx, [eax + 1]
mov dl, byte [eax]
inc eax
test dl, dl
jne 0x1002091
push ebx
sub eax, ecx
push edi
lea edi, [eax + esi + 2]
push edi
call sub.msvcrt.dll_void____cdecl_operator_new_unsigned_int_
mov ebx, eax
pop ecx
test ebx, ebx
je 0x1007792
inc esi
push esi
push ebx
call dword [sym.imp.KERNEL32.dll_GetSystemDirectoryA]
test eax, eax
je 0x100779c
sub edi, eax
push 0x1002020
lea esi, [eax + ebx]
push edi
push esi
call fcn.01002111
push dword [ebp + 8]
dec edi
push edi
inc esi
push esi
call fcn.01002111
add esp, 0x18
push ebx
call dword [sym.imp.KERNEL32.dll_LoadLibraryA]
test eax, eax
je 0x100779c
mov ecx, dword [ebp + 0xc]
mov dword [ecx], eax
xor esi, esi
test ebx, ebx
je 0x1002103
push ebx
call sub.msvcrt.dll_void___cdecl_operator_delete_void__
pop ecx
pop edi
pop ebx
mov eax, esi
pop esi
leave
ret 8
call dword [sym.imp.KERNEL32.dll_GetLastError]
test eax, eax
jg 0x1007786
mov esi, eax
jmp 0x1002105
and eax, 0xffff
or eax, 0x80070000
jmp 0x100777f
mov esi, 0x8007000e
jmp 0x10020f8
call dword [sym.imp.KERNEL32.dll_GetLastError]
test eax, eax
jle 0x10077b0
and eax, 0xffff
or eax, 0x80070000
mov esi, eax
jmp 0x10020f8

Function at 0x100220f
Capabilities:
Get file size

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
mov eax, dword [ebp + 8]
push esi
mov esi, ecx
cmp eax, 0xffffffff
je 0x10083d6
push edi
xor edi, edi
push edi
push eax
mov dword [esi], eax
call dword [sym.imp.KERNEL32.dll_GetFileSize]
mov dword [esi + 0xc], eax
cmp eax, 0xffffffff
je 0x10083e0
cmp eax, edi
je 0x10083fd
push ebx
mov ebx, dword [ebp + 0xc]
push edi
push eax
push edi
push ebx
push edi
push dword [esi]
call dword [sym.imp.KERNEL32.dll_CreateFileMappingA]
mov dword [esi + 4], eax
cmp eax, edi
je 0x1008411
push 2
pop ecx
cmp ebx, ecx
jne 0x1002289
push 4
pop ecx
push edi
push edi
push edi
push ecx
push eax
call dword [sym.imp.KERNEL32.dll_MapViewOfFile]
mov dword [esi + 8], eax
cmp eax, edi
je 0x1008411
xor eax, eax
pop ebx
pop edi
pop esi
pop ebp
ret 8
cmp ebx, 4
jne 0x1008404
jmp 0x100226a
mov eax, 0x8000ffff
jmp 0x1002284
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, edi
jle 0x1002283
and eax, 0xffff
or eax, 0x80070000
jmp 0x1002283
xor eax, eax
jmp 0x1002283
xor ecx, ecx
cmp ebx, 8
sete cl
jmp 0x100226a
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, edi
jle 0x1002282
and eax, 0xffff
or eax, 0x80070000
jmp 0x1002282
Function at 0x100300d
Capabilities:
Accept command line arguments

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x10
push ebx
push 0x9c4
xor ebx, ebx
push ebx
call dword [sym.imp.KERNEL32.dll_GetModuleHandleA]
push eax
call fcn.01005350
test eax, eax
je 0x100624b
push ebx
call dword [sym.imp.ole32.dll_CoInitialize]
cmp eax, ebx
mov dword [ebp - 4], eax
jl 0x1006253
push esi
push edi
mov dword [ebp - 0xc], ebx
cmp byte [0x1019001], bl
je 0x1006266
call dword [sym.imp.KERNEL32.dll_GetCommandLineW]
mov edi, eax
push edi
call dword [sym.imp.KERNEL32.dll_lstrlenW]
mov esi, eax
inc esi
xor ecx, ecx
push 2
pop edx
mov eax, esi
mul edx
seto cl
neg ecx
or ecx, eax
push ecx
call sub.msvcrt.dll_void____cdecl_operator_new_unsigned_int_
pop ecx
mov dword [ebp - 8], eax
cmp eax, ebx
je 0x100625a
push edi
push esi
push eax
call fcn.0100502d
add esp, 0xc
push ebx
push dword [ebp - 8]
call fcn.010041bb
xor ecx, ecx
push 4
inc eax
pop edx
mul edx
seto cl
neg ecx
or ecx, eax
push ecx
call sub.msvcrt.dll_void____cdecl_operator_new_unsigned_int_
mov edi, eax
pop ecx
cmp edi, ebx
je 0x10062ac
push edi
push dword [ebp - 8]
call fcn.010041bb
mov dword [ebp - 0x10], eax
mov dword [edi + eax*4], ebx
cmp eax, 2
jne 0x10030ef
mov esi, dword [edi + 4]
movzx eax, word [esi]
push 0x2d
pop ecx
cmp cx, ax
je 0x10062b8
push 0x2f
pop ecx
cmp cx, ax
je 0x10062b8
push dword [ebp - 0x10]
mov ecx, dword [ebp + 8]
call fcn.01003134
mov dword [ebp - 0xc], eax
cmp edi, ebx
je 0x1003108
push edi
call sub.msvcrt.dll_void___cdecl_operator_delete_void__
pop ecx
push dword [ebp - 8]
call sub.msvcrt.dll_void___cdecl_operator_delete_void__
pop ecx
call dword [sym.imp.ole32.dll_CoUninitialize]
call fcn.010056db
cmp dword [ebp - 4], ebx
pop edi
pop esi
jl 0x100630f
mov eax, dword [ebp - 0xc]
pop ebx
leave
ret 0x10
xor eax, eax
inc eax
jmp 0x100312a
call fcn.010056db
jmp 0x100624b
mov dword [ebp - 4], 0x8007000e
jmp 0x1003111
call dword [sym.imp.KERNEL32.dll_GetCommandLineA]
mov esi, dword [sym.imp.KERNEL32.dll_MultiByteToWideChar]
push ebx
push ebx
push 0xffffffffffffffff
mov edi, eax
push edi
push ebx
push ebx
call esi
xor ecx, ecx
push 2
pop edx
mov dword [ebp - 0x10], eax
mul edx
seto cl
neg ecx
or ecx, eax
push ecx
call sub.msvcrt.dll_void____cdecl_operator_new_unsigned_int_
pop ecx
mov dword [ebp - 8], eax
cmp eax, ebx
je 0x100625a
push dword [ebp - 0x10]
push eax
push 0xffffffffffffffff
push edi
push ebx
push ebx
call esi
jmp 0x1003094
mov dword [ebp - 4], 0x8007000e
jmp 0x10030fd
push 0xffffffffffffffff
inc esi
push 0x1006348
inc esi
push esi
call fcn.01001b8c
test eax, eax
jne 0x10062d2
call fcn.0100d18d
jmp 0x1006307
push 0xffffffffffffffff
push 0x1006330
push esi
call fcn.01001b8c
test eax, eax
jne 0x10062ea
call fcn.0100d87b
jmp 0x1006307
push 0xffffffffffffffff
push 0x100631c
push esi
call fcn.01001b8c
test eax, eax
jne 0x10030ef
push dword [ebp + 8]
call fcn.0100d048
mov dword [ebp - 4], eax
jmp 0x10030fd
mov dword [ebp - 0xc], 1
jmp 0x1003127
Function at 0x10034c5
Capabilities:
Create thread

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push ebx
push esi
push edi
push 0x20
call sub.msvcrt.dll_void____cdecl_operator_new_unsigned_int_
xor ebx, ebx
pop ecx
cmp eax, ebx
je 0x1003570
mov ecx, eax
call fcn.01003eb2
mov esi, eax
cmp esi, ebx
je 0x1006f3d
mov eax, dword [ebp + 8]
push ebx
push ebx
push ebx
push ebx
mov dword [esi + 8], eax
call dword [sym.imp.KERNEL32.dll_CreateEventA]
mov dword [esi + 0x1c], eax
cmp eax, ebx
je 0x1006f47
lea eax, [esi + 0x14]
push eax
push ebx
push esi
push 0x1002f25
push ebx
push ebx
call dword [sym.imp.KERNEL32.dll_CreateThread]
mov dword [esi + 0x10], eax
cmp eax, ebx
je 0x1006f47
push 0xff
push 0xffffffffffffffff
push ebx
push dword [esi + 0x1c]
call fcn.01002d76
push dword [esi + 0x1c]
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov eax, dword [esi + 0xc]
cmp eax, ebx
mov dword [esi + 0x1c], ebx
jg 0x1006f62
mov edi, eax
cmp edi, ebx
jl 0x100355f
mov eax, dword [ebp + 0xc]
mov dword [eax], esi
xor esi, esi
xor edi, edi
cmp esi, ebx
jne 0x1006f71
mov eax, edi
pop edi
pop esi
pop ebx
pop ebp
ret 8
xor esi, esi
jmp 0x10034e8
mov edi, 0x8007000e
jmp 0x1003567
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, ebx
jle 0x1006f5b
and eax, 0xffff
or eax, 0x80070000
mov edi, eax
jmp 0x100355f
and eax, 0xffff
or eax, 0x80070000
jmp 0x1003550
push 1
mov ecx, esi
call fcn.01005bb5
jmp 0x1003567
Function at 0x10038b5
Capabilities:
Query or enumerate registry value

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x10
mov eax, dword [0x1019004]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
xor ebx, ebx
push esi
push edi
cmp byte [0x1019001], bl
je 0x1008179
lea eax, [ebp - 0x10]
push eax
mov eax, dword [ebp + 0x14]
push 2
pop ecx
mul ecx
push edx
push eax
call fcn.0100394f
test eax, eax
jl 0x100814e
mov eax, dword [ebp - 0x10]
mov esi, dword [ebp + 0x10]
mov dword [ebp - 8], eax
lea eax, [ebp - 8]
push eax
push esi
lea eax, [ebp - 0xc]
push eax
push ebx
push dword [ebp + 0xc]
push dword [ebp + 8]
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
cmp eax, ebx
jne 0x1008158
cmp dword [ebp - 0xc], 1
jne 0x100816d
mov eax, dword [ebp - 8]
shr eax, 1
cmp word [esi + eax*2 - 2], bx
jne 0x100814e
xor eax, eax
lea esp, [ebp - 0x1c]
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.01001375
leave
ret 0x10
mov eax, 0x80040153
jmp 0x1003936
jle 0x1003936
and eax, 0xffff
or eax, 0x80070000
jmp 0x1003936
cmp dword [ebp - 0xc], 2
je 0x1003924
jmp 0x100814e
cmp dword [ebp + 0xc], ebx
je 0x10081be
mov esi, dword [sym.imp.KERNEL32.dll_WideCharToMultiByte]
push ebx
push ebx
push ebx
push ebx
push 0xffffffffffffffff
push dword [ebp + 0xc]
push ebx
push ebx
call esi
mov edi, eax
cmp edi, ebx
jne 0x10081a1
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, ebx
jmp 0x1008158
call fcn.010043f7
mov dword [ebp - 0x10], esp
push ebx
push ebx
push edi
push dword [ebp - 0x10]
push 0xffffffffffffffff
push dword [ebp + 0xc]
push ebx
push ebx
call esi
test eax, eax
je 0x1008197
jmp 0x10081c1
mov dword [ebp - 0x10], ebx
mov esi, dword [ebp + 0x14]
inc esi
mov eax, esi
call fcn.010043f7
mov edi, esp
lea eax, [ebp - 8]
push eax
push edi
lea eax, [ebp - 0xc]
push eax
push ebx
push dword [ebp - 0x10]
mov dword [ebp - 8], esi
push dword [ebp + 8]
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
cmp eax, ebx
jne 0x1008158
cmp dword [ebp - 0xc], 1
je 0x10081ff
cmp dword [ebp - 0xc], 2
jne 0x100814e
mov eax, dword [ebp - 8]
cmp byte [edi + eax - 1], bl
jne 0x100814e
push dword [ebp + 0x14]
push dword [ebp + 0x10]
push 0xffffffffffffffff
push edi
push ebx
push ebx
call dword [sym.imp.KERNEL32.dll_MultiByteToWideChar]
test eax, eax
jne 0x1003934
jmp 0x1008197
Function at 0x1003fd5
Capabilities:
Get geographical location

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x41c
mov eax, dword [0x1019004]
xor eax, ebp
mov dword [ebp - 4], eax
mov eax, dword [0x101901c]
test eax, eax
jne 0x1004032
push esi
call dword [sym.imp.KERNEL32.dll_GetUserDefaultLCID]
mov esi, eax
mov ecx, esi
and ecx, 0x3ff
xor edx, edx
movzx eax, cx
inc edx
cmp dx, ax
je 0x1007d22
push 0xd
pop edx
cmp dx, ax
je 0x1007d22
cmp byte [section..data], 0
je 0x1007d41
mov eax, dword [0x1019018]
pop esi
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.01001375
leave
ret
cmp dword [0x1019024], 0x7d0
je 0x100402c
mov dword [0x10194c8], 0x180000
jmp 0x100401f
push 9
pop eax
cmp ax, cx
je 0x100402c
push ebx
push edi
push esi
push dword [0x1019018]
call fcn.01015508
cmp eax, dword [0x1019018]
jne 0x1007d6b
push eax
call fcn.010166f6
jmp 0x1007d73
test eax, eax
jne 0x1007f28
push 5
lea eax, [ebp - 0xc]
push eax
push 3
push esi
call dword [sym.imp.KERNEL32.dll_GetLocaleInfoA]
test eax, eax
jne 0x1007d90
mov eax, dword [0x101901c]
jmp 0x1007f1f
mov esi, 0x104
push esi
lea eax, [ebp - 0x318]
push eax
push 0x3e9
push dword [0x1019018]
call dword [sym.imp.USER32.dll_LoadStringA]
test eax, eax
je 0x1007d86
lea eax, [ebp - 0xc]
push eax
lea eax, [ebp - 0x318]
push eax
mov ebx, 0x1007f30
push ebx
lea eax, [ebp - 0x110]
push esi
push eax
call fcn.0100d12e
add esp, 0x14
push esi
lea eax, [ebp - 0x41c]
push eax
push dword [0x1019018]
call dword [sym.imp.KERNEL32.dll_GetModuleFileNameA]
lea eax, [ebp - 0x214]
push eax
lea eax, [ebp - 0x110]
push eax
mov eax, esi
lea ecx, [ebp - 0x41c]
call fcn.010155ee
mov edi, dword [sym.imp.KERNEL32.dll_LoadLibraryExA]
push 2
push 0
lea eax, [ebp - 0x214]
push eax
call edi
test eax, eax
jne 0x1007f28
push 2
push eax
lea eax, [ebp - 0x110]
push eax
call edi
test eax, eax
jne 0x1007f28
lea eax, [ebp - 0xc]
push eax
call dword [sym.imp.KERNEL32.dll_lstrlenA]
cmp eax, 2
jle 0x1007ea4
lea eax, [ebp - 0xc]
push eax
lea eax, [ebp - 0x318]
push eax
push ebx
lea eax, [ebp - 0x110]
push esi
push eax
mov byte [ebp - 0xa], 0
call fcn.0100de8e
add esp, 0x14
lea eax, [ebp - 0x214]
push eax
lea eax, [ebp - 0x110]
push eax
mov eax, esi
lea ecx, [ebp - 0x41c]
call fcn.010155ee
push 2
push 0
lea eax, [ebp - 0x214]
push eax
call edi
test eax, eax
jne 0x1007f28
push 2
push eax
lea eax, [ebp - 0x110]
push eax
call edi
test eax, eax
jne 0x1007f28
call dword [sym.imp.KERNEL32.dll_GetUserDefaultLCID]
push 5
lea ecx, [ebp - 0xc]
push ecx
and eax, 0x3ff
or eax, 0x400
push 3
push eax
call dword [sym.imp.KERNEL32.dll_GetLocaleInfoA]
test eax, eax
je 0x1007d86
lea eax, [ebp - 0xc]
push eax
lea eax, [ebp - 0x318]
push eax
push ebx
lea eax, [ebp - 0x110]
push esi
push eax
call fcn.0100de8e
add esp, 0x14
lea eax, [ebp - 0x214]
push eax
lea eax, [ebp - 0x110]
push eax
mov eax, esi
lea ecx, [ebp - 0x41c]
call fcn.010155ee
push 2
push 0
lea eax, [ebp - 0x214]
push eax
call edi
test eax, eax
jne 0x1007f28
push 2
push eax
lea eax, [ebp - 0x110]
push eax
call edi
test eax, eax
jne 0x1007f28
mov eax, dword [0x1019018]
pop edi
pop ebx
jmp 0x1004031