joyce8/EMBER2024-capa huggingface dataset:
Function at 0x1000319d
Capabilities:
Get common file path

Disassembly:
push 0x14
mov eax, 0x1001843d
call fcn.10005580
mov esi, dword [ebp + 8]
xor eax, eax
xor edi, edi
xor ebx, ebx
mov word [esi], ax
mov dword [ebp - 4], edi
call fcn.100139f0
test eax, eax
je 0x100031c8
call fcn.1000318e
mov ebx, eax
push 0x104
push esi
push ebx
push edi
push 0x1001a0a8
call dword [sym.imp.SHELL32.dll_SHGetFolderPathEx]
mov esi, eax
cmp esi, edi
jge 0x10003223
push esi
push str.Error:_08x_in_SHGetFolderPathEx_FOLDERID_LocalAppDataLow__0__hToken__pPath__MAX_PATH_
call fcn.10003e12
pop ecx
pop ecx
push edi
push esi
call fcn.100139f0
mov ecx, dword [ebp - 0x18]
mov esi, dword [ecx + 4]
mov dword [ebp - 0x14], esi
call fcn.10003873
push eax
push esi
push 0x10019474
call fcn.10003e12
or dword [ebp - 4], 0xffffffff
add esp, 0xc
mov eax, 0x1000321c
ret
cmp ebx, edi
je 0x1000322e
push ebx
call dword [sym.imp.kernel32.dll_CloseHandle]
or dword [ebp - 4], 0xffffffff
cmp esi, edi
jge 0x100032df
push dword [ebp + 8]
mov dword [ebp - 4], 2
push edi
push edi
push 0x1a
push edi
call dword [sym.imp.SHELL32.dll_SHGetFolderPathW]
mov esi, eax
cmp esi, edi
jge 0x1000328b
push esi
push str.Error:_08x_in_SHGetFolderPathW_NULL__CSIDL_APPDATA__NULL__0__pPath_
jmp 0x100031e7
or dword [ebp - 4], 0xffffffff
cmp esi, edi
jge 0x100032df
push 1
push 0x1a
push dword [ebp + 8]
mov dword [ebp - 4], 4
push edi
call dword [sym.imp.SHELL32.dll_SHGetSpecialFolderPathW]
mov esi, eax
cmp esi, edi
jge 0x100032df
push esi
push str.Error:_08x_in_SHGetSpecialFolderPathW_NULL__pPath__CSIDL_APPDATA__TRUE_
jmp 0x100031e7
mov eax, esi
call fcn.100055b6
ret

Function at 0x10003623
Capabilities:
Query or enumerate registry key

Disassembly:
push ebp
lea ebp, [esp - 0xa0]
sub esp, 0x120
mov eax, dword [0x1001e08c]
xor eax, ebp
mov dword [ebp + 0x9c], eax
mov eax, dword [ebp + 0xa8]
push ebx
push esi
push edi
mov edi, ecx
mov ecx, dword [edi + 4]
or ecx, 0x2001f
push ecx
push eax
push dword [edi]
xor esi, esi
lea ecx, [ebp - 0x74]
mov dword [ebp - 0x78], eax
mov dword [ebp - 0x74], esi
mov dword [ebp - 0x70], esi
mov dword [ebp - 0x6c], esi
call fcn.100139f0
mov ebx, eax
cmp ebx, esi
je 0x10003696
lea ecx, [ebp - 0x74]
call fcn.10001115
mov eax, ebx
mov ecx, dword [ebp + 0x9c]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.10004d10
add ebp, 0xa0
leave
ret 4
mov ebx, dword [sym.imp.ADVAPI32.dll_RegEnumKeyExA]
jmp 0x100036ae
lea eax, [ebp - 0x64]
push eax
lea ecx, [ebp - 0x74]
call fcn.10003623
cmp eax, esi
jne 0x100036e0
lea eax, [ebp - 0x80]
push eax
push esi
push esi
push esi
lea eax, [ebp - 0x68]
push eax
lea eax, [ebp - 0x64]
push eax
push esi
push dword [ebp - 0x74]
mov dword [ebp - 0x68], 0x100
call ebx
test eax, eax
je 0x1000369e
lea ecx, [ebp - 0x74]
call fcn.10001115
push dword [ebp - 0x78]
mov ecx, edi
call fcn.100010a6
lea ecx, [ebp - 0x74]
mov esi, eax
call fcn.10001115
mov eax, esi
jmp 0x1000367c

Function at 0x10004d10
Capabilities:
Terminate process

