joyce8/EMBER2024-capa huggingface dataset:
Function at 0x4ab7f0
Capabilities:
Compare security identifiers

Disassembly:
sub esp, 0x18
mov eax, dword [0x5181f4]
xor eax, esp
mov dword [esp + 0x14], eax
push esi
mov esi, dword [esp + 0x20]
push edi
xor edi, edi
cmp esi, edi
mov dword [esp + 8], edi
mov dword [esp + 0x10], edi
mov byte [esp + 0x14], 0
mov byte [esp + 0x15], 0
mov byte [esp + 0x16], 0
mov byte [esp + 0x17], 0
mov byte [esp + 0x18], 0
mov byte [esp + 0x19], 5
je 0x4ab861
push 0x107
push esi
call fcn.004ab2e0
add esp, 8
test eax, eax
jne 0x4ab861
mov eax, dword [esp + 0x28]
push eax
push esi
call fcn.004ab740
add esp, 8
pop edi
pop esi
mov ecx, dword [esp + 0x14]
xor ecx, esp
call fcn.00441cbb
add esp, 0x18
ret
push ebp
lea ecx, [esp + 0xc]
push ecx
push edi
push 8
call dword [sym.imp.KERNEL32.dll_GetCurrentThread]
push eax
call dword [sym.imp.ADVAPI32.dll_OpenThreadToken]
test eax, eax
mov esi, dword [sym.imp.KERNEL32.dll_GetLastError]
jne 0x4ab8b2
call esi
mov ebp, eax
cmp ebp, 0x3f0
jne 0x4ab971
lea edx, [esp + 0xc]
push edx
push 8
call dword [sym.imp.KERNEL32.dll_GetCurrentProcess]
push eax
call dword [sym.imp.ADVAPI32.dll_OpenProcessToken]
test eax, eax
jne 0x4ab8b2
call esi
mov ebp, eax
jmp 0x4ab971
mov ecx, dword [esp + 0xc]
push ebx
mov ebx, dword [sym.imp.ADVAPI32.dll_GetTokenInformation]
lea eax, [esp + 0x14]
push eax
push edi
push edi
push 2
push ecx
call ebx
call esi
mov ebp, eax
cmp ebp, 0x7a
jne 0x4ab970
mov edx, dword [esp + 0x14]
push edx
push 8
call dword [sym.imp.KERNEL32.dll_GetProcessHeap]
push eax
call dword [sym.imp.KERNEL32.dll_HeapAlloc]
mov edi, eax
test edi, edi
jne 0x4ab8f5
lea ebp, [eax + 0xe]
jmp 0x4ab970
mov ecx, dword [esp + 0x14]
mov edx, dword [esp + 0x10]
lea eax, [esp + 0x14]
push eax
push ecx
push edi
push 2
push edx
call ebx
test eax, eax
jne 0x4ab913
call esi
mov ebp, eax
jmp 0x4ab970
lea eax, [esp + 0x18]
push eax
push 0
push 0
push 0
push 0
push 0
push 0
push 0x220
push 0x20
push 2
lea ecx, [esp + 0x44]
push ecx
call dword [sym.imp.ADVAPI32.dll_AllocateAndInitializeSid]
test eax, eax
jne 0x4ab942
call esi
mov ebp, eax
jmp 0x4ab970
xor esi, esi
cmp dword [edi], esi
mov ebp, 0x1b85
jbe 0x4ab970
lea ebx, [edi + 4]
mov edx, dword [ebx]
mov eax, dword [esp + 0x18]
push edx
push eax
call dword [sym.imp.ADVAPI32.dll_EqualSid]
test eax, eax
jne 0x4ab96e
add esi, 1
add ebx, 8
cmp esi, dword [edi]
jb 0x4ab950
jmp 0x4ab970
xor ebp, ebp
pop ebx
mov eax, dword [esp + 0xc]
test eax, eax
je 0x4ab980
push eax
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov eax, dword [esp + 0x14]
test eax, eax
je 0x4ab98f
push eax
call dword [sym.imp.ADVAPI32.dll_FreeSid]
test edi, edi
je 0x4ab9a3
push edi
push 0
call dword [sym.imp.KERNEL32.dll_GetProcessHeap]
push eax
call dword [sym.imp.KERNEL32.dll_HeapFree]
push ebp
call dword [sym.imp.KERNEL32.dll_SetLastError]
mov ecx, dword [esp + 0x20]
xor eax, eax
test ebp, ebp
pop ebp
pop edi
sete al
pop esi
xor ecx, esp
call fcn.00441cbb
add esp, 0x18
ret
Function at 0x4ac710
Capabilities:
Get file version info

