joyce8/EMBER2024-capa huggingface dataset:
Function at 0x44fd5c
Capabilities:
Inspect load icon resource

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffefc
push ebx
push esi
test dl, dl
je 0x44fd73
add esp, 0xfffffff0
call fcn.00403a44
mov byte [ebp - 1], dl
mov ebx, eax
xor edx, edx
mov eax, ebx
call fcn.00419ba8
mov eax, dword [0x458630]
cmp word [eax + 2], 0
jne 0x44fd9b
mov eax, dword [0x458630]
mov dword [eax + 4], ebx
mov dword [eax], fcn.00451434
mov eax, dword [0x458714]
cmp word [eax + 2], 0
jne 0x44fdb5
mov eax, dword [0x458714]
mov dword [eax + 4], ebx
mov dword [eax], fcn.0045162c
mov byte [ebx + 0x34], 0
mov dl, 1
mov eax, dword [0x411ea0]
call fcn.004036f0
mov dword [ebx + 0x90], eax
mov dl, 1
mov eax, dword [0x411ea0]
call fcn.004036f0
mov dword [ebx + 0xa8], eax
xor eax, eax
mov dword [ebx + 0x60], eax
xor eax, eax
mov dword [ebx + 0x84], eax
mov dword [ebx + 0x5c], 0xff000018
mov dword [ebx + 0x78], 0x1f4
mov byte [ebx + 0x7c], 1
xor eax, eax
mov dword [ebx + 0x80], eax
mov dword [ebx + 0x74], 0x9c4
mov byte [ebx + 0x88], 0
mov byte [ebx + 0x9d], 1
mov byte [ebx + 0xb4], 1
mov dl, 1
mov eax, dword [0x41c0dc]
call fcn.00423454
mov esi, eax
mov dword [ebx + 0x98], esi
push 0x44ff3c
mov eax, dword [0x45851c]
mov eax, dword [eax]
push eax
call sub.user32.dll_LoadIconA
mov edx, eax
mov eax, esi
call fcn.00423824
mov eax, dword [ebx + 0x98]
mov dword [eax + 0x14], ebx
mov dword [eax + 0x10], 0x451bdc
push pe_nt_image_headers32
lea eax, [ebp - 0x101]
push eax
mov eax, dword [0x45851c]
mov eax, dword [eax]
push eax
call sub.kernel32.dll_GetModuleFileNameA_1
lea eax, [ebp - 0x101]
push eax
lea eax, [ebp - 0x101]
push eax
call sub.user32.dll_OemToCharA
lea eax, [ebp - 0x101]
mov dl, 0x5c
call fcn.0040c910
test eax, eax
je 0x44feaa
lea edx, [eax + 1]
lea eax, [ebp - 0x101]
call fcn.00408aec
lea eax, [ebp - 0x101]
mov dl, 0x2e
call fcn.0040c938
test eax, eax
je 0x44febe
mov byte [eax], 0
lea eax, [ebp - 0x101]
inc eax
push eax
call sub.user32.dll_CharLowerA
lea eax, [ebx + 0x8c]
lea edx, [ebp - 0x101]
mov ecx, pe_nt_image_headers32
call fcn.004046e0
mov eax, dword [0x4583a0]
cmp byte [eax], 0
jne 0x44fef2
mov eax, ebx
call fcn.00450064
mov byte [ebx + 0x59], 1
mov byte [ebx + 0x5a], 1
mov byte [ebx + 0x5b], 1
mov byte [ebx + 0x9e], 1
xor eax, eax
mov dword [ebx + 0xa0], eax
mov eax, ebx
call fcn.00451db8
mov eax, ebx
call fcn.0045277c
mov eax, ebx
cmp byte [ebp - 1], 0
je 0x44ff32
call fcn.00403a9c
pop dword fs:[0]
add esp, 0xc
mov eax, ebx
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x4502e4
Capabilities:
Enumerate gui resources

