joyce8/EMBER2024-capa huggingface dataset:
Function at 0x408e21
Capabilities:
Reference sql statements

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x439fdb
mov eax, dword fs:[0]
push eax
mov eax, 0x1040
call fcn.00422550
mov eax, dword [0x4515a0]
xor eax, ebp
mov dword [ebp - 0x10], eax
push ebx
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov ebx, dword [ebp + 0x10]
mov ecx, ebx
mov esi, dword [ebp + 8]
call fcn.00401451
xor ecx, ecx
lea eax, [ebp - 0x1044]
push eax
push ecx
push dword [esi]
mov dword [ebp - 4], ecx
mov dword [ebp - 0x1044], ecx
call sub.msi.dll_MsiOpenProductW
test eax, eax
jne 0x408fc6
push str.SELECT__Message__FROM__Error__WHERE_Error.Error
lea ecx, [ebp - 0x1048]
call fcn.0040194d
push 9
xor eax, eax
mov byte [ebp - 4], 1
pop ecx
mov word [ebp - 0x38], ax
lea edi, [ebp - 0x36]
rep stosd dword es:[edi], eax
push 0xa
push 0x14
stosw word es:[edi], ax
lea eax, [ebp - 0x38]
push eax
push dword [ebp + 0xc]
call fcn.004229c6
add esp, 0x10
lea eax, [ebp - 0x38]
lea ecx, [ebp - 0x1048]
push eax
call fcn.00403dfd
xor esi, esi
mov dword [ebp - 0x103c], esi
lea eax, [ebp - 0x1040]
mov byte [ebp - 4], 3
push eax
push dword [ebp - 0x1048]
mov dword [ebp - 0x1040], esi
push dword [ebp - 0x1044]
call sub.msi.dll_MsiEnumClientsA
test eax, eax
jne 0x408f90
push esi
push dword [ebp - 0x1040]
call sub.msi.dll_MsiViewModify
test eax, eax
jne 0x408f90
cmp dword [ebp - 0x103c], eax
je 0x408f21
push dword [ebp - 0x103c]
call sub.msi.dll_MsiConfigureFeatureFromDescriptorA
lea eax, [ebp - 0x103c]
mov dword [ebp - 0x103c], esi
push eax
push dword [ebp - 0x1040]
call sub.msi.dll_MsiDatabaseIsTablePersistentA
test eax, eax
jne 0x408f90
push 0xffe
mov word [ebp - 0x1038], ax
lea eax, [ebp - 0x1036]
push esi
push eax
call fcn.00421080
add esp, 0xc
mov dword [ebp - 0x104c], 0x800
lea eax, [ebp - 0x104c]
push eax
lea eax, [ebp - 0x1038]
push eax
push 1
push dword [ebp - 0x103c]
call sub.msi.dll_MsiRecordSetStreamA
test eax, eax
jne 0x408f90
lea eax, [ebp - 0x1038]
mov ecx, ebx
push eax
call fcn.00401ecb
cmp dword [ebp - 0x103c], 0
je 0x408fa4
push dword [ebp - 0x103c]
call sub.msi.dll_MsiConfigureFeatureFromDescriptorA
cmp dword [ebp - 0x1040], 0
je 0x408fb8
push dword [ebp - 0x1040]
call sub.msi.dll_MsiConfigureFeatureFromDescriptorA
mov ecx, dword [ebp - 0x1048]
lea ecx, [ecx - 0x10]
call fcn.00401856
cmp dword [ebp - 0x1044], 0
je 0x408fda
push dword [ebp - 0x1044]
call sub.msi.dll_MsiConfigureFeatureFromDescriptorA
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.00421069
mov esp, ebp
pop ebp
ret
Function at 0x408ff6
Capabilities:
Read .ini file

