joyce8/EMBER2024-capa huggingface dataset:
Function at 0x104b4dcf
Capabilities:
Log keystrokes via polling

Disassembly:
push ebp
mov ebp, esp
push ecx
push ebx
push esi
mov esi, dword [ebp + 8]
xor ebx, ebx
push edi
mov edi, ecx
mov ecx, 0x104
mov eax, dword [esi + 4]
cmp eax, ecx
ja 0x104b4f56
je 0x104b4f7d
sub eax, 0xa1
je 0x104b4f7d
sub eax, 1
je 0x104b4f7d
dec eax
sub eax, 1
je 0x104b4f7d
sub eax, 1
je 0x104b4f7d
dec eax
sub eax, 1
je 0x104b4f7d
sub eax, 1
je 0x104b4f7d
sub eax, 0x58
jne 0x104b4fbb
cmp dword [edi + 0xc0], 0xffffffff
je 0x104b4f7d
push 0x11
call dword [sym.imp.USER32.dll_GetAsyncKeyState]
test ax, ax
jns 0x104b4f7d
mov eax, dword [esi + 8]
sub eax, 0x21
je 0x104b4eab
sub eax, 1
jne 0x104b4f7d
mov eax, dword [edi + 0xc0]
lea ebx, [eax + 1]
jmp 0x104b4e9a
mov eax, ebx
cdq
idiv ecx
mov eax, dword [edi]
mov ecx, edx
mov dword [ebp - 4], ecx
push ecx
mov esi, dword [eax + 0x27c]
mov ecx, esi
call dword [0x1054c9a0]
mov ecx, edi
call esi
test eax, eax
jne 0x104b4ef7
mov eax, dword [edi + 0xc0]
inc ebx
mov ecx, dword [edi + 0xbc]
add eax, ecx
cmp ebx, eax
jl 0x104b4e70
jmp 0x104b4fd5
mov ecx, dword [edi + 0xc0]
lea ebx, [ecx - 1]
add ebx, dword [edi + 0xbc]
cmp ebx, ecx
jle 0x104b4fd5
mov eax, ebx
cdq
idiv dword [edi + 0xbc]
mov eax, dword [edi]
mov ecx, edx
mov dword [ebp - 4], ecx
push ecx
mov esi, dword [eax + 0x27c]
mov ecx, esi
call dword [0x1054c9a0]
mov ecx, edi
call esi
test eax, eax
jne 0x104b4ef7
dec ebx
cmp ebx, dword [edi + 0xc0]
jg 0x104b4ec2
jmp 0x104b4fd5
mov eax, dword [edi]
push dword [ebp - 4]
mov dword [edi + 0x24c], 1
mov esi, dword [eax + 0x214]
mov ecx, esi
call dword [0x1054c9a0]
mov ecx, edi
call esi
mov eax, dword [edi]
mov esi, dword [eax + 0x210]
mov ecx, esi
call dword [0x1054c9a0]
mov ecx, edi
call esi
mov ecx, eax
call fcn.103f381b
mov eax, dword [edi]
push dword [edi + 0xc0]
mov esi, dword [eax + 0x270]
mov ecx, esi
call dword [0x1054c9a0]
mov ecx, edi
call esi
and dword [edi + 0x24c], 0
jmp 0x104b4fd5
sub eax, 0x200
je 0x104b4f7d
sub eax, 1
je 0x104b4f7d
sub eax, 1
je 0x104b4f7d
dec eax
sub eax, 1
je 0x104b4f7d
sub eax, 1
je 0x104b4f7d
dec eax
sub eax, 1
je 0x104b4f7d
sub eax, 1
jne 0x104b4fbb
mov eax, dword [edi + 0xfc]
test eax, eax
je 0x104b4f9c
cmp dword [eax + 0x20], ebx
je 0x104b4f9c
push esi
push ebx
push 0x407
push dword [eax + 0x20]
call dword [sym.imp.USER32.dll_SendMessageW]
mov eax, dword [edi + 0xf8]
test eax, eax
je 0x104b4fbb
cmp dword [eax + 0x20], ebx
je 0x104b4fbb
push esi
push ebx
push 0x407
push dword [eax + 0x20]
call dword [sym.imp.USER32.dll_SendMessageW]
cmp dword [esi + 4], 0x203
jne 0x104b4fda
lea eax, [edi + 0x2250]
test eax, eax
je 0x104b4fd1
mov ebx, dword [eax + 0x20]
cmp dword [esi], ebx
jne 0x104b4fda
xor eax, eax
inc eax
jmp 0x104b4fe2
push esi
mov ecx, edi
call fcn.10444825
pop edi
pop esi
pop ebx
leave
ret 4
Function at 0x104e0056
Capabilities:
Log keystrokes via polling
Open clipboard
Write clipboard data

