joyce8/EMBER2024-capa huggingface dataset:
Function at 0x3042420
Capabilities:
Read file via mapping

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 8
mov dword [ebp - 4], 0
cmp dword [ebp + 8], 0
je 0x3042471
push 0
push 0
push 0
push 2
push 0
mov eax, dword [ebp + 8]
push eax
call dword [sym.imp.KERNEL32.dll_CreateFileMappingA]
mov dword [ebp - 8], eax
cmp dword [ebp - 8], 0
je 0x3042471
push 0
push 0
push 0
push 4
mov ecx, dword [ebp - 8]
push ecx
call dword [sym.imp.KERNEL32.dll_MapViewOfFile]
mov dword [ebp - 4], eax
mov edx, dword [ebp - 8]
push edx
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov eax, dword [ebp - 4]
mov esp, ebp
pop ebp
ret 4

Function at 0x30435a0
Capabilities:
Check os version

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0xa0
mov eax, dword [0x30ed8a8]
xor eax, ebp
mov dword [ebp - 4], eax
mov dword [ebp - 0xa0], 0x94
lea eax, [ebp - 0xa0]
push eax
call dword [sym.imp.KERNEL32.dll_GetVersionExA]
cmp dword [ebp - 0x90], 2
jne 0x3043610
cmp dword [ebp - 0x9c], 6
jae 0x30435f7
mov ecx, dword [ebp + 0x14]
push ecx
mov edx, dword [ebp + 0x10]
push edx
mov eax, dword [ebp + 0xc]
push eax
mov ecx, dword [ebp + 8]
push ecx
call fcn.03043770
jmp 0x3043621
mov edx, dword [ebp + 0x14]
push edx
mov eax, dword [ebp + 0x10]
push eax
mov ecx, dword [ebp + 0xc]
push ecx
mov edx, dword [ebp + 8]
push edx
call fcn.03043770
jmp 0x3043621
mov eax, dword [ebp + 0x10]
push eax
mov ecx, dword [ebp + 0xc]
push ecx
mov edx, dword [ebp + 8]
push edx
call fcn.03043640
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.030554d2
mov esp, ebp
pop ebp
ret 0x10
Function at 0x3044ac0
Capabilities:
Write file on windows

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
mov eax, 0x3034
call fcn.0307c390
mov eax, dword [0x30ed8a8]
xor eax, ebp
mov dword [ebp - 4], eax
mov dword [ebp - 0x1014], 0
mov eax, dword [ebp + 0xc]
mov ecx, dword [eax + 8]
movzx edx, word [ecx]
test edx, edx
jne 0x3044afa
mov eax, 1
jmp 0x3044c34
push 0x1002
lea eax, [ebp - 0x3020]
push eax
mov ecx, dword [ebp + 0xc]
mov edx, dword [ecx + 8]
push edx
call fcn.03044a00
cmp dword [0x30ec318], 0
je 0x3044bb5
movzx eax, word [ebp - 0x3020]
test eax, eax
je 0x3044bb5
push 0x1002
lea ecx, [ebp - 0x1010]
push ecx
lea edx, [ebp - 0x3020]
push edx
call fcn.0303a630
lea eax, [ebp - 0x1010]
mov dword [ebp - 0x3028], eax
mov ecx, dword [ebp - 0x3028]
add ecx, 1
mov dword [ebp - 0x302c], ecx
mov edx, dword [ebp - 0x3028]
mov al, byte [edx]
mov byte [ebp - 0x302d], al
add dword [ebp - 0x3028], 1
cmp byte [ebp - 0x302d], 0
jne 0x3044b61
mov ecx, dword [ebp - 0x3028]
sub ecx, dword [ebp - 0x302c]
mov dword [ebp - 0x3034], ecx
push 0
lea edx, [ebp - 0x3024]
push edx
mov eax, dword [ebp - 0x3034]
push eax
lea ecx, [ebp - 0x1010]
push ecx
mov edx, dword [0x30ec318]
push edx
call dword [sym.imp.KERNEL32.dll_WriteFile]
cmp dword [0x30ec31c], 0
je 0x3044be0
movzx eax, word [ebp - 0x3020]
test eax, eax
je 0x3044be0
mov dword [ebp - 0x1014], 1
lea ecx, [ebp - 0x3020]
push ecx
call dword [0x30ef6ac]
mov edx, dword [ebp + 0xc]
cmp dword [edx], 0
ja 0x3044bfb
mov eax, dword [0x30eb358]
and eax, 0x80000000
jne 0x3044bfb
mov eax, 1
jmp 0x3044c34
mov ecx, dword [ebp + 8]
push ecx
call fcn.030448a0
test eax, eax
jne 0x3044c25
cmp dword [ebp - 0x1014], 0
jne 0x3044c1e
lea edx, [ebp - 0x3020]
push edx
call dword [0x30ef6ac]
mov eax, 1
jmp 0x3044c34
mov eax, dword [ebp + 0xc]
push eax
push 0x10
mov ecx, dword [ebp + 8]
push ecx
call fcn.03044620
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.030554d2
mov esp, ebp
pop ebp
ret 8
Function at 0x3049d50
Capabilities:
Parse pe header

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push 0xfffffffffffffffe
push 0x30e8580
push 0x307c3cb
mov eax, dword fs:[0]
push eax
add esp, 0xffffffd4
push ebx
push esi
push edi
mov eax, dword [0x30ed8a8]
xor dword [ebp - 8], eax
xor eax, ebp
push eax
lea eax, [ebp - 0x10]
mov dword fs:[0], eax
mov dword [ebp - 0x18], esp
mov dword [ebp - 0x20], 0
mov dword [ebp - 0x1c], 1
mov dword [ebp - 4], 0
mov eax, dword [ebp + 8]
push eax
call fcn.03042420
mov dword [ebp - 0x20], eax
cmp dword [ebp - 0x20], 0
jne 0x3049dc5
push 6
call fcn.030226d0
mov dword [ebp - 0x3c], eax
mov dword [ebp - 4], 0xfffffffe
mov eax, dword [ebp - 0x3c]
jmp 0x3049f0a
mov ecx, dword [ebp - 0x20]
mov dx, word [ecx]
mov word [ebp - 0x24], dx
movzx eax, word [ebp - 0x24]
cmp eax, 0x5a4d
jne 0x3049e80
mov ecx, dword [ebp - 0x20]
mov dword [ebp - 0x28], ecx
mov edx, dword [ebp - 0x28]
mov eax, dword [ebp - 0x20]
add eax, dword [edx + 0x3c]
mov dword [ebp - 0x2c], eax
mov ecx, dword [ebp - 0x2c]
cmp dword [ecx], 0x4550
je 0x3049e11
push 0xb
call fcn.030226d0
mov dword [ebp - 0x1c], eax
mov dword [ebp - 4], 0xfffffffe
jmp 0x3049ef7
mov edx, dword [ebp - 0x2c]
movzx eax, word [edx + 0x18]
push eax
call fcn.03042380
test eax, eax
je 0x3049e57
mov ecx, dword [ebp - 0x28]
mov edx, dword [ebp - 0x20]
add edx, dword [ecx + 0x3c]
mov dword [ebp - 0x30], edx
mov eax, dword [ebp + 0xc]
mov ecx, dword [ebp - 0x30]
mov edx, dword [ecx + 0x50]
mov dword [eax], edx
mov eax, dword [ebp + 0x10]
mov ecx, dword [ebp - 0x30]
mov edx, dword [ecx + 8]
mov dword [eax], edx
cmp dword [ebp + 0x14], 0
je 0x3049e55
mov eax, dword [ebp + 0x14]
mov ecx, dword [ebp - 0x30]
mov edx, dword [ecx + 0x58]
mov dword [eax], edx
jmp 0x3049e7e
mov eax, dword [ebp + 0xc]
mov ecx, dword [ebp - 0x2c]
mov edx, dword [ecx + 0x50]
mov dword [eax], edx
mov eax, dword [ebp + 0x10]
mov ecx, dword [ebp - 0x2c]
mov edx, dword [ecx + 8]
mov dword [eax], edx
cmp dword [ebp + 0x14], 0
je 0x3049e7e
mov eax, dword [ebp + 0x14]
mov ecx, dword [ebp - 0x2c]
mov edx, dword [ecx + 0x58]
mov dword [eax], edx
jmp 0x3049ec4
movzx eax, word [ebp - 0x24]
cmp eax, 0x4944
jne 0x3049eba
mov ecx, dword [ebp - 0x20]
mov dword [ebp - 0x34], ecx
mov edx, dword [ebp + 0x10]
mov eax, dword [ebp - 0x34]
mov ecx, dword [eax + 8]
mov dword [edx], ecx
mov edx, dword [ebp + 0xc]
mov eax, dword [ebp - 0x34]
mov ecx, dword [eax + 0x14]
mov dword [edx], ecx
cmp dword [ebp + 0x14], 0
je 0x3049eb8
mov edx, dword [ebp + 0x14]
mov eax, dword [ebp - 0x34]
mov ecx, dword [eax + 0xc]
mov dword [edx], ecx
jmp 0x3049ec4
push 0xb
call fcn.030226d0
mov dword [ebp - 0x1c], eax
mov dword [ebp - 4], 0xfffffffe
jmp 0x3049ef7
cmp dword [ebp - 0x20], 0
je 0x3049f07
mov eax, dword [ebp - 0x20]
push eax
call dword [sym.imp.KERNEL32.dll_UnmapViewOfFile]
mov eax, dword [ebp - 0x1c]
mov ecx, dword [ebp - 0x10]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 0x10
Function at 0x304ce60
Capabilities:
Get file attributes

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push ecx
push 0
call fcn.0304ce10
mov eax, dword [ebp + 8]
push eax
call dword [sym.imp.KERNEL32.dll_GetFileAttributesA]
mov dword [ebp - 4], eax
push 1
call fcn.0304ce10
mov eax, dword [ebp - 4]
mov esp, ebp
pop ebp
ret 4
Function at 0x30536f0
Capabilities:
Print debug messages

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x10c
mov eax, dword [0x30ed8a8]
xor eax, ebp
mov dword [ebp - 8], eax
mov eax, dword [0x3104be8]
and eax, dword [ebp + 8]
jne 0x3053714
jmp 0x30537bd
lea ecx, [ebp - 0x108]
mov dword [ebp - 4], ecx
mov edx, dword [ebp + 8]
and edx, 0x80000000
jne 0x305374a
push 0x3005e50
push pe_nt_image_headers32
lea eax, [ebp - 0x108]
push eax
call fcn.0307c9f8
add esp, 0xc
mov ecx, dword [ebp - 4]
add ecx, 5
mov dword [ebp - 4], ecx
mov edx, dword [ebp + 0x10]
push edx
mov eax, dword [ebp + 0xc]
push eax
mov ecx, dword [ebp - 4]
lea edx, [ebp - 0x108]
sub ecx, edx
mov eax, pe_nt_image_headers32
sub eax, ecx
sub eax, 1
push eax
mov ecx, dword [ebp - 4]
push ecx
call fcn.0307c8f4
add esp, 0x10
mov byte [ebp - 9], 0
mov edx, dword [0x30ed89c]
mov dword [ebp - 0x10c], edx
cmp dword [ebp - 0x10c], 0
je 0x3053798
cmp dword [ebp - 0x10c], 1
je 0x30537a7
jmp 0x30537bd
lea eax, [ebp - 0x108]
push eax
call dword [sym.imp.KERNEL32.dll_OutputDebugStringA]
jmp 0x30537bd
lea ecx, [ebp - 0x108]
push ecx
push 0x3005e4c
push 0
call fcn.03044d50
add esp, 0xc
mov ecx, dword [ebp - 8]
xor ecx, ebp
call fcn.030554d2
mov esp, ebp
pop ebp
ret

