joyce8/EMBER2024-capa huggingface dataset:
Function at 0x40a8f0
Capabilities:
Hash data using djb2

Disassembly:
push ebp
mov ebp, esp
sub esp, 8
push esi
push edi
mov edi, ecx
mov edx, 0x1505
mov dword [ebp - 4], edi
mov esi, edi
test edi, edi
jne 0x40a910
pop edi
xor eax, eax
pop esi
mov esp, ebp
pop ebp
ret
movsx ecx, byte [edi]
test ecx, ecx
je 0x40a92a
mov eax, edx
lea esi, [esi + 1]
shl edx, 5
add edx, ecx
movsx ecx, byte [esi]
add edx, eax
test ecx, ecx
jne 0x40a917
push ebx
test edx, edx
mov ebx, 1
mov ecx, ebx
mov eax, 0xc0906d
cmovne ecx, edx
mul ecx
mov eax, ecx
sub eax, edx
shr eax, 1
add eax, edx
shr eax, 9
imul eax, eax, 0x3fd
push 0x4216e8
sub ecx, eax
cmovne ebx, ecx
mov esi, ebx
call dword [sym.imp.KERNEL32.dll_EnterCriticalSection]
mov eax, dword [0x4216d8]
mov ecx, dword [eax + esi*8]
test ecx, ecx
je 0x40aa4f
lea edi, [eax + esi*8]
cmp ecx, ebx
jne 0x40a9ad
mov ecx, dword [edi + 4]
mov eax, dword [ebp - 4]
nop
mov dl, byte [eax]
cmp dl, byte [ecx]
jne 0x40a9a0
test dl, dl
je 0x40a99c
mov dl, byte [eax + 1]
cmp dl, byte [ecx + 1]
jne 0x40a9a0
add eax, 2
add ecx, 2
test dl, dl
jne 0x40a980
xor eax, eax
jmp 0x40a9a5
sbb eax, eax
or eax, 1
test eax, eax
je 0x40aadb
push dword [edi + 4]
push dword [ebp - 4]
push str.hash_collision___s_vs__s_
push str.htab_hash
push 4
push 0
call fcn.004078c0
mov eax, 0x14191f7
add esp, 0x18
mul ebx
mov eax, ebx
sub eax, edx
shr eax, 1
add eax, edx
mov edx, ebx
shr eax, 9
imul eax, eax, 0x3fb
sub edx, eax
inc edx
mov dword [ebp - 8], edx
nop dword [eax]
mov ecx, esi
sub ecx, edx
cmp esi, edx
lea eax, [ecx + 0x3fd]
cmova eax, ecx
mov esi, eax
cmp esi, ebx
je 0x40aa4c
mov eax, dword [0x4216d8]
mov edi, dword [eax + esi*8]
cmp edi, ebx
jne 0x40aa48
mov eax, dword [eax + esi*8 + 4]
mov ecx, dword [ebp - 4]
mov dl, byte [ecx]
cmp dl, byte [eax]
jne 0x40aa38
test dl, dl
je 0x40aa34
mov dl, byte [ecx + 1]
cmp dl, byte [eax + 1]
jne 0x40aa38
add ecx, 2
add eax, 2
test dl, dl
jne 0x40aa18
xor eax, eax
jmp 0x40aa3d
sbb eax, eax
or eax, 1
test eax, eax
je 0x40aadb
mov edx, dword [ebp - 8]
test edi, edi
jne 0x40a9f0
mov edi, dword [ebp - 4]
cmp dword [0x4216c8], 0x3fd
jb 0x40aa8c
push 0x3fd
push str.hash_table_is_full___lu_entries_
push str.htab_hash
push 1
push 0
call fcn.004078c0
add esp, 0x14
xor esi, esi
push 0x4216e8
call dword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
pop ebx
pop edi
mov eax, esi
pop esi
mov esp, ebp
pop ebp
ret
push edi
call dword [sym.imp.api_ms_win_crt_string_l1_1_0.dll__strdup]
mov ecx, eax
add esp, 4
mov eax, dword [0x4216d8]
mov dword [eax + esi*8 + 4], ecx
lea eax, [eax + esi*8]
test ecx, ecx
jne 0x40aad3
push str.could_not_duplicate_string_for_hash_table
push str.htab_hash
push 1
push ecx
call fcn.004078c0
add esp, 0x10
xor esi, esi
push 0x4216e8
call dword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
pop ebx
pop edi
mov eax, esi
pop esi
mov esp, ebp
pop ebp
ret
inc dword [0x4216c8]
mov dword [eax], ebx
push 0x4216e8
call dword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
pop ebx
pop edi
mov eax, esi
pop esi
mov esp, ebp
pop ebp
ret
Function at 0x40b290
Capabilities:
Create thread

