joyce8/EMBER2024-capa huggingface dataset:
Function at 0x401ab5
Capabilities:
Terminate process

Disassembly:
cmp ecx, dword [0x454090]
jne 0x401abf
repz ret
jmp fcn.00403258

Function at 0x40b4b3
Capabilities:
Link many functions at runtime

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x14
push ebx
push esi
push edi
call fcn.0040453b
and dword [ebp - 4], 0
cmp dword [0x458640], 0
mov ebx, eax
jne 0x40b564
push str.USER32.DLL
call dword [sym.imp.KERNEL32.dll_LoadLibraryA]
mov edi, eax
test edi, edi
je 0x40b615
mov esi, dword [sym.imp.KERNEL32.dll_GetProcAddress]
push str.MessageBoxA
push edi
call esi
test eax, eax
je 0x40b615
push eax
call fcn.004044c9
mov dword [esp], str.GetActiveWindow
push edi
mov dword [0x458640], eax
call esi
push eax
call fcn.004044c9
mov dword [esp], str.GetLastActivePopup
push edi
mov dword [0x458644], eax
call esi
push eax
call fcn.004044c9
mov dword [esp], str.GetUserObjectInformationA
push edi
mov dword [0x458648], eax
call esi
push eax
call fcn.004044c9
pop ecx
mov dword [0x458650], eax
test eax, eax
je 0x40b564
push str.GetProcessWindowStation
push edi
call esi
push eax
call fcn.004044c9
pop ecx
mov dword [0x45864c], eax
mov eax, dword [0x45864c]
cmp eax, ebx
je 0x40b5bc
cmp dword [0x458650], ebx
je 0x40b5bc
push eax
call fcn.00404544
push dword [0x458650]
mov esi, eax
call fcn.00404544
pop ecx
pop ecx
mov edi, eax
test esi, esi
je 0x40b5bc
test edi, edi
je 0x40b5bc
call esi
test eax, eax
je 0x40b5b3
lea ecx, [ebp - 8]
push ecx
push 0xc
lea ecx, [ebp - 0x14]
push ecx
push 1
push eax
call edi
test eax, eax
je 0x40b5b3
test byte [ebp - 0xc], 1
jne 0x40b5bc
or dword [ebp + 0x10], 0x200000
jmp 0x40b5f5
mov eax, dword [0x458644]
cmp eax, ebx
je 0x40b5f5
push eax
call fcn.00404544
pop ecx
test eax, eax
je 0x40b5f5
call eax
mov dword [ebp - 4], eax
test eax, eax
je 0x40b5f5
mov eax, dword [0x458648]
cmp eax, ebx
je 0x40b5f5
push eax
call fcn.00404544
pop ecx
test eax, eax
je 0x40b5f5
push dword [ebp - 4]
call eax
mov dword [ebp - 4], eax
push dword [0x458640]
call fcn.00404544
pop ecx
test eax, eax
je 0x40b615
push dword [ebp + 0x10]
push dword [ebp + 0xc]
push dword [ebp + 8]
push dword [ebp - 4]
call eax
jmp 0x40b617
xor eax, eax
pop edi
pop esi
pop ebx
leave
ret
Function at 0x1879bef
Capabilities:
Parse pe header
Resolve function by parsing pe exports

