joyce8/EMBER2024-capa huggingface dataset:
Function at 0x10007749
Capabilities:
Create thread

Disassembly:
push ebp
mov ebp, esp
push ecx
push ecx
push esi
push edi
mov eax, ecx
mov edi, edx
push 0
push 0x14
mov dword [ebp - 4], edi
and dword [eax], 0
mov dword [ebp - 8], eax
call fcn.1000579c
mov esi, eax
pop ecx
pop ecx
test esi, esi
jne 0x10007773
push 7
pop eax
jmp 0x100077e3
cmp byte [0x10087adc], 0
push ebx
je 0x100077b5
mov ecx, 0xc8
call fcn.10007de4
test eax, eax
jne 0x100077b5
mov eax, dword [ebp + 8]
lea ebx, [esi + 8]
mov dword [ebx], edi
lea edi, [esi + 4]
push edi
mov dword [esi + 0xc], eax
xor eax, eax
push eax
push esi
push 0x10007729
push eax
push eax
call fcn.100665ef
add esp, 0x18
mov dword [esi], eax
test eax, eax
jne 0x100077c4
jmp 0x100077b8
lea ebx, [esi + 8]
mov edi, esi
xor eax, eax
stosd dword es:[edi], eax
stosd dword es:[edi], eax
stosd dword es:[edi], eax
stosd dword es:[edi], eax
stosd dword es:[edi], eax
lea edi, [esi + 4]
cmp dword [ebx], 0
pop ebx
jne 0x100077dc
call dword [sym.imp.KERNEL32.dll_GetCurrentThreadId]
push dword [ebp + 8]
mov dword [edi], eax
call dword [ebp - 4]
pop ecx
mov dword [esi + 0x10], eax
mov eax, dword [ebp - 8]
mov dword [eax], esi
xor eax, eax
pop edi
pop esi
leave
ret

Function at 0x1000b817
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
push ecx
push esi
mov esi, dword [ecx + 8]
mov eax, edx
push edi
mov edi, dword [ebp + 8]
xor edx, edx
mov dword [ebp - 4], eax
test edi, edi
jle 0x1000b84b
push ebx
mov ebx, dword [ecx]
mov al, byte [edx + eax]
xor byte [ebx + esi], al
lea eax, [esi + 1]
xor esi, esi
cmp eax, dword [ecx + 4]
cmovl esi, eax
mov eax, dword [ebp - 4]
inc edx
cmp edx, edi
jl 0x1000b831
pop ebx
add dword [ecx + 0xc], edi
pop edi
mov dword [ecx + 8], esi
pop esi
leave
ret

Function at 0x1000edb4
Capabilities:
Resolve function by parsing pe exports

Disassembly:
push ebp
mov ebp, esp
push ecx
push ecx
push esi
push edi
mov edi, ecx
mov dword [ebp - 4], edx
mov esi, dword [edi + 0x88]
test esi, esi
je 0x1000ede8
mov eax, dword [ebp + 0xc]
mov dword [eax], esi
mov eax, dword [esi + 0x10]
mov dword [edi + 0x88], eax
mov eax, dword [esi + 8]
and dword [esi + 0x10], 0
and dword [eax], 0
and dword [eax + 4], 0
jmp 0x1000ee49
movzx eax, word [edi + 0x8c]
cdq
add eax, 0x28
adc edx, 0
push edx
push eax
call fcn.10005acc
pop ecx
pop ecx
mov ecx, dword [ebp + 0xc]
mov esi, eax
mov dword [ecx], esi
test esi, esi
jne 0x1000ee32
mov ecx, dword [ebp - 4]
mov eax, dword [edi + 0x98]
dec ecx
push esi
cdq
push ecx
push edx
push eax
call fcn.100715d0
mov ecx, dword [edi + 0x3c]
push edx
mov edx, dword [ebp + 8]
push eax
call fcn.10004fe0
pop ecx
pop ecx
push 7
pop eax
jmp 0x1000ee5a
lea eax, [esi + 0x28]
mov dword [esi + 0x14], edi
mov dword [esi + 8], eax
push 0x20
pop eax
mov word [esi + 0x1c], ax
xor eax, eax
inc eax
mov word [esi + 0x1e], ax
mov eax, dword [ebp + 8]
mov ecx, dword [ebp - 4]
mov dword [esi + 4], eax
mov dword [esi + 0x18], ecx
inc dword [edi + 0x78]
xor eax, eax
pop edi
pop esi
leave
ret
Function at 0x100316bd
Capabilities:
Reference sql statements

