joyce8/EMBER2024-capa huggingface dataset:
Function at 0x4011ae
Capabilities:
Create udp socket
Set socket configuration

Disassembly:
jmp 0x40a1b0
sub esp, 0x24
push esi
mov esi, dword [sym.imp.WS2_32.dll_htons]
push edi
mov edi, 2
push 0x43
mov word [esp + 0x10], di
call esi
push 0x45
mov word [esp + 0x12], ax
mov word [esp + 0x20], di
call esi
mov ecx, dword [0x4532a0]
mov word [esp + 0x1e], ax
mov eax, 1
xor edi, edi
test ecx, ecx
mov dword [esp + 8], eax
jle 0x40a346
push ebx
push ebp
mov ebp, dword [sym.imp.WS2_32.dll_inet_addr]
mov esi, 0x453244
mov ebx, 0x4532a4
push ebx
call ebp
push ebx
mov dword [esp + 0x1c], eax
call ebp
push 0x11
push 2
push 2
mov dword [esp + 0x34], eax
call dword [sym.imp.WS2_32.dll_socket]
push 0x11
push 2
push 2
mov dword [esi], eax
call dword [sym.imp.WS2_32.dll_socket]
mov dword [esi - 0x120], eax
mov ecx, dword [esi]
cmp ecx, 0xffffffff
je 0x40a241
cmp eax, 0xffffffff
jne 0x40a24f
push 0
push 0
push 0x432b90
call sub.MFC42.DLL_AfxMessageBox
mov ecx, dword [esi]
lea eax, [esp + 0x10]
push 4
push eax
push 0x20
push 0xffff
push ecx
call dword [sym.imp.WS2_32.dll_setsockopt]
cmp eax, 0xffffffff
je 0x40a28b
mov eax, dword [esi - 0x120]
lea edx, [esp + 0x10]
push 4
push edx
push 0x20
push 0xffff
push eax
call dword [sym.imp.WS2_32.dll_setsockopt]
cmp eax, 0xffffffff
jne 0x40a299
push 0
push 0
push 0x432b68
call sub.MFC42.DLL_AfxMessageBox
mov edx, dword [esi]
lea ecx, [esp + 0x14]
push 0x10
push ecx
push edx
call dword [sym.imp.WS2_32.dll_bind]
cmp eax, 0xffffffff
je 0x40a2c7
mov ecx, dword [esi - 0x120]
lea eax, [esp + 0x24]
push 0x10
push eax
push ecx
call dword [sym.imp.WS2_32.dll_bind]
cmp eax, 0xffffffff
jne 0x40a2d5
push 0
push 0
push 0x432b40
call sub.MFC42.DLL_AfxMessageBox
mov eax, dword [0x453284]
push 4
inc eax
mov dword [0x453284], eax
call sub.MSVCRT.dll_void____cdecl_operator_new_unsigned_int_
add esp, 4
mov dword [eax], edi
push 0
push 0
push 0
push 0
push eax
push 0x401253
call sub.MFC42.DLL_AfxBeginThread
push 4
call sub.MSVCRT.dll_void____cdecl_operator_new_unsigned_int_
add esp, 4
mov dword [eax], edi
mov ecx, dword [0x45311c]
push 0
push 0
push 0
push 0
inc ecx
push eax
push 0x401429
mov dword [0x45311c], ecx
call sub.MFC42.DLL_AfxBeginThread
mov eax, dword [0x4532a0]
inc edi
add ebx, 0x10
add esi, 4
cmp edi, eax
jl 0x40a207
pop ebp
mov eax, 1
pop ebx
pop edi
pop esi
add esp, 0x24
ret
Function at 0x4011d1
Capabilities:
Encode data using xor

