joyce8/EMBER2024-capa huggingface dataset:
Function at 0x100a29b0
Capabilities:
Read http header

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x100f3ec9
mov eax, dword fs:[0]
push eax
sub esp, 0x14
push ebx
push esi
push edi
mov eax, dword [0x101480b0]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov ebx, ecx
mov dword [ebp - 0x14], 0
mov dword [ebp - 0x10], 0
mov dword [ebp - 4], 1
call fcn.10002710
mov edi, eax
test edi, edi
je 0x100a2afe
mov eax, dword [edi]
mov esi, dword [eax + 0xc]
mov ecx, esi
call dword [0x100f9528]
mov ecx, edi
call esi
mov edi, dword [ebp + 8]
add eax, 0x10
mov dword [edi], eax
push 0
lea eax, [ebp - 0x10]
mov dword [ebp - 4], 0
push eax
push 0
push dword [ebp + 0x10]
mov dword [ebp - 0x14], 1
push dword [ebp + 0xc]
push dword [ebx + 0x44]
call dword [sym.imp.WINHTTP.dll_WinHttpQueryHeaders]
call dword [sym.imp.kernel32.dll_GetLastError]
cmp eax, 0x7a
jne 0x100a2ae8
mov esi, dword [ebp - 0x10]
cmp esi, 0xa00000
ja 0x100a2b08
shr esi, 1
sub esi, 1
js 0x100a2b23
mov eax, dword [edi]
mov ecx, 1
sub ecx, dword [eax - 4]
mov eax, dword [eax - 8]
sub eax, esi
or ecx, eax
jge 0x100a2a80
push esi
mov ecx, edi
call fcn.1008a870
mov ecx, dword [edi]
cmp esi, dword [ecx - 8]
jg 0x100a2b23
mov dword [ecx - 0xc], esi
xor edx, edx
mov eax, dword [edi]
push edx
mov word [eax + esi*2], dx
lea eax, [ebp - 0x10]
push eax
push ecx
push dword [ebp + 0x10]
push dword [ebp + 0xc]
push dword [ebx + 0x44]
call dword [sym.imp.WINHTTP.dll_WinHttpQueryHeaders]
mov ecx, dword [edi]
mov esi, eax
test ecx, ecx
je 0x100a2ac5
push dword [ecx - 8]
push ecx
call fcn.1008a870
mov ecx, eax
add esp, 8
test ecx, ecx
js 0x100a2b23
mov eax, dword [edi]
cmp ecx, dword [eax - 8]
jg 0x100a2b23
mov dword [eax - 0xc], ecx
xor edx, edx
mov eax, dword [edi]
mov word [eax + ecx*2], dx
test esi, esi
jne 0x100a2ae8
push esi
push 0x100fb314
mov ecx, edi
call fcn.1008a870
mov eax, edi
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 0xc
push 0x80004005
call fcn.1008a870
push 0xcaa10024
lea ecx, [ebp - 0x20]
call fcn.1008a870
push 0x10134a50
lea eax, [ebp - 0x20]
push eax
call fcn.1008a870
push 0x80070057
call fcn.1008a870
int3
Function at 0x100a2b30
Capabilities:
Receive http response

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x100f3ef8
mov eax, dword fs:[0]
push eax
sub esp, 0x2c
push ebx
push esi
push edi
mov eax, dword [0x101480b0]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov ebx, ecx
mov edi, dword [ebx + 0x18]
lea esi, [ebx + 0x14]
sub edi, dword [esi]
mov eax, dword [ebp + 8]
add eax, edi
cmp eax, 0xa00000
jg 0x100a2bca
lea ecx, [ebp - 0xd]
mov byte [ebp - 0xd], 0
push ecx
push esi
push eax
mov ecx, esi
call fcn.1008a870
mov eax, dword [esi]
lea ecx, [ebp - 0x14]
push ecx
push dword [ebp + 8]
add eax, edi
mov dword [ebp - 0x14], 0
push eax
push dword [ebx + 0x44]
call dword [sym.imp.WINHTTP.dll_WinHttpReadData]
test eax, eax
je 0x100a2be5
mov eax, dword [ebp - 0x14]
mov ecx, esi
push esi
add eax, edi
push eax
call fcn.1008a870
push 0xa
mov ecx, ebx
call fcn.1008a870
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 4
push 0xcaa10024
lea ecx, [ebp - 0x24]
call fcn.1008a870
push 0x10134a50
lea eax, [ebp - 0x24]
push eax
call fcn.1008a870
push 0x100fb314
lea ecx, [ebp - 0x18]
call fcn.1008a870
mov esi, eax
mov dword [ebp - 4], 0
call dword [sym.imp.kernel32.dll_GetLastError]
push esi
push eax
lea ecx, [ebp - 0x38]
call fcn.1008a870
push 0x101358ac
lea eax, [ebp - 0x38]
push eax
call fcn.1008a870
int3
Function at 0x100a3050
Capabilities:
Connect to http server

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x100f3f88
mov eax, dword fs:[0]
push eax
sub esp, 0x30
push ebx
push esi
push edi
mov eax, dword [0x101480b0]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov ebx, ecx
lea ecx, [ebx + 0x30]
mov dword [ebx + 4], ebx
call fcn.1004a500
test eax, eax
jne 0x100a308d
xor edi, edi
jmp 0x100a3097
lea ecx, [ebx + 0x30]
call fcn.1004a500
mov edi, eax
lea eax, [ebp - 0x10]
push eax
lea ecx, [ebx + 0x30]
call fcn.1008a870
mov esi, dword [eax]
mov ecx, 0x1015146c
movzx eax, byte [ebx + 0x3d]
push eax
mov dword [ebp - 4], 0
call fcn.1008a870
push 0
push 0
push 3
push 0
push 0
push edi
push esi
push eax
call dword [sym.imp.WININET.dll_InternetConnectW]
mov ecx, dword [ebp - 0x10]
mov dword [ebx + 0x48], eax
add ecx, 0xfffffff0
mov dword [ebp - 4], 0xffffffff
or eax, 0xffffffff
lock xadd dword [ecx + 0xc], eax
dec eax
test eax, eax
jg 0x100a30ff
mov edi, dword [ecx]
push ecx
mov eax, dword [edi]
mov esi, dword [eax + 4]
mov ecx, esi
call dword [0x100f9528]
mov ecx, edi
call esi
mov eax, dword [ebx + 0x48]
test eax, eax
je 0x100a3132
push 0x100a38e0
push eax
call dword [sym.imp.WININET.dll_InternetSetStatusCallbackW]
cmp eax, 0xffffffff
je 0x100a3166
push 2
mov ecx, ebx
call fcn.1008a870
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
push 0x100fb314
lea ecx, [ebp - 0x10]
call fcn.1008a870
mov esi, eax
mov dword [ebp - 4], 1
call dword [sym.imp.kernel32.dll_GetLastError]
push esi
push eax
lea ecx, [ebp - 0x28]
call fcn.1008a870
push 0x101358ac
lea eax, [ebp - 0x28]
push eax
call fcn.1008a870
push 0x100fb314
lea ecx, [ebp - 0x14]
call fcn.1008a870
mov esi, eax
mov dword [ebp - 4], 2
call dword [sym.imp.kernel32.dll_GetLastError]
push esi
push eax
lea ecx, [ebp - 0x3c]
call fcn.1008a870
push 0x101358ac
lea eax, [ebp - 0x3c]
push eax
call fcn.1008a870
int3
Function at 0x100a3480
Capabilities:
Query remote server for available data

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x100f3e88
mov eax, dword fs:[0]
push eax
sub esp, 0x28
push esi
mov eax, dword [0x101480b0]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov esi, ecx
push 0
push 0
lea eax, [ebp - 0x10]
mov dword [ebp - 0x10], 0
push eax
push dword [esi + 0x4c]
call dword [sym.imp.WININET.dll_InternetQueryDataAvailable]
test eax, eax
jne 0x100a34d1
call dword [sym.imp.kernel32.dll_GetLastError]
cmp eax, 0x3e5
jne 0x100a3501
mov edx, dword [esi + 0x18]
sub edx, dword [esi + 0x14]
mov eax, dword [ebp - 0x10]
lea ecx, [edx + eax]
cmp ecx, eax
jb 0x100a3550
cmp ecx, edx
jb 0x100a3550
test eax, eax
je 0x100a34f1
cmp ecx, 0xa00000
ja 0x100a3535
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop esi
mov esp, ebp
pop ebp
ret
push 0x100fb314
lea ecx, [ebp - 0x14]
call fcn.1008a870
mov esi, eax
mov dword [ebp - 4], 0
call dword [sym.imp.kernel32.dll_GetLastError]
push esi
push eax
lea ecx, [ebp - 0x34]
call fcn.1008a870
push 0x101358ac
lea eax, [ebp - 0x34]
push eax
call fcn.1008a870
push 0xcaa10024
lea ecx, [ebp - 0x20]
call fcn.1008a870
push 0x10134a50
lea eax, [ebp - 0x20]
push eax
call fcn.1008a870
push 0xcaa82f9b
lea ecx, [ebp - 0x2c]
call fcn.1008a870
push 0x10134a50
lea eax, [ebp - 0x2c]
push eax
call fcn.1008a870
int3

