joyce8/EMBER2024-capa huggingface dataset:
Function at 0x405b50
Capabilities:
Resolve function by parsing pe exports

Disassembly:
sub esp, 0x298
mov ecx, dword [0x41a13c]
push ebx
mov edx, 0x7ff
push esi
mov esi, dword [esp + 0x2ac]
push edi
mov dword [esp + 0xc], 1
mov dword [esp + 0x10], 0x7fc
mov dword [esp + 0x14], 5
mov dword [esp + 0x18], 0x7fd
mov dword [esp + 0x1c], 7
mov dword [esp + 0x20], 0x7fe
mov dword [esp + 0x24], 9
mov dword [esp + 0x28], edx
mov dword [esp + 0x2c], 0xb
mov dword [esp + 0x30], 0x800
mov dword [esp + 0x34], 0xd
mov dword [esp + 0x38], 0x801
mov dword [esp + 0x3c], 0x14
mov dword [esp + 0x40], 0x802
mov dword [esp + 0x44], 0x1b
mov dword [esp + 0x48], 0x803
mov dword [esp + 0x4c], 0x1c
mov dword [esp + 0x50], 0x804
mov dword [esp + 0x54], 0x25
mov dword [esp + 0x58], 0x805
mov dword [esp + 0x5c], 0x2b
mov dword [esp + 0x60], 0x806
mov dword [esp + 0x64], 0x23a
mov dword [esp + 0x68], 0x807
mov dword [esp + 0x6c], 0x5b
mov dword [esp + 0x70], 0x808
mov dword [esp + 0x74], 0x1f
mov dword [esp + 0x78], 0x809
mov dword [esp + 0x7c], 0x244
mov dword [esp + 0x80], 0x80e
mov dword [esp + 0x84], 0x245
mov dword [esp + 0x88], 0x80f
mov dword [esp + 0x8c], 0x246
mov dword [esp + 0x90], 0x810
mov dword [esp + 0x94], 0
mov dword [esp + 0x98], 0x80a
xor eax, eax
cmp esi, 0x152f
jne 0x405cc2
mov edi, dword [ecx + 0x20]
mov ebx, dword [ecx + 0x2c]
lea edi, [ebx + edi*4]
mov ebx, eax
and ebx, 0xffff
mov edi, dword [edi + ecx]
cmp edi, dword [esp + ebx*8 + 0xc]
je 0x405cdc
jmp 0x405cd3
mov ebx, dword [ecx + 0x54]
mov edi, eax
and edi, 0xffff
cmp ebx, dword [esp + edi*8 + 0xc]
je 0x405cdc
inc eax
cmp ax, 0x12
jb 0x405c9e
jmp 0x405ce5
and eax, 0xffff
mov edx, dword [esp + eax*8 + 0x10]
cmp edx, 0x80e
je 0x405d2b
cmp edx, 0x80f
je 0x405d2b
cmp edx, 0x810
je 0x405d2b
mov ecx, dword [0x41b418]
lea eax, [esp + 0x9c]
push 0x104
push eax
push edx
push ecx
lea esi, [esp + 0xac]
call dword [sym.imp.USER32.dll_LoadStringW]
test eax, eax
jne 0x405d28
mov esi, 0x417314
push esi
jmp 0x405d86
mov eax, dword [ecx + 0x58]
add eax, ecx
cmp word [eax], 0
jne 0x405d85
lea ecx, [esp + 0x9c]
push 0x104
push ecx
push edx
mov edx, dword [0x41b418]
lea esi, [esp + 0xa8]
push edx
call dword [sym.imp.USER32.dll_LoadStringW]
test eax, eax
jne 0x405d61
mov esi, 0x417314
mov eax, dword [esp + 0x2ac]
mov ecx, dword [esp + 0x2a8]
push esi
push eax
push ecx
call dword [sym.imp.USER32.dll_wsprintfW]
add esp, 0xc
pop edi
pop esi
pop ebx
add esp, 0x298
ret
push eax
mov edx, dword [esp + 0x2b0]
mov eax, dword [esp + 0x2ac]
push edx
push eax
call dword [sym.imp.USER32.dll_wsprintfW]
add esp, 0xc
pop edi
pop esi
pop ebx
add esp, 0x298
ret
Function at 0x407ed0
Capabilities:
Get hostname