Disassembly:
push ebp
mov ebp, esp
push ebx
push esi
push edi
push dword [ebp + 8]
mov esi, edx
mov ebx, str.sqlite_master
push esi
push ebx
push esi
mov edi, ecx
push str.SELECT_1_FROM___w_._s_WHERE_name_NOT_LIKE_sqliteX____ESCAPE_X_AND_sql_NOT_LIKE_create_virtual___AND_sqlite_rename_test__Q__sql__type__name___d_NULL
push edi
call fcn.1003508c
add esp, 0x18
cmp dword [ebp + 8], 0
jne 0x100316f6
push esi
push ebx
push str.SELECT_1_FROM_temp._s_WHERE_name_NOT_LIKE_sqliteX____ESCAPE_X_AND_sql_NOT_LIKE_create_virtual___AND_sqlite_rename_test__Q__sql__type__name__1_NULL
push edi
call fcn.1003508c
add esp, 0x10
pop edi
pop esi
pop ebx
pop ebp
ret
Function at 0x10065ff8
Capabilities:
Parse pe header

Disassembly:
push 0
call dword [sym.imp.KERNEL32.dll_GetModuleHandleW]
test eax, eax
je 0x10066037
mov ecx, 0x5a4d
cmp word [eax], cx
jne 0x10066037
mov ecx, dword [eax + 0x3c]
add ecx, eax
cmp dword [ecx], 0x4550
jne 0x10066037
mov eax, 0x10b
cmp word [ecx + 0x18], ax
jne 0x10066037
cmp dword [ecx + 0x74], 0xe
jbe 0x10066037
cmp dword [ecx + 0xe8], 0
setne al
ret
xor al, al
ret

Function at 0x10068cd4
Capabilities:
Allocate thread local storage

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push esi
push 0x10075adc
push 0x10075ad4
push str.FlsAlloc
push 0x1f
call fcn.10068b53
mov esi, eax
add esp, 0x10
test esi, esi
je 0x10068d08
push dword [ebp + 8]
mov ecx, esi
call dword [0x100741f0]
call esi
jmp 0x10068d0e
call dword [sym.imp.KERNEL32.dll_TlsAlloc]
pop esi
pop ebp
ret 4

Function at 0x10068d52
Capabilities:
Get thread local storage value

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push esi
push 0x10075aec
push 0x10075ae4
push str.FlsGetValue
push 0x21
call fcn.10068b53
mov esi, eax
add esp, 0x10
test esi, esi
je 0x10068d89
push dword [ebp + 8]
mov ecx, esi
call dword [0x100741f0]
call esi
pop esi
pop ebp
ret 4
pop esi
pop ebp
jmp dword [sym.imp.KERNEL32.dll_TlsGetValue]

