joyce8/EMBER2024-capa huggingface dataset:
Function at 0x6bc01879
Capabilities:
Get file size
Read file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x38
mov dword [esp + 0x18], 0
mov dword [esp + 0x14], pe_nt_image_headers32
mov dword [esp + 0x10], 3
mov dword [esp + 0xc], 0
mov dword [esp + 8], 1
mov dword [esp + 4], 0x80000000
mov eax, dword [ebp + 8]
mov dword [esp], eax
call sym._CreateFileA_28
sub esp, 0x1c
mov dword [ebp - 0xc], eax
cmp dword [ebp - 0xc], 0xffffffff
jne 0x6bc018dc
mov dword [esp], str.Open_file_error_
call sym._printf
mov eax, 0xffffffff
jmp 0x6bc0199e
mov dword [esp + 4], 0
mov eax, dword [ebp - 0xc]
mov dword [esp], eax
call sym._GetFileSize_8
sub esp, 8
mov dword [ebp - 0x10], eax
cmp dword [ebp - 0x10], 0xffffffff
jne 0x6bc01911
mov dword [esp], str.Get_file_size_error_
call sym._printf
mov eax, 0xffffffff
jmp 0x6bc0199e
mov eax, dword [ebp - 0x10]
add eax, 1
mov dword [esp], eax
call sym._malloc
mov dword [ebp + 0xc], eax
cmp dword [ebp + 0xc], 0
jne 0x6bc0193b
mov dword [esp], str.Allocate_memory_error_
call sym._printf
mov eax, 0xffffffff
jmp 0x6bc0199e
mov eax, dword [ebp - 0x10]
mov dword [esp + 0x10], 0
lea edx, [ebp - 0x18]
mov dword [esp + 0xc], edx
mov dword [esp + 8], eax
mov eax, dword [ebp + 0xc]
mov dword [esp + 4], eax
mov eax, dword [ebp - 0xc]
mov dword [esp], eax
call sym._ReadFile_20
sub esp, 0x14
mov dword [ebp - 0x14], eax
cmp dword [ebp - 0x14], 0
jne 0x6bc01982
mov dword [esp], str.Read_file_error_
call sym._printf
mov eax, 0xffffffff
jmp 0x6bc0199e
mov eax, dword [ebp - 0xc]
mov dword [esp], eax
call sym._CloseHandle_4
sub esp, 4
mov edx, dword [ebp - 0x10]
mov eax, dword [ebp + 0xc]
add eax, edx
mov byte [eax], 0
mov eax, dword [ebp - 0x10]
leave
ret

Function at 0x6bc01b0e
Capabilities:
Allocate or change rwx memory
Execute shellcode via indirect call

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x28
mov eax, dword [ebp + 0xc]
mov dword [esp + 0xc], 0x40
mov dword [esp + 8], 0x3000
mov dword [esp + 4], eax
mov dword [esp], 0
call sym._VirtualAlloc_16
sub esp, 0x10
mov dword [ebp - 0xc], eax
mov eax, dword [ebp + 0xc]
mov dword [esp + 8], eax
mov eax, dword [ebp + 8]
mov dword [esp + 4], eax
mov eax, dword [ebp - 0xc]
mov dword [esp], eax
call sym._memcpy
mov eax, dword [ebp - 0xc]
call eax
nop
leave
ret

Function at 0x6bc01b75
Capabilities:
Delete file

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x128
mov dword [esp + 8], 0x104
lea eax, [ebp - 0x10c]
mov dword [esp + 4], eax
mov dword [esp], 0
call sym._GetModuleFileNameA_12
sub esp, 0xc
mov dword [esp], 0x1388
call sym._Sleep_4
sub esp, 4
lea eax, [ebp - 0x10c]
mov dword [esp], eax
call sym._DeleteFileA_4
sub esp, 4
nop
leave
ret
Function at 0x6bc01f00
Capabilities:
Get thread local storage value

