joyce8/EMBER2024-capa huggingface dataset:
Function at 0x4ad1d26d
Capabilities:
Parse pe header

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x64
mov eax, dword [0x4ad240ac]
xor eax, ebp
mov dword [ebp - 4], eax
mov eax, dword [ebp + 8]
push edi
xor edi, edi
mov dword [ebp - 0x48], edi
cmp eax, edi
jne 0x4ad1d293
xor eax, eax
jmp 0x4ad1d39d
push ebx
push edi
push 0x80
push 3
push edi
push 1
push 0x80000000
push eax
call dword [sym.imp.KERNEL32.dll_CreateFileW]
mov ebx, eax
mov dword [ebp - 0x4c], ebx
cmp ebx, 0xffffffff
je 0x4ad1d398
push esi
lea eax, [ebp - 0x44]
push eax
push ebx
push 0x40
pop esi
call fcn.4ad1cfc3
test eax, eax
je 0x4ad1d2dd
mov eax, 0x5a4d
xor ecx, ecx
cmp ax, word [ebp - 0x44]
sete cl
mov eax, ecx
jmp 0x4ad1d2df
xor eax, eax
cmp eax, edi
je 0x4ad1d38e
push edi
push edi
push dword [ebp - 8]
push ebx
call dword [sym.imp.KERNEL32.dll_SetFilePointer]
xor ecx, ecx
cmp eax, 0xffffffff
setne cl
mov eax, ecx
cmp eax, edi
je 0x4ad1d38e
lea eax, [ebp - 0x50]
push eax
push ebx
push 4
pop esi
call fcn.4ad1cfc3
test eax, eax
je 0x4ad1d324
xor eax, eax
cmp dword [ebp - 0x50], 0x4550
sete al
jmp 0x4ad1d326
xor eax, eax
cmp eax, edi
je 0x4ad1d38e
lea eax, [ebp - 0x64]
push eax
push ebx
push 0x14
pop esi
call fcn.4ad1cfc3
test eax, eax
je 0x4ad1d38e
cmp word [ebp - 0x54], di
jbe 0x4ad1d38e
movzx eax, word [ebp - 0x54]
mov edi, dword [sym.imp.KERNEL32.dll_GetProcessHeap]
push eax
push 8
call edi
push eax
call dword [sym.imp.KERNEL32.dll_HeapAlloc]
mov ebx, eax
test ebx, ebx
je 0x4ad1d38e
movzx esi, word [ebp - 0x54]
push ebx
push dword [ebp - 0x4c]
call fcn.4ad1cfc3
test eax, eax
je 0x4ad1d382
mov edx, dword [ebp - 0x64]
mov ecx, ebx
call fcn.4ad1cfa1
test eax, eax
je 0x4ad1d382
movzx eax, word [eax]
mov dword [ebp - 0x48], eax
push ebx
push 0
call edi
push eax
call dword [sym.imp.KERNEL32.dll_HeapFree]
push dword [ebp - 0x4c]
call dword [sym.imp.KERNEL32.dll_CloseHandle]
pop esi
mov ax, word [ebp - 0x48]
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
pop edi
call fcn.4ad0139d
leave
ret 4
Function at 0x4ad1d746
Capabilities:
Delete registry value
Persist via default file association registry key
Set registry value

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x228
mov eax, dword [0x4ad240ac]
xor eax, ebp
mov dword [ebp - 4], eax
mov eax, dword [ebp + 8]
mov ecx, dword [ebp + 0x10]
push ebx
mov dword [ebp - 0x21c], eax
mov eax, dword [ebp + 0xc]
push esi
push edi
mov dword [ebp - 0x210], eax
mov dword [ebp - 0x218], ecx
lea edx, [eax + 2]
xor ebx, ebx
mov cx, word [eax]
inc eax
inc eax
cmp cx, bx
jne 0x4ad1d77e
mov edi, str.ShellOpenCommand
sub eax, edx
mov ecx, edi
sar eax, 1
lea esi, [ecx + 2]
mov dx, word [ecx]
inc ecx
inc ecx
cmp dx, bx
jne 0x4ad1d796
sub ecx, esi
sar ecx, 1
lea eax, [ecx + eax + 1]
mov esi, 0x104
cmp eax, esi
jbe 0x4ad1d7c6
push ebx
push 0x400023db
call fcn.4ad0ab8b
pop ecx
xor eax, eax
pop ecx
inc eax
jmp 0x4ad1d97d
push dword [ebp - 0x210]
lea eax, [ebp - 0x20c]
push esi
push eax
call fcn.4ad017fb
push edi
push esi
lea eax, [ebp - 0x20c]
push eax
call fcn.4ad01a89
lea eax, [ebp - 0x214]
push eax
mov edi, 0x2000000
push edi
push ebx
lea eax, [ebp - 0x20c]
push eax
push dword [ebp - 0x21c]
call dword [sym.imp.KERNEL32.dll_RegOpenKeyExW]
mov esi, eax
cmp esi, ebx
je 0x4ad1d8d4
mov eax, dword [ebp - 0x218]
cmp eax, ebx
je 0x4ad1d8ba
cmp word [eax], bx
je 0x4ad1d8ba
lea esi, [ebp - 0x20c]
jmp 0x4ad1d839
cmp word [esi], 0x5c
je 0x4ad1d83e
inc esi
inc esi
cmp word [esi], bx
jne 0x4ad1d831
movzx eax, word [esi]
mov dword [ebp - 0x224], eax
xor eax, eax
mov word [esi], ax
lea eax, [ebp - 0x228]
push eax
lea eax, [ebp - 0x214]
push eax
push ebx
push edi
push ebx
push ebx
push ebx
lea eax, [ebp - 0x20c]
push eax
push dword [ebp - 0x21c]
call dword [sym.imp.KERNEL32.dll_RegCreateKeyExW]
mov dword [ebp - 0x220], eax
cmp eax, ebx
jne 0x4ad1d89a
mov eax, dword [ebp - 0x224]
cmp ax, bx
je 0x4ad1d8d4
push dword [ebp - 0x214]
mov word [esi], ax
inc esi
inc esi
call dword [sym.imp.KERNEL32.dll_RegCloseKey]
jmp 0x4ad1d839
push dword [ebp - 0x210]
push 1
push 0x400023a5
call fcn.4ad0ab8b
mov eax, dword [ebp - 0x220]
add esp, 0xc
jmp 0x4ad1d97d
push dword [ebp - 0x210]
push 1
push 0x400023a5
call fcn.4ad0ab8b
add esp, 0xc
jmp 0x4ad1d97b
mov edi, dword [ebp - 0x218]
cmp edi, ebx
je 0x4ad1d947
cmp word [edi], bx
je 0x4ad1d947
mov eax, edi
lea edx, [eax + 2]
mov cx, word [eax]
inc eax
inc eax
cmp cx, bx
jne 0x4ad1d8e8
sub eax, edx
sar eax, 1
lea eax, [eax + eax + 2]
push eax
push edi
push 2
push ebx
push 0x4ad03c0c
push dword [ebp - 0x214]
call dword [sym.imp.KERNEL32.dll_RegSetValueExW]
mov esi, eax
cmp esi, ebx
jne 0x4ad1d929
push edi
push dword [ebp - 0x210]
push str._s_s_r_n
call fcn.4ad0735f
jmp 0x4ad1d96c
push ebx
push esi
call fcn.4ad0ab8b
push dword [ebp - 0x210]
push 1
push 0x235d
call fcn.4ad0ab8b
add esp, 0x14
jmp 0x4ad1d96f
push ebx
push dword [ebp - 0x214]
call dword [sym.imp.KERNEL32.dll_RegDeleteValueW]
mov esi, eax
cmp esi, ebx
je 0x4ad1d96f
push dword [ebp - 0x210]
push 1
push 0x400023a5
call fcn.4ad0ab8b
add esp, 0xc
push dword [ebp - 0x214]
call dword [sym.imp.KERNEL32.dll_RegCloseKey]
mov eax, esi
mov ecx, dword [ebp - 4]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.4ad0139d
leave
ret 0xc
Function at 0x4ad1f050
Capabilities:
Read file on windows

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0xc
push ebx
push edi
xor ebx, ebx
push ebx
push 2
push dword [ebp + 8]
mov dword [ebp - 8], ebx
mov dword [ebp - 0xc], ebx
call fcn.4ad1fc01
mov dword [ebp + 8], eax
cmp eax, 0xffffffff
jne 0x4ad1f084
push 0x6e
call fcn.4ad13642
push 1
push ebx
call fcn.4ad1efd3
mov edi, dword [sym.imp.msvcrt.dll__get_osfhandle]
push esi
mov esi, dword [ebp + 0xc]
push ebx
lea eax, [ebp - 4]
push eax
push dword [ebp + 0x14]
push dword [ebp + 0x10]
push dword [ebp + 8]
call edi
pop ecx
push eax
call dword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
je 0x4ad1f13b
mov eax, dword [esi + 0x1c]
mov ecx, dword [ebp - 4]
mov dword [ebp + 0xc], ecx
test eax, 0xc000
jne 0x4ad1f0e3
cmp ecx, 2
jbe 0x4ad1f0db
mov ebx, dword [ebp + 0x10]
mov edx, 0xfeff
cmp word [ebx], dx
jne 0x4ad1f0d9
or eax, 0x4000
xor ebx, ebx
jmp 0x4ad1f0e0
xor ebx, ebx
or eax, 0x8000
mov dword [esi + 0x1c], eax
cmp ecx, ebx
je 0x4ad1f10f
mov ecx, dword [esi + 0x1c]
lea eax, [ebp - 0xc]
push eax
lea eax, [ebp - 4]
push eax
push dword [ebp + 0x10]
mov eax, 0x8002
and ecx, eax
sub ecx, eax
neg ecx
sbb ecx, ecx
inc ecx
push ecx
call fcn.4ad1e0c4
mov ecx, dword [ebp - 4]
mov dword [ebp - 8], eax
cmp ecx, dword [ebp + 0x14]
je 0x4ad1f08e
pop esi
cmp dword [ebp - 8], ebx
jne 0x4ad1f132
sub ecx, dword [ebp + 0xc]
push 1
push ebx
push ecx
push dword [ebp + 8]
call edi
pop ecx
push eax
call dword [sym.imp.KERNEL32.dll_SetFilePointer]
mov eax, dword [ebp + 8]
pop edi
pop ebx
leave
ret 0x10
call dword [sym.imp.KERNEL32.dll_GetLastError]
push dword [ebp + 8]
mov dword [0x4ad24120], eax
call fcn.4ad03b88
push ebx
push dword [0x4ad24120]
call fcn.4ad0ab8b
pop ecx
pop ecx
jmp 0x4ad1f07c
Function at 0x4ad1f166
Capabilities:
Read file on windows

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push ebx
mov ebx, dword [ebp + 8]
push esi
push dword [ebx]
mov esi, dword [sym.imp.msvcrt.dll__get_osfhandle]
call esi
pop ecx
push eax
call dword [sym.imp.KERNEL32.dll_FlushFileBuffers]
push dword [ebx]
call fcn.4ad03b88
push 0
push dword [ebp + 0xc]
call fcn.4ad1127a
mov dword [ebx], eax
cmp eax, 0xffffffff
jne 0x4ad1f1b4
push dword [ebp + 0xc]
push 1
push 0x4000271f
call fcn.4ad0ab8b
xor eax, eax
add esp, 0xc
inc eax
jmp 0x4ad1f24b
push edi
mov edi, dword [ebp + 0x10]
push 2
mov ecx, edi
push 0
neg ecx
push ecx
push eax
call esi
pop ecx
push eax
call dword [sym.imp.KERNEL32.dll_SetFilePointer]
push 0
lea eax, [ebp + 8]
push eax
push edi
push dword [ebp + 0x18]
push dword [ebx]
call esi
pop ecx
push eax
call dword [sym.imp.KERNEL32.dll_ReadFile]
push dword [ebx]
test eax, eax
je 0x4ad1f1fb
cmp dword [ebp + 8], edi
jne 0x4ad1f1fb
mov esi, dword [ebp + 0x14]
mov ecx, edi
mov edi, dword [ebp + 0x18]
xor eax, eax
repe cmpsb byte [esi], byte es:[edi]
je 0x4ad1f205
call fcn.4ad03b88
or dword [ebx], 0xffffffff
jmp 0x4ad1f21e
call fcn.4ad03b88
xor esi, esi
push esi
push 1
push dword [ebp + 0xc]
call fcn.4ad1fc01
mov dword [ebx], eax
cmp eax, 0xffffffff
jne 0x4ad1f235
push dword [ebp + 0xc]
push 1
push 0x4000271f
call fcn.4ad0ab8b
xor eax, eax
add esp, 0xc
inc eax
jmp 0x4ad1f24a
push 2
push esi
push esi
push eax
call dword [sym.imp.msvcrt.dll__get_osfhandle]
pop ecx
push eax
call dword [sym.imp.KERNEL32.dll_SetFilePointer]
xor eax, eax
pop edi
pop esi
pop ebx
pop ebp
ret 0x14
Function at 0x4ad20006
Capabilities:
Check if file exists
Delete directory
Get file attributes
Set file attributes

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x14
mov eax, dword [0x4ad240ac]
xor eax, ebp
mov dword [ebp - 4], eax
and dword [ebp - 0x10], 0
push esi
mov esi, dword [ebp + 8]
lea eax, [ebp - 0x14]
push eax
lea eax, [ebp - 0xc]
push eax
push 4
push esi
call dword [sym.imp.KERNEL32.dll_GetFullPathNameW]
cmp eax, 3
jne 0x4ad20048
cmp word [ebp - 0xa], 0x3a
jne 0x4ad20048
cmp word [ebp - 8], 0x5c
jne 0x4ad20048
xor eax, eax
jmp 0x4ad2009d
push ebx
mov ebx, dword [sym.imp.KERNEL32.dll_RemoveDirectoryW]
push esi
call ebx
test eax, eax
jne 0x4ad20099
push edi
mov edi, dword [sym.imp.KERNEL32.dll_GetLastError]
call edi
mov dword [ebp - 0x10], eax
cmp eax, 5
jne 0x4ad20098
push esi
call dword [sym.imp.KERNEL32.dll_GetFileAttributesW]
cmp eax, 0xffffffff
je 0x4ad20098
test al, 1
je 0x4ad20098
and eax, 0xfffffffe
push eax
push esi
call dword [sym.imp.KERNEL32.dll_SetFileAttributesW]
test eax, eax
je 0x4ad20098
push esi
call ebx
test eax, eax
je 0x4ad20093
and dword [ebp - 0x10], 0
jmp 0x4ad20098
call edi
mov dword [ebp - 0x10], eax
pop edi
mov eax, dword [ebp - 0x10]
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
pop esi
call fcn.4ad0139d
leave
ret 4
Function at 0x4ad206ff
Capabilities:
Delete directory

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x290
mov eax, dword [0x4ad240ac]
xor eax, ebp
mov dword [ebp - 4], eax
xor eax, eax
mov word [ebp - 0x280], ax
mov word [ebp - 0x27e], ax
push ebx
push edi
xor ebx, ebx
mov dword [ebp - 0x290], ebx
mov dword [ebp - 0x284], ebx
lea edi, [ebp - 0x27c]
stosd dword es:[edi], eax
mov word [ebp - 0x278], ax
mov word [ebp - 0x276], ax
lea edi, [ebp - 0x274]
stosd dword es:[edi], eax
mov word [ebp - 0x270], ax
mov word [ebp - 0x26e], ax
lea edi, [ebp - 0x26c]
stosd dword es:[edi], eax
mov word [ebp - 0x268], ax
mov word [ebp - 0x266], ax
mov ecx, dword [ebp + 8]
lea edi, [ebp - 0x264]
stosd dword es:[edi], eax
mov word [ebp - 0x260], ax
mov word [ebp - 0x25e], ax
lea edi, [ebp - 0x25c]
stosd dword es:[edi], eax
mov word [ebp - 0x258], ax
mov word [ebp - 0x256], ax
lea edi, [ebp - 0x254]
stosd dword es:[edi], eax
lea edi, [ebp - 0x250]
stosd dword es:[edi], eax
stosd dword es:[edi], eax
xor eax, eax
mov dword [ebp - 0x244], ebx
mov dword [ebp - 0x240], ebx
mov byte [ebp - 0x23c], bl
mov dword [ebp - 0x238], ebx
mov dword [ebp - 0x230], ebx
lea edi, [ebp - 0x22c]
stosd dword es:[edi], eax
stosd dword es:[edi], eax
stosd dword es:[edi], eax
mov eax, dword [0x4ad240fc]
mov dword [ebp - 0x220], eax
lea eax, [ebp - 0x290]
push eax
push ecx
mov dword [ebp - 0x214], ebx
mov dword [ebp - 0x28c], 6
mov dword [ebp - 0x288], ebx
mov dword [ebp - 0x248], ebx
mov dword [ebp - 0x234], ebx
call fcn.4ad200b1
cmp eax, 1
jne 0x4ad2081f
xor eax, eax
inc eax
jmp 0x4ad20944
push ebx
push 0x106
lea eax, [ebp - 0x210]
push eax
call fcn.4ad03a9f
mov edi, dword [ebp - 0x248]
cmp edi, ebx
jne 0x4ad2084a
push ebx
push 0x232a
call fcn.4ad0ab8b
pop ecx
pop ecx
jmp 0x4ad20817
lea ecx, [ebp - 0x244]
push esi
mov eax, dword [ecx]
lea esi, [eax + 2]
mov dx, word [eax]
inc eax
inc eax
cmp dx, bx
jne 0x4ad20856
sub eax, esi
sar eax, 1
je 0x4ad208b7
dec edi
mov ecx, dword [ecx + 0xc]
jne 0x4ad20851
mov eax, dword [ebp - 0x248]
mov edi, dword [ebp - 0x290]
lea esi, [ebp - 0x244]
mov dword [ebp - 0x21c], eax
and edi, 0x10
cmp edi, ebx
je 0x4ad208ec
test dword [ebp - 0x290], 0x2000
jne 0x4ad208c9
push 0x2328
push 0x234e
push dword [esi]
call fcn.4ad1fc1f
xor ecx, ecx
inc ecx
cmp eax, ecx
je 0x4ad208c9
mov dword [ebp - 0x214], ecx
jmp 0x4ad2090d
push ebx
push 0x232a
call fcn.4ad0ab8b
pop ecx
xor eax, eax
pop ecx
inc eax
jmp 0x4ad20943
lea eax, [ebp - 0x218]
push eax
push dword [esi]
call fcn.4ad20296
cmp eax, ebx
je 0x4ad2090d
cmp eax, 0x91
jne 0x4ad208fe
cmp dword [ebp - 0x218], ebx
jne 0x4ad208fe
jmp 0x4ad2090d
push dword [esi]
call dword [sym.imp.KERNEL32.dll_RemoveDirectoryW]
test eax, eax
jne 0x4ad2090d
call dword [sym.imp.KERNEL32.dll_GetLastError]
push ebx
push eax
mov dword [ebp - 0x214], eax
call fcn.4ad0ab8b
pop ecx
pop ecx
dec dword [ebp - 0x21c]
mov esi, dword [esi + 0xc]
jne 0x4ad20887
lea eax, [ebp - 0x210]
push eax
push 0x104
push 0x4ad25220
call fcn.4ad017fb
push dword [ebp - 0x220]
call fcn.4ad019aa
mov eax, dword [ebp - 0x214]
pop esi
mov ecx, dword [ebp - 4]
pop edi
xor ecx, ebp
pop ebx
call fcn.4ad0139d
leave
ret 4
Function at 0x4ad21c5f
Capabilities:
Create directory
Delete directory

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x20
push ebx
push esi
mov esi, dword [ebp + 8]
push edi
push dword [esi + 8]
xor ebx, ebx
xor eax, eax
xor edi, edi
inc ebx
mov dword [ebp - 4], ebx
mov word [ebp - 0x18], ax
mov word [ebp - 0x16], ax
mov dword [ebp - 0x14], edi
mov dword [ebp - 0x10], edi
call fcn.4ad2190b
push dword [esi + 0xc]
mov dword [ebp + 8], eax
call fcn.4ad2190b
mov esi, eax
mov dword [ebp - 8], esi
cmp dword [ebp + 8], edi
je 0x4ad21dfa
cmp esi, edi
je 0x4ad21dfa
push dword [ebp + 8]
call fcn.4ad219cf
test eax, eax
jne 0x4ad21cca
push 0x4000272e
call dword [sym.imp.KERNEL32.dll_SetLastError]
jmp 0x4ad21dfa
push esi
call fcn.4ad21970
test eax, eax
jne 0x4ad21cdb
push 0x40002749
jmp 0x4ad21cbf
push edi
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.dll_CreateDirectoryW]
test eax, eax
je 0x4ad21dfa
push edi
push 0x2000000
push 3
push edi
push ebx
push 0x40000000
push dword [ebp + 8]
mov dword [ebp - 0x10], ebx
call dword [sym.imp.KERNEL32.dll_CreateFileW]
mov dword [ebp - 0xc], eax
cmp eax, 0xffffffff
je 0x4ad21dfa
push edi
push edi
lea eax, [ebp - 0x18]
push eax
push esi
call dword [sym.imp.ntdll.dll_RtlDosPathNameToNtPathName_U]
mov eax, esi
lea edx, [eax + 2]
mov cx, word [eax]
inc eax
inc eax
cmp cx, di
jne 0x4ad21d26
movzx ecx, word [ebp - 0x18]
sub eax, edx
sar eax, 1
lea ebx, [ecx + eax*2 + 0x14]
push ebx
call fcn.4ad018b8
mov esi, eax
cmp esi, edi
je 0x4ad21df1
push ebx
push edi
push esi
call sub.msvcrt.dll_memset
xor ecx, ecx
mov dword [esi], 0xa0000003
lea eax, [ebx - 8]
mov word [esi + 4], ax
mov word [esi + 8], cx
mov cx, word [ebp - 0x18]
mov word [esi + 0xa], cx
movzx ecx, word [ebp - 0x18]
push ecx
push dword [ebp - 0x14]
lea eax, [esi + 0x10]
push eax
call sub.msvcrt.dll_memcpy
mov ax, word [esi + 0xa]
add esp, 0x18
add ax, 2
mov word [esi + 0xc], ax
mov eax, dword [ebp - 8]
lea ecx, [eax + 2]
mov dx, word [eax]
inc eax
inc eax
cmp dx, di
jne 0x4ad21d95
sub eax, ecx
sar eax, 1
add eax, eax
mov word [esi + 0xe], ax
movzx eax, ax
push eax
movzx eax, word [esi + 0xa]
push dword [ebp - 8]
lea eax, [eax + esi + 0x12]
push eax
call sub.msvcrt.dll_memcpy
add esp, 0xc
push edi
push edi
push ebx
push esi
push 0x900a4
lea eax, [ebp - 0x20]
push eax
push edi
push edi
push edi
push dword [ebp - 0xc]
call dword [sym.imp.ntdll.dll_NtFsControlFile]
cmp eax, edi
jge 0x4ad21dee
push eax
call dword [sym.imp.ntdll.dll_RtlNtStatusToDosError]
push eax
call dword [sym.imp.KERNEL32.dll_SetLastError]
jmp 0x4ad21df1
mov dword [ebp - 4], edi
push dword [ebp - 0xc]
call dword [sym.imp.KERNEL32.dll_CloseHandle]
cmp dword [ebp - 0x14], edi
je 0x4ad21e15
push dword [ebp - 0x14]
mov eax, dword fs:[0x18]
mov eax, dword [eax + 0x30]
push edi
push dword [eax + 0x18]
call dword [sym.imp.ntdll.dll_RtlFreeHeap]
cmp dword [ebp - 4], edi
je 0x4ad21e28
cmp dword [ebp - 0x10], edi
je 0x4ad21e28
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.dll_RemoveDirectoryW]
mov eax, dword [ebp - 4]
pop edi
pop esi
pop ebx
leave
ret 4
Function at 0x4034f0
Capabilities:
Enumerate pe sections