Disassembly:
push ebx
push esi
add esp, 0xfffffff8
mov ebx, eax
mov eax, dword [0x459bdc]
cmp dword [eax + 0x30], 0
je 0x45038e
cmp dword [ebx + 0x94], 0
jne 0x450388
mov eax, dword [ebx + 0x30]
mov dword [esp], eax
mov byte [esp + 4], dl
mov eax, esp
push eax
push 0x450274
call sub.user32.dll_EnumWindows
mov eax, dword [ebx + 0x90]
cmp dword [eax + 8], 0
je 0x450388
push 3
mov eax, dword [esp + 4]
push eax
call sub.user32.dll_GetWindow
mov esi, eax
mov dword [esp], esi
push 0xffffffffffffffec
push esi
call sub.user32.dll_GetWindowLongA
test al, 8
je 0x45034e
mov dword [esp], 0xfffffffe
mov eax, dword [ebx + 0x90]
mov esi, dword [eax + 8]
dec esi
cmp esi, 0
jl 0x450388
push 0x213
push 0
push 0
push 0
push 0
mov eax, dword [esp + 0x14]
push eax
mov edx, esi
mov eax, dword [ebx + 0x90]
call fcn.00414208
push eax
call sub.user32.dll_SetWindowPos
dec esi
cmp esi, 0xffffffff
jne 0x45035d
inc dword [ebx + 0x94]
pop ecx
pop edx
pop esi
pop ebx
ret

Function at 0x450ef0
Capabilities:
Get graphical window text

Disassembly:
push ebx
push esi
add esp, 0xffffff00
mov esi, edx
mov ebx, eax
cmp byte [ebx + 0xa4], 0
je 0x450f25
push pe_nt_image_headers32
lea eax, [esp + 4]
push eax
mov eax, dword [ebx + 0x30]
push eax
call sub.user32.dll_GetWindowTextA
mov ecx, eax
mov edx, esp
mov eax, esi
call fcn.00404560
jmp 0x450f32
mov eax, esi
mov edx, dword [ebx + 0x8c]
call fcn.004044c4
add esp, 0x100
pop esi
pop ebx
ret

Function at 0x451f94
Capabilities:
Hide graphical window

Disassembly:
push ebx
push esi
mov ebx, eax
mov esi, dword [ebx + 0x84]
test esi, esi
je 0x451fd5
mov eax, esi
call fcn.00438808
test al, al
je 0x451fd5
mov eax, dword [ebx + 0x84]
call fcn.00438530
push eax
call sub.user32.dll_IsWindowVisible
test eax, eax
je 0x451fd5
push 0
mov eax, dword [ebx + 0x84]
call fcn.00438530
push eax
call sub.user32.dll_ShowWindow
pop esi
pop ebx
ret
Function at 0x456538
Capabilities:
Copy file

Disassembly:
push ebp
mov ebp, esp
mov ecx, 7
push 0
push 0
dec ecx
jne 0x456540
push ebx
push esi
push edi
xor eax, eax
push ebp
push 0x456720
push dword fs:[eax]
mov dword fs:[eax], esp
lea edx, [ebp - 0x18]
mov eax, dword [0x4586ec]
mov eax, dword [eax]
call fcn.00451944
mov eax, dword [ebp - 0x18]
lea edx, [ebp - 0x14]
call fcn.00408930
mov edx, dword [ebp - 0x14]
lea eax, [ebp - 4]
mov ecx, 0x456738
call fcn.0040477c
lea edx, [ebp - 0x20]
mov eax, dword [0x4586ec]
mov eax, dword [eax]
call fcn.00451944
mov eax, dword [ebp - 0x20]
lea edx, [ebp - 0x1c]
call fcn.00408930
mov edx, dword [ebp - 0x1c]
lea eax, [ebp - 8]
mov ecx, 0x456754
call fcn.0040477c
lea edx, [ebp - 0x28]
mov eax, dword [0x4586ec]
mov eax, dword [eax]
call fcn.00451944
mov eax, dword [ebp - 0x28]
lea edx, [ebp - 0x24]
call fcn.00408930
push dword [ebp - 0x24]
push 0x456774
call fcn.00409dac
add esp, 0xfffffff8
fstp qword [esp]
wait
lea edx, [ebp - 0x2c]
mov eax, 0x45678c
call fcn.0040a9f8
push dword [ebp - 0x2c]
push 0x4567a0
lea eax, [ebp - 0xc]
mov edx, 4
call fcn.004047f0
lea edx, [ebp - 0x34]
mov eax, dword [0x4586ec]
mov eax, dword [eax]
call fcn.00451944
mov eax, dword [ebp - 0x34]
lea edx, [ebp - 0x30]
call fcn.00408930
push dword [ebp - 0x30]
push 0x4567b0
call fcn.00409dac
add esp, 0xfffffff8
fstp qword [esp]
wait
lea edx, [ebp - 0x38]
mov eax, 0x45678c
call fcn.0040a9f8
push dword [ebp - 0x38]
push 0x4567a0
lea eax, [ebp - 0x10]
mov edx, 4
call fcn.004047f0
xor eax, eax
push ebp
push 0x4566fb
push dword fs:[eax]
mov dword fs:[eax], esp
mov eax, dword [ebp - 0xc]
call fcn.0040887c
test al, al
jne 0x45669a
push 0
mov eax, dword [ebp - 0xc]
call fcn.00404930
push eax
mov eax, dword [ebp - 4]
call fcn.00404930
push eax
call sub.kernel32.dll_CopyFileA
push 0
mov eax, dword [ebp - 0x10]
call fcn.00404930
push eax
mov eax, dword [ebp - 8]
call fcn.00404930
push eax
call sub.kernel32.dll_CopyFileA
jmp 0x4566f1
mov eax, dword [ebp - 4]
call fcn.00455bfc
push edx
push eax
mov eax, dword [ebp - 0xc]
call fcn.00455bfc
cmp edx, dword [esp + 4]
jne 0x4566bb
cmp eax, dword [esp]
pop edx
pop eax
ja 0x4566f1
jmp 0x4566bf
pop edx
pop eax
jg 0x4566f1
push 0
mov eax, dword [ebp - 0xc]
call fcn.00404930
push eax
mov eax, dword [ebp - 4]
call fcn.00404930
push eax
call sub.kernel32.dll_CopyFileA
push 0
mov eax, dword [ebp - 0x10]
call fcn.00404930
push eax
mov eax, dword [ebp - 8]
call fcn.00404930
push eax
call sub.kernel32.dll_CopyFileA
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
jmp 0x456705
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x456727
lea eax, [ebp - 0x38]
mov edx, 0xe
call fcn.00404494
ret

