joyce8/EMBER2024-capa huggingface dataset:
Function at 0x41532e
Capabilities:
Get geographical location

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x160
mov eax, dword [0x45e764]
xor eax, ebp
mov dword [ebp - 4], eax
cmp dword [ebp + 0xc], 0x800
mov eax, dword [ebp + 8]
push esi
mov dword [ebp - 0x11c], eax
mov esi, ecx
lea eax, [ebp - 0x120]
jne 0x4153cc
push 0x44f354
push 4
push eax
call fcn.00433fec
push eax
call fcn.004012e0
add esp, 0x10
push ebx
push edi
call fcn.0043657d
mov edi, dword [eax]
call fcn.0043657d
xor ebx, ebx
mov dword [eax], ebx
lea eax, [ebp - 0x120]
push eax
push dword [ebp - 0x11c]
lea eax, [ebp - 0x118]
push esi
push 0x111
mov esi, 0x112
push esi
push eax
call fcn.00433886
add esp, 0x18
mov dword [ebp - 0x11c], eax
call fcn.0043657d
cmp dword [eax], ebx
je 0x4153e3
call fcn.0043657d
push dword [eax]
call fcn.0041528f
pop ecx
jmp 0x4153ea
push 4
push eax
push 3
push dword [ebp + 0xc]
call dword [sym.imp.KERNEL32.dll_GetLocaleInfoA]
test eax, eax
jne 0x415374
jmp 0x415471
call fcn.0043657d
mov dword [eax], edi
cmp dword [ebp - 0x11c], 0xffffffff
je 0x41546d
cmp dword [ebp - 0x11c], esi
jae 0x41546d
lea eax, [ebp - 0x118]
push eax
call dword [sym.imp.SHLWAPI.dll_PathFindFileNameA]
push 0x3c
mov esi, eax
lea eax, [ebp - 0x15c]
push ebx
push eax
mov dword [ebp - 0x160], 0x40
call fcn.004338b0
add esp, 0xc
push str.KERNEL32
call dword [sym.imp.KERNEL32.dll_GetModuleHandleA]
cmp eax, ebx
je 0x41545c
push str.FindActCtxSectionStringA
push eax
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
cmp eax, ebx
je 0x41545c
lea ecx, [ebp - 0x160]
push ecx
push esi
push 2
push ebx
push ebx
call eax
test eax, eax
je 0x41545c
push ebx
push ebx
push esi
jmp 0x415465
push ebx
push ebx
lea eax, [ebp - 0x118]
push eax
call dword [sym.imp.KERNEL32.dll_LoadLibraryExA]
jmp 0x41546f
xor eax, eax
pop edi
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
pop esi
call fcn.00432ccc
leave
ret

Function at 0x417c77
Capabilities:
Extract resource via kernel32 functions

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push ebx
mov ebx, dword [ebp + 8]
push esi
push edi
mov edi, ecx
mov dword [edi + 0x58], ebx
test ebx, 0xffff0000
jne 0x417c9b
cmp dword [edi + 0x54], 0
jne 0x417c9b
movzx eax, bx
mov dword [edi + 0x54], eax
call fcn.0041ac12
mov esi, dword [eax + 0xc]
push 5
push ebx
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 ebx, eax
push ebx
mov ecx, edi
call fcn.00417c38
push ebx
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 0x418a53
Capabilities:
Extract resource via kernel32 functions

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push ecx
push ebx
xor ebx, ebx
push esi
push edi
mov edi, ecx
mov dword [ebp - 4], ebx
cmp dword [ebp + 0xc], ebx
je 0x418a9b
call fcn.0041ac12
mov esi, dword [eax + 0xc]
push pe_nt_image_headers32
push dword [ebp + 0xc]
push esi
call dword [sym.imp.KERNEL32.dll_FindResourceA]
test eax, eax
je 0x418a9b
push eax
push esi
call dword [sym.imp.KERNEL32.dll_LoadResource]
mov dword [ebp - 4], eax
test eax, eax
je 0x418ade
push eax
call dword [sym.imp.KERNEL32.dll_LockResource]
mov ebx, eax
mov esi, dword [ebp + 8]
mov dword [ebp + 0xc], 1
test ebx, ebx
je 0x418ac7
push dword [ebp + 0x10]
mov eax, dword [edi]
push ebx
push esi
mov ecx, edi
call dword [eax + 0x20]
cmp dword [ebp - 4], 0
mov dword [ebp + 0xc], eax
je 0x418ac7
push dword [ebp - 4]
call dword [sym.imp.KERNEL32.dll_FreeResource]
cmp dword [esi + 0x4c], 0
je 0x418adb
mov ecx, dword [esi + 0x4c]
push dword [ebp + 0x10]
mov eax, dword [ecx]
call dword [eax + 0xa0]
mov eax, dword [ebp + 0xc]
pop edi
pop esi
pop ebx
leave
ret 0xc

