joyce8/EMBER2024-capa huggingface dataset:
Function at 0x4674f4
Capabilities:
Create thread
Set global application hook

Disassembly:
push ebp
mov ebp, esp
push ecx
mov eax, dword [0x4cfbe0]
cmp byte [eax + 0xa5], 0
jne 0x46756b
cmp dword [0x4cfbf8], 0
jne 0x467529
call sub.kernel32.dll_GetCurrentThreadId_1
push eax
push 0
mov eax, 0x4674b0
push eax
push 3
call sub.user32.dll_SetWindowsHookExA
mov dword [0x4cfbf8], eax
cmp dword [0x4cfbf4], 0
jne 0x467544
push 0
push 0
push 0
push 0
call sub.kernel32.dll_CreateEventA
mov dword [0x4cfbf4], eax
cmp dword [0x4cfbfc], 0
jne 0x46756b
lea eax, [ebp - 4]
push eax
push 0
push 0
push 0x467450
push 0x3e8
push 0
call sub.kernel32.dll_CreateThread
mov dword [0x4cfbfc], eax
pop ecx
pop ebp
ret

Function at 0x467634
Capabilities:
Hide graphical window

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffff4
mov dword [ebp - 8], edx
mov dword [ebp - 4], eax
call fcn.004675cc
mov byte [ebp - 9], al
cmp byte [ebp - 9], 0
je 0x467655
xor eax, eax
call fcn.00467604
mov eax, dword [ebp - 8]
push eax
mov eax, dword [ebp - 4]
push eax
call sub.user32.dll_ShowWindow
cmp byte [ebp - 9], 0
je 0x46766f
mov al, 1
call fcn.00467604
mov esp, ebp
pop ebp
ret

Function at 0x467d34
Capabilities:
Enumerate gui resources

Disassembly:
push ebp
mov ebp, esp
add esp, 0xffffffec
mov byte [ebp - 5], dl
mov dword [ebp - 4], eax
mov eax, dword [0x4cfbe0]
cmp dword [eax + 0x30], 0
je 0x467dfe
mov eax, dword [ebp - 4]
cmp dword [eax + 0x94], 0
jne 0x467df5
mov eax, dword [ebp - 4]
mov eax, dword [eax + 0x30]
mov dword [ebp - 0x14], eax
mov al, byte [ebp - 5]
mov byte [ebp - 0x10], al
lea eax, [ebp - 0x14]
push eax
push 0x467cb4
call sub.user32.dll_EnumWindows
mov eax, dword [ebp - 4]
mov eax, dword [eax + 0x90]
cmp dword [eax + 8], 0
je 0x467df5
push 3
mov eax, dword [ebp - 0x14]
push eax
call sub.user32.dll_GetWindow
mov dword [ebp - 0x14], eax
push 0xffffffffffffffec
mov eax, dword [ebp - 0x14]
push eax
call sub.user32.dll_GetWindowLongA
test al, 8
je 0x467daf
mov dword [ebp - 0x14], 0xfffffffe
mov eax, dword [ebp - 4]
mov eax, dword [eax + 0x90]
mov eax, dword [eax + 8]
dec eax
cmp eax, 0
jl 0x467df5
mov dword [ebp - 0xc], eax
push 0x213
push 0
push 0
push 0
push 0
mov eax, dword [ebp - 0x14]
push eax
mov edx, dword [ebp - 0xc]
mov eax, dword [ebp - 4]
mov eax, dword [eax + 0x90]
call fcn.0041be94
push eax
call sub.user32.dll_SetWindowPos
dec dword [ebp - 0xc]
cmp dword [ebp - 0xc], 0xffffffff
jne 0x467dc4
mov eax, dword [ebp - 4]
inc dword [eax + 0x94]
mov esp, ebp
pop ebp
ret

Function at 0x468b18
Capabilities:
Get graphical window text

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffef8
mov dword [ebp - 8], edx
mov dword [ebp - 4], eax
mov eax, dword [ebp - 4]
cmp byte [eax + 0xa4], 0
je 0x468b5d
push pe_nt_image_headers32
lea eax, [ebp - 0x108]
push eax
mov eax, dword [ebp - 4]
mov eax, dword [eax + 0x30]
push eax
call sub.user32.dll_GetWindowTextA
mov ecx, eax
lea edx, [ebp - 0x108]
mov eax, dword [ebp - 8]
call fcn.0040424c
jmp 0x468b6e
mov eax, dword [ebp - 8]
mov edx, dword [ebp - 4]
mov edx, dword [edx + 0x8c]
call fcn.004041b0
mov esp, ebp
pop ebp
ret
Function at 0x469ff0
Capabilities:
Hide graphical window

