joyce8/EMBER2024-capa huggingface dataset:
Function at 0x303b862
Capabilities:
Check if file exists

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
and esp, 0xfffffff8
sub esp, 0x854
mov eax, dword [0x310e008]
xor eax, esp
mov dword [esp + 0x850], eax
push ebx
mov ebx, dword [ebp + 0xc]
lea eax, [esp + 0x640]
push esi
mov esi, dword [ebp + 8]
push edi
push 0x3015448
push 0x105
push eax
mov edi, edx
mov dword [esp + 0x1c], ecx
mov dword [esp + 0x20], esi
call fcn.0307d822
add esp, 0xc
lea eax, [esp + 0x648]
push esi
push 0x105
push eax
call fcn.0307d796
add esp, 0xc
test dword [0x310fb18], 0x400000
je 0x303b9ca
mov edx, dword [esp + 0x14]
lea esi, [esp + 0x228]
push ecx
mov eax, esi
mov ecx, edi
push eax
call fcn.0304f25a
test eax, eax
je 0x303b9e5
mov ecx, esi
call fcn.0304f35f
cmp eax, 0xffffffff
jne 0x303b90e
push 0
mov eax, esi
push eax
push edi
call dword [0x31125c0]
test eax, eax
jmp 0x303b9e3
test al, 0x10
jne 0x303b9ca
push dword [esp + 0x14]
mov esi, 0x105
lea eax, [esp + 0x1c]
push esi
push eax
call fcn.0307d822
add esp, 0xc
lea ecx, [esp + 0x18]
mov edx, esi
call fcn.03037785
push 0x3019144
mov eax, ecx
push esi
push eax
call fcn.0307d796
add esp, 0xc
lea ecx, [esp + 0x18]
call fcn.0304f35f
cmp eax, 0xffffffff
je 0x303b95b
test al, 0x10
jne 0x303b96c
push 0
lea eax, [esp + 0x1c]
push eax
call dword [0x31125c4]
test eax, eax
je 0x303b9e5
push ecx
lea eax, [esp + 0x43c]
mov ecx, edi
push eax
lea edx, [esp + 0x20]
call fcn.0304f25a
test eax, eax
je 0x303b9e5
lea eax, [esp + 0x438]
push eax
lea eax, [esp + 0x22c]
push eax
call dword [0x3112610]
test eax, eax
je 0x303b9e5
mov esi, dword [esp + 0x10]
lea eax, [esp + 0x438]
push 0
push eax
lea eax, [esp + 0x650]
push eax
push esi
call sym.dbghelp.dll_SymSrvStoreFileW
lea eax, [esp + 0x438]
push eax
call dword [0x31125d0]
jmp 0x303b9ce
mov esi, dword [esp + 0x10]
push 0x40
push edi
lea eax, [esp + 0x650]
push eax
push esi
call sym.dbghelp.dll_SymSrvStoreFileW
mov esi, eax
test esi, esi
jne 0x303ba1d
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 2
je 0x303ba19
cmp eax, 3
je 0x303ba19
push 0xfdb97537
call dword [sym.imp.KERNEL32.dll_SetLastError]
call fcn.030320ab
test eax, eax
je 0x303ba19
push edi
push 0x30191a8
push 0
call fcn.0304a010
add esp, 0xc
xor eax, eax
jmp 0x303ba7b
call dword [sym.imp.KERNEL32.dll_GetLastError]
test eax, eax
jne 0x303ba43
call fcn.030320ab
test eax, eax
je 0x303ba61
push esi
push edi
push 0x3019158
push 0
call fcn.0304a010
add esp, 0x10
jmp 0x303ba61
cmp eax, 0x50
jne 0x303ba61
call fcn.030320ab
test eax, eax
je 0x303ba61
push esi
push 0x301917c
push 0
call fcn.0304a010
add esp, 0xc
test ebx, ebx
je 0x303ba78
cmp dword [ebp + 0x10], 0
jle 0x303ba78
push esi
push dword [ebp + 0x10]
push ebx
call fcn.0307d822
add esp, 0xc
xor eax, eax
inc eax
mov ecx, dword [esp + 0x85c]
pop edi
pop esi
pop ebx
xor ecx, esp
call fcn.0307c5f7
mov esp, ebp
pop ebp
ret 0xc
Function at 0x303dfae
Capabilities:
Get file size
Read file on windows

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
and esp, 0xfffffff8
sub esp, 0xc
cmp dword [ebp + 0x14], 0
push ebx
mov ebx, dword [ebp + 0x18]
push esi
mov esi, dword [ebp + 0x1c]
push edi
jne 0x303dfd0
test ebx, ebx
je 0x303e03e
test esi, esi
je 0x303e03e
mov ecx, dword [ebp + 8]
call fcn.0304a3ca
mov dword [esp + 0x14], eax
test eax, eax
jne 0x303dfe4
push 6
jmp 0x303e040
push dword [ebp + 0x10]
xor edx, edx
mov ecx, eax
push dword [ebp + 0xc]
call fcn.0304aa77
mov dword [esp + 0x10], eax
test eax, eax
jne 0x303dfff
push 0x7e
jmp 0x303e040
test ebx, ebx
jne 0x303e08a
xor esi, esi
push esi
push 0x80
push 3
push esi
push 1
push 0x80000000
push dword [ebp + 0x14]
call dword [0x31125cc]
mov ebx, eax
cmp ebx, 0xffffffff
je 0x303e03e
push esi
push ebx
call dword [sym.imp.KERNEL32.dll_GetFileSize]
mov esi, eax
test esi, esi
jne 0x303e051
push ebx
call dword [sym.imp.KERNEL32.dll_CloseHandle]
push 0x57
call dword [sym.imp.KERNEL32.dll_SetLastError]
xor eax, eax
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 0x18
mov ecx, esi
call fcn.0303767c
mov edi, eax
test edi, edi
je 0x303e081
push 0
lea eax, [esp + 0x10]
push eax
push esi
push edi
push ebx
call dword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
je 0x303e081
cmp dword [esp + 0xc], esi
je 0x303e081
mov ecx, edi
call fcn.030376c2
xor edi, edi
push ebx
call dword [sym.imp.KERNEL32.dll_CloseHandle]
jmp 0x303e0a2
mov ecx, esi
call fcn.0303767c
mov edi, eax
test edi, edi
je 0x303e03e
push esi
push ebx
push edi
call sub.msvcrt.dll_memcpy
add esp, 0xc
test edi, edi
je 0x303e03e
mov edx, dword [esp + 0x10]
mov ecx, dword [esp + 0x14]
push esi
push edi
call fcn.03039c37
jmp 0x303e048
Function at 0x30453eb
Capabilities:
Create directory

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push ecx
mov ecx, dword [ebp + 8]
lea edx, [ebp - 4]
push ebx
push edi
call fcn.03045334
test eax, eax
jne 0x304540e
push 0x57
call dword [sym.imp.KERNEL32.dll_SetLastError]
xor eax, eax
jmp 0x3045443
mov eax, dword [ebp - 4]
test eax, eax
je 0x3045402
push esi
lea esi, [eax + 1]
cmp esi, eax
jb 0x3045440
mov ecx, esi
call fcn.0303767c
mov edi, eax
test edi, edi
je 0x3045440
mov edx, dword [ebp + 8]
mov ecx, edi
push esi
call fcn.03045390
test eax, eax
jne 0x304544b
mov ecx, edi
call fcn.030376c2
xor eax, eax
pop esi
pop edi
pop ebx
mov esp, ebp
pop ebp
ret 4
cmp byte [edi], 0x5c
mov esi, edi
jne 0x304549e
cmp byte [edi + 1], 0x5c
jne 0x304549e
lea esi, [edi + 2]
mov al, byte [esi]
test al, al
je 0x30454b2
cmp al, 0x5c
je 0x3045474
mov ecx, esi
call fcn.030376f2
mov esi, eax
mov al, byte [esi]
test al, al
jne 0x3045461
cmp byte [esi], 0
je 0x30454ff
inc esi
mov al, byte [esi]
test al, al
je 0x30454b2
cmp al, 0x5c
je 0x3045497
mov ecx, esi
call fcn.030376f2
mov esi, eax
mov al, byte [esi]
test al, al
jne 0x3045484
cmp byte [esi], 0
je 0x30454ff
jmp 0x30454b1
cmp byte [edi + 1], 0x3a
jne 0x30454b2
lea esi, [edi + 2]
mov al, byte [esi]
test al, al
je 0x30454b2
cmp al, 0x5c
jne 0x30454b2
inc esi
cmp byte [esi], 0
je 0x30454ff
xor ebx, ebx
cmp byte [esi], 0x5c
jne 0x30454f2
mov ecx, edi
mov byte [esi], bl
call fcn.0304f339
cmp eax, 0xffffffff
jne 0x30454eb
push ebx
push edi
call dword [sym.imp.KERNEL32.dll_CreateDirectoryA]
test eax, eax
jne 0x30454ef
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0xb7
jne 0x3045439
jmp 0x30454ef
test al, 0x10
je 0x3045502
mov byte [esi], 0x5c
mov ecx, esi
call fcn.030376f2
mov esi, eax
cmp byte [esi], bl
jne 0x30454b9
xor ebx, ebx
inc ebx
mov ecx, edi
call fcn.030376c2
mov eax, ebx
jmp 0x3045442