Function at 0x10068d91
Capabilities:
Set thread local storage value

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push esi
push 0x10075af4
push 0x10075aec
push str.FlsSetValue
push 0x22
call fcn.10068b53
mov esi, eax
add esp, 0x10
test esi, esi
je 0x10068dcb
push dword [ebp + 0xc]
mov ecx, esi
push dword [ebp + 8]
call dword [0x100741f0]
call esi
pop esi
pop ebp
ret 8
pop esi
pop ebp
jmp dword [sym.imp.KERNEL32.dll_TlsSetValue]
Function at 0x1006b288
Capabilities:
Query environment variable

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push ecx
push ecx
push esi
call dword [sym.imp.KERNEL32.dll_GetEnvironmentStringsW]
mov esi, eax
test esi, esi
je 0x1006b325
push ebx
push esi
call fcn.1006b251
xor ebx, ebx
sub eax, esi
push ebx
push ebx
push ebx
push ebx
sar eax, 1
push eax
push esi
push ebx
push ebx
mov dword [ebp - 8], eax
call fcn.1006b1e5
add esp, 0x24
mov dword [ebp - 4], eax
test eax, eax
jne 0x1006b2d2
push esi
call dword [sym.imp.KERNEL32.dll_FreeEnvironmentStringsW]
xor eax, eax
jmp 0x1006b324
push edi
push eax
call fcn.10069d76
mov edi, eax
pop ecx
push ebx
test edi, edi
jne 0x1006b2f2
call fcn.100689e6
pop ecx
push esi
call dword [sym.imp.KERNEL32.dll_FreeEnvironmentStringsW]
xor eax, eax
jmp 0x1006b323
push ebx
push dword [ebp - 4]
push edi
push dword [ebp - 8]
push esi
push ebx
push ebx
call fcn.1006b1e5
add esp, 0x20
test eax, eax
jne 0x1006b311
push edi
call fcn.100689e6
jmp 0x1006b319
push ebx
call fcn.100689e6
mov ebx, edi
pop ecx
push esi
call dword [sym.imp.KERNEL32.dll_FreeEnvironmentStringsW]
mov eax, ebx
pop edi
pop ebx
pop esi
leave
ret

Function at 0x1006b328
Capabilities:
Query environment variable

Disassembly:
mov edi, edi
push esi
call dword [sym.imp.KERNEL32.dll_GetEnvironmentStringsW]
mov esi, eax
test esi, esi
jne 0x1006b339
pop esi
ret
push ebx
push edi
push esi
call fcn.1006b251
mov ebx, eax
sub ebx, esi
and ebx, 0xfffffffe
push ebx
call fcn.10069d76
mov edi, eax
pop ecx
pop ecx
test edi, edi
je 0x1006b361
push ebx
push esi
push edi
call fcn.10065820
add esp, 0xc
push 0
call fcn.100689e6
pop ecx
push esi
call dword [sym.imp.KERNEL32.dll_FreeEnvironmentStringsW]
mov eax, edi
pop edi
pop ebx
pop esi
ret

Function at 0x1006b731
Capabilities:
Set environment variable

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
pop ebp
jmp fcn.1006b376
Function at 0x10071190
Capabilities:
Parse pe header

Disassembly:
push ebp
mov ebp, esp
mov eax, dword [ebp + 8]
mov ecx, 0x5a4d
cmp word [eax], cx
jne 0x100711bd
mov ecx, dword [eax + 0x3c]
add ecx, eax
cmp dword [ecx], 0x4550
jne 0x100711bd
mov edx, 0x10b
xor eax, eax
cmp word [ecx + 0x18], dx
sete al
pop ebp
ret
xor eax, eax
pop ebp
ret
Function at 0x40110c
Capabilities:
Terminate process

Disassembly:
cmp ecx, dword [0x44e030]
jne 0x401116
repz ret
jmp fcn.00401c81

