joyce8/EMBER2024-capa huggingface dataset:
Function at 0x402450
Capabilities:
Get file size
Read file on windows

Disassembly:
push ebp
mov ebp, esp
push ebx
push edi
push esi
mov eax, 0x10014
call fcn.0041f760
mov edx, dword [ebp + 0x10]
mov eax, dword [ebp + 8]
mov ecx, dword [0x434040]
xor ecx, ebp
mov dword [ebp - 0x10], ecx
xor ebx, ebx
mov dword [edx], ebx
sub esp, 0x1c
mov dword [esp + 0x18], ebx
mov dword [esp + 0x14], ebx
movaps xmm0, xmmword [0x42c760]
movups xmmword [esp + 4], xmm0
mov dword [esp], eax
call dword [sym.imp.KERNEL32.dll_CreateFileW]
mov dword [ebp - 0x1001c], eax
cmp eax, 0xffffffff
je 0x4025c2
mov eax, dword [ebp + 0xc]
sub esp, 0x1c
xor ebx, ebx
mov dword [esp + 0x18], ebx
mov dword [esp + 0x14], ebx
movaps xmm0, xmmword [0x42c760]
movups xmmword [esp + 4], xmm0
mov dword [esp], eax
call dword [sym.imp.KERNEL32.dll_CreateFileW]
mov esi, eax
cmp eax, 0xffffffff
je 0x4025b3
xor ebx, ebx
mov edi, dword [sym.imp.KERNEL32.dll_GetFileSize]
push ebx
push dword [ebp - 0x1001c]
call edi
mov ecx, edi
mov edi, eax
push ebx
mov dword [ebp - 0x10018], esi
push esi
call ecx
cmp edi, 0xffffffff
je 0x4025a8
cmp eax, 0xffffffff
mov esi, dword [ebp - 0x10018]
je 0x4025b3
cmp edi, eax
jne 0x4025b0
mov dword [ebp - 0x10020], edi
cmp edi, 0x8000
jae 0x4025f1
mov edi, dword [ebp - 0x10020]
and edi, 0x7fff
je 0x40259c
lea ecx, [ebp - 0x10014]
lea esi, [ebp - 0x8010]
push 0
push ecx
push edi
push esi
push dword [ebp - 0x1001c]
call dword [sym.imp.KERNEL32.dll_ReadFile]
xor ebx, ebx
test eax, eax
je 0x4025a8
cmp dword [ebp - 0x10014], edi
jne 0x4025a8
lea edx, [ebp - 0x10010]
push 0
lea ecx, [ebp - 0x10014]
push ecx
push edi
push edx
push dword [ebp - 0x10018]
call dword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
je 0x4025a8
cmp dword [ebp - 0x10014], edi
jne 0x4025a8
push edi
lea eax, [ebp - 0x10010]
push eax
push esi
call fcn.0040b5ee
add esp, 0xc
test eax, eax
jne 0x4025a5
mov eax, dword [ebp + 0x10]
mov dword [eax], 1
xor ebx, ebx
inc ebx
mov esi, dword [ebp - 0x10018]
jmp 0x4025b3
xor ebx, ebx
inc ebx
mov eax, esi
inc eax
cmp eax, 2
jb 0x4025c2
push esi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov eax, dword [ebp - 0x1001c]
inc eax
cmp eax, 2
jb 0x4025da
push dword [ebp - 0x1001c]
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.0040abc5
mov eax, ebx
add esp, 0x10014
pop esi
pop edi
pop ebx
pop ebp
ret
mov edi, dword [ebp - 0x10020]
shr edi, 0xf
lea ebx, [ebp - 0x8010]
push 0
lea eax, [ebp - 0x10014]
push eax
push 0x8000
mov esi, ebx
push ebx
push dword [ebp - 0x1001c]
call dword [sym.imp.KERNEL32.dll_ReadFile]
xor ebx, ebx
test eax, eax
je 0x4025a8
cmp dword [ebp - 0x10014], 0x8000
jne 0x4025a8
push 0
lea eax, [ebp - 0x10014]
push eax
push 0x8000
lea eax, [ebp - 0x10010]
push eax
push dword [ebp - 0x10018]
call dword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
je 0x4025a8
cmp dword [ebp - 0x10014], 0x8000
jne 0x4025a8
push 0x8000
lea eax, [ebp - 0x10010]
push eax
mov ebx, esi
push esi
call fcn.0040b5ee
add esp, 0xc
test eax, eax
jne 0x4025a5
dec edi
jne 0x402600
jmp 0x402525
Function at 0x4041e0
Capabilities:
Get file version info

