joyce8/EMBER2024-capa huggingface dataset:
Function at 0x44a3e0
Capabilities:
Access peb ldr_data
Get number of processors

Disassembly:
push 0xffffffffffffffff
push 0x47e413
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
push ecx
push ebp
push esi
mov esi, ecx
push edi
mov dword [esp + 0xc], esi
call fcn.00470fe1
lea edi, [esi + 0x64]
mov dword [esp + 0x18], 0
mov dword [edi + 4], 0
mov dword [edi], vtable.CBrush.0
mov eax, dword [esp + 0x2c]
mov ebp, dword [esp + 0x24]
mov ecx, dword [esp + 0x30]
mov dword [esi + 0x3c], eax
mov eax, ebp
mov dword [esi], method.CEdit.virtual_0
mov dword [esi + 0x40], ecx
mov dword [esi + 0x44], 0
mov ecx, dword [eax]
lea edx, [esi + 0x48]
mov byte [esp + 0x18], 1
mov dword [edx], ecx
mov ecx, dword [eax + 4]
mov dword [edx + 4], ecx
mov ecx, dword [eax + 8]
mov dword [edx + 8], ecx
mov eax, dword [eax + 0xc]
mov ecx, dword [esp + 0x40]
mov dword [edx + 0xc], eax
mov eax, dword [esp + 0x44]
push eax
mov dword [esi + 0x5c], ecx
mov dword [esi + 0x60], eax
call dword [sym.imp.GDI32.dll_CreateSolidBrush]
push eax
mov ecx, edi
call fcn.0047667d
mov edx, dword [esp + 0x28]
mov eax, dword [esp + 0x20]
push edx
push eax
push ebp
push 0x50800044
mov ecx, esi
call fcn.00477bdc
test eax, eax
je 0x44a4fc
mov ecx, dword [esp + 0x3c]
call fcn.004766aa
mov ecx, dword [esi + 0x1c]
mov ebp, dword [sym.imp.USER32.dll_SendMessageA]
push 0
push eax
push 0x30
push ecx
mov dword [esi + 0x58], eax
call ebp
mov edi, dword [esp + 0x34]
test edi, edi
je 0x44a4c0
push edi
mov ecx, esi
call fcn.00473d08
mov ecx, esi
call fcn.0044a660
cmp dword [esp + 0x38], 1
jne 0x44a4f5
or ecx, 0xffffffff
xor eax, eax
repne scasb al, byte es:[edi]
mov edx, dword [esi + 0x1c]
push 0xffffffffffffffff
not ecx
dec ecx
push ecx
push 0xb1
push edx
call ebp
mov eax, dword [esi + 0x1c]
push 0
push 0
push 0xb7
push eax
call ebp
mov ecx, esi
call fcn.00473e43
mov ecx, dword [esp + 0x10]
mov eax, esi
pop edi
pop esi
pop ebp
mov dword fs:[0], ecx
add esp, 0x10
ret 0x28
Function at 0x44cf20
Capabilities:
Check for software breakpoints

