joyce8/EMBER2024-capa huggingface dataset:
Function at 0x401ff0
Capabilities:
Download url
Receive data

Disassembly:
push 0xffffffffffffffff
push 0x40d4f9
mov eax, dword fs:[0]
push eax
sub esp, 0x3c
mov eax, dword [0x41404c]
xor eax, esp
mov dword [esp + 0x38], eax
mov eax, dword [0x41404c]
xor eax, esp
push eax
lea eax, [esp + 0x40]
mov dword fs:[0], eax
push str.https:__microsoft.com
lea ecx, [esp + 0x10]
call dword [sym.imp.MSVCP90.dll_public:_void___thiscall_std::basic_string_char__struct_std::char_traits_char___class_std::allocator_char__::constructor_char_const__]
xor eax, eax
mov dword [esp + 0x48], 0
cmp dword [esp + 0x24], 0x10
mov word [esp + 0x28], ax
mov dword [esp + 0x2a], eax
mov dword [esp + 0x2e], eax
mov dword [esp + 0x32], eax
mov dword [esp + 0x36], eax
mov word [esp + 0x3a], ax
mov eax, dword [esp + 0x10]
jae 0x402060
lea eax, [esp + 0x10]
push 0
push 0
lea ecx, [esp + 0xc]
push ecx
push eax
push 0
call sub.urlmon.dll_URLOpenBlockingStreamA
test eax, eax
jne 0x402099
mov eax, dword [esp + 4]
mov edx, dword [eax]
mov edx, dword [edx + 0xc]
lea ecx, [esp + 8]
push ecx
push 0xa
lea ecx, [esp + 0x30]
push ecx
push eax
call edx
mov eax, dword [esp + 4]
mov ecx, dword [eax]
mov edx, dword [ecx + 8]
push eax
call edx
lea ecx, [esp + 0xc]
mov dword [esp + 8], 0
mov dword [esp + 0x48], 0xffffffff
call dword [sym.imp.MSVCP90.dll_public:_void___thiscall_std::basic_string_char__struct_std::char_traits_char___class_std::allocator_char__::destructor_void_]
mov ecx, dword [esp + 0x40]
mov dword fs:[0], ecx
pop ecx
mov ecx, dword [esp + 0x38]
xor ecx, esp
call fcn.0040c7c6
add esp, 0x48
ret
Function at 0x406ee0
Capabilities:
Initialize winsock library
Resolve dns

Disassembly:
sub esp, 0x1c0
mov eax, dword [0x41404c]
xor eax, esp
mov dword [esp + 0x1b8], eax
push ebx
push esi
push edi
lea eax, [esp + 0x30]
push eax
push 2
call dword [sym.imp.WS2_32.dll_WSAStartup]
xor eax, eax
cmp dword [0x4171d8], 0x10
mov dword [esp + 0x14], eax
mov dword [esp + 0x18], eax
mov dword [esp + 0x1c], eax
mov dword [esp + 0x10], eax
mov dword [esp + 0x20], eax
mov dword [esp + 0x24], eax
mov dword [esp + 0x28], eax
mov dword [esp + 0x2c], eax
mov dword [esp + 0x14], eax
mov eax, dword [0x4171c4]
mov dword [esp + 0xc], 0
mov dword [esp + 0x18], 1
mov dword [esp + 0x1c], 6
jae 0x406f55
mov eax, 0x4171c4
lea ecx, [esp + 0xc]
push ecx
lea edx, [esp + 0x14]
push edx
push 0
push eax
call dword [sym.imp.WS2_32.dll_getaddrinfo]
test eax, eax
jne 0x406fab
mov esi, dword [esp + 0xc]
test esi, esi
je 0x406fa4
mov edi, dword [sym.imp.WS2_32.dll_inet_ntoa]
mov ebx, dword [sym.imp.MSVCR90.dll_strcpy_s]
mov eax, dword [esi + 0x18]
mov eax, dword [eax + 4]
push eax
call edi
push eax
push 0x104
push 0x416c68
call ebx
mov esi, dword [esi + 0x1c]
add esp, 0xc
test esi, esi
jne 0x406f80
mov esi, dword [esp + 0xc]
push esi
call dword [sym.imp.WS2_32.dll_freeaddrinfo]
mov ecx, dword [esp + 0x1c4]
pop edi
pop esi
pop ebx
xor ecx, esp
call fcn.0040c7c6
add esp, 0x1c0
ret
Function at 0x407e50
Capabilities:
Create process on windows

