joyce8/EMBER2024-capa huggingface dataset:
Function at 0x475aa0
Capabilities:
Extract resource via kernel32 functions

Disassembly:
mov eax, dword fs:[0]
push 0xffffffffffffffff
push 0x4a7be0
push eax
mov dword fs:[0], esp
sub esp, 8
push ebx
push ebp
push esi
push edi
mov esi, ecx
call fcn.0049ee35
mov edi, dword [eax + 0xc]
xor ebp, ebp
cmp edi, ebp
jne 0x475ad3
xor al, al
jmp 0x475bff
mov ebx, dword [esp + 0x28]
push 0xf1
and ebx, 0xffff
push ebx
push edi
call dword [sym.imp.KERNEL32.dll_FindResourceA]
cmp eax, ebp
jne 0x475af5
xor al, al
jmp 0x475bff
push eax
push edi
call dword [sym.imp.KERNEL32.dll_LoadResource]
cmp eax, ebp
jne 0x475b08
xor al, al
jmp 0x475bff
push eax
call dword [sym.imp.KERNEL32.dll_LockResource]
mov edi, eax
cmp edi, ebp
jne 0x475b1c
xor al, al
jmp 0x475bff
xor eax, eax
xor ecx, ecx
mov ax, word [edi + 2]
push ebp
mov dword [esi + 0x14], eax
xor eax, eax
mov ax, word [edi + 4]
mov edx, dword [esi + 0x14]
mov dword [esi + 0x18], eax
mov cx, word [edi + 6]
push ecx
push 5
push eax
push edx
lea ecx, [esi + 0x1c]
call fcn.00492acb
test eax, eax
jne 0x475b50
xor al, al
jmp 0x475bff
mov eax, dword [esi + 0x34]
push eax
mov eax, dword [esi + 0x20]
push eax
call dword [sym.imp.COMCTL32.dll_ImageList_SetBkColor]
mov dword [esp + 0x14], ebp
mov dword [esp + 0x10], 0x663e64
mov dword [esp + 0x20], ebp
call fcn.0049ee35
mov eax, dword [eax + 0xc]
push ebx
push eax
call dword [sym.imp.USER32.dll_LoadBitmapA]
push eax
lea ecx, [esp + 0x14]
call fcn.0049b92c
mov edx, dword [esp + 0x14]
mov ecx, dword [esi + 0x20]
lea eax, [esp + 0x10]
push 0xc0c0c0
neg eax
sbb eax, eax
and eax, edx
push eax
push ecx
call dword [sym.imp.COMCTL32.dll_ImageList_AddMasked]
lea ecx, [esp + 0x10]
call fcn.0049b983
xor ecx, ecx
lea ebx, [edi + 8]
cmp word [edi + 6], cx
jbe 0x475be4
mov ax, word [ebx]
test ax, ax
je 0x475bd6
mov edx, ecx
inc ecx
mov dword [esp + 0x28], ecx
push eax
push edx
mov ecx, esi
call fcn.00475c20
mov ecx, dword [esp + 0x28]
xor edx, edx
inc ebp
mov dx, word [edi + 6]
add ebx, 2
cmp ebp, edx
jl 0x475bba
mov dword [esp + 0x10], method.CGdiObject.virtual_0
lea ecx, [esp + 0x10]
mov dword [esp + 0x20], 1
call fcn.0049b983
mov al, 1
mov ecx, dword [esp + 0x18]
pop edi
pop esi
pop ebp
pop ebx
mov dword fs:[0], ecx
add esp, 0x14
ret 4

Function at 0x476160
Capabilities:
Get graphical window text

