joyce8/EMBER2024-capa huggingface dataset:
Function at 0x1002ed10
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
push ebx
push edi
push esi
mov esi, dword [ebp + 0xc]
mov edx, dword [ebp + 8]
and esi, 0xfffffffc
je 0x1002edcb
lea eax, [esi - 1]
mov edi, eax
shr edi, 2
add edi, 1
mov ecx, edi
and ecx, 3
cmp eax, 0xc
jae 0x1002ed40
xor eax, eax
xor ebx, ebx
jmp 0x1002ed8b
and edi, 0xfffffffc
neg edi
xor eax, eax
xor ebx, ebx
nop dword [eax]
rol eax, 5
xor eax, dword [edx + ebx]
imul eax, eax, 0x9e3779b9
rol eax, 5
xor eax, dword [edx + ebx + 4]
imul eax, eax, 0x9e3779b9
rol eax, 5
xor eax, dword [edx + ebx + 8]
imul eax, eax, 0x9e3779b9
rol eax, 5
xor eax, dword [edx + ebx + 0xc]
imul eax, eax, 0x9e3779b9
add ebx, 0x10
add edi, 4
jne 0x1002ed50
test ecx, ecx
je 0x1002eda9
add ebx, edx
shl ecx, 2
xor edi, edi
rol eax, 5
xor eax, dword [ebx + edi]
imul eax, eax, 0x9e3779b9
add edi, 4
cmp ecx, edi
jne 0x1002ed96
mov edi, dword [ebp + 0xc]
cmp esi, edi
jae 0x1002edc6
movsx ecx, byte [edx + esi]
rol eax, 5
xor eax, ecx
imul eax, eax, 0x9e3779b9
add esi, 1
cmp edi, esi
jne 0x1002edb0
pop esi
pop edi
pop ebx
pop ebp
ret
xor eax, eax
jmp 0x1002eda9