Disassembly:
push ebp
mov ebp, esp
mov eax, dword [0x421700]
push ebx
inc eax
xor bl, bl
mov dword [0x421700], eax
push esi
mov esi, dword [ebp + 8]
push edi
cmp eax, 1
jne 0x40b3c3
call fcn.0040ab90
mov dword [0x421564], eax
test eax, eax
jne 0x40b2dc
push str.failed_to_detect_Windows_version
push str.windows_init
push 1
push esi
call fcn.004078c0
add esp, 0x10
mov edi, 0xfffffff4
jmp 0x40b44f
cmp eax, 4
jge 0x40b2e8
push str.Windows_version_is_too_old
jmp 0x40b2c2
cmp dword [0x4216d8], 0
je 0x40b346
push str.program_assertion_failed___hash_table_already_allocated
push str.htab_create
push 1
push esi
call fcn.004078c0
add esp, 0x10
push esi
call fcn.0040d1c0
mov edi, eax
add esp, 4
test edi, edi
jne 0x40b44f
push esi
mov bl, 1
call fcn.00415c20
add esp, 4
test eax, eax
jne 0x40b3ae
push str.UsbDk_backend_is_available
push str.windows_init
push 4
push esi
call fcn.004078c0
mov byte [0x421584], bl
jmp 0x40b3c0
push 0x4216e8
call dword [sym.imp.KERNEL32.dll_InitializeCriticalSection]
push 0x3fd
push str.using__lu_entries_hash_table
push str.htab_create
push 4
push esi
call fcn.004078c0
push 8
push 0x3fe
mov dword [0x4216c8], 0
call dword [sym.imp.api_ms_win_crt_heap_l1_1_0.dll_calloc]
add esp, 0x1c
mov dword [0x4216d8], eax
test eax, eax
jne 0x40b306
push str.could_not_allocate_space_for_hash_table
push str.htab_create
push 1
push esi
call fcn.004078c0
add esp, 0x10
mov edi, 0xfffffff5
jmp 0x40b44f
push str.UsbDk_backend_is_not_available
push str.windows_init
push 3
push esi
call fcn.004078c0
add esp, 0x10
push 1
push 0
push 0
push 0xffffffffffffffff
mov dword [esi + fcn.0040d1c0], 0x41b178
mov edi, 0xfffffff5
call dword [sym.imp.KERNEL32.dll_CreateIoCompletionPort]
mov dword [esi + 0x12c], eax
test eax, eax
jne 0x40b409
xor ecx, ecx
call fcn.0040a810
push eax
push str.failed_to_create_I_O_completion_port:__s
push str.windows_init
push 1
push esi
call fcn.004078c0
add esp, 0x14
jmp 0x40b44f
push 0
push 0
push esi
push 0x40af90
push 0
push 0
call dword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__beginthreadex]
add esp, 0x18
mov dword [esi + 0x130], eax
test eax, eax
jne 0x40b44d
push str.failed_to_create_I_O_completion_port_thread
push str.windows_init
push 1
push esi
call fcn.004078c0
add esp, 0x10
push dword [esi + 0x12c]
call dword [sym.imp.KERNEL32.dll_CloseHandle]
jmp 0x40b44f
xor edi, edi
cmp dword [0x421700], 1
jne 0x40b4ee
test edi, edi
je 0x40b4ee
cmp byte [0x421584], 0
je 0x40b48e
mov eax, dword [0x421870]
test eax, eax
je 0x40b487
push eax
call dword [sym.imp.KERNEL32.dll_FreeLibrary]
mov dword [0x421870], 0
mov byte [0x421584], 0
test bl, bl
je 0x40b49b
push esi
call fcn.0040d240
add esp, 4
mov eax, dword [0x4216d8]
test eax, eax
je 0x40b4e8
mov ebx, dword [sym.imp.api_ms_win_crt_heap_l1_1_0.dll_free]
xor esi, esi
nop dword [eax]
push dword [esi + eax + 4]
call ebx
mov eax, dword [0x4216d8]
add esi, 8
add esp, 4
cmp esi, 0x1fe8
jb 0x40b4b0
test eax, eax
je 0x40b4dd
push eax
call ebx
add esp, 4
mov dword [0x4216d8], 0
push 0x4216e8
call dword [sym.imp.KERNEL32.dll_DeleteCriticalSection]
dec dword [0x421700]
mov eax, edi
pop edi
pop esi
pop ebx
pop ebp
ret
Function at 0x415c20
Capabilities:
Get common file path

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x10c
lea eax, [ebp - 0x10c]
push esi
push edi
push 0x104
push eax
call dword [sym.imp.KERNEL32.dll_GetSystemDirectoryA]
mov edi, dword [ebp + 8]
test eax, eax
je 0x415da6
cmp eax, 0x104
jae 0x415da6
lea ecx, [eax + 0xe]
cmp ecx, 0x104
jb 0x415c68
push str.program_assertion_failed___library_path_buffer_overflow
jmp 0x415dab
push str.Advapi32
lea ecx, [ebp - 0x10c]
add eax, ecx
push str._s.dll
push eax
call fcn.0040a7d0
add esp, 0xc
lea eax, [ebp - 0x10c]
push eax
call dword [sym.imp.KERNEL32.dll_LoadLibraryA]
mov esi, eax
test esi, esi
je 0x415dbb
mov edi, dword [sym.imp.KERNEL32.dll_GetProcAddress]
push ebx
push str.OpenSCManagerA
push esi
call edi
mov dword [ebp - 8], eax
test eax, eax
jne 0x415cbc
mov edi, str.failed_to_find__s_in_Advapi32_n
mov eax, str.OpenSCManagerA
jmp 0x415d0c
push str.OpenServiceA
push esi
call edi
mov dword [ebp - 4], eax
test eax, eax
jne 0x415cd7
mov edi, str.failed_to_find__s_in_Advapi32_n
mov eax, str.OpenServiceA
jmp 0x415d0c
push str.CloseServiceHandle
push esi
call edi
mov ebx, eax
test ebx, ebx
jne 0x415cf1
mov edi, str.failed_to_find__s_in_Advapi32_n
mov eax, str.CloseServiceHandle
jmp 0x415d0c
push 1
push 0
push 0
call dword [ebp - 8]
mov edi, eax
test edi, edi
jne 0x415d33
xor ecx, ecx
mov edi, str.failed_to_open_service_control_manager:__s
call fcn.0040a810
push eax
push edi
push str.usbdk_init
push 2
push dword [ebp + 8]
call fcn.004078c0
add esp, 0x14
push esi
call dword [sym.imp.KERNEL32.dll_FreeLibrary]
pop ebx
pop edi
mov eax, 0xffffff9d
pop esi
mov esp, ebp
pop ebp
ret
push 0x80000000
push str.UsbDk
push edi
call dword [ebp - 4]
push edi
mov dword [ebp - 4], eax
call ebx
mov eax, dword [ebp - 4]
test eax, eax
jne 0x415d8d
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0x424
je 0x415d7a
xor ecx, ecx
call fcn.0040a810
push eax
push str.failed_to_open_UsbDk_service:__s
push str.usbdk_init
push 2
push dword [ebp + 8]
call fcn.004078c0
add esp, 0x14
push esi
call dword [sym.imp.KERNEL32.dll_FreeLibrary]
pop ebx
pop edi
mov eax, 0xfffffffb
pop esi
mov esp, ebp
pop ebp
ret
push eax
call ebx
push esi
call dword [sym.imp.KERNEL32.dll_FreeLibrary]
mov ecx, dword [ebp + 8]
call fcn.00415940
pop ebx
pop edi
pop esi
mov esp, ebp
pop ebp
ret
push str.program_assertion_failed___could_not_get_system_directory
push str.load_system_library
push 1
push edi
call fcn.004078c0
add esp, 0x10
push str.failed_to_open_Advapi32_n
push str.usbdk_init
push 2
push edi
call fcn.004078c0
add esp, 0x10
mov eax, 0xffffff9d
pop edi
pop esi
mov esp, ebp
pop ebp
ret

