joyce8/EMBER2024-capa huggingface dataset:
Function at 0x45eea1
Capabilities:
Get geographical location

Disassembly:
push 8
mov eax, 0x47eec5
call fcn.00402847
mov esi, ecx
xor ebx, ebx
mov dword [ebp - 0x10], ebx
mov eax, dword [ebp + 8]
mov dword [ebp - 4], ebx
cmp eax, ebx
jne 0x45eeeb
push dword [esi + 0x8c]
push 0x45f1b8
push 1
call fcn.004015a0
add esp, 0xc
mov eax, dword [ebp - 0x10]
or dword [ebp - 4], 0xffffffff
cmp eax, ebx
je 0x45eee4
mov ecx, dword [eax]
push eax
call dword [ecx + 8]
xor eax, eax
jmp 0x45ef9d
mov ecx, dword [eax]
lea edx, [ebp - 0x10]
push edx
push eax
call dword [ecx + 0x1c]
cmp eax, ebx
jge 0x45ef11
push eax
push dword [esi + 0x8c]
push 0x45f120
push 1
call fcn.004015a0
add esp, 0x10
jmp 0x45eed3
push dword [ebp - 0x10]
lea ecx, [ebp + 8]
call fcn.004049e5
mov eax, dword [ebp + 8]
mov byte [ebp - 4], 1
cmp eax, ebx
jne 0x45ef4e
push dword [esi + 0x8c]
push 0x45f060
push 1
call fcn.004015a0
add esp, 0xc
mov eax, dword [ebp + 8]
mov byte [ebp - 4], bl
cmp eax, ebx
je 0x45eed3
mov ecx, dword [eax]
push eax
call dword [ecx + 8]
jmp 0x45eed3
mov ecx, dword [eax]
lea edx, [ebp - 0x14]
push edx
push eax
call dword [ecx + 0x80]
cmp eax, ebx
jge 0x45ef77
push eax
push dword [esi + 0x8c]
push 0x45efa8
push 1
call fcn.004015a0
add esp, 0x10
jmp 0x45ef3c
mov eax, dword [ebp + 8]
mov esi, dword [ebp - 0x14]
mov byte [ebp - 4], bl
cmp eax, ebx
je 0x45ef8a
mov ecx, dword [eax]
push eax
call dword [ecx + 8]
mov eax, dword [ebp - 0x10]
or dword [ebp - 4], 0xffffffff
cmp eax, ebx
je 0x45ef9b
mov ecx, dword [eax]
push eax
call dword [ecx + 8]
mov eax, esi
call fcn.00402881
ret 4
Function at 0x463f2d
Capabilities:
Create thread

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push ecx
push ecx
push ebx
push esi
push edi
mov esi, ecx
push dword [esi + 0x8c]
push 0x464224
push 8
call fcn.004015a0
xor ebx, ebx
lea edi, [esi + 0x1f8]
add esp, 0xc
mov dword [ebp - 4], ebx
cmp byte [edi], bl
jne 0x463f75
push dword [esi + 0x8c]
push 0x464188
push 8
call fcn.004015a0
add esp, 0xc
mov byte [edi], 1
cmp dword [esi + 0xb8], ebx
jne 0x463f9a
cmp dword [esi + 0xbc], ebx
jne 0x463f9a
push dword [esi + 0x8c]
push 0x464108
push 8
call fcn.004015a0
add esp, 0xc
push ebx
push ebx
push esi
push 0x4633da
push ebx
push ebx
call dword [sym.imp.KERNEL32.dll_CreateThread]
mov edi, eax
cmp edi, ebx
jne 0x463fe2
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, ebx
jle 0x463fc4
and eax, 0xffff
or eax, 0x80070000
push eax
push dword [esi + 0x8c]
mov dword [ebp - 4], eax
push 0x464088
push 1
call fcn.004015a0
add esp, 0x10
cmp dword [ebp - 4], ebx
jl 0x464028
push 0xffffffffffffffff
push edi
call dword [sym.imp.KERNEL32.dll_WaitForSingleObject]
test eax, eax
jne 0x464021
lea eax, [ebp - 8]
push eax
push edi
mov dword [ebp - 8], ebx
call dword [sym.imp.KERNEL32.dll_GetExitCodeThread]
test eax, eax
je 0x464021
mov eax, dword [ebp - 8]
cmp eax, ebx
mov dword [ebp - 4], eax
jge 0x464021
push eax
push dword [esi + 0x8c]
push 0x464030
push 1
call fcn.004015a0
add esp, 0x10
push edi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov eax, dword [ebp - 4]
pop edi
pop esi
pop ebx
leave
ret
Function at 0x469c89
Capabilities:
Get common file path

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x418
mov eax, dword [section..data]
xor eax, ebp
mov dword [ebp - 4], eax
mov eax, dword [ebp + 8]
push ebx
push esi
push edi
mov dword [ebp - 0x414], ecx
mov dword [ebp - 0x418], eax
test eax, eax
je 0x469e94
mov esi, 0x104
cmp dword [ebp + 0xc], esi
jb 0x469e94
xor eax, eax
push 0x1fe
push eax
mov word [ebp - 0x40c], ax
lea eax, [ebp - 0x40a]
push eax
call sub.msvcrt.dll_memset
mov ecx, dword [ebp - 0x414]
add esp, 0xc
push 0x100
lea eax, [ebp - 0x40c]
push eax
lea edi, [esi + 0x12]
push edi
call fcn.0046850f
mov ebx, eax
test ebx, ebx
jge 0x469d1d
push ebx
push edi
push 0x46a270
push 1
call fcn.004015a0
add esp, 0x10
mov eax, ebx
jmp 0x469eab
xor eax, eax
push 0x206
push eax
mov word [ebp - 0x20c], ax
lea eax, [ebp - 0x20a]
push eax
call sub.msvcrt.dll_memset
and dword [ebp - 0x410], 0
add esp, 0xc
lea eax, [ebp - 0x410]
push eax
push 0
push 0x400
push 0x469ebc
call sub.SHELL32.dll_SHGetKnownFolderPath
mov edi, eax
mov ebx, 0x46a1b8
test edi, edi
jl 0x469dea
push dword [ebp - 0x410]
lea eax, [ebp - 0x20c]
push esi
push eax
call fcn.00408e49
mov edi, eax
test edi, edi
jl 0x469db7
mov ecx, dword [ebp - 0x414]
push 1
lea eax, [ebp - 0x40c]
push eax
push esi
lea eax, [ebp - 0x20c]
push eax
call fcn.00469b38
mov edi, eax
test edi, edi
jge 0x469dd5
push edi
lea eax, [ebp - 0x40c]
push eax
push esi
lea eax, [ebp - 0x20c]
push eax
push ebx
jmp 0x469dcb
push edi
push dword [ebp - 0x410]
lea eax, [ebp - 0x20c]
push esi
push eax
push 0x46a118
push 2
call fcn.004015a0
add esp, 0x18
push dword [ebp - 0x410]
call dword [sym.imp.ole32.dll_CoTaskMemFree]
and dword [ebp - 0x410], 0
jmp 0x469dfa
push edi
push 0x46a040
push 2
call fcn.004015a0
add esp, 0xc
test edi, edi
jge 0x469e79
lea eax, [ebp - 0x20c]
push eax
push esi
call dword [sym.imp.KERNEL32.dll_GetTempPathW]
test eax, eax
je 0x469e4f
mov ecx, dword [ebp - 0x414]
push 1
lea eax, [ebp - 0x40c]
push eax
push esi
lea eax, [ebp - 0x20c]
push eax
call fcn.00469b38
mov edi, eax
test edi, edi
jge 0x469e79
push edi
lea eax, [ebp - 0x40c]
push eax
push esi
lea eax, [ebp - 0x20c]
push eax
push ebx
push 1
call fcn.004015a0
add esp, 0x18
jmp 0x469e75
push edi
push 0x469fb8
push 1
call fcn.004015a0
add esp, 0xc
call dword [sym.imp.KERNEL32.dll_GetLastError]
test eax, eax
jle 0x469e73
and eax, 0xffff
or eax, 0x80070000
mov edi, eax
test edi, edi
jl 0x469e90
lea eax, [ebp - 0x20c]
push eax
push dword [ebp + 0xc]
push dword [ebp - 0x418]
call fcn.00408e49
mov edi, eax
mov eax, edi
jmp 0x469eab
push dword [ebp + 0xc]
push 0x469ed0
push 1
call fcn.004015a0
add esp, 0xc
mov eax, 0x80070057
mov ecx, dword [ebp - 4]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.00401580
leave
ret 8
Function at 0x4742eb
Capabilities:
Create thread