Disassembly:
sub esp, 0x5c
push esi
push 0x44
lea eax, [esp + 0x1c]
push 0
push eax
call sub.MSVCR90.dll_memset
add esp, 0xc
xor eax, eax
lea ecx, [esp + 8]
push ecx
lea edx, [esp + 0x1c]
push edx
push eax
push eax
push eax
push eax
push eax
push eax
mov dword [esp + 0x28], eax
mov dword [esp + 0x2c], eax
mov dword [esp + 0x30], eax
mov dword [esp + 0x34], eax
mov eax, dword [esp + 0x84]
push eax
push 0
mov dword [esp + 0x40], 0x44
call dword [sym.imp.KERNEL32.dll_CreateProcessW]
mov ecx, dword [esp + 8]
mov esi, dword [sym.imp.KERNEL32.dll_CloseHandle]
push ecx
call esi
mov edx, dword [esp + 0xc]
push edx
call esi
pop esi
add esp, 0x5c
ret

Function at 0x408130
Capabilities:
Terminate process

Disassembly:
sub esp, 0x444
mov eax, dword [0x41404c]
xor eax, esp
mov dword [esp + 0x43c], eax
push 0x434
lea eax, [esp + 8]
push 0
push eax
mov dword [esp + 0xc], 0
call sub.MSVCR90.dll_memset
add esp, 0xc
call fcn.00407df0
lea edx, [esp]
jmp 0x408170
movzx ecx, word [eax]
mov word [edx], cx
add eax, 2
add edx, 2
test cx, cx
jne 0x408170
lea ecx, [esp]
push ecx
call fcn.00407e50
add esp, 4
push 0
call dword [sym.imp.MSVCR90.dll_exit]
int3

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

Disassembly:
push ebx
push ebp
mov ebp, dword [esp + 0xc]
push esi
xor esi, esi
test edi, edi
jle 0x4081d2
mov ebx, dword [sym.imp.WS2_32.dll_recv]
mov edx, dword [0x416530]
push 0
mov eax, edi
sub eax, esi
push eax
lea ecx, [esi + ebp]
push ecx
push edx
call ebx
cmp eax, 0xffffffff
je 0x4081d8
add esi, eax
cmp esi, edi
jl 0x4081b3
pop esi
pop ebp
mov al, 1
pop ebx
ret
pop esi
pop ebp
xor al, al
pop ebx
ret

Function at 0x4081e0
Capabilities:
Send data
Send data on socket

Disassembly:
push ebx
push ebp
mov ebp, dword [esp + 0xc]
push esi
xor esi, esi
test edi, edi
jle 0x408212
mov ebx, dword [sym.imp.WS2_32.dll_send]
mov edx, dword [0x416530]
push 0
mov eax, edi
sub eax, esi
push eax
lea ecx, [esi + ebp]
push ecx
push edx
call ebx
cmp eax, 0xffffffff
je 0x408218
add esi, eax
cmp esi, edi
jl 0x4081f3
pop esi
pop ebp
mov al, 1
pop ebx
ret
pop esi
pop ebp
xor al, al
pop ebx
ret

Function at 0x408220
Capabilities:
Send data
Send data on socket

Disassembly:
mov eax, dword [esp + 4]
push esi
push edi
push eax
call dword [sym.imp.WS2_32.dll_htonl]
mov edi, dword [sym.imp.WS2_32.dll_send]
mov dword [esp + 0xc], eax
xor esi, esi
lea esp, [esp]
mov eax, dword [0x416530]
push 0
mov ecx, 4
sub ecx, esi
push ecx
lea edx, [esp + esi + 0x14]
push edx
push eax
call edi
cmp eax, 0xffffffff
je 0x408268
add esi, eax
cmp esi, 4
jl 0x408240
pop edi
mov al, 1
pop esi
ret
pop edi
xor al, al
pop esi
ret
Function at 0x4083c0
Capabilities:
Access peb ldr_data

