joyce8/EMBER2024-capa huggingface dataset:
Function at 0x469dc0
Capabilities:
Write file on windows

Disassembly:
mov edx, dword [esp + 4]
push esi
mov eax, edx
push edi
mov esi, ecx
lea edi, [eax + 1]
lea ecx, [ecx]
mov cl, byte [eax]
add eax, 1
test cl, cl
jne 0x469dd0
push 0
lea ecx, [esp + 0x10]
push ecx
sub eax, edi
mov edi, dword [sym.imp.KERNEL32.dll_WriteFile]
push eax
push edx
mov edx, dword [esi + 4]
push edx
call edi
test eax, eax
jne 0x469df9
call fcn.0046dc30
mov ecx, dword [esi + 4]
push 0
lea eax, [esp + 0x10]
push eax
push 2
push 0x4bf8a8
push ecx
call edi
neg eax
sbb eax, eax
pop edi
add eax, 1
pop esi
ret 4

Function at 0x469e20
Capabilities:
Read file on windows

Disassembly:
mov eax, dword [esp + 0xc]
mov edx, dword [esp + 8]
mov ecx, dword [ecx + 4]
push 0
push eax
mov eax, dword [esp + 0xc]
push edx
push eax
push ecx
call dword [sym.imp.KERNEL32.dll_ReadFile]
neg eax
sbb eax, eax
add eax, 1
ret 0xc

Function at 0x469f40
Capabilities:
Get file size

Disassembly:
sub esp, 8
push esi
mov esi, ecx
cmp dword [esi + 4], 0
jne 0x469f5e
push 0xffffffffffffffff
call dword [sym.imp.KERNEL32.dll_SetLastError]
mov eax, 1
pop esi
add esp, 8
ret
push ebx
push edi
call fcn.00469ea0
mov ecx, dword [esi + 4]
mov edi, eax
lea eax, [esp + 0xc]
push eax
push ecx
mov ebx, edx
call dword [sym.imp.KERNEL32.dll_GetFileSizeEx]
cmp edi, dword [esp + 0xc]
jne 0x469f90
cmp ebx, dword [esp + 0x10]
jne 0x469f90
pop edi
pop ebx
mov eax, 1
pop esi
add esp, 8
ret
pop edi
pop ebx
xor eax, eax
pop esi
add esp, 8
ret

Function at 0x469fa0
Capabilities:
Get file size

Disassembly:
sub esp, 8
mov ecx, dword [ecx + 4]
xor eax, eax
mov dword [esp], eax
mov dword [esp + 4], eax
lea eax, [esp]
push eax
push ecx
call dword [sym.imp.KERNEL32.dll_GetFileSizeEx]
mov eax, dword [esp]
mov edx, dword [esp + 4]
add esp, 8
ret

Function at 0x469fd0
Capabilities:
Create directory

Disassembly:
mov eax, dword [esp + 4]
push 0
push eax
call dword [sym.imp.KERNEL32.dll_CreateDirectoryA]
test eax, eax
jne 0x469ff1
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0xb7
je 0x469ff1
xor eax, eax
ret
mov eax, 1
ret

Function at 0x46a280
Capabilities:
Create directory

Disassembly:
sub esp, 0x204
mov eax, dword [0x4de57c]
xor eax, esp
mov dword [esp + 0x200], eax
push ebx
push esi
mov esi, ecx
mov eax, dword [esi + 4]
test eax, eax
push edi
mov edi, dword [esp + 0x214]
je 0x46a2ae
push eax
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov ebx, dword [esp + 0x218]
cmp ebx, 4
je 0x46a2c4
cmp ebx, 1
je 0x46a2c4
cmp ebx, 2
jne 0x46a2ee
push 0x200
lea eax, [esp + 0x10]
push eax
push edi
call fcn.0046a090
add esp, 0xc
push 0
lea ecx, [esp + 0x10]
push ecx
call dword [sym.imp.KERNEL32.dll_CreateDirectoryA]
test eax, eax
jne 0x46a2ee
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov edx, dword [esp + 0x21c]
push 0
push 0x80
push ebx
push 0
push 0
push edx
push edi
call dword [sym.imp.KERNEL32.dll_CreateFileA]
mov ecx, eax
sub ecx, 0xffffffff
neg ecx
sbb ecx, ecx
and ecx, eax
mov dword [esi + 4], ecx
pop edi
mov eax, ecx
mov ecx, dword [esp + 0x208]
pop esi
pop ebx
xor ecx, esp
call fcn.0048de34
add esp, 0x204
ret 0xc
Function at 0x46aa70
Capabilities:
Read .ini file