Disassembly:
push ebp
mov ebp, esp
push ecx
mov dword [ebp - 4], eax
mov eax, dword [ebp - 4]
cmp dword [eax + 0x84], 0
je 0x46a043
mov eax, dword [ebp - 4]
mov eax, dword [eax + 0x84]
call fcn.0044afac
test al, al
je 0x46a043
mov eax, dword [ebp - 4]
mov eax, dword [eax + 0x84]
call fcn.0044aadc
push eax
call sub.user32.dll_IsWindowVisible
test eax, eax
je 0x46a043
push 0
mov eax, dword [ebp - 4]
mov eax, dword [eax + 0x84]
call fcn.0044aadc
push eax
call sub.user32.dll_ShowWindow
pop ecx
pop ebp
ret

Function at 0x46b6a8
Capabilities:
Encrypt data using rc4 prga

Disassembly:
push ebx
push esi
push edi
mov ebx, eax
push ebp
push ecx
mov esi, dword [ebx + 0x24]
mov edi, dword [ebx + 0x34]
sub edi, dword [ebx + 0x6c]
sub edi, dword [ebx + 0x64]
test edi, edi
jne 0x46b6d2
cmp dword [ebx + 0x64], 0
jne 0x46b6d2
cmp dword [ebx + 0x6c], 0
jne 0x46b6d2
mov edi, esi
jmp 0x46b759
cmp edi, 0xffffffff
jne 0x46b6da
dec edi
jmp 0x46b759
mov eax, dword [ebx + 0x24]
sub eax, 0x106
add eax, esi
cmp eax, dword [ebx + 0x64]
ja 0x46b759
push esi
mov eax, dword [ebx + 0x30]
mov edx, eax
mov ebp, esi
add edx, ebp
push edx
push eax
call fcn.0046aa9c
add esp, 0xc
sub dword [ebx + 0x68], esi
sub dword [ebx + 0x64], esi
sub dword [ebx + 0x54], ebp
mov eax, dword [ebx + 0x44]
mov edx, eax
add edx, edx
add edx, dword [ebx + 0x3c]
sub edx, 2
movzx ecx, word [edx]
mov dword [esp], ecx
cmp esi, dword [esp]
ja 0x46b727
mov cx, word [esp]
sub cx, si
jmp 0x46b729
xor ecx, ecx
mov word [edx], cx
dec eax
jne 0x46b710
mov eax, esi
mov edx, eax
add edx, edx
add edx, dword [ebx + 0x38]
sub edx, 2
movzx ecx, word [edx]
mov dword [esp], ecx
cmp esi, dword [esp]
ja 0x46b74f
mov cx, word [esp]
sub cx, si
jmp 0x46b751
xor ecx, ecx
mov word [edx], cx
dec eax
jne 0x46b738
add edi, esi
mov ebp, dword [ebx]
cmp dword [ebp + 4], 0
je 0x46b7b6
mov edx, dword [ebx + 0x30]
mov ecx, edi
add edx, dword [ebx + 0x64]
mov eax, ebp
add edx, dword [ebx + 0x6c]
call fcn.0046b444
add dword [ebx + 0x6c], eax
cmp dword [ebx + 0x6c], 3
jb 0x46b7a1
mov eax, dword [ebx + 0x30]
mov edx, dword [ebx + 0x64]
movzx eax, byte [eax + edx]
mov dword [ebx + 0x40], eax
mov ecx, dword [ebx + 0x50]
shl eax, cl
mov edx, dword [ebx + 0x30]
mov ecx, dword [ebx + 0x64]
movzx edx, byte [edx + ecx + 1]
xor eax, edx
and eax, dword [ebx + 0x4c]
mov dword [ebx + 0x40], eax
cmp dword [ebx + 0x6c], 0x106
jae 0x46b7b6
mov eax, dword [ebx]
cmp dword [eax + 4], 0
jne 0x46b6b2
pop edx
pop ebp
pop edi
pop esi
pop ebx
ret

