joyce8/EMBER2024-capa huggingface dataset:
Function at 0x43cd24
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x1c
mov eax, dword [0x492890]
xor eax, ebp
mov dword [ebp - 4], eax
mov eax, dword [ebp + 8]
mov ecx, dword [ebp + 0x10]
push ebx
mov ebx, dword [ebp + 0xc]
push edi
push 0x48674c
push eax
lea eax, [ebp - 0x18]
mov dword [ebp - 0x1c], ecx
xor edi, edi
push eax
mov dword [ebp - 0x18], edi
call dword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll__wfopen_s]
add esp, 0xc
test eax, eax
jne 0x43cdd7
cmp dword [ebp - 0x18], edi
je 0x43cdd7
movzx eax, word [ebx + 0xe]
mov dword [ebx], 0x28
mov dword [ebx + 0x10], edi
cmp eax, 0x10
jae 0x43cd7c
push 4
pop edi
mov cl, al
shl edi, cl
push esi
mov esi, dword [ebx + 0x14]
lea eax, [edi + 0x36]
push dword [ebp - 0x18]
mov dword [ebp - 0xa], eax
mov ecx, 0x4d42
add eax, esi
mov word [ebp - 0x14], cx
mov dword [ebp - 0x12], eax
xor eax, eax
push 0xe
mov dword [ebp - 0xe], eax
lea eax, [ebp - 0x14]
push 1
push eax
call dword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll_fwrite]
push dword [ebp - 0x18]
mov eax, dword [ebx]
add eax, edi
push eax
push 1
push ebx
call dword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll_fwrite]
push dword [ebp - 0x18]
push esi
push 1
push dword [ebp - 0x1c]
call dword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll_fwrite]
push dword [ebp - 0x18]
call dword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll_fclose]
add esp, 0x34
pop esi
mov ecx, dword [ebp - 4]
pop edi
xor ecx, ebp
pop ebx
call fcn.00444460
leave
ret

Function at 0x43d039
Capabilities:
Connect to wmi namespace via wbemlocator

Disassembly:
push 0x10
push 0x48d558
call fcn.00444de0
mov ebx, ecx
mov dword [ebp - 0x20], ebx
xor edi, edi
push edi
push edi
call dword [sym.imp.ole32.dll_CoInitializeEx]
test eax, eax
js 0x43d112
push edi
push edi
push edi
push 3
push edi
push edi
push edi
push 0xffffffffffffffff
push edi
call dword [sym.imp.ole32.dll_CoInitializeSecurity]
test eax, eax
jns 0x43d07c
cmp eax, 0x80010119
jne 0x43d10c
push ebx
push 0x488a08
push 1
push edi
push 0x4889f8
call dword [sym.imp.ole32.dll_CoCreateInstance]
test eax, eax
js 0x43d10c
mov dword [ebp - 4], edi
mov ecx, dword [ebx]
mov esi, dword [ecx]
lea eax, [ebx + 4]
push eax
push edi
push edi
push 0x80
push edi
push edi
push edi
push str.ROOTCIMV2
push ecx
mov ecx, dword [esi + 0xc]
call dword [0x44b788]
call dword [esi + 0xc]
mov dword [ebp - 0x1c], eax
mov dword [ebp - 4], 0xfffffffe
jmp 0x43d0e2
test eax, eax
js 0x43d105
push edi
push edi
push 3
push 3
push edi
push edi
push 0xa
push dword [ebx + 4]
call dword [sym.imp.ole32.dll_CoSetProxyBlanket]
test eax, eax
js 0x43d105
mov byte [ebx + 8], 1
xor eax, eax
jmp 0x43d115
mov ecx, ebx
call fcn.0043d125
call dword [sym.imp.ole32.dll_CoUninitialize]
xor eax, eax
inc eax
mov ecx, dword [ebp - 0x10]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
leave
ret
Function at 0x43d22d
Capabilities:
Terminate thread

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x10
mov eax, dword [0x492890]
xor eax, ebp
mov dword [ebp - 4], eax
push esi
push edi
lea eax, [ebp - 0x10]
xorps xmm0, xmm0
push eax
mov esi, ecx
movlpd qword [ebp - 0x10], xmm0
call fcn.0043d1db
mov edi, dword [ebp - 0x10]
test edi, edi
je 0x43d2a2
cmp dword [edi + 4], 0
je 0x43d2a2
push 0x1d4c0
push dword [edi + 4]
call dword [sym.imp.KERNEL32.dll_WaitForSingleObject]
cmp eax, 0x102
jne 0x43d28b
mov eax, dword [edi + 8]
xor esi, esi
inc esi
mov dword [0x494348], eax
push esi
push dword [edi + 4]
call dword [sym.imp.KERNEL32.dll_TerminateThread]
jmp 0x43d2a5
lea eax, [ebp - 8]
mov ecx, esi
push eax
call fcn.0043d2c1
push eax
call dword [sym.imp.KERNEL32.dll_GetExitCodeThread]
mov esi, dword [ebp - 8]
jmp 0x43d2a5
xor esi, esi
inc esi
mov ecx, dword [ebp - 0xc]
test ecx, ecx
je 0x43d2b1
call fcn.00403281
mov ecx, dword [ebp - 4]
mov eax, esi
pop edi
xor ecx, ebp
pop esi
call fcn.00444460
leave
ret