Disassembly:
mov eax, dword [esp + 8]
sub esp, 0x50
push esi
mov esi, dword [esp + 0x58]
push edi
push eax
mov ecx, esi
call fcn.0049d018
mov edi, eax
mov eax, dword [esi]
test eax, eax
je 0x4761a6
lea ecx, [esp + 8]
push 0x50
push ecx
push edi
call dword [sym.imp.USER32.dll_GetWindowTextA]
lea edx, [esp + 8]
push edx
call fcn.00483438
mov ecx, dword [esp + 0x68]
add esp, 4
pop edi
mov dword [ecx], eax
pop esi
add esp, 0x50
ret 0xc
mov edx, dword [esp + 0x64]
lea ecx, [esp + 8]
mov eax, dword [edx]
push eax
push 0x68212c
push ecx
call fcn.00484b4e
add esp, 0xc
lea edx, [esp + 8]
push edx
push edi
call dword [sym.imp.USER32.dll_SetWindowTextA]
pop edi
pop esi
add esp, 0x50
ret 0xc
Function at 0x476df0
Capabilities:
Capture webcam image

Disassembly:
mov eax, dword [esp + 8]
push ebx
push esi
mov esi, ecx
mov eax, dword [eax + 4]
cmp dword [esi + 0xec], 1
jne 0x476e93
test eax, eax
jbe 0x476e93
mov ecx, dword [esi + 0xbc]
test ecx, ecx
jle 0x476e93
mov ecx, dword [esi + 0x1c]
push edi
push 0
push eax
push 0x419
push ecx
call dword [sym.imp.USER32.dll_SendMessageA]
mov edi, eax
mov eax, dword [esi + 0xbc]
inc edi
test eax, eax
jne 0x476e3e
xor esi, esi
jmp 0x476e44
mov esi, dword [esi + 0xb4]
add esi, 4
xor ebx, ebx
test edi, edi
jbe 0x476e6f
push ebp
mov ebp, edi
add esi, 6
push esi
call fcn.00472d40
add esi, eax
push esi
mov ebx, esi
call fcn.00472d40
add esp, 8
add esi, eax
dec edi
dec ebp
jne 0x476e50
pop ebp
test edi, edi
pop edi
jne 0x476e93
test ebx, ebx
je 0x476e93
mov edx, dword [esp + 0x10]
push 0x4e
add edx, 0x10
push ebx
push edx
call fcn.00483f40
add esp, 0xc
mov eax, 1
pop esi
pop ebx
ret 0xc
pop esi
xor eax, eax
pop ebx
ret 0xc

Function at 0x476fd5
Capabilities:
Capture webcam image

Disassembly:
sub esp, 0x44
push ebx
push ebp
push esi
mov esi, ecx
push edi
mov eax, dword [esi + 0x3c]
test eax, eax
je 0x4770ed
push eax
call dword [sym.imp.USER32.dll_IsWindow]
test eax, eax
je 0x4770ed
mov eax, dword [esi + 0x3c]
push eax
call fcn.0049646e
mov esi, eax
test esi, esi
je 0x4770ed
mov ebx, dword [esp + 0x58]
mov ecx, dword [esi + 0x1c]
mov ebp, dword [sym.imp.USER32.dll_SendMessageA]
push 0
push ebx
push 0x419
push ecx
call ebp
mov edi, eax
test edi, edi
jl 0x4770ed
mov ecx, esi
call fcn.00476f40
cmp edi, eax
jge 0x4770ed
mov eax, dword [esi + 0xc4]
mov edx, dword [esi + 0xc0]
mov dword [esp + 0x2c], eax
mov eax, dword [esp + 0x5c]
xor ecx, ecx
mov dword [esp + 0x28], edx
cmp eax, ecx
mov dword [esp + 0x30], eax
mov dword [esp + 0x34], ecx
mov dword [esp + 0x4c], ecx
mov dword [esp + 0x50], ecx
mov dword [esp + 0x38], edi
jne 0x477073
mov dword [esp + 0x34], 1
jmp 0x4770ce
mov edx, dword [esi + 0x1c]
lea ecx, [esp + 0x18]
push ecx
push ebx
push 0x433
push edx
call ebp
test eax, eax
je 0x4770ed
mov eax, dword [esp + 0x60]
mov ecx, dword [esp + 0x18]
mov edx, dword [esp + 0x24]
mov dword [esp + 0x10], ecx
mov dword [eax], 0
mov ecx, dword [esi + 0x1c]
lea eax, [esp + 0x10]
add edx, 2
push eax
push ecx
mov dword [esp + 0x1c], edx
call dword [sym.imp.USER32.dll_ClientToScreen]
mov edx, dword [esp + 0x10]
mov eax, dword [esp + 0x14]
mov dword [esp + 0x34], 3
mov dword [esp + 0x3c], edx
mov dword [esp + 0x40], eax
xor ecx, ecx
push ecx
lea ecx, [esp + 0x2c]
push ecx
push 0x7d8
call fcn.004764e0
pop edi
pop esi
pop ebp
mov eax, 1
pop ebx
add esp, 0x44
ret 0xc
pop edi
pop esi
pop ebp
xor eax, eax
pop ebx
add esp, 0x44
ret 0xc
Function at 0x496e12
Capabilities:
Get graphical window text

