joyce8/EMBER2024-capa huggingface dataset:
Function at 0x45d5c0
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
sub esp, 8
mov eax, dword [ebp + 0x10]
push ebx
push esi
push edi
mov cl, byte [eax + 0x100]
mov dl, byte [eax + 0x101]
mov dword [ebp - 8], eax
mov byte [ebp - 1], cl
mov byte [ebp - 2], dl
xor ebx, ebx
mov bl, byte [ebp - 1]
xor edx, edx
mov dl, byte [ebp - 2]
mov esi, dword [ebp - 8]
mov edi, dword [ebp + 8]
xor eax, eax
mov ecx, dword [ebp + 0xc]
test ecx, ecx
jle 0x45d613
inc bl
mov al, byte [esi + ebx]
add dl, al
xchg byte [esi + edx], al
mov byte [esi + ebx], al
add al, byte [esi + edx]
mov al, byte [esi + eax]
xor byte [edi], al
inc edi
dec ecx
jne 0x45d5fa
mov byte [ebp - 1], bl
mov byte [ebp - 2], dl
mov eax, dword [ebp + 0x10]
mov cl, byte [ebp - 1]
mov dl, byte [ebp - 2]
pop edi
pop esi
mov byte [eax + 0x100], cl
mov byte [eax + 0x101], dl
pop ebx
mov esp, ebp
pop ebp
ret

Function at 0x463fa0
Capabilities:
Access peb ldr_data

Disassembly:
push 0xffffffffffffffff
push 0x48faee
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
push ecx
mov eax, dword [esp + 0x18]
push esi
push edi
mov edi, ecx
mov ecx, dword [esp + 0x1c]
push eax
push ecx
mov ecx, edi
mov dword [esp + 0x10], edi
call fcn.004648c0
push 0x10
mov dword [esp + 0x18], 0
mov dword [edi], 0x497e94
call fcn.00481f84
mov esi, eax
add esp, 4
mov dword [esp + 0x20], esi
mov al, 1
test esi, esi
mov byte [esp + 0x14], al
je 0x464033
push 4
mov byte [esi + 8], al
mov dword [esi], 0
mov dword [esi + 4], 0
call fcn.00481f84
add esp, 4
mov dword [esp + 0x1c], eax
test eax, eax
mov byte [esp + 0x14], 2
je 0x46402c
push 0
mov ecx, eax
call fcn.0045b130
mov dword [esi + 0xc], eax
jmp 0x464035
xor eax, eax
mov dword [esi + 0xc], eax
jmp 0x464035
xor esi, esi
mov ecx, dword [esp + 0xc]
mov dword [edi + 0x30], esi
mov dword [edi + 0x34], 0
mov eax, edi
pop edi
pop esi
mov dword fs:[0], ecx
add esp, 0x10
ret 8

Function at 0x4845d0
Capabilities:
Get graphical window text

Disassembly:
push esi
mov esi, ecx
mov ecx, dword [esi + 0x38]
test ecx, ecx
jne 0x484608
push dword [esi + 0x1c]
call dword [sym.imp.USER32.dll_GetWindowTextLengthA]
lea ecx, [eax + 1]
push ecx
mov ecx, dword [esp + 0xc]
push eax
call fcn.0048269e
push eax
push dword [esi + 0x1c]
call dword [sym.imp.USER32.dll_GetWindowTextA]
mov ecx, dword [esp + 8]
push 0xffffffffffffffff
call fcn.00482676
jmp 0x484614
mov eax, dword [ecx]
push dword [esp + 8]
call dword [eax + 0x88]
pop esi
ret 4

Function at 0x485cbe
Capabilities:
Extract resource via kernel32 functions

Disassembly:
push ebx
push esi
push edi
xor edi, edi
cmp dword [esp + 0x10], edi
mov ebx, ecx
je 0x485d00
call fcn.0048b645
mov esi, dword [eax + 0xc]
push 0xf0
push dword [esp + 0x14]
push esi
call dword [sym.imp.KERNEL32.dll_FindResourceA]
cmp eax, edi
je 0x485d00
push eax
push esi
call dword [sym.imp.KERNEL32.dll_LoadResource]
cmp eax, edi
jne 0x485cf7
xor eax, eax
jmp 0x485d08
push eax
call dword [sym.imp.KERNEL32.dll_LockResource]
mov edi, eax
push edi
mov ecx, ebx
call fcn.00485d0e
pop edi
pop esi
pop ebx
ret 4
Function at 0x48bb75
Capabilities:
Get thread local storage value

