joyce8/EMBER2024-capa huggingface dataset:
Function at 0x458060
Capabilities:
Extract resource via kernel32 functions

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x46d810
mov eax, dword fs:[0]
push eax
push ecx
push ebx
push esi
push edi
mov eax, dword [0x48e110]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov esi, ecx
mov eax, dword [ebp + 8]
mov edi, dword [eax + 0xc]
mov ecx, dword [eax + 0x14]
movzx eax, word [eax + 0x10]
push ecx
push eax
push edi
call dword [sym.imp.KERNEL32.dll_FindResourceW]
mov ebx, eax
test ebx, ebx
je 0x4581bf
push ebx
push edi
call dword [sym.imp.KERNEL32.dll_SizeofResource]
push ebx
push edi
mov dword [ebp + 8], eax
call dword [sym.imp.KERNEL32.dll_LoadResource]
xor ebx, ebx
cmp eax, ebx
je 0x4581bf
push eax
call dword [sym.imp.KERNEL32.dll_LockResource]
cmp eax, ebx
je 0x4581bf
mov ecx, dword [ebp + 8]
lea edi, [esi + 0x14]
cmp ecx, ebx
je 0x4581bf
cmp dword [eax], 0x2e66622e
jne 0x4581bf
mov edx, 0x10000
cmp dword [eax + 0x3c], edx
jne 0x4581bf
cmp dword [eax + 0x40], edx
jne 0x4581bf
mov dword [edi + 0x1c], ecx
mov dword [edi + 0x18], eax
mov dword [edi + 0x20], eax
call fcn.004589b0
mov dword [ebp + 8], ebx
mov dword [ebp - 4], ebx
mov dword [ebp - 0x10], ebx
mov byte [ebp - 4], 1
mov eax, dword [esi + 4]
lea ecx, [ebp + 8]
push ecx
push eax
mov edx, edi
call fcn.00458b70
test al, al
je 0x4581a5
mov ecx, dword [esi + 0xc]
cmp dword [ecx - 0xc], ebx
je 0x458147
lea edx, [esi + 0x6c]
push edx
push ecx
mov edx, edi
call fcn.00458b70
test al, al
je 0x4581a5
mov ecx, dword [esi + 8]
cmp dword [ecx - 0xc], ebx
je 0x45815f
lea eax, [esi + 0x70]
push eax
push ecx
mov edx, edi
call fcn.00458b70
test al, al
je 0x4581a5
add esi, 0x60
cmp esi, ebx
je 0x4581a5
mov edi, dword [ebp + 8]
push esi
push edi
call fcn.00457d80
test al, al
je 0x4581a8
mov byte [ebp - 4], 0
mov esi, dword [sym.imp.OLEAUT32.dll_SysStringLen]
push ebx
call esi
mov dword [ebp - 4], 0xffffffff
push edi
call esi
mov al, 1
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 4
mov edi, dword [ebp + 8]
mov byte [ebp - 4], 0
mov esi, dword [sym.imp.OLEAUT32.dll_SysStringLen]
push ebx
call esi
mov dword [ebp - 4], 0xffffffff
push edi
call esi
xor al, al
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 4
Function at 0x4588c0
Capabilities:
Get file size
Read file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 8
push esi
push edi
mov edi, eax
mov eax, dword [edi + 0x14]
xor esi, esi
cmp eax, esi
je 0x4588df
push eax
call fcn.0045abd1
add esp, 4
mov dword [edi + 0x14], esi
mov eax, dword [ebp + 8]
push esi
push esi
push 3
push esi
push 1
push SysReAllocStringLen
push eax
mov dword [edi + 0x18], esi
mov dword [edi + 0x1c], esi
mov dword [edi + 0x20], esi
mov dword [edi + 0x34], esi
call dword [sym.imp.KERNEL32.dll_CreateFileW]
mov dword [ebp - 8], eax
cmp eax, 0xffffffff
jne 0x458913
pop edi
xor al, al
pop esi
mov esp, ebp
pop ebp
ret 4
push ebx
push esi
push eax
mov byte [ebp + 0xb], 0
call dword [sym.imp.KERNEL32.dll_GetFileSize]
mov ebx, eax
push ebx
call fcn.0045a0f6
mov edx, dword [ebp - 8]
add esp, 4
push 0
lea ecx, [ebp - 4]
push ecx
push ebx
mov esi, eax
push esi
push edx
mov dword [ebp - 4], 0
call dword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
je 0x458981
cmp dword [ebp - 4], ebx
jne 0x458981
cmp dword [esi], 0x2e66622e
jne 0x458981
mov eax, 0x10000
cmp dword [esi + 0x3c], eax
jne 0x458981
cmp dword [esi + 0x40], eax
jne 0x458981
cmp dword [esi + 0x64], 0
je 0x458981
mov dword [edi + 0x14], esi
mov dword [edi + 0x1c], ebx
mov dword [edi + 0x18], esi
mov dword [edi + 0x20], esi
call fcn.004589b0
mov bl, 1
jmp 0x458984
mov bl, byte [ebp + 0xb]
mov eax, dword [ebp - 8]
push eax
call dword [sym.imp.KERNEL32.dll_CloseHandle]
test bl, bl
jne 0x45899b
push esi
call fcn.0045abd1
add esp, 4
mov al, bl
pop ebx
pop edi
pop esi
mov esp, ebp
pop ebp
ret 4

