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

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x1c
mov eax, dword [ebp + 8]
mov ecx, eax
push ebx
mov ebx, dword [ebp + 0xc]
and eax, 0x3f
push esi
sar ecx, 6
push edi
imul edi, eax, 0x38
mov dword [ebp - 8], ecx
mov eax, dword [ecx*4 + 0x522a98]
push 0xa
pop edx
mov dword [ebp - 0x18], edx
mov ecx, dword [eax + edi + 0x18]
mov dword [ebp - 0x1c], ecx
mov ecx, dword [ebp + 0x10]
test ecx, ecx
je 0x4cd665
cmp word [ebx], dx
jne 0x4cd665
or byte [eax + edi + 0x28], 4
jmp 0x4cd66a
and byte [eax + edi + 0x28], 0xfb
lea edx, [ebx + ecx*2]
mov eax, ebx
mov dword [ebp - 0xc], edx
mov esi, ebx
mov dword [ebp - 4], eax
cmp ebx, edx
jae 0x4cd7cd
mov dword [ebp - 0x10], 0xd
movzx ecx, word [eax]
mov edx, ecx
mov dword [ebp - 0x14], edx
mov edx, dword [ebp - 0xc]
cmp ecx, 0x1a
je 0x4cd7ad
add eax, 2
cmp cx, word [ebp - 0x10]
je 0x4cd6ab
mov dword [ebp - 4], eax
mov word [esi], cx
jmp 0x4cd6e1
cmp eax, edx
jae 0x4cd6ef
movzx eax, word [eax]
xor ecx, ecx
cmp ax, word [ebp - 0x18]
mov edx, eax
push 0xa
sete cl
xor eax, eax
lea ecx, [ecx*2 + 2]
add dword [ebp - 4], ecx
pop ecx
cmp dx, cx
mov edx, dword [ebp - 0xc]
sete al
dec eax
and eax, 3
add eax, ecx
mov word [esi], ax
mov eax, dword [ebp - 4]
push 2
pop ecx
add esi, ecx
cmp eax, edx
jb 0x4cd686
jmp 0x4cd7cd
push 0
lea eax, [ebp - 0x18]
push eax
push 2
lea eax, [ebp - 4]
push eax
push dword [ebp - 0x1c]
call dword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
je 0x4cd7a8
cmp dword [ebp - 0x18], 0
je 0x4cd7a8
mov edx, dword [ebp - 8]
push 0xa
mov eax, dword [edx*4 + 0x522a98]
test byte [eax + edi + 0x28], 0x48
je 0x4cd77e
lea eax, [esi + 2]
mov dword [ebp - 0x1c], eax
mov ax, word [ebp - 4]
pop ecx
mov word [ebp - 2], ax
cmp ax, cx
jne 0x4cd742
mov word [esi], cx
jmp 0x4cd779
push 0xd
pop ecx
mov word [esi], cx
movzx ecx, ax
mov eax, dword [edx*4 + 0x522a98]
mov dx, word [ebp - 2]
shr ecx, 8
push 0xa
mov byte [eax + edi + 0x2a], dl
mov edx, dword [ebp - 8]
mov eax, dword [edx*4 + 0x522a98]
mov byte [eax + edi + 0x2b], cl
mov eax, dword [edx*4 + 0x522a98]
pop ecx
mov byte [eax + edi + 0x2c], cl
mov esi, dword [ebp - 0x1c]
jmp 0x4cd7cd
pop eax
cmp word [ebp - 4], ax
jne 0x4cd78e
cmp esi, ebx
jne 0x4cd78e
mov word [esi], ax
jmp 0x4cd7ca
push 1
push 0xffffffffffffffff
push 0xfffffffffffffffe
push dword [ebp + 8]
call fcn.004ce058
add esp, 0x10
push 0xa
pop eax
cmp word [ebp - 4], ax
je 0x4cd7cd
push 0xd
pop eax
jmp 0x4cd789
mov edx, dword [ebp - 8]
mov edx, dword [edx*4 + 0x522a98]
mov al, byte [edx + edi + 0x28]
test al, 0x40
jne 0x4cd7c7
or al, 2
mov byte [edx + edi + 0x28], al
jmp 0x4cd7cd
mov word [esi], cx
add esi, 2
sub esi, ebx
and esi, 0xfffffffe
pop edi
mov eax, esi
pop esi
pop ebx
leave
ret
Function at 0x4d03a9
Capabilities:
Enumerate files on windows

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x264
mov eax, dword [0x51a500]
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 0x4d03f4
movzx eax, word [edx]
lea ecx, [ebp - 0x255]
push eax
call fcn.004d0544
test al, al
jne 0x4d03ee
sub edx, 2
cmp edx, edi
jne 0x4d03d4
mov ecx, dword [ebp - 0x25c]
movzx esi, word [edx]
cmp esi, 0x3a
jne 0x4d0416
lea eax, [edi + 2]
cmp edx, eax
je 0x4d0416
push ecx
xor ebx, ebx
push ebx
push ebx
push edi
call fcn.004d02f5
add esp, 0x10
jmp 0x4d0510
push esi
lea ecx, [ebp - 0x255]
call fcn.004d0544
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 0x4d0459
push dword [ebp - 0x25c]
jmp 0x4d0406
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 0x4d0496
cmp word [ebp - 0x226], 0
je 0x4d04b7
cmp word [ebp - 0x226], ax
jne 0x4d0496
cmp word [ebp - 0x224], 0
je 0x4d04b7
push ebx
push dword [ebp - 0x260]
lea eax, [ebp - 0x228]
push edi
push eax
call fcn.004d02f5
add esp, 0x10
mov dword [ebp - 0x264], eax
test eax, eax
jne 0x4d0503
lea eax, [ebp - 0x254]
push eax
push esi
call dword [sym.imp.KERNEL32.dll_FindNextFileW]
push 0x2e
test eax, eax
pop eax
jne 0x4d0470
mov eax, dword [ebx + 4]
mov edx, dword [ebx]
sub eax, edx
mov ecx, dword [ebp - 0x25c]
sar eax, 2
cmp ecx, eax
jne 0x4d04eb
push esi
call dword [sym.imp.KERNEL32.dll_FindClose]
xor eax, eax
jmp 0x4d0510
push 0x4d0125
sub eax, ecx
push 4
push eax
lea eax, [edx + ecx*4]
push eax
call fcn.004d86c0
add esp, 0x10
jmp 0x4d04e0
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.004a6675
leave
ret

