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

Disassembly:
push ebp
mov ebp, esp
push ecx
push ecx
push esi
mov dword [ebp - 4], ecx
call fcn.0043bfba
mov esi, dword [eax + 0xc]
push 0xf1
push dword [ebp + 8]
push esi
call dword [sym.imp.KERNEL32.dll_FindResourceW]
test eax, eax
jne 0x442767
xor eax, eax
jmp 0x44280b
push eax
push esi
call dword [sym.imp.KERNEL32.dll_LoadResource]
test eax, eax
mov dword [ebp - 8], eax
je 0x442760
push eax
call dword [sym.imp.KERNEL32.dll_LockResource]
mov esi, eax
test esi, esi
je 0x442760
movzx eax, word [esi + 6]
push ebx
push edi
xor ecx, ecx
push 4
pop edx
mul edx
seto cl
neg ecx
or ecx, eax
push ecx
call fcn.004307fb
mov edi, eax
xor eax, eax
cmp word [esi + 6], ax
pop ecx
jbe 0x4427bc
lea ecx, [esi + 8]
movzx edx, word [ecx]
mov dword [edi + eax*4], edx
movzx edx, word [esi + 6]
inc eax
inc ecx
inc ecx
cmp eax, edx
jl 0x4427ab
movzx eax, word [esi + 6]
mov ecx, dword [ebp - 4]
push eax
push edi
call fcn.00441512
push edi
mov ebx, eax
call fcn.0043082b
test ebx, ebx
pop ecx
je 0x4427fe
movzx ecx, word [esi + 4]
movzx eax, word [esi + 2]
push ecx
lea esi, [ecx + 7]
mov ecx, dword [ebp - 4]
push eax
lea edx, [eax + 7]
push esi
push edx
call fcn.00441b9a
push dword [ebp + 8]
mov ecx, dword [ebp - 4]
call fcn.00441c4c
mov ebx, eax
push dword [ebp - 8]
call dword [sym.imp.KERNEL32.dll_FreeResource]
pop edi
mov eax, ebx
pop ebx
pop esi
leave
ret 4

Function at 0x44371b
Capabilities:
Get geographical location

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x230
mov eax, dword [0x4a4b70]
xor eax, ebp
mov dword [ebp - 4], eax
cmp dword [ebp + 8], 0x800
push ebx
push esi
mov esi, ecx
mov ebx, edx
lea eax, [ebp - 0xc]
jne 0x443758
push 0x488ca0
push 4
push eax
call fcn.0046badf
push eax
call fcn.00402610
add esp, 0x10
jmp 0x44376a
push 4
push eax
push 3
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.dll_GetLocaleInfoW]
test eax, eax
je 0x4437d5
push edi
call fcn.0046a410
mov edi, dword [eax]
call fcn.0046a410
and dword [eax], 0
lea eax, [ebp - 0xc]
push eax
push ebx
push esi
push 0x111
mov esi, 0x112
lea eax, [ebp - 0x230]
push esi
push eax
call fcn.0046a2f2
add esp, 0x18
mov ebx, eax
call fcn.0046a410
cmp dword [eax], 0
je 0x4437b5
call fcn.0046a410
push dword [eax]
call fcn.00435629
pop ecx
jmp 0x4437bc
call fcn.0046a410
mov dword [eax], edi
cmp ebx, 0xffffffff
pop edi
je 0x4437d5
cmp ebx, esi
jae 0x4437d5
lea eax, [ebp - 0x230]
push eax
call dword [sym.imp.KERNEL32.dll_LoadLibraryW]
jmp 0x4437d7
xor eax, eax
mov ecx, dword [ebp - 4]
pop esi
xor ecx, ebp
pop ebx
call fcn.00467f41
leave
ret
Function at 0x4458c8
Capabilities:
Extract resource via kernel32 functions

