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

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push 0xfffffffffffffffe
push 0x30f3660
push 0x306b567
mov eax, dword fs:[0]
push eax
add esp, 0xfffffff4
push ebx
push esi
push edi
mov eax, dword [0x30f8968]
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 0x3067323
cmp dword [ebp + 8], 0xffffffff
je 0x3067323
mov dword [ebp - 4], 0
mov eax, dword [ebp + 8]
movzx ecx, word [eax]
cmp ecx, 0x5a4d
jne 0x3067303
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 0x30672c9
mov edx, dword [ebp - 0x1c]
movzx eax, word [edx + 0x18]
cmp eax, 0x10b
je 0x30672d2
mov ecx, dword [ebp - 0x1c]
movzx edx, word [ecx + 0x18]
cmp edx, 0x20b
je 0x30672d2
mov dword [ebp - 0x1c], 0
jmp 0x3067303
cmp dword [ebp + 0xc], 0
je 0x3067303
mov eax, dword [ebp - 0x1c]
movzx ecx, word [eax + 0x18]
cmp ecx, 0x10b
jne 0x30672f6
mov edx, dword [ebp + 0xc]
push edx
mov eax, dword [ebp - 0x1c]
push eax
call fcn.03067020
jmp 0x3067303
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 0x3067323
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 0x3067340
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 0x306736b
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 0x30673a3
mov ecx, dword [ebp - 4]
mov edx, dword [ebp + 0x10]
cmp edx, dword [ecx + 0xc]
jb 0x3067398
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 0x3067398
mov eax, dword [ebp - 4]
jmp 0x30673a5
mov eax, dword [ebp - 4]
add eax, 0x28
mov dword [ebp - 4], eax
jmp 0x3067362
xor eax, eax
mov esp, ebp
pop ebp
ret 0xc
Function at 0x3067b50
Capabilities:
Create thread
Resume thread
Suspend thread
Terminate thread

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push 0xfffffffffffffffe
push 0x30f36a0
push 0x306b567
mov eax, dword fs:[0]
push eax
add esp, 0xfffffa40
mov eax, dword [0x30f8968]
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 0x3067b30
push 0
push 0
call dword [sym.imp.KERNEL32.dll_CreateThread]
mov dword [ebp - 0x20], eax
cmp dword [ebp - 0x20], 0
jne 0x3067bca
xor eax, eax
jmp 0x3067d07
mov ecx, dword [ebp - 0x24]
push ecx
push 0
push 0x1f03ff
mov edx, dword [ebp + 8]
push edx
call fcn.03067a70
mov dword [ebp - 0x1c], eax
cmp dword [ebp - 0x1c], 0
jne 0x3067bf6
mov dword [ebp - 0x300], 0
jmp 0x3067cbf
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 0x3067c2c
mov dword [ebp - 0x300], 0
jmp 0x3067c9c
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 0x3067c58
jmp 0x3067c9c
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 0x3067c84
jmp 0x3067c9c
mov edx, dword [ebp - 0x518]
cmp edx, dword [ebp - 0x240]
je 0x3067c9c
mov dword [ebp - 0x300], 0
mov dword [ebp - 4], 0xfffffffe
jmp 0x3067cbf
cmp dword [ebp - 0x2fc], 0
jle 0x3067cd2
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 0x3067cf1
mov edx, dword [ebp - 0x20]
push edx
call dword [sym.imp.KERNEL32.dll_CloseHandle]
cmp dword [ebp - 0x1c], 0
je 0x3067d01
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.0306b4ac
mov esp, ebp
pop ebp
ret 4
Function at 0x3094916
Capabilities:
Get file size
Read file via mapping

