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

Disassembly:
push ebp
mov ebp, esp
lea esp, [esp - 0x10c]
push ebx
push esi
push edi
mov esi, eax
mov ebx, edx
mov edi, ecx
mov dword [ebp - 0xc], 0
xor eax, eax
push fcn.0041ca10
push ebp
push 0x415760
push dword fs:[eax]
mov dword fs:[eax], esp
push dword [ebp + 0xc]
push edi
push ebx
call sub.kernel32.dll_FindResourceA
mov dword [esi + 0x14], eax
test eax, eax
jne 0x41cb11
cmp byte [ebp + 8], 0
je 0x41cae0
push 0xff
lea ecx, [ebp - 0x10c]
mov edx, 0xffffffff
mov eax, edi
call fcn.00405ab0
lea ecx, [ebp - 0xc]
lea eax, [ebp - 0x10c]
xor dx, dx
call fcn.00409f50
lea eax, [ebp - 0xc]
xor cl, cl
xor dx, dx
call fcn.0040aec0
mov eax, dword [ebp - 0xc]
mov dword [ebp - 4], eax
mov dword [ebp - 8], 0xb
lea eax, [ebp - 8]
push eax
push 0
mov ecx, dword [str.Resource___s__not_found]
mov eax, 0x55f68c
mov edx, 1
call fcn.0043b820
mov edx, 0x41ca6c
mov ecx, ebp
call fcn.00415620
jmp 0x41cb11
mov dword [ebp - 4], edi
mov dword [ebp - 8], 6
lea eax, [ebp - 8]
push eax
push 0
mov ecx, dword [str.Resource___s__not_found]
mov eax, 0x55f68c
mov edx, 1
call fcn.0043b820
mov edx, 0x41cae0
mov ecx, ebp
call fcn.00415620
push dword [esi + 0x14]
push ebx
call sub.kernel32.dll_LoadResource
mov dword [esi + 0x18], eax
test eax, eax
jne 0x41cbd1
cmp byte [ebp + 8], 0
je 0x41cba0
push 0xff
lea ecx, [ebp - 0x10c]
mov edx, 0xffffffff
mov eax, edi
call fcn.00405ab0
lea ecx, [ebp - 0xc]
lea eax, [ebp - 0x10c]
xor dx, dx
call fcn.00409f50
lea eax, [ebp - 0xc]
xor cl, cl
xor dx, dx
call fcn.0040aec0
mov eax, dword [ebp - 0xc]
mov dword [ebp - 4], eax
mov dword [ebp - 8], 0xb
lea eax, [ebp - 8]
push eax
push 0
mov ecx, dword [str.Resource___s__not_found]
mov eax, 0x55f68c
mov edx, 1
call fcn.0043b820
mov edx, 0x41cb2f
mov ecx, ebp
call fcn.00415620
jmp 0x41cbd1
mov dword [ebp - 4], edi
mov dword [ebp - 8], 6
lea eax, [ebp - 8]
push eax
push 0
mov ecx, dword [str.Resource___s__not_found]
mov eax, 0x55f68c
mov edx, 1
call fcn.0043b820
mov edx, 0x41cba0
mov ecx, ebp
call fcn.00415620
push dword [esi + 0x14]
push ebx
call sub.kernel32.dll_SizeofResource
mov ebx, eax
push dword [esi + 0x18]
call sub.kernel32.dll_LockResource
mov edx, eax
mov eax, esi
mov ecx, ebx
call fcn.0041bfa0
xor eax, eax
pop edx
add esp, 0xc
mov dword fs:[eax], edx
mov eax, ebp
call fcn.0041ca10
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 8

Function at 0x4225c0
Capabilities:
Suspend thread

Disassembly:
push ebp
mov ebp, esp
mov dword [eax + 0xc], 0xffffffff
push dword [eax + 4]
call sub.kernel32.dll_SuspendThread
mov esp, ebp
pop ebp
ret

Function at 0x4225e0
Capabilities:
Resume thread

Disassembly:
push ebp
mov ebp, esp
push ebx
mov ebx, eax
push dword [eax + 4]
call sub.kernel32.dll_ResumeThread
cmp eax, 1
jne 0x4225fa
mov dword [ebx + 0xc], 0
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x43d1e0
Capabilities:
Check if file exists
Get file attributes

