joyce8/EMBER2024-capa huggingface dataset:
Function at 0x100befb0
Capabilities:
Read .ini file

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x19c
mov eax, dword [case.0x100be6e1.80]
xor eax, ebp
mov dword [ebp - 4], eax
mov eax, dword [ebp + 0x10]
mov edx, dword [ebp + 0x18]
mov ecx, dword [ebp + 0xc]
push ebx
push esi
mov esi, dword [ebp + 8]
push edi
push eax
mov dword [ebp - 0x194], esi
mov dword [ebp - 0x188], edx
call fcn.100ccf47
push 0
mov ebx, eax
push 0
push 0x146
mov dword [ebp - 0x18c], ebx
push dword [ebx + 0x20]
call dword [sym.imp.USER32.dll_SendMessageA]
mov edi, eax
mov dword [ebp - 0x198], edi
cmp edi, 1
jg 0x100bf043
push esi
lea eax, [ebp - 0x104]
push str.Cant_delete_the_last__s_mode.
push eax
call fcn.100029e0
add esp, 0xc
lea eax, [ebp - 0x104]
push 0
push 0x10
push eax
call fcn.100d2df0
pop edi
pop esi
xor eax, eax
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.10291e04
mov esp, ebp
pop ebp
ret
push 0
push 0
push 0x147
push dword [ebx + 0x20]
call dword [sym.imp.USER32.dll_SendMessageA]
mov ebx, eax
lea eax, [ebp - 0x184]
push eax
mov eax, dword [ebp - 0x18c]
test ebx, ebx
cmovs ebx, dword [ebp + 0x14]
push ebx
push 0x148
push dword [eax + 0x20]
mov dword [ebp - 0x19c], ebx
call dword [sym.imp.USER32.dll_SendMessageA]
cmp eax, 0xffffffff
je 0x100bf030
lea eax, [ebp - 0x184]
push eax
lea eax, [ebx + 1]
push eax
push esi
lea eax, [ebp - 0x104]
push str.Do_you_want_to_delete__s_d_n_s_
push eax
call fcn.100029e0
add esp, 0x14
lea eax, [ebp - 0x104]
push 0
push 0x21
push eax
call fcn.100d2df0
cmp eax, 1
jne 0x100bf19d
lea eax, [edi - 1]
mov esi, ebx
mov dword [ebp - 0x190], eax
cmp ebx, edi
jge 0x100bf16c
mov ebx, dword [ebp - 0x194]
cmp esi, eax
jne 0x100bf0de
xor edi, edi
jmp 0x100bf11c
push 0x2000
call fcn.102b2ed0
lea ecx, [esi + 2]
mov edi, eax
push ecx
push ebx
lea eax, [ebp - 0x104]
push str._s_d
push eax
call fcn.100029e0
add esp, 0x14
lea eax, [ebp - 0x104]
push dword [ebp - 0x188]
push 0x2000
push edi
push eax
call dword [sym.imp.KERNEL32.dll_GetPrivateProfileSectionA]
inc esi
lea eax, [ebp - 0x104]
push esi
push ebx
push str._s_d
push eax
call fcn.100029e0
add esp, 0x10
lea eax, [ebp - 0x104]
push dword [ebp - 0x188]
push edi
push eax
call dword [sym.imp.KERNEL32.dll_WritePrivateProfileSectionA]
test edi, edi
je 0x100bf154
push edi
call fcn.102b2eb3
add esp, 4
mov eax, dword [ebp - 0x190]
cmp esi, dword [ebp - 0x198]
jl 0x100bf0d6
mov ebx, dword [ebp - 0x19c]
mov esi, dword [ebp - 0x18c]
mov edi, dword [sym.imp.USER32.dll_SendMessageA]
push 0
push ebx
push 0x144
push dword [esi + 0x20]
call edi
xor eax, eax
cmp ebx, dword [ebp - 0x190]
push 0
cmovl eax, ebx
push eax
push 0x14e
push dword [esi + 0x20]
call edi
mov ecx, dword [ebp - 4]
mov eax, 1
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.10291e04
mov esp, ebp
pop ebp
ret
Function at 0x100c6b69
Capabilities:
Extract resource via kernel32 functions

