joyce8/EMBER2024-capa huggingface dataset:
Function at 0x100813c
Capabilities:
Extract resource via kernel32 functions

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0xc
push ebx
push esi
push edi
mov esi, ecx
push 0x1002594
push dword [esi + 4]
xor edi, edi
push edi
mov dword [ebp - 4], esi
call dword [sym.imp.KERNEL32.dll_FindResourceW]
cmp eax, edi
je 0x1008210
push eax
push edi
call dword [sym.imp.KERNEL32.dll_LoadResource]
cmp eax, edi
je 0x100820b
push eax
call dword [sym.imp.KERNEL32.dll_LockResource]
mov esi, dword [sym.imp.KERNEL32.dll_MultiByteToWideChar]
push edi
push edi
push 0xffffffffffffffff
push eax
push edi
push edi
mov dword [ebp - 0xc], eax
call esi
mov ebx, eax
cmp ebx, edi
jne 0x10081a1
mov eax, dword [ebp - 4]
push dword [eax + 4]
push 0x1002530
jmp 0x1008218
push ebx
lea ecx, [ebp - 8]
call fcn.010080ff
push ebx
mov ebx, dword [ebp - 8]
push ebx
push 0xffffffffffffffff
push dword [ebp - 0xc]
push edi
push edi
call esi
test eax, eax
jne 0x10081e1
mov eax, dword [ebp - 4]
push dword [eax + 4]
push 0x1002530
call fcn.0100a22b
add eax, 0x40
push eax
call fcn.01009b8a
add esp, 0xc
push ebx
call dword [sym.imp.OLEAUT32.dll_SysStringLen]
jmp 0x1008229
mov esi, 0x1002528
push esi
push ebx
jmp 0x10081f5
mov ecx, dword [ebp - 4]
mov edx, dword [ecx]
push eax
call dword [edx + 4]
push esi
push edi
call fcn.0100a606
pop ecx
pop ecx
cmp eax, edi
jne 0x10081ea
push ebx
call dword [sym.imp.OLEAUT32.dll_SysStringLen]
xor eax, eax
jmp 0x100822e
push dword [esi + 4]
jmp 0x100819a
push dword [esi + 4]
push 0x1002330
call fcn.0100a22b
add eax, 0x40
push eax
call fcn.01009b8a
add esp, 0xc
mov eax, 0x80004005
pop edi
pop esi
pop ebx
leave
ret

Function at 0x1008552
Capabilities:
Check if file exists
Delete file
Get file attributes

