joyce8/EMBER2024-capa huggingface dataset:
Function at 0x54fe60
Capabilities:
Packed with generic packer

Disassembly:
pushal
mov esi, section.UPX1
lea edi, [esi - 0x10c000]
push edi
jmp 0x54fe7a
mov al, byte [esi]
inc esi
mov byte [edi], al
inc edi
add ebx, ebx
jne 0x54fe81
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
jb 0x54fe70
mov eax, 1
add ebx, ebx
jne 0x54fe93
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc eax, eax
add ebx, ebx
jae 0x54fea4
jne 0x54fec3
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
jb 0x54fec3
dec eax
add ebx, ebx
jne 0x54feb0
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc eax, eax
jmp 0x54fe88
add ebx, ebx
jne 0x54febf
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc ecx, ecx
jmp 0x54ff15
xor ecx, ecx
sub eax, 3
jb 0x54fedb
shl eax, 8
mov al, byte [esi]
inc esi
xor eax, 0xffffffff
je 0x54ff4a
sar eax, 1
mov ebp, eax
jmp 0x54fee6
add ebx, ebx
jne 0x54fee6
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
jb 0x54feb4
inc ecx
add ebx, ebx
jne 0x54fef4
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
jb 0x54feb4
add ebx, ebx
jne 0x54ff01
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc ecx, ecx
add ebx, ebx
jae 0x54fef6
jne 0x54ff12
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
jae 0x54fef6
add ecx, 2
cmp ebp, 0xfffffb00
adc ecx, 2
lea edx, [edi + ebp]
cmp ebp, 0xfffffffc
jbe 0x54ff34
mov al, byte [edx]
inc edx
mov byte [edi], al
inc edi
dec ecx
jne 0x54ff26
jmp 0x54fe76
mov eax, dword [edx]
add edx, 4
mov dword [edi], eax
add edi, 4
sub ecx, 4
ja 0x54ff34
add edi, ecx
jmp 0x54fe76
pop esi
mov edi, esi
mov ecx, 0x1146
mov al, byte [edi]
inc edi
sub al, 0xe8
cmp al, 1
ja 0x54ff52
cmp byte [edi], 0xe
jne 0x54ff52
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 0x54ff57
lea edi, [esi + 0x14c000]
mov eax, dword [edi]
or eax, eax
je 0x54ffcf
mov ebx, dword [edi + 4]
lea eax, [eax + esi + 0x176288]
add ebx, esi
push eax
add edi, 8
call dword [esi + 0x17638c]
xchg ebp, eax
mov al, byte [edi]
inc edi
or al, al
je 0x54ff84
mov ecx, edi
jns 0x54ffb3
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 + 0x176390]
or eax, eax
je 0x54ffc9
mov dword [ebx], eax
add ebx, 4
jmp 0x54ffa1
call dword [esi + 0x1763a0]
mov ebp, dword [esi + 0x176394]
lea edi, [esi - 0x1000]
mov ebx, 0x1000
push eax
push esp
push 4
push ebx
push edi
call ebp
lea eax, [edi + 0x1ff]
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 0x550003
sub esp, 0xffffff80
jmp 0x42438d
Function at 0x4674a0
Capabilities:
Packed with generic packer