Disassembly:
push esi
mov esi, dword [esp + 8]
cmp dword [esi + 0x10], 0xca
jne 0x44cf53
push esi
call fcn.00450030
mov eax, dword [esi + 0x40]
add esp, 4
test eax, eax
je 0x44cf4c
mov dword [esi + 0x10], 0xcf
mov eax, 1
pop esi
ret
mov dword [esi + 0x10], 0xcb
mov eax, dword [esi + 0x10]
cmp eax, 0xcb
jne 0x44cfd9
mov eax, dword [esi + 0x1b0]
mov ecx, dword [eax + 0x10]
test ecx, ecx
je 0x44cfc2
mov eax, dword [esi + 8]
test eax, eax
je 0x44cf77
push esi
call dword [eax]
add esp, 4
mov ecx, dword [esi + 0x1b0]
push esi
call dword [ecx]
add esp, 4
test eax, eax
je 0x44cfbe
cmp eax, 2
je 0x44cfc2
mov ecx, dword [esi + 8]
test ecx, ecx
je 0x44cf6a
cmp eax, 3
je 0x44cf9d
cmp eax, 1
jne 0x44cf6a
mov eax, dword [ecx + 4]
inc eax
mov dword [ecx + 4], eax
mov eax, dword [esi + 8]
mov ecx, dword [eax + 8]
mov edx, dword [eax + 4]
cmp edx, ecx
jl 0x44cf6a
mov edx, dword [esi + 0x13c]
add edx, ecx
mov dword [eax + 8], edx
jmp 0x44cf6a
xor eax, eax
pop esi
ret
mov eax, dword [esi + 0x90]
push esi
mov dword [esi + 0x98], eax
call fcn.0044d000
add esp, 4
pop esi
ret
cmp eax, 0xcc
je 0x44cfe8
mov ecx, dword [esi]
push esi
call dword [ecx]
add esp, 4
push esi
call fcn.0044d000
add esp, 4
pop esi
ret

Function at 0x458b60
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 0x458c03
test eax, eax
jbe 0x458c03
mov ecx, dword [esi + 0xbc]
test ecx, ecx
jle 0x458c03
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 0x458bae
xor esi, esi
jmp 0x458bb4
mov esi, dword [esi + 0xb4]
add esi, 4
xor ebx, ebx
test edi, edi
jbe 0x458bdf
push ebp
mov ebp, edi
add esi, 6
push esi
call fcn.0040bb30
add esi, eax
push esi
mov ebx, esi
call fcn.0040bb30
add esp, 8
add esi, eax
dec edi
dec ebp
jne 0x458bc0
pop ebp
test edi, edi
pop edi
jne 0x458c03
test ebx, ebx
je 0x458c03
mov edx, dword [esp + 0x10]
push 0x4e
add edx, 0x10
push ebx
push edx
call fcn.0045fe70
add esp, 0xc
mov eax, 1
pop esi
pop ebx
ret 0xc
pop esi
xor eax, eax
pop ebx
ret 0xc
Function at 0x458d45
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 0x458e5d
push eax
call dword [sym.imp.USER32.dll_IsWindow]
test eax, eax
je 0x458e5d
mov eax, dword [esi + 0x3c]
push eax
call fcn.00471433
mov esi, eax
test esi, esi
je 0x458e5d
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 0x458e5d
mov ecx, esi
call fcn.00458cb0
cmp edi, eax
jge 0x458e5d
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 0x458de3
mov dword [esp + 0x34], 1
jmp 0x458e3e
mov edx, dword [esi + 0x1c]
lea ecx, [esp + 0x18]
push ecx
push ebx
push 0x433
push edx
call ebp
test eax, eax
je 0x458e5d
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.00458260
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 0x45b080
Capabilities:
Check for time delay via gettickcount

Disassembly:
sub esp, 0xa0
push ebx
push ebp
mov ebp, dword [esp + 0xac]
push esi
push edi
push ebp
call sub.RASAPI32.dll_RasHangUpA
mov esi, dword [sym.imp.KERNEL32.dll_GetTickCount]
mov ecx, 0x28
xor eax, eax
lea edi, [esp + 0x10]
rep stosd dword es:[edi], eax
mov dword [esp + 0x10], 0xa0
call esi
mov edi, eax
call esi
sub eax, edi
cmp eax, 0xbb8
jae 0x45b0e6
mov ebx, dword [sym.imp.KERNEL32.dll_Sleep]
lea eax, [esp + 0x10]
push eax
push ebp
call sub.RASAPI32.dll_RasGetConnectStatusA
cmp eax, 6
je 0x45b0e6
push 0
call ebx
call esi
sub eax, edi
cmp eax, 0xbb8
jb 0x45b0c7
pop edi
pop esi
pop ebp
pop ebx
add esp, 0xa0
ret

Function at 0x45b470
Capabilities:
Create http request

