joyce8/EMBER2024-capa huggingface dataset:
Function at 0x3000f535
Capabilities:
Create process on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x5c
push ebx
push esi
push edi
xor esi, esi
xor eax, eax
lea edi, [ebp - 0x14]
mov dword [ebp - 0x18], esi
push 0xfa0
stosd dword es:[edi], eax
stosd dword es:[edi], eax
stosd dword es:[edi], eax
mov eax, dword [0x30024c08]
mov dword [ebp - 4], esi
push dword [eax + 0x24]
call dword [sym.imp.KERNEL32.DLL_WaitForSingleObject]
cmp dword [0x300283c0], esi
je 0x3000f5fc
push 0x10
xor eax, eax
cmp dword [ebp + 8], esi
pop ecx
lea edi, [ebp - 0x58]
mov dword [ebp - 0x5c], 0x44
rep stosd dword es:[edi], eax
je 0x3000f5c3
push esi
push esi
push 0xffffffffffffffff
mov ebx, dword [sym.imp.KERNEL32.DLL_MultiByteToWideChar]
push dword [ebp + 8]
push esi
push dword [0x3002839c]
call ebx
mov edi, eax
inc edi
lea eax, [edi + edi]
push eax
lea eax, [ebp - 4]
push eax
call fcn.3001e320
test eax, eax
je 0x3000f696
push edi
push dword [ebp - 4]
push 0xffffffffffffffff
push dword [ebp + 8]
push esi
push dword [0x3002839c]
call ebx
lea eax, [ebp - 0x18]
push eax
lea eax, [ebp - 0x5c]
push eax
mov eax, dword [0x30024c08]
push esi
push esi
push 0x4000000
push esi
push esi
push esi
push dword [ebp - 4]
add eax, 0xb8
push eax
call dword [sym.imp.KERNEL32.DLL_CreateProcessW]
cmp dword [ebp - 4], esi
mov edi, eax
je 0x3000f682
push dword [ebp - 4]
jmp 0x3000f67d
push 0x10
xor eax, eax
pop ecx
lea edi, [ebp - 0x58]
mov dword [ebp - 0x5c], 0x44
push esi
rep stosd dword es:[edi], eax
mov eax, dword [0x30024c08]
push esi
mov ebx, dword [sym.imp.KERNEL32.DLL_WideCharToMultiByte]
push esi
push esi
add eax, 0xb8
push 0xffffffffffffffff
push eax
push esi
push dword [0x3002839c]
call ebx
mov edi, eax
lea eax, [ebp - 8]
inc edi
push edi
push eax
call fcn.3001e320
test eax, eax
je 0x3000f696
mov eax, dword [0x30024c08]
push esi
push esi
push edi
push dword [ebp - 8]
add eax, 0xb8
push 0xffffffffffffffff
push eax
push esi
push dword [0x3002839c]
call ebx
lea eax, [ebp - 0x18]
push eax
lea eax, [ebp - 0x5c]
push eax
push esi
push esi
push 0x4000000
push esi
push esi
push esi
push dword [ebp + 8]
push dword [ebp - 8]
call dword [sym.imp.KERNEL32.DLL_CreateProcessA]
push dword [ebp - 8]
mov edi, eax
call fcn.3001e422
cmp edi, esi
je 0x3000f696
push dword [ebp - 0x14]
mov esi, dword [sym.imp.KERNEL32.DLL_CloseHandle]
call esi
push dword [ebp - 0x18]
call esi
pop edi
pop esi
pop ebx
leave
ret 4
Function at 0x30011691
Capabilities:
Check internet connectivity via wininet

Disassembly:
push ebp
mov ebp, esp
push ecx
and dword [ebp - 4], 0
lea eax, [ebp - 4]
push 0
push eax
call dword [sym.imp.WININET.DLL_InternetGetConnectedState]
test eax, eax
je 0x300116ae
push 1
pop eax
leave
ret
mov eax, dword [ebp - 4]
and eax, 0x10
sub al, 0x10
neg al
sbb eax, eax
inc eax
leave
ret

Function at 0x300116bd
Capabilities:
Check internet connectivity via wininet

Disassembly:
push ebp
mov ebp, esp
push ecx
and dword [ebp - 4], 0
lea eax, [ebp - 4]
push 0
push eax
call dword [sym.imp.WININET.DLL_InternetGetConnectedState]
neg eax
sbb eax, eax
inc eax
leave
ret