Function at 0x30554d2
Capabilities:
Terminate process

Disassembly:
cmp ecx, dword [0x30ed8a8]
jne 0x30554e3
test ecx, 0xffff0000
jne 0x30554e3
ret
jmp fcn.030554ed
Function at 0x3063110
Capabilities:
Parse pe header

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push 0xfffffffffffffffe
push 0x30e8670
push 0x307c3cb
mov eax, dword fs:[0]
push eax
add esp, 0xfffffff4
push ebx
push esi
push edi
mov eax, dword [0x30ed8a8]
xor dword [ebp - 8], eax
xor eax, ebp
push eax
lea eax, [ebp - 0x10]
mov dword fs:[0], eax
mov dword [ebp - 0x18], esp
mov dword [ebp - 0x1c], 0
cmp dword [ebp + 8], 0
je 0x3063203
cmp dword [ebp + 8], 0xffffffff
je 0x3063203
mov dword [ebp - 4], 0
mov eax, dword [ebp + 8]
movzx ecx, word [eax]
cmp ecx, 0x5a4d
jne 0x30631e3
mov edx, dword [ebp + 8]
mov eax, dword [ebp + 8]
add eax, dword [edx + 0x3c]
mov dword [ebp - 0x1c], eax
mov ecx, dword [ebp - 0x1c]
cmp dword [ecx], 0x4550
jne 0x30631a9
mov edx, dword [ebp - 0x1c]
movzx eax, word [edx + 0x18]
cmp eax, 0x10b
je 0x30631b2
mov ecx, dword [ebp - 0x1c]
movzx edx, word [ecx + 0x18]
cmp edx, 0x20b
je 0x30631b2
mov dword [ebp - 0x1c], 0
jmp 0x30631e3
cmp dword [ebp + 0xc], 0
je 0x30631e3
mov eax, dword [ebp - 0x1c]
movzx ecx, word [eax + 0x18]
cmp ecx, 0x10b
jne 0x30631d6
mov edx, dword [ebp + 0xc]
push edx
mov eax, dword [ebp - 0x1c]
push eax
call fcn.03062f00
jmp 0x30631e3
mov ecx, 0x42
mov esi, dword [ebp - 0x1c]
mov edi, dword [ebp + 0xc]
rep movsd dword es:[edi], dword [esi]
mov dword [ebp - 4], 0xfffffffe
jmp 0x3063203
mov eax, dword [ebp - 0x1c]
mov ecx, dword [ebp - 0x10]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 8

