joyce8/EMBER2024-capa huggingface dataset:
Function at 0x408641
Capabilities:
Read .ini file

Disassembly:
push 0x264
mov eax, 0x421965
call fcn.00414670
xor edi, edi
push 0x206
lea eax, [ebp - 0x21a]
mov esi, ecx
push edi
push eax
mov dword [ebp - 0x264], esi
mov ebx, edx
mov dword [ebp - 0x270], edi
mov word [ebp - 0x21c], di
call fcn.0040f690
add esp, 0xc
mov dword [ebp - method.KRegKey.virtual_0], vtable.KRegKey.0
mov dword [ebp - 0x220], 7
mov dword [ebp - 0x224], edi
mov word [ebp - 0x234], di
mov dword [ebp - 0x23c], edi
lea eax, [ebp - 0x240]
mov dword [ebp - 4], edi
call fcn.004091da
mov dword [ebp - 0x260], eax
mov eax, dword [ebx]
sub eax, 0x10
cmp dword [eax + 0xc], 1
jle 0x4086cd
push dword [eax + 4]
push ebx
call fcn.004026fd
push dword [ebx]
lea eax, [ebp - 0x25c]
call fcn.00403672
mov byte [ebp - 4], 1
cmp dword [ebp - 0x260], edi
jne 0x4086fe
mov ecx, dword [esi]
lea eax, [ebp - 0x240]
push eax
lea edx, [ebp - 0x25c]
call fcn.0040924b
test eax, eax
je 0x408708
mov dword [ebp - 0x270], 1
cmp dword [ebp - 0x244], 8
mov eax, dword [ebp - 0x258]
jae 0x40871d
lea eax, [ebp - 0x258]
push eax
push ebx
call fcn.00402329
mov eax, dword [0x42b6ec]
mov ecx, 0x42b6ec
mov dword [ebp - 0x26c], edi
call dword [eax + 0xc]
add eax, 0x10
mov dword [ebp - 0x260], eax
lea esi, [ebp - 0x260]
mov byte [ebp - 4], 2
call fcn.00408cce
cmp eax, edi
mov esi, dword [ebp - 0x260]
mov dword [ebp - 0x268], eax
je 0x408787
mov eax, dword [ebp - 0x264]
mov eax, dword [eax]
push esi
push 0x104
lea ecx, [ebp - 0x21c]
push ecx
push edi
push eax
push 0x426cd8
call dword [sym.imp.KERNEL32.dll_GetPrivateProfileStringW]
mov dword [ebp - 0x26c], eax
cmp dword [ebp - 0x270], edi
je 0x4087c5
cmp dword [ebp - 0x26c], edi
ja 0x4087ac
push dword [ebp - 0x264]
mov ecx, ebx
call fcn.00408822
mov dword [ebp - 0x268], eax
jmp 0x4087da
lea eax, [ebp - 0x21c]
push eax
push ebx
call fcn.00402329
mov dword [ebp - 0x268], 1
jmp 0x4087cd
cmp dword [ebp - 0x26c], edi
ja 0x4087da
mov edi, dword [ebp - 0x264]
call fcn.00408e9d
xor edi, edi
lea eax, [esi - 0x10]
call fcn.004028bd
cmp dword [ebp - 0x23c], edi
je 0x4087fc
push dword [ebp - 0x23c]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov dword [ebp - 0x23c], edi
push 1
xor ebx, ebx
lea esi, [ebp - 0x25c]
call fcn.0040379f
lea ecx, [ebp - 0x240]
call fcn.004091bc
mov eax, dword [ebp - 0x268]
call fcn.004146f3
ret
Function at 0x408d43
Capabilities:
Get common file path

Disassembly:
push ebp
lea ebp, [esp - 0x18c]
sub esp, 0x20c
mov eax, dword [0x42a1d4]
xor eax, ebp
mov dword [ebp + 0x188], eax
push esi
xor esi, esi
push 0x206
lea eax, [ebp - 0x7e]
push esi
push eax
mov word [ebp - 0x80], si
call fcn.0040f690
add esp, 0xc
cmp edi, esi
je 0x408ddc
push 1
push 0x23
lea eax, [ebp - 0x80]
push eax
push esi
call dword [sym.imp.SHELL32.dll_SHGetSpecialFolderPathW]
test eax, eax
mov esi, 0x104
jne 0x408db2
push esi
lea eax, [ebp - 0x80]
push eax
call dword [sym.imp.KERNEL32.dll_GetWindowsDirectoryW]
test eax, eax
je 0x408ddc
lea eax, [ebp - 0x80]
push str.All_UsersApplication_Data
push eax
call fcn.00412bd4
pop ecx
pop ecx
lea eax, [ebp - 0x80]
push str.KingsoftKIS_
push eax
call fcn.00412bd4
lea eax, [ebp - 0x80]
push eax
call fcn.00410171
add esp, 0xc
cmp eax, esi
jae 0x408ddc
lea eax, [ebp - 0x80]
push eax
push edi
call fcn.00412bd4
pop ecx
pop ecx
mov ecx, dword [ebp + 0x188]
xor ecx, ebp
pop esi
call fcn.0040f676
add ebp, 0x18c
leave
ret