Disassembly:
jmp 0x403310
push esi
mov esi, ecx
mov edx, 1
cmp dword [esi + 0x1c], edx
jle 0x40341b
push ebx
push edi
lea eax, [esi + 0x32]
xor ebx, ebx
xor ecx, ecx
mov bl, byte [eax - 1]
mov cl, byte [eax + 1]
add eax, 0x10
mov edi, dword [ebx*4 + 0x430c20]
mov ecx, dword [ecx*4 + 0x431420]
xor ebx, ebx
xor ecx, edi
mov bl, byte [eax - 0x10]
mov edi, dword [ebx*4 + 0x431020]
xor ebx, ebx
mov bl, byte [eax - 0x12]
xor ecx, edi
mov edi, dword [ebx*4 + 0x430820]
xor ebx, ebx
xor ecx, edi
mov dword [eax - 0x12], ecx
mov bl, byte [eax - 0xc]
xor ecx, ecx
mov cl, byte [eax - 0xb]
mov edi, dword [ebx*4 + 0x431020]
xor ebx, ebx
mov ecx, dword [ecx*4 + 0x431420]
mov bl, byte [eax - 0xd]
xor ecx, edi
mov edi, dword [ebx*4 + 0x430c20]
xor ebx, ebx
mov bl, byte [eax - 0xe]
xor ecx, edi
mov edi, dword [ebx*4 + 0x430820]
xor ebx, ebx
xor ecx, edi
mov dword [eax - 0xe], ecx
mov bl, byte [eax - 8]
xor ecx, ecx
mov cl, byte [eax - 7]
mov edi, dword [ebx*4 + 0x431020]
xor ebx, ebx
mov ecx, dword [ecx*4 + 0x431420]
mov bl, byte [eax - 9]
xor ecx, edi
mov edi, dword [ebx*4 + 0x430c20]
xor ebx, ebx
mov bl, byte [eax - 0xa]
xor ecx, edi
mov edi, dword [ebx*4 + 0x430820]
xor ebx, ebx
xor ecx, edi
mov dword [eax - 0xa], ecx
mov bl, byte [eax - 4]
xor ecx, ecx
mov cl, byte [eax - 3]
mov edi, dword [ebx*4 + 0x431020]
xor ebx, ebx
mov ecx, dword [ecx*4 + 0x431420]
mov bl, byte [eax - 5]
xor ecx, edi
mov edi, dword [ebx*4 + 0x430c20]
xor ebx, ebx
mov bl, byte [eax - 6]
xor ecx, edi
mov edi, dword [ebx*4 + 0x430820]
xor ecx, edi
inc edx
mov dword [eax - 6], ecx
mov ecx, dword [esi + 0x1c]
cmp edx, ecx
jl 0x403326
pop edi
pop ebx
pop esi
ret
Function at 0x401235
Capabilities:
Enumerate files on windows

Disassembly:
jmp 0x40a3c0
push 0xffffffffffffffff
push 0x423dae
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x164
mov eax, dword [str..STBs]
mov dl, byte [0x432542]
push ebx
mov dword [esp + 0x10], ecx
mov cx, word [0x432540]
mov dword [esp + 8], eax
xor ebx, ebx
lea eax, [esp + 8]
push ebx
push eax
mov word [esp + 0x14], cx
mov byte [esp + 0x16], dl
call dword [sym.imp.MSVCRT.dll__access]
add esp, 8
cmp eax, 0xffffffff
jne 0x40a42d
xor eax, eax
pop ebx
mov ecx, dword [esp + 0x164]
mov dword fs:[0], ecx
add esp, 0x170
ret
lea ecx, [esp + 0x28]
push ecx
push str..STBs.ini
call dword [sym.imp.KERNEL32.dll_FindFirstFileA]
cmp eax, 0xffffffff
mov dword [esp + 4], eax
jne 0x40a45e
xor eax, eax
pop ebx
mov ecx, dword [esp + 0x164]
mov dword fs:[0], ecx
add esp, 0x170
ret
push ebp
mov ebp, dword [sym.imp.MSVCRT.dll_sscanf]
push esi
push edi
push 0x62c
call sub.MSVCRT.dll_void____cdecl_operator_new_unsigned_int_
mov esi, eax
add esp, 4
mov dword [esp + 0x2c], esi
cmp esi, ebx
mov dword [esp + 0x17c], ebx
je 0x40a48e
mov ecx, esi
call fcn.00401249
jmp 0x40a490
xor esi, esi
lea edi, [esp + 0x60]
or ecx, 0xffffffff
xor eax, eax
mov dword [esi + 0x628], ebx
repne scasb al, byte es:[edi]
not ecx
dec ecx
mov dword [esp + 0x17c], 0xffffffff
cmp ecx, 0x10
jne 0x40a55c
lea edx, [esp + 0x60]
mov ecx, esi
push edx
call fcn.004011cc
test eax, eax
je 0x40a55c
mov ecx, dword [esp + 0x1c]
lea eax, [esi + 0x40]
add ecx, 0x1264
mov edx, dword [eax]
mov dword [ecx], edx
mov edx, dword [eax + 4]
mov dword [ecx + 4], edx
mov edx, dword [eax + 8]
mov dword [ecx + 8], edx
lea edx, [esi + 0x30]
mov eax, dword [eax + 0xc]
mov edi, edx
mov dword [ecx + 0xc], eax
or ecx, 0xffffffff
xor eax, eax
repne scasb al, byte es:[edi]
not ecx
dec ecx
je 0x40a532
lea ecx, [esp + 0x20]
lea eax, [esp + 0x24]
push ecx
push eax
lea ecx, [esp + 0x38]
lea eax, [esp + 0x30]
push ecx
push eax
push str._d._d._d._d
push edx
call ebp
mov eax, dword [esp + 0x38]
mov ecx, dword [0x433ae8]
add esp, 0x18
cmp eax, ecx
jbe 0x40a532
mov dword [0x433ae8], eax
cmp dword [0x45ae04], ebx
jne 0x40a548
mov dword [0x45ae08], esi
mov dword [0x45ae04], esi
jmp 0x40a565
mov ecx, dword [0x45ae08]
mov dword [ecx + 0x628], esi
mov dword [0x45ae08], esi
jmp 0x40a565
push esi
call sub.MSVCRT.dll_void___cdecl_operator_delete_void__
add esp, 4
mov eax, dword [esp + 0x10]
lea edx, [esp + 0x34]
push edx
push eax
call dword [sym.imp.KERNEL32.dll_FindNextFileA]
test eax, eax
jne 0x40a467
mov eax, dword [0x45ae04]
pop edi
pop esi
cmp eax, ebx
pop ebp
jne 0x40a5ad
push ebx
push ebx
push 0x432bb0
call sub.MFC42.DLL_AfxMessageBox
xor eax, eax
pop ebx
mov ecx, dword [esp + 0x164]
mov dword fs:[0], ecx
add esp, 0x170
ret
mov ecx, dword [esp + 4]
push ecx
call dword [sym.imp.KERNEL32.dll_FindClose]
mov ecx, dword [esp + 0x168]
mov eax, 1
pop ebx
mov dword fs:[0], ecx
add esp, 0x170
ret
Function at 0x401299
Capabilities:
Access peb ldr_data