Function at 0x100a36f0
Capabilities:
Read data from internet
Receive data

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x100f3fe8
mov eax, dword fs:[0]
push eax
sub esp, 0x24
push ebx
push esi
push edi
mov eax, dword [0x101480b0]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov ebx, ecx
mov edi, dword [ebx + 0x18]
lea esi, [ebx + 0x14]
sub edi, dword [esi]
mov ecx, dword [ebp + 8]
lea eax, [edi + ecx]
cmp eax, edi
jl 0x100a3791
cmp eax, ecx
jl 0x100a3791
cmp eax, 0xa00000
jg 0x100a3798
push esi
push eax
mov ecx, esi
call fcn.1008a870
mov eax, dword [esi]
lea ecx, [ebx + 0x40]
push ecx
push dword [ebp + 8]
add eax, edi
push eax
push dword [ebx + 0x4c]
call dword [sym.imp.WININET.dll_InternetReadFile]
test eax, eax
jne 0x100a3766
call dword [sym.imp.kernel32.dll_GetLastError]
cmp eax, 0x3e5
jne 0x100a37b3
mov eax, dword [ebx + 0x40]
mov ecx, esi
push esi
add eax, edi
push eax
call fcn.1008a870
push 0xa
mov ecx, ebx
call fcn.1008a870
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 4
push 0xcaa82f9c
jmp 0x100a379d
push 0xcaa10024
lea ecx, [ebp - 0x1c]
call fcn.1008a870
push 0x10134a50
lea eax, [ebp - 0x1c]
push eax
call fcn.1008a870
push 0x100fb314
lea ecx, [ebp - 0x10]
call fcn.1008a870
mov esi, eax
mov dword [ebp - 4], 0
call dword [sym.imp.kernel32.dll_GetLastError]
push esi
push eax
lea ecx, [ebp - 0x30]
call fcn.1008a870
push 0x101358ac
lea eax, [ebp - 0x30]
push eax
call fcn.1008a870
int3
Function at 0x406a06
Capabilities:
Get common file path

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x23c
push esi
mov esi, 0x104
lea eax, [ebp - 0x23c]
push esi
push eax
call dword [sym.imp.KERNEL32.dll_GetSystemDirectoryW]
cmp eax, esi
pop esi
jbe 0x406a2a
xor eax, eax
test eax, eax
je 0x406a3d
cmp word [ebp + eax*2 - 0x23e], 0x5c
je 0x406a3d
xor ecx, ecx
jmp 0x406a40
xor ecx, ecx
inc ecx
push dword [ebp + 8]
lea ecx, [ecx*2 + 0x40a014]
lea eax, [ebp + eax*2 - 0x23c]
push ecx
push str._s_S.dll
push eax
call dword [sym.imp.USER32.dll_wsprintfW]
add esp, 0x10
lea eax, [ebp - 0x23c]
push 8
push 0
push eax
call dword [sym.imp.KERNEL32.dll_LoadLibraryExW]
leave
ret 4