Function at 0x1002f5e1
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x54
pushal
call 0x1002f5f0
pop dword [ebp - 0x44]
mov eax, 0xd9d6fa3e
sub eax, 0xc9d4044e
sub dword [ebp - 0x44], eax
push 0x40
push 0x1000
push 0x36372
push 0
mov eax, sym.imp.kernel32.dll_VirtualAlloc
add eax, dword [ebp - 0x44]
call dword [eax]
mov ecx, 0x9df60cda
sub ecx, 0x9df5c8de
mov edi, eax
mov ebx, 0x3ca182cb
sub ebx, 0x2c9924cb
add ebx, dword [ebp - 0x44]
mov esi, 0x66d1dbd7
sub esi, 0x4adcbdb5
add dword [ebp - 0x34], ecx
mov edx, dword [ebx]
add edx, esi
xor dword [ebp - 4], 0x88cef801
mov dword [edi], edx
sub dword [ebp - 0x30], 0xc2da97c2
add edi, 0xebdeb621
sub edi, 0xebdeb61d
add ebx, 4
loop 0x1002f64a
add eax, 0x261ba5b0
sub eax, 0x261aa2ed
mov ebx, eax
add eax, 0xf8ae6248
add eax, 0x7519dbd
mov ecx, sym.mozglue.dll_Ordinal_0
add ecx, dword [ebp - 0x44]
call ebx
leave
ret
Function at 0x4073c0
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x48
pushal
call 0x4073cf
pop dword [ebp - 0x38]
mov eax, 0xb15c6259
add eax, 0x4ee41176
sub dword [ebp - 0x38], eax
mov dword [ebp - 0x48], 0xd57d06c6
add dword [ebp - 0x48], 0x78d53e85
mov dword [ebp - 0x44], 0xaec3df1d
add dword [ebp - 0x44], 0x836f6d28
mov dword [ebp - 0x40], 0x969a7076
add dword [ebp - 0x40], 0xb5b1d3b8
mov dword [ebp - 0x3c], 0x1ddbb2f3
sub dword [ebp - 0x3c], 0x1ddbb2f3
lea eax, [ebp - 0x48]
push eax
mov eax, 0x855308ad
add eax, 0x7aed0847
add eax, dword [ebp - 0x38]
call dword [eax]
mov dword [ebp - 0x48], 0xf9ea1e1c
add dword [ebp - 0x48], 0x7a884b3a
mov dword [ebp - 0x44], 0x7e2dcaec
sub dword [ebp - 0x44], 0x3cc16977
mov dword [ebp - 0x40], 0xe87a6542
add dword [ebp - 0x40], 0x7af5072a
mov dword [ebp - 0x3c], 0xf1866b8a
add dword [ebp - 0x3c], 0xe799476
lea ebx, [ebp - 0x48]
push ebx
push eax
mov eax, sym.imp.kernel32.dll_GetProcAddress
add eax, dword [ebp - 0x38]
call dword [eax]
push 0x40
push 0x1000
push 0x3b764
push 0
call eax
mov ecx, 0x12e4dfcc
add ecx, 0xed1b7571
xor esi, esi
add esi, eax
mov edx, 0x42c9d3b5
sub edx, 0x42869db5
add edx, dword [ebp - 0x38]
mov edi, 0x4d40ae5c
add edi, 0xb104048c
mov dword [ebp - 0xc], 0x35f27f4b
mov ebx, dword [edx]
xor dword [ebp - 0x28], edx
add ebx, edi
xor dword [ebp - 0x10], ebx
mov dword [esi], ebx
sub dword [ebp - 0x24], edx
add esi, 0x4f30b68d
sub esi, 0x4f30b689
add edx, 4
loop 0x4074ee
add eax, 0x1f6515eb
sub eax, 0x1f63ce24
mov ebx, eax
add eax, 0xdf014bde
sub eax, 0xdf014bd9
mov ecx, 0x400000
add ecx, dword [ebp - 0x38]
call ebx
leave
ret
Function at 0x100026a0
Capabilities:
Access peb ldr_data

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x1016b12f
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
push ecx
push esi
mov esi, ecx
push 0
mov dword [ebp - 0x10], esi
call fcn.101428e9
mov dword [ebp - 4], 0
mov dword [esi + 4], 0
mov byte [esi + 8], 0
mov dword [esi + 0xc], 0
mov byte [esi + 0x10], 0
xor eax, eax
mov dword [esi + 0x14], 0
mov word [esi + 0x18], ax
mov dword [esi + 0x1c], eax
mov word [esi + 0x20], ax
mov dword [esi + 0x24], eax
mov byte [esi + 0x28], al
mov dword [esi + 0x2c], eax
mov byte [esi + 0x30], al
mov eax, dword [ebp + 8]
mov byte [ebp - 4], 6
test eax, eax
je 0x1000272b
push eax
push esi
call fcn.10142dd6
mov ecx, dword [ebp - 0xc]
add esp, 8
mov eax, esi
mov dword fs:[0], ecx
pop esi
mov esp, ebp
pop ebp
ret 4
push str.bad_locale_name
call fcn.10142ab0
int3
Function at 0x10004160
Capabilities:
Enumerate processes

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x164
push ebx
push esi
push edi
mov ebx, dword [sym.imp.KERNEL32.dll_Process32Next]
mov edi, dword [sym.imp.KERNEL32.dll_CloseHandle]
push 0
push 2
call dword [sym.imp.KERNEL32.dll_CreateToolhelp32Snapshot]
mov esi, eax
cmp esi, 0xffffffff
jne 0x100041ab
mov edx, 0x101b0390
mov ecx, 0x102243d0
call fcn.10006420
push eax
call fcn.100066d0
add esp, 4
call fcn.10003cd0
jmp 0x10004247
lea eax, [ebp - 0x160]
mov dword [ebp - 0x160], 0x128
push eax
push esi
call dword [sym.imp.KERNEL32.dll_Process32First]
test eax, eax
jne 0x100041f0
mov edx, 0x101b03a4
mov ecx, 0x102243d0
call fcn.10006420
push eax
call fcn.100066d0
add esp, 4
push esi
call edi
call fcn.10003cd0
jmp 0x10004247
lea eax, [ebp - 0x13c]
push str.360Tray.exe
push eax
call fcn.1014c366
add esp, 8
test eax, eax
je 0x10004220
lea eax, [ebp - 0x160]
push eax
push esi
call ebx
test eax, eax
jne 0x100041f0
push esi
call edi
call fcn.10003cd0
jmp 0x10004247
push esi
call edi
mov edx, str.360Tray.exe
mov ecx, 0x10224490
call fcn.10006420
mov edx, 0x101b03c0
mov ecx, eax
call fcn.10006420
push eax
call fcn.100066d0
add esp, 4
lea ecx, [ebp - 0x28]
call fcn.10002c10
mov ebx, dword [ebp - 0x24]
cmp ebx, 0x7fffffff
jg 0x10004272
mov esi, dword [ebp - 0x28]
jl 0x10004267
cmp esi, 0xc46535ff
jae 0x10004272
add esi, 0x3b9aca00
adc ebx, 0
jmp 0x1000427a
or esi, 0xffffffff
mov ebx, SysReAllocString
mov dword [ebp - 4], ebx
mov dword [ebp - 8], esi
lea ecx, [ebp - 0x10]
call fcn.10002c10
cmp dword [ebp - 0xc], ebx
jg 0x1000416c
jl 0x1000429c
cmp dword [ebp - 0x10], esi
jae 0x1000416c
call fcn.10143331
push 0
push 0x64
push edx
push eax
call fcn.10142390
sub esi, dword [ebp - 0x10]
mov edi, eax
mov eax, dword [ebp - 4]
mov ebx, edx
sbb eax, dword [ebp - 0xc]
mov ecx, esi
mov edx, eax
mov dword [ebp - 0x1c], esi
mov dword [ebp - 0x14], eax
call fcn.1016b000
comisd xmm0, xmmword [0x101b0648]
jbe 0x100042f0
mov esi, edi
mov eax, ebx
add esi, 0xad160000
mov ecx, 0x311cd
adc eax, 0x311cd
mov dword [ebp - 0x14], eax
mov eax, 0xad160000
jmp 0x100042ff
mov ecx, dword [ebp - 0x14]
add esi, edi
mov eax, ecx
adc eax, ebx
mov dword [ebp - 0x14], eax
mov eax, dword [ebp - 0x1c]
add edi, eax
push 0
push 0x3b9aca00
adc ebx, ecx
push ebx
push edi
call fcn.10142260
mov dword [ebp - 0x38], eax
imul eax, eax, 0x3b9aca00
mov dword [ebp - 0x34], edx
sub esi, eax
lea eax, [ebp - 0x38]
push eax
mov dword [ebp - 0x30], esi
call fcn.101434a1
mov esi, dword [ebp - 8]
add esp, 4
mov ebx, dword [ebp - 4]
jmp 0x10004280
Function at 0x10004340
Capabilities:
Enumerate processes

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
sub esp, 0x23c
push ebx
push esi
push edi
mov edi, dword [sym.imp.KERNEL32.dll_CloseHandle]
lea ebx, [esp + 0xc]
mov dword [esp + 0xc], 0x101b03dc
mov dword [esp + 0x10], str.QQ.exe
mov dword [esp + 0x14], str.DingTalk.exe
push 0
push 2
call dword [sym.imp.KERNEL32.dll_CreateToolhelp32Snapshot]
mov esi, eax
cmp esi, 0xffffffff
je 0x100043fa
lea eax, [esp + 0x18]
mov dword [esp + 0x18], 0x22c
push eax
push esi
call dword [sym.imp.KERNEL32.dll_Process32FirstW]
test eax, eax
je 0x100043f7
mov edi, dword [ebx]
nop dword [eax]
lea eax, [esp + 0x3c]
push edi
push eax
call fcn.1014c4b9
add esp, 8
test eax, eax
je 0x10004406
lea eax, [esp + 0x18]
push eax
push esi
call dword [sym.imp.KERNEL32.dll_Process32NextW]
test eax, eax
jne 0x100043a0
mov edi, dword [sym.imp.KERNEL32.dll_CloseHandle]
push esi
call edi
add ebx, 4
lea eax, [esp + 0x18]
cmp ebx, eax
jne 0x10004371
mov edx, str.None_of_the_specified_processes_are_running._Exiting...
mov ecx, 0x10224490
call fcn.10006420
push eax
call fcn.100066d0
add esp, 4
xor eax, eax
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
push esi
call edi
pop edi
pop esi
mov eax, 1
pop ebx
mov esp, ebp
pop ebp
ret
push esi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
call fcn.10003410
call fcn.10003cb0
int3