Disassembly:
push esi
mov esi, ecx
mov ecx, dword [esi + 0x38]
test ecx, ecx
jne 0x496e4a
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.00494e8d
push eax
push dword [esi + 0x1c]
call dword [sym.imp.USER32.dll_GetWindowTextA]
mov ecx, dword [esp + 8]
push 0xffffffffffffffff
call fcn.00494e65
jmp 0x496e56
mov eax, dword [ecx]
push dword [esp + 8]
call dword [eax + 0x88]
pop esi
ret 4

Function at 0x49860c
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 0x49864e
call fcn.0049ee35
mov esi, dword [eax + 0xc]
push 0xf0
push dword [esp + 0x14]
push esi
call dword [sym.imp.KERNEL32.dll_FindResourceA]
cmp eax, edi
je 0x49864e
push eax
push esi
call dword [sym.imp.KERNEL32.dll_LoadResource]
cmp eax, edi
jne 0x498645
xor eax, eax
jmp 0x498656
push eax
call dword [sym.imp.KERNEL32.dll_LockResource]
mov edi, eax
push edi
mov ecx, ebx
call fcn.0049865c
pop edi
pop esi
pop ebx
ret 4

Function at 0x49f365
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 0x49f393
push dword [esi]
call dword [sym.imp.KERNEL32.dll_TlsGetValue]
test eax, eax
je 0x49f3b1
push dword [esp + 0xc]
mov ecx, esi
push eax
call fcn.0049f2cb
jmp 0x49f3b1
mov eax, dword [esi + 0x14]
test eax, eax
je 0x49f3b1
push edi
push dword [esp + 0x10]
mov edi, dword [eax + 4]
mov ecx, esi
push eax
call fcn.0049f2cb
test edi, edi
mov eax, edi
jne 0x49f39b
pop edi
push ebx
call dword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
pop esi
pop ebx
ret 8
Function at 0x401328
Capabilities:
Enumerate pe sections