Disassembly:
cmp ecx, dword [0x1001e08c]
jne 0x10004d1a
repz ret
jmp fcn.1000a8a3
Function at 0x100139f0
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x5c
pushal
call 0x100139ff
pop dword [ebp - 0x4c]
mov eax, 0x7813c0ae
sub eax, 0x681286af
sub dword [ebp - 0x4c], eax
mov dword [ebp - 0x5c], 0x8e98cdf0
add dword [ebp - 0x5c], 0xbfb9775b
mov dword [ebp - 0x58], 0x72e6fd
add dword [ebp - 0x58], 0x31c06548
mov dword [ebp - 0x54], 0x3acd0ebb
sub dword [ebp - 0x54], 0xee80ca8d
mov dword [ebp - 0x50], 0xa522b398
add dword [ebp - 0x50], 0x5add4c68
lea eax, [ebp - 0x5c]
push eax
mov eax, sym.imp.kernel32.dll_GetModuleHandleA
add eax, dword [ebp - 0x4c]
call dword [eax]
mov dword [ebp - 0x5c], 0xccf1007e
add dword [ebp - 0x5c], 0xa78168d8
mov dword [ebp - 0x58], 0x4595cc91
sub dword [ebp - 0x58], 0x4296b1c
mov dword [ebp - 0x54], 0x1b3245ba
sub dword [ebp - 0x54], 0xb7c2d94e
mov dword [ebp - 0x50], 0x3a7f4bd7
sub dword [ebp - 0x50], 0x3a7f4bd7
lea ebx, [ebp - 0x5c]
push ebx
push eax
mov eax, sym.imp.kernel32.dll_GetProcAddress
add eax, dword [ebp - 0x4c]
call dword [eax]
push 0x40
push 0x1000
push 0x3b2ee
push 0
call eax
mov ecx, 0x50cdd9e6
add ecx, 0xaf326d60
xor ebx, ebx
add ebx, eax
mov edi, 0x99065584
sub edi, 0x89039784
add edi, dword [ebp - 0x4c]
mov edx, 0xe8068ad2
sub edx, 0x3dc7aaf6
xor dword [ebp - 0x44], 0xd72c863a
mov esi, dword [edi]
add esi, edx
add dword [ebp - 0x10], ecx
mov dword [ebx], esi
xor dword [ebp - 0x1c], 0xa600666e
add ebx, 0xf9d672ee
sub ebx, 0xf9d672ea
add edi, 0x10790a8
sub edi, 0x10790a4
loop 0x10013b19
add eax, 0xd6ad713b
sub eax, 0xd6ac6150
xor ebx, ebx
add ebx, eax
add eax, 5
mov ecx, 0x8d22247a
sub ecx, 0x7d22247a
add ecx, dword [ebp - 0x4c]
call ebx
leave
ret
Function at 0xaf9166
Capabilities:
Terminate process

Disassembly:
cmp ecx, dword [0xaf3140]
jne 0xaf9170
repz ret
jmp fcn.00af94af