Disassembly:
push ebp
mov ebp, esp
push ebx
push edi
push esi
sub esp, 0x10
mov dword [ebp - 0x1c], edx
mov ebx, ecx
mov eax, dword [0x434040]
xor eax, ebp
mov dword [ebp - 0x10], eax
xor eax, eax
push eax
push ecx
call sub.VERSION.dll_GetFileVersionInfoSizeW
mov edi, eax
push eax
call fcn.0040a313
add esp, 4
mov esi, eax
push eax
push edi
xor eax, eax
push eax
push ebx
call sub.VERSION.dll_GetFileVersionInfoW
test eax, eax
je 0x404262
lea eax, [ebp - 0x14]
mov dword [eax], esi
lea ecx, [ebp - 0x18]
push ecx
push eax
push 0x42f2be
push esi
call sub.VERSION.dll_VerQueryValueW
test eax, eax
je 0x40428d
mov eax, dword [ebp - 0x14]
movzx ecx, word [eax + 0xa]
mov edx, dword [ebp - 0x1c]
mov dword [edx], ecx
mov ecx, dword [ebp + 8]
movzx edx, word [eax + 8]
mov dword [ecx], edx
mov ecx, dword [ebp + 0xc]
movzx edx, word [eax + 0xe]
mov dword [ecx], edx
mov ecx, dword [ebp + 0x10]
movzx eax, word [eax + 0xc]
mov dword [ecx], eax
xor edi, edi
inc edi
jmp 0x4042c5
mov eax, dword [0x435a4c]
mov ecx, dword [0x434c24]
mov edx, dword fs:[0x2c]
mov ecx, dword [edx + ecx*4]
cmp eax, dword [ecx + 4]
jg 0x4042e2
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
push str.Could_not_obtain_file_info_of_old_service.____lu_
jmp 0x4042b6
mov eax, dword [0x435a4c]
mov ecx, dword [0x434c24]
mov edx, dword fs:[0x2c]
mov ecx, dword [edx + ecx*4]
cmp eax, dword [ecx + 4]
jg 0x404321
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
push str.Could_not_query_file_version_info_of_old_service.____lu_
push 0x435840
call fcn.00408520
add esp, 0xc
xor edi, edi
push esi
call fcn.0040a31c
add esp, 4
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.0040abc5
mov eax, edi
add esp, 0x10
pop esi
pop edi
pop ebx
pop ebp
ret
push 0x435a4c
call fcn.0040a351
add esp, 4
cmp dword [0x435a4c], 0xffffffff
jne 0x40427f
mov dword [0x435840], 0
push 0x402420
call fcn.0040a406
add esp, 4
push 0x435a4c
call fcn.0040a3a0
add esp, 4
jmp 0x40427f
push 0x435a4c
call fcn.0040a351
add esp, 4
cmp dword [0x435a4c], 0xffffffff
jne 0x4042aa
mov dword [0x435840], 0
push 0x402420
call fcn.0040a406
add esp, 4
push 0x435a4c
call fcn.0040a3a0
add esp, 4
jmp 0x4042aa
Function at 0x404370
Capabilities:
Delete service
Query service status
Stop service