Function at 0x300116d8
Capabilities:
Check internet connectivity via wininet

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x1c
push ebx
xor ebx, ebx
push esi
mov esi, dword [sym.imp.WININET.DLL_InternetGetConnectedState]
lea eax, [ebp - 4]
push ebx
push eax
call esi
test eax, eax
je 0x300116fb
push 1
pop eax
jmp 0x300117a0
cmp dword [0x30028378], ebx
je 0x3001170a
xor eax, eax
jmp 0x300117a0
push edi
xor eax, eax
lea edi, [ebp - 0x18]
mov dword [ebp - 0x1c], ebx
stosd dword es:[edi], eax
stosd dword es:[edi], eax
test byte [ebp - 4], 0x40
stosd dword es:[edi], eax
stosd dword es:[edi], eax
stosd dword es:[edi], eax
je 0x30011742
push ebx
push 1
pop edi
push edi
call dword [sym.imp.WININET.DLL_InternetAutodial]
test eax, eax
je 0x30011735
mov dword [0x300270ec], edi
jmp 0x3001178e
lea eax, [ebp - 4]
push ebx
push eax
call esi
test eax, eax
je 0x3001178e
jmp 0x3001172d
lea eax, [ebp - 0x1c]
mov dword [ebp - 0x1c], 0x82
push eax
push 0x30007c03
push ebx
push 0x70
push dword [0x300283b4]
mov dword [ebp - 0x14], 0x83
mov dword [ebp - 0xc], 0x14
mov dword [ebp - 0x10], 0x80
call fcn.300079b5
test eax, eax
je 0x3001178e
lea eax, [ebp - 4]
push ebx
push eax
call esi
test eax, eax
je 0x3001178e
mov dword [0x300270ec], 1
mov eax, dword [0x300270ec]
mov edx, dword [ebp + 8]
xor ecx, ecx
cmp eax, ebx
sete cl
mov dword [edx], ecx
pop edi
pop esi
pop ebx
leave
ret 4

Function at 0x300117a6
Capabilities:
Check internet connectivity via wininet

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x1c
and dword [ebp - 0x1c], 0
push edi
xor eax, eax
lea edi, [ebp - 0x18]
stosd dword es:[edi], eax
stosd dword es:[edi], eax
stosd dword es:[edi], eax
stosd dword es:[edi], eax
stosd dword es:[edi], eax
lea eax, [ebp - 4]
push 0
push eax
call dword [sym.imp.WININET.DLL_InternetGetConnectedState]
test eax, eax
pop edi
je 0x30011805
mov eax, dword [ebp + 8]
mov dword [ebp - 0x14], 0x7f
neg eax
sbb eax, eax
mov dword [ebp - 0x10], 0x80
and eax, 0x10
add eax, 0x7e
mov dword [ebp - 0x1c], eax
lea eax, [ebp - 0x1c]
push eax
push 0x30007c03
push 0
push 0x90
push dword [0x300283b4]
call fcn.300079b5
leave
ret 4
Function at 0x30011a59
Capabilities:
Connect to http server

Disassembly:
mov eax, dword [0x30025c68]
xor ecx, ecx
test eax, eax
je 0x30011a69
mov ecx, 0x800000
neg eax
sbb eax, eax
push 1
and eax, 0x16b
push ecx
push 3
add eax, 0x50
push 0x30011a54
push 0x30011a58
push eax
push 0x3002595c
push dword [0x30025928]
call dword [sym.imp.WININET.DLL_InternetConnectA]
and dword [0x30025934], 0
mov dword [0x3002592c], eax
test eax, eax
mov dword [0x300270dc], 1
jne 0x30011ac0
call dword [sym.imp.KERNEL32.DLL_GetLastError]
cmp eax, 0x3e5
je 0x30011adc
xor eax, eax
ret
and dword [0x300270dc], 0
push 0
push 0
push 0x1427
push dword [0x300270e0]
call dword [sym.imp.USER32.DLL_PostMessageA]
push 1
pop eax
ret

Function at 0x30011c14
Capabilities:
Send data