Disassembly:
jne 0x1803638
mov edx, dword [eax + ecx + 0x78]
stc
mov dword [ebp - 4], edx
test dx, 0x4e6e
test edx, edx
jmp 0x19f87e3
je 0x1803638
mov eax, 0x5a4d
cmp si, bx
test esp, 0x47d43db6
cmp word [ecx], ax
je 0x2abd9e7
xor eax, eax
jmp 0x186d6f9
mov esp, ebp
not bp
pop ebp
jmp 0x2af00d3
jle 0x1fe2213
lea ebx, [esi + 1]
mov ecx, dword [ebp + 8]
cmp eax, ebp
cmp ebx, edi
jmp 0x19f0f7c
dec edi
jmp 0x1fc2e9a
pop esi
jmp 0x1819574
add eax, ecx
sub ebx, ebx
jmp 0x184d232
push ebp
mov ebp, esp
cmp dx, sp
mov ecx, dword [ebp + 8]
jmp 0x1fd3613
je 0x1fe224f
mov eax, dword [edx + ecx + 0x20]
jmp 0x1879702
jns 0x181ad3a
lea edi, [esi - 1]
jmp 0x181ad43
mov eax, dword [ebp - 0xc]
shld edx, ecx, 0x9d
test dx, 0x311b
add esi, 0x87777f9
mov edx, dword [ebp + 0x10]
lea esi, [edi + ebx]
sar esi, 1
cmc
stc
mov eax, dword [eax + esi*4]
push edx
xadd dx, dx
mov edx, dword [ebp + 0xc]
add eax, ecx
jmp 0x19c7335
mov edi, dword [edx + ecx + 0x18]
test edi, edi
jmp 0x188bbf9
call fcn.019c88a9
lea esp, [esp + 4]
cmp bx, di
test eax, eax
jmp 0x18b409d
ja 0x18d655d
mov eax, esi
jmp 0x1a1514f
jle 0x18d4809
jmp 0x1fe2246
je 0x1803638
mov eax, dword [eax + ecx + 0x7c]
push ebx
push edi
cmp ebx, 0x334376f2
mov dword [ebp - 0x10], eax
mov dword [ebp - 8], 0xffffffff
test dl, 0x82
cmp esi, 0xffff
jmp 0x19cc4cd
push esi
test ecx, ecx
je 0x1803638
mov esi, dword [ebp + 0xc]
stc
jmp 0x2b29934
mov dword [ebp - 0xc], eax
js 0x1fe224f
jmp 0x18d481b
lea esp, [esp - 0x114]
jmp 0x1a0460b
mov eax, dword [ebp + 8]
btr cx, 0x63
rcl cx, 0xb2
mov ecx, dword [ebp - 4]
mov dx, bp
mov edx, dword [ecx + eax + 0x24]
ror cl, 0xcd
lea ecx, [edx + esi*2]
movzx edx, word [ecx + eax]
mov dword [ebp - 8], edx
xor cl, 0x99
rcr dx, cl
btc dx, 0x7b
mov ecx, eax
movsx edx, sp
mov edx, dword [ebp - 4]
setp al
test sp, cx
mov eax, dword [ecx + 0x3c]
cmp dword [eax + ecx], 0x4550
jmp 0x1803542
ret
test esi, esi
jmp 0x180361b
Function at 0x401ac1
Capabilities:
Terminate process

Disassembly:
cmp ecx, dword [0x42f090]
jne 0x401acb
repz ret
jmp fcn.00402cc8

Function at 0x40b7ed
Capabilities:
Link many functions at runtime

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x14
push ebx
push esi
push edi
call fcn.00404b39
and dword [ebp - 4], 0
cmp dword [0x433ac0], 0
mov ebx, eax
jne 0x40b89e
push str.USER32.DLL
call dword [sym.imp.KERNEL32.dll_LoadLibraryA]
mov edi, eax
test edi, edi
je 0x40b94f
mov esi, dword [sym.imp.KERNEL32.dll_GetProcAddress]
push str.MessageBoxA
push edi
call esi
test eax, eax
je 0x40b94f
push eax
call fcn.00404ac7
mov dword [esp], str.GetActiveWindow
push edi
mov dword [0x433ac0], eax
call esi
push eax
call fcn.00404ac7
mov dword [esp], str.GetLastActivePopup
push edi
mov dword [0x433ac4], eax
call esi
push eax
call fcn.00404ac7
mov dword [esp], str.GetUserObjectInformationA
push edi
mov dword [0x433ac8], eax
call esi
push eax
call fcn.00404ac7
pop ecx
mov dword [0x433ad0], eax
test eax, eax
je 0x40b89e
push str.GetProcessWindowStation
push edi
call esi
push eax
call fcn.00404ac7
pop ecx
mov dword [0x433acc], eax
mov eax, dword [0x433acc]
cmp eax, ebx
je 0x40b8f6
cmp dword [0x433ad0], ebx
je 0x40b8f6
push eax
call fcn.00404b42
push dword [0x433ad0]
mov esi, eax
call fcn.00404b42
pop ecx
pop ecx
mov edi, eax
test esi, esi
je 0x40b8f6
test edi, edi
je 0x40b8f6
call esi
test eax, eax
je 0x40b8ed
lea ecx, [ebp - 8]
push ecx
push 0xc
lea ecx, [ebp - 0x14]
push ecx
push 1
push eax
call edi
test eax, eax
je 0x40b8ed
test byte [ebp - 0xc], 1
jne 0x40b8f6
or dword [ebp + 0x10], 0x200000
jmp 0x40b92f
mov eax, dword [0x433ac4]
cmp eax, ebx
je 0x40b92f
push eax
call fcn.00404b42
pop ecx
test eax, eax
je 0x40b92f
call eax
mov dword [ebp - 4], eax
test eax, eax
je 0x40b92f
mov eax, dword [0x433ac8]
cmp eax, ebx
je 0x40b92f
push eax
call fcn.00404b42
pop ecx
test eax, eax
je 0x40b92f
push dword [ebp - 4]
call eax
mov dword [ebp - 4], eax
push dword [0x433ac0]
call fcn.00404b42
pop ecx
test eax, eax
je 0x40b94f
push dword [ebp + 0x10]
push dword [ebp + 0xc]
push dword [ebp + 8]
push dword [ebp - 4]
call eax
jmp 0x40b951
xor eax, eax
pop edi
pop esi
pop ebx
leave
ret

