joyce8/EMBER2024-capa huggingface dataset:
Function at 0x4040b6
Capabilities:
Get geographical location

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x11c
mov eax, dword [0x443570]
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 - 0x11c]
jne 0x4040f6
push 0x4361e8
push 4
push eax
call fcn.00420efe
push eax
call fcn.00401000
add esp, 0x10
jmp 0x404108
push 4
push eax
push 3
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.dll_GetLocaleInfoA]
test eax, eax
je 0x404176
push edi
call fcn.00420b9e
mov edi, dword [eax]
call fcn.00420b9e
and dword [eax], 0
lea eax, [ebp - 0x11c]
push eax
push ebx
push esi
push 0x111
mov esi, 0x112
lea eax, [ebp - 0x118]
push esi
push eax
call fcn.00420f7f
add esp, 0x18
mov ebx, eax
call fcn.00420b9e
cmp dword [eax], 0
je 0x404156
call fcn.00420b9e
push dword [eax]
call fcn.0040376b
pop ecx
jmp 0x40415d
call fcn.00420b9e
mov dword [eax], edi
cmp ebx, 0xffffffff
pop edi
je 0x404176
cmp ebx, esi
jae 0x404176
lea eax, [ebp - 0x118]
push eax
call dword [sym.imp.KERNEL32.dll_LoadLibraryA]
jmp 0x404178
xor eax, eax
mov ecx, dword [ebp - 4]
pop esi
xor ecx, ebp
pop ebx
call fcn.0041f728
leave
ret
Function at 0x4065b7
Capabilities:
Extract resource via kernel32 functions

Disassembly:
push 0x24
mov eax, 0x433a1b
call fcn.00420976
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.004081d9
mov edi, dword [eax + 0xc]
xor ebx, ebx
cmp dword [esi + 0x58], ebx
je 0x406602
call fcn.004081d9
mov edi, dword [eax + 0xc]
push 5
push dword [esi + 0x58]
push edi
call dword [sym.imp.KERNEL32.dll_FindResourceA]
push eax
push edi
call dword [sym.imp.KERNEL32.dll_LoadResource]
mov dword [ebp - 0x18], eax
cmp dword [ebp - 0x18], ebx
je 0x406613
push dword [ebp - 0x18]
call dword [sym.imp.KERNEL32.dll_LockResource]
mov dword [ebp - 0x1c], eax
cmp dword [ebp - 0x1c], ebx
jne 0x406620
or eax, 0xffffffff
jmp 0x40677c
mov ecx, esi
call fcn.004060e7
mov dword [ebp - 0x14], eax
call fcn.0040beb9
and dword [ebp - 0x28], ebx
cmp dword [ebp - 0x14], ebx
mov dword [ebp - 0x2c], ebx
mov dword [ebp - 0x24], ebx
je 0x40669e
call dword [sym.imp.USER32.dll_GetDesktopWindow]
cmp dword [ebp - 0x14], eax
je 0x40669e
push dword [ebp - 0x14]
call dword [sym.imp.USER32.dll_IsWindowEnabled]
test eax, eax
je 0x40669e
push 0
push dword [ebp - 0x14]
call dword [sym.imp.USER32.dll_EnableWindow]
mov dword [ebp - 0x2c], 1
call fcn.00404081
mov ebx, eax
test ebx, ebx
mov dword [ebp - 0x24], ebx
je 0x40669e
mov eax, dword [ebx]
mov ecx, ebx
call dword [eax + 0x120]
test eax, eax
je 0x40669e
mov ecx, ebx
call fcn.00409007
test eax, eax
je 0x40669e
push 0
mov ecx, ebx
call fcn.00409022
mov dword [ebp - 0x28], 1
and dword [ebp - 4], 0
push esi
call fcn.0040d86c
push dword [ebp - 0x14]
call fcn.0040be11
push edi
push eax
push dword [ebp - 0x1c]
mov ecx, esi
call fcn.004063bf
xor edi, edi
cmp eax, edi
je 0x4066fb
test byte [esi + 0x3c], 0x10
je 0x4066e5
push 4
pop edi
mov ecx, esi
call fcn.00408ec4
test ax, 0x100
je 0x4066db
push 5
pop edi
push edi
mov ecx, esi
call fcn.0040b9a7
xor edi, edi
cmp dword [esi + 0x20], edi
je 0x4066fb
push 0x97
push edi
push edi
push edi
push edi
push edi
mov ecx, esi
call fcn.004091f1
or dword [ebp - 4], 0xffffffff
jmp 0x406726
cmp dword [ebp - 0x28], edi
je 0x406734
push 1
mov ecx, ebx
call fcn.00409022
cmp dword [ebp - 0x2c], edi
je 0x406744
push 1
push dword [ebp - 0x14]
call dword [sym.imp.USER32.dll_EnableWindow]
cmp dword [ebp - 0x14], edi
je 0x40675d
call dword [sym.imp.USER32.dll_GetActiveWindow]
cmp eax, dword [esi + 0x20]
jne 0x40675d
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.00406121
cmp dword [esi + 0x58], edi
je 0x406779
push dword [ebp - 0x18]
call dword [sym.imp.KERNEL32.dll_FreeResource]
mov eax, dword [esi + 0x44]
call fcn.00420a1b
ret
Function at 0x406f55
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 0x406f9b
call fcn.004081d9
mov esi, dword [eax + 0xc]
push 0xf0
push dword [ebp + 0xc]
push esi
call dword [sym.imp.KERNEL32.dll_FindResourceA]
test eax, eax
je 0x406f9b
push eax
push esi
call dword [sym.imp.KERNEL32.dll_LoadResource]
test eax, eax
mov dword [ebp - 4], eax
je 0x406fde
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 0x406fc7
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 0x406fc7
push dword [ebp - 4]
call dword [sym.imp.KERNEL32.dll_FreeResource]
cmp dword [esi + 0x4c], 0
je 0x406fdb
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 0x40e989
Capabilities:
Extract resource via kernel32 functions