Disassembly:
mov ecx, dword [edi + 0x3c]
add ecx, edi
movzx edx, word [ecx + 0x14]
push esi
lea esi, [edx + ecx + 0x18]
movzx edx, word [ecx + 6]
xor eax, eax
test edx, edx
jbe 0x401356
lea ecx, [esi + 0x10]
mov esi, dword [ecx]
test esi, esi
je 0x401350
mov eax, dword [ecx + 4]
add eax, esi
add eax, edi
add ecx, 0x28
dec edx
jne 0x401343
pop esi
ret
Function at 0x4013dc
Capabilities:
Allocate or change rwx memory
Enumerate pe sections

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x14
and dword [ebp - 0x10], 0
push ebx
mov ebx, dword [ebp + 8]
push esi
mov esi, dword [ebx + 0x3c]
add esi, ebx
cmp dword [esi], 0x4550
je 0x401418
mov esi, 0x402010
push 0x4010e0
mov eax, esi
call fcn.004018fd
push 0x401238
call fcn.004018c4
jmp 0x401530
push edi
push 0x40
push 0x1000
push dword [esi + 0x50]
push 0
call dword [sym.imp.KERNEL32.dll_VirtualAlloc]
mov edi, eax
test edi, edi
mov dword [ebp - 8], edi
jne 0x40144f
mov esi, 0x402010
push 0x4010e0
mov eax, esi
call fcn.004018fd
push 0x401248
jmp 0x4015e5
mov edx, dword [esi + 0x54]
push ebx
call fcn.00401966
movzx eax, word [esi + 0x14]
pop ecx
movzx ecx, word [esi + 6]
test ecx, ecx
lea eax, [eax + esi + 0x18]
jbe 0x4014a2
lea edx, [eax + 0x14]
lea ebx, [eax + 0xc]
mov dword [ebp - 4], edx
lea esi, [eax + 0x10]
mov dword [ebp - 0xc], ecx
mov eax, dword [ebp - 4]
mov eax, dword [eax]
test eax, eax
je 0x401493
mov ecx, dword [ebp + 8]
mov edx, dword [esi]
add eax, ecx
push eax
mov eax, dword [ebx]
add eax, edi
call fcn.00401966
pop ecx
add dword [ebp - 4], 0x28
add esi, 0x28
add ebx, 0x28
dec dword [ebp - 0xc]
jne 0x401478
mov ecx, dword [edi + 0x3c]
add ecx, edi
mov edx, dword [ecx + 0xa4]
test edx, edx
mov dword [ebp - 0xc], edx
je 0x401519
mov eax, dword [ecx + 0xa0]
mov esi, edi
sub esi, dword [ecx + 0x34]
add eax, edi
test edx, edx
jbe 0x401519
mov ebx, dword [eax + 4]
sub ebx, 8
mov dword [ebp - 4], ebx
mov ebx, dword [eax]
mov dword [ebp - 0x14], ebx
lea ebx, [eax + 8]
mov dword [ebp + 8], ebx
je 0x40150e
mov edx, dword [ebp + 8]
movzx edx, word [edx]
movzx edx, dx
mov ebx, edx
shr ebx, 0xc
je 0x4014fd
cmp ebx, 3
jne 0x401537
and edx, 0xfff
add edx, dword [ebp - 0x14]
add edx, edi
add dword [edx], esi
sub dword [ebp - 4], 2
add dword [ebp + 8], 2
cmp dword [ebp - 4], 0
ja 0x4014db
mov edx, dword [ebp - 0xc]
sub edx, dword [eax + 4]
mov eax, dword [ebp + 8]
mov dword [ebp - 0xc], edx
jne 0x4014c5
cmp dword [ecx + 0x84], 0
je 0x40152c
mov ebx, dword [ecx + 0x80]
add ebx, edi
jne 0x4015ab
mov dword [ebp - 0x10], edi
pop edi
mov eax, dword [ebp - 0x10]
pop esi
pop ebx
leave
ret
mov esi, 0x402010
push 0x4010e0
mov eax, esi
call fcn.004018fd
push 0x401258
jmp 0x4015e5
add eax, edi
push eax
call dword [sym.imp.KERNEL32.dll_GetModuleHandleA]
test eax, eax
mov dword [ebp + 8], eax
je 0x4015b7
mov esi, dword [ebx]
add esi, edi
mov edi, dword [ebx + 0x10]
add edi, dword [ebp - 8]
jmp 0x40159f
mov ecx, 0x80000000
mov edx, eax
and edx, ecx
cmp edx, ecx
je 0x401584
mov ecx, dword [ebp - 8]
lea eax, [eax + ecx + 2]
jmp 0x401589
and eax, 0xffff
push eax
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
test eax, eax
je 0x4015cf
mov dword [edi], eax
add esi, 4
add edi, 4
mov eax, dword [esi]
test eax, eax
jne 0x40156e
mov edi, dword [ebp - 8]
add ebx, 0x14
mov eax, dword [ebx + 0xc]
test eax, eax
jne 0x401552
jmp 0x40152c
mov esi, 0x402010
push 0x4010e0
mov eax, esi
call fcn.004018fd
push 0x401268
jmp 0x4015e5
mov esi, 0x402010
push 0x4010e0
mov eax, esi
call fcn.004018fd
push 0x401278
call fcn.004018c4
jmp 0x40152f
Function at 0x401220
Capabilities:
Authenticate hmac
Encode data using add xor sub operations
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
push ebx
push esi
push edi
imul esi
not edx
rcl esi, 0x4d
inc esi
and esi, 0xef
imul esi
imul eax
inc edi
neg edi
neg edx
add esi, 0xf6
and edi, 0xaa
sub edi, 0x11
neg eax
dec esi
imul esi
inc edi
ror eax, 3
dec ebx
rcr edi, 0x36
not esi
inc edx
bswap ebx
rcr edi, 0xa8
bswap eax
rol eax, 0xde
bswap esi
and ebx, 0x53
and esi, 0x4a
imul eax
not esi
mov esi, 0x7c
and edx, 0x8f
or eax, 0x70
rcr eax, 0x83
and ebx, 0x75
bswap edi
rcl edx, 0x1a
ror edi, 0x84
and ebx, 0x1e
neg eax
rol esi, 0x5b
sbb eax, 0x1d
rcr ebx, 0xed
and edx, 0x92
or ebx, 0x8b
rol edi, 0xf3
ror edx, 0x47
or ebx, 0xdd
dec edx
xor ecx, ecx
xor edi, edi
and edx, 0xc8
mov ebx, 0xd7
neg ebx
rcr ebx, 0xa9
not edx
imul ebx
rcr esi, 0x48
mov ebx, 6
neg edi
inc edi
imul edx
or edx, 0x60
ror edi, 0x60
dec ebx
rol edx, 0x7e
neg eax
sub esi, 0xbc
rcl eax, 0xe6
imul edx
not edx
sub edi, 9
rcr edx, 0x59
dec edi
mov eax, 0x55
and eax, 0x71
ror ebx, 0x1f
add ebx, 0x5d
inc esi
ror esi, 0xd9
neg edi
rcl ebx, 0x24
sub eax, 0x39
inc edi
imul esi
rcl eax, 0x8b
inc ebx
inc edx
rcr edx, 0xc1
inc esi
ror edx, 0x15
ror edi, 0x8c
rcr eax, 0x4f
imul esi
ror eax, 0x5c
or esi, 0xd8
inc edi
or eax, 0xbc
not edi
inc eax
not esi
mov ecx, dword [ebp + 0xc]
sbb eax, 0xbd
bswap edx
and edi, 0x12
dec edx
imul edi
bswap eax
or esi, 0xf2
sub ebx, 0x66
sub esi, 0x50
imul ebx
dec eax
imul ebx
not eax
imul ebx
mov esi, 0x4e
not edi
inc edi
rol edi, 0x9a
inc edi
or ebx, 0x2c
ror esi, 0xe
neg edi
imul edi
inc edi
imul edi
sbb edi, 0xd0
inc edx
rcr ebx, 0xd9
or esi, 0xf5
mov esi, 0x6c
and eax, 0x14
ror eax, 0x1f
dec eax
sbb edx, 0x3d
rcr edx, 0x39
neg edi
ror ebx, 0x4c
rcr esi, 0xcf
mov ebx, 0xca
rcl edi, 0x47
dec edx
rol ebx, 0xc
rcl eax, 0xaa
not edi
neg ebx
and edx, 0xa3
rcl edi, 0x52
add esi, 2
bswap edx
dec ebx
mov edi, dword [ebp + 8]
mov eax, esi
xor eax, esi
xor esi, esi
not byte [edi]
xor esi, eax
xor esi, ebx
mov esi, esi
xor esi, eax
mov esi, esi
mov ebx, esi
mov ebx, esi
xor esi, esi
xor eax, esi
add byte [edi], 0x87
mov eax, esi
mov eax, eax
mov ebx, ebx
mov esi, eax
xor eax, eax
mov esi, eax
mov eax, eax
mov eax, eax
mov ebx, esi
sub byte [edi], 0x54
mov ebx, esi
xor ebx, ebx
mov eax, esi
mov ebx, esi
mov esi, ebx
mov eax, ebx
mov ebx, eax
xor ebx, ebx
mov eax, ebx
imul byte [edi]
inc edi
loop 0x4013d4
pop edi
pop esi
pop ebx
pop ebp
ret

