joyce8/EMBER2024-capa huggingface dataset:
Function at 0x436770
Capabilities:
Compare security identifiers

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x5c
mov eax, dword [0x4b8f40]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
mov ebx, dword [ebp + 8]
push esi
xor esi, esi
mov dword [ebp - 0x50], esi
mov dword [ebp - 0x4c], esi
mov dword [ebp - 0x54], esi
push edi
test ebx, ebx
jne 0x43679c
push 0x15b3c8
jmp 0x4367d4
cmp dword [0x4d19e8], esi
je 0x4367b3
mov eax, dword [0x4b8bac]
xor edi, edi
mov dword [ebx], eax
inc edi
jmp 0x4368df
lea eax, [ebp - 0x50]
mov dword [ebx], esi
push eax
push 0x20008
call dword [sym.imp.KERNEL32.dll_GetCurrentProcess]
push eax
call dword [sym.imp.ADVAPI32.dll_OpenProcessToken]
test eax, eax
jne 0x4367e0
push 0x15b3c9
call fcn.0044b12a
mov edi, esi
jmp 0x4368df
mov edi, dword [sym.imp.ADVAPI32.dll_GetTokenInformation]
lea eax, [ebp - 0x54]
push eax
push esi
push esi
push 2
push dword [ebp - 0x50]
call edi
test eax, eax
je 0x4367fe
push 0x15b3ca
jmp 0x4367d4
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0x7a
je 0x436810
push 0x15b3cb
jmp 0x4367d4
push dword [ebp - 0x54]
lea ecx, [ebp - 0x4c]
call fcn.00435c72
mov esi, dword [ebp - 0x4c]
test al, al
jne 0x436833
push 0x15b3cc
call fcn.0044b12a
xor edi, edi
jmp 0x4368d2
lea eax, [ebp - 0x54]
push eax
push dword [ebp - 0x54]
push esi
push 2
push dword [ebp - 0x50]
call edi
test eax, eax
jne 0x43684d
push 0x15b3cd
jmp 0x436827
push 0x44
pop edi
push edi
lea eax, [ebp - 0x48]
push 0
push eax
call fcn.0044f154
add esp, 0xc
mov dword [ebp - 0x5c], edi
lea eax, [ebp - 0x5c]
push eax
lea eax, [ebp - 0x48]
push eax
push 0
push 0xb
call dword [sym.imp.ADVAPI32.dll_CreateWellKnownSid]
test eax, eax
jne 0x43687f
push 0x15b3ce
jmp 0x436827
xor ecx, ecx
mov dword [ebp - 0x58], ecx
test esi, esi
je 0x436905
lea eax, [esi + 4]
xor edi, edi
mov dword [ebp - 0x4c], eax
inc edi
cmp ecx, dword [esi]
jae 0x4368c5
push dword [eax]
call dword [sym.imp.ADVAPI32.dll_IsValidSid]
test eax, eax
je 0x4368b4
mov eax, dword [ebp - 0x4c]
push dword [eax]
lea eax, [ebp - 0x48]
push eax
call dword [sym.imp.ADVAPI32.dll_EqualSid]
test eax, eax
jne 0x4368c3
mov ecx, dword [ebp - 0x58]
mov eax, dword [ebp - 0x4c]
inc ecx
mov dword [ebp - 0x58], ecx
add eax, 8
jmp 0x43688b
mov dword [ebx], edi
mov dword [0x4d19e8], edi
mov eax, dword [ebx]
mov dword [0x4b8bac], eax
test esi, esi
je 0x4368dd
push esi
call fcn.0046d68f
pop ecx
xor esi, esi
mov eax, dword [ebp - 0x50]
test eax, eax
je 0x4368f0
push eax
mov dword [ebp - 0x50], esi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov ecx, dword [ebp - 4]
mov eax, edi
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.0044d772
mov esp, ebp
pop ebp
ret 4
xor ecx, ecx
mov dword [0], 1
int 0x29
Function at 0x4385f2
Capabilities:
Encrypt data using rc4 prga
Hash data using djb2