Disassembly:
push ebx
push esi
mov esi, ecx
lea ebx, [esi + 0x1c]
push ebx
call dword [sym.imp.KERNEL32.dll_EnterCriticalSection]
cmp dword [esp + 0x10], 0
jne 0x48bba3
push dword [esi]
call dword [sym.imp.KERNEL32.dll_TlsGetValue]
test eax, eax
je 0x48bbc1
push dword [esp + 0xc]
mov ecx, esi
push eax
call fcn.0048badb
jmp 0x48bbc1
mov eax, dword [esi + 0x14]
test eax, eax
je 0x48bbc1
push edi
push dword [esp + 0x10]
mov edi, dword [eax + 4]
mov ecx, esi
push eax
call fcn.0048badb
test edi, edi
mov eax, edi
jne 0x48bbab
pop edi
push ebx
call dword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
pop esi
pop ebx
ret 8

Function at 0x77ba1cc6
Capabilities:
Encode data using xor

Disassembly:
scasd eax, dword es:[edi]
stosd dword es:[edi], eax
add al, 0x33
cmp al, 0x3c
insb byte es:[edi], dx
xchg edx, eax
mov dword [edi - 0xd], 0xcdd8d42b
out 0xa9, eax
push esi
popfd
pushfd
cwde
or ch, byte [eax - 0x5eff1730]
push edx
xchg ebp, eax
adc al, 0x3c
cmp al, 0x3c
mov esp, 0xbe329166
test eax, 0x5cd286cf
add bh, byte [eax]
or al, byte [eax]
aaa
mov dh, 0x6b
invalid

Function at 0x77ba33bd
Capabilities:
Encode data using xor