Disassembly:
push 0xffffffffffffffff
push 0x40d639
mov eax, dword fs:[0]
push eax
sub esp, 0x24
push esi
push edi
mov eax, dword [0x41404c]
xor eax, esp
push eax
lea eax, [esp + 0x30]
mov dword fs:[0], eax
lea edi, [esp + 0xc]
call fcn.00408270
test al, al
je 0x408421
mov eax, dword [esp + 0xc]
inc eax
push eax
call fcn.0040c074
mov ecx, dword [esp + 0x10]
mov esi, eax
mov byte [esi + ecx], 0
mov edi, dword [esp + 0x10]
push esi
call fcn.004081a0
add esp, 8
test al, al
jne 0x408435
push esi
call sub.MSVCR90.dll_void___cdecl_operator_delete___void__
add esp, 4
xor al, al
mov ecx, dword [esp + 0x30]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
add esp, 0x30
ret
sub esp, 0x1c
mov ecx, esp
mov dword [esp + 0x2c], esp
push esi
call dword [sym.imp.MSVCP90.dll_public:_void___thiscall_std::basic_string_char__struct_std::char_traits_char___class_std::allocator_char__::constructor_char_const__]
lea ecx, [esp + 0x30]
call fcn.00409a00
add esp, 0x1c
mov ecx, dword [esp + 0x40]
push eax
mov dword [esp + 0x3c], 0
call dword [0x41015c]
lea ecx, [esp + 0x14]
mov dword [esp + 0x38], 0xffffffff
call dword [sym.imp.MSVCP90.dll_public:_void___thiscall_std::basic_string_char__struct_std::char_traits_char___class_std::allocator_char__::destructor_void_]
push esi
call sub.MSVCR90.dll_void___cdecl_operator_delete___void__
add esp, 4
mov al, 1
mov ecx, dword [esp + 0x30]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
add esp, 0x30
ret
Function at 0x409c70
Capabilities:
Get hostname
Get session user name

Disassembly:
sub esp, 0x510
mov eax, dword [0x41404c]
xor eax, esp
mov dword [esp + 0x50c], eax
xor eax, eax
push 0x3fe
push eax
lea ecx, [esp + 0x116]
push ecx
mov word [esp + 0x118], ax
call sub.MSVCR90.dll_memset
xor edx, edx
push 0x102
push edx
lea eax, [esp + 0x1e]
push eax
mov word [esp + 0x20], dx
call sub.MSVCR90.dll_memset
add esp, 0x18
lea ecx, [esp + 4]
push ecx
lea edx, [esp + 0x110]
push edx
mov dword [esp + 0xc], 0x64
call dword [sym.imp.KERNEL32.dll_GetComputerNameA]
lea eax, [esp]
push eax
lea ecx, [esp + 0xc]
push ecx
mov dword [esp + 8], 0x64
call dword [sym.imp.ADVAPI32.dll_GetUserNameA]
lea edx, [esp + 0x10c]
push edx
call sub.MSVCR90.dll_void___cdecl_operator_delete___void__
lea eax, [esp + 0xc]
push eax
call sub.MSVCR90.dll_void___cdecl_operator_delete___void__
mov ecx, dword [esp + 0x514]
add esp, 8
xor ecx, esp
call fcn.0040c7c6
add esp, 0x510
ret
Function at 0x40c7c6
Capabilities:
Terminate process

Disassembly:
cmp ecx, dword [0x41404c]
jne 0x40c7d0
repz ret
jmp fcn.0040cce0
Function at 0x401030
Capabilities:
Create thread

Disassembly:
mov eax, dword [0x408670]
push ebp
mov ebp, dword [esp + 8]
push esi
xor esi, esi
push edi
mov edi, dword [ebp + 0x88]
test eax, eax
je 0x401194
mov dword [0x408670], esi
mov eax, dword [ebp + 0x8c]
dec eax
cmp eax, 0x20
ja case.0x40106a.16
xor ecx, ecx
mov cl, byte [eax + 0x4011d8]
jmp dword [ecx*4 + 0x401198]
mov esi, 0x4034b0
jmp case.0x40106a.16
mov esi, 0x4035e0
jmp case.0x40106a.16
mov esi, 0x403710
jmp case.0x40106a.16
mov esi, 0x403390
jmp case.0x40106a.16
mov esi, 0x403770
jmp case.0x40106a.16
mov esi, 0x403800
jmp case.0x40106a.16
cmp dword [0x408554], 1
jne case.0x40106a.2
mov esi, 0x4040a0
jmp case.0x40106a.16
mov esi, 0x403280
jmp case.0x40106a.16
mov eax, dword [0x408554]
mov esi, 0x404730
cmp eax, 1
je 0x401160
mov esi, 0x403280
jmp 0x401160
mov eax, dword [0x408554]
mov esi, 0x404c20
cmp eax, 1
je 0x401160
mov esi, 0x403280
jmp 0x401160
mov eax, dword [0x408554]
mov esi, 0x4044c0
cmp eax, 1
je 0x401160
mov esi, 0x403280
jmp 0x401160
mov eax, dword [0x408554]
mov esi, 0x4040a0
cmp eax, 1
je 0x401160
jmp 0x40115b
mov eax, dword [0x408554]
mov esi, 0x404730
cmp eax, 1
je 0x401160
jmp 0x40115b
mov edx, dword [0x408554]
mov esi, 0x4034b0
dec edx
neg edx
sbb edx, edx
and edx, 0xffffffd4
add edx, 0x40
add edi, edx
jmp case.0x40106a.16
mov eax, dword [0x408554]
mov esi, 0x4044c0
cmp eax, 1
je 0x401160
mov esi, 0x4034b0
add edi, 0x14
push ebx
mov ebx, dword [sym.imp.KERNEL32.dll_CreateThread]
test edi, edi
jbe 0x40117d
push 0
push 0
push ebp
push esi
push 0
push 0
call ebx
dec edi
jne 0x40116e
mov eax, dword [ebp + 0x84]
push 0
push 0
push eax
push section..text
push 0
push 0
call ebx
pop ebx
pop edi
pop esi
pop ebp
ret