Disassembly:
jmp 0x412820
push 0xffffffffffffffff
push 0x4254c8
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x38
push ebx
push esi
mov esi, ecx
push edi
lea ecx, [esp + 0xc]
call sub.MFC42.DLL_CString::CString
lea eax, [esp + 0xc]
mov ecx, esi
push eax
mov dword [esp + 0x50], 0
call sub.MFC42.DLL_CWnd::GetWindowTextA
mov ecx, dword [esi + 0x20]
mov edi, dword [sym.imp.USER32.dll_GetParent]
push ecx
call edi
push eax
call sub.MFC42.DLL_CWnd::FromHandle
mov edx, dword [eax + 0x20]
mov ecx, esi
mov dword [esp + 0x10], edx
call sub.MFC42.DLL_CWnd::GetDlgCtrlID
mov edx, dword [esi + 0x4c]
mov ecx, dword [esi + 0x44]
mov dword [esp + 0x14], eax
mov eax, dword [esi + 0x40]
neg edx
sbb edx, edx
mov dword [esp + 0x20], eax
mov eax, dword [esp + 0xc]
mov dword [esp + 0x18], 0xffffff96
not edx
and edx, eax
mov dword [esp + 0x1c], 1
mov dword [esp + 0x24], ecx
mov dword [esp + 0x30], edx
mov eax, dword [eax - 8]
mov dword [esp + 0x34], eax
mov eax, dword [esi + 0x20]
push eax
call edi
push eax
call sub.MFC42.DLL_CWnd::FromHandle
mov ecx, dword [esi + 0x20]
mov ebx, eax
push ecx
call edi
push eax
call sub.MFC42.DLL_CWnd::FromHandle
mov edx, dword [eax + 0x20]
push edx
call edi
push eax
call sub.MFC42.DLL_CWnd::FromHandle
mov ecx, ebx
mov esi, eax
call sub.MFC42.DLL_CWnd::GetDlgCtrlID
mov edx, dword [esi + 0x20]
lea ecx, [esp + 0x10]
push ecx
push eax
push 0x4e
push edx
call dword [sym.imp.USER32.dll_SendMessageA]
lea ecx, [esp + 0xc]
mov dword [esp + 0x4c], 0xffffffff
call fcn.00421f80
mov ecx, dword [esp + 0x44]
pop edi
pop esi
pop ebx
mov dword fs:[0], ecx
add esp, 0x44
ret
Function at 0x4012ad
Capabilities:
Read file on windows