Disassembly:
pushal
mov esi, section.UPX1
lea edi, [esi - 0x41000]
push edi
or ebp, 0xffffffff
jmp 0x4674c2
mov al, byte [esi]
inc esi
mov byte [edi], al
inc edi
add ebx, ebx
jne 0x4674c9
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
jb 0x4674b8
mov eax, 1
add ebx, ebx
jne 0x4674db
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc eax, eax
add ebx, ebx
jae 0x4674d0
jne 0x4674ec
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
jae 0x4674d0
xor ecx, ecx
sub eax, 3
jb 0x467500
shl eax, 8
mov al, byte [esi]
inc esi
xor eax, 0xffffffff
je 0x467572
mov ebp, eax
add ebx, ebx
jne 0x46750b
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc ecx, ecx
add ebx, ebx
jne 0x467518
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc ecx, ecx
jne 0x46753c
inc ecx
add ebx, ebx
jne 0x467528
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc ecx, ecx
add ebx, ebx
jae 0x46751d
jne 0x467539
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
jae 0x46751d
add ecx, 2
cmp ebp, 0xfffff300
adc ecx, 1
lea edx, [edi + ebp]
cmp ebp, 0xfffffffc
jbe 0x46755c
mov al, byte [edx]
inc edx
mov byte [edi], al
inc edi
dec ecx
jne 0x46754d
jmp 0x4674be
mov eax, dword [edx]
add edx, 4
mov dword [edi], eax
add edi, 4
sub ecx, 4
ja 0x46755c
add edi, ecx
jmp 0x4674be
pop esi
mov edi, esi
mov ecx, 0x1806
mov al, byte [edi]
inc edi
sub al, 0xe8
cmp al, 1
ja 0x46757a
cmp byte [edi], 5
jne 0x46757a
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 0x46757f
lea edi, [esi + 0x65000]
mov eax, dword [edi]
or eax, eax
je 0x4675f7
mov ebx, dword [edi + 4]
lea eax, [eax + esi + 0x724f4]
add ebx, esi
push eax
add edi, 8
call dword [esi + 0x72530]
xchg ebp, eax
mov al, byte [edi]
inc edi
or al, al
je 0x4675ac
mov ecx, edi
jns 0x4675db
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 + 0x72534]
or eax, eax
je 0x4675f1
mov dword [ebx], eax
add ebx, 4
jmp 0x4675c9
call dword [esi + 0x72544]
mov ebp, dword [esi + 0x72538]
lea edi, [esi - 0x1000]
mov ebx, 0x1000
push eax
push esp
push 4
push ebx
push edi
call ebp
lea eax, [edi + 0x1df]
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 0x46762b
sub esp, 0xffffff80
jmp 0x404c98
Function at 0x404ea0
Capabilities:
Resolve function by parsing pe exports

Disassembly:
push esi
mov esi, 0x421260
push ebx
xor ebx, ebx
sub esp, 4
mov eax, dword [esp + 0x10]
cmp eax, 0xffffffff
jne 0x404ee0
lea esi, [esi]
mov eax, dword [esi]
test eax, eax
je 0x404eca
mov edx, 1
mov eax, ebx
call fcn.00403560
add ebx, 1
add esi, 0x2c
cmp ebx, 8
jne 0x404eb8
add esp, 4
pop ebx
pop esi
ret
cmp eax, 8
je 0x404ed5
imul edx, eax, 0x2c
cmp dword [edx + 0x421260], 0
je 0x404ed5
pop ecx
xor edx, edx
pop ebx
pop esi
jmp fcn.00403560
Function at 0x409650
Capabilities:
Write file on windows

Disassembly:
sub esp, 0x1c
mov eax, dword [esp + 0x20]
test eax, eax
je 0x409678
lea edx, [esp + 0x24]
mov dword [esp], eax
mov dword [esp + 4], edx
call fcn.00409550
test eax, eax
je 0x409686
add esp, 0x1c
ret
mov dword [esp], 0x4250dd
call sub.libgcrypt_20.dll_gcry_xstrdup
jmp 0x40966b
call dword [sym.imp.msvcrt.dll__errno]
cmp dword [eax], 0x16
mov dword [esp], 2
je 0x4096ca
call dword [0x421c7c]
mov dword [esp + 8], 0x16
mov dword [esp + 0xc], eax
mov dword [esp + 4], 1
mov dword [esp], str._nfatal:_out_of_memory_n
call sub.msvcrt.dll_fwrite
mov dword [esp], 2
call sub.msvcrt.dll_exit
call dword [0x421c7c]
mov dword [esp + 8], 0x25
mov dword [esp + 0xc], eax
mov dword [esp + 4], 1
mov dword [esp], str._nfatal:_too_many_args_for_xstrconcat_n
call sub.msvcrt.dll_fwrite
jmp 0x4096be
Function at 0x40ccd0
Capabilities:
Query environment variable