Function at 0x4194ed
Capabilities:
Contain obfuscated stackstrings

Disassembly:
inc ebp
loop 0x419542
mov byte [ebp - 0x1d], 0x6a
mov byte [ebp - 0x1c], 0x2b
call fcn.004190a7
push eax
push esi
push dword [ebp + 8]
call fcn.0041905c
invalid
invalid

Function at 0x419525
Capabilities:
Contain obfuscated stackstrings

Disassembly:
mov byte [ebp - 0x82], 0xe9
mov byte [ebp - 0x81], bl
mov byte [ebp - 0x80], 0x51
mov byte [ebp - 0x7f], 0x73
mov byte [ebp - 0x7e], 0x62
invalid
inc ebp
invalid
Function at 0x419728
Capabilities:
Inspect section memory permissions

Disassembly:
cmp dword [eax], ebx
je 0x41974b
mov edx, dword [eax + 4]
lea ecx, [eax + 8]
add edx, eax
mov dword [ebp + 8], ecx
cmp ecx, edx
jae 0x419746
mov ecx, dword [ebp + 8]
movzx ecx, word [ecx]
mov edx, ecx
and edx, 0xf000
cmp edx, 0x3000
jne 0x419730
and ecx, 0xfff
mov edx, esi
sub edx, dword [edi + 0x34]
add ecx, esi
add ecx, dword [eax]
add dword [ecx], edx
jmp 0x419738
cmp edx, ebx
jne 0x419886
mov ecx, dword [eax + 4]
add dword [ebp + 8], 2
add ecx, eax
cmp dword [ebp + 8], ecx
jb 0x419707
add eax, dword [eax + 4]
jmp 0x4196f4
mov dword [ebp + 0xc], ebx
jmp 0x419756
mov edi, dword [ebp - 0x88]
mov eax, dword [ebp + 0xc]
cmp ax, word [edi + 6]
jne 0x41976e
mov edx, dword [ebp - 0xb4]
xor ecx, ecx
mov edi, 0x60000000
jmp 0x41978c
movzx eax, ax
lea eax, [eax + eax*4]
mov ecx, dword [edi + eax*8 + 0x104]
mov edx, dword [edi + eax*8 + 0x108]
lea eax, [edi + eax*8 + 0xf8]
mov edi, dword [eax + 0x24]
lea eax, [edx + ecx - 1]
xor edx, edx
div dword [ebp - 0xac]
xor edx, edx
mov dword [ebp - 0x44], eax
mov eax, ecx
div dword [ebp - 0xac]
cmp eax, dword [ebp - 0x44]
ja 0x4197ea
mov edx, edi
mov dword [ebp + 8], edi
and dword [ebp + 8], 0x40000000
mov dword [ebp + 0x10], edi
and edx, 0x20000000
and dword [ebp + 0x10], 0x80000000
mov ecx, dword [ebp + 0x18]
cmp edx, ebx
je 0x4197d1
or byte [eax + ecx], 1
cmp dword [ebp + 8], ebx
je 0x4197da
or byte [eax + ecx], 2
cmp dword [ebp + 0x10], ebx
je 0x4197e4
add ecx, eax
or byte [ecx], 4
inc eax
cmp eax, dword [ebp - 0x44]
jbe 0x4197c6
inc dword [ebp + 0xc]
mov eax, dword [ebp - 0x88]
mov cx, word [ebp + 0xc]
cmp cx, word [eax + 6]
jbe 0x419750
mov dword [ebp + 8], esi
xor edi, edi
mov eax, dword [ebp + 0x18]
push 2
pop ecx
movzx eax, byte [edi + eax]
sub eax, ecx
je 0x419837
dec eax
je 0x41982e
sub eax, 3
je 0x419825
mov dword [ebp - 4], 0x40
jmp 0x419854
mov dword [ebp - 4], 4
jmp 0x41983a
mov dword [ebp - 4], 0x20
jmp 0x41983a
mov dword [ebp - 4], ecx
lea eax, [ebp - 4]
push eax
push dword [ebp - 4]
push dword [ebp - 0xac]
push dword [ebp + 8]
call dword [ebp - 0xbc]
test eax, eax
je 0x419886
inc dword [ebp - 0x74cd8b40]
test dword [edi + edi*8 - 1], edx
inc dword [ecx]
inc ebp
or byte [edi + 0x3b], al
mov ebp, 0xffffff74
mov eax, dword [ebp - 0xac]
add dword [ebp + 8], eax
inc edi
cmp edi, dword [ebp - 0x8c]
jbe 0x419806
invalid
invalid
Function at 0x4197c7
Capabilities:
Inspect section memory permissions