Disassembly:
push esi
push ebx
sub esp, 0x14
mov dword [esp], 0x6bc0603c
call sym._EnterCriticalSection_4
mov ebx, dword [0x6bc06034]
sub esp, 4
test ebx, ebx
je 0x6bc01f4b
nop
mov eax, dword [ebx]
mov dword [esp], eax
call sym._TlsGetValue_4
sub esp, 4
mov esi, eax
call sym._GetLastError_0
test eax, eax
jne 0x6bc01f44
test esi, esi
je 0x6bc01f44
mov eax, dword [ebx + 4]
mov dword [esp], esi
call eax
mov ebx, dword [ebx + 8]
test ebx, ebx
jne 0x6bc01f20
mov dword [esp], 0x6bc0603c
call sym._LeaveCriticalSection_4
sub esp, 4
add esp, 0x14
pop ebx
pop esi
ret

Function at 0x6bc02130
Capabilities:
Write file on windows

Disassembly:
push esi
push ebx
sub esp, 0x14
mov eax, dword [sym.imp.msvcrt.dll__iob]
mov dword [esp + 8], 0x17
mov dword [esp + 4], 1
lea esi, [esp + 0x24]
mov dword [esp], 0x6bc04194
lea ebx, [eax + 0x40]
mov dword [esp + 0xc], ebx
call sym._fwrite
mov eax, dword [esp + 0x20]
mov dword [esp + 8], esi
mov dword [esp], ebx
mov dword [esp + 4], eax
call sym._vfprintf
call sym._abort
lea esi, [esi]

Function at 0x6bc02180
Capabilities:
Allocate or change rwx memory

Disassembly:
push ebp
push edi
mov edi, ecx
push esi
push ebx
mov ebx, eax
mov esi, edx
sub esp, 0x4c
lea eax, [esp + 0x24]
mov dword [esp + 8], 0x1c
mov dword [esp], ebx
mov dword [esp + 4], eax
call sym._VirtualQuery_12
sub esp, 0xc
test eax, eax
je 0x6bc02258
mov eax, dword [esp + 0x38]
cmp eax, 0x40
je 0x6bc021be
cmp eax, 4
jne 0x6bc021e0
mov dword [esp + 8], edi
mov dword [esp + 4], esi
mov dword [esp], ebx
call sym._memcpy
add esp, 0x4c
pop ebx
pop esi
pop edi
pop ebp
ret
mov eax, dword [esp + 0x30]
lea ebp, [esp + 0x20]
mov dword [esp + 8], 0x40
mov dword [esp + 0xc], ebp
mov dword [esp + 4], eax
mov eax, dword [esp + 0x24]
mov dword [esp], eax
call sym._VirtualProtect_16
sub esp, 0x10
mov edx, dword [esp + 0x38]
mov dword [esp + 8], edi
mov dword [esp + 4], esi
mov dword [esp], ebx
mov dword [esp + 0x1c], edx
call sym._memcpy
mov edx, dword [esp + 0x1c]
cmp edx, 0x40
je 0x6bc021ce
cmp edx, 4
je 0x6bc021ce
mov eax, dword [esp + 0x20]
mov dword [esp + 0xc], ebp
mov dword [esp + 8], eax
mov eax, dword [esp + 0x30]
mov dword [esp + 4], eax
mov eax, dword [esp + 0x24]
mov dword [esp], eax
call sym._VirtualProtect_16
sub esp, 0x10
add esp, 0x4c
pop ebx
pop esi
pop edi
pop ebp
ret
mov dword [esp + 8], ebx
mov dword [esp + 4], 0x1c
mov dword [esp], str.__VirtualQuery_failed_for__d_bytes_at_address__p
call fcn.6bc02130

Function at 0x403d61
Capabilities:
Encode data using xor

Disassembly:
push eax
push ebx
mov eax, 0x499
mov ecx, 0x404498
mov bl, byte [ecx]
sub bl, 0xf2
rol bl, 2
sub bl, cl
ror bl, 1
mov byte [ecx], bl
dec ecx
dec eax
jne 0x403d6d
mov eax, 0x261d
mov ecx, 0x403764
mov bl, byte [ecx]
rol bl, 7
ror bl, 2
sub bl, cl
xor bl, 0x91
mov byte [ecx], bl
dec ecx
dec eax
jne 0x403d8a
pop ebx
pop eax
add ecx, 0x2c1a
jmp ecx
Function at 0x430003
Capabilities:
Encode data using xor
Packed with generic packer