Function at 0x4d0e26
Capabilities:
Query environment variable

Disassembly:
mov edi, edi
push esi
call dword [sym.imp.KERNEL32.dll_GetEnvironmentStringsW]
mov esi, eax
test esi, esi
jne 0x4d0e37
pop esi
ret
push ebx
push edi
push esi
call fcn.004d0def
mov ebx, eax
sub ebx, esi
and ebx, 0xfffffffe
push ebx
call fcn.004c9246
mov edi, eax
pop ecx
pop ecx
test edi, edi
je 0x4d0e5f
push ebx
push esi
push edi
call fcn.004a8560
add esp, 0xc
push 0
call fcn.004c865a
pop ecx
push esi
call dword [sym.imp.KERNEL32.dll_FreeEnvironmentStringsW]
mov eax, edi
pop edi
pop ebx
pop esi
ret

Function at 0x4d122f
Capabilities:
Set environment variable

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
pop ebp
jmp fcn.004d0e74
Function at 0x4d382f
Capabilities:
Get geographical location

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push ecx
push esi
push edi
call fcn.004ca78b
mov esi, dword [ebp + 8]
mov edi, eax
push 2
lea eax, [ebp - 4]
mov ecx, esi
push eax
and ecx, 0x3ff
push 0x20000001
or ecx, 0x400
push ecx
call dword [sym.imp.KERNEL32.dll_GetLocaleInfoW]
test eax, eax
je 0x4d389e
cmp esi, dword [ebp - 4]
je 0x4d3899
cmp dword [ebp + 0xc], 0
je 0x4d3899
mov esi, dword [edi + 0x50]
lea ecx, [esi + 2]
mov ax, word [esi]
add esi, 2
test ax, ax
jne 0x4d3876
push dword [edi + 0x50]
sub esi, ecx
sar esi, 1
call fcn.004d3381
pop ecx
xor ecx, ecx
cmp eax, esi
setne cl
mov eax, ecx
jmp 0x4d38a0
xor eax, eax
inc eax
jmp 0x4d38a0
xor eax, eax
pop edi
pop esi
leave
ret
Function at 0x4d3905
Capabilities:
Get geographical location

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x18
mov eax, dword [0x51a500]
xor eax, ebp
mov dword [ebp - 4], eax
mov eax, dword [ebp + 0xc]
push ebx
mov ebx, dword [ebp + 0x10]
push esi
mov esi, dword [ebp + 8]
push edi
mov dword [ebp - 0x18], eax
call fcn.004ca78b
add eax, 0x50
lea edi, [ebp - 0x10]
mov dword [ebp - 0x14], eax
xor eax, eax
stosd dword es:[edi], eax
stosd dword es:[edi], eax
stosd dword es:[edi], eax
call fcn.004ca78b
lea ecx, [ebp - 0x10]
xor edx, edx
mov dword [eax + 0x34c], ecx
lea ecx, [esi + 0x80]
mov eax, dword [ebp - 0x14]
mov dword [eax], esi
lea edi, [eax + 4]
mov dword [edi], ecx
test ecx, ecx
je 0x4d397c
cmp word [ecx], dx
je 0x4d397c
mov eax, dword [0x4fa3e4]
push edi
dec eax
push eax
push 0x4fa2d0
call fcn.004d38a4
mov eax, dword [ebp - 0x14]
add esp, 0xc
xor edx, edx
mov dword [ebp - 0x10], edx
mov eax, dword [eax]
test eax, eax
je 0x4d39ef
cmp word [eax], dx
je 0x4d39ef
mov eax, dword [edi]
test eax, eax
je 0x4d39a0
cmp word [eax], dx
je 0x4d39a0
lea eax, [ebp - 0x10]
push eax
call fcn.004d3287
jmp 0x4d39a9
lea eax, [ebp - 0x10]
push eax
call fcn.004d3322
cmp dword [ebp - 0x10], 0
pop ecx
jne 0x4d3a19
mov eax, dword [0x4fa2cc]
push dword [ebp - 0x14]
dec eax
push eax
push 0x4f9fc0
call fcn.004d38a4
add esp, 0xc
test al, al
je 0x4d3a19
mov eax, dword [edi]
xor edi, edi
test eax, eax
je 0x4d39e4
cmp word [eax], di
je 0x4d39e4
lea eax, [ebp - 0x10]
push eax
call fcn.004d3287
pop ecx
jmp 0x4d3a1b
lea eax, [ebp - 0x10]
push eax
call fcn.004d3322
jmp 0x4d39e1
mov eax, dword [edi]
test eax, eax
je 0x4d3a06
cmp word [eax], dx
je 0x4d3a06
lea eax, [ebp - 0x10]
push eax
call fcn.004d323c
pop ecx
jmp 0x4d3a19
mov dword [ebp - 0x10], 0x104
call dword [sym.imp.KERNEL32.dll_GetUserDefaultLCID]
mov dword [ebp - 8], eax
mov dword [ebp - 0xc], eax
xor edi, edi
cmp dword [ebp - 0x10], 0
je 0x4d3ae4
lea eax, [ebp - 0x10]
push eax
lea eax, [esi + 0x100]
neg esi
sbb esi, esi
and esi, eax
push esi
call fcn.004d3729
mov esi, eax
pop ecx
pop ecx
test esi, esi
je 0x4d3ae4
movzx ecx, si
push ecx
call dword [sym.imp.KERNEL32.dll_IsValidCodePage]
test eax, eax
je 0x4d3ae4
push 1
push dword [ebp - 0xc]
call dword [sym.imp.KERNEL32.dll_IsValidLocale]
test eax, eax
je 0x4d3ae4
mov eax, dword [ebp - 0x18]
test eax, eax
je 0x4d3a71
mov dword [eax], esi
mov eax, dword [ebp - 0x14]
push edi
push 0x55
add eax, 0x250
push eax
push dword [ebp - 0xc]
call fcn.004c8da7
test ebx, ebx
je 0x4d3adf
push edi
push 0x55
lea eax, [ebx + 0x120]
push eax
push dword [ebp - 0xc]
call fcn.004c8da7
push 0x40
push ebx
push 0x1001
push dword [ebp - 0xc]
call dword [sym.imp.KERNEL32.dll_GetLocaleInfoW]
test eax, eax
je 0x4d3ae4
push 0x40
lea eax, [ebx + 0x80]
push eax
push 0x1002
push dword [ebp - 8]
call dword [sym.imp.KERNEL32.dll_GetLocaleInfoW]
test eax, eax
je 0x4d3ae4
push 0xa
push 0x10
lea ecx, [ebx + 0x100]
push ecx
push esi
call fcn.004d8e5a
add esp, 0x10
xor eax, eax
inc eax
jmp 0x4d3ae6
xor eax, eax
mov ecx, dword [ebp - 4]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.004a6675
leave
ret
Function at 0x4d9505
Capabilities:
Clear file content

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x2c
push ebx
mov ebx, dword [ebp + 8]
lea ecx, [ebp - 0x2c]
push esi
push edi
push dword [ebp + 0x10]
mov edi, dword [ebp + 0x14]
push dword [ebp + 0xc]
push ebx
call fcn.004d9481
mov eax, dword [ebp - 0x2c]
and eax, dword [ebp - 0x28]
cmp eax, 0xffffffff
je 0x4d9674
mov eax, dword [ebp - 0x24]
and eax, dword [ebp - 0x20]
cmp eax, 0xffffffff
je 0x4d9674
mov ecx, dword [ebp - 0x18]
mov eax, dword [ebp - 0x1c]
mov dword [ebp - 8], ecx
mov dword [ebp - 4], eax
test ecx, ecx
jl 0x4d9629
jg 0x4d9561
test eax, eax
je 0x4d961f
push 1
push 0x1000
call fcn.004c85fd
mov esi, eax
pop ecx
pop ecx
test esi, esi
jne 0x4d9584
push 0xc
pop ebx
mov byte [edi + 0x1c], 1
mov dword [edi + 0x18], ebx
jmp 0x4d9616
push 0x8000
push ebx
call fcn.004c6ca5
pop ecx
pop ecx
mov ecx, dword [ebp - 0x1c]
mov dword [ebp - 0xc], eax
mov eax, dword [ebp - 0x18]
test eax, eax
jl 0x4d95ad
jg 0x4d95a8
cmp ecx, 0x1000
jb 0x4d95ad
mov ecx, 0x1000
push edi
push ecx
push esi
push ebx
call fcn.004cc6b3
add esp, 0x10
cmp eax, 0xffffffff
je 0x4d95f2
mov ecx, dword [ebp - 4]
cdq
sub ecx, eax
mov eax, dword [ebp - 8]
mov dword [ebp - 4], ecx
sbb eax, edx
mov dword [ebp - 8], eax
test eax, eax
jg 0x4d95a8
jl 0x4d95d9
test ecx, ecx
jne 0x4d959a
push dword [ebp - 0xc]
push ebx
call fcn.004c6ca5
push esi
call fcn.004c865a
add esp, 0xc
xor ebx, ebx
jmp 0x4d9682
cmp byte [edi + 0x24], 0
je 0x4d9609
cmp dword [edi + 0x20], 5
jne 0x4d9609
mov byte [edi + 0x1c], 1
mov dword [edi + 0x18], 0xd
cmp byte [edi + 0x1c], 0
je 0x4d9614
mov ebx, dword [edi + 0x18]
jmp 0x4d9616
xor ebx, ebx
push esi
call fcn.004c865a
pop ecx
jmp 0x4d9682
test ecx, ecx
jg 0x4d95eb
jl 0x4d9629
test eax, eax
jae 0x4d95eb
push 0
push dword [ebp + 0x10]
push dword [ebp + 0xc]
push ebx
call fcn.004ce058
and eax, edx
add esp, 0x10
cmp eax, 0xffffffff
jne 0x4d9649
cmp byte [edi + 0x1c], 0
je 0x4d95eb
jmp 0x4d967a
push ebx
call fcn.004d1800
pop ecx
push eax
call dword [sym.imp.KERNEL32.dll_SetEndOfFile]
test eax, eax
jne 0x4d95eb
call dword [sym.imp.KERNEL32.dll_GetLastError]
push 0xd
mov byte [edi + 0x24], 1
mov dword [edi + 0x20], eax
pop ebx
mov byte [edi + 0x1c], 1
mov dword [edi + 0x18], ebx
jmp 0x4d9682
cmp byte [edi + 0x1c], 0
je 0x4d967f
mov ebx, dword [edi + 0x18]
jmp 0x4d9682
push 0x16
pop ebx
push 0
push dword [ebp - 0x28]
push dword [ebp - 0x2c]
push dword [ebp - 0x14]
call fcn.004ce058
add esp, 0x10
mov eax, ebx
pop edi
pop esi
pop ebx
leave
ret