Disassembly:
cmp dword [eax], ebx
je 0x41974b
mov edx, dword [eax + 4]
lea ecx, [eax + 8]
add edx, eax
mov dword [ebp + 8], ecx
cmp ecx, edx
jae 0x419746
mov ecx, dword [ebp + 8]
movzx ecx, word [ecx]
mov edx, ecx
and edx, 0xf000
cmp edx, 0x3000
jne 0x419730
and ecx, 0xfff
mov edx, esi
sub edx, dword [edi + 0x34]
add ecx, esi
add ecx, dword [eax]
add dword [ecx], edx
jmp 0x419738
cmp edx, ebx
jne 0x419886
mov ecx, dword [eax + 4]
add dword [ebp + 8], 2
add ecx, eax
cmp dword [ebp + 8], ecx
jb 0x419707
add eax, dword [eax + 4]
jmp 0x4196f4
mov dword [ebp + 0xc], ebx
jmp 0x419756
mov edi, dword [ebp - 0x88]
mov eax, dword [ebp + 0xc]
cmp ax, word [edi + 6]
jne 0x41976e
mov edx, dword [ebp - 0xb4]
xor ecx, ecx
mov edi, 0x60000000
jmp 0x41978c
movzx eax, ax
lea eax, [eax + eax*4]
mov ecx, dword [edi + eax*8 + 0x104]
mov edx, dword [edi + eax*8 + 0x108]
lea eax, [edi + eax*8 + 0xf8]
mov edi, dword [eax + 0x24]
lea eax, [edx + ecx - 1]
xor edx, edx
div dword [ebp - 0xac]
xor edx, edx
mov dword [ebp - 0x44], eax
mov eax, ecx
div dword [ebp - 0xac]
cmp eax, dword [ebp - 0x44]
ja 0x4197ea
mov edx, edi
mov dword [ebp + 8], edi
and dword [ebp + 8], 0x40000000
mov dword [ebp + 0x10], edi
and edx, 0x20000000
and dword [ebp + 0x10], 0x80000000
mov ecx, dword [ebp + 0x18]
cmp edx, ebx
je 0x4197d1
or byte [eax + ecx], 1
cmp dword [ebp + 8], ebx
je 0x4197da
or byte [eax + ecx], 2
cmp dword [ebp + 0x10], ebx
je 0x4197e4
add ecx, eax
or byte [ecx], 4
inc eax
cmp eax, dword [ebp - 0x44]
jbe 0x4197c6
inc dword [ebp + 0xc]
mov eax, dword [ebp - 0x88]
mov cx, word [ebp + 0xc]
cmp cx, word [eax + 6]
jbe 0x419750
mov dword [ebp + 8], esi
xor edi, edi
mov eax, dword [ebp + 0x18]
push 2
pop ecx
movzx eax, byte [edi + eax]
sub eax, ecx
je 0x419837
dec eax
je 0x41982e
sub eax, 3
je 0x419825
mov dword [ebp - 4], 0x40
jmp 0x419854
mov dword [ebp - 4], 4
jmp 0x41983a
mov dword [ebp - 4], 0x20
jmp 0x41983a
mov dword [ebp - 4], ecx
lea eax, [ebp - 4]
push eax
push dword [ebp - 4]
push dword [ebp - 0xac]
push dword [ebp + 8]
call dword [ebp - 0xbc]
test eax, eax
je 0x419886
inc dword [ebp - 0x74cd8b40]
test dword [edi + edi*8 - 1], edx
inc dword [ecx]
inc ebp
or byte [edi + 0x3b], al
mov ebp, 0xffffff74
mov eax, dword [ebp - 0xac]
add dword [ebp + 8], eax
inc edi
cmp edi, dword [ebp - 0x8c]
jbe 0x419806
invalid
invalid