Function at 0x40848e
Capabilities:
Link many functions at runtime

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x14
push ebx
push esi
push edi
call fcn.00406852
and dword [ebp - 4], 0
cmp dword [0x450814], 0
mov ebx, eax
jne 0x40853f
push str.USER32.DLL
call dword [sym.imp.KERNEL32.dll_LoadLibraryA]
mov edi, eax
test edi, edi
je 0x4085f0
mov esi, dword [sym.imp.KERNEL32.dll_GetProcAddress]
push str.MessageBoxA
push edi
call esi
test eax, eax
je 0x4085f0
push eax
call fcn.004067e0
mov dword [esp], str.GetActiveWindow
push edi
mov dword [0x450814], eax
call esi
push eax
call fcn.004067e0
mov dword [esp], str.GetLastActivePopup
push edi
mov dword [0x450818], eax
call esi
push eax
call fcn.004067e0
mov dword [esp], str.GetUserObjectInformationA
push edi
mov dword [0x45081c], eax
call esi
push eax
call fcn.004067e0
pop ecx
mov dword [0x450824], eax
test eax, eax
je 0x40853f
push str.GetProcessWindowStation
push edi
call esi
push eax
call fcn.004067e0
pop ecx
mov dword [0x450820], eax
mov eax, dword [0x450820]
cmp eax, ebx
je 0x408597
cmp dword [0x450824], ebx
je 0x408597
push eax
call fcn.0040685b
push dword [0x450824]
mov esi, eax
call fcn.0040685b
pop ecx
pop ecx
mov edi, eax
test esi, esi
je 0x408597
test edi, edi
je 0x408597
call esi
test eax, eax
je 0x40858e
lea ecx, [ebp - 8]
push ecx
push 0xc
lea ecx, [ebp - 0x14]
push ecx
push 1
push eax
call edi
test eax, eax
je 0x40858e
test byte [ebp - 0xc], 1
jne 0x408597
or dword [ebp + 0x10], 0x200000
jmp 0x4085d0
mov eax, dword [0x450818]
cmp eax, ebx
je 0x4085d0
push eax
call fcn.0040685b
pop ecx
test eax, eax
je 0x4085d0
call eax
mov dword [ebp - 4], eax
test eax, eax
je 0x4085d0
mov eax, dword [0x45081c]
cmp eax, ebx
je 0x4085d0
push eax
call fcn.0040685b
pop ecx
test eax, eax
je 0x4085d0
push dword [ebp - 4]
call eax
mov dword [ebp - 4], eax
push dword [0x450814]
call fcn.0040685b
pop ecx
test eax, eax
je 0x4085f0
push dword [ebp + 0x10]
push dword [ebp + 0xc]
push dword [ebp + 8]
push dword [ebp - 4]
call eax
jmp 0x4085f2
xor eax, eax
pop edi
pop esi
pop ebx
leave
ret

Function at 0x40cc50
Capabilities:
Set console window title