Function at 0x3063220
Capabilities:
Enumerate pe sections

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 8
mov eax, dword [ebp + 8]
movzx ecx, word [eax + 0x14]
mov edx, dword [ebp + 8]
lea eax, [edx + ecx + 0x18]
mov dword [ebp - 4], eax
mov dword [ebp - 8], 0
jmp 0x306324b
mov ecx, dword [ebp - 8]
add ecx, 1
mov dword [ebp - 8], ecx
mov edx, dword [ebp + 8]
movzx eax, word [edx + 6]
cmp dword [ebp - 8], eax
jae 0x3063283
mov ecx, dword [ebp - 4]
mov edx, dword [ebp + 0x10]
cmp edx, dword [ecx + 0xc]
jb 0x3063278
mov eax, dword [ebp - 4]
mov ecx, dword [eax + 0xc]
mov edx, dword [ebp - 4]
add ecx, dword [edx + 0x10]
cmp dword [ebp + 0x10], ecx
jae 0x3063278
mov eax, dword [ebp - 4]
jmp 0x3063285
mov eax, dword [ebp - 4]
add eax, 0x28
mov dword [ebp - 4], eax
jmp 0x3063242
xor eax, eax
mov esp, ebp
pop ebp
ret 0xc
Function at 0x3063a40
Capabilities:
Create thread
Resume thread
Suspend thread
Terminate thread

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push 0xfffffffffffffffe
push 0x30e86b0
push 0x307c3cb
mov eax, dword fs:[0]
push eax
add esp, 0xfffffa40
mov eax, dword [0x30ed8a8]
xor dword [ebp - 8], eax
xor eax, ebp
mov dword [ebp - 0x28], eax
push ebx
push esi
push edi
push eax
lea eax, [ebp - 0x10]
mov dword fs:[0], eax
mov dword [ebp - 0x18], esp
mov dword [ebp - 0x2fc], 0
mov dword [ebp - 0x20], 0
mov dword [ebp - 0x1c], 0
lea eax, [ebp - 0x24]
push eax
push 0
push 0
push 0x3063a20
push 0
push 0
call dword [sym.imp.KERNEL32.dll_CreateThread]
mov dword [ebp - 0x20], eax
cmp dword [ebp - 0x20], 0
jne 0x3063aba
xor eax, eax
jmp 0x3063bf7
mov ecx, dword [ebp - 0x24]
push ecx
push 0
push 0x1f03ff
mov edx, dword [ebp + 8]
push edx
call fcn.03063960
mov dword [ebp - 0x1c], eax
cmp dword [ebp - 0x1c], 0
jne 0x3063ae6
mov dword [ebp - 0x300], 0
jmp 0x3063baf
mov dword [ebp - 0x300], 1
mov dword [ebp - 4], 0
mov eax, dword [ebp - 0x1c]
push eax
call dword [sym.imp.KERNEL32.dll_SuspendThread]
mov dword [ebp - 0x2fc], eax
cmp dword [ebp - 0x2fc], 0xffffffff
jne 0x3063b1c
mov dword [ebp - 0x300], 0
jmp 0x3063b8c
mov dword [ebp - 0x5d0], 0x10007
lea ecx, [ebp - 0x5d0]
push ecx
mov edx, dword [ebp - 0x1c]
push edx
call dword [sym.imp.KERNEL32.dll_GetThreadContext]
mov dword [ebp - 0x300], eax
cmp dword [ebp - 0x300], 0
jne 0x3063b48
jmp 0x3063b8c
mov dword [ebp - 0x2f8], 0x10007
lea eax, [ebp - 0x2f8]
push eax
mov ecx, dword [ebp - 0x20]
push ecx
call dword [sym.imp.KERNEL32.dll_GetThreadContext]
mov dword [ebp - 0x300], eax
cmp dword [ebp - 0x300], 0
jne 0x3063b74
jmp 0x3063b8c
mov edx, dword [ebp - 0x518]
cmp edx, dword [ebp - 0x240]
je 0x3063b8c
mov dword [ebp - 0x300], 0
mov dword [ebp - 4], 0xfffffffe
jmp 0x3063baf
cmp dword [ebp - 0x2fc], 0
jle 0x3063bc2
mov eax, dword [ebp - 0x1c]
push eax
call dword [sym.imp.KERNEL32.dll_ResumeThread]
push 0xdead
mov ecx, dword [ebp - 0x20]
push ecx
call dword [sym.imp.KERNEL32.dll_TerminateThread]
cmp dword [ebp - 0x20], 0
je 0x3063be1
mov edx, dword [ebp - 0x20]
push edx
call dword [sym.imp.KERNEL32.dll_CloseHandle]
cmp dword [ebp - 0x1c], 0
je 0x3063bf1
mov eax, dword [ebp - 0x1c]
push eax
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov eax, dword [ebp - 0x300]
mov ecx, dword [ebp - 0x10]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 0x28]
xor ecx, ebp
call fcn.030554d2
mov esp, ebp
pop ebp
ret 4
Function at 0x307d790
Capabilities:
Parse pe header

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
mov ecx, dword [ebp + 8]
cmp word [ecx], 0x5a4d
je 0x307d7a3
xor eax, eax
pop ebp
ret
mov eax, dword [ecx + 0x3c]
add eax, ecx
cmp dword [eax], 0x4550
jne 0x307d79f
xor ecx, ecx
cmp word [eax + 0x18], 0x10b
sete cl
mov eax, ecx
pop ebp
ret