Function at 0x4d9b70
Capabilities:
Parse pe header

Disassembly:
push ebp
mov ebp, esp
mov eax, dword [ebp + 8]
mov ecx, 0x5a4d
cmp word [eax], cx
jne 0x4d9b9d
mov ecx, dword [eax + 0x3c]
add ecx, eax
cmp dword [ecx], 0x4550
jne 0x4d9b9d
mov edx, 0x10b
xor eax, eax
cmp word [ecx + 0x18], dx
sete al
pop ebp
ret
xor eax, eax
pop ebp
ret
Function at 0x4056e0
Capabilities:
Print debug messages

Disassembly:
sub esp, 0x408
mov eax, dword [section..data]
xor eax, esp
mov dword [esp + 0x404], eax
mov ecx, dword [esp + 0x40c]
lea eax, [esp + 0x410]
push eax
push ecx
lea edx, [esp + 8]
push edx
call dword [sym.imp.USER32.dll_wvsprintfA]
test eax, eax
jne 0x40573c
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
push 0x4216a0
call fcn.004056e0
add esp, 8
mov ecx, dword [esp + 0x404]
xor ecx, esp
call fcn.00405670
add esp, 0x408
ret
mov byte [esp + eax], 0
lea eax, [esp]
push eax
call dword [sym.imp.KERNEL32.dll_OutputDebugStringA]
mov ecx, dword [esp + 0x404]
xor ecx, esp
mov eax, 1
call fcn.00405670
add esp, 0x408
ret