Disassembly:
dec eax
mov word [esi + 0x47], cs
test al, 0x9c
mov al, byte [0xc14faf00]
xor byte [ebx + 0x3b553cb2], dl
aad 0x56
pop edi
lodsb al, byte [esi]
and eax, 0xf8cb9c3e
pop ds
dec edx
cmp dl, byte [ebx + ecx*4 - 0x156992cf]
aas
lahf
les ecx, [edx - 0x40]
inc eax
sahf
jae 0x77ba33a7
cmp eax, 0x2228c700
mov byte [0xd74403f2], al
dec esi
popfd
aas
or byte [0x9bd61a7c], ch
cmc
loope 0x77ba33e9
jmp [esp + esi*4]
sub al, 0xb4
rol dl, cl
add byte [eax - 0x40], cl
and ch, byte [eax]
and edi, dword [0xc0bffca8]
sub byte [ecx], ah
out 0xcc, eax
mov ss, ebx
movsd dword es:[edi], dword [esi]
dec eax
aaa
rcr edx, 0xa2
sub cl, byte [edi + 0x3c]
cmp al, 0xaf
dec ecx
sub edx, ecx
int3
Function at 0x408683
Capabilities:
Initialize winsock library

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
and esp, 0xfffffff8
sub esp, 0x1a4
mov eax, dword [0x40f074]
xor eax, esp
mov dword [esp + 0x1a0], eax
mov eax, dword [ebp + 8]
push ebx
mov ebx, dword [ebp + 0x10]
push esi
push edi
mov edi, dword [ebp + 0xc]
mov esi, ecx
mov dword [esp + 0x14], eax
mov eax, dword [ebp + 0x14]
push 0x190
mov dword [esp + 0x14], eax
lea eax, [esp + 0x1c]
push 0
push eax
call sub.msvcrt.dll_memset
add esp, 0xc
cmp dword [esp + 0x14], 0
je 0x408737
test edi, edi
je 0x408737
test ebx, ebx
je 0x408737
cmp dword [esp + 0x10], 0
je 0x408737
lea eax, [esp + 0x18]
push eax
push 0x202
call dword [sym.imp.WS2_32.dll_WSAStartup]
test eax, eax
je 0x408704
jle 0x408702
movzx eax, ax
or eax, 0x80070000
test eax, eax
jne 0x40873c
push dword [esp + 0x10]
mov ecx, esi
mov dword [esi + 0x4c], 1
push ebx
push edi
push dword [esp + 0x20]
call fcn.00407372
test eax, eax
jne 0x40873c
mov ecx, dword [esi + 0x18]
xor edx, edx
inc edx
mov dword [ecx + 0x24], edx
mov ecx, dword [esi + 0x1c]
mov dword [ecx + 0x20], edx
mov ecx, dword [esi + 0x20]
mov dword [ecx + 0x20], edx
jmp 0x40873c
mov eax, 0x80070057
mov ecx, dword [esp + 0x1ac]
pop edi
pop esi
pop ebx
xor ecx, esp
call fcn.0040e640
mov esp, ebp
pop ebp
ret 0x10
Function at 0x408d55
Capabilities:
Get hostname

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x108
mov eax, dword [0x40f074]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
mov ebx, dword [ebp + 8]
lea eax, [ebp - 0x104]
push edi
mov edi, 0x100
mov dword [ebp - 0x108], ebx
push edi
push 0
push eax
call sub.msvcrt.dll_memset
add esp, 0xc
test ebx, ebx
jne 0x408d9a
mov eax, 0x80004003
jmp 0x408ec9
and dword [ebx], 0
lea eax, [ebp - 0x104]
push esi
push edi
push eax
call dword [sym.imp.WS2_32.dll_gethostname]
test eax, eax
je 0x408dcd
call dword [sym.imp.WS2_32.dll_WSAGetLastError]
mov esi, eax
test esi, esi
jle 0x408dc7
movzx esi, si
or esi, 0x80070000
test esi, esi
jne 0x408ec6
mov esi, edi
lea eax, [ebp - 0x104]
cmp byte [eax], 0
je 0x408de0
inc eax
sub esi, 1
jne 0x408dd5
mov ecx, esi
neg esi
mov eax, ecx
mov ebx, ecx
sbb esi, esi
sub edi, ecx
and esi, 0x7ff8ffa9
add esi, 0x80070057
neg eax
sbb eax, eax
and eax, edi
neg ebx
sbb ebx, ebx
and ebx, eax
test ecx, ecx
je 0x408ec6
push 0x10
push 0
call dword [sym.imp.wsdapi.dll_WSDAllocateLinkedMemory]
mov edi, eax
test edi, edi
jne 0x408e21
mov esi, 0x8007000e
test esi, esi
jne 0x408ebb
mov dword [edi], esi
push 8
push edi
mov dword [edi + 4], 0x402a34
mov dword [edi + 8], 0x402a3c
mov dword [edi + 0xc], esi
call dword [sym.imp.wsdapi.dll_WSDAllocateLinkedMemory]
mov dword [edi], eax
test eax, eax
je 0x408e8c
push 8
mov dword [eax], esi
push edi
mov dword [eax + 4], esi
call dword [sym.imp.wsdapi.dll_WSDAllocateLinkedMemory]
mov ecx, dword [edi]
mov dword [ecx + 4], eax
mov eax, dword [edi]
mov eax, dword [eax + 4]
test eax, eax
je 0x408e8c
add ebx, 0x12
mov dword [eax], esi
mov dword [eax + 4], esi
lea eax, [ebx + ebx]
push eax
push edi
call dword [sym.imp.wsdapi.dll_WSDAllocateLinkedMemory]
mov ecx, dword [edi]
mov ecx, dword [ecx + 4]
mov dword [ecx + 4], eax
mov eax, dword [edi]
mov eax, dword [eax + 4]
cmp dword [eax + 4], esi
jne 0x408e93
mov esi, 0x8007000e
jmp 0x408ebb
lea ecx, [ebp - 0x104]
push ecx
push 0x402a50
push ebx
push dword [eax + 4]
call fcn.004085af
mov esi, eax
add esp, 0x10
test esi, esi
jne 0x408ebb
mov eax, dword [ebp - 0x108]
mov dword [eax], edi
xor edi, edi
test edi, edi
je 0x408ec6
push edi
call dword [sym.imp.wsdapi.dll_WSDFreeLinkedMemory]
mov eax, esi
pop esi
mov ecx, dword [ebp - 4]
pop edi
xor ecx, ebp
pop ebx
call fcn.0040e640
leave
ret 4
Function at 0x40923f
Capabilities:
Check os version

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x118
mov eax, dword [0x40f074]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
mov ebx, dword [ebp + 0xc]
lea eax, [ebp - 0x114]
push esi
push edi
push 0x110
push 0
push eax
call sub.msvcrt.dll_memset
add esp, 0xc
mov dword [ebp - 0x118], 0x114
call fcn.0040a206
mov edi, eax
call fcn.0040a8a3
and dword [0x40fc4c], 0
call fcn.0040a529
push 0x402d24
call fcn.0040a3d5
mov dword [esp], 0x402d48
call fcn.0040a3d5
pop ecx
test edi, edi
jne 0x4093b2
lea eax, [ebp - 0x118]
push eax
call dword [sym.imp.KERNEL32.dll_GetVersionExW]
test eax, eax
jne 0x4092df
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov edi, eax
test edi, edi
jle 0x4092d9
movzx edi, di
or edi, 0x80070000
test edi, edi
jne 0x4093b2
cmp dword [ebp - 0x114], 6
jb 0x409396
jne 0x4092fb
cmp dword [ebp - 0x110], 2
jb 0x409396
push 0x402e98
call fcn.0040a431
push 0x2c
call fcn.0040e333
mov esi, eax
pop ecx
pop ecx
test esi, esi
je 0x40933d
xor eax, eax
mov dword [esi], 0x401058
mov dword [esi + 4], 1
mov dword [esi + 8], eax
mov dword [esi + 0xc], eax
mov dword [esi + 0x14], eax
mov dword [esi + 0x18], eax
mov dword [esi + 0x1c], eax
mov dword [esi + 0x20], eax
mov dword [esi + 0x24], eax
mov dword [esi + 0x28], eax
jmp 0x40933f
xor esi, esi
test esi, esi
jne 0x409348
mov edi, 0x8007000e
mov ecx, edi
call fcn.0040a45a
test edi, edi
jne 0x409380
push 0x402ed8
call fcn.0040a431
pop ecx
mov ecx, esi
call fcn.0040940b
mov edi, eax
mov ecx, edi
call fcn.0040a45a
test edi, edi
jne 0x409380
mov ecx, dword [esi + 0xc]
push ebx
push dword [ebp + 8]
call fcn.0040d819
mov edi, eax
test esi, esi
je 0x4093b2
mov eax, dword [esi]
push esi
mov esi, dword [eax + 8]
mov ecx, esi
call dword [0x410144]
call esi
jmp 0x4093b2
push 0x402dc0
call fcn.0040a3d5
mov dword [esp], 0x402e48
call fcn.0040a3d5
pop ecx
mov edi, 0x80004005
xor ecx, ecx
call fcn.0040a301
push 0x4012e0
call fcn.0040a3d5
mov eax, dword [0x40fc54]
pop ecx
test eax, eax
je 0x4093e7
push eax
call dword [sym.imp.KERNEL32.dll_DeleteCriticalSection]
push dword [0x40fc54]
call fcn.0040e35c
and dword [0x40fc54], 0
pop ecx
and dword [0x40f3dc], 0
xor eax, eax
and dword [0x40f3d4], 0
test edi, edi
mov ecx, dword [ebp - 4]
pop edi
setne al
xor ecx, ebp
pop esi
pop ebx
call fcn.0040e640
leave
ret