Disassembly:
mov eax, dword [0x102b2cc]
push esi
test eax, eax
je 0x10085c7
mov esi, dword [sym.imp.KERNEL32.dll_GetFileAttributesA]
push eax
call esi
cmp eax, 0xffffffff
jne 0x100858a
push dword [0x102b2cc]
push 0x1002eb0
call fcn.0100a22b
add eax, 0x20
push eax
call fcn.0100a790
add esp, 0xc
xor al, al
pop esi
ret
mov eax, dword [0x102b2d4]
test eax, eax
je 0x10085c7
push eax
call esi
cmp eax, 0xffffffff
je 0x10085c7
push dword [0x102b2d4]
call dword [sym.imp.KERNEL32.dll_DeleteFileA]
test eax, eax
jne 0x10085c7
push dword [0x102b2d4]
push 0x1002e68
call fcn.0100a22b
add eax, 0x20
push eax
call fcn.0100a790
add esp, 0xc
mov al, 1
pop esi
ret
Function at 0x1008992
Capabilities:
Check if file exists
Delete file
Get file attributes

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x818
mov eax, dword [0x102a274]
xor eax, ebp
mov dword [ebp - 4], eax
mov eax, dword [ebp + 0x10]
push esi
mov esi, dword [ebp + 8]
push 1
mov dword [ebp - 0x810], esi
mov dword [ebp - 0x818], eax
mov byte [ebp - 0x805], 1
call fcn.010084da
test al, al
je 0x1008a12
mov eax, dword [0x102b290]
push ebx
push edi
xor ebx, ebx
push ebx
push ebx
push dword [ebp + 0xc]
mov dword [ebp - 0x814], eax
mov eax, dword [ebp + 0x14]
push esi
mov esi, dword [sym.imp.KERNEL32.dll_MultiByteToWideChar]
push ebx
push ebx
mov dword [0x102b290], eax
call esi
mov edi, eax
cmp edi, ebx
jne 0x1008a21
push 0x1002f38
call fcn.0100a22b
add eax, 0x20
push eax
call fcn.01009b8a
pop ecx
pop ecx
xor al, al
pop edi
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
pop esi
call fcn.01009d2c
leave
ret 0x14
push edi
lea ecx, [ebp - 0x80c]
call fcn.010080ff
push edi
push dword [ebp - 0x80c]
push dword [ebp + 0xc]
push dword [ebp - 0x810]
push ebx
push ebx
call esi
test eax, eax
jne 0x1008a6a
push 0x1002f38
call fcn.0100a22b
add eax, 0x20
push eax
call fcn.01009b8a
pop ecx
pop ecx
push dword [ebp - 0x80c]
call dword [sym.imp.OLEAUT32.dll_SysStringLen]
mov al, bl
jmp 0x1008a10
xor eax, eax
push 0x7fe
mov word [ebp - 0x804], ax
lea eax, [ebp - 0x802]
push ebx
push eax
call fcn.0100a990
mov edi, dword [ebp - 0x818]
add esp, 0xc
push 0x400
lea eax, [ebp - 0x804]
push eax
push 0xffffffffffffffff
push edi
push ebx
push ebx
call esi
cmp byte [ebp + 0x18], bl
push ebx
setne al
movzx eax, al
push eax
movzx eax, byte [ebp + 0x18]
neg eax
sbb eax, eax
and eax, 0x102a0f0
push eax
push dword [0x102b2dc]
mov eax, edi
sub eax, dword [0x102b2d4]
lea ecx, [ebp - 0x804]
neg eax
sbb eax, eax
not eax
push ebx
and eax, ecx
push eax
push dword [ebp - 0x80c]
call dword [sym.imp.UICCDLL.dll_long_int___stdcall_NetUI::CompileBinary_wchar_t_const___wchar_t_const___struct_NetUI::IParseErrorHandler___struct_FlexUI::IDataSourceDescriptionIDRetriever___struct_NetUI::RibbonCompileParams___bool__enum_NetUI::ECompilerFormat_]
test eax, eax
jge 0x1008b01
push edi
mov byte [ebp - 0x805], bl
call dword [sym.imp.KERNEL32.dll_GetFileAttributesA]
cmp eax, 0xffffffff
je 0x1008b01
push edi
call dword [sym.imp.KERNEL32.dll_DeleteFileA]
push ebx
call fcn.010084da
mov eax, dword [ebp - 0x814]
mov bl, byte [ebp - 0x805]
mov dword [0x102b290], eax
jmp 0x1008a5a
Function at 0x1009a4f
Capabilities:
Accept command line arguments