Disassembly:
push 4
mov eax, 0x43b22b
call fcn.00421920
xor esi, esi
mov dword [ebp - 4], esi
mov dword [ebp - 0x10], esi
call fcn.0040bac9
mov ecx, dword [ebp + 8]
push eax
call fcn.004012cf
push 0x7d
mov dword [ebp - 4], esi
mov dword [ebp - 0x10], 1
pop ebx
mov eax, dword [ebp + 0x14]
add ebx, ebx
mov ecx, dword [ebp + 8]
push ebx
mov esi, dword [eax]
call fcn.004017e6
push esi
push ebx
push eax
mov eax, dword [ebp + 0x10]
push 0x43c650
push dword [eax]
mov eax, dword [ebp + 0xc]
push dword [eax]
call dword [sym.imp.KERNEL32.dll_GetPrivateProfileStringW]
mov ecx, dword [ebp + 8]
mov esi, eax
push 0xffffffffffffffff
call fcn.00401872
lea ecx, [esi + 1]
cmp ebx, ecx
jbe 0x409025
mov eax, dword [ebp + 8]
call fcn.004218ee
ret 0x10
Function at 0x40a4d1
Capabilities:
Delete file
Shutdown system

Disassembly:
push 0x24
mov eax, 0x43a1de
call fcn.00421953
mov esi, ecx
xor eax, eax
mov ebx, eax
mov dword [ebp - 0x2c], ebx
cmp dword [esi + 0xec], eax
jne 0x40a5f3
cmp dword [esi + 0xe4], eax
jne 0x40a5f3
cmp dword [esi + 0x160], eax
jne 0x40a540
cmp dword [esi + 0x15c], eax
je 0x40a53b
push 0x90
lea eax, [ebp - 0x30]
push eax
call fcn.0040906b
and dword [ebp - 4], ebx
inc ebx
push 0
push 0x10024
push dword [eax]
mov dword [ebp - 0x2c], ebx
call fcn.004075c6
add esp, 0xc
cmp eax, 6
jne 0x40a540
xor eax, eax
mov byte [ebp - 0x21], al
jmp 0x40a544
mov byte [ebp - 0x21], 1
test bl, 1
je 0x40a554
mov ecx, dword [ebp - 0x30]
lea ecx, [ecx - 0x10]
call fcn.00401856
cmp byte [ebp - 0x21], 0
jne 0x40a5f3
lea edi, [esi + 0x12c]
xor ebx, ebx
mov eax, dword [edi]
cmp dword [eax - 0xc], ebx
je 0x40a57b
push eax
call dword [sym.imp.KERNEL32.dll_DeleteFileW]
mov ecx, edi
call fcn.00401451
lea eax, [ebp - 0x28]
mov dword [esi + 0xe0], ebx
push eax
push 0x28
mov esi, ebx
call dword [sym.imp.KERNEL32.dll_GetCurrentProcess]
push eax
call dword [sym.imp.ADVAPI32.dll_OpenProcessToken]
mov edi, dword [sym.imp.ADVAPI32.dll_AdjustTokenPrivileges]
test eax, eax
je 0x40a5d3
lea eax, [ebp - 0x1c]
push eax
push str.SeShutdownPrivilege
push ebx
call dword [sym.imp.ADVAPI32.dll_LookupPrivilegeValueW]
mov esi, eax
mov dword [ebp - 0x20], 1
mov dword [ebp - 0x14], 2
test esi, esi
je 0x40a5d3
push ebx
push ebx
push ebx
lea eax, [ebp - 0x20]
push eax
push ebx
push dword [ebp - 0x28]
call edi
mov esi, eax
push 1
push ebx
push ebx
push ebx
push ebx
call dword [sym.imp.ADVAPI32.dll_InitiateSystemShutdownW]
test esi, esi
je 0x40a5f3
push ebx
push ebx
push ebx
lea eax, [ebp - 0x20]
mov dword [ebp - 0x14], ebx
push eax
push ebx
push dword [ebp - 0x28]
call edi
call fcn.00421902
ret

