joyce8/EMBER2024-capa huggingface dataset:
Function at 0x474930
Capabilities:
Extract resource via kernel32 functions

Disassembly:
mov eax, dword fs:[0]
push 0xffffffffffffffff
push 0x4ad700
push eax
mov dword fs:[0], esp
sub esp, 8
push ebx
push ebp
push esi
push edi
mov esi, ecx
call fcn.004a7acc
mov edi, dword [eax + 0xc]
xor ebp, ebp
cmp edi, ebp
jne 0x474963
xor al, al
jmp 0x474a8f
mov ebx, dword [esp + 0x28]
push 0xf1
and ebx, 0xffff
push ebx
push edi
call dword [sym.imp.KERNEL32.dll_FindResourceA]
cmp eax, ebp
jne 0x474985
xor al, al
jmp 0x474a8f
push eax
push edi
call dword [sym.imp.KERNEL32.dll_LoadResource]
cmp eax, ebp
jne 0x474998
xor al, al
jmp 0x474a8f
push eax
call dword [sym.imp.KERNEL32.dll_LockResource]
mov edi, eax
cmp edi, ebp
jne 0x4749ac
xor al, al
jmp 0x474a8f
xor eax, eax
xor ecx, ecx
mov ax, word [edi + 2]
push ebp
mov dword [esi + 0x14], eax
xor eax, eax
mov ax, word [edi + 4]
mov edx, dword [esi + 0x14]
mov dword [esi + 0x18], eax
mov cx, word [edi + 6]
push ecx
push 5
push eax
push edx
lea ecx, [esi + 0x1c]
call fcn.0049c8ca
test eax, eax
jne 0x4749e0
xor al, al
jmp 0x474a8f
mov eax, dword [esi + 0x34]
push eax
mov eax, dword [esi + 0x20]
push eax
call dword [sym.imp.COMCTL32.dll_ImageList_SetBkColor]
mov dword [esp + 0x14], ebp
mov dword [esp + 0x10], 0x502dac
mov dword [esp + 0x20], ebp
call fcn.004a7acc
mov eax, dword [eax + 0xc]
push ebx
push eax
call dword [sym.imp.USER32.dll_LoadBitmapA]
push eax
lea ecx, [esp + 0x14]
call fcn.004a4b91
mov edx, dword [esp + 0x14]
mov ecx, dword [esi + 0x20]
lea eax, [esp + 0x10]
push 0xc0c0c0
neg eax
sbb eax, eax
and eax, edx
push eax
push ecx
call dword [sym.imp.COMCTL32.dll_ImageList_AddMasked]
lea ecx, [esp + 0x10]
call fcn.004a4be8
xor ecx, ecx
lea ebx, [edi + 8]
cmp word [edi + 6], cx
jbe 0x474a74
mov ax, word [ebx]
test ax, ax
je 0x474a66
mov edx, ecx
inc ecx
mov dword [esp + 0x28], ecx
push eax
push edx
mov ecx, esi
call fcn.00474ab0
mov ecx, dword [esp + 0x28]
xor edx, edx
inc ebp
mov dx, word [edi + 6]
add ebx, 2
cmp ebp, edx
jl 0x474a4a
mov dword [esp + 0x10], method.CGdiObject.virtual_0
lea ecx, [esp + 0x10]
mov dword [esp + 0x20], 1
call fcn.004a4be8
mov al, 1
mov ecx, dword [esp + 0x18]
pop edi
pop esi
pop ebp
pop ebx
mov dword fs:[0], ecx
add esp, 0x14
ret 4
Function at 0x477e10
Capabilities:
Encrypt data using rc4 ksa