Function at 0x43d363
Capabilities:
Create thread
Resume thread

Disassembly:
push ebp
mov ebp, esp
push esi
mov esi, ecx
mov edx, dword [esi]
lea eax, [edx + 8]
push eax
push 4
push edx
push 0x43d3d0
push 0
push 0
call dword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__beginthreadex]
mov ecx, eax
add esp, 0x18
test ecx, ecx
jne 0x43d38e
xor al, al
jmp 0x43d3bf
mov eax, dword [esi]
push dword [ebp + 8]
mov dword [eax + 4], ecx
mov ecx, dword [esi]
add ecx, 0xc
call fcn.00416621
mov eax, dword [esi]
mov ecx, 0x494238
push dword [eax + 8]
push dword [ebp + 8]
call fcn.0043d1a0
mov eax, dword [esi]
push dword [eax + 4]
call dword [sym.imp.KERNEL32.dll_ResumeThread]
mov al, 1
pop esi
pop ebp
ret 4

Function at 0x43d48a
Capabilities:
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
sub esp, 0xc
mov eax, dword [0x492890]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
mov edx, dword [ebp + 8]
xor ebx, ebx
push esi
mov esi, dword [ebp + 0xc]
push edi
mov edi, dword [ebp + 0x10]
mov eax, dword [edi]
add eax, eax
mov dword [edi], ebx
mov dword [ebp - 0xc], eax
lea eax, [ebp - 0xc]
push eax
push esi
lea eax, [ebp - 8]
push eax
push ebx
push edx
push dword [ecx]
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
test eax, eax
jne 0x43d4ff
cmp dword [ebp - 8], 1
je 0x43d4d4
cmp dword [ebp - 8], 2
jne 0x43d4ef
mov ecx, dword [ebp - 0xc]
test esi, esi
je 0x43d4f9
test ecx, ecx
je 0x43d4f4
test cl, 1
jne 0x43d4ef
mov eax, ecx
shr eax, 1
cmp word [esi + eax*2 - 2], bx
je 0x43d4f9
push 0xd
pop eax
jmp 0x43d4ff
xor eax, eax
mov word [esi], ax
shr ecx, 1
xor eax, eax
mov dword [edi], ecx
mov ecx, dword [ebp - 4]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.00444460
leave
ret 0xc
Function at 0x43d77d
Capabilities:
Set registry value

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x14
mov eax, dword [0x492890]
xor eax, ebp
mov dword [ebp - 4], eax
mov eax, dword [ebp + 0xc]
mov ecx, dword [ebp + 8]
push ebx
push esi
mov esi, dword [ebp + 0x10]
push edi
push 2
push eax
xor edi, edi
push ecx
lea ecx, [ebp - 0x14]
mov dword [ebp - 0x14], edi
mov dword [ebp - 0x10], edi
mov dword [ebp - 0xc], edi
call fcn.00438eee
mov eax, dword [ebp + 0x14]
push 4
mov dword [ebp - 8], eax
lea eax, [ebp - 8]
push eax
push 4
push edi
push esi
mov esi, dword [ebp - 0x14]
push esi
call dword [sym.imp.ADVAPI32.dll_RegSetValueExW]
mov ebx, eax
neg ebx
sbb bl, bl
inc bl
test esi, esi
je 0x43d7dd
push esi
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov ecx, dword [ebp - 4]
mov al, bl
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.00444460
leave
ret 0x10
Function at 0x43d871
Capabilities:
Enumerate services

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x3c
mov eax, dword [0x492890]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
push 4
xor ebx, ebx
push ebx
push ebx
mov dword [ebp - 0x34], ebx
call dword [sym.imp.ADVAPI32.dll_OpenSCManagerW]
mov ecx, eax
mov dword [ebp - 0x2c], ecx
test ecx, ecx
jne 0x43d8a4
mov eax, 0x453458
jmp 0x43da2d
push esi
mov esi, dword [ebp + 8]
xor eax, eax
push edi
mov word [0x494350], ax
lea edx, [esi + 2]
mov ax, word [esi]
add esi, 2
cmp ax, bx
jne 0x43d8b4
lea eax, [ebp - 0x10]
mov dword [ebp - 0xc], ebx
push eax
lea eax, [ebp - 8]
mov dword [ebp - 8], ebx
push eax
lea eax, [ebp - 0xc]
mov dword [ebp - 0x10], ebx
push eax
push ebx
push ebx
push 1
push 0x20
sub esi, edx
push ecx
sar esi, 1
call dword [sym.imp.ADVAPI32.dll_EnumServicesStatusW]
test eax, eax
jne 0x43da1c
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0xea
jne 0x43da1c
mov eax, dword [ebp - 0xc]
cmp eax, 0x40000
jae 0x43da1c
lea edi, [eax + 1]
push edi
call fcn.004441f3
mov ebx, eax
pop ecx
test ebx, ebx
je 0x43da1c
push edi
xor eax, eax
push eax
push ebx
call sub.VCRUNTIME140.dll_memset
add esp, 0xc
lea eax, [ebp - 0x10]
push eax
lea eax, [ebp - 8]
push eax
lea eax, [ebp - 0xc]
push eax
push edi
mov edi, dword [ebp - 0x2c]
push ebx
push 1
push 0x20
push edi
call dword [sym.imp.ADVAPI32.dll_EnumServicesStatusW]
test eax, eax
je 0x43da13
mov edx, dword [ebp - 8]
xor eax, eax
mov dword [ebp - 0x30], eax
test edx, edx
je 0x43da13
mov eax, ebx
mov dword [ebp - 0x2c], ebx
mov eax, dword [eax]
mov ecx, eax
mov dword [ebp - 0x3c], eax
lea eax, [ecx + 2]
mov dword [ebp - 0x38], eax
mov ax, word [ecx]
add ecx, 2
cmp ax, word [ebp - 0x34]
jne 0x43d973
sub ecx, dword [ebp - 0x38]
sar ecx, 1
cmp ecx, esi
jb 0x43d9dc
push esi
push dword [ebp - 0x3c]
lea ecx, [ebp - 0x28]
call fcn.0043d7f0
cmp dword [ebp - 0x14], 8
lea eax, [ebp - 0x28]
mov ecx, dword [ebp + 8]
cmovae eax, dword [ebp - 0x28]
mov dx, word [eax]
cmp dx, word [ecx]
jne 0x43d9c8
test dx, dx
je 0x43d9c4
mov dx, word [eax + 2]
cmp dx, word [ecx + 2]
jne 0x43d9c8
add eax, 4
add ecx, 4
test dx, dx
jne 0x43d9a2
xor eax, eax
jmp 0x43d9cd
sbb eax, eax
or eax, 1
test eax, eax
je 0x43d9f6
lea ecx, [ebp - 0x28]
call fcn.004033a6
mov edx, dword [ebp - 8]
mov ecx, dword [ebp - 0x30]
mov eax, dword [ebp - 0x2c]
inc ecx
add eax, 0x24
mov dword [ebp - 0x30], ecx
mov dword [ebp - 0x2c], eax
cmp ecx, edx
jb 0x43d966
jmp 0x43da13
mov eax, dword [ebp - 0x2c]
push dword [eax]
push 0x20
push 0x494350
call dword [sym.imp.api_ms_win_crt_string_l1_1_0.dll_wcscpy_s]
add esp, 0xc
lea ecx, [ebp - 0x28]
call fcn.004033a6
push ebx
call fcn.004441fc
pop ecx
jmp 0x43da1f
mov edi, dword [ebp - 0x2c]
push edi
call dword [sym.imp.ADVAPI32.dll_CloseServiceHandle]
pop edi
mov eax, 0x494350
pop esi
mov ecx, dword [ebp - 4]
xor ecx, ebp
pop ebx
call fcn.00444460
leave
ret
Function at 0x43da3a
Capabilities:
Query service status

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x20
mov eax, dword [0x492890]
xor eax, ebp
mov dword [ebp - 4], eax
cmp dword [ecx], 0
je 0x43da64
lea eax, [ebp - 0x20]
push eax
push dword [ecx]
call dword [sym.imp.ADVAPI32.dll_QueryServiceStatus]
test eax, eax
je 0x43da64
mov eax, dword [ebp - 0x1c]
jmp 0x43da66
xor eax, eax
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.00444460
leave
ret