Function at 0x408e9d
Capabilities:
Set registry value

Disassembly:
push 0x2c
mov eax, 0x4218cb
call fcn.00414670
xor esi, esi
mov dword [ebp - 0x34], vtable.KRegKey.0
mov dword [ebp - 0x14], 7
mov dword [ebp - 0x18], esi
mov word [ebp - 0x28], si
mov dword [ebp - 0x30], esi
lea eax, [ebp - 0x34]
mov dword [ebp - 4], esi
call fcn.004091da
cmp eax, esi
jne 0x408ef6
mov esi, dword [ebx]
mov eax, dword [edi]
push esi
mov dword [ebp - 0x38], eax
call fcn.00410171
pop ecx
lea eax, [eax + eax + 1]
push eax
push esi
push 1
push 0
push dword [ebp - 0x38]
push dword [ebp - 0x30]
call dword [sym.imp.ADVAPI32.dll_RegSetValueExW]
mov eax, dword [0x42b6ec]
mov ecx, 0x42b6ec
call dword [eax + 0xc]
add eax, 0x10
mov dword [ebp - 0x38], eax
lea esi, [ebp - 0x38]
mov byte [ebp - 4], 1
call fcn.00408cce
test eax, eax
mov esi, dword [ebp - 0x38]
je 0x408f2c
push esi
push dword [ebx]
push dword [edi]
push 0x426cd8
call dword [sym.imp.KERNEL32.dll_WritePrivateProfileStringW]
cmp dword [ebp - 0x30], 0
je 0x408f3f
push dword [ebp - 0x30]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
and dword [ebp - 0x30], 0
lea eax, [esi - 0x10]
call fcn.004028bd
lea ecx, [ebp - 0x34]
call fcn.004091bc
call fcn.004146f3
ret

Function at 0x40924b
Capabilities:
Query or enumerate registry value