Disassembly:
push 4
mov eax, 0x1053c785
call fcn.1051dda5
mov edi, ecx
mov ebx, dword [ebp + 8]
cmp dword [ebx + 4], 0x100
jne 0x104e013d
mov esi, dword [ebx + 8]
push 0x11
call dword [sym.imp.USER32.dll_GetAsyncKeyState]
bt ax, 0xf
jae 0x104e013d
cmp esi, 0x43
je 0x104e0098
cmp esi, 0x2d
jne 0x104e013d
push dword [edi + 0x20]
call dword [sym.imp.USER32.dll_OpenClipboard]
test eax, eax
je 0x104e013d
call dword [sym.imp.USER32.dll_EmptyClipboard]
lea ecx, [ebp - 0x10]
call fcn.103d3650
movzx eax, byte [edi + 0xe6]
and dword [ebp - 4], 0
push eax
movzx eax, byte [edi + 0xe5]
push eax
movzx eax, byte [edi + 0xe4]
push eax
lea eax, [ebp - 0x10]
push str.RGB__d___d___d_
push eax
call fcn.103d40b0
mov esi, dword [ebp - 0x10]
add esp, 0x14
mov eax, dword [esi - 0xc]
lea eax, [eax*2 + 2]
push eax
push 0x2000
call dword [sym.imp.KERNEL32.dll_GlobalAlloc]
mov dword [ebp - 0x10], eax
test eax, eax
je 0x104e012b
push eax
call dword [sym.imp.KERNEL32.dll_GlobalLock]
test eax, eax
je 0x104e012b
push esi
push eax
call dword [sym.imp.KERNEL32.dll_lstrcpyW]
push dword [ebp - 0x10]
call dword [sym.imp.KERNEL32.dll_GlobalUnlock]
push dword [ebp - 0x10]
push 0xd
call dword [sym.imp.USER32.dll_SetClipboardData]
call dword [sym.imp.USER32.dll_CloseClipboard]
or dword [ebp - 4], 0xffffffff
lea ecx, [esi - 0x10]
call fcn.103d3cf0
push ebx
mov ecx, edi
call fcn.103eb5ff
call fcn.1051dd73
ret 4
Function at 0x104e373c
Capabilities:
Get file system object information