Disassembly:
push 4
mov eax, 0x480174
call fcn.00402847
mov esi, ecx
push 0x47494c
push 8
call fcn.004015a0
mov ebx, dword [sym.imp.KERNEL32.dll_CreateEventW]
xor edi, edi
pop ecx
pop ecx
cmp dword [esi + 0x14], edi
jne 0x47433a
push edi
push edi
push 1
push edi
call ebx
mov dword [esi + 0x14], eax
cmp eax, edi
jne 0x47433a
push 0x4748d0
push 1
call fcn.004015a0
pop ecx
pop ecx
mov eax, 0x80004005
jmp 0x474499
cmp dword [esi + 0x18], edi
jne 0x474365
push edi
push edi
push 1
push edi
call ebx
mov dword [esi + 0x18], eax
cmp eax, edi
jne 0x474365
push 0x474868
push 1
call fcn.004015a0
pop ecx
pop ecx
mov eax, 0x8007000e
jmp 0x474499
cmp dword [esi + 0x2c], edi
jne 0x4743f2
push 0xe8
call fcn.0040298d
pop ecx
mov ecx, eax
mov dword [ebp - 0x10], ecx
mov dword [ebp - 4], edi
cmp ecx, edi
je 0x47438d
push edi
call fcn.0047350a
jmp 0x47438f
xor eax, eax
or dword [ebp - 4], 0xffffffff
mov dword [esi + 0x2c], eax
cmp eax, edi
jne 0x4743a1
push 0x4747f0
jmp 0x474352
mov ecx, dword [eax]
push eax
call dword [ecx + 4]
mov eax, dword [esi + 0x2c]
mov ecx, dword [eax]
push eax
call dword [ecx + 0x14]
mov ebx, eax
cmp ebx, edi
jge 0x4743d9
push ebx
push 0x474760
push 1
call fcn.004015a0
mov eax, dword [esi + 0x2c]
mov ecx, dword [eax]
add esp, 0xc
push eax
call dword [ecx + 8]
mov dword [esi + 0x2c], edi
mov eax, ebx
jmp 0x474499
mov eax, dword [esi + 0x2c]
mov eax, dword [eax + 0x18]
push eax
push 0x4746f8
push 1
mov dword [esi + 0x10], eax
call fcn.004015a0
add esp, 0xc
cmp dword [esi + 0xc], edi
jne 0x47441f
lea eax, [esi + 8]
push eax
push edi
push esi
push 0x4739a7
push 0x10000
push edi
call dword [sym.imp.KERNEL32.dll_CreateThread]
mov dword [esi + 0xc], eax
cmp eax, edi
jne 0x47441f
push 0x474680
jmp 0x474327
push 0x474610
push 8
call fcn.004015a0
pop ecx
pop ecx
push edi
push 0xffffffffffffffff
push 1
lea ebx, [esi + 0x14]
push ebx
push 1
call dword [sym.imp.KERNEL32.dll_WaitForMultipleObjectsEx]
test eax, eax
jne 0x47444e
push 0x474598
mov dword [ebp - 0x10], edi
push 8
jmp 0x47445c
push 0x474500
mov dword [ebp - 0x10], 0x8000ffff
push 1
call fcn.004015a0
pop ecx
pop ecx
push dword [ebx]
call dword [sym.imp.KERNEL32.dll_ResetEvent]
push 0x4744a0
push 8
call fcn.004015a0
pop ecx
pop ecx
mov ecx, dword [esi + 0x2c]
cmp ecx, edi
je 0x474496
push 2
pop eax
push eax
push dword [esi + 0x24]
mov dword [esi + 0x20], eax
mov dword [esi + 0x28], 1
call fcn.0045044b
mov eax, dword [ebp - 0x10]
call fcn.00402881
ret
Function at 0x47b60e
Capabilities:
Get token membership

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x14
mov eax, dword [section..data]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
xor ebx, ebx
lea eax, [ebp - 0x14]
push eax
push ebx
push ebx
push ebx
push ebx
push ebx
push ebx
push 0x220
push 0x20
push 2
lea eax, [ebp - 0xc]
push eax
mov dword [ebp - 0x10], ebx
mov byte [ebp - 0xc], bl
mov byte [ebp - 0xb], bl
mov byte [ebp - 0xa], bl
mov byte [ebp - 9], bl
mov byte [ebp - 8], bl
mov byte [ebp - 7], 5
mov dword [ebp - 0x14], ebx
call dword [sym.imp.ADVAPI32.dll_AllocateAndInitializeSid]
mov dword [ebp - 0x10], eax
cmp eax, ebx
je 0x47b675
lea eax, [ebp - 0x10]
push eax
push dword [ebp - 0x14]
push ebx
call dword [sym.imp.ADVAPI32.dll_CheckTokenMembership]
test eax, eax
jne 0x47b675
mov dword [ebp - 0x10], ebx
cmp dword [ebp - 0x14], ebx
pop ebx
je 0x47b684
push dword [ebp - 0x14]
call dword [sym.imp.ADVAPI32.dll_FreeSid]
mov ecx, dword [ebp - 4]
mov eax, dword [ebp - 0x10]
xor ecx, ebp
call fcn.00401580
leave
ret
Function at 0x16a4120
Capabilities:
Packed with generic packer

