joyce8/EMBER2024-capa huggingface dataset:
Function at 0x4c7250
Capabilities:
Get socket status

Disassembly:
sub esp, 0x10c
mov eax, dword [ecx]
lea ecx, [esp]
push ecx
push 0
lea edx, [esp + 0x10]
push 0
push edx
push 0
mov dword [esp + 0x14], 0
mov dword [esp + 0x18], 0
mov dword [esp + 0x20], eax
mov dword [esp + 0x1c], 1
call sub.WS2_32.dll_select
cmp eax, 0xffffffff
jne 0x4c7299
xor eax, eax
add esp, 0x10c
ret 4
mov edx, dword [esp + 0x110]
xor ecx, ecx
test eax, eax
setne cl
mov dword [edx], ecx
mov eax, 1
add esp, 0x10c
ret 4

Function at 0x4c7710
Capabilities:
Access peb ldr_data

Disassembly:
push 0xffffffffffffffff
push 0x4f6c60
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 8
push esi
mov esi, ecx
lea ecx, [esp + 4]
call fcn.004c72c0
lea eax, [esp + 4]
lea ecx, [esi + 4]
push eax
mov dword [esp + 0x18], 0
call fcn.004c7340
lea ecx, [esp + 4]
push ecx
lea ecx, [esi + 0x14]
call fcn.004c7340
lea ecx, [esi + 0xc]
call fcn.004e3d83
lea ecx, [esi + 0x10]
call fcn.004e3d83
push 0xffffffffffffffff
push 0
lea ecx, [esi + 0x1c]
call fcn.004c88d0
push 0xffffffffffffffff
push 0
lea ecx, [esi + 0x30]
call fcn.004c88d0
push 0xffffffffffffffff
push 0
lea ecx, [esi + 0x44]
call fcn.004c88d0
lea ecx, [esp + 8]
mov dword [esp + 0x14], 1
call fcn.004e3df8
lea ecx, [esp + 4]
mov dword [esp + 0x14], 0xffffffff
call fcn.004e3df8
mov ecx, dword [esp + 0xc]
pop esi
mov dword fs:[0], ecx
add esp, 0x14
ret
Function at 0x4e6212
Capabilities:
Get graphical window text

Disassembly:
push esi
mov esi, ecx
mov ecx, dword [esi + 0x38]
test ecx, ecx
jne 0x4e624a
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.004e429f
push eax
push dword [esi + 0x1c]
call dword [sym.imp.USER32.dll_GetWindowTextA]
mov ecx, dword [esp + 8]
push 0xffffffffffffffff
call fcn.004e4277
jmp 0x4e6256
mov eax, dword [ecx]
push dword [esp + 8]
call dword [eax + 0x88]
pop esi
ret 4

Function at 0x4e7903
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 0x4e7945
call fcn.004ed9af
mov esi, dword [eax + 0xc]
push 0xf0
push dword [esp + 0x14]
push esi
call dword [sym.imp.KERNEL32.dll_FindResourceA]
cmp eax, edi
je 0x4e7945
push eax
push esi
call dword [sym.imp.KERNEL32.dll_LoadResource]
cmp eax, edi
jne 0x4e793c
xor eax, eax
jmp 0x4e794d
push eax
call dword [sym.imp.KERNEL32.dll_LockResource]
mov edi, eax
push edi
mov ecx, ebx
call fcn.004e7953
pop edi
pop esi
pop ebx
ret 4

Function at 0x4ededf
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 0x4edf0d
push dword [esi]
call dword [sym.imp.KERNEL32.dll_TlsGetValue]
test eax, eax
je 0x4edf2b
push dword [esp + 0xc]
mov ecx, esi
push eax
call fcn.004ede45
jmp 0x4edf2b
mov eax, dword [esi + 0x14]
test eax, eax
je 0x4edf2b
push edi
push dword [esp + 0x10]
mov edi, dword [eax + 4]
mov ecx, esi
push eax
call fcn.004ede45
test edi, edi
mov eax, edi
jne 0x4edf15
pop edi
push ebx
call dword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
pop esi
pop ebx
ret 8
Function at 0x403986
Capabilities:
Terminate process