Disassembly:
push ebp
mov ebp, esp
lea esp, [esp - 0x270]
push ebx
mov dword [ebp - 4], eax
mov byte [ebp - 8], dl
mov byte [ebp - 0x270], cl
lea eax, [ebp - 0x268]
mov edx, 0x567d28
call fcn.0040f340
xor eax, eax
push fcn.0043d1c0
push ebp
push 0x415760
push dword fs:[eax]
mov dword fs:[eax], esp
mov eax, dword [ebp - 4]
test eax, eax
jne 0x43d226
mov eax, 0x5c62e0
push eax
call sub.kernel32.dll_GetFileAttributesW
mov ebx, eax
cmp eax, 0xffffffff
jne 0x43d270
call sub.kernel32.dll_GetLastError
cmp eax, 0xa1
jbe 0x43d242
clc
jmp 0x43d249
bt dword [0x567120], eax
jb 0x43d260
mov eax, ebp
call fcn.0043d330
test al, al
setne byte [ebp - 0x26c]
jmp 0x43d310
mov byte [ebp - 0x26c], 0
jmp 0x43d310
movzx edx, byte [ebp - 8]
mov eax, ebx
and eax, 0x10
cmp eax, dword [edx*4 + 0x550150]
sete byte [ebp - 0x26c]
mov al, byte [ebp - 0x26c]
and al, byte [ebp - 0x270]
je 0x43d310
test bx, 0x400
je 0x43d310
lea ebx, [ebp - 0x268]
mov edx, 0x567d28
mov eax, ebx
call fcn.0040f420
mov edx, ebx
mov eax, dword [ebp - 4]
xor cl, cl
call fcn.0043ce40
test eax, eax
je 0x43d2d0
sub eax, 1
je 0x43d2f0
jmp 0x43d300
mov dl, byte [ebp - 8]
mov eax, dword [ebp - 0x268]
xor cl, cl
call fcn.0043d1e0
mov byte [ebp - 0x26c], al
jmp 0x43d310
mov byte [ebp - 0x26c], 1
jmp 0x43d310
mov byte [ebp - 0x26c], 0
nop word [eax + eax]
xor eax, eax
pop edx
add esp, 0xc
mov dword fs:[eax], edx
mov eax, ebp
call fcn.0043d1c0
mov al, byte [ebp - 0x26c]
pop ebx
mov esp, ebp
pop ebp
ret

Function at 0x43d690
Capabilities:
Get file attributes

Disassembly:
push ebp
mov ebp, esp
test eax, eax
jne 0x43d69c
mov eax, 0x5c62e0
push eax
call sub.kernel32.dll_GetFileAttributesW
mov esp, ebp
pop ebp
ret

Function at 0x43d6b0
Capabilities:
Set file attributes

Disassembly:
push ebp
mov ebp, esp
push ebx
push edx
test eax, eax
jne 0x43d6be
mov eax, 0x5c62e0
push eax
call sub.kernel32.dll_SetFileAttributesW
test eax, eax
je 0x43d6d0
xor ebx, ebx
jmp 0x43d6d7
call sub.kernel32.dll_GetLastError
mov ebx, eax
mov eax, ebx
pop ebx
mov esp, ebp
pop ebp
ret

Function at 0x43d760
Capabilities:
Get geographical location

Disassembly:
push ebp
mov ebp, esp
lea esp, [esp - 8]
push ebx
push esi
push edi
mov edi, eax
mov esi, edx
mov dword [ebp - 8], ecx
mov dword [ebp - 4], 0
xor eax, eax
push fcn.0043d750
push ebp
push 0x415760
push dword fs:[eax]
mov dword fs:[eax], esp
push 0
push 0
push esi
push edi
call sub.kernel32.dll_GetLocaleInfoW
mov ebx, eax
test eax, eax
jle 0x43d7d0
lea edx, [ebx - 1]
lea eax, [ebp - 4]
call fcn.0040c530
cmp ebx, 1
jle 0x43d7ba
push ebx
mov eax, dword [ebp - 4]
push eax
push esi
push edi
call sub.kernel32.dll_GetLocaleInfoW
mov ebx, eax
mov ecx, dword [ebp + 8]
mov eax, dword [ebp - 4]
xor dx, dx
call fcn.0040bc00
jmp 0x43d7db
mov eax, dword [ebp + 8]
mov edx, dword [ebp - 8]
call fcn.004095d0
xor edx, edx
pop eax
add esp, 0xc
mov dword fs:[edx], eax
mov eax, ebp
call fcn.0043d750
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 4
Function at 0x43dc50
Capabilities:
Get geographical location

