joyce8/EMBER2024-capa huggingface dataset:
Function at 0x4bba1d
Capabilities:
Encrypt or decrypt via wincrypt

Disassembly:
push ebp
mov ebp, esp
push ecx
cmp dword [ebp + 0x10], 0
jne 0x4bba59
push 1
push 0x14
call fcn.004bd1ec
add esp, 8
mov dword [ebp - 4], eax
push 0x14
push 0
mov eax, dword [ebp - 4]
push eax
call fcn.0048e0a0
add esp, 0xc
mov ecx, dword [ebp - 4]
mov edx, dword [ebp + 8]
mov dword [ecx], edx
mov eax, dword [ebp - 4]
mov ecx, dword [ebp + 8]
mov dword [eax + 4], ecx
jmp 0x4bba5f
mov edx, dword [ebp + 0x10]
mov dword [ebp - 4], edx
mov eax, dword [ebp - 4]
mov ecx, dword [ebp + 0xc]
mov edx, dword [ecx + 0x30]
mov dword [eax + 8], edx
mov eax, dword [ebp - 4]
mov ecx, dword [ebp - 4]
mov edx, dword [ecx + 8]
mov dword [eax + 0x10], edx
mov eax, dword [ebp - 4]
cmp dword [eax + 0xc], 0
je 0x4bba99
mov ecx, dword [ebp - 4]
mov edx, dword [ecx + 0xc]
push edx
call fcn.004bd1c2
add esp, 4
mov eax, dword [ebp - 4]
mov dword [eax + 0xc], 0
mov ecx, dword [ebp - 4]
mov edx, dword [ecx + 0x10]
shl edx, 1
push edx
mov eax, dword [ebp - 4]
add eax, 0x10
push eax
push 0
push 0
push 1
push 0
mov ecx, dword [ebp + 8]
push ecx
call dword [sym.imp.ADVAPI32.dll_CryptEncrypt]
test eax, eax
je 0x4bbad9
push 1
mov edx, dword [ebp - 4]
mov eax, dword [edx + 0x10]
add eax, 0x10
push eax
call fcn.004bd1ec
add esp, 8
mov ecx, dword [ebp - 4]
mov dword [ecx + 0xc], eax
mov eax, dword [ebp - 4]
mov esp, ebp
pop ebp
ret

Function at 0x4bbc32
Capabilities:
Encrypt data using rc4 via winapi
Hash data using sha1
Hash data using sha1 via wincrypt
Hash data via wincrypt
Initialize hashing via wincrypt

Disassembly:
push ebp
mov ebp, esp
sub esp, 8
mov dword [ebp - 8], 0
cmp dword [ebp + 8], 0
je 0x4bbc4b
cmp dword [ebp + 0xc], 0
jne 0x4bbc4f
xor eax, eax
jmp 0x4bbcbc
call fcn.004bbcc0
test eax, eax
jne 0x4bbc5d
or eax, 0xffffffff
jmp 0x4bbcbc
lea eax, [ebp - 8]
push eax
push 0
push 0
push 0x8004
mov ecx, dword [0x53f374]
push ecx
call dword [sym.imp.ADVAPI32.dll_CryptCreateHash]
test eax, eax
je 0x4bbcb9
push 0
mov edx, dword [ebp + 0xc]
push edx
mov eax, dword [ebp + 8]
push eax
mov ecx, dword [ebp - 8]
push ecx
call dword [sym.imp.ADVAPI32.dll_CryptHashData]
test eax, eax
je 0x4bbcaf
lea edx, [ebp - 4]
push edx
push 0
mov eax, dword [ebp - 8]
push eax
push 0x6801
mov ecx, dword [0x53f374]
push ecx
call dword [sym.imp.ADVAPI32.dll_CryptDeriveKey]
mov edx, dword [ebp - 8]
push edx
call dword [sym.imp.ADVAPI32.dll_CryptDestroyHash]
mov eax, dword [ebp - 4]
mov esp, ebp
pop ebp
ret

Function at 0x4bbcc0
Capabilities:
Create new key via cryptacquirecontext