Function at 0x4042d5
Capabilities:
Terminate process

Disassembly:
cmp ecx, dword [0x462fd0]
jne 0x4042df
repz ret
jmp fcn.00406055
Function at 0x404966
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.00403701
and dword [ebp - 4], 0
cmp dword [0x463e68], 0
mov ebx, eax
jne 0x404a17
push str.USER32.DLL
call dword [sym.imp.KERNEL32.dll_LoadLibraryA]
mov edi, eax
test edi, edi
je 0x404ac8
mov esi, dword [sym.imp.KERNEL32.dll_GetProcAddress]
push str.MessageBoxA
push edi
call esi
test eax, eax
je 0x404ac8
push eax
call fcn.0040368f
mov dword [esp], str.GetActiveWindow
push edi
mov dword [0x463e68], eax
call esi
push eax
call fcn.0040368f
mov dword [esp], str.GetLastActivePopup
push edi
mov dword [0x463e6c], eax
call esi
push eax
call fcn.0040368f
mov dword [esp], str.GetUserObjectInformationA
push edi
mov dword [0x463e70], eax
call esi
push eax
call fcn.0040368f
pop ecx
mov dword [0x463e78], eax
test eax, eax
je 0x404a17
push str.GetProcessWindowStation
push edi
call esi
push eax
call fcn.0040368f
pop ecx
mov dword [0x463e74], eax
mov eax, dword [0x463e74]
cmp eax, ebx
je 0x404a6f
cmp dword [0x463e78], ebx
je 0x404a6f
push eax
call fcn.0040370a
push dword [0x463e78]
mov esi, eax
call fcn.0040370a
pop ecx
pop ecx
mov edi, eax
test esi, esi
je 0x404a6f
test edi, edi
je 0x404a6f
call esi
test eax, eax
je 0x404a66
lea ecx, [ebp - 8]
push ecx
push 0xc
lea ecx, [ebp - 0x14]
push ecx
push 1
push eax
call edi
test eax, eax
je 0x404a66
test byte [ebp - 0xc], 1
jne 0x404a6f
or dword [ebp + 0x10], 0x200000
jmp 0x404aa8
mov eax, dword [0x463e6c]
cmp eax, ebx
je 0x404aa8
push eax
call fcn.0040370a
pop ecx
test eax, eax
je 0x404aa8
call eax
mov dword [ebp - 4], eax
test eax, eax
je 0x404aa8
mov eax, dword [0x463e70]
cmp eax, ebx
je 0x404aa8
push eax
call fcn.0040370a
pop ecx
test eax, eax
je 0x404aa8
push dword [ebp - 4]
call eax
mov dword [ebp - 4], eax
push dword [0x463e68]
call fcn.0040370a
pop ecx
test eax, eax
je 0x404ac8
push dword [ebp + 0x10]
push dword [ebp + 0xc]
push dword [ebp + 8]
push dword [ebp - 4]
call eax
jmp 0x404aca
xor eax, eax
pop edi
pop esi
pop ebx
leave
ret
Function at 0x4167d0
Capabilities:
Allocate or change rwx memory