Disassembly:
sub esp, 0x428
mov eax, dword [0x44e030]
xor eax, esp
mov dword [esp + 0x424], eax
mov eax, dword [0x2c2e114]
push ebx
mov ebx, dword [0x2c2df60]
push esi
mov esi, dword [0x44f050]
push edi
mov edi, eax
cmp eax, 0x930
jne 0x40cc91
push str.vudofijozeresudebomoke
call dword [sym.imp.KERNEL32.dll_SetConsoleTitleA]
mov eax, dword [0x2c2e114]
mov dword [0x4509ec], esi
cmp eax, 0x114e
jne 0x40ccbb
push 0
call dword [sym.imp.KERNEL32.dll_HeapDestroy]
lea eax, [esp + 0x14]
push eax
push str.yubodumejuwal
call dword [sym.imp.KERNEL32.dll_BuildCommDCBW]
mov eax, dword [0x2c2e114]
cmp eax, 0x2f
jne 0x40ccdd
lea ecx, [esp + 0x10]
push ecx
lea edx, [esp + 0x10]
push edx
push 0
lea eax, [esp + 0x3c]
push eax
push 0
push 0
push 0
call dword [sym.imp.ADVAPI32.dll_ReadEventLogW]
call fcn.0040cba0
mov ecx, dword [esp + 0x430]
pop edi
pop esi
pop ebx
xor ecx, esp
call fcn.0040110c
add esp, 0x428
ret
Function at 0x401b40
Capabilities:
Extract resource via kernel32 functions
Get common file path

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x54cc58
mov eax, dword fs:[0]
push eax
sub esp, 0x2c
push ebx
push esi
push edi
mov eax, dword [0x5a2740]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov dword [ebp - 0x10], esp
mov ebx, ecx
mov dword [ebp - 0x20], ebx
xor esi, esi
push 0x20a
mov dword [ebp - 0x18], esi
mov dword [ebp - 4], esi
call fcn.0040ff88
add esp, 4
mov edi, eax
push edi
push 0x104
call dword [sym.imp.KERNEL32.dll_GetTempPathW]
test eax, eax
jne 0x401ba9
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
call fcn.004124b6
mov ecx, eax
xor eax, eax
test ecx, ecx
setne al
test eax, eax
jne 0x401bc5
push 0x80004005
call fcn.004017c0
mov eax, dword [ecx]
call dword [eax + 0xc]
add eax, 0x10
mov dword [ebp - 0x14], eax
push str.V170
lea eax, [ebp - 0x14]
push str.BN20CTR170.DLL
push eax
mov byte [ebp - 4], 1
call fcn.00401890
add esp, 0xc
lea eax, [ebp - 0x14]
push eax
lea eax, [ebp - 0x1c]
push edi
push eax
call fcn.00402110
add esp, 0xc
mov ecx, eax
push ecx
lea ecx, [ebx + 0xc]
mov byte [ebp - 4], 2
call fcn.004026a0
mov byte [ebp - 4], 1
mov edx, dword [ebp - 0x1c]
add edx, 0xfffffff0
or ebx, 0xffffffff
lea ecx, [edx + 0xc]
mov eax, ebx
lock xadd dword [ecx], eax
dec eax
test eax, eax
jg 0x401c2d
mov ecx, dword [edx]
push edx
mov eax, dword [ecx]
call dword [eax + 4]
push edi
call fcn.0040ff91
mov eax, dword [ebp - 0x20]
add esp, 4
lea ecx, [ebp - 0x38]
push 0x1042
push dword [eax + 0xc]
call fcn.004129eb
push 0x57dfdc
push 0x92
push 0
mov byte [ebp - 4], 3
call dword [sym.imp.KERNEL32.dll_FindResourceW]
mov edi, eax
test edi, edi
je 0x401ca1
push edi
push 0
call dword [sym.imp.KERNEL32.dll_SizeofResource]
mov dword [ebp - 0x20], eax
test eax, eax
je 0x401ca1
push edi
push 0
call dword [sym.imp.KERNEL32.dll_LoadResource]
test eax, eax
je 0x401ca1
push eax
call dword [sym.imp.KERNEL32.dll_LockResource]
test eax, eax
je 0x401ca1
push dword [ebp - 0x20]
lea ecx, [ebp - 0x38]
push eax
call fcn.00413311
mov esi, 1
mov dword [ebp - 0x18], esi
lea ecx, [ebp - 0x38]
call fcn.00412c80
lea ecx, [ebp - 0x38]
mov byte [ebp - 4], 1
call fcn.00412a54
mov byte [ebp - 4], 0
mov edx, dword [ebp - 0x14]
add edx, 0xfffffff0
lea eax, [edx + 0xc]
lock xadd dword [eax], ebx
dec ebx
test ebx, ebx
jg 0x401d05
mov ecx, dword [edx]
push edx
mov eax, dword [ecx]
call dword [eax + 4]
mov eax, esi
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
mov eax, esi
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x402290
Capabilities:
Extract resource via kernel32 functions