Disassembly:
push ecx
mov eax, dword [0x563170]
xor edx, edx
cmp eax, edx
jne 0x477e36
xor eax, eax
mov byte [eax + 0x563070], al
inc eax
cmp eax, 0x100
jl 0x477e1e
mov dword [0x563170], 1
mov eax, dword [esp + 0xc]
push ebx
mov ebx, dword [esp + 0x14]
push esi
push edi
mov ecx, 0x40
mov esi, 0x563070
mov edi, ebx
rep movsd dword es:[edi], dword [esi]
cmp eax, edx
mov byte [ebx + 0x100], dl
mov byte [ebx + 0x101], dl
jle 0x477ec7
xor esi, esi
push ebp
mov byte [esp + 0x20], dl
xor ecx, ecx
mov edi, dword [esp + 0x20]
mov ebp, dword [esp + 0x18]
mov al, byte [esi + ebx]
and edi, 0xff
xor edx, edx
mov dl, byte [edi + ebp]
mov ebp, eax
and ebp, 0xff
add ecx, edx
add ecx, ebp
and ecx, 0x800000ff
jns 0x477e9a
dec ecx
or ecx, 0xffffff00
inc ecx
mov byte [esp + 0x10], cl
mov ecx, dword [esp + 0x10]
and ecx, 0xff
mov dl, byte [ecx + ebx]
mov byte [esi + ebx], dl
mov byte [ecx + ebx], al
lea eax, [edi + 1]
cdq
idiv dword [esp + 0x1c]
inc esi
cmp esi, 0x100
mov byte [esp + 0x20], dl
jl 0x477e68
pop ebp
pop edi
pop esi
pop ebx
pop ecx
ret

Function at 0x477ed0
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
sub esp, 8
mov eax, dword [ebp + 0x10]
push ebx
push esi
push edi
mov cl, byte [eax + 0x100]
mov dl, byte [eax + 0x101]
mov dword [ebp - 8], eax
mov byte [ebp - 1], cl
mov byte [ebp - 2], dl
xor ebx, ebx
mov bl, byte [ebp - 1]
xor edx, edx
mov dl, byte [ebp - 2]
mov esi, dword [ebp - 8]
mov edi, dword [ebp + 8]
xor eax, eax
mov ecx, dword [ebp + 0xc]
test ecx, ecx
jle 0x477f23
inc bl
mov al, byte [esi + ebx]
add dl, al
xchg byte [esi + edx], al
mov byte [esi + ebx], al
add al, byte [esi + edx]
mov al, byte [esi + eax]
xor byte [edi], al
inc edi
dec ecx
jne 0x477f0a
mov byte [ebp - 1], bl
mov byte [ebp - 2], dl
mov eax, dword [ebp + 0x10]
mov cl, byte [ebp - 1]
mov dl, byte [ebp - 2]
pop edi
pop esi
mov byte [eax + 0x100], cl
mov byte [eax + 0x101], dl
pop ebx
mov esp, ebp
pop ebp
ret

Function at 0x47e8b0
Capabilities:
Access peb ldr_data

Disassembly:
push 0xffffffffffffffff
push 0x4ad95e
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
push ecx
mov eax, dword [esp + 0x18]
push esi
push edi
mov edi, ecx
mov ecx, dword [esp + 0x1c]
push eax
push ecx
mov ecx, edi
mov dword [esp + 0x10], edi
call fcn.0047f1d0
push 0x10
mov dword [esp + 0x18], 0
mov dword [edi], 0x502fdc
call fcn.0049db16
mov esi, eax
add esp, 4
mov dword [esp + 0x20], esi
mov al, 1
test esi, esi
mov byte [esp + 0x14], al
je 0x47e943
push 4
mov byte [esi + 8], al
mov dword [esi], 0
mov dword [esi + 4], 0
call fcn.0049db16
add esp, 4
mov dword [esp + 0x1c], eax
test eax, eax
mov byte [esp + 0x14], 2
je 0x47e93c
push 0
mov ecx, eax
call fcn.00475a50
mov dword [esi + 0xc], eax
jmp 0x47e945
xor eax, eax
mov dword [esi + 0xc], eax
jmp 0x47e945
xor esi, esi
mov ecx, dword [esp + 0xc]
mov dword [edi + 0x30], esi
mov dword [edi + 0x34], 0
mov eax, edi
pop edi
pop esi
mov dword fs:[0], ecx
add esp, 0x10
ret 8
Function at 0x4a018b
Capabilities:
Get graphical window text

Disassembly:
push esi
mov esi, ecx
mov ecx, dword [esi + 0x38]
test ecx, ecx
jne 0x4a01c3
push dword [esi + 0x1c]
call dword [sym.imp.USER32.dll_GetWindowTextLengthA]
lea ecx, [eax + 1]
push ecx
mov ecx, dword [esp + 0xc]
push eax
call fcn.0049e230
push eax
push dword [esi + 0x1c]
call dword [sym.imp.USER32.dll_GetWindowTextA]
mov ecx, dword [esp + 8]
push 0xffffffffffffffff
call fcn.0049e208
jmp 0x4a01cf
mov eax, dword [ecx]
push dword [esp + 8]
call dword [eax + 0x88]
pop esi
ret 4