Disassembly:
sub esp, 0xc
push esi
push edi
mov edi, dword [esp + 0x18]
lea eax, [esp + 0x10]
push eax
push edi
xor esi, esi
call sub.VERSION.dll_GetFileVersionInfoSizeW
test eax, eax
mov dword [esp + 8], eax
je 0x4ac7c3
push ebx
push eax
call fcn.00444484
mov ebx, eax
add esp, 4
test ebx, ebx
je 0x4ac7ba
mov ecx, dword [esp + 0xc]
push ebx
push ecx
push esi
push edi
call sub.VERSION.dll_GetFileVersionInfoW
test eax, eax
je 0x4ac7b1
lea edx, [esp + 0xc]
push edx
lea eax, [esp + 0x14]
push eax
push 0x4fa6bc
push ebx
call sub.VERSION.dll_VerQueryValueW
test eax, eax
je 0x4ac7b1
mov eax, dword [esp + 0x20]
test eax, eax
mov ecx, dword [esp + 0x10]
je 0x4ac77f
mov dx, word [ecx + 0xa]
mov word [eax], dx
mov eax, dword [esp + 0x24]
test eax, eax
je 0x4ac78e
mov dx, word [ecx + 8]
mov word [eax], dx
mov eax, dword [esp + 0x28]
test eax, eax
je 0x4ac79d
mov dx, word [ecx + 0xe]
mov word [eax], dx
mov eax, dword [esp + 0x2c]
test eax, eax
je 0x4ac7ac
mov cx, word [ecx + 0xc]
mov word [eax], cx
mov esi, 1
push ebx
call fcn.00443e65
add esp, 4
pop ebx
pop edi
mov eax, esi
pop esi
add esp, 0xc
ret
pop edi
mov eax, esi
pop esi
add esp, 0xc
ret
Function at 0x4ac7d0
Capabilities:
Query or enumerate registry value

Disassembly:
sub esp, 0x214
mov eax, dword [0x5181f4]
xor eax, esp
mov dword [esp + 0x210], eax
push esi
push edi
mov edi, dword [esp + 0x220]
test edi, edi
je 0x4ac987
mov esi, dword [esp + 0x224]
test esi, esi
je 0x4ac987
push ebx
lea eax, [esp + 0x10]
push eax
push 0x4fa460
push reloc.OLEAUT32.dll_SysReAllocString
mov word [edi], 0
mov dword [esp + 0x1c], 0
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyW]
mov ebx, eax
test ebx, ebx
jne 0x4ac959
push ebp
mov ebp, dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
lea edx, [esp + 0x10]
push edx
push edi
push eax
push eax
mov eax, dword [esp + 0x24]
push str.InstallPath
lea ecx, [esi + esi]
push eax
mov dword [esp + 0x28], ecx
call ebp
mov ebx, eax
test ebx, ebx
jne 0x4ac958
cmp dword [esp + 0x10], eax
jbe 0x4ac958
mov eax, edi
lea edx, [eax + 2]
lea esp, [esp]
mov cx, word [eax]
add eax, 2
test cx, cx
jne 0x4ac870
sub eax, edx
sar eax, 1
mov ecx, esi
sub ecx, eax
sub ecx, 1
push ecx
push 0x4fa6bc
push esi
push edi
call fcn.00444547
mov ecx, dword [esp + 0x24]
add esp, 0x10
lea edx, [esp + 0x10]
push edx
lea eax, [esp + 0x1c]
push eax
push 0
push 0
push str.LangFolder
push ecx
mov dword [esp + 0x28], 0x208
call ebp
mov ebx, eax
test ebx, ebx
jne 0x4ac928
cmp dword [esp + 0x10], eax
jbe 0x4ac928
mov eax, edi
lea edx, [eax + 2]
lea esp, [esp]
mov cx, word [eax]
add eax, 2
test cx, cx
jne 0x4ac8d0
sub eax, edx
sar eax, 1
mov edx, esi
sub edx, eax
sub edx, 1
push edx
lea eax, [esp + 0x1c]
push eax
push esi
push edi
call fcn.00444547
mov eax, edi
add esp, 0x10
lea edx, [eax + 2]
jmp 0x4ac900
mov cx, word [eax]
add eax, 2
test cx, cx
jne 0x4ac900
sub eax, edx
sar eax, 1
mov ecx, esi
sub ecx, eax
sub ecx, 1
push ecx
push 0x4fa6bc
push esi
push edi
call fcn.00444547
add esp, 0x10
jmp 0x4ac958
mov eax, edi
lea edx, [eax + 2]
lea ecx, [ecx]
mov cx, word [eax]
add eax, 2
test cx, cx
jne 0x4ac930
sub eax, edx
sar eax, 1
mov edx, esi
sub edx, eax
sub edx, 1
push edx
push str.lang_
push esi
push edi
call fcn.00444547
add esp, 0x10
xor ebx, ebx
pop ebp
mov eax, dword [esp + 0x10]
test eax, eax
je 0x4ac968
push eax
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
xor eax, eax
test ebx, ebx
pop ebx
pop edi
sete al
pop esi
mov ecx, dword [esp + 0x210]
xor ecx, esp
call fcn.00441cbb
add esp, 0x214
ret
mov ecx, dword [esp + 0x218]
pop edi
pop esi
xor ecx, esp
xor eax, eax
call fcn.00441cbb
add esp, 0x214
ret
Function at 0x4ac9a0
Capabilities:
Query or enumerate registry value