Disassembly:
push 0x24
mov eax, 0x47fcbb
call fcn.00469f42
mov esi, ecx
mov dword [ebp - 0x20], esi
mov eax, dword [esi + 0x60]
mov dword [ebp - 0x1c], eax
mov eax, dword [esi + 0x5c]
mov dword [ebp - 0x18], eax
call fcn.0043bfba
mov edi, dword [eax + 0xc]
xor ebx, ebx
cmp dword [esi + 0x58], ebx
je 0x445913
call fcn.0043bfba
mov edi, dword [eax + 0xc]
push 5
push dword [esi + 0x58]
push edi
call dword [sym.imp.KERNEL32.dll_FindResourceW]
push eax
push edi
call dword [sym.imp.KERNEL32.dll_LoadResource]
mov dword [ebp - 0x18], eax
cmp dword [ebp - 0x18], ebx
je 0x445924
push dword [ebp - 0x18]
call dword [sym.imp.KERNEL32.dll_LockResource]
mov dword [ebp - 0x1c], eax
cmp dword [ebp - 0x1c], ebx
jne 0x445931
or eax, 0xffffffff
jmp 0x445a8d
mov ecx, esi
call fcn.0044541a
mov dword [ebp - 0x14], eax
call fcn.00437fc0
and dword [ebp - 0x28], ebx
cmp dword [ebp - 0x14], ebx
mov dword [ebp - 0x2c], ebx
mov dword [ebp - 0x24], ebx
je 0x4459af
call dword [sym.imp.USER32.dll_GetDesktopWindow]
cmp dword [ebp - 0x14], eax
je 0x4459af
push dword [ebp - 0x14]
call dword [sym.imp.USER32.dll_IsWindowEnabled]
test eax, eax
je 0x4459af
push 0
push dword [ebp - 0x14]
call dword [sym.imp.USER32.dll_EnableWindow]
mov dword [ebp - 0x2c], 1
call fcn.00402dc0
mov ebx, eax
test ebx, ebx
mov dword [ebp - 0x24], ebx
je 0x4459af
mov eax, dword [ebx]
mov ecx, ebx
call dword [eax + 0x120]
test eax, eax
je 0x4459af
mov ecx, ebx
call fcn.00434d83
test eax, eax
je 0x4459af
push 0
mov ecx, ebx
call fcn.00434d9e
mov dword [ebp - 0x28], 1
and dword [ebp - 4], 0
push esi
call fcn.00439cff
push dword [ebp - 0x14]
call fcn.00437f18
push edi
push eax
push dword [ebp - 0x1c]
mov ecx, esi
call fcn.004456d0
xor edi, edi
cmp eax, edi
je 0x445a0c
test byte [esi + 0x3c], 0x10
je 0x4459f6
push 4
pop edi
mov ecx, esi
call fcn.00434c1d
test ax, 0x100
je 0x4459ec
push 5
pop edi
push edi
mov ecx, esi
call fcn.00437ae0
xor edi, edi
cmp dword [esi + 0x20], edi
je 0x445a0c
push 0x97
push edi
push edi
push edi
push edi
push edi
mov ecx, esi
call fcn.00434f6d
or dword [ebp - 4], 0xffffffff
jmp 0x445a37
cmp dword [ebp - 0x28], edi
je 0x445a45
push 1
mov ecx, ebx
call fcn.00434d9e
cmp dword [ebp - 0x2c], edi
je 0x445a55
push 1
push dword [ebp - 0x14]
call dword [sym.imp.USER32.dll_EnableWindow]
cmp dword [ebp - 0x14], edi
je 0x445a6e
call dword [sym.imp.USER32.dll_GetActiveWindow]
cmp eax, dword [esi + 0x20]
jne 0x445a6e
push dword [ebp - 0x14]
call dword [sym.imp.USER32.dll_SetActiveWindow]
mov eax, dword [esi]
mov ecx, esi
call dword [eax + 0x60]
mov ecx, esi
call fcn.00445454
cmp dword [esi + 0x58], edi
je 0x445a8a
push dword [ebp - 0x18]
call dword [sym.imp.KERNEL32.dll_FreeResource]
mov eax, dword [esi + 0x44]
call fcn.00469fe7
ret
Function at 0x445abe
Capabilities:
Extract resource via kernel32 functions