Function at 0x471a28
Capabilities:
Hash data with crc32

Disassembly:
push ebx
push esi
xor esi, esi
mov ecx, 0x4cfc10
mov eax, esi
mov edx, 8
mov ebx, eax
and ebx, 1
test bl, bl
je 0x471a4a
shr eax, 1
xor eax, 0xedb88320
jmp 0x471a4c
shr eax, 1
dec edx
jne 0x471a38
mov dword [ecx], eax
inc esi
add ecx, 4
cmp esi, 0x100
jne 0x471a31
mov byte [0x4d0010], 1
pop esi
pop ebx
ret
Function at 0x471a68
Capabilities:
Encode data using xor

Disassembly:
push ebx
push esi
push edi
mov edi, ecx
mov esi, edx
mov ebx, eax
cmp byte [0x4d0010], 0
jne 0x471a7f
call fcn.00471a28
mov eax, edi
sub eax, 1
jno 0x471a8b
call fcn.0040326c
test eax, eax
jl 0x471ab1
inc eax
xor edx, edx
xor ecx, ecx
mov cl, byte [esi + edx]
xor ecx, ebx
and ecx, 0xff
mov ecx, dword [ecx*4 + 0x4cfc10]
shr ebx, 8
xor ecx, ebx
mov ebx, ecx
inc edx
dec eax
jne 0x471a92
mov eax, ebx
pop edi
pop esi
pop ebx
ret

Function at 0x47aed8
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffff8
push ebx
push esi
push edi
mov esi, ecx
mov dword [ebp - 8], edx
mov dword [ebp - 4], eax
mov ebx, dword [ebp - 4]
inc ebx
mov eax, dword [ebp + 8]
mov eax, dword [eax - 4]
mov ecx, esi
mov edx, ebx
call fcn.00427d54
cmp ebx, dword [ebp - 8]
jge 0x47af3b
mov eax, dword [ebp + 8]
mov eax, dword [eax - 4]
mov ecx, esi
mov edx, ebx
call fcn.00427f74
mov edi, eax
mov eax, dword [ebp + 8]
mov eax, dword [eax - 4]
mov ecx, esi
mov edx, ebx
call fcn.00427f74
xor edi, eax
push edi
mov eax, dword [ebp + 8]
mov eax, dword [eax - 4]
mov ecx, esi
mov edx, ebx
call fcn.00427fa0
add ebx, 2
cmp ebx, dword [ebp - 8]
jl 0x47af01
pop edi
pop esi
pop ebx
pop ecx
pop ecx
pop ebp
ret

Function at 0x47af44
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffff8
push ebx
push esi
push edi
mov dword [ebp - 8], ecx
mov dword [ebp - 4], edx
mov esi, eax
mov ebx, dword [ebp - 4]
inc ebx
mov eax, dword [ebp + 8]
mov eax, dword [eax - 4]
mov ecx, ebx
mov edx, esi
call fcn.00427d54
cmp ebx, dword [ebp - 8]
jge 0x47afa7
mov eax, dword [ebp + 8]
mov eax, dword [eax - 4]
mov ecx, ebx
mov edx, esi
call fcn.00427f74
mov edi, eax
mov eax, dword [ebp + 8]
mov eax, dword [eax - 4]
mov ecx, ebx
mov edx, esi
call fcn.00427f74
xor edi, eax
push edi
mov eax, dword [ebp + 8]
mov eax, dword [eax - 4]
mov ecx, ebx
mov edx, esi
call fcn.00427fa0
add ebx, 2
cmp ebx, dword [ebp - 8]
jl 0x47af6d
pop edi
pop esi
pop ebx
pop ecx
pop ecx
pop ebp
ret

Function at 0x47e0bc
Capabilities:
Hide graphical window

Disassembly:
push ebx
push esi
mov ebx, eax
mov eax, dword [0x4ced18]
mov eax, dword [eax]
call fcn.0046888c
cmp byte [ebx + 0x290], 0
je 0x47e0f0
cmp byte [ebx + 0x298], 0
je 0x47e0f0
push 0
mov eax, dword [0x4ced18]
mov eax, dword [eax]
mov eax, dword [eax + 0x30]
push eax
call sub.user32.dll_ShowWindow
mov eax, ebx
mov si, 0xffe7
call fcn.00403528
pop esi
pop ebx
ret
Function at 0x47f1a0
Capabilities:
Get hostname