Function at 0x40da3b
Capabilities:
Set console window title

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x820
mov eax, dword [0x42f090]
xor eax, ebp
mov dword [ebp - 4], eax
push esi
xor esi, esi
cmp dword [0x1baa124], 0x930
jne 0x40da70
push 0x42cf60
push esi
call dword [sym.imp.KERNEL32.dll_CreateJobObjectW]
push esi
call dword [sym.imp.KERNEL32.dll_SetConsoleTitleA]
cmp dword [0x1baa124], 0x114e
mov eax, dword [ebp + 8]
mov dword [0x1ba9e40], eax
jne 0x40daa7
push esi
lea eax, [ebp - 0x804]
push eax
push esi
call sub.KERNEL32.dll_VerLanguageNameW
lea eax, [ebp - 0x820]
push eax
push esi
call dword [sym.imp.KERNEL32.dll_BuildCommDCBW]
push esi
call dword [sym.imp.KERNEL32.dll_LoadLibraryW]
mov ecx, dword [ebp - 4]
xor ecx, ebp
pop esi
call fcn.00401ac1
leave
ret
Function at 0x462f20
Capabilities:
Encrypt data using rc4 prga

Disassembly:
push ebp
mov ebp, esp
mov eax, dword [ebp + 0x14]
push ebx
push esi
mov esi, dword [ebp + 8]
mov ebx, dword [esi]
mov ecx, dword [esi + 4]
test eax, eax
jle 0x462f7b
push edi
mov edi, dword [ebp + 0x10]
sub dword [ebp + 0xc], edi
mov dword [ebp + 8], eax
mov edi, edi
inc bl
lea edi, [edi + 1]
movzx ebx, bl
mov dl, byte [esi + ebx + 8]
add cl, dl
movzx ecx, cl
mov al, byte [esi + ecx + 8]
mov byte [esi + ebx + 8], al
add al, dl
movzx eax, al
mov byte [esi + ecx + 8], dl
movzx edx, byte [eax + esi + 8]
mov eax, dword [ebp + 0xc]
xor dl, byte [eax + edi - 1]
sub dword [ebp + 8], 1
mov byte [edi - 1], dl
jne 0x462f40
mov eax, dword [ebp + 0x14]
pop edi
mov dword [esi], ebx
mov dword [esi + 4], ecx
pop esi
pop ebx
pop ebp
ret

Function at 0x468612
Capabilities:
Encode data using xor
Encrypt data using rc4 prga

Disassembly:
push ecx
mov ecx, dword [esp + 4]
lea ecx, [ecx + 0x16]
xchg dword [esp + 4], ecx
mov dword [esp + 4], ecx
mov ecx, dword [esp]
lea esp, [esp + 4]
add dword [esp], 0xffffff3e
xchg dword [esp], ebx
push ebp
mov ebp, esp
leave
xchg dword [esp + 4], ebx
pushfd
add ebp, 0x37
popfd
lea ebp, [ebp - 0x37]
xchg dword [esp], ebx
push edi
mov edi, dword [esp + 7]
pop edi
popfd
push eax
mov eax, dword [esp + 4]
lea eax, [eax + 0x6d]
xchg dword [esp + 4], eax
mov dword [esp + 4], eax
mov eax, dword [esp]
lea esp, [esp + 4]
jmp fcn.00462f20
Function at 0x46c348
Capabilities:
Execute anti-debugging instructions