Disassembly:
push ebp
mov ebp, esp
push dword [ebp + 0xc]
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.dll_LoadResource]
test eax, eax
jne 0x4022a5
pop ebp
ret
push esi
push eax
call dword [sym.imp.KERNEL32.dll_LockResource]
mov esi, eax
test esi, esi
je 0x4022e4
push dword [ebp + 0xc]
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.dll_SizeofResource]
mov ecx, dword [ebp + 0x10]
lea edx, [esi + eax]
and ecx, 0xf
jbe 0x4022e0
lea ebx, [ebx]
cmp esi, edx
jae 0x4022e4
movzx eax, word [esi]
lea esi, [esi + eax*2]
add esi, 2
dec ecx
jne 0x4022d0
cmp esi, edx
jb 0x4022e9
xor eax, eax
pop esi
pop ebp
ret
xor eax, eax
cmp word [esi], ax
cmove esi, eax
mov eax, esi
pop esi
pop ebp
ret

Function at 0x4035b0
Capabilities:
Set socket configuration

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x14
mov eax, dword [0x5a2740]
xor eax, ebp
mov dword [ebp - 4], eax
push 0
push 0
push 0x10
lea eax, [ebp - 0x14]
push eax
push 0xffffffffffffffff
push ecx
push 0
push 0
call dword [sym.imp.KERNEL32.dll_WideCharToMultiByte]
lea eax, [ebp - 0x14]
push eax
call dword [sym.imp.WSOCK32.dll_inet_addr]
push eax
call dword [sym.imp.WSOCK32.dll_ntohl]
xor ecx, ecx
cmp eax, 0xffffffff
cmove eax, ecx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.005255c5
mov esp, ebp
pop ebp
ret
Function at 0x4060e0
Capabilities:
Extract resource via kernel32 functions

Disassembly:
push ebp
mov ebp, esp
movzx eax, word [ebp + 8]
mov dword [ebp + 8], eax
pop ebp
jmp fcn.00416161