Disassembly:
push ebp
mov ebp, esp
lea esp, [esp - 0x10]
push ebx
push esi
mov dword [ebp - 0x10], 0
xor eax, eax
push fcn.0043dc40
push ebp
push 0x415760
push dword fs:[eax]
mov dword fs:[eax], esp
mov ebx, 1
nop dword [eax + eax]
lea eax, [ebx*4 + 0x5c712c]
xor edx, edx
call fcn.004095d0
mov dword [ebx*4 + 0x5c714c], 0xffffffff
add ebx, 1
cmp ebx, 7
jle 0x43dc80
call sub.kernel32.dll_GetThreadLocale
mov ebx, eax
push 0xb
lea eax, [ebp - 0xc]
push eax
push 0x100b
push ebx
call sub.kernel32.dll_GetLocaleInfoA
test eax, eax
jle 0x43dd08
push 1
lea eax, [ebp - 0x10]
push eax
lea eax, [ebp - 0xc]
xor cx, cx
mov edx, 0xa
call fcn.0040a0d0
mov eax, dword [ebp - 0x10]
mov edx, 1
call fcn.00431210
mov esi, eax
sub eax, 3
cmp eax, 3
jae 0x43dd08
push 4
push esi
push ebx
mov eax, 0x43db10
push eax
call sub.kernel32.dll_EnumCalendarInfoA
push 3
push esi
push ebx
mov eax, 0x43dbb0
push eax
call sub.kernel32.dll_EnumCalendarInfoA
xor edx, edx
pop eax
add esp, 0xc
mov dword fs:[edx], eax
mov eax, ebp
call fcn.0043dc40
pop esi
pop ebx
mov esp, ebp
pop ebp
ret

Function at 0x43e460
Capabilities:
Query environment variable

Disassembly:
push ebp
mov ebp, esp
lea esp, [esp - 0x1c]
push ebx
push esi
push edi
mov dword [ebp - 0x18], edx
mov dword [ebp - 4], 0
mov dword [ebp - 8], 0
mov dword [ebp - 0x14], 0
mov dword [ebp - 0x10], 0
mov dword [ebp - 0xc], 0
xor edx, edx
push fcn.0043e430
push ebp
push 0x415760
push dword fs:[edx]
mov dword fs:[edx], esp
lea edx, [ebp - 0xc]
call fcn.00430990
mov edx, dword [ebp - 0xc]
lea eax, [ebp - 4]
call fcn.004095d0
lea eax, [ebp - 4]
mov cl, 1
mov dx, 1
call fcn.0040aec0
mov eax, dword [ebp - 0x18]
xor edx, edx
call fcn.004095d0
call sub.kernel32.dll_GetEnvironmentStringsA
mov dword [ebp - 0x1c], eax
mov ebx, eax
jmp 0x43e56e
lea ecx, [ebp - 8]
xor dx, dx
mov eax, ebx
call fcn.0040a030
mov eax, dword [ebp - 8]
test eax, eax
je 0x43e4f7
mov eax, dword [eax - 4]
mov edi, eax
lea eax, [ebp - 8]
xor cl, cl
mov dx, 1
call fcn.0040aec0
mov edx, dword [ebp - 8]
mov ecx, 1
mov al, 0x3d
call fcn.0040a890
mov esi, eax
lea eax, [ebp - 0x14]
push eax
lea ecx, [esi - 1]
mov eax, dword [ebp - 8]
mov edx, 1
call fcn.0040a720
mov eax, dword [ebp - 0x14]
lea edx, [ebp - 0x10]
call fcn.00430990
mov eax, dword [ebp - 0x10]
mov edx, dword [ebp - 4]
call fcn.0040a470
test eax, eax
jne 0x43e568
push dword [ebp - 0x18]
mov ecx, dword [ebp - 8]
test ecx, ecx
je 0x43e553
mov ecx, dword [ecx - 4]
sub ecx, esi
lea edx, [esi + 1]
mov eax, dword [ebp - 8]
call fcn.0040a720
jmp 0x43e577
lea eax, [ebx + edi]
lea ebx, [eax + 1]
cmp byte [ebx], 0
jne 0x43e4e0
push dword [ebp - 0x1c]
call sub.kernel32.dll_FreeEnvironmentStringsA
xor edx, edx
pop eax
add esp, 0xc
mov dword fs:[edx], eax
mov eax, ebp
call fcn.0043e430
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x43e5d0
Capabilities:
Query environment variable