Function at 0x45a014
Capabilities:
Allocate or change rwx memory
Execute shellcode via indirect call

Disassembly:
cmp dword [0x491ab8], 0
push esi
push edi
jne 0x459f8a
call fcn.00459ef6
test eax, eax
je 0x459fcf
mov eax, dword [0x491ab8]
cmp eax, 1
jne 0x459fab
push 0xd
push 0
call dword [sym.imp.KERNEL32.dll_GetProcessHeap]
push eax
call dword [sym.imp.KERNEL32.dll_HeapAlloc]
test eax, eax
je 0x459fcf
jmp 0x45a011
mov edi, dword [sym.imp.KERNEL32.dll_InterlockedPopEntrySList]
push eax
call edi
test eax, eax
jne 0x45a011
push 0x40
mov eax, 0x1000
push eax
push eax
push 0
call dword [sym.imp.KERNEL32.dll_VirtualAlloc]
mov esi, eax
test esi, esi
jne 0x459fd3
xor eax, eax
jmp 0x45a011
mov eax, dword [esi]
push dword [0x491ab8]
call edi
mov edi, eax
test edi, edi
je 0x459ff5
push 0x8000
push 0
push esi
call dword [sym.imp.KERNEL32.dll_VirtualFree]
mov eax, edi
jmp 0x45a011
lea edi, [esi + 0xff0]
push esi
push dword [0x491ab8]
call dword [sym.imp.KERNEL32.dll_InterlockedPushEntrySList]
add esi, 0x10
cmp esi, edi
jb 0x459ffb
mov eax, esi
pop edi
pop esi
ret
jmp 0x459f76

Function at 0x45a10c
Capabilities:
Terminate process