Disassembly:
push 0x6f8
mov eax, 0x10547d6e
call fcn.1051ddd8
mov ebx, ecx
mov ecx, dword [ebp + 0x14]
xor esi, esi
mov edi, dword [ebp + 8]
mov dword [ebp - 0x700], edi
test ecx, ecx
je 0x104e38cd
mov eax, dword [ebp + 0x10]
sub eax, esi
je 0x104e389f
sub eax, 1
je 0x104e37bb
sub eax, 1
je 0x104e3793
sub eax, 1
je 0x104e37bb
push 0x1054cdd8
mov ecx, edi
call fcn.103d4e29
mov eax, edi
call fcn.1051dd87
ret 0x10
push 0x408
push 0x2b4
lea eax, [ebp - 0x6fc]
push eax
push esi
push dword [ecx + 4]
call dword [sym.imp.SHELL32.dll_SHGetFileInfoW]
test eax, eax
je 0x104e377d
lea eax, [ebp - 0x4e8]
push eax
jmp 0x104e3782
lea eax, [ebp - 0x218]
push eax
push dword [ecx + 4]
call dword [sym.imp.SHELL32.dll_SHGetPathFromIDListW]
test eax, eax
je 0x104e377d
push esi
lea eax, [ebp - 0x448]
mov dword [ebp - 0x448], esi
push eax
lea eax, [ebp - 0x218]
mov dword [ebp - 0x444], esi
push eax
mov dword [ebp - 0x440], esi
mov dword [ebp - 0x43c], esi
mov dword [ebp - 0x438], esi
mov dword [ebp - 0x434], esi
call fcn.10496a84
test eax, eax
je 0x104e377d
lea ecx, [ebp - 0x700]
call fcn.103d3650
cmp dword [ebp + 0x10], 1
mov dword [ebp - 4], esi
jne 0x104e3855
test byte [ebp - 0x428], 0x18
jne 0x104e3877
mov eax, dword [ebx]
lea ecx, [ebp - 0x700]
push ecx
push dword [ebp - 0x42c]
mov esi, dword [eax + 0x1a0]
mov ecx, esi
push dword [ebp - 0x430]
call dword [0x1054c9a0]
mov ecx, ebx
call esi
jmp 0x104e3877
mov eax, dword [ebx]
lea ecx, [ebp - 0x700]
push ecx
lea ecx, [ebp - 0x440]
push ecx
mov esi, dword [eax + 0x1a4]
mov ecx, esi
call dword [0x1054c9a0]
mov ecx, ebx
call esi
mov eax, dword [ebp - 0x700]
add eax, 0xfffffff0
push eax
call fcn.103d5621
pop ecx
mov ecx, dword [ebp - 0x700]
add eax, 0x10
mov dword [edi], eax
lea ecx, [ecx - 0x10]
call fcn.103d3cf0
jmp 0x104e3789
push 0x208
push 0x2b4
lea eax, [ebp - 0x6fc]
push eax
push esi
push dword [ecx + 4]
call dword [sym.imp.SHELL32.dll_SHGetFileInfoW]
test eax, eax
je 0x104e377d
lea eax, [ebp - 0x6f0]
jmp 0x104e37b8
call fcn.103e75f7
int3

Function at 0x104e3a45
Capabilities:
Get common file path

Disassembly:
push esi
mov esi, ecx
call fcn.10518e90
call fcn.103eba41
cmp dword [eax + 0x14], 0
jne 0x104e3a60
mov ecx, esi
pop esi
jmp fcn.104e2d4e
pop esi
ret

Function at 0x104e3b35
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.1052e5c4
pop ecx
test eax, eax
jne 0x104e3b77
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.103e3dbf
add esp, 0x18
push dword [ebp + 0x10]
call dword [sym.imp.KERNEL32.dll_GetFileAttributesW]
cmp eax, 0xffffffff
jne 0x104e3b3d
leave
ret
push dword [ebp + 0x10]
push 0
push dword [ebp + 0xc]
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.dll_GetTempFileNameW]
leave
ret
Function at 0x104ff4c4
Capabilities:
Get file system object information

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x2c0
mov eax, dword [0x1059f000]
xor eax, ebp
mov dword [ebp - 4], eax
mov eax, dword [ebp + 0xc]
push esi
mov esi, dword [ebp + 8]
mov dword [ebp - 0x2bc], esi
test eax, eax
je 0x104ff52e
push 0x208
push 0x2b4
lea ecx, [ebp - 0x2b8]
push ecx
push 0
push dword [eax + 4]
call dword [sym.imp.SHELL32.dll_SHGetFileInfoW]
mov ecx, esi
test eax, eax
je 0x104ff513
lea eax, [ebp - 0x2ac]
push eax
jmp 0x104ff518
push 0x10572a10
call fcn.103d4e29
mov ecx, dword [ebp - 4]
mov eax, esi
xor ecx, ebp
pop esi
call fcn.1051d602
leave
ret 8
call fcn.103e75f7
int3

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

Disassembly:
push esi
mov esi, ecx
call fcn.103d2b90
call fcn.103eba41
cmp dword [eax + 0x14], 0
jne 0x104ffa2e
mov ecx, esi
pop esi
jmp fcn.104ff26e
pop esi
ret

Function at 0x105032df
Capabilities:
Extract resource via kernel32 functions
Identify system language via api