Disassembly:
push ebp
mov ebp, esp
lea esp, [esp - 0x14]
push ebx
push esi
push edi
mov ebx, eax
mov dword [ebp - 0x14], edx
mov dword [ebp - 4], 0
mov dword [ebp - 8], 0
mov dword [ebp - 0x10], 0
mov dword [ebp - 0xc], 0
xor eax, eax
push fcn.0043e5a0
push ebp
push 0x415760
push dword fs:[eax]
mov dword fs:[eax], esp
mov eax, dword [ebp - 0x14]
xor edx, edx
call fcn.0040be50
call sub.kernel32.dll_GetEnvironmentStringsW
mov edi, eax
mov esi, eax
lea edx, [ebp - 8]
mov eax, ebx
call fcn.00439460
jmp 0x43e6a6
lea edx, [ebp - 4]
mov eax, esi
call fcn.0040bd70
mov edx, dword [ebp - 4]
mov ecx, 1
mov al, 0x3d
call fcn.0040c950
mov ebx, eax
lea eax, [ebp - 0x10]
push eax
lea ecx, [ebx - 1]
mov eax, dword [ebp - 4]
mov edx, 1
call fcn.0040c6a0
mov eax, dword [ebp - 0x10]
lea edx, [ebp - 0xc]
call fcn.00439460
mov eax, dword [ebp - 0xc]
mov edx, dword [ebp - 8]
call fcn.0040c4e0
test eax, eax
jne 0x43e698
push dword [ebp - 0x14]
mov ecx, dword [ebp - 4]
test ecx, ecx
je 0x43e686
mov ecx, dword [ecx - 4]
sub ecx, ebx
lea edx, [ebx + 1]
mov eax, dword [ebp - 4]
call fcn.0040c6a0
jmp 0x43e6ad
mov eax, esi
call fcn.00405120
shl eax, 1
add eax, esi
lea esi, [eax + 2]
cmp word [esi], 0
jne 0x43e630
push edi
call sub.kernel32.dll_FreeEnvironmentStringsW
xor eax, eax
pop edx
add esp, 0xc
mov dword fs:[eax], edx
mov eax, ebp
call fcn.0043e5a0
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret

Function at 0x43e6f0
Capabilities:
Check os version

Disassembly:
push ebp
mov ebp, esp
lea esp, [esp - 0x94]
mov dword [0x5c73f0], 0
mov dword [ebp - 0x94], 0x94
lea eax, [ebp - 0x94]
push eax
call sub.kernel32.dll_GetVersionExA
mov eax, dword [ebp - 0x84]
mov dword [0x5c6ff0], eax
mov eax, dword [ebp - 0x90]
mov dword [0x5c7000], eax
mov eax, dword [ebp - 0x8c]
mov dword [0x5c7010], eax
mov eax, dword [ebp - 0x88]
mov dword [0x5c7020], eax
mov edx, 0x5c7031
lea eax, [ebp - 0x80]
mov ecx, pe_nt_image_headers32
call fcn.00403960
lea eax, [ebp - 0x80]
call fcn.00405100
mov byte [0x5c7030], al
mov eax, 0x5671e4
push eax
call sub.kernel32.dll_GetModuleHandleA
mov dword [0x5c7400], eax
test eax, eax
je 0x43e78f
mov eax, 0x5671f0
push eax
push dword [0x5c7400]
call sub.kernel32.dll_GetProcAddress
mov dword [0x5c73f0], eax
cmp dword [0x5c7000], 6
jae 0x43e7ab
mov dword [0x54e650], 0
cmp dword [0x5c7000], 6
jb 0x43e7be
cmp dword [0x5c7010], 1
jb 0x43e7be
mov dword [0x54e660], 2
cmp dword [0x5c7400], 0
je 0x43e7e6
cmp dword [0x5c7000], 6
jb 0x43e7e6
mov eax, str.GetTimeZoneInformationForYear
push eax
push dword [0x5c7400]
call sub.kernel32.dll_GetProcAddress
mov dword [0x550160], eax
mov esp, ebp
pop ebp
ret
Function at 0x48ee00
Capabilities:
Get socket status