Function at 0x4016e0
Capabilities:
Get socket status

Disassembly:
sub esi, 0x104
push esi
push edi
mov edi, dword [esp + 0x118]
xor esi, esi
test edi, edi
jne 0x401703
pop edi
mov eax, 1
pop esi
add esp, 0x104
ret
push ebx
mov ebx, dword [esp + 0x114]
push ebp
mov ebp, dword [esp + 0x11c]
mov eax, dword [0x408fc8]
push 0
mov dword [esp + 0x18], eax
push 0
lea ecx, [esp + 0x18]
push 0
lea eax, [ebx + 1]
push ecx
push eax
mov dword [esp + 0x24], 1
call dword [sym.imp.WS2_32.dll_select]
cmp eax, 0xffffffff
je 0x401772
test eax, eax
je 0x401713
lea edx, [esp + 0x10]
push edx
push ebx
call fcn.00402f3c
test eax, eax
je 0x401793
mov eax, edi
push 1
sub eax, esi
lea ecx, [esi + ebp]
push ecx
push ecx
push ebx
not dword [0x4440619a]
test eax, eax
je 0x401772
cmp esp, 0xffffffff
je 0x401772
add esi, eax
cmp esi, edi
jb 0x401713
xor eax, eax
pop ebp
jnp 0x40176e
pop ebx
pop edi
pop esi
sete al
add ebp, 0x104
ret
add dword [eax], eax
add byte [ebp + 0x5300a444], cl

Function at 0x403180
Capabilities:
Resolve dns

Disassembly:
push esi
mov esi, dword [esp + 8]
push esi
call dword [sym.imp.WS2_32.dll_inet_addr]
test eax, eax
jge 0x4031a4
push esi
call dword [sym.imp.WS2_32.dll_gethostbyname]
test eax, eax
jne 0x40319d
pop esi
ret
mov eax, dword [eax + 0xc]
mov ecx, dword [eax]
mov eax, dword [ecx + 0x5e]
pop esi
ret
Function at 0x403230
Capabilities:
Get common file path

Disassembly:
sub esp, 0x104
lea eax, [esp]
push 0x20104
push eax
call dword [sym.imp.KERNEL32.dll_GetSystemDirectoryA]
lea ecx, [esp]
push str.Program_FilesInternet_Exploreriexplore.exe
push ecx
mov byte [esp + 0xa], 0x80
call dword [sym.imp.KERNEL32.dll_lstrcatA]
mov eax, dword [esp + 0x108]
lea edx, [esp + 4]
push edx
push eax
call dword [sym.imp.KERNEL32.dll_lstrcpyA]
cmp byte [ecx], al
add byte [eax], al
add byte [eax + 0x104c4], al
add bl, al
nop
nop
nop
nop
nop
nop
sub esp, 0xca4
push ebx
push esi
mov esi, dword [esp + 0x8b0]
push edi
mov ecx, 0x24
lea edi, [esp + 0x20]
rep movsd dword es:[edi], dword [esi]
dec eax
call 0xe84032a4
mov ebx, 0x8bfffffe
invalid

Function at 0x405110
Capabilities:
Read file on windows