Function at 0x3046c73
Capabilities:
Get file size

Disassembly:
mov edi, edi
push ecx
push esi
mov esi, ecx
mov edx, 0x3015d30
push edi
lea edi, [esi + 0x32]
mov ecx, edi
call fcn.030471ad
test eax, eax
je 0x3046ca9
lea eax, [esi + 0x894]
push edi
push 0x105
push eax
call fcn.0307d822
add esp, 0xc
xor eax, eax
inc eax
pop edi
pop esi
pop ecx
ret
mov edx, 0x3019e24
mov ecx, edi
call fcn.030471ad
test eax, eax
je 0x3046cd4
mov eax, dword [esi + 0x448]
mov dword [esi + 0x86c], eax
lea eax, [esi + 0x660]
mov dword [esi + 0x2c], 0x200
jmp 0x3046c93
test dword [0x310fb18], 0x20000
jne 0x3046ca2
call fcn.030320ab
test eax, eax
je 0x3046d00
lea eax, [esi + 0xd5c]
push eax
push 0x301a130
push dword [esi + 4]
call fcn.0304a010
add esp, 0xc
push esi
push 0x3047f5e
push edi
push dword [esi + 8]
lea eax, [esi + 0xd5c]
push eax
call sym.dbghelp.dll_FindExecutableImageExW
mov dword [esi + 0x448], eax
test eax, eax
je 0x3046ca5
lea ecx, [esi + 0x20]
cmp dword [ecx], 0
jne 0x3046d30
push ecx
push eax
call dword [sym.imp.KERNEL32.dll_GetFileSize]
push 2
pop edx
mov ecx, esi
call fcn.03047211
neg eax
sbb eax, eax
neg eax
jmp 0x3046ca5
Function at 0x30483f0
Capabilities:
Read file via mapping