Disassembly:
pushal
mov esi, section.GVD1
lea edi, [esi - 0x1270000]
push edi
or ebp, 0xffffffff
jmp 0x16a4142
mov al, byte [esi]
inc esi
mov byte [edi], al
inc edi
add ebx, ebx
jne 0x16a4149
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
mov al, byte [edi]
jb 0x16a4138
mov eax, 1
add ebx, ebx
jne 0x16a415d
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc eax, eax
add ebx, ebx
jae 0x16a416e
jne 0x16a417e
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
jb 0x16a417e
dec eax
add ebx, ebx
jne 0x16a417a
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc eax, eax
jmp 0x16a4152
xor ecx, ecx
sub eax, 3
jb 0x16a4196
shl eax, 8
mov al, byte [esi]
inc esi
xor eax, 0xffffffff
je 0x16a420a
sar eax, 1
mov ebp, eax
jmp 0x16a41a1
add ebx, ebx
jne 0x16a41a1
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc ecx, ecx
add ebx, ebx
jne 0x16a41ae
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc ecx, ecx
jne 0x16a41d2
inc ecx
add ebx, ebx
jne 0x16a41be
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc ecx, ecx
add ebx, ebx
jae 0x16a41b3
jne 0x16a41cf
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
jae 0x16a41b3
add ecx, 2
cmp ebp, 0xfffffb00
adc ecx, 1
lea edx, [edi + ebp]
cmp ebp, 0xfffffffc
mov al, byte [edi + ecx]
jbe 0x16a41f4
mov al, byte [edx]
inc edx
mov byte [edi], al
inc edi
dec ecx
jne 0x16a41e6
jmp 0x16a413e
mov eax, dword [edx]
add edx, 4
mov dword [edi], eax
add edi, 4
sub ecx, 4
ja 0x16a41f4
add edi, ecx
jmp 0x16a413e
pop esi
mov edi, esi
mov ecx, 0x346a
mov al, byte [edi]
inc edi
sub al, 0xe8
cmp al, 1
ja 0x16a4212
cmp byte [edi], 0x16
jne 0x16a4212
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 eax, ebx
loop 0x16a4217
lea edi, [esi + 0x12a1000]
mov eax, dword [edi]
or eax, eax
je 0x16a4286
mov ebx, dword [edi + 4]
lea eax, [eax + esi + 0x12a57f8]
add ebx, esi
push eax
add edi, 8
call dword [esi + 0x12a58e8]
xchg ebp, eax
mov al, byte [edi]
inc edi
or al, al
je 0x16a4244
mov ecx, edi
push edi
dec eax
repne scasb al, byte es:[edi]
push ebp
call dword [esi + 0x12a58ec]
or eax, eax
je 0x16a4280
mov dword [ebx], eax
add ebx, 4
jmp 0x16a4261
call dword [esi + 0x12a58f0]
popal
jmp 0x46b748