Disassembly:
push ecx
push edi
mov edi, dword [esp + 0xc]
test edi, edi
je 0x4aca7b
mov eax, dword [esp + 0x10]
test eax, eax
je 0x4aca7b
push ebx
mov ebx, dword [sym.imp.ADVAPI32.dll_RegOpenKeyW]
push ebp
push esi
lea ecx, [esp + 0x18]
push ecx
push str.softwareSmartLine_VisionDLManagerManager
add eax, eax
push closesocket
mov dword [esp + 0x1c], eax
mov word [edi], 0
mov dword [esp + 0x24], 0
call ebx
test eax, eax
mov ebp, dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
jne 0x4aca0d
mov eax, dword [esp + 0x18]
lea edx, [esp + 0x10]
push edx
push edi
push 0
push 0
push str.LangPostfix
push eax
call ebp
mov esi, eax
test esi, esi
je 0x4aca51
mov eax, dword [esp + 0x18]
test eax, eax
je 0x4aca1c
push eax
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
lea ecx, [esp + 0x18]
push ecx
push 0x4fa460
push reloc.OLEAUT32.dll_SysReAllocString
mov dword [esp + 0x24], 0
call ebx
mov esi, eax
test esi, esi
jne 0x4aca51
lea edx, [esp + 0x10]
push edx
push edi
push eax
push eax
mov eax, dword [esp + 0x28]
push str.LangPostfix
push eax
call ebp
mov esi, eax
mov eax, dword [esp + 0x18]
test eax, eax
je 0x4aca60
push eax
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov ecx, dword [esp + 0x1c]
push ecx
push edi
call fcn.004ce488
add esp, 8
xor eax, eax
test esi, esi
pop esi
pop ebp
pop ebx
sete al
pop edi
pop ecx
ret
xor eax, eax
pop edi
pop ecx
ret

Function at 0x4acba0
Capabilities:
Get geographical location

Disassembly:
sub esp, 0x21c
mov eax, dword [0x5181f4]
xor eax, esp
mov dword [esp + 0x218], eax
push esi
lea eax, [esp + 0x14]
push 0x104
push eax
mov dword [esp + 0xc], 0xffffffff
call fcn.004ac9a0
add esp, 8
test eax, eax
je 0x4acc15
xor esi, esi
jmp 0x4acbe0
mov edx, dword [esi*8 + 0x51aeac]
lea ecx, [esp + 0x14]
push ecx
push edx
call fcn.00443da5
add esp, 8
test eax, eax
je 0x4acc01
add esi, 1
cmp esi, 2
jb 0x4acbe0
cmp esi, 2
setne cl
test cl, cl
mov eax, esi
mov dword [esp + 4], eax
jne 0x4accba
call fcn.004ac6b0
movzx ecx, ax
xor eax, eax
push 5
mov dword [esp + 0xe], eax
mov dword [esp + 0x12], eax
lea eax, [esp + 0xc]
push eax
movzx ecx, cx
push 3
push ecx
mov word [esp + 0x18], 0
call dword [sym.imp.KERNEL32.dll_GetLocaleInfoW]
test eax, eax
je 0x4acc9e
xor esi, esi
jmp 0x4acc50
mov eax, dword [esi*8 + 0x51aea4]
lea edx, [esp + 8]
push edx
push eax
call fcn.00443da5
add esp, 8
test eax, eax
je 0x4acc77
add esi, 1
cmp esi, 1
jb 0x4acc50
lea eax, [esp + 8]
jmp 0x4acc8b
lea eax, [esi*8 + 0x51aea4]
test eax, eax
jne 0x4acc88
lea eax, [esp + 8]
jmp 0x4acc8b
mov eax, dword [eax + 4]
push ebx
push edi
lea ebx, [esp + 0xc]
mov edi, eax
call fcn.004ac660
test al, al
pop edi
pop ebx
jne 0x4accb6
xor eax, eax
pop esi
mov ecx, dword [esp + 0x218]
xor ecx, esp
call fcn.00441cbb
add esp, 0x21c
ret
mov eax, dword [esp + 4]
mov ecx, dword [esp + 0x21c]
pop esi
xor ecx, esp
call fcn.00441cbb
add esp, 0x21c
ret
Function at 0x4ad8e0
Capabilities:
Check if file exists