Disassembly:
push ebp
lea ebp, [esp - 0x194]
sub esp, 0x214
mov eax, dword [0x42a1d4]
xor eax, ebp
mov dword [ebp + 0x190], eax
mov eax, dword [ebp + 0x19c]
push esi
push edi
mov esi, edx
lea edx, [ebp - 0x7c]
push edx
lea edx, [ebp - 0x78]
push edx
lea edx, [ebp - 0x80]
push edx
push 0
push ecx
push dword [eax + 4]
mov dword [ebp - 0x7c], 0x208
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
mov edi, eax
test edi, edi
jne 0x4092a8
lea eax, [ebp - 0x78]
push eax
call fcn.00410171
pop ecx
lea ecx, [ebp - 0x78]
push ecx
call fcn.004037e1
mov ecx, dword [ebp + 0x190]
mov eax, edi
pop edi
xor ecx, ebp
pop esi
call fcn.0040f676
add ebp, 0x194
leave
ret 4
Function at 0x409d4e
Capabilities:
Resolve dns

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x44
mov eax, dword [0x42a1d4]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
push esi
push edi
mov edi, ecx
add edi, 4
mov eax, dword [edi]
xor esi, esi
cmp eax, esi
mov dword [ebp - 0x18], edi
je 0x409d7a
push eax
call dword [sym.imp.WS2_32.dll_freeaddrinfo]
mov dword [edi], esi
push 0x20
lea eax, [ebp - 0x40]
push esi
push eax
call fcn.0040f690
add esp, 0xc
mov dword [ebp - 0x40], esi
mov dword [ebp - 0x3c], esi
mov dword [ebp - 0x38], 1
mov dword [ebp - 0x34], esi
call dword [section..data]
cmp dword [ebp + 8], esi
mov edi, dword [sym.imp.KERNEL32.dll_lstrlenW]
mov dword [ebp - 0x14], eax
mov dword [ebp - 8], esi
mov ebx, closesocket
je 0x409dd9
push dword [ebp + 8]
call edi
push esi
inc eax
cdq
push 2
push edx
push eax
call fcn.0041c820
mov ecx, eax
add eax, ebx
adc edx, esi
mov dword [ebp - 0x10], ecx
mov dword [ebp - 0x1c], edx
jne 0x409dd9
cmp eax, 0xffffffff
jbe 0x409dde
mov dword [ebp - 0xc], esi
jmp 0x409e1d
cmp ecx, 0x400
jg 0x409dfd
push ecx
call fcn.0040d5d8
test al, al
pop ecx
je 0x409dfd
mov eax, dword [ebp - 0x10]
call fcn.00417280
mov eax, esp
jmp 0x409e08
push dword [ebp - 0x10]
lea esi, [ebp - 8]
call fcn.0040d5a0
push dword [ebp - 0x14]
mov esi, eax
push dword [ebp - 0x10]
push dword [ebp + 8]
call fcn.0040d64d
mov dword [ebp - 0xc], eax
xor esi, esi
cmp dword [ebp + 0xc], esi
je 0x409e43
push dword [ebp + 0xc]
call edi
push esi
inc eax
cdq
push 2
push edx
push eax
call fcn.0041c820
mov edi, eax
add eax, ebx
adc edx, esi
mov dword [ebp - 0x1c], edx
jne 0x409e43
cmp eax, 0xffffffff
jbe 0x409e47
xor eax, eax
jmp 0x409e7e
cmp edi, 0x400
jg 0x409e65
push edi
call fcn.0040d5d8
test al, al
pop ecx
je 0x409e65
mov eax, edi
call fcn.00417280
mov eax, esp
jmp 0x409e6e
push edi
lea esi, [ebp - 8]
call fcn.0040d5a0
push dword [ebp - 0x14]
mov esi, eax
push edi
push dword [ebp + 0xc]
call fcn.0040d64d
xor esi, esi
cmp dword [ebp - 0xc], esi
je 0x409eb6
cmp eax, esi
je 0x409eb6
push dword [ebp - 0x18]
lea ecx, [ebp - 0x40]
push ecx
push eax
push dword [ebp - 0xc]
call dword [sym.imp.WS2_32.dll_getaddrinfo]
cmp dword [ebp - 8], esi
mov ebx, eax
je 0x409eb2
mov eax, dword [ebp - 8]
mov edi, dword [eax]
push eax
mov dword [ebp - 8], edi
call fcn.00410ae8
cmp edi, esi
pop ecx
jne 0x409e9f
mov eax, ebx
jmp 0x409ed9
push 8
call dword [sym.imp.WS2_32.dll_WSASetLastError]
cmp dword [ebp - 8], esi
je 0x409ed6
mov eax, dword [ebp - 8]
mov edi, dword [eax]
push eax
mov dword [ebp - 8], edi
call fcn.00410ae8
cmp edi, esi
pop ecx
jne 0x409ec3
or eax, 0xffffffff
lea esp, [ebp - 0x50]
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.0040f676
leave
ret 8
Function at 0x409f3b
Capabilities:
Initialize winsock library

Disassembly:
push ebx
push edi
lea edi, [esi + 0x10]
mov ecx, edi
call fcn.0040d541
mov ecx, edi
call fcn.0040d555
xor ebx, ebx
cmp eax, ebx
jge 0x409f5a
push eax
call fcn.004028d5
lea edi, [esi + 0x28]
mov ecx, edi
call fcn.0040d541
mov ecx, edi
call fcn.0040d555
cmp eax, ebx
jl 0x409f54
or dword [esi + 0x40], 0xffffffff
mov dword [esi], 1
mov dword [esi + 0xc], ebx
mov dword [esi + 8], ebx
mov dword [esi + 4], ebx
mov byte [esi + 0x44], bl
mov dword [esi + 0x48], ebx
mov dword [esi + 0x4c], 0x2710
cmp dword [0x42b3b8], ebx
je 0x409fa9
push 0x42b228
push 2
call dword [sym.imp.WS2_32.dll_WSAStartup]
mov dword [0x42b3b8], eax
pop edi
mov eax, esi
pop ebx
ret