Function at 0x1000b796
Capabilities:
Query or enumerate registry value
Read .ini file

Disassembly:
push ebp
mov ebp, esp
sub esp, 0xc
push esi
xor esi, esi
push edi
cmp dword [ecx + 0x58], esi
je 0x1000b7e9
push esi
push dword [ebp + 8]
call fcn.1000b97c
mov edi, eax
test edi, edi
je 0x1000b7e4
lea eax, [ebp - 4]
mov dword [ebp - 4], 4
push eax
lea eax, [ebp - 8]
push eax
lea eax, [ebp - 0xc]
push eax
push esi
push dword [ebp + 0xc]
push edi
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
push edi
mov esi, eax
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
test esi, esi
jne 0x1000b7e4
mov eax, dword [ebp - 8]
jmp 0x1000b7fb
mov eax, dword [ebp + 0x10]
jmp 0x1000b7fb
push dword [ecx + 0x6c]
push dword [ebp + 0x10]
push dword [ebp + 0xc]
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.dll_GetPrivateProfileIntA]
pop edi
pop esi
leave
ret 0xc

Function at 0x10016fab
Capabilities:
Extract resource via kernel32 functions

Disassembly:
push ebp
mov ebp, esp
push ebx
push esi
xor esi, esi
mov ebx, ecx
push edi
cmp dword [ebp + 8], esi
je 0x10016fea
call fcn.1000d506
push 0xf0
push dword [ebp + 8]
mov edi, dword [eax + 0xc]
push edi
call dword [sym.imp.KERNEL32.dll_FindResourceA]
test eax, eax
je 0x10016fea
push eax
push edi
call dword [sym.imp.KERNEL32.dll_LoadResource]
test eax, eax
je 0x10016ff2
push eax
call dword [sym.imp.KERNEL32.dll_LockResource]
mov esi, eax
push esi
mov ecx, ebx
call fcn.10020f8f
pop edi
pop esi
pop ebx
pop ebp
ret 4
Function at 0x100179f2
Capabilities:
Extract resource via kernel32 functions

