joyce8/EMBER2024-capa huggingface dataset:
Function at 0x407af0
Capabilities:
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffde4
push ebx
mov ebx, edx
mov dword [ebp - 4], eax
mov eax, dword [ebp - 4]
call fcn.00405f44
xor eax, eax
push ebp
push 0x407d15
push dword fs:[eax]
mov dword fs:[eax], esp
cmp dword [ebp - 4], 0
jne 0x407b30
push 0x105
lea eax, [ebp - 0x21a]
push eax
push 0
call sub.kernel32.dll_GetModuleFileNameW
jmp 0x407b4a
push 0x105
mov eax, dword [ebp - 4]
call fcn.00406524
push eax
lea eax, [ebp - 0x21a]
push eax
call sub.kernel32.dll_lstrcpynW
cmp word [ebp - 0x21a], 0
je 0x407cff
xor eax, eax
mov dword [ebp - 8], eax
lea eax, [ebp - 0xc]
push eax
push 0xf0019
push 0
push 0x407d24
push 0x80000001
call sub.advapi32.dll_RegOpenKeyExW
test eax, eax
je 0x407c19
lea eax, [ebp - 0xc]
push eax
push 0xf0019
push 0
push 0x407d24
push 0x80000002
call sub.advapi32.dll_RegOpenKeyExW
test eax, eax
je 0x407c19
lea eax, [ebp - 0xc]
push eax
push 0xf0019
push 0
push 0x407d60
push 0x80000001
call sub.advapi32.dll_RegOpenKeyExW
test eax, eax
je 0x407c19
lea eax, [ebp - 0xc]
push eax
push 0xf0019
push 0
push 0x407d60
push 0x80000002
call sub.advapi32.dll_RegOpenKeyExW
test eax, eax
je 0x407c19
lea eax, [ebp - 0xc]
push eax
push 0xf0019
push 0
push 0x407d94
push 0x80000001
call sub.advapi32.dll_RegOpenKeyExW
test eax, eax
je 0x407c19
lea eax, [ebp - 0xc]
push eax
push 0xf0019
push 0
push 0x407dc8
push 0x80000001
call sub.advapi32.dll_RegOpenKeyExW
test eax, eax
jne 0x407cff
xor eax, eax
push ebp
push 0x407cf8
push dword fs:[eax]
mov dword fs:[eax], esp
lea eax, [ebp - 0x21a]
mov edx, 0x105
call fcn.004078fc
lea eax, [ebp - 0x10]
push eax
push 0
push 0
push 0
lea eax, [ebp - 0x21a]
push eax
mov eax, dword [ebp - 0xc]
push eax
call sub.advapi32.dll_RegQueryValueExW
test eax, eax
jne 0x407c88
mov eax, dword [ebp - 0x10]
call fcn.00403b94
mov dword [ebp - 8], eax
lea eax, [ebp - 0x10]
push eax
mov eax, dword [ebp - 8]
push eax
push 0
push 0
lea eax, [ebp - 0x21a]
push eax
mov eax, dword [ebp - 0xc]
push eax
call sub.advapi32.dll_RegQueryValueExW
mov eax, ebx
mov edx, dword [ebp - 8]
call fcn.00406574
jmp 0x407cd3
lea eax, [ebp - 0x10]
push eax
push 0
push 0
push 0
push 0x407e08
mov eax, dword [ebp - 0xc]
push eax
call sub.advapi32.dll_RegQueryValueExW
test eax, eax
jne 0x407cd3
mov eax, dword [ebp - 0x10]
call fcn.00403b94
mov dword [ebp - 8], eax
lea eax, [ebp - 0x10]
push eax
mov eax, dword [ebp - 8]
push eax
push 0
push 0
push 0x407e08
mov eax, dword [ebp - 0xc]
push eax
call sub.advapi32.dll_RegQueryValueExW
mov eax, ebx
mov edx, dword [ebp - 8]
call fcn.00406574
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x407cff
cmp dword [ebp - 8], 0
je 0x407cee
mov eax, dword [ebp - 8]
call fcn.00403bb0
mov eax, dword [ebp - 0xc]
push eax
call sub.advapi32.dll_RegCloseKey
ret
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x407d1c
lea eax, [ebp - 4]
call fcn.00405e60
ret
Function at 0x408054
Capabilities:
Get geographical location
Identify system language via api