Function at 0x307d7d0
Capabilities:
Enumerate pe sections

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
mov eax, dword [ebp + 8]
mov ecx, dword [eax + 0x3c]
add ecx, eax
movzx eax, word [ecx + 0x14]
push ebx
push esi
movzx esi, word [ecx + 6]
xor edx, edx
test esi, esi
push edi
lea eax, [eax + ecx + 0x18]
jbe 0x307d80f
mov edi, dword [ebp + 0xc]
mov ecx, dword [eax + 0xc]
cmp edi, ecx
jb 0x307d805
mov ebx, dword [eax + 8]
add ebx, ecx
cmp edi, ebx
jb 0x307d811
add edx, 1
add eax, 0x28
cmp edx, esi
jb 0x307d7f5
xor eax, eax
pop edi
pop esi
pop ebx
pop ebp
ret

Function at 0x308f3e6
Capabilities:
Get file size
Read file via mapping

Disassembly:
push ebp
mov ebp, esp
push ecx
push ebx
push esi
push edi
xor ebx, ebx
push ebx
push ebx
push 3
push ebx
push 1
push 0x80000000
push dword [ebp + 8]
xor esi, esi
call dword [0x30ef64c]
mov edi, eax
cmp edi, 0xffffffff
je 0x308f44a
push ebx
push edi
call dword [sym.imp.KERNEL32.dll_GetFileSize]
cmp eax, 0xffffffff
mov ecx, dword [ebp + 0x10]
mov dword [ecx], eax
je 0x308f44a
push ebx
push eax
push ebx
push 2
push ebx
push edi
call dword [sym.imp.KERNEL32.dll_CreateFileMappingA]
mov esi, eax
cmp esi, ebx
je 0x308f44a
push ebx
push ebx
push ebx
push 4
push esi
call dword [sym.imp.KERNEL32.dll_MapViewOfFile]
cmp eax, ebx
mov ecx, dword [ebp + 0xc]
mov dword [ecx], eax
mov byte [ebp - 1], bl
jne 0x308f44e
mov byte [ebp - 1], 1
cmp esi, ebx
je 0x308f459
push esi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
cmp edi, 0xffffffff
je 0x308f465
push edi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
xor eax, eax
cmp byte [ebp - 1], bl
pop edi
pop esi
sete al
pop ebx
leave
ret
Function at 0x309225d
Capabilities:
Enumerate pe sections