Disassembly:
push ebp
mov ebp, esp
push ecx
push ebx
push esi
push edi
xor edi, edi
mov dword [ebp - 4], ecx
mov esi, edi
cmp dword [ebp + 8], esi
je 0x100c6bae
call fcn.100c3b5c
push 0xf0
push dword [ebp + 8]
mov ebx, dword [eax + 0xc]
push ebx
call dword [sym.imp.KERNEL32.dll_FindResourceA]
test eax, eax
je 0x100c6bae
push eax
push ebx
call dword [sym.imp.KERNEL32.dll_LoadResource]
mov esi, eax
test esi, esi
je 0x100c6bca
push esi
call dword [sym.imp.KERNEL32.dll_LockResource]
mov edi, eax
mov ecx, dword [ebp - 4]
push edi
call fcn.100d2049
mov ebx, eax
test edi, edi
je 0x100c6bc8
test esi, esi
je 0x100c6bc8
push esi
call dword [sym.imp.KERNEL32.dll_FreeResource]
mov eax, ebx
pop edi
pop esi
pop ebx
leave
ret 4

Function at 0x100c7cd0
Capabilities:
Extract resource via kernel32 functions

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x10
push ebx
push esi
mov esi, ecx
push edi
test esi, esi
je 0x100c7d8e
cmp dword [esi + 0x20], 0
je 0x100c7d8e
push dword [esi + 0x20]
call dword [sym.imp.USER32.dll_IsWindow]
test eax, eax
je 0x100c7d8e
cmp dword [ebp + 8], 0
je 0x100c7d8e
xor eax, eax
mov ebx, eax
mov dword [ebp - 4], eax
mov dword [ebp - 8], ebx
mov edi, eax
call fcn.100c3b5c
push 0x1032f890
push dword [ebp + 8]
mov eax, dword [eax + 0xc]
push eax
mov dword [ebp - 0xc], eax
call dword [sym.imp.KERNEL32.dll_FindResourceA]
mov dword [ebp - 0x10], eax
test eax, eax
je 0x100c7d5f
mov edi, dword [ebp - 0xc]
push eax
push edi
call dword [sym.imp.KERNEL32.dll_SizeofResource]
push dword [ebp - 0x10]
mov dword [ebp - 4], eax
push edi
call dword [sym.imp.KERNEL32.dll_LoadResource]
mov edi, eax
test edi, edi
je 0x100c7d8e
push edi
call dword [sym.imp.KERNEL32.dll_LockResource]
mov ebx, eax
mov dword [ebp - 8], eax
push dword [ebp - 4]
push ebx
push esi
call fcn.100fd9c6
add esp, 0xc
mov ebx, eax
cmp dword [ebp - 8], 0
je 0x100c7d7f
test edi, edi
je 0x100c7d7f
push edi
call dword [sym.imp.KERNEL32.dll_FreeResource]
test ebx, ebx
je 0x100c7d8a
mov ecx, esi
call fcn.100c79ea
mov eax, ebx
jmp 0x100c7d90
xor eax, eax
pop edi
pop esi
pop ebx
leave
ret 4

Function at 0x100cd453
Capabilities:
Get graphical window text

Disassembly:
push 4
mov eax, 0x102fcdd7
call fcn.10293351
mov edi, ecx
xor ebx, ebx
cmp dword [edi + 0x74], ebx
jne 0x100cd479
push dword [ebp + 0xc]
push dword [ebp + 8]
push dword [edi + 0x20]
call dword [sym.imp.USER32.dll_GetWindowTextA]
jmp 0x100cd4d9
call fcn.100c32b9
push eax
lea ecx, [ebp - 0x10]
call fcn.100c06ce
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 [0x1031ae64]
mov ecx, edi
call esi
mov esi, dword [ebp + 8]
push 0xffffffffffffffff
push dword [ebp - 0x10]
push dword [ebp + 0xc]
push esi
call fcn.102ca0c8
push eax
call fcn.100c02bf
add esp, 0x14
test esi, esi
je 0x100cd4cc
push esi
call fcn.102ca1b0
pop ecx
mov ebx, eax
mov ecx, dword [ebp - 0x10]
add ecx, 0xfffffff0
call fcn.100c172d
mov eax, ebx
call fcn.1029331a
ret 8
Function at 0x100cdfc8
Capabilities:
Extract resource via kernel32 functions