Disassembly:
jmp 0x458139
push 0x17
call dword [sym.imp.KERNEL32.dll_IsProcessorFeaturePresent]
test eax, eax
je 0x45814a
push 5
pop ecx
int 0x29
push esi
push 1
mov esi, 0xc0000417
push esi
push 2
call fcn.00405fc9
add esp, 0xc
push esi
call dword [sym.imp.KERNEL32.dll_GetCurrentProcess]
push eax
call dword [sym.imp.KERNEL32.dll_TerminateProcess]
pop esi
ret

Function at 0x403abc
Capabilities:
Query environment variable

Disassembly:
jmp 0x4ada12
mov edi, edi
push esi
call dword [sym.imp.KERNEL32.dll_GetEnvironmentStringsW]
mov esi, eax
test esi, esi
jne 0x4ada23
pop esi
ret
push ebx
push edi
push esi
call fcn.004ad8f9
mov ebx, eax
sub ebx, esi
and ebx, 0xfffffffe
push ebx
call fcn.00404421
mov edi, eax
pop ecx
pop ecx
test edi, edi
je 0x4ada4b
push ebx
push esi
push edi
call fcn.00405d85
add esp, 0xc
push 0
call fcn.00406a1e
pop ecx
push esi
call dword [sym.imp.KERNEL32.dll_FreeEnvironmentStringsW]
mov eax, edi
pop edi
pop ebx
pop esi
ret

Function at 0x405e66
Capabilities:
Parse pe header