Disassembly:
push ebp
mov ebp, esp
lea esp, [esp - 0x110]
push ebx
push esi
push edi
mov ebx, eax
nop
mov byte [ebp - 0x110], 0
mov ecx, dword [ebx + 4]
mov eax, 0x10624dd3
mul ecx
shr edx, 6
imul edx, edx, 0x3e8
sub ecx, edx
imul ecx, ecx, 0x3e8
mov dword [ebp - 0x108], ecx
mov edx, dword [ebx + 4]
mov eax, 0x10624dd3
mul edx
shr edx, 6
mov dword [ebp - 0x10c], edx
lea edi, [ebp - 0x104]
mov esi, 0x5c7f50
mov ecx, 0x41
rep movsd dword es:[edi], dword [esi]
lea eax, [ebp - 0x104]
call fcn.00498620
mov eax, dword [ebx + 0x38]
lea edx, [ebp - 0x104]
call fcn.00498610
lea eax, [ebp - 0x10c]
push eax
lea eax, [ebp - 0x104]
push eax
lea eax, [ebp - 0x104]
push eax
lea eax, [ebp - 0x104]
push eax
mov eax, dword [ebx + 0x38]
add eax, 1
push eax
call sub.ws2_32.dll_select
test eax, eax
setg byte [ebp - 0x110]
cmp byte [ebp - 0x110], 0
jne 0x48eec1
mov eax, ebx
call fcn.0048f210
cmp byte [ebx + 0x3c], 0
jne 0x48ee10
mov al, byte [ebp - 0x110]
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret

Function at 0x498130
Capabilities:
Connect socket

Disassembly:
push ebp
mov ebp, esp
push ecx
push edx
push eax
call sub.ws2_32.dll_connect
mov esp, ebp
pop ebp
ret

Function at 0x49c6d0
Capabilities:
Hash data with md5

Disassembly:
push ebx
push esi
mov esi, eax
mov ebx, edx
xor cl, cl
mov edx, 0x78
call fcn.004039a0
mov dword [esi], ebx
mov eax, ebx
test ebx, ebx
je 0x49c760
sub eax, 1
jb 0x49c770
sub eax, 1
ja 0x49c770
cmp ebx, 1
jne 0x49c710
mov eax, 0x49c1c0
mov dword [esi + 4], eax
jmp 0x49c718
mov eax, 0x49ba80
mov dword [esi + 4], eax
mov dword [esi + 8], 0x40
mov dword [esi + 0xc], 0x67452301
mov dword [esi + 0x10], 0xefcdab89
mov dword [esi + 0x14], 0x98badcfe
mov dword [esi + 0x18], 0x10325476
mov dword [esi + 0x68], 0
mov dword [esi + 0x6c], 0
mov dword [esi + 0x20], 0
mov dword [esi + 0x24], 0
jmp 0x49c770
mov dword [esi + 8], 0x10
mov eax, 0x49c0f0
mov dword [esi + 4], eax
nop
pop esi
pop ebx
ret
Function at 0x4a2ff0
Capabilities:
Hash data with crc32