Disassembly:
sub esp, 0x14
push esi
mov esi, ecx
cmp dword [esi + 0x18], 0
jne 0x4ad906
push 0x57
lea ecx, [esp + 0x10]
call fcn.0048a7e0
push 0x50e7a0
lea eax, [esp + 0x10]
push eax
call fcn.0044661f
mov dword [esp + 4], 0
mov dword [esp + 8], 0
call fcn.004ad0d0
cmp dword [esi + 0x1c], 8
jb 0x4ad926
mov eax, dword [esi + 8]
jmp 0x4ad929
lea eax, [esi + 8]
lea ecx, [esp + 8]
push ecx
lea edx, [esp + 8]
push edx
push eax
call fcn.0048dad0
add esp, 0xc
test eax, eax
jne 0x4ad970
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 2
je 0x4ad969
cmp eax, 3
je 0x4ad969
push eax
lea ecx, [esp + 0x10]
call fcn.0048a7e0
push 0x50e7a0
lea eax, [esp + 0x10]
push eax
call fcn.0044661f
xor al, al
pop esi
add esp, 0x14
ret
mov eax, dword [esp + 4]
test eax, eax
jne 0x4ad992
push 8
lea ecx, [esp + 0x10]
call fcn.0048a7e0
push 0x50e7a0
lea ecx, [esp + 0x10]
push ecx
call fcn.0044661f
mov edx, dword [esp + 8]
push edx
push eax
mov ecx, esi
call fcn.004ad4d0
mov eax, dword [esp + 8]
mov ecx, dword [esp + 4]
push eax
push 0
push ecx
call fcn.004424d0
mov edx, dword [esp + 0x10]
add esp, 0xc
push edx
push 0
call dword [sym.imp.KERNEL32.dll_GetProcessHeap]
push eax
call dword [sym.imp.KERNEL32.dll_HeapFree]
mov al, 1
pop esi
add esp, 0x14
ret

Function at 0x4b5810
Capabilities:
Hash data using fnv

Disassembly:
push ebx
push ebp
push esi
mov esi, dword [esp + 0x10]
push edi
mov edi, dword [esp + 0x18]
mov ebp, 0x811c9dc5
cmp esi, 0xfffffffe
je 0x4b5835
test esi, esi
je 0x4b5830
cmp esi, dword [esp + 0x1c]
je 0x4b5835
call fcn.00441e1b
cmp edi, dword [esp + 0x20]
je 0x4b58a6
cmp esi, 0xfffffffe
mov ebx, edi
je 0x4b5868
test esi, esi
jne 0x4b584b
call fcn.00441e1b
cmp dword [esi + 0x18], 8
jb 0x4b5856
mov eax, dword [esi + 4]
jmp 0x4b5859
lea eax, [esi + 4]
mov ecx, dword [esi + 0x14]
lea edx, [eax + ecx*2]
cmp edi, edx
jb 0x4b5868
call fcn.00441e1b
add edi, 2
cmp esi, 0xfffffffe
je 0x4b5896
test esi, esi
jne 0x4b5879
call fcn.00441e1b
cmp dword [esi + 0x18], 8
jb 0x4b5884
mov eax, dword [esi + 4]
jmp 0x4b5887
lea eax, [esi + 4]
mov ecx, dword [esi + 0x14]
lea edx, [eax + ecx*2]
cmp ebx, edx
jb 0x4b5896
call fcn.00441e1b
movzx eax, word [ebx]
imul ebp, ebp, 0x1000193
xor ebp, eax
jmp 0x4b5821
pop edi
pop esi
mov eax, ebp
pop ebp
pop ebx
ret
Function at 0x4b7f20
Capabilities:
Read file on windows