Disassembly:
push esi
mov esi, ecx
cmp dword [esi], 0
jne 0x45b4a8
mov edx, dword [esi + 4]
xor eax, eax
push 0
push 0
mov ecx, dword [edx - 8]
test ecx, ecx
setne al
mov ecx, eax
neg ecx
sbb ecx, ecx
and ecx, edx
neg eax
sbb eax, eax
push ecx
and eax, 2
inc eax
push eax
push str.Mozilla_4.0__compatible__MSIE_6.0__Windows_NT_5.0_
call dword [sym.imp.WININET.dll_InternetOpenA]
mov dword [esi], eax
mov ecx, dword [esi]
xor eax, eax
test ecx, ecx
setne al
pop esi
ret
Function at 0x45c0d0
Capabilities:
Get socket status

Disassembly:
sub esp, 0x10c
mov eax, dword [ecx]
lea ecx, [esp]
push ecx
push 0
lea edx, [esp + 0x10]
push 0
push edx
push 0
mov dword [esp + 0x14], 0
mov dword [esp + 0x18], 0
mov dword [esp + 0x20], eax
mov dword [esp + 0x1c], 1
call sub.WS2_32.dll_select
cmp eax, 0xffffffff
jne 0x45c119
xor eax, eax
add esp, 0x10c
ret 4
mov edx, dword [esp + 0x110]
xor ecx, ecx
test eax, eax
setne cl
mov dword [edx], ecx
mov eax, 1
add esp, 0x10c
ret 4

Function at 0x45c590
Capabilities:
Access peb ldr_data

Disassembly:
push 0xffffffffffffffff
push 0x47eb30
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 8
push esi
mov esi, ecx
lea ecx, [esp + 4]
call fcn.0045c140
lea eax, [esp + 4]
lea ecx, [esi + 4]
push eax
mov dword [esp + 0x18], 0
call fcn.0045c1c0
lea ecx, [esp + 4]
push ecx
lea ecx, [esi + 0x14]
call fcn.0045c1c0
lea ecx, [esi + 0xc]
call fcn.0046f9bb
lea ecx, [esi + 0x10]
call fcn.0046f9bb
push 0xffffffffffffffff
push 0
lea ecx, [esi + 0x1c]
call fcn.0045d750
push 0xffffffffffffffff
push 0
lea ecx, [esi + 0x30]
call fcn.0045d750
push 0xffffffffffffffff
push 0
lea ecx, [esi + 0x44]
call fcn.0045d750
lea ecx, [esp + 8]
mov dword [esp + 0x14], 1
call fcn.0046fa30
lea ecx, [esp + 4]
mov dword [esp + 0x14], 0xffffffff
call fcn.0046fa30
mov ecx, dword [esp + 0xc]
pop esi
mov dword fs:[0], ecx
add esp, 0x14
ret
Function at 0x471dd7
Capabilities:
Get graphical window text

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

Function at 0x4734c5
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 0x473507
call fcn.00479282
mov esi, dword [eax + 0xc]
push 0xf0
push dword [esp + 0x14]
push esi
call dword [sym.imp.KERNEL32.dll_FindResourceA]
cmp eax, edi
je 0x473507
push eax
push esi
call dword [sym.imp.KERNEL32.dll_LoadResource]
cmp eax, edi
jne 0x4734fe
xor eax, eax
jmp 0x47350f
push eax
call dword [sym.imp.KERNEL32.dll_LockResource]
mov edi, eax
push edi
mov ecx, ebx
call fcn.00473515
pop edi
pop esi
pop ebx
ret 4

Function at 0x4797b2
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 0x4797e0
push dword [esi]
call dword [sym.imp.KERNEL32.dll_TlsGetValue]
test eax, eax
je 0x4797fe
push dword [esp + 0xc]
mov ecx, esi
push eax
call fcn.00479718
jmp 0x4797fe
mov eax, dword [esi + 0x14]
test eax, eax
je 0x4797fe
push edi
push dword [esp + 0x10]
mov edi, dword [eax + 4]
mov ecx, esi
push eax
call fcn.00479718
test edi, edi
mov eax, edi
jne 0x4797e8
pop edi
push ebx
call dword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
pop esi
pop ebx
ret 8
Function at 0x402000
Capabilities:
Terminate process