Function at 0x40a0ae
Capabilities:
Connect socket

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x30
push ebx
xor ebx, ebx
cmp byte [esi + 0x44], bl
je 0x40a0c0
mov al, 1
jmp 0x40a132
mov eax, dword [esi + 0x40]
cmp eax, 0xffffffff
mov byte [ebp - 1], 1
jne 0x40a0d0
xor al, al
jmp 0x40a132
push ebx
push ebx
push ebx
push ebx
push dword [ebp + 0xc]
push dword [ebp + 8]
push eax
call dword [sym.imp.WS2_32.dll_WSAConnect]
test eax, eax
je 0x40a12c
call dword [sym.imp.WS2_32.dll_WSAGetLastError]
cmp eax, 0x2733
jne 0x40a126
push dword [esi + 0x4c]
push dword [esi + 0xc]
call dword [sym.imp.KERNEL32.dll_WaitForSingleObject]
test eax, eax
jne 0x40a129
push 0x2c
lea eax, [ebp - 0x30]
push ebx
push eax
call fcn.0040f690
add esp, 0xc
lea eax, [ebp - 0x30]
push eax
push ebx
push dword [esi + 0x40]
call dword [sym.imp.WS2_32.dll_WSAEnumNetworkEvents]
mov eax, dword [ebp - 0x1c]
cmp eax, ebx
je 0x40a12c
mov dword [esi + 0x48], eax
mov byte [ebp - 1], bl
mov al, byte [ebp - 1]
mov byte [esi + 0x44], al
pop ebx
leave
ret 8
Function at 0x40a137
Capabilities:
Send data
Send data on socket

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x18
push edi
push dword [esi + 0x4c]
mov edi, dword [sym.imp.KERNEL32.dll_WaitForSingleObject]
push dword [esi + 0xc]
call edi
test eax, eax
je 0x40a15e
mov dword [esi + 0x48], 0x2749
xor al, al
jmp 0x40a205
push ebx
xor ebx, ebx
push ebx
push dword [esi + 8]
call edi
cmp eax, 0x102
jne 0x40a17c
mov dword [esi + 0x48], 0x2734
xor al, al
jmp 0x40a204
mov eax, dword [ebp + 0x10]
mov dword [eax], ebx
lea eax, [esi + 0x28]
push eax
mov dword [ebp - 4], eax
call dword [sym.imp.KERNEL32.dll_EnterCriticalSection]
mov eax, dword [esi + 8]
push eax
mov dword [ebp - 8], eax
call dword [sym.imp.WS2_32.dll_WSAResetEvent]
push ebx
lea eax, [ebp - 0x18]
push eax
push ebx
push dword [ebp + 0x10]
push dword [ebp + 0xc]
push dword [ebp + 8]
push dword [esi + 0x40]
call dword [sym.imp.WS2_32.dll_WSASend]
test eax, eax
je 0x40a1c4
call dword [sym.imp.WS2_32.dll_WSAGetLastError]
cmp eax, 0x3e5
jne 0x40a1f6
push dword [esi + 0x4c]
push dword [esi + 8]
call edi
test eax, eax
jne 0x40a1f9
lea eax, [ebp + 0xc]
push eax
push ebx
push dword [ebp + 0x10]
lea eax, [ebp - 0x18]
push eax
push dword [esi + 0x40]
mov dword [ebp + 0xc], ebx
call dword [sym.imp.WS2_32.dll_WSAGetOverlappedResult]
test eax, eax
je 0x40a1f0
mov bl, 1
jmp 0x40a1f9
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov dword [esi + 0x48], eax
push dword [ebp - 4]
call dword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
mov al, bl
pop ebx
pop edi
leave
ret 0xc
Function at 0x40a20a
Capabilities:
Receive data
Receive data on socket

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x20
push dword [esi + 0x4c]
push dword [esi + 0xc]
call dword [sym.imp.KERNEL32.dll_WaitForSingleObject]
test eax, eax
je 0x40a22e
mov dword [esi + 0x48], 0x2749
xor al, al
jmp 0x40a2f6
push ebx
xor ebx, ebx
push ebx
push dword [esi + 4]
call dword [sym.imp.KERNEL32.dll_WaitForSingleObject]
cmp eax, 0x80
jne 0x40a250
mov dword [esi + 0x48], 0x2734
xor al, al
jmp 0x40a2f5
mov eax, dword [ebp + 8]
mov dword [ebp - 8], eax
mov eax, dword [edi]
push 0x14
mov dword [ebp - 0xc], eax
lea eax, [ebp - 0x20]
push ebx
push eax
mov dword [edi], ebx
mov dword [ebp - 4], ebx
call fcn.0040f690
lea eax, [esi + 0x10]
add esp, 0xc
push eax
mov dword [ebp + 8], eax
call dword [sym.imp.KERNEL32.dll_EnterCriticalSection]
mov eax, dword [esi + 4]
push eax
mov dword [ebp - 0x10], eax
call dword [sym.imp.WS2_32.dll_WSAResetEvent]
push ebx
lea eax, [ebp - 0x20]
push eax
lea eax, [ebp - 4]
push eax
push edi
push 1
lea eax, [ebp - 0xc]
push eax
push dword [esi + 0x40]
call dword [sym.imp.WS2_32.dll_WSARecv]
test eax, eax
je 0x40a2b3
call dword [sym.imp.WS2_32.dll_WSAGetLastError]
cmp eax, 0x3e5
jne 0x40a2e7
push dword [esi + 0x4c]
push dword [ebp - 0x10]
call dword [sym.imp.KERNEL32.dll_WaitForSingleObject]
test eax, eax
jne 0x40a2ea
lea eax, [ebp - 4]
push eax
push ebx
push edi
lea eax, [ebp - 0x20]
push eax
push dword [esi + 0x40]
mov dword [ebp - 4], ebx
call dword [sym.imp.WS2_32.dll_WSAGetOverlappedResult]
test eax, eax
je 0x40a2e1
mov bl, 1
jmp 0x40a2ea
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov dword [esi + 0x48], eax
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
mov al, bl
pop ebx
leave
ret 4