Function at 0x40a6f7
Capabilities:
Check os version

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x120
mov eax, dword [0x4515a0]
xor eax, ebp
mov dword [ebp - 4], eax
push esi
push edi
mov edi, 0x11c
lea eax, [ebp - 0x120]
push edi
xor esi, esi
push esi
push eax
call fcn.00421080
add esp, 0xc
mov dword [ebp - 0x120], edi
lea eax, [ebp - 0x120]
push eax
call dword [sym.imp.KERNEL32.dll_GetVersionExW]
cmp dword [ebp - 0x11c], 5
jne 0x40a74d
xor eax, eax
inc eax
cmp dword [ebp - 0x118], 2
cmove esi, eax
mov ecx, dword [ebp - 4]
mov eax, esi
pop edi
xor ecx, ebp
pop esi
call fcn.00421069
mov esp, ebp
pop ebp
ret
Function at 0x40ac28
Capabilities:
Set registry value

Disassembly:
push 0xc
mov eax, 0x43a294
call fcn.00421920
push dword [ebp + 0x14]
lea ecx, [ebp - 0x14]
xor esi, esi
call fcn.0040194d
mov eax, dword [ebp - 0x14]
mov dword [ebp - 4], esi
mov ebx, dword [eax - 0xc]
lea eax, [ebp - 0x18]
push eax
lea eax, [ebp - 0x10]
push eax
push esi
push 0xf003f
push esi
push esi
push esi
push dword [ebp + 0xc]
push dword [ebp + 8]
call dword [sym.imp.ADVAPI32.dll_RegCreateKeyExW]
test eax, eax
jne 0x40aca4
mov ecx, dword [ebp + 0x18]
cmp ecx, 1
je 0x40ac7b
cmp ecx, 2
je 0x40ac7b
push ebx
jmp 0x40ac7f
lea eax, [ebx + ebx]
push eax
push dword [ebp + 0x14]
push ecx
push esi
push dword [ebp + 0x10]
push dword [ebp - 0x10]
call dword [sym.imp.ADVAPI32.dll_RegSetValueExW]
push dword [ebp - 0x10]
mov esi, eax
neg esi
sbb esi, esi
inc esi
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
test esi, esi
jne 0x40acc9
mov ebx, 0x453994
push 0x43ecfc
mov ecx, ebx
call fcn.00401ecb
push dword [ebp + 0x14]
mov ecx, ebx
call fcn.00403dfd
mov ecx, 0x4538c8
call fcn.0040a75f
mov ecx, dword [ebp - 0x14]
add ecx, 0xfffffff0
call fcn.00401856
mov eax, esi
call fcn.004218ee
ret

Function at 0x40acdc
Capabilities:
Set registry value

Disassembly:
push ebp
mov ebp, esp
push ecx
push esi
push edi
lea eax, [ebp - 4]
xor edi, edi
push eax
push dword [ebp + 0xc]
push dword [ebp + 8]
call dword [sym.imp.ADVAPI32.dll_RegCreateKeyW]
push dword [ebp - 4]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
lea eax, [ebp - 4]
push eax
push 0xf003f
push edi
push dword [ebp + 0xc]
push dword [ebp + 8]
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
test eax, eax
jne 0x40ad3e
push 4
lea eax, [ebp + 0x14]
push eax
push 4
push edi
push dword [ebp + 0x10]
push dword [ebp - 4]
call dword [sym.imp.ADVAPI32.dll_RegSetValueExW]
push dword [ebp - 4]
mov esi, eax
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
test esi, esi
jne 0x40ad3e
inc edi
jmp 0x40ad63
mov esi, 0x453994
push str.Failed_to_register_DWORD_value:
mov ecx, esi
call fcn.00401ecb
push dword [ebp + 0x10]
mov ecx, esi
call fcn.00403dfd
mov ecx, 0x4538c8
call fcn.0040a75f
mov eax, edi
pop edi
pop esi
mov esp, ebp
pop ebp
ret