Disassembly:
push ebp
mov ebp, esp
cmp dword [0x53f374], 0
je 0x4bbcd3
mov eax, 1
jmp 0x4bbd10
push 0
push 1
push 0x5379c4
push 0
push 0x53f374
call dword [sym.imp.ADVAPI32.dll_CryptAcquireContextA]
test eax, eax
jne 0x4bbd0b
push 8
push 1
push str.Microsoft_Enhanced_Cryptographic_Provider_v1.0
push 0
push 0x53f374
call dword [sym.imp.ADVAPI32.dll_CryptAcquireContextA]
test eax, eax
jne 0x4bbd0b
xor eax, eax
jmp 0x4bbd10
mov eax, 1
pop ebp
ret
Function at 0x4cd7ed
Capabilities:
Delete file

Disassembly:
push ebp
mov ebp, esp
sub esp, 0xc
mov eax, dword [ebp + 8]
push eax
call fcn.004cd895
add esp, 4
mov dword [ebp - 0xc], eax
mov dword [ebp - 8], 0
cmp dword [ebp - 0xc], 0
je 0x4cd852
mov ecx, dword [ebp - 0xc]
push ecx
call dword [sym.imp.KERNEL32.dll_DeleteFileW]
mov dword [ebp - 4], eax
cmp dword [ebp - 4], 0
jne 0x4cd844
mov edx, dword [ebp - 8]
mov eax, dword [ebp - 8]
add eax, 1
mov dword [ebp - 8], eax
cmp edx, 3
jge 0x4cd844
push 0x64
call dword [sym.imp.KERNEL32.dll_Sleep]
mov ecx, 1
test ecx, ecx
jne 0x4cd80f
mov edx, dword [ebp - 0xc]
push edx
call fcn.004bd1c2
add esp, 4
jmp 0x4cd887
mov eax, dword [ebp + 8]
push eax
call dword [sym.imp.KERNEL32.dll_DeleteFileA]
mov dword [ebp - 4], eax
cmp dword [ebp - 4], 0
jne 0x4cd887
mov ecx, dword [ebp - 8]
mov edx, dword [ebp - 8]
add edx, 1
mov dword [ebp - 8], edx
cmp ecx, 3
jge 0x4cd887
push 0x64
call dword [sym.imp.KERNEL32.dll_Sleep]
mov eax, 1
test eax, eax
jne 0x4cd852
mov eax, dword [ebp - 4]
neg eax
sbb eax, eax
and eax, 0xa
mov esp, ebp
pop ebp
ret

Function at 0x4cd969
Capabilities:
Check if file exists
Get file attributes