Disassembly:
push ebp
mov ebp, esp
push ebx
push esi
push edi
push 0x10503425
mov ecx, 0x1059ec98
call fcn.103f44b1
mov esi, eax
test esi, esi
je 0x1050341a
xor eax, eax
cmp word [esi + 8], ax
jne 0x105033e4
push str.comctl32.dll
call dword [sym.imp.KERNEL32.dll_GetModuleHandleW]
mov ebx, eax
test ebx, ebx
je 0x105033a0
call dword [sym.imp.KERNEL32.dll_GetUserDefaultUILanguage]
mov edi, dword [ebp + 0x10]
mov ecx, 0x3ff
and ax, cx
cmp ax, 0x11
jne 0x10503366
push str.MS_UI_Gothic
call fcn.10503463
pop ecx
test eax, eax
je 0x10503366
mov eax, edi
neg eax
push 0xfc11
sbb eax, eax
and eax, 0xe
add eax, 0x3ee
push eax
push 5
push ebx
call dword [sym.imp.KERNEL32.dll_FindResourceExW]
test eax, eax
jne 0x10503381
neg edi
push 5
sbb edi, edi
and edi, 0xe
add edi, 0x3ee
push edi
push ebx
call dword [sym.imp.KERNEL32.dll_FindResourceW]
test eax, eax
je 0x105033a0
push eax
push ebx
call dword [sym.imp.KERNEL32.dll_LoadResource]
mov ebx, dword [ebp + 0xc]
mov edi, dword [ebp + 8]
test eax, eax
je 0x105033a6
push ebx
push edi
push eax
call fcn.1046e126
add esp, 0xc
jmp 0x105033a6
mov ebx, dword [ebp + 0xc]
mov edi, dword [ebp + 8]
mov eax, dword [edi]
push 2
mov eax, dword [eax - 0xc]
inc eax
push eax
call fcn.103e795c
pop ecx
pop ecx
push eax
push 0x40
call dword [sym.imp.KERNEL32.dll_GlobalAlloc]
mov ecx, eax
mov dword [esi + 4], ecx
test ecx, ecx
je 0x1050341f
mov eax, dword [edi]
push eax
mov eax, dword [eax - 0xc]
inc eax
push eax
push ecx
call fcn.103f4dd4
mov ax, word [ebx]
add esp, 0xc
mov word [esi + 8], ax
xor eax, eax
jmp 0x105033e7
mov ebx, dword [ebp + 0xc]
mov edi, dword [esi + 4]
test edi, edi
je 0x105033f5
push edi
call fcn.10525bc4
pop ecx
mov ecx, dword [ebp + 8]
push eax
push edi
call fcn.103d3a50
movzx ecx, word [esi + 8]
mov edx, 0xffff
xor eax, eax
mov word [ebx], cx
pop edi
cmp cx, dx
pop esi
setne al
pop ebx
pop ebp
ret 0xc
call fcn.103e75f7
call fcn.103e7611
int3
Function at 0x10523098
Capabilities:
Parse pe header

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

Function at 0x10531fb1
Capabilities:
Allocate thread local storage

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push esi
push 0x1057d9c8
push 0x1057d9c0
push str.FlsAlloc
push 0x1f
call fcn.10531e30
mov esi, eax
add esp, 0x10
test esi, esi
je 0x10531fe5
push dword [ebp + 8]
mov ecx, esi
call dword [0x1054c9a0]
call esi
jmp 0x10531feb
call dword [sym.imp.KERNEL32.dll_TlsAlloc]
pop esi
pop ebp
ret 4

Function at 0x1053202f
Capabilities:
Get thread local storage value

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push esi
push 0x1057d9d8
push 0x1057d9d0
push str.FlsGetValue
push 0x21
call fcn.10531e30
mov esi, eax
add esp, 0x10
test esi, esi
je 0x10532066
push dword [ebp + 8]
mov ecx, esi
call dword [0x1054c9a0]
call esi
pop esi
pop ebp
ret 4
pop esi
pop ebp
jmp dword [sym.imp.KERNEL32.dll_TlsGetValue]