Function at 0x40ed42
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 0x40ed87
call fcn.0041879e
push 0xf0
push dword [ebp + 8]
mov ebx, dword [eax + 0xc]
push ebx
call dword [sym.imp.KERNEL32.dll_FindResourceW]
test eax, eax
je 0x40ed87
push eax
push ebx
call dword [sym.imp.KERNEL32.dll_LoadResource]
mov esi, eax
test esi, esi
je 0x40eda3
push esi
call dword [sym.imp.KERNEL32.dll_LockResource]
mov edi, eax
mov ecx, dword [ebp - 4]
push edi
call fcn.0040b08d
mov ebx, eax
test edi, edi
je 0x40eda1
test esi, esi
je 0x40eda1
push esi
call dword [sym.imp.KERNEL32.dll_FreeResource]
mov eax, ebx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 4
Function at 0x4326b5
Capabilities:
Link many functions at runtime
Print debug messages

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x24
mov eax, dword [0x4515a0]
xor eax, ebp
mov dword [ebp - 4], eax
mov eax, dword [ebp + 8]
push ebx
mov ebx, dword [sym.imp.KERNEL32.dll_EncodePointer]
push esi
push edi
mov dword [ebp - 0x1c], eax
xor esi, esi
mov eax, dword [ebp + 0xc]
push esi
mov dword [ebp - 0x20], eax
call ebx
mov edi, eax
mov dword [ebp - 0x18], edi
call fcn.00428402
mov dword [ebp - 0x14], eax
cmp dword [0x45695c], esi
jne 0x4327a8
push 0x800
push esi
push str.USER32.DLL
call dword [sym.imp.KERNEL32.dll_LoadLibraryExW]
mov edi, eax
test edi, edi
jne 0x432735
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0x57
jne 0x432888
push esi
push esi
push str.USER32.DLL
call dword [sym.imp.KERNEL32.dll_LoadLibraryExW]
mov edi, eax
test edi, edi
je 0x432888
push 0x4448f4
push edi
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
test eax, eax
je 0x432888
push eax
call ebx
push 0x444900
push edi
mov dword [0x45695c], eax
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
push eax
call ebx
push 0x444910
push edi
mov dword [0x456960], eax
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
push eax
call ebx
push str.GetUserObjectInformationW
push edi
mov dword [0x456964], eax
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
push eax
call ebx
mov dword [0x45696c], eax
test eax, eax
je 0x4327a5
push str.GetProcessWindowStation
push edi
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
push eax
call ebx
mov dword [0x456968], eax
mov edi, dword [ebp - 0x18]
call dword [sym.imp.KERNEL32.dll_IsDebuggerPresent]
test eax, eax
je 0x4327cd
mov eax, dword [ebp - 0x1c]
test eax, eax
je 0x4327c0
push eax
call dword [sym.imp.KERNEL32.dll_OutputDebugStringW]
cmp dword [ebp - 0x14], esi
je 0x4327e2
push 4
pop eax
jmp 0x43288a
cmp dword [ebp - 0x14], esi
je 0x4327e2
push dword [0x45695c]
call dword [sym.imp.KERNEL32.dll_DecodePointer]
push 3
jmp 0x4327c7
mov eax, dword [0x456968]
mov ebx, dword [sym.imp.KERNEL32.dll_DecodePointer]
cmp eax, edi
je 0x432840
cmp dword [0x45696c], edi
je 0x432840
push eax
call ebx
push dword [0x45696c]
mov dword [ebp - 0x14], eax
call ebx
mov ecx, dword [ebp - 0x14]
mov dword [ebp - 0x18], eax
test ecx, ecx
je 0x432840
test eax, eax
je 0x432840
call ecx
test eax, eax
je 0x432835
lea ecx, [ebp - 0x24]
push ecx
push 0xc
lea ecx, [ebp - 0x10]
push ecx
push 1
push eax
call dword [ebp - 0x18]
test eax, eax
je 0x432835
test byte [ebp - 8], 1
jne 0x432840
mov edi, dword [ebp + 0x10]
or edi, 0x200000
jmp 0x432870
mov eax, dword [0x456960]
cmp eax, edi
je 0x43286d
push eax
call ebx
test eax, eax
je 0x43286d
call eax
mov esi, eax
test esi, esi
je 0x43286d
mov eax, dword [0x456964]
cmp eax, edi
je 0x43286d
push eax
call ebx
test eax, eax
je 0x43286d
push esi
call eax
mov esi, eax
mov edi, dword [ebp + 0x10]
push dword [0x45695c]
call ebx
test eax, eax
je 0x432888
push edi
push dword [ebp - 0x20]
push dword [ebp - 0x1c]
push esi
call eax
jmp 0x43288a
xor eax, eax
mov ecx, dword [ebp - 4]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.00421069
mov esp, ebp
pop ebp
ret
Function at 0x401047
Capabilities:
Encode data using base64