Disassembly:
mov eax, dword [0x30025c7c]
push edi
xor edi, edi
cmp eax, edi
je 0x30011c65
mov ecx, dword [0x30025c70]
push 0x30025c78
push dword [0x30025c74]
add ecx, eax
mov dword [0x300270dc], 1
push ecx
push dword [0x30025930]
call dword [sym.imp.WININET.DLL_InternetWriteFile]
test eax, eax
jne 0x30011c5f
call dword [sym.imp.KERNEL32.DLL_GetLastError]
cmp eax, 0x3e5
je 0x30011c78
xor eax, eax
pop edi
ret
mov dword [0x300270dc], edi
push edi
push edi
push 0x1427
push dword [0x300270e0]
call dword [sym.imp.USER32.DLL_PostMessageA]
push 1
pop eax
pop edi
ret
Function at 0x30012a08
Capabilities:
Get hostname
Get session user name

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x434
push ebx
push esi
lea eax, [ebp - 4]
push edi
push eax
lea eax, [ebp - 0x434]
push eax
mov dword [ebp - 4], 0x101
call dword [sym.imp.ADVAPI32.DLL_GetUserNameA]
test eax, eax
jne 0x30012a56
mov edi, 0x30001888
or ecx, 0xffffffff
repne scasb al, byte es:[edi]
not ecx
sub edi, ecx
lea edx, [ebp - 0x434]
mov eax, ecx
mov esi, edi
mov edi, edx
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, eax
and ecx, 3
rep movsb byte es:[edi], byte [esi]
lea eax, [ebp - 4]
mov dword [ebp - 4], 0x10
push eax
lea eax, [ebp - 0x14]
push eax
call dword [sym.imp.KERNEL32.DLL_GetComputerNameA]
test eax, eax
jne 0x30012a9d
call dword [sym.imp.KERNEL32.DLL_GetLastError]
mov dword [ebp - 4], eax
mov edi, 0x30001898
or ecx, 0xffffffff
xor eax, eax
repne scasb al, byte es:[edi]
not ecx
sub edi, ecx
lea edx, [ebp - 0x14]
mov eax, ecx
mov esi, edi
mov edi, edx
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, eax
and ecx, 3
rep movsb byte es:[edi], byte [esi]
lea eax, [ebp - 0x24]
push eax
call dword [sym.imp.KERNEL32.DLL_GetSystemTime]
mov esi, dword [sym.imp.USER32.DLL_wsprintfA]
push 0x30001670
push 0x300246c0
lea eax, [ebp - 0x330]
push 0x300129d4
push eax
call esi
add esp, 0x10
mov edi, 0x208
lea eax, [ebp - 0x22c]
push edi
push eax
lea eax, [ebp - 0x24]
push eax
call fcn.3000e9f7
lea eax, [ebp - 0x434]
push eax
lea eax, [ebp - 0x14]
push eax
lea eax, [ebp - 0x22c]
push 0x300129dc
push eax
call fcn.3001f574
lea eax, [ebp + eax - 0x22c]
push eax
call esi
mov eax, dword [0x30024bf0]
add esp, 0x10
mov eax, dword [eax]
test eax, eax
je 0x30012b1a
push eax
push 0x300129e4
jmp 0x30012b25
push dword [0x300249cc]
push 0x300129ec
lea eax, [ebp - 0x22c]
push eax
call fcn.3001f574
lea eax, [ebp + eax - 0x22c]
push eax
call esi
add esp, 0xc
lea eax, [ebp - 0x330]
push eax
lea eax, [ebp - 0x22c]
push eax
call fcn.3000dca9
push 0x300249d0
call fcn.3000e2bc
mov ebx, eax
cmp byte [ebx], 0x5c
jne 0x30012b63
inc ebx
push 0x30001688
push 0x300247c4
lea eax, [ebp - 0x330]
push 0x300129f4
push eax
call esi
add esp, 0x10
lea eax, [ebp - 0x22c]
push edi
push eax
lea eax, [ebp - 0x24]
push eax
call fcn.3000e9f7
lea eax, [ebp - 0x434]
push ebx
push eax
lea eax, [ebp - 0x14]
push eax
lea eax, [ebp - 0x22c]
push 0x300129fc
push eax
call fcn.3001f574
lea eax, [ebp + eax - 0x22c]
push eax
call esi
add esp, 0x14
lea eax, [ebp - 0x330]
push eax
lea eax, [ebp - 0x22c]
push eax
call fcn.3000dca9
pop edi
pop esi
pop ebx
leave
ret
Function at 0x30016a3e
Capabilities:
Encode data using xor