Disassembly:
push ebp
mov ebp, esp
add esp, 0xffffffec
push ebx
xor ecx, ecx
mov dword [ebp - 0x14], ecx
mov dword [ebp - 0x10], ecx
mov ebx, edx
mov dword [ebp - 4], eax
mov eax, dword [ebp - 4]
call fcn.00405f44
xor eax, eax
push ebp
push 0x408114
push dword fs:[eax]
mov dword fs:[eax], esp
push 8
lea eax, [ebp - 0xc]
push eax
push 3
call sub.kernel32.dll_GetUserDefaultUILanguage
movzx eax, ax
push eax
call sub.kernel32.dll_GetLocaleInfoW
lea eax, [ebp - 0x10]
lea edx, [ebp - 0xc]
mov ecx, 4
call fcn.004065b0
mov ecx, dword [ebp - 0x10]
mov eax, ebx
mov edx, dword [ebp - 4]
call fcn.004066c8
mov eax, dword [ebx]
call fcn.00407f1c
test al, al
jne 0x4080f1
mov word [ebp - 8], 0
lea eax, [ebp - 0x14]
lea edx, [ebp - 0xc]
mov ecx, 4
call fcn.004065b0
mov ecx, dword [ebp - 0x14]
mov eax, ebx
mov edx, dword [ebp - 4]
call fcn.004066c8
mov eax, dword [ebx]
call fcn.00407f1c
test al, al
jne 0x4080f1
mov eax, ebx
call fcn.00405e60
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x40811b
lea eax, [ebp - 0x14]
mov edx, 2
call fcn.00405ec0
lea eax, [ebp - 4]
call fcn.00405e60
ret

Function at 0x40875c
Capabilities:
Get system information on windows

Disassembly:
add esp, 0xffffffdc
push esp
call sub.kernel32.dll_GetSystemInfo
mov eax, dword [esp + 0x14]
add esp, 0x24
ret

Function at 0x40c858
Capabilities:
Get geographical location

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffe00
push ebx
push esi
mov esi, ecx
mov ebx, dword [ebp + 8]
push pe_nt_image_headers32
lea ecx, [ebp - 0x200]
push ecx
push edx
push eax
call sub.kernel32.dll_GetLocaleInfoW_1
test eax, eax
jle 0x40c891
mov ecx, eax
dec ecx
lea edx, [ebp - 0x200]
mov eax, ebx
call fcn.00405f9c
jmp 0x40c89a
mov eax, ebx
mov edx, esi
call fcn.004061bc
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 4

Function at 0x40c8a4
Capabilities:
Get geographical location

Disassembly:
push ebx
push esi
push edi
push ecx
mov edi, ecx
mov esi, edx
mov ebx, eax
push 2
lea eax, [esp + 4]
push eax
push esi
push ebx
call sub.kernel32.dll_GetLocaleInfoW_1
test eax, eax
jle 0x40c8c6
movzx eax, word [esp]
jmp 0x40c8c8
mov eax, edi
pop edx
pop edi
pop esi
pop ebx
ret
Function at 0x40d584
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffff778
push ebx
push esi
xor ecx, ecx
mov dword [ebp - 4], ecx
xor ecx, ecx
push ebp
push 0x40d6a9
push dword fs:[ecx]
mov dword fs:[ecx], esp
push 0x400
lea ecx, [ebp - 0x888]
call fcn.0040d394
mov esi, eax
mov eax, dword [0x413db0]
cmp byte [eax], 0
je 0x40d651
mov eax, dword [0x413cec]
call fcn.004042d4
call fcn.00403cf0
push 0
push 0
push 0
push 0
push esi
lea eax, [ebp - 0x888]
push eax
push 0
push 1
call sub.kernel32.dll_WideCharToMultiByte_1
mov ebx, eax
push ebx
lea eax, [ebp - 4]
mov ecx, 1
mov edx, dword [0x40d55c]
call fcn.00406f2c
add esp, 4
push 0
push 0
push ebx
mov eax, dword [ebp - 4]
push eax
push esi
lea eax, [ebp - 0x888]
push eax
push 0
push 1
call sub.kernel32.dll_WideCharToMultiByte_1
push 0
lea eax, [ebp - 8]
push eax
push ebx
mov eax, dword [ebp - 4]
push eax
push 0xfffffffffffffff4
call sub.kernel32.dll_GetStdHandle_1
push eax
call sub.kernel32.dll_WriteFile_1
push 0
lea eax, [ebp - 8]
push eax
push 2
push 0x40d6c4
push 0xfffffffffffffff4
call sub.kernel32.dll_GetStdHandle_1
push eax
call sub.kernel32.dll_WriteFile_1
jmp 0x40d68d
push 0x40
lea eax, [ebp - 0x88]
push eax
mov eax, dword [0x413cc8]
mov eax, dword [eax + 4]
push eax
mov eax, dword [0x416c30]
call fcn.00406fe4
push eax
call sub.user32.dll_LoadStringW_1
push 0x2010
lea eax, [ebp - 0x88]
push eax
lea eax, [ebp - 0x888]
push eax
push 0
call sub.user32.dll_MessageBoxW
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x40d6b0
lea eax, [ebp - 4]
mov edx, dword [0x40d55c]
call fcn.00406f38
ret