Disassembly:
push 0
call dword [sym.imp.kernel32.dll_GetModuleHandleA]
push 0
push 0x402022
push 0
push 0x25
push eax
call dword [sym.imp.user32.dll_DialogBoxParamA]
push 0
call dword [sym.imp.kernel32.dll_ExitProcess]
Function at 0x4013ca
Capabilities:
Encode data using xor

Disassembly:
jmp 0x404f80
mov dl, byte [esp + 4]
push ebx
push esi
mov esi, dword [esp + 0x10]
xor cl, cl
mov al, byte [esi]
mov bl, al
shr bl, 4
shl al, 4
or bl, al
mov al, cl
add al, dl
xor bl, al
inc cl
mov byte [esi], bl
inc esi
cmp cl, 6
jb 0x404f8c
pop esi
pop ebx
ret

Function at 0x4013e8
Capabilities:
Encode data using xor

Disassembly:
jmp 0x40d560
push ebx
mov ebx, dword [esp + 0xc]
push ebp
push esi
xor eax, eax
lea ebp, [ecx + 0x1028]
push edi
mov edi, dword [esp + 0x14]
mov esi, ebp
mov dword [ecx + 0x24], eax
mov dl, byte [eax + edi]
cmp dl, 0x7d
jne 0x40d589
mov dl, byte [eax + edi + 1]
inc eax
xor dl, 0x20
mov byte [esi], dl
mov edx, dword [ecx + 0x24]
inc esi
inc edx
inc eax
mov dword [ecx + 0x24], edx
cmp eax, ebx
jne 0x40d579
test edx, edx
mov ecx, ebp
mov eax, 0xffff
jle 0x40d5e4
mov esi, edx
mov dl, byte [ecx]
xor ebx, ebx
mov byte [esp + 0x18], dl
mov edx, eax
mov edi, dword [esp + 0x18]
and edx, 0xff
and edi, 0xff
mov bl, ah
xor edx, edi
inc ecx
mov ax, word [edx*2 + 0x460f40]
xor ax, bx
dec esi
jne 0x40d5a5
cmp ax, 0xf0b8
jne 0x40d5e4
pop edi
pop esi
pop ebp
mov eax, 1
pop ebx
ret 8
pop edi
pop esi
pop ebp
xor eax, eax
pop ebx
ret 8

Function at 0x401532
Capabilities:
Encode data using xor

Disassembly:
jmp 0x419120
mov dl, byte [esp + 4]
push ebx
push esi
mov esi, dword [esp + 0x10]
xor cl, cl
mov al, byte [esi]
mov bl, al
shr bl, 4
shl al, 4
or bl, al
mov al, cl
add al, dl
xor bl, al
inc cl
mov byte [esi], bl
inc esi
cmp cl, 6
jb 0x41912c
pop esi
pop ebx
ret 8
Function at 0x401573
Capabilities:
Get common file path
Set current directory