Function at 0xaff328
Capabilities:
Link many functions at runtime

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x24
mov eax, dword [0xaf3140]
xor eax, ebp
mov dword [ebp - 4], eax
mov eax, dword [ebp + 8]
push ebx
mov dword [ebp - 0x20], eax
mov eax, dword [ebp + 0xc]
push esi
push edi
mov dword [ebp - 0x1c], eax
call fcn.00afa976
and dword [ebp - 0x14], 0
cmp dword [0xaf6b2c], 0
mov dword [ebp - 0x18], eax
jne 0xaff3db
push str.USER32.DLL
call dword [sym.imp.kernel32.dll_LoadLibraryW]
mov ebx, eax
test ebx, ebx
je 0xaff483
mov edi, dword [sym.imp.kernel32.dll_GetProcAddress]
push str.MessageBoxW
push ebx
call edi
test eax, eax
je 0xaff483
mov esi, dword [sym.imp.kernel32.dll_EncodePointer]
push eax
call esi
push str.GetActiveWindow
push ebx
mov dword [0xaf6b2c], eax
call edi
push eax
call esi
push str.GetLastActivePopup
push ebx
mov dword [0xaf6b30], eax
call edi
push eax
call esi
push str.GetUserObjectInformationW
push ebx
mov dword [0xaf6b34], eax
call edi
push eax
call esi
mov dword [0xaf6b3c], eax
test eax, eax
je 0xaff3db
push str.GetProcessWindowStation
push ebx
call edi
push eax
call esi
mov dword [0xaf6b38], eax
mov eax, dword [0xaf6b38]
mov ecx, dword [ebp - 0x18]
mov esi, dword [sym.imp.kernel32.dll_DecodePointer]
cmp eax, ecx
je 0xaff434
cmp dword [0xaf6b3c], ecx
je 0xaff434
push eax
call esi
push dword [0xaf6b3c]
mov edi, eax
call esi
mov ebx, eax
test edi, edi
je 0xaff434
test ebx, ebx
je 0xaff434
call edi
test eax, eax
je 0xaff42b
lea ecx, [ebp - 0x24]
push ecx
push 0xc
lea ecx, [ebp - 0x10]
push ecx
push 1
push eax
call ebx
test eax, eax
je 0xaff42b
test byte [ebp - 8], 1
jne 0xaff434
or dword [ebp + 0x10], 0x200000
jmp 0xaff467
mov eax, dword [0xaf6b30]
cmp eax, dword [ebp - 0x18]
je 0xaff467
push eax
call esi
test eax, eax
je 0xaff467
call eax
mov dword [ebp - 0x14], eax
test eax, eax
je 0xaff467
mov eax, dword [0xaf6b34]
cmp eax, dword [ebp - 0x18]
je 0xaff467
push eax
call esi
test eax, eax
je 0xaff467
push dword [ebp - 0x14]
call eax
mov dword [ebp - 0x14], eax
push dword [0xaf6b2c]
call esi
test eax, eax
je 0xaff483
push dword [ebp + 0x10]
push dword [ebp - 0x1c]
push dword [ebp - 0x20]
push dword [ebp - 0x14]
call eax
jmp 0xaff485
xor eax, eax
mov ecx, dword [ebp - 4]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.00af9166
leave
ret
Function at 0x437940
Capabilities:
Packed with generic packer

Disassembly:
pushal
mov esi, section.UPX1
lea edi, [esi - 0x27000]
push edi
jmp 0x43795a
mov al, byte [esi]
inc esi
mov byte [edi], al
inc edi
add ebx, ebx
jne 0x437961
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
jb 0x437950
mov eax, 1
add ebx, ebx
jne 0x437973
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc eax, eax
add ebx, ebx
jae 0x437968
jne 0x437984
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
jae 0x437968
xor ecx, ecx
sub eax, 3
jb 0x437998
shl eax, 8
mov al, byte [esi]
inc esi
xor eax, 0xffffffff
je 0x437a0a
mov ebp, eax
add ebx, ebx
jne 0x4379a3
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc ecx, ecx
add ebx, ebx
jne 0x4379b0
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc ecx, ecx
jne 0x4379d4
inc ecx
add ebx, ebx
jne 0x4379c0
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc ecx, ecx
add ebx, ebx
jae 0x4379b5
jne 0x4379d1
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
jae 0x4379b5
add ecx, 2
cmp ebp, 0xfffff300
adc ecx, 1
lea edx, [edi + ebp]
cmp ebp, 0xfffffffc
jbe 0x4379f4
mov al, byte [edx]
inc edx
mov byte [edi], al
inc edi
dec ecx
jne 0x4379e5
jmp 0x437956
mov eax, dword [edx]
add edx, 4
mov dword [edi], eax
add edi, 4
sub ecx, 4
ja 0x4379f4
add edi, ecx
jmp 0x437956
pop esi
mov edi, esi
mov ecx, 0xa57
mov al, byte [edi]
inc edi
sub al, 0xe8
cmp al, 1
ja 0x437a12
cmp byte [edi], 0x12
jne 0x437a12
mov eax, dword [edi]
mov bl, byte [edi + 4]
shr ax, 8
rol eax, 0x10
xchg ah, al
sub eax, edi
sub bl, 0xe8
add eax, esi
mov dword [edi], eax
add edi, 5
mov al, bl
loop 0x437a17
lea edi, [esi + 0x35000]
mov eax, dword [edi]
or eax, eax
je 0x437a8f
mov ebx, dword [edi + 4]
lea eax, [eax + esi + 0x49154]
add ebx, esi
push eax
add edi, 8
call dword [esi + 0x49234]
xchg ebp, eax
mov al, byte [edi]
inc edi
or al, al
je 0x437a44
mov ecx, edi
jns 0x437a73
movzx eax, word [edi]
inc edi
push eax
inc edi
mov ecx, 0xaef24857
push edi
dec eax
repne scasb al, byte es:[edi]
push ebp
call dword [esi + 0x4923c]
or eax, eax
je 0x437a89
mov dword [ebx], eax
add ebx, 4
jmp 0x437a61
call dword [esi + 0x49238]
mov ebp, dword [esi + 0x49240]
lea edi, [esi - 0x1000]
mov ebx, 0x1000
push eax
push esp
push 4
push ebx
push edi
call ebp
lea eax, [edi + 0x17f]
and byte [eax], 0x7f
and byte [eax + 0x28], 0x7f
pop eax
push eax
push esp
push eax
push ebx
push edi
call ebp
pop eax
popal
lea eax, [esp - 0x80]
push 0
cmp esp, eax
jne 0x437ac3
sub esp, 0xffffff80
jmp 0x41942f
Function at 0x42e003
Capabilities:
Encode data using xor
Packed with generic packer