Function at 0x405770
Capabilities:
Write file on windows

Disassembly:
sub esp, 0x80c
mov eax, dword [section..data]
xor eax, esp
mov dword [esp + 0x808], eax
push ebx
push esi
mov esi, dword [esp + 0x818]
lea eax, [esi - 1]
push edi
mov edi, 0x508
cmp eax, 1
ja 0x4058cf
mov edx, dword [esp + 0x820]
lea ecx, [esp + 0x824]
push ecx
push edx
lea eax, [esp + 0x18]
push eax
call dword [sym.imp.USER32.dll_wvsprintfW]
mov ebx, eax
test ebx, ebx
jne 0x4057d3
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov edi, eax
push edi
push 0x4216cc
jmp 0x4058c7
lea esi, [esi + esi*2]
add esi, esi
add esi, esi
mov eax, dword [esi + esi + 0x422068]
add esi, esi
test eax, eax
jne 0x405804
pop edi
pop esi
mov eax, 1
pop ebx
mov ecx, dword [esp + 0x808]
xor ecx, esp
call fcn.00405670
add esp, 0x80c
ret
cmp eax, 3
jne 0x405860
mov eax, dword [esi + 0x422058]
push 0
lea ecx, [esp + 0x10]
push ecx
push ebx
lea edx, [esp + 0x1c]
push edx
push eax
call dword [sym.imp.KERNEL32.dll_WriteConsoleW]
test eax, eax
je 0x405848
xor eax, eax
cmp dword [esp + 0xc], ebx
pop edi
pop esi
sete al
pop ebx
mov ecx, dword [esp + 0x808]
xor ecx, esp
call fcn.00405670
add esp, 0x80c
ret
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov edi, eax
cmp edi, dword [esi + 0x422064]
je 0x4058cf
push edi
push 0x421724
jmp 0x4058c1
cmp dword [esi + 0x42206c], 2
jne 0x4058cf
mov eax, dword [esi + 0x422058]
push 0
lea ecx, [esp + 0x10]
push ecx
lea edi, [ebx + ebx]
push edi
lea edx, [esp + 0x1c]
push edx
push eax
call dword [sym.imp.KERNEL32.dll_WriteFile]
test eax, eax
je 0x4058ab
xor eax, eax
cmp dword [esp + 0xc], edi
pop edi
pop esi
sete al
pop ebx
mov ecx, dword [esp + 0x808]
xor ecx, esp
call fcn.00405670
add esp, 0x80c
ret
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov edi, eax
cmp edi, dword [esi + 0x422064]
je 0x4058cf
push edi
push 0x4216f8
mov dword [esi + 0x422064], edi
call fcn.004056e0
add esp, 8
push edi
call dword [sym.imp.KERNEL32.dll_SetLastError]
mov ecx, dword [esp + 0x814]
pop edi
pop esi
pop ebx
xor ecx, esp
xor eax, eax
call fcn.00405670
add esp, 0x80c
ret
Function at 0x4058f0
Capabilities:
Write file on windows