Disassembly:
pushal
nop
nop
call 0x43000c
pop eax
nop
nop
nop
nop
nop
add eax, 0x403daa
nop
nop
sub eax, 0x403d50
mov ebx, dword [eax]
nop
nop
nop
nop
nop
mov ecx, dword [eax + 4]
nop
nop
nop
mov edx, dword [eax + 8]
nop
nop
xor dword [ebx], edx
nop
nop
nop
nop
nop
add ebx, 4
nop
nop
nop
nop
nop
nop
cmp ebx, ecx
nop
nop
jl 0x430030
nop
nop
nop
nop
nop
add eax, 0xc
nop
nop
cmp dword [eax], 0
nop
nop
nop
jne 0x43001e
nop
nop
nop
popal
nop
nop
nop
nop
jmp loc.00401219
Function at 0x11ea0b0
Capabilities:
Decompress data using aplib

Disassembly:
call 0x11ea200
push ebx
mov ebx, esp
push ebx
mov esi, dword [ebx + 8]
mov edi, dword [ebx + 0x10]
cld
mov dl, 0x80
mov al, byte [esi]
inc esi
mov byte [edi], al
inc edi
mov ebx, 2
add dl, dl
jne 0x11ea0d6
mov dl, byte [esi]
inc esi
adc dl, dl
jae 0x11ea0c2
add dl, dl
jne 0x11ea0e1
mov dl, byte [esi]
inc esi
adc dl, dl
jae 0x11ea134
xor eax, eax
add dl, dl
jne 0x11ea0ee
mov dl, byte [esi]
inc esi
adc dl, dl
jae 0x11ea1d5
add dl, dl
jne 0x11ea0fd
mov dl, byte [esi]
inc esi
adc dl, dl
adc eax, eax
add dl, dl
jne 0x11ea108
mov dl, byte [esi]
inc esi
adc dl, dl
adc eax, eax
add dl, dl
jne 0x11ea113
mov dl, byte [esi]
inc esi
adc dl, dl
adc eax, eax
add dl, dl
jne 0x11ea11e
mov dl, byte [esi]
inc esi
adc dl, dl
adc eax, eax
je 0x11ea12a
push edi
mov eax, eax
sub edi, eax
mov al, byte [edi]
pop edi
mov byte [edi], al
inc edi
mov ebx, 2
jmp 0x11ea0cd
mov eax, 1
add dl, dl
jne 0x11ea142
mov dl, byte [esi]
inc esi
adc dl, dl
adc eax, eax
add dl, dl
jne 0x11ea14d
mov dl, byte [esi]
inc esi
adc dl, dl
jb 0x11ea139
sub eax, ebx
mov ebx, 1
jne 0x11ea180
mov ecx, 1
add dl, dl
jne 0x11ea166
mov dl, byte [esi]
inc esi
adc dl, dl
adc ecx, ecx
add dl, dl
jne 0x11ea171
mov dl, byte [esi]
inc esi
adc dl, dl
jb 0x11ea15d
push esi
mov esi, edi
sub esi, ebp
rep movsb byte es:[edi], byte [esi]
pop esi
jmp 0x11ea0cd
dec eax
shl eax, 8
mov al, byte [esi]
inc esi
mov ebp, eax
mov ecx, 1
add dl, dl
jne 0x11ea197
mov dl, byte [esi]
inc esi
adc dl, dl
adc ecx, ecx
add dl, dl
jne 0x11ea1a2
mov dl, byte [esi]
inc esi
adc dl, dl
jb 0x11ea18e
cmp eax, 0x7d00
jae 0x11ea1c5
cmp eax, 0x500
jb 0x11ea1c0
inc ecx
push esi
mov esi, edi
sub esi, eax
rep movsb byte es:[edi], byte [esi]
pop esi
jmp 0x11ea0cd
cmp eax, 0x7f
ja 0x11ea1c8
add ecx, 2
push esi
mov esi, edi
sub esi, eax
rep movsb byte es:[edi], byte [esi]
pop esi
jmp 0x11ea0cd
mov al, byte [esi]
inc esi
xor ecx, ecx
shr al, 1
je 0x11ea1f6
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 0x11ea0cd
pop ebx
sub edi, dword [ebx + 0x10]
mov eax, edi
pop ebx
ret 0x10