Function at 0x407e15
Capabilities:
Terminate process

Disassembly:
cmp ecx, dword [0x42e180]
jne 0x407e1f
repz ret
jmp fcn.0040bc0c
Function at 0x404810
Capabilities:
Encode data using xor
Encrypt data using rc4 prga

Disassembly:
push ebp
mov ebp, esp
push ecx
push ebx
push esi
xor bl, bl
mov word [ecx + 0x100], 0
xor bh, bh
mov edx, ecx
push edi
xor eax, eax
mov esi, 0x100
nop dword [eax]
mov byte [edx], al
lea edx, [edx + 1]
inc eax
cmp ax, si
jb 0x404830
mov edi, ecx
mov dword [ebp - 4], esi
mov eax, dword [ebp + 8]
lea edi, [edi + 1]
movzx esi, bl
mov bl, byte [edi - 1]
movzx eax, byte [esi + eax]
add al, bl
add bh, al
movzx edx, bh
movzx eax, byte [edx + ecx]
mov byte [edi - 1], al
lea eax, [esi + 1]
movzx esi, word [ebp + 0xc]
mov byte [edx + ecx], bl
xor edx, edx
div esi
sub dword [ebp - 4], 1
mov bl, dl
jne 0x404840
xor ebx, ebx
cmp dword [ebp + 0x14], ebx
jbe 0x4048d6
nop dword [eax + eax]
inc byte [ecx + 0x100]
movzx edi, byte [ecx + 0x100]
movzx eax, byte [edi + ecx]
add byte [ecx + 0x101], al
movzx esi, byte [ecx + 0x101]
mov dl, byte [edi + ecx]
movzx eax, byte [esi + ecx]
mov byte [edi + ecx], al
mov byte [esi + ecx], dl
movzx eax, byte [ecx + 0x101]
movzx edx, byte [eax + ecx]
movzx eax, byte [ecx + 0x100]
movzx eax, byte [eax + ecx]
add edx, eax
movzx eax, dl
mov edx, dword [ebp + 0x10]
movzx eax, byte [eax + ecx]
xor byte [ebx + edx], al
inc ebx
cmp ebx, dword [ebp + 0x14]
jb 0x404880
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 0x10