Disassembly:
jmp 0x414370
sub esp, 0x24
push edi
push 0x433000
push str.dhcpData
call dword [sym.imp.MSVCRT.dll_fopen]
mov edi, eax
add esp, 8
test edi, edi
mov dword [esp + 8], edi
je 0x414496
mov eax, dword [0x45ae14]
push ebx
push ebp
push esi
test eax, eax
mov dword [esp + 0x10], 0
jle 0x414489
mov ebp, dword [sym.imp.MSVCRT.dll_fread]
mov ebx, dword [sym.imp.MSVCRT.dll_strncmp]
push edi
push 1
lea eax, [esp + 0x20]
push 0x1c
push eax
call ebp
add esp, 0x10
test eax, eax
je 0x414489
mov eax, dword [esp + 0x18]
test eax, eax
jle 0x414472
lea ecx, [esp + 0x30]
push ecx
call fcn.004015dc
push 0x432f70
mov esi, eax
call fcn.004015dc
add esp, 8
sub esi, eax
mov eax, esi
js 0x414472
cmp eax, dword [0x45ae14]
jge 0x414472
lea esi, [eax*8]
lea edx, [esp + 0x30]
sub esi, eax
mov eax, dword [0x45ae10]
shl esi, 2
push 4
push edx
lea ecx, [esi + eax + 0x18]
push ecx
call ebx
add esp, 0xc
test eax, eax
jne 0x414472
mov edx, dword [0x45ae10]
mov eax, dword [esp + 0x18]
lea edi, [esp + 0x20]
mov dword [esi + edx], eax
mov ecx, dword [0x45ae10]
mov edx, dword [esp + 0x1c]
mov dword [esi + ecx + 4], edx
mov eax, dword [0x45ae10]
or ecx, 0xffffffff
lea edx, [esi + eax + 8]
xor eax, eax
repne scasb al, byte es:[edi]
not ecx
sub edi, ecx
mov eax, ecx
mov esi, edi
mov edi, edx
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, eax
and ecx, 3
rep movsb byte es:[edi], byte [esi]
mov edi, dword [esp + 0x14]
mov eax, dword [esp + 0x10]
mov ecx, dword [0x45ae14]
inc eax
cmp eax, ecx
mov dword [esp + 0x10], eax
jl 0x4143b9
push edi
call dword [sym.imp.MSVCRT.dll_fclose]
add esp, 4
pop esi
pop ebp
pop ebx
pop edi
add esp, 0x24
ret
Function at 0x4013b6
Capabilities:
Access peb ldr_data

Disassembly:
jmp 0x412f10
push 0xffffffffffffffff
push 0x425558
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x38
push ebx
push esi
mov esi, ecx
push edi
lea ecx, [esp + 0xc]
call sub.MFC42.DLL_CString::CString
lea eax, [esp + 0xc]
mov ecx, esi
push eax
mov dword [esp + 0x50], 0
call sub.MFC42.DLL_CWnd::GetWindowTextA
mov ecx, dword [esi + 0x20]
mov edi, dword [sym.imp.USER32.dll_GetParent]
push ecx
call edi
push eax
call sub.MFC42.DLL_CWnd::FromHandle
mov edx, dword [eax + 0x20]
mov ecx, esi
mov dword [esp + 0x10], edx
call sub.MFC42.DLL_CWnd::GetDlgCtrlID
mov edx, dword [esi + 0x4c]
mov ecx, dword [esi + 0x44]
mov dword [esp + 0x14], eax
mov eax, dword [esi + 0x40]
neg edx
sbb edx, edx
mov dword [esp + 0x20], eax
mov eax, dword [esp + 0xc]
mov dword [esp + 0x18], 0xffffff96
not edx
and edx, eax
mov dword [esp + 0x1c], 1
mov dword [esp + 0x24], ecx
mov dword [esp + 0x30], edx
mov eax, dword [eax - 8]
mov dword [esp + 0x34], eax
mov eax, dword [esi + 0x20]
push eax
call edi
push eax
call sub.MFC42.DLL_CWnd::FromHandle
mov ecx, dword [esi + 0x20]
mov ebx, eax
push ecx
call edi
push eax
call sub.MFC42.DLL_CWnd::FromHandle
mov edx, dword [eax + 0x20]
push edx
call edi
push eax
call sub.MFC42.DLL_CWnd::FromHandle
mov ecx, ebx
mov esi, eax
call sub.MFC42.DLL_CWnd::GetDlgCtrlID
mov edx, dword [esi + 0x20]
lea ecx, [esp + 0x10]
push ecx
push eax
push 0x4e
push edx
call dword [sym.imp.USER32.dll_SendMessageA]
lea ecx, [esp + 0xc]
mov dword [esp + 0x4c], 0xffffffff
call fcn.00421f80
mov ecx, dword [esp + 0x44]
pop edi
pop esi
pop ebx
mov dword fs:[0], ecx
add esp, 0x44
ret
Function at 0x4014ba
Capabilities:
Read .ini file