Function at 0x417557
Capabilities:
Parse pe header

Disassembly:
push 0
call dword [sym.imp.KERNEL32.dll_GetModuleHandleW]
test eax, eax
je 0x417596
mov ecx, 0x5a4d
cmp word [eax], cx
jne 0x417596
mov ecx, dword [eax + 0x3c]
add ecx, eax
cmp dword [ecx], 0x4550
jne 0x417596
mov eax, 0x10b
cmp word [ecx + 0x18], ax
jne 0x417596
cmp dword [ecx + 0x74], 0xe
jbe 0x417596
cmp dword [ecx + 0xe8], 0
setne al
ret
xor al, al
ret
Function at 0x407d9c
Capabilities:
Create process on windows

Disassembly:
push ebp
mov ebp, esp
xor ecx, ecx
push ecx
push ecx
push ecx
push ecx
push ecx
push ecx
push ebx
push esi
mov dword [ebp - 4], eax
mov eax, dword [ebp - 4]
call fcn.004033fc
xor eax, eax
push ebp
push 0x407e75
push dword fs:[eax]
mov dword fs:[eax], esp
mov eax, dword [ebp - 4]
cmp byte [eax], 0x5c
jne 0x407dd4
mov eax, dword [ebp - 4]
call fcn.004071d0
jmp 0x407ddc
mov eax, dword [ebp - 4]
call fcn.00407bd4
call fcn.00404ae8
mov esi, eax
test esi, esi
jle 0x407e28
mov ebx, 1
lea edx, [ebp - 8]
mov eax, ebx
call fcn.004049d0
mov eax, dword [ebp - 8]
cmp byte [eax], 0x5c
jne 0x407e12
lea edx, [ebp - 0xc]
mov eax, ebx
call fcn.004049d0
mov eax, dword [ebp - 0xc]
call fcn.004071d0
jmp 0x407e24
lea edx, [ebp - 0x10]
mov eax, ebx
call fcn.004049d0
mov eax, dword [ebp - 0x10]
call fcn.00407bd4
inc ebx
dec esi
jne 0x407dec
push 1
push dword [ebp - 4]
push 0x407e8c
lea edx, [ebp - 0x18]
xor eax, eax
call fcn.00406f34
push dword [ebp - 0x18]
lea eax, [ebp - 0x14]
mov edx, 3
call fcn.004032cc
mov eax, dword [ebp - 0x14]
call fcn.0040340c
push eax
call sub.kernel32.dll_WinExec
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x407e7c
lea eax, [ebp - 0x18]
mov edx, 6
call fcn.004030b8
ret