Function at 0x401130
Capabilities:
Terminate process

Disassembly:
push ebp
mov ebp, esp
mov eax, dword [str.Usage:_nop___p____files__n___p___check_for_valid_DOT_n_______print_usage_nIf_no_files_are_specified__stdin_is_used_n]
push eax
push 0x404078
call dword [sym.imp.MSVCR90.dll_printf]
add esp, 8
mov ecx, dword [ebp + 8]
push ecx
call dword [sym.imp.MSVCR90.dll_exit]
pop ebp
ret
Function at 0x401700
Capabilities:
Accept command line arguments

Disassembly:
sub esp, 0x40
push ebx
push ebp
xor ebx, ebx
push esi
mov esi, dword [esp + 0x50]
push edi
mov dword [esp + 0x14], ebx
mov dword [esp + 0x10], 1
lea ebp, [esp + 0x18]
mov ecx, 8
xor eax, eax
lea edi, [esp + 0x30]
cmp ebx, 5
rep stosd dword es:[edi], eax
jge 0x401735
cmp byte [esi + 4], 0x2d
jne 0x401795
xor edi, edi
movsx eax, byte [esi + edi]
push eax
call fcn.004027bc
add esp, 4
test eax, eax
jne 0x40175b
mov al, byte [esi + edi]
cmp al, 0x41
jl 0x401753
cmp al, 0x46
jle 0x40175b
mov dword [esp + 0x10], 0
inc edi
cmp edi, 4
jl 0x401737
mov eax, dword [esp + 0x10]
test eax, eax
je 0x40179d
mov ecx, dword [esi]
lea edx, [esp + 0x54]
push 0x10
lea eax, [esp + 0x34]
push edx
push eax
mov dword [esp + 0x3c], ecx
call fcn.004025a0
add esp, 0xc
mov word [ebp], ax
inc ebx
add esi, 5
add ebp, 2
cmp ebx, 6
jl 0x40171d
jmp 0x40179d
mov dword [esp + 0x10], 0
xor ecx, ecx
xor esi, esi
mov ebx, ecx
mov edi, 0x4174a0
mov dword [esp + 0x28], ecx
mov dword [esp + 0x24], ebx
mov dword [esp + 0x2c], ecx
mov eax, dword [edi]
mov ecx, eax
and ecx, 0x8000000f
jns 0x4017c5
dec ecx
or ecx, 0xfffffff0
inc ecx
cdq
and edx, 0xf
mov ebp, 1
add eax, edx
xor edx, edx
shl ebp, cl
sar eax, 4
mov dx, word [esp + eax*2 + 0x18]
test edx, ebp
je 0x40180c
mov eax, esi
mov ecx, esi
cdq
and edx, 0xf
add eax, edx
sar eax, 4
and ecx, 0x8000000f
lea eax, [esp + eax*2 + 0x24]
jns 0x4017fe
dec ecx
or ecx, 0xfffffff0
inc ecx
mov edx, 1
shl edx, cl
or word [eax], dx
mov ebx, dword [esp + 0x24]
add edi, 4
inc esi
cmp edi, 0x417620
jl 0x4017b4
mov edi, dword [esp + 0x10]
test edi, edi
je 0x4018a5
mov eax, dword [esp + 0x26]
and ebx, 0xffff
mov ecx, dword [esp + 0x5c]
and eax, 0xffff
shl ebx, 0x10
or ebx, eax
mov esi, ebx
push esi
push str._08X
push ecx
call fcn.0040e75f
and esi, 0xffff0000
add esp, 0xc
cmp esi, 0x2000000
jne 0x401863
mov dword [esp + 0x14], 1
mov esi, dword [sym.imp.KERNEL32.dll_GetCommandLineA]
push 0x41c594
call esi
push eax
call fcn.00402520
add esp, 8
test eax, eax
je 0x401887
mov dword [esp + 0x14], 0
jmp 0x4018ae
push 0x41c590
call esi
push eax
call fcn.00402520
add esp, 8
test eax, eax
je 0x4018ae
mov dword [esp + 0x14], 1
jmp 0x4018ae
mov ecx, dword [esp + 0x5c]
call fcn.00412f14
mov esi, dword [esp + 0x58]
mov ecx, esi
call fcn.00412f14
test edi, edi
je 0x401924
lea edx, [esp + 0x28]
push edx
call fcn.00401030
mov ecx, dword [esp + 0x18]
lea eax, [esp + 0x1c]
push 8
push eax
mov edx, dword [ecx*4 + 0x41c534]
push edx
call fcn.00401360
mov eax, dword [esp + 0x2e]
mov ecx, dword [esp + 0x2c]
mov edx, dword [esp + 0x2a]
add esp, 0x10
and eax, 0xffff
and ecx, 0xffff
push eax
mov eax, dword [esp + 0x1c]
and edx, 0xffff
push ecx
and eax, 0xffff
push edx
push eax
push str._04X__04X__04X__04X
push esi
call fcn.0040e75f
add esp, 0x18
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x40
ret 0xc
mov ecx, dword [str.Invalid_serial_number]
push ecx
mov ecx, esi
call fcn.00412fe0
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x40
ret 0xc
Function at 0x40dd70
Capabilities:
Get graphical window text