Disassembly:
sub esp, 0x138
push esi
mov esi, dword [esp + 0x140]
push edi
push 2
push 0
push esi
call sub.MSVCRT.dll_fseek
push esi
call sub.MSVCRT.dll_ftell
push 0
push 0
push esi
mov edi, eax
call sub.MSVCRT.dll_fseek
add esp, 0x1c
cmp edi, 0x40
jae 0x40514e
pop edi
xor al, al
pop esi
add esp, 0x138
ret
push esi
push 1
lea eax, [esp + 0x28]
push 0x40
push eax
call sub.MSVCRT.dll_fread
add esp, 0x10
cmp word [esp + 0x20], 0x5a4d
je 0x405174
pop edi
xor al, al
pop esi
add esp, 0x138
ret
mov eax, dword [esp + 0x5c]
lea ecx, [eax + 0x18]
cmp edi, ecx
jae 0x40518a
pop edi
xor al, al
pop esi
add esp, 0x138
ret
push 0
push eax
push esi
call sub.MSVCRT.dll_fseek
push esi
push 1
lea edx, [esp + 0x1c]
push 0x18
push edx
call sub.MSVCRT.dll_fread
add esp, 0x1c
cmp word [esp + 0x1c], 0xe0
je 0x4051b9
pop edi
xor al, al
pop esi
add esp, 0x138
ret
push ebx
push esi
push 1
lea eax, [esp + 0x6c]
push 0xe0
push eax
call sub.MSVCRT.dll_fread
mov eax, dword [esp + 0x22]
and eax, 0xffff
lea ecx, [eax + eax*4]
shl ecx, 3
push ecx
call sub.MSVCRT.dll_void____cdecl_operator_new_unsigned_int_
mov ebx, eax
mov eax, dword [esp + 0x26]
and eax, 0xffff
push esi
push 1
lea edx, [eax + eax*4]
shl edx, 3
push edx
push ebx
call sub.MSVCRT.dll_fread
mov edi, dword [esp + 0x170]
mov ecx, 0x10
lea esi, [esp + 0x48]
mov eax, dword [esp + 0x17c]
rep movsd dword es:[edi], dword [esi]
mov edi, dword [esp + 0x174]
mov ecx, 6
lea esi, [esp + 0x30]
add esp, 0x24
rep movsd dword es:[edi], dword [esi]
mov edi, dword [esp + 0x154]
mov ecx, 0x38
lea esi, [esp + 0x64]
rep movsd dword es:[edi], dword [esi]
mov dword [eax], ebx
pop ebx
pop edi
mov al, 1
pop esi
add esp, 0x138
ret
Function at 0x401f10
Capabilities:
Get disk information
Inspect load icon resource
Read file on windows

Disassembly:
mov eax, dword [esp + 4]
sub esp, 0x148
push ebx
push esi
push edi
push 0x65
push eax
call dword [sym.imp.USER32.dll_LoadIconA]
lea ecx, [esp + 0xc]
call fcn.00401000
lea ecx, [esp + 0x50]
push 0x104
push ecx
push 0
call dword [sym.imp.KERNEL32.dll_GetModuleFileNameA]
lea edx, [esp + 0x50]
lea ecx, [esp + 0xc]
push edx
call fcn.004012b0
test eax, eax
je 0x402021
lea eax, [esp + 0x50]
push 0x404030
push eax
call dword [sym.imp.MSVCRT.dll_fopen]
mov esi, eax
add esp, 8
test esi, esi
je 0x402084
lea ecx, [esp + 0x50]
push ecx
lea ecx, [esp + 0x10]
call fcn.00401290
mov edi, dword [sym.imp.MSVCRT.dll_fseek]
sub eax, 8
push 0
push eax
push esi
call edi
mov ebx, dword [sym.imp.MSVCRT.dll_fread]
push esi
push 1
lea edx, [esp + 0x24]
push 8
push edx
call ebx
mov eax, dword [esp + 0x2c]
push 0
push eax
push esi
call edi
push esi
push 1
lea ecx, [esp + 0x48]
push 0x38
push ecx
call ebx
push esi
call dword [sym.imp.MSVCRT.dll_fclose]
mov eax, dword [esp + 0x88]
mov edx, dword [esp + 0x50]
add esp, 0x3c
test eax, eax
mov eax, dword [esp + 0x10]
push edx
push eax
jne 0x401ffe
sub esp, 0x38
mov ecx, 0xe
lea esi, [esp + 0x58]
mov edi, esp
rep movsd dword es:[edi], dword [esi]
lea ecx, [esp + 0x90]
push ecx
lea ecx, [esp + 0x50]
call fcn.00401800
jmp 0x402084
sub esp, 0x38
mov ecx, 0xe
lea esi, [esp + 0x58]
mov edi, esp
rep movsd dword es:[edi], dword [esi]
lea ecx, [esp + 0x90]
push ecx
lea ecx, [esp + 0x50]
call fcn.00401a90
jmp 0x402084
lea ecx, [esp + 0x10]
call sub.MFC42.DLL_CString::CString_1
call dword [sym.imp.KERNEL32.dll_GetLogicalDrives]
mov edi, eax
mov esi, 1
xor ebx, ebx
test edi, esi
je 0x40206a
mov dl, bl
lea ecx, [esp + 0x10]
add dl, 0x41
push edx
call sub.MFC42.DLL_CString::operator_1
push 0x40412c
lea ecx, [esp + 0x14]
call fcn.004020e2
lea ecx, [esp + 0xc]
mov eax, dword [esp + 0x10]
push eax
push 0
call fcn.00401cf0
add esi, esi
inc ebx
cmp ebx, 0x1a
jl 0x402039
lea ecx, [esp + 0xc]
call fcn.00401040
lea ecx, [esp + 0x10]
call sub.MFC42.DLL_CString::CString
lea ecx, [esp + 0xc]
call fcn.00401030
pop edi
pop esi
xor eax, eax
pop ebx
add esp, 0x148
ret 0x10