Function at 0x43daae
Capabilities:
Start service

Disassembly:
push esi
push edi
xor esi, esi
mov edi, ecx
push esi
push esi
push dword [edi]
call dword [sym.imp.ADVAPI32.dll_StartServiceW]
test eax, eax
jne 0x43dac6
xor al, al
jmp 0x43dae9
push 0xc8
call dword [sym.imp.KERNEL32.dll_Sleep]
mov ecx, edi
call fcn.0043da3a
inc esi
cmp eax, 4
je 0x43dae6
cmp esi, 0x64
jl 0x43dac6
cmp eax, 4
sete al
pop edi
pop esi
ret

Function at 0x43e4d5
Capabilities:
Get common file path

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x204
mov eax, dword [0x492890]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
push esi
mov esi, dword [ebp + 8]
mov ebx, ecx
push edi
push 0x453458
mov ecx, esi
lea edi, [ebx + 0x94]
call fcn.0043b13d
test al, al
je 0x43e55b
push 0x200
xor esi, esi
lea eax, [ebp - 0x204]
push esi
push eax
call sub.VCRUNTIME140.dll_memset
add esp, 0xc
lea eax, [ebp - 0x204]
push eax
push esi
push esi
push 0x1a
push esi
call dword [sym.imp.SHELL32.dll_SHGetFolderPathW]
test eax, eax
js 0x43e563
lea eax, [ebp - 0x204]
mov ecx, edi
push eax
call fcn.004033ff
push 0x486620
mov ecx, edi
call fcn.0043deda
push 0x44c3a8
mov ecx, edi
call fcn.0043deda
jmp 0x43e563
push esi
mov ecx, edi
call fcn.00420590
lea esi, [ebx + 0xac]
push edi
mov ecx, esi
call fcn.00420590
push str.data_
mov ecx, esi
call fcn.0043deda
push str.Zoom.us.ini
mov ecx, esi
call fcn.0043deda
mov ecx, dword [ebp - 4]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.00444460
leave
ret 4