Function at 0x419c6d
Capabilities:
Contain obfuscated stackstrings

Disassembly:
cwde
mov byte [ebp - 0x51a], 0x8f
mov byte [ebp - 0x519], 0x8f
mov byte [ebp - 0x518], 0xea
lea eax, [ebp - 0x524]
push eax
call fcn.004190a7
pop ecx
push eax
push dword [ebp + 0x18]
Function at 0x41b114
Capabilities:
Contain obfuscated stackstrings

Disassembly:
push 1
pop eax
test eax, eax
je fcn.0041b13d
lea eax, [ebp - 0x230]
mov dword [ebp - 0x3a0], eax
cmp dword [ebp - 0x6fc], 0
jne fcn.0041ac12
and byte [ebp - 0x77c], 0
and byte [ebp - 0x77b], 0
mov byte [ebp - 0x77a], 4
and byte [ebp - 0x779], 0
mov byte [ebp - 0x778], 0xb8
mov byte [ebp - 0x777], 0xc1
mov byte [ebp - 0x776], 0xa7
mov byte [ebp - 0x775], 0xab
mov byte [ebp - 0x774], 0x89
mov byte [ebp - 0x773], 0x94
mov byte [ebp - 0x772], 0x9c
mov byte [ebp - 0x771], 0x89
mov byte [ebp - 0x770], 0x9a
mov byte [ebp - 0x76f], 0x96
mov byte [ebp - 0x76e], 0xdb
mov byte [ebp - 0x76d], 0xbd
mov byte [ebp - 0x76c], 0x92
mov byte [ebp - 0x76b], 0x97
mov byte [ebp - 0x76a], 0x9e
mov byte [ebp - 0x769], 0x88
mov byte [ebp - 0x768], 0xa7
mov byte [ebp - 0x767], 0xb8
mov byte [ebp - 0x766], 0x94
mov byte [ebp - 0x765], 0x96
mov byte [ebp - 0x764], 0x96
mov byte [ebp - 0x763], 0x94
mov byte [ebp - 0x762], 0x95
mov byte [ebp - 0x761], 0xdb
mov byte [ebp - 0x760], 0xbd
mov byte [ebp - 0x75f], 0x92
mov byte [ebp - 0x75e], 0x97
mov byte [ebp - 0x75d], 0x9e
mov byte [ebp - 0x75c], 0x88
mov byte [ebp - 0x75b], 0xa7
mov byte [ebp - 0x75a], 0xa8
mov byte [ebp - 0x759], 0x82
mov byte [ebp - 0x758], 0x88
mov byte [ebp - 0x757], 0x8f
mov byte [ebp - 0x756], 0x9e
mov byte [ebp - 0x755], 0x96
mov byte [ebp - 0x754], 0xa7
mov byte [ebp - 0x753], 0x88
mov byte [ebp - 0x752], 0x82
mov byte [ebp - 0x751], 0x96
mov byte [ebp - 0x750], 0x88
mov byte [ebp - 0x74f], 0x89
mov byte [ebp - 0x74e], 0x8d
mov byte [ebp - 0x74d], 0xd5
mov byte [ebp - 0x74c], 0x9f
mov byte [ebp - 0x74b], 0x97
mov byte [ebp - 0x74a], 0x97
mov byte [ebp - 0x749], 0xfb
lea eax, [ebp - 0x77c]
push eax
call fcn.004190a7
pop ecx
mov al, byte [ebp - 0x12c]
mov byte [ebp - 0x778], al
push 0x30
lea eax, [ebp - 0x77c]
push eax
call fcn.004190a7
pop ecx
push eax
lea eax, [ebp - 0x504]
push eax
call fcn.00419008
add esp, 0xc
lea eax, [ebp - 0x504]
mov dword [ebp - 0x3a0], eax
jmp 0x41b00f
pop ecx
push eax
push dword [ebp - 0x3a4]
push dword [ebp + 0x14]
call fcn.0041905c
add esp, 0xc
mov dword [ebp - 0x37c], eax
cmp dword [ebp - 0x37c], 0
je 0x41b138
jmp fcn.0041b13d
jmp 0x41aa39