Disassembly:
jmp 0x44730b
push 0
call dword [sym.imp.KERNEL32.dll_GetModuleHandleW]
test eax, eax
je 0x44734a
mov ecx, 0x5a4d
cmp word [eax], cx
jne 0x44734a
mov ecx, dword [eax + 0x3c]
add ecx, eax
cmp dword [ecx], 0x4550
jne 0x44734a
mov eax, 0x10b
cmp word [ecx + 0x18], ax
jne 0x44734a
cmp dword [ecx + 0x74], 0xe
jbe 0x44734a
cmp dword [ecx + 0xe8], 0
setne al
ret
xor al, al
ret
Function at 0x4a65e4
Capabilities:
Read file on windows

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
mov eax, 0x101c
call fcn.00401ee2
mov eax, dword [0x523500]
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.004065af
pop ecx
mov ecx, dword [ebp + 8]
mov ebx, eax
cmp dword [ecx + 8], 0
jne 0x4a6626
mov eax, dword [ebp + 0xc]
mov edx, dword [ebp + 0x10]
jmp 0x4a6782
mov eax, dword [ecx]
sub eax, dword [ecx + 4]
push esi
push edi
push 0
cdq
push 2
push edx
push eax
call fcn.0040672b
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 + 0x527350]
push dword [edi + eax + 0x24]
push dword [edi + eax + 0x20]
push ebx
call fcn.00403580
mov ecx, dword [esi*4 + 0x527350]
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 0x4a677b
cmp eax, dword [edi + ecx + 0x24]
jne 0x4a677b
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 0x4a677b
push dword [ebp - 0x100c]
push 0
push dword [ebp + 0x10]
push dword [ebp + 0xc]
push ebx
call fcn.00403580
add esp, 0x14
test edx, edx
jl 0x4a677b
jg 0x4a66f1
test eax, eax
jb 0x4a677b
mov ebx, dword [ebp - 0x1018]
mov eax, dword [ebp - 0x1014]
test ebx, ebx
jg 0x4a677b
jl 0x4a670b
cmp dword [ebp - 0x1008], eax
ja 0x4a677b
lea edi, [ebp - 0x1004]
xor edx, edx
add edi, eax
lea ecx, [ebp - 0x1004]
xor esi, esi
cmp dword [ebp - 0x1008], edx
jne 0x4a6729
test ebx, ebx
je 0x4a6762
cmp ecx, edi
jae 0x4a6762
mov al, byte [ecx]
cmp al, 0xd
jne 0x4a6743
lea eax, [edi - 1]
cmp ecx, eax
jae 0x4a674f
cmp byte [ecx + 1], 0xa
jne 0x4a674f
inc ecx
jmp 0x4a674f
movzx eax, al
movsx eax, byte [eax + 0x523828]
add ecx, eax
add esi, 1
adc edx, 0
inc ecx
cmp esi, dword [ebp - 0x1008]
jne 0x4a6729
cmp edx, ebx
jne 0x4a6729
lea eax, [ebp - 0x1004]
sub ecx, eax
mov eax, ecx
cdq
add eax, dword [ebp - 0x1010]
adc edx, dword [ebp - 0x101c]
jmp 0x4a6780
or edx, 0xffffffff
mov eax, edx
pop edi
pop esi
mov ecx, dword [ebp - 4]
xor ecx, ebp
pop ebx
call fcn.0040333c
leave
ret
Function at 0x4a6ec1
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 + 0x527350]
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 0x4a6f01
cmp byte [ebx], 0xa
jne 0x4a6f01
or byte [eax + edi + 0x28], 4
jmp 0x4a6f06
and byte [eax + edi + 0x28], 0xfb
add ecx, ebx
mov edx, ebx
mov dword [ebp - 0xc], ecx
mov esi, ebx
cmp ebx, ecx
jae 0x4a7004
mov al, byte [edx]
cmp al, 0x1a
je 0x4a6fe6
lea ecx, [edx + 1]
mov dword [ebp - 8], ecx
mov ecx, dword [ebp - 0xc]
cmp al, 0xd
je 0x4a6f35
mov edx, dword [ebp - 8]
mov byte [esi], al
jmp 0x4a6f5a
mov eax, dword [ebp - 8]
cmp eax, ecx
jae 0x4a6f64
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 0x4a6f17
jmp 0x4a7004
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 0x4a6fe1
cmp dword [ebp - 0xc], 0
je 0x4a6fe1
mov ecx, dword [ebp - 0x10]
mov eax, dword [ecx*4 + 0x527350]
test byte [eax + edi + 0x28], 0x48
je 0x4a6fbb
mov dl, byte [ebp - 1]
lea eax, [esi + 1]
mov dword [ebp - 0x14], eax
cmp dl, 0xa
jne 0x4a6fa6
mov byte [esi], dl
jmp 0x4a6fb7
mov byte [esi], 0xd
mov eax, dword [ecx*4 + 0x527350]
mov byte [eax + edi + 0x2a], dl
mov eax, dword [ebp - 0x14]
mov esi, eax
jmp 0x4a7004
cmp byte [ebp - 1], 0xa
jne 0x4a6fca
cmp esi, ebx
jne 0x4a6fca
mov byte [esi], 0xa
jmp 0x4a7003
push 1
push 0xffffffffffffffff
push 0xffffffffffffffff
push dword [ebp + 8]
call fcn.00401a0a
add esp, 0x10
cmp byte [ebp - 1], 0xa
je 0x4a7004
mov byte [esi], 0xd
jmp 0x4a7003
mov ecx, dword [ebp - 0x10]
mov ecx, dword [ecx*4 + 0x527350]
mov al, byte [ecx + edi + 0x28]
test al, 0x40
jne 0x4a7000
or al, 2
mov byte [ecx + edi + 0x28], al
jmp 0x4a7004
mov byte [esi], 0x1a
inc esi
sub esi, ebx
pop edi
mov eax, esi
pop esi
pop ebx
leave
ret
Function at 0x4a7060
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 + 0x527350]
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 0x4a70a3
cmp word [esi], dx
jne 0x4a70a3
or byte [edi + eax + 0x28], 4
jmp 0x4a70a8
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 0x4a71fb
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 0x4a71db
add eax, 2
cmp cx, word [ebp - 0xc]
je 0x4a70ea
mov dword [ebp - 4], eax
mov word [esi], cx
jmp 0x4a7120
cmp eax, edx
jae 0x4a712c
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 0x4a70c2
jmp 0x4a71fb
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 0x4a71d7
cmp dword [ebp - 0x14], 0
je 0x4a71d7
mov eax, dword [ebx*4 + 0x527350]
push 0xa
test byte [edi + eax + 0x28], 0x48
je 0x4a71af
mov dx, word [ebp - 4]
lea eax, [esi + 2]
pop ecx
mov dword [ebp - 0x18], eax
cmp dx, cx
jne 0x4a7178
mov word [esi], cx
jmp 0x4a71ab
push 0xd
pop eax
mov word [esi], ax
mov eax, dword [ebx*4 + 0x527350]
movzx ecx, dx
shr ecx, 8
push 0xa
mov byte [edi + eax + 0x2a], dl
mov eax, dword [ebx*4 + 0x527350]
mov byte [edi + eax + 0x2b], cl
mov eax, dword [ebx*4 + 0x527350]
pop ecx
mov byte [edi + eax + 0x2c], cl
mov eax, dword [ebp - 0x18]
mov esi, eax
jmp 0x4a71fb
pop ebx
cmp word [ebp - 4], bx
jne 0x4a71c0
cmp esi, dword [ebp + 0xc]
jne 0x4a71c0
mov word [esi], bx
jmp 0x4a71f8
push 1
push 0xffffffffffffffff
push 0xfffffffffffffffe
push dword [ebp + 8]
call fcn.00401a0a
add esp, 0x10
cmp word [ebp - 4], bx
je 0x4a71fb
push 0xd
jmp 0x4a71f4
mov ecx, dword [ebx*4 + 0x527350]
mov al, byte [ecx + edi + 0x28]
test al, 0x40
jne 0x4a71f2
or al, 2
mov byte [ecx + edi + 0x28], al
jmp 0x4a71fb
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 0x4abfb1
Capabilities:
Enumerate files on windows

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x264
mov eax, dword [0x523500]
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 0x4abffc
movzx eax, word [edx]
lea ecx, [ebp - 0x255]
push eax
call fcn.004ac473
test al, al
jne 0x4abff6
sub edx, 2
cmp edx, edi
jne 0x4abfdc
mov ecx, dword [ebp - 0x25c]
movzx esi, word [edx]
cmp esi, 0x3a
jne 0x4ac01e
lea eax, [edi + 2]
cmp edx, eax
je 0x4ac01e
push ecx
xor ebx, ebx
push ebx
push ebx
push edi
call fcn.004abbaa
add esp, 0x10
jmp 0x4ac118
push esi
lea ecx, [ebp - 0x255]
call fcn.004ac473
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 0x4ac061
push dword [ebp - 0x25c]
jmp 0x4ac00e
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 0x4ac09e
cmp word [ebp - 0x226], 0
je 0x4ac0bf
cmp word [ebp - 0x226], ax
jne 0x4ac09e
cmp word [ebp - 0x224], 0
je 0x4ac0bf
push ebx
push dword [ebp - 0x260]
lea eax, [ebp - 0x228]
push edi
push eax
call fcn.004abbaa
add esp, 0x10
mov dword [ebp - 0x264], eax
test eax, eax
jne 0x4ac10b
lea eax, [ebp - 0x254]
push eax
push esi
call dword [sym.imp.KERNEL32.dll_FindNextFileW]
push 0x2e
test eax, eax
pop eax
jne 0x4ac078
mov eax, dword [ebx + 4]
mov edx, dword [ebx]
sub eax, edx
mov ecx, dword [ebp - 0x25c]
sar eax, 2
cmp ecx, eax
jne 0x4ac0f3
push esi
call dword [sym.imp.KERNEL32.dll_FindClose]
xor eax, eax
jmp 0x4ac118
push 0x4ab592
sub eax, ecx
push 4
push eax
lea eax, [edx + ecx*4]
push eax
call fcn.00405b91
add esp, 0x10
jmp 0x4ac0e8
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.0040333c
leave
ret
Function at 0x401000
Capabilities:
Get file version info

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x40c
and dword [ebp - 8], 0
lea eax, [ebp - 8]
push eax
push dword [ebp + 8]
call sub.VERSION.dll_GetFileVersionInfoSizeW
test eax, eax
jne 0x401021
xor eax, eax
leave
ret
lea ecx, [ebp - 0x40c]
push ecx
push eax
push 0
push dword [ebp + 8]
call sub.VERSION.dll_GetFileVersionInfoW
test eax, eax
je 0x40101d
and dword [ebp - 4], 0
and dword [ebp - 0xc], 0
lea eax, [ebp - 0xc]
push eax
lea eax, [ebp - 4]
push eax
push 0x402080
lea eax, [ebp - 0x40c]
push eax
call sub.VERSION.dll_VerQueryValueA
test eax, eax
je 0x40101d
mov eax, dword [ebp - 4]
movzx ecx, word [eax + 0xa]
mov dword [esi], ecx
movzx ecx, word [eax + 8]
mov dword [esi + 4], ecx
movzx ecx, word [eax + 0xe]
movzx eax, word [eax + 0xc]
mov dword [esi + 0xc], eax
xor eax, eax
mov dword [esi + 8], ecx
inc eax
leave
ret
Function at 0x40134a
Capabilities:
Enumerate process modules

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x220
push ebx
push esi
push edi
call dword [sym.imp.KERNEL32.dll_GetCurrentProcess]
mov ebx, eax
lea eax, [ebp - 4]
push eax
push 0x1000
push 0x403290
push ebx
mov dword [ebp - 8], ebx
call sub.PSAPI.DLL_EnumProcessModules
test eax, eax
je 0x4013c3
xor edi, edi
test dword [ebp - 4], 0xfffffffc
jbe 0x4013c3
mov esi, 0x104
push esi
lea eax, [ebp - 0x220]
push eax
push dword [edi*4 + 0x403290]
push ebx
call sub.PSAPI.DLL_GetModuleBaseNameW
test eax, eax
je 0x4013b8
push str.WebkitCore.dll
lea eax, [ebp - 0x220]
push eax
call dword [sym.imp.SHLWAPI.dll_StrCmpIW]
test eax, eax
je 0x4013ca
mov eax, dword [ebp - 4]
inc edi
shr eax, 2
cmp edi, eax
jb 0x401389
xor al, al
pop edi
pop esi
pop ebx
leave
ret
push esi
lea eax, [ebp - 0x220]
push eax
lea edi, [edi*4 + 0x403290]
push dword [edi]
push ebx
call sub.PSAPI.DLL_GetModuleFileNameExW
lea eax, [ebp - 0x220]
push eax
lea esi, [ebp - 0x18]
call entry0
pop ecx
test eax, eax
je 0x40143f
xor ebx, ebx
xor esi, esi
mov eax, dword [esi + 0x403008]
cmp eax, dword [ebp - 0x18]
jne 0x401433
mov eax, dword [esi + 0x40300c]
cmp eax, dword [ebp - 0x14]
jne 0x401433
mov eax, dword [esi + 0x403010]
cmp eax, dword [ebp - 0x10]
jne 0x401433
mov eax, dword [esi + 0x403014]
cmp eax, dword [ebp - 0xc]
jne 0x401433
push ebx
push dword [edi]
push dword [ebp - 8]
call fcn.0040107f
add esp, 0xc
add esi, 0x48
inc ebx
cmp esi, 0x288
jb 0x4013f9
mov al, 1
jmp 0x4013c5
Function at 0x405040
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x60
pushal
call 0x40504f
pop dword [ebp - 0x50]
mov eax, 0x40504f
sub dword [ebp - 0x50], eax
mov dword [ebp - 0x60], 0x50b382a5
sub dword [ebp - 0x60], 0x2613d5a
mov dword [ebp - 0x5c], 0x7d555e97
sub dword [ebp - 0x5c], 0x4b221252
mov dword [ebp - 0x58], 0x430ec9c7
add dword [ebp - 0x58], 0x93d7a67
mov dword [ebp - 0x54], 0xb22ade6f
add dword [ebp - 0x54], 0x4dd52191
lea eax, [ebp - 0x60]
push eax
mov eax, sym.imp.kernel32.dll_GetModuleHandleA
add eax, dword [ebp - 0x50]
call dword [eax]
mov dword [ebp - 0x60], 0x7f9fb377
sub dword [ebp - 0x60], 0xb2d4a21
mov dword [ebp - 0x5c], 0x367b08f3
add dword [ebp - 0x5c], 0xaf15882
mov dword [ebp - 0x58], 0xc58ab374
add dword [ebp - 0x58], 0x9de4b8f8
mov dword [ebp - 0x54], 0xbe0a610
sub dword [ebp - 0x54], 0xbe0a610
lea ebx, [ebp - 0x60]
push ebx
push eax
mov eax, 0xf91ffde0
sub eax, 0xf8df6dc8
add eax, dword [ebp - 0x50]
call dword [eax]
push 0x40
push 0x1000
push 0x3aab3
push 0
call eax
mov ecx, 0x562d4eb4
sub ecx, 0x562d07eb
xor esi, esi
add esi, eax
mov edx, 0x9d2e3634
sub edx, 0x9ced5e34
add edx, dword [ebp - 0x50]
mov ebx, 0xd3963a0e
add dword [ebp - 0x44], 0xb7a69d32
mov edi, dword [edx]
add dword [ebp - 0x40], 0xf8840624
sub edi, ebx
xor dword [ebp - 0xc], ecx
mov dword [esi], edi
sub dword [ebp - 0x38], eax
add esi, 0x1f8394db
sub esi, 0x1f8394d7
add edx, 0x9694cf96
add edx, 0x696b306e
loop 0x405163
add eax, 0x10df7
mov ebx, eax
add eax, 0x7bf4b458
sub eax, 0x7bf4b453
mov ecx, 0x400000
add ecx, dword [ebp - 0x50]
call ebx
leave
ret