Disassembly:
mov edi, edi
push esi
xor esi, esi
test ecx, ecx
je 0x3048423
push edi
push esi
push esi
push esi
push 2
push esi
push ecx
call dword [0x31125c8]
mov edi, eax
test edi, edi
je 0x3048422
push esi
push esi
push esi
push 4
push edi
call dword [sym.imp.KERNEL32.dll_MapViewOfFile]
push edi
mov esi, eax
call dword [sym.imp.KERNEL32.dll_CloseHandle]
pop edi
mov eax, esi
pop esi
ret

Function at 0x3049cf2
Capabilities:
Write file on windows

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
and esp, 0xfffffff8
mov eax, 0x3024
call fcn.031010c0
mov eax, dword [0x310e008]
xor eax, esp
mov dword [esp + 0x3020], eax
push ebx
push esi
mov esi, dword [ebp + 8]
mov ebx, ecx
push edi
xor edi, edi
mov dword [esp + 0x10], edx
mov dword [esp + 0xc], edi
mov ecx, dword [esi + 8]
cmp word [ecx], di
jne 0x3049d34
xor eax, eax
inc eax
jmp 0x3049e14
push 0x1002
lea edx, [esp + 0x1024]
call fcn.03049c7c
cmp dword [0x3110ad8], edi
je 0x3049d94
cmp word [esp + 0x1020], di
je 0x3049d94
push 0x1002
lea edx, [esp + 0x1c]
lea ecx, [esp + 0x1024]
call fcn.03042678
lea ecx, [esp + 0x18]
lea edx, [ecx + 1]
mov al, byte [ecx]
inc ecx
test al, al
jne 0x3049d73
push edi
lea eax, [esp + 0x18]
sub ecx, edx
push eax
push ecx
lea eax, [esp + 0x24]
push eax
push dword [0x3110ad8]
call dword [sym.imp.KERNEL32.dll_WriteFile]
cmp dword [0x3110adc], edi
mov edi, dword [0x3112618]
je 0x3049dbf
cmp word [esp + 0x1020], 0
je 0x3049dbf
lea eax, [esp + 0x1020]
mov dword [esp + 0xc], 1
push eax
call edi
cmp dword [esi], 0
ja 0x3049dd4
test dword [0x310fb18], 0x80000000
je 0x3049d2c
mov ecx, ebx
call fcn.03049c0c
test eax, eax
jne 0x3049df8
cmp dword [esp + 0xc], eax
jne 0x3049d2c
lea eax, [esp + 0x1020]
push eax
call edi
jmp 0x3049d2c
cmp dword [esp + 0x10], 0x20000000
mov ecx, ebx
push esi
jne 0x3049e0c
mov edx, 0x40000000
jmp 0x3049e0f
push 0x10
pop edx
call fcn.03049a66
mov ecx, dword [esp + 0x302c]
pop edi
pop esi
pop ebx
xor ecx, esp
call fcn.0307c5f7
mov esp, ebp
pop ebp
ret 4
Function at 0x304d06b
Capabilities:
Parse pe header