Disassembly:
push ebx
sub esp, 0x18
mov ebx, dword [esp + 0x20]
test ebx, ebx
je 0x40cd40
mov eax, dword [0x42e1f8]
test eax, eax
je 0x40ccf0
add esp, 0x18
pop ebx
ret
mov dword [esp], ebx
call dword [sym.imp.USER32.dll_AllowSetForegroundWindow]
sub esp, 4
test eax, eax
jne 0x40cce5
mov dword [esp], 0x426170
call sub.msvcrt.dll_getenv
test eax, eax
je 0x40cce5
mov dword [esp], eax
call sub.msvcrt.dll_atoi
test al, 2
je 0x40cce5
mov dword [esp], 0xffffffff
call fcn.00408f70
mov dword [esp + 4], ebx
mov dword [esp + 8], eax
mov dword [esp], str.AllowSetForegroundWindow__lu__failed:__s_n
call sub.libgpg_error_0.dll_gpgrt_log_info
jmp 0x40cce5
mov dword [esp + 8], 0
mov dword [esp + 4], str.gnupg_allow_set_foregound_window
mov dword [esp], str._s_called_with_invalid_pid__lu_n
call sub.libgpg_error_0.dll_gpgrt_log_info
add esp, 0x18
pop ebx
ret

Function at 0x40cd70
Capabilities:
Delete file

Disassembly:
push ebx
sub esp, 0x18
mov eax, dword [esp + 0x20]
mov dword [esp], eax
call fcn.0040ba30
test eax, eax
je 0x40cdc6
mov dword [esp], eax
mov ebx, eax
call dword [sym.imp.KERNEL32.dll_DeleteFileW]
sub esp, 4
test eax, eax
je 0x40cda8
mov dword [esp], ebx
call sub.libgcrypt_20.dll_gcry_free
xor eax, eax
add esp, 0x18
pop ebx
ret
mov dword [esp], 0xffffffff
call fcn.0040c6a0
mov dword [esp], ebx
call sub.libgcrypt_20.dll_gcry_free
add esp, 0x18
mov eax, 0xffffffff
pop ebx
ret
mov eax, 0xffffffff
jmp 0x40cda0
Function at 0x40d040
Capabilities:
Delete directory

Disassembly:
push ebx
sub esp, 0x18
mov eax, dword [esp + 0x20]
mov dword [esp], eax
call fcn.0040ba30
test eax, eax
je 0x40d096
mov dword [esp], eax
mov ebx, eax
call dword [sym.imp.KERNEL32.dll_RemoveDirectoryW]
sub esp, 4
test eax, eax
je 0x40d078
mov dword [esp], ebx
call sub.libgcrypt_20.dll_gcry_free
xor eax, eax
add esp, 0x18
pop ebx
ret
mov dword [esp], 0xffffffff
call fcn.0040c6a0
mov dword [esp], ebx
call sub.libgcrypt_20.dll_gcry_free
add esp, 0x18
mov eax, 0xffffffff
pop ebx
ret
mov eax, 0xffffffff
jmp 0x40d070

Function at 0x40e200
Capabilities:
Query environment variable

Disassembly:
push ebp
push edi
push esi
push ebx
sub esp, 0x2c
mov dword [esp], str.GNUPGHOME
call sub.msvcrt.dll_getenv
test eax, eax
je 0x40e21e
cmp byte [eax], 0
mov ebx, eax
jne 0x40e248
mov ebx, dword [0x42e26c]
test ebx, ebx
je 0x40e2b8
movzx edx, byte [ebx]
test dl, dl
jne 0x40e248
mov esi, str.c:_gnupg
add esp, 0x2c
mov eax, esi
pop ebx
pop esi
pop edi
pop ebp
ret
mov eax, ebx
call fcn.0040dcb0
mov dword [esp + 4], 0
test eax, eax
mov esi, eax
cmove esi, ebx
mov dword [esp], esi
call fcn.00408ce0
mov ebx, eax
call fcn.0040e110
mov dword [esp + 4], 0
mov dword [esp], eax
call fcn.00408ce0
mov dword [esp], ebx
mov dword [esp + 4], eax
mov edi, eax
call fcn.00408d20
mov dword [esp], edi
mov ebp, eax
call sub.libgcrypt_20.dll_gcry_free
mov dword [esp], ebx
call sub.libgcrypt_20.dll_gcry_free
test ebp, ebp
je 0x40e238
mov byte [0x42e39e], 1
add esp, 0x2c
mov eax, esi
pop ebx
pop esi
pop edi
pop ebp
ret
mov dword [esp + 8], str.HomeDir
mov dword [esp + 4], str.SoftwareGNUGnuPG
mov dword [esp], 0
call fcn.004131f0
mov ebx, eax
test eax, eax
je 0x40e328
movzx edx, byte [eax]
test dl, dl
je 0x40e320
mov dword [esp], eax
mov byte [esp + 0x1f], dl
call sub.msvcrt.dll_strlen
movzx edx, byte [esp + 0x1f]
lea eax, [ebx + eax - 1]
cmp ebx, eax
jb 0x40e30b
jmp 0x40e313
sub eax, 1
mov byte [eax + 1], 0
cmp ebx, eax
je 0x40e310
cmp byte [eax], 0x5c
je 0x40e300
movzx edx, byte [ebx]
mov dword [0x42e26c], ebx
jmp 0x40e22f
mov dword [esp], eax
call sub.libgcrypt_20.dll_gcry_free
mov ebx, dword [0x42e26c]
test ebx, ebx
jne 0x40e22c
call fcn.0040e110
mov dword [0x42e26c], eax
mov ebx, eax
test eax, eax
je 0x40e233
jmp 0x40e22c
Function at 0x4136f0
Capabilities:
Enumerate files on windows