Function at 0x4a1955
Capabilities:
Extract resource via kernel32 functions

Disassembly:
push ebx
push esi
push edi
xor edi, edi
cmp dword [esp + 0x10], edi
mov ebx, ecx
je 0x4a1997
call fcn.004a7acc
mov esi, dword [eax + 0xc]
push 0xf0
push dword [esp + 0x14]
push esi
call dword [sym.imp.KERNEL32.dll_FindResourceA]
cmp eax, edi
je 0x4a1997
push eax
push esi
call dword [sym.imp.KERNEL32.dll_LoadResource]
cmp eax, edi
jne 0x4a198e
xor eax, eax
jmp 0x4a199f
push eax
call dword [sym.imp.KERNEL32.dll_LockResource]
mov edi, eax
push edi
mov ecx, ebx
call fcn.004a19a5
pop edi
pop esi
pop ebx
ret 4

Function at 0x4a7ffc
Capabilities:
Get thread local storage value

Disassembly:
push ebx
push esi
mov esi, ecx
lea ebx, [esi + 0x1c]
push ebx
call dword [sym.imp.KERNEL32.dll_EnterCriticalSection]
cmp dword [esp + 0x10], 0
jne 0x4a802a
push dword [esi]
call dword [sym.imp.KERNEL32.dll_TlsGetValue]
test eax, eax
je 0x4a8048
push dword [esp + 0xc]
mov ecx, esi
push eax
call fcn.004a7f62
jmp 0x4a8048
mov eax, dword [esi + 0x14]
test eax, eax
je 0x4a8048
push edi
push dword [esp + 0x10]
mov edi, dword [eax + 4]
mov ecx, esi
push eax
call fcn.004a7f62
test edi, edi
mov eax, edi
jne 0x4a8032
pop edi
push ebx
call dword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
pop esi
pop ebx
ret 8
Function at 0x100114e
Capabilities:
Terminate process

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x170
push 0x104
lea eax, [ebp - 0x170]
mov dword [ebp - 4], eax
push 1
lea eax, [ebp - 4]
push eax
push dword [ebp + 0x10]
call fcn.010010e0
cmp eax, 1
jl 0x1001217
push ebx
xor ebx, ebx
cmp byte [ebp - 0x170], bl
push esi
lea esi, [ebp - 0x170]
je 0x10011b7
cmp byte [esi], 0x3a
je 0x100119a
inc esi
cmp byte [esi], bl
jne 0x100118e
jmp 0x100119d
mov byte [esi], bl
inc esi
cmp byte [esi], bl
je 0x10011b7
push 0x10010ac
lea eax, [ebp - 0x170]
push eax
call dword [sym.imp.KERNEL32.dll_lstrcmpiA]
test eax, eax
je 0x10011bd
lea esi, [ebp - 0x170]
push 0x29
lea eax, [ebp - 0x68]
push eax
push esi
call dword [sym.imp.KERNEL32.dll_lstrlenA]
inc eax
push eax
push esi
push ebx
push ebx
call dword [sym.imp.KERNEL32.dll_MultiByteToWideChar]
test eax, eax
je 0x1001215
lea eax, [ebp - 0x14]
push eax
lea eax, [ebp - 0x68]
push eax
call dword [sym.imp.ole32.dll_CLSIDFromString]
test eax, eax
jl 0x1001215
push ebx
push ebx
call dword [sym.imp.ole32.dll_CoInitializeEx]
test eax, eax
jl 0x1001215
push ebx
lea eax, [ebp - 0x14]
push eax
call sub.ole32.dll_CoRegisterSurrogateEx
call dword [sym.imp.ole32.dll_CoUninitialize]
push ebx
call dword [sym.imp.KERNEL32.dll_GetCurrentProcess]
push eax
call dword [sym.imp.KERNEL32.dll_TerminateProcess]
pop esi
pop ebx
xor eax, eax
leave
ret 0x10
Function at 0x100121d
Capabilities:
Parse pe header