Function at 0x406b63
Capabilities:
Encode data using xor
Hash data with crc32

Disassembly:
cmp dword [0x4275ec], 0
push esi
jne 0x406b9a
xor ecx, ecx
push 8
mov eax, ecx
pop esi
mov edx, eax
and dl, 1
neg dl
sbb edx, edx
and edx, 0xedb88320
shr eax, 1
xor eax, edx
dec esi
jne 0x406b74
mov dword [ecx*4 + 0x4275e8], eax
inc ecx
cmp ecx, 0x100
jl 0x406b6f
mov edx, dword [esp + 0x10]
mov eax, dword [esp + 8]
test edx, edx
not eax
jbe 0x406bcb
mov ecx, dword [esp + 0xc]
push edi
movzx edi, byte [ecx]
mov esi, eax
and esi, 0xff
xor esi, edi
shr eax, 8
mov esi, dword [esi*4 + 0x4275e8]
xor eax, esi
inc ecx
dec edx
jne 0x406bad
pop edi
not eax
pop esi
ret 0xc

Function at 0x4400c9
Capabilities:
Encrypt data using dpapi

Disassembly:
push esi
push edi
push 0x46c6d0
push str.AdvApi32.dll
call main
mov edi, dword [sym.imp.kernel32.dll_GetProcAddress]
mov esi, eax
test esi, esi
js 0x44010c
push str.SystemFunction040
push dword [0x46c6d0]
call edi
push str.SystemFunction041
push dword [0x46c6d0]
mov dword [0x46c6c0], eax
call edi
mov dword [0x46c6c4], eax
jmp 0x440111
mov eax, dword [0x46c6c4]
cmp dword [0x46c6c0], 0
je 0x440122
test eax, eax
jne 0x4401c9
push 0x46c6d4
push str.Crypt32.dll
call main
mov esi, eax
test esi, esi
js 0x4401d3
push str.CryptProtectMemory
push dword [0x46c6d4]
call edi
cmp dword [0x46c6c0], 0
mov dword [0x46c6c8], eax
jne 0x440187
test eax, eax
jne 0x440187
call dword [sym.imp.kernel32.dll_GetLastError]
mov esi, eax
test esi, esi
jle 0x440171
movzx esi, si
or esi, 0x80070000
test esi, esi
js 0x440178
mov esi, 0x80004005
push esi
push 0x28
push str.c:_agent_work138_s_srclibsdutilcryputil.cpp
call fcn.004038f5
jmp 0x4401d3
push str.CryptUnprotectMemory
push dword [0x46c6d4]
call edi
cmp dword [0x46c6c4], 0
mov dword [0x46c6cc], eax
jne 0x4401c9
test eax, eax
jne 0x4401c9
call dword [sym.imp.kernel32.dll_GetLastError]
mov esi, eax
test esi, esi
jle 0x4401bd
movzx esi, si
or esi, 0x80070000
test esi, esi
js 0x4401c4
mov esi, 0x80004005
push esi
push 0x2d
jmp 0x44017b
mov dword [0x46c6d8], 1
pop edi
mov eax, esi
pop esi
ret
Function at 0x401ee2
Capabilities:
Terminate process