Function at 0x403d61
Capabilities:
Encode data using xor

Disassembly:
push eax
push ebx
mov eax, 0x499
mov ecx, 0x404498
mov bl, byte [ecx]
sub bl, 0xf2
rol bl, 2
sub bl, cl
ror bl, 1
mov byte [ecx], bl
dec ecx
dec eax
jne 0x403d6d
mov eax, 0x261d
mov ecx, 0x403764
mov bl, byte [ecx]
rol bl, 7
ror bl, 2
sub bl, cl
xor bl, 0x91
mov byte [ecx], bl
dec ecx
dec eax
jne 0x403d8a
pop ebx
pop eax
add ecx, 0x2c1a
jmp ecx
Function at 0x4016d4
Capabilities:
Query or enumerate registry value

Disassembly:
sub esp, 0x90
mov eax, dword [0x5e95e0]
xor eax, esp
mov dword [esp + 0x8c], eax
push esi
mov esi, ecx
mov eax, dword [esi + 4]
cmp dword [eax - 0xc], 0
lea ecx, [esi + 4]
je 0x40178e
push ebx
push edi
lea edx, [esp + 0xc]
push 0x5925cc
push edx
call fcn.00401c80
add esp, 8
lea eax, [esp + 0x14]
push eax
mov eax, dword [esp + 0x10]
lea ecx, [esp + 0x1c]
push ecx
lea edx, [esp + 0x18]
push edx
push 0x592720
push eax
push SysReAllocStringLen
call dword [sym.imp.SHLWAPI.dll_SHGetValueW]
test eax, eax
jne 0x401756
cmp dword [esp + 0x10], 1
jne 0x401756
mov eax, dword [esi + 0x18]
lea ecx, [esp + 0x18]
push ecx
push eax
call fcn.005522fc
add esp, 8
test eax, eax
je 0x401756
mov ebx, dword [esp + 0xc]
push str.Backup
push SysReAllocStringLen
lea edi, [esp + 0x20]
call fcn.00401990
mov edi, dword [esi + 0x18]
mov ebx, dword [esp + 0xc]
push 0x592720
push SysReAllocStringLen
call fcn.00401990
mov eax, dword [esp + 0xc]
add eax, 0xfffffff0
lea edx, [eax + 0xc]
or ecx, 0xffffffff
lock xadd dword [edx], ecx
dec ecx
test ecx, ecx
pop edi
pop ebx
jg 0x40178e
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov ecx, dword [esp + 0x90]
pop esi
xor ecx, esp
mov eax, 1
call fcn.00552101
add esp, 0x90
ret

Function at 0x401990
Capabilities:
Set registry value

Disassembly:
sub esp, 8
push ebp
xor ebp, ebp
cmp ebx, ebp
je 0x401a13
cmp word [ebx], bp
je 0x401a13
cmp dword [esp + 0x14], ebp
je 0x401a13
cmp edi, ebp
je 0x401a13
push esi
push edi
mov dword [esp + 0xc], ebp
call dword [sym.imp.KERNEL32.dll_lstrlenW]
mov edx, dword [esp + 0x14]
mov esi, eax
lea eax, [esp + 0xc]
push eax
lea ecx, [esp + 0xc]
push ecx
push ebp
push 2
push ebp
push ebp
push ebp
push ebx
push edx
add esi, esi
call dword [sym.imp.ADVAPI32.dll_RegCreateKeyExW]
test eax, eax
jne 0x4019fa
mov ecx, dword [esp + 8]
add esi, 2
push esi
push edi
push 1
push eax
mov eax, dword [esp + 0x28]
push eax
push ecx
call dword [sym.imp.ADVAPI32.dll_RegSetValueExW]
test eax, eax
jne 0x4019fa
mov ebp, 1
mov eax, dword [esp + 8]
test eax, eax
pop esi
je 0x401a0a
push eax
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov eax, ebp
pop ebp
add esp, 8
ret 8
push 0x80070057
call dword [sym.imp.KERNEL32.dll_SetLastError]
xor eax, eax
pop ebp
add esp, 8
ret 8

Function at 0x4025d0
Capabilities:
Extract resource via kernel32 functions