Function at 0x4048e0
Capabilities:
Parse pe header

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x7d0
mov eax, 0x7b
mov ecx, 0x1f4
push edi
lea edi, [ebp - 0x7d0]
rep stosd dword es:[edi], eax
mov eax, 0x141
lea edi, [ebp - 0x7d0]
mov ecx, 0x1f4
rep stosd dword es:[edi], eax
mov eax, dword [ebp + 8]
pop edi
test eax, eax
je 0x40493e
mov ecx, 0x5a4d
cmp word [eax], cx
jne 0x40493e
mov ecx, dword [eax + 0x3c]
cmp ecx, 0x400
jg 0x40493e
add eax, ecx
xor ecx, ecx
cmp dword [eax], 0x4550
cmovne eax, ecx
mov esp, ebp
pop ebp
ret 4
xor eax, eax
mov esp, ebp
pop ebp
ret 4

Function at 0x404a60
Capabilities:
Resolve function by parsing pe exports

Disassembly:
push ebp
mov ebp, esp
sub esp, 0xc
push ebx
mov ebx, dword [ebp + 8]
push esi
push edi
xor edi, edi
mov eax, dword [ebx + 0x3c]
mov eax, dword [eax + ebx + 0x78]
add eax, ebx
mov edx, dword [eax + 0x1c]
mov ecx, dword [eax + 0x20]
add edx, ebx
mov dword [ebp - 0xc], edx
add ecx, ebx
mov edx, dword [eax + 0x24]
add edx, ebx
mov dword [ebp - 4], ecx
mov dword [ebp - 8], edx
mov edx, dword [eax + 0x18]
mov dword [ebp + 8], edx
test edx, edx
je 0x404ae6
nop dword [eax]
mov esi, dword [ecx + edi*4]
xor eax, eax
mov cl, byte [esi + ebx]
add esi, ebx
test cl, cl
je 0x404ad9
nop
shl eax, 4
lea esi, [esi + 1]
movsx ecx, cl
add eax, ecx
mov edx, eax
and edx, 0xf0000000
je 0x404acc
mov ecx, edx
shr ecx, 0x18
xor eax, ecx
mov cl, byte [esi]
not edx
and eax, edx
test cl, cl
jne 0x404ab0
mov edx, dword [ebp + 8]
cmp eax, dword [ebp + 0xc]
je 0x404aef
mov ecx, dword [ebp - 4]
inc edi
cmp edi, edx
jb 0x404aa0
pop edi
pop esi
xor eax, eax
pop ebx
mov esp, ebp
pop ebp
ret
mov eax, dword [ebp - 8]
mov ecx, dword [ebp - 0xc]
movzx eax, word [eax + edi*2]
pop edi
pop esi
mov eax, dword [ecx + eax*4]
add eax, ebx
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x404b10
Capabilities:
Resolve function by parsing pe exports

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x10
mov ecx, dword [ebp + 8]
push ebx
push esi
push edi
mov eax, dword [ecx + 0x3c]
xor edi, edi
add eax, 0x78
add eax, ecx
mov dword [ebp - 0x10], eax
mov ebx, dword [eax]
mov eax, dword [ebx + ecx + 0x24]
add ebx, ecx
add eax, ecx
mov dword [ebp - 4], eax
mov esi, dword [ebx + 0x1c]
mov eax, dword [ebx + 0x20]
add esi, ecx
add eax, ecx
mov dword [ebp - 8], esi
test dword [ebp + 0xc], 0xffff0000
mov dword [ebp - 0xc], eax
jne 0x404b77
mov eax, dword [ebp + 0xc]
mov edx, dword [ebx + 0x10]
movzx edi, ax
cmp edi, edx
jb 0x404b6e
mov eax, dword [ebx + 0x14]
add eax, edx
cmp edi, eax
ja 0x404b6e
sub edi, edx
mov edi, dword [esi + edi*4]
add edi, ecx
jmp 0x404bb5
pop edi
pop esi
xor eax, eax
pop ebx
mov esp, ebp
pop ebp
ret
xor esi, esi
cmp dword [ebx + 0x18], esi
jbe 0x404bb5
mov edx, dword [ebp + 0xc]
mov eax, dword [eax + esi*4]
add eax, ecx
push eax
push edx
call dword [sym.imp.KERNEL32.dll_lstrcmpA]
test eax, eax
jne 0x404ba6
mov eax, dword [ebp - 4]
mov ecx, dword [ebp - 8]
movzx eax, word [eax + esi*2]
mov edi, dword [ecx + eax*4]
mov ecx, dword [ebp + 8]
add edi, ecx
jmp 0x404ba9
mov ecx, dword [ebp + 8]
mov edx, dword [ebp + 0xc]
inc esi
mov eax, dword [ebp - 0xc]
cmp esi, dword [ebx + 0x18]
jb 0x404b81
cmp edi, ebx
jb 0x404c56
mov eax, dword [ebp - 0x10]
mov eax, dword [eax + 4]
add eax, ebx
cmp edi, eax
jae 0x404c56
push edi
call dword [sym.imp.KERNEL32.dll_lstrlenA]
mov esi, eax
mov eax, dword fs:[0x30]
mov eax, dword [eax + 0x18]
mov ecx, eax
lea eax, [esi + 1]
push eax
push 0
push ecx
call dword [sym.imp.KERNEL32.dll_HeapAlloc]
mov ebx, eax
mov edx, esi
mov ecx, ebx
test esi, esi
je 0x404c0e
sub edi, ebx
nop word [eax + eax]
mov al, byte [edi + ecx]
lea ecx, [ecx + 1]
mov byte [ecx - 1], al
sub edx, 1
jne 0x404c00
mov byte [ebx + esi], 0
xor edi, edi
mov esi, ebx
mov al, byte [esi]
cmp al, 0x2e
je 0x404c23
inc esi
test al, al
jne 0x404c16
xor esi, esi
mov byte [esi], 0
mov eax, dword [0x416588]
push ebx
call eax
mov ecx, eax
test ecx, ecx
je 0x404c43
lea eax, [esi + 1]
push eax
push ecx
call fcn.00404b10
add esp, 8
mov edi, eax
mov eax, dword fs:[0x30]
mov eax, dword [eax + 0x18]
push ebx
push 0
push eax
call dword [sym.imp.KERNEL32.dll_HeapFree]
mov eax, edi
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x404c60
Capabilities:
Access peb ldr_data
Get kernel32 base address