Disassembly:
sub esp, 0x210
mov eax, dword [0x417614]
mov cx, word [0x417618]
lea edx, [esp + 4]
push edi
push edx
mov dword [esp + 0xc], eax
mov word [esp + 0x10], cx
call fcn.0040cda0
mov edx, eax
mov ecx, pe_nt_image_headers32
xor eax, eax
lea edi, [esp + 0x14]
rep stosd dword es:[edi], eax
stosw word es:[edi], ax
mov eax, dword [0x41a13c]
add esp, 4
test eax, eax
je 0x407f63
push esi
mov esi, dword [eax + 0x5c]
add esi, eax
lea eax, [esp + 0xc]
push edx
push eax
push esi
call fcn.0040cd60
add esp, 0xc
test eax, eax
jne 0x407f2f
add esi, 4
lea ecx, [esp + 8]
lea edx, [esp + 0x14]
push ecx
push edx
mov dword [esp + 0x10], 0x202
call dword [sym.imp.KERNEL32.dll_GetComputerNameW]
mov eax, dword [esp + 8]
lea ecx, [esp + 0x14]
push eax
push ecx
push esi
call fcn.0040cd60
add esp, 0xc
pop esi
pop edi
add esp, 0x210
ret
xor eax, eax
pop edi
add esp, 0x210
ret

Function at 0x407f70
Capabilities:
Get session user name

Disassembly:
sub esp, 0x208
mov ecx, pe_nt_image_headers32
xor eax, eax
push edi
lea edi, [esp + 8]
rep stosd dword es:[edi], eax
stosw word es:[edi], ax
mov eax, dword [0x41a13c]
test eax, eax
je 0x407fc4
push esi
mov esi, dword [eax + 0x60]
add esi, eax
lea eax, [esp + 8]
lea ecx, [esp + 0xc]
push eax
push ecx
mov dword [esp + 0x10], 0x202
call dword [sym.imp.ADVAPI32.dll_GetUserNameW]
lea edx, [esp + 0xc]
push edx
push esi
call fcn.0040cc50
add esp, 8
pop esi
pop edi
add esp, 0x208
ret
xor eax, eax
pop edi
add esp, 0x208
ret
Function at 0x408e50
Capabilities:
Get geographical location
Get graphical window text