Disassembly:
push ebp
mov ebp, esp
leave
add dword [esp], 0xfffff5c6
xchg dword [esp], ecx
push ebp
mov ebp, esp
leave
xchg dword [esp + 4], ecx
push esi
mov esi, dword [esp + 4]
lea esi, [esi + 0x47]
xchg dword [esp + 4], esi
mov dword [esp + 4], esi
mov esi, dword [esp]
lea esp, [esp + 4]
xchg dword [esp], ecx
push ebx
mov ebx, dword [esp + 4]
lea ebx, [ebx + 0x7d]
xchg dword [esp + 4], ebx
mov dword [esp + 4], ebx
mov ebx, dword [esp]
lea esp, [esp + 4]
popfd
pushfd
add ebp, 0x59
popfd
lea ebp, [ebp - 0x59]
jmp 0x477bbc
pop ebx
pushfd
push eax
mov eax, dword [esp + 4]
lea eax, [eax + 0x74]
xchg dword [esp + 4], eax
mov dword [esp + 4], eax
mov eax, dword [esp]
lea esp, [esp + 4]
push 0x43de
push edi
mov edi, dword [esp + 4]
xor eax, edi
mov edi, dword [esp]
lea esp, [esp + 8]
popfd
push edi
mov edi, dword [esp + 4]
lea edi, [edi + 0x18]
xchg dword [esp + 4], edi
mov dword [esp + 4], edi
mov edi, dword [esp]
lea esp, [esp + 4]
cmp word [ecx], ax
pushfd
add ebp, 0x77
popfd
lea ebp, [ebp - 0x77]
je 0x4778f0
jmp fcn.004778d8
call fcn.00477fbc
jle 0x477b5d
invalid
Function at 0x401cd0
Capabilities:
Allocate or change rwx memory

Disassembly:
push ebp
mov ebp, esp
push 0x40
push 0x1000
mov eax, dword [ebp + 8]
push eax
push 0
call dword [sym.imp.KERNEL32.DLL_VirtualAlloc]
pop ebp
ret

Function at 0x401cf0
Capabilities:
Create thread

Disassembly:
push ebp
mov ebp, esp
push 0
push 0
push 0
mov eax, dword [ebp + 8]
push eax
push 0
push 0
call dword [sym.imp.KERNEL32.DLL_CreateThread]
pop ebp
ret

Function at 0x4400c9
Capabilities:
Encrypt data using dpapi

Disassembly:
push esi
push edi
push 0x46c6d0
push str.AdvApi32.dll
call main
mov edi, dword [sym.imp.kernel32.dll_GetProcAddress]
mov esi, eax
test esi, esi
js 0x44010c
push str.SystemFunction040
push dword [0x46c6d0]
call edi
push str.SystemFunction041
push dword [0x46c6d0]
mov dword [0x46c6c0], eax
call edi
mov dword [0x46c6c4], eax
jmp 0x440111
mov eax, dword [0x46c6c4]
cmp dword [0x46c6c0], 0
je 0x440122
test eax, eax
jne 0x4401c9
push 0x46c6d4
push str.Crypt32.dll
call main
mov esi, eax
test esi, esi
js 0x4401d3
push str.CryptProtectMemory
push dword [0x46c6d4]
call edi
cmp dword [0x46c6c0], 0
mov dword [0x46c6c8], eax
jne 0x440187
test eax, eax
jne 0x440187
call dword [sym.imp.kernel32.dll_GetLastError]
mov esi, eax
test esi, esi
jle 0x440171
movzx esi, si
or esi, 0x80070000
test esi, esi
js 0x440178
mov esi, 0x80004005
push esi
push 0x28
push str.c:_agent_work138_s_srclibsdutilcryputil.cpp
call fcn.004038f5
jmp 0x4401d3
push str.CryptUnprotectMemory
push dword [0x46c6d4]
call edi
cmp dword [0x46c6c4], 0
mov dword [0x46c6cc], eax
jne 0x4401c9
test eax, eax
jne 0x4401c9
call dword [sym.imp.kernel32.dll_GetLastError]
mov esi, eax
test esi, esi
jle 0x4401bd
movzx esi, si
or esi, 0x80070000
test esi, esi
js 0x4401c4
mov esi, 0x80004005
push esi
push 0x2d
jmp 0x44017b
mov dword [0x46c6d8], 1
pop edi
mov eax, esi
pop esi
ret