Function at 0x40ec90
Capabilities:
Encode data using xor

Disassembly:
push ebx
push esi
push edi
push ebp
add esp, 0xfffffdf8
mov ebx, eax
mov eax, ebx
call fcn.004062ac
mov ebp, eax
push ebp
push 0
push 0
mov ecx, ebx
xor edx, edx
mov eax, 0xfde9
call fcn.0040873c
mov edi, eax
cmp edi, 0x104
jbe 0x40ec3b
mov eax, edi
add eax, eax
call fcn.00403b94
mov esi, eax
jmp 0x40ec3d
mov esi, esp
push ebp
push esi
push edi
mov ecx, ebx
xor edx, edx
mov eax, 0xfde9
call fcn.0040873c
push esi
call sub.user32.dll_CharUpperW
xor ebx, ebx
mov eax, edi
dec eax
test eax, eax
jl 0x40ec76
inc eax
xor edx, edx
mov ecx, ebx
shl ecx, 5
shr ebx, 0x1b
or ecx, ebx
mov ebx, ecx
movzx ecx, word [esi + edx*2]
xor ebx, ecx
inc edx
dec eax
jne 0x40ec60
mov eax, esp
cmp esi, eax
je 0x40ec83
mov eax, esi
call fcn.00403bb0
mov eax, ebx
add esp, 0x208
pop ebp
pop edi
pop esi
pop ebx
ret
push esi
push ebx
mov esi, eax
xor eax, eax
push esi
rol eax, 5
mov bl, byte [esi]
test bl, 0x80
jne 0x40ecbc
cmp bl, 0
je 0x40ecb8
cmp bl, 0x41
jl 0x40ecb3
cmp bl, 0x5a
jg 0x40ecb3
or bl, 0x20
xor al, bl
inc esi
jmp 0x40ec97
pop ecx
pop ebx
pop esi
ret
pop eax
pop ebx
pop esi
jmp 0x40ebfc

Function at 0x40eea8
Capabilities:
Get geographical location