Disassembly:
push ebp
mov ebp, esp
push ebx
push edi
push esi
sub esp, 0x24
mov eax, dword [0x434040]
xor eax, ebp
mov dword [ebp - 0x10], eax
xor eax, eax
push 0xf003f
push eax
push eax
call dword [sym.imp.ADVAPI32.dll_OpenSCManagerW]
test eax, eax
je 0x404426
mov esi, eax
push 0xf01ff
push str.MozillaMaintenance
push eax
call dword [sym.imp.ADVAPI32.dll_OpenServiceW]
test eax, eax
je 0x404460
mov edi, eax
mov dword [ebp - 0x30], esi
lea eax, [ebp - 0x2c]
push eax
push 1
push edi
call dword [sym.imp.ADVAPI32.dll_ControlService]
test eax, eax
je 0x4043fd
xor esi, esi
mov ebx, dword [sym.imp.KERNEL32.dll_Sleep]
push dword [ebp - 0x14]
call ebx
cmp dword [ebp - 0x28], 1
je 0x4043fd
mov eax, dword [ebp - 0x14]
add esi, eax
add esi, 0xa
cmp esi, 0xea60
ja 0x4043fd
lea eax, [ebp - 0x2c]
push eax
push edi
call dword [sym.imp.ADVAPI32.dll_QueryServiceStatus]
test eax, eax
jne 0x4043d3
push edi
call dword [sym.imp.ADVAPI32.dll_DeleteService]
mov ebx, eax
test eax, eax
jne 0x40441a
call dword [sym.imp.KERNEL32.dll_GetLastError]
xor ebx, ebx
cmp eax, 0x430
sete bl
push edi
call dword [sym.imp.ADVAPI32.dll_CloseServiceHandle]
mov esi, dword [ebp - 0x30]
jmp 0x404498
mov eax, dword [0x435a4c]
mov ecx, dword [0x434c24]
mov edx, dword fs:[0x2c]
mov ecx, dword [edx + ecx*4]
cmp eax, dword [ecx + 4]
jg 0x4044b3
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
push str.Could_not_open_service_manager.____lu_
push 0x435840
call fcn.00408520
add esp, 0xc
xor ebx, ebx
jmp 0x40449f
mov eax, dword [0x435a4c]
mov ecx, dword [0x434c24]
mov edx, dword fs:[0x2c]
mov ecx, dword [edx + ecx*4]
cmp eax, dword [ecx + 4]
jg 0x4044f6
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
push str.Could_not_open_service.____lu_
push 0x435840
call fcn.00408520
add esp, 0xc
xor ebx, ebx
push esi
call dword [sym.imp.ADVAPI32.dll_CloseServiceHandle]
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.0040abc5
mov eax, ebx
add esp, 0x24
pop esi
pop edi
pop ebx
pop ebp
ret
push 0x435a4c
call fcn.0040a351
add esp, 4
cmp dword [0x435a4c], 0xffffffff
jne 0x404443
mov dword [0x435840], 0
push 0x402420
call fcn.0040a406
add esp, 4
push 0x435a4c
call fcn.0040a3a0
add esp, 4
jmp 0x404443
push 0x435a4c
call fcn.0040a351
add esp, 4
cmp dword [0x435a4c], 0xffffffff
jne 0x40447d
mov dword [0x435840], 0
push 0x402420
call fcn.0040a406
add esp, 4
push 0x435a4c
call fcn.0040a3a0
add esp, 4
jmp 0x40447d
Function at 0x4056e0
Capabilities:
Check if file exists
Delete file

Disassembly:
push ebp
mov ebp, esp
push edi
push esi
sub esp, 0x210
mov eax, dword [0x434040]
xor eax, ebp
mov dword [ebp - 0xc], eax
cmp word [ecx], 0
je 0x4057d0
mov esi, ecx
push ecx
call dword [sym.imp.KERNEL32.dll_DeleteFileW]
test eax, eax
jne 0x405756
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 3
je 0x405756
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 2
je 0x405756
mov eax, dword [0x435a4c]
mov ecx, dword [0x434c24]
mov edx, dword fs:[0x2c]
mov ecx, dword [edx + ecx*4]
cmp eax, dword [ecx + 4]
jg 0x4057e4
push esi
push str.Could_not_delete_service_updater_path:__ls.
push 0x435840
call fcn.00408520
add esp, 0xc
lea edi, [ebp - 0x216]
push 0x20a
push 0
push edi
call fcn.0040cc70
add esp, 0xc
push str.updater.ini
push esi
push edi
call fcn.004077d0
add esp, 0xc
test eax, eax
je 0x4057d0
push edi
call dword [sym.imp.KERNEL32.dll_DeleteFileW]
test eax, eax
jne 0x4057d0
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 3
je 0x4057d0
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 2
je 0x4057d0
mov eax, dword [0x435a4c]
mov ecx, dword [0x434c24]
mov edx, dword fs:[0x2c]
mov ecx, dword [edx + ecx*4]
cmp eax, dword [ecx + 4]
jg 0x405827
push edi
push str.Could_not_delete_service_updater_INI_path:__ls.
push 0x435840
call fcn.00408520
add esp, 0xc
mov ecx, dword [ebp - 0xc]
xor ecx, ebp
call fcn.0040abc5
add esp, 0x210
pop esi
pop edi
pop ebp
ret
push 0x435a4c
call fcn.0040a351
add esp, 4
cmp dword [0x435a4c], 0xffffffff
jne 0x405743
mov dword [0x435840], 0
push 0x402420
call fcn.0040a406
add esp, 4
push 0x435a4c
call fcn.0040a3a0
add esp, 4
jmp 0x405743
push 0x435a4c
call fcn.0040a351
add esp, 4
cmp dword [0x435a4c], 0xffffffff
jne 0x4057bd
mov dword [0x435840], 0
push 0x402420
call fcn.0040a406
add esp, 4
push 0x435a4c
call fcn.0040a3a0
add esp, 4
jmp 0x4057bd
Function at 0x407820
Capabilities:
Create directory
Get common file path