Disassembly:
cmp ecx, dword [0x411280]
jne 0x401eec
repz ret
jmp fcn.00404369

Function at 0x4025e7
Capabilities:
Accept command line arguments
Parse pe header

Disassembly:
push 0x14
push 0x40f530
call fcn.00403770
mov eax, 0x5a4d
cmp word [0x400000], ax
jne 0x4024e7
mov eax, dword [0x40003c]
cmp dword [eax + 0x400000], 0x4550
jne 0x4024e7
mov ecx, 0x10b
cmp word [eax + 0x400018], cx
jne 0x4024e7
cmp dword [eax + 0x400074], 0xe
jbe 0x4024e7
xor ecx, ecx
cmp dword [eax + 0x4000e8], ecx
setne cl
mov dword [ebp - 0x1c], ecx
jmp 0x4024eb
and dword [ebp - 0x1c], 0
push 1
call fcn.0040d73f
pop ecx
test eax, eax
jne 0x4024ff
push 0x1c
call fcn.0040d73f
pop ecx
call fcn.00405287
test eax, eax
jne 0x402510
push 0x10
call fcn.0040d73f
pop ecx
call fcn.00405952
and dword [ebp - 4], 0
call fcn.004032ff
test eax, eax
jge 0x40252a
push 0x1b
call fcn.0040d73f
pop ecx
call dword [sym.imp.kernel32.dll_GetCommandLineA]
mov dword [0x412ba0], eax
call fcn.0040d73f
mov dword [0x41203c], eax
call fcn.0040d73f
test eax, eax
jge 0x402550
push 8
call fcn.0040d73f
pop ecx
call fcn.00405fde
test eax, eax
jge 0x402561
push 9
call fcn.0040d73f
pop ecx
push 1
call fcn.0040d73f
pop ecx
test eax, eax
je 0x402574
push eax
call fcn.0040d73f
pop ecx
mov eax, dword [0x412018]
mov dword [0x41201c], eax
push eax
push dword [0x412010]
push dword [0x41200c]
call main
add esp, 0xc
mov dword [ebp - 0x20], eax
cmp dword [ebp - 0x1c], 0
jne 0x4025a2
push eax
call fcn.0040d73f
call fcn.00402400
jmp 0x4025d7
mov dword [ebp - 4], 0xfffffffe
mov eax, dword [ebp - 0x20]
call fcn.004037b5
ret
call fcn.0040d73f
jmp 0x402495