Disassembly:
push 0xac
push 0x1027d68
call fcn.0100c9c0
mov dword [ebp - 0xb0], 0x94
lea eax, [ebp - 0xb0]
push eax
call dword [sym.imp.KERNEL32.dll_GetVersionExA]
test eax, eax
jne 0x10098e6
mov eax, 0xff
jmp 0x1009a44
mov ecx, dword [ebp - 0xa4]
and ecx, 0x7fff
mov edi, dword [ebp - 0xa0]
cmp edi, 2
je 0x1009903
or ecx, 0x8000
mov edx, dword [ebp - 0xac]
mov eax, edx
shl eax, 8
mov esi, dword [ebp - 0xa8]
add eax, esi
mov dword [0x102b3bc], edi
mov dword [0x102b3c4], eax
mov dword [0x102b3c8], edx
mov dword [0x102b3cc], esi
mov dword [0x102b3c0], ecx
call fcn.01009866
mov dword [ebp - 0xb8], eax
push 1
call fcn.0100c8d7
pop ecx
test eax, eax
jne 0x1009952
push 0x1c
call fcn.01009838
pop ecx
call fcn.0100c6f6
test eax, eax
jne 0x1009963
push 0x10
call fcn.01009838
pop ecx
and dword [ebp - 4], 0
call fcn.0100bf55
test eax, eax
jge 0x1009978
push 0x1b
call fcn.0100b233
pop ecx
call dword [sym.imp.KERNEL32.dll_GetCommandLineA]
mov dword [0x102cfc4], eax
call fcn.0100be19
mov dword [0x102b3a4], eax
call fcn.0100bd25
test eax, eax
jge 0x100999e
push 8
call fcn.0100b233
pop ecx
call fcn.0100b9a4
test eax, eax
jge 0x10099af
push 9
call fcn.0100b233
pop ecx
push 1
call fcn.0100b3b9
pop ecx
test eax, eax
je 0x10099c2
push eax
call fcn.0100b233
pop ecx
mov eax, dword [0x102b3dc]
mov dword [0x102b3e0], eax
push eax
push dword [0x102b3d4]
push dword [0x102b3d0]
call main
add esp, 0xc
mov dword [ebp - 0xb4], eax
cmp dword [ebp - 0xb8], 0
jne 0x10099f6
push eax
call fcn.0100b519
call fcn.0100b54f
jmp 0x1009a37
mov dword [ebp - 4], 0xfffffffe
mov eax, dword [ebp - 0xb4]
call fcn.0100ca08
ret
call fcn.0100cbe1
jmp 0x10098b2
Function at 0x100b5e7
Capabilities:
Write file on windows

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push ecx
push ecx
push ebx
push esi
xor ebx, ebx
xor esi, esi
push edi
mov edi, dword [ebp + 8]
mov dword [ebp - 4], esi
cmp edi, dword [esi*8 + 0x102a508]
je 0x100b60d
inc esi
mov dword [ebp - 4], esi
cmp esi, 0x17
jb 0x100b5fb
cmp esi, 0x17
jae 0x100b767
push 3
call fcn.01011e51
pop ecx
cmp eax, 1
je 0x100b731
push 3
call fcn.01011e51
pop ecx
test eax, eax
jne 0x100b640
cmp dword [0x102a270], 1
je 0x100b731
cmp edi, 0xfc
je 0x100b767
push 0x10037b4
mov edi, 0x314
push edi
mov esi, 0x102b400
push esi
call fcn.0100ff1c
add esp, 0xc
test eax, eax
je 0x100b676
push ebx
push ebx
push ebx
push ebx
push ebx
call fcn.0100dbc0
add esp, 0x14
mov byte [0x102b51d], bl
push 0x104
mov ebx, 0x102b419
push ebx
push 0
call dword [sym.imp.KERNEL32.dll_GetModuleFileNameA]
test eax, eax
jne 0x100b6b9
push 0x100379c
push 0x2fb
push ebx
call fcn.0100ff1c
add esp, 0xc
test eax, eax
je 0x100b6b9
xor eax, eax
push eax
push eax
push eax
push eax
push eax
call fcn.0100dbc0
add esp, 0x14
push ebx
push edi
push esi
call fcn.01011dd8
add esp, 0xc
xor ebx, ebx
test eax, eax
je 0x100b6d7
push ebx
push ebx
push ebx
push ebx
push ebx
call fcn.0100dbc0
add esp, 0x14
push 0x1003798
push edi
push esi
call fcn.01011dd8
add esp, 0xc
test eax, eax
je 0x100b6f7
push ebx
push ebx
push ebx
push ebx
push ebx
call fcn.0100dbc0
add esp, 0x14
mov eax, dword [ebp - 4]
push dword [eax*8 + 0x102a50c]
push edi
push esi
call fcn.01011dd8
add esp, 0xc
test eax, eax
je 0x100b71c
push ebx
push ebx
push ebx
push ebx
push ebx
call fcn.0100dbc0
add esp, 0x14
push 0x12010
push 0x1003770
push esi
call fcn.01011c31
add esp, 0xc
jmp 0x100b767
push 0xfffffffffffffff4
call dword [sym.imp.KERNEL32.dll_GetStdHandle]
mov edi, eax
cmp edi, ebx
je 0x100b767
cmp edi, 0xffffffff
je 0x100b767
mov edx, dword [esi*8 + 0x102a50c]
mov ecx, edx
lea esi, [ecx + 1]
mov al, byte [ecx]
inc ecx
test al, al
jne 0x100b750
push ebx
lea eax, [ebp - 8]
push eax
sub ecx, esi
push ecx
push edx
push edi
call dword [sym.imp.KERNEL32.dll_WriteFile]
pop edi
pop esi
pop ebx
leave
ret
Function at 0x100c6f6
Capabilities:
Allocate thread local storage
Set thread local storage value