Disassembly:
push 0x70
push 0x10010b8
call fcn.01001408
xor ebx, ebx
push ebx
mov edi, dword [sym.imp.KERNEL32.dll_GetModuleHandleA]
call edi
cmp word [eax], 0x5a4d
jne 0x100125a
mov ecx, dword [eax + 0x3c]
add ecx, eax
cmp dword [ecx], 0x4550
jne 0x100125a
movzx eax, word [ecx + 0x18]
cmp eax, 0x10b
je 0x1001272
cmp eax, 0x20b
je 0x100125f
mov dword [ebp - 0x1c], ebx
jmp 0x1001286
cmp dword [ecx + 0x84], 0xe
jbe 0x100125a
xor eax, eax
cmp dword [ecx + 0xf8], ebx
jmp 0x1001280
cmp dword [ecx + 0x74], 0xe
jbe 0x100125a
xor eax, eax
cmp dword [ecx + 0xe8], ebx
setne al
mov dword [ebp - 0x1c], eax
mov dword [ebp - 4], ebx
push 2
call dword [sym.imp.msvcrt.dll___set_app_type]
pop ecx
or dword [0x1002014], 0xffffffff
or dword [0x1002018], 0xffffffff
call dword [sym.imp.msvcrt.dll___p__fmode]
mov ecx, dword [0x1002010]
mov dword [eax], ecx
call dword [sym.imp.msvcrt.dll___p__commode]
mov ecx, dword [0x100200c]
mov dword [eax], ecx
mov eax, dword [sym.imp.msvcrt.dll__adjust_fdiv]
mov eax, dword [eax]
mov dword [0x100201c], eax
call fcn.01001402
cmp dword [section..data], ebx
jne 0x10012e1
push fcn.01001402
call dword [sym.imp.msvcrt.dll___setusermatherr]
pop ecx
call fcn.010013f0
push 0x1001080
push 0x100107c
call sub.msvcrt.dll__initterm
mov eax, dword [0x1002008]
mov dword [ebp - 0x20], eax
lea eax, [ebp - 0x20]
push eax
push dword [0x1002004]
lea eax, [ebp - 0x24]
push eax
lea eax, [ebp - 0x28]
push eax
lea eax, [ebp - 0x2c]
push eax
call dword [sym.imp.msvcrt.dll___getmainargs]
mov dword [ebp - 0x30], eax
push 0x1001078
push 0x1001074
call sub.msvcrt.dll__initterm
add esp, 0x24
mov eax, dword [sym.imp.msvcrt.dll__acmdln]
mov esi, dword [eax]
mov dword [ebp - 0x34], esi
cmp byte [esi], 0x22
jne 0x1001377
inc esi
mov dword [ebp - 0x34], esi
mov al, byte [esi]
cmp al, bl
je 0x100134b
cmp al, 0x22
jne 0x100133d
cmp byte [esi], 0x22
jne 0x1001354
inc esi
mov dword [ebp - 0x34], esi
mov al, byte [esi]
cmp al, bl
je 0x100135e
cmp al, 0x20
jbe 0x1001350
mov dword [ebp - 0x4c], ebx
lea eax, [ebp - 0x78]
push eax
jmp 0x1001705
cmp byte [esi], 0x20
jbe 0x1001354
inc esi
mov dword [ebp - 0x34], esi
jmp 0x1001377
xor eax, 0x77d6afae
cmp ah, ch
sub word [ecx + 0x10033fe], 0x93a1
or eax, 1
jmp 0x100176c
sbb dh, 0xff
mov ecx, 0x4e68
inc dh
xchg al, ah
and edx, 0x6d4f0c08
xchg edx, eax
add ah, al
jmp 0x10016e4
sub ecx, 2
lea eax, [esi]
lea eax, [ecx]
mov edx, esp
nop
mov al, dl
jmp 0x100179d
sub ah, bh
xchg edx, eax
cmc
mov dl, bh
jmp 0x1001740
mov eax, ebx
xchg dl, al
xchg edx, eax
lea eax, [ecx + esi*4]
mov eax, 0x75de3f90
mov dh, 0xe8
mov eax, 0x7cc24e3f
jg 0x10016e4
lea ecx, [ecx + esi - 0x2d]
jmp 0x1003423
Function at 0x401000
Capabilities:
Terminate process

Disassembly:
cmp ecx, dword [0x80c004]
jne 0x40100a
repz ret
jmp fcn.004011ef