Disassembly:
cmp ecx, dword [0x48e110]
jne 0x45a116
repz ret
jmp fcn.0045ca26
Function at 0x464ba2
Capabilities:
Link many functions at runtime

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x24
mov eax, dword [0x48e110]
xor eax, ebp
mov dword [ebp - 4], eax
mov eax, dword [ebp + 8]
push ebx
mov dword [ebp - 0x20], eax
mov eax, dword [ebp + 0xc]
push esi
push edi
mov dword [ebp - 0x1c], eax
call fcn.0045daff
and dword [ebp - 0x14], 0
cmp dword [0x492880], 0
mov dword [ebp - 0x18], eax
jne 0x464c55
push str.USER32.DLL
call dword [sym.imp.KERNEL32.dll_LoadLibraryW]
mov ebx, eax
test ebx, ebx
je 0x464cfd
mov edi, dword [sym.imp.KERNEL32.dll_GetProcAddress]
push 0x47676c
push ebx
call edi
test eax, eax
je 0x464cfd
mov esi, dword [sym.imp.KERNEL32.dll_EncodePointer]
push eax
call esi
push str.GetActiveWindow
push ebx
mov dword [0x492880], eax
call edi
push eax
call esi
push str.GetLastActivePopup
push ebx
mov dword [0x492884], eax
call edi
push eax
call esi
push str.GetUserObjectInformationW
push ebx
mov dword [0x492888], eax
call edi
push eax
call esi
mov dword [0x492890], eax
test eax, eax
je 0x464c55
push str.GetProcessWindowStation
push ebx
call edi
push eax
call esi
mov dword [0x49288c], eax
mov eax, dword [0x49288c]
mov ecx, dword [ebp - 0x18]
mov esi, dword [sym.imp.KERNEL32.dll_DecodePointer]
cmp eax, ecx
je 0x464cae
cmp dword [0x492890], ecx
je 0x464cae
push eax
call esi
push dword [0x492890]
mov edi, eax
call esi
mov ebx, eax
test edi, edi
je 0x464cae
test ebx, ebx
je 0x464cae
call edi
test eax, eax
je 0x464ca5
lea ecx, [ebp - 0x24]
push ecx
push 0xc
lea ecx, [ebp - 0x10]
push ecx
push 1
push eax
call ebx
test eax, eax
je 0x464ca5
test byte [ebp - 8], 1
jne 0x464cae
or dword [ebp + 0x10], 0x200000
jmp 0x464ce1
mov eax, dword [0x492884]
cmp eax, dword [ebp - 0x18]
je 0x464ce1
push eax
call esi
test eax, eax
je 0x464ce1
call eax
mov dword [ebp - 0x14], eax
test eax, eax
je 0x464ce1
mov eax, dword [0x492888]
cmp eax, dword [ebp - 0x18]
je 0x464ce1
push eax
call esi
test eax, eax
je 0x464ce1
push dword [ebp - 0x14]
call eax
mov dword [ebp - 0x14], eax
push dword [0x492880]
call esi
test eax, eax
je 0x464cfd
push dword [ebp + 0x10]
push dword [ebp - 0x1c]
push dword [ebp - 0x20]
push dword [ebp - 0x14]
call eax
jmp 0x464cff
xor eax, eax
mov ecx, dword [ebp - 4]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.0045a10c
leave
ret
Function at 0x401000
Capabilities:
Encode data using base64