Disassembly:
sub esp, 0x2f8
cmp word [0x41b63c], 0x64
push ebx
push esi
push edi
mov edi, dword [sym.imp.USER32.dll_SendMessageW]
jb 0x408eb3
mov eax, dword [0x41a4c4]
push 0
push 0
push 0x1008
push eax
call edi
mov eax, dword [0x41a560]
test eax, eax
je 0x408e8c
push eax
call fcn.0040b860
add esp, 4
mov eax, 0x41a560
mov ecx, 0x63
mov edx, dword [eax + 4]
mov dword [eax], edx
add eax, 4
dec ecx
jne 0x408e96
mov eax, dword [0x41a1b4]
dec word [0x41b63c]
dec eax
mov dword [0x41a1b4], eax
push 0x38c
call fcn.0040b820
mov esi, dword [sym.imp.KERNEL32.dll_lstrcpyW]
add esp, 4
xor ecx, ecx
mov cx, word [0x41b63c]
push 0x41b1e0
push eax
mov dword [ecx*4 + 0x41a560], eax
call esi
mov edx, dword [0x41a13c]
push 0x104
test byte [edx + 8], 4
je 0x408f34
mov ecx, dword [0x41b418]
lea eax, [esp + 0x100]
push eax
push 0x7f9
push ecx
call dword [sym.imp.USER32.dll_LoadStringW]
test eax, eax
je 0x408f17
lea edx, [esp + 0xfc]
push edx
jmp 0x408f78
xor edx, edx
push str.Cancel
mov dx, word [0x41b63c]
mov eax, dword [edx*4 + 0x41a560]
add eax, 0x208
push eax
jmp 0x408f8e
mov edx, dword [0x41b418]
lea ecx, [esp + 0x100]
push ecx
push 0x7fa
push edx
call dword [sym.imp.USER32.dll_LoadStringW]
test eax, eax
je 0x408f73
xor ecx, ecx
lea eax, [esp + 0xfc]
mov cx, word [0x41b63c]
push eax
mov edx, dword [ecx*4 + 0x41a560]
add edx, 0x208
push edx
jmp 0x408f8e
push str.Done
xor eax, eax
mov ax, word [0x41b63c]
mov ecx, dword [eax*4 + 0x41a560]
add ecx, 0x208
push ecx
call esi
mov eax, dword [0x41a13c]
mov edx, dword [eax + 0x60]
add edx, eax
xor eax, eax
mov ax, word [0x41b63c]
push edx
mov ecx, dword [eax*4 + 0x41a560]
add ecx, 0x288
push ecx
call esi
xor edx, edx
mov ecx, dword [0x41a824]
mov dx, word [0x41b63c]
push 0xa0
mov eax, dword [edx*4 + 0x41a560]
lea edx, [esp + 0x60]
push edx
push 0x1003
push 0x400
mov dword [eax + 0x308], ecx
call dword [sym.imp.KERNEL32.dll_GetLocaleInfoW]
xor eax, eax
push pe_nt_image_headers32
mov ax, word [0x41b63c]
lea edx, [esp + 0x60]
mov ecx, dword [eax*4 + 0x41a560]
add ecx, 0x30c
push ecx
push edx
push 0
push 0
push 0
call dword [sym.imp.KERNEL32.dll_GetTimeFormatW]
mov eax, dword [0x41a1b4]
lea edx, [esp + 0xc]
mov dword [esp + 0x10], eax
inc eax
mov dword [0x41a1b4], eax
xor eax, eax
mov ax, word [0x41b63c]
push edx
push 0
or ebx, 0xffffffff
mov ecx, dword [eax*4 + 0x41a560]
mov eax, dword [0x41a4c4]
push 0x104d
push eax
mov dword [esp + 0x1c], 0xd
mov dword [esp + 0x28], 0
mov dword [esp + 0x2c], 0
mov dword [esp + 0x24], 0
mov dword [esp + 0x30], ebx
mov dword [esp + 0x34], 0x100
mov dword [esp + 0x3c], ecx
call edi
cmp eax, ebx
je 0x4090bf
xor esi, esi
mov edx, dword [0x41a1b4]
mov eax, dword [0x41a4c4]
lea ecx, [esp + 0x34]
mov dword [esp + 0x3c], esi
push ecx
push edx
push 0x1074
push eax
mov dword [esp + 0x58], ebx
call edi
inc esi
cmp esi, 5
jl 0x409080
mov ecx, dword [0x41a6fc]
push 1
push 0
push ecx
call dword [sym.imp.USER32.dll_InvalidateRect]
inc word [0x41b63c]
pop edi
pop esi
pop ebx
add esp, 0x2f8
ret
Function at 0x40b370
Capabilities:
Create process on windows

Disassembly:
sub esp, 0x68c
push ebx
push ebp
push esi
mov esi, 0x104
push edi
mov edi, dword [sym.imp.KERNEL32.dll_LocalAlloc]
push esi
push 0x40
call edi
mov ebp, dword [sym.imp.KERNEL32.dll_GetModuleFileNameW]
mov ebx, eax
push esi
push ebx
push 0
call ebp
test eax, eax
jne 0x40b3c9
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0x7a
jne 0x40b4c9
push ebx
call dword [sym.imp.KERNEL32.dll_LocalFree]
add esi, esi
push esi
push 0x40
call edi
mov ebx, eax
push esi
push ebx
push 0
call ebp
test eax, eax
je 0x40b3c9
test ebx, ebx
jne 0x40b3ab
mov esi, 1
lea eax, [esp + 0x2c]
push esi
push eax
call dword [sym.imp.ADVAPI32.dll_InitializeSecurityDescriptor]
xor ebp, ebp
lea ecx, [esp + 0x2c]
push ebp
push ebp
push esi
push ecx
call dword [sym.imp.ADVAPI32.dll_SetSecurityDescriptorDacl]
mov ecx, 0x11
xor eax, eax
lea edi, [esp + 0x40]
xor edx, edx
cmp word [esp + 0x6a0], bp
mov dword [esp + 0x10], edx
rep stosd dword es:[edi], eax
mov dword [esp + 0x1c], eax
mov dword [esp + 0x14], edx
mov dword [esp + 0x20], eax
mov dword [esp + 0x18], edx
mov dword [esp + 0x24], eax
mov dword [esp + 0x10], 0xc
mov dword [esp + 0x14], ebp
mov dword [esp + 0x18], ebp
mov dword [esp + 0x40], 0x44
mov word [esp + 0x70], si
mov dword [esp + 0x6c], esi
mov dword [esp + 0x28], eax
jne 0x40b471
mov ecx, dword [esp + 0x6a4]
cmp ecx, ebp
je 0x40b471
mov eax, dword [esp + 0x6a8]
cmp eax, ebp
je 0x40b471
push eax
push ecx
push ebx
lea ecx, [esp + 0x90]
push str._s__D_s__P_s
push ecx
call dword [sym.imp.USER32.dll_wsprintfW]
add esp, 0x14
jmp 0x40b488
push ebx
lea edx, [esp + 0x88]
push str._s__L
push edx
call dword [sym.imp.USER32.dll_wsprintfW]
add esp, 0xc
lea eax, [esp + 0x1c]
lea ecx, [esp + 0x40]
push eax
push ecx
push ebp
push ebp
push 0x200
lea edx, [esp + 0x24]
push ebp
lea eax, [esp + 0x28]
push edx
lea ecx, [esp + 0xa0]
push eax
push ecx
push ebp
call dword [sym.imp.KERNEL32.dll_CreateProcessW]
push ebx
mov esi, eax
call dword [sym.imp.KERNEL32.dll_LocalFree]
mov eax, esi
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x68c
ret
call dword [sym.imp.KERNEL32.dll_GetLastError]
push ebx
call dword [sym.imp.KERNEL32.dll_LocalFree]
pop edi
pop esi
pop ebp
xor eax, eax
pop ebx
add esp, 0x68c
ret
Function at 0x40b4f0
Capabilities:
Accept command line arguments