Function at 0x40316b
Capabilities:
Link many functions at runtime

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x24
mov eax, dword [0x80c004]
xor eax, ebp
mov dword [ebp - 4], eax
mov eax, dword [ebp + 8]
push ebx
mov dword [ebp - 0x20], eax
mov eax, dword [ebp + 0xc]
push esi
push edi
mov dword [ebp - 0x1c], eax
call fcn.00402117
and dword [ebp - 0x14], 0
cmp dword [0x80e8ac], 0
mov dword [ebp - 0x18], eax
jne 0x40321e
push str.USER32.DLL
call dword [sym.imp.KERNEL32.dll_LoadLibraryW]
mov ebx, eax
test ebx, ebx
je 0x4032c6
mov edi, dword [sym.imp.KERNEL32.dll_GetProcAddress]
push str.MessageBoxW
push ebx
call edi
test eax, eax
je 0x4032c6
mov esi, dword [sym.imp.KERNEL32.dll_EncodePointer]
push eax
call esi
push str.GetActiveWindow
push ebx
mov dword [0x80e8ac], eax
call edi
push eax
call esi
push str.GetLastActivePopup
push ebx
mov dword [0x80e8b0], eax
call edi
push eax
call esi
push str.GetUserObjectInformationW
push ebx
mov dword [0x80e8b4], eax
call edi
push eax
call esi
mov dword [0x80e8bc], eax
test eax, eax
je 0x40321e
push str.GetProcessWindowStation
push ebx
call edi
push eax
call esi
mov dword [0x80e8b8], eax
mov eax, dword [0x80e8b8]
mov ecx, dword [ebp - 0x18]
mov esi, dword [sym.imp.KERNEL32.dll_DecodePointer]
cmp eax, ecx
je 0x403277
cmp dword [0x80e8bc], ecx
je 0x403277
push eax
call esi
push dword [0x80e8bc]
mov edi, eax
call esi
mov ebx, eax
test edi, edi
je 0x403277
test ebx, ebx
je 0x403277
call edi
test eax, eax
je 0x40326e
lea ecx, [ebp - 0x24]
push ecx
push 0xc
lea ecx, [ebp - 0x10]
push ecx
push 1
push eax
call ebx
test eax, eax
je 0x40326e
test byte [ebp - 8], 1
jne 0x403277
or dword [ebp + 0x10], 0x200000
jmp 0x4032aa
mov eax, dword [0x80e8b0]
cmp eax, dword [ebp - 0x18]
je 0x4032aa
push eax
call esi
test eax, eax
je 0x4032aa
call eax
mov dword [ebp - 0x14], eax
test eax, eax
je 0x4032aa
mov eax, dword [0x80e8b4]
cmp eax, dword [ebp - 0x18]
je 0x4032aa
push eax
call esi
test eax, eax
je 0x4032aa
push dword [ebp - 0x14]
call eax
mov dword [ebp - 0x14], eax
push dword [0x80e8ac]
call esi
test eax, eax
je 0x4032c6
push dword [ebp + 0x10]
push dword [ebp - 0x1c]
push dword [ebp - 0x20]
push dword [ebp - 0x14]
call eax
jmp 0x4032c8
xor eax, eax
mov ecx, dword [ebp - 4]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.00401000
leave
ret
Function at 0x405690
Capabilities:
Allocate or change rwx memory
Create pipe
Execute shellcode via indirect call
Get common file path
Get file attributes
Get geographical location

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
sub esp, 0x44c
mov eax, dword [0x80c004]
xor eax, esp
mov dword [esp + 0x448], eax
push ebx
push esi
push edi
mov edi, dword [sym.imp.KERNEL32.dll_SetEvent]
xor ebx, ebx
xor esi, esi
cmp esi, 0x562d05
jne 0x4056c9
mov eax, dword [0x80d934]
mov dword [0x84a694], eax
cmp dword [0x84a30c], 0x3c
jne 0x4056d5
push ebx
call edi
inc esi
cmp esi, 0x5f6c74
jl 0x4056b7
cmp dword [0x84a30c], 0x7c
mov esi, dword [sym.imp.KERNEL32.dll_LoadLibraryW]
jne 0x40575b
lea ecx, [esp + 0x18]
push ecx
call dword [sym.imp.KERNEL32.dll_InterlockedDecrement]
push ebx
call dword [sym.imp.KERNEL32.dll_SetThreadLocale]
push ebx
call dword [sym.imp.KERNEL32.dll_FindAtomW]
push ebx
push ebx
push ebx
push ebx
call dword [sym.imp.KERNEL32.dll_RaiseException]
cmp dword [0x84a30c], 0x110a
jne 0x4057bc
push ebx
mov dword [0x84a300], ebx
mov dword [0x84a304], ebx
call dword [sym.imp.KERNEL32.dll_SetComputerNameA]
push ebx
push ebx
push ebx
push ebx
push ebx
push ebx
call dword [sym.imp.KERNEL32.dll_MultiByteToWideChar]
push str.alezecebesijorabifovihapida
call dword [sym.imp.KERNEL32.dll_GetFileAttributesA]
push ebx
push ebx
push ebx
push ebx
call dword [sym.imp.KERNEL32.dll_GetLocaleInfoA]
push ebx
push ebx
push ebx
call dword [sym.imp.KERNEL32.dll_HeapSize]
push ebx
push ebx
call fcn.0040100f
push ebx
push ebx
call fcn.0040100f
push ebx
push ebx
call fcn.0040100f
add esp, 0x18
call fcn.00405430
xor ecx, ecx
cmp dword [0x84a30c], ebx
jbe 0x4057fb
jmp 0x4057d0
mov eax, dword [0x84a694]
mov dword [esp + 0x10], eax
mov eax, 0xa231
add dword [esp + 0x10], eax
mov edx, dword [esp + 0x10]
mov al, byte [edx + ecx]
mov edx, dword [0x84a030]
mov byte [edx + ecx], al
inc ecx
cmp ecx, dword [0x84a30c]
jb 0x4057d0
push str.msimg32.dll
call esi
mov ecx, dword [0x84a30c]
mov edx, dword [0x84a030]
lea eax, [esp + 0x14]
push eax
push 0x40
push ecx
push edx
call dword [sym.imp.KERNEL32.dll_VirtualProtect]
call fcn.00405600
call fcn.00405450
mov edi, dword [sym.imp.USER32.dll_GetMonitorInfoA]
mov ebx, dword [sym.imp.KERNEL32.dll_GetAtomNameA]
xor esi, esi
lea eax, [esp + 0x28]
push eax
push 0
call edi
push 0
push 0
push 0
call ebx
cmp esi, 0x1a01e
jle 0x405858
cmp dword [esp + 0x30], 0xf5bed7
jne 0x405861
inc esi
cmp esi, 0x1ece7a52
jl 0x405835
mov edi, dword [sym.imp.KERNEL32.dll_ReadConsoleOutputAttribute]
mov ebx, dword [sym.imp.KERNEL32.dll_CreateFileW]
xor esi, esi
nop
cmp esi, 0x12e6c3
jne 0x40587d
call fcn.00405420
cmp dword [0x84a30c], 0x3dc
mov dword [0x84a034], 0x8e46a6f0
jne 0x4058b7
xor ecx, ecx
lea eax, [esp + 0x18]
push eax
push ecx
push ecx
push ecx
push ecx
mov dword [esp + 0x24], ecx
call edi
push 0
push 0
push 0
push 0
push 0
push 0
push str.rixovohucivununiboneb_huzurucurajo_jajonaberewevale_sivakawizematec
call ebx
inc esi
cmp esi, 0x1519a5
jl 0x405870
mov ecx, dword [esp + 0x454]
pop edi
pop esi
pop ebx
xor ecx, esp
call fcn.00401000
mov esp, ebp
pop ebp
ret
Function at 0x414ca0
Capabilities:
Hash data with md5