Disassembly:
jmp 0x4144f0
sub esp, 0x100
push esi
push edi
push str..DHCP.ini
push 0
push str.EnableWifiDHCP
push str.MAIN
call dword [sym.imp.KERNEL32.dll_GetPrivateProfileIntA]
test eax, eax
mov dword [0x432f6c], eax
je 0x414687
mov esi, dword [sym.imp.KERNEL32.dll_GetPrivateProfileStringA]
push ebx
push str..DHCP.ini
lea eax, [esp + 0x10]
push 0x80
push eax
push 0x433900
push str.WifiAddrStart
push str.MAIN
call esi
lea edi, [esp + 0xc]
or ecx, 0xffffffff
xor eax, eax
mov ebx, dword [sym.imp.MSVCRT.dll_sscanf]
repne scasb al, byte es:[edi]
not ecx
dec ecx
je 0x41457c
push 0x432f73
push 0x432f72
push 0x432f71
push 0x432f70
lea ecx, [esp + 0x1c]
push str._d._d._d._d
push ecx
call ebx
add esp, 0x18
push str..DHCP.ini
lea edx, [esp + 0x10]
push 0x80
push edx
push 0x433900
push str.WifiAddrEnd
push str.MAIN
call esi
lea edi, [esp + 0xc]
or ecx, 0xffffffff
xor eax, eax
repne scasb al, byte es:[edi]
not ecx
dec ecx
je 0x4145cf
push 0x432f77
push 0x432f76
push 0x432f75
push 0x432f74
lea eax, [esp + 0x1c]
push str._d._d._d._d
push eax
call ebx
add esp, 0x18
push 0x432f74
call fcn.004015dc
push 0x432f70
mov esi, eax
call fcn.004015dc
add esp, 8
cmp esi, eax
pop ebx
jae 0x414600
pop edi
mov dword [0x45ae14], 0
pop esi
add esp, 0x100
ret
sub esi, eax
inc esi
mov dword [0x45ae14], esi
lea ecx, [esi*8]
sub ecx, esi
shl ecx, 2
push ecx
call dword [sym.imp.MSVCRT.dll_malloc]
mov dword [0x45ae10], eax
mov eax, dword [0x45ae14]
add esp, 4
xor edi, edi
test eax, eax
jle 0x414682
xor esi, esi
push 0x432f70
call fcn.004015dc
mov edx, dword [0x45ae10]
add eax, edi
lea ecx, [esi + edx + 0x18]
push ecx
push eax
call fcn.00401618
mov edx, dword [0x45ae10]
xor eax, eax
add esp, 0xc
inc edi
mov dword [esi + edx], 0
mov ecx, dword [0x45ae10]
lea edx, [esi + ecx + 8]
add esi, 0x1c
mov dword [edx], eax
mov dword [edx + 4], eax
mov dword [edx + 8], eax
mov dword [edx + 0xc], eax
mov eax, dword [0x45ae14]
cmp edi, eax
jl 0x414631
call fcn.004012ad
pop edi
pop esi
add esp, 0x100
ret
Function at 0x4014ec
Capabilities:
Write file on windows

Disassembly:
jmp 0x4141e0
push edi
push 0x432fec
push str.dhcpData
call dword [sym.imp.MSVCRT.dll_fopen]
mov edi, eax
add esp, 8
test edi, edi
je 0x414241
mov eax, dword [0x45ae14]
push ebp
xor ebp, ebp
test eax, eax
jle 0x414236
push ebx
mov ebx, dword [sym.imp.MSVCRT.dll_fwrite]
push esi
xor esi, esi
mov eax, dword [0x45ae10]
add eax, esi
cmp dword [eax], 0
jle 0x414227
push edi
push 1
push 0x1c
push eax
call ebx
add esp, 0x10
mov eax, dword [0x45ae14]
inc ebp
add esi, 0x1c
cmp ebp, eax
jl 0x414210
pop esi
pop ebx
push edi
call dword [sym.imp.MSVCRT.dll_fclose]
add esp, 4
pop ebp
pop edi
ret
Function at 0x401578
Capabilities:
Access peb ldr_data