Disassembly:
sub esp, 0x64
push ebp
mov ebp, dword [esp + 0x74]
push edi
lea eax, [esp + 0xc]
xor edi, edi
push eax
mov dword [esp + 0xc], edi
call fcn.00498900
push ebp
call fcn.004d6980
push edi
push edi
push edi
push edi
mov edi, dword [esp + 0x88]
push edi
call fcn.00492120
mov edx, dword [esp + 0x98]
add esp, 0x1c
push 0
lea ecx, [esp + 0xc]
push ecx
push edx
push esi
push edi
call dword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
je 0x4b7fe8
mov edi, edi
mov eax, dword [esp + 8]
test eax, eax
je 0x4b7fe8
push eax
lea eax, [esp + 0x10]
push esi
push eax
call fcn.00499910
mov ecx, dword [esp + 0x14]
push ecx
push esi
push ebp
call fcn.004d70f0
mov edx, dword [ebx]
mov eax, dword [esp + 0x20]
push edx
push eax
push esi
call fcn.0049ad10
mov ecx, dword [0x522244]
mov dword [ebx], eax
mov eax, 0xcccccccd
mul ecx
shr edx, 3
lea edx, [edx + edx*4]
add edx, edx
mov eax, ecx
sub eax, edx
add ecx, 1
add esp, 0x24
test eax, eax
mov dword [0x522244], ecx
jne 0x4b7fd0
push eax
call dword [sym.imp.KERNEL32.dll_Sleep]
mov edx, dword [esp + 0x7c]
push 0
lea ecx, [esp + 0xc]
push ecx
push edx
push esi
push edi
call dword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
jne 0x4b7f70
push ebp
call fcn.004d7200
mov ecx, dword [esp + 0x78]
lea eax, [esp + 0x10]
push eax
push ecx
call fcn.00499a00
add esp, 0xc
pop edi
pop ebp
add esp, 0x64
ret
Function at 0x4cafc0
Capabilities:
Send data
Send data on socket

Disassembly:
push esi
mov esi, dword [ecx]
test esi, esi
jne 0x4cafce
or eax, 0xffffffff
pop esi
ret 8
mov eax, dword [esp + 0xc]
cmp eax, 0xffffffff
push edi
mov edi, dword [esp + 0xc]
jne 0x4cafec
mov eax, edi
lea edx, [eax + 1]
mov cl, byte [eax]
add eax, 1
test cl, cl
jne 0x4cafe1
sub eax, edx
push 0
push eax
push edi
push esi
call dword [sym.imp.WS2_32.dll_send]
pop edi
pop esi
ret 8

Function at 0x4cb000
Capabilities:
Receive data
Receive data on socket
Set socket configuration

Disassembly:
push esi
mov esi, ecx
mov eax, dword [esi]
test eax, eax
jne 0x4cb010
or eax, 0xffffffff
pop esi
ret 0xc
cmp byte [esp + 0x10], 0
je 0x4cb035
lea ecx, [esp + 0x10]
push ecx
push 0x4004667f
push eax
call dword [sym.imp.WS2_32.dll_ioctlsocket]
cmp dword [esp + 0x10], 0
jne 0x4cb035
xor eax, eax
pop esi
ret 0xc
mov edx, dword [esp + 0xc]
mov eax, dword [esi]
push edi
mov edi, dword [esp + 0xc]
push 0
push edx
push edi
push eax
call dword [sym.imp.WS2_32.dll_recv]
test eax, eax
jle 0x4cb053
mov byte [eax + edi], 0
pop edi
pop esi
ret 0xc

Function at 0x4cb060
Capabilities:
Initialize winsock library