Disassembly:
push ebp
mov ebp, esp
sub esp, 8
mov dword [ebp - 4], 0
mov eax, dword [ebp + 8]
push eax
call fcn.004cd895
add esp, 4
mov dword [ebp - 8], eax
cmp dword [ebp - 8], 0
je 0x4cd9ae
mov ecx, dword [ebp - 8]
push ecx
call dword [sym.imp.KERNEL32.dll_GetFileAttributesW]
xor edx, edx
cmp eax, 0xffffffff
setne dl
mov dword [ebp - 4], edx
mov eax, dword [ebp - 8]
push eax
call fcn.004bd1c2
add esp, 4
jmp 0x4cd9c3
mov ecx, dword [ebp + 8]
push ecx
call dword [sym.imp.KERNEL32.dll_GetFileAttributesA]
xor edx, edx
cmp eax, 0xffffffff
setne dl
mov dword [ebp - 4], edx
mov eax, dword [ebp - 4]
mov esp, ebp
pop ebp
ret
Function at 0x4cdc82
Capabilities:
Get common file path

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x3b0
cmp dword [0x53f3a4], 0
je 0x4cdcb4
push 0x118
mov eax, dword [0x53f3a4]
push eax
lea ecx, [ebp - 0x13c]
push ecx
call fcn.00485330
add esp, 0xc
mov byte [ebp - 0x24], 0
jmp 0x4cdd2f
call fcn.004cd91d
test eax, eax
je 0x4cdd1d
lea edx, [ebp - 0x3ac]
push edx
push 0x118
call dword [sym.imp.KERNEL32.dll_GetTempPathW]
lea eax, [ebp - 0x3ac]
push eax
call fcn.004cde26
add esp, 4
mov dword [ebp - 0x3b0], eax
cmp dword [ebp - 0x3b0], 0
je 0x4cdd1b
push 0x118
mov ecx, dword [ebp - 0x3b0]
push ecx
lea edx, [ebp - 0x13c]
push edx
call fcn.00485330
add esp, 0xc
mov byte [ebp - 0x24], 0
mov eax, dword [ebp - 0x3b0]
push eax
call fcn.004bd1c2
add esp, 4
jmp 0x4cdd2f
lea ecx, [ebp - 0x13c]
push ecx
push 0x118
call dword [sym.imp.KERNEL32.dll_GetTempPathA]
lea edx, [ebp - 0x13c]
push edx
call fcn.004875d0
add esp, 4
mov dword [ebp - 4], eax
jmp 0x4cdd4c
mov eax, dword [ebp - 4]
sub eax, 1
mov dword [ebp - 4], eax
cmp dword [ebp - 4], 0
jle 0x4cdd64
mov ecx, dword [ebp - 4]
movsx edx, byte [ebp + ecx - 0x13d]
cmp edx, 0x5c
jne 0x4cdd64
jmp 0x4cdd43
mov eax, dword [ebp - 4]
mov byte [ebp + eax - 0x13c], 0
lea ecx, [ebp - 0x13c]
push ecx
push str._s_sqlite_
mov edx, dword [ebp + 8]
push edx
call fcn.0047ead0
add esp, 0xc
mov eax, dword [ebp + 8]
push eax
call fcn.004875d0
add esp, 4
mov dword [ebp - 0x140], eax
mov ecx, dword [ebp + 8]
add ecx, dword [ebp - 0x140]
push ecx
push 0xf
call fcn.004dabb0
add esp, 8
mov dword [ebp - 4], 0
jmp 0x4cddce
mov edx, dword [ebp - 4]
add edx, 1
mov dword [ebp - 4], edx
mov eax, dword [ebp - 0x140]
add eax, 1
mov dword [ebp - 0x140], eax
cmp dword [ebp - 4], 0xf
jge 0x4cddfd
mov ecx, dword [ebp + 8]
add ecx, dword [ebp - 0x140]
xor eax, eax
mov al, byte [ecx]
xor edx, edx
mov ecx, 0x3e
div ecx
mov eax, dword [ebp + 8]
add eax, dword [ebp - 0x140]
mov cl, byte [edx + str.abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ0123456789]
mov byte [eax], cl
jmp 0x4cddb6
mov edx, dword [ebp + 8]
add edx, dword [ebp - 0x140]
mov byte [edx], 0
mov eax, dword [ebp + 8]
push eax
call fcn.004cd969
add esp, 4
test eax, eax
jne 0x4cde1b
jmp 0x4cde20
jmp 0x4cdd6f
xor eax, eax
mov esp, ebp
pop ebp
ret

Function at 0x4ce0dc
Capabilities:
Get file attributes

Disassembly:
push ebp
mov ebp, esp
sub esp, 8
cmp dword [ebp + 8], 0
jne 0x4ce0ec
xor eax, eax
jmp 0x4ce167
call fcn.004cd91d
test eax, eax
jne 0x4ce10c
mov eax, dword [ebp + 8]
push eax
call fcn.004875d0
add esp, 4
cmp eax, 0x104
jbe 0x4ce10c
xor eax, eax
jmp 0x4ce167
mov ecx, dword [ebp + 8]
push ecx
call fcn.004cd895
add esp, 4
mov dword [ebp - 4], eax
cmp dword [ebp - 4], 0
je 0x4ce13c
mov edx, dword [ebp - 4]
push edx
call dword [sym.imp.KERNEL32.dll_GetFileAttributesW]
mov dword [ebp - 8], eax
mov eax, dword [ebp - 4]
push eax
call fcn.004bd1c2
add esp, 4
jmp 0x4ce149
mov ecx, dword [ebp + 8]
push ecx
call dword [sym.imp.KERNEL32.dll_GetFileAttributesA]
mov dword [ebp - 8], eax
cmp dword [ebp - 8], 0xffffffff
jne 0x4ce153
xor eax, eax
jmp 0x4ce167
mov edx, dword [ebp - 8]
and edx, 0x10
cmp edx, 0x10
je 0x4ce162
xor eax, eax
jmp 0x4ce167
mov eax, 1
mov esp, ebp
pop ebp
ret
Function at 0x4ce764
Capabilities:
Allocate thread local storage
Get thread local storage value
Set thread local storage value