Disassembly:
push ebx
push esi
mov eax, dword fs:[0x30]
mov eax, dword [eax + 0xc]
mov eax, dword [eax + 0xc]
mov eax, dword [eax]
mov eax, dword [eax]
mov eax, dword [eax + 0x18]
mov esi, eax
mov eax, ebx
sub eax, eax
add eax, ebx
mov eax, 0
inc eax
xor eax, eax
push 0xaadf0f1
push esi
call fcn.00404a60
add esp, 8
mov dword [0x416588], eax
mov ebx, ebx
sub ebx, eax
add ebx, ebx
mov ebx, 0
inc ebx
xor ebx, ebx
push 0x72d1864
push esi
call fcn.00404a60
add esp, 8
mov dword [0x41658c], eax
mov ecx, ecx
sub ecx, ecx
add ecx, ecx
mov ebx, 0
inc ebx
xor ebx, ebx
push 0x62c3db5
push esi
call fcn.00404a60
push 0xdfa8b17
push esi
mov dword [0x416590], eax
call fcn.00404a60
push 0xad68927
push esi
mov dword [0x416594], eax
call fcn.00404a60
push 0x6769d5
push esi
mov dword [0x416598], eax
call fcn.00404a60
push 0xb78cba5
push esi
mov dword [0x41659c], eax
call fcn.00404a60
add esp, 0x28
mov dword [0x4165a0], eax
pop esi
pop ebx
ret
Function at 0x4074d7
Capabilities:
Read file on windows