Function at 0x40656e
Capabilities:
Terminate process

Disassembly:
cmp ecx, dword [0x40b018]
jne 0x406578
repz ret
jmp fcn.004069b9
Function at 0x430005
Capabilities:
Encode data using xor
Packed with generic packer

Disassembly:
pushal
nop
mov eax, section..text
nop
nop
nop
push 4
nop
nop
nop
nop
pop edi
nop
nop
nop
cmp eax, 0
nop
nop
je 0x430072
nop
nop
nop
nop
nop
mov ebx, 0x408ed0
nop
nop
mov ecx, ebx
nop
nop
nop
nop
nop
sub ecx, eax
nop
nop
nop
nop
nop
xor edx, edx
nop
nop
push eax
nop
nop
nop
mov eax, ecx
nop
nop
nop
nop
nop
nop
nop
nop
div edi
nop
nop
nop
xchg ecx, eax
nop
nop
nop
nop
nop
nop
nop
pop eax
nop
mov esi, 0xff6081f
nop
xor dword [eax], esi
nop
nop
nop
nop
nop
add eax, edi
nop
nop
nop
loop 0x430060
nop
nop
nop
nop
mov eax, section..data
nop
cmp eax, 0
nop
nop
nop
nop
nop
nop
je 0x4300d2
mov ebx, 0x42e1d0
nop
nop
nop
nop
mov ecx, ebx
nop
nop
nop
nop
sub ecx, eax
nop
nop
xor edx, edx
nop
nop
nop
nop
push eax
nop
nop
nop
nop
nop
mov eax, ecx
nop
nop
nop
nop
div edi
nop
nop
nop
nop
xchg ecx, eax
nop
nop
nop
nop
nop
nop
nop
pop eax
nop
nop
mov esi, 0x7cda5fe9
nop
nop
nop
nop
xor dword [eax], esi
nop
nop
nop
add eax, edi
nop
nop
loop 0x4300c0
nop
nop
nop
nop
nop
nop
nop
nop
popal
nop
jmp 0x401219
Function at 0x4060da
Capabilities:
Access peb ldr_data
Resolve function by hash