Disassembly:
push ebx
add esp, 0xfffff800
mov ebx, ecx
mov word [esp], 0
push 0x400
lea ecx, [esp + 4]
push ecx
push edx
push eax
call sub.kernel32.dll_GetLocaleInfoW_1
mov eax, ebx
mov edx, esp
mov ecx, 0x400
call fcn.004065b0
add esp, 0x800
pop ebx
ret
Function at 0x40fcd4
Capabilities:
Terminate process

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffdb0
push ebx
push esi
push edi
xor edx, edx
mov dword [ebp - 0x248], edx
mov dword [ebp - 0x250], edx
mov dword [ebp - 0x24c], edx
mov dword [ebp - 0x238], edx
mov dword [ebp - 0x244], edx
mov dword [ebp - 0x23c], edx
mov dword [ebp - 0x240], edx
mov dword [ebp - 8], edx
mov dword [ebp - 4], eax
mov eax, dword [ebp - 4]
call fcn.00405f44
lea edi, [ebp - 0x234]
xor eax, eax
push ebp
push 0x40fe4f
push dword fs:[eax]
mov dword fs:[eax], esp
lea eax, [ebp - 8]
mov edx, dword [ebp - 4]
call fcn.00406204
xor edx, edx
mov eax, 2
call fcn.0040f998
mov esi, eax
mov dword [edi], 0x22c
mov edx, edi
mov eax, esi
call fcn.0040f9b8
mov ebx, eax
jmp 0x40fe1c
lea eax, [ebp - 0x240]
lea edx, [edi + 0x24]
mov ecx, 0x104
call fcn.004065b0
mov eax, dword [ebp - 0x240]
lea edx, [ebp - 0x23c]
call fcn.0040b9e8
mov eax, dword [ebp - 0x23c]
lea edx, [ebp - 0x238]
call fcn.0040b518
mov eax, dword [ebp - 0x238]
push eax
lea edx, [ebp - 0x244]
mov eax, dword [ebp - 8]
call fcn.0040b518
mov edx, dword [ebp - 0x244]
pop eax
call fcn.00406800
je 0x40fdfc
lea eax, [ebp - 0x24c]
lea edx, [edi + 0x24]
mov ecx, 0x104
call fcn.004065b0
mov eax, dword [ebp - 0x24c]
lea edx, [ebp - 0x248]
call fcn.0040b518
mov eax, dword [ebp - 0x248]
push eax
lea edx, [ebp - 0x250]
mov eax, dword [ebp - 8]
call fcn.0040b518
mov edx, dword [ebp - 0x250]
pop eax
call fcn.00406800
jne 0x40fe11
push 0
mov eax, dword [edi + 8]
push eax
push 0
push 1
call sub.kernel32.dll_OpenProcess
push eax
call sub.kernel32.dll_TerminateProcess
mov edx, edi
mov eax, esi
call fcn.0040f9d8
mov ebx, eax
test ebx, ebx
jne 0x40fd5d
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x40fe56
lea eax, [ebp - 0x250]
mov edx, 7
call fcn.00405ec0
lea eax, [ebp - 8]
mov edx, 2
call fcn.00405ec0
ret
Function at 0x467c70
Capabilities:
Query environment variable

Disassembly:
push ebx
push esi
push edi
push ebp
push ecx
cmp dword [0x48b178], 0
jne 0x467cf1
cmp dword [0x48b198], 0
jne 0x467ca0
call sub.KERNEL32.DLL_GetEnvironmentStrings
mov dword [0x48b198], eax
test eax, eax
jne 0x467ca0
push 0x4877f0
call fcn.004674f0
pop ecx
xor ebp, ebp
xor esi, esi
mov ebx, dword [0x48b198]
jmp 0x467cb4
lea eax, [edi + 1]
inc esi
add ebp, eax
add ebx, eax
push ebx
call fcn.00461258
pop ecx
mov edi, eax
test eax, eax
jne 0x467cac
lea edi, [ebp + 1]
push edi
call fcn.00460c98
pop ecx
mov ebx, eax
mov dword [0x48b17c], ebx
test ebx, ebx
jne 0x467cde
xor eax, eax
jmp 0x467db4
push edi
mov edx, dword [0x48b198]
push edx
push ebx
call fcn.00461108
add esp, 0xc
jmp 0x467d11
xor esi, esi
mov ebx, dword [0x48b178]
jmp 0x467d0b
push eax
call fcn.00461258
pop ecx
test eax, eax
jne 0x467d07
dec esi
inc esi
add ebx, 4
mov eax, dword [ebx]
test eax, eax
jne 0x467cfb
lea ebx, [esi + 4]
push 4
mov dword [0x48b180], ebx
inc ebx
push ebx
call fcn.00460770
add esp, 8
test eax, eax
mov dword [esp], eax
jne 0x467d34
xor eax, eax
jmp 0x467db4
cmp dword [0x48b178], 0
jne 0x467d65
xor esi, esi
mov ebx, dword [0x48b17c]
mov eax, dword [esp]
mov ebp, eax
jmp 0x467d56
mov dword [ebp], ebx
add ebp, 4
inc esi
inc edi
add ebx, edi
push ebx
call fcn.00461258
pop ecx
mov edi, eax
test eax, eax
jne 0x467d4c
jmp 0x467d96
xor esi, esi
mov ebx, dword [0x48b178]
mov eax, dword [esp]
mov edi, eax
jmp 0x467d90
push eax
call fcn.00461258
pop ecx
test eax, eax
je 0x467d85
mov eax, dword [ebx]
mov dword [edi], eax
jmp 0x467d89
dec esi
add edi, 0xfffffffc
add edi, 4
inc esi
add ebx, 4
mov eax, dword [ebx]
test eax, eax
jne 0x467d74
mov eax, dword [0x48b178]
test eax, eax
je 0x467da6
push eax
call fcn.00460ca8
pop ecx
mov edx, dword [esp]
mov eax, 1
mov dword [0x48b178], edx
pop edx
pop ebp
pop edi
pop esi
pop ebx
ret