Disassembly:
push ebx
push ebp
push esi
push edi
xor edi, edi
xor ebx, ebx
cmp dword [esp + 0x14], edi
mov ebp, ecx
je 0x40e9cc
call fcn.004081d9
mov esi, dword [eax + 0xc]
push 0xf0
push dword [esp + 0x18]
push esi
call dword [sym.imp.KERNEL32.dll_FindResourceA]
test eax, eax
je 0x40e9cc
push eax
push esi
call dword [sym.imp.KERNEL32.dll_LoadResource]
mov edi, eax
test edi, edi
je 0x40e9e7
push edi
call dword [sym.imp.KERNEL32.dll_LockResource]
mov ebx, eax
push ebx
mov ecx, ebp
call fcn.0040e540
test ebx, ebx
mov esi, eax
je 0x40e9e5
test edi, edi
je 0x40e9e5
push edi
call dword [sym.imp.KERNEL32.dll_FreeResource]
mov eax, esi
pop edi
pop esi
pop ebp
pop ebx
ret 4

Function at 0x40f953
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 0x40f981
push dword [esi]
call dword [sym.imp.KERNEL32.dll_TlsGetValue]
test eax, eax
je 0x40f99f
push dword [esp + 0xc]
mov ecx, esi
push eax
call fcn.0040f8bd
jmp 0x40f99f
mov eax, dword [esi + 0x14]
test eax, eax
je 0x40f99f
push edi
push dword [esp + 0x10]
mov edi, dword [eax + 4]
push eax
mov ecx, esi
call fcn.0040f8bd
test edi, edi
mov eax, edi
jne 0x40f989
pop edi
push ebx
call dword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
pop esi
pop ebx
ret 8
mov ecx, dword [0x446534]
test ecx, ecx
je 0x40fa62
jmp 0x40f952
ret 8

Function at 0x41f728
Capabilities:
Terminate process