Disassembly:
push ebx
push esi
push edi
mov ebx, eax
test edx, edx
jne 0x4a3000
xor eax, eax
jmp 0x4a3127
not ebx
jmp 0x4a30f3
movzx edi, byte [edx]
xor edi, ebx
and edi, 0xff
mov esi, ebx
shr esi, 8
xor esi, dword [edi*4 + 0x553810]
mov ebx, esi
add edx, 1
movzx edi, byte [edx]
xor edi, ebx
and edi, 0xff
mov esi, ebx
shr esi, 8
xor esi, dword [edi*4 + 0x553810]
mov ebx, esi
add edx, 1
movzx edi, byte [edx]
xor edi, ebx
and edi, 0xff
mov esi, ebx
shr esi, 8
xor esi, dword [edi*4 + 0x553810]
mov ebx, esi
add edx, 1
movzx edi, byte [edx]
xor edi, ebx
and edi, 0xff
mov esi, ebx
shr esi, 8
xor esi, dword [edi*4 + 0x553810]
mov ebx, esi
add edx, 1
movzx edi, byte [edx]
xor edi, ebx
and edi, 0xff
mov esi, ebx
shr esi, 8
xor esi, dword [edi*4 + 0x553810]
mov ebx, esi
add edx, 1
movzx edi, byte [edx]
xor edi, ebx
and edi, 0xff
mov esi, ebx
shr esi, 8
xor esi, dword [edi*4 + 0x553810]
mov ebx, esi
add edx, 1
movzx edi, byte [edx]
xor edi, ebx
and edi, 0xff
mov esi, ebx
shr esi, 8
xor esi, dword [edi*4 + 0x553810]
mov ebx, esi
add edx, 1
movzx edi, byte [edx]
xor edi, ebx
and edi, 0xff
mov esi, ebx
shr esi, 8
xor esi, dword [edi*4 + 0x553810]
mov ebx, esi
add edx, 1
sub ecx, 8
cmp ecx, 8
jae 0x4a3010
jmp 0x4a311f
movzx edi, byte [edx]
xor edi, ebx
and edi, 0xff
mov esi, ebx
shr esi, 8
xor esi, dword [edi*4 + 0x553810]
mov ebx, esi
add edx, 1
sub ecx, 1
test ecx, ecx
jne 0x4a3100
not ebx
mov eax, ebx
pop edi
pop esi
pop ebx
ret

Function at 0x4f53a0
Capabilities:
Access peb ldr_data

Disassembly:
push ebp
mov ebp, esp
lea esp, [esp - 0xc]
push ebx
push esi
push edi
mov dword [ebp - 8], eax
mov dword [ebp - 4], edx
cmp edx, 1
jne 0x4f53c0
mov eax, dword [ebp - 8]
mov edx, eax
call dword [eax + 0x34]
mov dword [ebp - 8], eax
cmp dword [ebp - 8], 0
je 0x4f5482
xor eax, eax
push 0x4f5467
push ebp
push 0x415b30
push dword fs:[eax]
mov dword fs:[eax], esp
mov dword [ebp - 0xc], 0xffffffff
xor edx, edx
mov eax, dword [ebp - 8]
call fcn.0040df60
mov eax, dword [ebp - 8]
mov byte [eax + 0xc], 0
mov eax, dword [ebp - 8]
mov byte [eax + 0xe], 0
mov eax, 0x55fea8
mov edx, 1
call fcn.0041e210
mov edx, dword [ebp - 8]
mov dword [edx + 0x10], eax
mov eax, dword [ebp - 8]
call fcn.004f5630
mov edx, dword [ebp - 8]
mov dword [edx + 0x28], eax
mov eax, dword [ebp - 8]
call fcn.004f56a0
mov edx, dword [ebp - 8]
mov dword [edx + 0x38], eax
mov eax, dword [ebp - 8]
call fcn.004f5710
mov edx, dword [ebp - 8]
mov dword [edx + 0x30], eax
mov dword [ebp - 0xc], 1
cmp dword [ebp - 8], 0
setne al
cmp dword [ebp - 4], 0
setne dl
and al, dl
je 0x4f545c
mov eax, dword [ebp - 8]
mov edx, dword [eax]
call dword [edx + 0x44]
xor eax, eax
pop edx
add esp, 0xc
mov dword fs:[eax], edx
jmp 0x4f5482
mov eax, dword [ebp - 8]
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x506060
Capabilities:
Check for software breakpoints