Function at 0x46e260
Capabilities:
Check for software breakpoints

Disassembly:
push ebx
mov ebx, eax
cmp dword [ebx + 0x10], 0xca
jne 0x46e28e
mov eax, ebx
call fcn.0046ed04
cmp dword [ebx + 0x3c], 0
je 0x46e287
mov dword [ebx + 0x10], 0xcf
mov eax, 1
pop ebx
ret
mov dword [ebx + 0x10], 0xcb
cmp dword [ebx + 0x10], 0xcb
jne 0x46e2ff
mov edx, dword [ebx + 0x1a6]
cmp dword [edx + 0x10], 0
je 0x46e2f1
cmp dword [ebx + 8], 0
je 0x46e2b0
mov eax, ebx
mov edx, dword [eax + 8]
call dword [edx]
mov eax, ebx
mov edx, dword [eax + 0x1a6]
call dword [edx]
test eax, eax
jne 0x46e2c2
xor eax, eax
pop ebx
ret
cmp eax, 2
je 0x46e2f1
cmp dword [ebx + 8], 0
je 0x46e2a3
cmp eax, 3
je 0x46e2d5
dec eax
jne 0x46e2a3
mov edx, dword [ebx + 8]
inc dword [edx + 4]
mov ecx, dword [edx + 4]
mov eax, dword [ebx + 8]
cmp ecx, dword [eax + 8]
jl 0x46e2a3
mov edx, dword [ebx + 0x132]
add dword [eax + 8], edx
jmp 0x46e2a3
mov ecx, dword [ebx + 0x8c]
mov dword [ebx + 0x94], ecx
jmp 0x46e31d
cmp dword [ebx + 0x10], 0xcc
je 0x46e31d
mov eax, dword [ebx]
mov dword [eax + 0x14], 0x12
mov edx, dword [ebx + 0x10]
mov dword [eax + 0x18], edx
mov eax, ebx
mov edx, dword [eax]
call dword [edx]
mov eax, ebx
call fcn.0046e328
pop ebx
ret
Function at 0x42a003
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.00425e2b
and dword [ebp - 4], 0
cmp dword [0x897d5c], 0
mov ebx, eax
jne 0x42a0b4
push 0x402cf4
call dword [sym.imp.KERNEL32.dll_LoadLibraryA]
mov edi, eax
test edi, edi
je 0x42a165
mov esi, dword [sym.imp.KERNEL32.dll_GetProcAddress]
push 0x402ce8
push edi
call esi
test eax, eax
je 0x42a165
push eax
call fcn.00425db9
mov dword [esp], 0x402cd8
push edi
mov dword [0x897d5c], eax
call esi
push eax
call fcn.00425db9
mov dword [esp], 0x402cc4
push edi
mov dword [0x897d60], eax
call esi
push eax
call fcn.00425db9
mov dword [esp], 0x402ca8
push edi
mov dword [0x897d64], eax
call esi
push eax
call fcn.00425db9
pop ecx
mov dword [0x897d6c], eax
test eax, eax
je 0x42a0b4
push 0x402c90
push edi
call esi
push eax
call fcn.00425db9
pop ecx
mov dword [0x897d68], eax
mov eax, dword [0x897d68]
cmp eax, ebx
je 0x42a10c
cmp dword [0x897d6c], ebx
je 0x42a10c
push eax
call fcn.00425e34
push dword [0x897d6c]
mov esi, eax
call fcn.00425e34
pop ecx
pop ecx
mov edi, eax
test esi, esi
je 0x42a10c
test edi, edi
je 0x42a10c
call esi
test eax, eax
je 0x42a103
lea ecx, [ebp - 8]
push ecx
push 0xc
lea ecx, [ebp - 0x14]
push ecx
push 1
push eax
call edi
test eax, eax
je 0x42a103
test byte [ebp - 0xc], 1
jne 0x42a10c
or dword [ebp + 0x10], 0x200000
jmp 0x42a145
mov eax, dword [0x897d60]
cmp eax, ebx
je 0x42a145
push eax
call fcn.00425e34
pop ecx
test eax, eax
je 0x42a145
call eax
mov dword [ebp - 4], eax
test eax, eax
je 0x42a145
mov eax, dword [0x897d64]
cmp eax, ebx
je 0x42a145
push eax
call fcn.00425e34
pop ecx
test eax, eax
je 0x42a145
push dword [ebp - 4]
call eax
mov dword [ebp - 4], eax
push dword [0x897d5c]
call fcn.00425e34
pop ecx
test eax, eax
je 0x42a165
push dword [ebp + 0x10]
push dword [ebp + 0xc]
push dword [ebp + 8]
push dword [ebp - 4]
call eax
jmp 0x42a167
xor eax, eax
pop edi
pop esi
pop ebx
leave
ret
Function at 0x4021d0
Capabilities:
Set registry value