Function at 0x40be1f
Capabilities:
Initialize winsock library

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
and esp, 0xfffffff8
sub esp, 0x19c
mov eax, dword [0x40f074]
xor eax, esp
mov dword [esp + 0x198], eax
push esi
add ecx, 4
call fcn.0040dcf5
mov esi, eax
test esi, esi
jne 0x40be7f
push 0x405444
call fcn.0040a431
pop ecx
lea eax, [esp + 8]
push eax
push 0x202
call dword [sym.imp.WS2_32.dll_WSAStartup]
test eax, eax
je 0x40be78
jg 0x40be6f
mov esi, eax
jmp 0x40be78
movzx esi, ax
or esi, 0x80070000
mov ecx, esi
call fcn.0040a45a
mov ecx, dword [esp + 0x19c]
mov eax, esi
pop esi
xor ecx, esp
call fcn.0040e640
mov esp, ebp
pop ebp
ret
Function at 0x40d908
Capabilities:
Accept command line arguments

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x210
mov eax, dword [0x40f074]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
mov ebx, dword [ebp + 0xc]
lea eax, [ebp - 0x204]
push esi
push edi
mov edi, dword [ebp + 8]
mov esi, ecx
push 0x200
push 0
push eax
mov dword [ebp - 0x210], edi
call sub.msvcrt.dll_memset
xor eax, eax
add esp, 0xc
mov dword [ebp - 0x20c], eax
mov dword [ebp - 0x208], eax
test edi, edi
je 0x40da91
test ebx, ebx
je 0x40da91
mov ecx, dword [esi]
mov dword [0x40f3d4], ecx
test ecx, ecx
je 0x40d979
push eax
push 7
push 3
pop edx
call fcn.0040a916
xor edi, edi
inc edi
push edi
call fcn.0040ec2b
push eax
call dword [sym.imp.msvcrt.dll_fflush]
push 0
call fcn.0040ec2b
push eax
mov esi, 0x100
lea eax, [ebp - 0x204]
push esi
push eax
call dword [sym.imp.msvcrt.dll_fgetws]
and dword [0x40f3d4], 0
lea eax, [ebp - 0x208]
add esp, 0x18
mov dword [0x40f07c], edi
mov edx, esi
lea ecx, [ebp - 0x204]
push eax
call fcn.004071a4
mov esi, eax
test esi, esi
jne 0x40da8d
mov eax, dword [ebp - 0x208]
test eax, eax
je 0x40da0f
lea ecx, [eax + eax]
movzx edx, word [ebp + ecx - 0x206]
sub ecx, 2
dec eax
cmp edx, 0xa
je 0x40d9f5
cmp edx, 0xd
jne 0x40da0f
cmp ecx, 0x200
jae 0x40daa7
xor edx, edx
mov word [ebp + ecx - 0x204], dx
test eax, eax
jne 0x40d9df
push dword [ebp - 0x204]
lea edi, [ebp - 0x204]
jmp 0x40da24
add edi, 2
movzx eax, word [edi]
push eax
call dword [sym.imp.msvcrt.dll_iswspace]
pop ecx
test eax, eax
jne 0x40da1d
xor eax, eax
cmp ax, word [edi]
jne 0x40da3b
xor esi, esi
inc esi
jmp 0x40da8d
lea eax, [ebp - 0x20c]
push eax
push edi
call dword [sym.imp.SHELL32.dll_CommandLineToArgvW]
mov edi, eax
test edi, edi
jne 0x40da7d
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov esi, eax
test esi, esi
jle 0x40da64
movzx esi, si
or esi, 0x80070000
push esi
lea eax, [ebp - 0x204]
push eax
push 0x406b18
call fcn.0040a403
add esp, 0xc
test esi, esi
jne 0x40da8d
mov ecx, dword [ebp - 0x210]
mov eax, dword [ebp - 0x20c]
mov dword [ecx], eax
mov dword [ebx], edi
mov eax, esi
jmp 0x40da96
mov eax, 0x80004003
mov ecx, dword [ebp - 4]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.0040e640
leave
ret 8
call fcn.0040eb6b
int3
Function at 0x40e630
Capabilities:
Terminate process