Function at 0x449ccb
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x3c
pushal
call 0x449cda
pop dword [ebp - 0x2c]
mov eax, 0x449cda
sub dword [ebp - 0x2c], eax
push 0x40
push 0x1000
push 0x53d18
push 0
mov eax, 0xc9e1295a
sub eax, 0xc99c76aa
add eax, dword [ebp - 0x2c]
call dword [eax]
mov ecx, 0x569b
mov edi, eax
mov esi, 0x7024ea7
add esi, 0xf9463f59
add esi, dword [ebp - 0x2c]
mov ebx, 0x37223fa7
add dword [ebp - 0x10], 0x5638a90c
mov edx, dword [esi]
xor dword [ebp - 4], 0x31fa493d
xor edx, ebx
add dword [ebp - 0xc], eax
mov dword [edi], edx
add edi, 0xa0497e54
sub edi, 0xa0497e50
add esi, 4
loop 0x449d28
add eax, 0x6c24c054
add eax, 0x93dc8ceb
xor ebx, ebx
add ebx, eax
add eax, 0xb50d2fcd
sub eax, 0xb50d2fc8
mov ecx, 0x205c0858
sub ecx, 0x201c0858
add ecx, dword [ebp - 0x2c]
call ebx
leave
ret

Function at 0x403d61
Capabilities:
Encode data using xor

Disassembly:
push eax
push ebx
mov eax, 0x499
mov ecx, 0x404498
mov bl, byte [ecx]
sub bl, 0xf2
rol bl, 2
sub bl, cl
ror bl, 1
mov byte [ecx], bl
dec ecx
dec eax
jne 0x403d6d
mov eax, 0x261d
mov ecx, 0x403764
mov bl, byte [ecx]
rol bl, 7
ror bl, 2
sub bl, cl
xor bl, 0x91
mov byte [ecx], bl
dec ecx
dec eax
jne 0x403d8a
pop ebx
pop eax
add ecx, 0x2c1a
jmp ecx
Function at 0x13dd745
Capabilities:
Write file on windows