Disassembly:
push ebp
mov ebp, esp
mov edx, dword [ebp + 8]
test edx, edx
jne 0x438601
or eax, 0xffffffff
jmp 0x438652
movzx eax, word [edx]
mov ecx, 0x1505
push esi
xor esi, esi
jmp 0x43862f
cmp ax, 0x41
jb 0x438622
cmp ax, 0x5a
ja 0x438622
movzx eax, ax
add eax, 0x20
jmp 0x438625
movzx eax, ax
imul ecx, ecx, 0x21
xor ecx, eax
inc esi
movzx eax, word [edx + esi*2]
test ax, ax
jne 0x43860e
imul eax, ecx, 0x41c64e6d
imul ecx, ecx, 0x10dcd
pop esi
add eax, 0x3039
shr eax, 0x10
inc ecx
and ecx, 0xffff0000
or eax, ecx
pop ebp
ret 4
Function at 0x43da06
Capabilities:
Get geographical location

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x174
mov eax, dword [0x4b8f40]
xor eax, ebp
mov dword [ebp - 4], eax
mov eax, dword [ebp + 0xc]
mov ecx, dword [ebp + 8]
mov edx, dword [ebp + 0x18]
push esi
mov dword [ebp - 0x174], eax
xor esi, esi
test dword [ebp + 0x1c], 0x200
mov eax, dword [ebp + 0x14]
mov dword [ebp - 0x16c], ecx
mov dword [ebp - 0x170], eax
mov dword [ebp - 0x164], edx
jne 0x43db9d
push ebx
push edi
lea edx, [ebp - 0x160]
mov dword [ebp - 0x168], esi
push edx
push ecx
push eax
push 0x55
lea eax, [ebp - 0xb0]
push eax
call fcn.00437adf
mov ebx, eax
xor eax, eax
mov word [ebp - 0x15c], ax
test ebx, ebx
je 0x43db18
lea edi, [ebx + ebx]
push 0x2d
pop eax
cmp ax, word [ebp + edi - 0xb0]
jne 0x43daf4
cmp edi, 0xaa
jae 0x43dbb0
xor eax, eax
mov word [ebp + edi - 0xb0], ax
mov eax, dword [ebp + 0x1c]
or eax, 0x200
push eax
push dword [ebp - 0x164]
lea eax, [ebp - 0x168]
push eax
push 0x55
lea eax, [ebp - 0x15c]
push eax
lea eax, [ebp - 0xb0]
push eax
call fcn.0043d998
mov esi, eax
test esi, esi
jne 0x43db00
push 0x55
lea eax, [ebp - 0x15c]
push eax
push 2
lea eax, [ebp - 0xb0]
push eax
call dword [sym.imp.KERNEL32.dll_GetLocaleInfoEx]
mov esi, eax
test esi, esi
jne 0x43db00
sub edi, 2
sub ebx, 1
jne 0x43da82
test esi, esi
je 0x43db18
push 0xffffffffffffffff
push 0x484b88
lea eax, [ebp - 0x15c]
push 0x55
push eax
call fcn.0046d301
add esp, 0x10
mov edi, dword [ebp - 0x170]
lea eax, [ebp - 0x160]
push eax
push dword [ebp - 0x16c]
lea eax, [ebp - 0xb0]
push edi
push 0x55
push eax
call fcn.00437adf
lea eax, [ebp - 0xb0]
push eax
call fcn.0043ea08
push 0xffffffffffffffff
lea eax, [ebp - 0xb0]
push eax
lea eax, [ebp - 0x15c]
push 0x55
push eax
call fcn.0046d301
add esp, 0x10
test esi, esi
je 0x43db7c
push 0xffffffffffffffff
push 0x484b90
lea eax, [ebp - 0x15c]
push 0x55
push eax
call fcn.0046d301
add esp, 0x10
lea eax, [ebp - 0x160]
push eax
lea eax, [ebp - 0x15c]
push eax
push edi
push dword [ebp + 0x10]
push dword [ebp - 0x174]
call fcn.00437adf
pop edi
mov esi, eax
pop ebx
mov ecx, dword [ebp - 4]
mov eax, esi
xor ecx, ebp
pop esi
call fcn.0044d772
mov esp, ebp
pop ebp
ret 0x18
call fcn.0044dbcc
int3

Function at 0x440116
Capabilities:
Hash data using djb2