Disassembly:
push ebp
mov ebp, esp
add esp, 0xffffffa8
push ebx
push esi
push edi
xor ebx, ebx
mov dword [ebp - 0x54], ebx
mov dword [ebp - 0x58], ebx
mov dword [ebp - 0xc], ecx
mov dword [ebp - 8], edx
mov dword [ebp - 4], eax
lea eax, [ebp - 0x20]
mov edx, dword [0x4188c0]
call fcn.00404d08
xor eax, eax
push ebp
push 0x47f2f3
push dword fs:[eax]
mov dword fs:[eax], esp
cmp dword [0x4cd244], 0
jne 0x47f1f6
mov ecx, dword [0x4ce958]
mov dl, 1
mov eax, dword [0x407994]
call fcn.0040cdc4
call fcn.00403b7c
lea eax, [ebp - 0x30]
xor ecx, ecx
mov edx, 0x10
call fcn.00402d14
mov eax, dword [ebp - 4]
call fcn.004049cc
mov dword [ebp - 0x2c], eax
mov esi, 0x47f304
lea edi, [ebp - 0x40]
movsd dword es:[edi], dword [esi]
movsd dword es:[edi], dword [esi]
movsd dword es:[edi], dword [esi]
movsd dword es:[edi], dword [esi]
lea eax, [ebp - 0x40]
mov dword [ebp - 0x20], eax
lea eax, [ebp - 0x1c]
call fcn.00405dc4
xor eax, eax
mov dword [ebp - 0x18], eax
mov eax, dword [ebp - 4]
call fcn.004049dc
test eax, eax
jle 0x47f291
mov dword [ebp - 0x14], 0x10
lea eax, [ebp - 0x14]
push eax
lea eax, [ebp - 0x50]
push eax
call sub.kernel32.dll_GetComputerNameA
test eax, eax
je 0x47f288
lea eax, [ebp - 0x54]
mov edx, dword [ebp - 4]
call fcn.004043e4
mov eax, dword [ebp - 0x54]
push eax
lea eax, [ebp - 0x58]
lea edx, [ebp - 0x50]
mov ecx, 0x10
call fcn.004043cc
mov eax, dword [ebp - 0x58]
pop edx
call fcn.00408928
test eax, eax
jne 0x47f288
mov dword [ebp - 0x10], 0x15
jmp 0x47f298
mov dword [ebp - 0x10], 0x10
jmp 0x47f298
mov dword [ebp - 0x10], 0x15
lea eax, [ebp - 0x20]
push eax
push 1
lea eax, [ebp - 0x30]
push eax
mov eax, dword [ebp - 0x10]
push eax
push 0
mov eax, dword [ebp - 8]
push eax
call dword [0x4cd244]
call fcn.0047f0d0
mov eax, dword [ebp - 0x18]
call fcn.0047f0d0
mov eax, dword [ebp - 0xc]
mov edx, dword [ebp - 0x1c]
call fcn.00405ddc
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x47f2fa
lea eax, [ebp - 0x58]
mov edx, 2
call fcn.00404180
lea eax, [ebp - 0x20]
mov edx, dword [0x4188c0]
call fcn.00404dd8
ret
Function at 0x4aa24c
Capabilities:
Persist via run registry key

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffff0
push ebx
push esi
push edi
xor edx, edx
mov dword [ebp - 0xc], edx
mov dword [ebp - 0x10], edx
mov byte [ebp - 1], al
xor eax, eax
push ebp
push 0x4aa338
push dword fs:[eax]
mov dword fs:[eax], esp
mov bl, 1
mov dl, 1
mov eax, dword [0x435e44]
call fcn.00436008
mov dword [ebp - 8], eax
mov edx, 0x80000002
mov eax, dword [ebp - 8]
call fcn.00436138
xor eax, eax
push ebp
push 0x4aa301
push dword fs:[eax]
mov dword fs:[eax], esp
mov cl, 1
mov edx, 0x4aa350
mov eax, dword [ebp - 8]
call fcn.00436208
cmp byte [ebp - 1], 0
je 0x4aa2ea
push 0x4aa388
lea edx, [ebp - 0x10]
mov eax, dword [0x4ced18]
mov eax, dword [eax]
call fcn.0046984c
push dword [ebp - 0x10]
push 0x4aa388
lea eax, [ebp - 0xc]
mov edx, 3
call fcn.004044dc
mov ecx, dword [ebp - 0xc]
mov edx, 0x4aa394
mov eax, dword [ebp - 8]
call fcn.00436400
jmp 0x4aa2f7
mov edx, 0x4aa394
mov eax, dword [ebp - 8]
call fcn.00436340
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
jmp 0x4aa30d
mov eax, dword [ebp - 8]
call fcn.004360ec
mov eax, dword [ebp - 8]
call fcn.0040332c
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x4aa33f
lea eax, [ebp - 0x10]
mov edx, 2
call fcn.00404180
ret