Disassembly:
push ecx
mov ecx, dword [esp + 0xc]
mov edx, dword [esp + 8]
lea eax, [esp]
mov dword [esp], 0
push eax
push 0xf003f
push 0
push ecx
push edx
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
test eax, eax
jne 0x402238
mov edx, dword [esp + 0x14]
push esi
push edi
mov edi, edx
or ecx, 0xffffffff
repne scasb al, byte es:[edi]
not ecx
dec ecx
push ecx
mov ecx, dword [esp + 0xc]
push edx
push 1
push eax
mov eax, dword [esp + 0x28]
push eax
push ecx
call dword [sym.imp.ADVAPI32.dll_RegSetValueExA]
mov edx, dword [esp + 8]
mov esi, eax
push edx
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
xor eax, eax
pop edi
test esi, esi
sete al
pop esi
pop ecx
ret 0x10
xor eax, eax
pop ecx
ret 0x10

Function at 0x403cb0
Capabilities:
Get common file path

Disassembly:
push 0xffffffffffffffff
push 0x405538
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
push ecx
push edi
mov edi, ecx
mov eax, dword [edi + 0x68]
test eax, eax
jne 0x403d5a
push esi
lea ecx, [esp + 8]
call sub.MFC42.DLL_CString::CString
push 0x104
push 0x104
lea ecx, [esp + 0x10]
mov dword [esp + 0x1c], 0
call sub.MFC42.DLL_CString::GetBuffer
push eax
call dword [sym.imp.KERNEL32.dll_GetWindowsDirectoryA]
push 0xffffffffffffffff
lea ecx, [esp + 0xc]
call sub.MFC42.DLL_CString::ReleaseBuffer
push str.winhlp32.exe
lea ecx, [esp + 0xc]
call sub.MFC42.DLL_CString::operator
mov eax, dword [esp + 8]
push eax
call dword [sym.imp.KERNEL32.dll_LoadLibraryA]
mov esi, eax
test esi, esi
je 0x403d41
push 0x6a
push esi
call dword [sym.imp.USER32.dll_LoadCursorA]
test eax, eax
je 0x403d41
push eax
call dword [sym.imp.USER32.dll_CopyIcon]
mov dword [edi + 0x68], eax
push esi
call dword [sym.imp.KERNEL32.dll_FreeLibrary]
lea ecx, [esp + 8]
mov dword [esp + 0x14], 0xffffffff
call fcn.00404904
pop esi
mov ecx, dword [esp + 8]
pop edi
mov dword fs:[0], ecx
add esp, 0x10
ret

Function at 0x403d70
Capabilities:
Query or enumerate registry value