Disassembly:
sub esp, 0x11c
cmp dword [esp + 0x128], 0
je 0x13dd90a
push ebp
push esi
mov esi, dword [esp + 0x12c]
xor ebp, ebp
mov dword [esp + 0x14], ebp
mov ecx, dword [esi + 0xc]
test ecx, ecx
je 0x13dd908
push ebx
mov edx, esi
push edi
mov eax, dword [edx]
mov ebx, dword [esp + 0x130]
add eax, ebx
mov dword [esp + 0x18], eax
mov eax, dword [edx + 0x10]
add eax, ebx
lea edi, [ecx + ebx]
mov dword [esp + 0x20], eax
push edi
call dword [sym.imp.KERNEL32.dll_GetModuleHandleA]
mov ebx, eax
mov dword [esp + 0x10], ebx
test ebx, ebx
jne 0x13dd7b0
push edi
call dword [sym.imp.KERNEL32.dll_LoadLibraryA]
mov ebx, eax
mov dword [esp + 0x10], eax
push 0x104
lea eax, [esp + 0x2c]
push 0
push eax
call fcn.013d5f12
add esp, 0xc
test ebx, ebx
je 0x13dd8b0
mov eax, dword [esp + 0x18]
and dword [esp + 0x14], 0
mov eax, dword [eax]
test eax, eax
je 0x13dd899
mov esi, dword [esp + 0x10]
xor edi, edi
mov ebp, dword [esp + 0x130]
test eax, eax
jns 0x13dd7f5
movzx ebx, ax
jmp 0x13dd7fa
lea ebx, [ebp + 2]
add ebx, eax
push ebx
push esi
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
mov ecx, dword [esp + 0x20]
mov dword [edi + ecx], eax
test eax, eax
jne 0x13dd871
cmp dword [0x13e45f0], 1
jne 0x13dd871
push 0x104
push eax
lea eax, [esp + 0x30]
push eax
call fcn.013d5f12
lea eax, [esp + 0x34]
push eax
call fcn.013dd9ee
lea eax, [esp + 0x38]
push 0x13d4fa4
push eax
call fcn.013d5f40
lea eax, [esp + 0x40]
push ebx
push eax
call fcn.013d5f40
add esp, 0x20
lea eax, [esp + 0x24]
push 0
push eax
lea eax, [esp + 0x30]
push eax
call fcn.013d5f67
pop ecx
push eax
lea eax, [esp + 0x34]
push eax
push dword [0x13e4590]
call dword [sym.imp.KERNEL32.dll_WriteFile]
mov ecx, dword [esp + 0x14]
mov eax, dword [esp + 0x18]
inc ecx
mov edi, ecx
mov dword [esp + 0x14], ecx
shl edi, 2
mov eax, dword [edi + eax]
test eax, eax
jne 0x13dd7ee
mov esi, dword [esp + 0x134]
mov ebp, dword [esp + 0x1c]
inc ebp
imul edx, ebp, 0x14
mov dword [esp + 0x1c], ebp
add edx, esi
mov ecx, dword [edx + 0xc]
test ecx, ecx
jne 0x13dd777
jmp 0x13dd906
lea eax, [esp + 0x28]
push eax
call fcn.013dd9ee
lea eax, [esp + 0x2c]
mov dword [esp], 0x13d4f88
push eax
call fcn.013d5f40
lea eax, [esp + 0x30]
push edi
push eax
call fcn.013d5f40
add esp, 0x10
cmp dword [0x13e45f0], 1
jne 0x13dd906
push 0
lea eax, [esp + 0x28]
push eax
lea eax, [esp + 0x30]
push eax
call fcn.013d5f67
pop ecx
push eax
lea eax, [esp + 0x34]
push eax
push dword [0x13e4590]
call dword [sym.imp.KERNEL32.dll_WriteFile]
pop edi
pop ebx
pop esi
pop ebp
xor eax, eax
add esp, 0x11c
ret
Function at 0x13dd940
Capabilities:
Read file via mapping

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x410
push 0x208
lea eax, [ebp - 0x410]
push eax
call fcn.013dd9bc
push eax
call dword [sym.imp.KERNEL32.dll_GetModuleFileNameW]
push 0
push 0x80
push 3
push 0
push 1
push 0x80000000
lea eax, [ebp - 0x410]
push eax
call dword [sym.imp.KERNEL32.dll_CreateFileW]
mov dword [0x13e4460], eax
push 0
push 0
push 0
push 2
push 0
push dword [0x13e4460]
call dword [sym.imp.KERNEL32.dll_CreateFileMappingW]
mov dword [0x13e4464], eax
push 0
push 0
push 0
push 4
push dword [0x13e4464]
call dword [sym.imp.KERNEL32.dll_MapViewOfFile]
add eax, dword [0x13e45f8]
leave
ret
Function at 0x13dda44
Capabilities:
Allocate or change rwx memory

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x38
cmp dword [ebp + 0x14], 0
jne 0x13dda57
xor eax, eax
jmp 0x13ddbdb
mov eax, dword [ebp + 0xc]
add eax, dword [ebp + 0x10]
mov dword [ebp - 0x2c], eax
and dword [ebp - 0x24], 0
mov eax, dword [ebp + 8]
mov dword [ebp - 0x1c], eax
mov eax, dword [ebp - 0x1c]
mov ecx, dword [ebp - 0x1c]
add ecx, dword [eax + 0x3c]
mov dword [ebp - 8], ecx
and dword [ebp - 0xc], 0
mov eax, dword [ebp - 8]
movzx eax, word [eax + 4]
cmp eax, 0x14c
jne 0x13dda95
mov eax, dword [ebp - 8]
add eax, 0xf8
mov dword [ebp - 0xc], eax
jmp 0x13ddaae
mov eax, dword [ebp - 8]
movzx eax, word [eax + 4]
cmp eax, 0x8664
jne 0x13ddaae
mov eax, dword [ebp - 8]
add eax, 0x108
mov dword [ebp - 0xc], eax
and dword [ebp - 0x10], 0
jmp 0x13ddabb
mov eax, dword [ebp - 0x10]
inc eax
mov dword [ebp - 0x10], eax
mov eax, dword [ebp - 8]
movzx eax, word [eax + 6]
cmp dword [ebp - 0x10], eax
je 0x13ddaf4
imul eax, dword [ebp - 0x10], 0x28
mov ecx, dword [ebp - 0xc]
mov edx, dword [ebp + 8]
add edx, dword [ecx + eax + 0xc]
mov dword [ebp - 0x28], edx
lea eax, [ebp - 0x24]
push eax
push 0x40
imul eax, dword [ebp - 0x10], 0x28
mov ecx, dword [ebp - 0xc]
push dword [ecx + eax + 8]
push dword [ebp - 0x28]
call dword [sym.imp.KERNEL32.dll_VirtualProtect]
jmp 0x13ddab4
mov eax, dword [ebp + 0xc]
cmp eax, dword [ebp - 0x2c]
jae 0x13ddb94
mov eax, dword [ebp + 0xc]
add eax, 8
mov dword [ebp - 0x18], eax
mov eax, dword [ebp + 0xc]
mov eax, dword [eax + 4]
sub eax, 8
shr eax, 1
mov dword [ebp - 0x30], eax
and dword [ebp - 4], 0
jmp 0x13ddb24
mov eax, dword [ebp - 4]
inc eax
mov dword [ebp - 4], eax
mov eax, dword [ebp - 4]
cmp eax, dword [ebp - 0x30]
je 0x13ddb83
mov eax, dword [ebp - 4]
mov ecx, dword [ebp - 0x18]
movzx eax, word [ecx + eax*2]
test eax, eax
jne 0x13ddb3c
jmp 0x13ddb1d
mov eax, dword [ebp - 4]
mov ecx, dword [ebp - 0x18]
movzx eax, word [ecx + eax*2]
and eax, 0xfff
mov ecx, dword [ebp + 0xc]
mov ecx, dword [ecx]
add ecx, eax
add ecx, dword [ebp + 8]
mov dword [ebp - 0x20], ecx
mov eax, dword [ebp - 4]
mov ecx, dword [ebp - 0x18]
movzx eax, word [ecx + eax*2]
sar eax, 0xc
mov dword [ebp - 0x34], eax
cmp dword [ebp - 0x34], 3
je 0x13ddb74
jmp 0x13ddb81
mov eax, dword [ebp - 0x20]
mov eax, dword [eax]
add eax, dword [ebp + 0x14]
mov ecx, dword [ebp - 0x20]
mov dword [ecx], eax
jmp 0x13ddb1d
mov eax, dword [ebp + 0xc]
mov ecx, dword [ebp + 0xc]
add ecx, dword [eax + 4]
mov dword [ebp + 0xc], ecx
jmp 0x13ddaf4
and dword [ebp - 0x14], 0
jmp 0x13ddba1
mov eax, dword [ebp - 0x14]
inc eax
mov dword [ebp - 0x14], eax
mov eax, dword [ebp - 8]
movzx eax, word [eax + 6]
cmp dword [ebp - 0x14], eax
je 0x13ddbd9
imul eax, dword [ebp - 0x14], 0x28
mov ecx, dword [ebp - 0xc]
mov edx, dword [ebp + 8]
add edx, dword [ecx + eax + 0xc]
mov dword [ebp - 0x38], edx
push 0
push dword [ebp - 0x24]
imul eax, dword [ebp - 0x14], 0x28
mov ecx, dword [ebp - 0xc]
push dword [ecx + eax + 8]
push dword [ebp - 0x38]
call dword [sym.imp.KERNEL32.dll_VirtualProtect]
jmp 0x13ddb9a
xor eax, eax
leave
ret
Function at 0x13ddd7e
Capabilities:
Allocate or change rwx memory