Function at 0x4ab40c
Capabilities:
Get common file path

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffef8
push ebx
xor ecx, ecx
mov dword [ebp - 0x108], ecx
mov ebx, edx
xor edx, edx
push ebp
push 0x4ab48f
push dword fs:[edx]
mov dword fs:[edx], esp
lea edx, [ebp - 4]
push edx
push eax
mov eax, dword [0x4ced18]
mov eax, dword [eax]
mov eax, dword [eax + 0x30]
push eax
call sub.shell32.dll_SHGetSpecialFolderLocation
lea eax, [ebp - 0x104]
push eax
mov eax, dword [ebp - 4]
push eax
call sub.shell32.dll_SHGetPathFromIDListA
lea eax, [ebp - 0x108]
lea edx, [ebp - 0x104]
mov ecx, pe_nt_image_headers32
call fcn.004043cc
mov eax, dword [ebp - 0x108]
mov edx, ebx
call fcn.004089d0
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x4ab496
lea eax, [ebp - 0x108]
call fcn.0040415c
ret
Function at 0x4ab68c
Capabilities:
Create process on windows

Disassembly:
push ebp
mov ebp, esp
mov ecx, 8
push 0
push 0
dec ecx
jne 0x4ab694
push ebx
push esi
push edi
mov dword [ebp - 4], eax
mov eax, dword [ebp - 4]
call fcn.0040460c
xor eax, eax
push ebp
push 0x4ab86c
push dword fs:[eax]
mov dword fs:[eax], esp
mov byte [ebp - 5], 0
lea edx, [ebp - 0x10]
mov eax, dword [ebp - 4]
call fcn.004089d0
cmp dword [ebp - 0x10], 0
je 0x4ab849
lea edx, [ebp - 0x14]
mov eax, dword [ebp - 4]
call fcn.00409574
mov eax, dword [ebp - 0x14]
mov edx, 0x4ab888
call fcn.00404568
jne 0x4ab6f0
mov byte [ebp - 6], 1
jmp 0x4ab6f4
mov byte [ebp - 6], 0
mov eax, dword [0x4d2448]
mov edx, dword [eax]
call dword [edx + 0x14]
test eax, eax
jne 0x4ab73c
lea edx, [ebp - 0x18]
mov eax, 0x16
call fcn.004ab40c
mov eax, dword [ebp - 0x18]
mov cl, 1
mov edx, dword [0x4d2448]
call fcn.004ab49c
lea edx, [ebp - 0x1c]
mov eax, 0xb
call fcn.004ab40c
mov eax, dword [ebp - 0x1c]
mov cl, 1
mov edx, dword [0x4d2448]
call fcn.004ab49c
mov eax, dword [0x4d2448]
mov edx, dword [eax]
call dword [edx + 0x14]
mov esi, eax
sub esi, 1
jno 0x4ab752
call fcn.0040326c
test esi, esi
jl 0x4ab849
inc esi
xor ebx, ebx
lea ecx, [ebp - 0x24]
mov edx, ebx
mov eax, dword [0x4d2448]
mov edi, dword [eax]
call dword [edi + 0xc]
mov eax, dword [ebp - 0x24]
lea edx, [ebp - 0x20]
call fcn.00409530
mov eax, dword [ebp - 0x20]
mov edx, 0x4ab898
call fcn.00404568
jne 0x4ab78e
lea eax, [ebp - 0xc]
call fcn.0040415c
cmp byte [ebp - 6], 0
je 0x4ab7b0
lea ecx, [ebp - 0x28]
mov edx, ebx
mov eax, dword [0x4d2448]
mov edi, dword [eax]
call dword [edi + 0xc]
mov eax, dword [ebp - 0x28]
lea edx, [ebp - 0xc]
call fcn.00409530
jmp 0x4ab7d5
lea ecx, [ebp - 0x30]
mov edx, ebx
mov eax, dword [0x4d2448]
mov edi, dword [eax]
call dword [edi + 0xc]
mov eax, dword [ebp - 0x30]
lea edx, [ebp - 0x2c]
call fcn.004978e8
mov eax, dword [ebp - 0x2c]
lea edx, [ebp - 0xc]
call fcn.00409530
lea edx, [ebp - 0x34]
mov eax, dword [ebp - 0xc]
call fcn.004086ac
mov eax, dword [ebp - 0x34]
push eax
lea edx, [ebp - 0x38]
mov eax, dword [ebp - 4]
call fcn.004086ac
mov edx, dword [ebp - 0x38]
pop eax
call fcn.00404568
jne 0x4ab841
push 5
push 0x4ab8b8
push 0
lea ecx, [ebp - 0x40]
mov edx, ebx
mov eax, dword [0x4d2448]
mov esi, dword [eax]
call dword [esi + 0xc]
mov eax, dword [ebp - 0x40]
lea edx, [ebp - 0x3c]
call fcn.004978e8
mov eax, dword [ebp - 0x3c]
call fcn.0040461c
push eax
push 0x4ab8bc
mov eax, dword [0x4ced18]
mov eax, dword [eax]
mov eax, dword [eax + 0x30]
push eax
call sub.shell32.dll_ShellExecuteA
mov byte [ebp - 5], 1
jmp 0x4ab849
inc ebx
dec esi
jne 0x4ab75d
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x4ab873
lea eax, [ebp - 0x40]
mov edx, 0xe
call fcn.00404180
lea eax, [ebp - 4]
call fcn.0040415c
ret
Function at 0x4c9234
Capabilities:
Create process on windows