Disassembly:
push 0xffffffffffffffff
push 0x4bb3f8
mov eax, dword fs:[0]
push eax
sub esp, 0x208
mov eax, dword [0x4de57c]
xor eax, esp
mov dword [esp + 0x204], eax
push ebx
push ebp
push esi
push edi
mov eax, dword [0x4de57c]
xor eax, esp
push eax
lea eax, [esp + 0x21c]
mov dword fs:[0], eax
mov esi, dword [esp + 0x22c]
xor ebx, ebx
mov edi, ecx
mov dword [esp + 0x14], ebx
push 0x200
lea eax, [esp + 0x1c]
push ebx
push eax
mov dword [esp + 0x230], 2
call fcn.0048ea70
mov ebp, 0x10
add esp, 0xc
cmp dword [edi + 0x18], ebp
jb 0x46aae7
mov edi, dword [edi + 4]
jmp 0x46aaea
add edi, 4
cmp dword [esp + 0x280], ebp
mov edx, dword [esp + 0x26c]
jae 0x46ab01
lea edx, [esp + 0x26c]
cmp dword [esp + 0x264], ebp
mov ecx, dword [esp + 0x250]
jae 0x46ab18
lea ecx, [esp + 0x250]
cmp dword [esp + 0x248], ebp
mov eax, dword [esp + 0x234]
jae 0x46ab2f
lea eax, [esp + 0x234]
push edi
push 0x200
lea edi, [esp + 0x20]
push edi
push edx
push ecx
push eax
call dword [sym.imp.KERNEL32.dll_GetPrivateProfileStringA]
test eax, eax
mov edi, 0xf
mov dword [esi + 0x14], ebx
mov dword [esi + 0x18], edi
mov byte [esi + 4], bl
jne 0x46abe1
push 0xffffffffffffffff
push ebx
lea ecx, [esp + 0x270]
push ecx
mov ecx, esi
call fcn.00401cf0
cmp dword [esp + 0x248], ebp
jb 0x46ab84
mov edx, dword [esp + 0x234]
push edx
call fcn.0048d433
add esp, 4
cmp dword [esp + 0x264], ebp
mov dword [esp + 0x248], edi
mov dword [esp + 0x244], ebx
mov byte [esp + 0x234], bl
jb 0x46abb2
mov eax, dword [esp + 0x250]
push eax
call fcn.0048d433
add esp, 4
cmp dword [esp + 0x280], ebp
mov dword [esp + 0x264], edi
mov dword [esp + 0x260], ebx
mov byte [esp + 0x250], bl
jb 0x46ac75
mov ecx, dword [esp + 0x26c]
push ecx
jmp 0x46ac6d
lea eax, [esp + 0x18]
lea edx, [eax + 1]
mov cl, byte [eax]
add eax, 1
cmp cl, bl
jne 0x46abe8
sub eax, edx
push eax
lea edx, [esp + 0x1c]
push edx
mov ecx, esi
call fcn.00401e90
cmp dword [esp + 0x248], ebp
jb 0x46ac19
mov eax, dword [esp + 0x234]
push eax
call fcn.0048d433
add esp, 4
cmp dword [esp + 0x264], ebp
mov dword [esp + 0x248], edi
mov dword [esp + 0x244], ebx
mov byte [esp + 0x234], bl
jb 0x46ac47
mov ecx, dword [esp + 0x250]
push ecx
call fcn.0048d433
add esp, 4
cmp dword [esp + 0x280], ebp
mov dword [esp + 0x264], edi
mov dword [esp + 0x260], ebx
mov byte [esp + 0x250], bl
jb 0x46ac75
mov edx, dword [esp + 0x26c]
push edx
call fcn.0048d433
add esp, 4
mov eax, esi
mov ecx, dword [esp + 0x21c]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebp
pop ebx
mov ecx, dword [esp + 0x204]
xor ecx, esp
call fcn.0048de34
add esp, 0x214
ret 0x58
Function at 0x46afa0
Capabilities:
Resolve function by parsing pe exports