Disassembly:
push ebp
mov ebp, esp
push ecx
push ecx
push ebx
push esi
mov esi, ecx
push edi
test esi, esi
je 0x10017a7e
cmp dword [esi + 0x20], 0
je 0x10017a7e
push dword [esi + 0x20]
call dword [sym.imp.USER32.dll_IsWindow]
test eax, eax
je 0x10017a7e
cmp dword [ebp + 8], 0
je 0x10017a7e
xor edi, edi
mov ebx, edi
call fcn.1000d506
push str.AFX_DIALOG_LAYOUT
push dword [ebp + 8]
mov eax, dword [eax + 0xc]
push eax
mov dword [ebp - 4], eax
call dword [sym.imp.KERNEL32.dll_FindResourceA]
mov dword [ebp - 8], eax
test eax, eax
je 0x10017a62
mov ebx, dword [ebp - 4]
push eax
push ebx
call dword [sym.imp.KERNEL32.dll_SizeofResource]
push dword [ebp - 8]
mov edi, eax
push ebx
call dword [sym.imp.KERNEL32.dll_LoadResource]
test eax, eax
je 0x10017a7e
push eax
call dword [sym.imp.KERNEL32.dll_LockResource]
mov ebx, eax
push edi
push ebx
push esi
call fcn.10021ae9
mov edi, eax
add esp, 0xc
test edi, edi
je 0x10017a7a
mov ecx, esi
call fcn.10017790
mov eax, edi
jmp 0x10017a80
xor eax, eax
pop edi
pop esi
pop ebx
leave
ret 4