Disassembly:
push ebp
mov ebp, esp
push ecx
call dword [sym.imp.KERNEL32.dll_GetCurrentThreadId]
cmp dword [0x4238e4], eax
je 0x4167ec
mov eax, 0x10dd
jmp 0x4168c8
mov eax, dword [0x4238e8]
test eax, eax
jne 0x4168c8
push edi
mov edi, dword [ebp + 8]
test edi, edi
jne 0x416809
push 6
pop eax
jmp 0x4168c7
cmp dword [edi], 0
push ebx
push esi
jne 0x41681d
push 6
pop eax
mov dword [0x4238e8], eax
jmp 0x4168bf
push 0x18
call fcn.00414c02
mov esi, eax
test esi, esi
pop ecx
jne 0x416830
push 8
pop edi
jmp 0x4168a9
mov edi, dword [edi]
push 0
push dword [ebp + 0xc]
call fcn.004161bc
movzx ecx, byte [edi + 0x17]
mov ebx, dword [edi + 0x18]
xor edx, edx
sub ebx, ecx
cmp ecx, edx
je 0x41689e
cmp ecx, 0x17
ja 0x41689e
cmp dword [edi + 0x1c], eax
jne 0x41689e
lea eax, [ebp - 4]
push eax
push 0x40
push ecx
push ebx
mov dword [ebp - 4], edx
call dword [sym.imp.KERNEL32.dll_VirtualProtect]
test eax, eax
jne 0x416874
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov edi, eax
jmp 0x4168a9
mov eax, dword [ebp + 8]
mov dword [esi + 8], eax
mov dword [esi + 4], 1
mov dword [esi + 0x10], edi
mov dword [esi + 0xc], ebx
mov eax, dword [ebp - 4]
mov dword [esi + 0x14], eax
mov eax, dword [0x4238f4]
mov dword [esi], eax
mov dword [0x4238f4], esi
xor eax, eax
jmp 0x4168c5
cmp dword [0x4238e0], edx
push 9
pop edi
jne 0x4168af
mov dword [0x4238e8], edi
test esi, esi
je 0x4168ba
push esi
call sub.MSVCR71.dll_void___cdecl_operator_delete_void__
pop ecx
mov eax, edi
mov edi, dword [ebp + 8]
mov dword [0x4238ec], edi
pop esi
pop ebx
pop edi
leave
ret 8
Function at 0x417d90
Capabilities:
Enumerate files on windows