Function at 0x40d830
Capabilities:
Encode data using xor

Disassembly:
push 0xc
mov eax, 0x4213ed
call fcn.00414670
mov eax, dword [0x42b6ec]
xor ebx, ebx
mov ecx, 0x42b6ec
mov dword [ebp - 0x14], ebx
call dword [eax + 0xc]
add eax, 0x10
mov dword [ebp - 0x18], eax
mov dword [ebp - 4], ebx
call dword [section..data]
cmp dword [ebp + 0xc], ebx
jne 0x40d866
xor esi, esi
jmp 0x40d897
push dword [ebp + 0xc]
call dword [sym.imp.KERNEL32.dll_lstrlenW]
inc eax
cmp eax, 0x3fffffff
jg 0x40d862
lea edi, [eax + eax]
mov eax, edi
call fcn.00417280
mov esi, esp
push 0xfde9
push edi
push dword [ebp + 0xc]
call fcn.0040d64d
mov esi, eax
cmp esi, ebx
jne 0x40d89b
xor eax, eax
jmp 0x40d8a2
push esi
call fcn.00410df0
pop ecx
push eax
push esi
lea eax, [ebp - 0x18]
call fcn.0040e113
mov edi, dword [ebp - 0x18]
movzx eax, word [edi - 0xc]
mov dword [ebp - 0x14], eax
movzx eax, ax
xor ecx, ecx
cmp eax, ebx
jle 0x40d8c8
xor byte [ecx + edi], 0x88
inc ecx
cmp ecx, eax
jl 0x40d8bf
mov esi, dword [ebp + 8]
lea eax, [ebp - 0x14]
push eax
push 2
pop ebx
call fcn.0040d726
movzx ebx, word [ebp - 0x14]
push edi
call fcn.0040d726
lea eax, [edi - 0x10]
call fcn.004028bd
lea esp, [ebp - 0x28]
call fcn.004146f3
ret 8
Function at 0x40e6f5
Capabilities:
Encode data using xor
Hash data with crc32

