joyce8/EMBER2024-capa huggingface dataset:
Function at 0x401b10
Capabilities:
Access peb ldr_data
Get ntdll base address

Disassembly:
push 0xffffffffffffffff
push 0x407482
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x88
push ebx
push esi
push edi
mov edi, ecx
lea ecx, [esp + 0x14]
call sub.MFC42.DLL_CString::CString
lea ecx, [esp + 0x18]
mov dword [esp + 0x9c], 0
call sub.MFC42.DLL_CStdioFile::CStdioFile
mov byte [esp + 0x9c], 1
call sub.MFC42.DLL_AfxGetModuleState
mov eax, dword [eax + 8]
lea ecx, [esp + 0x30]
push 0x104
push ecx
push eax
call dword [sym.imp.KERNEL32.dll_GetModuleFileNameA]
lea edx, [esp + 0x30]
lea ecx, [esp + 0x10]
push edx
call sub.MFC42.DLL_CString::CString_1
mov bl, 2
push 0x5c
lea ecx, [esp + 0x14]
mov byte [esp + 0xa0], bl
call sub.MFC42.DLL_CString::ReverseFind
push eax
lea eax, [esp + 0x10]
push 0
push eax
lea ecx, [esp + 0x1c]
call sub.MFC42.DLL_CString::Mid
push eax
lea ecx, [esp + 0x14]
mov byte [esp + 0xa0], 3
call fcn.00406920
lea ecx, [esp + 0xc]
mov byte [esp + 0x9c], bl
call fcn.00406896
lea ecx, [esp + 0x10]
push str.SGTKEif.txt
lea edx, [esp + 0x10]
push ecx
push edx
call sub.MFC42.DLL_operator
mov eax, dword [eax]
push 0
push 0x4000
push eax
lea ecx, [esp + 0x24]
mov byte [esp + 0xa8], 4
call sub.MFC42.DLL_CStdioFile::Open
lea ecx, [esp + 0xc]
mov esi, eax
mov byte [esp + 0x9c], bl
call fcn.00406896
test esi, esi
je 0x401cb5
lea ecx, [esp + 0xc]
call sub.MFC42.DLL_CString::CString
mov eax, dword [edi + 0x20]
push 0
push 0
push 0x1009
push eax
mov byte [esp + 0xac], 5
mov dword [edi + 0xf8], 0
call dword [sym.imp.USER32.dll_SendMessageA]
lea ecx, [esp + 0xc]
push ecx
lea ecx, [esp + 0x1c]
call sub.MFC42.DLL_CStdioFile::ReadString
test eax, eax
je 0x401ca3
push 0x61
lea ecx, [esp + 0x10]
call sub.MFC42.DLL_CString::Find
test eax, eax
je 0x401c79
push 0x41
lea ecx, [esp + 0x10]
call sub.MFC42.DLL_CString::Find
test eax, eax
je 0x401c79
push 0x3d
lea ecx, [esp + 0x10]
call sub.MFC42.DLL_CString::Find
test eax, eax
jne 0x401c91
push ecx
lea edx, [esp + 0x10]
mov ecx, esp
mov dword [esp + 0x30], esp
push edx
call sub.MFC42.DLL_CString::CString_2
mov ecx, edi
call fcn.00401740
lea eax, [esp + 0xc]
lea ecx, [esp + 0x18]
push eax
call sub.MFC42.DLL_CStdioFile::ReadString
test eax, eax
jne 0x401c4c
lea ecx, [esp + 0xc]
mov byte [esp + 0x9c], bl
call fcn.00406896
jmp 0x401cc8
push 0x10
push str.SGTKEif
push 0x40c0b0
mov ecx, edi
call sub.MFC42.DLL_CWnd::MessageBoxA
lea ecx, [esp + 0x10]
mov byte [esp + 0x9c], 1
call fcn.00406896
lea ecx, [esp + 0x18]
mov byte [esp + 0x9c], 0
call fcn.00406a46
lea ecx, [esp + 0x14]
mov dword [esp + 0x9c], 0xffffffff
call fcn.00406896
mov ecx, dword [esp + 0x94]
pop edi
pop esi
mov dword fs:[0], ecx
pop ebx
add esp, 0x94
ret
Function at 0x404920
Capabilities:
Create process on windows