Disassembly:
push ebx
mov ebx, dword [esp + 8]
push edi
mov edi, dword [esp + 0x10]
push edi
push ebx
call dword [sym.imp.KERNEL32.dll_LoadResource]
test eax, eax
jne 0x4025e9
pop edi
pop ebx
ret
push esi
push eax
call dword [sym.imp.KERNEL32.dll_LockResource]
mov esi, eax
test esi, esi
je 0x402624
push edi
push ebx
call dword [sym.imp.KERNEL32.dll_SizeofResource]
mov ecx, dword [esp + 0x18]
add eax, esi
and ecx, 0xf
jbe 0x402620
lea ebx, [ebx]
cmp esi, eax
jae 0x402624
sub ecx, 1
movzx edx, word [esi]
lea esi, [esi + edx*2 + 2]
jne 0x402610
cmp esi, eax
jb 0x40262a
pop esi
pop edi
xor eax, eax
pop ebx
ret
mov ax, word [esi]
neg ax
sbb eax, eax
and eax, esi
pop esi
pop edi
pop ebx
ret
Function at 0x412cf0
Capabilities:
Extract resource via kernel32 functions

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x579730
mov eax, dword fs:[0]
push eax
sub esp, 0x2c
push ebx
push esi
push edi
mov eax, dword [0x5e95e0]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov dword [ebp - 0x10], esp
mov ebx, ecx
push 0x595d54
push 0xde
push 0
call dword [sym.imp.KERNEL32.dll_FindResourceW]
mov esi, eax
test esi, esi
je 0x412ddd
push esi
push 0
call dword [sym.imp.KERNEL32.dll_LoadResource]
push eax
call dword [sym.imp.KERNEL32.dll_LockResource]
push esi
push 0
mov edi, eax
call dword [sym.imp.KERNEL32.dll_SizeofResource]
lea ecx, [ebp - 0x20]
mov esi, eax
mov dword [ebp - 4], 0
call fcn.00539c44
push 0
push 0xffffffffffffffff
push 0
lea ecx, [ebp - 0x34]
mov byte [ebp - 4], 1
call fcn.0041d580
test ebx, ebx
mov byte [ebp - 4], 2
je 0x412da7
lea eax, [ebp - 0x34]
push eax
push 0x1001
push ebx
lea ecx, [ebp - 0x20]
call fcn.0053a073
test eax, eax
je 0x412da7
push esi
push edi
lea ecx, [ebp - 0x20]
call fcn.00539992
lea ecx, [ebp - 0x20]
call fcn.00539be2
mov byte [ebp - 4], 1
mov eax, dword [ebp - 0x24]
add eax, 0xfffffff0
mov dword [ebp - 0x34], vtable.CFileException.0
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x412dd1
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
lea ecx, [ebp - 0x20]
mov byte [ebp - 4], 0
call fcn.00539d18
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x4138c0
Capabilities:
Get disk information