Disassembly:
push ebp
mov ebp, esp
push ecx
push ecx
push ebx
push esi
mov esi, ecx
xor ebx, ebx
cmp dword [esi + 0x18], ebx
push edi
je 0x3092298
mov eax, dword [esi + 0x14]
mov ecx, dword [eax + 8]
mov eax, dword [ecx]
call dword [eax]
mov ecx, dword [ebp + 8]
mov esi, dword [esi + 0x18]
imul ecx, ecx, 0x14
add eax, ecx
movzx edi, word [eax + 6]
mov ecx, dword [esi + 8]
mov eax, dword [ecx]
dec edi
call dword [eax]
imul edi, edi, 0x28
mov eax, dword [eax + edi + 0xc]
jmp 0x30922fd
call fcn.03091ca3
mov edi, dword [esi + 0x10]
mov dword [ebp - 8], eax
mov eax, dword [esi + 0x14]
mov ecx, dword [eax + 8]
mov eax, dword [ecx]
call dword [eax + 4]
push 0x14
xor edx, edx
pop ecx
div ecx
test eax, eax
jbe 0x30922fa
and dword [ebp - 4], ebx
cmp ebx, dword [ebp + 8]
je 0x3092304
mov eax, dword [esi + 0x14]
mov ecx, dword [eax + 8]
mov eax, dword [ecx]
call dword [eax]
add eax, dword [ebp - 4]
add dword [ebp - 4], 0x14
mov eax, dword [eax + 0x10]
lea eax, [eax + edi - 1]
lea ecx, [edi - 1]
not ecx
and eax, ecx
add dword [ebp - 8], eax
mov eax, dword [esi + 0x14]
mov ecx, dword [eax + 8]
mov eax, dword [ecx]
inc ebx
call dword [eax + 4]
push 0x14
xor edx, edx
pop ecx
div ecx
cmp ebx, eax
jb 0x30922bc
or eax, 0xffffffff
pop edi
pop esi
pop ebx
leave
ret 4
mov eax, dword [ebp - 8]
jmp 0x30922fd

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