Disassembly:
push 0x14
push 0x310b7d0
call fcn.0307e324
mov ebx, edx
and dword [ebp - 0x20], 0
xor edi, edi
inc edi
and dword [ebp - 4], 0
call fcn.030483f0
mov esi, eax
mov dword [ebp - 0x20], esi
test esi, esi
jne 0x304d0a8
push 6
call dword [sym.imp.KERNEL32.dll_SetLastError]
mov dword [ebp - 4], 0xfffffffe
xor eax, eax
jmp 0x304d158
movzx eax, word [esi]
mov ecx, 0x5a4d
cmp ax, cx
jne 0x304d0fd
mov edx, dword [esi + 0x3c]
cmp dword [edx + esi], 0x4550
je 0x304d0d7
push 0xb
call dword [sym.imp.KERNEL32.dll_SetLastError]
xor edi, edi
mov dword [ebp - 0x1c], edi
mov dword [ebp - 4], 0xfffffffe
jmp 0x304d14b
mov eax, 0x20b
cmp word [edx + esi + 0x18], ax
mov eax, dword [edx + esi + 0x50]
mov dword [ebx], eax
mov ecx, dword [edx + esi + 8]
mov eax, dword [ebp + 8]
mov dword [eax], ecx
mov ecx, dword [ebp + 0xc]
test ecx, ecx
je 0x304d0ce
mov eax, dword [edx + esi + 0x58]
jmp 0x304d11e
mov ecx, 0x4944
cmp ax, cx
jne 0x304d0c1
mov ecx, dword [esi + 8]
mov eax, dword [ebp + 8]
mov dword [eax], ecx
mov eax, dword [esi + 0x14]
mov dword [ebx], eax
mov ecx, dword [ebp + 0xc]
test ecx, ecx
je 0x304d0ce
mov eax, dword [esi + 0xc]
mov dword [ecx], eax
jmp 0x304d0ce
test esi, esi
je 0x304d156
push esi
call dword [sym.imp.KERNEL32.dll_UnmapViewOfFile]
mov eax, edi
call fcn.0307e369
ret 8
Function at 0x304f339
Capabilities:
Get file attributes