Function at 0x1053206e
Capabilities:
Set thread local storage value

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push esi
push 0x1057d9e0
push 0x1057d9d8
push str.FlsSetValue
push 0x22
call fcn.10531e30
mov esi, eax
add esp, 0x10
test esi, esi
je 0x105320a8
push dword [ebp + 0xc]
mov ecx, esi
push dword [ebp + 8]
call dword [0x1054c9a0]
call esi
pop esi
pop ebp
ret 8
pop esi
pop ebp
jmp dword [sym.imp.KERNEL32.dll_TlsSetValue]
Function at 0x105366fa
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 0x10536797
push ebx
push esi
call fcn.105366c3
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.10536657
add esp, 0x24
mov dword [ebp - 4], eax
test eax, eax
jne 0x10536744
push esi
call dword [sym.imp.KERNEL32.dll_FreeEnvironmentStringsW]
xor eax, eax
jmp 0x10536796
push edi
push eax
call fcn.1053071d
mov edi, eax
pop ecx
push ebx
test edi, edi
jne 0x10536764
call fcn.105306e3
pop ecx
push esi
call dword [sym.imp.KERNEL32.dll_FreeEnvironmentStringsW]
xor eax, eax
jmp 0x10536795
push ebx
push dword [ebp - 4]
push edi
push dword [ebp - 8]
push esi
push ebx
push ebx
call fcn.10536657
add esp, 0x20
test eax, eax
jne 0x10536783
push edi
call fcn.105306e3
jmp 0x1053678b
push ebx
call fcn.105306e3
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 0x1053679a
Capabilities:
Query environment variable

Disassembly:
mov edi, edi
push esi
call dword [sym.imp.KERNEL32.dll_GetEnvironmentStringsW]
mov esi, eax
test esi, esi
jne 0x105367ab
pop esi
ret
push ebx
push edi
push esi
call fcn.105366c3
mov ebx, eax
sub ebx, esi
and ebx, 0xfffffffe
push ebx
call fcn.1053071d
mov edi, eax
pop ecx
pop ecx
test edi, edi
je 0x105367d3
push ebx
push esi
push edi
call fcn.1051f3c0
add esp, 0xc
push 0
call fcn.105306e3
pop ecx
push esi
call dword [sym.imp.KERNEL32.dll_FreeEnvironmentStringsW]
mov eax, edi
pop edi
pop ebx
pop esi
ret

Function at 0x10536ba3
Capabilities:
Set environment variable

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
pop ebp
jmp fcn.105367e8

Function at 0x1053c060
Capabilities:
Parse pe header

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

Function at 0x433003
Capabilities:
Encode data using xor
Packed with generic packer

Disassembly:
pushal
nop
nop
mov eax, section..text
nop
nop
mov ebx, 0x40de38
mov ecx, 0x21b00765
nop
nop
nop
test eax, eax
nop
nop
nop
nop
nop
je 0x43304e
nop
xor dword [eax], ecx
nop
nop
nop
nop
nop
nop
nop
nop
inc eax
nop
nop
nop
inc eax
nop
nop
nop
nop
nop
nop
inc eax
nop
nop
nop
nop
nop
nop
nop
inc eax
nop
nop
nop
nop
cmp eax, ebx
jne 0x433024
nop
nop
nop
nop
nop
mov eax, section..data
mov ebx, 0x4304d8
nop
nop
mov ecx, 0x1a24461b
nop
nop
nop
nop
test eax, eax
je 0x433084
nop
nop
nop
nop
nop
nop
nop
nop
xor dword [eax], ecx
nop
nop
add eax, 4
nop
nop
cmp eax, ebx
nop
nop
nop
jne 0x43306c
nop
nop
nop
nop
nop
nop
popal
nop
nop
nop
jmp 0x431219
Function at 0x405b70
Capabilities:
Terminate process

Disassembly:
cmp ecx, dword [0x44ba78]
jne 0x405b7a
repz ret
jmp fcn.0040b22c