Disassembly:
sub esp, 0x68
mov eax, dword [esp + 0x6c]
push ebx
push esi
push edi
mov esi, dword [eax]
xor edi, edi
call fcn.013ddd41
push esi
call fcn.013ddf2c
push dword [esp + 0x80]
mov esi, eax
call fcn.013ddf2c
push 0x58
mov dword [esp + 0x20], eax
lea eax, [esp + 0x28]
push edi
push eax
call fcn.013d5f12
lea eax, [esp + 0x30]
push eax
push 5
push esi
call fcn.013ddc5b
mov ebx, eax
add esp, 0x20
cmp ebx, 5
jb 0x13ddf13
push dword [esp + 0x28]
push dword [esp + 0x28]
push dword [esp + 0x28]
push dword [esp + 0x28]
push esi
call fcn.013ddf61
mov edi, eax
add esp, 0x14
test edi, edi
je 0x13ddf13
push ebp
call dword [sym.imp.KERNEL32.dll_GetCurrentProcess]
and dword [esp + 0x14], 0
mov ebp, eax
and dword [esp + 0x10], 0
lea eax, [esp + 0x14]
push eax
push 0x40
push ebx
push esi
push ebp
mov dword [esp + 0x30], ebp
call dword [sym.imp.KERNEL32.dll_VirtualProtectEx]
test eax, eax
je 0x13ddef6
lea eax, [esp + 0x10]
push eax
push 0x40
push 0x6c
push edi
push ebp
call dword [sym.imp.KERNEL32.dll_VirtualProtectEx]
test eax, eax
je 0x13ddedb
lea eax, [edi + 0x2c]
mov ebp, esi
xor ecx, ecx
mov edx, eax
sub ebp, eax
mov al, byte [edx + ebp]
mov byte [edx], al
mov byte [edi + ecx + 0x4c], al
inc ecx
inc edx
cmp ecx, ebx
jb 0x13dde47
lea eax, [ebx + esi]
push eax
lea eax, [ebx + 0x2c]
add eax, edi
push eax
call fcn.013ddcfc
mov edx, dword [esp + 0x20]
mov eax, edx
mov ebp, dword [esp + 0x24]
sub eax, esi
pop ecx
pop ecx
mov ecx, esi
sub ecx, edx
cmp edx, esi
cmovb eax, ecx
cmp eax, 0x7fff0000
jbe 0x13ddea5
lea eax, [edi + 0xc]
push edx
push eax
call fcn.013ddcfc
pop ecx
sub eax, edi
pop ecx
sub eax, 0xc
push eax
lea eax, [edi + 0xc]
push eax
push ebp
call dword [sym.imp.KERNEL32.dll_FlushInstructionCache]
lea eax, [edi + 0xc]
jmp 0x13ddea7
mov eax, edx
push eax
push esi
call fcn.013ddcfc
mov eax, dword [esp + 0x20]
pop ecx
pop ecx
mov dword [edi + 8], eax
lea eax, [edi + 0x2c]
push ebx
push eax
push ebp
mov dword [edi + 4], ebx
mov dword [edi], esi
call dword [sym.imp.KERNEL32.dll_FlushInstructionCache]
lea eax, [esp + 0x10]
push eax
push dword [esp + 0x14]
push 0x6c
push edi
push ebp
call dword [sym.imp.KERNEL32.dll_VirtualProtectEx]
push ebx
push esi
push ebp
call dword [sym.imp.KERNEL32.dll_FlushInstructionCache]
lea eax, [esp + 0x14]
push eax
push dword [esp + 0x18]
push ebx
push esi
push ebp
call dword [sym.imp.KERNEL32.dll_VirtualProtectEx]
cmp dword [edi], 0
pop ebp
je 0x13ddf07
mov ecx, dword [esp + 0x78]
lea eax, [edi + 0x2c]
mov dword [ecx], eax
jmp 0x13ddf13
push 1
push edi
call fcn.013de055
pop ecx
pop ecx
xor edi, edi
push 0x13e446c
call dword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
xor eax, eax
test edi, edi
pop edi
pop esi
setne al
pop ebx
add esp, 0x68
ret
Function at 0x13ddf61
Capabilities:
Get system information on windows