Disassembly:
push ebp
mov ebp, esp
push ecx
mov eax, dword [ebp + 0x10]
push ebx
mov ebx, ecx
push edi
mov edi, dword [ebp + 0xc]
test eax, eax
jg 0x4074f8
jl 0x4074ef
test edi, edi
jne 0x4074f8
xor eax, eax
xor edx, edx
jmp 0x4075b9
cmp dword [ebx + 0x38], 0
je 0x40750d
push eax
push edi
push dword [ebp + 8]
call fcn.004075bf
jmp 0x4075b9
mov eax, dword [ebx + 0x1c]
push esi
mov esi, edi
mov ecx, dword [eax]
test ecx, ecx
je 0x407554
mov eax, dword [ebx + 0x2c]
mov eax, dword [eax]
mov dword [ebp - 4], eax
test eax, eax
je 0x407554
cmp eax, edi
jb 0x40752e
mov eax, edi
mov dword [ebp - 4], edi
push eax
push ecx
push dword [ebp + 8]
call sub.msvcrt.dll_memcpy
mov ecx, dword [ebp - 4]
add esp, 0xc
mov eax, dword [ebp + 8]
sub esi, ecx
add eax, ecx
mov dword [ebp - 4], eax
mov eax, dword [ebx + 0x2c]
sub dword [eax], ecx
mov eax, dword [ebx + 0x1c]
add dword [eax], ecx
jmp 0x40755a
mov eax, dword [ebp + 8]
mov dword [ebp - 4], eax
cmp dword [ebx + 0x4c], 0
je 0x4075ae
mov ecx, ebx
call fcn.00406cb9
mov ecx, dword [ebp - 4]
mov edx, esi
mov eax, 0xfff
cmp esi, eax
jbe 0x407599
push dword [ebx + 0x4c]
push eax
push 1
push ecx
call sub.msvcrt.dll_fread
mov ecx, dword [ebp - 4]
sub esi, eax
add ecx, eax
add esp, 0x10
mov dword [ebp - 4], ecx
mov edx, esi
cmp eax, 0xfff
jne 0x4075ae
jmp 0x40756c
test edx, edx
je 0x4075ae
push dword [ebx + 0x4c]
push esi
push 1
push ecx
call sub.msvcrt.dll_fread
add esp, 0x10
sub esi, eax
mov edx, dword [ebp + 0x10]
sub edi, esi
mov eax, edi
sbb edx, 0
pop esi
pop edi
pop ebx
leave
ret 0xc

Function at 0x408a1d
Capabilities:
Parse pe header

Disassembly:
push 0
call dword [sym.imp.KERNEL32.dll_GetModuleHandleW]
test eax, eax
je 0x408a5c
mov ecx, 0x5a4d
cmp word [eax], cx
jne 0x408a5c
mov ecx, dword [eax + 0x3c]
add ecx, eax
cmp dword [ecx], 0x4550
jne 0x408a5c
mov eax, 0x10b
cmp word [ecx + 0x18], ax
jne 0x408a5c
cmp dword [ecx + 0x74], 0xe
jbe 0x408a5c
cmp dword [ecx + 0xe8], 0
setne al
ret
xor al, al
ret