Disassembly:
push ebx
push ebp
push esi
mov esi, dword [esp + 0x10]
lea eax, [esi - 1]
push edi
mov edi, 0x508
cmp eax, 1
ja 0x405a59
lea esi, [esi + esi*2]
add esi, esi
add esi, esi
mov eax, dword [esi + esi + 0x422068]
add esi, esi
test eax, eax
jne 0x405929
pop edi
pop esi
pop ebp
mov eax, 1
pop ebx
ret 0xc
cmp eax, 3
jne 0x4059b4
mov ebx, dword [esp + 0x1c]
mov edi, dword [esp + 0x18]
test ebx, ebx
jns 0x405956
mov eax, edi
lea edx, [eax + 2]
mov cx, word [eax]
add eax, 2
test cx, cx
jne 0x405943
sub eax, edx
sar eax, 1
mov ebx, eax
test ebx, ebx
je 0x40591d
mov edx, dword [esi + 0x422058]
mov ebp, dword [sym.imp.KERNEL32.dll_WriteConsoleW]
push 0
lea ecx, [esp + 0x20]
push ecx
push ebx
push edi
push edx
call ebp
test eax, eax
je 0x405995
mov eax, dword [esp + 0x1c]
sub ebx, eax
je 0x40591d
mov ecx, dword [esi + 0x422058]
push 0
lea edi, [edi + eax*2]
lea eax, [esp + 0x20]
push eax
push ebx
push edi
push ecx
call ebp
test eax, eax
jne 0x405974
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov edi, eax
cmp edi, dword [esi + 0x422064]
je 0x405a59
push edi
push 0x421724
jmp 0x405a4b
cmp dword [esi + 0x42206c], 2
jne 0x405a59
mov eax, dword [esp + 0x1c]
mov edi, dword [esp + 0x18]
test eax, eax
jns 0x4059e3
mov eax, edi
lea edx, [eax + 2]
mov cx, word [eax]
add eax, 2
test cx, cx
jne 0x4059d2
sub eax, edx
sar eax, 1
test eax, eax
je 0x40591d
mov ebp, dword [sym.imp.KERNEL32.dll_WriteFile]
push 0
lea edx, [esp + 0x20]
push edx
lea ebx, [eax + eax]
mov eax, dword [esi + 0x422058]
push ebx
push edi
push eax
call ebp
test eax, eax
je 0x405a35
jmp 0x405a10
mov eax, dword [esp + 0x1c]
sub ebx, eax
je 0x40591d
mov edx, dword [esi + 0x422058]
push 0
lea ecx, [esp + 0x20]
push ecx
push ebx
lea edi, [edi + eax*2]
push edi
push edx
call ebp
test eax, eax
jne 0x405a10
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov edi, eax
cmp edi, dword [esi + 0x422064]
je 0x405a59
push edi
push 0x4216f8
mov dword [esi + 0x422064], edi
call fcn.004056e0
add esp, 8
push edi
call dword [sym.imp.KERNEL32.dll_SetLastError]
pop edi
pop esi
pop ebp
xor eax, eax
pop ebx
ret 0xc
Function at 0x401f10
Capabilities:
Get disk information
Inspect load icon resource
Read file on windows