Disassembly:
push ebp
mov ebp, esp
cmp dword [ebp + 0xc], 0
jbe 0x30943ff
mov eax, dword [ebp + 8]
movzx edx, byte [eax]
mov ecx, dword [ebp + 0x10]
dec dword [ebp + 0xc]
and ecx, 0xff
xor ecx, edx
mov edx, dword [ebp + 0x10]
shr edx, 8
xor edx, dword [ecx*4 + 0x300c7f0]
inc eax
cmp dword [ebp + 0xc], 0
mov dword [ebp + 0x10], edx
ja 0x30943d7
mov eax, dword [ebp + 0x10]
pop ebp
ret

Function at 0x30a8364
Capabilities:
Read file on windows

Disassembly:
push ebp
mov ebp, esp
push ecx
push esi
mov esi, ecx
mov eax, dword [esi + 0x1c]
test eax, eax
je 0x30a839e
push dword [ebp + 8]
mov esi, dword [ebp + 0x10]
and dword [ebp - 4], 0
mov ecx, dword [eax]
lea edx, [ebp - 4]
push edx
push esi
push 0
push dword [ebp + 0xc]
push eax
call dword [ecx + 0xc]
test eax, eax
jl 0x30a839a
cmp esi, dword [ebp - 4]
jne 0x30a839a
xor eax, eax
inc eax
jmp 0x30a83f4
xor eax, eax
jmp 0x30a83f4
mov eax, dword [esi + 0x20]
test eax, eax
je 0x30a83bf
push dword [ebp + 8]
mov esi, dword [ebp + 0x10]
and dword [ebp - 4], 0
mov ecx, dword [eax]
lea edx, [ebp - 4]
push edx
push esi
push dword [ebp + 0xc]
push eax
call dword [ecx + 0xc]
jmp 0x30a838c
mov eax, dword [esi + 0x78]
test eax, eax
je 0x30a83f2
push 0
push dword [ebp + 0xc]
push eax
call dword [sym.imp.msvcrt.dll_fseek]
add esp, 0xc
test eax, eax
jne 0x30a839a
push dword [esi + 0x78]
push 1
push dword [ebp + 0x10]
push dword [ebp + 8]
call dword [sym.imp.msvcrt.dll_fread]
add esp, 0x10
cmp eax, 1
jmp 0x30a8393
xor al, al
pop esi
leave
ret 0xc
Function at 0x30a85ca
Capabilities:
Read file on windows

Disassembly:
push ebp
mov ebp, esp
push ecx
push esi
mov esi, ecx
cmp byte [esi + 0x24], 0
jne 0x30a862a
push 0
push dword [esi + 0x30]
mov byte [esi + 0x24], 1
push dword [esi + 0x28]
call dword [sym.imp.msvcrt.dll_fseek]
add esp, 0xc
test eax, eax
jne 0x30a862a
and dword [ebp - 4], eax
push edi
lea eax, [ebp - 4]
push eax
push dword [esi + 0x2c]
lea edi, [esi + 4]
mov ecx, edi
call fcn.03089ba0
test eax, eax
je 0x30a8622
push dword [esi + 0x28]
push 1
push dword [esi + 0x2c]
push dword [ebp - 4]
call dword [sym.imp.msvcrt.dll_fread]
add esp, 0x10
cmp eax, 1
je 0x30a8629
mov ecx, edi
call fcn.030909b7
pop edi
mov al, 1
pop esi
leave
ret
Function at 0x30bbd0f
Capabilities:
Contain obfuscated stackstrings