Disassembly:
push ebp
mov ebp, esp
mov edx, dword [ebp + 8]
test edx, edx
jne 0x440125
or eax, 0xffffffff
jmp 0x440162
movzx eax, word [edx]
mov ecx, 0x1505
push esi
xor esi, esi
jmp 0x44013f
imul ecx, ecx, 0x21
movzx eax, ax
xor ecx, eax
inc esi
movzx eax, word [edx + esi*2]
test ax, ax
jne 0x440132
imul eax, ecx, 0x41c64e6d
imul ecx, ecx, 0x10dcd
pop esi
add eax, 0x3039
shr eax, 0x10
inc ecx
and ecx, 0xffff0000
or eax, ecx
pop ebp
ret 4

Function at 0x4498f7
Capabilities:
Encode data using xor
Hash data using fnv

Disassembly:
push ebp
mov ebp, esp
xor edx, edx
mov ecx, 0x811c9dc5
cmp dword [ebp + 0xc], edx
jbe 0x44991d
push esi
mov esi, dword [ebp + 8]
movzx eax, byte [edx + esi]
xor eax, ecx
imul ecx, eax, 0x1000193
inc edx
cmp edx, dword [ebp + 0xc]
jb 0x44990a
pop esi
mov eax, ecx
pop ebp
ret 8
Function at 0x45490d
Capabilities:
Create thread

Disassembly:
push ebp
mov ebp, esp
push dword [ebp + 0x1c]
push dword [ebp + 0x18]
push dword [ebp + 0x14]
push dword [ebp + 0x10]
push dword [ebp + 0xc]
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.dll_CreateThread]
pop ebp
ret

Function at 0x4772c1
Capabilities:
Extract resource via kernel32 functions

Disassembly:
push ebp
mov ebp, esp
push esi
push 0x10
push 1
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.dll_FindResourceW]
mov esi, eax
test esi, esi
je 0x477309
push esi
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.dll_SizeofResource]
test eax, eax
je 0x477309
push esi
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.dll_LoadResource]
test eax, eax
je 0x477309
cmp word [eax + 2], 0
je 0x477309
cmp dword [eax + 0x28], 0xfeef04bd
jne 0x477309
add eax, 0x30
jmp 0x47730e
mov eax, 0x4aff50
pop esi
pop ebp
ret
Function at 0x401059
Capabilities:
Extract resource via kernel32 functions

Disassembly:
push esi
push dword [esp + 0xc]
mov esi, eax
push dword [esp + 0xc]
call dword [sym.imp.KERNEL32.dll_LoadResource]
test eax, eax
jne 0x401070
pop esi
ret
push edi
push eax
call dword [sym.imp.KERNEL32.dll_LockResource]
mov edi, eax
test edi, edi
je 0x4010a5
push dword [esp + 0x10]
push dword [esp + 0x10]
call dword [sym.imp.KERNEL32.dll_SizeofResource]
add eax, edi
and esi, 0xf
jbe 0x4010a1
cmp edi, eax
jae 0x4010a5
dec esi
movzx ecx, word [edi]
lea edi, [edi + ecx*2 + 2]
jne 0x401093
cmp edi, eax
jb 0x4010a9
xor eax, eax
jmp 0x4010b2
movzx eax, word [edi]
neg eax
sbb eax, eax
and eax, edi
pop edi
pop esi
ret

Function at 0x4011b9
Capabilities:
Check os version

Disassembly:
push ebp
lea ebp, [esp - 0xa0]
sub esp, 0x120
mov eax, dword [0x4109f8]
xor eax, ebp
mov dword [ebp + 0x9c], eax
push 0x11c
lea eax, [ebp - 0x80]
push 0
push eax
call fcn.00408840
add esp, 0xc
lea eax, [ebp - 0x80]
push eax
mov dword [ebp - 0x80], 0x11c
call dword [sym.imp.KERNEL32.dll_GetVersionExW]
test eax, eax
jne 0x401200
xor al, al
jmp 0x401220
cmp dword [ebp - 0x7c], 5
jb 0x4011fc
jbe 0x40120c
mov al, 1
jmp 0x401220
xor eax, eax
inc eax
cmp dword [ebp - 0x78], eax
jae 0x401220
cmp word [ebp + 0x94], 4
sbb al, al
inc al
mov ecx, dword [ebp + 0x9c]
xor ecx, ebp
call fcn.004085ae
add ebp, 0xa0
leave
ret

Function at 0x4016f6
Capabilities:
Create directory
Delete file
Get common file path