Disassembly:
pushal
nop
nop
nop
mov eax, section..text
nop
mov ebx, 0x407ef8
mov ecx, 0x3ae746a0
nop
test eax, eax
nop
nop
nop
nop
nop
nop
je 0x42e04e
nop
nop
nop
xor dword [eax], ecx
nop
nop
nop
inc eax
nop
nop
nop
nop
nop
inc eax
nop
nop
nop
nop
nop
nop
nop
inc eax
nop
nop
nop
nop
nop
nop
nop
nop
inc eax
nop
nop
cmp eax, ebx
nop
nop
nop
nop
nop
nop
jne 0x42e024
nop
mov eax, section..data
nop
mov ebx, 0x42cd70
mov ecx, 0x52367688
nop
nop
nop
test eax, eax
nop
nop
je 0x42e084
nop
nop
nop
nop
nop
nop
xor dword [eax], ecx
nop
nop
add eax, 4
nop
nop
nop
nop
nop
nop
cmp eax, ebx
nop
nop
nop
nop
nop
jne 0x42e06c
nop
popal
nop
nop
nop
nop
jmp 0x401219
Function at 0x408955
Capabilities:
Encode data using xor

Disassembly:
sub esp, 4
mov dword [esp], 0x4085d8
pop ebx
or esi, esi
sub ecx, ecx
call fcn.00408982
add ecx, ecx
xor dword [eax], ebx
inc esi
sub esi, 0xa97df5b8
add eax, 1
cmp eax, edi
jne fcn.00408955
ret

Function at 0x41b130
Capabilities:
Packed with generic packer