Disassembly:
cmp ecx, dword [0x443570]
jne 0x41f732
repz ret
jmp fcn.004264ac
Function at 0x424e53
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 + 0x443858]
je 0x424e6e
inc edi
cmp edi, 0x17
jb 0x424e5f
cmp edi, 0x17
jae 0x424fee
push ebp
push 3
call fcn.0042cd17
cmp eax, 1
pop ecx
je 0x424fba
push 3
call fcn.0042cd17
test eax, eax
pop ecx
jne 0x424ea2
cmp dword [0x443580], 1
je 0x424fba
cmp ebx, 0xfc
je 0x424fed
push str.Runtime_Error__n_nProgram:
mov ebx, 0x314
push ebx
mov ebp, 0x4469f0
push ebp
call fcn.00420efe
add esp, 0xc
test eax, eax
je 0x424ed8
push esi
push esi
push esi
push esi
push esi
call fcn.00425062
add esp, 0x14
push 0x104
mov esi, 0x446a09
push esi
push 0
mov byte [0x446b0d], 0
call dword [sym.imp.KERNEL32.dll_GetModuleFileNameA]
test eax, eax
jne 0x424f1c
push str._program_name_unknown_
push 0x2fb
push esi
call fcn.00420efe
add esp, 0xc
test eax, eax
je 0x424f1c
xor eax, eax
push eax
push eax
push eax
push eax
push eax
call fcn.00425062
add esp, 0x14
push esi
call fcn.00420a80
inc eax
cmp eax, 0x3c
pop ecx
jbe 0x424f61
push esi
call fcn.00420a80
sub esi, 0x3b
add eax, esi
push 3
mov ecx, 0x446d04
push 0x439084
sub ecx, eax
push ecx
push eax
call fcn.00422950
add esp, 0x14
test eax, eax
je 0x424f61
xor esi, esi
push esi
push esi
push esi
push esi
push esi
call fcn.00425062
add esp, 0x14
jmp 0x424f63
xor esi, esi
push 0x439080
push ebx
push ebp
call fcn.00421025
add esp, 0xc
test eax, eax
je 0x424f83
push esi
push esi
push esi
push esi
push esi
call fcn.00425062
add esp, 0x14
push dword [edi*8 + 0x44385c]
push ebx
push ebp
call fcn.00421025
add esp, 0xc
test eax, eax
je 0x424fa5
push esi
push esi
push esi
push esi
push esi
call fcn.00425062
add esp, 0x14
push 0x12010
push str.Microsoft_Visual_C_Runtime_Library
push ebp
call fcn.0042cb5a
add esp, 0xc
jmp 0x424fed
push 0xfffffffffffffff4
call dword [sym.imp.KERNEL32.dll_GetStdHandle]
mov ebp, eax
cmp ebp, esi
je 0x424fed
cmp ebp, 0xffffffff
je 0x424fed
push 0
lea eax, [esp + 0x14]
push eax
lea esi, [edi*8 + 0x44385c]
push dword [esi]
call fcn.00420a80
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 0x42cb5a
Capabilities:
Link many functions at runtime

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x20
push ebx
push esi
push edi
call fcn.00425ee6
xor ebx, ebx
cmp dword [0x4472c0], ebx
mov dword [ebp - 8], eax
mov dword [ebp - 4], ebx
mov dword [ebp - 0xc], ebx
mov dword [ebp - 0x10], ebx
jne 0x42cc30
push str.USER32.DLL
call dword [sym.imp.KERNEL32.dll_LoadLibraryA]
mov edi, eax
cmp edi, ebx
je 0x42cd10
mov esi, dword [sym.imp.KERNEL32.dll_GetProcAddress]
push 0x439ac0
push edi
call esi
cmp eax, ebx
je 0x42cd10
push eax
call fcn.00425e78
mov dword [esp], 0x439ab0
push edi
mov dword [0x4472c0], eax
call esi
push eax
call fcn.00425e78
mov dword [esp], 0x439a9c
push edi
mov dword [0x4472c4], eax
call esi
push eax
call fcn.00425e78
mov dword [0x4472c8], eax
lea eax, [ebp - 0xc]
push eax
call fcn.00420c8b
test eax, eax
pop ecx
pop ecx
je 0x42cbfe
push ebx
push ebx
push ebx
push ebx
push ebx
call fcn.00425062
add esp, 0x14
cmp dword [ebp - 0xc], 2
jne 0x42cc30
push str.GetUserObjectInformationA
push edi
call esi
push eax
call fcn.00425e78
cmp eax, ebx
pop ecx
mov dword [0x4472d0], eax
je 0x42cc30
push str.GetProcessWindowStation
push edi
call esi
push eax
call fcn.00425e78
pop ecx
mov dword [0x4472cc], eax
mov eax, dword [0x4472cc]
mov ecx, dword [ebp - 8]
cmp eax, ecx
je 0x42ccb5
cmp dword [0x4472d0], ecx
je 0x42ccb5
push eax
call fcn.00425eef
push dword [0x4472d0]
mov esi, eax
call fcn.00425eef
cmp esi, ebx
pop ecx
pop ecx
mov edi, eax
je 0x42ccb5
cmp edi, ebx
je 0x42ccb5
call esi
cmp eax, ebx
je 0x42cc82
lea ecx, [ebp - 0x14]
push ecx
push 0xc
lea ecx, [ebp - 0x20]
push ecx
push 1
push eax
call edi
test eax, eax
je 0x42cc82
test byte [ebp - 0x18], 1
jne 0x42ccb5
lea eax, [ebp - 0x10]
push eax
call fcn.00420cc2
test eax, eax
pop ecx
je 0x42cc9d
push ebx
push ebx
push ebx
push ebx
push ebx
call fcn.00425062
add esp, 0x14
cmp dword [ebp - 0x10], 4
jb 0x42ccac
or dword [ebp + 0x10], 0x200000
jmp 0x42ccf0
or dword [ebp + 0x10], 0x40000
jmp 0x42ccf0
mov eax, dword [0x4472c4]
cmp eax, dword [ebp - 8]
je 0x42ccf0
push eax
call fcn.00425eef
cmp eax, ebx
pop ecx
je 0x42ccf0
call eax
cmp eax, ebx
mov dword [ebp - 4], eax
je 0x42ccf0
mov eax, dword [0x4472c8]
cmp eax, dword [ebp - 8]
je 0x42ccf0
push eax
call fcn.00425eef
cmp eax, ebx
pop ecx
je 0x42ccf0
push dword [ebp - 4]
call eax
mov dword [ebp - 4], eax
push dword [0x4472c0]
call fcn.00425eef
cmp eax, ebx
pop ecx
je 0x42cd10
push dword [ebp + 0x10]
push dword [ebp + 0xc]
push dword [ebp + 8]
push dword [ebp - 4]
call eax
jmp 0x42cd12
xor eax, eax
pop edi
pop esi
pop ebx
leave
ret
Function at 0x4330f4
Capabilities:
Check os version