Function at 0x401000
Capabilities:
Terminate process

Disassembly:
push 0
push 0x4010b2
push 0x4010b2
push 0
call dword [sym.imp.USER32.DLL_MessageBoxW]
push 0
call dword [sym.imp.KERNEL32.DLL_ExitProcess]
Function at 0x430002
Capabilities:
Encode data using xor
Packed with generic packer

Disassembly:
pushal
nop
nop
nop
mov eax, section..idata
nop
nop
mov ebx, 0x408ecc
mov ecx, 0x2526249
nop
nop
nop
nop
test eax, eax
nop
nop
nop
nop
je 0x43004e
nop
nop
nop
nop
xor dword [eax], ecx
nop
nop
nop
nop
nop
inc eax
nop
nop
nop
nop
nop
nop
inc eax
nop
nop
nop
inc eax
nop
nop
inc eax
nop
nop
nop
nop
nop
cmp eax, ebx
nop
nop
nop
nop
nop
jne 0x430024
nop
nop
nop
mov eax, section..data
nop
mov ebx, 0x42e1d0
nop
nop
mov ecx, 0x21b54478
nop
test eax, eax
nop
nop
nop
nop
nop
nop
nop
je 0x430084
nop
nop
nop
xor dword [eax], ecx
nop
add eax, 4
nop
nop
nop
nop
nop
nop
nop
cmp eax, ebx
nop
nop
jne 0x43006c
nop
nop
nop
nop
nop
nop
nop
popal
jmp 0x401219
Function at 0x4017c0
Capabilities:
Check for software breakpoints

Disassembly:
push esi
mov esi, dword [esp + 8]
cmp dword [esi + 0x14], 0xca
jne 0x401813
mov eax, dword [esi + 4]
push 0x1c
mov eax, dword [eax]
push 1
push esi
call eax
mov dword [esi + 0x180], eax
add esp, 0xc
mov ecx, esi
mov dword [eax], 0x405940
mov dword [eax + 4], 0x405aa0
mov byte [eax + 8], 0
call fcn.00405750
cmp byte [esi + 0x40], 0
je 0x40180c
mov dword [esi + 0x14], 0xcf
mov al, 1
pop esi
ret
mov dword [esi + 0x14], 0xcb
mov eax, dword [esi + 0x14]
push edi
cmp eax, 0xcb
jne 0x401899
mov eax, dword [esi + 0x190]
cmp byte [eax + 0x10], 0
je 0x401887
lea ebx, [ebx]
mov eax, dword [esi + 8]
test eax, eax
je 0x40183f
mov eax, dword [eax]
push esi
call eax
add esp, 4
mov eax, dword [esi + 0x190]
push esi
mov eax, dword [eax]
call eax
add esp, 4
test eax, eax
je 0x401882
cmp eax, 2
je 0x401887
mov ecx, dword [esi + 8]
test ecx, ecx
je 0x401830
cmp eax, 3
je 0x401867
cmp eax, 1
jne 0x401830
inc dword [ecx + 4]
mov edx, dword [esi + 8]
mov edi, dword [edx + 8]
cmp dword [ecx + 4], edi
jl 0x401830
mov eax, dword [esi + 0x11c]
add eax, edi
mov dword [edx + 8], eax
jmp 0x401830
pop edi
xor al, al
pop esi
ret
mov eax, dword [esi + 0x7c]
pop edi
mov dword [esi + 0x84], eax
mov ecx, esi
pop esi
jmp 0x4018d0
cmp eax, 0xcc
je 0x4018bb
mov eax, dword [esi]
push esi
mov dword [eax + 0x14], 0x14
mov ecx, dword [esi]
mov eax, dword [esi + 0x14]
mov dword [ecx + 0x18], eax
mov eax, dword [esi]
mov eax, dword [eax]
call eax
add esp, 4
pop edi
mov ecx, esi
pop esi
jmp 0x4018d0
push ebx
push esi
mov esi, ecx
push edi
cmp dword [esi + 0x14], 0xcc
je 0x4018fa
mov eax, dword [esi + 0x180]
push esi
mov eax, dword [eax]
call eax
add esp, 4
mov dword [esi + 0x78], 0
mov dword [esi + 0x14], 0xcc
mov eax, dword [esi + 0x180]
cmp byte [eax + 8], 0
je 0x401982
lea ebx, [esi + 0x78]
lea esp, [esp]
mov eax, dword [ebx]
cmp eax, dword [esi + 0x60]
jae 0x401956
mov ecx, dword [esi + 8]
test ecx, ecx
je 0x401935
mov dword [ecx + 4], eax
mov ecx, dword [esi + 8]
mov eax, dword [esi + 0x60]
mov dword [ecx + 8], eax
mov eax, dword [esi + 8]
push esi
mov eax, dword [eax]
call eax
add esp, 4
mov eax, dword [esi + 0x184]
mov edi, dword [ebx]
mov eax, dword [eax + 4]
push 0
push ebx
push 0
push esi
call eax
mov eax, dword [ebx]
add esp, 0x10
cmp eax, edi
je 0x401998
cmp eax, dword [esi + 0x60]
jb 0x401917
mov eax, dword [esi + 0x180]
push esi
mov eax, dword [eax + 4]
call eax
mov eax, dword [esi + 0x180]
push esi
mov eax, dword [eax]
call eax
mov dword [ebx], 0
mov eax, dword [esi + 0x180]
add esp, 8
cmp byte [eax + 8], 0
jne 0x401910
xor eax, eax
cmp byte [esi + 0x41], al
pop edi
setne al
add eax, 0xcd
mov dword [esi + 0x14], eax
pop esi
mov al, 1
pop ebx
ret
pop edi
pop esi
xor al, al
pop ebx
ret
Function at 0x4018d1
Capabilities:
Check for software breakpoints