Disassembly:
push 0xffffffffffffffff
push 0x407a40
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
push ecx
push esi
mov esi, ecx
lea ecx, [esp + 4]
mov dword [esp + 0x10], 0
call sub.MFC42.DLL_CString::CString
mov eax, dword [esp + 0x18]
mov ecx, dword [esi + 0x20]
push 1
push 0
push 0
push eax
push str.open
push ecx
call dword [sym.imp.SHELL32.dll_ShellExecuteA]
cmp eax, 0x20
pop esi
ja case.0x404972.0
xor edx, edx
mov dl, byte [eax + 0x4049b4]
jmp dword [edx*4 + 0x4049ac]
lea ecx, [esp]
mov byte [esp + 0xc], 0
call fcn.00406896
lea ecx, [esp + 0x14]
mov dword [esp + 0xc], 0xffffffff
call fcn.00406896
mov ecx, dword [esp + 4]
mov dword fs:[0], ecx
add esp, 0x10
ret 4
nop
nop
nop
nop

Function at 0x404ce0
Capabilities:
Write file on windows

Disassembly:
sub esp, 0xc
mov edx, dword [esp + 0x10]
lea eax, [esp + 0x14]
push ebx
push ebp
push esi
mov esi, ecx
mov ecx, dword [esp + 0x20]
push edi
lea edi, [esi + 0x20]
push edi
push eax
mov eax, dword [esi]
push ecx
push edx
push eax
call dword [sym.imp.KERNEL32.dll_WriteFile]
test eax, eax
jne 0x404d72
mov ebp, dword [sym.imp.KERNEL32.dll_GetLastError]
call ebp
cmp eax, 0x3e5
jne 0x404d57
mov edx, dword [esi]
mov ebx, dword [sym.imp.KERNEL32.dll_GetOverlappedResult]
lea ecx, [esp + 0x24]
push 1
push ecx
push edi
push edx
call ebx
test eax, eax
jne 0x404d72
call ebp
cmp eax, 0x3e4
jne 0x404d5f
mov ecx, dword [esi]
lea eax, [esp + 0x24]
push 1
push eax
push edi
push ecx
call ebx
test eax, eax
je 0x404d2f
mov eax, dword [esp + 0x24]
pop edi
pop esi
pop ebp
pop ebx
add esp, 0xc
ret 8
mov dword [esp + 0x24], 0
mov ecx, dword [esi]
lea edx, [esp + 0x10]
lea eax, [esp + 0x20]
push edx
push eax
push ecx
call dword [sym.imp.KERNEL32.dll_ClearCommError]
mov eax, dword [esp + 0x24]
pop edi
pop esi
pop ebp
pop ebx
add esp, 0xc
ret 8

Function at 0x404d80
Capabilities:
Read file on windows

Disassembly:
sub esp, 0x14
push ebx
push ebp
mov ebp, dword [sym.imp.KERNEL32.dll_ClearCommError]
push esi
mov esi, ecx
lea eax, [esp + 0x14]
push edi
lea ecx, [esp + 0x14]
mov edx, dword [esi]
push eax
push ecx
push edx
call ebp
mov eax, dword [esp + 0x1c]
test eax, eax
mov dword [esp + 0x10], eax
jbe 0x404e39
mov ecx, dword [esp + 0x2c]
mov edx, dword [esp + 0x28]
lea edi, [esi + 0xc]
lea eax, [esp + 0x10]
push edi
push eax
mov eax, dword [esi]
push ecx
push edx
push eax
call dword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
jne 0x404e35
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0x3e5
jne 0x404e1e
mov edx, dword [esi]
mov ebx, dword [sym.imp.KERNEL32.dll_GetOverlappedResult]
lea ecx, [esp + 0x10]
push 1
push ecx
push edi
push edx
call ebx
test eax, eax
jne 0x404e35
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0x3e4
jne 0x404e26
mov ecx, dword [esi]
lea eax, [esp + 0x10]
push 1
push eax
push edi
push ecx
call ebx
test eax, eax
je 0x404df2
mov eax, dword [esp + 0x10]
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x14
ret 8
mov dword [esp + 0x10], 0
mov ecx, dword [esi]
lea edx, [esp + 0x18]
lea eax, [esp + 0x14]
push edx
push eax
push ecx
call ebp
mov eax, dword [esp + 0x10]
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x14
ret 8
Function at 0x4056b0
Capabilities:
Resolve function by parsing pe exports