Disassembly:
push 0xffffffffffffffff
push 0x4b7dab
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x180
push ebx
push ebp
mov ebp, ecx
lea ecx, [esp + 8]
lea eax, [ebp + 0x40]
push eax
call fcn.004a9160
mov ecx, dword [esp + 8]
mov dword [esp + 0x190], 0
mov eax, dword [ecx - 8]
test eax, eax
je 0x417e12
lea edx, [esp + 0x10]
push 1
push edx
lea ecx, [esp + 0x10]
call fcn.004a6331
mov eax, dword [eax]
push 0x4e7d34
push eax
call fcn.00497824
add esp, 8
lea ecx, [esp + 0x10]
test eax, eax
setne bl
call fcn.004a93eb
test bl, bl
je 0x417e12
push 0x4e7d34
lea ecx, [esp + 0xc]
call fcn.004a977b
push 0x4e7d40
lea ecx, [esp + 0xc]
call fcn.004a977b
mov ecx, dword [esp + 8]
lea eax, [esp + 0x48]
push eax
push ecx
call dword [sym.imp.KERNEL32.dll_FindFirstFileA]
cmp eax, 0xffffffff
mov dword [esp + 0xc], eax
jne 0x417e4e
lea ecx, [esp + 8]
mov dword [esp + 0x190], eax
call fcn.004a93eb
jmp 0x417f19
push esi
mov esi, dword [esp + 0x19c]
push edi
mov edi, dword [sym.imp.USER32.dll_SendMessageA]
mov ebx, 0x23
test byte [esp + 0x50], 0x10
je 0x417ed2
lea edx, [esp + 0x7c]
push 0x4e7d3c
push edx
call fcn.00497824
add esp, 8
test eax, eax
je 0x417ed2
lea eax, [esp + 0x7c]
push 0x4e7d38
push eax
call fcn.00497824
add esp, 8
test eax, eax
je 0x417ed2
mov eax, dword [ebp + 0x1c]
lea edx, [esp + 0x1c]
push edx
push 0
lea ecx, [esp + 0x84]
push 0x1100
push eax
mov dword [esp + 0x2c], esi
mov dword [esp + 0x30], 0xffff0003
mov dword [esp + 0x4c], 0
mov dword [esp + 0x50], 1
mov dword [esp + 0x44], ecx
mov dword [esp + 0x34], ebx
call edi
mov edx, dword [esp + 0x14]
lea ecx, [esp + 0x50]
push ecx
push edx
call dword [sym.imp.KERNEL32.dll_FindNextFileA]
test eax, eax
jne 0x417e62
mov eax, dword [esp + 0x14]
push eax
call dword [sym.imp.KERNEL32.dll_FindClose]
mov ecx, dword [ebp + 0x1c]
push esi
push 2
push 0x1102
push ecx
call edi
lea ecx, [esp + 0x10]
mov dword [esp + 0x198], 0xffffffff
call fcn.004a93eb
pop edi
pop esi
mov ecx, dword [esp + 0x188]
pop ebp
pop ebx
mov dword fs:[0], ecx
add esp, 0x18c
ret 4