Disassembly:
push esi
mov esi, eax
test edi, edi
jne 0x40100e
mov eax, 0x1c
pop esi
ret
xor ecx, ecx
xor eax, eax
push ebx
jmp 0x401020
movzx edx, byte [esi + ecx]
shr edx, 2
movzx edx, byte [edx + 0x5b8168]
mov byte [edi + eax], dl
movzx edx, byte [esi + ecx]
movzx ebx, byte [esi + ecx + 1]
and edx, 3
shl edx, 4
shr ebx, 4
or edx, ebx
movzx edx, byte [edx + 0x5b8168]
mov byte [edi + eax + 1], dl
movzx edx, byte [esi + ecx + 1]
movzx ebx, byte [esi + ecx + 2]
and edx, 0xf
add edx, edx
add edx, edx
shr ebx, 6
or edx, ebx
movzx edx, byte [edx + 0x5b8168]
mov byte [edi + eax + 2], dl
movzx edx, byte [esi + ecx + 2]
and edx, 0x3f
movzx edx, byte [edx + 0x5b8168]
mov byte [edi + eax + 3], dl
add ecx, 3
add eax, 4
cmp ecx, 0x12
jb 0x401020
movzx edx, byte [ecx + esi]
shr edx, 2
mov dl, byte [edx + 0x5b8168]
mov byte [eax + edi], dl
lea edx, [ecx + esi + 1]
movzx ecx, byte [ecx + esi]
movzx esi, byte [edx]
and ecx, 3
shl ecx, 4
shr esi, 4
or ecx, esi
movzx ecx, byte [ecx + 0x5b8168]
mov byte [eax + edi + 1], cl
movzx edx, byte [edx]
and edx, 0xf
movzx ecx, byte [edx*4 + 0x5b8168]
pop ebx
mov byte [eax + edi + 2], cl
mov byte [eax + edi + 3], 0x3d
add eax, 4
pop esi
ret
Function at 0x404ad0
Capabilities:
Hash data using sha1

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x54b44c
mov eax, dword fs:[0]
push eax
sub esp, 0xa0
mov eax, dword [0x5ca120]
xor eax, ebp
mov dword [ebp - 0x14], eax
push ebx
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov eax, dword [ebp + 8]
mov dword [ebp - 0xac], ecx
push eax
lea ecx, [ebp - 0xa8]
call dword [sym.imp.mfc100u.dll_ATL::CStringT_char_class_StrTraitMFC_DLL_char_class_ATL::ChTraitsCRT_char_____::CStringT_char_class_StrTraitMF]
xor esi, esi
push str.258EAFA5_E914_47DA_95CA_C5AB0DC85B11
lea ecx, [ebp - 0xa8]
mov dword [ebp - 4], esi
call dword [sym.imp.mfc100u.dll_ATL::CSimpleStringT_char_1_::Append]
mov ebx, dword [ebp - 0xa8]
mov edx, dword [ebx - 0xc]
mov dword [ebp - 0x64], esi
mov dword [ebp - 0x5c], esi
mov dword [ebp - 0x58], esi
push edx
lea esi, [ebp - 0xa4]
mov dword [ebp - 0x54], 0x67452301
mov dword [ebp - 0x50], 0xefcdab89
mov dword [ebp - 0x4c], 0x98badcfe
mov dword [ebp - 0x48], 0x10325476
mov dword [ebp - 0x44], 0xc3d2e1f0
mov dword [ebp - 0x40], 0x5a827999
mov dword [ebp - 0x3c], 0x6ed9eba1
mov dword [ebp - 0x38], 0x8f1bbcdc
mov dword [ebp - 0x34], 0xca62c1d6
call fcn.00401de0
add esp, 4
lea edi, [ebp - 0x28]
call fcn.00401e30
mov esi, dword [ebp - 0xac]
push 0x1e
mov ecx, esi
call dword [sym.imp.mfc100u.dll_ATL::CSimpleStringT_char_1_::GetBuffer]
mov edi, eax
lea eax, [ebp - 0x28]
call fcn.00401000
push eax
mov ecx, esi
call dword [sym.imp.mfc100u.dll_ATL::CSimpleStringT_char_1_::ReleaseBufferSetLength]
lea ecx, [ebp - 0xa8]
call dword [sym.imp.mfc100u.dll_ATL::CStringT_char_class_StrTraitMFC_DLL_char_class_ATL::ChTraitsCRT_char_____::CStringT_char_class_StrTraitM]
mov eax, esi
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 0x14]
xor ecx, ebp
call fcn.005448c8
mov esp, ebp
pop ebp
ret
Function at 0x407170
Capabilities:
Read .ini file

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x408
mov eax, dword [0x5ca120]
xor eax, ebp
mov dword [ebp - 4], eax
xor eax, eax
push 0x3fe
push eax
lea ecx, [ebp - 0x402]
push ecx
mov dword [ebp - 0x408], 0
mov word [ebp - 0x404], ax
call sub.MSVCR100.dll_memset
add esp, 0xc
mov ecx, edi
call dword [sym.imp.szutils.dll_public:_wchar_t_const____thiscall_TCommon::TString::operator_wchar_t_const__void_const]
push eax
push 0x200
lea edx, [ebp - 0x404]
push edx
push 0x5ba888
push str.Port
push str.Server
call dword [sym.imp.KERNEL32.dll_GetPrivateProfileStringW]
push 0xffffffffffffffff
lea eax, [ebp - 0x404]
push eax
mov ecx, esi
call dword [sym.imp.szutils.dll_public:_void___thiscall_TCommon::TString::constructor_wchar_t_const___int_]
mov ecx, dword [ebp - 4]
xor ecx, ebp
mov eax, esi
call fcn.005448c8
mov esp, ebp
pop ebp
ret

Function at 0x407200
Capabilities:
Read .ini file

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x408
mov eax, dword [0x5ca120]
xor eax, ebp
mov dword [ebp - 4], eax
xor eax, eax
push 0x3fe
push eax
lea ecx, [ebp - 0x402]
push ecx
mov dword [ebp - 0x408], 0
mov word [ebp - 0x404], ax
call sub.MSVCR100.dll_memset
add esp, 0xc
mov ecx, edi
call dword [sym.imp.szutils.dll_public:_wchar_t_const____thiscall_TCommon::TString::operator_wchar_t_const__void_const]
push eax
push 0x200
lea edx, [ebp - 0x404]
push edx
push str.http:__cas1.szca.com_services_szcaCAValidate
push str.CertVerify
push str.Server
call dword [sym.imp.KERNEL32.dll_GetPrivateProfileStringW]
push 0xffffffffffffffff
lea eax, [ebp - 0x404]
push eax
mov ecx, esi
call dword [sym.imp.szutils.dll_public:_void___thiscall_TCommon::TString::constructor_wchar_t_const___int_]
mov ecx, dword [ebp - 4]
xor ecx, ebp
mov eax, esi
call fcn.005448c8
mov esp, ebp
pop ebp
ret