Disassembly:
push ebp
mov ebp, esp
push ebx
push esi
mov ebx, ecx
push edi
mov edi, dword [ebp + 8]
mov dword [ebx + 0x84], edi
test edi, 0xffff0000
jne 0x100cdff3
cmp dword [ebx + 0x80], 0
jne 0x100cdff3
movzx eax, di
mov dword [ebx + 0x80], eax
call fcn.100c3b5c
push 5
push edi
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 edi, eax
mov ecx, ebx
push edi
call fcn.100ce284
push edi
mov esi, eax
call dword [sym.imp.KERNEL32.dll_FreeResource]
pop edi
mov eax, esi
pop esi
pop ebx
pop ebp
ret 8

Function at 0x100ce02d
Capabilities:
Extract resource via kernel32 functions

Disassembly:
push ebp
mov ebp, esp
push ecx
push ebx
push esi
push edi
mov dword [ebp - 4], ecx
xor esi, esi
call fcn.100c3b5c
push 5
push dword [ebp + 8]
mov ebx, dword [eax + 0xc]
push ebx
call dword [sym.imp.KERNEL32.dll_FindResourceA]
push eax
push ebx
call dword [sym.imp.KERNEL32.dll_LoadResource]
mov edi, eax
test edi, edi
je 0x100ce064
push edi
call dword [sym.imp.KERNEL32.dll_LockResource]
mov esi, eax
mov ecx, dword [ebp - 4]
push ebx
push dword [ebp + 0xc]
push esi
call fcn.100ce083
push edi
mov esi, eax
call dword [sym.imp.KERNEL32.dll_FreeResource]
pop edi
mov eax, esi
pop esi
pop ebx
leave
ret 8

Function at 0x100e09e9
Capabilities:
Move file

Disassembly:
push ebp
mov ebp, esp
push ebx
push esi
mov esi, ecx
xor ebx, ebx
push edi
cmp dword [esi], ebx
je 0x100e0a30
push str.kernel32.dll
call dword [sym.imp.KERNEL32.dll_GetModuleHandleA]
test eax, eax
je 0x100e0a3f
push str.MoveFileTransactedA
push eax
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
mov edi, eax
test edi, edi
je 0x100e0a3f
push dword [esi]
mov ecx, edi
push 2
push ebx
push ebx
push dword [ebp + 0xc]
push dword [ebp + 8]
call dword [0x1031ae64]
call edi
jmp 0x100e0a41
cmp dword [esi + 4], ebx
je 0x100e0a3f
pop edi
pop esi
pop ebx
pop ebp
jmp dword [sym.imp.KERNEL32.dll_MoveFileA]
xor eax, eax
pop edi
pop esi
pop ebx
pop ebp
ret 8

Function at 0x100e45a4
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 0x100e45f7
push esi
push dword [ebp + 8]
call fcn.100e478a
mov edi, eax
test edi, edi
je 0x100e45f2
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 0x100e45f2
mov eax, dword [ebp - 8]
jmp 0x100e4609
mov eax, dword [ebp + 0x10]
jmp 0x100e4609
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 0x100e6010
Capabilities:
Connect socket

Disassembly:
push ebp
mov ebp, esp
push dword [ebp + 0xc]
push dword [ebp + 8]
push dword [ecx + 4]
call dword [sym.imp.WS2_32.dll_connect]
xor ecx, ecx
cmp eax, 0xffffffff
setne cl
mov eax, ecx
pop ebp
ret 8