Disassembly:
push 0xc
push 0x40ec58
call fcn.0040e998
xor ebx, ebx
mov dword [ebp - 4], ebx
mov eax, dword fs:[0x18]
mov esi, dword [eax + 4]
mov edi, ebx
mov edx, 0x40fc60
mov ecx, esi
xor eax, eax
lock cmpxchg dword [edx], ecx
test eax, eax
je 0x40e458
cmp eax, esi
jne 0x40e44b
xor esi, esi
inc esi
mov edi, esi
jmp 0x40e45b
push 0x3e8
call dword [sym.imp.KERNEL32.dll_Sleep]
jmp 0x40e42f
xor esi, esi
inc esi
cmp dword [0x40fc64], esi
jne 0x40e46d
push 0x1f
call fcn.0057f000
pop ecx
jmp 0x40e4a7
cmp dword [0x40fc64], ebx
jne 0x40e4a1
mov dword [0x40fc64], esi
push 0x4011ec
push 0x4011e0
call fcn.0040e58c
pop ecx
pop ecx
test eax, eax
je 0x40e4a7
mov dword [ebp - 4], 0xfffffffe
mov eax, 0xff
jmp 0x40e57c
mov dword [0x40f08c], esi
cmp dword [0x40fc64], esi
jne 0x40e4ca
push 0x4011dc
push 0x4011d4
call sub.msvcrt.dll__initterm
pop ecx
pop ecx
mov dword [0x40fc64], 2
test edi, edi
jne 0x40e4d7
xor eax, eax
mov ecx, 0x40fc60
xchg dword [ecx], eax
cmp dword [0x40fc68], 0
je 0x40e503
push 0x40fc68
call fcn.0040e7f0
pop ecx
test eax, eax
je 0x40e503
push ebx
push 2
push ebx
mov esi, dword [0x40fc68]
mov ecx, esi
call dword [0x410144]
call esi
push dword [0x40f098]
push dword [0x40f094]
push dword [0x40f090]
call fcn.0040923f
add esp, 0xc
mov dword [0x40f088], eax
cmp dword [0x40f0a0], 0
jne 0x40e561
push eax
call dword [sym.imp.msvcrt.dll_exit]
mov ecx, dword [ebp - 0x14]
mov eax, dword [ecx]
mov eax, dword [eax]
mov dword [ebp - 0x1c], eax
push ecx
push eax
call sub.msvcrt.dll__XcptFilter
pop ecx
pop ecx
ret
cmp dword [0x40f08c], 0
jne 0x40e575
call dword [sym.imp.msvcrt.dll__cexit]
mov eax, dword [0x40f088]
mov dword [ebp - 4], 0xfffffffe
mov ecx, dword [ebp - 0x10]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
leave
ret
call fcn.0040e8e5
jmp 0x40e413