Disassembly:
push ebp
mov ebp, esp
push ecx
push ebx
push esi
push edi
mov dword [ebp - 4], ecx
xor ebx, ebx
call fcn.0043bfba
mov esi, dword [eax + 0xc]
push 5
push dword [ebp + 8]
push esi
call dword [sym.imp.KERNEL32.dll_FindResourceW]
push eax
push esi
call dword [sym.imp.KERNEL32.dll_LoadResource]
mov edi, eax
test edi, edi
je 0x445af5
push edi
call dword [sym.imp.KERNEL32.dll_LockResource]
mov ebx, eax
mov ecx, dword [ebp - 4]
push esi
push dword [ebp + 0xc]
push ebx
call fcn.004456d0
push edi
mov esi, eax
call dword [sym.imp.KERNEL32.dll_FreeResource]
pop edi
mov eax, esi
pop esi
pop ebx
leave
ret 8

Function at 0x445b4d
Capabilities:
Extract resource via kernel32 functions

Disassembly:
push ebx
mov ebx, dword [esp + 8]
test ebx, 0xffff0000
push esi
push edi
mov edi, ecx
mov dword [edi + 0x58], ebx
jne 0x445b6d
cmp dword [edi + 0x54], 0
jne 0x445b6d
movzx eax, bx
mov dword [edi + 0x54], eax
call fcn.0043bfba
mov esi, dword [eax + 0xc]
push 5
push ebx
push esi
call dword [sym.imp.KERNEL32.dll_FindResourceW]
push eax
push esi
call dword [sym.imp.KERNEL32.dll_LoadResource]
push esi
push dword [esp + 0x18]
mov ebx, eax
push ebx
mov ecx, edi
call fcn.00445b14
push ebx
mov esi, eax
call dword [sym.imp.KERNEL32.dll_FreeResource]
pop edi
mov eax, esi
pop esi
pop ebx
ret 8

Function at 0x446196
Capabilities:
Extract resource via kernel32 functions

Disassembly:
push ebp
mov ebp, esp
push ecx
push ebx
xor ebx, ebx
cmp dword [ebp + 0xc], ebx
push esi
push edi
mov edi, ecx
mov dword [ebp - 4], ebx
je 0x4461dc
call fcn.0043bfba
mov esi, dword [eax + 0xc]
push 0xf0
push dword [ebp + 0xc]
push esi
call dword [sym.imp.KERNEL32.dll_FindResourceW]
test eax, eax
je 0x4461dc
push eax
push esi
call dword [sym.imp.KERNEL32.dll_LoadResource]
test eax, eax
mov dword [ebp - 4], eax
je 0x44621f
push eax
call dword [sym.imp.KERNEL32.dll_LockResource]
mov ebx, eax
test ebx, ebx
mov esi, dword [ebp + 8]
mov dword [ebp + 0xc], 1
je 0x446208
push dword [ebp + 0x10]
mov eax, dword [edi]
push ebx
push esi
mov ecx, edi
call dword [eax + 0x20]
cmp dword [ebp - 4], 0
mov dword [ebp + 0xc], eax
je 0x446208
push dword [ebp - 4]
call dword [sym.imp.KERNEL32.dll_FreeResource]
cmp dword [esi + 0x4c], 0
je 0x44621c
mov ecx, dword [esi + 0x4c]
push dword [ebp + 0x10]
mov eax, dword [ecx]
call dword [eax + 0xa0]
mov eax, dword [ebp + 0xc]
pop edi
pop esi
pop ebx
leave
ret 0xc
Function at 0x454c36
Capabilities:
Get thread local storage value

Disassembly:
push ebx
push esi
mov esi, ecx
lea ebx, [esi + 0x1c]
push ebx
call dword [sym.imp.KERNEL32.dll_EnterCriticalSection]
cmp dword [esp + 0x10], 0
jne 0x454c64
push dword [esi]
call dword [sym.imp.KERNEL32.dll_TlsGetValue]
test eax, eax
je 0x454c82
push dword [esp + 0xc]
mov ecx, esi
push eax
call fcn.00454ba0
jmp 0x454c82
mov eax, dword [esi + 0x14]
test eax, eax
je 0x454c82
push edi
push dword [esp + 0x10]
mov edi, dword [eax + 4]
push eax
mov ecx, esi
call fcn.00454ba0
test edi, edi
mov eax, edi
jne 0x454c6c
pop edi
push ebx
call dword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
pop esi
pop ebx
ret 8
mov ecx, dword [0x4a85ac]
test ecx, ecx
je 0x454d45
jmp 0x454c35
ret 8