Function at 0x100e8c89
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 0x100e8cdf
push 5
push edi
push dword [esi + 8]
call dword [sym.imp.KERNEL32.dll_FindResourceA]
mov edi, eax
test edi, edi
jne 0x100e8cb8
call fcn.100d0b09
push edi
push dword [esi + 8]
call dword [sym.imp.KERNEL32.dll_LoadResource]
mov edi, eax
test edi, edi
jne 0x100e8ccd
call fcn.100d0b09
push edi
call dword [sym.imp.KERNEL32.dll_LockResource]
mov edi, eax
test edi, edi
jne 0x100e8cdf
call fcn.100d0b09
call fcn.100c3b5c
cmp dword [eax + 0x3c], 0
je 0x100e8cf4
push edi
mov ecx, ebx
call fcn.100e82b0
mov edi, eax
push dword [ebp + 0xc]
push edi
call fcn.100e8fb5
mov ebx, eax
mov eax, dword [ebp - 4]
mov ecx, dword [eax + 0x88]
test ecx, ecx
je 0x100e8d1d
push ecx
call dword [sym.imp.KERNEL32.dll_GlobalFree]
mov eax, dword [ebp - 4]
and dword [eax + 0x88], 0
test ebx, ebx
je 0x100e8d29
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 0x100ecf10
Capabilities:
Connect to http server

Disassembly:
push 4
mov eax, 0x102fef83
call fcn.10293351
mov ebx, ecx
mov dword [ebp - 0x10], ebx
push dword [ebp + 0x18]
mov edi, dword [ebp + 8]
push dword [ebp + 0x1c]
push dword [ebp + 0xc]
push edi
call fcn.100ed488
and dword [ebp - 4], 0
mov dword [ebx], vtable.CFtpConnection.0
call fcn.100c32b9
push eax
lea ecx, [ebx + 0x18]
call fcn.100c06ce
push dword [ebp + 0xc]
lea ecx, [ebx + 0x18]
mov byte [ebp - 4], 1
call fcn.100c17b9
push dword [ebx + 8]
mov eax, dword [ebp + 0x20]
neg eax
sbb eax, eax
and eax, 0x8000000
push eax
push 1
push dword [ebp + 0x14]
push dword [ebp + 0x10]
push dword [ebp + 0x1c]
push dword [ebp + 0xc]
push dword [edi + 8]
call dword [sym.imp.WININET.dll_InternetConnectA]
mov dword [ebx + 4], eax
test eax, eax
je 0x100ecfa0
push dword [ebx + 0xc]
mov ecx, 0x103ce43c
push eax
call fcn.100ef8df
mov eax, ebx
call fcn.1029331a
ret 0x1c
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
push dword [ebx + 8]
call fcn.100ede2f
int3

Function at 0x100ed614
Capabilities:
Create http request

Disassembly:
push ebp
mov ebp, esp
mov eax, dword [ebp + 0xc]
push esi
mov esi, ecx
and dword [esi + 0x10], 0
and dword [esi + 0xc], 0
mov dword [esi + 4], eax
mov eax, dword [ebp + 8]
mov dword [esi], vtable.CInternetSession.0
test eax, eax
jne 0x100ed63d
call fcn.100c3b5c
mov eax, dword [eax + 0x10]
push dword [ebp + 0x1c]
push dword [ebp + 0x18]
push dword [ebp + 0x14]
push dword [ebp + 0x10]
push eax
call dword [sym.imp.WININET.dll_InternetOpenA]
mov dword [esi + 8], eax
test eax, eax
je 0x100ed66a
push esi
push eax
mov ecx, 0x103ce43c
call fcn.100ef8df
mov eax, esi
pop esi
pop ebp
ret 0x18
push 0
push dword [esi + 4]
call fcn.100ede2f
int3
Function at 0x100f3063
Capabilities:
Delete registry key