Disassembly:
mov eax, dword [esp + 4]
xor ecx, ecx
mov dword [eax + 0x14], ecx
mov dword [eax + 0x10], ecx
mov dword [eax], 0x67452301
mov dword [eax + 4], 0xefcdab89
mov dword [eax + 8], 0x98badcfe
mov dword [eax + 0xc], 0x10325476
ret

Function at 0x4169d0
Capabilities:
Hash data using sha1

Disassembly:
mov eax, dword [esp + 4]
xor ecx, ecx
mov dword [eax + 0x18], ecx
mov dword [eax + 0x14], ecx
mov ecx, dword [esp + 8]
mov dword [eax], 0x67452301
mov dword [eax + 4], 0xefcdab89
mov dword [eax + 8], 0x98badcfe
mov dword [eax + 0xc], 0x10325476
mov dword [eax + 0x10], 0xc3d2e1f0
mov dword [eax + 0x5c], ecx
ret

Function at 0x407120
Capabilities:
Packed with generic packer

Disassembly:
pushal
mov esi, section.UPX1
lea edi, [esi - 0x4000]
push edi
jmp 0x40713a
mov al, byte [esi]
inc esi
mov byte [edi], al
inc edi
add ebx, ebx
jne 0x407141
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
jb 0x407130
mov eax, 1
add ebx, ebx
jne 0x407153
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc eax, eax
add ebx, ebx
jae 0x407148
jne 0x407164
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
jae 0x407148
xor ecx, ecx
sub eax, 3
jb 0x407178
shl eax, 8
mov al, byte [esi]
inc esi
xor eax, 0xffffffff
je 0x4071ea
mov ebp, eax
add ebx, ebx
jne 0x407183
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc ecx, ecx
add ebx, ebx
jne 0x407190
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc ecx, ecx
jne 0x4071b4
inc ecx
add ebx, ebx
jne 0x4071a0
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc ecx, ecx
add ebx, ebx
jae 0x407195
jne 0x4071b1
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
jae 0x407195
add ecx, 2
cmp ebp, 0xfffff300
adc ecx, 1
lea edx, [edi + ebp]
cmp ebp, 0xfffffffc
jbe 0x4071d4
mov al, byte [edx]
inc edx
mov byte [edi], al
inc edi
dec ecx
jne 0x4071c5
jmp 0x407136
mov eax, dword [edx]
add edx, 4
mov dword [edi], eax
add edi, 4
sub ecx, 4
ja 0x4071d4
add edi, ecx
jmp 0x407136
pop esi
mov edi, esi
mov ecx, 0x1e
mov al, byte [edi]
inc edi
sub al, 0xe8
cmp al, 1
ja 0x4071f2
cmp byte [edi], 1
jne 0x4071f2
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 0x4071f7
lea edi, [esi + 0x5000]
mov eax, dword [edi]
or eax, eax
je 0x407266
mov ebx, dword [edi + 4]
lea eax, [eax + esi + 0x720c]
add ebx, esi
push eax
add edi, 8
call dword [esi + 0x725c]
xchg ebp, eax
mov al, byte [edi]
inc edi
or al, al
je 0x407224
mov ecx, edi
push edi
dec eax
repne scasb al, byte es:[edi]
push ebp
call dword [esi + 0x7264]
or eax, eax
je 0x407260
mov dword [ebx], eax
add ebx, 4
jmp 0x407241
call dword [esi + 0x7260]
mov ebp, dword [esi + 0x7268]
lea edi, [esi - 0x1000]
mov ebx, 0x1000
push eax
push esp
push 4
push ebx
push edi
call ebp
lea eax, [edi + 0x20f]
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 0x40729a
sub esp, 0xffffff80
jmp 0x403331
Function at 0x4030a0
Capabilities:
Get graphical window text