Function at 0x407290
Capabilities:
Read .ini file

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x408
mov eax, dword [0x5ca120]
xor eax, ebp
mov dword [ebp - 4], eax
xor eax, eax
push 0x3fe
push eax
lea ecx, [ebp - 0x402]
push ecx
mov dword [ebp - 0x408], 0
mov word [ebp - 0x404], ax
call sub.MSVCR100.dll_memset
add esp, 0xc
mov ecx, edi
call dword [sym.imp.szutils.dll_public:_wchar_t_const____thiscall_TCommon::TString::operator_wchar_t_const__void_const]
push eax
push 0x200
lea edx, [ebp - 0x404]
push edx
push str.77096DF368124074A8C2AC8C531D19C4
push str.clientId
push str.Server
call dword [sym.imp.KERNEL32.dll_GetPrivateProfileStringW]
push 0xffffffffffffffff
lea eax, [ebp - 0x404]
push eax
mov ecx, esi
call dword [sym.imp.szutils.dll_public:_void___thiscall_TCommon::TString::constructor_wchar_t_const___int_]
mov ecx, dword [ebp - 4]
xor ecx, ebp
mov eax, esi
call fcn.005448c8
mov esp, ebp
pop ebp
ret
Function at 0x407320
Capabilities:
Read .ini file

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x408
mov eax, dword [0x5ca120]
xor eax, ebp
mov dword [ebp - 4], eax
xor eax, eax
push 0x3fe
push eax
lea ecx, [ebp - 0x402]
push ecx
mov dword [ebp - 0x408], 0
mov word [ebp - 0x404], ax
call sub.MSVCR100.dll_memset
add esp, 0xc
mov ecx, edi
call dword [sym.imp.szutils.dll_public:_wchar_t_const____thiscall_TCommon::TString::operator_wchar_t_const__void_const]
push eax
push 0x200
lea edx, [ebp - 0x404]
push edx
push str.1FCE57959FA24A31BAC475977A8EBCBE
push str.secertKey
push str.Server
call dword [sym.imp.KERNEL32.dll_GetPrivateProfileStringW]
push 0xffffffffffffffff
lea eax, [ebp - 0x404]
push eax
mov ecx, esi
call dword [sym.imp.szutils.dll_public:_void___thiscall_TCommon::TString::constructor_wchar_t_const___int_]
mov ecx, dword [ebp - 4]
xor ecx, ebp
mov eax, esi
call fcn.005448c8
mov esp, ebp
pop ebp
ret