Disassembly:
sub esp, 8
push ebx
push ebp
push esi
push edi
mov dword [esp + 0x10], 0
mov dword [esp + 0x14], 0
mov word [0x41b420], 0
mov word [0x41a740], 0
call dword [sym.imp.KERNEL32.dll_GetCommandLineW]
mov esi, eax
test esi, esi
je 0x40b6f7
mov ax, word [esi]
test ax, ax
je 0x40b6f7
mov ebx, dword [sym.imp.USER32.dll_CharNextW]
cmp ax, 0x20
je 0x40b54e
push esi
call ebx
mov esi, eax
mov ax, word [esi]
test ax, ax
jne 0x40b53b
cmp word [esi], 0
je 0x40b6f7
mov ebp, dword [sym.imp.USER32.dll_CharPrevW]
push esi
call ebx
mov esi, eax
mov ax, word [esi]
test ax, ax
je 0x40b683
cmp ax, 0x21
jne 0x40b66e
push esi
call ebx
mov cx, word [eax]
test cx, cx
je 0x40b6f7
cmp cx, 0x44
jne 0x40b607
push eax
call ebx
mov cx, word [eax]
test cx, cx
je 0x40b5aa
cmp cx, 0x20
jne 0x40b5aa
push eax
call ebx
mov cx, word [eax]
test cx, cx
jne 0x40b599
mov cx, word [eax]
mov edi, eax
test cx, cx
je 0x40b6f7
cmp cx, 0x21
je 0x40b5c9
push eax
call ebx
mov cx, word [eax]
test cx, cx
jne 0x40b5b8
push eax
push edi
call ebp
mov esi, eax
mov cx, word [esi]
test cx, cx
je 0x40b5e9
cmp cx, 0x20
jne 0x40b5e9
push eax
push edi
call ebp
mov cx, word [eax]
test cx, cx
jne 0x40b5d7
sub eax, edi
sar eax, 1
add eax, 2
push eax
push edi
push 0x41b420
call dword [sym.imp.KERNEL32.dll_lstrcpynW]
mov dword [esp + 0x10], 1
jmp 0x40b66e
cmp cx, 0x50
jne 0x40b6b8
push eax
call ebx
mov cx, word [eax]
test cx, cx
je 0x40b62d
cmp cx, 0x20
jne 0x40b62d
push eax
call ebx
mov cx, word [eax]
test cx, cx
jne 0x40b61c
mov cx, word [eax]
mov edi, eax
test cx, cx
je 0x40b6f7
cmp cx, 0x21
je 0x40b64c
push eax
call ebx
mov cx, word [eax]
test cx, cx
jne 0x40b63b
push eax
push edi
call ebp
mov esi, eax
sub eax, edi
sar eax, 1
add eax, 2
push eax
push edi
push 0x41a740
call dword [sym.imp.KERNEL32.dll_lstrcpynW]
mov dword [esp + 0x14], 1
cmp word [esi], 0
jne 0x40b55e
xor ax, ax
pop edi
pop esi
pop ebp
pop ebx
add esp, 8
ret
mov eax, dword [esp + 0x10]
test eax, eax
je 0x40b6f7
mov eax, dword [esp + 0x14]
test eax, eax
je 0x40b69f
mov ax, 1
pop edi
pop esi
pop ebp
pop ebx
add esp, 8
ret
push 0x41b420
call fcn.0040b710
add esp, 4
mov ax, 1
pop edi
pop esi
pop ebp
pop ebx
add esp, 8
ret
mov ax, word [eax]
cmp ax, 0x4c
jne 0x40b6cd
mov ax, 2
pop edi
pop esi
pop ebp
pop ebx
add esp, 8
ret
cmp ax, 0x53
jne 0x40b6df
mov ax, 3
pop edi
pop esi
pop ebp
pop ebx
add esp, 8
ret
xor ecx, ecx
cmp ax, 0x4e
setne cl
dec ecx
and ecx, 4
mov ax, cx
pop edi
pop esi
pop ebp
pop ebx
add esp, 8
ret
pop edi
pop esi
pop ebp
xor ax, ax
pop ebx
add esp, 8
ret
Function at 0x40c260
Capabilities:
Create thread