Disassembly:
push 0xffffffffffffffff
push 0x4bb440
mov eax, dword fs:[0]
push eax
sub esp, 0x54
push ebx
push ebp
push esi
push edi
mov eax, dword [0x4de57c]
xor eax, esp
push eax
lea eax, [esp + 0x68]
mov dword fs:[0], eax
mov esi, ecx
mov dword [esp + 0x14], esi
mov dword [esp + 0x18], 0
call fcn.0047dbb0
mov eax, dword [esi + 0x14]
mov ebx, dword [eax]
lea ebp, [esi + 0x10]
mov dword [esp + 0x24], ebx
mov dword [esp + 0x20], ebp
lea ebx, [ebx]
test ebp, ebp
mov edi, dword [esi + 0x14]
lea eax, [esi + 0x10]
je 0x46affe
cmp ebp, eax
je 0x46b003
call fcn.0048ed51
cmp ebx, edi
je 0x46b18e
test ebp, ebp
push 0
jne 0x46b016
call fcn.0048ed51
cmp ebx, dword [ebp + 4]
jne 0x46b020
call fcn.0048ed51
lea edi, [ebx + 0xc]
push edi
lea eax, [esp + 0x54]
push 0x4c2c4c
push eax
call fcn.00426d90
sub esp, 0x10
mov ecx, esp
mov dword [esp + 0x38], esp
push 0x4c2c48
push eax
push ecx
mov dword [esp + 0x9c], 0
call fcn.00416030
add esp, 0xc
mov ecx, esi
call fcn.0047e110
cmp dword [esp + 0x64], 0x10
mov dword [esp + 0x70], 0xffffffff
jb 0x46b079
mov edx, dword [esp + 0x50]
push edx
call fcn.0048d433
add esp, 4
cmp ebx, dword [ebp + 4]
jne 0x46b083
call fcn.0048ed51
mov eax, dword [ebx + 0x2c]
mov ebp, dword [eax]
lea esi, [ebx + 0x28]
add edi, 0x1c
mov dword [esp + 0x2c], ebp
mov dword [esp + 0x28], esi
mov dword [esp + 0x18], edi
lea ebx, [ebx]
mov eax, dword [esp + 0x20]
cmp ebx, dword [eax + 4]
jne 0x46b0ae
call fcn.0048ed51
test esi, esi
mov ebx, dword [edi + 4]
je 0x46b0b9
cmp esi, edi
je 0x46b0be
call fcn.0048ed51
cmp ebp, ebx
je 0x46b174
test esi, esi
push 0
jne 0x46b0d1
call fcn.0048ed51
cmp ebp, dword [esi + 4]
jne 0x46b0db
call fcn.0048ed51
push 0x4c30a0
lea edi, [ebp + 0xc]
lea ecx, [esp + 0x38]
push edi
push ecx
call fcn.00416030
add esp, 0xc
mov ebx, eax
cmp ebp, dword [esi + 4]
mov dword [esp + 0x74], 1
jne 0x46b105
call fcn.0048ed51
sub esp, 0x1c
mov edx, esp
mov dword [esp + 0x3c], esp
add edi, 0x1c
push edi
push ebx
push edx
call fcn.00425df0
mov ecx, dword [esp + 0x40]
add esp, 0xc
call fcn.0047e110
cmp dword [esp + 0x48], 0x10
mov dword [esp + 0x70], 0xffffffff
jb 0x46b141
mov eax, dword [esp + 0x34]
push eax
call fcn.0048d433
add esp, 4
lea ecx, [esp + 0x28]
mov dword [esp + 0x48], 0xf
mov dword [esp + 0x44], 0
mov byte [esp + 0x34], 0
call fcn.00419aa0
mov ebp, dword [esp + 0x2c]
mov esi, dword [esp + 0x28]
mov ebx, dword [esp + 0x24]
mov edi, dword [esp + 0x18]
jmp 0x46b0a0
lea ecx, [esp + 0x20]
call fcn.00419a30
mov ebx, dword [esp + 0x24]
mov esi, dword [esp + 0x14]
mov ebp, dword [esp + 0x20]
jmp 0x46aff0
mov edi, dword [esp + 0x78]
push edi
mov ecx, esi
call fcn.0047d490
mov eax, edi
mov ecx, dword [esp + 0x68]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x60
ret 4
Function at 0x46db00
Capabilities:
Set socket configuration

Disassembly:
push esi
mov esi, ecx
mov eax, dword [esi]
push edi
mov edi, dword [esp + 0xc]
cmp edi, eax
je 0x46db44
cmp eax, 0xffffffff
je 0x46db42
push 4
lea ecx, [esp + 0x10]
push ecx
push 0x80
push 0xffff
push eax
mov word [esp + 0x20], 1
mov word [esp + 0x22], 0
call dword [sym.imp.WS2_32.dll_setsockopt]
mov edx, dword [esi]
push edx
call dword [sym.imp.WS2_32.dll_closesocket]
mov dword [esi], edi
pop edi
pop esi
ret 4