Disassembly:
mov eax, dword fs:[0]
push 0xffffffffffffffff
push 0x407ae0
push eax
mov dword fs:[0], esp
sub esp, 0x78
push ebx
mov ebx, ecx
push ebp
push esi
mov eax, dword [ebx + 4]
xor esi, esi
cmp eax, esi
je 0x405814
mov eax, dword [eax + 0x20]
push eax
call dword [sym.imp.USER32.dll_IsWindow]
test eax, eax
je 0x405814
mov dword [esp + 0x3c], esi
mov dword [esp + 0x40], esi
mov dword [esp + 0x44], esi
mov dword [esp + 0x48], esi
mov ecx, dword [ebx + 4]
push 5
mov dword [esp + 0x90], esi
mov dword [esp + 0x10], esi
mov edx, dword [ecx + 0x20]
push edx
call dword [sym.imp.USER32.dll_GetWindow]
mov ebp, eax
cmp ebp, esi
je 0x405814
push edi
mov al, byte [esp + 0x9c]
test al, al
jne 0x405753
mov eax, ebp
xor edx, edx
shr eax, 4
div dword [ebx + 0x20]
mov eax, dword [ebx + 0x1c]
cmp eax, esi
je 0x405753
mov eax, dword [eax + edx*4]
cmp eax, esi
je 0x405753
cmp dword [eax + 8], ebp
je 0x40582e
mov eax, dword [eax]
cmp eax, esi
jne 0x405744
push ebp
xor edi, edi
call dword [sym.imp.USER32.dll_IsWindow]
test eax, eax
je 0x4057e4
lea eax, [esp + 0x5c]
mov dword [esp + 0x5c], 0x2c
push eax
push ebp
call dword [sym.imp.USER32.dll_GetWindowPlacement]
lea ecx, [esp + 0x78]
lea edx, [esp + 0x14]
push ecx
push edx
call dword [sym.imp.USER32.dll_CopyRect]
mov ecx, dword [esp + 0x18]
mov eax, dword [esp + 0x14]
mov edx, dword [esp + 0x1c]
mov dword [esp + 0x28], ecx
mov ecx, dword [esp + 0x98]
mov dword [esp + 0x24], eax
mov eax, dword [esp + 0x20]
mov dword [esp + 0x2c], edx
mov edx, dword [ecx]
mov dword [esp + 0x30], eax
mov dword [esp + 0x38], esi
mov dword [esp + 0x3c], edi
mov dword [esp + 0x34], edx
mov eax, dword [ebx]
lea ecx, [esp + 0x24]
push 1
push ecx
push ebp
mov ecx, ebx
mov byte [esp + 0x9c], 1
call dword [eax + 0xc]
test al, al
mov byte [esp + 0x90], 0
je 0x4057e4
inc dword [esp + 0x10]
push 2
push ebp
call dword [sym.imp.USER32.dll_GetWindow]
mov ebp, eax
xor esi, esi
cmp ebp, esi
jne 0x405721
mov eax, dword [esp + 0x10]
pop edi
cmp eax, esi
je 0x405814
mov al, byte [esp + 0x9c]
test al, al
je 0x405814
mov edx, dword [ebx]
mov ecx, ebx
call dword [edx + 0x10]
mov ecx, dword [esp + 0x84]
pop esi
pop ebp
pop ebx
mov dword fs:[0], ecx
add esp, 0x84
ret 0xc
cmp eax, esi
je 0x405753
lea esi, [eax + 0xc]
mov ecx, 7
lea edi, [esp + 0x40]
rep movsd dword es:[edi], dword [esi]
jmp 0x4057e4
Function at 0x4063b0
Capabilities:
Access peb ldr_data
Get ntdll base address