Disassembly:
push ebp
mov ebp, esp
push ebx
push esi
mov ebx, dword [ebp + 8]
mov eax, dword [ebp + 0xc]
movzx eax, word [eax + 0x14]
add eax, dword [ebp + 0xc]
add eax, 0x18
xor ecx, ecx
jmp 0x403524
mov edx, dword [eax + 8]
test edx, edx
jne 0x403513
mov edx, dword [eax + 0x10]
mov esi, dword [eax + 0xc]
cmp ebx, esi
jb 0x403520
add edx, esi
cmp ebx, edx
jb 0x403531
inc ecx
add eax, 0x28
mov edx, dword [ebp + 0xc]
movzx edx, word [edx + 6]
cmp ecx, edx
jb 0x403509
xor eax, eax
pop esi
pop ebx
pop ebp
ret
Function at 0x40356c
Capabilities:
Parse pe header
Resolve function by parsing pe exports

Disassembly:
push ebp
mov ebp, esp
add esp, 0xffffffd8
push ebx
push esi
push edi
mov edi, dword [ebp + 8]
cmp word [edi], 0x5a4d
je 0x403586
xor eax, eax
jmp 0x403706
mov ebx, dword [edi + 0x3c]
add ebx, edi
cmp dword [ebx], 0x4550
je 0x40359a
xor eax, eax
jmp 0x403706
cmp word [ebx + 0x14], 0xe0
jne 0x4035aa
cmp word [ebx + 0x18], 0x10b
je 0x4035b1
xor eax, eax
jmp 0x403706
mov dword [0x4a89f4], edi
mov ebx, dword [edi + 0x3c]
mov esi, edi
add ebx, esi
mov eax, dword [ebx + 0x78]
mov dword [ebp - 0x18], eax
push ebx
mov edx, dword [ebp - 0x18]
push edx
call fcn.004034f0
add esp, 8
test eax, eax
jne 0x4035dc
xor eax, eax
jmp 0x403706
mov edx, dword [0x4a89f4]
push edx
push ebx
mov ecx, dword [ebp - 0x18]
push ecx
call fcn.00403538
add esp, 0xc
mov ebx, dword [ebx + 0x78]
test ebx, ebx
jne 0x40360e
push 0x10
push 0
push str.Error_in_GetProcAddressDirectly__
push 0
call fcn.004408b2
xor eax, eax
jmp 0x403706
add ebx, esi
mov edx, dword [ebx + 0x24]
add edx, esi
mov dword [ebp - 4], edx
mov ecx, dword [ebx + 0x20]
add ecx, esi
mov dword [ebp - 0xc], ecx
mov eax, dword [ebx + 0x1c]
add eax, esi
mov dword [ebp - 8], eax
mov edx, dword [ebp + 0xc]
mov ecx, edx
shr ecx, 0x10
test cx, cx
je 0x4036d8
xor esi, esi
mov eax, dword [ebp - 8]
mov edx, eax
mov dword [ebp - 0x28], edx
jmp 0x4036ca
mov ecx, dword [ebp - 8]
mov eax, dword [ecx]
test eax, eax
je 0x4036c5
xor edx, edx
mov dword [ebp - 0x14], edx
mov ecx, dword [ebp - 0x28]
mov eax, ecx
mov dword [ebp - 0x24], eax
mov edx, dword [ebp - 0xc]
mov ecx, edx
mov dword [ebp - 0x20], ecx
mov eax, dword [ebp - 4]
mov edx, eax
mov dword [ebp - 0x1c], edx
jmp 0x4036bc
mov ecx, dword [ebp - 0x1c]
movzx eax, word [ecx]
cmp esi, eax
jne 0x4036b1
mov edx, dword [ebp - 0x20]
mov ecx, dword [edx]
add ecx, edi
mov dword [ebp - 0x10], ecx
mov eax, dword [ebp - 0x10]
mov edx, dword [ebp + 0xc]
mov cl, byte [eax]
cmp cl, byte [edx]
jne 0x4036b1
test cl, cl
je 0x4036a6
mov cl, byte [eax + 1]
cmp cl, byte [edx + 1]
jne 0x4036b1
add eax, 2
add edx, 2
test cl, cl
jne 0x40368a
jne 0x4036b1
mov eax, dword [ebp - 0x24]
mov eax, dword [eax]
add eax, edi
jmp 0x403706
inc dword [ebp - 0x14]
add dword [ebp - 0x20], 4
add dword [ebp - 0x1c], 2
mov edx, dword [ebx + 0x18]
dec edx
cmp edx, dword [ebp - 0x14]
jae 0x403670
inc esi
add dword [ebp - 0x28], 4
mov ecx, dword [ebx + 0x14]
dec ecx
cmp esi, ecx
jbe 0x403648
jmp 0x403704
xor esi, esi
mov eax, dword [ebp - 8]
jmp 0x4036fc
mov ecx, dword [ebx + 0x10]
add ecx, esi
cmp edx, ecx
jne 0x4036f8
cmp dword [eax], 0
je 0x4036f8
mov edx, dword [eax]
shl edx, 6
add edi, edx
mov eax, edi
jmp 0x403706
inc esi
add eax, 4
mov ecx, dword [ebx + 0x14]
dec ecx
cmp esi, ecx
jbe 0x4036df
xor eax, eax
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x4038f4
Capabilities:
Check for software breakpoints
Encrypt data using tea