Disassembly:
mov eax, dword [0x41b1bc]
sub esp, 0x20c
push ebx
push ebp
xor ebp, ebp
push esi
test eax, eax
push edi
jne 0x40c282
xor eax, eax
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x20c
ret
mov edi, dword [esp + 0x220]
test edi, edi
jne 0x40c29a
xor eax, eax
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x20c
ret
lea eax, [esp + 0x14]
push 0x41a1c0
push eax
call fcn.0040cbb0
mov ebx, dword [esp + 0x22c]
add esp, 8
xor esi, esi
mov eax, esi
and eax, 0xffff
lea ecx, [eax + eax*2]
mov eax, dword [edi + ecx*4 + 4]
test eax, eax
je 0x40c2d5
push ebx
push eax
call fcn.0040cc50
add esp, 8
test eax, eax
je 0x40c2de
inc esi
cmp si, 0x14
jb 0x40c2b5
jmp 0x40c2ff
and esi, 0xffff
lea ecx, [esp + 0x14]
lea edx, [esi + esi*2]
mov eax, dword [edi + edx*4 + 8]
lea esi, [edi + edx*4]
push eax
push ecx
call fcn.0040cbb0
mov bp, word [esi]
add esp, 8
cmp word [esp + 0x14], 0
je 0x40c37b
mov eax, dword [esp + 0x228]
mov ecx, dword [0x41b638]
or al, 1
test ecx, ecx
jne 0x40c329
push eax
lea edx, [esp + 0x18]
push ecx
push edx
call dword [0x41c700]
jmp 0x40c348
cmp ecx, 1
jne 0x40c343
cmp bp, cx
jne 0x40c343
push eax
lea eax, [esp + 0x18]
push 0
push eax
call dword [0x41c700]
jmp 0x40c348
mov eax, 1
test eax, eax
jne 0x40c37b
lea ecx, [esp + 0x14]
push ecx
call dword [sym.imp.KERNEL32.dll_AddAtomW]
test ax, ax
je 0x40c37b
lea edx, [esp + 0x10]
and eax, 0xffff
push edx
push 0
push eax
push 0x40c390
push 0x4000
push 0
call dword [sym.imp.KERNEL32.dll_CreateThread]
pop edi
pop esi
pop ebp
mov eax, 1
pop ebx
add esp, 0x20c
ret

Function at 0x40c400
Capabilities:
Query or enumerate registry value