Function at 0x420e81
Capabilities:
Extract resource via kernel32 functions

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push ecx
push ebx
push esi
push edi
xor ebx, ebx
xor edi, edi
mov dword [ebp - 4], ecx
cmp dword [ebp + 8], ebx
je 0x420ec8
call fcn.0041ac12
mov esi, dword [eax + 0xc]
push pe_nt_image_headers32
push dword [ebp + 8]
push esi
call dword [sym.imp.KERNEL32.dll_FindResourceA]
test eax, eax
je 0x420ec8
push eax
push esi
call dword [sym.imp.KERNEL32.dll_LoadResource]
mov ebx, eax
test ebx, ebx
je 0x420ee4
push ebx
call dword [sym.imp.KERNEL32.dll_LockResource]
mov edi, eax
mov ecx, dword [ebp - 4]
push edi
call fcn.004209fb
mov esi, eax
test edi, edi
je 0x420ee2
test ebx, ebx
je 0x420ee2
push ebx
call dword [sym.imp.KERNEL32.dll_FreeResource]
mov eax, esi
pop edi
pop esi
pop ebx
leave
ret 4

Function at 0x432ccc
Capabilities:
Terminate process

Disassembly:
cmp ecx, dword [0x45e764]
jne 0x432cd6
repz ret
jmp fcn.0043ac4c
Function at 0x44457f
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.0043a593
and dword [ebp - 4], 0
cmp dword [0x463a04], 0
mov ebx, eax
jne 0x444630
push 0x453a70
call dword [sym.imp.KERNEL32.dll_LoadLibraryA]
mov edi, eax
test edi, edi
je 0x4446e1
mov esi, dword [sym.imp.KERNEL32.dll_GetProcAddress]
push 0x453a64
push edi
call esi
test eax, eax
je 0x4446e1
push eax
call fcn.0043a521
mov dword [esp], 0x453a54
push edi
mov dword [0x463a04], eax
call esi
push eax
call fcn.0043a521
mov dword [esp], 0x453a40
push edi
mov dword [0x463a08], eax
call esi
push eax
call fcn.0043a521
mov dword [esp], 0x453a24
push edi
mov dword [0x463a0c], eax
call esi
push eax
call fcn.0043a521
pop ecx
mov dword [0x463a14], eax
test eax, eax
je 0x444630
push 0x453a0c
push edi
call esi
push eax
call fcn.0043a521
pop ecx
mov dword [0x463a10], eax
mov eax, dword [0x463a10]
cmp eax, ebx
je 0x444688
cmp dword [0x463a14], ebx
je 0x444688
push eax
call fcn.0043a59c
push dword [0x463a14]
mov esi, eax
call fcn.0043a59c
pop ecx
pop ecx
mov edi, eax
test esi, esi
je 0x444688
test edi, edi
je 0x444688
call esi
test eax, eax
je 0x44467f
lea ecx, [ebp - 8]
push ecx
push 0xc
lea ecx, [ebp - 0x14]
push ecx
push 1
push eax
call edi
test eax, eax
je 0x44467f
test byte [ebp - 0xc], 1
jne 0x444688
or dword [ebp + 0x10], 0x200000
jmp 0x4446c1
mov eax, dword [0x463a08]
cmp eax, ebx
je 0x4446c1
push eax
call fcn.0043a59c
pop ecx
test eax, eax
je 0x4446c1
call eax
mov dword [ebp - 4], eax
test eax, eax
je 0x4446c1
mov eax, dword [0x463a0c]
cmp eax, ebx
je 0x4446c1
push eax
call fcn.0043a59c
pop ecx
test eax, eax
je 0x4446c1
push dword [ebp - 4]
call eax
mov dword [ebp - 4], eax
push dword [0x463a04]
call fcn.0043a59c
pop ecx
test eax, eax
je 0x4446e1
push dword [ebp + 0x10]
push dword [ebp + 0xc]
push dword [ebp + 8]
push dword [ebp - 4]
call eax
jmp 0x4446e3
xor eax, eax
pop edi
pop esi
pop ebx
leave
ret
Function at 0x402dd0
Capabilities:
Set registry value