Disassembly:
push ebp
mov ebp, esp
push ebx
push edi
push esi
sub esp, 8
mov edi, ecx
mov eax, dword [0x434040]
xor eax, ebp
mov dword [ebp - 0x10], eax
lea eax, [ebp - 0x14]
push eax
push 0
push 0x8000
push section..rdata
call sub.SHELL32.dll_SHGetKnownFolderPath
xor esi, esi
test eax, eax
js 0x40786a
mov ebx, dword [ebp - 0x14]
push ebx
call fcn.00415f29
add esp, 4
cmp eax, 0x105
jb 0x40787e
push ebx
call dword [sym.imp.ole32.dll_CoTaskMemFree]
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.0040abc5
mov eax, esi
add esp, 8
pop esi
pop edi
pop ebx
pop ebp
ret
push 0x105
push ebx
push edi
call fcn.004163a2
add esp, 0xc
push dword [ebp - 0x14]
call dword [sym.imp.ole32.dll_CoTaskMemFree]
push str.Mozilla_Maintenance_Service
push edi
call fcn.00428490
add esp, 8
test eax, eax
je 0x40786a
push 0
push edi
call dword [sym.imp.KERNEL32.dll_CreateDirectoryW]
test eax, eax
jne 0x4078c2
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0xb7
jne 0x40786a
push str.UpdateLogs
push edi
call fcn.00428490
add esp, 8
test eax, eax
je 0x40786a
push 0
push edi
call dword [sym.imp.KERNEL32.dll_CreateDirectoryW]
test eax, eax
jne 0x4078f2
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0xb7
jne 0x40786a
xor esi, esi
inc esi
jmp 0x40786a
Function at 0x407f10
Capabilities:
Query service status