Disassembly:
mov ecx, dword [esp + 8]
mov edx, dword [esp + 4]
sub esp, 0x10c
lea eax, [esp]
push esi
push edi
push eax
push 1
push 0
push ecx
push edx
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
mov edi, dword [esp + 0x120]
test eax, eax
mov byte [edi], 0
jne 0x403ddd
mov edx, dword [esp + 8]
lea eax, [esp + 0xc]
lea ecx, [esp + 0x10]
push eax
push ecx
push 0
push edx
mov dword [esp + 0x1c], 0x104
call dword [sym.imp.ADVAPI32.dll_RegQueryValueA]
mov esi, eax
test esi, esi
jne 0x403ddb
lea eax, [esp + 0x10]
push eax
push edi
call dword [sym.imp.KERNEL32.dll_lstrcpyA]
mov ecx, dword [esp + 8]
push ecx
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov eax, esi
pop edi
pop esi
add esp, 0x10c
ret 0xc
Function at 0x403df0
Capabilities:
Create process on windows

Disassembly:
sub esp, 0x208
mov eax, dword [esp + 0x20c]
push ebx
push ebp
mov ebp, dword [esp + 0x218]
push esi
push edi
push ebp
push 0
push 0
push eax
push str.open
mov edi, ecx
push 0
call dword [sym.imp.SHELL32.dll_ShellExecuteA]
mov esi, eax
cmp esi, 0x20
ja 0x403ee2
lea ecx, [esp + 0x10]
push ecx
push str..htm
push Ordinal_1
mov ecx, edi
call fcn.00403d70
test eax, eax
jne 0x403ee2
mov ebx, dword [sym.imp.KERNEL32.dll_lstrcatA]
lea edx, [esp + 0x10]
push str._shellopencommand
push edx
call ebx
lea eax, [esp + 0x10]
lea ecx, [esp + 0x10]
push eax
push ecx
push Ordinal_1
mov ecx, edi
call fcn.00403d70
test eax, eax
jne 0x403ee2
mov edi, dword [sym.imp.MSVCRT.dll__mbsstr]
lea edx, [esp + 0x10]
push str.__1_
push edx
call edi
mov esi, eax
add esp, 8
test esi, esi
jne 0x403eb3
lea eax, [esp + 0x10]
push 0x40933c
push eax
call edi
mov esi, eax
add esp, 8
test esi, esi
jne 0x403eb3
lea ecx, [esp + 0x10]
push ecx
call dword [sym.imp.KERNEL32.dll_lstrlenA]
lea esi, [esp + eax + 0xf]
jmp 0x403eb6
mov byte [esi], 0
push 0x409338
push esi
call ebx
mov edx, dword [esp + 0x21c]
push edx
push esi
call ebx
lea eax, [esp + 0x10]
push ebp
push eax
call dword [sym.imp.KERNEL32.dll_WinExec]
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x208
ret 8
mov eax, esi
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x208
ret 8

Function at 0x404620
Capabilities:
Extract resource via kernel32 functions

Disassembly:
push 0xffffffffffffffff
push 0x4055f8
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
push ecx
mov eax, dword [ecx + 0x44]
test eax, eax
je 0x4046c8
mov ecx, dword [ecx + 0x40]
push 0x4093c8
push ecx
call dword [sym.imp.MSVCRT.dll__mbscmp]
add esp, 8
test eax, eax
jne 0x40466e
push 0xffffffffffffffff
call dword [sym.imp.USER32.dll_MessageBeep]
mov ecx, dword [esp + 4]
mov dword fs:[0], ecx
add esp, 0x10
ret
push esi
push str.IDR_WAVE2
lea ecx, [esp + 8]
call sub.MFC42.DLL_CString::CString_1
mov dword [esp + 0x10], 0
call sub.MFC42.DLL_AfxGetModuleState
mov esi, dword [eax + 8]
mov eax, dword [esp + 4]
push str.WAVE
push eax
push esi
call dword [sym.imp.KERNEL32.dll_FindResourceA]
push eax
push esi
call dword [sym.imp.KERNEL32.dll_LoadResource]
push eax
call dword [sym.imp.KERNEL32.dll_LockResource]
push 5
push eax
call dword [sym.imp.WINMM.dll_sndPlaySoundA]
lea ecx, [esp + 4]
mov dword [esp + 0x10], 0xffffffff
call fcn.00404904
pop esi
mov ecx, dword [esp + 4]
mov dword fs:[0], ecx
add esp, 0x10
ret
Function at 0x51ee10
Capabilities:
Packed with generic packer