Function at 0x1001bf5b
Capabilities:
Get graphical window text

Disassembly:
push 4
mov eax, 0x1016b704
call fcn.10141bc5
mov edi, ecx
xor ebx, ebx
cmp dword [edi + 0x74], ebx
jne 0x1001bf81
push dword [ebp + 0xc]
push dword [ebp + 8]
push dword [edi + 0x20]
call dword [sym.imp.USER32.dll_GetWindowTextA]
jmp 0x1001bfdb
lea ecx, [ebp - 0x10]
call fcn.10007f63
mov edi, dword [edi + 0x74]
lea ecx, [ebp - 0x10]
push ecx
mov dword [ebp - 4], ebx
mov eax, dword [edi]
mov esi, dword [eax + 0x8c]
mov ecx, esi
call dword [0x1017a9c4]
mov ecx, edi
call esi
mov esi, dword [ebp + 8]
push 0xffffffffffffffff
push dword [ebp - 0x10]
push dword [ebp + 0xc]
push esi
call fcn.1014cfda
push eax
call fcn.100085ef
add esp, 0x14
test esi, esi
je 0x1001bfce
push esi
call fcn.1014cb50
pop ecx
mov ebx, eax
mov ecx, dword [ebp - 0x10]
add ecx, 0xfffffff0
call fcn.100098a0
mov eax, ebx
call fcn.10141b93
ret 8

Function at 0x100221e5
Capabilities:
Extract resource via kernel32 functions

Disassembly:
push ebp
mov ebp, esp
push ebx
mov ebx, dword [ebp + 8]
push esi
push edi
mov edi, ecx
mov dword [edi + 0x84], ebx
test ebx, 0xffff0000
jne 0x10022210
cmp dword [edi + 0x80], 0
jne 0x10022210
movzx eax, bx
mov dword [edi + 0x80], eax
call fcn.1000d506
push 5
push ebx
mov esi, dword [eax + 0xc]
push esi
call dword [sym.imp.KERNEL32.dll_FindResourceA]
push eax
push esi
call dword [sym.imp.KERNEL32.dll_LoadResource]
push esi
push dword [ebp + 0xc]
mov ecx, edi
push eax
call fcn.1002247e
pop edi
pop esi
pop ebx
pop ebp
ret 8

Function at 0x1002223d
Capabilities:
Extract resource via kernel32 functions

Disassembly:
push ebp
mov ebp, esp
push ebx
push esi
push edi
mov ebx, ecx
xor esi, esi
call fcn.1000d506
push 5
push dword [ebp + 8]
mov edi, dword [eax + 0xc]
push edi
call dword [sym.imp.KERNEL32.dll_FindResourceA]
push eax
push edi
call dword [sym.imp.KERNEL32.dll_LoadResource]
test eax, eax
je 0x10022270
push eax
call dword [sym.imp.KERNEL32.dll_LockResource]
mov esi, eax
push edi
push dword [ebp + 0xc]
mov ecx, ebx
push esi
call fcn.10022283
pop edi
pop esi
pop ebx
pop ebp
ret 8
Function at 0x100243ef
Capabilities:
Extract resource via kernel32 functions