Disassembly:
push ebp
lea ebp, [esp - 0x78]
sub esp, 0x98
mov eax, dword [0x443570]
xor eax, ebp
mov dword [ebp + 0x74], eax
push esi
mov esi, ecx
call fcn.00433089
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.00420630
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 0x433143
cmp dword [ebp - 0x1c], 5
jb 0x43315b
jmp 0x433157
cmp dword [ebp - 0x10], 1
jne 0x43315b
cmp dword [ebp - 0x1c], 4
ja 0x433157
jne 0x43315b
cmp dword [ebp - 0x18], 0
jbe 0x43315b
mov byte [esi + 0xc], 1
lea ecx, [esi + 0x18]
mov dword [esi + 0x10], 0x800
mov dword [esi + 0x14], 0x43ac98
call fcn.00432f5d
test eax, eax
jge 0x43317c
mov byte [0x444960], 1
mov ecx, dword [ebp + 0x74]
mov eax, esi
xor ecx, ebp
pop esi
call fcn.0041f728
add ebp, 0x78
leave
ret
Function at 0x401f10
Capabilities:
Get common file path

Disassembly:
sub esp, 0x550
and dword [esp + 0xc], 0
push ebx
mov ebx, ecx
lea ecx, [esp + 0x10]
push ebp
push esi
mov esi, edx
mov dword [esp + 0x2c], ebx
mov eax, dword [ebx]
mov dword [esp + 0x20], eax
push edi
mov eax, dword [esi]
mov edi, dword [ebx + 4]
mov dword [esp + 0x34], eax
mov eax, dword [esi + 4]
mov dword [esp + 0x38], eax
call fcn.00401db6
mov ebp, dword [esp + 0x1c]
mov eax, dword [esi + 0xc]
add ebp, 0x23f
mov ebx, dword [esi + 8]
push 0x20
mov dword [esp + 0x20], ebp
mov dword [esp + 0x30], eax
pop esi
mov dword [esp + 0x28], 2
add dword [esp + 0x28], 3
mov edx, dword [esp + 0x24]
mov eax, edx
shl eax, 4
add eax, ebx
mov dword [esp + 0x18], 0xedeb2e40
cmp dword [0x2d06084], 0xfa9
mov dword [esp + 0x10], eax
mov eax, dword [0x2d060c8]
cmove eax, dword [esp + 0x18]
and dword [esp + 0x18], 0
cmp dword [0x2d06084], 0x3eb
mov dword [0x2d060c8], eax
mov eax, dword [0x2d060d0]
cmove eax, dword [esp + 0x18]
mov dword [0x2d060d0], eax
lea eax, [edx + ebp]
mov dword [esp + 0x18], eax
mov eax, dword [esp + 0x24]
shr eax, 5
mov dword [esp + 0x14], eax
mov ecx, dword [esp + 0x10]
xor ebp, ebp
mov eax, dword [esp + 0x14]
xor ecx, dword [esp + 0x18]
add eax, dword [esp + 0x2c]
xor eax, ecx
mov dword [0x2d060cc], 0xf4ea3dee
cmp dword [0x2d06084], 0x213
mov dword [esp + 0x10], ecx
mov dword [esp + 0x14], eax
jne 0x402043
push ebp
push ebp
push ebp
lea eax, [esp + 0x50]
push eax
call dword [sym.imp.KERNEL32.dll_VerifyVersionInfoW]
push ebp
push ebp
call dword [sym.imp.KERNEL32.dll_SetVolumeMountPointW]
push ebp
lea eax, [esp + 0x44]
push eax
call dword [sym.imp.KERNEL32.dll_InterlockedExchange]
lea eax, [esp + 0x160]
push eax
push ebp
call dword [sym.imp.KERNEL32.dll_GetTempPathA]
push 0x410288
push ebp
push ebp
push ebp
call dword [sym.imp.KERNEL32.dll_SetCalendarInfoW]
mov eax, dword [esp + 0x14]
sub edi, eax
mov eax, edi
mov dword [esp + 0x3c], edi
shl eax, 4
mov dword [esp + 0x10], eax
mov eax, dword [esp + 0x34]
add dword [esp + 0x10], eax
mov dword [esp + 0x20], ebp
mov eax, dword [esp + 0x1c]
add dword [esp + 0x20], eax
mov eax, dword [esp + 0x3c]
nop
add dword [esp + 0x20], eax
mov eax, dword [esp + 0x20]
mov dword [esp + 0x18], eax
mov ecx, dword [esp + 0x28]
mov eax, edi
shr eax, cl
mov dword [esp + 0x14], eax
mov eax, dword [esp + 0x38]
add dword [esp + 0x14], eax
mov eax, dword [esp + 0x14]
xor eax, dword [esp + 0x18]
xor dword [esp + 0x10], eax
mov eax, dword [esp + 0x10]
sub dword [esp + 0x24], eax
mov edx, 0x9e3779b9
lea ecx, [esp + 0x1c]
call fcn.00401f07
dec esi
je 0x4020b9
mov ebp, dword [esp + 0x1c]
jmp 0x401f61
mov ebx, dword [esp + 0x30]
mov eax, dword [esp + 0x24]
mov dword [ebx + 4], edi
pop edi
pop esi
pop ebp
mov dword [ebx], eax
pop ebx
add esp, 0x550
ret
Function at 0x40c134
Capabilities:
Link many functions at runtime
Print debug messages

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x24
mov eax, dword [0x4aa690]
xor eax, ebp
mov dword [ebp - 4], eax
mov eax, dword [ebp + 8]
push ebx
mov ebx, dword [sym.imp.KERNEL32.dll_EncodePointer]
push esi
push edi
mov dword [ebp - 0x1c], eax
xor esi, esi
mov eax, dword [ebp + 0xc]
push esi
mov dword [ebp - 0x20], eax
call ebx
mov edi, eax
mov dword [ebp - 0x18], edi
call fcn.00409056
mov dword [ebp - 0x14], eax
cmp dword [0x2d06fb8], esi
jne 0x40c227
push 0x800
push esi
push str.USER32.DLL
call dword [sym.imp.KERNEL32.dll_LoadLibraryExW]
mov edi, eax
test edi, edi
jne 0x40c1b4
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0x57
jne 0x40c307
push esi
push esi
push str.USER32.DLL
call dword [sym.imp.KERNEL32.dll_LoadLibraryExW]
mov edi, eax
test edi, edi
je 0x40c307
push str.MessageBoxW
push edi
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
test eax, eax
je 0x40c307
push eax
call ebx
push str.GetActiveWindow
push edi
mov dword [0x2d06fb8], eax
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
push eax
call ebx
push str.GetLastActivePopup
push edi
mov dword [0x2d06fbc], eax
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
push eax
call ebx
push str.GetUserObjectInformationW
push edi
mov dword [0x2d06fc0], eax
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
push eax
call ebx
mov dword [0x2d06fc8], eax
test eax, eax
je 0x40c224
push str.GetProcessWindowStation
push edi
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
push eax
call ebx
mov dword [0x2d06fc4], eax
mov edi, dword [ebp - 0x18]
call dword [sym.imp.KERNEL32.dll_IsDebuggerPresent]
test eax, eax
je 0x40c24c
mov eax, dword [ebp - 0x1c]
test eax, eax
je 0x40c23f
push eax
call dword [sym.imp.KERNEL32.dll_OutputDebugStringW]
cmp dword [ebp - 0x14], esi
je 0x40c261
push 4
pop eax
jmp 0x40c309
cmp dword [ebp - 0x14], esi
je 0x40c261
push dword [0x2d06fb8]
call dword [sym.imp.KERNEL32.dll_DecodePointer]
push 3
jmp 0x40c246
mov eax, dword [0x2d06fc4]
mov ebx, dword [sym.imp.KERNEL32.dll_DecodePointer]
cmp eax, edi
je 0x40c2bf
cmp dword [0x2d06fc8], edi
je 0x40c2bf
push eax
call ebx
push dword [0x2d06fc8]
mov dword [ebp - 0x14], eax
call ebx
mov ecx, dword [ebp - 0x14]
mov dword [ebp - 0x18], eax
test ecx, ecx
je 0x40c2bf
test eax, eax
je 0x40c2bf
call ecx
test eax, eax
je 0x40c2b4
lea ecx, [ebp - 0x24]
push ecx
push 0xc
lea ecx, [ebp - 0x10]
push ecx
push 1
push eax
call dword [ebp - 0x18]
test eax, eax
je 0x40c2b4
test byte [ebp - 8], 1
jne 0x40c2bf
mov edi, dword [ebp + 0x10]
or edi, 0x200000
jmp 0x40c2ef
mov eax, dword [0x2d06fbc]
cmp eax, edi
je 0x40c2ec
push eax
call ebx
test eax, eax
je 0x40c2ec
call eax
mov esi, eax
test esi, esi
je 0x40c2ec
mov eax, dword [0x2d06fc0]
cmp eax, edi
je 0x40c2ec
push eax
call ebx
test eax, eax
je 0x40c2ec
push esi
call eax
mov esi, eax
mov edi, dword [ebp + 0x10]
push dword [0x2d06fb8]
call ebx
test eax, eax
je 0x40c307
push edi
push dword [ebp - 0x20]
push dword [ebp - 0x1c]
push esi
call eax
jmp 0x40c309
xor eax, eax
mov ecx, dword [ebp - 4]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.004044fe
mov esp, ebp
pop ebp
ret
Function at 0x401ea2
Capabilities:
Terminate process