Function at 0x40cf05
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.00406efa
and dword [ebp - 4], 0
cmp dword [0x451afc], 0
mov ebx, eax
jne 0x40cfb6
push 0x402468
call dword [sym.imp.KERNEL32.dll_LoadLibraryA]
mov edi, eax
test edi, edi
je 0x40d067
mov esi, dword [sym.imp.KERNEL32.dll_GetProcAddress]
push 0x40245c
push edi
call esi
test eax, eax
je 0x40d067
push eax
call fcn.00406e88
mov dword [esp], 0x40244c
push edi
mov dword [0x451afc], eax
call esi
push eax
call fcn.00406e88
mov dword [esp], 0x402438
push edi
mov dword [0x451b00], eax
call esi
push eax
call fcn.00406e88
mov dword [esp], 0x40241c
push edi
mov dword [0x451b04], eax
call esi
push eax
call fcn.00406e88
pop ecx
mov dword [0x451b0c], eax
test eax, eax
je 0x40cfb6
push 0x402404
push edi
call esi
push eax
call fcn.00406e88
pop ecx
mov dword [0x451b08], eax
mov eax, dword [0x451b08]
cmp eax, ebx
je 0x40d00e
cmp dword [0x451b0c], ebx
je 0x40d00e
push eax
call fcn.00406f03
push dword [0x451b0c]
mov esi, eax
call fcn.00406f03
pop ecx
pop ecx
mov edi, eax
test esi, esi
je 0x40d00e
test edi, edi
je 0x40d00e
call esi
test eax, eax
je 0x40d005
lea ecx, [ebp - 8]
push ecx
push 0xc
lea ecx, [ebp - 0x14]
push ecx
push 1
push eax
call edi
test eax, eax
je 0x40d005
test byte [ebp - 0xc], 1
jne 0x40d00e
or dword [ebp + 0x10], 0x200000
jmp 0x40d047
mov eax, dword [0x451b00]
cmp eax, ebx
je 0x40d047
push eax
call fcn.00406f03
pop ecx
test eax, eax
je 0x40d047
call eax
mov dword [ebp - 4], eax
test eax, eax
je 0x40d047
mov eax, dword [0x451b04]
cmp eax, ebx
je 0x40d047
push eax
call fcn.00406f03
pop ecx
test eax, eax
je 0x40d047
push dword [ebp - 4]
call eax
mov dword [ebp - 4], eax
push dword [0x451afc]
call fcn.00406f03
pop ecx
test eax, eax
je 0x40d067
push dword [ebp + 0x10]
push dword [ebp + 0xc]
push dword [ebp + 8]
push dword [ebp - 4]
call eax
jmp 0x40d069
xor eax, eax
pop edi
pop esi
pop ebx
leave
ret

Function at 0x42e000
Capabilities:
Encode data using xor
Packed with generic packer

Disassembly:
pushal
nop
nop
nop
nop
nop
nop
mov eax, section..text
nop
mov ebx, 0x407ef8
mov ecx, 0x4b103773
nop
nop
nop
nop
nop
test eax, eax
je 0x42e04e
nop
nop
nop
nop
xor dword [eax], ecx
nop
nop
nop
nop
nop
nop
inc eax
nop
nop
nop
nop
nop
nop
nop
inc eax
nop
inc eax
nop
nop
nop
nop
nop
nop
inc eax
nop
nop
nop
nop
nop
nop
nop
cmp eax, ebx
nop
nop
jne 0x42e024
nop
nop
nop
mov eax, section..data
nop
nop
mov ebx, 0x42cd70
mov ecx, 0xc0f260c
nop
nop
nop
test eax, eax
nop
nop
nop
nop
nop
je 0x42e084
nop
xor dword [eax], ecx
nop
nop
nop
nop
nop
nop
nop
add eax, 4
nop
cmp eax, ebx
nop
nop
nop
nop
nop
nop
nop
jne 0x42e06c
nop
nop
nop
nop
popal
nop
jmp 0x401219
Function at 0xb9b370
Capabilities:
Extract resource via kernel32 functions

Disassembly:
mov eax, dword [esp + 4]
push ebx
push esi
push edi
push 0x1a
push eax
push 0
call dword [sym.imp.KERNEL32.dll_FindResourceW]
mov esi, eax
test esi, esi
jne 0xb9b38e
pop edi
pop esi
xor al, al
pop ebx
ret
push esi
push 0
call dword [sym.imp.KERNEL32.dll_LoadResource]
push esi
push 0
mov edi, eax
call dword [sym.imp.KERNEL32.dll_SizeofResource]
push edi
mov ebx, eax
call dword [sym.imp.KERNEL32.dll_LockResource]
mov ecx, dword [esp + 0x14]
push 0xbc4074
push ecx
mov edi, eax
call fcn.00baf198
mov esi, eax
add esp, 8
test esi, esi
jne 0xb9b3cb
pop edi
pop esi
xor al, al
pop ebx
ret
push esi
push ebx
push 1
push edi
call fcn.00baf02e
push esi
call fcn.00baefb1
add esp, 0x14
mov al, 1
pop edi
pop esi
pop ebx
ret
Function at 0xb9e850
Capabilities:
Query or enumerate registry value