Disassembly:
push ebp
mov ebp, esp
push ecx
push ebx
push esi
mov esi, dword [ebp + 8]
mov ebx, ecx
push edi
mov dword [ebp - 4], ebx
test byte [esi + 4], 1
mov edi, dword [esi + 0xc]
jne 0x10024445
push 5
push edi
push dword [esi + 8]
call dword [sym.imp.KERNEL32.dll_FindResourceA]
mov edi, eax
test edi, edi
jne 0x1002441e
call fcn.1001435e
push edi
push dword [esi + 8]
call dword [sym.imp.KERNEL32.dll_LoadResource]
mov edi, eax
test edi, edi
jne 0x10024433
call fcn.1001435e
push edi
call dword [sym.imp.KERNEL32.dll_LockResource]
mov edi, eax
test edi, edi
jne 0x10024445
call fcn.1001435e
call fcn.1000d506
cmp dword [eax + 0x3c], 0
je 0x1002445a
push edi
mov ecx, ebx
call fcn.10023b12
mov edi, eax
push dword [ebp + 0xc]
push edi
call fcn.10024640
mov ebx, eax
mov eax, dword [ebp - 4]
mov ecx, dword [eax + 0x88]
test ecx, ecx
je 0x10024483
push ecx
call dword [sym.imp.KERNEL32.dll_GlobalFree]
mov eax, dword [ebp - 4]
and dword [eax + 0x88], 0
test ebx, ebx
je 0x1002448f
mov edi, ebx
mov dword [eax + 0x88], ebx
or dword [esi + 4], 1
mov dword [esi + 0xc], edi
pop edi
pop esi
pop ebx
leave
ret 8

Function at 0x10026b1d
Capabilities:
Get graphical window text

Disassembly:
push ebp
mov ebp, esp
push ecx
push esi
mov esi, dword [ebp + 8]
lea eax, [ebp - 4]
push eax
push dword [ebp + 0xc]
mov ecx, dword [esi + 4]
call fcn.1001bea1
push 0xfffffffffffffff0
push dword [ebp - 4]
call dword [sym.imp.USER32.dll_GetWindowLongA]
push dword [ebp + 0xc]
and eax, 3
mov ecx, esi
cmp al, 3
je 0x10026b59
call fcn.10026d3a
mov dword [esi + 0xc], 1
jmp 0x10026b5e
call fcn.10026d3a
cmp dword [esi], 0
je 0x10026ba9
push edi
push dword [ebp - 4]
call dword [sym.imp.USER32.dll_GetWindowTextLengthA]
mov esi, dword [ebp + 0x10]
mov edi, eax
mov ecx, esi
test edi, edi
jle 0x10026b84
push edi
call fcn.1000ed9c
lea ecx, [edi + 1]
push ecx
jmp 0x10026b93
push 0xff
call fcn.10009469
push 0x100
push eax
push dword [ebp - 4]
call dword [sym.imp.USER32.dll_GetWindowTextA]
push 0xffffffffffffffff
mov ecx, esi
call fcn.1000bab8
pop edi
jmp 0x10026bcd
mov esi, dword [ebp + 0x10]
push dword [esi]
push 0xffffffffffffffff
push 0x14d
push dword [ebp - 4]
call dword [sym.imp.USER32.dll_SendMessageA]
cmp eax, 0xffffffff
jne 0x10026bcd
push dword [esi]
push dword [ebp - 4]
call fcn.10010710
pop esi
leave
ret 0xc

Function at 0x10026c91
Capabilities:
Get graphical window text

Disassembly:
push ebp
mov ebp, esp
push esi
mov esi, dword [ebp + 8]
mov ecx, esi
push edi
push dword [ebp + 0xc]
call fcn.10026d3a
cmp dword [esi], 0
mov edi, eax
mov dword [esi + 0xc], 1
je 0x10026cd9
push edi
call dword [sym.imp.USER32.dll_GetWindowTextLengthA]
lea ecx, [eax + 1]
push ecx
mov ecx, dword [ebp + 0x10]
push eax
call fcn.1000ed9c
push eax
push edi
call dword [sym.imp.USER32.dll_GetWindowTextA]
mov ecx, dword [ebp + 0x10]
push 0xffffffffffffffff
call fcn.1000bab8
jmp 0x10026ce4
mov eax, dword [ebp + 0x10]
push dword [eax]
push edi
call fcn.10010710
pop edi
pop esi
pop ebp
ret 0xc
Function at 0x10038c02
Capabilities:
Get common file path