Disassembly:
push ebp
mov ebp, esp
sub esp, 4
mov dword [ebp - 4], 0
cld
xor edx, edx
mov edx, dword fs:[edx + 0x30]
mov edx, dword [edx + 0xc]
mov edx, dword [edx + 0x14]
mov esi, dword [edx + 0x28]
push 0x18
pop ecx
xor edi, edi
xor eax, eax
lodsb al, byte [esi]
cmp al, 0x61
jl 0x406108
sub al, 0x20
ror edi, 0xd
add edi, eax
loop 0x4060ff
cmp edi, 0x6a4abc5b
mov ebx, dword [edx + 0x10]
mov edx, dword [edx]
jne 0x4060f7
mov eax, ebx
mov dword [ebp - 4], eax
mov eax, dword [ebp - 4]
jmp 0x406129
mov esp, ebp
pop ebp
ret

Function at 0x40612d
Capabilities:
Hash data with crc32

Disassembly:
push ebp
mov ebp, esp
sub esp, 4
mov dword [ebp - 4], 0
add esp, 0xffffffec
push esi
push ebx
push edi
push edx
push ecx
mov eax, dword [ebp + 0x10]
xor edx, edx
xchg edx, eax
mov esi, 0x3c
add esi, dword [ebp + 0xc]
mov eax, dword [esi]
add eax, dword [ebp + 0xc]
mov esi, dword [eax + 0x78]
add esi, 0x18
add esi, dword [ebp + 0xc]
mov eax, dword [esi]
mov dword [ebp - 0x14], eax
add esi, 4
lea edi, [ebp - 8]
lodsd eax, dword [esi]
add eax, dword [ebp + 0xc]
stosd dword es:[edi], eax
mov dword [ebp - 8], eax
lodsd eax, dword [esi]
add eax, dword [ebp + 0xc]
push eax
stosd dword es:[edi], eax
mov dword [ebp - 0xc], eax
mov eax, dword [esi]
add eax, dword [ebp + 0xc]
mov dword [ebp - 0x10], eax
pop esi
mov dword [ebp - 4], 0
push esi
mov eax, dword [esi]
add eax, dword [ebp + 0xc]
xchg edi, eax
mov ebx, edi
push edi
xor al, al
scasb al, byte es:[edi]
jne 0x406199
pop esi
sub edi, ebx
push edx
cld
xor ecx, ecx
dec ecx
mov edx, ecx
xor eax, eax
xor ebx, ebx
lodsb al, byte [esi]
xor al, cl
mov cl, ch
mov ch, dl
mov dl, dh
mov dh, 8
shr bx, 1
rcr ax, 1
jae 0x4061c6
xor ax, 0x8320
xor bx, 0xedb8
dec dh
jne 0x4061b5
xor ecx, eax
xor edx, ebx
dec edi
jne 0x4061a6
not edx
not ecx
mov eax, edx
rol eax, 0x10
mov ax, cx
pop edx
cmp edx, eax
je 0x4061ec
pop esi
add esi, 4
add dword [ebp - 4], 1
jmp 0x40618d
pop esi
mov eax, dword [ebp - 4]
shl eax, 1
add eax, dword [ebp - 0x10]
xor esi, esi
xchg esi, eax
mov ax, word [esi]
shl ax, 2
add eax, dword [ebp - 8]
xchg esi, eax
mov eax, dword [esi]
add eax, dword [ebp + 0xc]
pop ecx
pop edx
pop edi
pop ebx
pop esi
mov dword [ebp - 4], eax
mov eax, dword [ebp - 4]
jmp 0x406218
mov esp, ebp
pop ebp
ret 0xc
Function at 0x4082e0
Capabilities:
Parse pe header