Disassembly:
push ebp
mov ebp, esp
sub esp, 0xc
push ebx
push esi
mov esi, eax
push edi
lea ebx, [esi + 0x20]
mov eax, ebx
lea edi, [ebp - 0xc]
call fcn.00402010
push dword [eax + 4]
push 0x104
call dword [sym.imp.KERNEL32.dll_GetTempPathW]
mov ecx, edi
call fcn.0040202e
mov eax, dword [ebx]
push 0
push eax
call dword [sym.imp.KERNEL32.dll_CreateDirectoryW]
test eax, eax
jne 0x40173f
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0xb7
jne 0x401773
add esi, 0x1c
mov eax, esi
lea edi, [ebp - 0xc]
call fcn.00402010
mov eax, dword [eax + 4]
mov ebx, dword [ebx]
push eax
push 0
push 0x40ebf8
push ebx
call dword [sym.imp.KERNEL32.dll_GetTempFileNameW]
mov ebx, eax
neg ebx
sbb bl, bl
mov ecx, edi
inc bl
call fcn.0040202e
test bl, bl
je 0x401778
or eax, 0xffffffff
jmp 0x40178c
push dword [esi]
call dword [sym.imp.KERNEL32.dll_DeleteFileW]
push 0
push dword [esi]
call dword [sym.imp.KERNEL32.dll_CreateDirectoryW]
xor eax, eax
pop edi
pop esi
pop ebx
leave
ret
Function at 0x401791
Capabilities:
Extract resource via kernel32 functions
Get common file path

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x224
mov eax, dword [0x4109f8]
xor eax, ebp
mov dword [ebp - 4], eax
or dword [ebp - 0x214], 0xffffffff
push ebx
push esi
push edi
xor eax, eax
push 0x206
mov word [ebp - 0x210], ax
xor edi, edi
lea eax, [ebp - 0x20e]
push edi
push eax
mov esi, ecx
call fcn.00408840
mov eax, dword [esi + 0x20]
add esp, 0xc
lea ecx, [ebp - 0x210]
push ecx
push edi
push 0x40ec00
push eax
call dword [sym.imp.KERNEL32.dll_GetTempFileNameW]
test eax, eax
je 0x4018ce
lea eax, [ebp - 0x210]
push eax
lea eax, [ebp - 0x21c]
call fcn.00401e56
add esi, 0x10
lea ebx, [ebp - 0x21c]
call fcn.00401f65
mov eax, dword [ebp - 0x21c]
add eax, 0xfffffff0
call fcn.004010b5
push 0x40eb7c
push 0x66
push edi
call dword [sym.imp.KERNEL32.dll_FindResourceW]
mov esi, eax
cmp esi, edi
je 0x4018ce
push esi
push edi
call dword [sym.imp.KERNEL32.dll_LoadResource]
cmp eax, edi
je 0x4018ce
push eax
call dword [sym.imp.KERNEL32.dll_LockResource]
mov ebx, eax
cmp ebx, edi
je 0x4018ce
push edi
push edi
push 4
push edi
push edi
push 0xc0000000
lea eax, [ebp - 0x210]
push eax
call dword [sym.imp.KERNEL32.dll_CreateFileW]
mov dword [ebp - 0x214], eax
cmp eax, 0xffffffff
je 0x4018ce
push dword [ebp - 0x214]
xor eax, eax
lea edi, [ebp - 0x220]
push esi
stosd dword es:[edi], eax
xor esi, esi
push esi
stosd dword es:[edi], eax
call dword [sym.imp.KERNEL32.dll_SizeofResource]
push eax
mov ecx, ebx
call fcn.00401b3c
pop ecx
pop ecx
test eax, eax
jne 0x4018bb
push esi
push esi
push dword [ebp - 0x21c]
push dword [ebp - 0x220]
push dword [ebp - 0x214]
call dword [sym.imp.KERNEL32.dll_SetFilePointerEx]
test eax, eax
jne 0x4018ce
push dword [ebp - 0x214]
call dword [sym.imp.KERNEL32.dll_CloseHandle]
or dword [ebp - 0x214], 0xffffffff
mov ecx, dword [ebp - 4]
mov eax, dword [ebp - 0x214]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.004085ae
leave
ret
Function at 0x401b3c
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x9c
mov eax, dword [0x4109f8]
xor eax, ebp
mov dword [ebp - 4], eax
cmp dword [ebp + 8], 0xd
mov eax, dword [ebp + 0xc]
push ebx
push esi
push edi
mov edi, ecx
mov dword [ebp - 0x9c], eax
jb 0x401cf4
xor ebx, ebx
lea eax, [ebp - 0x8c]
mov edx, edi
lea ecx, [ebp - 0x78]
mov dword [ebp - 0x8c], 0x401b26
mov dword [ebp - 0x88], 0x401b31
mov dword [ebp - 0x64], ebx
mov dword [ebp - 0x68], ebx
call fcn.004042e4
sub dword [ebp + 8], 0xd
xor eax, eax
inc eax
mov dword [ebp - 0x2c], eax
mov dword [ebp - 0x28], eax
add edi, 5
mov eax, dword [edi]
push eax
mov dword [ebp - 0x54], ebx
mov dword [ebp - 0x30], ebx
mov dword [ebp - 0x20], ebx
mov dword [ebp - 0x4c], ebx
mov dword [ebp - 0x48], ebx
mov dword [ebp - 0x7c], eax
call fcn.0040c308
mov esi, eax
pop ecx
lea eax, [ebp - 0x80]
push eax
lea eax, [ebp + 8]
push eax
add edi, 8
push edi
lea eax, [ebp - 0x7c]
push eax
push esi
lea edi, [ebp - 0x78]
mov dword [ebp - 0x84], esi
mov dword [ebp - 0x80], ebx
call fcn.0040419a
add esp, 0x14
push dword [ebp - 0x68]
mov edi, eax
lea eax, [ebp - 0x8c]
push eax
call dword [ebp - 0x88]
push dword [ebp - 0x64]
lea eax, [ebp - 0x8c]
push eax
mov dword [ebp - 0x68], ebx
call dword [ebp - 0x88]
add esp, 0x10
mov dword [ebp - 0x64], ebx
cmp edi, ebx
je 0x401c25
or edi, 0xffffffff
push esi
call fcn.0040c34c
pop ecx
mov eax, edi
jmp 0x401cf7
mov ecx, dword [esi]
add esi, 4
mov edi, dword [esi]
push 4
pop eax
add esi, eax
mov ebx, dword [esi]
add esi, eax
mov edx, dword [esi]
add esi, eax
mov dword [ebp - 0x90], edx
mov edx, dword [esi]
push ecx
mov dword [ebp - 0x80], ecx
mov dword [ebp - 0x94], edx
add esi, eax
call fcn.0040c308
pop ecx
push dword [ebp - 0x80]
mov dword [ebp - 0x7c], eax
push eax
push dword [ebp - 0x94]
mov eax, dword [ebp - 0x90]
push eax
lea edx, [eax + ebx]
lea eax, [ebx + edi]
add eax, esi
push eax
push ebx
lea eax, [edi + esi]
push eax
add edx, edi
push edi
add edx, esi
push esi
call fcn.00404351
add esp, 0x24
test eax, eax
je 0x401c9e
push dword [ebp - 0x7c]
call fcn.0040c34c
mov esi, dword [ebp - 0x84]
xor edi, edi
pop ecx
inc edi
jmp 0x401c17
mov esi, dword [ebp - 0x80]
push 0
lea eax, [ebp - 0x98]
push eax
push esi
push dword [ebp - 0x7c]
push dword [ebp - 0x9c]
call dword [sym.imp.KERNEL32.dll_WriteFile]
test eax, eax
je 0x401cdf
cmp dword [ebp - 0x98], esi
jne 0x401cdf
push dword [ebp - 0x7c]
call fcn.0040c34c
pop ecx
push dword [ebp - 0x84]
call fcn.0040c34c
pop ecx
xor eax, eax
jmp 0x401cf7
push dword [ebp - 0x7c]
call fcn.0040c34c
pop ecx
push dword [ebp - 0x84]
call fcn.0040c34c
pop ecx
or eax, 0xffffffff
mov ecx, dword [ebp - 4]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.004085ae
leave
ret
Function at 0x402559
Capabilities:
Create process on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x5c
mov eax, dword [eax]
push ebx
push esi
push edi
sub eax, 0x10
call fcn.004022f9
mov esi, eax
push 0x44
xor ebx, ebx
lea eax, [ebp - 0x5c]
push ebx
add esi, 0x10
push eax
mov dword [ebp - 8], esi
call fcn.00408840
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
add esp, 0xc
lea eax, [ebp - 0x5c]
push eax
call dword [sym.imp.KERNEL32.dll_GetStartupInfoW]
or dword [ebp - 0x30], 0x81
xor eax, eax
inc eax
mov word [ebp - 0x2c], ax
cmp dword [esi - 4], eax
jle 0x4025ba
push dword [esi - 0xc]
lea eax, [ebp - 8]
push eax
call fcn.004023a9
mov esi, dword [ebp - 8]
lea eax, [ebp - 0x18]
push eax
lea eax, [ebp - 0x5c]
push eax
push ebx
push ebx
push 0x400
push ebx
push ebx
push ebx
push esi
push ebx
call dword [sym.imp.KERNEL32.dll_CreateProcessW]
test eax, eax
jne 0x4025f2
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov ecx, dword [ebp + 8]
mov dword [ecx], eax
lea eax, [esi - 0x10]
call fcn.004010b5
pop edi
pop esi
mov al, bl
pop ebx
leave
ret
push 0xffffffffffffffff
push dword [ebp - 0x18]
call dword [sym.imp.KERNEL32.dll_WaitForSingleObject]
mov byte [ebp - 1], 1
cmp dword [ebp + 8], ebx
je 0x402618
push dword [ebp + 8]
push dword [ebp - 0x18]
call dword [sym.imp.KERNEL32.dll_GetExitCodeProcess]
test eax, eax
setne byte [ebp - 1]
push dword [ebp - 0x18]
mov edi, dword [sym.imp.KERNEL32.dll_CloseHandle]
call edi
push dword [ebp - 0x14]
call edi
mov bl, byte [ebp - 1]
jmp 0x4025e3