Disassembly:
mov edi, edi
push esi
mov esi, ecx
xor ecx, ecx
call fcn.0304f302
push esi
call dword [sym.imp.KERNEL32.dll_GetFileAttributesA]
xor ecx, ecx
mov esi, eax
inc ecx
call fcn.0304f302
mov eax, esi
pop esi
ret
Function at 0x3052a7f
Capabilities:
Print debug messages

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x110
mov eax, dword [0x310e008]
xor eax, ebp
mov dword [ebp - 8], eax
push ebx
mov ebx, dword [ebp + 8]
push esi
push edi
mov edi, edx
test dword [0x311333c], ecx
je 0x3052b0f
lea esi, [ebp - 0x10c]
test ecx, ecx
js 0x3052ac9
push 0x301ae8c
mov eax, esi
push 0x100
push eax
call fcn.0307d4b8
add esp, 0xc
lea esi, [ebp - 0x107]
push ebx
lea eax, [ebp - 0xd]
push edi
sub eax, esi
push eax
push esi
call fcn.0307d3ca
mov eax, dword [0x3112268]
xor ecx, ecx
add esp, 0x10
mov byte [ebp - 0xd], cl
sub eax, ecx
je 0x3052b02
dec eax
jne 0x3052b0f
lea eax, [ebp - 0x10c]
push eax
push 0x301ae94
push ecx
call fcn.03049f03
add esp, 0xc
jmp 0x3052b0f
lea eax, [ebp - 0x10c]
push eax
call dword [sym.imp.KERNEL32.dll_OutputDebugStringA]
mov ecx, dword [ebp - 8]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.0307c5f7
mov esp, ebp
pop ebp
ret
Function at 0x306324d
Capabilities:
Query or enumerate registry value

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0xe0
mov eax, dword [0x310e008]
xor eax, ebp
mov dword [ebp - 4], eax
mov eax, dword [ebp + 0xc]
mov dword [ebp - 0xe0], eax
mov eax, dword [ebp + 0x10]
mov dword [ebp - 0xdc], eax
mov eax, dword [ebp + 0x14]
mov dword [ebp - 0xd8], eax
mov eax, dword [ebp + 0x1c]
push ebx
mov ebx, dword [ebp + 8]
mov dword [ebp - 0xd4], eax
mov eax, dword [ebp + 0x20]
push esi
mov esi, dword [ebp + 0x18]
mov dword [ebp - 0xd0], eax
lea eax, [ebp - 0xc8]
push eax
mov dword [ebp - 0xc8], 0x9c
call dword [sym.imp.KERNEL32.dll_GetVersionExA]
test eax, eax
jne 0x306330f
push 0x9c
push eax
lea eax, [ebp - 0xc8]
push eax
call sub.msvcrt.dll_memset
add esp, 0xc
mov dword [ebp - 0xc8], 0x94
lea eax, [ebp - 0xc8]
push eax
call dword [sym.imp.KERNEL32.dll_GetVersionExA]
test eax, eax
jne 0x306330f
mov esi, dword [sym.imp.KERNEL32.dll_GetLastError]
call esi
test eax, eax
je 0x3063305
call esi
test eax, eax
jle 0x30633f5
movzx eax, ax
or eax, 0x80070000
jmp 0x30633f5
mov eax, 0x80004005
jmp 0x30633f5
mov ecx, dword [ebp - 0xe0]
mov eax, dword [ebp - 0xb8]
mov dword [ebx], eax
mov eax, dword [ebp - 0xc4]
mov dword [ecx], eax
mov ecx, dword [ebp - 0xdc]
mov eax, dword [ebp - 0xc0]
mov dword [ecx], eax
mov ecx, dword [ebp - 0xd8]
mov eax, dword [ebp - 0xbc]
mov dword [ecx], eax
mov ecx, dword [ebp - 0xd4]
movzx eax, byte [ebp - 0x2e]
mov word [ecx], ax
mov ecx, dword [ebp - 0xd0]
mov ax, word [ebp - 0x30]
mov word [ecx], ax
xor eax, eax
and dword [ebp - 0xcc], eax
mov word [esi], ax
lea eax, [ebp - 0xcc]
push eax
push 0x20019
push 0
push 0x301df54
push 0x80000002
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
test eax, eax
jne 0x30633f3
lea eax, [ebp - 0xd0]
mov dword [ebp - 0xd0], 0x28
push eax
lea eax, [ebp - 0x2c]
push eax
lea eax, [ebp - 0xd4]
push eax
push 0
push 0x301df84
push dword [ebp - 0xcc]
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
test eax, eax
jne 0x30633e7
cmp byte [ebp - 0x2c], al
je 0x30633e7
lea eax, [ebp - 0x2c]
push eax
call dword [sym.imp.msvcrt.dll__strlwr]
lea eax, [ebp - 0x2c]
mov dword [esp], 0x301df90
push eax
call dword [sym.imp.msvcrt.dll_strstr]
pop ecx
pop ecx
test eax, eax
je 0x30633e7
push 0xc
pop eax
mov word [esi], ax
push dword [ebp - 0xcc]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
xor eax, eax
mov ecx, dword [ebp - 4]
pop esi
xor ecx, ebp
pop ebx
call fcn.0307c5f7
mov esp, ebp
pop ebp
ret 0x1c
Function at 0x30651b4
Capabilities:
Parse pe header