Function at 0x40d73f
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x28
pushal
call 0x40d74e
pop dword [ebp - 0x18]
mov eax, 0x40d74e
sub dword [ebp - 0x18], eax
push 0x40
push 0x1000
push 0x3b5f3
push 0
mov eax, 0x5f0c5d35
add eax, 0xa13483a3
add eax, dword [ebp - 0x18]
call dword [eax]
mov ecx, 0x50a7
xor edx, edx
add edx, eax
mov edi, 0x27e1325b
add edi, 0xd8600969
add edi, dword [ebp - 0x18]
mov esi, 0x72892f95
add dword [ebp - 0x10], 0x6bec21ff
mov ebx, dword [edi]
add dword [ebp - 0xc], edx
xor ebx, esi
xor dword [ebp - 0xc], edi
mov dword [edx], ebx
sub dword [ebp - 0x14], ecx
add edx, 4
add edi, 4
loop 0x40d79e
add eax, 0x1c94e845
sub eax, 0x1c93b2d6
xor ebx, ebx
add ebx, eax
add eax, 0x7ae203a8
add eax, 0x851dfc5d
mov ecx, 0x400000
add ecx, dword [ebp - 0x18]
call ebx
leave
ret
Function at 0x401450
Capabilities:
Hash data using djb2
Resolve function by parsing pe exports

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x18
mov eax, dword [ecx + 0x3c]
mov dword [ebp - 0xc], edx
push ebx
push esi
mov eax, dword [eax + ecx + 0x78]
xor ebx, ebx
add eax, ecx
mov dword [ebp - 4], ecx
push edi
mov edx, dword [eax + 0x1c]
mov esi, dword [eax + 0x20]
add edx, ecx
mov dword [ebp - 0x18], edx
add esi, ecx
mov edx, dword [eax + 0x24]
add edx, ecx
mov dword [ebp - 0x10], esi
mov dword [ebp - 0x14], edx
mov edx, dword [eax + 0x14]
mov dword [ebp - 8], edx
test edx, edx
je 0x4014d3
nop dword [eax]
mov esi, dword [esi + ebx*4]
mov edi, 0x1505
add esi, ecx
movsx eax, byte [esi]
test eax, eax
je 0x4014c6
lea ecx, [eax - 0x41]
lea edx, [eax + 0x20]
cmp ecx, 0x19
lea esi, [esi + 1]
cmova edx, eax
mov eax, edi
shl eax, 5
add edi, eax
movsx eax, byte [esi]
add edi, edx
test eax, eax
jne 0x4014a1
mov ecx, dword [ebp - 4]
mov edx, dword [ebp - 8]
cmp dword [ebp - 0xc], edi
je 0x4014dc
mov esi, dword [ebp - 0x10]
inc ebx
cmp ebx, edx
jb 0x401490
pop edi
pop esi
xor eax, eax
pop ebx
mov esp, ebp
pop ebp
ret
mov eax, dword [ebp - 0x14]
mov edx, dword [ebp - 0x18]
pop edi
pop esi
movzx eax, word [eax + ebx*2]
pop ebx
mov eax, dword [edx + eax*4]
add eax, ecx
mov esp, ebp
pop ebp
ret
Function at 0x12638
Capabilities:
Generate random numbers using the delphi lcg