Function at 0x467f41
Capabilities:
Terminate process

Disassembly:
cmp ecx, dword [0x4a4b70]
jne 0x467f4b
repz ret
jmp fcn.0046e217

Function at 0x469814
Capabilities:
Check if file exists
Get file attributes

Disassembly:
push esi
xor esi, esi
cmp dword [esp + 8], esi
jne 0x469841
call fcn.0046a423
mov dword [eax], esi
call fcn.0046a410
push esi
push esi
push esi
push esi
push esi
mov dword [eax], 0x16
call fcn.0046e88b
add esp, 0x14
push 0x16
pop eax
pop esi
ret
test dword [esp + 0xc], 0xfffffff9
jne 0x46981d
push dword [esp + 8]
call dword [sym.imp.KERNEL32.dll_GetFileAttributesW]
cmp eax, 0xffffffff
jne 0x469870
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
call fcn.0046a436
pop ecx
call fcn.0046a410
mov eax, dword [eax]
pop esi
ret
test al, 0x10
jne 0x469897
test al, 1
je 0x469897
test byte [esp + 0xc], 2
je 0x469897
call fcn.0046a423
mov dword [eax], 5
call fcn.0046a410
mov dword [eax], 0xd
jmp 0x469867
xor eax, eax
pop esi
ret
Function at 0x46d03c
Capabilities:
Write file on windows