Disassembly:
mov esi, dword [ebp + 0xc]
push eax
push esi
push dword [ebp + 8]
call fcn.030bba23
add esp, 0x10
lea ecx, [ebp - 0xb0]
push ecx
call eax
mov eax, dword [ebp - 8]
mov ecx, dword [ebp - 0xac]
xor edx, edx
div ecx
xor edx, edx
mov dword [ebp - 0x8c], eax
mov eax, dword [ebp - 8]
div ecx
test edx, edx
je 0x30bbd4c
inc dword [ebp - 0x8c]
imul ecx, dword [ebp - 0x8c]
mov dword [ebp + 0xc], ecx
mov byte [ebp - 0x40], bl
mov byte [ebp - 0x3f], bl
mov byte [ebp - 0x3e], 0xec
mov byte [ebp - 0x3d], bl
mov byte [ebp - 0x3c], 0x45
mov byte [ebp - 0x3b], 0x7a
mov byte [ebp - 0x3a], 0x61
mov byte [ebp - 0x39], 0x67
mov byte [ebp - 0x38], 0x66
mov byte [ebp - 0x37], 0x72
mov byte [ebp - 0x36], 0x7f
mov byte [ebp - 0x35], 0x52
mov byte [ebp - 0x34], 0x7f
mov byte [ebp - 0x33], 0x7f
mov byte [ebp - 0x32], 0x7c
mov byte [ebp - 0x31], 0x70
mov byte [ebp - 0x30], 0x13
call fcn.030bba5e
xlatb
std
clc
das
lea eax, [ebp - 0x40]
push eax
call fcn.030bba6e
push eax
push esi
push dword [ebp + 8]
call fcn.030bba23
cld
invalid
inc dword [ebx - 0x7a76ef3c]
js 0x30bbdb9
invalid
invalid
call fcn.030bba5e
mov word [edx + ecx*8 - 0x75], cs
lea eax, [ebp - 0x18]
mov byte [ebp - 0x18], bl
push eax
mov byte [ebp - 0x17], bl
mov byte [ebp - 0x16], 0x40
mov byte [ebp - 0x15], bl
mov byte [ebp - 0x14], 0xe9
mov byte [ebp - 0x13], 0xd6
mov byte [ebp - 0x12], 0xcd
mov byte [ebp - 0x11], 0xcb
mov byte [ebp - 0x10], 0xca
mov byte [ebp - 0xf], 0xde
mov byte [ebp - 0xe], 0xd3
mov byte [ebp - 0xd], 0xf9
mov byte [ebp - 0xc], 0xcd
mov byte [ebp - 0xb], 0xda
mov byte [ebp - 0xa], 0xda
mov byte [ebp - 9], 0xbf
call fcn.030bba6e
push eax
push esi
push dword [ebp + 8]
call fcn.030bba23
mov dword [ebp - 8], eax
lea eax, [ebp - 0x6c]
push eax
mov byte [ebp - 0x6c], bl
mov byte [ebp - 0x6b], bl
mov byte [ebp - 0x6a], 0xbe
mov byte [ebp - 0x69], bl
mov byte [ebp - 0x68], 0x17
mov byte [ebp - 0x67], 0x28
mov byte [ebp - 0x66], 0x33
mov byte [ebp - 0x65], 0x35
mov byte [ebp - 0x64], 0x34
mov byte [ebp - 0x63], 0x20
mov byte [ebp - 0x62], 0x2d
mov byte [ebp - 0x61], 0x11
mov byte [ebp - 0x60], 0x33
mov byte [ebp - 0x5f], 0x2e
mov byte [ebp - 0x5e], 0x35
mov byte [ebp - 0x5d], 0x24
mov byte [ebp - 0x5c], 0x22
mov byte [ebp - 0x5b], 0x35
mov byte [ebp - 0x5a], 0x41
call fcn.030bba6e
push eax
push esi
push dword [ebp + 8]
call fcn.030bba23
mov dword [ebp - 0xbc], eax
lea eax, [ebp - 0x2c]
mov byte [ebp - 0x2c], bl
push eax
mov byte [ebp - 0x2b], bl
mov byte [ebp - 0x2a], 0xd4
mov byte [ebp - 0x29], bl
mov byte [ebp - 0x28], 0x67
mov byte [ebp - 0x27], 0x44
mov byte [ebp - 0x26], 0x4a
mov byte [ebp - 0x25], 0x4f
mov byte [ebp - 0x24], 0x67
mov byte [ebp - 0x23], 0x42
mov byte [ebp - 0x22], 0x49
mov byte [ebp - 0x21], 0x59
mov byte [ebp - 0x20], 0x4a
mov byte [ebp - 0x1f], 0x59
mov byte [ebp - 0x1e], 0x52
mov byte [ebp - 0x1d], 0x6a
mov byte [ebp - 0x1c], 0x2b
call fcn.030bba6e
push eax
push esi
push dword [ebp + 8]
Function at 0x30bc113
Capabilities:
Inspect section memory permissions