Disassembly:
push ebx
push esi
mov esi, dword [esp + 0x10]
mov edx, dword [esp + 0x14]
mov ecx, dword [esp + 0xc]
mov eax, esi
shr eax, 2
push edi
mov edi, eax
dec eax
test edi, edi
jle 0x30016a7e
lea edi, [eax + 1]
movzx eax, byte [ecx]
inc ecx
xor ebx, ebx
mov bh, byte [ecx]
or eax, ebx
inc ecx
movzx ebx, byte [ecx]
shl ebx, 0x10
or eax, ebx
inc ecx
movzx ebx, byte [ecx]
shl ebx, 0x18
or eax, ebx
inc ecx
xor edx, eax
dec edi
jne 0x30016a5c
and esi, 3
xor eax, eax
dec esi
je 0x30016a9a
dec esi
je 0x30016a93
dec esi
jne 0x30016a9f
movzx eax, byte [ecx]
shl eax, 0x10
inc ecx
xor ebx, ebx
mov bh, byte [ecx]
or eax, ebx
inc ecx
movzx ecx, byte [ecx]
or eax, ecx
pop edi
pop esi
xor eax, edx
pop ebx
ret 0xc

Function at 0x3001745a
Capabilities:
Encode data using xor

Disassembly:
mov eax, dword [esp + 4]
push esi
push edi
mov edx, 0x8000
mov ecx, dword [eax + 0x14]
and dword [eax + 0x20], 0
push 2
mov word [eax + 0x3c], dx
mov dword [eax + 0x34], edx
add ecx, edx
pop edx
movzx esi, byte [ecx]
mov edi, dword [eax + 0x20]
and esi, 0x7fff
and edi, 0x3ff
shl edi, 5
xor esi, edi
inc ecx
dec edx
mov dword [eax + 0x20], esi
jne 0x30017478
pop edi
pop esi
ret 4
Function at 0x3001b53c
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
push ebx
mov ebx, dword [ebp + 0x14]
push esi
mov esi, dword [ebp + 0xc]
mov eax, dword [esi + 0x6c]
add eax, dword [esi + 0x68]
push edi
mov edi, dword [esi + 0x70]
lea ecx, [edi + ebx]
cmp ecx, eax
ja 0x3001b597
push 0
push 0
push edi
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.DLL_SetFilePointer]
test eax, eax
je 0x3001b597
push 0
lea eax, [ebp + 0xc]
push eax
push ebx
push dword [ebp + 0x10]
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.DLL_WriteFile]
test eax, eax
je 0x3001b597
cmp dword [ebp + 0xc], ebx
jne 0x3001b597
mov eax, dword [ebp + 0x18]
test eax, eax
je 0x3001b58f
mov dword [eax], edi
add dword [esi + 0x70], ebx
xor eax, eax
inc eax
jmp 0x3001b599
xor eax, eax
pop edi
pop esi
pop ebx
pop ebp
ret 0x14