Disassembly:
push ecx
push ebx
mov ebx, dword [esp + 0xc]
push esi
push edi
xor esi, esi
xor edi, edi
cmp ebx, dword [edi*8 + 0x4a4d00]
je 0x46d057
inc edi
cmp edi, 0x17
jb 0x46d048
cmp edi, 0x17
jae 0x46d1d7
push ebp
push 3
call fcn.00477840
cmp eax, 1
pop ecx
je 0x46d1a3
push 3
call fcn.00477840
test eax, eax
pop ecx
jne 0x46d08b
cmp dword [0x4a4b40], 1
je 0x46d1a3
cmp ebx, 0xfc
je 0x46d1d6
push str.Runtime_Error__n_nProgram:
mov ebx, 0x314
push ebx
mov ebp, 0x4a88d0
push ebp
call fcn.004777db
add esp, 0xc
test eax, eax
je 0x46d0c1
push esi
push esi
push esi
push esi
push esi
call fcn.0046e78f
add esp, 0x14
push 0x104
mov esi, 0x4a88e9
push esi
push 0
mov byte [0x4a89ed], 0
call dword [sym.imp.KERNEL32.dll_GetModuleFileNameA]
test eax, eax
jne 0x46d105
push str._program_name_unknown_
push 0x2fb
push esi
call fcn.004777db
add esp, 0xc
test eax, eax
je 0x46d105
xor eax, eax
push eax
push eax
push eax
push eax
push eax
call fcn.0046e78f
add esp, 0x14
push esi
call fcn.00477750
inc eax
cmp eax, 0x3c
pop ecx
jbe 0x46d14a
push esi
call fcn.00477750
sub esi, 0x3b
add eax, esi
push 3
mov ecx, 0x4a8be4
push 0x48db94
sub ecx, eax
push ecx
push eax
call fcn.00477691
add esp, 0x14
test eax, eax
je 0x46d14a
xor esi, esi
push esi
push esi
push esi
push esi
push esi
call fcn.0046e78f
add esp, 0x14
jmp 0x46d14c
xor esi, esi
push 0x48db90
push ebx
push ebp
call fcn.00477620
add esp, 0xc
test eax, eax
je 0x46d16c
push esi
push esi
push esi
push esi
push esi
call fcn.0046e78f
add esp, 0x14
push dword [edi*8 + 0x4a4d04]
push ebx
push ebp
call fcn.00477620
add esp, 0xc
test eax, eax
je 0x46d18e
push esi
push esi
push esi
push esi
push esi
call fcn.0046e78f
add esp, 0x14
push 0x12010
push str.Microsoft_Visual_C_Runtime_Library
push ebp
call fcn.00477463
add esp, 0xc
jmp 0x46d1d6
push 0xfffffffffffffff4
call dword [sym.imp.KERNEL32.dll_GetStdHandle]
mov ebp, eax
cmp ebp, esi
je 0x46d1d6
cmp ebp, 0xffffffff
je 0x46d1d6
push 0
lea eax, [esp + 0x14]
push eax
lea esi, [edi*8 + 0x4a4d04]
push dword [esi]
call fcn.00477750
pop ecx
push eax
push dword [esi]
push ebp
call dword [sym.imp.KERNEL32.dll_WriteFile]
pop ebp
pop edi
pop esi
pop ebx
pop ecx
ret
Function at 0x477463
Capabilities:
Link many functions at runtime

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x20
push ebx
push esi
push edi
call fcn.0046dbec
xor ebx, ebx
cmp dword [0x4a93c8], ebx
mov dword [ebp - 8], eax
mov dword [ebp - 4], ebx
mov dword [ebp - 0xc], ebx
mov dword [ebp - 0x10], ebx
jne 0x477539
push str.USER32.DLL
call dword [sym.imp.KERNEL32.dll_LoadLibraryA]
mov edi, eax
cmp edi, ebx
je 0x477619
mov esi, dword [sym.imp.KERNEL32.dll_GetProcAddress]
push str.MessageBoxA
push edi
call esi
cmp eax, ebx
je 0x477619
push eax
call fcn.0046db7e
mov dword [esp], 0x48df10
push edi
mov dword [0x4a93c8], eax
call esi
push eax
call fcn.0046db7e
mov dword [esp], 0x48defc
push edi
mov dword [0x4a93cc], eax
call esi
push eax
call fcn.0046db7e
mov dword [0x4a93d0], eax
lea eax, [ebp - 0xc]
push eax
call fcn.00468aad
test eax, eax
pop ecx
pop ecx
je 0x477507
push ebx
push ebx
push ebx
push ebx
push ebx
call fcn.0046e78f
add esp, 0x14
cmp dword [ebp - 0xc], 2
jne 0x477539
push str.GetUserObjectInformationA
push edi
call esi
push eax
call fcn.0046db7e
cmp eax, ebx
pop ecx
mov dword [0x4a93d8], eax
je 0x477539
push str.GetProcessWindowStation
push edi
call esi
push eax
call fcn.0046db7e
pop ecx
mov dword [0x4a93d4], eax
mov eax, dword [0x4a93d4]
mov ecx, dword [ebp - 8]
cmp eax, ecx
je 0x4775be
cmp dword [0x4a93d8], ecx
je 0x4775be
push eax
call fcn.0046dbf5
push dword [0x4a93d8]
mov esi, eax
call fcn.0046dbf5
cmp esi, ebx
pop ecx
pop ecx
mov edi, eax
je 0x4775be
cmp edi, ebx
je 0x4775be
call esi
cmp eax, ebx
je 0x47758b
lea ecx, [ebp - 0x14]
push ecx
push 0xc
lea ecx, [ebp - 0x20]
push ecx
push 1
push eax
call edi
test eax, eax
je 0x47758b
test byte [ebp - 0x18], 1
jne 0x4775be
lea eax, [ebp - 0x10]
push eax
call fcn.00468ae4
test eax, eax
pop ecx
je 0x4775a6
push ebx
push ebx
push ebx
push ebx
push ebx
call fcn.0046e78f
add esp, 0x14
cmp dword [ebp - 0x10], 4
jb 0x4775b5
or dword [ebp + 0x10], 0x200000
jmp 0x4775f9
or dword [ebp + 0x10], 0x40000
jmp 0x4775f9
mov eax, dword [0x4a93cc]
cmp eax, dword [ebp - 8]
je 0x4775f9
push eax
call fcn.0046dbf5
cmp eax, ebx
pop ecx
je 0x4775f9
call eax
cmp eax, ebx
mov dword [ebp - 4], eax
je 0x4775f9
mov eax, dword [0x4a93d0]
cmp eax, dword [ebp - 8]
je 0x4775f9
push eax
call fcn.0046dbf5
cmp eax, ebx
pop ecx
je 0x4775f9
push dword [ebp - 4]
call eax
mov dword [ebp - 4], eax
push dword [0x4a93c8]
call fcn.0046dbf5
cmp eax, ebx
pop ecx
je 0x477619
push dword [ebp + 0x10]
push dword [ebp + 0xc]
push dword [ebp + 8]
push dword [ebp - 4]
call eax
jmp 0x47761b
xor eax, eax
pop edi
pop esi
pop ebx
leave
ret
Function at 0x47eca6
Capabilities:
Check os version