Disassembly:
cmp ecx, dword [0x410284]
jne 0x401eac
repz ret
jmp fcn.00403e53

Function at 0x409420
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x34
pushal
call 0x40942f
pop dword [ebp - 0x24]
mov eax, 0x40942f
sub dword [ebp - 0x24], eax
mov dword [ebp - 0x34], 0x44e5786d
sub dword [ebp - 0x34], 0xf6933322
mov dword [ebp - 0x30], 0x9abb9e79
add dword [ebp - 0x30], 0x9777adcc
mov dword [ebp - 0x2c], 0x2bd4a496
sub dword [ebp - 0x2c], 0xdf886068
mov dword [ebp - 0x28], 0x80cdcfe1
add dword [ebp - 0x28], 0x7f32301f
lea eax, [ebp - 0x34]
push eax
mov eax, sym.imp.kernel32.dll_LoadLibraryA
add eax, dword [ebp - 0x24]
call dword [eax]
mov dword [ebp - 0x34], 0x805f7ae4
add dword [ebp - 0x34], 0xf412ee72
mov dword [ebp - 0x30], 0x1c47dd7
add dword [ebp - 0x30], 0x3fa7e39e
mov dword [ebp - 0x2c], 0x2d48f398
add dword [ebp - 0x2c], 0x362678d4
mov dword [ebp - 0x28], 0xa984c7b8
sub dword [ebp - 0x28], 0xa984c7b8
lea ebx, [ebp - 0x34]
push ebx
push eax
mov eax, 0xfd8d325e
add eax, 0x2b39dee
add eax, dword [ebp - 0x24]
call dword [eax]
push 0x40
push 0x1000
push 0x37366
push 0
call eax
mov ecx, 0x3eb2
xor ebx, ebx
add ebx, eax
mov esi, 0x45f4bd8b
sub esi, 0x45b30d8b
add esi, dword [ebp - 0x24]
mov edx, 0xfc15e1ef
sub edx, 0x89d75afa
add dword [ebp - 0x20], 0x2461ed75
mov edi, dword [esi]
add dword [ebp - 0x1c], edi
sub edi, edx
xor dword [ebp - 8], 0xc8becbdd
mov dword [ebx], edi
mov dword [ebp - 8], 0x3dacfbe3
add ebx, 4
add esi, 0x2df56853
sub esi, 0x2df5684f
loop 0x409543
add eax, 0xed9b
xor ebx, ebx
add ebx, eax
add eax, 5
mov ecx, 0x6d69a499
sub ecx, 0x6d29a499
add ecx, dword [ebp - 0x24]
call ebx
leave
ret
Function at 0x41a6a8
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 0x41a6c6
mov eax, 0x685ee5
push eax
push 1
mov ebx, 0x4c0790
call fcn.004c00a2
add esp, 0x10
mov dword [ebp - 8], eax
cmp dword [ebp - 8], 0
jne 0x41a6f0
mov eax, 0
jmp 0x41a764
push esi
push ebx
push edi
push edx
push ecx
mov eax, dword [ebp + 8]
mov eax, dword [eax]
test eax, eax
jle 0x41a751
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 0x41a73a
xor ax, 0x8320
xor bx, 0xedb8
dec dh
jne 0x41a729
xor ecx, eax
xor edx, ebx
dec edi
jne 0x41a71a
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
Function at 0x422fab
Capabilities:
Contain obfuscated stackstrings
Decode data using base64 via vbmi lookup table
Encode data using base64
Resolve function by parsing pe exports