Disassembly:
mov edi, edi
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 [0x30fa624]
mov edi, eax
cmp edi, 0xffffffff
je 0x309497c
push ebx
push edi
call dword [sym.imp.KERNEL32.dll_GetFileSize]
mov ecx, dword [ebp + 0x10]
mov dword [ecx], eax
cmp eax, 0xffffffff
je 0x309497c
push ebx
push eax
push ebx
push 2
push ebx
push edi
call dword [sym.imp.KERNEL32.dll_CreateFileMappingW]
mov esi, eax
cmp esi, ebx
je 0x309497c
push ebx
push ebx
push ebx
push 4
push esi
call dword [sym.imp.KERNEL32.dll_MapViewOfFile]
mov ecx, dword [ebp + 0xc]
mov dword [ecx], eax
mov byte [ebp - 1], bl
cmp eax, ebx
jne 0x3094980
mov byte [ebp - 1], 1
cmp esi, ebx
je 0x309498b
push esi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
cmp edi, 0xffffffff
je 0x3094997
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 0x3097eee
Capabilities:
Enumerate pe sections

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push ecx
push ebx
push esi
mov esi, ecx
xor ebx, ebx
cmp dword [esi + 0x18], ebx
je 0x3097f1d
push dword [ebp + 8]
mov ecx, dword [esi + 0x14]
call fcn.03096ccb
movzx eax, word [eax + 6]
mov ecx, dword [esi + 0x18]
dec eax
push eax
call fcn.03096ce8
mov eax, dword [eax + 0xc]
jmp 0x3097f79
push edi
call fcn.03097918
mov edi, dword [esi + 0x10]
mov dword [ebp - 4], 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 0x3097f75
cmp ebx, dword [ebp + 8]
je 0x3097f7f
mov ecx, dword [esi + 0x14]
push ebx
call fcn.03096ccb
mov eax, dword [eax + 0x10]
lea eax, [eax + edi - 1]
lea ecx, [edi - 1]
not ecx
and eax, ecx
add dword [ebp - 4], 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 0x3097f3f
or eax, 0xffffffff
pop edi
pop esi
pop ebx
leave
ret 4
mov eax, dword [ebp - 4]
jmp 0x3097f78

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

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
cmp dword [ebp + 0xc], 0
jbe 0x309a1a5
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 + 0x300d100]
inc eax
cmp dword [ebp + 0xc], 0
mov dword [ebp + 0x10], edx
ja 0x309a17d
mov eax, dword [ebp + 0x10]
pop ebp
ret
Function at 0x30aed19
Capabilities:
Read file on windows

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push ecx
push esi
mov esi, ecx
mov eax, dword [esi + 0x1c]
test eax, eax
je 0x30aed55
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 0x30aed51
cmp esi, dword [ebp - 4]
jne 0x30aed51
xor eax, eax
inc eax
jmp 0x30aedab
xor eax, eax
jmp 0x30aedab
mov eax, dword [esi + 0x20]
test eax, eax
je 0x30aed76
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 0x30aed43
mov eax, dword [esi + 0x78]
test eax, eax
je 0x30aeda9
push 0
push dword [ebp + 0xc]
push eax
call dword [sym.imp.msvcrt.dll_fseek]
add esp, 0xc
test eax, eax
jne 0x30aed51
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 0x30aed4a
xor al, al
pop esi
leave
ret 0xc

Function at 0x30aeec6
Capabilities:
Read file on windows

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push ecx
push esi
mov esi, ecx
cmp byte [esi + 0x24], 0
jne 0x30aef28
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 0x30aef28
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.0308ec25
test eax, eax
je 0x30aef20
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 0x30aef27
mov ecx, edi
call fcn.030963d8
pop edi
mov al, 1
pop esi
leave
ret
Function at 0x30cedcd
Capabilities:
Contain obfuscated stackstrings