Disassembly:
sub esp, 0x21c
mov eax, dword [0x417614]
mov cx, word [0x417618]
push esi
lea edx, [esp + 8]
push edi
push edx
mov dword [esp + 0x10], eax
mov word [esp + 0x14], cx
call fcn.0040cda0
mov esi, dword [esp + 0x230]
add esp, 4
mov edi, eax
lea eax, [esp + 0xc]
push edi
push eax
push esi
call fcn.0040cd60
add esp, 0xc
test eax, eax
jne 0x40c449
lea esi, [esi + edi*2]
lea ecx, [esp + 0x1c]
push str.SoftwareCanonCAP3
push ecx
call fcn.0040cbb0
add esp, 8
lea edx, [esp + 0x1c]
push 0x4111a4
push edx
call fcn.0040cb70
add esp, 8
lea eax, [esp + 0x1c]
push esi
push eax
call fcn.0040cb70
add esp, 8
lea ecx, [esp + 0x1c]
push str.PSW
push ecx
call fcn.0040cb70
mov esi, dword [esp + 0x23c]
mov ecx, dword [esp + 0x230]
mov edi, dword [esp + 0x240]
add esp, 8
lea edx, [esp + 8]
lea eax, [esp + 0x1c]
push edx
push 0x20019
push 0
push eax
push ecx
mov dword [esi], edi
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
test eax, eax
jne 0x40c4f9
mov ecx, dword [esp + 0x230]
lea edx, [esp + 0x14]
push edx
mov edx, dword [esp + 0xc]
lea eax, [esp + 0x1c]
push esi
push eax
push 0
push ecx
push edx
mov dword [esp + 0x2c], 4
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
test eax, eax
je 0x40c4ee
mov dword [esi], edi
mov eax, dword [esp + 8]
push eax
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
pop edi
mov eax, 1
pop esi
add esp, 0x21c
ret
Function at 0x40c510
Capabilities:
Query or enumerate registry value

Disassembly:
sub esp, 0x214
lea eax, [esp + 0xc]
push esi
push edi
push str.SoftwareCanonCAP3
push eax
call fcn.0040cbb0
add esp, 8
lea ecx, [esp + 0x14]
push 0x4111a4
push ecx
call fcn.0040cb70
mov edx, dword [esp + 0x228]
add esp, 8
lea eax, [esp + 0x14]
push edx
push eax
call fcn.0040cb70
add esp, 8
lea ecx, [esp + 0x14]
push str.PSW
push ecx
call fcn.0040cb70
mov edi, dword [esp + 0x234]
mov esi, dword [esp + 0x230]
add esp, 8
push edi
push esi
call fcn.0040cbb0
add esp, 8
lea edx, [esp + 8]
lea eax, [esp + 0x14]
push edx
push 0x20019
push 0
push eax
push 0x80000001
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
test eax, eax
jne 0x40c5e7
lea ecx, [esp + 0xc]
lea edx, [esp + 0x14]
push ecx
mov ecx, dword [esp + 0x228]
lea eax, [esp + 0x14]
push edx
mov edx, dword [esp + 0x10]
push eax
push 0
push ecx
push edx
mov dword [esp + 0x24], 0x208
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
test eax, eax
je 0x40c5ce
push edi
jmp 0x40c5d3
lea eax, [esp + 0x14]
push eax
push esi
call fcn.0040cbb0
mov ecx, dword [esp + 0x10]
add esp, 8
push ecx
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
pop edi
mov eax, 1
pop esi
add esp, 0x214
ret
Function at 0x40c600
Capabilities:
Query or enumerate registry value