Function at 0x40e6d4
Capabilities:
Parse pe header

Disassembly:
push 0xc
push 0x40ec78
call fcn.0040e998
xor ecx, ecx
mov eax, dword [ebp + 8]
test eax, eax
je 0x40e734
cmp eax, 0xffffffff
je 0x40e734
mov dword [ebp - 4], ecx
mov edx, 0x5a4d
cmp word [eax], dx
jne 0x40e72d
mov edx, dword [eax + 0x3c]
test edx, edx
js 0x40e72d
cmp edx, 0x10000000
jae 0x40e72d
add eax, edx
mov dword [ebp - 0x1c], eax
mov ecx, dword [eax]
sub ecx, 0x4550
neg ecx
sbb ecx, ecx
not ecx
and ecx, eax
jmp 0x40e72a
mov dword [ebp - 0x1c], ecx
mov dword [ebp - 4], 0xfffffffe
mov eax, ecx
mov ecx, dword [ebp - 0x10]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
leave
ret 4

Function at 0x40e7a0
Capabilities:
Enumerate pe sections

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
mov eax, dword [ebp + 8]
xor edx, edx
push ebx
push esi
push edi
mov ecx, dword [eax + 0x3c]
add ecx, eax
movzx eax, word [ecx + 0x14]
movzx ebx, word [ecx + 6]
add eax, 0x18
add eax, ecx
test ebx, ebx
je 0x40e7de
mov edi, dword [ebp + 0xc]
mov esi, dword [eax + 0xc]
cmp edi, esi
jb 0x40e7d6
mov ecx, dword [eax + 8]
add ecx, esi
cmp edi, ecx
jb 0x40e7e0
inc edx
add eax, 0x28
cmp edx, ebx
jb 0x40e7c6
xor eax, eax
pop edi
pop esi
pop ebx
pop ebp
ret
Function at 0x40e8b0
Capabilities:
Parse pe header

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
mov ecx, dword [ebp + 8]
mov eax, 0x5a4d
cmp word [ecx], ax
jne 0x40e8e1
mov eax, dword [ecx + 0x3c]
add eax, ecx
cmp dword [eax], 0x4550
jne 0x40e8e1
mov ecx, 0x10b
cmp word [eax + 0x18], cx
jne 0x40e8e1
mov eax, 1
pop ebp
ret
xor eax, eax
pop ebp
ret
Function at 0x40e840
Capabilities:
Set registry value