Disassembly:
sub esp, 0x194
mov eax, dword [0x5181f4]
xor eax, esp
mov dword [esp + 0x190], eax
push esi
mov esi, ecx
lea eax, [esp + 4]
mov dword [esi + 0x1c], 7
mov dword [esi + 0x18], 0
push eax
mov word [esi + 8], 0
call dword [sym.imp.KERNEL32.dll_GetVersion]
push eax
call dword [sym.imp.WS2_32.dll_WSAStartup]
mov ecx, dword [esp + 0x194]
mov byte [esi + 0x22], 0
mov dword [esi], 0
mov eax, esi
pop esi
xor ecx, esp
call fcn.00441cbb
add esp, 0x194
ret
Function at 0x4cd1d3
Capabilities:
Read file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x10
mov ecx, dword [ebp + 8]
push ebx
mov ebx, dword [ebp + 0xc]
push esi
push edi
xor edi, edi
cmp dword [ebp + 0x10], edi
mov dword [ebp - 8], ecx
mov dword [ebp - 4], ebx
je 0x4cd210
cmp dword [ebp + 0x14], edi
je 0x4cd210
cmp ecx, edi
jne 0x4cd217
call fcn.00445f58
push edi
push edi
push edi
push edi
mov dword [eax], 0x16
push edi
call fcn.00441df7
add esp, 0x14
xor eax, eax
pop edi
pop esi
pop ebx
leave
ret
mov esi, dword [ebp + 0x18]
cmp esi, edi
je 0x4cd22b
or eax, 0xffffffff
xor edx, edx
div dword [ebp + 0x10]
cmp dword [ebp + 0x14], eax
jbe 0x4cd24c
cmp ebx, 0xffffffff
je 0x4cd23b
push ebx
push edi
push ecx
call fcn.004424d0
add esp, 0xc
cmp esi, edi
je 0x4cd1f8
or eax, 0xffffffff
xor edx, edx
div dword [ebp + 0x10]
cmp dword [ebp + 0x14], eax
ja 0x4cd1f8
mov edi, dword [ebp + 0x10]
imul edi, dword [ebp + 0x14]
test word [esi + 0xc], 0x10c
mov dword [ebp - 0x10], edi
mov ebx, edi
je 0x4cd268
mov eax, dword [esi + 0x18]
mov dword [ebp - 0xc], eax
jmp 0x4cd26f
mov dword [ebp - 0xc], 0x1000
test edi, edi
je 0x4cd360
test word [esi + 0xc], 0x10c
je 0x4cd2c3
mov eax, dword [esi + 4]
test eax, eax
je 0x4cd2c3
jl 0x4cd3c1
cmp ebx, eax
mov edi, ebx
jb 0x4cd294
mov edi, eax
cmp edi, dword [ebp - 4]
ja 0x4cd368
push edi
push dword [esi]
push dword [ebp - 4]
push dword [ebp - 8]
call fcn.0044203f
sub dword [esi + 4], edi
add dword [esi], edi
add dword [ebp - 8], edi
sub ebx, edi
add esp, 0x10
sub dword [ebp - 4], edi
mov edi, dword [ebp - 0x10]
jmp 0x4cd358
cmp ebx, dword [ebp - 0xc]
jb 0x4cd330
cmp dword [ebp - 0xc], 0
je 0x4cd2ed
mov ecx, closesocket
xor edx, edx
cmp ebx, ecx
jbe 0x4cd2e2
mov eax, ecx
div dword [ebp - 0xc]
mov eax, ecx
jmp 0x4cd2e9
mov eax, ebx
div dword [ebp - 0xc]
mov eax, ebx
sub eax, edx
jmp 0x4cd2f8
mov eax, closesocket
cmp ebx, eax
ja 0x4cd2f8
mov eax, ebx
cmp eax, dword [ebp - 4]
ja 0x4cd394
push eax
push dword [ebp - 8]
push esi
call fcn.00445ef0
pop ecx
push eax
call fcn.00457e9d
add esp, 0xc
test eax, eax
je 0x4cd3d3
cmp eax, 0xffffffff
je 0x4cd3c1
add dword [ebp - 8], eax
sub ebx, eax
sub dword [ebp - 4], eax
jmp 0x4cd358
push esi
call fcn.00458919
cmp eax, 0xffffffff
pop ecx
je 0x4cd3c5
cmp dword [ebp - 4], 0
je 0x4cd394
mov ecx, dword [ebp - 8]
inc dword [ebp - 8]
mov byte [ecx], al
mov eax, dword [esi + 0x18]
dec ebx
dec dword [ebp - 4]
mov dword [ebp - 0xc], eax
test ebx, ebx
jne 0x4cd277
mov eax, dword [ebp + 0x14]
jmp 0x4cd212
xor esi, esi
cmp dword [ebp + 0xc], 0xffffffff
je 0x4cd37f
push dword [ebp + 0xc]
push esi
push dword [ebp + 8]
call fcn.004424d0
add esp, 0xc
call fcn.00445f58
push esi
push esi
push esi
push esi
mov dword [eax], 0x22
push esi
jmp 0x4cd208
cmp dword [ebp + 0xc], 0xffffffff
je 0x4cd3aa
push dword [ebp + 0xc]
push 0
push dword [ebp + 8]
call fcn.004424d0
add esp, 0xc
call fcn.00445f58
mov dword [eax], 0x22
xor eax, eax
push eax
push eax
push eax
push eax
push eax
jmp 0x4cd208
or dword [esi + 0xc], 0x20
mov eax, edi
sub eax, ebx
xor edx, edx
div dword [ebp + 0x10]
jmp 0x4cd212
or dword [esi + 0xc], 0x10
jmp 0x4cd3c5
Function at 0x4d39d0
Capabilities:
Read file on windows