Disassembly:
push ebp
push edi
push esi
push ebx
mov ebx, edx
sub esp, 0x27c
mov dword [esp + 4], 0x426d98
mov dword [esp], edx
mov dword [esp + 0x18], eax
call sub.msvcrt.dll_strpbrk
test eax, eax
jne 0x413730
jmp 0x413924
movzx edx, byte [eax]
cmp dl, 0x5c
je 0x413737
cmp dl, 0x2f
je 0x413737
sub eax, 1
movzx edx, byte [eax]
cmp ebx, eax
jne 0x413720
sub eax, ebx
mov dword [esp + 0x14], eax
cmp dl, 0x2f
je 0x4138c0
cmp dl, 0x5c
je 0x4138c0
mov dword [esp], ebx
call fcn.0040ba30
mov edi, eax
test eax, eax
je 0x413939
lea eax, [esp + 0x20]
mov dword [esp], edi
mov dword [esp + 4], eax
call dword [sym.imp.KERNEL32.dll_FindFirstFileW]
sub esp, 8
mov esi, eax
mov dword [esp], edi
call sub.libgcrypt_20.dll_gcry_free
cmp esi, 0xffffffff
je 0x4138d0
mov dword [esp], ebx
call sub.msvcrt.dll_strlen
add eax, 0x619
mov dword [esp], eax
call sub.libgcrypt_20.dll_gcry_malloc
mov edi, eax
test eax, eax
je 0x413943
mov eax, dword [esp + 0x14]
mov dword [esp + 4], ebx
mov dword [esp], edi
add eax, 1
mov dword [esp + 8], eax
call fcn.00408790
movzx edx, byte [edi]
mov eax, edi
test dl, dl
je 0x4137e4
lea esi, [esi]
nop
cmp dl, 0x5c
je 0x4138a0
movzx edx, byte [eax + 1]
add eax, 1
test dl, dl
jne 0x4137d0
mov eax, dword [esp + 0x14]
mov dword [esp + 0x1c], ebx
xor ebp, ebp
mov ebx, dword [esp + 0x18]
add eax, edi
mov dword [esp + 0x14], eax
lea esi, [esi]
nop
test byte [esp + 0x20], 0x10
jne 0x413853
lea eax, [esp + 0x4c]
mov dword [esp], eax
call fcn.0040b960
mov ebp, eax
test eax, eax
je 0x4138f0
mov dword [esp + 4], eax
mov eax, dword [esp + 0x14]
mov dword [esp + 8], 0x618
mov dword [esp], eax
call fcn.00408790
mov dword [esp], ebp
call sub.libgcrypt_20.dll_gcry_free
mov edx, edi
mov eax, ebx
call fcn.00413650
test eax, eax
jne 0x413920
mov ebp, 1
lea eax, [esp + 0x20]
mov dword [esp], esi
mov dword [esp + 4], eax
call dword [sym.imp.KERNEL32.dll_FindNextFileW]
sub esp, 8
test eax, eax
jne 0x413800
mov dword [esp + 0x14], eax
mov ebx, dword [esp + 0x1c]
mov dword [esp], esi
call dword [sym.imp.KERNEL32.dll_FindClose]
sub esp, 4
mov dword [esp], edi
call sub.libgcrypt_20.dll_gcry_free
test ebp, ebp
mov edx, dword [esp + 0x14]
je 0x4138d0
add esp, 0x27c
mov eax, edx
pop ebx
pop esi
pop edi
pop ebp
ret
mov byte [eax], 0x2f
movzx edx, byte [eax + 1]
add eax, 1
test dl, dl
jne 0x4137d0
jmp 0x4137e4
add dword [esp + 0x14], 1
jmp 0x41374f
mov eax, dword [esp + 0x18]
mov edx, ebx
call fcn.00413650
add esp, 0x27c
mov edx, eax
pop ebx
pop esi
mov eax, edx
pop edi
pop ebp
ret
mov edx, 0xffffffff
mov dword [esp + 0x14], edx
mov dword [esp], esi
call dword [sym.imp.KERNEL32.dll_FindClose]
sub esp, 4
mov dword [esp], edi
call sub.libgcrypt_20.dll_gcry_free
mov edx, dword [esp + 0x14]
add esp, 0x27c
pop ebx
pop esi
mov eax, edx
pop edi
pop ebp
ret
mov edx, eax
jmp 0x4138f5
mov eax, dword [esp + 0x18]
add esp, 0x27c
mov edx, ebx
pop ebx
pop esi
pop edi
pop ebp
jmp fcn.00413650
mov edx, 0xffffffff
jmp 0x41388f
mov dword [esp], esi
call dword [sym.imp.KERNEL32.dll_FindClose]
or edx, 0xffffffff
push eax
jmp 0x41388f
Function at 0x413ca0
Capabilities:
Create pipe