Function at 0x401267
Capabilities:
Parse pe header
Resolve function by parsing pe exports

Disassembly:
push ebp
xor eax, eax
mov ebp, esp
push edi
push esi
push ebx
sub esp, 0x2c
mov edi, dword [ebp + 8]
cmp word [edi], 0x5a4d
jne 0x4012d9
mov ecx, dword [edi + 0x3c]
add ecx, edi
cmp dword [ecx], 0x4550
jne 0x4012d9
mov esi, dword [ecx + 0x78]
xor ebx, ebx
add esi, edi
mov eax, dword [esi + 0x14]
mov dword [ebp - 0x1c], eax
mov eax, dword [esi + 0x20]
add eax, edi
mov dword [ebp - 0x20], eax
cmp dword [ebp - 0x1c], ebx
je 0x4012d7
mov edx, dword [ebp - 0x20]
mov eax, dword [edx + ebx*4]
add eax, edi
mov dword [esp + 4], eax
mov eax, dword [ebp + 0xc]
mov dword [esp], eax
call fcn.00401243
test eax, eax
jne 0x4012d4
add ebx, ebx
add ebx, edi
add ebx, dword [esi + 0x24]
movzx eax, word [ebx]
lea eax, [edi + eax*4]
add eax, dword [esi + 0x1c]
add edi, dword [eax]
mov eax, edi
jmp 0x4012d9
inc ebx
jmp 0x40129e
xor eax, eax
add esp, 0x2c
pop ebx
pop esi
pop edi
pop ebp
ret 8

Function at 0x401408
Capabilities:
Access peb ldr_data