Function at 0x46de00
Capabilities:
Query or enumerate registry value

Disassembly:
push esi
mov esi, dword [esp + 0xc]
push edi
mov edi, dword [esp + 0x14]
mov eax, dword [edi]
lea edx, [esp + 0x14]
push edx
mov edx, dword [esp + 0x10]
push esi
mov dword [esp + 0x1c], eax
lea eax, [esp + 0x18]
push eax
push 0
mov dword [edi], 0
mov eax, dword [ecx]
push edx
push eax
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
test eax, eax
jne 0x46de67
mov eax, dword [esp + 0x10]
cmp eax, 1
je 0x46de43
cmp eax, 2
jne 0x46de56
test esi, esi
mov eax, dword [esp + 0x14]
je 0x46de63
test eax, eax
je 0x46de60
cmp byte [eax + esi - 1], 0
je 0x46de63
pop edi
mov eax, 0xd
pop esi
ret 0xc
mov byte [esi], 0
mov dword [edi], eax
xor eax, eax
pop edi
pop esi
ret 0xc
Function at 0x470980
Capabilities:
Terminate process

Disassembly:
push 0xffffffffffffffff
push 0x4bbb18
mov eax, dword fs:[0]
push eax
push ecx
push ebx
push ebp
push esi
push edi
mov eax, dword [0x4de57c]
xor eax, esp
push eax
lea eax, [esp + 0x18]
mov dword fs:[0], eax
mov esi, ecx
mov dword [esp + 0x14], esi
push 0x40dd70
push 0x40d720
push 0xd
push 4
lea ebp, [esi + 8]
push ebp
mov dword [esi], vtable.CDialogX_class_CMessageBoxDailog__3_.0
call fcn.0048f2dd
xor ebx, ebx
lea edi, [esi + 0x3c]
mov dword [esp + 0x20], ebx
mov eax, edi
mov ecx, 5
mov dword [eax], ebx
mov dword [eax + 4], ebx
mov dword [eax + 8], ebx
mov dword [eax + 0xc], ebx
add eax, 0x10
sub ecx, 1
jns 0x4709d8
mov dword [esi + 0x9c], ebx
mov dword [esi + 0xa0], ebx
mov dword [esi + 0xa4], ebx
mov dword [esi + 0xa8], ebx
mov eax, 0xf
mov dword [esi + 0xe4], eax
mov dword [esi + 0xe0], ebx
mov byte [esi + 0xd0], bl
lea ecx, [esi + 0xe8]
push 4
mov dword [ecx + 0x18], eax
mov dword [ecx + 0x14], ebx
push 0x4bfb44
mov byte [esp + 0x28], 1
mov byte [ecx + 4], bl
call fcn.00401e90
lea ecx, [esi + 0x104]
mov dword [ecx + 0x18], 0xf
mov dword [ecx + 0x14], ebx
mov byte [ecx + 4], bl
mov dword [esi + 0x120], ebx
mov dword [esi + 0x124], ebx
mov dword [esi + 0x128], ebx
mov dword [esi + 0x12c], ebx
push ebx
push 0x4bf904
mov byte [esp + 0x28], 7
mov dword [esi + 4], ebx
mov dword [esi + 0xb8], ebx
mov dword [esi + 0xb4], ebx
mov dword [esi + 0xb0], ebx
mov dword [esi + 0xbc], ebx
mov dword [esi + 0xc8], ebx
mov dword [esi + 0xc4], ebx
mov dword [esi + 0xc0], ebx
call fcn.00401e90
push edi
mov edi, dword [sym.imp.USER32.dll_SetRectEmpty]
call edi
lea eax, [esi + 0x4c]
push eax
call edi
lea ecx, [esi + 0x5c]
push ecx
call edi
lea edx, [esi + 0x6c]
push edx
call edi
lea eax, [esi + 0x8c]
push eax
call edi
mov eax, dword [esi + 0x12c]
cmp eax, ebx
je 0x470add
push eax
call dword [sym.imp.KERNEL32.dll_FreeLibrary]
mov dword [esi + 0x12c], ebx
push str.modulesres.dll
call dword [sym.imp.KERNEL32.dll_LoadLibraryA]
push str.IDB_BITMAP_CAPTION_CLOSE_BTN_SW
mov ecx, eax
push ecx
mov dword [esi + 0x12c], eax
call dword [sym.imp.USER32.dll_LoadBitmapA]
mov edi, eax
mov eax, dword [ebp]
cmp eax, ebx
je 0x470b10
cmp eax, edi
je 0x470b10
push eax
call dword [sym.imp.GDI32.dll_DeleteObject]
mov dword [ebp], edi
mov edx, dword [esi + 0x12c]
push str.IDB_BITMAP_CAPTION_BKGND_SW
push edx
call dword [sym.imp.USER32.dll_LoadBitmapA]
mov edi, eax
mov eax, dword [esi + 0x18]
cmp eax, ebx
je 0x470b39
cmp eax, edi
je 0x470b39
push eax
call dword [sym.imp.GDI32.dll_DeleteObject]
mov dword [esi + 0x18], edi
cmp dword [ebp], ebx
je 0x470b6f
cmp edi, ebx
je 0x470b6f
push 0xd2975c
push 1
push ebx
call dword [sym.imp.GDI32.dll_CreatePen]
mov dword [esi + 0x128], eax
mov eax, esi
mov ecx, dword [esp + 0x18]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x10
ret
push 0x10
push 0x4bfaf0
push 0x4bfad4
push ebx
call dword [sym.imp.USER32.dll_MessageBoxA]
push 1
call dword [sym.imp.KERNEL32.dll_ExitProcess]
Function at 0x473cf0
Capabilities:
Hide graphical window