Disassembly:
push esi
mov esi, eax
push ebx
mov ebx, edx
sub esp, 0x34
lea eax, [esp + 0x24]
mov dword [esp + 0x28], 0
mov dword [esp + 8], eax
lea eax, [esp + 0x20]
mov dword [esp + 4], eax
lea eax, [esp + 0x1c]
mov dword [esp + 0x24], 0xc
mov dword [esp + 0x2c], 1
mov dword [esp + 0xc], 0
mov dword [esp], eax
call dword [sym.imp.KERNEL32.dll_CreatePipe]
sub esp, 0x10
test eax, eax
je 0x413da8
test bl, 1
je 0x413d10
and ebx, 2
mov eax, dword [esp + 0x20]
je 0x413d78
mov edx, dword [esp + 0x1c]
mov dword [esi + 4], eax
xor eax, eax
mov dword [esi], edx
add esp, 0x34
pop ebx
pop esi
ret
mov eax, dword [esp + 0x1c]
mov dword [esp + 8], 0
mov dword [esp + 4], 1
mov dword [esp], eax
call dword [sym.imp.KERNEL32.dll_SetHandleInformation]
sub esp, 0xc
test eax, eax
jne 0x413cf6
mov dword [esp], 0xffffffff
call fcn.00408f70
mov dword [esp], str.SetHandleInformation_failed:__s_n
mov dword [esp + 4], eax
call sub.libgpg_error_0.dll_gpgrt_log_error
mov eax, dword [esp + 0x1c]
mov ebx, dword [sym.imp.KERNEL32.dll_CloseHandle]
mov dword [esp], eax
call ebx
sub esp, 4
mov eax, dword [esp + 0x20]
mov dword [esp], eax
call ebx
mov eax, 0xffffffff
sub esp, 4
jmp 0x413d0a
mov dword [esp + 8], 0
mov dword [esp + 4], 1
mov dword [esp], eax
call dword [sym.imp.KERNEL32.dll_SetHandleInformation]
sub esp, 0xc
test eax, eax
je 0x413d34
mov eax, dword [esp + 0x20]
jmp 0x413cff
mov eax, 0xffffffff
jmp 0x413d0a
Function at 0x416db0
Capabilities:
Write file on windows

Disassembly:
push ebx
sub esp, 0x18
mov dword [esp], 2
lea ebx, [esp + 0x24]
call fcn.0041de50
mov dword [esp + 8], 0x1b
mov dword [esp + 0xc], eax
mov dword [esp + 4], 1
mov dword [esp], str.Mingw_w64_runtime_failure:_n
call sub.msvcrt.dll_fwrite
mov dword [esp], 2
call fcn.0041de50
mov edx, dword [esp + 0x20]
mov dword [esp + 8], ebx
mov dword [esp], eax
mov dword [esp + 4], edx
call sub.msvcrt.dll_vfprintf
call sub.msvcrt.dll_abort
lea esi, [esi]