Disassembly:
pop ebp
or al, 0xeb
push es
mov edi, dword [ebp - 0x88]
mov eax, dword [ebp + 0xc]
cmp ax, word [edi + 6]
jne 0x30bc135
mov edx, dword [ebp - 0xb4]
xor ecx, ecx
mov edi, 0x60000000
jmp 0x30bc153
movzx eax, ax
lea eax, [eax + eax*4]
mov ecx, dword [edi + eax*8 + 0x104]
mov edx, dword [edi + eax*8 + 0x108]
lea eax, [edi + eax*8 + 0xf8]
mov edi, dword [eax + 0x24]
lea eax, [edx + ecx - 1]
xor edx, edx
div dword [ebp - 0xac]
xor edx, edx
mov dword [ebp - 0x44], eax
mov eax, ecx
div dword [ebp - 0xac]
cmp eax, dword [ebp - 0x44]
ja 0x30bc1b1
mov edx, edi
mov dword [ebp + 8], edi
and dword [ebp + 8], 0x40000000
mov dword [ebp + 0x10], edi
and edx, 0x20000000
and dword [ebp + 0x10], 0x80000000
mov ecx, dword [ebp + 0x18]
cmp edx, ebx
je 0x30bc198
or byte [eax + ecx], 1
cmp dword [ebp + 8], ebx
je 0x30bc1a1
or byte [eax + ecx], 2
cmp dword [ebp + 0x10], ebx
je 0x30bc1ab
add ecx, eax
or byte [ecx], 4
inc eax
cmp eax, dword [ebp - 0x44]
jbe 0x30bc18d
inc dword [ebp + 0xc]
mov eax, dword [ebp - 0x88]
mov cx, word [ebp + 0xc]
cmp cx, word [eax + 6]
jbe 0x30bc117
mov dword [ebp + 8], esi
xor edi, edi

Function at 0x30ce4f9
Capabilities:
Generate random numbers via winapi

Disassembly:
push ebp
mov ebp, esp
push ecx
push 0xf0000000
push 1
push 0
push 0
lea eax, [ebp - 4]
push eax
call dword [sym.imp.ADVAPI32.dll_CryptAcquireContextA]
test eax, eax
jne 0x30ce518
leave
ret
push ebx
push esi
mov esi, dword [ebp + 8]
push esi
push 0x10
push dword [ebp - 4]
call dword [sym.imp.ADVAPI32.dll_CryptGenRandom]
push 0
push dword [ebp - 4]
mov ebx, eax
call dword [sym.imp.ADVAPI32.dll_CryptReleaseContext]
test ebx, ebx
jne 0x30ce53e
xor eax, eax
jmp 0x30ce55b
mov ax, word [esi + 6]
and ax, 0xfff
or ax, 0x4000
mov word [esi + 6], ax
mov al, byte [esi + 8]
and al, 0x3f
or al, 0x80
mov byte [esi + 8], al
xor eax, eax
inc eax
pop esi
pop ebx
leave
ret

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

Disassembly:
push ebp
mov ebp, esp
cmp dword [ebp + 0xc], 0
jbe 0x30d12ef
mov eax, dword [ebp + 8]
movzx edx, byte [eax]
mov ecx, dword [ebp + 0x10]
dec dword [ebp + 0xc]
and ecx, 0xff
xor ecx, edx
mov edx, dword [ebp + 0x10]
shr edx, 8
xor edx, dword [ecx*4 + 0x3016918]
inc eax
cmp dword [ebp + 0xc], 0
mov dword [ebp + 0x10], edx
ja 0x30d12c7
mov eax, dword [ebp + 0x10]
pop ebp
ret