Disassembly:
push 0xffffffffffffffff
push 0x42dfb0
mov eax, dword fs:[0]
push eax
push ecx
push ebx
push esi
push edi
mov eax, dword [0x43abb0]
xor eax, esp
push eax
lea eax, [esp + 0x14]
mov dword fs:[0], eax
mov eax, dword [esp + 0x24]
push eax
xor ecx, ecx
call fcn.00403160
mov esi, eax
test esi, esi
je 0x402efb
mov ecx, dword [0x43ed94]
mov eax, dword [ecx - 0xc]
or ebx, 0xffffffff
test eax, eax
jle 0x402e63
push str.NodeName
lea ecx, [esp + 0x28]
call fcn.00404ae0
lea edx, [esp + 0x24]
push edx
push esi
mov edi, 0x43ed94
mov dword [esp + 0x24], 0
call fcn.004032a0
mov dword [esp + 0x1c], ebx
mov eax, dword [esp + 0x24]
add eax, 0xfffffff0
lea ecx, [eax + 0xc]
mov edx, ebx
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x402e63
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov ecx, dword [0x43ed9c]
cmp dword [ecx - 0xc], 0
jle 0x402eb6
push str.IPAddress
lea ecx, [esp + 0x14]
call fcn.00404ae0
lea edx, [esp + 0x10]
push edx
push esi
mov edi, 0x43ed9c
mov dword [esp + 0x24], 1
call fcn.004032a0
mov dword [esp + 0x1c], ebx
mov eax, dword [esp + 0x10]
add eax, 0xfffffff0
lea ecx, [eax + 0xc]
lock xadd dword [ecx], ebx
dec ebx
test ebx, ebx
jg 0x402eb6
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
cmp dword [0x43eda0], 0
mov edi, dword [sym.imp.ADVAPI32.dll_RegSetValueExW]
je 0x402ed8
push 4
push 0x43eda0
push 4
push 0
push str.Repair
push esi
call edi
cmp dword [0x43eda4], 0
je 0x402ef4
push 4
push 0x43eda4
push 4
push 0
push str.LocalSilent
push esi
call edi
push esi
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov ecx, dword [esp + 0x14]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
add esp, 0x10
ret 4

Function at 0x402f60
Capabilities:
Set registry value