Disassembly:
push ebp
lea ebp, [esp - 0x78]
sub esp, 0x98
mov eax, dword [0x4a4b70]
xor eax, ebp
mov dword [ebp + 0x74], eax
push esi
mov esi, ecx
call fcn.0047ec3b
mov eax, 0x400000
push 0x94
mov dword [esi + 8], eax
mov dword [esi + 4], eax
lea eax, [ebp - 0x20]
push 0
push eax
mov dword [esi], 0x3c
mov byte [esi + 0xc], 0
call fcn.0046a020
add esp, 0xc
lea eax, [ebp - 0x20]
push eax
mov dword [ebp - 0x20], 0x94
call dword [sym.imp.KERNEL32.dll_GetVersionExA]
cmp dword [ebp - 0x10], 2
jne 0x47ecf5
cmp dword [ebp - 0x1c], 5
jb 0x47ed0d
jmp 0x47ed09
cmp dword [ebp - 0x10], 1
jne 0x47ed0d
cmp dword [ebp - 0x1c], 4
ja 0x47ed09
jne 0x47ed0d
cmp dword [ebp - 0x18], 0
jbe 0x47ed0d
mov byte [esi + 0xc], 1
lea ecx, [esi + 0x18]
mov dword [esi + 0x10], 0x800
mov dword [esi + 0x14], 0x48f7dc
call fcn.0047eb0f
test eax, eax
jge 0x47ed2e
mov byte [0x4a975c], 1
mov ecx, dword [ebp + 0x74]
mov eax, esi
xor ecx, ebp
pop esi
call fcn.00467f41
add ebp, 0x78
leave
ret
Function at 0x10263770
Capabilities:
Read .ini file

Disassembly:
sub esp, 0x70
lea eax, [esp]
push esi
mov esi, dword [esp + 0x78]
push 0x10
push 0
push eax
mov word [esi], 0
call fcn.10241620
lea ecx, [esp + 0x14]
push 0x10
push ecx
call fcn.102631a0
lea edx, [esp + 0x34]
push 0x10
push edx
call fcn.102631f0
lea eax, [esp + 0x24]
push 0x10
push eax
call fcn.10263240
lea ecx, [esp + 0x44]
push 0x10
push ecx
call fcn.102633a0
lea edx, [esp + 0x54]
push 0x10
push edx
call fcn.10263430
lea eax, [esp + 0x64]
push 0x10
push eax
call fcn.102633f0
lea ecx, [esp + 0x14]
lea edx, [esp + 4]
push ecx
push 0x10
push edx
lea eax, [esp + 0x30]
push 0x10234b54
lea ecx, [esp + 0x44]
push eax
push ecx
call dword [sym.imp.KERNEL32.dll_GetPrivateProfileStringA]
test eax, eax
je 0x1026385e
lea edx, [esp + 0x44]
lea eax, [esp + 4]
push edx
push eax
call fcn.102414b0
test al, al
je 0x1026381f
xor eax, eax
mov word [esi], 2
cmp word [esi], ax
pop esi
setne al
add esp, 0x70
ret 4
lea ecx, [esp + 0x54]
lea edx, [esp + 4]
push esp
and al, 4

Function at 0x403d61
Capabilities:
Encode data using xor

Disassembly:
push eax
push ebx
mov eax, 0x499
mov ecx, 0x404498
mov bl, byte [ecx]
sub bl, 0xf2
rol bl, 2
sub bl, cl
ror bl, 1
mov byte [ecx], bl
dec ecx
dec eax
jne 0x403d6d
mov eax, 0x261d
mov ecx, 0x403764
mov bl, byte [ecx]
rol bl, 7
ror bl, 2
sub bl, cl
xor bl, 0x91
mov byte [ecx], bl
dec ecx
dec eax
jne 0x403d8a
pop ebx
pop eax
add ecx, 0x2c1a
jmp ecx
Function at 0x40b067
Capabilities:
Access peb ldr_data