Disassembly:
push 8
mov eax, 0x102ffa1f
call fcn.10293351
push dword [ebp + 0xc]
lea ecx, [ebp - 0x10]
call fcn.10008de0
and dword [ebp - 4], 0
mov esi, dword [ebp + 8]
cmp esi, 0x80000000
jne 0x100f30c5
call fcn.100c3baa
cmp eax, 1
jne 0x100f30c5
lea eax, [ebp - 0x10]
push eax
lea eax, [ebp - 0x14]
push str.SoftwareClasses_
push eax
call fcn.100e4d14
add esp, 0xc
push eax
lea ecx, [ebp - 0x10]
mov byte [ebp - 4], 1
call fcn.100c31d5
mov ecx, dword [ebp - 0x14]
mov byte [ebp - 4], 0
lea ecx, [ecx - 0x10]
call fcn.100c172d
inc esi
push dword [ebp - 0x10]
mov ecx, dword [ebp + 0x10]
push esi
test ecx, ecx
je 0x100f30d7
call fcn.100e5338
jmp 0x100f30dd
call dword [sym.imp.ADVAPI32.dll_RegDeleteKeyA]
mov ecx, dword [ebp - 0x10]
mov esi, eax
lea ecx, [ecx - 0x10]
call fcn.100c172d
mov eax, esi
call fcn.1029331a
ret 0xc

Function at 0x100f3228
Capabilities:
Query or enumerate registry value

Disassembly:
push 8
mov eax, 0x102ffaa0
call fcn.10293351
push dword [ebp + 0xc]
lea ecx, [ebp - 0x10]
call fcn.10008de0
and dword [ebp - 4], 0
mov esi, dword [ebp + 8]
cmp esi, 0x80000000
jne 0x100f3286
call fcn.100c3baa
cmp eax, 1
jne 0x100f3286
lea eax, [ebp - 0x10]
push eax
lea eax, [ebp - 0x14]
push str.SoftwareClasses_
push eax
call fcn.100e4d14
add esp, 0xc
push eax
lea ecx, [ebp - 0x10]
mov byte [ebp - 4], 1
call fcn.100c31d5
mov ecx, dword [ebp - 0x14]
lea ecx, [ecx - 0x10]
call fcn.100c172d
inc esi
push dword [ebp + 0x14]
push dword [ebp + 0x10]
push dword [ebp - 0x10]
push esi
call dword [sym.imp.ADVAPI32.dll_RegQueryValueA]
mov ecx, dword [ebp - 0x10]
mov esi, eax
add ecx, 0xfffffff0
call fcn.100c172d
mov eax, esi
call fcn.1029331a
ret 0x10

Function at 0x100f32ad
Capabilities:
Set registry value

Disassembly:
push 8
mov eax, 0x102ffacb
call fcn.10293351
push dword [ebp + 0xc]
lea ecx, [ebp - 0x10]
call fcn.10008de0
and dword [ebp - 4], 0
mov esi, dword [ebp + 8]
cmp esi, 0x80000000
jne 0x100f330b
call fcn.100c3baa
cmp eax, 1
jne 0x100f330b
lea eax, [ebp - 0x10]
push eax
lea eax, [ebp - 0x14]
push str.SoftwareClasses_
push eax
call fcn.100e4d14
add esp, 0xc
push eax
lea ecx, [ebp - 0x10]
mov byte [ebp - 4], 1
call fcn.100c31d5
mov ecx, dword [ebp - 0x14]
lea ecx, [ecx - 0x10]
call fcn.100c172d
inc esi
push dword [ebp + 0x18]
push dword [ebp + 0x14]
push dword [ebp + 0x10]
push dword [ebp - 0x10]
push esi
call dword [sym.imp.ADVAPI32.dll_RegSetValueA]
mov ecx, dword [ebp - 0x10]
mov esi, eax
add ecx, 0xfffffff0
call fcn.100c172d
mov eax, esi
call fcn.1029331a
ret 0x14
Function at 0x101003da
Capabilities:
Get graphical window text