Function at 0x408f50
Capabilities:
Get process heap force flags

Disassembly:
call fcn.00408e80
mov ecx, dword fs:[0x18]
mov ecx, dword [ecx + 0x30]
mov edx, dword [ecx + 0xa4]
shl edx, 0x10
or edx, dword [ecx + 0xa8]
cmp edx, 0x50001
jae 0x408f7a
add eax, 0x74
ret
cmp edx, 0x60000
jae 0x408f86
add eax, 0x78
ret
add eax, 0x88
ret

Function at 0x408f90
Capabilities:
Get process heap force flags

Disassembly:
call fcn.00408e80
mov ecx, dword fs:[0x18]
mov ecx, dword [ecx + 0x30]
mov edx, dword [ecx + 0xa4]
shl edx, 0x10
or edx, dword [ecx + 0xa8]
cmp edx, 0x60000
jae 0x408fba
add eax, 0x7c
ret
add eax, 0x8c
ret

Function at 0x408fc0
Capabilities:
Get process heap force flags

Disassembly:
call fcn.00408e80
mov ecx, dword fs:[0x18]
mov ecx, dword [ecx + 0x30]
mov edx, dword [ecx + 0xa4]
shl edx, 0x10
or edx, dword [ecx + 0xa8]
cmp edx, 0x60000
jae 0x408fea
sub eax, 0xffffff80
ret
add eax, 0x90
ret
Function at 0x409250
Capabilities:
Terminate process

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x328
mov eax, dword [0x416024]
xor eax, ebp
mov dword [ebp - 4], eax
push esi
push 0x17
call dword [sym.imp.KERNEL32.dll_IsProcessorFeaturePresent]
test eax, eax
je 0x409277
mov ecx, 5
int 0x29
push 2
call fcn.00408ac1
push 0x50
lea eax, [ebp - 0x320]
push 0
push eax
call sub.msvcrt.dll_memset
push 0x2cc
lea eax, [ebp - 0x2d0]
push 0
push eax
call sub.msvcrt.dll_memset
lea eax, [ebp - 0x320]
add esp, 0x1c
mov dword [ebp - 0x328], eax
lea eax, [ebp - 0x2d0]
mov dword [ebp - 0x324], eax
mov dword [ebp - 0x220], eax
mov dword [ebp - 0x224], ecx
mov dword [ebp - 0x228], edx
mov dword [ebp - 0x22c], ebx
mov dword [ebp - 0x230], esi
mov dword [ebp - 0x234], edi
mov word [ebp - 0x208], ss
mov word [ebp - 0x214], cs
mov word [ebp - 0x238], ds
mov word [ebp - 0x23c], es
mov word [ebp - 0x240], fs
mov word [ebp - 0x244], gs
pushfd
pop dword [ebp - 0x210]
mov eax, dword [ebp + 4]
mov dword [ebp - 0x218], eax
lea eax, [ebp + 4]
mov dword [ebp - 0x20c], eax
mov dword [ebp - 0x2d0], 0x10001
mov eax, dword [eax - 4]
mov dword [ebp - 0x21c], eax
mov eax, dword [ebp + 4]
mov dword [ebp - 0x320], 0xc0000417
mov dword [ebp - 0x31c], 1
mov dword [ebp - 0x314], eax
call dword [sym.imp.KERNEL32.dll_IsDebuggerPresent]
push 0
mov esi, eax
call dword [sym.imp.KERNEL32.dll_SetUnhandledExceptionFilter]
lea eax, [ebp - 0x328]
push eax
call dword [sym.imp.KERNEL32.dll_UnhandledExceptionFilter]
test eax, eax
jne 0x409382
test esi, esi
jne 0x409382
push 2
call fcn.00408ac1
add esp, 4
push 0xc0000417
call dword [sym.imp.KERNEL32.dll_GetCurrentProcess]
push eax
call dword [sym.imp.KERNEL32.dll_TerminateProcess]
mov ecx, dword [ebp - 4]
xor ecx, ebp
pop esi
call fcn.00407d4b
mov esp, ebp
pop ebp
ret