Disassembly:
test ecx, ecx
push esi
je 0x473cfd
lea esi, [ecx - 0x88]
jmp 0x473cff
xor esi, esi
mov eax, dword [esi + 4]
push 6
push eax
call dword [sym.imp.USER32.dll_ShowWindow]
mov ecx, dword [esi + 4]
push 0
push 0xf020
push 0x112
push ecx
call dword [sym.imp.USER32.dll_DefWindowProcA]
pop esi
ret
Function at 0x478670
Capabilities:
Encrypt data using rc4 via winapi
Encrypt or decrypt via wincrypt
Hash data via wincrypt
Hash data with md5
Initialize hashing via wincrypt

Disassembly:
sub esp, 0x14
push ebx
xor ebx, ebx
cmp dword [esp + 0x20], ebx
jle 0x4787e6
push esi
mov esi, dword [esp + 0x28]
cmp esi, ebx
mov dword [esp + 0xc], ebx
mov dword [esp + 8], ebx
je 0x478790
mov ecx, dword [0x4dfe50]
lea eax, [esp + 8]
push eax
push ebx
push ebx
push 0x8003
push ecx
call dword [sym.imp.ADVAPI32.dll_CryptCreateHash]
test eax, eax
jne 0x4786d7
lea edx, [esp + 0x24]
push edx
lea ecx, [esp + 0x14]
mov dword [esp + 0x28], str.CryptCreateHash_error
call fcn.0048ed7b
push 0x4d4e48
lea eax, [esp + 0x14]
push eax
call fcn.0048d98f
mov ecx, dword [esp + 0x2c]
mov edx, dword [esp + 8]
push ebx
push ecx
push esi
push edx
call dword [sym.imp.ADVAPI32.dll_CryptHashData]
test eax, eax
jne 0x478712
lea eax, [esp + 0x24]
push eax
lea ecx, [esp + 0x14]
mov dword [esp + 0x28], str.CryptHashData_error
call fcn.0048ed7b
push 0x4d4e48
lea ecx, [esp + 0x14]
push ecx
call fcn.0048d98f
mov eax, dword [esp + 8]
mov ecx, dword [0x4dfe50]
lea edx, [esp + 0xc]
push edx
push ebx
push eax
push 0x6801
push ecx
call dword [sym.imp.ADVAPI32.dll_CryptDeriveKey]
test eax, eax
jne 0x478758
lea edx, [esp + 0x24]
push edx
lea ecx, [esp + 0x14]
mov dword [esp + 0x28], str.CryptDeriveKey_error
call fcn.0048ed7b
push 0x4d4e48
lea eax, [esp + 0x14]
push eax
call fcn.0048d98f
mov ecx, dword [esp + 8]
push ecx
call dword [sym.imp.ADVAPI32.dll_CryptDestroyHash]
test eax, eax
jne 0x47878c
lea edx, [esp + 0x24]
push edx
lea ecx, [esp + 0x14]
mov dword [esp + 0x28], str.CryptDestroyHash_error
call fcn.0048ed7b
push 0x4d4e48
lea eax, [esp + 0x14]
push eax
call fcn.0048d98f
mov dword [esp + 8], ebx
push edi
mov edi, dword [esp + 0x24]
mov eax, dword [esp + 0x28]
sub eax, ebx
cmp eax, 0x3e8
jbe 0x4787b4
add ebx, 0x3e8
mov dword [esp + 0x2c], 0x3e8
xor esi, esi
jmp 0x4787bd
mov dword [esp + 0x2c], eax
mov esi, 1
mov edx, dword [esp + 0x10]
push 0x3e8
lea ecx, [esp + 0x30]
push ecx
push edi
push 0
push esi
push 0
push edx
call dword [sym.imp.ADVAPI32.dll_CryptEncrypt]
test esi, esi
jne 0x4787e4
add edi, 0x3e8
jmp 0x478795
pop edi
pop esi
pop ebx
add esp, 0x14
ret 0x10