Disassembly:
push ebx
push esi
lea esp, [esp - 4]
mov esi, eax
cmp dword [eax + 0x14], 0xca
jne 0x506097
mov eax, esi
call fcn.00509510
cmp byte [esi + 0x40], 0
je 0x506090
mov dword [esi + 0x14], 0xcf
mov byte [esp], 1
jmp 0x506147
mov dword [esi + 0x14], 0xcb
cmp dword [esi + 0x14], 0xcb
jne 0x506128
mov eax, dword [esi + 0x188]
cmp byte [eax + 0x10], 0
je 0x50611b
nop dword [eax]
cmp dword [esi + 8], 0
je 0x5060c5
mov eax, esi
mov edx, dword [esi + 8]
call dword [edx]
mov eax, esi
mov edx, dword [esi + 0x188]
call dword [edx]
mov ebx, eax
test eax, eax
jne 0x5060e0
mov byte [esp], 0
jmp 0x506147
cmp ebx, 2
je 0x50611b
cmp dword [esi + 8], 0
je 0x5060c5
cmp ebx, 3
sete al
cmp ebx, 1
sete dl
or al, dl
je 0x5060b8
mov eax, dword [esi + 8]
add dword [eax + 4], 1
mov eax, dword [esi + 8]
mov edx, dword [eax + 4]
cmp edx, dword [eax + 8]
jl 0x5060b8
mov edx, dword [esi + 8]
mov eax, dword [esi + 0x114]
add dword [edx + 8], eax
jmp 0x5060b8
mov eax, dword [esi + 0x70]
mov dword [esi + 0x78], eax
jmp 0x50613d
cmp dword [esi + 0x14], 0xcc
je 0x50613d
mov ecx, dword [esi + 0x14]
mov dl, 0x14
mov eax, esi
call fcn.004fd0d0
mov eax, esi
call fcn.00506160
mov byte [esp], al
mov al, byte [esp]
lea esp, [esp + 4]
pop esi
pop ebx
ret

Function at 0x514e30
Capabilities:
Encode data using xor

Disassembly:
push ebx
push esi
push edi
lea edi, [ecx - 1]
test edi, edi
jl 0x514e5f
mov ebx, 0xffffffff
nop
add ebx, 1
mov cl, al
xor cl, byte [edx]
movzx esi, cl
mov ecx, eax
shr ecx, 8
xor ecx, dword [esi*4 + 0x5d9b30]
mov eax, ecx
add edx, 1
cmp ebx, edi
jl 0x514e40
pop edi
pop esi
pop ebx
ret

Function at 0x526930
Capabilities:
Encode data using xor
Hash data with crc32

Disassembly:
push ebx
push esi
push edi
mov ecx, eax
mov eax, 0xffffffff
mov edx, ecx
test ecx, ecx
je 0x526943
mov edx, dword [edx - 4]
test edx, edx
jle 0x52697f
mov esi, ecx
test ecx, ecx
je 0x526950
mov esi, dword [esi - 4]
test esi, esi
jle 0x52697f
xor ebx, ebx
nop word [eax + eax]
add ebx, 1
movzx edx, byte [ecx + ebx - 1]
xor edx, eax
movzx edx, dl
mov edi, eax
shr edi, 8
xor edi, dword [edx*4 + 0x55a050]
mov eax, edi
cmp ebx, esi
jl 0x526960
not eax
pop edi
pop esi
pop ebx
ret

Function at 0x526990
Capabilities:
Hash data with crc32

Disassembly:
mov ecx, dword [eax + 0xc]
movzx edx, dl
xor edx, ecx
movzx edx, dl
shr ecx, 8
xor ecx, dword [edx*4 + 0x55a050]
mov dword [eax + 0xc], ecx
ret
Function at 0x546fc0
Capabilities:
Get common file path