Disassembly:
mov ecx, dword [esp + 4]
sub esp, 0x218
lea eax, [esp]
push ebp
push esi
push edi
mov edi, dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
push eax
push 0x20019
push 0
push ecx
push SysReAllocString
call edi
test eax, eax
jne 0xb9e8ae
mov ecx, dword [esp + 0xc]
mov ebp, dword [sym.imp.ADVAPI32.dll_RegQueryValueW]
lea edx, [esp + 0x10]
lea eax, [esp + 0x1c]
push edx
push eax
push 0xbc9720
push ecx
mov dword [esp + 0x20], 0x104
call ebp
test eax, eax
je 0xb9e8ba
mov edx, dword [esp + 0xc]
push edx
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
xor eax, eax
pop edi
pop esi
pop ebp
add esp, 0x218
ret
mov eax, dword [esp + 0xc]
mov esi, dword [sym.imp.ADVAPI32.dll_RegCloseKey]
push eax
call esi
lea ecx, [esp + 0x1c]
push str.DefaultIcon
push ecx
call fcn.00baf1e1
add esp, 8
lea edx, [esp + 0xc]
lea eax, [esp + 0x1c]
push edx
push 0x20019
push 0
push eax
push SysReAllocString
call edi
test eax, eax
jne 0xb9e8ae
mov eax, dword [esp + 0xc]
lea ecx, [esp + 0x10]
lea edx, [esp + 0x1c]
push ecx
push edx
push 0xbc9720
push eax
mov dword [esp + 0x20], 0x104
call ebp
test eax, eax
je 0xb9e92a
mov ecx, dword [esp + 0xc]
push ecx
call esi
pop edi
pop esi
xor eax, eax
pop ebp
add esp, 0x218
ret
mov edx, dword [esp + 0xc]
push edx
call esi
lea eax, [esp + 0x1c]
push 0x2c
push eax
call fcn.00bb0082
xor esi, esi
add esp, 8
cmp eax, esi
je 0xb9e957
mov word [eax], si
add eax, 2
push eax
call fcn.00bb0030
add esp, 4
jmp 0xb9e959
xor eax, eax
lea ecx, [esp + 0x18]
push 1
lea edx, [esp + 0x18]
push ecx
push edx
push eax
lea eax, [esp + 0x2c]
mov dword [esp + 0x24], esi
push eax
mov dword [esp + 0x2c], esi
call dword [sym.imp.SHELL32.dll_ExtractIconExW]
test eax, eax
je 0xb9e8ae
mov al, byte [esp + 0x22c]
test al, al
mov eax, dword [esp + 0x14]
jne 0xb9e8b0
mov eax, dword [esp + 0x18]
pop edi
pop esi
pop ebp
add esp, 0x218
ret

Function at 0xb9eff0
Capabilities:
Execute syscall

Disassembly:
push ebp
mov ebp, esp
push ecx
mov eax, dword [ebp + 8]
lea edx, [ebp + 0xc]
int 0x2e
mov dword [ebp - 4], eax
mov eax, dword [ebp - 4]
mov esp, ebp
pop ebp
ret
Function at 0xb9f080
Capabilities:
Get common file path

Disassembly:
sub esp, 0x43c
push esi
mov esi, dword [esp + 0x444]
cmp word [esi + 2], 0x3a
je 0xb9f0c4
lea eax, [esp + 0x30]
push eax
push 0x104
call dword [sym.imp.KERNEL32.dll_GetCurrentDirectoryW]
lea ecx, [esp + 0x30]
push 0xbc4458
push ecx
call fcn.00baf1e1
lea edx, [esp + 0x38]
push esi
push edx
call fcn.00baf1e1
add esp, 0x10
jmp 0xb9f0d2
lea eax, [esp + 0x30]
push esi
push eax
call fcn.00baf20b
add esp, 8
lea ecx, [esp + 0x30]
lea edx, [esp + 0x238]
push ecx
push str.___s
push edx
call fcn.00baedff
lea eax, [esp + 0x244]
lea ecx, [esp + 0x2c]
push eax
push ecx
call fcn.00b9f050
mov eax, dword [0xbc9728]
xor esi, esi
add esp, 0x14
lea edx, [esp + 0x20]
cmp eax, esi
mov dword [esp + 8], 0x18
mov dword [esp + 0xc], esi
mov dword [esp + 0x14], 0x40
mov dword [esp + 0x10], edx
mov dword [esp + 0x18], esi
mov dword [esp + 0x1c], esi
jne 0xb9f13b
push esi
call fcn.00b9efb0
add esp, 4
mov dword [0xbc9728], eax
mov ecx, dword [esp + 0x454]
cmp ecx, 3
jne 0xb9f14c
mov ecx, 1
mov edx, dword [esp + 0x458]
push esi
push esi
push 0x20
push ecx
mov ecx, dword [esp + 0x45c]
push ecx
push edx
lea ecx, [esp + 0x40]
push esi
push ecx
mov ecx, dword [esp + 0x468]
lea edx, [esp + 0x28]
or ecx, 0x100000
push edx
lea edx, [esp + 0x28]
push ecx
push edx
push eax
call fcn.00b9eff0
mov ecx, dword [esp + 0x34]
add esp, 0x30
neg eax
sbb eax, eax
pop esi
not eax
and eax, ecx
add esp, 0x43c
ret