Disassembly:
push ebp
mov ebp, esp
sub esp, 8
push ebx
push esi
push edi
mov esi, dword [ebp + 0x10]
push 0xf00021
mov edx, dword [esi + 4]
mov ecx, dword [esi]
mov eax, dword [esi + 0xc]
sub eax, edx
push eax
mov eax, dword [esi + 8]
sub eax, ecx
push eax
push edx
push ecx
mov ecx, dword [ebp + 0xc]
push ecx
call dword [sym.imp.GDI32.dll_PatBlt]
mov edi, dword [ebp + 8]
push edi
call dword [sym.imp.USER32.dll_GetWindowTextLengthA]
mov ebx, eax
lea eax, [eax + 5]
add eax, 3
and eax, 0xfffffffc
call fcn.00403ae0
mov dword [ebp - 4], esp
cmp dword [ebp - 4], 0
je 0x40de3b
add ebx, 2
mov eax, dword [ebp - 4]
push ebx
push eax
push edi
call dword [sym.imp.USER32.dll_GetWindowTextA]
test eax, eax
je 0x40de3b
mov bx, 0x140
mov edi, dword [ebp + 0x14]
mov eax, edi
and al, 0xf
cmp al, 0xc
je 0x40ddee
mov ebx, edi
and bx, 0xf
or bx, 0x150
test edi, 0x80
je 0x40ddf9
or bh, 8
and edi, 0x8000000
je 0x40de14
mov eax, dword [0x42337c]
mov ecx, dword [ebp + 0xc]
push eax
push ecx
call dword [sym.imp.GDI32.dll_SetTextColor]
mov dword [ebp - 8], eax
mov ecx, dword [ebp - 4]
mov edx, dword [ebp + 0xc]
movzx eax, bx
push eax
push esi
push 0xffffffffffffffff
push ecx
push edx
call dword [sym.imp.USER32.dll_DrawTextA]
test edi, edi
je 0x40de3b
mov eax, dword [ebp - 8]
mov ecx, dword [ebp + 0xc]
push eax
push ecx
call dword [sym.imp.GDI32.dll_SetTextColor]
lea esp, [ebp - 0x14]
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x40e210
Capabilities:
Extract resource via kernel32 functions