Disassembly:
push ebp
mov ebp, esp
pop ebp
sub esp, 0x84
push ebx
mov ebx, dword [esp + 0x98]
push esi
xor ecx, ecx
xor esi, esi
xor edx, edx
push edi
mov dword [esp + 0xc], 0x7f7f7f7f
mov dword [esp + 0x10], 0x7f7f7f7f
mov dword [esp + 0x14], 0x7f7f7f7f
mov dword [esp + 0x18], 0x7f7f7f7f
mov dword [esp + 0x1c], 0x7f7f7f7f
mov dword [esp + 0x20], 0x7f7f7f7f
mov dword [esp + 0x24], 0x7f7f7f7f
mov dword [esp + 0x28], 0x7f7f7f7f
mov dword [esp + 0x2c], 0x7f7f7f7f
mov dword [esp + 0x30], 0x7f7f7f7f
mov dword [esp + 0x34], 0x3e7f7f7f
mov dword [esp + 0x38], 0x3f7f7f7f
mov dword [esp + 0x3c], 0x37363534
mov dword [esp + 0x40], 0x3b3a3938
mov dword [esp + 0x44], 0x7f7f3d3c
mov dword [esp + 0x48], 0x7f7f407f
mov dword [esp + 0x4c], 0x201007f
mov dword [esp + 0x50], 0x6050403
mov dword [esp + 0x54], 0xa090807
mov dword [esp + 0x58], 0xe0d0c0b
mov dword [esp + 0x5c], 0x1211100f
mov dword [esp + 0x60], 0x16151413
mov dword [esp + 0x64], 0x7f191817
mov dword [esp + 0x68], 0x7f7f7f7f
mov dword [esp + 0x6c], 0x1c1b1a7f
mov dword [esp + 0x70], 0x201f1e1d
mov dword [esp + 0x74], 0x24232221
mov dword [esp + 0x78], 0x28272625
mov dword [esp + 0x7c], 0x2c2b2a29
mov dword [esp + 0x80], 0x302f2e2d
mov dword [esp + 0x84], 0x7f333231
mov dword [esp + 0x88], 0x7f7f7f7f
test ebx, ebx
je 0x4231f8
mov edi, dword [esp + 0x9c]
mov edi, edi
mov eax, ebx
sub eax, edx
cmp eax, 2
jb 0x4230f5
cmp byte [edx + edi], 0xd
jne 0x4230f5
cmp byte [edx + edi + 1], 0xa
je 0x42312e
mov al, byte [edx + edi]
cmp al, 0xa
je 0x42312e
cmp al, 0x3d
jne 0x42310a
inc ecx
cmp ecx, 2
ja 0x423206
cmp al, 0x7f
ja 0x423206
movzx eax, al
mov al, byte [esp + eax + 0xc]
cmp al, 0x7f
je 0x423206
cmp al, 0x40
jae 0x42312d
test ecx, ecx
jne 0x423206
inc esi
inc edx
cmp edx, ebx
jb 0x4230df
test esi, esi
je 0x4231f8
mov ecx, dword [esp + 0x98]
lea eax, [esi + esi*2]
mov esi, dword [esp + 0x94]
lea eax, [eax*2 + 7]
shr eax, 3
test esi, esi
je 0x423217
cmp dword [ecx], eax
jb 0x423217
xor eax, eax
xor ebx, ebx
push ebp
mov ebp, 3
mov dword [esp + 0x90], eax
test edx, edx
je 0x4231e7
lea esp, [esp]
mov al, byte [edi]
cmp al, 0xd
je 0x4231e3
cmp al, 0xa
je 0x4231e3
movzx eax, al
mov cl, byte [esp + eax + 0x10]
xor eax, eax
cmp cl, 0x40
sete al
shl ebx, 6
sub ebp, eax
movzx eax, cl
mov ecx, dword [esp + 0x90]
and eax, 0x3f
inc ecx
or ebx, eax
mov dword [esp + 0x90], ecx
cmp ecx, 4
jne 0x4231e3
xor eax, eax
mov dword [esp + 0x90], eax
test ebp, ebp
je 0x4231ce
mov eax, ebx
shr eax, 0x10
mov byte [esi], al
inc esi
cmp ebp, 1
jbe 0x4231db
mov eax, ebx
shr eax, 8
mov byte [esi], al
inc esi
cmp ebp, 2
jbe 0x4231e3
mov byte [esi], bl
inc esi
inc edi
dec edx
jne 0x42317f
sub esi, dword [esp + 0x98]
mov eax, dword [esp + 0x9c]
pop ebp
mov dword [eax], esi
pop edi
pop esi
xor eax, eax
pop ebx
add esp, 0x84
ret 0x10
pop edi
pop esi
mov eax, 0xfffffffe
pop ebx
add esp, 0x84
ret 0x10
pop edi
pop esi
mov dword [ecx], eax
or eax, 0xffffffff
pop ebx
add esp, 0x84
ret 0x10