Function at 0xba2440
Capabilities:
Enumerate pe sections

Disassembly:
mov ecx, dword [esp + 8]
push ebx
mov ebx, dword [ecx + 0x88]
test ebx, ebx
je 0xba24b7
push esi
xor eax, eax
mov ax, word [ecx + 0x14]
xor esi, esi
mov si, word [ecx + 6]
push edi
xor edi, edi
lea eax, [eax + ecx + 0x18]
test esi, esi
jbe 0xba248e
mov ecx, dword [eax + 8]
test ecx, ecx
jne 0xba2471
mov ecx, dword [eax + 0x10]
mov edx, dword [eax + 0xc]
cmp ebx, edx
jb 0xba247e
add edx, ecx
cmp ebx, edx
jb 0xba248a
inc edi
add eax, 0x28
cmp edi, esi
jb 0xba2467
xor ecx, ecx
jmp 0xba24a2
test eax, eax
jne 0xba2492
xor ecx, ecx
jmp 0xba24a2
mov ecx, dword [eax + 0x14]
mov esi, dword [eax + 0xc]
mov eax, dword [esp + 0x10]
sub ecx, esi
add ecx, ebx
add ecx, eax
mov edx, dword [esp + 0x18]
push edx
push 0
push 0
push ecx
push ecx
call fcn.00ba23c0
add esp, 0x14
pop edi
pop esi
pop ebx
ret
Function at 0xba28f0
Capabilities:
Get file size
Read file via mapping

Disassembly:
push ebx
mov eax, dword [esp + 8]
push ebp
push esi
push edi
push 0
push 0x80
push 3
push 0
push 1
push SysReAllocString
push eax
xor bl, bl
call dword [sym.imp.KERNEL32.dll_CreateFileW]
mov edi, eax
cmp edi, 0xffffffff
jne 0xba2921
pop edi
pop esi
pop ebp
xor al, al
pop ebx
ret
push 0
push 0
push 0
push 2
push 0
push edi
call dword [sym.imp.KERNEL32.dll_CreateFileMappingW]
mov ebp, eax
test ebp, ebp
jne 0xba2946
push edi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
pop edi
pop esi
pop ebp
xor al, al
pop ebx
ret
push 0
push 0
push 0
push 4
push ebp
call dword [sym.imp.KERNEL32.dll_MapViewOfFile]
mov esi, eax
test esi, esi
jne 0xba296e
mov esi, dword [sym.imp.KERNEL32.dll_CloseHandle]
push ebp
call esi
push edi
call esi
pop edi
pop esi
pop ebp
xor al, al
pop ebx
ret
push 0
push edi
call dword [sym.imp.KERNEL32.dll_GetFileSize]
mov ecx, dword [esp + 0x18]
mov dword [ecx], esi
mov dword [ecx + 4], eax
cmp word [esi], 0x5a4d
jne 0xba2993
push ecx
push esi
call fcn.00ba24c0
add esp, 8
mov bl, al
push esi
call dword [sym.imp.KERNEL32.dll_UnmapViewOfFile]
mov esi, dword [sym.imp.KERNEL32.dll_CloseHandle]
push ebp
call esi
push edi
call esi
pop edi
pop esi
mov al, bl
pop ebp
pop ebx
ret