Disassembly:
push ebp
mov ebp, esp
push ecx
cmp dword [0x53f3ac], 0
jne 0x4ce7ae
call fcn.004ce6dc
cmp dword [0x53f3ac], 0
jne 0x4ce7a9
call dword [sym.imp.KERNEL32.dll_TlsAlloc]
mov dword [0x53f398], eax
cmp dword [0x53f398], 0xffffffff
jne 0x4ce79f
call fcn.004ce6ee
xor eax, eax
jmp 0x4ce853
mov dword [0x53f3ac], 1
call fcn.004ce6ee
mov eax, dword [0x53f398]
push eax
call dword [sym.imp.KERNEL32.dll_TlsGetValue]
mov dword [ebp - 4], eax
cmp dword [ebp + 8], 0
jle 0x4ce80b
cmp dword [ebp - 4], 0
jne 0x4ce809
push 0xc
call fcn.004cd7a0
add esp, 4
mov dword [ebp - 4], eax
cmp dword [ebp - 4], 0
je 0x4ce809
mov ecx, dword [ebp - 4]
mov edx, dword [0x510518]
mov dword [ecx], edx
mov eax, dword [0x51051c]
mov dword [ecx + 4], eax
mov edx, dword [0x510520]
mov dword [ecx + 8], edx
mov eax, dword [ebp - 4]
push eax
mov ecx, dword [0x53f398]
push ecx
call dword [sym.imp.KERNEL32.dll_TlsSetValue]
jmp 0x4ce850
cmp dword [ebp - 4], 0
je 0x4ce850
cmp dword [ebp + 8], 0
jge 0x4ce850
push 0xc
push 0x510518
mov edx, dword [ebp - 4]
push edx
call fcn.004a2330
add esp, 0xc
test eax, eax
jne 0x4ce850
mov eax, dword [ebp - 4]
push eax
call fcn.004cd7d5
add esp, 4
push 0
mov ecx, dword [0x53f398]
push ecx
call dword [sym.imp.KERNEL32.dll_TlsSetValue]
mov dword [ebp - 4], 0
mov eax, dword [ebp - 4]
mov esp, ebp
pop ebp
ret
Function at 0x4db835
Capabilities:
Reference sql statements

Disassembly:
push ebp
mov ebp, esp
sub esp, 8
cmp dword [ebp + 0xc], 2
jge 0x4db84b
mov eax, 0x17
jmp 0x4db8fd
mov eax, dword [ebp + 8]
xor ecx, ecx
mov cl, byte [eax]
xor edx, edx
mov dl, byte [ecx + 0x5103a0]
mov eax, edx
shl eax, 2
mov ecx, dword [ebp + 8]
add ecx, dword [ebp + 0xc]
xor edx, edx
mov dl, byte [ecx - 1]
xor ecx, ecx
mov cl, byte [edx + 0x5103a0]
imul ecx, ecx, 3
xor eax, ecx
xor eax, dword [ebp + 0xc]
cdq
mov ecx, 0x7f
idiv ecx
mov dword [ebp - 4], edx
mov edx, dword [ebp - 4]
xor eax, eax
mov al, byte [edx + str.Pk_]
sub eax, 1
mov dword [ebp - 8], eax
jmp 0x4db8a9
mov ecx, dword [ebp - 8]
xor edx, edx
mov dl, byte [ecx + 0x510adc]
sub edx, 1
mov dword [ebp - 8], edx
cmp dword [ebp - 8], 0
jl 0x4db8f8
mov eax, dword [ebp - 8]
xor ecx, ecx
mov cl, byte [eax + 0x510b50]
cmp ecx, dword [ebp + 0xc]
jne 0x4db8f6
mov edx, dword [ebp + 0xc]
push edx
mov eax, dword [ebp + 8]
push eax
mov ecx, dword [ebp - 8]
xor edx, edx
mov dx, word [ecx*2 + 0x510bc4]
add edx, str.ABORTABLEFTEMPORARYADDATABASELECTHENDEFAULTRANSACTIONATURALTERAISEACHECKEYAFTEREFERENCESCAPELSEXCEPTRIGGEREGEXPLAINITIALLYANALYZEXCLUSIVEXISTSTATEMENTANDEFERRABLEATTACHAVINGLOBEFOREIGNOREINDEXAUTOINCREMENTBEGINNERENAMEBETWEENOTNULLIKEBYCASCADEFERREDELETECASECASTCOLLATECOLUMNCOMMITCONFLICTCONSTRAINTERSECTCREATECROSSCURRENT_DATECURRENT_TIMESTAMPLANDESCDETACHDISTINCTDROPRAGMATCHFAILIMITFROMFULLGROUPDATEIFIMMEDIATEINSERTINSTEADINTOFFSETISNULLJOINORDEREPLACEOUTERESTRICTPRIMARYQUERYRIGHTROLLBACKROWHENUNIONUNIQUEUSINGVACUUMVALUESVIEWHERE
push edx
call fcn.004bd694
add esp, 0xc
test eax, eax
jne 0x4db8f6
mov eax, dword [ebp - 8]
xor ecx, ecx
mov cl, byte [eax + 0x510cac]
mov eax, ecx
jmp 0x4db8fd
jmp 0x4db898
mov eax, 0x17
mov esp, ebp
pop ebp
ret
Function at 0x4e2990
Capabilities:
Enumerate pe sections