Disassembly:
push esi
mov esi, ecx
call fcn.10088828
call fcn.1000d55a
cmp dword [eax + 0x14], 0
jne 0x10038c1d
mov ecx, esi
pop esi
jmp fcn.10037f26
pop esi
ret

Function at 0x10039ad4
Capabilities:
Get common file path
Get file system object information

Disassembly:
push esi
mov esi, ecx
call fcn.10004490
call fcn.1000d55a
cmp dword [eax + 0x14], 0
jne 0x10039aef
mov ecx, esi
pop esi
jmp fcn.10039345
pop esi
ret

Function at 0x10042a69
Capabilities:
Extract resource via kernel32 functions

Disassembly:
push ebp
mov ebp, esp
push ecx
push ebx
push esi
mov esi, dword [ebp + 0xc]
mov dword [ebp - 4], ecx
push edi
test esi, esi
jne 0x10042a82
call fcn.1000d506
mov esi, dword [eax + 0xc]
push 0x101848a8
push dword [ebp + 8]
push esi
call dword [sym.imp.KERNEL32.dll_FindResourceA]
mov edi, eax
test edi, edi
je 0x10042ac4
push edi
push esi
call dword [sym.imp.KERNEL32.dll_LoadResource]
test eax, eax
je 0x10042ac4
push eax
call dword [sym.imp.KERNEL32.dll_LockResource]
mov ebx, eax
test ebx, ebx
je 0x10042ac4
push edi
push esi
call dword [sym.imp.KERNEL32.dll_SizeofResource]
mov ecx, dword [ebp - 4]
push eax
push ebx
call fcn.10042acd
jmp 0x10042ac6
xor eax, eax
pop edi
pop esi
pop ebx
leave
ret 8

Function at 0x100f90d2
Capabilities:
Check if file exists
Get common file path
Get file attributes

Disassembly:
push ebp
mov ebp, esp
push ecx
and dword [ebp - 4], 0
lea eax, [ebp - 4]
push eax
call fcn.10154c03
pop ecx
test eax, eax
jne 0x100f9114
push dword [ebp - 4]
push dword [ebp + 0xc]
push dword [ebp + 8]
push str._s_s_X.tmp
push dword [ebp + 0x14]
push dword [ebp + 0x10]
call fcn.10007a40
add esp, 0x18
push dword [ebp + 0x10]
call dword [sym.imp.KERNEL32.dll_GetFileAttributesA]
cmp eax, 0xffffffff
jne 0x100f90da
leave
ret
push dword [ebp + 0x10]
push 0
push dword [ebp + 0xc]
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.dll_GetTempFileNameA]
leave
ret

Function at 0x10161287
Capabilities:
Read file on windows

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
pop ebp
jmp fcn.101610fd