Disassembly:
mov eax, dword [esp + 4]
sub esp, 0x148
push ebx
push esi
push edi
push 0x65
push eax
call dword [sym.imp.USER32.dll_LoadIconA]
lea ecx, [esp + 0xc]
call fcn.00401000
lea ecx, [esp + 0x50]
push 0x104
push ecx
push 0
call dword [sym.imp.KERNEL32.dll_GetModuleFileNameA]
lea edx, [esp + 0x50]
lea ecx, [esp + 0xc]
push edx
call fcn.004012b0
test eax, eax
je 0x402021
lea eax, [esp + 0x50]
push 0x404030
push eax
call dword [sym.imp.MSVCRT.dll_fopen]
mov esi, eax
add esp, 8
test esi, esi
je 0x402084
lea ecx, [esp + 0x50]
push ecx
lea ecx, [esp + 0x10]
call fcn.00401290
mov edi, dword [sym.imp.MSVCRT.dll_fseek]
sub eax, 8
push 0
push eax
push esi
call edi
mov ebx, dword [sym.imp.MSVCRT.dll_fread]
push esi
push 1
lea edx, [esp + 0x24]
push 8
push edx
call ebx
mov eax, dword [esp + 0x2c]
push 0
push eax
push esi
call edi
push esi
push 1
lea ecx, [esp + 0x48]
push 0x38
push ecx
call ebx
push esi
call dword [sym.imp.MSVCRT.dll_fclose]
mov eax, dword [esp + 0x88]
mov edx, dword [esp + 0x50]
add esp, 0x3c
test eax, eax
mov eax, dword [esp + 0x10]
push edx
push eax
jne 0x401ffe
sub esp, 0x38
mov ecx, 0xe
lea esi, [esp + 0x58]
mov edi, esp
rep movsd dword es:[edi], dword [esi]
lea ecx, [esp + 0x90]
push ecx
lea ecx, [esp + 0x50]
call fcn.00401800
jmp 0x402084
sub esp, 0x38
mov ecx, 0xe
lea esi, [esp + 0x58]
mov edi, esp
rep movsd dword es:[edi], dword [esi]
lea ecx, [esp + 0x90]
push ecx
lea ecx, [esp + 0x50]
call fcn.00401a90
jmp 0x402084
lea ecx, [esp + 0x10]
call sub.MFC42.DLL_CString::CString_1
call dword [sym.imp.KERNEL32.dll_GetLogicalDrives]
mov edi, eax
mov esi, 1
xor ebx, ebx
test edi, esi
je 0x40206a
mov dl, bl
lea ecx, [esp + 0x10]
add dl, 0x41
push edx
call sub.MFC42.DLL_CString::operator_1
push 0x40412c
lea ecx, [esp + 0x14]
call fcn.004020e2
lea ecx, [esp + 0xc]
mov eax, dword [esp + 0x10]
push eax
push 0
call fcn.00401cf0
add esi, esi
inc ebx
cmp ebx, 0x1a
jl 0x402039
lea ecx, [esp + 0xc]
call fcn.00401040
lea ecx, [esp + 0x10]
call sub.MFC42.DLL_CString::CString
lea ecx, [esp + 0xc]
call fcn.00401030
pop edi
pop esi
xor eax, eax
pop ebx
add esp, 0x148
ret 0x10