Function at 0x3001b5a0
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x18
push ebx
push esi
mov esi, dword [ebp + 0xc]
mov ecx, dword [esi + 0x4c]
mov edx, dword [esi + 0x48]
add edx, dword [esi + 0x44]
mov eax, dword [esi + 0x58]
mov dword [ebp - 8], ecx
add ecx, 0x10
cmp ecx, edx
push edi
mov dword [ebp - 4], eax
ja 0x3001b665
mov ecx, dword [esi + 0x54]
mov ebx, dword [ebp + 0x1c]
add ecx, dword [esi + 0x50]
lea edx, [ebx + eax]
cmp edx, ecx
ja 0x3001b665
mov edi, dword [sym.imp.KERNEL32.DLL_SetFilePointer]
push 0
push 0
push eax
push dword [ebp + 8]
call edi
push 0
lea eax, [ebp + 0xc]
push eax
push ebx
push dword [ebp + 0x10]
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.DLL_WriteFile]
test eax, eax
je 0x3001b665
cmp dword [ebp + 0xc], ebx
jne 0x3001b665
mov eax, dword [ebp + 0x14]
push 0
push 0
push dword [ebp - 8]
mov dword [ebp - 0x18], eax
mov eax, dword [ebp + 0x18]
push dword [ebp + 8]
mov dword [ebp - 0x14], eax
mov eax, dword [ebp - 4]
mov dword [ebp - 0x10], ebx
mov dword [ebp - 0xc], eax
call edi
test eax, eax
je 0x3001b665
push 0
lea eax, [ebp + 0xc]
push eax
push 0x10
lea eax, [ebp - 0x18]
push eax
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.DLL_WriteFile]
test eax, eax
je 0x3001b665
cmp dword [ebp + 0xc], 0x10
jne 0x3001b665
mov eax, dword [ebp + 0x20]
add dword [esi + 0x4c], 0x10
add dword [esi + 0x58], ebx
test eax, eax
je 0x3001b660
mov ecx, dword [ebp - 4]
mov dword [eax], ecx
xor eax, eax
inc eax
jmp 0x3001b667
xor eax, eax
pop edi
pop esi
pop ebx
leave
ret 0x1c
Function at 0x3001b6cb
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
push ebx
mov ebx, dword [ebp + 0x14]
push esi
mov esi, dword [ebp + 0xc]
mov eax, dword [esi + 0x2c]
add eax, dword [esi + 0x28]
push edi
mov edi, dword [esi + 0x30]
lea ecx, [edi + ebx]
cmp ecx, eax
ja 0x3001b726
push 0
push 0
push edi
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.DLL_SetFilePointer]
test eax, eax
je 0x3001b726
push 0
lea eax, [ebp + 0xc]
push eax
push ebx
push dword [ebp + 0x10]
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.DLL_WriteFile]
test eax, eax
je 0x3001b726
cmp dword [ebp + 0xc], ebx
jne 0x3001b726
mov eax, dword [ebp + 0x18]
test eax, eax
je 0x3001b71e
mov dword [eax], edi
add dword [esi + 0x30], ebx
xor eax, eax
inc eax
jmp 0x3001b728
xor eax, eax
pop edi
pop esi
pop ebx
pop ebp
ret 0x14

Function at 0x3001b72f
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0xc
push ebx
push esi
push edi
push dword [ebp + 0x10]
call fcn.3001d4ba
mov esi, dword [ebp + 0xc]
mov ebx, dword [esi + 0x64]
shl eax, 1
mov dword [ebp - 4], eax
add eax, 6
pop ecx
mov ecx, dword [esi + 0x60]
add ecx, dword [esi + 0x5c]
mov dword [ebp - 0xc], eax
add eax, ebx
cmp eax, ecx
ja 0x3001b7c5
xor edi, edi
push edi
push edi
push ebx
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.DLL_SetFilePointer]
test eax, eax
je 0x3001b7c5
push edi
mov edi, dword [sym.imp.KERNEL32.DLL_WriteFile]
lea eax, [ebp - 8]
push eax
push 4
lea eax, [ebp - 4]
push eax
push dword [ebp + 8]
call edi
test eax, eax
je 0x3001b7c5
cmp dword [ebp - 8], 4
jne 0x3001b7c5
add dword [ebp - 4], 2
push 0
lea eax, [ebp - 8]
push eax
push dword [ebp - 4]
push dword [ebp + 0x10]
push dword [ebp + 8]
call edi
test eax, eax
je 0x3001b7c5
mov eax, dword [ebp - 8]
cmp eax, dword [ebp - 4]
jne 0x3001b7c5
mov eax, dword [ebp + 0x14]
test eax, eax
je 0x3001b7ba
mov dword [eax], ebx
mov eax, dword [ebp - 0xc]
add dword [esi + 0x64], eax
xor eax, eax
inc eax
jmp 0x3001b7c7
xor eax, eax
pop edi
pop esi
pop ebx
leave
ret 0x10