Disassembly:
pushal
mov esi, section.UPX1
lea edi, [esi - 0x10000]
push edi
or ebp, 0xffffffff
jmp 0x41b152
mov al, byte [esi]
inc esi
mov byte [edi], al
inc edi
add ebx, ebx
jne 0x41b159
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
jb 0x41b148
mov eax, 1
add ebx, ebx
jne 0x41b16b
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc eax, eax
add ebx, ebx
jae 0x41b160
jne 0x41b17c
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
jae 0x41b160
xor ecx, ecx
sub eax, 3
jb 0x41b190
shl eax, 8
mov al, byte [esi]
inc esi
xor eax, 0xffffffff
je 0x41b202
mov ebp, eax
add ebx, ebx
jne 0x41b19b
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc ecx, ecx
add ebx, ebx
jne 0x41b1a8
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc ecx, ecx
jne 0x41b1cc
inc ecx
add ebx, ebx
jne 0x41b1b8
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc ecx, ecx
add ebx, ebx
jae 0x41b1ad
jne 0x41b1c9
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
jae 0x41b1ad
add ecx, 2
cmp ebp, 0xfffff300
adc ecx, 1
lea edx, [edi + ebp]
cmp ebp, 0xfffffffc
jbe 0x41b1ec
mov al, byte [edx]
inc edx
mov byte [edi], al
inc edi
dec ecx
jne 0x41b1dd
jmp 0x41b14e
mov eax, dword [edx]
add edx, 4
mov dword [edi], eax
add edi, 4
sub ecx, 4
ja 0x41b1ec
add edi, ecx
jmp 0x41b14e
pop esi
mov edi, esi
mov ecx, 0x34
mov al, byte [edi]
inc edi
sub al, 0xe8
cmp al, 1
ja 0x41b20a
cmp byte [edi], 3
jne 0x41b20a
mov eax, dword [edi]
mov bl, byte [edi + 4]
shr ax, 8
rol eax, 0x10
xchg ah, al
sub eax, edi
sub bl, 0xe8
add eax, esi
mov dword [edi], eax
add edi, 5
mov al, bl
loop 0x41b20f
lea edi, [esi + 0x19000]
mov eax, dword [edi]
or eax, eax
je 0x41b287
mov ebx, dword [edi + 4]
lea eax, [eax + esi + 0x229e8]
add ebx, esi
push eax
add edi, 8
call dword [esi + 0x22a24]
xchg ebp, eax
mov al, byte [edi]
inc edi
or al, al
je 0x41b23c
mov ecx, edi
jns 0x41b26b
movzx eax, word [edi]
inc edi
push eax
inc edi
mov ecx, 0xaef24857
push edi
dec eax
repne scasb al, byte es:[edi]
push ebp
call dword [esi + 0x22a2c]
or eax, eax
je 0x41b281
mov dword [ebx], eax
add ebx, 4
jmp 0x41b259
call dword [esi + 0x22a28]
mov ebp, dword [esi + 0x22a30]
lea edi, [esi - 0x1000]
mov ebx, 0x1000
push eax
push esp
push 4
push ebx
push edi
call ebp
lea eax, [edi + 0x1d7]
and byte [eax], 0x7f
and byte [eax + 0x28], 0x7f
pop eax
push eax
push esp
push eax
push ebx
push edi
call ebp
pop eax
popal
lea eax, [esp - 0x80]
push 0
cmp esp, eax
jne 0x41b2bb
sub esp, 0xffffff80
jmp 0x401910
Function at 0x419282
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x1c
pushal
call 0x419291
pop dword [ebp - 0xc]
mov eax, 0x419291
sub dword [ebp - 0xc], eax
push 0x40
push 0x1000
push 0x40468
push 0
mov eax, sym.imp.kernel32.dll_VirtualAlloc
add eax, dword [ebp - 0xc]
call dword [eax]
mov ecx, 0x5a9893e
add ecx, 0xfa56c8d5
mov esi, eax
mov edi, 0x435400
add edi, dword [ebp - 0xc]
mov ebx, 0x4ae1715e
add ebx, 0x9d9b14ae
xor dword [ebp - 8], 0x8bd1b7a8
mov edx, dword [edi]
mov dword [ebp - 8], 0x1b20433a
sub edx, ebx
mov dword [esi], edx
xor dword [ebp - 8], ebx
add esi, 0xd15817f
sub esi, 0xd15817b
add edi, 0x36d4d407
sub edi, 0x36d4d403
loop 0x4192e0
add eax, 0xb4ccdafe
add eax, 0x4b346021
xor ebx, ebx
add ebx, eax
add eax, 0xee29a63c
add eax, 0x11d659c9
mov ecx, 0xcdda29c5
sub ecx, 0xcd9a29c5
add ecx, dword [ebp - 0xc]
call ebx
leave
ret
Function at 0x4337e0
Capabilities:
Hash data with crc32

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x18
mov eax, dword [ebp + 8]
mov dword [ebp - 4], eax
mov dword [ebp - 8], 0xffffffff
mov dword [ebp - 0xc], 0
jmp 0x433805
mov ecx, dword [ebp - 0xc]
add ecx, 1
mov dword [ebp - 0xc], ecx
mov edx, dword [ebp - 0xc]
cmp edx, dword [ebp + 0xc]
jae 0x433878
mov eax, dword [ebp - 4]
add eax, dword [ebp - 0xc]
movzx ecx, byte [eax]
movzx edx, byte [ebp - 8]
xor ecx, edx
mov dword [ebp - 0x10], ecx
mov eax, dword [ebp - 8]
shr eax, 8
mov dword [ebp - 8], eax
mov dword [ebp - 0x14], 0
jmp 0x43383a
mov ecx, dword [ebp - 0x14]
add ecx, 1
mov dword [ebp - 0x14], ecx
cmp dword [ebp - 0x14], 8
jge 0x43386d
mov edx, dword [ebp - 0x10]
and edx, 1
neg edx
sbb edx, edx
neg edx
mov byte [ebp - 0x15], dl
mov eax, dword [ebp - 0x10]
shr eax, 1
mov dword [ebp - 0x10], eax
movzx ecx, byte [ebp - 0x15]
test ecx, ecx
je 0x43386b
mov edx, dword [ebp - 0x10]
xor edx, 0xedb88320
mov dword [ebp - 0x10], edx
jmp 0x433831
mov eax, dword [ebp - 8]
xor eax, dword [ebp - 0x10]
mov dword [ebp - 8], eax
jmp 0x4337fc
mov eax, dword [ebp - 8]
not eax
mov esp, ebp
pop ebp
ret
Function at 0x401670
Capabilities:
Check mutex and terminate process on windows
Check mutex on windows
Copy file
Create process on windows
Query environment variable
Terminate process