Disassembly:
mov edi, edi
push ebx
push esi
push edi
push 0x10037e0
call dword [sym.imp.KERNEL32.dll_GetModuleHandleW]
mov edi, eax
xor ebx, ebx
cmp edi, ebx
je 0x100c748
mov esi, dword [sym.imp.KERNEL32.dll_GetProcAddress]
push 0x100384c
push edi
call esi
push 0x1003840
push edi
mov dword [0x102b824], eax
call esi
push 0x1003834
push edi
mov dword [0x102b828], eax
call esi
push 0x100382c
push edi
mov dword [0x102b82c], eax
call esi
mov dword [0x102b830], eax
mov esi, dword [sym.imp.KERNEL32.dll_TlsSetValue]
cmp dword [0x102b824], ebx
je 0x100c76e
cmp dword [0x102b828], ebx
je 0x100c76e
cmp dword [0x102b82c], ebx
je 0x100c76e
cmp dword [0x102b830], ebx
jne 0x100c792
mov eax, dword [sym.imp.KERNEL32.dll_TlsGetValue]
mov dword [0x102b828], eax
mov eax, dword [sym.imp.KERNEL32.dll_TlsFree]
mov dword [0x102b824], 0x100c2e5
mov dword [0x102b82c], esi
mov dword [0x102b830], eax
call dword [sym.imp.KERNEL32.dll_TlsAlloc]
mov dword [0x102a66c], eax
cmp eax, 0xffffffff
je 0x100c805
push dword [0x102b828]
push eax
call esi
test eax, eax
je 0x100c805
call fcn.0100b577
push dword [0x102b824]
call fcn.0100c1e7
push dword [0x102b828]
mov dword [0x102b824], eax
call fcn.0100c1e7
push dword [0x102b82c]
mov dword [0x102b828], eax
call fcn.0100c1e7
push dword [0x102b830]
mov dword [0x102b82c], eax
call fcn.0100c1e7
add esp, 0x10
mov dword [0x102b830], eax
call fcn.0100e83a
test eax, eax
jne 0x100c80b
call fcn.0100c36e
xor eax, eax
pop edi
pop esi
pop ebx
ret
push fcn.0100c51d
push dword [0x102b824]
call fcn.0100c26d
pop ecx
call eax
mov dword [0x102a670], eax
cmp eax, 0xffffffff
je 0x100c800
push 0x214
push 1
call fcn.0101407a
mov esi, eax
pop ecx
pop ecx
cmp esi, ebx
je 0x100c800
push esi
push dword [0x102a670]
push dword [0x102b82c]
call fcn.0100c26d
pop ecx
call eax
test eax, eax
jne 0x100c85e
push esi
call fcn.0100ad32
pop ecx
jmp 0x100c800
push ebx
push esi
call fcn.0100c3b0
or dword [esi + 4], 0xffffffff
pop ecx
xor eax, eax
pop ecx
inc eax
jmp 0x100c807
Function at 0x1011c31
Capabilities:
Link many functions at runtime

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x20
push ebx
push esi
push edi
call fcn.0100c25f
xor ebx, ebx
mov dword [ebp - 0x10], eax
mov dword [ebp - 4], ebx
mov dword [ebp - 8], ebx
mov dword [ebp - 0xc], ebx
cmp dword [0x102bcd8], ebx
jne 0x1011d0a
push ebx
push ebx
push 0x1003a18
call dword [sym.imp.KERNEL32.dll_LoadLibraryExA]
mov edi, eax
cmp edi, ebx
jne 0x1011c75
xor eax, eax
jmp 0x1011dce
mov esi, dword [sym.imp.KERNEL32.dll_GetProcAddress]
push 0x1003a0c
push edi
call esi
cmp eax, ebx
je 0x1011c6e
push eax
call fcn.0100c1e7
mov dword [esp], 0x10039fc
push edi
mov dword [0x102bcd8], eax
call esi
push eax
call fcn.0100c1e7
mov dword [esp], 0x10039e8
push edi
mov dword [0x102bcdc], eax
call esi
push eax
call fcn.0100c1e7
mov dword [0x102bce0], eax
lea eax, [ebp - 8]
push eax
call fcn.0100b2ec
pop ecx
pop ecx
test eax, eax
je 0x1011cd8
push ebx
push ebx
push ebx
push ebx
push ebx
call fcn.0100dbc0
add esp, 0x14
cmp dword [ebp - 8], 2
jne 0x1011d0a
push 0x10039cc
push edi
call esi
push eax
call fcn.0100c1e7
pop ecx
mov dword [0x102bce8], eax
cmp eax, ebx
je 0x1011d0a
push 0x10039b4
push edi
call esi
push eax
call fcn.0100c1e7
pop ecx
mov dword [0x102bce4], eax
mov eax, dword [0x102bce4]
mov esi, dword [ebp - 0x10]
cmp eax, esi
je 0x1011d83
cmp dword [0x102bce8], esi
je 0x1011d83
push eax
call fcn.0100c26d
pop ecx
call eax
cmp eax, ebx
je 0x1011d50
lea ecx, [ebp - 0x14]
push ecx
push 0xc
lea ecx, [ebp - 0x20]
push ecx
push 1
push eax
push dword [0x102bce8]
call fcn.0100c26d
pop ecx
call eax
test eax, eax
je 0x1011d50
test byte [ebp - 0x18], 1
jne 0x1011d83
lea eax, [ebp - 0xc]
push eax
call fcn.0100b373
pop ecx
test eax, eax
je 0x1011d6b
push ebx
push ebx
push ebx
push ebx
push ebx
call fcn.0100dbc0
add esp, 0x14
cmp dword [ebp - 0xc], 4
jb 0x1011d7a
or dword [ebp + 0x10], 0x200000
jmp 0x1011db4
or dword [ebp + 0x10], 0x40000
jmp 0x1011db4
mov eax, dword [0x102bcdc]
cmp eax, esi
je 0x1011db4
push eax
call fcn.0100c26d
pop ecx
call eax
mov dword [ebp - 4], eax
cmp eax, ebx
je 0x1011db4
mov eax, dword [0x102bce0]
cmp eax, esi
je 0x1011db4
push dword [ebp - 4]
push eax
call fcn.0100c26d
pop ecx
call eax
mov dword [ebp - 4], eax
push dword [ebp + 0x10]
push dword [ebp + 0xc]
push dword [ebp + 8]
push dword [ebp - 4]
push dword [0x102bcd8]
call fcn.0100c26d
pop ecx
call eax
pop edi
pop esi
pop ebx
leave
ret
Function at 0x1023510
Capabilities:
Get geographical location

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push ebx
push esi
push edi
call fcn.0100c4fe
mov ebx, dword [ebp + 8]
mov esi, eax
add esi, 0x9c
test ebx, ebx
jne 0x1023538
or dword [esi + 8], 0x104
jmp 0x10235fc
lea eax, [ebx + 0x40]
lea edi, [esi + 4]
mov dword [esi], ebx
mov dword [edi], eax
test eax, eax
je 0x102355b
cmp byte [eax], 0
je 0x102355b
push edi
push 0x16
push 0x10058c8
call fcn.01022ea5
add esp, 0xc
mov eax, dword [esi]
and dword [esi + 8], 0
test eax, eax
je 0x10235b8
cmp byte [eax], 0
je 0x10235b8
mov eax, dword [edi]
test eax, eax
je 0x102357c
cmp byte [eax], 0
je 0x102357c
call fcn.01023449
jmp 0x1023581
call fcn.010234c3
cmp dword [esi + 8], 0
jne 0x1023612
push esi
push 0x41
push 0x10056b8
call fcn.01022ea5
add esp, 0xc
test eax, eax
je 0x1023608
mov edi, dword [edi]
test edi, edi
je 0x10235b1
cmp byte [edi], 0
je 0x10235b1
call fcn.01023449
jmp 0x1023608
call fcn.010234c3
jmp 0x1023608
mov edi, dword [edi]
test edi, edi
je 0x10235f5
cmp byte [edi], 0
je 0x10235f5
mov eax, edi
lea edx, [eax + 1]
mov cl, byte [eax]
inc eax
test cl, cl
jne 0x10235c8
xor ecx, ecx
sub eax, edx
cmp eax, 3
sete cl
push 1
push 0x1023028
mov dword [esi + 0x14], ecx
call dword [sym.imp.KERNEL32.dll_EnumSystemLocalesA]
test byte [esi + 8], 4
jne 0x1023608
and dword [esi + 8], 0
jmp 0x1023608
mov dword [esi + 8], 0x104
call dword [sym.imp.KERNEL32.dll_GetUserDefaultLCID]
mov dword [esi + 0x18], eax
mov dword [esi + 0x1c], eax
cmp dword [esi + 8], 0
je 0x1023703
mov eax, ebx
sub ebx, 0xffffff80
neg eax
sbb eax, eax
and eax, ebx
push eax
mov edx, esi
call fcn.01022f25
mov edi, eax
pop ecx
mov dword [ebp + 8], edi
test edi, edi
je 0x1023703
cmp edi, 0xfde8
je 0x1023703
cmp edi, 0xfde9
je 0x1023703
movzx eax, di
push eax
call dword [sym.imp.KERNEL32.dll_IsValidCodePage]
test eax, eax
je 0x1023703
push 1
push dword [esi + 0x18]
call dword [sym.imp.KERNEL32.dll_IsValidLocale]
test eax, eax
je 0x1023703
mov eax, dword [ebp + 0xc]
test eax, eax
je 0x102368a
mov cx, word [esi + 0x18]
mov word [eax], cx
mov cx, word [esi + 0x1c]
mov word [eax + 2], cx
mov word [eax + 4], di
mov ebx, dword [ebp + 0x10]
test ebx, ebx
je 0x10236fe
mov edi, dword [sym.imp.KERNEL32.dll_GetLocaleInfoA]
mov ecx, 0x814
cmp word [eax], cx
jne 0x10236c6
push 0x100599c
push 0x40
push ebx
call fcn.0100ff1c
add esp, 0xc
test eax, eax
je 0x10236d7
xor eax, eax
push eax
push eax
push eax
push eax
push eax
call fcn.0100dbc0
add esp, 0x14
jmp 0x10236d7
push 0x40
push ebx
push 0x1001
push dword [esi + 0x18]
call edi
test eax, eax
je 0x1023703
push 0x40
lea eax, [ebx + 0x40]
push eax
push 0x1002
push dword [esi + 0x1c]
call edi
test eax, eax
je 0x1023703
push 0xa
push 0x10
sub ebx, 0xffffff80
push ebx
push dword [ebp + 8]
call fcn.010257fa
add esp, 0x10
xor eax, eax
inc eax
jmp 0x1023705
xor eax, eax
pop edi
pop esi
pop ebx
pop ebp
ret
Function at 0x10246e8
Capabilities:
Get system information on windows

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x5c
mov eax, dword [0x102a274]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
push esi
lea eax, [ebp - 0xc]
push edi
xor esi, esi
push eax
mov dword [ebp - 0xc], esi
call fcn.0100b2ec
pop ecx
test eax, eax
je 0x102471d
push esi
push esi
push esi
push esi
push esi
call fcn.0100dbc0
add esp, 0x14
push 4
pop eax
call fcn.01009d50
mov dword [ebp - 0x14], esp
push 0x1c
lea eax, [ebp - 0x38]
push eax
push dword [ebp - 0x14]
call dword [sym.imp.KERNEL32.dll_VirtualQuery]
test eax, eax
je 0x1024839
mov eax, dword [ebp - 0x34]
mov dword [ebp - 0x18], eax
lea eax, [ebp - 0x5c]
push eax
call dword [sym.imp.KERNEL32.dll_GetSystemInfo]
mov edi, dword [ebp - 0xc]
mov ebx, dword [ebp - 0x58]
dec edi
neg edi
sbb edi, edi
and edi, 0x103
inc edi
cmp dword [ebp - 0xc], 2
mov dword [ebp - 8], esi
jne 0x10247b2
mov dword [ebp - 0x10], esi
mov esi, dword [sym.imp.KERNEL32.dll_GetModuleHandleW]
push 0x1003994
call esi
test eax, eax
jne 0x1024789
push 0x1003978
call esi
test eax, eax
je 0x10247b2
push 0x10059b0
push eax
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
test eax, eax
je 0x10247b2
and dword [ebp - 0x10], 0
lea ecx, [ebp - 0x10]
push ecx
call eax
cmp eax, 1
jne 0x10247b2
mov eax, dword [ebp - 0x10]
test eax, eax
jbe 0x10247b2
mov dword [ebp - 8], eax
lea eax, [ebp - 8]
push eax
lea esi, [ebx - 1]
push esi
push dword [ebp - 8]
call fcn.0100baf3
add esp, 0xc
test eax, eax
jl 0x1024839
not esi
and dword [ebp - 8], esi
je 0x10247e4
lea eax, [ebp - 8]
push eax
push ebx
push dword [ebp - 8]
call fcn.0100baf3
add esp, 0xc
test eax, eax
jl 0x1024839
lea eax, [ebx + ebx]
cmp dword [ebp - 8], eax
jae 0x10247ef
mov dword [ebp - 8], eax
lea esi, [ebx - 1]
not esi
and esi, dword [ebp - 0x14]
sub esi, dword [ebp - 8]
cmp dword [ebp - 0xc], 1
jne 0x1024803
push 0x11
pop ebx
mov eax, dword [ebp - 0x18]
add ebx, eax
cmp esi, ebx
jb 0x1024839
push 4
push 0x1000
push dword [ebp - 8]
push esi
call dword [sym.imp.KERNEL32.dll_VirtualAlloc]
test eax, eax
je 0x1024839
lea eax, [ebp - 0x1c]
push eax
push edi
push dword [ebp - 8]
push esi
call dword [sym.imp.KERNEL32.dll_VirtualProtect]
test eax, eax
je 0x1024839
xor eax, eax
inc eax
jmp 0x102483b
xor eax, eax
lea esp, [ebp - 0x68]
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.01009d2c
leave
ret
Function at 0x1024891
Capabilities:
Get geographical location

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x94
mov eax, dword [0x102a274]
xor eax, ebp
mov dword [ebp - 4], eax
mov eax, dword [ebp + 8]
push ebx
mov ebx, dword [ebp + 0x18]
push esi
xor esi, esi
cmp dword [ebp + 0xc], 1
push edi
mov dword [ebp - 0x88], eax
jne 0x10249d0
push esi
push 0x80
lea ecx, [ebp - 0x84]
push ecx
push dword [ebp + 0x14]
mov dword [ebp - 0x8c], ecx
push dword [ebp + 0x10]
mov dword [ebp - 0x94], esi
push eax
call fcn.0102649a
mov edi, eax
add esp, 0x18
cmp edi, esi
jne 0x102495d
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0x7a
jne 0x1024981
push esi
push esi
push esi
push dword [ebp + 0x14]
push dword [ebp + 0x10]
push dword [ebp - 0x88]
call fcn.0102649a
add esp, 0x18
mov dword [ebp - 0x90], eax
cmp eax, esi
je 0x1024981
xor edi, edi
inc edi
push edi
push eax
call fcn.0100e551
pop ecx
pop ecx
mov dword [ebp - 0x8c], eax
cmp eax, esi
je 0x1024981
push esi
push dword [ebp - 0x90]
mov dword [ebp - 0x94], edi
push eax
push dword [ebp + 0x14]
push dword [ebp + 0x10]
push dword [ebp - 0x88]
call fcn.0102649a
mov edi, eax
add esp, 0x18
cmp edi, esi
je 0x1024975
push 1
push edi
call fcn.0100e551
pop ecx
pop ecx
mov dword [ebx], eax
cmp eax, esi
jne 0x1024993
cmp dword [ebp - 0x94], esi
je 0x1024981
push dword [ebp - 0x8c]
call fcn.0100ad32
pop ecx
or eax, 0xffffffff
mov ecx, dword [ebp - 4]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.01009d2c
leave
ret
lea ecx, [edi - 1]
push ecx
push dword [ebp - 0x8c]
push edi
push eax
call fcn.01022deb
add esp, 0x10
test eax, eax
je 0x10249b8
push esi
push esi
push esi
push esi
push esi
call fcn.0100dbc0
add esp, 0x14
cmp dword [ebp - 0x94], esi
je 0x10249cc
push dword [ebp - 0x8c]
call fcn.0100ad32
pop ecx
xor eax, eax
jmp 0x1024984
cmp dword [ebp + 0xc], 2
jne 0x1024a24
mov edi, dword [sym.imp.KERNEL32.dll_GetLocaleInfoW]
push esi
push esi
push dword [ebp + 0x14]
mov dword [ebx], esi
push dword [ebp + 0x10]
call edi
mov dword [ebp - 0x90], eax
cmp eax, esi
je 0x1024a15
push 2
push eax
call fcn.0100e551
pop ecx
pop ecx
mov dword [ebx], eax
cmp eax, esi
je 0x1024a15
push dword [ebp - 0x90]
push eax
push dword [ebp + 0x14]
push dword [ebp + 0x10]
call edi
test eax, eax
jne 0x10249cc
push dword [ebx]
call fcn.0100ad32
pop ecx
mov dword [ebx], esi
jmp 0x1024981
cmp dword [ebp + 0xc], esi
jne 0x1024981
push 2
lea eax, [ebp - 0x88]
push eax
mov eax, dword [ebp + 0x14]
or eax, 0x20000000
push eax
push dword [ebp + 0x10]
mov dword [ebp - 0x88], esi
call dword [sym.imp.KERNEL32.dll_GetLocaleInfoW]
test eax, eax
je 0x1024981
mov al, byte [ebp - 0x88]
mov byte [ebx], al
jmp 0x10249cc
Function at 0x10001c90
Capabilities:
Check for software breakpoints