Disassembly:
push ebp
mov ebp, esp
push ecx
push ebx
push esi
push edi
and dword [ebp - 4], 0
cmp dword [ebp + 0xc], 0
jne 0x40e70e
mov eax, dword [ebp - 4]
jmp 0x40e7e8
mov esi, dword [ebp + 0xc]
mov ecx, dword [ebp + 0x10]
mov eax, dword [ebp + 8]
shr ecx, 3
xor eax, 0xffffffff
test ecx, ecx
je 0x40e7c3
push ebp
mov ebp, ecx
xor edx, edx
xor ecx, ecx
nop
mov ebx, dword [esi]
add esi, 4
mov dl, bl
mov cl, bh
xor dl, al
shr eax, 8
mov edi, dword [edx*4 + 0x424808]
shr ebx, 0x10
xor eax, edi
xor cl, al
shr eax, 8
mov edi, dword [ecx*4 + 0x424808]
mov dl, bl
xor eax, edi
xor dl, al
shr eax, 8
mov edi, dword [edx*4 + 0x424808]
mov cl, bh
xor eax, edi
mov ebx, dword [esi]
xor cl, al
shr eax, 8
mov edi, dword [ecx*4 + 0x424808]
add esi, 4
xor eax, edi
mov dl, bl
mov cl, bh
xor dl, al
shr eax, 8
mov edi, dword [edx*4 + 0x424808]
shr ebx, 0x10
xor eax, edi
xor cl, al
shr eax, 8
mov edi, dword [ecx*4 + 0x424808]
mov dl, bl
xor eax, edi
xor dl, al
shr eax, 8
mov edi, dword [edx*4 + 0x424808]
mov cl, bh
xor eax, edi
xor cl, al
shr eax, 8
xor eax, dword [ecx*4 + 0x424808]
dec ebp
jne 0x40e72d
pop ebp
mov ecx, dword [ebp + 0x10]
xor edx, edx
and ecx, 7
je 0x40e7df
mov dl, byte [esi]
inc esi
xor dl, al
shr eax, 8
xor eax, dword [edx*4 + 0x424808]
dec ecx
jne 0x40e7cd
xor eax, 0xffffffff
mov dword [ebp - 4], eax
mov eax, dword [ebp - 4]
pop edi
pop esi
pop ebx
leave
ret

Function at 0x40e7ed
Capabilities:
Hash data with md5

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x68
mov eax, dword [0x42a1d4]
xor eax, ebp
mov dword [ebp - 8], eax
push esi
push 0x58
xor esi, esi
lea eax, [ebp - 0x64]
push esi
push eax
call fcn.0040f690
mov eax, dword [ebp + 8]
mov dword [ebp - 0x50], esi
mov dword [ebp - 0x54], esi
push ebx
lea esi, [ebp - 0x64]
mov dword [ebp - 0x64], 0x67452301
mov dword [ebp - 0x60], 0xefcdab89
mov dword [ebp - 0x5c], 0x98badcfe
mov dword [ebp - 0x58], 0x10325476
call fcn.0040e853
add esp, 0x10
mov edx, edi
mov ecx, esi
call fcn.0040e8e9
mov ecx, dword [ebp - 8]
xor ecx, ebp
pop esi
call fcn.0040f676
leave
ret

Function at 0x40f3e5
Capabilities:
Check os version

Disassembly:
push ebp
lea ebp, [esp - 0x78]
sub esp, 0x98
mov eax, dword [0x42a1d4]
xor eax, ebp
mov dword [ebp + 0x74], eax
push esi
mov esi, ecx
call fcn.0040f324
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.0040f690
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 0x40f434
cmp dword [ebp - 0x1c], 5
jb 0x40f44c
jmp 0x40f448
cmp dword [ebp - 0x10], 1
jne 0x40f44c
cmp dword [ebp - 0x1c], 4
ja 0x40f448
jne 0x40f44c
cmp dword [ebp - 0x18], 0
jbe 0x40f44c
mov byte [esi + 0xc], 1
lea ecx, [esi + 0x18]
mov dword [esi + 0x10], 0x800
mov dword [esi + 0x14], 0x422368
call fcn.0040d555
test eax, eax
jge 0x40f46d
mov byte [0x42c3c8], 1
mov ecx, dword [ebp + 0x74]
mov eax, esi
xor ecx, ebp
pop esi
call fcn.0040f676
add ebp, 0x78
leave
ret
Function at 0x40f676
Capabilities:
Terminate process

Disassembly:
cmp ecx, dword [0x42a1d4]
jne 0x40f680
repz ret
jmp fcn.00414781

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

Disassembly:
push esi
xor esi, esi
cmp dword [esp + 8], esi
jne 0x410975
call fcn.004131ce
mov dword [eax], esi
call fcn.004131bb
push esi
push esi
push esi
push esi
push esi
mov dword [eax], 0x16
call fcn.0041377b
add esp, 0x14
push 0x16
pop eax
pop esi
ret
test dword [esp + 0xc], 0xfffffff9
jne 0x410951
push dword [esp + 8]
call dword [sym.imp.KERNEL32.dll_GetFileAttributesW]
cmp eax, 0xffffffff
jne 0x4109a4
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
call fcn.004131e1
pop ecx
call fcn.004131bb
mov eax, dword [eax]
pop esi
ret
test al, 0x10
jne 0x4109cb
test al, 1
je 0x4109cb
test byte [esp + 0xc], 2
je 0x4109cb
call fcn.004131ce
mov dword [eax], 5
call fcn.004131bb
mov dword [eax], 0xd
jmp 0x41099b
xor eax, eax
pop esi
ret