Disassembly:
push ebp
mov ebp, esp
push ecx
push esi
push edi
mov edi, dword [ebp + 8]
lea eax, [ebp - 4]
push eax
push dword [ebp + 0xc]
mov ecx, dword [edi + 4]
call fcn.100ccf81
push 0xfffffffffffffff0
push dword [ebp - 4]
call dword [sym.imp.USER32.dll_GetWindowLongA]
push dword [ebp + 0xc]
mov esi, eax
mov ecx, edi
and esi, 3
call fcn.10100b3b
cmp esi, 3
je 0x10100418
mov dword [edi + 0xc], 1
cmp dword [edi], 0
je 0x10100461
push dword [ebp - 4]
call dword [sym.imp.USER32.dll_GetWindowTextLengthA]
mov esi, dword [ebp + 0x10]
test eax, eax
jle 0x1010043b
lea ecx, [eax + 1]
push ecx
push eax
mov ecx, esi
call fcn.100c6fd7
jmp 0x1010044c
push 0xff
mov ecx, esi
call fcn.100c161d
push 0x100
push eax
push dword [ebp - 4]
call dword [sym.imp.USER32.dll_GetWindowTextA]
push 0xffffffffffffffff
mov ecx, esi
call fcn.100c9bab
jmp 0x10100485
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 0x10100485
push dword [esi]
push dword [ebp - 4]
call fcn.100f7c47
pop edi
pop esi
leave
ret 0xc

Function at 0x101009bd
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.10100b3b
cmp dword [esi], 0
mov edi, eax
mov dword [esi + 0xc], 1
je 0x10100a05
push edi
call dword [sym.imp.USER32.dll_GetWindowTextLengthA]
lea ecx, [eax + 1]
push ecx
mov ecx, dword [ebp + 0x10]
push eax
call fcn.100c6fd7
push eax
push edi
call dword [sym.imp.USER32.dll_GetWindowTextA]
mov ecx, dword [ebp + 0x10]
push 0xffffffffffffffff
call fcn.100c9bab
jmp 0x10100a10
mov eax, dword [ebp + 0x10]
push dword [eax]
push edi
call fcn.100f7c47
pop edi
pop esi
pop ebp
ret 0xc

Function at 0x1010587f
Capabilities:
Set file attributes

Disassembly:
push ebp
mov ebp, esp
push esi
mov esi, ecx
push edi
cmp dword [esi], 0
je 0x101058c0
push str.kernel32.dll
call dword [sym.imp.KERNEL32.dll_GetModuleHandleA]
test eax, eax
je 0x101058cf
push str.SetFileAttributesTransactedA
push eax
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
mov edi, eax
test edi, edi
je 0x101058cf
push dword [esi]
mov ecx, edi
push dword [ebp + 0xc]
push dword [ebp + 8]
call dword [0x1031ae64]
call edi
jmp 0x101058d1
cmp dword [esi + 4], 0
je 0x101058cf
pop edi
pop esi
pop ebp
jmp dword [sym.imp.KERNEL32.dll_SetFileAttributesA]
xor eax, eax
pop edi
pop esi
pop ebp
ret 8

Function at 0x10117714
Capabilities:
Get common file path

Disassembly:
push esi
mov esi, ecx
call fcn.1016bf98
call fcn.100c3bb0
cmp dword [eax + 0x14], 0
jne 0x1011772f
mov ecx, esi
pop esi
jmp fcn.101169d3
pop esi
ret

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

Disassembly:
push esi
mov esi, ecx
call fcn.100c9707
call fcn.100c3bb0
cmp dword [eax + 0x14], 0
jne 0x1012b7b3
mov ecx, esi
pop esi
jmp fcn.1012af9b
pop esi
ret
Function at 0x1013b83c
Capabilities:
Extract resource via kernel32 functions

Disassembly:
push ebp
mov ebp, esp
push ecx
push ecx
push ebx
push esi
mov esi, dword [ebp + 0xc]
mov dword [ebp - 8], ecx
push edi
test esi, esi
jne 0x1013b856
call fcn.100c3b5c
mov esi, dword [eax + 0xc]
push 0x1033e004
push dword [ebp + 8]
push esi
call dword [sym.imp.KERNEL32.dll_FindResourceA]
mov ebx, eax
test ebx, ebx
je 0x1013b8ac
push ebx
push esi
call dword [sym.imp.KERNEL32.dll_LoadResource]
mov edi, eax
test edi, edi
je 0x1013b8ac
push edi
call dword [sym.imp.KERNEL32.dll_LockResource]
mov dword [ebp - 4], eax
test eax, eax
jne 0x1013b88b
xor esi, esi
jmp 0x1013b8a1
push ebx
push esi
call dword [sym.imp.KERNEL32.dll_SizeofResource]
mov ecx, dword [ebp - 8]
push eax
push dword [ebp - 4]
call fcn.1013b8b5
mov esi, eax
push edi
call dword [sym.imp.KERNEL32.dll_FreeResource]
mov eax, esi
jmp 0x1013b8ae
xor eax, eax
pop edi
pop esi
pop ebx
leave
ret 8