Disassembly:
sub esp, 0x94
mov eax, dword [0x5e95e0]
xor eax, esp
mov dword [esp + 0x90], eax
mov eax, dword [0x595c84]
mov ecx, dword [0x595c88]
push ebp
mov ebp, dword [esp + 0x9c]
push esi
push edi
push 0x78
lea edx, [esp + 0x24]
push 0
push edx
mov dword [esp + 0x24], eax
mov dword [esp + 0x28], ecx
call fcn.00557890
mov eax, dword [str.DCEFG]
mov edx, dword [0x595c94]
mov ecx, dword [0x595c90]
mov dword [esp + 0x18], eax
mov eax, dword [0x5f22e0]
mov dword [esp + 0x20], edx
add esp, 0xc
mov dword [esp + 0x10], ecx
mov edx, eax
mov cx, word [eax]
add eax, 2
test cx, cx
jne 0x413926
lea edi, [esp + 0x18]
sub eax, edx
add edi, 0xfffffffe
lea ebx, [ebx]
mov cx, word [edi + 2]
add edi, 2
test cx, cx
jne 0x413940
mov ecx, eax
shr ecx, 2
mov esi, edx
rep movsd dword es:[edi], dword [esi]
mov ecx, eax
and ecx, 3
rep movsb byte es:[edi], byte [esi]
xor esi, esi
mov edi, edi
mov ax, word [esp + esi*2 + 0xc]
lea ecx, [esp + 0x18]
mov word [esp + 0x18], ax
call fcn.004600b0
test eax, eax
jne 0x413981
add esi, 1
cmp esi, 5
jl 0x413960
jmp 0x4139ac
lea eax, [esp + 0x18]
lea edx, [eax + 2]
jmp 0x413990
mov cx, word [eax]
add eax, 2
test cx, cx
jne 0x413990
sub eax, edx
sar eax, 1
push eax
lea ecx, [esp + 0x1c]
push ecx
mov ecx, ebp
call fcn.00402250
mov edx, dword [ebp]
cmp dword [edx - 0xc], 0
jne 0x413a11
mov edi, dword [sym.imp.KERNEL32.dll_GetDriveTypeW]
xor esi, esi
lea ecx, [ecx]
mov ax, word [esp + esi*2 + 0xc]
lea ecx, [esp + 0x18]
push ecx
mov word [esp + 0x1c], ax
mov word [esp + 0x20], 0
call edi
cmp eax, 3
je 0x4139e7
add esi, 1
cmp esi, 5
jl 0x4139c0
jmp 0x413a11
lea eax, [esp + 0x18]
mov word [esp + 0x1c], 0x5c
lea edx, [eax + 2]
mov cx, word [eax]
add eax, 2
test cx, cx
jne 0x4139f5
sub eax, edx
sar eax, 1
push eax
lea edx, [esp + 0x1c]
push edx
mov ecx, ebp
call fcn.00402250
mov eax, dword [ebp]
cmp dword [eax - 0xc], 0
jne 0x413a26
push 0x5f2878
mov ecx, ebp
call fcn.00402310
mov ecx, dword [esp + 0x9c]
pop edi
pop esi
pop ebp
xor ecx, esp
call fcn.00552101
add esp, 0x94
ret 4
Function at 0x413ca0
Capabilities:
Access peb ldr_data
Get process heap flags

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
push 0xffffffffffffffff
push 0x5846a8
mov eax, dword fs:[0]
push eax
sub esp, 0x18
push ebx
mov eax, dword [0x5e95e0]
xor eax, esp
push eax
lea eax, [esp + 0x20]
mov dword fs:[0], eax
mov eax, dword [ebp + 8]
push 0x5958a8
lea ecx, [esp + 0xc]
push 0x5f2878
push ecx
mov dword [esp + 0x24], eax
call fcn.00401ba0
add esp, 0xc
push 0x5f28cc
push eax
lea edx, [esp + 0x1c]
push edx
mov dword [esp + 0x34], 0
call fcn.00401ae0
add esp, 0xc
push str..down
push eax
lea eax, [esp + 0x14]
push eax
mov byte [esp + 0x34], 1
call fcn.00401ba0
add esp, 0xc
mov byte [esp + 0x28], 2
mov eax, dword [eax]
push 2
push 0
mov ebx, eax
call fcn.004ec6f0
mov ebx, eax
mov byte [esp + 0x30], 1
mov eax, dword [esp + 0x14]
add eax, 0xfffffff0
add esp, 8
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x413d57
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov byte [esp + 0x28], 0
mov eax, dword [esp + 0x14]
add eax, 0xfffffff0
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x413d7c
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov dword [esp + 0x28], 0xffffffff
mov eax, dword [esp + 8]
add eax, 0xfffffff0
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x413da4
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
test ebx, ebx
je 0x413dc3
push esi
mov ecx, edi
mov edx, ebx
call fcn.00414020
mov dword [esp + 0x10], eax
call fcn.004ecb90
mov eax, dword [esp + 0x10]
test eax, eax
jne 0x413dea
mov ecx, dword [esp + 0x18]
mov edx, dword [ecx]
test edx, edx
je 0x413de8
push esi
mov ecx, edi
call fcn.00414020
mov ecx, dword [esp + 0x20]
mov dword fs:[0], ecx
pop ecx
pop ebx
mov esp, ebp
pop ebp
ret 4
xor eax, eax
mov ecx, dword [esp + 0x20]
mov dword fs:[0], ecx
pop ecx
pop ebx
mov esp, ebp
pop ebp
ret 4
Function at 0x41c670
Capabilities:
Read file via mapping