Disassembly:
push ebp
mov ebp, esp
lea esp, [esp - 0xc]
mov dword [ebp - 4], eax
mov dword [ebp - 0xc], 0
xor eax, eax
push fcn.00546fb0
push ebp
push 0x415760
push dword fs:[eax]
mov dword fs:[eax], esp
mov eax, dword [ebp - 4]
xor cx, cx
mov edx, 0x104
call fcn.0040a590
mov eax, dword [ebp - 4]
mov eax, dword [eax]
test eax, eax
jne 0x547002
mov eax, 0x5c62e0
push eax
push 0x104
call sub.kernel32.dll_GetTempPathA
mov dword [ebp - 8], eax
test eax, eax
jle 0x547040
mov eax, dword [ebp - 4]
xor cx, cx
mov edx, dword [ebp - 8]
call fcn.0040a590
lea edx, [ebp - 0xc]
mov eax, dword [ebp - 4]
mov eax, dword [eax]
call fcn.0042e7d0
mov edx, dword [ebp - 0xc]
mov eax, dword [ebp - 4]
call fcn.004095d0
jmp 0x54704a
mov eax, dword [ebp - 4]
xor edx, edx
call fcn.004095d0
xor eax, eax
pop edx
add esp, 0xc
mov dword fs:[eax], edx
mov eax, ebp
call fcn.00546fb0
mov esp, ebp
pop ebp
ret

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 0x40c1d8
Capabilities:
Link many functions at runtime
Print debug messages

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x24
mov eax, dword [0x417428]
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.004079db
mov dword [ebp - 0x14], eax
cmp dword [0x811c80], esi
jne 0x40c2cb
push 0x800
push esi
push str.USER32.DLL
call dword [sym.imp.KERNEL32.dll_LoadLibraryExW]
mov edi, eax
test edi, edi
jne 0x40c258
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0x57
jne 0x40c3ab
push esi
push esi
push str.USER32.DLL
call dword [sym.imp.KERNEL32.dll_LoadLibraryExW]
mov edi, eax
test edi, edi
je 0x40c3ab
push str.MessageBoxW
push edi
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
test eax, eax
je 0x40c3ab
push eax
call ebx
push str.GetActiveWindow
push edi
mov dword [0x811c80], eax
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
push eax
call ebx
push str.GetLastActivePopup
push edi
mov dword [0x811c84], eax
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
push eax
call ebx
push str.GetUserObjectInformationW
push edi
mov dword [0x811c88], eax
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
push eax
call ebx
mov dword [0x811c90], eax
test eax, eax
je 0x40c2c8
push str.GetProcessWindowStation
push edi
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
push eax
call ebx
mov dword [0x811c8c], eax
mov edi, dword [ebp - 0x18]
call dword [sym.imp.KERNEL32.dll_IsDebuggerPresent]
test eax, eax
je 0x40c2f0
mov eax, dword [ebp - 0x1c]
test eax, eax
je 0x40c2e3
push eax
call dword [sym.imp.KERNEL32.dll_OutputDebugStringW]
cmp dword [ebp - 0x14], esi
je 0x40c305
push 4
pop eax
jmp 0x40c3ad
cmp dword [ebp - 0x14], esi
je 0x40c305
push dword [0x811c80]
call dword [sym.imp.KERNEL32.dll_DecodePointer]
push 3
jmp 0x40c2ea
mov eax, dword [0x811c8c]
mov ebx, dword [sym.imp.KERNEL32.dll_DecodePointer]
cmp eax, edi
je 0x40c363
cmp dword [0x811c90], edi
je 0x40c363
push eax
call ebx
push dword [0x811c90]
mov dword [ebp - 0x14], eax
call ebx
mov ecx, dword [ebp - 0x14]
mov dword [ebp - 0x18], eax
test ecx, ecx
je 0x40c363
test eax, eax
je 0x40c363
call ecx
test eax, eax
je 0x40c358
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 0x40c358
test byte [ebp - 8], 1
jne 0x40c363
mov edi, dword [ebp + 0x10]
or edi, 0x200000
jmp 0x40c393
mov eax, dword [0x811c84]
cmp eax, edi
je 0x40c390
push eax
call ebx
test eax, eax
je 0x40c390
call eax
mov esi, eax
test esi, esi
je 0x40c390
mov eax, dword [0x811c88]
cmp eax, edi
je 0x40c390
push eax
call ebx
test eax, eax
je 0x40c390
push esi
call eax
mov esi, eax
mov edi, dword [ebp + 0x10]
push dword [0x811c80]
call ebx
test eax, eax
je 0x40c3ab
push edi
push dword [ebp - 0x20]
push dword [ebp - 0x1c]
push esi
call eax
jmp 0x40c3ad
xor eax, eax
mov ecx, dword [ebp - 4]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.00403b45
mov esp, ebp
pop ebp
ret