Function at 0x4073f0
Capabilities:
Check mutex on windows
Get session user name

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x54b6b8
mov eax, dword fs:[0]
push eax
sub esp, 0x300
mov eax, dword [0x5ca120]
xor eax, ebp
mov dword [ebp - 0x10], eax
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
push 0x1fe
mov esi, ecx
xor edi, edi
lea ecx, [ebp - 0x20e]
xor eax, eax
push edi
push ecx
mov word [ebp - 0x210], ax
call sub.MSVCR100.dll_memset
add esp, 0xc
lea edx, [ebp - 0x214]
push edx
lea eax, [ebp - 0x210]
push eax
mov dword [ebp - 0x214], pe_nt_image_headers32
call dword [sym.imp.ADVAPI32.dll_GetUserNameW]
lea ecx, [ebp - 0x210]
push 0x5ba8c4
push ecx
call dword [sym.imp.MSVCR100.dll__wcsicmp]
add esp, 8
test eax, eax
je 0x407556
push str.Ukey_Server_DEBD5D23_A29C_4AF9_ABEC_4608B9EEF36B
push 1
push edi
call dword [sym.imp.KERNEL32.dll_CreateMutexW]
mov dword [esi + 0xb8], eax
cmp eax, edi
je 0x4074b7
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0xb7
jne 0x4074b7
mov edx, dword [esi + 0xb8]
push edx
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov dword [esi + 0xb8], edi
jmp 0x407556
lea eax, [ebp - 0x21c]
push eax
mov dword [ebp - 0x21c], 8
mov dword [ebp - 0x218], 0xff
call dword [sym.imp.COMCTL32.dll_InitCommonControlsEx]
mov ecx, esi
call dword [sym.imp.mfc100u.dll_CWinApp::InitInstance]
push edi
call dword [sym.imp.mfc100u.dll_AfxEnableControlContainer]
push 0xc
call dword [sym.imp.mfc100u.dll_new]
add esp, 8
mov dword [ebp - 0x220], eax
mov dword [ebp - 4], edi
cmp eax, edi
je 0x407509
mov ecx, eax
call dword [sym.imp.mfc100u.dll_CShellManager::CShellManager]
mov edi, eax
lea ecx, [ebp - 0x30c]
push ecx
mov dword [ebp - 4], 0xffffffff
call fcn.00407910
lea edx, [ebp - 0x30c]
mov dword [ebp - 4], 1
mov ecx, edx
mov dword [esi + 0x20], edx
call dword [sym.imp.mfc100u.dll_CDialog::DoModal]
test edi, edi
je 0x407543
mov eax, dword [edi]
mov edx, dword [eax + 4]
push 1
mov ecx, edi
call edx
lea eax, [ebp - 0x30c]
push eax
mov dword [ebp - 4], 0xffffffff
call fcn.00407580
xor eax, eax
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.005448c8
mov esp, ebp
pop ebp
ret
Function at 0x41c8c0
Capabilities:
Access peb ldr_data

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x548ada
mov eax, dword fs:[0]
push eax
sub esp, 0x18
push ebx
push esi
push edi
mov eax, dword [0x5ca120]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov esi, ecx
mov dword [ebp - 0x14], esi
xor ebx, ebx
mov dword [esi], ebx
push 8
mov dword [ebp - 4], ebx
call sub.mfc100u.dll_new
add esp, 4
cmp eax, ebx
je 0x41c9c5
mov dword [esi], eax
xor ecx, ecx
mov dword [eax], ecx
xor edx, edx
mov dword [eax + 4], edx
mov eax, dword [esi]
mov dword [eax], esi
mov dword [esi + 4], ebx
mov dword [esi + 8], ebx
mov dword [esi + 0xc], ebx
mov dword [esi + 0x10], ebx
lea edi, [esi + 0x18]
mov dword [ebp - 4], 1
mov dword [ebp - 0x18], edi
mov dword [edi], ebx
push 8
mov byte [ebp - 4], 2
call sub.mfc100u.dll_new
add esp, 4
cmp eax, ebx
je 0x41c9a0
mov dword [edi], eax
xor ecx, ecx
mov dword [eax], ecx
xor edx, edx
mov dword [eax + 4], edx
mov ecx, dword [edi]
mov dword [ecx], edi
mov dword [edi + 4], ebx
mov dword [edi + 8], ebx
mov dword [edi + 0xc], ebx
mov dword [edi + 0x10], ebx
mov dword [esi + 0x40], ebx
mov eax, 0xf
mov dword [esi + 0x44], eax
mov byte [esi + 0x30], bl
mov dword [esi + 0x4c], ebx
mov dword [esi + 0x50], ebx
mov dword [esi + 0x54], ebx
mov dword [esi + 0x58], ebx
mov dword [esi + 0x5c], ebx
mov dword [esi + 0x74], eax
mov dword [esi + 0x70], ebx
mov byte [esi + 0x60], bl
mov word [esi + 0x7c], 1
mov byte [esi + 0x7e], bl
mov eax, esi
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
lea edx, [ebp - 0x10]
push edx
lea ecx, [ebp - 0x24]
mov dword [ebp - 0x10], ebx
call dword [sym.imp.MSVCR100.dll_public:_void___thiscall_std::exception::constructor_char_const__const_const__]
push 0x5c101c
lea eax, [ebp - 0x24]
push eax
mov dword [ebp - 0x24], vtable.std::bad_alloc.0
call sub.MSVCR100.dll__CxxThrowException
lea ecx, [ebp - 0x10]
push ecx
lea ecx, [ebp - 0x24]
mov dword [ebp - 0x10], ebx
call dword [sym.imp.MSVCR100.dll_public:_void___thiscall_std::exception::constructor_char_const__const_const__]
push 0x5c101c
lea edx, [ebp - 0x24]
push edx
mov dword [ebp - 0x24], vtable.std::bad_alloc.0
call sub.MSVCR100.dll__CxxThrowException
int3