Disassembly:
push ebp
mov ebp, esp
push ecx
cmp dword [ebp + 8], 0
jne 0x4e29a1
xor eax, eax
jmp 0x4e2af5
push 1
push 0x44
call fcn.004bd100
add esp, 8
mov dword [ebp - 4], eax
cmp dword [ebp - 4], 0
jne 0x4e29bd
xor eax, eax
jmp 0x4e2af5
mov eax, dword [ebp - 4]
mov ecx, dword [ebp + 8]
mov dl, byte [ecx + 5]
mov byte [eax + 5], dl
mov eax, dword [ebp + 8]
mov ecx, dword [eax]
push ecx
call fcn.004e25e4
add esp, 4
mov edx, dword [ebp - 4]
mov dword [edx], eax
mov eax, dword [ebp + 8]
mov ecx, dword [eax + 0xc]
push ecx
call fcn.004e271c
add esp, 4
mov edx, dword [ebp - 4]
mov dword [edx + 0xc], eax
mov eax, dword [ebp + 8]
mov ecx, dword [eax + 0x10]
push ecx
call fcn.004e2470
add esp, 4
mov edx, dword [ebp - 4]
mov dword [edx + 0x10], eax
mov eax, dword [ebp + 8]
mov ecx, dword [eax + 0x14]
push ecx
call fcn.004e25e4
add esp, 4
mov edx, dword [ebp - 4]
mov dword [edx + 0x14], eax
mov eax, dword [ebp + 8]
mov ecx, dword [eax + 0x18]
push ecx
call fcn.004e2470
add esp, 4
mov edx, dword [ebp - 4]
mov dword [edx + 0x18], eax
mov eax, dword [ebp + 8]
mov ecx, dword [eax + 0x1c]
push ecx
call fcn.004e25e4
add esp, 4
mov edx, dword [ebp - 4]
mov dword [edx + 0x1c], eax
mov eax, dword [ebp - 4]
mov ecx, dword [ebp + 8]
mov dl, byte [ecx + 4]
mov byte [eax + 4], dl
mov eax, dword [ebp + 8]
mov ecx, dword [eax + 0x20]
push ecx
call fcn.004e2990
add esp, 4
mov edx, dword [ebp - 4]
mov dword [edx + 0x20], eax
mov eax, dword [ebp + 8]
mov ecx, dword [eax + 0x28]
push ecx
call fcn.004e2470
add esp, 4
mov edx, dword [ebp - 4]
mov dword [edx + 0x28], eax
mov eax, dword [ebp + 8]
mov ecx, dword [eax + 0x2c]
push ecx
call fcn.004e2470
add esp, 4
mov edx, dword [ebp - 4]
mov dword [edx + 0x2c], eax
mov eax, dword [ebp - 4]
mov dword [eax + 0x30], 0xffffffff
mov ecx, dword [ebp - 4]
mov dword [ecx + 0x34], 0xffffffff
mov edx, dword [ebp - 4]
mov eax, dword [ebp + 8]
mov cl, byte [eax + 6]
mov byte [edx + 6], cl
mov edx, dword [ebp - 4]
mov eax, dword [ebp + 8]
mov cl, byte [eax + 7]
mov byte [edx + 7], cl
mov edx, dword [ebp - 4]
mov byte [edx + 8], 0
mov eax, dword [ebp - 4]
mov byte [eax + 9], 0
mov ecx, dword [ebp - 4]
mov dword [ecx + 0x24], 0
mov edx, dword [ebp - 4]
mov dword [edx + 0x38], 0xffffffff
mov eax, dword [ebp - 4]
mov dword [eax + 0x3c], 0xffffffff
mov ecx, dword [ebp - 4]
mov dword [ecx + 0x40], 0xffffffff
mov eax, dword [ebp - 4]
mov esp, ebp
pop ebp
ret
Function at 0x430002
Capabilities:
Encode data using xor
Packed with generic packer