Function at 0x41852d
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 + 0x42a928]
je 0x418548
inc edi
cmp edi, 0x17
jb 0x418539
cmp edi, 0x17
jae 0x4186c8
push ebp
push 3
call fcn.0041cffa
cmp eax, 1
pop ecx
je 0x418694
push 3
call fcn.0041cffa
test eax, eax
pop ecx
jne 0x41857c
cmp dword [0x42a1d0], 1
je 0x418694
cmp ebx, 0xfc
je 0x4186c7
push str.Runtime_Error__n_nProgram:
mov ebx, 0x314
push ebx
mov ebp, 0x42bcc0
push ebp
call fcn.00412b6f
add esp, 0xc
test eax, eax
je 0x4185b2
push esi
push esi
push esi
push esi
push esi
call fcn.0041367f
add esp, 0x14
push 0x104
mov esi, 0x42bcd9
push esi
push 0
mov byte [0x42bddd], 0
call dword [sym.imp.KERNEL32.dll_GetModuleFileNameA]
test eax, eax
jne 0x4185f6
push str._program_name_unknown_
push 0x2fb
push esi
call fcn.00412b6f
add esp, 0xc
test eax, eax
je 0x4185f6
xor eax, eax
push eax
push eax
push eax
push eax
push eax
call fcn.0041367f
add esp, 0x14
push esi
call fcn.00410df0
inc eax
cmp eax, 0x3c
pop ecx
jbe 0x41863b
push esi
call fcn.00410df0
sub esi, 0x3b
add eax, esi
push 3
mov ecx, 0x42bfd4
push 0x422adc
sub ecx, eax
push ecx
push eax
call fcn.0041c726
add esp, 0x14
test eax, eax
je 0x41863b
xor esi, esi
push esi
push esi
push esi
push esi
push esi
call fcn.0041367f
add esp, 0x14
jmp 0x41863d
xor esi, esi
push 0x422ad8
push ebx
push ebp
call fcn.0041c665
add esp, 0xc
test eax, eax
je 0x41865d
push esi
push esi
push esi
push esi
push esi
call fcn.0041367f
add esp, 0x14
push dword [edi*8 + 0x42a92c]
push ebx
push ebp
call fcn.0041c665
add esp, 0xc
test eax, eax
je 0x41867f
push esi
push esi
push esi
push esi
push esi
call fcn.0041367f
add esp, 0x14
push 0x12010
push str.Microsoft_Visual_C_Runtime_Library
push ebp
call fcn.0041ce3d
add esp, 0xc
jmp 0x4186c7
push 0xfffffffffffffff4
call dword [sym.imp.KERNEL32.dll_GetStdHandle]
mov ebp, eax
cmp ebp, esi
je 0x4186c7
cmp ebp, 0xffffffff
je 0x4186c7
push 0
lea eax, [esp + 0x14]
push eax
lea esi, [edi*8 + 0x42a92c]
push dword [esi]
call fcn.00410df0
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 0x41ce3d
Capabilities:
Link many functions at runtime

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x20
push ebx
push esi
push edi
call fcn.00416022
xor ebx, ebx
cmp dword [0x42c264], ebx
mov dword [ebp - 8], eax
mov dword [ebp - 4], ebx
mov dword [ebp - 0xc], ebx
mov dword [ebp - 0x10], ebx
jne 0x41cf13
push str.USER32.DLL
call dword [sym.imp.KERNEL32.dll_LoadLibraryA]
mov edi, eax
cmp edi, ebx
je 0x41cff3
mov esi, dword [sym.imp.KERNEL32.dll_GetProcAddress]
push str.MessageBoxA
push edi
call esi
cmp eax, ebx
je 0x41cff3
push eax
call fcn.00415fb4
mov dword [esp], str.GetActiveWindow
push edi
mov dword [0x42c264], eax
call esi
push eax
call fcn.00415fb4
mov dword [esp], str.GetLastActivePopup
push edi
mov dword [0x42c268], eax
call esi
push eax
call fcn.00415fb4
mov dword [0x42c26c], eax
lea eax, [ebp - 0xc]
push eax
call fcn.004174cb
test eax, eax
pop ecx
pop ecx
je 0x41cee1
push ebx
push ebx
push ebx
push ebx
push ebx
call fcn.0041367f
add esp, 0x14
cmp dword [ebp - 0xc], 2
jne 0x41cf13
push str.GetUserObjectInformationA
push edi
call esi
push eax
call fcn.00415fb4
cmp eax, ebx
pop ecx
mov dword [0x42c274], eax
je 0x41cf13
push str.GetProcessWindowStation
push edi
call esi
push eax
call fcn.00415fb4
pop ecx
mov dword [0x42c270], eax
mov eax, dword [0x42c270]
mov ecx, dword [ebp - 8]
cmp eax, ecx
je 0x41cf98
cmp dword [0x42c274], ecx
je 0x41cf98
push eax
call fcn.0041602b
push dword [0x42c274]
mov esi, eax
call fcn.0041602b
cmp esi, ebx
pop ecx
pop ecx
mov edi, eax
je 0x41cf98
cmp edi, ebx
je 0x41cf98
call esi
cmp eax, ebx
je 0x41cf65
lea ecx, [ebp - 0x14]
push ecx
push 0xc
lea ecx, [ebp - 0x20]
push ecx
push 1
push eax
call edi
test eax, eax
je 0x41cf65
test byte [ebp - 0x18], 1
jne 0x41cf98
lea eax, [ebp - 0x10]
push eax
call fcn.00417502
test eax, eax
pop ecx
je 0x41cf80
push ebx
push ebx
push ebx
push ebx
push ebx
call fcn.0041367f
add esp, 0x14
cmp dword [ebp - 0x10], 4
jb 0x41cf8f
or dword [ebp + 0x10], 0x200000
jmp 0x41cfd3
or dword [ebp + 0x10], 0x40000
jmp 0x41cfd3
mov eax, dword [0x42c268]
cmp eax, dword [ebp - 8]
je 0x41cfd3
push eax
call fcn.0041602b
cmp eax, ebx
pop ecx
je 0x41cfd3
call eax
cmp eax, ebx
mov dword [ebp - 4], eax
je 0x41cfd3
mov eax, dword [0x42c26c]
cmp eax, dword [ebp - 8]
je 0x41cfd3
push eax
call fcn.0041602b
cmp eax, ebx
pop ecx
je 0x41cfd3
push dword [ebp - 4]
call eax
mov dword [ebp - 4], eax
push dword [0x42c264]
call fcn.0041602b
cmp eax, ebx
pop ecx
je 0x41cff3
push dword [ebp + 0x10]
push dword [ebp + 0xc]
push dword [ebp + 8]
push dword [ebp - 4]
call eax
jmp 0x41cff5
xor eax, eax
pop edi
pop esi
pop ebx
leave
ret
Function at 0x550ed0
Capabilities:
Check if file exists
Get file attributes