Function at 0x3001b7ce
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
push esi
mov esi, dword [ebp + 0xc]
mov eax, dword [esi + 0x3c]
add eax, dword [esi + 0x38]
push edi
mov edi, dword [esi + 0x40]
lea ecx, [edi + 0x6c]
cmp ecx, eax
ja 0x3001b828
push 0
push 0
push edi
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.DLL_SetFilePointer]
test eax, eax
je 0x3001b828
push 0
lea eax, [ebp + 0xc]
push eax
push 0x6c
push dword [ebp + 0x10]
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.DLL_WriteFile]
test eax, eax
je 0x3001b828
cmp dword [ebp + 0xc], 0x6c
jne 0x3001b828
mov eax, dword [ebp + 0x14]
test eax, eax
je 0x3001b81f
mov dword [eax], edi
add dword [esi + 0x40], 0x6c
xor eax, eax
inc eax
jmp 0x3001b82a
xor eax, eax
pop edi
pop esi
pop ebp
ret 0x10
Function at 0x3001b830
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x50
push ebx
push esi
mov esi, dword [ebp + 0x10]
mov eax, dword [esi + 8]
push edi
mov edi, dword [ebp + 0xc]
xor ebx, ebx
push ebx
push ebx
push dword [edi + 0x28]
mov dword [ebp - 0xc], eax
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.DLL_SetFilePointer]
test eax, eax
je 0x3001b8ba
push ebx
lea eax, [ebp - 0x10]
push eax
push 4
lea eax, [ebp - 0xc]
push eax
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.DLL_WriteFile]
test eax, eax
je 0x3001b8ba
cmp dword [ebp - 0x10], 4
jne 0x3001b8ba
add dword [edi + 0x30], 4
lea eax, [esi + 0x10]
mov ebx, dword [eax]
jmp 0x3001b9f4
lea esi, [ebx - 0x418]
mov eax, dword [esi + 0x414]
test al, 1
mov ebx, dword [ebx]
je 0x3001b9ee
test al, 4
je 0x3001b8c3
lea eax, [ebp - 8]
push eax
push dword [esi + 0x2e4]
lea eax, [esi + 0x18]
push eax
push edi
push dword [ebp + 8]
call fcn.3001b53c
test eax, eax
jne 0x3001b8c7
xor eax, eax
pop edi
pop esi
pop ebx
leave
ret 0xc
and dword [ebp - 8], 0
test byte [esi + 0x414], 2
je 0x3001b8f9
mov eax, dword [esi + 0x2f0]
lea ecx, [ebp + 0xc]
push ecx
mov ecx, dword [esi + 0x2e8]
sub ecx, eax
push ecx
push eax
mov eax, dword [ebp + 0x10]
push dword [eax + 4]
push edi
push dword [ebp + 8]
call fcn.3001b66e
test eax, eax
je 0x3001b8ba
jmp 0x3001b8fd
and dword [ebp + 0xc], 0
test byte [esi + 0x414], 8
je 0x3001b92b
lea eax, [ebp - 4]
push eax
push dword [esi + 0x300]
mov eax, dword [ebp + 0x10]
push dword [esi + 0x2f8]
push dword [eax + 4]
push edi
push dword [ebp + 8]
call fcn.3001b66e
test eax, eax
je 0x3001b8ba
jmp 0x3001b92f
and dword [ebp - 4], 0
test byte [esi + 0x414], 0x10
je 0x3001b969
mov eax, dword [esi + 0x310]
test eax, eax
jbe 0x3001b969
push 0
push eax
push dword [esi + 0x30c]
lea eax, [esi + 0x314]
push dword [esi + 0x308]
push eax
push edi
push dword [ebp + 8]
call fcn.3001b5a0
test eax, eax
je 0x3001b8ba
mov eax, dword [esi]
mov dword [ebp - 0x50], eax
mov eax, dword [esi + 8]
mov dword [ebp - 0x4c], eax
mov eax, dword [esi + 0xc]
mov dword [ebp - 0x48], eax
mov eax, dword [esi + 0x10]
mov dword [ebp - 0x44], eax
mov eax, dword [esi + 0x14]
cdq
mov dword [ebp - 0x40], eax
mov dword [ebp - 0x3c], edx
lea eax, [esi + 0x2f0]
mov ecx, dword [eax]
mov dword [ebp - 0x38], ecx
mov ecx, dword [eax + 4]
mov dword [ebp - 0x34], ecx
mov ecx, dword [esi + 0x2e8]
sub ecx, dword [eax]
mov eax, dword [ebp + 0xc]
mov dword [ebp - 0x2c], eax
mov dword [ebp - 0x30], ecx
mov eax, dword [esi + 0x2f8]
mov dword [ebp - 0x20], eax
mov eax, dword [esi + 0x2fc]
mov dword [ebp - 0x1c], eax
mov eax, dword [esi + 0x300]
mov dword [ebp - 0x18], eax
mov eax, dword [ebp - 4]
mov dword [ebp - 0x14], eax
mov eax, dword [esi + 0x2e4]
push 0
push dword [edi + 0x34]
mov dword [ebp - 0x28], eax
mov eax, dword [ebp - 8]
mov dword [ebp - 0x24], eax
lea eax, [ebp - 0x50]
push eax
push edi
push dword [ebp + 8]
call fcn.3001b6cb
mov eax, dword [ebp + 0x10]
add eax, 0x10
cmp ebx, eax
jne 0x3001b885
xor eax, eax
inc eax
jmp 0x3001b8bc
Function at 0x3001ba04
Capabilities:
Write file on windows