Function at 0x419190
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 eax
push 1
push 0
push ecx
push edx
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
mov esi, eax
test esi, esi
jne 0x4191f2
mov edx, dword [esp + 4]
lea eax, [esp + 8]
lea ecx, [esp + 0xc]
push eax
push ecx
push esi
push edx
mov dword [esp + 0x18], 0x104
call dword [sym.imp.ADVAPI32.dll_RegQueryValueA]
mov ecx, dword [esp + 0x11c]
lea eax, [esp + 0xc]
push eax
push ecx
call dword [sym.imp.KERNEL32.dll_lstrcpyA]
mov edx, dword [esp + 4]
push edx
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov eax, esi
pop esi
add esp, 0x10c
ret 0xc
Function at 0x419200
Capabilities:
Create process on windows

Disassembly:
push 0xffffffffffffffff
push 0x4b7f0b
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x20c
mov eax, dword [0x54738c]
push esi
push edi
mov edi, ecx
mov dword [esp + 8], eax
mov eax, dword [edi + 0x44]
mov dword [esp + 0x21c], 0
test eax, eax
jne 0x419338
mov ecx, dword [edi + 0x48]
lea esi, [edi + 0x48]
mov eax, dword [ecx - 8]
test eax, eax
jne 0x419266
lea ecx, [esp + 8]
mov dword [esp + 0x21c], 0xffffffff
call fcn.004a93eb
xor eax, eax
jmp 0x4193af
push str.mailto:
lea ecx, [esp + 0xc]
call fcn.004a9528
push esi
lea ecx, [esp + 0xc]
call fcn.004a97b7
mov ecx, dword [esp + 8]
push ebx
push ebp
mov ebp, dword [esp + 0x22c]
push ebp
push 0
push 0
push ecx
push str.open
push 0
call dword [sym.imp.SHELL32.dll_ShellExecuteA]
mov esi, eax
cmp esi, 0x20
ja 0x41938d
lea edx, [esp + 0x14]
mov ecx, edi
push edx
push str..htm
push closesocket
call fcn.00419190
test eax, eax
jne 0x41938d
mov ebx, dword [sym.imp.KERNEL32.dll_lstrcatA]
lea eax, [esp + 0x14]
push str._shellopencommand
push eax
call ebx
lea ecx, [esp + 0x14]
lea edx, [esp + 0x14]
push ecx
push edx
push closesocket
mov ecx, edi
call fcn.00419190
test eax, eax
jne 0x41938d
lea eax, [esp + 0x14]
push 0x4e7d50
push eax
call fcn.00498930
mov esi, eax
add esp, 8
test esi, esi
jne 0x41936c
lea ecx, [esp + 0x14]
push 0x4e7d4c
push ecx
call fcn.004988b0
mov esi, eax
add esp, 8
test esi, esi
jne 0x41936c
lea edx, [esp + 0x14]
push edx
call dword [sym.imp.KERNEL32.dll_lstrlenA]
lea esi, [esp + eax + 0x13]
jmp 0x41936f
lea edx, [edi + 0x4c]
lea ecx, [esp + 8]
push edx
call fcn.004a94d8
mov eax, dword [esp + 8]
mov ecx, dword [eax - 8]
test ecx, ecx
jne 0x41927e
lea ecx, [esp + 8]
mov dword [esp + 0x21c], 0xffffffff
call fcn.004a93eb
xor eax, eax
jmp 0x4193af
mov byte [esi], 0
push 0x4e7d48
push esi
call ebx
mov eax, dword [esp + 0x10]
push eax
push esi
call ebx
lea ecx, [esp + 0x14]
push ebp
push ecx
call dword [sym.imp.KERNEL32.dll_WinExec]
mov esi, eax
xor edx, edx
cmp esi, 0x20
setg dl
lea ecx, [esp + 0x10]
mov esi, edx
mov dword [esp + 0x224], 0xffffffff
call fcn.004a93eb
pop ebp
mov eax, esi
pop ebx
mov ecx, dword [esp + 0x214]
pop edi
pop esi
mov dword fs:[0], ecx
add esp, 0x218
ret 4