Function at 0x43efae
Capabilities:
Read file via mapping

Disassembly:
push 0x10
push 0x48d8c0
call fcn.00444de0
mov esi, ecx
mov dword [ebp - 0x20], esi
lea eax, [esi + 0x28]
xor ebx, ebx
cmp dword [eax + 0x18], ebx
je 0x43efd0
push eax
call dword [sym.imp.KERNEL32.dll_EnterCriticalSection]
mov byte [ebp - 0x19], bl
mov dword [ebp - 4], ebx
cmp dword [esi + 4], ebx
jne 0x43f035
mov edi, ebx
cmp dword [esi], edi
je 0x43eff5
push dword [ebp + 8]
push ebx
push ebx
push 6
push dword [esi]
call dword [sym.imp.KERNEL32.dll_MapViewOfFile]
mov edi, eax
mov dword [esi + 4], edi
test edi, edi
je 0x43f035
mov edx, dword [ebp + 8]
mov ecx, edx
shr ecx, 1
mov al, byte [ecx + edi]
mov byte [ecx + edi], al
mov al, byte [edi + edx - 1]
mov byte [edi + edx - 1], al
mov dword [esi + 0xc], edx
mov byte [ebp - 0x19], 1
jmp 0x43f035
mov dword [ebp - 4], 0xfffffffe
add esi, 0x28
cmp dword [esi + 0x18], ebx
je 0x43f04b
push esi
call dword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
mov al, byte [ebp - 0x19]
mov ecx, dword [ebp - 0x10]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
leave
ret 4
Function at 0x4414ef
Capabilities:
Read .ini file