Disassembly:
push ebp
mov ebp, esp
mov eax, 0x10b8
call fcn.00402ac0
sub esp, eax
mov dword [esp + 8], str.kBOJoi64kJ1k3oh7BmmgTv6TuMvfcIrDnK4pDIi0fy3e3vr2cQ
mov dword [esp + 4], 0
mov dword [esp], 0
mov eax, dword [sym.imp.KERNEL32.dll_CreateMutexW]
call eax
sub esp, 0xc
mov eax, dword [sym.imp.KERNEL32.dll_GetLastError]
call eax
cmp eax, 0xb7
jne 0x4016b8
mov eax, 0
jmp 0x401865
mov dword [esp + 4], 0x4040aa
mov eax, dword [ebp + 0x10]
mov dword [esp], eax
call sym._stricmp
test eax, eax
jne 0x4016e0
mov dword [esp], 0xffffffff
mov eax, dword [sym.imp.KERNEL32.dll_Sleep]
call eax
sub esp, 4
mov dword [esp + 8], 0x104
lea eax, [ebp - 0x214]
mov dword [esp + 4], eax
mov dword [esp], 0x4040ae
mov eax, dword [sym.imp.KERNEL32.dll_GetEnvironmentVariableW]
call eax
sub esp, 0xc
lea eax, [ebp - 0x214]
mov dword [esp + 8], eax
mov dword [esp + 4], str._sSystem32
lea eax, [ebp - 0x41c]
mov dword [esp], eax
mov eax, dword [sym.imp.USER32.dll_wsprintfW]
call eax
lea eax, [ebp - 0x41c]
mov dword [esp + 8], eax
mov dword [esp + 4], str._s_svch
lea eax, [ebp - 0x624]
mov dword [esp], eax
mov eax, dword [sym.imp.USER32.dll_wsprintfW]
call eax
mov dword [esp + 8], 0x104
lea eax, [ebp - 0x82c]
mov dword [esp + 4], eax
mov dword [esp], 0
mov eax, dword [sym.imp.KERNEL32.dll_GetModuleFileNameW]
call eax
sub esp, 0xc
mov dword [esp + 8], 0
lea eax, [ebp - 0x624]
mov dword [esp + 4], eax
lea eax, [ebp - 0x82c]
mov dword [esp], eax
mov eax, dword [sym.imp.KERNEL32.dll_CopyFileW]
call eax
sub esp, 0xc
mov dword [ebp - 0xc], eax
mov dword [esp + 8], 0x44
mov dword [esp + 4], 0
lea eax, [ebp - 0x880]
mov dword [esp], eax
call sym._memset
mov dword [ebp - 0x880], 0x44
mov dword [esp + 8], 0x10
mov dword [esp + 4], 0
lea eax, [ebp - 0x83c]
mov dword [esp], eax
call sym._memset
lea eax, [ebp - 0x624]
mov dword [esp + 8], eax
mov dword [esp + 4], str._s__bg
lea eax, [ebp - 0x1080]
mov dword [esp], eax
mov eax, dword [sym.imp.USER32.dll_wsprintfW]
call eax
lea eax, [ebp - 0x83c]
mov dword [esp + 0x24], eax
lea eax, [ebp - 0x880]
mov dword [esp + 0x20], eax
mov dword [esp + 0x1c], 0
mov dword [esp + 0x18], 0
mov dword [esp + 0x14], 8
mov dword [esp + 0x10], 0
mov dword [esp + 0xc], 0
mov dword [esp + 8], 0
lea eax, [ebp - 0x1080]
mov dword [esp + 4], eax
mov dword [esp], 0
mov eax, dword [sym.imp.KERNEL32.dll_CreateProcessW]
call eax
sub esp, 0x28
mov dword [esp], 1
call sym._exit
leave
ret 0x10