Disassembly:
sub esp, 0x9c
push ebx
mov ebx, dword [esp + 0xa4]
push ebp
push esi
push edi
push 0x3fa
push ebx
call dword [sym.imp.USER32.dll_GetDlgItem]
mov ebp, dword [sym.imp.USER32.dll_LoadStringA]
lea ecx, [esp + 0x2c]
push pe_nt_image_headers32
mov esi, eax
push ecx
lea eax, [esp + 0x34]
push 0xd
push 0
mov dword [esp + 0x20], 1
mov dword [esp + 0x2c], eax
call ebp
mov edi, dword [sym.imp.USER32.dll_SendMessageA]
lea edx, [esp + 0x10]
push edx
push 0
push 0x1307
push esi
call edi
lea eax, [esp + 0x2c]
push pe_nt_image_headers32
push eax
push 0xe
push 0
call ebp
lea ecx, [esp + 0x10]
push ecx
push 1
push 0x1307
push esi
call edi
lea edx, [esp + 0x2c]
push pe_nt_image_headers32
push edx
push 0xf
push 0
call ebp
lea eax, [esp + 0x10]
push eax
push 2
push 0x1307
push esi
call edi
push 1
push ebx
call fcn.00402f20
add esp, 8
push 0
push 1
push 0x130c
push esi
call edi
push ebx
call fcn.00403170
add esp, 4
mov eax, 1
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x9c
ret