Disassembly:
pushal
nop
nop
nop
nop
mov eax, section..text
mov ebx, 0x408ecc
nop
nop
mov ecx, 0x65d737a
nop
test eax, eax
nop
nop
nop
nop
je 0x43004e
nop
nop
nop
xor dword [eax], ecx
nop
nop
nop
nop
nop
nop
nop
inc eax
nop
nop
nop
nop
nop
nop
nop
inc eax
nop
nop
inc eax
nop
nop
nop
nop
nop
nop
nop
nop
inc eax
cmp eax, ebx
nop
nop
nop
nop
nop
nop
jne 0x430024
nop
nop
mov eax, section..data
nop
mov ebx, 0x42e1d0
nop
nop
mov ecx, 0x5a4613d2
nop
nop
nop
nop
test eax, eax
nop
nop
je 0x430084
nop
nop
xor dword [eax], ecx
nop
nop
nop
nop
nop
nop
add eax, 4
nop
nop
cmp eax, ebx
nop
nop
nop
nop
jne 0x43006c
nop
nop
nop
nop
popal
nop
nop
nop
nop
jmp 0x401219
Function at 0x1000d134
Capabilities:
Terminate process

Disassembly:
cmp ecx, dword [0x10025b50]
jne 0x1000d13e
repz ret
jmp fcn.1001085b

Function at 0x10014519
Capabilities:
Write file on windows