Disassembly:
call dword [sym.imp.KERNEL32.dll_GetCurrentProcessId]
push eax
push str.tango_d
push 0x5f2c1c
call fcn.00405480
mov eax, dword [0x5f2c1c]
add esp, 0xc
push eax
push 0x1668
push 0
push 4
push 0
push 0xffffffffffffffff
call dword [sym.imp.KERNEL32.dll_CreateFileMappingW]
test eax, eax
mov dword [0x5f2c20], eax
je 0x41c6e7
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0xb7
je 0x41c6e7
mov eax, dword [0x5f2c20]
test eax, eax
je 0x41c6e7
push 0x1668
push 0
push 0
push 6
push eax
call dword [sym.imp.KERNEL32.dll_MapViewOfFile]
test eax, eax
mov dword [0x5f2c24], eax
je 0x41c6e1
call fcn.0041c6f0
mov eax, 1
ret
xor eax, eax
ret
Function at 0x434ba0
Capabilities:
Access peb ldr_data

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
push 0xffffffffffffffff
push 0x57baf8
mov eax, dword fs:[0]
push eax
sub esp, 0x1c
push esi
push edi
mov eax, dword [0x5e95e0]
xor eax, esp
push eax
lea eax, [esp + 0x28]
mov dword fs:[0], eax
mov esi, ecx
call fcn.0053b9ed
push 0x59ef70
lea ecx, [esp + 0x14]
call fcn.00402390
lea eax, [esp + 0x10]
push eax
lea ecx, [esi + 0xa0]
push ecx
mov dword [esp + 0x38], 0
call fcn.004b4920
mov dword [esp + 0x30], 0xffffffff
mov eax, dword [esp + 0x10]
add eax, 0xfffffff0
lea edx, [eax + 0xc]
or ecx, 0xffffffff
lock xadd dword [edx], ecx
dec ecx
test ecx, ecx
jg 0x434c21
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov ecx, dword [esi + 0x150]
push ecx
push esi
call fcn.00435ae0
push 0x3e9
mov ecx, esi
call fcn.00537b72
mov edx, dword [eax + 0x20]
lea edi, [esi + 0x88]
push edi
push edx
call dword [sym.imp.USER32.dll_GetWindowRect]
mov ecx, dword [edi + 4]
mov eax, dword [edi]
mov edx, dword [edi + 8]
mov dword [esp + 0x18], ecx
lea ecx, [esp + 0x14]
mov dword [esp + 0x14], eax
mov eax, dword [edi + 0xc]
push ecx
mov ecx, esi
mov dword [esp + 0x20], edx
mov dword [esp + 0x24], eax
call fcn.00536dc5
push 0x440
mov ecx, esi
call fcn.00537b72
mov ecx, dword [esp + 0x18]
mov edx, dword [esp + 0x20]
mov edi, dword [esp + 0x1c]
push 1
sub edx, ecx
push edx
mov edx, dword [esp + 0x1c]
sub edi, edx
push edi
push ecx
push edx
mov ecx, eax
call fcn.00537d48
push 0
push 0x3e9
mov ecx, esi
call fcn.00537b72
mov ecx, eax
call fcn.00537d86
mov eax, 1
mov ecx, dword [esp + 0x28]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
mov esp, ebp
pop ebp
ret
Function at 0x43a2c0
Capabilities:
Get common file path

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
sub esp, 0x214
mov eax, dword [0x5e95e0]
xor eax, esp
mov dword [esp + 0x210], eax
push ebx
lea eax, [esp + 4]
push eax
push 0x591ba8
push 1
push 0
push 0x591bb8
mov dword [esp + 0x18], 0
call dword [sym.imp.ole32.dll_CoCreateInstance]
cmp dword [esp + 4], 0
je 0x43a35f
mov ebx, dword [sym.imp.SHELL32.dll_SHGetSpecialFolderPathW]
push 0
push 0x17
lea ecx, [esp + 0x10]
push ecx
push 0
call ebx
test eax, eax
je 0x43a32e
mov edx, dword [esp + 4]
push edx
push edi
lea eax, [esp + 0x10]
push esi
push eax
call fcn.00439c50
add esp, 0x10
push 0
push 2
lea ecx, [esp + 0x10]
push ecx
push 0
call ebx
test eax, eax
je 0x43a353
mov edx, dword [esp + 4]
push edx
push edi
lea eax, [esp + 0x10]
push esi
push eax
call fcn.00439c50
add esp, 0x10
mov eax, dword [esp + 4]
mov ecx, dword [eax]
mov edx, dword [ecx + 8]
push eax
call edx
mov ecx, dword [esp + 0x214]
pop ebx
xor ecx, esp
call fcn.00552101
mov esp, ebp
pop ebp
ret
Function at 0x43f240
Capabilities:
Access peb ldr_data
Get process heap flags
Get process heap force flags