Disassembly:
push ebp
mov ebp, esp
add ecx, 4
cmp dword [ecx + 0x14], 8
jb 0x4414fd
mov ecx, dword [ecx]
push ecx
push dword [ebp + 0x18]
push dword [ebp + 0x14]
push dword [ebp + 0x10]
push dword [ebp + 0xc]
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.dll_GetPrivateProfileStringW]
pop ebp
ret 0x14

Function at 0x441871
Capabilities:
Get file size
Parse pe header
Read file via mapping

Disassembly:
push ebp
mov ebp, esp
push ecx
push ebx
push esi
push edi
mov edi, dword [ebp + 8]
mov esi, ecx
test edi, edi
je 0x441991
xor eax, eax
cmp ax, word [edi]
je 0x441991
xor ebx, ebx
cmp dword [esi + 4], ebx
je 0x44189c
call fcn.004417ac
push ebx
push 0x80
push 3
push ebx
push 1
push 1
push edi
call dword [sym.imp.KERNEL32.dll_CreateFileW]
mov dword [esi], eax
cmp eax, 0xffffffff
je 0x441991
test eax, eax
je 0x441991
push ebx
push eax
call dword [sym.imp.KERNEL32.dll_GetFileSize]
mov edi, eax
cmp edi, 0x40
jb 0x441991
push ebx
push edi
push ebx
push 2
push ebx
push dword [esi]
call dword [sym.imp.KERNEL32.dll_CreateFileMappingW]
mov dword [esi + 0xc], eax
cmp eax, 0xffffffff
je 0x441991
test eax, eax
je 0x441991
push edi
push ebx
push ebx
push 4
push eax
call dword [sym.imp.KERNEL32.dll_MapViewOfFile]
mov ecx, eax
mov dword [esi + 4], ecx
test ecx, ecx
je 0x441991
lea edx, [ecx + edi]
mov dword [esi + 8], edx
mov eax, dword [ecx + 0x3c]
mov dword [ebp - 4], edx
cmp eax, 0x40
jb 0x441991
lea edi, [eax + ecx]
lea eax, [edi + 0xf8]
mov dword [esi + 0x10], edi
cmp edx, eax
jb 0x441991
mov eax, 0x5a4d
cmp word [ecx], ax
jne 0x441991
cmp dword [edi], 0x4550
jne 0x441991
movzx eax, word [edi + 4]
mov edx, 0x14c
mov ecx, eax
cmp cx, dx
je 0x441971
mov edx, 0x8664
cmp cx, dx
je 0x441968
mov ecx, 0xaa64
cmp ax, cx
jne 0x441991
mov bl, 1
mov eax, 0x108
jmp 0x441976
mov eax, 0xf8
lea edx, [edi + eax]
mov byte [esi + 0x18], bl
mov dword [esi + 0x14], edx
movzx ecx, word [edi + 6]
imul ecx, ecx, 0x28
add ecx, edx
cmp dword [ebp - 4], ecx
jb 0x441991
mov al, 1
jmp 0x44199a
mov ecx, esi
call fcn.004417ac
xor al, al
pop edi
pop esi
pop ebx
leave
ret 4
Function at 0x4439e0
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x24
mov eax, dword [0x492890]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
mov ebx, dword [ebp + 8]
push edi
mov edi, ecx
cmp dword [edi + 0xc], 0
je 0x443aee
cmp byte [edi + 0x60], 0
push esi
mov esi, dword [ebx + 0x10]
mov dword [ebp - 0x20], esi
je 0x443ac9
mov edx, dword [edi + 0x68]
mov ecx, dword [edi + 0x58]
lea eax, [edx + esi]
cmp eax, ecx
jle 0x443ac9
mov esi, dword [edi + 0x5c]
cmp esi, 1
jne 0x443a6d
sub ecx, edx
push ecx
mov dword [ebp - 0x24], ecx
call fcn.004441f3
push dword [ebp - 0x24]
mov esi, eax
push 0x20
push esi
call sub.VCRUNTIME140.dll_memset
push dword [edi + 0xc]
push dword [ebp - 0x24]
push 1
push esi
call dword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll_fwrite]
push esi
call fcn.004441fc
xor esi, esi
push esi
push esi
push dword [edi + 0xc]
call dword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll_fseek]
add esp, 0x30
mov dword [edi + 0x68], esi
jmp 0x443ac6
jle 0x443ac6
mov ecx, edi
call fcn.0044348c
mov ecx, edi
call fcn.00443680
test al, al
je 0x443ac6
cmp dword [edi + 0x6c], esi
jle 0x443ac6
mov eax, dword [edi + 0x70]
mov esi, dword [eax]
cmp esi, eax
je 0x443ac6
and dword [ebp - 0xc], 0
lea eax, [esi + 0x14]
and dword [ebp - 8], 0
lea ecx, [ebp - 0x1c]
push eax
call fcn.0041653c
push esi
lea ecx, [edi + 0x70]
call fcn.00443376
mov eax, dword [ebp - 8]
cmp eax, 8
jb 0x443ac6
lea eax, [eax*2 + 2]
push eax
push dword [ebp - 0x1c]
call fcn.00402141
pop ecx
pop ecx
mov esi, dword [ebp - 0x20]
cmp dword [ebx + 0x14], 0x10
jb 0x443ad1
mov ebx, dword [ebx]
push dword [edi + 0xc]
push esi
push 1
push ebx
call dword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll_fwrite]
push dword [edi + 0xc]
call dword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll_fflush]
add esp, 0x14
add dword [edi + 0x68], esi
pop esi
mov ecx, dword [ebp - 4]
pop edi
xor ecx, ebp
pop ebx
call fcn.00444460
leave
ret 8
Function at 0x406e30
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x28
pushal
call 0x406e3f
pop dword [ebp - 0x18]
mov eax, 0x5e369b71
sub eax, 0x5df62d32
sub dword [ebp - 0x18], eax
mov dword [ebp - 0x28], 0x3d0ed89
sub dword [ebp - 0x28], 0xb57ea83e
mov dword [ebp - 0x24], 0x4f7ac801
add dword [ebp - 0x24], 0xe2b88444
mov dword [ebp - 0x20], 0xa172ab72
add dword [ebp - 0x20], 0xaad998bc
mov dword [ebp - 0x1c], 0x5126d869
sub dword [ebp - 0x1c], 0x5126d869
lea eax, [ebp - 0x28]
push eax
mov eax, 0xaef21603
add eax, 0x514e8a09
add eax, dword [ebp - 0x18]
call dword [eax]
mov dword [ebp - 0x28], 0x483ae39a
add dword [ebp - 0x28], 0x2c3785bc
mov dword [ebp - 0x24], 0xda677c16
sub dword [ebp - 0x24], 0x98fb1aa1
mov dword [ebp - 0x20], 0xdee5d731
sub dword [ebp - 0x20], 0x7b766ac5
mov dword [ebp - 0x1c], 0x7ceedbe1
sub dword [ebp - 0x1c], 0x7ceedbe1
lea ebx, [ebp - 0x28]
push ebx
push eax
mov eax, sym.imp.kernel32.dll_GetProcAddress
add eax, dword [ebp - 0x18]
call dword [eax]
push 0x40
push 0x1000
push 0x38f6d
push 0
call eax
mov ecx, 0x4850
mov edx, eax
mov esi, 0x43be00
add esi, dword [ebp - 0x18]
mov ebx, 0x7d925dcc
add ebx, 0x5eb47389
xor dword [ebp - 8], edi
mov edi, dword [esi]
add dword [ebp - 8], 0x100d30fd
sub edi, ebx
sub dword [ebp - 8], 0x4d8b40db
mov dword [edx], edi
add dword [ebp - 8], ebx
add edx, 0x2daf16fb
add edx, 0xd250e909
add esi, 0xce421942
sub esi, 0xce42193e
loop 0x406f50
add eax, 0x11413
mov ebx, eax
add eax, 0x4e99e78b
sub eax, 0x4e99e786
mov ecx, 0x88176aad
add ecx, 0x78289553
add ecx, dword [ebp - 0x18]
call ebx
leave
ret
Function at 0x41e2f0
Capabilities:
Packed with generic packer