Function at 0x407060
Capabilities:
Move file

Disassembly:
mov eax, dword [esp + 8]
mov ecx, dword [esp + 4]
push eax
push ecx
call dword [sym.imp.KERNEL32.dll_MoveFileA]
test eax, eax
jne 0x40707c
call dword [sym.imp.KERNEL32.dll_GetLastError]
jmp 0x40707e
xor eax, eax
test eax, eax
je 0x40708f
push eax
call fcn.004096d0
add esp, 4
or eax, 0xffffffff
ret
xor eax, eax
ret

Function at 0x4070a0
Capabilities:
Delete file

Disassembly:
mov eax, dword [esp + 4]
push eax
call dword [sym.imp.KERNEL32.dll_DeleteFileA]
test eax, eax
jne 0x4070b7
call dword [sym.imp.KERNEL32.dll_GetLastError]
jmp 0x4070b9
xor eax, eax
test eax, eax
je 0x4070ca
push eax
call fcn.004096d0
add esp, 4
or eax, 0xffffffff
ret
xor eax, eax
ret

Function at 0x407620
Capabilities:
Terminate process

Disassembly:
mov eax, dword [0x4143a0]
push ebx
push ebp
mov ebp, dword [esp + 0xc]
cmp eax, 1
push esi
jne 0x40763f
push ebp
call dword [sym.imp.KERNEL32.dll_GetCurrentProcess]
push eax
call dword [sym.imp.KERNEL32.dll_TerminateProcess]
mov eax, dword [esp + 0x14]
mov ebx, dword [esp + 0x18]
test eax, eax
mov dword [0x41439c], 1
mov byte [0x414398], bl
jne 0x407699
mov ecx, dword [0x41578c]
test ecx, ecx
je 0x407687
mov esi, dword [0x415788]
sub esi, 4
cmp esi, ecx
jb 0x407687
mov eax, dword [esi]
test eax, eax
je 0x407680
call eax
mov ecx, dword [0x41578c]
sub esi, 4
cmp esi, ecx
jae 0x407672
push 0x40d01c
push 0x40d014
call fcn.004076d0
add esp, 8
push 0x40d024
push 0x40d020
call fcn.004076d0
add esp, 8
test ebx, ebx
jne 0x4076c0
push ebp
mov dword [0x4143a0], 1
call dword [sym.imp.KERNEL32.dll_ExitProcess]
pop esi
pop ebp
pop ebx
ret
Function at 0x409ad0
Capabilities:
Resolve function by parsing pe exports

Disassembly:
mov eax, dword [esp + 4]
mov ecx, dword [0x415780]
sub esp, 0x41c
cmp eax, ecx
push ebx
push ebp
push esi
push edi
jae 0x409c7d
mov ecx, eax
mov esi, eax
sar ecx, 5
and esi, 0x1f
mov edx, dword [ecx*4 + 0x415680]
lea edi, [ecx*4 + 0x415680]
shl esi, 3
mov dword [esp + 0x24], edi
mov dword [esp + 0x14], esi
mov cl, byte [esi + edx + 4]
test cl, 1
je 0x409c7d
mov ebx, dword [esp + 0x438]
xor ebp, ebp
cmp ebx, ebp
invalid
insb byte es:[edi], dx
invalid

Function at 0x409bf9
Capabilities:
Enumerate pe sections

Disassembly:
mov ecx, dword [esp + 8]
push esi
push edi
xor edi, edi
movzx eax, word [ecx + 0x14]
movzx esi, word [ecx + 6]
test esi, esi
lea eax, [eax + ecx + 0x18]
jbe 0x409c34
mov ecx, dword [eax + 8]
test ecx, ecx
jne 0x409c1b
mov ecx, dword [eax + 0x10]
mov edx, dword [eax + 0xc]
cmp dword [esp + 0xc], edx
jb 0x409c2c
add edx, ecx
cmp dword [esp + 0xc], edx
jb 0x409c36
inc edi
add eax, 0x28
cmp edi, esi
jb 0x409c11
xor eax, eax
pop edi
pop esi
ret