Disassembly:
aam 0xc6
inc ebp
mov dl, 0xd3
mov byte [ebp - 0x4d], 0xc2
mov byte [ebp - 0x4c], 0xca
mov byte [ebp - 0x4b], 0xee
mov byte [ebp - 0x4a], 0xc9
mov byte [ebp - 0x49], 0xc1
mov byte [ebp - 0x48], 0xc8
mov byte [ebp - 0x47], 0xa7
call fcn.030ceb4f
mov dh, 0x86
sub eax, ebp
lea eax, [ebp - 0x58]
push eax
call fcn.030ceb5f
mov esi, dword [ebp + 0xc]
push eax
push esi
push dword [ebp + 8]
call fcn.030ceb14
inc dword [ebx - 0x7272ef3c]
push eax
invalid
invalid
call dword [ecx - 1]
ror byte [ebx - 0x727407bb], 1
push esp
invalid
invalid
push dword [ebx]
sal bh, cl
int1
xor edx, edx
mov dword [ebp - 0x8c], eax
mov eax, dword [ebp - 8]
div ecx
test edx, edx
je 0x30cee3d
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

Function at 0x30cee3e
Capabilities:
Contain obfuscated stackstrings

Disassembly:
scasd eax, dword es:[edi]
lea esi, [edi + edi*8 - 1]
dec dword [ecx + 0x5d880c4d]
ror byte [eax + 0x45c6c15d], 0xc2
in al, dx
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.030ceb4f
dec esp
adc bl, bh
popal
lea eax, [ebp - 0x40]
push eax
call fcn.030ceb5f
push eax
push esi
push dword [ebp + 8]
call fcn.030ceb14
add esp, 0x10
mov dword [ebp - 0x88], eax
call fcn.030ceb4f
cdq
xchg byte [ecx - 0x7f], al
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
invalid
inc ebp
out dx, al

Function at 0x30cef0f
Capabilities:
Contain obfuscated stackstrings

Disassembly:
xchg esp, eax
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.030ceb5f
push eax
push esi
push dword [ebp + 8]
call fcn.030ceb14
Function at 0x30cefc2
Capabilities:
Contain obfuscated stackstrings

Disassembly:
mov byte [ebp - 0x1d], 0x6a
mov byte [ebp - 0x1c], 0x2b
call fcn.030ceb5f
push eax
push esi
push dword [ebp + 8]
call fcn.030ceb14
add esp, 0x30
mov dword [ebp - 0xb8], eax
call fcn.030ceb4f
loopne 0x30cefa8
stc
dec esp
mov byte [ebp - 0x84], bl
mov byte [ebp - 0x83], bl
mov byte [ebp - 0x82], 0xe9
mov byte [ebp - 0x81], bl
mov byte [ebp - 0x80], 0x51
mov byte [ebp - 0x7f], 0x73
mov byte [ebp - 0x7e], 0x62
mov byte [ebp - 0x7d], 0x5b
mov byte [ebp - 0x7c], 0x79
mov byte [ebp - 0x7b], 0x72
mov byte [ebp - 0x7a], 0x63
mov byte [ebp - 0x79], 0x7a
mov byte [ebp - 0x78], 0x73
mov byte [ebp - 0x77], 0x5e
mov byte [ebp - 0x76], 0x77
mov byte [ebp - 0x75], 0x78
mov byte [ebp - 0x74], 0x72
mov byte [ebp - 0x73], 0x7a
mov byte [ebp - 0x72], 0x73
mov byte [ebp - 0x71], 0x57
mov byte [ebp - 0x70], 0x16
call fcn.030ceb4f
or eax, 0x8d9096f1
test dword [edi + edi*8 - 1], edi
call dword [eax - 0x18]
sbb al, 0xfb
invalid

Function at 0x30cf19b
Capabilities:
Inspect section memory permissions

Disassembly:
call [edi + ebp*2 - 0x7874e1b0]
mov al, byte [0x3b000000]
ret
Function at 0x30cff2f
Capabilities:
Contain obfuscated stackstrings