Function at 0x401b10
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
push ebx
sub esp, 0x24
lea eax, [ebp + 0xc]
mov dword [ebp - 0xc], eax
mov dword [esp], 2
call sym.___acrt_iob_func
mov dword [esp + 0xc], eax
mov dword [esp + 8], 0x1b
mov dword [esp + 4], 1
mov dword [esp], str.Mingw_w64_runtime_failure:_n
call sym._fwrite
mov ebx, dword [ebp - 0xc]
mov dword [esp], 2
call sym.___acrt_iob_func
mov dword [esp + 8], ebx
mov edx, dword [ebp + 8]
mov dword [esp + 4], edx
mov dword [esp], eax
call sym._vfprintf
call sym._abort
Function at 0x4026e4
Capabilities:
Parse pe header

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x10
mov eax, dword [ebp + 8]
mov dword [ebp - 4], eax
mov eax, dword [ebp - 4]
movzx eax, word [eax]
cmp ax, 0x5a4d
je 0x402703
mov eax, 0
jmp 0x402747
mov eax, dword [ebp - 4]
mov eax, dword [eax + 0x3c]
mov edx, eax
mov eax, dword [ebp - 4]
add eax, edx
mov dword [ebp - 8], eax
mov eax, dword [ebp - 8]
mov eax, dword [eax]
cmp eax, 0x4550
je 0x402726
mov eax, 0
jmp 0x402747
mov eax, dword [ebp - 8]
add eax, 0x18
mov dword [ebp - 0xc], eax
mov eax, dword [ebp - 0xc]
movzx eax, word [eax]
cmp ax, 0x10b
je 0x402742
mov eax, 0
jmp 0x402747
mov eax, 1
leave
ret

Function at 0x402749
Capabilities:
Enumerate pe sections

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x10
mov eax, dword [ebp + 8]
mov eax, dword [eax + 0x3c]
mov edx, eax
mov eax, dword [ebp + 8]
add eax, edx
mov dword [ebp - 0xc], eax
mov dword [ebp - 8], 0
mov eax, dword [ebp - 0xc]
movzx eax, word [eax + 0x14]
movzx edx, ax
mov eax, dword [ebp - 0xc]
add eax, edx
add eax, 0x18
mov dword [ebp - 4], eax
jmp 0x4027a8
mov eax, dword [ebp - 4]
mov eax, dword [eax + 0xc]
cmp dword [ebp + 0xc], eax
jb 0x4027a0
mov eax, dword [ebp - 4]
mov edx, dword [eax + 0xc]
mov eax, dword [ebp - 4]
mov eax, dword [eax + 8]
add eax, edx
cmp dword [ebp + 0xc], eax
jae 0x4027a0
mov eax, dword [ebp - 4]
jmp 0x4027bc
add dword [ebp - 8], 1
add dword [ebp - 4], 0x28
mov eax, dword [ebp - 0xc]
movzx eax, word [eax + 6]
movzx eax, ax
cmp dword [ebp - 8], eax
jb 0x40277d
mov eax, 0
leave
ret
Function at 0x1960058
Capabilities:
Decompress data using aplib