Function at 0x4787f0
Capabilities:
Create new key via cryptacquirecontext

Disassembly:
cmp dword [0x4dfe50], 0
push edi
mov edi, ecx
jne 0x478879
push esi
mov esi, dword [sym.imp.ADVAPI32.dll_CryptAcquireContextA]
push 8
push 1
push str.Microsoft_Base_Cryptographic_Provider_v1.0
push str.MyContainer
push 0x4dfe50
mov dword [0x4dfe50], 0
call esi
test eax, eax
jne 0x478878
push eax
push 1
push str.Microsoft_Base_Cryptographic_Provider_v1.0
push eax
push 0x4dfe50
call esi
test eax, eax
jne 0x478878
push 0x20
push 1
push str.Microsoft_Base_Cryptographic_Provider_v1.0
push eax
push 0x4dfe50
call esi
test eax, eax
jne 0x478878
push 0x28
push 1
push str.Microsoft_Base_Cryptographic_Provider_v1.0
push eax
push 0x4dfe50
call esi
test eax, eax
jne 0x478878
push eax
push 1
push str.Microsoft_Base_Cryptographic_Provider_v1.0
push str.MyContainer
push 0x4dfe50
call esi
pop esi
mov eax, edi
pop edi
ret
Function at 0x479290
Capabilities:
Initialize winsock library
Set socket configuration

Disassembly:
push 0xffffffffffffffff
push 0x4bc410
mov eax, dword fs:[0]
push eax
sub esp, 0x1ac
mov eax, dword [0x4de57c]
xor eax, esp
mov dword [esp + 0x1a4], eax
push esi
push edi
mov eax, dword [0x4de57c]
xor eax, esp
push eax
lea eax, [esp + 0x1b8]
mov dword fs:[0], eax
lea eax, [esp + 0x20]
push eax
mov esi, ecx
xor edi, edi
push 2
mov dword [esi + 0xc], edi
call dword [sym.imp.WS2_32.dll_WSAStartup]
test eax, eax
jne 0x479351
mov dword [esp + 0x10], eax
push edi
mov dword [esp + 0x18], eax
mov dword [esp + 0x1c], eax
mov dword [esp + 0x20], eax
mov word [esp + 0x16], di
mov word [esp + 0x14], 2
call dword [sym.imp.WS2_32.dll_htonl]
push edi
push 2
push 2
mov dword [esp + 0x20], eax
call dword [sym.imp.WS2_32.dll_socket]
cmp eax, 0xffffffff
mov dword [esi + 0xc], eax
je 0x479351
push 0x10
lea ecx, [esp + 0x14]
push ecx
push eax
call dword [sym.imp.WS2_32.dll_bind]
lea edx, [esp + 0xc]
push edx
mov edi, eax
mov eax, dword [esi + 0xc]
push 0x8004667e
push eax
mov dword [esp + 0x18], 1
call dword [sym.imp.WS2_32.dll_ioctlsocket]
cmp edi, 0xffffffff
je 0x479351
cmp eax, 0xffffffff
jne 0x479357
call dword [sym.imp.WS2_32.dll_WSACleanup]
mov ecx, dword [esp + 0x1b8]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
mov ecx, dword [esp + 0x1a4]
xor ecx, esp
call fcn.0048de34
add esp, 0x1b8
ret 4
Function at 0x47c150
Capabilities:
Create thread
Resume thread

Disassembly:
push ecx
push esi
push edi
lea eax, [esp + 8]
push eax
push 4
mov esi, ecx
push esi
push 0x47b720
push 0
push 0
mov dword [esp + 0x20], 0
call fcn.0048f911
add esp, 0x18
mov edi, eax
push 2
push edi
call dword [sym.imp.KERNEL32.dll_SetThreadPriority]
push edi
mov edi, dword [sym.imp.KERNEL32.dll_ResumeThread]
call edi
lea ecx, [esp + 8]
push ecx
push 4
push esi
push 0x47bac0
push 0
push 0
call fcn.0048f911
add esp, 0x18
push eax
call edi
pop edi
pop esi
pop ecx
ret