Disassembly:
jmp 0x42e450
sub esp, 0x98
push ebx
push ebp
push esi
push edi
mov esi, ecx
call sub.MFC42.DLL_AfxGetModuleState
mov eax, dword [eax + 4]
lea ecx, [esp + 0x44]
xor ebp, ebp
push ecx
mov dword [eax + 0x120], ebp
push 0x64
mov dword [esi + 0xba0c], ebp
mov dword [esi + 0xba10], ebp
call dword [sym.imp.KERNEL32.dll_GetCurrentDirectoryA]
mov edi, dword [sym.imp.KERNEL32.dll_SetCurrentDirectoryA]
lea edx, [esi + 0x520]
push edx
call edi
lea eax, [esp + 0x44]
push eax
call edi
mov ebx, dword [esi + 0x40]
mov ecx, esi
call fcn.00401cbc
mov ecx, esi
call fcn.0040117c
mov ecx, dword [esi + 0x20]
xor eax, eax
mov dword [esp + 0x18], ecx
mov ecx, 0x10f
lea edi, [ebx + 0x2d228]
mov dword [esi + 0x5c0], ebp
mov dword [esp + 0x14], esi
mov dword [esp + 0x10], ebx
mov dword [esp + 0x28], 0x3e8
rep stosd dword es:[edi], eax
stosw word es:[edi], ax
mov ecx, 0x6d
xor eax, eax
lea edi, [ebx + 0x2d666]
rep stosd dword es:[edi], eax
stosb byte es:[edi], al
mov ecx, esi
mov dword [esi + 0x5ec], ebp
call fcn.0040107d
lea edx, [esp + 0x10]
mov ecx, esi
push edx
mov dword [esi + 0xb9d8], 2
call fcn.00401e0b
mov ecx, esi
mov dword [esi + 0xb9d8], ebp
call fcn.004015a5
call sub.MFC42.DLL_AfxGetModuleState
mov eax, dword [eax + 4]
pop edi
pop esi
pop ebp
mov dword [eax + 0x120], 1
pop ebx
add esp, 0x98
ret
Function at 0x40175d
Capabilities:
Read file on windows

Disassembly:
jmp 0x40dd50
sub esp, 0x28
lea eax, [esp + 8]
push ebx
mov ebx, ecx
lea ecx, [esp + 8]
push eax
mov edx, dword [ebx + 0x20]
push ecx
push edx
call dword [sym.imp.KERNEL32.dll_ClearCommError]
mov eax, dword [esp + 8]
test eax, eax
jbe 0x40dd7b
xor eax, eax
pop ebx
add esp, 0x28
ret 8
mov eax, dword [esp + 0x34]
mov ecx, dword [esp + 0x10]
cmp eax, ecx
mov edx, eax
jb 0x40dd8b
mov edx, ecx
push ebp
push esi
test edx, edx
mov dword [esp + 0xc], edx
push edi
jbe 0x40de5e
lea ebp, [ebx + 0x5c]
mov ecx, 5
mov esi, ebp
lea edi, [esp + 0x24]
rep movsd dword es:[edi], dword [esi]
mov eax, dword [ebx + 0x20]
lea ecx, [esp + 0x24]
push ecx
lea ecx, [esp + 0x14]
push ecx
push edx
mov edx, dword [esp + 0x48]
push edx
push eax
call dword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
jne 0x40de5e
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0x3e5
jne 0x40de42
mov eax, dword [ebx + 0x20]
mov ecx, 5
mov esi, ebp
lea edi, [esp + 0x24]
rep movsd dword es:[edi], dword [esi]
lea ecx, [esp + 0x10]
push 1
lea edx, [esp + 0x28]
push ecx
push edx
push eax
call dword [sym.imp.KERNEL32.dll_GetOverlappedResult]
test eax, eax
jne 0x40de5e
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0x3e4
jne 0x40de4a
mov eax, dword [ebx + 0x20]
mov ecx, 5
mov esi, ebp
lea edi, [esp + 0x24]
rep movsd dword es:[edi], dword [esi]
lea ecx, [esp + 0x10]
push 1
lea edx, [esp + 0x28]
push ecx
push edx
push eax
call dword [sym.imp.KERNEL32.dll_GetOverlappedResult]
test eax, eax
je 0x40de00
mov eax, dword [esp + 0x10]
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x28
ret 8
mov dword [esp + 0x10], 0
mov edx, dword [ebx + 0x20]
lea eax, [esp + 0x18]
lea ecx, [esp + 0x14]
push eax
push ecx
push edx
call dword [sym.imp.KERNEL32.dll_ClearCommError]
mov eax, dword [esp + 0x10]
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x28
ret 8
Function at 0x40177b
Capabilities:
Delete file
Get common file path
Set current directory