Disassembly:
mov ecx, dword [ebp - 4]
lea eax, [ecx + eax - 0x1d]
push eax
lea eax, [ebp - 0x394]
push eax
call fcn.030ceac0
add esp, 0xc
and dword [ebp - 0x700], 0
jmp 0x30cff5c
mov eax, dword [ebp - 0x700]
inc eax
mov dword [ebp - 0x700], eax
cmp dword [ebp - 0x700], 5
jge 0x30cffa5
mov eax, dword [ebp - 0x700]
movsx eax, byte [ebp + eax - 0x394]
movsx ecx, byte [ebp - 0x24]
xor eax, ecx
mov ecx, dword [ebp - 0x700]
mov byte [ebp + ecx - 0x394], al
mov eax, dword [ebp - 0x700]
movsx eax, byte [ebp + eax - 0x394]
not eax
mov ecx, dword [ebp - 0x700]
mov byte [ebp + ecx - 0x394], al
jmp 0x30cff4f
call fcn.030ceb4f
adc al, byte [ecx]
pop edx
cli
and byte [ebp - 0x72c], 0
and byte [ebp - 0x72b], 0
mov byte [ebp - 0x72a], 0xc2
and byte [ebp - 0x729], 0
mov byte [ebp - 0x728], 0x6b
mov byte [ebp - 0x727], 0x54
mov byte [ebp - 0x726], 0x4f
mov byte [ebp - 0x725], 0x49
mov byte [ebp - 0x724], 0x48
mov byte [ebp - 0x723], 0x5c
mov byte [ebp - 0x722], 0x51
mov byte [ebp - 0x721], 0x6d
mov byte [ebp - 0x720], 0x4f
mov byte [ebp - 0x71f], 0x52
mov byte [ebp - 0x71e], 0x49
mov byte [ebp - 0x71d], 0x58
mov byte [ebp - 0x71c], 0x5e
mov byte [ebp - 0x71b], 0x49
mov byte [ebp - 0x71a], 0x3d
call fcn.030ceb4f
xor byte [eax - 0x7a72a662], 0xd4
clc
invalid

Function at 0x30d0851
Capabilities:
Contain obfuscated stackstrings

Disassembly:
inc dword [eax]
mov byte [ebp - 0x7aa], 0xed
and byte [ebp - 0x7a9], 0
mov byte [ebp - 0x7a8], 0x4e
mov byte [ebp - 0x7a7], 0x55
mov byte [ebp - 0x7a6], 0x56
mov byte [ebp - 0x7a5], 0x7e
mov byte [ebp - 0x7a4], 0x21
mov byte [ebp - 0x7a3], 0x20
mov byte [ebp - 0x7a2], 0x3c
mov byte [ebp - 0x7a1], 0x76
mov byte [ebp - 0x7a0], 0x7e
mov byte [ebp - 0x79f], 0x7e
mov byte [ebp - 0x79e], 0x12
push 0xb
lea eax, [ebp - 0x7ac]
push eax
call fcn.030ceb5f
pop ecx
push eax
mov eax, dword [ebp - 0x338]
invalid
invalid
invalid
Function at 0x30daef7
Capabilities:
Encode data using xor
Hash data with crc32

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
cmp dword [ebp + 0xc], 0
jbe 0x30daf2d
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 + 0x3017558]
inc eax
cmp dword [ebp + 0xc], 0
mov dword [ebp + 0x10], edx
ja 0x30daf05
mov eax, dword [ebp + 0x10]
pop ebp
ret

Function at 0x30daf9b
Capabilities:
Read file on windows

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
xor edx, edx
cmp dword [ebp + 8], edx
je 0x30dafd9
push edx
push dword [ebp + 0xc]
push dword [ebp + 8]
call dword [sym.imp.msvcrt.dll_fseek]
add esp, 0xc
test eax, eax
jne 0x30db02d
push dword [ebp + 8]
push dword [ebp + 0x14]
push 1
push dword [ebp + 0x18]
call dword [sym.imp.msvcrt.dll_fread]
sub eax, dword [ebp + 0x14]
add esp, 0x10
neg eax
sbb eax, eax
inc eax
jmp 0x30db02f
mov eax, dword [ecx + 0x82c]
cmp eax, edx
je 0x30db003
push dword [ebp + 0x18]
push dword [ebp + 0x14]
push edx
push dword [ebp + 0xc]
push dword [ecx + 0x804]
call eax
add esp, 0x14
xor ecx, ecx
test eax, eax
setge cl
mov al, cl
jmp 0x30db02f
mov eax, dword [ecx + 0x830]
cmp eax, edx
je 0x30db02d
cmp byte [ebp + 0x1c], dl
jne 0x30db017
cmp dword [ebp + 0x10], edx
je 0x30db02d
push dword [ebp + 0x18]
push dword [ebp + 0x14]
push dword [ebp + 0x10]
push dword [ecx + 0x804]
call eax
add esp, 0x10
jmp 0x30daff8
xor al, al
pop ebp
ret 0x18