Disassembly:
push 0xc
push 0x310b8c0
call fcn.0307e324
xor ebx, ebx
test ecx, ecx
je 0x3065230
cmp ecx, 0xffffffff
je 0x3065230
and dword [ebp - 4], ebx
mov eax, 0x5a4d
cmp word [ecx], ax
jne 0x3065229
mov ebx, dword [ecx + 0x3c]
add ebx, ecx
mov dword [ebp - 0x1c], ebx
cmp dword [ebx], 0x4550
jne 0x3065224
movzx eax, word [ebx + 0x18]
mov esi, 0x10b
cmp ax, si
je 0x3065200
mov ecx, 0x20b
cmp ax, cx
jne 0x3065224
test edx, edx
je 0x3065229
cmp ax, si
jne 0x3065212
mov ecx, ebx
call fcn.03065091
jmp 0x3065229
push 0x42
pop ecx
mov esi, ebx
mov edi, edx
rep movsd dword es:[edi], dword [esi]
jmp 0x3065229
xor ebx, ebx
mov dword [ebp - 0x1c], ebx
mov dword [ebp - 4], 0xfffffffe
mov eax, ebx
call fcn.0307e369
ret

Function at 0x306523d
Capabilities:
Enumerate pe sections

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
movzx eax, word [ecx + 0x14]
push ebx
push esi
mov ebx, edx
lea esi, [ecx + 0x18]
movzx edx, word [ecx + 6]
add esi, eax
push edi
xor edi, edi
test edx, edx
je 0x3065274
mov ecx, dword [esi + 0xc]
cmp dword [ebp + 8], ecx
jb 0x306526c
mov eax, dword [esi + 0x10]
add eax, ecx
cmp dword [ebp + 8], eax
jb 0x3065276
add esi, 0x28
inc edi
cmp edi, edx
jb 0x306525a
xor esi, esi
test esi, esi
je 0x3065287
mov eax, dword [esi + 0x14]
sub eax, dword [esi + 0xc]
add eax, ebx
add eax, dword [ebp + 8]
jmp 0x3065289
xor eax, eax
pop edi
pop esi
pop ebx
pop ebp
ret 4

Function at 0x3065bce
Capabilities:
Create thread
Resume thread
Suspend thread
Terminate thread

Disassembly:
push 0x5b8
push 0x310b900
call fcn.03105bbc
mov edi, ecx
xor esi, esi
mov dword [ebp - 0x5c0], esi
lea eax, [ebp - 0x5c4]
push eax
push esi
push esi
push 0x3065bc5
push esi
push esi
call dword [sym.imp.KERNEL32.dll_CreateThread]
mov ebx, eax
mov dword [ebp - 0x5bc], ebx
test ebx, ebx
je 0x3065d03
push dword [ebp - 0x5c4]
push ecx
mov edx, 0x1f03ff
mov ecx, edi
call fcn.03065b5a
mov edi, eax
mov dword [ebp - 0x5c8], edi
test edi, edi
je 0x3065ccf
mov dword [ebp - 4], esi
push edi
call dword [sym.imp.KERNEL32.dll_SuspendThread]
mov dword [ebp - 0x5c0], eax
cmp eax, 0xffffffff
je 0x3065ca4
mov dword [ebp - 0x5b4], 0x10007
lea eax, [ebp - 0x5b4]
push eax
push edi
mov ebx, dword [sym.imp.KERNEL32.dll_GetThreadContext]
call ebx
mov esi, eax
mov dword [ebp - 0x5b8], esi
test esi, esi
je 0x3065caa
mov dword [ebp - 0x2e8], 0x10007
lea eax, [ebp - 0x2e8]
push eax
push dword [ebp - 0x5bc]
call ebx
mov esi, eax
mov dword [ebp - 0x5b8], esi
test esi, esi
je 0x3065caa
mov eax, dword [ebp - 0x4fc]
sub eax, dword [ebp - 0x230]
neg eax
sbb eax, eax
not eax
and esi, eax
mov dword [ebp - 0x5b8], esi
mov dword [ebp - 4], 0xfffffffe
jmp 0x3065ccf
cmp dword [ebp - 0x5c0], 0
jle 0x3065cdf
push edi
call dword [sym.imp.KERNEL32.dll_ResumeThread]
push 0xdead
mov ebx, dword [ebp - 0x5bc]
push ebx
call dword [sym.imp.KERNEL32.dll_TerminateThread]
push ebx
mov ebx, dword [sym.imp.KERNEL32.dll_CloseHandle]
call ebx
test edi, edi
je 0x3065d01
push edi
call ebx
mov eax, esi
call fcn.03105c04
ret
Function at 0x3068097
Capabilities:
Resolve function by parsing pe exports

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push ecx
push ebx
push esi
mov esi, ecx
mov eax, edx
mov dword [ebp - 4], eax
push edi
test esi, esi
je 0x306810d
test eax, eax
je 0x306810d
mov eax, dword [esi + 0x3c]
push 0
pop ebx
add eax, esi
je 0x30680cd
cmp dword [eax + 0x74], ebx
jbe 0x30680cd
mov ecx, dword [eax + 0x78]
test ecx, ecx
je 0x30680cd
mov ebx, dword [eax + 0x7c]
lea edi, [ecx + esi]
jmp 0x30680cf
mov edi, ebx
test edi, edi
je 0x306810d
mov eax, dword [edi + 0x24]
mov edx, dword [edi + 0x18]
add eax, esi
mov ecx, dword [ebp - 4]
push eax
mov eax, dword [edi + 0x20]
add eax, esi
push eax
push esi
call fcn.0306811b
movzx ecx, ax
cmp ecx, dword [edi + 0x14]
jae 0x306810d
mov eax, dword [edi + 0x1c]
lea eax, [eax + ecx*4]
mov ecx, dword [eax + esi]
add ecx, esi
cmp ecx, edi
jbe 0x3068109
lea eax, [ebx + edi]
cmp ecx, eax
jb 0x306810d
mov eax, ecx
jmp 0x306810f
xor eax, eax
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x307e1c0
Capabilities:
Enumerate pe sections

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
mov eax, dword [ebp + 8]
xor edx, edx
push ebx
push esi
push edi
mov ecx, dword [eax + 0x3c]
add ecx, eax
movzx eax, word [ecx + 0x14]
movzx ebx, word [ecx + 6]
add eax, 0x18
add eax, ecx
test ebx, ebx
je 0x307e1fe
mov edi, dword [ebp + 0xc]
mov esi, dword [eax + 0xc]
cmp edi, esi
jb 0x307e1f6
mov ecx, dword [eax + 8]
add ecx, esi
cmp edi, ecx
jb 0x307e200
inc edx
add eax, 0x28
cmp edx, ebx
jb 0x307e1e6
xor eax, eax
pop edi
pop esi
pop ebx
pop ebp
ret