Disassembly:
push ebp
lea ebp, [esp - 0x6c]
sub esp, 0x84
push ebx
push esi
mov esi, dword [ebp + 0x7c]
mov eax, dword [esi + 0xc]
push edi
mov edi, dword [ebp + 0x78]
xor ebx, ebx
push ebx
push ebx
push dword [edi + 0x40]
mov dword [ebp + 0x5c], eax
push dword [ebp + 0x74]
call dword [sym.imp.KERNEL32.DLL_SetFilePointer]
test eax, eax
je 0x3001bab8
push ebx
lea eax, [ebp + 0x54]
push eax
push 4
lea eax, [ebp + 0x5c]
push eax
push dword [ebp + 0x74]
call dword [sym.imp.KERNEL32.DLL_WriteFile]
test eax, eax
je 0x3001bab8
cmp dword [ebp + 0x54], 4
jne 0x3001bab8
add dword [edi + 0x40], 4
lea ecx, [esi + 0x18]
mov eax, dword [ecx]
cmp eax, ecx
je 0x3001bbab
jmp 0x3001ba6a
mov eax, dword [ebp + 0x60]
lea ebx, [eax - 0x280]
test byte [ebx + 0x26c], 1
mov eax, dword [eax]
mov dword [ebp + 0x60], eax
je 0x3001bb9f
lea eax, [ebp + 0x58]
push eax
lea eax, [ebx + 0x60]
push eax
push edi
push dword [ebp + 0x74]
call fcn.3001b72f
test eax, eax
je 0x3001bab8
mov ecx, dword [ebx + 0x50]
test ecx, ecx
je 0x3001bac4
mov eax, dword [ebx + 0x54]
test eax, eax
je 0x3001bac4
lea edx, [ebp + 0x64]
push edx
push eax
push ecx
push edi
push dword [ebp + 0x74]
call fcn.3001b53c
test eax, eax
jne 0x3001bac8
xor eax, eax
pop edi
pop esi
pop ebx
add ebp, 0x6c
leave
ret 0xc
and dword [ebp + 0x64], 0
test byte [ebx + 0x26c], 4
je 0x3001baf4
mov ecx, dword [ebx + 0x58]
test ecx, ecx
je 0x3001baf4
mov eax, dword [ebx + 0x5c]
test eax, eax
je 0x3001baf4
lea edx, [ebp + 0x68]
push edx
push eax
push ecx
push edi
push dword [ebp + 0x74]
call fcn.3001b53c
test eax, eax
je 0x3001bab8
jmp 0x3001baf8
and dword [ebp + 0x68], 0
test byte [ebx + 0x26c], 2
je 0x3001bb2c
lea edi, [ebx + 0x270]
mov esi, dword [edi]
jmp 0x3001bb28
push 0
lea eax, [esi - 0xc]
push dword [eax + 8]
mov esi, dword [esi]
push dword [eax]
mov eax, dword [ebp + 0x7c]
push dword [eax + 4]
push dword [ebp + 0x78]
push dword [ebp + 0x74]
call fcn.3001b66e
cmp esi, edi
jne 0x3001bb0b
mov eax, dword [ebx + 8]
mov dword [ebp - 0x18], eax
mov eax, dword [ebx + 0xc]
mov dword [ebp - 0x14], eax
mov eax, dword [ebx + 0x10]
mov dword [ebp - 0x10], eax
mov eax, dword [ebx + 0x14]
mov dword [ebp - 0xc], eax
mov eax, dword [ebx + 0x18]
mov dword [ebp - 8], eax
mov eax, dword [ebp + 0x64]
push 0xd
pop ecx
lea esi, [ebx + 0x1c]
lea edi, [ebp]
rep movsd dword es:[edi], dword [esi]
mov dword [ebp + 0x38], eax
mov eax, dword [ebx + 0x54]
mov dword [ebp + 0x34], eax
mov eax, dword [ebp + 0x68]
mov dword [ebp + 0x40], eax
mov eax, dword [ebx + 0x5c]
mov dword [ebp + 0x3c], eax
mov eax, dword [ebp + 0x58]
mov dword [ebp - 4], eax
xor eax, eax
push eax
mov dword [ebp + 0x44], eax
mov dword [ebp + 0x48], eax
mov dword [ebp + 0x4c], eax
mov dword [ebp + 0x50], eax
lea eax, [ebp - 0x18]
push eax
push dword [ebp + 0x78]
push dword [ebp + 0x74]
call fcn.3001b7ce
test eax, eax
je 0x3001bab8
mov esi, dword [ebp + 0x7c]
mov edi, dword [ebp + 0x78]
lea eax, [esi + 0x18]
cmp dword [ebp + 0x60], eax
jne 0x3001ba67
xor eax, eax
inc eax
jmp 0x3001baba
Function at 0x3001caa7
Capabilities:
Enumerate pe sections