Disassembly:
push 0xffffffffffffffff
push 0x407b58
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x24
push esi
mov esi, ecx
mov dword [esp + 4], esi
call sub.MFC42.DLL_CImageList::CImageList
mov dword [esp + 0x30], 0
mov dword [esi], 0x409d9c
mov dword [esp + 0xc], 0
mov dword [esp + 8], 0x409d88
mov eax, dword [esp + 0x38]
mov byte [esp + 0x30], 1
and eax, 0xffff
push eax
push 0
call dword [sym.imp.USER32.dll_LoadBitmapA]
push eax
lea ecx, [esp + 0xc]
call sub.MFC42.DLL_CGdiObject::Attach
mov edx, dword [esp + 0xc]
lea ecx, [esp + 0x10]
push ecx
push 0x18
push edx
call dword [sym.imp.GDI32.dll_GetObjectA]
mov ecx, dword [esp + 0x18]
mov eax, dword [esp + 0x14]
push 1
push 0
push 0x11
mov dword [esi + 0xc], ecx
push ecx
push eax
mov ecx, esi
mov dword [esi + 8], eax
call sub.MFC42.DLL_CImageList::Create
mov ecx, dword [esp + 0xc]
lea eax, [esp + 8]
mov edx, dword [esi + 4]
neg eax
sbb eax, eax
and eax, ecx
mov ecx, dword [esp + 0x3c]
push ecx
push eax
push edx
call dword [sym.imp.COMCTL32.dll_ImageList_AddMasked]
mov dword [esp + 8], 0x408848
lea ecx, [esp + 8]
mov byte [esp + 0x30], 2
call sub.MFC42.DLL_CGdiObject::DeleteObject
mov ecx, dword [esp + 0x28]
mov eax, esi
pop esi
mov dword fs:[0], ecx
add esp, 0x30
ret 8
Function at 0x41b483
Capabilities:
Read file on windows

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
pop ebp
jmp fcn.0041b2f4