Function at 0x47c580
Capabilities:
Create thread

Disassembly:
push esi
mov esi, ecx
cmp dword [esi + 0x1c], 0
je 0x47c58f
xor eax, eax
pop esi
ret 4
mov ecx, dword [esp + 8]
lea eax, [esi + 0x20]
push eax
push ecx
push esi
push 0x47c520
push 0
push 0
call fcn.0048f911
xor edx, edx
add esp, 0x18
test eax, eax
setne dl
mov dword [esi + 0x1c], eax
pop esi
mov eax, edx
ret 4
Function at 0x47c900
Capabilities:
Create thread

Disassembly:
push 0xffffffffffffffff
push 0x4bc7b7
mov eax, dword fs:[0]
push eax
push ecx
push ebx
push ebp
push esi
push edi
mov eax, dword [0x4de57c]
xor eax, esp
push eax
lea eax, [esp + 0x18]
mov dword fs:[0], eax
mov esi, ecx
mov dword [esp + 0x14], esi
xor ebx, ebx
mov dword [esp + 0x20], ebx
lea eax, [esi + 4]
push eax
mov dword [esi], vtable.CMitThread.0
call dword [sym.imp.KERNEL32.dll_InitializeCriticalSection]
lea eax, [esi + 0x20]
push eax
push 4
push esi
push 0x47c520
push ebx
push ebx
mov dword [esi + 0x24], ebx
mov dword [esi + 0x1c], ebx
mov dword [eax], ebx
call fcn.0048f911
add esp, 0x18
mov dword [esi + 0x1c], eax
lea ecx, [esi + 0x28]
mov dword [esi], vtable.THttp.0
mov eax, 0xf
mov dword [ecx + 0x18], eax
mov dword [ecx + 0x14], ebx
mov byte [ecx + 4], bl
lea edi, [esi + 0x44]
mov dword [edi + 0x18], eax
mov dword [edi + 0x14], ebx
mov byte [edi + 4], bl
lea ebp, [esi + 0x64]
mov dword [ebp + 0x18], eax
mov dword [ebp + 0x14], ebx
mov byte [ebp + 4], bl
mov dword [esi + 0x98], eax
mov dword [esi + 0x94], ebx
mov byte [esi + 0x84], bl
mov eax, dword [esp + 0x28]
push 0xffffffffffffffff
push ebx
lea edx, [esp + 0x34]
push edx
mov byte [esp + 0x2c], 8
mov dword [0x4dfe54], eax
call fcn.00401cf0
push 0xffffffffffffffff
push ebx
lea eax, [esp + 0x50]
push eax
mov ecx, edi
call fcn.00401cf0
mov ecx, dword [esp + 0x64]
push 0xffffffffffffffff
push ebx
lea edx, [esp + 0x70]
mov dword [esi + 0x60], ecx
push edx
mov ecx, ebp
call fcn.00401cf0
push 0xffffffffffffffff
push ebx
lea eax, [esp + 0x8c]
push eax
lea ecx, [esi + 0x80]
call fcn.00401cf0
mov ecx, dword [esp + 0xa0]
mov edx, dword [esp + 0xa4]
mov dword [esi + 0x9c], ecx
mov dword [esi + 0xa0], edx
mov dword [esi + 0x24], 1
mov edi, 0x10
cmp dword [esp + 0x44], edi
jb 0x47ca32
mov eax, dword [esp + 0x30]
push eax
call fcn.0048d433
add esp, 4
cmp dword [esp + 0x60], edi
mov ebp, 0xf
mov dword [esp + 0x44], ebp
mov dword [esp + 0x40], ebx
mov byte [esp + 0x30], bl
jb 0x47ca56
mov ecx, dword [esp + 0x4c]
push ecx
call fcn.0048d433
add esp, 4
cmp dword [esp + 0x80], edi
mov dword [esp + 0x60], ebp
mov dword [esp + 0x5c], ebx
mov byte [esp + 0x4c], bl
jb 0x47ca78
mov edx, dword [esp + 0x6c]
push edx
call fcn.0048d433
add esp, 4
cmp dword [esp + 0x9c], edi
mov dword [esp + 0x80], ebp
mov dword [esp + 0x7c], ebx
mov byte [esp + 0x6c], bl
jb 0x47caa0
mov eax, dword [esp + 0x88]
push eax
call fcn.0048d433
add esp, 4
mov eax, esi
mov ecx, dword [esp + 0x18]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x10
ret 0x80
Function at 0x47e110
Capabilities:
Access peb ldr_data