Disassembly:
jmp 0x40d6d0
push 0xffffffffffffffff
push 0x4248d8
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x1c
push ebp
push esi
push edi
mov esi, ecx
lea ecx, [esp + 0xc]
mov dword [esp + 0x30], 0
mov dword [esp + 0x10], 0
call sub.MFC42.DLL_CString::CString
mov eax, dword [esi + 0x1680]
mov edi, dword [sym.imp.USER32.dll_SendMessageA]
push 0
push 0
push 0x130c
push eax
mov byte [esp + 0x40], 1
call edi
mov eax, dword [esi + 0x20]
mov ecx, dword [esi + 0x1680]
lea edx, [esp + 0x1c]
mov dword [esp + 0x1c], ecx
push edx
push 0x3e8
push 0x4e
push eax
mov dword [esp + 0x34], 0xfffffdd9
call edi
lea ebp, [esi + 0x12dc]
mov ecx, ebp
call sub.MFC42.DLL_CWnd::SetFocus
mov ecx, dword [esi + 0x12fc]
push 0
push 0
push 0x1004
push ecx
call edi
xor edi, edi
mov dword [esp + 0x18], eax
test eax, eax
jle 0x40d845
mov esi, dword [esp + 0x38]
lea edx, [esp + 0x14]
push esi
push edi
push edx
mov ecx, ebp
call sub.MFC42.DLL_CListCtrl::GetItemText
push eax
lea ecx, [esp + 0x10]
mov byte [esp + 0x34], 2
call fcn.00422160
lea ecx, [esp + 0x14]
mov byte [esp + 0x30], 1
call fcn.00421f80
test esi, esi
jne 0x40d7dc
push 0x432cec
lea ecx, [esp + 0x10]
call sub.MFC42.DLL_CString::Find
cmp eax, 0xffffffff
jne 0x40d838
mov eax, dword [esp + 0x3c]
push 0
push eax
lea ecx, [esp + 0x14]
call sub.MFC42.DLL_CString::Find_1
test eax, eax
jl 0x40d82c
push 2
mov dword [esp + 0x14], 1
push 2
jmp 0x40d830
cmp esi, 1
jne 0x40d7ba
push 0
lea ecx, [esp + 0x40]
call sub.MFC42.DLL_CString::GetBuffer
push 0
lea ecx, [esp + 0x10]
mov esi, eax
call sub.MFC42.DLL_CString::GetBuffer
mov dl, byte [eax]
mov cl, dl
cmp dl, byte [esi]
jne 0x40d81d
test cl, cl
je 0x40d819
mov dl, byte [eax + 1]
mov cl, dl
cmp dl, byte [esi + 1]
jne 0x40d81d
add eax, 2
add esi, 2
test cl, cl
jne 0x40d7f9
xor eax, eax
jmp 0x40d822
sbb eax, eax
sbb eax, 0xffffffff
test eax, eax
push 2
jne 0x40d82e
push 2
jmp 0x40d830
push 2
push 0
push edi
mov ecx, ebp
call sub.MFC42.DLL_CListCtrl::SetItemState
mov eax, dword [esp + 0x18]
inc edi
cmp edi, eax
jl 0x40d774
lea ecx, [esp + 0xc]
mov byte [esp + 0x30], 0
call fcn.00421f80
lea ecx, [esp + 0x3c]
mov dword [esp + 0x30], 0xffffffff
call fcn.00421f80
mov ecx, dword [esp + 0x28]
mov eax, dword [esp + 0x10]
pop edi
pop esi
pop ebp
mov dword fs:[0], ecx
add esp, 0x28
ret 8
Function at 0x40174e
Capabilities:
Resolve function by parsing pe exports