Disassembly:
push ebp
mov ebp, esp
push ebx
sub esp, 0x14
mov eax, dword fs:[0x30]
mov eax, dword [eax + 0xc]
mov ebx, dword [eax + 0x14]
test ebx, ebx
je 0x401447
cmp word [ebx + 0x24], 0
je 0x401445
mov eax, dword [ebp + 8]
mov dword [esp + 4], eax
mov eax, dword [ebx + 0x28]
mov dword [esp], eax
call fcn.00401396
test eax, eax
jne 0x401441
mov ebx, dword [ebx + 0x10]
jmp 0x401447
mov ebx, dword [ebx]
jmp 0x40141b
xor ebx, ebx
add esp, 0x14
mov eax, ebx
pop ebx
pop ebp
ret 4
Function at 0x401180
Capabilities:
Send data
Send data on socket

Disassembly:
push ebx
push ebp
mov ebp, dword [esp + 0x10]
push esi
mov ebx, eax
xor esi, esi
push edi
mov edi, ebx
test ebx, ebx
jle 0x401201
test esi, esi
jl 0x4011f5
cmp ebx, 0x1000
mov eax, 0x1000
jg 0x4011a5
mov eax, ebx
cmp edi, eax
jge 0x4011ab
mov eax, edi
push 0
push eax
mov eax, dword [esp + 0x1c]
push ebp
push eax
call dword [sym.imp.WS2_32.dll_send]
test eax, eax
jl 0x4011c7
cmp byte [0x4418a2], 1
jne 0x4011ca
or esi, 0xffffffff
test eax, eax
jne 0x4011eb
cmp esi, 0x1e
jge 0x4011de
push 0x64
inc esi
call dword [sym.imp.KERNEL32.dll_Sleep]
jmp 0x4011f1
push 0x64
or esi, 0xffffffff
call dword [sym.imp.KERNEL32.dll_Sleep]
jmp 0x4011f1
jle 0x4011f1
add ebp, eax
sub edi, eax
test edi, edi
jg 0x401192
cmp esi, 0xffffffff
jne 0x401201
pop edi
or eax, esi
pop esi
pop ebp
pop ebx
ret
sub ebx, edi
pop edi
pop esi
pop ebp
mov eax, ebx
pop ebx
ret

Function at 0x401210
Capabilities:
Receive data
Receive data on socket

Disassembly:
push ebx
push ebp
mov ebp, dword [esp + 0x10]
push esi
mov ebx, eax
push edi
xor edi, edi
mov esi, ebx
test ebx, ebx
jle 0x40127c
test edi, edi
jl 0x401270
mov eax, dword [esp + 0x14]
push 0
push esi
push ebp
push eax
call dword [sym.imp.WS2_32.dll_recv]
test eax, eax
jl 0x401242
cmp byte [0x4418a2], 1
jne 0x401245
or edi, 0xffffffff
test eax, eax
jne 0x401266
cmp edi, 0x1e
jge 0x401259
push 0x64
inc edi
call dword [sym.imp.KERNEL32.dll_Sleep]
jmp 0x40126c
push 0x64
or edi, 0xffffffff
call dword [sym.imp.KERNEL32.dll_Sleep]
jmp 0x40126c
jle 0x40126c
add ebp, eax
sub esi, eax
test esi, esi
jg 0x401222
cmp edi, 0xffffffff
jne 0x40127c
or eax, edi
pop edi
pop esi
pop ebp
pop ebx
ret
pop edi
sub ebx, esi
pop esi
pop ebp
mov eax, ebx
pop ebx
ret

Function at 0x401290
Capabilities:
Create process on windows

Disassembly:
push 0x7f02
push 0
call dword [sym.imp.USER32.dll_LoadCursorA]
push eax
call dword [sym.imp.USER32.dll_SetCursor]
push 1
push 0
push 0
push str.http:__x_row.cc_zeroremote_
push str.open
push 0
call dword [sym.imp.SHELL32.dll_ShellExecuteA]
ret
Function at 0x402260
Capabilities:
Hide graphical window