Disassembly:
push esi
mov esi, dword [esp + 8]
cmp dword [esi + 0x14], 0xca
jne 0x10001cbf
push esi
call fcn.10006000
add esp, 4
cmp byte [esi + 0x40], 0
je 0x10001cb8
mov dword [esi + 0x14], 0xcf
mov al, 1
pop esi
ret
mov dword [esi + 0x14], 0xcb
mov eax, dword [esi + 0x14]
cmp eax, 0xcb
jne 0x10001d3a
mov eax, dword [esi + 0x1a0]
cmp byte [eax + 0x10], 0
je 0x10001d2a
mov eax, dword [esi + 8]
test eax, eax
je 0x10001ce4
mov ecx, dword [eax]
push esi
call ecx
add esp, 4
mov edx, dword [esi + 0x1a0]
mov eax, dword [edx]
push esi
call eax
add esp, 4
test eax, eax
je 0x10001d26
cmp eax, 2
je 0x10001d2a
mov ecx, dword [esi + 8]
test ecx, ecx
je 0x10001cd5
cmp eax, 3
je 0x10001d0c
cmp eax, 1
jne 0x10001cd5
add dword [ecx + 4], 1
mov eax, dword [esi + 8]
mov ecx, dword [eax + 4]
cmp ecx, dword [eax + 8]
jl 0x10001cd5
mov edx, dword [esi + 0x120]
add dword [eax + 8], edx
jmp 0x10001cd5
xor al, al
pop esi
ret
mov eax, dword [esi + 0x7c]
mov dword [esi + 0x84], eax
call fcn.10001960
pop esi
ret
cmp eax, 0xcc
je 0x10001d5c
mov ecx, dword [esi]
mov dword [ecx + 0x14], 0x15
mov edx, dword [esi]
mov eax, dword [esi + 0x14]
mov dword [edx + 0x18], eax
mov ecx, dword [esi]
mov edx, dword [ecx]
push esi
call edx
add esp, 4
call fcn.10001960
pop esi
ret
Function at 0x1000da50
Capabilities:
Encrypt data using rc4 ksa