Disassembly:
push ebp
mov ebp, esp
add esp, 0xffffffe4
push ebx
push esi
push edi
mov eax, fcn.00401e24
mov dword [ebp - 4], eax
mov esi, dword [ebp - 4]
mov al, byte [esi]
cmp al, 0xcc
je 0x4039a7
mov eax, 0x401a7c
mov dword [ebp - 8], eax
mov esi, dword [ebp - 8]
mov al, byte [esi]
cmp al, 0xcc
je 0x4039a7
mov eax, 0x403b24
mov dword [ebp - 0xc], eax
mov esi, dword [ebp - 0xc]
mov al, byte [esi]
cmp al, 0xcc
je 0x4039a7
mov eax, dword [ebp + 8]
mov edx, dword [ebp + 8]
xor ebx, ebx
mov edi, 0x20
mov ecx, dword [eax + 4]
mov eax, dword [ebp + 0xc]
mov edx, dword [edx]
mov eax, dword [eax]
mov dword [ebp - 0x10], eax
mov eax, dword [ebp + 0xc]
mov eax, dword [eax + 4]
mov dword [ebp - 0x14], eax
mov eax, dword [ebp + 0xc]
mov eax, dword [eax + 8]
mov dword [ebp - 0x18], eax
mov eax, dword [ebp + 0xc]
mov eax, dword [eax + 0xc]
mov dword [ebp - 0x1c], eax
jmp 0x4039a7
add ebx, 0x9e3779b9
mov eax, ecx
shl eax, 4
add eax, dword [ebp - 0x10]
lea esi, [ebx + ecx]
xor eax, esi
mov esi, ecx
shr esi, 5
add esi, dword [ebp - 0x14]
xor eax, esi
add edx, eax
mov eax, edx
shl eax, 4
add eax, dword [ebp - 0x18]
lea esi, [ebx + edx]
xor eax, esi
mov esi, edx
shr esi, 5
add esi, dword [ebp - 0x1c]
xor eax, esi
add ecx, eax
mov eax, edi
add edi, 0xffffffff
test eax, eax
jg 0x40396f
mov eax, dword [ebp + 8]
mov dword [eax], edx
mov edx, dword [ebp + 8]
mov dword [edx + 4], ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret

Function at 0x4039c4
Capabilities:
Check for software breakpoints
Decrypt data using tea

Disassembly:
push ebp
mov ebp, esp
add esp, 0xffffffe4
push ebx
push esi
push edi
mov eax, fcn.00401e24
mov dword [ebp - 4], eax
mov esi, dword [ebp - 4]
mov al, byte [esi]
cmp al, 0xcc
je 0x403a7a
mov eax, 0x401a7c
mov dword [ebp - 8], eax
mov esi, dword [ebp - 8]
mov al, byte [esi]
cmp al, 0xcc
je 0x403a7a
mov eax, fcn.004039c4
mov dword [ebp - 0xc], eax
mov esi, dword [ebp - 0xc]
mov al, byte [esi]
cmp al, 0xcc
je 0x403a7a
mov edx, dword [ebp + 8]
mov eax, dword [ebp + 8]
mov ebx, 0xc6ef3720
mov edi, 0x20
mov ecx, dword [edx]
mov edx, dword [eax + 4]
mov eax, dword [ebp + 0xc]
mov eax, dword [eax]
mov dword [ebp - 0x10], eax
mov eax, dword [ebp + 0xc]
mov eax, dword [eax + 4]
mov dword [ebp - 0x14], eax
mov eax, dword [ebp + 0xc]
mov eax, dword [eax + 8]
mov dword [ebp - 0x18], eax
mov eax, dword [ebp + 0xc]
mov eax, dword [eax + 0xc]
mov dword [ebp - 0x1c], eax
jmp 0x403a7a
mov eax, ecx
shl eax, 4
add eax, dword [ebp - 0x18]
lea esi, [ebx + ecx]
xor eax, esi
mov esi, ecx
shr esi, 5
add esi, dword [ebp - 0x1c]
xor eax, esi
sub edx, eax
mov eax, edx
shl eax, 4
add eax, dword [ebp - 0x10]
lea esi, [ebx + edx]
xor eax, esi
mov esi, edx
shr esi, 5
add esi, dword [ebp - 0x14]
xor eax, esi
sub ecx, eax
sub ebx, 0x9e3779b9
mov eax, edi
add edi, 0xffffffff
test eax, eax
jg 0x403a42
mov eax, dword [ebp + 8]
mov dword [eax], ecx
mov ecx, dword [ebp + 8]
mov dword [ecx + 4], edx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x403c68
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
mov ecx, dword [ebp + 0xc]
xor edx, edx
mov eax, dword [ebp + 8]
cmp ecx, edx
jbe 0x403c80
xor byte [eax], 0xf5
inc edx
inc eax
cmp ecx, edx
ja 0x403c77
pop ebp
ret