Function at 0x408800
Capabilities:
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x214
mov eax, dword [0x5a2740]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
push esi
mov esi, dword [ebp + 8]
mov ebx, ecx
cmp esi, 2
ja 0x4088e3
test esi, esi
je 0x4088e3
mov eax, dword [ebx]
cmp dword [eax - 0xc], 0
jne 0x4088cf
push edi
shl esi, 4
xor edi, edi
mov dword [ebp - 0x210], 1
mov dword [ebp - 0x214], 0x104
add esi, 0x57eec0
jmp 0x408860
lea eax, [ebp - 0x214]
push eax
lea eax, [ebp - 0x20c]
push eax
lea eax, [ebp - 0x210]
push eax
push str.InstallPath
push dword [esi + 4]
push dword [esi]
call dword [sym.imp.SHLWAPI.dll_SHGetValueW]
test eax, eax
je 0x4088a7
inc edi
add esi, 8
cmp edi, 2
jl 0x408860
mov eax, dword [ebx]
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.005255c5
mov esp, ebp
pop ebp
ret 4
lea ecx, [ebp - 0x20c]
lea edx, [ecx + 2]
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x4088b0
sub ecx, edx
sar ecx, 1
push ecx
lea eax, [ebp - 0x20c]
push eax
mov ecx, ebx
call fcn.00402770
pop edi
mov eax, dword [ebx]
pop esi
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.005255c5
mov esp, ebp
pop ebp
ret 4
mov ecx, dword [ebp - 4]
pop esi
xor ecx, ebp
xor eax, eax
pop ebx
call fcn.005255c5
mov esp, ebp
pop ebp
ret 4
Function at 0x408900
Capabilities:
Check if file exists
Get common file path

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x414
mov eax, dword [0x5a2740]
xor eax, ebp
mov dword [ebp - 4], eax
push edi
mov edi, ecx
mov ecx, dword [ebp + 8]
cmp ecx, 2
ja 0x408a55
test ecx, ecx
jne 0x4089b7
push ecx
push 0x23
lea eax, [ebp - 0x414]
push eax
push ecx
call dword [sym.imp.SHELL32.dll_SHGetSpecialFolderPathW]
test eax, eax
je 0x408a41
lea eax, [ebp - 0x414]
push eax
lea eax, [ebp - 0x20c]
push eax
call dword [sym.imp.KERNEL32.dll_lstrcpyW]
push str.Roland_DG_VersaWorksVersaWorksDeviceDeviceInfo.xml
lea eax, [ebp - 0x20c]
push eax
call dword [sym.imp.SHLWAPI.dll_PathAppendW]
test eax, eax
je 0x408a41
lea eax, [ebp - 0x20c]
push eax
call dword [sym.imp.SHLWAPI.dll_PathFileExistsW]
test eax, eax
je 0x408a41
lea eax, [ebp - 0x20c]
push eax
lea ecx, [edi + 4]
call fcn.00402870
lea eax, [ebp - 0x20c]
push eax
mov ecx, edi
call fcn.00402870
mov eax, dword [edi + 4]
pop edi
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.005255c5
mov esp, ebp
pop ebp
ret 4
mov eax, dword [edi]
cmp dword [eax - 0xc], 0
jne 0x4089c7
push ecx
mov ecx, edi
call fcn.00408800
mov eax, dword [edi + 4]
cmp dword [eax - 0xc], 0
jne 0x408a41
push ebx
mov ebx, dword [sym.imp.SHLWAPI.dll_PathFileExistsW]
push esi
mov esi, 0x5a3d64
lea ecx, [ecx]
push dword [edi]
lea eax, [ebp - 0x20c]
push eax
call dword [sym.imp.KERNEL32.dll_lstrcpyW]
push dword [esi]
lea eax, [ebp - 0x20c]
push eax
call dword [sym.imp.SHLWAPI.dll_PathAppendW]
test eax, eax
je 0x408a0f
lea eax, [ebp - 0x20c]
push eax
call ebx
test eax, eax
jne 0x408a30
add esi, 4
cmp esi, 0x5a3d6c
jl 0x4089e0
mov eax, dword [edi + 4]
pop esi
pop ebx
pop edi
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.005255c5
mov esp, ebp
pop ebp
ret 4
lea eax, [ebp - 0x20c]
push eax
lea ecx, [edi + 4]
call fcn.00402870
pop esi
pop ebx
mov eax, dword [edi + 4]
pop edi
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.005255c5
mov esp, ebp
pop ebp
ret 4
mov ecx, dword [ebp - 4]
xor ecx, ebp
xor eax, eax
pop edi
call fcn.005255c5
mov esp, ebp
pop ebp
ret 4
Function at 0x40f6d0
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
push ecx
push esi
mov esi, ecx
mov dword [ebp - 4], esi
call fcn.0040f090
test eax, eax
jne 0x40f6ea
pop esi
mov esp, ebp
pop ebp
ret 0xc
mov eax, dword [ebp + 0x10]
push edi
mov edi, 1
test eax, eax
je 0x40f6fe
cmp eax, 0x1000
jbe 0x40f706
mov eax, 0x1000
mov dword [ebp + 0x10], eax
push ebx
mov ebx, dword [ebp + 0xc]
test ebx, ebx
je 0x40f762
mov edi, edi
mov ecx, dword [ebp - 4]
cmp ebx, eax
mov edi, eax
cmovb edi, ebx
cmp dword [ecx + 8], 0
je 0x40f75d
xor esi, esi
push 0
lea eax, [ebp + 0xc]
push eax
mov eax, edi
sub eax, esi
push eax
mov eax, dword [ebp + 8]
add eax, esi
push eax
push dword [ecx + 8]
call dword [sym.imp.KERNEL32.dll_WriteFile]
test eax, eax
je 0x40f75d
add esi, dword [ebp + 0xc]
mov ecx, dword [ebp - 4]
cmp edi, esi
ja 0x40f722
add dword [ebp + 8], edi
mov eax, dword [ebp + 0x10]
sub ebx, edi
jne 0x40f710
mov esi, ecx
mov edi, 1
jmp 0x40f762
mov esi, dword [ebp - 4]
xor edi, edi
mov ecx, dword [esi + 8]
pop ebx
test ecx, ecx
je 0x40f778
push ecx
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov dword [esi + 8], 0
mov eax, edi
pop edi
pop esi
mov esp, ebp
pop ebp
ret 0xc
Function at 0x40f8b0
Capabilities:
Extract resource via kernel32 functions
Get common file path

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x54def8
mov eax, dword fs:[0]
push eax
sub esp, 0x2c
push ebx
push esi
push edi
mov eax, dword [0x5a2740]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov dword [ebp - 0x10], esp
mov ebx, ecx
mov dword [ebp - 0x20], ebx
xor esi, esi
push 0x20a
mov dword [ebp - 0x18], esi
mov dword [ebp - 4], esi
call fcn.0040ff88
add esp, 4
mov edi, eax
push edi
push 0x104
call dword [sym.imp.KERNEL32.dll_GetTempPathW]
test eax, eax
jne 0x40f919
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
call fcn.004124b6
mov ecx, eax
xor eax, eax
test ecx, ecx
setne al
test eax, eax
jne 0x40f935
push 0x80004005
call fcn.004017c0
mov eax, dword [ecx]
call dword [eax + 0xc]
add eax, 0x10
mov dword [ebp - 0x14], eax
push 0x580a60
lea eax, [ebp - 0x14]
push 0x580a44
push eax
mov byte [ebp - 4], 1
call fcn.00401890
add esp, 0xc
lea eax, [ebp - 0x14]
push eax
lea eax, [ebp - 0x1c]
push edi
push eax
call fcn.00402110
add esp, 0xc
mov ecx, eax
push ecx
lea ecx, [ebx + 0x10]
mov byte [ebp - 4], 2
call fcn.004026a0
mov byte [ebp - 4], 1
mov edx, dword [ebp - 0x1c]
add edx, 0xfffffff0
or ebx, 0xffffffff
lea ecx, [edx + 0xc]
mov eax, ebx
lock xadd dword [ecx], eax
dec eax
test eax, eax
jg 0x40f99d
mov ecx, dword [edx]
push edx
mov eax, dword [ecx]
call dword [eax + 4]
push edi
call fcn.0040ff91
mov eax, dword [ebp - 0x20]
add esp, 4
lea ecx, [ebp - 0x38]
push 0x1042
push dword [eax + 0x10]
call fcn.004129eb
push 0x57dfdc
push 0x92
push 0
mov byte [ebp - 4], 3
call dword [sym.imp.KERNEL32.dll_FindResourceW]
mov edi, eax
test edi, edi
je 0x40fa11
push edi
push 0
call dword [sym.imp.KERNEL32.dll_SizeofResource]
mov dword [ebp - 0x20], eax
test eax, eax
je 0x40fa11
push edi
push 0
call dword [sym.imp.KERNEL32.dll_LoadResource]
test eax, eax
je 0x40fa11
push eax
call dword [sym.imp.KERNEL32.dll_LockResource]
test eax, eax
je 0x40fa11
push dword [ebp - 0x20]
lea ecx, [ebp - 0x38]
push eax
call fcn.00413311
mov esi, 1
mov dword [ebp - 0x18], esi
lea ecx, [ebp - 0x38]
call fcn.00412c80
lea ecx, [ebp - 0x38]
mov byte [ebp - 4], 1
call fcn.00412a54
mov byte [ebp - 4], 0
mov edx, dword [ebp - 0x14]
add edx, 0xfffffff0
lea eax, [edx + 0xc]
lock xadd dword [eax], ebx
dec ebx
test ebx, ebx
jg 0x40fa75
mov ecx, dword [edx]
push edx
mov eax, dword [ecx]
call dword [eax + 4]
mov eax, esi
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
mov eax, esi
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret

Function at 0x415729
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.WSOCK32.dll_connect]
xor ecx, ecx
cmp eax, 0xffffffff
setne cl
mov eax, ecx
pop ebp
ret 8