Disassembly:
push dword [esp + 4]
call dword [sym.imp.KERNEL32.dll_GetFileAttributesA]
cmp eax, 0xffffffff
jne 0x550ef0
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
call fcn.005357ef
pop ecx
or eax, 0xffffffff
ret
test al, 1
je 0x550f13
test byte [esp + 8], 2
je 0x550f13
call fcn.00535862
mov dword [eax], 0xd
call fcn.0053586b
mov dword [eax], 5
jmp 0x550eec
xor eax, eax
ret
Function at 0x4068a7
Capabilities:
Encode data using xor
Hash data with crc32

Disassembly:
push ebp
mov ebp, esp
cmp dword [0x4280b4], 0
jne 0x4068e5
xor ecx, ecx
push esi
push 8
mov eax, ecx
pop esi
mov edx, eax
and dl, 1
movzx edx, dl
neg edx
sbb edx, edx
and edx, 0xedb88320
shr eax, 1
xor eax, edx
dec esi
jne 0x4068bb
mov dword [ecx*4 + 0x4280b0], eax
inc ecx
cmp ecx, 0x100
jl 0x4068b6
pop esi
cmp dword [ebp + 0x10], 0
mov eax, dword [ebp + 8]
not eax
jbe 0x406912
mov ecx, dword [ebp + 0xc]
movzx edx, byte [ecx]
dec dword [ebp + 0x10]
xor edx, eax
and edx, 0xff
shr eax, 8
xor eax, dword [edx*4 + 0x4280b0]
inc ecx
cmp dword [ebp + 0x10], 0
ja 0x4068f3
not eax
pop ebp
ret 0xc