Disassembly:
pushal
mov esi, section.UPX1
lea edi, [esi - 0x14000]
push edi
or ebp, 0xffffffff
jmp 0x41e312
mov al, byte [esi]
inc esi
mov byte [edi], al
inc edi
add ebx, ebx
jne 0x41e319
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
jb 0x41e308
mov eax, 1
add ebx, ebx
jne 0x41e32b
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc eax, eax
add ebx, ebx
jae 0x41e320
jne 0x41e33c
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
jae 0x41e320
xor ecx, ecx
sub eax, 3
jb 0x41e350
shl eax, 8
mov al, byte [esi]
inc esi
xor eax, 0xffffffff
je 0x41e3c2
mov ebp, eax
add ebx, ebx
jne 0x41e35b
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc ecx, ecx
add ebx, ebx
jne 0x41e368
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc ecx, ecx
jne 0x41e38c
inc ecx
add ebx, ebx
jne 0x41e378
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc ecx, ecx
add ebx, ebx
jae 0x41e36d
jne 0x41e389
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
jae 0x41e36d
add ecx, 2
cmp ebp, 0xfffff300
adc ecx, 1
lea edx, [edi + ebp]
cmp ebp, 0xfffffffc
jbe 0x41e3ac
mov al, byte [edx]
inc edx
mov byte [edi], al
inc edi
dec ecx
jne 0x41e39d
jmp 0x41e30e
mov eax, dword [edx]
add edx, 4
mov dword [edi], eax
add edi, 4
sub ecx, 4
ja 0x41e3ac
add edi, ecx
jmp 0x41e30e
pop esi
mov edi, esi
mov ecx, 0x361
mov al, byte [edi]
inc edi
sub al, 0xe8
cmp al, 1
ja 0x41e3ca
cmp byte [edi], 7
jne 0x41e3ca
mov eax, dword [edi]
mov bl, byte [edi + 4]
shr ax, 8
rol eax, 0x10
xchg ah, al
sub eax, edi
sub bl, 0xe8
add eax, esi
mov dword [edi], eax
add edi, 5
mov al, bl
loop 0x41e3cf
lea edi, [esi + 0x1c000]
mov eax, dword [edi]
or eax, eax
je 0x41e447
mov ebx, dword [edi + 4]
lea eax, [eax + esi + 0x1e7f0]
add ebx, esi
push eax
add edi, 8
call dword [esi + 0x1e8f4]
xchg ebp, eax
mov al, byte [edi]
inc edi
or al, al
je 0x41e3fc
mov ecx, edi
jns 0x41e42b
movzx eax, word [edi]
inc edi
push eax
inc edi
mov ecx, 0xaef24857
push edi
dec eax
repne scasb al, byte es:[edi]
push ebp
call dword [esi + 0x1e8f8]
or eax, eax
je 0x41e441
mov dword [ebx], eax
add ebx, 4
jmp 0x41e419
call dword [esi + 0x1e908]
mov ebp, dword [esi + 0x1e8fc]
lea edi, [esi - 0x1000]
mov ebx, 0x1000
push eax
push esp
push 4
push ebx
push edi
call ebp
lea eax, [edi + 0x21f]
and byte [eax], 0x7f
and byte [eax + 0x28], 0x7f
pop eax
push eax
push esp
push eax
push ebx
push edi
call ebp
pop eax
popal
lea eax, [esp - 0x80]
push 0
cmp esp, eax
jne 0x41e47b
sub esp, 0xffffff80
jmp 0x4079fc
Function at 0x404cfd
Capabilities:
Get disk information

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x210
mov eax, dword [0x421050]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
push esi
push edi
xor eax, eax
xor ebx, ebx
push 0x208
mov word [ebp - 0x210], ax
mov edi, edx
lea eax, [ebp - 0x20e]
mov esi, ecx
push ebx
push eax
call fcn.0040bf90
mov ecx, esi
add esp, 0xc
lea edx, [ecx + 2]
mov ax, word [ecx]
add ecx, 2
cmp ax, bx
jne 0x404d3c
sub ecx, edx
mov eax, 0x104
sar ecx, 1
cmp ecx, eax
jbe 0x404d58
xor eax, eax
jmp 0x404d90
push eax
lea eax, [ebp - 0x210]
push esi
push eax
call fcn.0040517b
add esp, 0xc
lea eax, [ebp - 0x210]
push eax
call dword [sym.imp.SHLWAPI.dll_PathStripToRootW]
lea eax, [ebp - 0x210]
push eax
call dword [sym.imp.KERNEL32.dll_GetDriveTypeW]
sub eax, 3
neg eax
sbb eax, eax
inc eax
mov dword [edi], eax
xor eax, eax
inc eax
mov ecx, dword [ebp - 4]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.0040502c
mov esp, ebp
pop ebp
ret
Function at 0x10001648
Capabilities:
Check if file exists
Enumerate files on windows
Enumerate files recursively
Get common file path
Get file attributes

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
sub esp, 0xa94
mov eax, dword [0x1006d144]
xor eax, esp
mov dword [esp + 0xa90], eax
mov ecx, dword [ebp + 0x14]
mov eax, dword [ebp + 0x10]
mov edx, dword [ebp + 0x1c]
push ebx
push esi
mov esi, dword [ebp + 8]
mov dword [esp + 0x18], ecx
mov ecx, dword [ebp + 0x18]
push edi
mov dword [esp + 0x18], eax
mov dword [esp + 0x14], ecx
mov dword [esp + 0x24], edx
test esi, esi
je 0x10001849
test eax, eax
jne 0x10001698
test ecx, ecx
je 0x10001849
movzx eax, word [esi + 2]
mov edi, dword [sym.imp.SHLWAPI.dll_PathAppendW]
cmp ax, 0x3a
je 0x100016f3
cmp ax, 0x5c
je 0x100016f3
xor eax, eax
push 0x40e
push eax
mov word [esp + 0x690], ax
lea eax, [esp + 0x692]
push eax
call fcn.1003c1e0
add esp, 0xc
lea eax, [esp + 0x688]
push eax
push 0x208
call dword [sym.imp.KERNEL32.dll_GetCurrentDirectoryW]
push esi
lea eax, [esp + 0x68c]
push eax
call edi
lea esi, [esp + 0x688]
push esi
call dword [sym.imp.KERNEL32.dll_GetFileAttributesW]
cmp eax, 0xffffffff
je 0x10001849
test al, 0x10
je 0x10001849
mov ebx, dword [sym.imp.KERNEL32.dll_lstrcpyW]
push esi
lea eax, [esp + 0x484]
push eax
call ebx
push 0x1005d1f0
lea eax, [esp + 0x484]
push eax
call edi
lea eax, [esp + 0x28]
push eax
lea eax, [esp + 0x484]
push eax
call dword [sym.imp.KERNEL32.dll_FindFirstFileW]
mov dword [esp + 0x20], eax
cmp eax, 0xffffffff
je 0x10001849
mov dword [esp + 0x10], 1
push 0x1005d1f4
lea eax, [esp + 0x58]
push eax
call dword [sym.imp.KERNEL32.dll_lstrcmpW]
test eax, eax
je 0x10001818
push 0x1005d1f8
lea eax, [esp + 0x58]
push eax
call dword [sym.imp.KERNEL32.dll_lstrcmpW]
test eax, eax
je 0x10001818
cmp dword [esp + 0x28], 0xffffffff
je 0x10001818
push esi
lea eax, [esp + 0x27c]
push eax
call ebx
lea eax, [esp + 0x54]
push eax
lea eax, [esp + 0x27c]
push eax
call edi
test byte [esp + 0x28], 0x10
je 0x100017fd
cmp dword [esp + 0x14], 0
je 0x100017ca
push dword [esp + 0x24]
lea eax, [esp + 0x27c]
push eax
call dword [esp + 0x1c]
test eax, eax
je 0x10001831
cmp dword [ebp + 0xc], 0
je 0x10001818
push dword [esp + 0x24]
lea eax, [esp + 0x27c]
push dword [esp + 0x18]
push dword [esp + 0x24]
push dword [esp + 0x24]
push dword [ebp + 0xc]
push eax
call fcn.10001648
push 2
pop ecx
cmp eax, ecx
jne 0x10001818
mov dword [esp + 0x10], ecx
jmp 0x10001839
cmp dword [esp + 0x18], 0
je 0x10001818
push dword [esp + 0x1c]
lea eax, [esp + 0x27c]
push eax
call dword [esp + 0x20]
test eax, eax
je 0x10001831
lea eax, [esp + 0x28]
push eax
push dword [esp + 0x24]
call dword [sym.imp.KERNEL32.dll_FindNextFileW]
test eax, eax
jne 0x10001753
jmp 0x10001839
mov dword [esp + 0x10], 2
push dword [esp + 0x20]
call dword [sym.imp.KERNEL32.dll_FindClose]
mov eax, dword [esp + 0x10]
jmp 0x1000184b
xor eax, eax
mov ecx, dword [esp + 0xa9c]
pop edi
pop esi
pop ebx
xor ecx, esp
call fcn.1003b824
mov esp, ebp
pop ebp
ret 0x18