Function at 0x402659
Capabilities:
Read file via mapping

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x1c
push esi
push edi
mov esi, eax
call fcn.004026f2
xor edi, edi
push edi
push 0x80
push 3
push edi
push 1
push 0x80000000
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.dll_CreateFileW]
mov dword [esi + 4], eax
cmp eax, 0xffffffff
je 0x4026ea
push edi
push edi
push edi
push 2
push edi
push eax
call dword [sym.imp.KERNEL32.dll_CreateFileMappingW]
mov dword [esi + 8], eax
cmp eax, edi
je 0x4026e5
push edi
push edi
push edi
push 4
push eax
call dword [sym.imp.KERNEL32.dll_MapViewOfFile]
mov edx, eax
mov dword [esi + 0xc], edx
cmp edx, edi
je 0x4026dc
push 6
pop ecx
mov dword [ebp - 0x1c], edi
xor eax, eax
lea edi, [ebp - 0x18]
rep stosd dword es:[edi], eax
push 0x1c
lea eax, [ebp - 0x1c]
push eax
push edx
call dword [sym.imp.KERNEL32.dll_VirtualQuery]
test eax, eax
je 0x4026dc
mov eax, dword [ebp - 0x10]
mov dword [esi + 0x10], eax
mov al, 1
jmp 0x4026ec
push dword [esi + 8]
call dword [sym.imp.KERNEL32.dll_CloseHandle]
call fcn.004026f2
xor al, al
pop edi
pop esi
leave
ret 4
Function at 0x40274a
Capabilities:
Parse pe header