Disassembly:
sub esp, 0x14
cmp dword [esp + 0x1c], 0
jne 0x4d39e3
call fcn.0044c2f7
mov dword [esp + 0x1c], eax
mov eax, dword [esp + 0x1c]
push eax
push 1
lea ecx, [esp + 8]
push 4
push ecx
call fcn.004cd46f
add esp, 0x10
cmp eax, 1
je 0x4d3a04
xor eax, eax
add esp, 0x14
ret
mov ecx, dword [esp]
movzx eax, cl
shl eax, 8
movzx edx, ch
movzx ecx, byte [esp + 2]
add eax, edx
movzx edx, byte [esp + 3]
shl eax, 8
add eax, ecx
shl eax, 8
add eax, edx
push ebx
mov dword [esp + 0x14], eax
mov ebx, eax
js 0x4d3a35
mov dword [esp + 8], eax
jmp 0x4d3a3b
neg ebx
mov dword [esp + 8], ebx
push ebp
lea ebp, [ebx*8 + 0x1f]
shr ebp, 5
push esi
push edi
je 0x4d3b33
mov esi, dword [esp + 0x28]
cmp ebp, dword [esi]
jle 0x4d3a60
push ebp
push esi
call fcn.0046f570
add esp, 8
mov eax, dword [esp + 0x2c]
mov esi, dword [esi + 8]
push eax
lea edi, [ebp*4]
mov ecx, edi
push 1
sub ecx, ebx
add ecx, esi
push ebx
push ecx
mov dword [esi], 0
call fcn.004cd46f
add esp, 0x10
cmp eax, 1
je 0x4d3a96
pop edi
pop esi
pop ebp
xor eax, eax
pop ebx
add esp, 0x14
ret
lea eax, [ebp + 1]
cdq
sub eax, edx
sar eax, 1
test eax, eax
lea edi, [edi + esi - 4]
mov dword [esp + 0x1c], edi
jle 0x4d3b16
mov dword [esp + 0x2c], eax
mov edi, edi
mov ecx, dword [esi]
mov eax, ecx
mov edx, ecx
and edx, 0xff00
shl eax, 0x10
add eax, edx
xor edx, edx
mov dword [esp + 0x18], ecx
mov dh, byte [esp + 0x1a]
shl eax, 8
shr ecx, 0x18
add esi, 4
sub edi, 4
add eax, edx
add eax, ecx
mov ecx, dword [edi + 4]
mov edx, ecx
shl edx, 0x10
mov ebx, ecx
and ebx, 0xff00
add edx, ebx
xor ebx, ebx
mov dword [esp + 0x18], ecx
mov bh, byte [esp + 0x1a]
shl edx, 8
shr ecx, 0x18
add edx, ebx
add edx, ecx
sub dword [esp + 0x2c], 1
mov dword [esi - 4], edx
mov dword [edi + 4], eax
jne 0x4d3ab0
mov ebx, dword [esp + 0x14]
mov edi, dword [esp + 0x1c]
test ebp, ebp
jle 0x4d3b2f
lea ebx, [ebx]
cmp dword [edi], 0
jne 0x4d3b2f
sub ebp, 1
sub edi, 4
test ebp, ebp
jg 0x4d3b20
mov eax, dword [esp + 0x20]
test eax, eax
jge 0x4d3b39
neg ebp
mov eax, dword [esp + 0x28]
pop edi
pop esi
mov dword [eax + 4], ebp
pop ebp
lea eax, [ebx + 4]
pop ebx
add esp, 0x14
ret
Function at 0x4d6980
Capabilities:
Hash data with md5

Disassembly:
mov eax, dword [esp + 4]
mov dword [eax + 4], 0
mov dword [eax], 0
mov dword [eax + 8], 0x67452301
mov dword [eax + 0xc], 0xefcdab89
mov dword [eax + 0x10], 0x98badcfe
mov dword [eax + 0x14], 0x10325476
ret
Function at 0x1000b780
Capabilities:
Allocate thread local storage
Set thread local storage value