Function at 0x30db690
Capabilities:
Get common file path

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x420
mov eax, dword [0x30f8968]
xor eax, ebp
mov dword [ebp - 4], eax
mov eax, dword [ebp + 0x10]
push ebx
push esi
mov esi, ecx
mov dword [ebp - 0x41c], eax
push edi
mov edi, dword [ebp + 8]
lea eax, [esi + 0x824]
xor ebx, ebx
mov dword [ebp - 0x414], edi
cmp byte [eax], bl
jne 0x30db6d8
push 2
mov byte [eax], 1
call fcn.030db05c
mov dword [esi + 0x828], eax
cmp dword [esi + 0x828], ebx
je 0x30db784
mov eax, edi
mov dword [ebp - 0x410], 0x300bcd8
mov dword [ebp - 0x408], ebx
mov dword [ebp - 0x40c], ebx
lea ecx, [eax + 2]
mov dx, word [eax]
inc eax
inc eax
cmp dx, bx
jne 0x30db6ff
sub eax, ecx
sar eax, 1
mov edi, eax
lea eax, [ebp - 0x420]
push eax
push ebx
call dword [sym.imp.KERNEL32.dll_GetCurrentDirectoryW]
lea edi, [eax + edi + 2]
push edi
lea ecx, [ebp - 0x410]
call fcn.0308fbaa
mov dword [ebp - 0x418], eax
cmp eax, ebx
je 0x30db750
push edi
push dword [ebp - 0x414]
push eax
call dword [sym.imp.msvcrt.dll__wfullpath]
mov eax, dword [ebp - 0x418]
add esp, 0xc
jmp 0x30db756
mov eax, dword [ebp - 0x414]
push dword [ebp - 0x41c]
push dword [ebp + 0xc]
push eax
push dword [esi + 0x804]
call dword [esi + 0x828]
add esp, 0x10
lea ecx, [ebp - 0x410]
mov dword [ebp - 0x410], 0x300bcd8
call fcn.0308fb30
mov ecx, dword [ebp - 4]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.0306b4ac
leave
ret 0xc
Function at 0x30dbd55
Capabilities:
Read file on windows

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x5c
mov eax, dword [0x30f8968]
xor eax, ebp
mov dword [ebp - 4], eax
mov eax, dword [ebp + 8]
push ebx
push esi
push edi
push 0x20
push 0x3010b34
push eax
mov esi, ecx
mov dword [ebp - 0x54], eax
call fcn.030d7506
mov edi, eax
xor ebx, ebx
add esp, 0xc
cmp edi, ebx
jne 0x30dbd9e
push ebx
push 0x12
push dword [ebp - 0x54]
mov ecx, esi
call fcn.030db638
xor al, al
jmp 0x30dbee5
push edi
push 1
lea eax, [ebp - 0x50]
push 0x30
push eax
call dword [sym.imp.msvcrt.dll_fread]
add esp, 0x10
cmp eax, 1
je 0x30dbdcc
push ebx
push 0xb
push dword [ebp - 0x54]
mov ecx, esi
call fcn.030db638
push edi
call dword [sym.imp.msvcrt.dll_fclose]
pop ecx
jmp 0x30dbd97
mov eax, 0x4944
cmp word [ebp - 0x50], ax
jne 0x30dbdb5
mov eax, dword [ebp - 0x38]
imul eax, eax, 0x28
add eax, dword [ebp - 0x34]
push 1
push eax
push edi
call dword [sym.imp.msvcrt.dll_fseek]
add esp, 0xc
test eax, eax
jne 0x30dbdb5
push edi
call dword [sym.imp.msvcrt.dll_ftell]
pop ecx
mov dword [ebp - 0x5c], eax
mov eax, dword [ebp - 0x30]
push 0x1c
xor edx, edx
pop ecx
div ecx
mov dword [ebp - 0x58], eax
cmp eax, ebx
je 0x30dbe52
dec dword [ebp - 0x58]
push edi
push 1
lea eax, [ebp - 0x20]
push 0x1c
push eax
call dword [sym.imp.msvcrt.dll_fread]
add esp, 0x10
cmp eax, 1
jne 0x30dbdb5
cmp byte [esi + 0xc94], bl
jne 0x30dbe4d
cmp dword [ebp - 0x14], 2
jne 0x30dbe4d
mov eax, dword [ebp - 0x10]
mov dword [esi + 0xc98], eax
mov eax, dword [ebp - 8]
mov dword [esi + 0xc9c], ebx
mov dword [esi + 0xca0], eax
cmp dword [ebp - 0x58], ebx
jne 0x30dbe0d
mov ecx, dword [ebp - 0x48]
cmp ecx, dword [esi + 0xc80]
je 0x30dbe73
mov eax, dword [esi + 0xc84]
cmp eax, ebx
je 0x30dbe6b
cmp ecx, eax
je 0x30dbe73
push ebx
push 0x14
jmp 0x30dbdb8
push dword [ebp - 0x54]
call dword [sym.imp.msvcrt.dll__wcsdup]
pop ecx
push ebx
push ebx
push dword [ebp - 0x54]
mov ecx, esi
mov dword [esi + 0xc90], eax
mov dword [esi + 0xc8c], edi
call fcn.030db638
push ebx
push dword [ebp - 0x5c]
push edi
call dword [sym.imp.msvcrt.dll_fseek]
add esp, 0xc
test eax, eax
jne 0x30dbee3
mov eax, dword [ebp - 0x30]
push 0x1c
xor edx, edx
pop ecx
div ecx
mov dword [ebp - 0x58], eax
cmp eax, ebx
je 0x30dbee3
dec dword [ebp - 0x58]
push edi
push 1
lea eax, [ebp - 0x20]
push 0x1c
push eax
call dword [sym.imp.msvcrt.dll_fread]
add esp, 0x10
cmp eax, 1
jne 0x30dbee3
lea eax, [ebp - 0x20]
push eax
push ebx
mov ecx, esi
call fcn.030db5ac
cmp dword [ebp - 0x58], ebx
jne 0x30dbeb8
mov al, 1
mov ecx, dword [ebp - 4]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.0306b4ac
leave
ret 4