Disassembly:
sub esp, 0x128
mov eax, dword [0x43abb0]
xor eax, esp
mov dword [esp + 0x124], eax
push esi
push 0x11c
lea eax, [esp + 0x10]
push 0
push eax
mov esi, ecx
call fcn.00418140
add esp, 0xc
lea ecx, [esp + 0xc]
push ecx
mov dword [esp + 0x10], 0x11c
call dword [sym.imp.KERNEL32.dll_GetVersionExW]
test eax, eax
je 0x402ff5
push esi
xor ecx, ecx
call fcn.00403160
mov esi, eax
test esi, esi
je 0x402ff5
mov edx, dword [esp + 0x10]
mov eax, dword [esp + 0x14]
push edi
mov edi, dword [sym.imp.ADVAPI32.dll_RegSetValueExW]
push 4
lea ecx, [esp + 0x10]
push ecx
push 4
push 0
push str.MajorVersion
push esi
mov dword [esp + 0x24], edx
mov dword [esp + 0x20], eax
call edi
push 4
lea edx, [esp + 0xc]
push edx
push 4
push 0
push str.MinorVersion
push esi
call edi
push esi
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
pop edi
mov ecx, dword [esp + 0x128]
pop esi
xor ecx, esp
call fcn.004161ab
add esp, 0x128
ret
Function at 0x403010
Capabilities:
Read .ini file

Disassembly:
mov eax, 0x1008
call fcn.0041a3e0
mov eax, dword [0x43abb0]
xor eax, esp
mov dword [esp + 0x1004], eax
mov eax, dword [esi]
push eax
push 0x800
lea eax, [esp + 0xc]
push eax
mov dword [esp + 0xc], 0
call dword [sym.imp.KERNEL32.dll_GetPrivateProfileSectionNamesW]
cmp eax, 0x7fe
jne 0x403055
push esi
push 0x3ed
call fcn.004026c0
lea eax, [esp + 4]
call fcn.00403110
lea ecx, [esp + 4]
push ecx
mov ecx, edi
call fcn.00404ae0
mov ecx, dword [esp + 0x1004]
xor ecx, esp
mov eax, edi
call fcn.004161ab
add esp, 0x1008
ret

Function at 0x403090
Capabilities:
Read .ini file

Disassembly:
mov eax, 0x1008
call fcn.0041a3e0
mov eax, dword [0x43abb0]
xor eax, esp
mov dword [esp + 0x1004], eax
mov eax, dword [esp + 0x100c]
mov eax, dword [eax]
mov ecx, dword [esi]
push eax
push 0x800
lea eax, [esp + 0xc]
push eax
push ecx
mov dword [esp + 0x10], 0
call dword [sym.imp.KERNEL32.dll_GetPrivateProfileSectionW]
cmp eax, 0x7fe
jne 0x4030df
push esi
push 0x3ed
call fcn.004026c0
lea eax, [esp + 4]
call fcn.00403110
lea ecx, [esp + 4]
push ecx
mov ecx, edi
call fcn.00404ae0
mov ecx, dword [esp + 0x1004]
xor ecx, esp
mov eax, edi
call fcn.004161ab
add esp, 0x1008
ret 4

Function at 0x4032a0
Capabilities:
Set registry value

Disassembly:
mov eax, dword [edi]
sub eax, 0x10
cmp dword [eax + 0xc], 1
jle 0x4032b6
mov eax, dword [eax + 4]
push eax
mov ecx, edi
call fcn.00404890
mov ecx, dword [esp + 8]
push ebx
mov ebx, dword [ecx]
push esi
mov esi, dword [edi]
push esi
call dword [sym.imp.KERNEL32.dll_lstrlenW]
lea edx, [eax + eax + 2]
mov eax, dword [esp + 0xc]
push edx
push esi
push 1
push 0
push ebx
push eax
call dword [sym.imp.ADVAPI32.dll_RegSetValueExW]
mov edx, dword [edi]
test edx, edx
jne 0x4032e7
xor ecx, ecx
jmp 0x403301
mov ecx, edx
lea ebx, [ecx + 2]
lea esp, [esp]
mov si, word [ecx]
add ecx, 2
test si, si
jne 0x4032f0
sub ecx, ebx
sar ecx, 1
js 0x403316
cmp ecx, dword [edx - 8]
jg 0x403316
mov dword [edx - 0xc], ecx
mov edx, dword [edi]
pop esi
mov word [edx + ecx*2], 0
pop ebx
ret 8
push 0x80070057
call fcn.00404a20
int3

Function at 0x404d20
Capabilities:
Extract resource via kernel32 functions