Disassembly:
sub esp, 0x40
push ebx
xor ebx, ebx
cmp dword [0x13e4484], 0x40
jae 0x13de04e
mov ecx, dword [esp + 0x48]
push ebp
push esi
mov esi, dword [esp + 0x54]
mov ebp, 0xfff80000
add esi, ecx
add ecx, dword [esp + 0x5c]
push edi
cmp ecx, 0x80000000
lea edi, [esp + 0x2c]
push 9
lea eax, [ecx + 0x7ff80000]
cmovb ebp, eax
xor eax, eax
pop ecx
rep stosd dword es:[edi], eax
lea eax, [esp + 0x2c]
push eax
call dword [sym.imp.KERNEL32.dll_GetSystemInfo]
xor eax, eax
lea edi, [esi - 0x7fff0000]
inc eax
cmp esi, 0x80000000
cmovb edi, eax
cmp edi, ebp
jae 0x13de04b
push 0x1c
lea eax, [esp + 0x14]
push eax
push edi
call dword [sym.imp.KERNEL32.dll_VirtualQuery]
test eax, eax
je 0x13de026
cmp dword [esp + 0x20], 0x10000
jne 0x13de018
mov eax, dword [esp + 0x1c]
cmp eax, 0x6c
jb 0x13de01c
mov ecx, dword [esp + 0x48]
cmp eax, ecx
jb 0x13de01c
lea eax, [ecx - 1]
xor edx, edx
add eax, edi
div ecx
push 0x20
imul eax, ecx
push 0x3000
push 0x6c
push eax
call dword [sym.imp.KERNEL32.dll_VirtualAlloc]
mov ebx, eax
test ebx, ebx
jne 0x13de02a
mov eax, dword [esp + 0x1c]
mov edi, dword [esp + 0x10]
add edi, eax
cmp edi, ebp
jb 0x13ddfc9
test ebx, ebx
je 0x13de04b
xor eax, eax
cmp dword [eax*4 + 0x13e4488], 0
je 0x13de03e
inc eax
cmp eax, 0x40
jb 0x13de02c
jmp 0x13de04b
inc dword [0x13e4484]
mov dword [eax*4 + 0x13e4488], ebx
pop edi
pop esi
pop ebp
mov eax, ebx
pop ebx
add esp, 0x40
ret