Function at 0x40f139
Capabilities:
Encode data using xor
Hash data with crc32

Disassembly:
pushal
mov esi, dword [esp + 0x24]
mov ecx, dword [esp + 0x28]
mov edi, 0x493d8c
sub eax, eax
test esi, esi
je 0x40f218
sub eax, 1
test ecx, ecx
je 0x40f216
test esi, 3
je 0x40f176
xor al, byte [esi]
inc esi
mov ebx, 0xff
and ebx, eax
shr eax, 8
xor eax, dword [edi + ebx*4]
dec ecx
jne 0x40f15b
mov edx, ecx
and edx, 7
shr ecx, 3
je 0x40f1fd
xor eax, dword [esi]
add esi, 4
mov ebx, 0xff
and ebx, eax
shr eax, 8
xor eax, dword [edi + ebx*4]
mov ebx, 0xff
and ebx, eax
shr eax, 8
xor eax, dword [edi + ebx*4]
mov ebx, 0xff
and ebx, eax
shr eax, 8
xor eax, dword [edi + ebx*4]
mov ebx, 0xff
and ebx, eax
shr eax, 8
xor eax, dword [edi + ebx*4]
xor eax, dword [esi]
add esi, 4
mov ebx, 0xff
and ebx, eax
shr eax, 8
xor eax, dword [edi + ebx*4]
mov ebx, 0xff
and ebx, eax
shr eax, 8
xor eax, dword [edi + ebx*4]
mov ebx, 0xff
and ebx, eax
shr eax, 8
xor eax, dword [edi + ebx*4]
mov ebx, 0xff
and ebx, eax
shr eax, 8
xor eax, dword [edi + ebx*4]
dec ecx
jne 0x40f184
mov ecx, edx
test ecx, ecx
je 0x40f216
xor al, byte [esi]
inc esi
mov ebx, 0xff
and ebx, eax
shr eax, 8
xor eax, dword [edi + ebx*4]
dec ecx
jne 0x40f203
not eax
mov dword [esp + 0x1c], eax
popal
ret

Function at 0x411d6c
Capabilities:
Hash data using sha1

Disassembly:
push ebp
mov ebp, esp
xor edx, edx
xor ecx, ecx
mov eax, dword [ebp + 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 + 0x14], edx
mov dword [eax + 0x18], ecx
xor edx, edx
mov dword [eax + 0x5c], edx
mov eax, 1
pop ebp
ret