Disassembly:
mov eax, dword [esp + 8]
sub esp, 4
push ebx
push esi
mov esi, dword [esp + 0x10]
push edi
push ebp
push 2
push eax
push esi
call dword [sym.imp.KERNEL32.dll_FindResourceA]
mov edi, eax
test edi, edi
jne 0x40e23b
xor eax, eax
pop ebp
pop edi
pop esi
pop ebx
add esp, 4
ret 0x20
push edi
push esi
call dword [sym.imp.KERNEL32.dll_SizeofResource]
mov ebx, eax
push edi
push esi
call dword [sym.imp.KERNEL32.dll_LoadResource]
mov esi, eax
test esi, esi
jne 0x40e25f
xor eax, eax
pop ebp
pop edi
pop esi
pop ebx
add esp, 4
ret 0x20
push ebx
push 0x40
call dword [sym.imp.KERNEL32.dll_GlobalAlloc]
mov ebp, eax
test ebp, ebp
jne 0x40e27a
xor eax, eax
pop ebp
pop edi
pop esi
pop ebx
add esp, 4
ret 0x20
mov edi, ebp
mov ecx, ebx
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, ebx
and ecx, 3
rep movsb byte es:[edi], byte [esi]
mov eax, dword [esp + 0x20]
xor ecx, ecx
mov cl, ah
mov edx, eax
mov dword [esp + 0x10], 0
shl ecx, 8
shr edx, 0x10
mov byte [esp + 0x10], dl
xor edx, edx
or ecx, dword [esp + 0x10]
mov dl, al
shl edx, 0x10
mov eax, dword [esp + 0x28]
or ecx, edx
mov edx, eax
shr edx, 0x10
mov dword [ebp + 0x28], ecx
mov dword [esp + 0x10], 0
xor ecx, ecx
mov byte [esp + 0x10], dl
mov cl, ah
xor edx, edx
shl ecx, 8
mov dl, al
shl edx, 0x10
or ecx, dword [esp + 0x10]
or ecx, edx
mov eax, dword [esp + 0x24]
mov edx, eax
mov dword [ebp + 0x44], ecx
shr edx, 0x10
xor ecx, ecx
mov dword [esp + 0x10], 0
mov cl, ah
mov byte [esp + 0x10], dl
shl ecx, 8
xor edx, edx
or ecx, dword [esp + 0x10]
mov dl, al
shl edx, 0x10
mov eax, dword [esp + 0x2c]
or ecx, edx
xor edx, edx
mov dl, al
mov dword [ebp + 0x48], ecx
shl edx, 0x10
xor ecx, ecx
mov cl, ah
shl ecx, 8
shr eax, 0x10
or ecx, edx
xor edx, edx
mov dl, al
mov eax, dword [esp + 0x30]
or ecx, edx
xor edx, edx
mov dl, al
mov dword [ebp + 0x64], ecx
shl edx, 0x10
xor ecx, ecx
mov cl, ah
shl ecx, 8
shr eax, 0x10
or ecx, edx
xor edx, edx
mov dl, al
mov eax, dword [esp + 0x34]
or ecx, edx
xor edx, edx
mov dl, al
mov dword [ebp + 0x54], ecx
shl edx, 0x10
xor ecx, ecx
mov cl, ah
shl ecx, 8
push 0
shr eax, 0x10
or ecx, edx
xor edx, edx
mov dl, al
or ecx, edx
mov dword [ebp + 0x50], ecx
call dword [sym.imp.USER32.dll_GetDC]
mov edi, eax
push 0
push ebp
lea ecx, [ebp + 0x68]
push ecx
push 4
push ebp
push edi
call dword [sym.imp.GDI32.dll_CreateDIBitmap]
mov esi, eax
push edi
push 0
call dword [sym.imp.USER32.dll_ReleaseDC]
push ebp
call dword [sym.imp.KERNEL32.dll_GlobalFree]
mov eax, esi
pop ebp
pop edi
pop esi
pop ebx
add esp, 4
ret 0x20

Function at 0x410f7b
Capabilities:
Get graphical window text