Disassembly:
push ebp
mov ebp, esp
push ebx
push edi
push esi
sub esp, 0x34
mov eax, dword [0x434040]
xor eax, ebp
mov dword [ebp - 0x10], eax
xor eax, eax
push 5
push eax
push eax
call dword [sym.imp.ADVAPI32.dll_OpenSCManagerA]
test eax, eax
je 0x407fd7
mov ebx, eax
push 4
push dword [ebp + 8]
push eax
call dword [sym.imp.ADVAPI32.dll_OpenServiceW]
test eax, eax
je 0x407ffd
mov edi, eax
mov eax, dword [ebp + 0xc]
mov dword [ebp - 0x30], 0xcf
imul esi, eax, 0x3e8
test esi, esi
je 0x408025
mov dword [ebp - 0x3c], ebx
xor ebx, ebx
lea eax, [ebp - 0x38]
push eax
push 0x24
lea eax, [ebp - 0x34]
push eax
push 0
push edi
call dword [sym.imp.ADVAPI32.dll_QueryServiceStatusEx]
test eax, eax
je 0x407f8e
cmp dword [ebp - 0x30], 1
jne 0x407fba
jmp 0x408061
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0x7b
jle 0x408048
lea ecx, [eax - 0x41c]
cmp ecx, 0xa
ja 0x408092
mov edx, 0x601
bt edx, ecx
jae 0x408092
push 0x32
call dword [sym.imp.KERNEL32.dll_Sleep]
add ebx, 0x32
cmp ebx, esi
jb 0x407f6c
mov eax, dword [ebp - 0x30]
mov dword [ebp - 0x40], eax
mov ebx, dword [ebp - 0x3c]
jmp 0x4080cb
call dword [sym.imp.KERNEL32.dll_GetLastError]
xor ecx, ecx
cmp eax, 0x429
sete cl
xor ecx, 0xff
cmp eax, 5
mov esi, 0xfd
cmovne esi, ecx
jmp 0x4080da
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov edi, eax
push ebx
call dword [sym.imp.ADVAPI32.dll_CloseServiceHandle]
cmp edi, 0x7a
jg 0x408031
cmp edi, 5
je 0x408070
cmp edi, 6
jne 0x408069
mov esi, 0xec
jmp 0x4080da
mov dword [ebp - 0x40], 0xcf
jmp 0x4080cb
cmp edi, 0x7b
je 0x408077
cmp edi, 0x424
jne 0x408069
mov esi, 0xee
jmp 0x4080da
cmp eax, 0x56
jg 0x40807e
cmp eax, 5
mov ebx, dword [ebp - 0x3c]
je 0x4080a8
cmp eax, 6
jne 0x4080b6
mov eax, 0xd9
jmp 0x4080c5
mov ebx, dword [ebp - 0x3c]
xor eax, eax
inc eax
jmp 0x4080c8
mov esi, 0xef
jmp 0x4080da
mov esi, 0xeb
jmp 0x4080da
mov esi, 0xed
jmp 0x4080da
cmp eax, 0x57
mov ebx, dword [ebp - 0x3c]
je 0x4080af
cmp eax, 0x7a
jne 0x4080b6
mov eax, 0xdb
jmp 0x4080c5
cmp eax, 0x7c
je 0x4080bd
cmp eax, 0x45b
mov ebx, dword [ebp - 0x3c]
jne 0x4080b6
mov eax, 0xde
jmp 0x4080c5
mov eax, 0xda
jmp 0x4080c5
mov eax, 0xdc
jmp 0x4080c5
mov eax, 0xdf
jmp 0x4080c5
mov eax, 0xdd
mov ebx, dword [ebp - 0x3c]
mov dword [ebp - 0x30], eax
mov dword [ebp - 0x40], eax
mov esi, dword [sym.imp.ADVAPI32.dll_CloseServiceHandle]
push edi
call esi
push ebx
call esi
mov esi, dword [ebp - 0x40]
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.0040abc5
mov eax, esi
add esp, 0x34
pop esi
pop edi
pop ebx
pop ebp
ret
Function at 0x4080f0
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
push ebx
push edi
push esi
sub esp, 0x41c
mov eax, dword [0x434040]
xor eax, ebp
mov dword [ebp - 0x10], eax
lea edi, [ebp - 0x424]
push 0x20a
push 0
push edi
call fcn.0040cc70
add esp, 0xc
mov ecx, edi
call fcn.00407820
xor esi, esi
test eax, eax
je 0x408154
lea ebx, [ebp - 0x21a]
push 0x20a
push 0
push ebx
call fcn.0040cc70
add esp, 0xc
mov ecx, dword [ebp + 8]
mov edx, str..status
push ebx
call fcn.00407900
add esp, 4
test eax, eax
jne 0x40816b
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.0040abc5
mov eax, esi
add esp, 0x41c
pop esi
pop edi
pop ebx
pop ebp
ret
push ebx
push edi
call fcn.00428490
add esp, 8
test eax, eax
je 0x408154
sub esp, 0x1c
xor esi, esi
mov dword [esp + 0x18], esi
mov dword [esp + 0x14], esi
movaps xmm0, xmmword [0x42c7b0]
movups xmmword [esp + 4], xmm0
mov dword [esp], edi
call dword [sym.imp.KERNEL32.dll_CreateFileW]
cmp eax, 0xffffffff
je 0x408154
mov ecx, dword [ebp + 0xc]
sub esp, 0xc
mov dword [esp + 8], ecx
mov dword [esp], ebx
mov edi, ebx
mov ebx, eax
call fcn.004285b0
add esp, 0xc
push edi
call fcn.00415e00
add esp, 4
mov esi, eax
lea eax, [ebp - 0x428]
push 0
push eax
push esi
push edi
push ebx
call dword [sym.imp.KERNEL32.dll_WriteFile]
mov edi, eax
push ebx
call dword [sym.imp.KERNEL32.dll_CloseHandle]
test edi, edi
setne al
lea ecx, [ebp - 0x428]
cmp dword [ecx], esi
sete cl
and cl, al
movzx esi, cl
jmp 0x408154

Function at 0x408200
Capabilities:
Enumerate processes