Disassembly:
sub esp, 0x18
push esi
push edi
mov edi, dword [esp + 0x24]
cmp dword [edi + 0x4c], 1
mov esi, dword [edi + 0x1b8]
mov dword [esp + 0x18], esi
jne 0x1000da77
mov dword [esp + 8], 0x1fe
mov byte [esi + 0x1c], 1
jmp 0x1000da83
mov dword [esp + 8], 0
mov byte [esi + 0x1c], 0
mov ecx, dword [edi + 0x64]
mov edx, dword [esp + 8]
mov eax, dword [edi + 4]
mov eax, dword [eax + 8]
push ecx
add edx, 0x100
push edx
push 1
push edi
call eax
xor ecx, ecx
mov dword [esi + 0x18], eax
mov eax, dword [esi + 0x14]
add esp, 0x10
cmp dword [edi + 0x64], ecx
mov dword [esp + 0x14], ecx
jle 0x1000dbac
push ebx
lea edx, [esi + 0x20]
push ebp
mov dword [esp + 0x14], edx
jmp 0x1000dac8
mov eax, dword [esp + 0x18]
mov esi, dword [esp + 0x20]
mov edx, dword [esp + 0x14]
mov edi, dword [edx]
cdq
idiv edi
cmp dword [esp + 0x10], 0
mov dword [esp + 0x18], eax
je 0x1000dae9
mov eax, dword [esi + 0x18]
add dword [eax + ecx*4], 0xff
lea eax, [eax + ecx*4]
mov edx, dword [esi + 0x18]
mov ebp, dword [edx + ecx*4]
lea eax, [edi + 0xfe]
lea esi, [edi + edi - 2]
cdq
idiv esi
xor ebx, ebx
mov dword [esp + 0x24], ebp
xor esi, esi
mov edx, eax
cmp esi, edx
jle 0x1000db41
mov ecx, ebx
lea ebp, [edi + edi - 2]
imul ecx, ecx, 0x1fe
jmp 0x1000db20
add ecx, 0x1fe
lea eax, [ecx + edi + 0xfe]
cdq
idiv ebp
add ebx, 1
mov edx, eax
cmp esi, edx
jg 0x1000db20
mov ecx, dword [esp + 0x1c]
mov ebp, dword [esp + 0x24]
mov al, byte [esp + 0x18]
imul bl
mov byte [esi + ebp], al
add esi, 1
cmp esi, 0xff
jle 0x1000db06
cmp dword [esp + 0x10], 0
je 0x1000db91
mov eax, 1
lea edx, [ebp - 1]
jmp 0x1000db70
movzx ebx, byte [ebp]
mov byte [edx], bl
movzx ebx, byte [ebp + 0xff]
mov byte [eax + ebp + 0xff], bl
add eax, 1
sub edx, 1
cmp eax, 0xff
jle 0x1000db70
mov eax, dword [esp + 0x2c]
add dword [esp + 0x14], 4
add ecx, 1
cmp ecx, dword [eax + 0x64]
mov dword [esp + 0x1c], ecx
jl 0x1000dac0
pop ebp
pop ebx
pop edi
pop esi
add esp, 0x18
ret