Function at 0x401000
Capabilities:
Terminate process

Disassembly:
mov dword [0x402452], eax
mov edx, eax
xor edi, edi
push 2
push eax
call dword [sym.imp.GDI32.dll_GetDeviceCaps]
xor esi, esi
push dword [0x403583]
call dword [sym.imp.winmm.dll_waveOutClose]
add eax, 6
test eax, 0xb
jne 0x401036
push 0
call dword [sym.imp.kernel32.dll_ExitProcess]
mov edx, eax
ret
Function at 0x430000
Capabilities:
Encode data using xor
Packed with generic packer

Disassembly:
pushal
nop
nop
nop
nop
nop
nop
mov eax, section..text
nop
push 4
nop
nop
nop
nop
nop
nop
nop
pop edi
nop
nop
nop
nop
cmp eax, 0
nop
nop
nop
nop
je 0x430072
mov ebx, 0x408f6c
nop
nop
nop
nop
mov ecx, ebx
nop
nop
sub ecx, eax
nop
nop
nop
nop
nop
nop
nop
xor edx, edx
nop
nop
nop
nop
nop
push eax
nop
nop
nop
nop
mov eax, ecx
nop
nop
nop
nop
div edi
nop
nop
nop
xchg ecx, eax
nop
nop
nop
nop
nop
nop
pop eax
nop
nop
mov esi, 0x31174568
nop
nop
nop
nop
xor dword [eax], esi
nop
add eax, edi
nop
nop
nop
nop
nop
loop 0x430060
nop
nop
mov eax, section..data
nop
nop
nop
nop
cmp eax, 0
nop
nop
je 0x4300d2
nop
nop
mov ebx, 0x42e3d0
nop
nop
mov ecx, ebx
nop
nop
nop
nop
nop
nop
sub ecx, eax
nop
xor edx, edx
nop
nop
nop
nop
push eax
nop
nop
nop
nop
nop
nop
nop
nop
nop
mov eax, ecx
nop
nop
nop
nop
div edi
nop
nop
xchg ecx, eax
nop
nop
nop
nop
nop
nop
nop
nop
pop eax
mov esi, 0x49a83508
nop
nop
nop
xor dword [eax], esi
nop
nop
nop
nop
nop
add eax, edi
nop
nop
loop 0x4300c0
nop
nop
nop
nop
popal
nop
nop
nop
nop
jmp 0x401219
Function at 0x4afce4
Capabilities:
Allocate or change rwx memory
Get system information on windows