Function at 0x41f5f0
Capabilities:
Extract resource via kernel32 functions

Disassembly:
push ebp
mov ebp, esp
push ebx
mov ebx, dword [ebp + 8]
push edi
mov edi, dword [ebp + 0xc]
push edi
push ebx
call dword [sym.imp.KERNEL32.dll_LoadResource]
test eax, eax
jne 0x41f60b
pop edi
pop ebx
pop ebp
ret
push esi
push eax
call dword [sym.imp.KERNEL32.dll_LockResource]
mov esi, eax
test esi, esi
je 0x41f642
push edi
push ebx
call dword [sym.imp.KERNEL32.dll_SizeofResource]
mov ecx, dword [ebp + 0x10]
add eax, esi
and ecx, 0xf
jbe 0x41f63e
jmp 0x41f630
cmp esi, eax
jae 0x41f642
dec ecx
movzx edx, word [esi]
lea esi, [esi + edx*2 + 2]
jne 0x41f630
cmp esi, eax
jb 0x41f649
pop esi
pop edi
xor eax, eax
pop ebx
pop ebp
ret
movzx eax, word [esi]
neg eax
sbb eax, eax
and eax, esi
pop esi
pop edi
pop ebx
pop ebp
ret
Function at 0x41fb30
Capabilities:
Encode data using xor
Hash data using fnv

Disassembly:
push ebp
mov ebp, esp
mov eax, dword [ebp + 8]
mov edx, dword [eax]
push esi
mov eax, edx
lea esi, [eax + 1]
push ebx
nop
mov bl, byte [eax]
inc eax
test bl, bl
jne 0x41fb40
sub eax, esi
add eax, edx
mov esi, 0x811c9dc5
pop ebx
cmp edx, eax
je 0x41fb67
push edi
movsx edi, byte [edx]
imul esi, esi, 0x1000193
inc edx
xor esi, edi
cmp edx, eax
jne 0x41fb56
pop edi
mov edx, dword [ecx + 0x20]
mov eax, edx
and eax, esi
pop esi
cmp dword [ecx + 0x24], eax
ja 0x41fb7d
shr edx, 1
or ecx, 0xffffffff
sub ecx, edx
add eax, ecx
pop ebp
ret 4

Function at 0x420900
Capabilities:
Encode data using xor
Hash data using fnv

Disassembly:
push ebp
mov ebp, esp
push esi
mov esi, dword [ebp + 0xc]
push edi
mov edi, ecx
mov eax, dword [edi + 4]
cmp esi, dword [eax]
jne 0x42092b
cmp dword [ebp + 0x10], eax
jne 0x42092b
call fcn.00420890
mov eax, dword [edi + 4]
mov ecx, dword [eax]
mov eax, dword [ebp + 8]
pop edi
mov dword [eax], ecx
pop esi
pop ebp
ret 0xc
cmp esi, dword [ebp + 0x10]
je 0x420a19
push ebx
mov edx, dword [esi]
mov dword [ebp + 0xc], edx
mov ecx, dword [esi + 8]
mov eax, ecx
lea ebx, [eax + 1]
mov dl, byte [eax]
inc eax
test dl, dl
jne 0x420942
sub eax, ebx
add eax, ecx
mov edx, 0x811c9dc5
cmp ecx, eax
je 0x420966
movsx ebx, byte [ecx]
imul edx, edx, 0x1000193
inc ecx
xor edx, ebx
cmp ecx, eax
jne 0x420956
mov ecx, dword [edi + 0x20]
mov eax, ecx
and eax, edx
cmp dword [edi + 0x24], eax
ja 0x42097b
shr ecx, 1
or edx, 0xffffffff
sub edx, ecx
add eax, edx
mov ecx, dword [edi + 0x10]
cmp dword [ecx + eax*8 + 4], esi
lea ecx, [ecx + eax*8]
jne 0x4209a4
cmp dword [ecx], esi
jne 0x42099c
mov edx, dword [edi + 4]
mov dword [ecx], edx
mov ecx, dword [edi + 0x10]
mov edx, dword [edi + 4]
mov dword [ecx + eax*8 + 4], edx
jmp 0x4209ac
mov eax, dword [esi + 4]
mov dword [ecx + 4], eax
jmp 0x4209ac
cmp dword [ecx], esi
jne 0x4209ac
mov edx, dword [esi]
mov dword [ecx], edx
cmp esi, dword [edi + 4]
je 0x420a0a
mov eax, dword [esi + 4]
mov ecx, dword [esi]
mov dword [eax], ecx
mov edx, dword [esi]
mov eax, dword [esi + 4]
mov dword [edx + 4], eax
mov eax, dword [esi + 0xc]
sub eax, 0x10
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x4209df
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov eax, dword [esi + 8]
sub eax, 0x10
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x4209fe
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
push esi
call sub.mfc100u.dll_delete
add esp, 4
dec dword [edi + 8]
mov ecx, dword [ebp + 0x10]
mov esi, dword [ebp + 0xc]
cmp esi, ecx
jne 0x420935
pop ebx
mov eax, dword [ebp + 8]
pop edi
mov dword [eax], esi
pop esi
pop ebp
ret 0xc
Function at 0x424ed0
Capabilities:
Set socket configuration