Disassembly:
push ebx
mov ebx, esp
sub esp, 8
and esp, 0xfffffff8
add esp, 4
push ebp
mov ebp, dword [ebx + 4]
mov dword [esp + 4], ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x5779a5
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
push ebx
sub esp, 0x240
push esi
push edi
push 0x27
mov edi, ecx
mov dword [ebp - 0x20], 0
xorps xmm0, xmm0
mov dword [ebp - 0x1c], 0
push str.aGNN3eDsMCKwwf6Aj8d6NDMOgORgT5HgwH0ESg
lea ecx, [ebp - 0x30]
movups xmmword [ebp - 0x30], xmm0
call fcn.0042d600
mov dword [ebp - 4], 0
lea ecx, [ebp - 0x48]
push 0x18
xorps xmm0, xmm0
mov dword [ebp - 0x38], 0
push str.aDZ1FSjh1JNDoYDZQElwGlM
movups xmmword [ebp - 0x48], xmm0
mov dword [ebp - 0x34], 0
call fcn.0042d600
push 0x104
lea eax, [ebp - 0x250]
mov byte [ebp - 4], 1
push eax
push 0
call dword [sym.imp.KERNEL32.dll_GetModuleFileNameW]
lea eax, [ebp - 0x18]
push eax
push 0xf003f
push 0
sub esp, 0x18
lea eax, [ebp - 0x30]
mov ecx, esp
push eax
call fcn.0042e9e0
lea ecx, [ebp - 0x14]
call fcn.00445090
add esp, 0x18
push dword [eax]
push SysReAllocString
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
mov edx, dword [ebp - 0x14]
mov esi, eax
add edx, 0xfffffff0
or ecx, 0xffffffff
lock xadd dword [edx + 0xc], ecx
dec ecx
test ecx, ecx
jg 0x40e92b
mov ecx, dword [edx]
push edx
mov eax, dword [ecx]
call dword [eax + 4]
test esi, esi
jne 0x40e95c
mov esi, dword [ebx + 8]
lea eax, [ebp - 0x14]
push 4
push eax
push 4
push 0
push 0x5904f4
push dword [ebp - 0x18]
mov dword [ebp - 0x14], esi
call dword [sym.imp.ADVAPI32.dll_RegSetValueExW]
push dword [ebp - 0x18]
mov dword [edi + 0x110], esi
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov ecx, dword [ebp - 0x34]
cmp ecx, 8
jb 0x40e992
mov edx, dword [ebp - 0x48]
lea ecx, [ecx*2 + 2]
mov eax, edx
cmp ecx, 0x1000
jb 0x40e988
mov edx, dword [eax - 4]
add ecx, 0x23
sub eax, edx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x40e9dd
push ecx
push edx
call fcn.0054db34
add esp, 8
mov ecx, dword [ebp - 0x1c]
cmp ecx, 8
jb 0x40e9c8
mov edx, dword [ebp - 0x30]
lea ecx, [ecx*2 + 2]
mov eax, edx
cmp ecx, 0x1000
jb 0x40e9be
mov edx, dword [eax - 4]
add ecx, 0x23
sub eax, edx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x40e9dd
push ecx
push edx
call fcn.0054db34
add esp, 8
mov ecx, dword [ebp - 0xc]
pop edi
mov dword fs:[0], ecx
pop esi
mov esp, ebp
pop ebp
mov esp, ebx
pop ebx
ret 4
call fcn.00552a0f
int3
Function at 0x41ef00
Capabilities:
Query or enumerate registry value