Disassembly:
push ecx
cmp eax, 0x204
jne 0x402275
push 0x4412c8
call dword [sym.imp.USER32.dll_GetCursorPos]
pop ecx
ret
cmp eax, 0x205
jne 0x40235c
mov eax, dword [0x4413d0]
push esi
push eax
call dword [sym.imp.USER32.dll_SetForegroundWindow]
mov ecx, dword [0x4413d0]
push ecx
call dword [sym.imp.USER32.dll_SetFocus]
cmp dword [0x441644], 0
mov esi, dword [sym.imp.USER32.dll_LoadMenuA]
jne 0x4022de
cmp byte [0x441675], 0
jne 0x4022c2
mov edx, dword [0x4413d4]
push 0xc9
push edx
call esi
jmp 0x4022c6
mov eax, dword [esp + 4]
cmp byte [0x441675], 1
jne 0x4022e2
mov eax, dword [0x4413d4]
push 0xcb
push eax
call esi
jmp 0x4022e2
mov eax, dword [esp + 4]
cmp dword [0x441644], 1
jne 0x402319
cmp byte [0x441675], 0
jne 0x402302
mov ecx, dword [0x4413d4]
push 0xc8
push ecx
call esi
cmp byte [0x441675], 1
jne 0x402319
mov edx, dword [0x4413d4]
push 0xca
push edx
call esi
push 0
push eax
call dword [sym.imp.USER32.dll_GetSubMenu]
mov ecx, dword [0x4413d0]
mov edx, dword [0x4412cc]
push 0
push ecx
mov ecx, dword [0x4412c8]
push 0
push edx
mov edx, dword [esp + 0x1c]
push ecx
push edx
push eax
call dword [sym.imp.USER32.dll_TrackPopupMenu]
mov eax, dword [0x4413d0]
push 0
push 0
push 0
push eax
call dword [sym.imp.USER32.dll_PostMessageA]
pop esi
pop ecx
ret
cmp eax, 0x202
jne 0x40239d
cmp dword [0x441644], 1
jne 0x40239d
mov ecx, dword [0x4413d0]
push 0x105
push 0
push 0
push ecx
call dword [sym.imp.USER32.dll_RedrawWindow]
mov edx, dword [0x4413d0]
push 1
push edx
call dword [sym.imp.USER32.dll_ShowWindow]
mov eax, dword [0x4413d0]
push eax
call dword [sym.imp.USER32.dll_SetForegroundWindow]
pop ecx
ret
Function at 0x4036b0
Capabilities:
Enumerate processes on remote desktop session host

Disassembly:
sub esp, 0xc
push ebp
mov ebp, dword [esp + 0x30]
push esi
push edi
lea eax, [esp + 0x10]
push eax
lea ecx, [esp + 0x10]
push ecx
xor esi, esi
push 1
push esi
mov edi, ebx
push esi
mov dword [esp + 0x28], edi
mov dword [esp + 0x20], esi
mov dword [esp + 0x24], esi
call sub.WTSAPI32.dll_WTSEnumerateProcessesA
test eax, eax
je 0x40374b
mov eax, dword [esp + 0xc]
xor edi, edi
cmp dword [esp + 0x10], esi
jbe 0x403741
lea ecx, [ecx]
cmp dword [esp + 0x34], 0x10
mov ecx, dword [esp + 0x20]
jae 0x4036ff
lea ecx, [esp + 0x20]
mov edx, dword [esi + eax + 8]
push ecx
push edx
call fcn.0041cb60
add esp, 8
test eax, eax
mov eax, dword [esp + 0xc]
jne 0x40372a
cmp ebx, dword [esi + eax]
je 0x40371f
cmp ebx, 0xffffffff
jne 0x40372a
cmp dword [esi + eax + 4], ebp
jne 0x403736
cmp ebp, 0xffffffff
je 0x403736
inc edi
add esi, 0x10
cmp edi, dword [esp + 0x10]
jb 0x4036f0
jmp 0x403741
shl edi, 4
mov ecx, dword [edi + eax + 4]
mov dword [esp + 0x14], ecx
push eax
call sub.WTSAPI32.dll_WTSFreeMemory
mov edi, dword [esp + 0x14]
cmp dword [esp + 0x34], 0x10
jb 0x40375f
mov edx, dword [esp + 0x20]
push edx
call fcn.0041dadc
add esp, 4
mov eax, edi
pop edi
pop esi
pop ebp
add esp, 0xc
ret
Function at 0x40dbc0
Capabilities:
Resolve function by parsing pe exports