Disassembly:
jmp 0x419cf0
sub esp, 0x3c
push ebx
push ebp
push esi
mov esi, dword [esp + 0x4c]
push edi
mov edi, dword [sym.imp.USER32.dll_SendMessageA]
mov eax, dword [esi + 0x20]
push 0
push 0
push 0x1004
push eax
call edi
mov ebp, dword [esp + 0x58]
mov ecx, dword [esp + 0x54]
lea edx, [esp + 0x24]
mov dword [esp + 0x28], eax
mov eax, dword [esi + 0x20]
push edx
push 0
push 0x1007
push eax
mov dword [esp + 0x34], 3
mov dword [esp + 0x48], ebp
mov dword [esp + 0x50], ecx
mov dword [esp + 0x3c], 0
call edi
mov ecx, dword [esi + 0x90]
mov dword [esp + 0x10], eax
shl ecx, 2
push ecx
call sub.MSVCRT.dll_void____cdecl_operator_new_unsigned_int_
mov edx, dword [esi + 0x90]
mov ebx, eax
shl edx, 2
push edx
mov dword [esp + 0x28], ebx
call sub.MSVCRT.dll_void____cdecl_operator_new_unsigned_int_
mov edi, eax
mov eax, dword [esi + 0x90]
shl eax, 2
push eax
mov dword [esp + 0x60], edi
call sub.MSVCRT.dll_void____cdecl_operator_new_unsigned_int_
add esp, 0xc
mov dword [esp + 0x50], eax
push ebp
call dword [sym.imp.KERNEL32.dll_lstrlenA]
inc eax
push eax
call sub.MSVCRT.dll_void____cdecl_operator_new_unsigned_int_
mov dword [ebx], eax
mov ecx, dword [esi + 0x9c]
mov eax, dword [esp + 0x54]
mov dword [edi], ecx
mov edx, dword [esi + 0xa0]
add esp, 4
mov dword [eax], edx
mov ecx, dword [ebx]
push ebp
push ecx
call dword [sym.imp.KERNEL32.dll_lstrcpyA]
mov eax, dword [esi + 0x90]
mov ebp, 1
cmp eax, ebp
jle 0x419e65
mov ecx, dword [esp + 0x54]
mov edx, dword [esp + 0x50]
sub ecx, edx
lea eax, [esp + 0x58]
mov dword [esp + 0x1c], ecx
mov ecx, edx
sub ecx, ebx
lea edi, [ebx + 4]
mov dword [esp + 0x18], ecx
jmp 0x419df1
mov eax, dword [esp + 0x14]
mov ebx, dword [eax + 4]
mov edx, dword [esp + 0x10]
add eax, 4
push 0
push 0
push 0
push 0
push ebx
push 1
push ebp
push edx
mov ecx, esi
mov dword [esp + 0x34], eax
mov dword [esp + 0x78], ebx
call sub.MFC42.DLL_CListCtrl::SetItem
push ebx
call dword [sym.imp.KERNEL32.dll_lstrlenA]
inc eax
push eax
call sub.MSVCRT.dll_void____cdecl_operator_new_unsigned_int_
mov edx, dword [esp + 0x20]
mov dword [edi], eax
mov eax, dword [esp + 0x1c]
mov ecx, dword [esi + 0x9c]
add eax, edi
add esp, 4
mov dword [eax + edx], ecx
mov ecx, dword [esi + 0xa0]
mov dword [eax], ecx
mov edx, dword [edi]
push ebx
push edx
call dword [sym.imp.KERNEL32.dll_lstrcpyA]
mov eax, dword [esi + 0x90]
inc ebp
add edi, 4
cmp ebp, eax
jl 0x419ded
mov ebx, dword [esp + 0x20]
mov edi, dword [esp + 0x54]
mov eax, dword [esp + 0x50]
mov ecx, esi
push eax
push edi
mov edi, dword [esp + 0x18]
push ebx
push edi
call fcn.004010d2
mov eax, edi
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x3c
ret
Function at 0x40142d
Capabilities:
Encrypt data using aes
Reference aes constants

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x40
and dword [ebp - 0x40], 0
push ebx
push esi
push edi
push 4
pop ebx
mov dword [ebp - 0x14], 0x95414aa9
mov dword [ebp - 0x10], 0x2d4301e2
mov word [ebp - 0xc], 0xcb9b
mov byte [ebp - 0xa], 0x46
mov byte [ebp - 9], bl
mov dword [ebp - 8], 0x214ad805
lea esi, [ebp - 0x14]
mov edi, ecx
movsd dword es:[edi], dword [esi]
movsd dword es:[edi], dword [esi]
movsd dword es:[edi], dword [esi]
movsd dword es:[edi], dword [esi]
mov dword [ebp - 0x3c], 1
mov dword [ebp - 0x38], 2
mov dword [ebp - 0x34], ebx
mov dword [ebp - 0x30], 8
mov dword [ebp - 0x2c], 0x10
mov dword [ebp - 0x28], 0x20
mov dword [ebp - 0x24], 0x40
mov dword [ebp - 0x20], 0x80
mov dword [ebp - 0x1c], 0x1b
mov dword [ebp - 0x18], 0x36
mov edi, ebx
mov esi, ecx
mov edx, dword [esi + 0xc]
mov eax, edi
and eax, 0x80000003
jns 0x4014bf
dec eax
or eax, 0xfffffffc
inc eax
jne 0x4014ef
ror edx, 8
mov dword [ebp - 4], edx
xor edx, edx
movzx eax, byte [ebp + edx - 4]
inc edx
mov al, byte [eax + str.cw]
mov byte [ebp + edx - 5], al
cmp edx, ebx
jl 0x4014c9
mov eax, edi
cdq
and edx, 3
add eax, edx
sar eax, 2
mov edx, dword [ebp + eax*4 - 0x40]
xor edx, dword [ebp - 4]
mov eax, dword [esi]
xor eax, edx
mov dword [esi + 0x10], eax
inc edi
add esi, ebx
cmp edi, 0x2c
jl 0x4014ae
xor dword [ecx + 0x40], 0x73
xor dword [ecx + 0x60], 9
xor dword [ecx + 0x80], 0xe4
pop edi
pop esi
pop ebx
leave
ret