Disassembly:
push ecx
push ebx
mov ebx, dword [esp + 0xc]
push esi
push edi
xor esi, esi
xor edi, edi
cmp ebx, dword [edi*8 + 0x10025ee8]
je 0x10014534
inc edi
cmp edi, 0x17
jb 0x10014525
cmp edi, 0x17
jae 0x100146b4
push ebp
push 3
call fcn.100186c4
cmp eax, 1
pop ecx
je 0x10014680
push 3
call fcn.100186c4
test eax, eax
pop ecx
jne 0x10014568
cmp dword [0x10028ed0], 1
je 0x10014680
cmp ebx, 0xfc
je 0x100146b3
push str.Runtime_Error__n_nProgram:
mov ebx, 0x314
push ebx
mov ebp, 0x100294d0
push ebp
call fcn.100128d9
add esp, 0xc
test eax, eax
je 0x1001459e
push esi
push esi
push esi
push esi
push esi
call fcn.1000d412
add esp, 0x14
push 0x104
mov esi, 0x100294e9
push esi
push 0
mov byte [0x100295ed], 0
call dword [sym.imp.KERNEL32.dll_GetModuleFileNameA]
test eax, eax
jne 0x100145e2
push str._program_name_unknown_
push 0x2fb
push esi
call fcn.100128d9
add esp, 0xc
test eax, eax
je 0x100145e2
xor eax, eax
push eax
push eax
push eax
push eax
push eax
call fcn.1000d412
add esp, 0x14
push esi
call fcn.10012940
inc eax
cmp eax, 0x3c
pop ecx
jbe 0x10014627
push esi
call fcn.10012940
sub esi, 0x3b
add eax, esi
push 3
mov ecx, 0x100297e4
push 0x1001fd4c
sub ecx, eax
push ecx
push eax
call fcn.10018611
add esp, 0x14
test eax, eax
je 0x10014627
xor esi, esi
push esi
push esi
push esi
push esi
push esi
call fcn.1000d412
add esp, 0x14
jmp 0x10014629
xor esi, esi
push 0x1001fd48
push ebx
push ebp
call fcn.100185a0
add esp, 0xc
test eax, eax
je 0x10014649
push esi
push esi
push esi
push esi
push esi
call fcn.1000d412
add esp, 0x14
push dword [edi*8 + 0x10025eec]
push ebx
push ebp
call fcn.100185a0
add esp, 0xc
test eax, eax
je 0x1001466b
push esi
push esi
push esi
push esi
push esi
call fcn.1000d412
add esp, 0x14
push 0x12010
push str.Microsoft_Visual_C_Runtime_Library
push ebp
call fcn.100183e3
add esp, 0xc
jmp 0x100146b3
push 0xfffffffffffffff4
call dword [sym.imp.KERNEL32.dll_GetStdHandle]
mov ebp, eax
cmp ebp, esi
je 0x100146b3
cmp ebp, 0xffffffff
je 0x100146b3
push 0
lea eax, [esp + 0x14]
push eax
lea esi, [edi*8 + 0x10025eec]
push dword [esi]
call fcn.10012940
pop ecx
push eax
push dword [esi]
push ebp
call dword [sym.imp.KERNEL32.dll_WriteFile]
pop ebp
pop edi
pop esi
pop ebx
pop ecx
ret
Function at 0x100183e3
Capabilities:
Link many functions at runtime

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x20
push ebx
push esi
push edi
call fcn.1001235a
xor ebx, ebx
cmp dword [0x10029954], ebx
mov dword [ebp - 8], eax
mov dword [ebp - 4], ebx
mov dword [ebp - 0xc], ebx
mov dword [ebp - 0x10], ebx
jne 0x100184b9
push str.USER32.DLL
call dword [sym.imp.KERNEL32.dll_LoadLibraryA]
mov edi, eax
cmp edi, ebx
je 0x10018599
mov esi, dword [sym.imp.KERNEL32.dll_GetProcAddress]
push str.MessageBoxA
push edi
call esi
cmp eax, ebx
je 0x10018599
push eax
call fcn.100122ec
mov dword [esp], 0x10020720
push edi
mov dword [0x10029954], eax
call esi
push eax
call fcn.100122ec
mov dword [esp], 0x1002070c
push edi
mov dword [0x10029958], eax
call esi
push eax
call fcn.100122ec
mov dword [0x1002995c], eax
lea eax, [ebp - 0xc]
push eax
call fcn.100105d3
test eax, eax
pop ecx
pop ecx
je 0x10018487
push ebx
push ebx
push ebx
push ebx
push ebx
call fcn.1000d412
add esp, 0x14
cmp dword [ebp - 0xc], 2
jne 0x100184b9
push str.GetUserObjectInformationA
push edi
call esi
push eax
call fcn.100122ec
cmp eax, ebx
pop ecx
mov dword [0x10029964], eax
je 0x100184b9
push str.GetProcessWindowStation
push edi
call esi
push eax
call fcn.100122ec
pop ecx
mov dword [0x10029960], eax
mov eax, dword [0x10029960]
mov ecx, dword [ebp - 8]
cmp eax, ecx
je 0x1001853e
cmp dword [0x10029964], ecx
je 0x1001853e
push eax
call fcn.10012363
push dword [0x10029964]
mov esi, eax
call fcn.10012363
cmp esi, ebx
pop ecx
pop ecx
mov edi, eax
je 0x1001853e
cmp edi, ebx
je 0x1001853e
call esi
cmp eax, ebx
je 0x1001850b
lea ecx, [ebp - 0x14]
push ecx
push 0xc
lea ecx, [ebp - 0x20]
push ecx
push 1
push eax
call edi
test eax, eax
je 0x1001850b
test byte [ebp - 0x18], 1
jne 0x1001853e
lea eax, [ebp - 0x10]
push eax
call fcn.1001060a
test eax, eax
pop ecx
je 0x10018526
push ebx
push ebx
push ebx
push ebx
push ebx
call fcn.1000d412
add esp, 0x14
cmp dword [ebp - 0x10], 4
jb 0x10018535
or dword [ebp + 0x10], 0x200000
jmp 0x10018579
or dword [ebp + 0x10], 0x40000
jmp 0x10018579
mov eax, dword [0x10029958]
cmp eax, dword [ebp - 8]
je 0x10018579
push eax
call fcn.10012363
cmp eax, ebx
pop ecx
je 0x10018579
call eax
cmp eax, ebx
mov dword [ebp - 4], eax
je 0x10018579
mov eax, dword [0x1002995c]
cmp eax, dword [ebp - 8]
je 0x10018579
push eax
call fcn.10012363
cmp eax, ebx
pop ecx
je 0x10018579
push dword [ebp - 4]
call eax
mov dword [ebp - 4], eax
push dword [0x10029954]
call fcn.10012363
cmp eax, ebx
pop ecx
je 0x10018599
push dword [ebp + 0x10]
push dword [ebp + 0xc]
push dword [ebp + 8]
push dword [ebp - 4]
call eax
jmp 0x1001859b
xor eax, eax
pop edi
pop esi
pop ebx
leave
ret
Function at 0x1000c500
Capabilities:
Enumerate pe sections

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x18
mov eax, dword [0x1002d014]
xor eax, ebp
mov dword [ebp - 4], eax
mov eax, dword [0x1002e658]
mov dword [ebp - 0x10], eax
mov eax, dword [0x1002e660]
push str.NTDLL
mov dword [ebp - 0xc], eax
call fcn.1000c3a0
mov ecx, eax
add esp, 4
mov dword [ebp - 0x18], ecx
mov eax, dword [ecx + 0x70]
and eax, 0xfffffff8
mov dword [ebp - 8], eax
mov eax, dword [eax + 8]
test eax, 0xfffffff8
jne 0x1000c535
push ebx
push esi
xor esi, esi
push edi
test al, 1
jne 0x1000c604
mov eax, dword [ecx + 0x18]
xor edx, edx
xor ebx, ebx
mov ecx, dword [eax + 0x3c]
add ecx, eax
xor eax, eax
mov dword [ebp - 0x14], ecx
movzx edi, word [ecx + 0x14]
add edi, 0x18
add edi, ecx
cmp ax, word [ecx + 6]
jae 0x1000c5b4
mov ecx, dword ds:[ebp - 0xc]
push edi
push dword [0x1002da18]
call dword [0x100261a0]
call dword [ebp - 0xc]
add esp, 8
test eax, eax
je 0x1000c5a8
mov eax, dword [ebp - 0x14]
inc ebx
add edi, 0x28
movzx eax, word [eax + 6]
cmp ebx, eax
jl 0x1000c574
xor edi, edi
mov ebx, 0xfffffffc
jmp 0x1000c5c0
mov eax, dword [ebp - 0x18]
mov esi, dword [edi + 0xc]
mov edx, dword [edi + 8]
add esi, dword [eax + 0x18]
lea ebx, [edx - 4]
xor edi, edi
test ebx, ebx
je 0x1000c5de
nop dword [eax]
mov ecx, dword [ebp - 0x10]
lea eax, [ebp - 8]
push 4
push eax
push esi
call dword [0x100261a0]
call dword [ebp - 0x10]
cmp eax, 4
je 0x1000c5f1
inc edi
inc esi
cmp edi, ebx
jb 0x1000c5c0
pop edi
pop esi
xor eax, eax
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.10023990
mov esp, ebp
pop ebp
ret
test esi, esi
je 0x1000c5de
cmp dword [esi], 0
je 0x1000c602
cmp dword ds:[esi + 4], 0
jne 0x1000c604
xor esi, esi
mov ecx, dword [ebp - 4]
mov eax, esi
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.10023990
mov esp, ebp
pop ebp
ret
Function at 0x10014080
Capabilities:
Packed with generic packer

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x10
mov edx, str.mytestfuncBEGIN
mov ecx, dword [sym.imp.MSVCP140.dll_class_std::basic_ostream_char__struct_std::char_traits_char___std::cout]
call fcn.10008120
mov dword [ebp - 4], eax
push fcn.10014080
mov ecx, dword [ebp - 4]
call dword [sym.imp.MSVCP140.dll_public:_class_std::basic_ostream_char__struct_std::char_traits_char______thiscall_std::basic_ostream_char__struct_std::char_traits_char__::operator___void_const__]
mov dword [ebp - 8], eax
push 0x10007cc0
mov ecx, dword [ebp - 8]
call dword [sym.imp.MSVCP140.dll_public:_class_std::basic_ostream_char__struct_std::char_traits_char______thiscall_std::basic_ostream_char__struct_std::char_traits_char__::operator___class_std::basic_ostream_char__struct_std::char_traits_char_______cdecl___class_std::basic_ostream_char__struct_std::char_traits_char_____]
xor eax, eax
je 0x100140c8
mov cl, byte [0x1002dd3d]
mov byte [0x1002dd3d], cl
push eax
mov eax, 0x100140d9
mov dword [0x1002dc18], eax
pop eax
jmp 0x1001e630
Function at 0x10014710
Capabilities:
Packed with generic packer

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x10
mov eax, 0xf
test eax, eax
je 0x1001472f
movzx ecx, byte [0x1002dd3d]
add ecx, 0xf
mov byte [0x1002dd3d], cl
push eax
mov eax, 0x10014740
mov dword [0x1002dc18], eax
pop eax
jmp 0x1001e630