Function at 0x307e2e0
Capabilities:
Parse pe header

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
mov eax, dword [ebp + 8]
mov ecx, 0x5a4d
cmp word [eax], cx
je 0x307e2f6
xor eax, eax
pop ebp
ret
mov ecx, dword [eax + 0x3c]
add ecx, eax
xor eax, eax
cmp dword [ecx], 0x4550
jne 0x307e311
mov edx, 0x10b
cmp word [ecx + 0x18], dx
sete al
pop ebp
ret

Function at 0x3088b30
Capabilities:
Enumerate pe sections

Disassembly:
push ebp
mov ebp, esp
sub esp, 0xc
push esi
mov esi, ecx
cmp dword [esi + 0x18], 0
je 0x3088b71
mov eax, dword [esi + 0x14]
mov ecx, dword [eax + 8]
mov eax, dword [ecx]
call dword [eax]
mov ecx, dword [ebp + 8]
lea ecx, [ecx + ecx*4]
lea eax, [eax + ecx*4]
mov ecx, dword [esi + 0x18]
movzx esi, word [eax + 6]
mov ecx, dword [ecx + 8]
dec esi
mov eax, dword [ecx]
call dword [eax]
mov ecx, eax
lea eax, [esi + esi*4]
pop esi
mov eax, dword [ecx + eax*8 + 0xc]
mov esp, ebp
pop ebp
ret 4
mov ecx, dword [esi + 0x24]
test ecx, ecx
je 0x3088b95
mov ecx, dword [ecx + 8]
mov eax, dword [ecx]
call dword [eax + 4]
test eax, 0xfffffff8
je 0x3088b95
mov eax, dword [esi + 0x24]
mov ecx, dword [eax + 8]
mov eax, dword [ecx]
call dword [eax]
mov eax, dword [eax]
jmp 0x3088b9a
mov eax, 0x1000
mov dword [ebp - 4], eax
mov eax, dword [esi + 0x10]
mov dword [ebp - 8], eax
mov eax, dword [esi + 0x14]
push ebx
mov ecx, dword [eax + 8]
push edi
mov eax, dword [ecx]
xor edi, edi
call dword [eax + 4]
mov ecx, eax
mov eax, 0xcccccccd
mul ecx
shr edx, 4
test edx, edx
je 0x3088c10
mov ebx, dword [ebp + 8]
mov dword [ebp - 0xc], edi
cmp edi, ebx
je 0x3088c1c
mov eax, dword [esi + 0x14]
mov ecx, dword [eax + 8]
mov eax, dword [ecx]
call dword [eax]
mov edx, dword [ebp - 0xc]
mov ecx, dword [ebp - 8]
mov eax, dword [eax + edx + 0x10]
dec ecx
add ecx, eax
mov eax, dword [ebp - 8]
dec eax
not eax
and ecx, eax
mov eax, dword [esi + 0x14]
add dword [ebp - 4], ecx
mov ecx, dword [eax + 8]
add edx, 0x14
mov eax, dword [ecx]
inc edi
mov dword [ebp - 0xc], edx
call dword [eax + 4]
mov ecx, eax
mov eax, 0xcccccccd
mul ecx
shr edx, 4
cmp edi, edx
jb 0x3088bc8
pop edi
pop ebx
or eax, 0xffffffff
pop esi
mov esp, ebp
pop ebp
ret 4
mov eax, dword [ebp - 4]
pop edi
pop ebx
pop esi
mov esp, ebp
pop ebp
ret 4
Function at 0x308ba10
Capabilities:
Encode data using xor
Hash data with crc32

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x24
mov eax, dword [ebp + 8]
mov dword [ebp - 0x24], eax
mov eax, dword [ebp + 0xc]
mov dword [ebp - 0x20], eax
mov eax, dword [ebp + 0x10]
mov dword [ebp - 0x1c], eax
mov eax, dword [ebp + 0x14]
push ebx
mov dword [ebp - 0x18], eax
mov eax, dword [ebp + 0x18]
push esi
mov dword [ebp - 0x14], eax
mov eax, dword [ebp + 0x1c]
push edi
mov ebx, ecx
mov dword [ebp - 0x10], eax
or edx, 0xffffffff
lea esi, [ebp - 0x24]
mov edi, 0x18
lea ebx, [ebx]
movzx eax, byte [esi]
movzx ecx, dl
xor ecx, eax
shr edx, 8
xor edx, dword [ecx*4 + 0x30023e0]
lea esi, [esi + 1]
dec edi
jne 0x308ba50
mov eax, edx
xor edx, edx
div dword [ebx + 4]
mov ecx, dword [ebx + 0x1c]
or edi, 0xffffffff
shl ecx, 5
mov dword [ebp - 4], edi
mov dword [ebp - 0xc], ecx
mov eax, edx
mov dword [ebp - 8], eax
cmp eax, ecx
jae 0x308bad9
mov ecx, eax
and ecx, 0x1f
mov esi, 1
shl esi, cl
mov ecx, dword [ebx + 0x18]
mov edx, eax
shr edx, 5
test dword [ecx + edx*4], esi
je 0x308bad9
mov ecx, dword [ebx]
lea edx, [eax + eax*2]
lea esi, [ebp + 8]
lea edx, [ecx + edx*8]
mov edi, 0x14
mov ecx, dword [edx]
cmp ecx, dword [esi]
jne 0x308bad4
add edx, 4
add esi, 4
sub edi, 4
jae 0x308bab0
mov ecx, dword [ebp + 0x20]
pop edi
pop esi
mov dword [ecx], eax
mov eax, 1
pop ebx
mov esp, ebp
pop ebp
ret 0x1c
mov edi, dword [ebp - 4]
jmp 0x308bb0b
cmp edi, 0xffffffff
jne 0x308bae5
mov edi, eax
mov dword [ebp - 4], edi
jmp 0x308bae8
mov edi, dword [ebp - 4]
mov ecx, dword [ebx + 0x28]
shl ecx, 5
cmp eax, ecx
jae 0x308bb25
mov ecx, eax
and ecx, 0x1f
mov esi, 1
shl esi, cl
mov ecx, dword [ebx + 0x24]
mov edx, eax
shr edx, 5
test dword [ecx + edx*4], esi
je 0x308bb25
lea ecx, [eax + 1]
cmp ecx, dword [ebx + 4]
sbb eax, eax
and eax, ecx
cmp eax, dword [ebp - 8]
je 0x308bb25
mov edi, dword [ebp - 4]
mov ecx, dword [ebp - 0xc]
jmp 0x308ba83
mov eax, dword [ebp + 0x20]
mov dword [eax], edi
pop edi
pop esi
xor eax, eax
pop ebx
mov esp, ebp
pop ebp
ret 0x1c