Disassembly:
push esi
mov esi, dword [esp + 8]
cmp dword [esi + 0x14], 0xca
jne 0x401813
mov eax, dword [esi + 4]
push 0x1c
mov eax, dword [eax]
push 1
push esi
call eax
mov dword [esi + 0x180], eax
add esp, 0xc
mov ecx, esi
mov dword [eax], 0x405940
mov dword [eax + 4], 0x405aa0
mov byte [eax + 8], 0
call fcn.00405750
cmp byte [esi + 0x40], 0
je 0x40180c
mov dword [esi + 0x14], 0xcf
mov al, 1
pop esi
ret
mov dword [esi + 0x14], 0xcb
mov eax, dword [esi + 0x14]
push edi
cmp eax, 0xcb
jne 0x401899
mov eax, dword [esi + 0x190]
cmp byte [eax + 0x10], 0
je 0x401887
lea ebx, [ebx]
mov eax, dword [esi + 8]
test eax, eax
je 0x40183f
mov eax, dword [eax]
push esi
call eax
add esp, 4
mov eax, dword [esi + 0x190]
push esi
mov eax, dword [eax]
call eax
add esp, 4
test eax, eax
je 0x401882
cmp eax, 2
je 0x401887
mov ecx, dword [esi + 8]
test ecx, ecx
je 0x401830
cmp eax, 3
je 0x401867
cmp eax, 1
jne 0x401830
inc dword [ecx + 4]
mov edx, dword [esi + 8]
mov edi, dword [edx + 8]
cmp dword [ecx + 4], edi
jl 0x401830
mov eax, dword [esi + 0x11c]
add eax, edi
mov dword [edx + 8], eax
jmp 0x401830
pop edi
xor al, al
pop esi
ret
mov eax, dword [esi + 0x7c]
pop edi
mov dword [esi + 0x84], eax
mov ecx, esi
pop esi
jmp 0x4018d0
cmp eax, 0xcc
je 0x4018bb
mov eax, dword [esi]
push esi
mov dword [eax + 0x14], 0x14
mov ecx, dword [esi]
mov eax, dword [esi + 0x14]
mov dword [ecx + 0x18], eax
mov eax, dword [esi]
mov eax, dword [eax]
call eax
add esp, 4
pop edi
mov ecx, esi
pop esi
jmp 0x4018d0
push ebx
push esi
mov esi, ecx
push edi
cmp dword [esi + 0x14], 0xcc
je 0x4018fa
mov eax, dword [esi + 0x180]
push esi
mov eax, dword [eax]
call eax
add esp, 4
mov dword [esi + 0x78], 0
mov dword [esi + 0x14], 0xcc
mov eax, dword [esi + 0x180]
cmp byte [eax + 8], 0
je 0x401982
lea ebx, [esi + 0x78]
lea esp, [esp]
mov eax, dword [ebx]
cmp eax, dword [esi + 0x60]
jae 0x401956
mov ecx, dword [esi + 8]
test ecx, ecx
je 0x401935
mov dword [ecx + 4], eax
mov ecx, dword [esi + 8]
mov eax, dword [esi + 0x60]
mov dword [ecx + 8], eax
mov eax, dword [esi + 8]
push esi
mov eax, dword [eax]
call eax
add esp, 4
mov eax, dword [esi + 0x184]
mov edi, dword [ebx]
mov eax, dword [eax + 4]
push 0
push ebx
push 0
push esi
call eax
mov eax, dword [ebx]
add esp, 0x10
cmp eax, edi
je 0x401998
cmp eax, dword [esi + 0x60]
jb 0x401917
mov eax, dword [esi + 0x180]
push esi
mov eax, dword [eax + 4]
call eax
mov eax, dword [esi + 0x180]
push esi
mov eax, dword [eax]
call eax
mov dword [ebx], 0
mov eax, dword [esi + 0x180]
add esp, 8
cmp byte [eax + 8], 0
jne 0x401910
xor eax, eax
cmp byte [esi + 0x41], al
pop edi
setne al
add eax, 0xcd
mov dword [esi + 0x14], eax
pop esi
mov al, 1
pop ebx
ret
pop edi
pop esi
xor al, al
pop ebx
ret
Function at 0x407a70
Capabilities:
Encrypt data using rc4 ksa