Disassembly:
mov eax, dword [0x4ce9bc]
mov eax, dword [eax]
call fcn.004ab68c
test al, al
jne 0x4c92b0
mov eax, dword [0x4ceecc]
mov eax, dword [eax]
mov eax, dword [eax + 0x32c]
xor edx, edx
call fcn.00442130
mov eax, dword [0x4ceecc]
mov eax, dword [eax]
mov eax, dword [eax + 0x328]
mov edx, 0x4c92bc
call fcn.00442324
mov eax, dword [0x4ceecc]
mov eax, dword [eax]
mov edx, dword [eax]
call dword [edx + 0xec]
mov eax, dword [0x4ceecc]
mov eax, dword [eax]
cmp dword [eax + 0xc], 1
jne 0x4c92b0
push 1
push 0
push 0
mov eax, dword [0x4ced98]
mov eax, dword [eax]
call fcn.0040461c
push eax
push 0
mov eax, dword [0x4ced18]
mov eax, dword [eax]
mov eax, dword [eax + 0x30]
push eax
call sub.shell32.dll_ShellExecuteA
ret

Function at 0x4c937c
Capabilities:
Read file via mapping

Disassembly:
push 0x4c941c
push 0
push 0xf001f
call sub.kernel32.dll_OpenFileMappingA
mov dword [0x4d2584], eax
cmp dword [0x4d2584], 0
jne 0x4c93ec
push 0x4c941c
push 4
push 0
push 4
push 0
push 0xffffffffffffffff
call sub.kernel32.dll_CreateFileMappingA
mov dword [0x4d2584], eax
push 0
push 0
push 0
push 6
mov eax, dword [0x4d2584]
push eax
call sub.kernel32.dll_MapViewOfFile
mov dword [0x4d2588], eax
cmp dword [0x4d2588], 0
jne 0x4c93e1
mov eax, dword [0x4d2584]
push eax
call sub.kernel32.dll_CloseHandle
ret
mov eax, dword [0x4d2588]
xor edx, edx
mov dword [eax], edx
jmp 0x4c9418
push 0
push 0
push 0
push 6
mov eax, dword [0x4d2584]
push eax
call sub.kernel32.dll_MapViewOfFile
mov dword [0x4d2588], eax
cmp dword [0x4d2588], 0
jne 0x4c9418
mov eax, dword [0x4d2584]
push eax
call sub.kernel32.dll_CloseHandle
ret
Function at 0x401820
Capabilities:
Read file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x20
mov eax, dword [0x424008]
xor eax, ebp
mov dword [ebp - 4], eax
mov eax, dword [ebp + 8]
push esi
push 0
push 0
push 3
push 0
push 1
push 0x80000000
push eax
call dword [sym.imp.KERNEL32.dll_CreateFileA]
mov esi, eax
mov dword [ebp - 0x18], esi
cmp esi, 0xffffffff
jne 0x401867
xor eax, eax
pop esi
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.0040a88f
mov esp, ebp
pop ebp
ret 4
push edi
push 0
lea eax, [ebp - 0x1c]
push eax
push 0xe
lea eax, [ebp - 0x14]
push eax
push esi
call dword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
jne 0x40189c
push esi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
xor edi, edi
mov eax, edi
pop edi
pop esi
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.0040a88f
mov esp, ebp
pop ebp
ret 4
cmp dword [ebp - 0x1c], 0xe
jne 0x40187f
mov eax, 0x4d42
cmp word [ebp - 0x14], ax
jne 0x40187f
push ebx
mov ebx, dword [ebp - 0x12]
add ebx, 0xfffffff2
push ebx
push 0x42
call dword [sym.imp.KERNEL32.dll_GlobalAlloc]
push eax
call dword [sym.imp.KERNEL32.dll_GlobalLock]
mov edi, eax
test edi, edi
jne 0x4018d3
push esi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
jmp 0x40194b
xor eax, eax
mov dword [ebp - 0x20], eax
test ebx, ebx
je 0x40191c
mov ecx, 0x4000
cmp ebx, 0x4000
mov esi, ebx
push 0
cmova esi, ecx
lea ecx, [ebp - 0x1c]
push ecx
push esi
add eax, edi
push eax
push dword [ebp - 0x18]
call dword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
je 0x401962
cmp esi, dword [ebp - 0x1c]
jne 0x401962
mov eax, dword [ebp - 0x20]
mov ecx, 0x4000
add eax, esi
mov dword [ebp - 0x20], eax
sub ebx, esi
jne 0x4018e1
mov esi, dword [ebp - 0x18]
push esi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov eax, dword [edi]
cmp eax, 0xc
jb 0x401931
jbe 0x40194d
cmp eax, 0x10
jae 0x40194d
mov esi, dword [sym.imp.KERNEL32.dll_GlobalHandle]
push edi
call esi
push eax
call dword [sym.imp.KERNEL32.dll_GlobalUnlock]
push edi
call esi
push eax
call dword [sym.imp.KERNEL32.dll_GlobalFree]
xor edi, edi
mov ecx, dword [ebp - 4]
mov eax, edi
pop ebx
pop edi
xor ecx, ebp
pop esi
call fcn.0040a88f
mov esp, ebp
pop ebp
ret 4
push dword [ebp - 0x18]
call dword [sym.imp.KERNEL32.dll_CloseHandle]
jmp 0x401931
Function at 0x401970
Capabilities:
Extract resource via kernel32 functions