Disassembly:
test ecx, ecx
jne 0x402751
xor al, al
ret
mov eax, 0x5a4d
cmp word [ecx], ax
jne 0x40274e
mov eax, dword [ecx + 0x3c]
add eax, ecx
cmp dword [eax], 0x4550
jne 0x40274e
mov eax, dword [eax + 0x98]
test eax, eax
je 0x402777
lea edx, [eax + ecx]
jmp 0x402779
xor edx, edx
test edx, edx
je 0x40274e
lea eax, [edx + 8]
test eax, eax
je 0x40274e
cmp byte [eax], 0x30
lea ecx, [eax + 1]
jne 0x4027a8
mov al, byte [ecx]
inc ecx
cmp al, 0x82
jne 0x4027a8
movzx eax, byte [ecx]
movzx ecx, byte [ecx + 1]
shl eax, 8
lea eax, [eax + ecx + 0x13]
and eax, 0xffffff8
jmp 0x4027aa
xor eax, eax
test eax, eax
je 0x40274e
mov dword [esi + 0x14], eax
mov dword [esi + 0x18], edx
mov al, 1
ret

Function at 0x402854
Capabilities:
Delete file

Disassembly:
push esi
xor esi, esi
cmp dword [edi + 0x10], esi
je 0x402877
test esi, esi
jl 0x40288b
cmp esi, dword [edi + 0x10]
jge 0x40288b
mov eax, dword [edi + 0xc]
push dword [eax + esi*4]
call dword [sym.imp.KERNEL32.dll_DeleteFileW]
inc esi
cmp esi, dword [edi + 0x10]
jne 0x40285c
lea esi, [edi + 0xc]
call fcn.00401fdb
mov eax, dword [edi + 4]
sub eax, 0x10
pop esi
jmp fcn.004010b5
push 0
push 0
push 1
push 0xc000008c
call dword [sym.imp.KERNEL32.dll_RaiseException]
Function at 0x40289d
Capabilities:
Read file on windows
Write file on windows