Disassembly:
sub esp, 0x3a8
mov eax, dword [0x43d0a0]
xor eax, esp
mov dword [esp + 0x3a4], eax
mov eax, dword [esp + 0x3ac]
push ebx
push ebp
xor ebx, ebx
mov dword [esp + 0x18], eax
push esi
xor eax, eax
push edi
mov dword [esp + 0x14], ebx
mov dword [esp + 0x1c], eax
mov dword [esp + 0x18], 1
mov dword [esp + 0x10], 0x43e254
mov ebp, 0x441d32
lea ecx, [esp + 0x78]
push ecx
push eax
push 0x63646976
call sub.MSVFW32.dll_ICInfo
test eax, eax
je 0x40ddee
mov edx, dword [esp + 0x80]
push 4
push edx
push 0x63646976
call sub.MSVFW32.dll_ICOpen
mov esi, eax
cmp esi, ebx
je 0x40dddc
push 0x238
lea eax, [esp + 0x7c]
push eax
push esi
call sub.MSVFW32.dll_ICGetInfo
push esi
call sub.MSVFW32.dll_ICClose
cmp dword [0x43e234], 0x10
mov ecx, dword [esp + 0x80]
movzx edx, cl
mov dword [ebp - 2], ecx
mov al, byte [ebp - 1]
mov cl, byte [ebp]
mov byte [esp + 0x2b0], dl
movzx edx, byte [ebp + 1]
mov byte [esp + 0x2b1], al
mov eax, dword [0x43e220]
mov byte [esp + 0x2b2], cl
mov byte [esp + 0x2b3], dl
mov byte [esp + 0x2b4], bl
jae 0x40dc9d
mov eax, 0x43e220
push eax
lea eax, [esp + 0x2b4]
push eax
call fcn.0041cb60
add esp, 8
test eax, eax
jne 0x40dcba
mov ecx, dword [esp + 0x18]
mov dword [esp + 0x14], ecx
lea eax, [esp + 0x2b0]
lea edx, [eax + 1]
mov cl, byte [eax]
inc eax
cmp cl, bl
jne 0x40dcc4
mov ecx, dword [esp + 0x10]
sub eax, edx
push eax
lea edx, [esp + 0x2b4]
push edx
call fcn.00415de0
xor eax, eax
mov word [esp + 0x44], ax
mov edi, 7
lea eax, [esp + 0x90]
mov dword [esp + 0x58], edi
mov dword [esp + 0x54], ebx
lea edx, [eax + 2]
lea ecx, [ecx]
mov cx, word [eax]
add eax, 2
cmp cx, bx
jne 0x40dd00
sub eax, edx
sar eax, 1
push eax
lea eax, [esp + 0x94]
lea esi, [esp + 0x44]
call fcn.00415f70
xor ecx, ecx
push 1
mov eax, 0x4331b4
lea esi, [esp + 0x60]
mov dword [esp + 0x78], edi
mov dword [esp + 0x74], ebx
mov word [esp + 0x64], cx
call fcn.00415f70
lea edx, [esp + 0x40]
push edx
mov eax, esi
push eax
lea edi, [esp + 0x2c]
call fcn.004166a0
add esp, 8
push 0xffffffffffffffff
push ebx
lea ecx, [esp + 0x48]
call fcn.00415ec0
mov esi, 8
cmp dword [esp + 0x3c], esi
jb 0x40dd77
mov ecx, dword [esp + 0x28]
push ecx
call fcn.0041dadc
add esp, 4
mov eax, dword [esp + 0x44]
cmp dword [esp + 0x58], esi
jae 0x40dd85
lea eax, [esp + 0x44]
mov edx, dword [esp + 0x20]
push eax
push ebx
push 0x143
push edx
call dword [sym.imp.USER32.dll_SendMessageW]
inc dword [esp + 0x18]
add dword [esp + 0x10], 0x1c
add ebp, 4
cmp dword [esp + 0x74], esi
jb 0x40ddb6
mov eax, dword [esp + 0x60]
push eax
call fcn.0041dadc
add esp, 4
xor ecx, ecx
mov dword [esp + 0x74], 7
mov dword [esp + 0x70], ebx
mov word [esp + 0x60], cx
cmp dword [esp + 0x58], esi
jb 0x40dddc
mov edx, dword [esp + 0x44]
push edx
call fcn.0041dadc
add esp, 4
mov eax, dword [esp + 0x1c]
inc eax
cmp eax, 0x64
mov dword [esp + 0x1c], eax
jl 0x40dc04
mov ecx, dword [esp + 0x3b4]
mov eax, dword [esp + 0x14]
pop edi
pop esi
pop ebp
pop ebx
xor ecx, esp
call fcn.0041c9bc
add esp, 0x3a8
ret
Function at 0x4173d0
Capabilities:
Hash data with crc32