Function at 0x416e10
Capabilities:
Allocate or change rwx memory

Disassembly:
push edi
push esi
push ebx
mov ebx, eax
sub esp, 0x30
mov esi, dword [0x42e4e0]
test esi, esi
jle 0x416f30
mov eax, dword [0x42e4e4]
xor ecx, ecx
add eax, 0xc
mov edx, dword [eax]
cmp edx, ebx
ja 0x416e44
mov edi, dword [eax + 4]
add edx, dword [edi + 8]
cmp ebx, edx
jb 0x416ec7
add ecx, 1
add eax, 0x14
cmp ecx, esi
jne 0x416e30
mov dword [esp], ebx
call fcn.00417790
mov edi, eax
test eax, eax
je 0x416f57
mov eax, dword [0x42e4e4]
lea ebx, [esi + esi*4]
shl ebx, 2
add eax, ebx
mov dword [eax + 0x10], edi
mov dword [eax], 0
call fcn.004178d0
mov edx, dword [0x42e4e4]
add eax, dword [edi + 0xc]
mov dword [edx + ebx + 0xc], eax
lea edx, [esp + 0x14]
mov dword [esp + 8], 0x1c
mov dword [esp + 4], edx
mov dword [esp], eax
call dword [sym.imp.KERNEL32.dll_VirtualQuery]
sub esp, 0xc
test eax, eax
je 0x416f37
mov eax, dword [esp + 0x28]
lea edx, [eax - 0x40]
and edx, 0xffffffbf
je 0x416ec0
lea edx, [eax - 4]
and edx, 0xfffffffb
jne 0x416ed0
add dword [0x42e4e0], 1
add esp, 0x30
pop ebx
pop esi
pop edi
ret
cmp eax, 2
mov edx, 0x40
mov eax, 4
mov ecx, dword [esp + 0x20]
cmovne eax, edx
mov edx, dword [esp + 0x14]
add ebx, dword [0x42e4e4]
mov dword [ebx + 8], ecx
mov dword [ebx + 4], edx
mov dword [esp + 0xc], ebx
mov dword [esp + 8], eax
mov dword [esp + 4], ecx
mov dword [esp], edx
call dword [sym.imp.KERNEL32.dll_VirtualProtect]
sub esp, 0x10
test eax, eax
jne 0x416ec0
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov dword [esp], str.__VirtualProtect_failed_with_code_0x_x
mov dword [esp + 4], eax
call fcn.00416db0
lea esi, [esi]
lea esi, [esi]
xor esi, esi
jmp 0x416e4e
mov eax, dword [0x42e4e4]
mov eax, dword [eax + ebx + 0xc]
mov dword [esp + 8], eax
mov eax, dword [edi + 8]
mov dword [esp], str.__VirtualQuery_failed_for__d_bytes_at_address__p
mov dword [esp + 4], eax
call fcn.00416db0
mov dword [esp + 4], ebx
mov dword [esp], str.Address__p_has_no_image_section
call fcn.00416db0
lea esi, [esi]
nop
Function at 0x417410
Capabilities:
Get thread local storage value

Disassembly:
push ebp
push edi
push esi
push ebx
sub esp, 0x1c
mov dword [esp], 0x42e4fc
call dword [sym.imp.KERNEL32.dll_EnterCriticalSection]
mov ebx, dword [0x42e4f4]
sub esp, 4
test ebx, ebx
je 0x417465
mov ebp, dword [sym.imp.KERNEL32.dll_TlsGetValue]
mov edi, dword [sym.imp.KERNEL32.dll_GetLastError]
lea esi, [esi]
mov eax, dword [ebx]
mov dword [esp], eax
call ebp
sub esp, 4
mov esi, eax
call edi
test eax, eax
jne 0x41745e
test esi, esi
je 0x41745e
mov eax, dword [ebx + 4]
mov dword [esp], esi
call eax
mov ebx, dword [ebx + 8]
test ebx, ebx
jne 0x417440
mov dword [esp], 0x42e4fc
call dword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
sub esp, 4
add esp, 0x1c
pop ebx
pop esi
pop edi
pop ebp
ret