Function at 0x41b87d
Capabilities:
Read file on windows

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
mov eax, 0x101c
call fcn.0040b260
mov eax, dword [0x47d140]
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.00419264
pop ecx
mov ecx, dword [ebp + 8]
mov ebx, eax
cmp dword [ecx + 8], 0
jne 0x41b8bf
mov eax, dword [ebp + 0xc]
mov edx, dword [ebp + 0x10]
jmp 0x41ba1b
mov eax, dword [ecx]
sub eax, dword [ecx + 4]
push esi
push edi
push 0
cdq
push 2
push edx
push eax
call fcn.00426310
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 + 0x47f7a0]
push dword [edi + eax + 0x24]
push dword [edi + eax + 0x20]
push ebx
call fcn.0041c61c
mov ecx, dword [esi*4 + 0x47f7a0]
add esp, 0x14
mov dword [ebp - 0x1010], eax
mov eax, edx
mov edx, dword [ebp - 0x1010]
mov dword [ebp - 0x101c], eax
cmp edx, dword [edi + ecx + 0x20]
jne 0x41ba14
cmp eax, dword [edi + ecx + 0x24]
jne 0x41ba14
push 0
lea eax, [ebp - 0x1014]
push eax
push 0x1000
lea eax, [ebp - 0x1004]
push eax
push dword [edi + ecx + 0x18]
call dword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
je 0x41ba14
push dword [ebp - 0x100c]
push 0
push dword [ebp + 0x10]
push dword [ebp + 0xc]
push ebx
call fcn.0041c61c
add esp, 0x14
test edx, edx
jl 0x41ba14
jg 0x41b98a
test eax, eax
jb 0x41ba14
mov ebx, dword [ebp - 0x1018]
mov eax, dword [ebp - 0x1014]
test ebx, ebx
jg 0x41ba14
jl 0x41b9a4
cmp dword [ebp - 0x1008], eax
ja 0x41ba14
lea edi, [ebp - 0x1004]
xor edx, edx
add edi, eax
lea ecx, [ebp - 0x1004]
xor esi, esi
cmp dword [ebp - 0x1008], edx
jne 0x41b9c2
test ebx, ebx
je 0x41b9fb
cmp ecx, edi
jae 0x41b9fb
mov al, byte [ecx]
cmp al, 0xd
jne 0x41b9dc
lea eax, [edi - 1]
cmp ecx, eax
jae 0x41b9e8
cmp byte [ecx + 1], 0xa
jne 0x41b9e8
inc ecx
jmp 0x41b9e8
movzx eax, al
movsx eax, byte [eax + 0x47d408]
add ecx, eax
add esi, 1
adc edx, 0
inc ecx
cmp esi, dword [ebp - 0x1008]
jne 0x41b9c2
cmp edx, ebx
jne 0x41b9c2
lea eax, [ebp - 0x1004]
sub ecx, eax
mov eax, ecx
cdq
add eax, dword [ebp - 0x1010]
adc edx, dword [ebp - 0x101c]
jmp 0x41ba19
or edx, 0xffffffff
mov eax, edx
pop edi
pop esi
mov ecx, dword [ebp - 4]
xor ecx, ebp
pop ebx
call fcn.0040a62d
leave
ret
Function at 0x41baba
Capabilities:
Read file on windows

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x14
mov eax, dword [ebp + 8]
mov ecx, eax
push ebx
mov ebx, dword [ebp + 0xc]
and eax, 0x3f
sar ecx, 6
push esi
push edi
imul edi, eax, 0x38
mov eax, dword [ecx*4 + 0x47f7a0]
mov dword [ebp - 0x10], ecx
mov ecx, dword [eax + edi + 0x18]
mov dword [ebp - 0x14], ecx
mov ecx, dword [ebp + 0x10]
test ecx, ecx
je 0x41bafa
cmp byte [ebx], 0xa
jne 0x41bafa
or byte [eax + edi + 0x28], 4
jmp 0x41baff
and byte [eax + edi + 0x28], 0xfb
add ecx, ebx
mov edx, ebx
mov dword [ebp - 0xc], ecx
mov esi, ebx
cmp ebx, ecx
jae 0x41bbfd
mov al, byte [edx]
cmp al, 0x1a
je 0x41bbdf
lea ecx, [edx + 1]
mov dword [ebp - 8], ecx
mov ecx, dword [ebp - 0xc]
cmp al, 0xd
je 0x41bb2e
mov edx, dword [ebp - 8]
mov byte [esi], al
jmp 0x41bb53
mov eax, dword [ebp - 8]
cmp eax, ecx
jae 0x41bb5d
mov cl, byte [eax]
xor eax, eax
cmp cl, 0xa
sete al
inc eax
add edx, eax
cmp cl, 0xa
sete al
dec al
and al, 3
add al, 0xa
mov byte [esi], al
mov ecx, dword [ebp - 0xc]
inc esi
cmp edx, ecx
jb 0x41bb10
jmp 0x41bbfd
push 0
lea eax, [ebp - 0xc]
push eax
push 1
lea eax, [ebp - 1]
push eax
push dword [ebp - 0x14]
call dword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
je 0x41bbda
cmp dword [ebp - 0xc], 0
je 0x41bbda
mov ecx, dword [ebp - 0x10]
mov eax, dword [ecx*4 + 0x47f7a0]
test byte [eax + edi + 0x28], 0x48
je 0x41bbb4
mov dl, byte [ebp - 1]
lea eax, [esi + 1]
mov dword [ebp - 0x14], eax
cmp dl, 0xa
jne 0x41bb9f
mov byte [esi], dl
jmp 0x41bbb0
mov byte [esi], 0xd
mov eax, dword [ecx*4 + 0x47f7a0]
mov byte [eax + edi + 0x2a], dl
mov eax, dword [ebp - 0x14]
mov esi, eax
jmp 0x41bbfd
cmp byte [ebp - 1], 0xa
jne 0x41bbc3
cmp esi, ebx
jne 0x41bbc3
mov byte [esi], 0xa
jmp 0x41bbfc
push 1
push 0xffffffffffffffff
push 0xffffffffffffffff
push dword [ebp + 8]
call fcn.0041c63a
add esp, 0x10
cmp byte [ebp - 1], 0xa
je 0x41bbfd
mov byte [esi], 0xd
jmp 0x41bbfc
mov ecx, dword [ebp - 0x10]
mov ecx, dword [ecx*4 + 0x47f7a0]
mov al, byte [ecx + edi + 0x28]
test al, 0x40
jne 0x41bbf9
or al, 2
mov byte [ecx + edi + 0x28], al
jmp 0x41bbfd
mov byte [esi], 0x1a
inc esi
sub esi, ebx
pop edi
mov eax, esi
pop esi
pop ebx
leave
ret
Function at 0x41bc06
Capabilities:
Read file on windows

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x18
mov eax, dword [ebp + 8]
push ebx
push esi
mov esi, dword [ebp + 0xc]
mov ebx, eax
and eax, 0x3f
sar ebx, 6
push edi
imul edi, eax, 0x38
push 0xa
mov eax, dword [ebx*4 + 0x47f7a0]
pop edx
mov dword [ebp - 0x14], edx
mov ecx, dword [edi + eax + 0x18]
mov dword [ebp - 0x18], ecx
mov ecx, dword [ebp + 0x10]
test ecx, ecx
je 0x41bc49
cmp word [esi], dx
jne 0x41bc49
or byte [edi + eax + 0x28], 4
jmp 0x41bc4e
and byte [edi + eax + 0x28], 0xfb
lea edx, [esi + ecx*2]
mov eax, esi
mov dword [ebp - 8], edx
mov dword [ebp - 4], eax
cmp eax, edx
jae 0x41bda1
mov dword [ebp - 0xc], 0xd
movzx ecx, word [eax]
mov edx, ecx
mov dword [ebp - 0x10], edx
push 0x1a
pop edx
cmp cx, dx
mov edx, dword [ebp - 8]
je 0x41bd81
add eax, 2
cmp cx, word [ebp - 0xc]
je 0x41bc90
mov dword [ebp - 4], eax
mov word [esi], cx
jmp 0x41bcc6
cmp eax, edx
jae 0x41bcd2
movzx eax, word [eax]
xor ecx, ecx
cmp ax, word [ebp - 0x14]
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 - 8]
sete al
dec eax
and eax, 3
add eax, ecx
mov word [esi], ax
mov eax, dword [ebp - 4]
add esi, 2
cmp eax, edx
jb 0x41bc68
jmp 0x41bda1
push 0
lea eax, [ebp - 0x14]
push eax
push 2
lea eax, [ebp - 4]
push eax
push dword [ebp - 0x18]
call dword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
je 0x41bd7d
cmp dword [ebp - 0x14], 0
je 0x41bd7d
mov eax, dword [ebx*4 + 0x47f7a0]
push 0xa
test byte [edi + eax + 0x28], 0x48
je 0x41bd55
mov dx, word [ebp - 4]
lea eax, [esi + 2]
pop ecx
mov dword [ebp - 0x18], eax
cmp dx, cx
jne 0x41bd1e
mov word [esi], cx
jmp 0x41bd51
push 0xd
pop eax
mov word [esi], ax
mov eax, dword [ebx*4 + 0x47f7a0]
movzx ecx, dx
shr ecx, 8
push 0xa
mov byte [edi + eax + 0x2a], dl
mov eax, dword [ebx*4 + 0x47f7a0]
mov byte [edi + eax + 0x2b], cl
mov eax, dword [ebx*4 + 0x47f7a0]
pop ecx
mov byte [edi + eax + 0x2c], cl
mov eax, dword [ebp - 0x18]
mov esi, eax
jmp 0x41bda1
pop ebx
cmp word [ebp - 4], bx
jne 0x41bd66
cmp esi, dword [ebp + 0xc]
jne 0x41bd66
mov word [esi], bx
jmp 0x41bd9e
push 1
push 0xffffffffffffffff
push 0xfffffffffffffffe
push dword [ebp + 8]
call fcn.0041c63a
add esp, 0x10
cmp word [ebp - 4], bx
je 0x41bda1
push 0xd
jmp 0x41bd9a
mov ecx, dword [ebx*4 + 0x47f7a0]
mov al, byte [ecx + edi + 0x28]
test al, 0x40
jne 0x41bd98
or al, 2
mov byte [ecx + edi + 0x28], al
jmp 0x41bda1
push 0x1a
pop eax
mov word [esi], ax
add esi, 2
sub esi, dword [ebp + 0xc]
and esi, 0xfffffffe
pop edi
mov eax, esi
pop esi
pop ebx
leave
ret
Function at 0x7c6c30
Capabilities:
Packed with generic packer