Disassembly:
push ebp
mov ebp, esp
push ecx
mov eax, dword [ebp + 0x10]
push esi
push edi
push 3
cdq
pop edi
idiv edi
mov edi, dword [ebp + 8]
xor ecx, ecx
xor esi, esi
mov dword [ebp - 4], edx
cmp dword [ebp + 0x10], ecx
jle 0x40110f
xor edx, edx
inc edx
push ebx
mov eax, dword [ebp + 0xc]
add eax, esi
movzx ebx, byte [eax]
shr ebx, 2
mov bl, byte [ebx + str.ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789_]
mov byte [ecx + edi], bl
mov al, byte [eax]
and al, 3
xor bl, bl
shl al, 4
cmp edx, dword [ebp + 0x10]
jge 0x401099
mov ebx, dword [ebp + 0xc]
mov bl, byte [esi + ebx + 1]
shr bl, 4
movzx eax, al
movzx ebx, bl
or ebx, eax
mov al, byte [ebx + str.ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789_]
inc esi
mov byte [ecx + edi + 1], al
inc edx
xor al, al
xor bl, bl
cmp esi, dword [ebp + 0x10]
jge 0x4010c1
mov eax, dword [ebp + 0xc]
mov al, byte [esi + eax]
and al, 0xf
shl al, 2
cmp edx, dword [ebp + 0x10]
jge 0x4010d0
mov ebx, dword [ebp + 0xc]
mov bl, byte [esi + ebx + 1]
shr bl, 6
movzx eax, al
movzx ebx, bl
or ebx, eax
mov al, byte [ebx + str.ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789_]
inc esi
mov byte [ecx + edi + 2], al
inc edx
xor al, al
cmp esi, dword [ebp + 0x10]
jge 0x4010f5
mov eax, dword [ebp + 0xc]
mov al, byte [esi + eax]
and al, 0x3f
inc esi
inc edx
movzx eax, al
mov al, byte [eax + str.ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789_]
mov byte [ecx + edi + 3], al
add ecx, 4
cmp esi, dword [ebp + 0x10]
jl 0x40106d
pop ebx
cmp dword [ebp - 4], 2
jne 0x40111c
mov byte [ecx + edi - 1], 0x3d
jmp 0x401129
cmp dword [ebp - 4], 1
jne 0x401129
mov word [ecx + edi - 2], 0x3d3d
cmp byte [ebp + 0x14], 0
je 0x401141
push 3
pop eax
sub eax, dword [ebp - 4]
push 3
cdq
pop esi
idiv esi
sub ecx, edx
mov byte [ecx + edi], 0
pop edi
mov eax, ecx
pop esi
leave
ret
Function at 0x404fe2
Capabilities:
Hash data with md5

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x214
mov eax, dword [0x43db90]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
xor eax, eax
push esi
mov esi, dword [ebp + 8]
mov ebx, 0x200
push ebx
push eax
mov dword [esi], eax
mov dword [esi + 4], eax
mov dword [esi + 8], eax
mov dword [esi + 0xc], eax
lea eax, [ebp - 0x214]
push eax
call fcn.00415380
add esp, 0xc
lea ecx, [ebp - 0x214]
mov dword [ebp - 0x1f4], 0x67452301
mov dword [ebp - 0x1f0], 0xefcdab89
mov dword [ebp - 0x1ec], 0x98badcfe
mov dword [ebp - 0x1e8], 0x10325476
call fcn.00404d34
test eax, eax
je 0x40505b
xor al, al
jmp 0x4050f3
push edi
lea eax, [ebp - 0x14]
push eax
lea edi, [ebp - 0x214]
call fcn.00404bcc
push ebx
mov eax, edi
push 0
push eax
call fcn.00415380
push 8
push str.YuaFlafu
mov dword [ebp - 0x20c], 0x67452301
mov dword [ebp - 0x208], 0xefcdab89
mov dword [ebp - 0x204], 0x98badcfe
mov dword [ebp - 0x200], 0x10325476
call fcn.00404c43
lea eax, [ebp - 0x14]
push 6
push eax
call fcn.00404c43
lea eax, [ebp - 0x14]
push 6
push eax
call fcn.00404c43
lea eax, [ebp - 0x14]
push 6
push eax
call fcn.00404c43
push 8
push str.zPif98ga
call fcn.00404c43
mov ecx, edi
call fcn.00404cc5
push 0x10
lea eax, [ebp - 0x20c]
push eax
push esi
call fcn.004148b0
add esp, 0x44
mov al, 1
pop edi
mov ecx, dword [ebp - 4]
pop esi
xor ecx, ebp
pop ebx
call fcn.00415106
leave
ret
Function at 0x4053d5
Capabilities:
Delete file
Extract resource via kernel32 functions
Get common file path
Write file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x3b8
mov eax, dword [0x43db90]
xor eax, ebp
mov dword [ebp - 4], eax
mov eax, dword [ebp + 8]
push ebx
push esi
push edi
push eax
mov dword [ebp - 0x3ac], eax
lea eax, [ebp - 0x108]
push eax
call fcn.00415520
lea eax, [ebp - 0x108]
push 0x2e
push eax
call fcn.00413ae0
xor ebx, ebx
add esp, 0x10
cmp eax, ebx
je 0x40541a
mov byte [eax], bl
lea eax, [ebp - 0x310]
push eax
push 0x104
call dword [sym.imp.KERNEL32.dll_GetTempPathA]
lea eax, [ebp - 0x20c]
push eax
push ebx
lea eax, [ebp - 0x108]
push eax
lea eax, [ebp - 0x310]
push eax
call dword [sym.imp.KERNEL32.dll_GetTempFileNameA]
push ebx
call dword [sym.imp.KERNEL32.dll_GetModuleHandleA]
mov esi, eax
push str.BINDATA
lea eax, [ebp - 0x108]
push eax
push esi
call dword [sym.imp.KERNEL32.dll_FindResourceA]
mov edi, eax
cmp edi, ebx
je 0x405565
push edi
push esi
call dword [sym.imp.KERNEL32.dll_LoadResource]
mov dword [ebp - 0x3a8], eax
cmp eax, ebx
je 0x405565
push edi
push esi
call dword [sym.imp.KERNEL32.dll_SizeofResource]
push dword [ebp - 0x3a8]
mov edi, eax
call dword [sym.imp.KERNEL32.dll_LockResource]
mov esi, dword [sym.imp.KERNEL32.dll_CreateFileA]
push ebx
push ebx
push 3
push ebx
push ebx
mov dword [ebp - 0x3b0], eax
push 0x40000000
lea eax, [ebp - 0x20c]
push eax
call esi
mov dword [ebp - 0x3b8], eax
cmp eax, 0xffffffff
je 0x405565
push ebx
lea ecx, [ebp - 0x3b4]
push ecx
push edi
push dword [ebp - 0x3b0]
push eax
call dword [sym.imp.KERNEL32.dll_WriteFile]
push dword [ebp - 0x3b8]
call dword [sym.imp.KERNEL32.dll_CloseHandle]
cmp edi, dword [ebp - 0x3b4]
je 0x405501
push dword [ebp - 0x3ac]
call dword [sym.imp.KERNEL32.dll_DeleteFileA]
jmp 0x405565
lea eax, [ebp - 0x3a4]
push eax
mov dword [ebp - 0x3a4], 0x94
call dword [sym.imp.KERNEL32.dll_GetVersionExA]
cmp dword [ebp - 0x394], 2
je 0x40552d
push dword [ebp - 0x3a8]
call dword [sym.imp.KERNEL32.dll_FreeResource]
push ebx
push 0x4000000
push 3
push ebx
push 1
push closesocket
lea eax, [ebp - 0x20c]
push eax
call esi
mov esi, eax
cmp esi, 0xffffffff
je 0x405565
lea eax, [ebp - 0x20c]
push eax
call dword [sym.imp.KERNEL32.dll_LoadLibraryA]
cmp eax, ebx
jne 0x405567
push esi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
xor eax, eax
mov ecx, dword [ebp - 4]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.00415106
leave
ret