Disassembly:
push 0xffffffffffffffff
push 0x57cf52
mov eax, dword fs:[0]
push eax
push ebx
push ebp
push esi
push edi
mov eax, dword [0x5e95e0]
xor eax, esp
push eax
lea eax, [esp + 0x14]
mov dword fs:[0], eax
mov esi, dword [esp + 0x24]
call fcn.00530e1f
xor ecx, ecx
test eax, eax
setne cl
test ecx, ecx
jne 0x43f282
push 0x80004005
call fcn.00401f70
mov edx, dword [eax]
mov ecx, eax
mov eax, dword [edx + 0xc]
call eax
add eax, 0x10
mov dword [esi + 0xc], eax
mov dword [esp + 0x1c], 0
call fcn.00530e1f
xor ecx, ecx
test eax, eax
setne cl
test ecx, ecx
jne 0x43f2b3
push 0x80004005
call fcn.00401f70
mov edx, dword [eax]
mov ecx, eax
mov eax, dword [edx + 0xc]
call eax
add eax, 0x10
mov dword [esi + 0x10], eax
mov byte [esp + 0x1c], 1
lea ebx, [esi + 0x14]
call fcn.00530e1f
xor ecx, ecx
test eax, eax
setne cl
test ecx, ecx
jne 0x43f2e4
push 0x80004005
call fcn.00401f70
mov edx, dword [eax]
mov ecx, eax
mov eax, dword [edx + 0xc]
call eax
add eax, 0x10
mov dword [ebx], eax
mov byte [esp + 0x1c], 2
lea ebp, [esi + 0x18]
call fcn.00530e1f
xor ecx, ecx
test eax, eax
setne cl
test ecx, ecx
jne 0x43f314
push 0x80004005
call fcn.00401f70
mov edx, dword [eax]
mov ecx, eax
mov eax, dword [edx + 0xc]
call eax
add eax, 0x10
mov dword [ebp], eax
mov byte [esp + 0x1c], 3
lea edi, [esi + 0x1c]
call fcn.00530e1f
xor ecx, ecx
test eax, eax
setne cl
test ecx, ecx
jne 0x43f345
push 0x80004005
call fcn.00401f70
mov edx, dword [eax]
mov ecx, eax
mov eax, dword [edx + 0xc]
call eax
add eax, 0x10
mov dword [edi], eax
mov byte [esp + 0x1c], 4
call fcn.00530e1f
xor ecx, ecx
test eax, eax
setne cl
test ecx, ecx
jne 0x43f372
push 0x80004005
call fcn.00401f70
mov edx, dword [eax]
mov ecx, eax
mov eax, dword [edx + 0xc]
call eax
add eax, 0x10
mov dword [esi + 0x34], eax
mov ecx, dword [esp + 0x28]
push ecx
lea ecx, [esi + 0xc]
mov byte [esp + 0x20], 5
call fcn.00402310
mov edx, dword [esp + 0x2c]
push edx
lea ecx, [esi + 0x10]
call fcn.00402310
mov eax, dword [esp + 0x30]
push eax
mov ecx, ebx
call fcn.00402310
mov ecx, dword [esp + 0x38]
push ecx
mov ecx, ebp
call fcn.00402310
mov edx, dword [esp + 0x34]
push edx
mov ecx, edi
call fcn.00402310
mov dword [esi + 0x3c], 1
mov dword [esi + 0x40], 0
mov eax, esi
mov ecx, dword [esp + 0x14]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebp
pop ebx
add esp, 0xc
ret 0x18