Disassembly:
push ebp
mov ebp, esp
push ebx
push edi
push esi
sub esp, 0x230
mov eax, dword [0x434040]
xor eax, ebp
mov dword [ebp - 0x10], eax
mov esi, 0x102
cmp dword [ebp + 0xc], 0
je 0x4082c7
mov ebx, dword [ebp + 8]
xor esi, esi
push 0
push 2
call sub.KERNEL32.dll_CreateToolhelp32Snapshot
cmp eax, 0xffffffff
je 0x408281
mov edi, eax
mov dword [ebp - 0x23c], 0x22c
lea eax, [ebp - 0x23c]
push eax
push edi
call sub.KERNEL32.dll_Process32FirstW
test eax, eax
je 0x40828b
lea eax, [ebp - 0x218]
push eax
push ebx
call fcn.00413c1c
add esp, 8
test eax, eax
je 0x408295
lea eax, [ebp - 0x23c]
push eax
push edi
call sub.KERNEL32.dll_Process32NextW
test eax, eax
jne 0x408255
mov ebx, 0x490
jmp 0x408297
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov ebx, eax
jmp 0x40829e
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov ebx, eax
jmp 0x408297
xor ebx, ebx
push edi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
cmp ebx, 0x490
je 0x4082c5
push 0x3e8
call dword [sym.imp.KERNEL32.dll_Sleep]
inc esi
cmp esi, dword [ebp + 0xc]
mov ebx, dword [ebp + 8]
jne 0x40822a
mov esi, 0x102
jmp 0x4082c7
xor esi, esi
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.0040abc5
mov eax, esi
add esp, 0x230
pop esi
pop edi
pop ebx
pop ebp
ret
Function at 0x408330
Capabilities:
Get disk information

Disassembly:
push ebp
mov ebp, esp
push ebx
push edi
push esi
sub esp, 0x210
mov ebx, dword [ebp + 8]
mov eax, dword [0x434040]
xor eax, ebp
mov dword [ebp - 0x10], eax
lea edi, [ebp - 0x21a]
push 0x20a
push 0
push edi
call fcn.0040cc70
add esp, 0xc
push ebx
call fcn.00415f29
add esp, 4
xor esi, esi
cmp eax, 0x104
ja 0x40839e
mov esi, dword [ebp + 0xc]
push 0x104
push ebx
push edi
call fcn.004163a2
add esp, 0xc
push edi
call dword [sym.imp.SHLWAPI.dll_PathStripToRootW]
push edi
call dword [sym.imp.KERNEL32.dll_GetDriveTypeW]
xor ecx, ecx
cmp eax, 3
sete cl
mov dword [esi], ecx
xor esi, esi
inc esi
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.0040abc5
mov eax, esi
add esp, 0x210
pop esi
pop edi
pop ebx
pop ebp
ret
Function at 0x40a843
Capabilities:
Parse pe header

Disassembly:
push 0
call dword [sym.imp.KERNEL32.dll_GetModuleHandleW]
test eax, eax
je 0x40a882
mov ecx, 0x5a4d
cmp word [eax], cx
jne 0x40a882
mov ecx, dword [eax + 0x3c]
add ecx, eax
cmp dword [ecx], 0x4550
jne 0x40a882
mov eax, 0x10b
cmp word [ecx + 0x18], ax
jne 0x40a882
cmp dword [ecx + 0x74], 0xe
jbe 0x40a882
cmp dword [ecx + 0xe8], 0
setne al
ret
xor al, al
ret

Function at 0x40af90
Capabilities:
Encrypt data using rc4 prga