Disassembly:
push ebp
mov ebp, esp
sub esp, 8
mov eax, dword [ebp + 0xc]
push ebx
push esi
push edi
mov dword [ebp - 8], 1
mov dword [ebp - 4], 0
test eax, eax
jne 0x424f22
mov edi, dword [ebp + 8]
mov ebx, dword [sym.imp.WS2_32.dll_setsockopt]
push 4
lea eax, [ebp - 8]
push eax
push 0xfffffffffffffffb
push 0xffff
push edi
call ebx
push 4
lea ecx, [ebp - 4]
push ecx
push 4
push 0xffff
push edi
mov esi, eax
call ebx
pop edi
or eax, esi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
cmp eax, 1
jne 0x424f5b
mov edi, dword [ebp + 8]
mov ebx, dword [sym.imp.WS2_32.dll_setsockopt]
push 4
lea edx, [ebp - 4]
push edx
push 0xfffffffffffffffb
push 0xffff
push edi
call ebx
push 4
mov esi, eax
lea eax, [ebp - 4]
push eax
push 4
push 0xffff
push edi
call ebx
pop edi
or eax, esi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
cmp eax, 2
jne 0x424f94
mov edi, dword [ebp + 8]
mov ebx, dword [sym.imp.WS2_32.dll_setsockopt]
push 4
lea ecx, [ebp - 4]
push ecx
push 0xfffffffffffffffb
push 0xffff
push edi
call ebx
push 4
lea edx, [ebp - 8]
push edx
push 4
push 0xffff
push edi
mov esi, eax
call ebx
pop edi
or eax, esi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
push 0x57
call dword [sym.imp.KERNEL32.dll_SetLastError]
pop edi
pop esi
or eax, 0xffffffff
pop ebx
mov esp, ebp
pop ebp
ret

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

Disassembly:
push ebp
mov ebp, esp
sub esp, 8
mov eax, dword [ebp + 8]
push esi
push edi
xor edi, edi
push edi
push edi
lea ecx, [ebp - 8]
push ecx
lea edx, [ebp - 4]
push edx
lea esi, [eax + 0x1c]
mov eax, dword [eax + 0x34]
push 1
push esi
push eax
mov dword [ebp - 8], edi
mov dword [ebp - 4], edi
call dword [sym.imp.WS2_32.dll_WSARecv]
cmp eax, 0xffffffff
jne 0x42505e
call dword [sym.imp.WS2_32.dll_WSAGetLastError]
pop edi
pop esi
mov esp, ebp
pop ebp
ret
mov eax, dword [ebp - 4]
cmp eax, edi
jbe 0x42506f
mov dword [esi], eax
mov eax, edi
pop edi
pop esi
mov esp, ebp
pop ebp
ret
pop edi
mov eax, 0x2775
pop esi
mov esp, ebp
pop ebp
ret