Disassembly:
xor eax, eax
pushal
mov ebx, dword fs:[0x30]
mov ebx, dword [ebx + 0xc]
mov ebx, dword [ebx + 0x14]
mov edi, ebx
mov esi, dword [ebx + 0x28]
xor eax, eax
xor edx, edx
mov ecx, dword [esi]
test cx, cx
je 0x40b0b4
mov al, cl
cmp al, 0x61
jb 0x40b08f
sub al, 0x20
ror edx, 0xd
add edx, eax
ror edx, 0xd
shr ecx, 0x10
test cx, cx
je 0x40b0b4
mov al, cl
cmp al, 0x61
jb 0x40b0a7
sub al, 0x20
ror edx, 0xd
add edx, eax
ror edx, 0xd
lea esi, [esi + 4]
jmp 0x40b080
cmp edx, dword [esp + 0x18]
je 0x40b0c4
mov ebx, dword [ebx]
cmp edi, dword [ebx]
jne 0x40b079
xor eax, eax
jmp 0x40b0c7
mov eax, dword [ebx + 0x10]
mov dword [esp + 0x1c], eax
popal
ret

Function at 0x40b0cf
Capabilities:
Resolve function by parsing pe exports

Disassembly:
xor eax, eax
pushal
mov ebx, ecx
mov eax, dword [ebx + 0x3c]
mov eax, dword [ebx + eax + 0x78]
test eax, eax
je 0x40b1b6
lea esi, [ebx + eax]
test edx, 0xffff0000
je 0x40b1bc
mov ecx, dword [esi + 0x18]
mov edi, dword [esi + 0x20]
lea edi, [ebx + edi]
mov ebp, dword [edi + ecx*4 - 4]
lea ebp, [ebx + ebp]
xor eax, eax
xor edx, edx
mov al, byte [ebp]
test al, al
je 0x40b11b
cmp al, 0x61
jb 0x40b113
sub al, 0x20
ror edx, 0xd
add edx, eax
inc ebp
jmp 0x40b106
cmp edx, dword [esp + 0x14]
je 0x40b12b
dec ecx
jne 0x40b0fb
xor eax, eax
jmp 0x40b1b6
mov edx, dword [esi + 0x24]
lea edx, [ebx + edx]
mov edx, dword [edx + ecx*2 - 2]
and edx, 0xffff
mov eax, dword [esi + 0x1c]
lea eax, [ebx + eax]
mov eax, dword [eax + edx*4]
lea eax, [ebx + eax]
cmp eax, esi
jbe 0x40b1b6
mov ecx, dword [ebx + 0x3c]
mov ecx, dword [ebx + ecx + 0x7c]
add esi, ecx
cmp eax, esi
jae 0x40b1b6
mov ebp, eax
xor eax, eax
xor edx, edx
mov al, byte [ebp]
cmp al, 0x61
jb 0x40b167
sub al, 0x20
ror edx, 0xd
add edx, eax
ror edx, 0xd
inc ebp
cmp al, 0x2e
je 0x40b176
jmp 0x40b15e
ror edx, 0xd
add edx, 0x44
ror edx, 0x1a
add edx, 0x4c
ror edx, 0x1a
add edx, 0x4c
ror edx, 0xd
mov ecx, edx
call fcn.0040b067
test eax, eax
je 0x40b1b6
mov ecx, eax
xor eax, eax
xor edx, edx
mov al, byte [ebp]
test al, al
je 0x40b1b1
cmp al, 0x61
jb 0x40b1a9
sub al, 0x20
ror edx, 0xd
add edx, eax
inc ebp
jmp 0x40b19c
call fcn.0040b0cf
mov dword [esp + 0x1c], eax
popal
ret
mov ecx, dword [esi + 0x10]
cmp edx, ecx
jb 0x40b1d4
mov eax, dword [esi + 0x14]
dec eax
cmp edx, eax
ja 0x40b1d4
sub edx, ecx
mov ecx, edx
jmp 0x40b12b
xor eax, eax
jmp 0x40b1b6
Function at 0x40daea
Capabilities:
Enumerate pe sections