Disassembly:
push ebx
push esi
push edi
push ebp
add esp, 0xffffffb4
mov dword [esp], eax
lea esi, [esp + 0x30]
lea eax, [esp + 0xc]
push eax
call sub.kernel32.dll_GetSystemInfo
mov edi, dword [esp]
push 0x1c
push esi
push edi
call sub.kernel32.dll_VirtualQuery
test eax, eax
je 0x4afdaf
jmp 0x4afda3
cmp dword [esi + 0x10], 0x1000
jne 0x4afd8f
test byte [esi + 0x15], 1
jne 0x4afd8f
mov byte [esp + 4], 0
mov ebp, dword [esi + 0x14]
cmp ebp, 1
je 0x4afd40
cmp ebp, 2
je 0x4afd40
cmp ebp, 0x10
je 0x4afd40
cmp ebp, 0x20
jne 0x4afd5c
lea eax, [esp + 8]
push eax
push 0x40
mov eax, dword [esi + 0xc]
push eax
mov eax, dword [esi]
push eax
call sub.kernel32.dll_VirtualProtect
test eax, eax
je 0x4afd5c
mov byte [esp + 4], 1
xor ebx, ebx
jmp 0x4afd6d
mov eax, dword [esi]
add eax, ebx
call fcn.004afcdc
add ebx, dword [esp + 0x10]
cmp ebx, dword [esi + 0xc]
jb 0x4afd60
cmp byte [esp + 4], 0
je 0x4afd8f
lea eax, [esp + 8]
push eax
mov eax, dword [esp + 0xc]
push eax
mov eax, dword [esi + 0xc]
push eax
mov eax, dword [esi]
push eax
call sub.kernel32.dll_VirtualProtect
mov eax, dword [esi]
add eax, dword [esi + 0xc]
mov edi, eax
push 0x1c
push esi
push edi
call sub.kernel32.dll_VirtualQuery
test eax, eax
je 0x4afdaf
mov eax, dword [esi + 4]
cmp eax, dword [esp]
je 0x4afd15
add esp, 0x4c
pop ebp
pop edi
pop esi
pop ebx
ret

Function at 0x43b65f
Capabilities:
Encode data using xor

Disassembly:
mov esi, 0x43b3c1
sub eax, 1
call fcn.0043b68c
mov eax, eax
add eax, 0xc9332a6e
add edi, edi
xor dword [ebx], esi
and eax, eax
inc ebx
and eax, edi
cmp ebx, ecx
jne fcn.0043b65f
inc eax
sub eax, edi
dec edi
ret