Disassembly:
jmp 0x42e580
sub esp, 0x98
push ebx
push ebp
push esi
push edi
mov esi, ecx
call sub.MFC42.DLL_AfxGetModuleState
mov eax, dword [eax + 4]
lea ecx, [esp + 0x44]
xor edi, edi
push ecx
mov dword [eax + 0x120], edi
push 0x64
mov dword [esi + 0xba0c], edi
mov dword [esi + 0xba10], edi
call dword [sym.imp.KERNEL32.dll_GetCurrentDirectoryA]
mov ebp, dword [sym.imp.KERNEL32.dll_SetCurrentDirectoryA]
lea edx, [esi + 0x520]
push edx
call ebp
mov eax, dword [esi + 0x584]
push eax
call dword [sym.imp.KERNEL32.dll_DeleteFileA]
mov ecx, esi
call fcn.00402063
mov eax, dword [esi + 0x584]
mov edx, dword [esi + 0xb9e8]
lea ebx, [esi + 0xb9e8]
push edi
push 0x1001
push eax
mov ecx, ebx
call dword [edx + 0x28]
test eax, eax
jne 0x42e606
push edi
push edi
push str.Cant_Create_Back_Up_File
call sub.MFC42.DLL_AfxMessageBox
lea eax, [esp + 0x44]
push eax
call ebp
mov ebp, dword [esi + 0x40]
mov ecx, esi
call fcn.00401cbc
mov ecx, esi
call fcn.0040117c
mov ecx, dword [esi + 0x20]
mov dword [esi + 0x5c0], edi
mov dword [esp + 0x18], ecx
mov ecx, 0x10f
xor eax, eax
lea edi, [ebp + 0x2d228]
mov dword [esp + 0x14], esi
mov dword [esp + 0x10], ebp
mov dword [esp + 0x28], 0x3e8
rep stosd dword es:[edi], eax
stosw word es:[edi], ax
mov ecx, 0x6d
xor eax, eax
lea edi, [ebp + 0x2d666]
rep stosd dword es:[edi], eax
stosb byte es:[edi], al
xor edi, edi
mov ecx, esi
mov dword [esi + 0x5ec], edi
call fcn.0040107d
lea edx, [esp + 0x10]
mov ecx, esi
push edx
mov dword [esi + 0xb9d8], 2
call fcn.00401bf9
mov eax, dword [ebx]
mov ecx, ebx
call dword [eax + 0x54]
mov ecx, esi
mov dword [esi + 0xb9d8], edi
call fcn.004015a5
call sub.MFC42.DLL_AfxGetModuleState
mov ecx, dword [eax + 4]
pop edi
pop esi
pop ebp
mov dword [ecx + 0x120], 1
pop ebx
add esp, 0x98
ret
Function at 0x40186b
Capabilities:
Write file on windows

Disassembly:
jmp 0x40dfe0
sub esp, 0x20
lea edx, [esp + 0x28]
push ebx
mov ebx, ecx
push ebp
push esi
lea ebp, [ebx + 0x48]
push edi
mov ecx, 5
mov esi, ebp
lea edi, [esp + 0x1c]
mov eax, dword [ebx + 0x20]
rep movsd dword es:[edi], dword [esi]
lea ecx, [esp + 0x1c]
push ecx
mov ecx, dword [esp + 0x3c]
push edx
mov edx, dword [esp + 0x3c]
push ecx
push edx
push eax
call dword [sym.imp.KERNEL32.dll_WriteFile]
test eax, eax
jne 0x40e0b1
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0x3e5
jne 0x40e095
mov eax, dword [ebx + 0x20]
mov ecx, 5
mov esi, ebp
lea edi, [esp + 0x1c]
rep movsd dword es:[edi], dword [esi]
lea ecx, [esp + 0x38]
push 1
lea edx, [esp + 0x20]
push ecx
push edx
push eax
call dword [sym.imp.KERNEL32.dll_GetOverlappedResult]
test eax, eax
jne 0x40e0b1
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0x3e4
jne 0x40e09d
mov eax, dword [ebx + 0x20]
mov ecx, 5
mov esi, ebp
lea edi, [esp + 0x1c]
rep movsd dword es:[edi], dword [esi]
lea ecx, [esp + 0x38]
push 1
lea edx, [esp + 0x20]
push ecx
push edx
push eax
call dword [sym.imp.KERNEL32.dll_GetOverlappedResult]
test eax, eax
je 0x40e053
mov eax, dword [esp + 0x38]
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x20
ret 8
mov dword [esp + 0x38], 0
mov edx, dword [ebx + 0x20]
lea eax, [esp + 0x10]
lea ecx, [esp + 0x34]
push eax
push ecx
push edx
call dword [sym.imp.KERNEL32.dll_ClearCommError]
mov eax, dword [esp + 0x38]
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x20
ret 8
Function at 0x401d39
Capabilities:
Encode data using xor