Function at 0x10164839
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.102d01d2
pop ecx
test eax, eax
jne 0x1016487b
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.100a8a60
add esp, 0x18
push dword [ebp + 0x10]
call dword [sym.imp.KERNEL32.dll_GetFileAttributesA]
cmp eax, 0xffffffff
jne 0x10164841
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 0x10279f64
Capabilities:
Extract resource via kernel32 functions

Disassembly:
push ebp
mov ebp, esp
push ecx
cmp dword [ebp + 8], 0
push ebx
push esi
push edi
mov edi, ecx
je 0x10279feb
cmp dword [ebp + 0xc], 0
je 0x10279feb
mov eax, dword [ebp + 0x10]
test eax, eax
jne 0x10279f8c
call fcn.100c3b5c
mov eax, dword [eax + 0xc]
test eax, eax
je 0x10279feb
push dword [ebp + 0xc]
mov dword [edi + 8], eax
push dword [ebp + 8]
push eax
call dword [sym.imp.KERNEL32.dll_FindResourceA]
mov esi, eax
test esi, esi
je 0x10279feb
push esi
push dword [edi + 8]
call dword [sym.imp.KERNEL32.dll_SizeofResource]
mov dword [ebp - 4], eax
test eax, eax
je 0x10279feb
push esi
push dword [edi + 8]
call dword [sym.imp.KERNEL32.dll_LoadResource]
mov ebx, eax
test ebx, ebx
je 0x10279feb
push dword [ebp - 4]
mov esi, dword [edi]
push ebx
call dword [sym.imp.KERNEL32.dll_LockResource]
mov ecx, dword [esi + 4]
push eax
call dword [0x1031ae64]
mov ecx, edi
call dword [esi + 4]
push ebx
mov esi, eax
call dword [sym.imp.KERNEL32.dll_FreeResource]
mov eax, esi
jmp 0x10279fed
xor eax, eax
pop edi
pop esi
pop ebx
leave
ret 0xc
Function at 0x1028ca62
Capabilities:
Create process on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x3c
push 0x3c
lea eax, [ebp - 0x3c]
push 0
push eax
call fcn.10296750
mov eax, dword [ebp + 8]
add esp, 0xc
and dword [ebp - 0x34], 0
and dword [ebp - 0x1c], 0
mov dword [ebp - 0x30], eax
mov eax, dword [ebp + 0xc]
mov dword [ebp - 0x2c], eax
mov eax, dword [ebp + 0x10]
mov dword [ebp - 0x28], eax
mov eax, dword [ebp + 0x14]
mov dword [ebp - 0x24], eax
mov eax, dword [ebp + 0x18]
mov dword [ebp - 0x20], eax
lea eax, [ebp - 0x3c]
push eax
mov dword [ebp - 0x3c], 0x3c
mov dword [ebp - 0x38], 0x40
call dword [sym.imp.SHELL32.dll_ShellExecuteExA]
leave
ret 0x14

Function at 0x102dfcf9
Capabilities:
Read file on windows

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
pop ebp
jmp fcn.102df8e0

Function at 0x102dfd04
Capabilities:
Read file on windows

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
pop ebp
jmp fcn.102dfa6a

Function at 0x102e439a
Capabilities:
Set environment variable

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
pop ebp
jmp fcn.102e3d52