Disassembly:
sub esp, 0x424
lea eax, [esp + 0x14]
push edi
push 0x4111a8
push eax
call fcn.0040cbb0
add esp, 8
lea ecx, [esp + 0x18]
push 0x4111a4
push ecx
call fcn.0040cb70
mov edx, dword [esp + 0x434]
add esp, 8
lea eax, [esp + 0x18]
push edx
push eax
call fcn.0040cb70
add esp, 8
lea ecx, [esp + 0x10]
xor edi, edi
lea edx, [esp + 0x18]
push ecx
push 0x20019
push edi
push edx
push 0x80000002
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
cmp eax, edi
jne 0x40c761
push esi
push ebp
mov ebp, 0x208
push ebx
mov ebx, dword [sym.imp.KERNEL32.dll_LocalAlloc]
mov dword [esp + 0x14], edi
mov dword [esp + 0x10], ebp
mov dword [esp + 0x18], ebp
lea eax, [esp + 0x18]
lea ecx, [esp + 0x24]
push eax
push ecx
mov ecx, dword [esp + 0x1c]
push 0
lea edx, [esp + 0x1c]
push 0
lea eax, [esp + 0x23c]
push edx
mov edx, dword [esp + 0x30]
push eax
push ecx
push edx
call dword [sym.imp.ADVAPI32.dll_RegEnumValueW]
mov esi, eax
test esi, esi
mov dword [esp + 0x20], esi
jne 0x40c72d
lea eax, [esp + 0x22c]
push eax
call fcn.0040c8f0
mov ebp, eax
add esp, 4
test bp, bp
jbe 0x40c728
mov ecx, dword [esp + 0x10]
lea edx, [ecx + ecx + 2]
push edx
push 0x40
call ebx
mov edx, dword [esp + 0x43c]
mov ecx, edi
and ecx, 0xffff
lea ecx, [ecx + ecx*2]
lea esi, [edx + ecx*4]
lea ecx, [esp + 0x22c]
push ecx
push eax
mov dword [esi + 4], eax
call fcn.0040cbb0
mov edx, dword [esp + 0x20]
add esp, 8
lea eax, [edx + edx + 2]
push eax
push 0x40
call ebx
lea ecx, [esp + 0x24]
mov dword [esi + 8], eax
push ecx
push eax
call fcn.0040cbb0
add esp, 8
dec ebp
mov word [esi], bp
mov esi, dword [esp + 0x20]
inc edi
mov ebp, 0x208
mov ecx, dword [esp + 0x14]
mov dword [esp + 0x10], ebp
inc ecx
mov dword [esp + 0x18], ebp
test esi, esi
mov dword [esp + 0x14], ecx
je 0x40c67f
mov edx, dword [esp + 0x1c]
push edx
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
pop ebx
pop ebp
mov eax, 1
pop esi
pop edi
add esp, 0x424
ret
xor eax, eax
pop edi
add esp, 0x424
ret
Function at 0x40c7b0
Capabilities:
Set registry value