Disassembly:
push ebx
mov ebx, esp
sub esp, 8
and esp, 0xfffffff8
add esp, 4
push ebp
mov ebp, dword [ebx + 4]
mov dword [esp + 4], ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x579605
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
push ebx
sub esp, 0x48
push esi
push edi
push 0x27
mov dword [ebp - 0x28], ecx
xorps xmm0, xmm0
push str.SzdmeMBhYwAEQ81VhRVfF2clGcTtHqNUQkPRQM
lea ecx, [ebp - 0x58]
mov dword [ebp - 0x48], 0
movups xmmword [ebp - 0x58], xmm0
mov dword [ebp - 0x44], 0
call fcn.0042d600
mov dword [ebp - 4], 0
lea ecx, [ebp - 0x40]
push 0x13
xorps xmm0, xmm0
mov dword [ebp - 0x30], 0
push str.TTNF9bj5HUJBo4yQA
movups xmmword [ebp - 0x40], xmm0
mov dword [ebp - 0x2c], 0
call fcn.0042d600
lea eax, [ebp - 0x18]
mov byte [ebp - 4], 1
push eax
push 0xf003f
push 0
sub esp, 0x18
mov dword [ebp - 0x14], 0
lea eax, [ebp - 0x58]
mov dword [ebp - 0x24], 4
mov ecx, esp
mov esi, 3
push eax
call fcn.0042e9e0
lea ecx, [ebp - 0x1c]
call fcn.00445090
add esp, 0x18
push dword [eax]
push SysReAllocString
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
mov edx, dword [ebp - 0x1c]
or edi, 0xffffffff
mov dword [ebp - 0x20], eax
add edx, 0xfffffff0
mov ecx, edi
lock xadd dword [edx + 0xc], ecx
dec ecx
test ecx, ecx
jg 0x41efee
mov ecx, dword [edx]
push edx
mov eax, dword [ecx]
call dword [eax + 4]
mov eax, dword [ebp - 0x20]
test eax, eax
jne 0x41f04f
sub esp, 0x18
lea eax, [ebp - 0x40]
mov ecx, esp
push eax
call fcn.0042e9e0
lea ecx, [ebp - 0x20]
call fcn.00445090
add esp, 0x18
lea ecx, [ebp - 0x24]
push ecx
lea ecx, [ebp - 0x14]
push ecx
push 0
push 0
push dword [eax]
push dword [ebp - 0x18]
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
mov edx, dword [ebp - 0x20]
mov dword [ebp - 0x1c], eax
add edx, 0xfffffff0
lock xadd dword [edx + 0xc], edi
dec edi
test edi, edi
jg 0x41f040
mov ecx, dword [edx]
push edx
mov eax, dword [ecx]
call dword [eax + 4]
mov eax, dword [ebp - 0x1c]
push dword [ebp - 0x18]
test eax, eax
cmove esi, dword [ebp - 0x14]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov eax, dword [ebp - 0x28]
mov ecx, dword [ebp - 0x2c]
mov dword [eax + 0x110], esi
cmp ecx, 8
jb 0x41f08e
mov edx, dword [ebp - 0x40]
lea ecx, [ecx*2 + 2]
mov eax, edx
cmp ecx, 0x1000
jb 0x41f084
mov edx, dword [eax - 4]
add ecx, 0x23
sub eax, edx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x41f0d9
push ecx
push edx
call fcn.0054db34
add esp, 8
mov ecx, dword [ebp - 0x44]
cmp ecx, 8
jb 0x41f0c4
mov edx, dword [ebp - 0x58]
lea ecx, [ecx*2 + 2]
mov eax, edx
cmp ecx, 0x1000
jb 0x41f0ba
mov edx, dword [eax - 4]
add ecx, 0x23
sub eax, edx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x41f0d9
push ecx
push edx
call fcn.0054db34
add esp, 8
mov ecx, dword [ebp - 0xc]
mov eax, esi
pop edi
mov dword fs:[0], ecx
pop esi
mov esp, ebp
pop ebp
mov esp, ebx
pop ebx
ret
call fcn.00552a0f
int3