Disassembly:
imul edx, dword [0x1c02c], 0x8088405
inc edx
mov dword [0x1c02c], edx
mul edx
mov eax, edx
ret

Function at 0x126f4
Capabilities:
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffff4
movzx eax, word [section.DATA]
mov dword [ebp - 8], eax
lea eax, [ebp - 4]
push eax
push 1
push 0
push 0x1278c
push 0x80000002
call sub.advapi32.dll_RegOpenKeyExA
test eax, eax
jne 0x1276c
xor eax, eax
push ebp
push 0x12765
push dword fs:[eax]
mov dword fs:[eax], esp
mov dword [ebp - 0xc], 4
lea eax, [ebp - 0xc]
push eax
lea eax, [ebp - 8]
push eax
push 0
push 0
push 0x127a8
mov eax, dword [ebp - 4]
push eax
call sub.advapi32.dll_RegQueryValueExA
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x1276c
mov eax, dword [ebp - 4]
push eax
call sub.advapi32.dll_RegCloseKey
ret
mov ax, word [section.DATA]
and ax, 0xffc0
mov dx, word [ebp - 8]
and dx, 0x3f
or ax, dx
mov word [section.DATA], ax
mov esp, ebp
pop ebp
ret
Function at 0x13898
Capabilities:
Get geographical location
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffee0
push ebx
push esi
mov dword [ebp - 4], eax
push 0x105
lea eax, [ebp - 0x11d]
push eax
push 0
call sub.KERNEL32.DLL_GetModuleFileNameA_1
mov byte [ebp - 0x12], 0
lea eax, [ebp - 8]
push eax
push 0xf003f
push 0
push 0x13a54
push 0x80000001
call sub.advapi32.dll_RegOpenKeyExA
test eax, eax
je 0x138f9
lea eax, [ebp - 8]
push eax
push 0xf003f
push 0
push 0x13a70
push 0x80000001
call sub.advapi32.dll_RegOpenKeyExA
test eax, eax
jne 0x1396b
xor eax, eax
push ebp
push 0x13964
push dword fs:[eax]
mov dword fs:[eax], esp
mov dword [ebp - 0x18], 5
lea eax, [ebp - 0x18]
push eax
lea eax, [ebp - 0x12]
push eax
push 0
push 0
lea eax, [ebp - 0x11d]
call fcn.000136f0
push eax
mov eax, dword [ebp - 8]
push eax
call sub.advapi32.dll_RegQueryValueExA
test eax, eax
je 0x1394d
lea eax, [ebp - 0x18]
push eax
lea eax, [ebp - 0x12]
push eax
push 0
push 0
push 0x13a90
mov eax, dword [ebp - 8]
push eax
call sub.advapi32.dll_RegQueryValueExA
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x1396b
mov eax, dword [ebp - 8]
push eax
call sub.advapi32.dll_RegCloseKey
ret
mov eax, dword [ebp - 4]
push eax
lea eax, [ebp - 0x11d]
push eax
call sub.KERNEL32.DLL_lstrcpyA
push 5
lea eax, [ebp - 0xd]
push eax
push 3
call sub.KERNEL32.DLL_GetThreadLocale
push eax
call sub.KERNEL32.DLL_GetLocaleInfoA
xor esi, esi
cmp byte [ebp - 0x11d], 0
je 0x13a4c
cmp byte [ebp - 0xd], 0
jne 0x139ad
cmp byte [ebp - 0x12], 0
je 0x13a4c
lea eax, [ebp - 0x11d]
push eax
call sub.KERNEL32.DLL_lstrlenA_1
mov ebx, eax
lea eax, [ebp - 0x11d]
add ebx, eax
jmp 0x139c6
dec ebx
cmp byte [ebx], 0x2e
je 0x139d5
lea eax, [ebp - 0x11d]
cmp ebx, eax
jne 0x139c5
lea eax, [ebp - 0x11d]
cmp ebx, eax
je 0x13a4c
inc ebx
cmp byte [ebp - 0x12], 0
je 0x13a02
lea eax, [ebp - 0x12]
push eax
push ebx
call sub.KERNEL32.DLL_lstrcpyA
push 2
push 0
lea eax, [ebp - 0x11d]
push eax
call sub.KERNEL32.DLL_LoadLibraryExA
mov esi, eax
test esi, esi
jne 0x13a4c
cmp byte [ebp - 0xd], 0
je 0x13a4c
lea eax, [ebp - 0xd]
push eax
push ebx
call sub.KERNEL32.DLL_lstrcpyA
push 2
push 0
lea eax, [ebp - 0x11d]
push eax
call sub.KERNEL32.DLL_LoadLibraryExA
mov esi, eax
test esi, esi
jne 0x13a4c
mov byte [ebp - 0xb], 0
lea eax, [ebp - 0xd]
push eax
push ebx
call sub.KERNEL32.DLL_lstrcpyA
push 2
push 0
lea eax, [ebp - 0x11d]
push eax
call sub.KERNEL32.DLL_LoadLibraryExA
mov esi, eax
mov eax, esi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x1535c
Capabilities:
Accept command line arguments

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffee4
xor ecx, ecx
mov dword [ebp - 0x11c], ecx
mov dword [ebp - 8], edx
mov dword [ebp - 4], eax
xor eax, eax
push ebp
push 0x1547c
push dword fs:[eax]
mov dword fs:[eax], esp
cmp dword [ebp - 4], 0
jne 0x153af
push 0x105
lea eax, [ebp - 0x115]
push eax
push 0
call sub.KERNEL32.DLL_GetModuleFileNameA
mov ecx, eax
lea edx, [ebp - 0x115]
mov eax, dword [ebp - 8]
call fcn.00012fe4
jmp 0x15463
call sub.KERNEL32.DLL_GetCommandLineA
mov dword [ebp - 0xc], eax
mov eax, dword [ebp - 0xc]
call fcn.000152bc
mov dword [ebp - 0xc], eax
mov eax, dword [ebp - 0xc]
mov dword [ebp - 0x10], eax
mov eax, dword [ebp - 0xc]
call fcn.00015300
mov dword [ebp - 0xc], eax
cmp dword [ebp - 4], 0
je 0x153ea
dec dword [ebp - 4]
cmp dword [ebp - 4], 0
jl 0x153ea
mov eax, dword [ebp - 0xc]
cmp eax, dword [ebp - 0x10]
jne 0x153b7
mov eax, dword [ebp - 8]
push eax
lea eax, [ebp - 0x11c]
mov edx, dword [ebp - 0x10]
call fcn.00013024
mov eax, dword [ebp - 0x11c]
mov ecx, dword [ebp - 0xc]
sub ecx, dword [ebp - 0x10]
mov edx, 1
call fcn.00013270
mov eax, dword [ebp - 8]
mov eax, dword [eax]
call fcn.00013078
cmp eax, 2
jl 0x15463
mov eax, dword [ebp - 8]
mov eax, dword [eax]
cmp byte [eax], 0x22
jne 0x15463
mov eax, dword [ebp - 8]
mov eax, dword [eax]
call fcn.00013078
mov edx, dword [ebp - 8]
mov edx, dword [edx]
cmp byte [edx + eax - 1], 0x22
jne 0x15463
mov eax, dword [ebp - 8]
push eax
mov eax, dword [ebp - 8]
mov eax, dword [eax]
call fcn.00013078
mov ecx, eax
sub ecx, 2
mov eax, dword [ebp - 8]
mov eax, dword [eax]
mov edx, 2
call fcn.00013270
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x15483
lea eax, [ebp - 0x11c]
call fcn.00012efc
ret