Disassembly:
sub esp, 0x224
mov eax, dword [0x417614]
mov cx, word [0x417618]
push esi
lea edx, [esp + 8]
push edi
push edx
mov dword [esp + 0x10], eax
mov word [esp + 0x14], cx
call fcn.0040cda0
mov esi, dword [esp + 0x238]
add esp, 4
mov edi, eax
lea eax, [esp + 0xc]
push edi
push eax
push esi
call fcn.0040cd60
add esp, 0xc
test eax, eax
jne 0x40c7f9
lea esi, [esi + edi*2]
lea ecx, [esp + 0x24]
push str.SoftwareCanonCAP3
push ecx
call fcn.0040cbb0
add esp, 8
lea edx, [esp + 0x24]
push 0x4111a4
push edx
call fcn.0040cb70
add esp, 8
lea eax, [esp + 0x24]
push esi
push eax
call fcn.0040cb70
add esp, 8
lea ecx, [esp + 0x24]
push str.PSW
push ecx
call fcn.0040cb70
xor edx, edx
add esp, 8
mov dword [esp + 0x14], edx
lea eax, [esp + 0x20]
mov dword [esp + 0x18], edx
lea ecx, [esp + 8]
mov dword [esp + 0x1c], edx
push eax
lea edx, [esp + 0x18]
push ecx
mov ecx, dword [esp + 0x238]
xor esi, esi
push edx
push 0x20006
push esi
push 0x41a1c0
lea eax, [esp + 0x3c]
push esi
push eax
push ecx
mov dword [esp + 0x38], 0xc
mov dword [esp + 0x3c], esi
mov dword [esp + 0x40], esi
call dword [sym.imp.ADVAPI32.dll_RegCreateKeyExW]
cmp eax, esi
je 0x40c89a
xor eax, eax
pop edi
pop esi
add esp, 0x224
ret
mov eax, dword [esp + 0x238]
mov ecx, dword [esp + 8]
lea edx, [esp + 0x23c]
push 4
push edx
push 4
push esi
push eax
push ecx
call dword [sym.imp.ADVAPI32.dll_RegSetValueExW]
cmp eax, esi
je 0x40c8d4
mov edx, dword [esp + 8]
push edx
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
xor eax, eax
pop edi
pop esi
add esp, 0x224
ret
mov eax, dword [esp + 8]
push eax
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
pop edi
mov eax, 1
pop esi
add esp, 0x224
ret
Function at 0x40cdc0
Capabilities:
Accept command line arguments

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x410008
push 0x40def8
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
add esp, 0xffffffa8
push ebx
push esi
push edi
mov dword [ebp - 0x18], esp
call dword [sym.imp.KERNEL32.dll_GetVersion]
xor edx, edx
mov dl, ah
mov dword [0x41a20c], edx
mov ecx, eax
and ecx, 0xff
mov dword [0x41a208], ecx
shl ecx, 8
add ecx, edx
mov dword [0x41a204], ecx
shr eax, 0x10
mov dword [0x41a200], eax
call fcn.0040ddc0
test eax, eax
jne 0x40ce2a
push 0x1c
call fcn.0040cf60
add esp, 4
mov dword [ebp - 4], 0
call fcn.0040dbc0
call fcn.0040dbb0
call dword [sym.imp.KERNEL32.dll_GetCommandLineA]
mov dword [0x41bb30], eax
call fcn.0040d780
mov dword [0x41a1c8], eax
test eax, eax
je 0x40ce5d
mov eax, dword [0x41bb30]
test eax, eax
jne 0x40ce67
push 0xffffffffffffffff
call fcn.0040d0e0
add esp, 4
call fcn.0040d4d0
call fcn.0040d3e0
call fcn.0040d0b0
mov esi, dword [0x41bb30]
mov dword [ebp - 0x64], esi
cmp byte [esi], 0x22
jne 0x40cf46
inc esi
mov dword [ebp - 0x64], esi
mov al, byte [esi]
cmp al, 0x22
je 0x40ceae
test al, al
je 0x40ceae
and eax, 0xff
push eax
call fcn.0040d380
add esp, 4
test eax, eax
je 0x40ce88
inc esi
mov dword [ebp - 0x64], esi
jmp 0x40ce88
cmp byte [esi], 0x22
jne 0x40ceb7
inc esi
mov dword [ebp - 0x64], esi
mov al, byte [esi]
test al, al
je 0x40cec7
cmp al, 0x20
ja 0x40cec7
inc esi
mov dword [ebp - 0x64], esi
jmp 0x40ceb7
mov dword [ebp - 0x30], 0
lea eax, [ebp - 0x5c]
push eax
call dword [sym.imp.KERNEL32.dll_GetStartupInfoA]
test byte [ebp - 0x30], 1
je 0x40cee8
mov eax, dword [ebp - 0x2c]
and eax, 0xffff
jmp 0x40ceed
mov eax, 0xa
push eax
push esi
push 0
push 0
call dword [sym.imp.KERNEL32.dll_GetModuleHandleA]
push eax
call main
mov dword [ebp - 0x60], eax
push eax
call fcn.0040d0e0
jmp 0x40cf2b
add esp, 4
mov dword [ebp - 4], 0xffffffff
mov ecx, dword [ebp - 0x10]
mov dword fs:[0], ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
cmp byte [esi], 0x20
jbe 0x40ceb7
inc esi
mov dword [ebp - 0x64], esi
jmp 0x40cf46

Function at 0x40d120
Capabilities:
Terminate process

Disassembly:
mov eax, dword [0x41a23c]
push ebx
push ebp
mov ebp, dword [esp + 0xc]
cmp eax, 1
push esi
jne 0x40d13f
push ebp
call dword [sym.imp.KERNEL32.dll_GetCurrentProcess]
push eax
call dword [sym.imp.KERNEL32.dll_TerminateProcess]
mov eax, dword [esp + 0x14]
mov ebx, dword [esp + 0x18]
test eax, eax
mov dword [0x41a238], 1
mov byte [0x41a234], bl
jne 0x40d199
mov ecx, dword [0x41bb28]
test ecx, ecx
je 0x40d187
mov esi, dword [0x41bb24]
sub esi, 4
cmp esi, ecx
jb 0x40d187
mov eax, dword [esi]
test eax, eax
je 0x40d180
call eax
mov ecx, dword [0x41bb28]
sub esi, 4
cmp esi, ecx
jae 0x40d172
push 0x411014
push 0x411010
call fcn.0040d1d0
add esp, 8
push 0x41101c
push 0x411018
call fcn.0040d1d0
add esp, 8
test ebx, ebx
jne 0x40d1c0
push ebp
mov dword [0x41a23c], 1
call dword [sym.imp.KERNEL32.dll_ExitProcess]
pop esi
pop ebp
pop ebx
ret