Disassembly:
push esi
mov esi, ecx
mov ecx, dword [esi + 0x38]
test ecx, ecx
jne 0x410fb3
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.0041307e
push eax
push dword [esi + 0x1c]
call dword [sym.imp.USER32.dll_GetWindowTextA]
mov ecx, dword [esp + 8]
push 0xffffffffffffffff
call fcn.00413056
jmp 0x410fbf
mov eax, dword [ecx]
push dword [esp + 8]
call dword [eax + 0x88]
pop esi
ret 4
Function at 0x4124d0
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 0x412512
call fcn.00415007
mov esi, dword [eax + 0xc]
push 0xf0
push dword [esp + 0x14]
push esi
call dword [sym.imp.KERNEL32.dll_FindResourceA]
cmp eax, edi
je 0x412512
push eax
push esi
call dword [sym.imp.KERNEL32.dll_LoadResource]
cmp eax, edi
jne 0x412509
xor eax, eax
jmp 0x41251a
push eax
call dword [sym.imp.KERNEL32.dll_LockResource]
mov edi, eax
push edi
mov ecx, ebx
call fcn.00412520
pop edi
pop esi
pop ebx
ret 4

Function at 0x4154f4
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 0x415522
push dword [esi]
call dword [sym.imp.KERNEL32.dll_TlsGetValue]
test eax, eax
je 0x415540
push dword [esp + 0xc]
mov ecx, esi
push eax
call fcn.0041545a
jmp 0x415540
mov eax, dword [esi + 0x14]
test eax, eax
je 0x415540
push edi
push dword [esp + 0x10]
mov edi, dword [eax + 4]
mov ecx, esi
push eax
call fcn.0041545a
test edi, edi
mov eax, edi
jne 0x41552a
pop edi
push ebx
call dword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
pop esi
pop ebx
ret 8
Function at 0x401438
Capabilities:
Access peb ldr_data

Disassembly:
jmp 0x407756
mov eax, 0x418809
call fcn.00416730
push ecx
push esi
mov esi, ecx
mov dword [ebp - 0x10], esi
mov dword [esi], 0x41b3fc
lea ecx, [esi + 0x30]
mov dword [ebp - 4], 2
call sub.MFC42.DLL_CByteArray::CByteArray
lea ecx, [esi + 0x10]
mov byte [ebp - 4], 1
call fcn.00416602
and byte [ebp - 4], 0
lea ecx, [esi + 0xc]
call fcn.004165d8
or dword [ebp - 4], 0xffffffff
lea ecx, [esi + 8]
call fcn.004165d8
mov ecx, dword [ebp - 0xc]
pop esi
mov dword fs:[0], ecx
leave
ret

Function at 0x4014b0
Capabilities:
Hash data using crc32b

Disassembly:
jmp 0x40627f
lea eax, [ecx + 8]
xor ecx, ecx
cmp dword [eax], ecx
jne 0x4062b7
push esi
mov edx, eax
mov eax, ecx
push 8
shl eax, 0x18
pop esi
test eax, 0x80000000
je 0x4062a3
add eax, eax
xor eax, 0x4c11db7
jmp 0x4062a5
shl eax, 1
dec esi
jne 0x406293
mov dword [edx], eax
inc ecx
add edx, 4
cmp ecx, 0x100
jb 0x40628b
pop esi
ret
Function at 0x401528
Capabilities:
Create thread

Disassembly:
jmp 0x4113d2
push ecx
push esi
push edi
xor edi, edi
mov esi, ecx
push edi
push edi
push edi
push edi
call dword [sym.imp.KERNEL32.dll_CreateEventA]
cmp eax, edi
mov dword [esi + 0x88], eax
jne 0x4113f1
xor al, al
jmp 0x41140b
lea eax, [esp + 8]
push eax
push edi
push esi
push 0x41141e
push edi
push edi
call dword [sym.imp.KERNEL32.dll_CreateThread]
neg eax
sbb eax, eax
neg eax
pop edi
pop esi
pop ecx
ret

Function at 0x4016e0
Capabilities:
Create thread

Disassembly:
jmp 0x415cfd
push ecx
push esi
mov esi, ecx
push edi
lea edi, [esi + 0x18]
push edi
call dword [sym.imp.KERNEL32.dll_EnterCriticalSection]
cmp dword [esi + 0x14], 0
je 0x415d16
xor esi, esi
jmp 0x415d37
lea eax, [esp + 8]
push eax
push 0
push esi
push 0x40100a
push 0
push 0
call dword [sym.imp.KERNEL32.dll_CreateThread]
test eax, eax
mov dword [esi + 0x14], eax
je 0x415d12
push 1
pop esi
push edi
call dword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
mov eax, esi
pop edi
pop esi
pop ecx
ret