Function at 0x406107
Capabilities:
Set registry value

Disassembly:
push ebp
mov ebp, esp
push ebx
push esi
mov esi, dword [ebp + 0xc]
mov ebx, ecx
test esi, esi
jne 0x40611a
push 0xd
pop eax
jmp 0x406142
push edi
xor edi, edi
push esi
call dword [sym.imp.KERNEL32.dll_lstrlenA]
inc eax
add esi, eax
add edi, eax
cmp eax, 1
jne 0x40611d
push edi
push dword [ebp + 0xc]
push 7
push 0
push dword [ebp + 8]
push dword [ebx]
call dword [sym.imp.ADVAPI32.dll_RegSetValueExA]
pop edi
pop esi
pop ebx
pop ebp
ret 8
Function at 0x4066ce
Capabilities:
Query or enumerate registry key

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x120
mov eax, dword [0x43db90]
xor eax, ebp
mov dword [ebp - 4], eax
mov eax, dword [ebp + 8]
push ebx
push esi
push edi
mov edi, ecx
mov ecx, dword [edi + 4]
or ecx, 0x2001f
push ecx
push eax
push dword [edi]
xor esi, esi
lea ecx, [ebp - 0x114]
mov dword [ebp - 0x118], eax
mov dword [ebp - 0x114], esi
mov dword [ebp - 0x110], esi
mov dword [ebp - 0x10c], esi
call fcn.00406090
mov ebx, eax
cmp ebx, esi
je 0x40673f
lea ecx, [ebp - 0x114]
call fcn.00406019
mov eax, ebx
mov ecx, dword [ebp - 4]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.00415106
leave
ret 4
mov ebx, dword [sym.imp.ADVAPI32.dll_RegEnumKeyExA]
jmp 0x40675d
lea eax, [ebp - 0x104]
push eax
lea ecx, [ebp - 0x114]
call fcn.004066ce
cmp eax, esi
jne 0x4067a4
lea eax, [ebp - 0x120]
push eax
push esi
push esi
push esi
lea eax, [ebp - 0x108]
push eax
lea eax, [ebp - 0x104]
push eax
push esi
push dword [ebp - 0x114]
mov dword [ebp - 0x108], pe_nt_image_headers32
call ebx
test eax, eax
je 0x406747
lea ecx, [ebp - 0x114]
call fcn.00406019
push dword [ebp - 0x118]
mov ecx, edi
call fcn.00405ff7
lea ecx, [ebp - 0x114]
mov esi, eax
call fcn.00406019
mov eax, esi
jmp 0x40672e
Function at 0x407cea
Capabilities:
Extract resource via kernel32 functions

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x420
mov eax, dword [0x43db90]
xor eax, ebp
mov dword [ebp - 4], eax
mov eax, dword [ebp + 0xc]
push ebx
push esi
mov esi, dword [ebp + 8]
push edi
xor edi, edi
mov dword [ebp - 0x40c], eax
mov eax, dword [ebp + 0x10]
mov dword [ebp - 0x418], eax
mov dword [ebp - 0x410], edi
mov dword [ebp - 0x41c], ecx
mov dword [ebp - 0x420], edi
mov dword [ebp - 0x408], edi
cmp esi, edi
je 0x407d9b
push esi
call dword [sym.imp.KERNEL32.dll_lstrlenW]
inc eax
push 2
push eax
mov dword [ebp - 0x414], eax
lea eax, [ebp - 0x414]
push eax
call fcn.00405cbe
add esp, 0xc
test eax, eax
js 0x407d9b
mov ebx, dword [ebp - 0x414]
cmp ebx, 0x400
jg 0x407d7b
push ebx
call fcn.00406659
pop ecx
test al, al
je 0x407d7b
mov eax, ebx
call fcn.004160c0
mov eax, esp
jmp 0x407d8d
push ebx
lea ecx, [ebp - 0x410]
call fcn.0040683a
mov edi, dword [ebp - 0x410]
push 3
push ebx
push esi
push eax
call fcn.00405da4
test eax, eax
jne 0x407dcd
lea eax, [ebp - 0x404]
cmp dword [ebp - 0x408], eax
je 0x407dbf
lea ecx, [ebp - 0x408]
call fcn.004065be
jmp 0x407dbf
push edi
mov edi, dword [edi]
call fcn.00414c11
pop ecx
test edi, edi
jne 0x407db6
mov eax, 0x8007000e
jmp 0x407eb0
push 2
push 0
push eax
call dword [sym.imp.KERNEL32.dll_LoadLibraryExA]
mov ebx, eax
test ebx, ebx
jne 0x407dea
call fcn.00405e08
mov esi, eax
jmp 0x407e86
push dword [ebp - 0x418]
push dword [ebp - 0x40c]
push ebx
call dword [sym.imp.KERNEL32.dll_FindResourceA]
mov esi, eax
test esi, esi
jne 0x407e0a
call fcn.00405e08
jmp 0x407e7d
push esi
push ebx
call dword [sym.imp.KERNEL32.dll_LoadResource]
mov dword [ebp - 0x40c], eax
test eax, eax
je 0x407e03
push esi
push ebx
call dword [sym.imp.KERNEL32.dll_SizeofResource]
mov esi, eax
lea eax, [esi + 1]
cmp eax, esi
jae 0x407e34
mov esi, 0x8007000e
jmp 0x407e7f
push eax
lea ecx, [ebp - 0x408]
call fcn.00406d7c
cmp dword [ebp - 0x408], 0
je 0x407e2d
push esi
push dword [ebp - 0x40c]
push esi
push dword [ebp - 0x408]
call fcn.0040126e
mov eax, dword [ebp - 0x408]
add esp, 0x10
push dword [ebp + 0x14]
mov byte [eax + esi], 0
push dword [ebp - 0x408]
lea ecx, [ebp - 0x420]
call fcn.00407ae6
mov esi, eax
push ebx
call dword [sym.imp.KERNEL32.dll_FreeLibrary]
lea eax, [ebp - 0x404]
cmp dword [ebp - 0x408], eax
je 0x407eaa
lea ecx, [ebp - 0x408]
call fcn.004065be
jmp 0x407eaa
push edi
mov edi, dword [edi]
call fcn.00414c11
pop ecx
test edi, edi
jne 0x407ea1
mov eax, esi
lea esp, [ebp - 0x42c]
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.00415106
leave
ret 0x10