Disassembly:
sub esp, 0x50
push ebp
lea eax, [esp + 0x28]
push edi
push eax
call fcn.0040dc9a
mov ecx, dword [esp + 0x5c]
xor edx, edx
xor ebp, ebp
mov dword [esp + 0xc], 1
mov edi, dword [ecx]
mov dword [esp + 0x10], 8
mov dword [esp + 0x14], 2
mov dword [esp + 0x18], 4
mov dx, word [edi + 0x14]
cmp word [edi + 6], bp
mov dword [esp + 0x1c], 0x10
mov dword [esp + 0x20], pe_nt_image_headers32
mov dword [esp + 0x24], 0x20
mov dword [esp + 0x28], 0x40
lea eax, [edx + edi + 0x18]
jbe 0x40dbe8
push ebx
push esi
lea ebx, [eax + 0x24]
mov eax, dword [ebx]
mov ecx, eax
mov edx, eax
shr ecx, 0x1d
shr edx, 0x1e
mov esi, eax
and ecx, 1
and edx, 1
shr esi, 0x1f
test eax, 0x2000000
je 0x40db8b
mov eax, dword [ebx - 0x14]
mov ecx, dword [ebx - 0x1c]
push 0x4000
push eax
push ecx
call dword [esp + 0x4c]
jmp 0x40dbce
lea edx, [edx + ecx*2]
test eax, 0x4000000
lea ecx, [esi + edx*2]
mov esi, dword [esp + ecx*4 + 0x14]
je 0x40dba2
or esi, 0x200
mov edx, dword [ebx - 0x14]
mov ecx, edx
test ecx, ecx
jne 0x40dbbd
test al, 0x40
je 0x40dbb4
mov ecx, dword [edi + 0x20]
jmp 0x40dbbb
test al, 0x80
je 0x40dbce
mov ecx, dword [edi + 0x24]
test ecx, ecx
jbe 0x40dbce
mov ecx, dword [ebx - 0x1c]
lea eax, [esp + 0x10]
push eax
push esi
push edx
push ecx
call dword [esp + 0x44]
mov edx, dword [esp + 0x64]
xor eax, eax
inc ebp
add ebx, 0x28
mov edi, dword [edx]
mov ax, word [edi + 6]
cmp ebp, eax
jl 0x40db5a
pop esi
pop ebx
pop edi
pop ebp
add esp, 0x50
ret
Function at 0x40e3b7
Capabilities:
Access peb ldr_data

Disassembly:
push ebp
mov ebp, esp
pop ebp
mov eax, dword fs:[0x18]
mov eax, dword [eax + 0x30]
mov eax, dword [eax + 0xc]
ret
Function at 0x420d8a
Capabilities:
Hash data with crc32

Disassembly:
push ebp
mov ebp, esp
sub esp, 0xc
push reloc.WS2_32.dll_getpeername
push 0
mov ebx, dword [ebp + 8]
mov eax, dword [ebx]
test eax, eax
jne 0x420da8
mov eax, 0x50d9d8
push eax
push 1
mov ebx, 0x453720
call fcn.004530c2
add esp, 0x10
mov dword [ebp - 8], eax
cmp dword [ebp - 8], 0
jne 0x420dd2
mov eax, 0
jmp 0x420e46
push esi
push ebx
push edi
push edx
push ecx
mov eax, dword [ebp + 8]
mov eax, dword [eax]
test eax, eax
jle 0x420e33
add eax, 8
mov edi, eax
mov ebx, edi
push edi
xor al, al
pop esi
mov eax, dword [ebp + 8]
mov eax, dword [eax]
mov eax, dword [eax + 4]
mov edi, eax
push edx
cld
xor ecx, ecx
dec ecx
mov edx, ecx
xor eax, eax
xor ebx, ebx
lodsb al, byte [esi]
xor al, cl
mov cl, ch
mov ch, dl
mov dl, dh
mov dh, 8
shr bx, 1
rcr ax, 1
jae 0x420e1c
xor ax, 0x8320
xor bx, 0xedb8
dec dh
jne 0x420e0b
xor ecx, eax
xor edx, ebx
dec edi
jne 0x420dfc
not edx
not ecx
mov eax, edx
rol eax, 0x10
mov ax, cx
pop ecx
pop edx
pop edi
pop ebx
pop esi
leave
ret 4
mov esp, ebp
pop ebp
ret 4