Function at 0x15500
Capabilities:
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
push ecx
mov eax, dword [ebp + 8]
add eax, 0xfffffff8
push eax
mov eax, dword [ebp + 8]
mov eax, dword [eax - 0x14]
push eax
mov eax, dword [ebp + 8]
add eax, 0xfffffffc
push eax
push 0
mov eax, dword [ebp + 8]
mov eax, dword [eax - 0x10]
call fcn.0001322c
push eax
mov eax, dword [ebp + 8]
mov eax, dword [eax - 0xc]
push eax
call sub.advapi32.dll_RegQueryValueExA_1
test eax, eax
sete byte [ebp - 1]
mov al, byte [ebp - 1]
pop ecx
pop ebp
ret

Function at 0x155a8
Capabilities:
Set registry value

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffff0
mov dword [ebp - 0xc], ecx
mov dword [ebp - 8], edx
mov dword [ebp - 4], eax
cmp dword [ebp - 4], 0
je 0x155ea
mov eax, dword [ebp - 0xc]
call fcn.00013078
inc eax
push eax
mov eax, dword [ebp - 0xc]
call fcn.0001322c
push eax
push 1
push 0
mov eax, dword [ebp - 8]
call fcn.0001322c
push eax
mov eax, dword [ebp - 4]
push eax
call sub.advapi32.dll_RegSetValueExA
test eax, eax
je 0x155ee
xor eax, eax
jmp 0x155f0
mov al, 1
mov byte [ebp - 0xd], al
mov al, byte [ebp - 0xd]
mov esp, ebp
pop ebp
ret
Function at 0x15618
Capabilities:
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
add esp, 0xffffffec
mov dword [ebp - 8], edx
mov dword [ebp - 4], eax
cmp dword [ebp - 4], 0
je 0x1564c
lea eax, [ebp - 0x14]
push eax
push 0
lea eax, [ebp - 0x10]
push eax
push 0
mov eax, dword [ebp - 8]
call fcn.0001322c
push eax
mov eax, dword [ebp - 4]
push eax
call sub.advapi32.dll_RegQueryValueExA_1
test eax, eax
je 0x15650
xor eax, eax
jmp 0x15652
mov al, 1
mov byte [ebp - 9], al
mov al, byte [ebp - 9]
mov esp, ebp
pop ebp
ret