Disassembly:
pushal
mov esi, section.UPX1
lea edi, [esi - 0x9b000]
push edi
or ebp, 0xffffffff
jmp 0x51ee32
mov al, byte [esi]
inc esi
mov byte [edi], al
inc edi
add ebx, ebx
jne 0x51ee39
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
jb 0x51ee28
mov eax, 1
add ebx, ebx
jne 0x51ee4b
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc eax, eax
add ebx, ebx
jae 0x51ee5c
jne 0x51ee7b
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
jb 0x51ee7b
dec eax
add ebx, ebx
jne 0x51ee68
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc eax, eax
jmp 0x51ee40
add ebx, ebx
jne 0x51ee77
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc ecx, ecx
jmp 0x51eecd
xor ecx, ecx
sub eax, 3
jb 0x51ee93
shl eax, 8
mov al, byte [esi]
inc esi
xor eax, 0xffffffff
je 0x51ef02
sar eax, 1
mov ebp, eax
jmp 0x51ee9e
add ebx, ebx
jne 0x51ee9e
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
jb 0x51ee6c
inc ecx
add ebx, ebx
jne 0x51eeac
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
jb 0x51ee6c
add ebx, ebx
jne 0x51eeb9
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc ecx, ecx
add ebx, ebx
jae 0x51eeae
jne 0x51eeca
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
jae 0x51eeae
add ecx, 2
cmp ebp, 0xfffffb00
adc ecx, 2
lea edx, [edi + ebp]
cmp ebp, 0xfffffffc
jbe 0x51eeec
mov al, byte [edx]
inc edx
mov byte [edi], al
inc edi
dec ecx
jne 0x51eede
jmp 0x51ee2e
mov eax, dword [edx]
add edx, 4
mov dword [edi], eax
add edi, 4
sub ecx, 4
ja 0x51eeec
add edi, ecx
jmp 0x51ee2e
pop esi
mov edi, esi
mov ecx, 0x48af
mov al, byte [edi]
inc edi
sub al, 0xe8
cmp al, 1
ja 0x51ef0a
cmp byte [edi], 0x13
jne 0x51ef0a
mov eax, dword [edi]
mov bl, byte [edi + 4]
shr ax, 8
rol eax, 0x10
xchg ah, al
sub eax, edi
sub bl, 0xe8
add eax, esi
mov dword [edi], eax
add edi, 5
mov al, bl
loop 0x51ef0f
lea edi, [esi + 0x11b000]
mov eax, dword [edi]
or eax, eax
je 0x51ef87
mov ebx, dword [edi + 4]
lea eax, [eax + esi + 0x11f4e8]
add ebx, esi
push eax
add edi, 8
call dword [esi + 0x11f5ec]
xchg ebp, eax
mov al, byte [edi]
inc edi
or al, al
je 0x51ef3c
mov ecx, edi
jns 0x51ef6b
movzx eax, word [edi]
inc edi
push eax
inc edi
mov ecx, 0xaef24857
push edi
dec eax
repne scasb al, byte es:[edi]
push ebp
call dword [esi + 0x11f5f0]
or eax, eax
je 0x51ef81
mov dword [ebx], eax
add ebx, 4
jmp 0x51ef59
call dword [esi + 0x11f600]
mov ebp, dword [esi + 0x11f5f4]
lea edi, [esi - 0x1000]
mov ebx, 0x1000
push eax
push esp
push 4
push ebx
push edi
call ebp
lea eax, [edi + 0x217]
and byte [eax], 0x7f
and byte [eax + 0x28], 0x7f
pop eax
push eax
push esp
push eax
push ebx
push edi
call ebp
pop eax
popal
lea eax, [esp - 0x80]
push 0
cmp esp, eax
jne 0x51efbb
sub esp, 0xffffff80
jmp 0x48bb01