Disassembly:
test ecx, ecx
jne 0x4173d7
xor eax, eax
ret
mov eax, dword [esp + 4]
jmp fcn.004173e0
Function at 0x4183c0
Capabilities:
Encrypt data using rc4 prga

Disassembly:
sub esp, 8
push ebx
push ebp
mov ebp, dword [esi + 0x2c]
push edi
lea esp, [esp]
mov edi, dword [esi + 0x3c]
sub edi, dword [esi + 0x74]
mov eax, dword [esi + 0x6c]
mov ecx, dword [esi + 0x2c]
sub edi, eax
lea edx, [ecx + ebp - 0x106]
mov dword [esp + 0xc], edi
cmp eax, edx
jb 0x418450
mov eax, dword [esi + 0x38]
push ebp
lea ecx, [eax + ebp]
push ecx
push eax
call fcn.00423130
mov edx, dword [esi + 0x4c]
mov eax, dword [esi + 0x44]
sub dword [esi + 0x70], ebp
sub dword [esi + 0x6c], ebp
add esp, 0xc
sub dword [esi + 0x5c], ebp
lea ecx, [eax + edx*2]
movzx eax, word [ecx - 2]
sub ecx, 2
cmp eax, ebp
jb 0x41841f
sub eax, ebp
jmp 0x418421
xor eax, eax
sub edx, 1
mov word [ecx], ax
jne 0x418410
mov ecx, dword [esi + 0x40]
mov edx, ebp
lea ecx, [ecx + ebp*2]
movzx eax, word [ecx - 2]
sub ecx, 2
cmp eax, ebp
jb 0x418440
sub eax, ebp
jmp 0x418442
xor eax, eax
sub edx, 1
mov word [ecx], ax
jne 0x418431
add edi, ebp
mov dword [esp + 0xc], edi
mov edi, dword [esi]
cmp dword [edi + 4], 0
je 0x41850a
mov edx, dword [esi + 0x74]
add edx, dword [esi + 0x6c]
mov eax, dword [edi + 4]
add edx, dword [esi + 0x38]
mov ecx, dword [esp + 0xc]
mov ebx, eax
mov dword [esp + 0x10], edx
cmp ebx, ecx
jbe 0x418478
mov ebx, ecx
test ebx, ebx
je 0x4184cc
sub eax, ebx
mov dword [edi + 4], eax
mov eax, dword [edi + 0x1c]
mov eax, dword [eax + 0x18]
cmp eax, 1
jne 0x41849a
mov edx, dword [edi]
mov ecx, dword [edi + 0x30]
mov eax, ebx
call fcn.00417170
jmp 0x4184b3
cmp eax, 2
jne 0x4184ba
mov ecx, dword [edi]
mov eax, dword [edi + 0x30]
test ecx, ecx
jne 0x4184ac
xor eax, eax
jmp 0x4184b7
mov edx, ebx
call fcn.004173e0
mov edx, dword [esp + 0x10]
mov dword [edi + 0x30], eax
mov ecx, dword [edi]
push ebx
push ecx
push edx
call fcn.00423130
add dword [edi], ebx
add esp, 0xc
add dword [edi + 8], ebx
add dword [esi + 0x74], ebx
mov edi, dword [esi + 0x74]
cmp edi, 3
jb 0x4184f6
mov eax, dword [esi + 0x38]
mov edx, dword [esi + 0x6c]
mov ecx, dword [esi + 0x58]
add edx, eax
movzx eax, byte [edx]
mov dword [esi + 0x48], eax
shl eax, cl
movzx ecx, byte [edx + 1]
xor eax, ecx
and eax, dword [esi + 0x54]
mov dword [esi + 0x48], eax
cmp edi, 0x106
jae 0x41850a
mov edx, dword [esi]
cmp dword [edx + 4], 0
jne 0x4183d0
pop edi
pop ebp
pop ebx
add esp, 8
ret