Disassembly:
push ebp
mov ebp, esp
sub esp, 8
push ebx
push esi
push edi
mov edi, dword [ebp + 8]
xor ebx, ebx
mov eax, edi
mov dword [ebp - 4], ecx
push 2
shr eax, 0x10
push edi
push ebx
test eax, eax
je 0x4019b1
call dword [sym.imp.KERNEL32.dll_FindResourceA]
mov esi, eax
test esi, esi
jne 0x4019bd
push edi
call fcn.00401820
mov edi, eax
test edi, edi
jne 0x4019d2
xor al, al
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 0xc
call dword [sym.imp.KERNEL32.dll_FindResourceA]
mov esi, eax
test esi, esi
je 0x4019a6
push esi
push 0
call dword [sym.imp.KERNEL32.dll_LoadResource]
mov ebx, eax
push ebx
call dword [sym.imp.KERNEL32.dll_LockResource]
mov edi, dword [ebp + 8]
mov ecx, dword [ebp - 4]
sub esp, 8
push eax
push dword [ebp + 8]
call fcn.00401690
test eax, eax
jne 0x401a20
test esi, esi
je 0x4019fb
push ebx
call dword [sym.imp.KERNEL32.dll_FreeResource]
xor al, al
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 0xc
mov esi, dword [sym.imp.KERNEL32.dll_GlobalHandle]
push edi
call esi
push eax
call dword [sym.imp.KERNEL32.dll_GlobalUnlock]
push edi
call esi
push eax
call dword [sym.imp.KERNEL32.dll_GlobalFree]
xor al, al
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 0xc
test esi, esi
je 0x401a36
push ebx
call dword [sym.imp.KERNEL32.dll_FreeResource]
mov al, 1
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 0xc
mov esi, dword [sym.imp.KERNEL32.dll_GlobalHandle]
push edi
call esi
push eax
call dword [sym.imp.KERNEL32.dll_GlobalUnlock]
push edi
call esi
push eax
call dword [sym.imp.KERNEL32.dll_GlobalFree]
pop edi
pop esi
mov al, 1
pop ebx
mov esp, ebp
pop ebp
ret 0xc
Function at 0x403e40
Capabilities:
Read .ini file
Set registry value

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x910
mov eax, dword [0x424008]
xor eax, ebp
mov dword [ebp - 4], eax
push esi
mov esi, dword [sym.imp.USER32.dll_wsprintfA]
lea eax, [ebp - 0x108]
push 0x425750
push 0x425548
push 0x425414
push str._s_s_s
push eax
call esi
add esp, 0x14
lea eax, [ebp - 0x108]
push str..ini
push eax
call dword [sym.imp.SHLWAPI.dll_PathRenameExtensionA]
lea eax, [ebp - 0x108]
push eax
push 0x400
lea eax, [ebp - 0x508]
push eax
push 0x420874
push str.GUID
push str.INSTALL
call dword [sym.imp.KERNEL32.dll_GetPrivateProfileStringA]
lea eax, [ebp - 0x508]
push eax
push str.SOFTWAREMicrosoftWindowsCurrentVersionUninstall
lea eax, [ebp - 0x908]
push 0x42086c
push eax
call esi
add esp, 0x10
lea eax, [ebp - 0x910]
push eax
lea eax, [ebp - 0x90c]
push eax
push 0
push 0xf003f
push 0
push 0x4209af
push 0
lea eax, [ebp - 0x908]
push eax
push 0x80000002
call dword [sym.imp.ADVAPI32.dll_RegCreateKeyExA]
test eax, eax
je 0x403f2a
push 0x30
push 0x42564c
push 0x420e58
push 0
call dword [sym.imp.USER32.dll_MessageBoxA]
xor eax, eax
pop esi
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.0040a88f
mov esp, ebp
pop ebp
ret
push ebx
push edi
mov edi, dword [sym.imp.KERNEL32.dll_lstrlenA]
push 0x42564c
call edi
mov ebx, dword [sym.imp.ADVAPI32.dll_RegSetValueExA]
inc eax
push eax
push 0x42564c
push 1
push 0
push str.DisplayName
push dword [ebp - 0x90c]
call ebx
push str.Setup.exe
push 0x425854
lea eax, [ebp - 0x508]
push str._s_s_Del
push eax
call esi
add esp, 0x10
lea eax, [ebp - 0x508]
push eax
call edi
inc eax
push eax
lea eax, [ebp - 0x508]
push eax
push 1
push 0
push str.UninstallString
push dword [ebp - 0x90c]
call ebx
push 0x425750
push 0x425854
lea eax, [ebp - 0x508]
push 0x42086c
push eax
call esi
add esp, 0x10
lea eax, [ebp - 0x508]
push eax
call edi
inc eax
push eax
lea eax, [ebp - 0x508]
push eax
push 1
push 0
push str.DisplayIcon
push dword [ebp - 0x90c]
call ebx
cmp byte [0x425958], 0
lea eax, [ebp - 0x508]
push 0x425548
je 0x403ff9
push 0x425958
push str._s__s
push eax
call esi
add esp, 0x10
jmp 0x404004
push 0x420ecc
push eax
call esi
add esp, 0xc
lea eax, [ebp - 0x508]
push eax
call edi
inc eax
push eax
lea eax, [ebp - 0x508]
push eax
push 1
push 0
push str.Publisher
push dword [ebp - 0x90c]
call ebx
push dword [ebp - 0x90c]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov ecx, dword [ebp - 4]
mov eax, 1
pop edi
pop ebx
xor ecx, ebp
pop esi
call fcn.0040a88f
mov esp, ebp
pop ebp
ret