Function at 0x15800
Capabilities:
Get common file path

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffef0
xor eax, eax
mov dword [ebp - 0x110], eax
mov dword [ebp - 0x10c], eax
xor eax, eax
push ebp
push 0x158b8
push dword fs:[eax]
mov dword fs:[eax], esp
push 0x104
lea eax, [ebp - 0x105]
push eax
call sub.KERNEL32.DLL_GetWindowsDirectoryA
push 0x158d0
push 0
push 0
push 0
lea eax, [ebp - 0x10c]
push eax
mov ecx, 0x158e0
mov edx, 0x158f0
mov eax, 0x15904
call fcn.000147c8
mov eax, dword [ebp - 0x10c]
call fcn.0001322c
push eax
lea eax, [ebp - 0x105]
push eax
call sub.KERNEL32.DLL_lstrcatA
lea edx, [ebp - 0x110]
xor eax, eax
call fcn.0001535c
mov eax, dword [ebp - 0x110]
call fcn.0001322c
lea edx, [ebp - 0x105]
call fcn.00014744
mov byte [ebp - 1], al
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x158bf
lea eax, [ebp - 0x110]
mov edx, 2
call fcn.00012f20
ret

Function at 0x19328
Capabilities:
Query environment variable

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffbf4
xor edx, edx
mov dword [ebp - 0x408], edx
mov dword [ebp - 0x40c], edx
mov dword [ebp - 4], eax
xor eax, eax
push ebp
push 0x193ec
push dword fs:[eax]
mov dword fs:[eax], esp
lea eax, [ebp - 0x404]
xor ecx, ecx
mov edx, 0x400
call fcn.00012618
push 0x3ff
lea eax, [ebp - 0x404]
push eax
push 0x193f8
call sub.KERNEL32.DLL_GetEnvironmentVariableA
push 0x19408
push 0x19418
push 0x19428
push 0x19438
lea eax, [ebp - 0x408]
push eax
mov ecx, 0x1944c
mov edx, 0x19460
mov eax, 0x1946c
call fcn.000147c8
mov eax, dword [ebp - 0x408]
push eax
lea eax, [ebp - 0x40c]
lea edx, [ebp - 0x404]
call fcn.00013024
mov edx, dword [ebp - 0x40c]
mov eax, dword [ebp - 4]
pop ecx
call fcn.000130c4
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x193f3
lea eax, [ebp - 0x40c]
mov edx, 2
call fcn.00012f20
ret