Disassembly:
pushal
mov esi, section.UPX1
lea edi, [esi - 0x28a000]
push edi
or ebp, 0xffffffff
jmp 0x7c6c52
mov al, byte [esi]
inc esi
mov byte [edi], al
inc edi
add ebx, ebx
jne 0x7c6c59
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
jb 0x7c6c48
mov eax, 1
add ebx, ebx
jne 0x7c6c6b
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc eax, eax
add ebx, ebx
jae 0x7c6c7c
jne 0x7c6c9b
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
jb 0x7c6c9b
dec eax
add ebx, ebx
jne 0x7c6c88
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc eax, eax
jmp 0x7c6c60
add ebx, ebx
jne 0x7c6c97
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc ecx, ecx
jmp 0x7c6ced
xor ecx, ecx
sub eax, 3
jb 0x7c6cb3
shl eax, 8
mov al, byte [esi]
inc esi
xor eax, 0xffffffff
je 0x7c6d22
sar eax, 1
mov ebp, eax
jmp 0x7c6cbe
add ebx, ebx
jne 0x7c6cbe
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
jb 0x7c6c8c
inc ecx
add ebx, ebx
jne 0x7c6ccc
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
jb 0x7c6c8c
add ebx, ebx
jne 0x7c6cd9
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc ecx, ecx
add ebx, ebx
jae 0x7c6cce
jne 0x7c6cea
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
jae 0x7c6cce
add ecx, 2
cmp ebp, 0xfffffb00
adc ecx, 2
lea edx, [edi + ebp]
cmp ebp, 0xfffffffc
jbe 0x7c6d0c
mov al, byte [edx]
inc edx
mov byte [edi], al
inc edi
dec ecx
jne 0x7c6cfe
jmp 0x7c6c4e
mov eax, dword [edx]
add edx, 4
mov dword [edi], eax
add edi, 4
sub ecx, 4
ja 0x7c6d0c
add edi, ecx
jmp 0x7c6c4e
pop esi
mov edi, esi
mov ecx, 0x7de5
mov al, byte [edi]
inc edi
sub al, 0xe8
cmp al, 1
ja 0x7c6d2a
cmp byte [edi], 0x1e
jne 0x7c6d2a
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 0x7c6d2f
lea edi, [esi + 0x3c3000]
mov eax, dword [edi]
or eax, eax
je 0x7c6da7
mov ebx, dword [edi + 4]
lea eax, [eax + esi + 0x3cb440]
add ebx, esi
push eax
add edi, 8
call dword [esi + 0x3cb578]
xchg ebp, eax
mov al, byte [edi]
inc edi
or al, al
je 0x7c6d5c
mov ecx, edi
jns 0x7c6d8b
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 + 0x3cb580]
or eax, eax
je 0x7c6da1
mov dword [ebx], eax
add ebx, 4
jmp 0x7c6d79
call dword [esi + 0x3cb57c]
mov ebp, dword [esi + 0x3cb584]
lea edi, [esi - 0x1000]
mov ebx, 0x1000
push eax
push esp
push 4
push ebx
push edi
call ebp
lea eax, [edi + 0x24f]
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 0x7c6ddb
sub esp, 0xffffff80
jmp 0x5199c2
Function at 0x41f860
Capabilities:
Enumerate files on windows