Disassembly:
push esi
call fcn.1000c670
call dword [sym.imp.KERNEL32.dll_TlsAlloc]
mov dword [0x100a08fc], eax
cmp eax, 0xffffffff
jne 0x1000b79a
xor eax, eax
pop esi
ret
push 0x74
push 1
call fcn.1000c880
add esp, 8
mov esi, eax
test esi, esi
je 0x1000b7dc
push esi
mov eax, dword [0x100a08fc]
push eax
call dword [sym.imp.KERNEL32.dll_TlsSetValue]
test eax, eax
je 0x1000b7dc
push esi
call fcn.1000b810
add esp, 4
call dword [sym.imp.KERNEL32.dll_GetCurrentThreadId]
mov dword [esi], eax
mov eax, 1
mov dword [esi + 4], 0xffffffff
pop esi
ret
xor eax, eax
pop esi
ret

Function at 0x1000b830
Capabilities:
Get thread local storage value
Set thread local storage value

Disassembly:
push esi
push edi
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov esi, eax
mov eax, dword [0x100a08fc]
push eax
call dword [sym.imp.KERNEL32.dll_TlsGetValue]
mov edi, eax
test edi, edi
jne 0x1000b893
push 0x74
push 1
call fcn.1000c880
add esp, 8
mov edi, eax
test edi, edi
je 0x1000b889
push edi
mov eax, dword [0x100a08fc]
push eax
call dword [sym.imp.KERNEL32.dll_TlsSetValue]
test eax, eax
je 0x1000b889
push edi
call fcn.1000b810
add esp, 4
call dword [sym.imp.KERNEL32.dll_GetCurrentThreadId]
mov dword [edi], eax
mov dword [edi + 4], 0xffffffff
jmp 0x1000b893
push 0x10
call fcn.1000b5e0
add esp, 4
push esi
call dword [sym.imp.KERNEL32.dll_SetLastError]
mov eax, edi
pop edi
pop esi
ret

Function at 0x1000b8a0
Capabilities:
Get thread local storage value
Set thread local storage value

Disassembly:
cmp dword [0x100a08fc], 0xffffffff
push esi
je 0x1000b93f
mov esi, dword [esp + 8]
test esi, esi
jne 0x1000b8c8
mov eax, dword [0x100a08fc]
push eax
call dword [sym.imp.KERNEL32.dll_TlsGetValue]
mov esi, eax
test esi, esi
je 0x1000b931
mov eax, dword [esi + 0x24]
test eax, eax
je 0x1000b8d8
push eax
call 0x100abd1b
add esp, 4
mov eax, dword [esi + 0x28]
test eax, eax
je 0x1000b8e8
push eax
call 0x100abd1b
add esp, 4
mov eax, dword [esi + 0x30]
test eax, eax
je 0x1000b8f8
push eax
call fcn.1000c930
add esp, 4
mov eax, dword [esi + 0x38]
test eax, eax
je 0x1000b908
push eax
call fcn.1000c930
add esp, 4
mov eax, dword [esi + 0x40]
test eax, eax
je 0x1000b918
push eax
call fcn.1000c930
add esp, 4
mov eax, dword [esi + 0x44]
test eax, eax
je 0x1000b928
push eax
call fcn.1000c930
add esp, 4
push esi
call fcn.1000c930
add esp, 4
push 0
mov eax, dword [0x100a08fc]
push eax
call dword [sym.imp.KERNEL32.dll_TlsSetValue]
pop esi
ret
Function at 0x430005
Capabilities:
Encode data using xor
Packed with generic packer

Disassembly:
pushal
call 0x43000c
nop
nop
nop
pop eax
nop
nop
add eax, 0x403daa
nop
sub eax, 0x403d50
nop
nop
nop
nop
mov ebx, dword [eax]
nop
nop
nop
nop
mov ecx, dword [eax + 4]
nop
mov edx, dword [eax + 8]
nop
nop
nop
nop
nop
xor dword [ebx], edx
nop
nop
nop
add ebx, 4
nop
nop
nop
nop
nop
cmp ebx, ecx
nop
nop
jl 0x430030
nop
nop
nop
nop
nop
add eax, 0xc
nop
nop
cmp dword [eax], 0
nop
nop
nop
nop
nop
jne 0x43001e
nop
nop
nop
nop
popal
nop
jmp loc.00401219