Function at 0x417790
Capabilities:
Parse pe header

Disassembly:
xor eax, eax
cmp word [0x400000], 0x5a4d
jne 0x4177b5
mov ecx, dword [0x40003c]
cmp dword [ecx + 0x400000], 0x4550
lea edx, [ecx + 0x400000]
je 0x4177c0
ret
cmp word [ecx + 0x400018], 0x10b
jne 0x4177b5
push esi
movzx eax, word [ecx + 0x400014]
push ebx
movzx esi, word [ecx + 0x400006]
mov ebx, dword [esp + 0xc]
lea eax, [edx + eax + 0x18]
sub ebx, 0x400000
test esi, esi
je 0x417808
xor ecx, ecx
nop
mov edx, dword [eax + 0xc]
cmp ebx, edx
jb 0x4177fe
add edx, dword [eax + 8]
cmp ebx, edx
jb 0x41780a
add ecx, 1
add eax, 0x28
cmp ecx, esi
jne 0x4177f0
xor eax, eax
pop ebx
pop esi
ret
Function at 0x418030
Capabilities:
Check if file exists
Get file attributes

Disassembly:
push edi
push esi
push ebx
sub esp, 0x220
mov ebx, dword [esp + 0x230]
call sub.msvcrt.dll__errno
mov dword [eax], 0
test ebx, ebx
je 0x4181b0
cmp word [ebx], 0
je 0x418190
mov dword [esp], ebx
call dword [sym.imp.KERNEL32.dll_GetFileAttributesW]
sub esp, 4
cmp eax, 0xffffffff
je 0x4181c0
test al, 0x10
je 0x418190
lea esi, [esp + 0x18]
mov dword [esp + 4], ebx
mov dword [esp + 8], 0x104
mov dword [esp], esi
call sub.msvcrt.dll__wfullpath
mov dword [esp], esi
call sub.msvcrt.dll_wcslen
mov dword [esp], 0x427474
mov ebx, eax
call sub.msvcrt.dll_wcslen
mov dword [esp], 0x427478
add ebx, eax
call sub.msvcrt.dll_wcslen
lea eax, [ebx + eax + 0x21d]
add eax, eax
mov dword [esp], eax
call sub.msvcrt.dll_malloc
mov ebx, eax
test eax, eax
je 0x4181d2
lea edi, [eax + 0x434]
mov dword [esp + 4], esi
mov dword [esp], edi
call sub.msvcrt.dll_wcscpy
cmp word [ebx + 0x434], 0
jne 0x418148
mov dword [esp], edi
mov dword [esp + 4], 0x427478
call sub.msvcrt.dll_wcscat
lea edx, [ebx + 0x224]
mov ecx, 0x82
xor eax, eax
mov dword [ebx + 0x42c], 0xffffffff
mov edi, edx
mov dword [ebx + 0x430], 0
mov dword [ebx + 0x21c], 0
mov dword [ebx + 0x220], 0
rep stosd dword es:[edi], eax
add esp, 0x220
mov eax, ebx
pop ebx
pop esi
pop edi
ret
mov dword [esp], edi
call sub.msvcrt.dll_wcslen
cmp word [ebx + eax*2 + 0x432], 0x2f
je 0x4180ed
mov dword [esp], edi
call sub.msvcrt.dll_wcslen
cmp word [ebx + eax*2 + 0x432], 0x5c
je 0x4180ed
mov dword [esp + 4], 0x427474
mov dword [esp], edi
call sub.msvcrt.dll_wcscat
jmp 0x4180ed
call sub.msvcrt.dll__errno
xor ebx, ebx
mov dword [eax], 0x14
add esp, 0x220
mov eax, ebx
pop ebx
pop esi
pop edi
ret
call sub.msvcrt.dll__errno
mov dword [eax], 0xe
jmp 0x418136
call sub.msvcrt.dll__errno
xor ebx, ebx
mov dword [eax], 2
jmp 0x418136
call sub.msvcrt.dll__errno
mov dword [eax], 0xc
jmp 0x418136
Function at 0x401380
Capabilities:
Print debug messages

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x20
mov eax, dword [section..data]
xor eax, ebp
mov dword [ebp - 4], eax
mov ecx, dword [ebp + 0xc]
push ebx
push esi
push edi
lea eax, [ebp + 0x10]
push eax
push ecx
call dword [sym.imp.MSVCR100.dll__vscprintf]
add esp, 8
lea esi, [eax + 2]
push esi
push 8
call dword [sym.imp.KERNEL32.dll_GetProcessHeap]
push eax
call dword [sym.imp.KERNEL32.dll_HeapAlloc]
push 0xfffffffffffffff5
mov edi, eax
call dword [sym.imp.KERNEL32.dll_GetStdHandle]
lea edx, [ebp - 0x1c]
mov ebx, eax
push edx
push ebx
call dword [sym.imp.KERNEL32.dll_GetConsoleScreenBufferInfo]
mov ecx, dword [ebp + 8]
movzx eax, word [ebp - 0x14]
or ecx, 8
push ecx
push ebx
mov dword [ebp - 0x20], eax
call dword [sym.imp.KERNEL32.dll_SetConsoleTextAttribute]
mov eax, dword [ebp + 0xc]
lea edx, [ebp + 0x10]
push edx
push eax
call dword [sym.imp.MSVCR100.dll___iob_func]
add eax, 0x40
push eax
call dword [sym.imp.MSVCR100.dll_vfprintf]
mov edx, dword [ebp + 0xc]
lea ecx, [ebp + 0x10]
push ecx
push edx
push esi
push edi
call dword [sym.imp.MSVCR100.dll_vsprintf_s]
add esp, 0x1c
push edi
call dword [sym.imp.KERNEL32.dll_OutputDebugStringA]
mov eax, dword [ebp - 0x20]
push eax
push ebx
call dword [sym.imp.KERNEL32.dll_SetConsoleTextAttribute]
push edi
push 0
call dword [sym.imp.KERNEL32.dll_GetProcessHeap]
push eax
call dword [sym.imp.KERNEL32.dll_HeapFree]
mov ecx, dword [ebp - 4]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.004033a6
mov esp, ebp
pop ebp
ret
Function at 0x401470
Capabilities:
Enumerate processes
Terminate process

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x134
mov eax, dword [section..data]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
push esi
push edi
push 0x124
xor ebx, ebx
lea eax, [ebp - 0x12c]
push ebx
push eax
call sub.MSVCR100.dll_memset
add esp, 0xc
push ebx
push 2
mov dword [ebp - 0x130], 0x128
call dword [sym.imp.KERNEL32.dll_CreateToolhelp32Snapshot]
mov esi, eax
test esi, esi
jne 0x4014db
push eax
call dword [sym.imp.KERNEL32.dll_CloseHandle]
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
push str._t_t____Failed_Creating_Snapshot_Of_Processes:_0x_X_n
push 4
call fcn.00401380
add esp, 0xc
push 1
call dword [sym.imp.MSVCR100.dll_exit]
lea ecx, [ebp - 0x130]
push ecx
push esi
call dword [sym.imp.KERNEL32.dll_Process32First]
test eax, eax
jne 0x401512
push esi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
push str._t_t____Failed_To_Get_Info_About_First_Process:_0x_X_n
push 4
call fcn.00401380
add esp, 0xc
push 1
call dword [sym.imp.MSVCR100.dll_exit]
mov edi, dword [sym.imp.KERNEL32.dll_Process32Next]
jmp 0x401520
lea ecx, [ebp - 0x10c]
mov eax, str.csrss.exe
jmp 0x401530
mov dl, byte [eax]
cmp dl, byte [ecx]
jne 0x401550
test dl, dl
je 0x40154c
mov dl, byte [eax + 1]
cmp dl, byte [ecx + 1]
jne 0x401550
add eax, 2
add ecx, 2
test dl, dl
jne 0x401530
xor eax, eax
jmp 0x401555
sbb eax, eax
sbb eax, 0xffffffff
test eax, eax
je 0x401569
lea edx, [ebp - 0x130]
push edx
push esi
call edi
test eax, eax
jne 0x401520
jmp 0x40156f
mov ebx, dword [ebp - 0x128]
push esi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov ecx, dword [ebp - 4]
pop edi
pop esi
mov eax, ebx
xor ecx, ebp
pop ebx
call fcn.004033a6
mov esp, ebp
pop ebp
ret