Disassembly:
push 0xffffffffffffffff
push 0x4a2b7b
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x180
push ebx
push ebp
mov ebp, ecx
lea ecx, [esp + 8]
lea eax, [ebp + 0x40]
push eax
call fcn.00494f59
mov ecx, dword [esp + 8]
mov dword [esp + 0x190], 0
mov eax, dword [ecx - 8]
test eax, eax
je 0x41f8e2
lea edx, [esp + 0x10]
push 1
push edx
lea ecx, [esp + 0x10]
call fcn.0049262d
mov eax, dword [eax]
push 0x691274
push eax
call fcn.00483e44
add esp, 8
lea ecx, [esp + 0x10]
test eax, eax
setne bl
call fcn.004951e4
test bl, bl
je 0x41f8e2
push 0x691274
lea ecx, [esp + 0xc]
call fcn.004955c0
push 0x694dec
lea ecx, [esp + 0xc]
call fcn.004955c0
mov ecx, dword [esp + 8]
lea eax, [esp + 0x48]
push eax
push ecx
call dword [sym.imp.KERNEL32.dll_FindFirstFileA]
cmp eax, 0xffffffff
mov dword [esp + 0xc], eax
jne 0x41f91e
lea ecx, [esp + 8]
mov dword [esp + 0x190], eax
call fcn.004951e4
jmp 0x41f9e9
push esi
mov esi, dword [esp + 0x19c]
push edi
mov edi, dword [sym.imp.USER32.dll_SendMessageA]
mov ebx, 0x23
test byte [esp + 0x50], 0x10
je 0x41f9a2
lea edx, [esp + 0x7c]
push 0x694de8
push edx
call fcn.00483e44
add esp, 8
test eax, eax
je 0x41f9a2
lea eax, [esp + 0x7c]
push 0x694de4
push eax
call fcn.00483e44
add esp, 8
test eax, eax
je 0x41f9a2
mov eax, dword [ebp + 0x1c]
lea edx, [esp + 0x1c]
push edx
push 0
lea ecx, [esp + 0x84]
push 0x1100
push eax
mov dword [esp + 0x2c], esi
mov dword [esp + 0x30], 0xffff0003
mov dword [esp + 0x4c], 0
mov dword [esp + 0x50], 1
mov dword [esp + 0x44], ecx
mov dword [esp + 0x34], ebx
call edi
mov edx, dword [esp + 0x14]
lea ecx, [esp + 0x50]
push ecx
push edx
call dword [sym.imp.KERNEL32.dll_FindNextFileA]
test eax, eax
jne 0x41f932
mov eax, dword [esp + 0x14]
push eax
call dword [sym.imp.KERNEL32.dll_FindClose]
mov ecx, dword [ebp + 0x1c]
push esi
push 2
push 0x1102
push ecx
call edi
lea ecx, [esp + 0x10]
mov dword [esp + 0x198], 0xffffffff
call fcn.004951e4
pop edi
pop esi
mov ecx, dword [esp + 0x188]
pop ebp
pop ebx
mov dword fs:[0], ecx
add esp, 0x18c
ret 4

Function at 0x420c60
Capabilities:
Query or enumerate registry value

Disassembly:
mov ecx, dword [esp + 8]
mov edx, dword [esp + 4]
sub esp, 0x10c
lea eax, [esp]
push esi
push eax
push 1
push 0
push ecx
push edx
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
mov esi, eax
test esi, esi
jne 0x420cc2
mov edx, dword [esp + 4]
lea eax, [esp + 8]
lea ecx, [esp + 0xc]
push eax
push ecx
push esi
push edx
mov dword [esp + 0x18], 0x104
call dword [sym.imp.ADVAPI32.dll_RegQueryValueA]
mov ecx, dword [esp + 0x11c]
lea eax, [esp + 0xc]
push eax
push ecx
call dword [sym.imp.KERNEL32.dll_lstrcpyA]
mov edx, dword [esp + 4]
push edx
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov eax, esi
pop esi
add esp, 0x10c
ret 0xc