Disassembly:
sub esp, 0x18
push ebx
push ebp
push esi
mov esi, ecx
push edi
cmp dword [esi + 0x4c], 1
mov ebp, dword [esi + 0x1a8]
mov dword [esp + 0x20], esi
mov dword [esp + 0x24], ebp
jne 0x407a98
mov edi, 0x1fe
mov byte [ebp + 0x1c], 1
jmp 0x407a9e
xor edi, edi
mov byte [ebp + 0x1c], 0
push dword [esi + 0x64]
mov ecx, dword [esi + 4]
lea eax, [edi + 0x100]
push eax
mov eax, dword [ecx + 8]
push 1
push esi
mov dword [esp + 0x20], edi
call eax
xor ebx, ebx
mov dword [ebp + 0x18], eax
mov eax, dword [ebp + 0x14]
add esp, 0x10
mov dword [esp + 0x14], ebx
cmp dword [esi + 0x64], ebx
jle 0x407b9e
nop
mov ecx, dword [ebp + ebx*4 + 0x20]
cdq
idiv ecx
mov dword [esp + 0x1c], ecx
mov dword [esp + 0x18], eax
test edi, edi
je 0x407aed
mov eax, dword [ebp + 0x18]
add dword [eax + ebx*4], 0xff
mov eax, dword [ebp + 0x18]
lea edi, [ecx*2 - 2]
mov ebp, dword [eax + ebx*4]
lea eax, [ecx + 0xfe]
cdq
idiv edi
xor ebx, ebx
xor esi, esi
mov edx, eax
lea esp, [esp]
cmp esi, edx
jle 0x407b3a
mov eax, ebx
imul eax, eax, 0x1fe
add ecx, 0xfe
add ecx, eax
add ecx, 0x1fe
mov eax, ecx
cdq
idiv edi
inc ebx
mov edx, eax
cmp esi, edx
jg 0x407b24
mov ecx, dword [esp + 0x1c]
mov al, byte [esp + 0x18]
imul bl
mov byte [esi + ebp], al
inc esi
cmp esi, 0xff
jle 0x407b10
mov edi, dword [esp + 0x10]
test edi, edi
je 0x407b80
mov ecx, 1
lea edx, [ebp - 1]
lea esp, [esp]
movzx eax, byte [ebp]
mov byte [edx], al
movzx eax, byte [ebp + 0xff]
mov byte [ecx + ebp + 0xff], al
inc ecx
lea edx, [edx - 1]
cmp ecx, 0xff
jle 0x407b60
mov ebx, dword [esp + 0x14]
mov eax, dword [esp + 0x20]
mov ebp, dword [esp + 0x24]
inc ebx
cmp ebx, dword [eax + 0x64]
mov eax, dword [esp + 0x18]
mov dword [esp + 0x14], ebx
jl 0x407ad0
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x18
ret