Disassembly:
jmp 0x40d3b0
push ebx
mov ebx, dword [esp + 8]
push ebp
mov ebp, dword [esp + 0x10]
push esi
mov esi, ecx
push edi
mov edi, ebx
test ebp, ebp
mov dword [esi + 0x20], 0
jle 0x40d41b
mov dword [esp + 0x18], ebp
mov al, byte [edi]
mov ecx, esi
push eax
lea eax, [esp + 0x18]
push eax
inc edi
call fcn.00401c94
test eax, eax
je 0x40d3fe
mov ecx, dword [esi + 0x20]
mov byte [esi + ecx + 0x28], 0x7d
mov ecx, dword [esi + 0x20]
mov dl, byte [esp + 0x14]
inc ecx
mov eax, ecx
mov dword [esi + 0x20], ecx
mov byte [eax + esi + 0x28], dl
jmp 0x40d409
mov eax, dword [esi + 0x20]
mov cl, byte [esp + 0x14]
mov byte [esi + eax + 0x28], cl
mov eax, dword [esi + 0x20]
inc eax
mov dword [esi + 0x20], eax
mov eax, dword [esp + 0x18]
dec eax
mov dword [esp + 0x18], eax
jne 0x40d3cf
test ebp, ebp
mov eax, 0xffff
mov ecx, ebx
jle 0x40d455
mov edi, ebp
mov dl, byte [ecx]
inc ecx
mov byte [esp + 0x18], dl
mov edx, eax
mov ebx, dword [esp + 0x18]
and edx, 0xff
and ebx, 0xff
xor edx, ebx
xor ebx, ebx
mov bl, ah
mov ax, word [edx*2 + 0x460f40]
xor ax, bx
dec edi
jne 0x40d428
not eax
xor ecx, ecx
lea edx, [esp + 0x14]
mov cl, ah
push eax
mov byte [esp + 0x1c], cl
push edx
mov ecx, esi
call fcn.00401c94
test eax, eax
je 0x40d48b
mov eax, dword [esi + 0x20]
mov byte [esi + eax + 0x28], 0x7d
mov ecx, dword [esi + 0x20]
inc ecx
mov dword [esi + 0x20], ecx
mov eax, ecx
mov cl, byte [esp + 0x14]
mov byte [eax + esi + 0x28], cl
jmp 0x40d496
mov edx, dword [esi + 0x20]
mov al, byte [esp + 0x14]
mov byte [esi + edx + 0x28], al
mov eax, dword [esi + 0x20]
mov ecx, dword [esp + 0x18]
lea edx, [esp + 0x14]
inc eax
push ecx
push edx
mov ecx, esi
mov dword [esi + 0x20], eax
call fcn.00401c94
test eax, eax
je 0x40d4cd
mov eax, dword [esi + 0x20]
mov byte [esi + eax + 0x28], 0x7d
mov edx, dword [esi + 0x20]
mov cl, byte [esp + 0x14]
inc edx
mov eax, edx
mov dword [esi + 0x20], edx
mov byte [eax + esi + 0x28], cl
jmp 0x40d4d8
mov edx, dword [esi + 0x20]
mov al, byte [esp + 0x14]
mov byte [esi + edx + 0x28], al
mov ecx, dword [esi + 0x20]
pop edi
inc ecx
mov eax, ecx
mov dword [esi + 0x20], ecx
mov byte [eax + esi + 0x28], 0x7e
mov eax, dword [esi + 0x20]
inc eax
mov dword [esi + 0x20], eax
pop esi
pop ebp
pop ebx
ret 8
Function at 0x4021a3
Capabilities:
Create process on windows