Disassembly:
push ebx
mov ebx, dword [esp + 8]
push edi
mov edi, dword [esp + 0x10]
push edi
push ebx
call dword [sym.imp.KERNEL32.dll_LoadResource]
test eax, eax
jne 0x404d39
pop edi
pop ebx
ret
push esi
push eax
call dword [sym.imp.KERNEL32.dll_LockResource]
mov esi, eax
test esi, esi
je 0x404d74
push edi
push ebx
call dword [sym.imp.KERNEL32.dll_SizeofResource]
mov ecx, dword [esp + 0x18]
add eax, esi
and ecx, 0xf
jbe 0x404d70
lea ebx, [ebx]
cmp esi, eax
jae 0x404d74
sub ecx, 1
movzx edx, word [esi]
lea esi, [esi + edx*2 + 2]
jne 0x404d60
cmp esi, eax
jb 0x404d7a
pop esi
pop edi
xor eax, eax
pop ebx
ret
mov ax, word [esi]
neg ax
sbb eax, eax
and eax, esi
pop esi
pop edi
pop ebx
ret
Function at 0x406f00
Capabilities:
Read .ini file

Disassembly:
mov eax, dword [esi]
mov edx, dword [eax - 8]
sub eax, 0x10
mov ecx, 1
sub ecx, dword [eax + 0xc]
sub edx, 0x105
or ecx, edx
jge 0x406f26
push 0x105
mov ecx, esi
call fcn.00404ea0
mov ecx, dword [esp + 0xc]
mov eax, dword [esi]
mov edx, dword [esp + 8]
push ecx
push 0x104
push eax
mov eax, dword [esp + 0x10]
push 0x434508
push edx
push eax
call dword [sym.imp.KERNEL32.dll_GetPrivateProfileStringW]
mov edx, dword [esi]
test edx, edx
jne 0x406f52
xor ecx, ecx
jmp 0x406f73
push ebx
mov ecx, edx
push edi
lea ebx, [ecx + 2]
lea esp, [esp]
mov di, word [ecx]
add ecx, 2
test di, di
jne 0x406f60
sub ecx, ebx
sar ecx, 1
pop edi
pop ebx
js 0x406f86
cmp ecx, dword [edx - 8]
jg 0x406f86
mov dword [edx - 0xc], ecx
mov edx, dword [esi]
mov word [edx + ecx*2], 0
ret 0xc
push 0x80070057
call fcn.00404a20
int3

Function at 0x407dd0
Capabilities:
Create process on windows

Disassembly:
sub esp, 0x60
push ebx
push esi
push edi
push 0x44
mov esi, eax
lea eax, [esp + 0x24]
push 0
push eax
call fcn.00418140
mov eax, dword [esi]
sub eax, 0x10
add esp, 0xc
cmp dword [eax + 0xc], 1
jle 0x407dff
mov ecx, dword [eax + 4]
push ecx
mov ecx, esi
call fcn.00404890
mov eax, dword [esi]
lea edx, [esp + 0x10]
push edx
lea ecx, [esp + 0x24]
push ecx
push 0
push 0
push 0
push 1
push 0
push 0
push eax
push 0
call dword [sym.imp.KERNEL32.dll_CreateProcessW]
mov edx, dword [esi]
test edx, edx
mov edi, eax
jne 0x407e2c
xor eax, eax
jmp 0x407e42
mov eax, edx
lea ebx, [eax + 2]
mov cx, word [eax]
add eax, 2
test cx, cx
jne 0x407e31
sub eax, ebx
sar eax, 1
js 0x407e6f
cmp eax, dword [edx - 8]
jg 0x407e6f
mov dword [edx - 0xc], eax
mov edx, dword [esi]
mov esi, dword [sym.imp.KERNEL32.dll_CloseHandle]
mov word [edx + eax*2], 0
mov eax, dword [esp + 0x10]
push eax
call esi
mov ecx, dword [esp + 0x14]
push ecx
call esi
mov eax, edi
pop edi
pop esi
pop ebx
add esp, 0x60
ret
push 0x80070057
call fcn.00404a20
int3