Disassembly:
push ebp
mov ebp, esp
mov eax, 0x4022c
call fcn.0040ba40
mov eax, dword [0x4109f8]
xor eax, ebp
mov dword [ebp - 8], eax
mov eax, dword [ebp + 8]
push ebx
push esi
mov dword [ebp - 0x40220], eax
xor ebx, ebx
push ebx
lea eax, [ebp - 0x40224]
push eax
mov esi, 0x200
push esi
lea eax, [ebp - 0x4020c]
push eax
push dword [edi]
mov byte [ebp - 0x4020d], 1
call dword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
je 0x4029a4
cmp dword [ebp - 0x40224], esi
jne 0x4029a4
push 4
lea eax, [ebp - 0x4010b]
push 0x40eba0
push eax
call fcn.004099a8
add esp, 0xc
test eax, eax
jne 0x402923
mov eax, dword [ebp - 0x40220]
mov byte [eax], 1
mov al, 1
jmp 0x4029a6
push 5
lea eax, [ebp - 0x4010b]
push 0x40eb98
push eax
call fcn.004099a8
add esp, 0xc
test eax, eax
jne 0x4029a4
mov eax, dword [edi + 4]
sub eax, 0x10
call fcn.004022f9
add eax, 0x10
mov dword [ebp - 0x40214], eax
push 0x40ec20
lea eax, [ebp - 0x40214]
push eax
call fcn.00402add
lea eax, [ebp - 0x4020c]
push eax
lea eax, [ebp - 0x40214]
push eax
call fcn.00402add
mov esi, dword [ebp - 0x40214]
push ebx
push 0x100
push 2
push ebx
push ebx
push 0x40000000
push esi
call dword [sym.imp.KERNEL32.dll_CreateFileW]
mov dword [ebp - 0x40220], eax
cmp eax, 0xffffffff
jne 0x4029b6
lea eax, [esi - 0x10]
call fcn.004010b5
xor al, al
mov ecx, dword [ebp - 8]
pop esi
xor ecx, ebp
pop ebx
call fcn.004085ae
leave
ret 4
push 8
lea eax, [ebp - 0x40190]
push ebx
push eax
call fcn.0040bc9a
add esp, 0xc
push 1
push ebx
push ebx
push dword [edi]
mov esi, eax
mov dword [ebp - 0x40218], esi
call dword [sym.imp.KERNEL32.dll_SetFilePointer]
add eax, dword [ebp - 0x40218]
neg esi
and esi, 0x1ff
add esi, eax
mov dword [ebp - 0x40228], esi
cmp dword [ebp - 0x40218], ebx
jbe 0x402a71
mov ecx, dword [ebp - 0x40218]
mov eax, 0x40000
mov dword [ebp - 0x4021c], eax
cmp ecx, eax
jae 0x402a15
mov dword [ebp - 0x4021c], ecx
push ebx
lea eax, [ebp - 0x40224]
push eax
push dword [ebp - 0x4021c]
lea eax, [ebp - 0x4000c]
push eax
push dword [edi]
call dword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
je 0x402a6b
push ebx
lea eax, [ebp - 0x40224]
push eax
push dword [ebp - 0x4021c]
lea eax, [ebp - 0x4000c]
push eax
push dword [ebp - 0x40220]
call dword [sym.imp.KERNEL32.dll_WriteFile]
test eax, eax
je 0x402a6b
mov eax, dword [ebp - 0x4021c]
sub dword [ebp - 0x40218], eax
jne 0x4029fa
jmp 0x402a71
mov byte [ebp - 0x4020d], bl
push dword [ebp - 0x40220]
call dword [sym.imp.KERNEL32.dll_CloseHandle]
cmp byte [ebp - 0x4020d], bl
je 0x402ab4
cmp byte [edi + 8], bl
je 0x402aa0
lea esi, [edi + 0xc]
lea ebx, [ebp - 0x40214]
call fcn.00401f65
mov esi, dword [ebp - 0x40228]
xor ebx, ebx
mov eax, dword [edi + 0x18]
cmp eax, ebx
je 0x402ab4
push dword [ebp - 0x40214]
push dword [edi + 0x1c]
call eax
pop ecx
pop ecx
cmp esi, 0xffffffff
je 0x402ac4
push ebx
push ebx
push esi
push dword [edi]
call dword [sym.imp.KERNEL32.dll_SetFilePointer]
mov eax, dword [ebp - 0x40214]
add eax, 0xfffffff0
call fcn.004010b5
mov al, byte [ebp - 0x4020d]
jmp 0x4029a6
Function at 0x406743
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.0040562b
and dword [ebp - 4], 0
cmp dword [0x4112c0], 0
mov ebx, eax
jne 0x4067f4
push str.USER32.DLL
call dword [sym.imp.KERNEL32.dll_LoadLibraryA]
mov edi, eax
test edi, edi
je 0x4068a5
mov esi, dword [sym.imp.KERNEL32.dll_GetProcAddress]
push str.MessageBoxA
push edi
call esi
test eax, eax
je 0x4068a5
push eax
call fcn.004055b9
mov dword [esp], str.GetActiveWindow
push edi
mov dword [0x4112c0], eax
call esi
push eax
call fcn.004055b9
mov dword [esp], str.GetLastActivePopup
push edi
mov dword [0x4112c4], eax
call esi
push eax
call fcn.004055b9
mov dword [esp], str.GetUserObjectInformationA
push edi
mov dword [0x4112c8], eax
call esi
push eax
call fcn.004055b9
pop ecx
mov dword [0x4112d0], eax
test eax, eax
je 0x4067f4
push str.GetProcessWindowStation
push edi
call esi
push eax
call fcn.004055b9
pop ecx
mov dword [0x4112cc], eax
mov eax, dword [0x4112cc]
cmp eax, ebx
je 0x40684c
cmp dword [0x4112d0], ebx
je 0x40684c
push eax
call fcn.00405634
push dword [0x4112d0]
mov esi, eax
call fcn.00405634
pop ecx
pop ecx
mov edi, eax
test esi, esi
je 0x40684c
test edi, edi
je 0x40684c
call esi
test eax, eax
je 0x406843
lea ecx, [ebp - 8]
push ecx
push 0xc
lea ecx, [ebp - 0x14]
push ecx
push 1
push eax
call edi
test eax, eax
je 0x406843
test byte [ebp - 0xc], 1
jne 0x40684c
or dword [ebp + 0x10], 0x200000
jmp 0x406885
mov eax, dword [0x4112c4]
cmp eax, ebx
je 0x406885
push eax
call fcn.00405634
pop ecx
test eax, eax
je 0x406885
call eax
mov dword [ebp - 4], eax
test eax, eax
je 0x406885
mov eax, dword [0x4112c8]
cmp eax, ebx
je 0x406885
push eax
call fcn.00405634
pop ecx
test eax, eax
je 0x406885
push dword [ebp - 4]
call eax
mov dword [ebp - 4], eax
push dword [0x4112c0]
call fcn.00405634
pop ecx
test eax, eax
je 0x4068a5
push dword [ebp + 0x10]
push dword [ebp + 0xc]
push dword [ebp + 8]
push dword [ebp - 4]
call eax
jmp 0x4068a7
xor eax, eax
pop edi
pop esi
pop ebx
leave
ret

Function at 0x4085ae
Capabilities:
Terminate process

Disassembly:
cmp ecx, dword [0x4109f8]
jne 0x4085b8
repz ret
jmp fcn.0040b3d5