Disassembly:
call 0x19601a8
push ebx
mov ebx, esp
push ebx
mov esi, dword [ebx + 8]
mov edi, dword [ebx + 0x10]
cld
mov dl, pe_nt_image_headers32
mov al, byte [esi]
inc esi
mov byte [edi], al
inc edi
mov ebx, 2
add dl, dl
jne 0x196007e
mov dl, byte [esi]
inc esi
adc dl, dl
jae 0x196006a
add dl, dl
jne 0x1960089
mov dl, byte [esi]
inc esi
adc dl, dl
jae 0x19600dc
xor eax, eax
add dl, dl
jne 0x1960096
mov dl, byte [esi]
inc esi
adc dl, dl
jae 0x196017d
add dl, dl
jne 0x19600a5
mov dl, byte [esi]
inc esi
adc dl, dl
adc eax, eax
add dl, dl
jne 0x19600b0
mov dl, byte [esi]
inc esi
adc dl, dl
adc eax, eax
add dl, dl
jne 0x19600bb
mov dl, byte [esi]
inc esi
adc dl, dl
adc eax, eax
add dl, dl
jne 0x19600c6
mov dl, byte [esi]
inc esi
adc dl, dl
adc eax, eax
je 0x19600d2
invalid
push edi
mov eax, eax
sub edi, eax
mov al, byte [edi]
pop edi
mov byte [edi], al
inc edi
mov ebx, 2
jmp 0x1960075
mov eax, 1
add dl, dl
jne 0x19600ea
mov dl, byte [esi]
inc esi
adc dl, dl
adc eax, eax
add dl, dl
jne 0x19600f5
mov dl, byte [esi]
inc esi
adc dl, dl
jb 0x19600e1
sub eax, ebx
mov ebx, 1
jne 0x1960128
mov ecx, 1
add dl, dl
jne 0x196010e
mov dl, byte [esi]
inc esi
adc dl, dl
adc ecx, ecx
add dl, dl
jne 0x1960119
mov dl, byte [esi]
inc esi
adc dl, dl
jb 0x1960105
push esi
mov esi, edi
sub esi, ebp
rep movsb byte es:[edi], byte [esi]
pop esi
jmp 0x1960075
dec eax
shl eax, 8
mov al, byte [esi]
inc esi
mov ebp, eax
mov ecx, 1
add dl, dl
jne 0x196013f
mov dl, byte [esi]
inc esi
adc dl, dl
adc ecx, ecx
add dl, dl
jne 0x196014a
mov dl, byte [esi]
inc esi
adc dl, dl
jb 0x1960136
cmp eax, 0x7d00
jae 0x196016d
cmp eax, 0x500
jb 0x1960168
inc ecx
push esi
mov esi, edi
sub esi, eax
rep movsb byte es:[edi], byte [esi]
pop esi
jmp 0x1960075
cmp eax, 0x7f
ja 0x1960170
add ecx, 2
push esi
mov esi, edi
sub esi, eax
rep movsb byte es:[edi], byte [esi]
pop esi
jmp 0x1960075
mov al, byte [esi]
inc esi
xor ecx, ecx
shr al, 1
je 0x196019e
adc ecx, 2
mov ebp, eax
push esi
mov esi, edi
sub esi, eax
rep movsb byte es:[edi], byte [esi]
pop esi
mov ebx, 1
jmp 0x1960075
pop ebx
sub edi, dword [ebx + 0x10]
mov eax, edi
pop ebx
ret 0x10
Function at 0x405f1c
Capabilities:
Read file via mapping

Disassembly:
push ebp
mov ebp, esp
push ebx
push esi
push edi
cmp byte [0x4d0268], 0
jne 0x406061
call sub.kernel32.dll_GetCurrentProcessId
mov ebx, eax
xor eax, eax
mov ecx, eax
add ecx, ecx
add ecx, ecx
mov edx, ebx
shr edx, cl
and edx, 0xf
movzx edx, byte [edx + str.0123456789ABCDEF]
mov ecx, 0x18
sub ecx, eax
mov byte [ecx + str.LocalFastMM_PID_________], dl
inc eax
cmp eax, 8
jne 0x405f38
push str.LocalFastMM_PID_________
push 0
push 4
call sub.kernel32.dll_OpenFileMappingA
mov dword [0x4d0264], eax
cmp dword [0x4d0264], 0
jne 0x406006
mov eax, dword [sym.imp.rtl250.bpl__System_IsLibrary]
cmp byte [eax], 0
jne 0x405fc1
push str.LocalFastMM_PID_________
push 4
push 0
push 4
push 0
push 0xffffffffffffffff
call sub.kernel32.dll_CreateFileMappingA
mov dword [0x4d0264], eax
push 0
push 0
push 0
push 2
mov eax, dword [0x4d0264]
push eax
call sub.kernel32.dll_MapViewOfFile
mov dword [eax], 0x4d024c
push eax
call sub.kernel32.dll_UnmapViewOfFile
mov dword [0x4d024c], fcn.00404928
mov dword [0x4d0250], 0x404c0c
mov dword [0x4d0254], 0x404d8c
mov dword [0x4d0258], 0x40501c
mov dword [0x4d025c], 0x4051f0
mov dword [0x4d0260], 0x40523c
mov byte [0x4d0269], 1
jmp 0x406046
push 0
push 0
push 0
push 4
mov eax, dword [0x4d0264]
push eax
call sub.kernel32.dll_MapViewOfFile
mov esi, dword [eax]
mov edi, 0x4d024c
mov ecx, 6
rep movsd dword es:[edi], dword [esi]
push eax
call sub.kernel32.dll_UnmapViewOfFile
mov eax, dword [0x4d0264]
push eax
call sub.kernel32.dll_CloseHandle
xor eax, eax
mov dword [0x4d0264], eax
mov byte [0x4d0269], 0
mov eax, 0x4d0234
call sub.rtl250.bpl__System_GetMemoryManager_qqrr23System_TMemoryManagerEx
mov eax, 0x4d024c
call sub.rtl250.bpl__System_SetMemoryManager_qqrrx23System_TMemoryManagerEx
mov byte [0x4d0268], 1
pop edi
pop esi
pop ebx
pop ebp
ret