Disassembly:
push 0xffffffffffffffff
push 0x4bc980
mov eax, dword fs:[0]
push eax
sub esp, 0x24
mov eax, dword [0x4de57c]
xor eax, esp
mov dword [esp + 0x20], eax
push ebx
push esi
mov eax, dword [0x4de57c]
xor eax, esp
push eax
lea eax, [esp + 0x30]
mov dword fs:[0], eax
mov esi, ecx
xor ebx, ebx
mov dword [esp + 0x38], ebx
mov dword [esp + 0x24], 0xf
mov dword [esp + 0x20], ebx
mov byte [esp + 0x10], bl
push 0xffffffffffffffff
push ebx
lea eax, [esp + 0x48]
push eax
lea ecx, [esp + 0x18]
mov byte [esp + 0x44], 1
call fcn.00401cf0
mov ecx, dword [esp + 0x5c]
lea edx, [esp + 0xc]
mov dword [esp + 0x28], ecx
push edx
mov ecx, esi
call fcn.0047e080
mov esi, 0x10
cmp dword [esp + 0x24], esi
jb 0x47e19a
mov eax, dword [esp + 0x10]
push eax
call fcn.0048d433
add esp, 4
cmp dword [esp + 0x58], esi
mov dword [esp + 0x24], 0xf
mov dword [esp + 0x20], ebx
mov byte [esp + 0x10], bl
jb 0x47e1bd
mov ecx, dword [esp + 0x44]
push ecx
call fcn.0048d433
add esp, 4
mov ecx, dword [esp + 0x30]
mov dword fs:[0], ecx
pop ecx
pop esi
pop ebx
mov ecx, dword [esp + 0x20]
xor ecx, esp
call fcn.0048de34
add esp, 0x30
ret 0x20
Function at 0x484dc0
Capabilities:
Get file size

Disassembly:
mov eax, dword [esp + 8]
push edi
xor edi, edi
cmp dword [esp + 0x20], 0x10
jae 0x484dd2
lea eax, [esp + 0xc]
push esi
push 0
push 0x80
push 3
push 0
push 0
push 0x80000000
push eax
call dword [sym.imp.KERNEL32.dll_CreateFileA]
mov esi, eax
cmp esi, 0xffffffff
je 0x484e05
push 0
push esi
call dword [sym.imp.KERNEL32.dll_GetFileSize]
push esi
mov edi, eax
call dword [sym.imp.KERNEL32.dll_CloseHandle]
cmp dword [esp + 0x24], 0x10
pop esi
jb 0x484e1a
mov eax, dword [esp + 0xc]
push eax
call fcn.0048d433
add esp, 4
mov eax, edi
pop edi
ret 0x1c

Function at 0x485140
Capabilities:
Access peb ldr_data

Disassembly:
push 0xffffffffffffffff
push 0x4bd8a8
mov eax, dword fs:[0]
push eax
sub esp, 0x1c
push ebx
push esi
mov eax, dword [0x4de57c]
xor eax, esp
push eax
lea eax, [esp + 0x28]
mov dword fs:[0], eax
mov esi, ecx
lea eax, [esp + 0xc]
xor ebx, ebx
push eax
mov dword [esi + 0xd558], 1
mov byte [esi + 0xd554], bl
call fcn.0046a740
add esp, 4
push 0xffffffffffffffff
push ebx
push eax
lea ecx, [esi + 0xd538]
mov dword [esp + 0x3c], ebx
call fcn.00401cf0
cmp dword [esp + 0x24], 0x10
mov dword [esp + 0x30], 0xffffffff
jb 0x4851b5
mov ecx, dword [esp + 0x10]
push ecx
call fcn.0048d433
add esp, 4
lea ecx, [esi + 0x18]
mov dword [esp + 0x24], 0xf
mov dword [esp + 0x20], ebx
mov byte [esp + 0x10], bl
mov dword [esi + 0xd534], ebx
call fcn.0047dbb0
lea ecx, [esi + 0x28]
call fcn.0047dbb0
mov ecx, dword [esp + 0x28]
mov dword fs:[0], ecx
pop ecx
pop esi
pop ebx
add esp, 0x28
ret