Function at 0x401799
Capabilities:
Delete registry key
Query or enumerate registry key

Disassembly:
jmp 0x413fb2
mov eax, 0x418d10
call fcn.00416730
sub esp, 0x114
push ebx
push esi
xor esi, esi
push edi
mov ebx, ecx
mov dword [ebp - 0x10], esi
push 0x2001f
lea ecx, [ebp - 0x10]
push dword [ebp + 8]
mov dword [ebp - 4], esi
push dword [ebx]
call fcn.00401997
mov edi, eax
cmp edi, esi
je 0x413ffc
cmp dword [ebp - 0x10], esi
je 0x413ff5
push dword [ebp - 0x10]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov eax, edi
jmp 0x414099
lea eax, [ebp - 0x20]
mov edi, dword [sym.imp.ADVAPI32.dll_RegEnumKeyExA]
push eax
push esi
push esi
lea eax, [ebp - 0x14]
push esi
push eax
lea eax, [ebp - 0x120]
mov dword [ebp - 0x14], 0x100
push eax
push esi
push dword [ebp - 0x10]
call edi
test eax, eax
jne 0x41406d
lea eax, [ebp - 0x120]
lea ecx, [ebp - 0x10]
push eax
call fcn.00401799
cmp eax, esi
mov dword [ebp - 0x18], eax
jne 0x41405a
lea eax, [ebp - 0x20]
mov dword [ebp - 0x14], 0x100
push eax
push esi
push esi
lea eax, [ebp - 0x14]
push esi
push eax
lea eax, [ebp - 0x120]
push eax
push esi
push dword [ebp - 0x10]
jmp 0x41401f
cmp dword [ebp - 0x10], esi
je 0x414068
push dword [ebp - 0x10]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov eax, dword [ebp - 0x18]
jmp 0x414099
cmp dword [ebp - 0x10], esi
mov edi, dword [sym.imp.ADVAPI32.dll_RegCloseKey]
je 0x414080
push dword [ebp - 0x10]
call edi
mov dword [ebp - 0x10], esi
push dword [ebp + 8]
push dword [ebx]
call dword [sym.imp.ADVAPI32.dll_RegDeleteKeyA]
cmp dword [ebp - 0x10], esi
mov ebx, eax
je 0x414097
push dword [ebp - 0x10]
call edi
mov eax, ebx
mov ecx, dword [ebp - 0xc]
pop edi
pop esi
pop ebx
mov dword fs:[0], ecx
leave
ret 4
Function at 0x401889
Capabilities:
Terminate process

Disassembly:
jmp 0x408964
mov eax, 0x418a31
call fcn.00416730
sub esp, 0x20
push ebx
push esi
push edi
mov edi, ecx
xor esi, esi
cmp word [edi + 8], si
je 0x408a35
push esi
call sub.MFC42.DLL_AfxSocketInit
test eax, eax
je 0x408a35
push 0x10
call sub.MFC42.DLL_operatornew
pop ecx
mov ecx, eax
mov dword [ebp - 0x10], ecx
cmp ecx, esi
mov dword [ebp - 4], esi
je 0x4089ae
push edi
call fcn.004010ff
mov ebx, eax
jmp 0x4089b0
xor ebx, ebx
or dword [ebp - 4], 0xffffffff
cmp ebx, esi
je 0x408a35
movzx eax, word [edi + 8]
push esi
push 0x28
push 1
push eax
mov ecx, ebx
call sub.MFC42.DLL_CAsyncSocket::Create
test eax, eax
je 0x408a2c
push 5
push dword [ebx + 4]
call sub.WSOCK32.dll_listen
cmp eax, 0xffffffff
je 0x408a2c
mov eax, 0x400
push esi
push eax
push eax
lea eax, [ebp - 0x2c]
push esi
push eax
call dword [sym.imp.USER32.dll_PeekMessageA]
mov edi, dword [sym.imp.USER32.dll_GetMessageA]
push esi
push esi
lea eax, [ebp - 0x2c]
push esi
push eax
call edi
test eax, eax
je 0x408a2c
cmp dword [ebp - 0x28], 0x10
je 0x408a25
lea eax, [ebp - 0x2c]
push eax
call dword [sym.imp.USER32.dll_TranslateMessage]
lea eax, [ebp - 0x2c]
push eax
call dword [sym.imp.USER32.dll_DispatchMessageA]
push esi
push esi
lea eax, [ebp - 0x2c]
push esi
push eax
jmp 0x4089fc
push esi
call dword [sym.imp.KERNEL32.dll_ExitProcess]
mov eax, dword [ebx]
push 1
mov ecx, ebx
call dword [eax + 4]
mov ecx, dword [ebp - 0xc]
pop edi
pop esi
pop ebx
mov dword fs:[0], ecx
leave
ret
Function at 0x401a64
Capabilities:
Access peb ldr_data