Function at 0x102eef52
Capabilities:
Print debug messages

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
pop ebp
jmp fcn.102eee26
Function at 0x40a210
Capabilities:
Link many functions at runtime

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x24
mov eax, dword [0x411050]
xor eax, ebp
mov dword [ebp - 4], eax
mov eax, dword [ebp + 8]
push ebx
mov dword [ebp - 0x20], eax
mov eax, dword [ebp + 0xc]
push esi
push edi
mov dword [ebp - 0x1c], eax
call fcn.00406cfe
and dword [ebp - 0x14], 0
cmp dword [0x412ba0], 0
mov dword [ebp - 0x18], eax
jne 0x40a2c3
push 0x402128
call dword [sym.imp.KERNEL32.dll_LoadLibraryW]
mov ebx, eax
test ebx, ebx
je 0x40a36b
mov edi, dword [sym.imp.KERNEL32.dll_GetProcAddress]
push 0x40211c
push ebx
call edi
test eax, eax
je 0x40a36b
mov esi, dword [sym.imp.KERNEL32.dll_EncodePointer]
push eax
call esi
push 0x40210c
push ebx
mov dword [0x412ba0], eax
call edi
push eax
call esi
push 0x4020f8
push ebx
mov dword [0x412ba4], eax
call edi
push eax
call esi
push 0x4020dc
push ebx
mov dword [0x412ba8], eax
call edi
push eax
call esi
mov dword [0x412bb0], eax
test eax, eax
je 0x40a2c3
push 0x4020c4
push ebx
call edi
push eax
call esi
mov dword [0x412bac], eax
mov eax, dword [0x412bac]
mov ecx, dword [ebp - 0x18]
mov esi, dword [sym.imp.KERNEL32.dll_DecodePointer]
cmp eax, ecx
je 0x40a31c
cmp dword [0x412bb0], ecx
je 0x40a31c
push eax
call esi
push dword [0x412bb0]
mov edi, eax
call esi
mov ebx, eax
test edi, edi
je 0x40a31c
test ebx, ebx
je 0x40a31c
call edi
test eax, eax
je 0x40a313
lea ecx, [ebp - 0x24]
push ecx
push 0xc
lea ecx, [ebp - 0x10]
push ecx
push 1
push eax
call ebx
test eax, eax
je 0x40a313
test byte [ebp - 8], 1
jne 0x40a31c
or dword [ebp + 0x10], 0x200000
jmp 0x40a34f
mov eax, dword [0x412ba4]
cmp eax, dword [ebp - 0x18]
je 0x40a34f
push eax
call esi
test eax, eax
je 0x40a34f
call eax
mov dword [ebp - 0x14], eax
test eax, eax
je 0x40a34f
mov eax, dword [0x412ba8]
cmp eax, dword [ebp - 0x18]
je 0x40a34f
push eax
call esi
test eax, eax
je 0x40a34f
push dword [ebp - 0x14]
call eax
mov dword [ebp - 0x14], eax
push dword [0x412ba0]
call esi
test eax, eax
je 0x40a36b
push dword [ebp + 0x10]
push dword [ebp - 0x1c]
push dword [ebp - 0x20]
push dword [ebp - 0x14]
call eax
jmp 0x40a36d
xor eax, eax
mov ecx, dword [ebp - 4]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.00405bb1
leave
ret

Function at 0x433000
Capabilities:
Encode data using xor

Disassembly:
pushal
nop
nop
nop
nop
nop
call 0x43300c
nop
nop
nop
nop
nop
pop eax
add eax, 0x40a063
nop
sub eax, 0x40a009
nop
nop
nop
nop
nop
mov ebx, dword [eax]
nop
nop
mov ecx, dword [eax + 4]
nop
nop
mov edx, dword [eax + 8]
nop
nop
nop
nop
xor dword [ebx], edx
nop
nop
nop
add ebx, 4
nop
nop
nop
nop
nop
cmp ebx, ecx
nop
nop
nop
nop
jl 0x433030
nop
nop
nop
add eax, 0xc
nop
nop
nop
cmp dword [eax], 0
nop
nop
nop
jne 0x43301e
nop
nop
nop
nop
nop
nop
nop
popal
jmp 0x431219