Disassembly:
push ebp
mov ebp, esp
push ecx
and dword [ebp - 4], 0
push ebx
push edi
mov edi, dword [ebp + 0xc]
cmp word [edi + 6], 0
movzx eax, word [edi + 0x14]
lea ebx, [eax + edi + 0x18]
jbe 0x3001cb34
push esi
mov esi, dword [ebp + 8]
add ebx, 0x24
mov eax, dword [ebx]
test eax, eax
jns 0x3001cb24
test eax, 0x40000000
je 0x3001cb24
test al, 0xc0
je 0x3001cb24
push 0x18
call fcn.3001c8fe
test eax, eax
je 0x3001cb24
mov ecx, dword [ebx - 0x18]
xor edx, edx
add ecx, dword [esi + 8]
adc edx, dword [esi + 0xc]
mov dword [eax], ecx
mov dword [eax + 4], edx
mov ecx, dword [ebx - 0x1c]
mov dword [eax + 8], ecx
lea ecx, [esi + 0x270]
mov edi, dword [ecx + 4]
lea edx, [eax + 0xc]
mov dword [eax + 0x10], edi
mov dword [edx], ecx
mov dword [edi], edx
mov edi, dword [ebp + 0xc]
mov dword [ecx + 4], edx
mov eax, dword [eax + 8]
add dword [esi + 0x278], eax
inc dword [esi + 0x27c]
movzx eax, word [edi + 6]
inc dword [ebp - 4]
add ebx, 0x28
cmp dword [ebp - 4], eax
jb 0x3001caca
pop esi
pop edi
xor eax, eax
pop ebx
leave
ret 8

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

Disassembly:
push ebp
mov ebp, esp
push ebx
push esi
xor esi, esi
push esi
push esi
push 3
push esi
push 3
push SysReAllocString
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.DLL_CreateFileA]
mov ebx, eax
cmp ebx, 0xffffffff
mov dword [ebp + 8], ebx
jne 0x3001cb66
xor eax, eax
jmp 0x3001cbab
push edi
push esi
push ebx
call dword [sym.imp.KERNEL32.DLL_GetFileSize]
cmp eax, 0xffffffff
mov ecx, dword [ebp + 0xc]
mov edi, dword [sym.imp.KERNEL32.DLL_CloseHandle]
mov dword [ecx], eax
je 0x3001cba3
push esi
push esi
push esi
push 2
push esi
push ebx
call dword [sym.imp.KERNEL32.DLL_CreateFileMappingA]
mov ebx, eax
cmp ebx, esi
je 0x3001cba3
push esi
push esi
push esi
push 4
push ebx
call dword [sym.imp.KERNEL32.DLL_MapViewOfFile]
push ebx
mov esi, eax
call edi
push dword [ebp + 8]
call edi
mov eax, esi
pop edi
pop esi
pop ebx
pop ebp
ret 8

Function at 0x3001cbb1
Capabilities:
Resume thread

Disassembly:
push esi
mov esi, dword [esp + 8]
cmp dword [esi + 8], 0xffffffff
je 0x3001cbc9
push dword [esi + 4]
call dword [sym.imp.KERNEL32.DLL_ResumeThread]
or dword [esi + 8], 0xffffffff
push dword [esi + 4]
call dword [sym.imp.KERNEL32.DLL_CloseHandle]
and dword [esi + 4], 0
push esi
call fcn.3001c914
pop esi
ret 4