Disassembly:
jmp 0x4076a1
mov eax, 0x4187d1
call fcn.00416730
push ecx
push ebx
push esi
mov esi, ecx
push edi
mov dword [ebp - 0x10], esi
lea ecx, [esi + 8]
call sub.MFC42.DLL_CString::CString
xor edi, edi
lea ecx, [esi + 0xc]
mov dword [ebp - 4], edi
call sub.MFC42.DLL_CString::CString
push 1
lea ecx, [esi + 0x10]
pop ebx
push 0xa
mov byte [ebp - 4], bl
call sub.MFC42.DLL_CMapStringToString::CMapStringToString
lea ecx, [esi + 0x30]
mov byte [ebp - 4], 2
call fcn.00416674
mov eax, dword [ebp + 8]
mov ecx, dword [ebp - 0xc]
mov dword [esi + 0x2c], edi
mov dword [esi + 0x44], edi
mov dword [esi + 0x48], edi
mov dword [esi + 0x4c], edi
mov dword [esi + 0x54], eax
mov dword [esi], 0x41b3fc
mov dword [esi + 4], ebx
mov dword [esi + 0x50], ebx
mov eax, esi
pop edi
pop esi
pop ebx
mov dword fs:[0], ecx
leave
ret 4

Function at 0x4076ad
Capabilities:
Access peb ldr_data

Disassembly:
jmp 0x4076a1
mov eax, 0x4187d1
call fcn.00416730
push ecx
push ebx
push esi
mov esi, ecx
push edi
mov dword [ebp - 0x10], esi
lea ecx, [esi + 8]
call sub.MFC42.DLL_CString::CString
xor edi, edi
lea ecx, [esi + 0xc]
mov dword [ebp - 4], edi
call sub.MFC42.DLL_CString::CString
push 1
lea ecx, [esi + 0x10]
pop ebx
push 0xa
mov byte [ebp - 4], bl
call sub.MFC42.DLL_CMapStringToString::CMapStringToString
lea ecx, [esi + 0x30]
mov byte [ebp - 4], 2
call fcn.00416674
mov eax, dword [ebp + 8]
mov ecx, dword [ebp - 0xc]
mov dword [esi + 0x2c], edi
mov dword [esi + 0x44], edi
mov dword [esi + 0x48], edi
mov dword [esi + 0x4c], edi
mov dword [esi + 0x54], eax
mov dword [esi], 0x41b3fc
mov dword [esi + 4], ebx
mov dword [esi + 0x50], ebx
mov eax, esi
pop edi
pop esi
pop ebx
mov dword fs:[0], ecx
leave
ret 4

Function at 0x407c37
Capabilities:
Access peb ldr_data
Get ntdll base address

Disassembly:
jmp 0x407c2c
mov eax, 0x4188c4
call fcn.00416730
push ecx
push esi
mov esi, ecx
push edi
mov dword [ebp - 0x10], esi
call fcn.004166d4
xor edi, edi
lea ecx, [esi + 0x1c]
mov dword [ebp - 4], edi
call sub.MFC42.DLL_CString::CString
mov eax, dword [ebp + 8]
mov ecx, dword [ebp - 0xc]
mov dword [esi + 8], eax
mov dword [esi + 0xc], edi
mov dword [esi + 0x10], edi
mov dword [esi + 0x14], edi
mov dword [esi + 0x18], edi
mov dword [esi + 0x20], edi
mov dword [esi + 0x24], edi
mov dword [esi + 0x30], edi
mov dword [esi], 0x41b458
mov dword [esi + 0x28], 1
mov dword [esi + 0x2c], 2
mov eax, esi
pop edi
pop esi
mov dword fs:[0], ecx
leave
ret 4