Function at 0x430000
Capabilities:
Encode data using xor
Packed with generic packer

Disassembly:
pushal
nop
nop
nop
nop
nop
nop
mov eax, section..text
nop
mov ebx, 0x408ecc
mov ecx, 0x509f7531
nop
nop
test eax, eax
nop
nop
nop
je 0x43004e
nop
nop
nop
nop
nop
nop
nop
nop
xor dword [eax], ecx
nop
nop
nop
inc eax
nop
nop
nop
inc eax
nop
nop
nop
nop
nop
nop
nop
inc eax
nop
nop
nop
nop
inc eax
nop
nop
nop
nop
nop
nop
nop
cmp eax, ebx
nop
nop
nop
nop
jne 0x430024
mov eax, section..data
nop
mov ebx, 0x42e1d0
nop
nop
mov ecx, 0x6a063542
nop
nop
test eax, eax
nop
nop
nop
nop
nop
je 0x430084
nop
nop
nop
nop
nop
xor dword [eax], ecx
nop
nop
add eax, 4
nop
nop
cmp eax, ebx
nop
nop
nop
nop
nop
jne 0x43006c
nop
nop
nop
nop
nop
popal
nop
nop
jmp 0x401219
Function at 0x401950
Capabilities:
Enumerate processes

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x22c
push ebx
mov ebx, dword [ebp + 8]
test ebx, ebx
je 0x401a44
cmp dword [ebx + 0x2000], 0
jle 0x401a44
push esi
push edi
push 0x228
xor edi, edi
lea eax, [ebp - 0x228]
push edi
push eax
call fcn.00450f70
add esp, 0xc
push edi
push 2
call sub.KERNEL32.dll_CreateToolhelp32Snapshot
mov esi, eax
mov dword [ebp - 0x22c], 0x22c
mov dword [ebp + 8], esi
cmp esi, 0xffffffff
je 0x401a1f
lea eax, [ebp - 0x22c]
push eax
push esi
call sub.KERNEL32.dll_Process32FirstW
test eax, eax
je 0x401a18
lea eax, [ebp - 0x22c]
push eax
push esi
call sub.KERNEL32.dll_Process32NextW
test eax, eax
je 0x401a18
nop dword [eax]
xor edi, edi
cmp dword [ebx + 0x2000], edi
jle 0x401a05
mov esi, ebx
nop dword [eax]
test esi, esi
je 0x4019f6
push esi
lea eax, [ebp - 0x208]
push eax
call dword [sym.imp.KERNEL32.dll_lstrcmpiW]
test eax, eax
je 0x401a2a
inc edi
sub esi, 0xffffff80
cmp edi, dword [ebx + 0x2000]
jl 0x4019e0
mov esi, dword [ebp + 8]
lea eax, [ebp - 0x22c]
push eax
push esi
call sub.KERNEL32.dll_Process32NextW
test eax, eax
jne 0x4019d0
xor edi, edi
push esi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov eax, edi
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 4
mov esi, dword [ebp + 8]
mov edi, 1
push esi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov eax, edi
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 4
xor eax, eax
pop ebx
mov esp, ebp
pop ebp
ret 4
Function at 0x405e00
Capabilities:
Check if file exists

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x4892d7
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x34
push esi
mov dword [ebp - 0x10], 0
mov esi, dword [ebp + 8]
push esi
mov dword [ebp - 4], 0
call fcn.00410ac0
add esp, 4
mov eax, dword [esi + 0x14]
mov ecx, esi
mov dword [ebp - 4], 0
mov dword [ebp - 0x10], 1
cmp eax, 8
jb 0x405e50
mov ecx, dword [esi]
test ecx, ecx
je 0x405e7b
mov ecx, esi
cmp eax, 8
jb 0x405e5d
mov ecx, dword [esi]
cmp word [ecx], 0
je 0x405e7b
mov ecx, esi
cmp eax, 8
jb 0x405e6c
mov ecx, dword [esi]
push ecx
call dword [sym.imp.SHLWAPI.dll_PathFileExistsW]
test eax, eax
jne 0x405f92
lea eax, [ebp - 0x28]
push eax
call fcn.00410b30
add esp, 4
mov ecx, esi
push eax
call fcn.00403df0
mov edx, dword [ebp - 0x14]
cmp edx, 8
jb 0x405ec9
mov ecx, dword [ebp - 0x28]
lea edx, [edx*2 + 2]
mov eax, ecx
cmp edx, 0x1000
jb 0x405ebf
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x405fa3
push edx
push ecx
call fcn.0041c0cf
add esp, 8
mov eax, dword [esi + 0x14]
mov ecx, esi
cmp eax, 8
jb 0x405ed5
mov ecx, dword [esi]
test ecx, ecx
je 0x405f00
mov ecx, esi
cmp eax, 8
jb 0x405ee2
mov ecx, dword [esi]
cmp word [ecx], 0
je 0x405f00
mov ecx, esi
cmp eax, 8
jb 0x405ef1
mov ecx, dword [esi]
push ecx
call dword [sym.imp.SHLWAPI.dll_PathFileExistsW]
test eax, eax
jne 0x405f92
push str.SOFTWAREMicrosoftWindowsShellAssociationsUrlAssociationshttpUserChoice
lea eax, [ebp - 0x28]
mov dword [ebp - 4], 1
push SysReAllocString
push eax
call fcn.00406170
add esp, 0xc
mov dword [ebp - 0x10], 3
cmp dword [ebp - 0x18], 0
jne 0x405f51
push str.SOFTWAREMicrosoftWindowsShellAssociationsUrlAssociationshttpsUserChoice
lea eax, [ebp - 0x40]
push SysReAllocString
push eax
call fcn.00406170
add esp, 0xc
lea ecx, [ebp - 0x28]
push eax
call fcn.00403df0
lea ecx, [ebp - 0x40]
call fcn.004011d0
lea eax, [ebp - 0x28]
mov ecx, esi
push eax
call fcn.00403df0
mov edx, dword [ebp - 0x14]
cmp edx, 8
jb 0x405f92
mov ecx, dword [ebp - 0x28]
lea edx, [edx*2 + 2]
mov eax, ecx
cmp edx, 0x1000
jb 0x405f88
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x405fa8
push edx
push ecx
call fcn.0041c0cf
add esp, 8
mov ecx, dword [ebp - 0xc]
mov eax, esi
pop esi
mov dword fs:[0], ecx
mov esp, ebp
pop ebp
ret
call fcn.0045399f
call fcn.0045399f
int3