Disassembly:
push ebp
mov ebp, esp
mov eax, dword [ebp + 0xc]
mov eax, dword [eax]
mov dword [ebp + 0xc], eax
jmp 0x4082f0
sub esp, 0x38
mov dword [ebp - 4], 0
mov dword [ebp - 8], 0
mov dword [ebp - 0xc], 0
mov dword [ebp - 0x10], 0
mov dword [ebp - 0x14], 0
mov dword [ebp - 0x18], 0
cmp dword [ebp + 8], 0
jle 0x408345
push dword [ebp + 8]
call fcn.004084f1
mov dword [ebp - 0x24], eax
cmp word [ebp - 0x24], 0x5a4d
jne 0x408345
xor eax, eax
jmp 0x40834a
mov eax, 1
test eax, eax
je 0x40835c
mov eax, 0
jmp 0x4084eb
push 0x3c
push dword [ebp + 8]
call fcn.00408533
push eax
call fcn.0040850d
push eax
push dword [ebp + 8]
call fcn.00408533
mov dword [ebp - 4], eax
push dword [ebp - 4]
call fcn.0040850d
mov dword [ebp - 0x20], eax
cmp dword [ebp - 0x20], 0x4550
jne 0x4083b7
push 0x7c
push dword [ebp - 4]
call fcn.00408533
push eax
call fcn.0040850d
mov dword [ebp - 0x30], eax
cmp dword [ebp - 0x30], 0
je 0x4083b7
xor eax, eax
jmp 0x4083bc
mov eax, 1
test eax, eax
je 0x4083ce
mov eax, 0
jmp 0x4084eb
push 0x78
push dword [ebp - 4]
call fcn.00408533
push eax
call fcn.0040850d
push eax
push dword [ebp + 8]
call fcn.00408533
mov dword [ebp - 8], eax
push 0x20
push dword [ebp - 8]
call fcn.00408533
push eax
call fcn.0040850d
push eax
push dword [ebp + 8]
call fcn.00408533
push eax
call fcn.0040850d
push eax
push dword [ebp + 8]
call fcn.00408533
mov dword [ebp - 0xc], eax
push 0x18
push dword [ebp - 8]
call fcn.00408533
push eax
call fcn.0040850d
mov dword [ebp - 0x10], eax
push 1
push dword [ebp - 0x10]
call fcn.0040855a
push eax
lea eax, [ebp - 0x10]
mov ebx, eax
mov ecx, 0
pop edx
push edx
push ecx
push ebx
mov dword [ebx], ecx
cmp ecx, edx
jg 0x4084de
push dword [ebp - 0x18]
push dword [ebp - 0xc]
call fcn.00408533
mov dword [ebp - 0x14], eax
push dword [ebp + 0xc]
push dword [ebp - 0x14]
call fcn.00408581
test eax, eax
je 0x4084c1
push 0x1c
push dword [ebp - 8]
call fcn.00408533
push eax
call fcn.0040850d
push eax
push dword [ebp + 8]
call fcn.00408533
mov dword [ebp - 0x24], eax
push 4
push dword [ebp - 0x10]
call fcn.004085b5
push eax
push dword [ebp - 0x24]
call fcn.00408533
push eax
call fcn.0040850d
push eax
push dword [ebp + 8]
call fcn.00408533
jmp 0x4084eb
push dword [ebp - 0x14]
call fcn.004085dd
push eax
push dword [ebp - 0x18]
call fcn.00408533
mov dword [ebp - 0x18], eax
pop ebx
pop ecx
pop edx
inc ecx
jmp 0x40844a
add esp, 0xc
mov eax, 0
jmp 0x4084eb
mov esp, ebp
pop ebp
ret 8