Disassembly:
jmp 0x43f970
sub esp, 0x11c
mov ecx, dword [esp + 0x120]
mov eax, 0x64
push esi
mov dword [esp + 4], eax
mov dword [esp + 0x1c], eax
mov dword [esp + 0x20], eax
mov dword [esp + 0x2c], eax
mov ax, word [esp + 0x128]
push ecx
lea edx, [esp + 0x5c]
xor esi, esi
push 0x469250
push edx
mov dword [esp + 0x14], esi
mov dword [esp + 0x18], esi
mov dword [esp + 0x1c], esi
mov dword [esp + 0x20], esi
mov dword [esp + 0x24], esi
mov dword [esp + 0x3c], 5
mov word [esp + 0x40], ax
mov word [esp + 0x42], si
mov dword [esp + 0x44], esi
mov dword [esp + 0x48], esi
mov dword [esp + 0x4c], esi
mov dword [esp + 0x50], esi
call dword [sym.imp.MSVCRT.dll_sprintf]
add esp, 0xc
lea eax, [esp + 0x48]
lea ecx, [esp + 4]
lea edx, [esp + 0x58]
push eax
push ecx
push esi
push esi
push 0x4000000
push 1
push esi
push esi
push edx
push esi
call dword [sym.imp.KERNEL32.dll_CreateProcessA]
mov ecx, dword [esp + 0x48]
pop esi
neg eax
sbb eax, eax
and eax, ecx
add esp, 0x11c
ret 8
Function at 0x407c10
Capabilities:
Query or enumerate registry key

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x400
mov eax, dword [0x4934c4]
xor eax, ebp
mov dword [ebp - 4], eax
mov eax, dword [ebp + 8]
push esi
push edi
lea edx, [ebp - 0x3f4]
push edx
push 0x20019
push 0
push str.TypeLib
push SysReAllocStringLen
mov dword [ebp - 0x3fc], eax
mov dword [ebp - 0x400], ecx
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
mov edi, dword [sym.imp.ADVAPI32.dll_RegCloseKey]
push SysReAllocStringLen
mov esi, eax
call edi
test esi, esi
je 0x407c77
pop edi
xor al, al
pop esi
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.004553e3
mov esp, ebp
pop ebp
ret
mov ecx, dword [ebp - 0x3f4]
lea eax, [ebp - 0x3f0]
push eax
push 0x20019
push 0
push ebx
push ecx
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
mov edx, dword [ebp - 0x3f4]
push edx
mov esi, eax
call edi
test esi, esi
jne 0x407c65
mov edx, dword [ebp - 0x3f0]
push esi
push esi
push esi
push esi
lea eax, [ebp - 0x3f8]
push eax
lea ecx, [ebp - 0x3ec]
push ecx
push esi
push edx
mov dword [ebp - 0x3f8], 0x3e8
call dword [sym.imp.ADVAPI32.dll_RegEnumKeyExA]
mov esi, eax
mov eax, dword [ebp - 0x3f0]
push eax
call edi
test esi, esi
jne 0x407c65
mov ecx, dword [ebp - 0x400]
mov edx, dword [ebp - 0x3fc]
push ecx
push edx
lea eax, [ebp - 0x3ec]
push str._d._d
push eax
call fcn.00456525
mov ecx, dword [ebp - 4]
add esp, 0x10
pop edi
xor ecx, ebp
mov al, 1
pop esi
call fcn.004553e3
mov esp, ebp
pop ebp
ret