Function at 0x401840
Capabilities:
Encode data using xor

Disassembly:
push esi
push 4
sub ecx, edx
pop esi
mov eax, dword [ecx + edx]
xor dword [edx], eax
lea edx, [edx + 4]
dec esi
jne 0x401846
pop esi
ret

Function at 0x4018e8
Capabilities:
Create new key via cryptacquirecontext

Disassembly:
cmp dword [0x4097d0], 0
jne 0x401908
push 0xf0000000
push 0x18
push 0
push 0
push 0x4097d0
call dword [sym.imp.ADVAPI32.dll_CryptAcquireContextW]
ret
xor eax, eax
inc eax
ret
Function at 0x4019b2
Capabilities:
Hash data via wincrypt
Initialize hashing via wincrypt

Disassembly:
sub esp, 0x20
push ebx
push ebp
push esi
push edi
xor eax, eax
lea edi, [esp + 0x20]
stosd dword es:[edi], eax
stosd dword es:[edi], eax
stosd dword es:[edi], eax
stosd dword es:[edi], eax
mov esi, ecx
mov edi, 0x408ce4
movsd dword es:[edi], dword [esi]
movsd dword es:[edi], dword [esi]
movsd dword es:[edi], dword [esi]
xor ebx, ebx
mov ebp, edx
mov dword [esp + 0x14], ebx
mov dword [esp + 0x10], ebx
mov dword [esp + 0x18], 0x20
mov dword [esp + 0x1c], 0x800c
movsd dword es:[edi], dword [esi]
call fcn.004018e8
test eax, eax
je 0x401a79
lea eax, [esp + 0x14]
push eax
push ebx
push ebx
push 0x1c
push 0x408cd8
push dword [0x4097d0]
call dword [sym.imp.ADVAPI32.dll_CryptImportKey]
test eax, eax
je 0x401a79
lea eax, [esp + 0x10]
push eax
push ebx
push dword [esp + 0x1c]
push 0x8009
push dword [0x4097d0]
call dword [sym.imp.ADVAPI32.dll_CryptCreateHash]
test eax, eax
je 0x401a79
push ebx
lea eax, [esp + 0x20]
push eax
push 5
push dword [esp + 0x1c]
call dword [sym.imp.ADVAPI32.dll_CryptSetHashParam]
test eax, eax
je 0x401a79
push ebx
push ebp
push dword [esp + 0x3c]
push dword [esp + 0x1c]
call dword [sym.imp.ADVAPI32.dll_CryptHashData]
test eax, eax
je 0x401a79
push ebx
lea eax, [esp + 0x1c]
push eax
push dword [esp + 0x40]
push 2
push dword [esp + 0x20]
call dword [sym.imp.ADVAPI32.dll_CryptGetHashParam]
test eax, eax
je 0x401a79
inc ebx
cmp dword [esp + 0x14], 0
je 0x401a8a
push dword [esp + 0x14]
call dword [sym.imp.ADVAPI32.dll_CryptDestroyKey]
cmp dword [esp + 0x10], 0
je 0x401a9b
push dword [esp + 0x10]
call dword [sym.imp.ADVAPI32.dll_CryptDestroyHash]
pop edi
pop esi
pop ebp
mov eax, ebx
pop ebx
add esp, 0x20
ret

Function at 0x401afc
Capabilities:
Encrypt or decrypt via wincrypt

Disassembly:
push ebp
mov ebp, esp
push ecx
and dword [ebp - 4], 0
push ebx
push esi
push edi
sub esp, 0x1c
mov eax, ecx
push 7
pop ecx
mov edi, esp
mov esi, 0x4082e4
rep movsd dword es:[edi], dword [esi]
lea ecx, [ebp - 4]
push ecx
mov ecx, eax
mov ebx, edx
call fcn.00401aa5
add esp, 0x20
test eax, eax
je 0x401b4a
push 0x105
push dword [ebp + 8]
xor esi, esi
push ebx
push 0
inc esi
push esi
push 0
push dword [ebp - 4]
call dword [sym.imp.ADVAPI32.dll_CryptEncrypt]
test eax, eax
jne 0x401b4c
xor esi, esi
cmp dword [ebp - 4], 0
je 0x401b5b
push dword [ebp - 4]
call dword [sym.imp.ADVAPI32.dll_CryptDestroyKey]
pop edi
mov eax, esi
pop esi
pop ebx
leave
ret