Function at 0x1016304e
Capabilities:
Set environment variable

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
pop ebp
jmp fcn.10162cc8
Function at 0x1000d66c
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x50
pushal
call 0x1000d67b
pop dword [ebp - 0x40]
mov eax, 0x9505a82f
add eax, 0x7afb2e4c
sub dword [ebp - 0x40], eax
push 0x40
push 0x1000
push 0x3802c
push 0
mov eax, sym.imp.kernel32.dll_VirtualAlloc
add eax, dword [ebp - 0x40]
call dword [eax]
mov ecx, 0x3f2b
xor esi, esi
add esi, eax
mov edi, 0x6cec939f
sub edi, 0x5cea4f9f
add edi, dword [ebp - 0x40]
mov ebx, 0x5733b108
add ebx, 0x8dc8f1dd
xor dword [ebp - 4], 0x958e922b
mov edx, dword [edi]
sub dword [ebp - 0x1c], ebx
add edx, ebx
xor dword [ebp - 0x38], 0x926f35b1
mov dword [esi], edx
add esi, 4
add edi, 0x9514967f
add edi, 0x6aeb6985
loop 0x1000d6d1
add eax, 0x16bb44db
add eax, 0xe945aaa4
mov ebx, eax
add eax, 5
mov ecx, 0x10000000
add ecx, dword [ebp - 0x40]
call ebx
leave
ret
Function at 0x10009761
Capabilities:
Read file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x218
mov eax, dword [0x1001f5e4]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
push esi
mov esi, dword [ebp + 8]
push edi
call fcn.1000a23f
test eax, eax
je 0x10009876
xor ebx, ebx
mov dword [ebp - 0x214], 0x104
push ebx
lea eax, [ebp - 0x214]
push eax
lea eax, [ebp - 0x20c]
push eax
push esi
call dword [sym.imp.shlwapi.dll_PathCreateFromUrlW]
test eax, eax
js 0x10009876
push ebx
push 0x80
push 3
push ebx
inc ebx
lea eax, [ebp - 0x20c]
push ebx
push SysReAllocStringLen
push eax
call dword [sym.imp.kernel32.dll_CreateFileW]
mov edi, eax
cmp edi, 0xffffffff
je 0x10009876
push 0
lea eax, [ebp - 0x218]
push eax
push 4
lea eax, [ebp - 0x210]
push eax
push edi
call dword [sym.imp.kernel32.dll_ReadFile]
push edi
mov esi, eax
call dword [sym.imp.kernel32.dll_CloseHandle]
test esi, esi
je 0x10009876
cmp dword [ebp - 0x218], 4
jne 0x10009876
push 3
lea eax, [ebp - 0x210]
push 0x10017620
push eax
call sub.VCRUNTIME140.dll_memcmp
add esp, 0xc
test eax, eax
je 0x10009840
push 3
lea eax, [ebp - 0x210]
push 0x10017624
push eax
call sub.VCRUNTIME140.dll_memcmp
add esp, 0xc
test eax, eax
je 0x10009840
mov al, bl
jmp 0x10009878
xor eax, eax
push eax
push eax
push eax
movsx ax, byte [ebp - 0x20d]
movzx eax, ax
push eax
call fcn.10009989
mov ecx, dword [0x10020678]
add esp, 0x10
mov edi, eax
mov esi, edx
call fcn.10009989
cmp edx, esi
jb 0x10009872
ja 0x1000983c
cmp eax, edi
jae 0x1000983c
xor bl, bl
jmp 0x1000983c
xor al, al
mov ecx, dword [ebp - 4]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.10013bb0
leave
ret 4

Function at 0x10009989
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x48
pushal
call 0x10009998
pop dword [ebp - 0x38]
mov eax, 0x10009998
sub dword [ebp - 0x38], eax
push 0x40
push 0x1000
push 0x36fb2
push 0
mov eax, 0xb1219887
add eax, 0x5edfc8b9
add eax, dword [ebp - 0x38]
call dword [eax]
mov ecx, 0xa54e8918
sub ecx, 0xa54e4e28
xor ebx, ebx
add ebx, eax
mov esi, 0x10024400
add esi, dword [ebp - 0x38]
mov edx, 0x2e8808ce
sub edx, 0x139038ca
sub dword [ebp - 0x30], ebx
mov edi, dword [esi]
add dword [ebp - 0x14], 0xf2d3fd50
xor edi, edx
add dword [ebp - 0x10], esi
mov dword [ebx], edi
sub dword [ebp - 0x30], 0xe36f3e05
add ebx, 0x6f6924ff
sub ebx, 0x6f6924fb
add esi, 0x8e5abc70
sub esi, 0x8e5abc6c
loop 0x100099ee
add eax, 0x15871345
add eax, 0xea79cb4e
xor ebx, ebx
add ebx, eax
add eax, 0xb3152659
add eax, 0x4cead9ac
mov ecx, 0x33ff1928
add ecx, 0xdc00e6d8
add ecx, dword [ebp - 0x38]
call ebx
leave
ret