Disassembly:
push eax
push ecx
nop
push edx
nop
push ebx
push esp
push ebp
push esi
push edi
push ebp
mov ebp, esp
sub esp, 0x64
mov esi, 7
mov edi, 0xc
mov eax, edi
sub eax, 0xc
mov dword [ebp - 0x20], eax
jmp 0x40b1cf
mov dword [ebp - 8], 0x66f8
mov dword [ebp - 0x20], 0xd539f65e
jmp 0x40b057
add dword [ebp - 8], 0x75d4
dec dword [ebp - 0x20]
add dword [ebp - 8], 0x19d34
add dword [ebp - 4], 0x1039
mov eax, edi
add eax, esi
sub eax, 0x13
mov dword [ebp - 0x24], eax
add dword [ebp - 4], 0xad2
jmp 0x40afca
mov dword [ebp - 0x34], 0x43977e
mov eax, dword [ebp - 0x34]
mov dword [ebp - 4], eax
jmp 0x40afb7
Function at 0x414fe6
Capabilities:
Read file on windows

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
mov eax, 0x101c
call fcn.0041f760
mov eax, dword [0x434040]
xor eax, ebp
mov dword [ebp - 4], eax
mov eax, dword [ebp + 0x14]
push ebx
push dword [ebp + 8]
mov dword [ebp - 0x100c], eax
call fcn.00419604
pop ecx
mov ecx, dword [ebp + 8]
mov ebx, eax
cmp dword [ecx + 8], 0
jne 0x415028
mov eax, dword [ebp + 0xc]
mov edx, dword [ebp + 0x10]
jmp 0x415184
mov eax, dword [ecx]
sub eax, dword [ecx + 4]
push esi
push edi
push 0
cdq
push 2
push edx
push eax
call fcn.0041cb80
push dword [ebp - 0x100c]
mov ecx, ebx
mov dword [ebp - 0x1008], eax
mov esi, ebx
mov dword [ebp - 0x1018], edx
and ecx, 0x3f
sar esi, 6
imul edi, ecx, 0x38
push 0
mov eax, dword [esi*4 + 0x4354c0]
push dword [eax + edi + 0x24]
push dword [eax + edi + 0x20]
push ebx
call fcn.0041f598
mov ecx, dword [esi*4 + 0x4354c0]
add esp, 0x14
mov dword [ebp - 0x1010], eax
mov eax, edx
mov edx, dword [ebp - 0x1010]
mov dword [ebp - 0x101c], eax
cmp edx, dword [ecx + edi + 0x20]
jne 0x41517d
cmp eax, dword [ecx + edi + 0x24]
jne 0x41517d
push 0
lea eax, [ebp - 0x1014]
push eax
push 0x1000
lea eax, [ebp - 0x1004]
push eax
push dword [ecx + edi + 0x18]
call dword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
je 0x41517d
push dword [ebp - 0x100c]
push 0
push dword [ebp + 0x10]
push dword [ebp + 0xc]
push ebx
call fcn.0041f598
add esp, 0x14
test edx, edx
jl 0x41517d
jg 0x4150f3
test eax, eax
jb 0x41517d
mov ebx, dword [ebp - 0x1018]
mov eax, dword [ebp - 0x1014]
test ebx, ebx
jg 0x41517d
jl 0x41510d
cmp dword [ebp - 0x1008], eax
ja 0x41517d
lea edi, [ebp - 0x1004]
xor edx, edx
add edi, eax
lea ecx, [ebp - 0x1004]
xor esi, esi
cmp dword [ebp - 0x1008], edx
jne 0x41512b
test ebx, ebx
je 0x415164
cmp ecx, edi
jae 0x415164
mov al, byte [ecx]
cmp al, 0xd
jne 0x415145
lea eax, [edi - 1]
cmp ecx, eax
jae 0x415151
cmp byte [ecx + 1], 0xa
jne 0x415151
inc ecx
jmp 0x415151
movzx eax, al
movsx eax, byte [eax + 0x434990]
add ecx, eax
add esi, 1
adc edx, 0
inc ecx
cmp esi, dword [ebp - 0x1008]
jne 0x41512b
cmp edx, ebx
jne 0x41512b
lea eax, [ebp - 0x1004]
sub ecx, eax
mov eax, ecx
cdq
add eax, dword [ebp - 0x1010]
adc edx, dword [ebp - 0x101c]
jmp 0x415182
or edx, 0xffffffff
mov eax, edx
pop edi
pop esi
mov ecx, dword [ebp - 4]
xor ecx, ebp
pop ebx
call fcn.0040abc5
leave
ret

Function at 0x416760
Capabilities:
Parse pe header

Disassembly:
push ebp
mov ebp, esp
mov eax, dword [ebp + 8]
mov ecx, 0x5a4d
cmp word [eax], cx
jne 0x41678d
mov ecx, dword [eax + 0x3c]
add ecx, eax
cmp dword [ecx], 0x4550
jne 0x41678d
mov edx, 0x10b
xor eax, eax
cmp word [ecx + 0x18], dx
sete al
pop ebp
ret
xor eax, eax
pop ebp
ret

Function at 0x416b22
Capabilities:
Allocate thread local storage

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push esi
push 0x4298c8
push 0x4298c0
push str.FlsAlloc
push 0x1f
call fcn.00416ea1
mov esi, eax
add esp, 0x10
test esi, esi
je 0x416b56
push dword [ebp + 8]
mov ecx, esi
call dword [0x4318f0]
call esi
jmp 0x416b5c
call dword [sym.imp.KERNEL32.dll_TlsAlloc]
pop esi
pop ebp
ret 4
Function at 0x416ba0
Capabilities:
Get thread local storage value

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push esi
push 0x4298d8
push 0x4298d0
push str.FlsGetValue
push 0x21
call fcn.00416ea1
mov esi, eax
add esp, 0x10
test esi, esi
je 0x416bd7
push dword [ebp + 8]
mov ecx, esi
call dword [0x4318f0]
call esi
pop esi
pop ebp
ret 4
pop esi
pop ebp
jmp dword [sym.imp.KERNEL32.dll_TlsGetValue]

Function at 0x416bdf
Capabilities:
Set thread local storage value

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push esi
push 0x4298e0
push 0x4298d8
push str.FlsSetValue
push 0x22
call fcn.00416ea1
mov esi, eax
add esp, 0x10
test esi, esi
je 0x416c19
push dword [ebp + 0xc]
mov ecx, esi
push dword [ebp + 8]
call dword [0x4318f0]
call esi
pop esi
pop ebp
ret 8
pop esi
pop ebp
jmp dword [sym.imp.KERNEL32.dll_TlsSetValue]

Function at 0x41ad30
Capabilities:
Enumerate files on windows

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x264
mov eax, dword [0x434040]
xor eax, ebp
mov dword [ebp - 4], eax
mov edx, dword [ebp + 0xc]
mov ecx, dword [ebp + 0x10]
push ebx
push esi
push edi
mov edi, dword [ebp + 8]
mov dword [ebp - 0x25c], ecx
cmp edx, edi
je 0x41ad7b
movzx eax, word [edx]
lea ecx, [ebp - 0x255]
push eax
call fcn.0041aea6
test al, al
jne 0x41ad75
sub edx, 2
cmp edx, edi
jne 0x41ad5b
mov ecx, dword [ebp - 0x25c]
movzx esi, word [edx]
cmp esi, 0x3a
jne 0x41ad9d
lea eax, [edi + 2]
cmp edx, eax
je 0x41ad9d
push ecx
xor ebx, ebx
push ebx
push ebx
push edi
call fcn.0041ac7c
add esp, 0x10
jmp 0x41ae97
push esi
lea ecx, [ebp - 0x255]
call fcn.0041aea6
sub edx, edi
movzx eax, al
sar edx, 1
inc edx
neg eax
sbb eax, eax
xor ebx, ebx
push ebx
push ebx
and eax, edx
push ebx
mov dword [ebp - 0x260], eax
lea eax, [ebp - 0x254]
push eax
push ebx
push edi
call dword [sym.imp.KERNEL32.dll_FindFirstFileExW]
mov esi, eax
cmp esi, 0xffffffff
jne 0x41ade0
push dword [ebp - 0x25c]
jmp 0x41ad8d
mov ebx, dword [ebp - 0x25c]
push 0x2e
mov eax, dword [ebx + 4]
sub eax, dword [ebx]
sar eax, 2
mov dword [ebp - 0x25c], eax
pop eax
cmp word [ebp - 0x228], ax
jne 0x41ae1d
cmp word [ebp - 0x226], 0
je 0x41ae3e
cmp word [ebp - 0x226], ax
jne 0x41ae1d
cmp word [ebp - 0x224], 0
je 0x41ae3e
push ebx
push dword [ebp - 0x260]
lea eax, [ebp - 0x228]
push edi
push eax
call fcn.0041ac7c
add esp, 0x10
mov dword [ebp - 0x264], eax
test eax, eax
jne 0x41ae8a
lea eax, [ebp - 0x254]
push eax
push esi
call dword [sym.imp.KERNEL32.dll_FindNextFileW]
push 0x2e
test eax, eax
pop eax
jne 0x41adf7
mov eax, dword [ebx + 4]
mov edx, dword [ebx]
sub eax, edx
mov ecx, dword [ebp - 0x25c]
sar eax, 2
cmp ecx, eax
jne 0x41ae72
push esi
call dword [sym.imp.KERNEL32.dll_FindClose]
xor eax, eax
jmp 0x41ae97
push 0x41aed0
sub eax, ecx
push 4
push eax
lea eax, [edx + ecx*4]
push eax
call fcn.00424370
add esp, 0x10
jmp 0x41ae67
push esi
call dword [sym.imp.KERNEL32.dll_FindClose]
mov eax, dword [ebp - 0x264]
mov ecx, dword [ebp - 4]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.0040abc5
leave
ret