joyce8/EMBER2024-capa huggingface dataset:
Function at 0x4d3f50
Capabilities:
Check for software breakpoints

Disassembly:
push esi
mov esi, dword [esp + 8]
cmp dword [esi + 0x14], 0xca
jne 0x4d3f83
push esi
call fcn.004d8e00
mov eax, dword [esi + 0x40]
add esp, 4
test eax, eax
je 0x4d3f7c
mov dword [esi + 0x14], 0xcf
mov eax, 1
pop esi
ret
mov dword [esi + 0x14], 0xcb
mov eax, dword [esi + 0x14]
cmp eax, 0xcb
jne 0x4d4009
mov eax, dword [esi + 0x1b8]
mov ecx, dword [eax + 0x10]
test ecx, ecx
je 0x4d3ff2
mov eax, dword [esi + 8]
test eax, eax
je 0x4d3fa7
push esi
call dword [eax]
add esp, 4
mov ecx, dword [esi + 0x1b8]
push esi
call dword [ecx]
add esp, 4
test eax, eax
je 0x4d3fee
cmp eax, 2
je 0x4d3ff2
mov ecx, dword [esi + 8]
test ecx, ecx
je 0x4d3f9a
cmp eax, 3
je 0x4d3fcd
cmp eax, 1
jne 0x4d3f9a
mov eax, dword [ecx + 4]
inc eax
mov dword [ecx + 4], eax
mov eax, dword [esi + 8]
mov ecx, dword [eax + 8]
mov edx, dword [eax + 4]
cmp edx, ecx
jl 0x4d3f9a
mov edx, dword [esi + 0x144]
add edx, ecx
mov dword [eax + 8], edx
jmp 0x4d3f9a
xor eax, eax
pop esi
ret
mov eax, dword [esi + 0x90]
push esi
mov dword [esi + 0x98], eax
call fcn.004d4040
add esp, 4
pop esi
ret
cmp eax, 0xcc
je 0x4d4029
mov ecx, dword [esi]
push esi
mov dword [ecx + 0x14], 0x15
mov edx, dword [esi]
mov eax, dword [esi + 0x14]
mov dword [edx + 0x18], eax
mov ecx, dword [esi]
call dword [ecx]
add esp, 4
push esi
call fcn.004d4040
add esp, 4
pop esi
ret

Function at 0x504a20
Capabilities:
Encode data using xor
Hash data with crc32

Disassembly:
mov ecx, dword [esp + 8]
test ecx, ecx
jne 0x504a2b
xor eax, eax
ret
mov eax, dword [esp + 4]
push ebx
push esi
mov esi, dword [esp + 0x14]
cmp esi, 8
not eax
jb 0x504b2e
push edi
mov edi, esi
shr edi, 3
mov edx, eax
xor ebx, ebx
mov bl, byte [ecx]
and edx, 0xff
xor edx, ebx
mov ebx, eax
shr ebx, 8
mov eax, dword [edx*4 + 0x58b0e8]
sub esi, 8
xor eax, ebx
inc ecx
mov edx, eax
xor ebx, ebx
mov bl, byte [ecx]
and edx, 0xff
xor edx, ebx
xor ebx, ebx
mov bl, byte [ecx + 1]
mov edx, dword [edx*4 + 0x58b0e8]
shr eax, 8
xor edx, eax
inc ecx
mov eax, edx
and eax, 0xff
xor eax, ebx
xor ebx, ebx
mov bl, byte [ecx + 1]
mov eax, dword [eax*4 + 0x58b0e8]
shr edx, 8
xor eax, edx
inc ecx
mov edx, eax
and edx, 0xff
xor edx, ebx
xor ebx, ebx
mov bl, byte [ecx + 1]
mov edx, dword [edx*4 + 0x58b0e8]
shr eax, 8
xor edx, eax
inc ecx
mov eax, edx
and eax, 0xff
xor eax, ebx
xor ebx, ebx
mov bl, byte [ecx + 1]
mov eax, dword [eax*4 + 0x58b0e8]
shr edx, 8
xor eax, edx
inc ecx
mov edx, eax
and edx, 0xff
xor edx, ebx
xor ebx, ebx
mov bl, byte [ecx + 1]
mov edx, dword [edx*4 + 0x58b0e8]
shr eax, 8
xor edx, eax
inc ecx
mov eax, edx
and eax, 0xff
xor eax, ebx
xor ebx, ebx
mov bl, byte [ecx + 1]
mov eax, dword [eax*4 + 0x58b0e8]
shr edx, 8
xor eax, edx
inc ecx
mov edx, eax
and edx, 0xff
xor edx, ebx
shr eax, 8
mov edx, dword [edx*4 + 0x58b0e8]
xor eax, edx
inc ecx
dec edi
jne 0x504a46
pop edi
test esi, esi
je 0x504b50
mov edx, eax
xor ebx, ebx
mov bl, byte [ecx]
and edx, 0xff
xor edx, ebx
shr eax, 8
mov edx, dword [edx*4 + 0x58b0e8]
xor eax, edx
inc ecx
dec esi
jne 0x504b32
pop esi
pop ebx
not eax
ret
Function at 0x544b20
Capabilities:
Access peb ldr_data
Get kernel32 base address

Disassembly:
push 0xffffffffffffffff
push 0x5621b0
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x2c
mov al, byte [esp + 0x3c]
push ebx
xor ebx, ebx
push esi
mov esi, ecx
mov byte [esp + 0x10], al
mov dword [esp + 0x14], ebx
mov dword [esp + 0x18], ebx
mov dword [esp + 0x1c], ebx
mov ecx, dword [esp + 0x44]
push ebx
mov dword [esp + 0x40], ebx
mov byte [esp + 0x28], al
mov edx, dword [ecx]
lea ecx, [esp + 0x28]
mov dword [esp + 0x24], edx
call fcn.00539a86
mov eax, dword [0x5a3978]
lea ecx, [esp + 0x10]
push eax
push ebx
push ecx
lea ecx, [esp + 0x30]
call fcn.005399b8
lea edx, [esp + 0x20]
lea eax, [esp + 8]
push edx
push eax
mov ecx, esi
mov byte [esp + 0x44], 1
call fcn.00545610
mov esi, dword [eax]
mov ecx, dword [eax + 4]
mov eax, dword [esp + 0x28]
cmp eax, ebx
mov dword [esp + 0xc], ecx
je 0x544bc7
lea ecx, [eax - 1]
mov al, byte [eax - 1]
cmp al, bl
je 0x544bbe
cmp al, 0xff
je 0x544bbe
dec al
mov byte [ecx], al
jmp 0x544bc7
push ecx
call fcn.0054e7a3
add esp, 4
mov eax, dword [esp + 0x14]
mov dword [esp + 0x28], ebx
cmp eax, ebx
mov dword [esp + 0x2c], ebx
mov dword [esp + 0x30], ebx
je 0x544bf8
lea ecx, [eax - 1]
mov al, byte [eax - 1]
cmp al, bl
je 0x544bef
cmp al, 0xff
je 0x544bef
dec al
mov byte [ecx], al
jmp 0x544bf8
push ecx
call fcn.0054e7a3
add esp, 4
mov ecx, dword [esp + 0x34]
lea eax, [esi + 0x10]
pop esi
pop ebx
mov dword fs:[0], ecx
add esp, 0x38
ret 4
Function at 0x550ef3
Capabilities:
Get graphical window text

Disassembly:
push esi
mov esi, ecx
mov ecx, dword [esi + 0x38]
test ecx, ecx
jne 0x550f2b
push dword [esi + 0x1c]
call dword [sym.imp.USER32.dll_GetWindowTextLengthA]
lea ecx, [eax + 1]
push ecx
mov ecx, dword [esp + 0xc]
push eax
call fcn.0054eee0
push eax
push dword [esi + 0x1c]
call dword [sym.imp.USER32.dll_GetWindowTextA]
mov ecx, dword [esp + 8]
push 0xffffffffffffffff
call fcn.0054eeb8
jmp 0x550f37
mov eax, dword [ecx]
push dword [esp + 8]
call dword [eax + 0x88]
pop esi
ret 4

Function at 0x5525ed
Capabilities:
Extract resource via kernel32 functions

Disassembly:
push ebx
push esi
push edi
xor edi, edi
cmp dword [esp + 0x10], edi
mov ebx, ecx
je 0x55262f
call fcn.005583cd
mov esi, dword [eax + 0xc]
push 0xf0
push dword [esp + 0x14]
push esi
call dword [sym.imp.KERNEL32.dll_FindResourceA]
cmp eax, edi
je 0x55262f
push eax
push esi
call dword [sym.imp.KERNEL32.dll_LoadResource]
cmp eax, edi
jne 0x552626
xor eax, eax
jmp 0x552637
push eax
call dword [sym.imp.KERNEL32.dll_LockResource]
mov edi, eax
push edi
mov ecx, ebx
call fcn.0055263d
pop edi
pop esi
pop ebx
ret 4

Function at 0x5588fd
Capabilities:
Get thread local storage value

Disassembly:
push ebx
push esi
mov esi, ecx
lea ebx, [esi + 0x1c]
push ebx
call dword [sym.imp.KERNEL32.dll_EnterCriticalSection]
cmp dword [esp + 0x10], 0
jne 0x55892b
push dword [esi]
call dword [sym.imp.KERNEL32.dll_TlsGetValue]
test eax, eax
je 0x558949
push dword [esp + 0xc]
mov ecx, esi
push eax
call fcn.00558863
jmp 0x558949
mov eax, dword [esi + 0x14]
test eax, eax
je 0x558949
push edi
push dword [esp + 0x10]
mov edi, dword [eax + 4]
mov ecx, esi
push eax
call fcn.00558863
test edi, edi
mov eax, edi
jne 0x558933
pop edi
push ebx
call dword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
pop esi
pop ebx
ret 8
Function at 0x40ca80
Capabilities:
Packed with generic packer

Disassembly:
pushal
mov esi, 0x40a015
lea edi, [esi - 0x9015]
push edi
or ebp, 0xffffffff
jmp 0x40caa2
mov al, byte [esi]
inc esi
mov byte [edi], al
inc edi
add ebx, ebx
jne 0x40caa9
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
jb 0x40ca98
mov eax, 1
add ebx, ebx
jne 0x40cabb
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc eax, eax
add ebx, ebx
jae 0x40cab0
jne 0x40cacc
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
jae 0x40cab0
xor ecx, ecx
sub eax, 3
jb 0x40cae0
shl eax, 8
mov al, byte [esi]
inc esi
xor eax, 0xffffffff
je 0x40cb52
mov ebp, eax
add ebx, ebx
jne 0x40caeb
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc ecx, ecx
add ebx, ebx
jne 0x40caf8
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc ecx, ecx
jne 0x40cb1c
inc ecx
add ebx, ebx
jne 0x40cb08
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc ecx, ecx
add ebx, ebx
jae 0x40cafd
jne 0x40cb19
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
jae 0x40cafd
add ecx, 2
cmp ebp, 0xfffff300
adc ecx, 1
lea edx, [edi + ebp]
cmp ebp, 0xfffffffc
jbe 0x40cb3c
mov al, byte [edx]
inc edx
mov byte [edi], al
inc edi
dec ecx
jne 0x40cb2d
jmp 0x40ca9e
mov eax, dword [edx]
add edx, 4
mov dword [edi], eax
add edi, 4
sub ecx, 4
ja 0x40cb3c
add edi, ecx
jmp 0x40ca9e
pop esi
mov edi, esi
mov ecx, 0x169
mov al, byte [edi]
inc edi
sub al, 0xe8
cmp al, 1
ja 0x40cb5a
cmp byte [edi], 1
jne 0x40cb5a
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 0x40cb5f
lea edi, [esi + 0xa000]
mov eax, dword [edi]
or eax, eax
je 0x40cbce
mov ebx, dword [edi + 4]
lea eax, [eax + esi + 0xd31c]
add ebx, esi
push eax
add edi, 8
call dword [esi + 0xd3a8]
xchg ebp, eax
mov al, byte [edi]
inc edi
or al, al
je 0x40cb8c
mov ecx, edi
push edi
dec eax
repne scasb al, byte es:[edi]
push ebp
call dword [esi + 0xd3ac]
or eax, eax
je 0x40cbc8
mov dword [ebx], eax
add ebx, 4
jmp 0x40cba9
call dword [esi + 0xd3b0]
popal
jmp section.UPX0

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 0x10001000
Capabilities:
Access peb ldr_data
Contain obfuscated stackstrings
Get file size
Read file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x60
push ebx
push esi
push edi
xor eax, eax
je 0x10001010
adc dword [edx], esp
xor esi, dword [ebx]
fist dword [ebx + 0x68]
add byte [eax], 0
add byte [edx + 3], ch
xor ebx, ebx
push ebx
push 0x80
push 3
push ebx
push ebx
push 0x80000000
lea eax, [ebp - 0x60]
push eax
mov dword [ebp - 0x60], 0x555c3a43
mov dword [ebp - 0x5c], 0x73726573
mov dword [ebp - 0x58], 0x6275505c
mov dword [ebp - 0x54], 0x5c63696c
mov dword [ebp - 0x50], 0x61647055
mov dword [ebp - 0x4c], 0x435c6574
mov dword [ebp - 0x48], 0x65746e6f
mov dword [ebp - 0x44], 0x545f746e
mov dword [ebp - 0x40], 0x73657079
mov dword [ebp - 0x3c], 0x6c6d782e
mov byte [ebp - 0x38], bl
call dword [sym.imp.KERNEL32.dll_CreateFileA]
push ebx
push eax
mov dword [ebp - 0x14], eax
call dword [sym.imp.KERNEL32.dll_GetFileSize]
mov dword [ebp - 0x10], eax
mov dword [ebp - 4], ebx
mov eax, dword fs:[0x30]
mov eax, dword [eax + 0xc]
mov eax, dword [eax + 0x14]
nop
mov eax, dword [eax]
mov eax, dword [eax]
mov eax, dword [eax + 0x10]
mov dword [ebp - 4], eax
mov esi, dword [sym.imp.KERNEL32.dll_GetProcAddress]
lea eax, [ebp - 0x24]
push eax
push dword [ebp - 4]
mov dword [ebp - 0x24], 0x74726956
mov dword [ebp - 0x20], 0x416c6175
mov dword [ebp - 0x1c], 0x636f6c6c
mov byte [ebp - 0x18], bl
call esi
push 4
push 0x1000
push dword [ebp - 0x10]
push ebx
call eax
push ebx
mov edi, eax
lea eax, [ebp - 8]
push eax
push dword [ebp - 0x10]
push edi
push dword [ebp - 0x14]
call dword [sym.imp.KERNEL32.dll_ReadFile]
push dword [ebp - 0x14]
mov byte [edi], 0xb8
call dword [sym.imp.KERNEL32.dll_CloseHandle]
lea eax, [ebp - 0x34]
push eax
push dword [ebp - 4]
mov dword [ebp - 0x34], 0x74726956
mov dword [ebp - 0x30], 0x506c6175
mov dword [ebp - 0x2c], 0x65746f72
mov word [ebp - 0x28], 0x7463
mov byte [ebp - 0x26], bl
call esi
lea ecx, [ebp - 0xc]
push ecx
push 0x40
push dword [ebp - 0x10]
push edi
call eax
push ebx
push edi
push ebx
call dword [sym.imp.USER32.dll_EnumChildWindows]
pop edi
xor eax, eax
pop esi
inc eax
pop ebx
leave
ret

Function at 0x10004016
Capabilities:
Terminate process

Disassembly:
cmp ecx, dword [0x10009a80]
jne 0x10004020
repz ret
jmp fcn.1000519d
Function at 0x10004e32
Capabilities:
Link many functions at runtime

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x24
mov eax, dword [0x10009a80]
xor eax, ebp
mov dword [ebp - 4], eax
mov eax, dword [ebp + 8]
push ebx
mov dword [ebp - 0x20], eax
mov eax, dword [ebp + 0xc]
push esi
push edi
mov dword [ebp - 0x1c], eax
call fcn.100013b7
and dword [ebp - 0x14], 0
cmp dword [0x1000a45c], 0
mov dword [ebp - 0x18], eax
jne 0x10004ee5
push str.USER32.DLL
call dword [sym.imp.KERNEL32.dll_LoadLibraryW]
mov ebx, eax
test ebx, ebx
je 0x10004f8d
mov edi, dword [sym.imp.KERNEL32.dll_GetProcAddress]
push str.MessageBoxW
push ebx
call edi
test eax, eax
je 0x10004f8d
mov esi, dword [sym.imp.KERNEL32.dll_EncodePointer]
push eax
call esi
push str.GetActiveWindow
push ebx
mov dword [0x1000a45c], eax
call edi
push eax
call esi
push str.GetLastActivePopup
push ebx
mov dword [0x1000a460], eax
call edi
push eax
call esi
push str.GetUserObjectInformationW
push ebx
mov dword [0x1000a464], eax
call edi
push eax
call esi
mov dword [0x1000a46c], eax
test eax, eax
je 0x10004ee5
push str.GetProcessWindowStation
push ebx
call edi
push eax
call esi
mov dword [0x1000a468], eax
mov eax, dword [0x1000a468]
mov ecx, dword [ebp - 0x18]
mov esi, dword [sym.imp.KERNEL32.dll_DecodePointer]
cmp eax, ecx
je 0x10004f3e
cmp dword [0x1000a46c], ecx
je 0x10004f3e
push eax
call esi
push dword [0x1000a46c]
mov edi, eax
call esi
mov ebx, eax
test edi, edi
je 0x10004f3e
test ebx, ebx
je 0x10004f3e
call edi
test eax, eax
je 0x10004f35
lea ecx, [ebp - 0x24]
push ecx
push 0xc
lea ecx, [ebp - 0x10]
push ecx
push 1
push eax
call ebx
test eax, eax
je 0x10004f35
test byte [ebp - 8], 1
jne 0x10004f3e
or dword [ebp + 0x10], 0x200000
jmp 0x10004f71
mov eax, dword [0x1000a460]
cmp eax, dword [ebp - 0x18]
je 0x10004f71
push eax
call esi
test eax, eax
je 0x10004f71
call eax
mov dword [ebp - 0x14], eax
test eax, eax
je 0x10004f71
mov eax, dword [0x1000a464]
cmp eax, dword [ebp - 0x18]
je 0x10004f71
push eax
call esi
test eax, eax
je 0x10004f71
push dword [ebp - 0x14]
call eax
mov dword [ebp - 0x14], eax
push dword [0x1000a45c]
call esi
test eax, eax
je 0x10004f8d
push dword [ebp + 0x10]
push dword [ebp - 0x1c]
push dword [ebp - 0x20]
push dword [ebp - 0x14]
call eax
jmp 0x10004f8f
xor eax, eax
mov ecx, dword [ebp - 4]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.10004016
leave
ret
Function at 0x40c050
Capabilities:
Read file on windows

Disassembly:
push ebx
push edi
push esi
push eax
mov eax, dword [edx + 0xc]
mov ebx, dword [edx + 0x10]
mov edi, edx
mov esi, ecx
cmp eax, ebx
jb 0x40c090
mov eax, dword [edi + 4]
mov ecx, dword [edi + 8]
mov dword [esp], 0
mov edx, esp
push 0
push edx
push ecx
push eax
push dword [edi]
call sub.KERNEL32.dll_ReadFile
test eax, eax
je 0x40c0af
mov ebx, dword [esp]
xor eax, eax
mov dword [edi + 0x10], ebx
mov dword [edi + 0xc], 0
mov edx, dword [edi + 8]
cmp edx, ebx
jb 0x40c0d4
sub ebx, eax
add eax, dword [edi + 4]
mov dword [esi + 4], eax
mov dword [esi + 8], ebx
mov dword [esi], 0
add esp, 4
pop esi
pop edi
pop ebx
ret
xor ebx, ebx
call sub.KERNEL32.dll_GetLastError
cmp eax, 0x6d
je 0x40c084
cmp eax, 0xe8
je 0x40c084
mov dword [esi + 8], eax
mov dword [esi + 4], 0
mov dword [esi], 1
jmp 0x40c0a8
mov ecx, ebx
call fcn.0040ff00
ud2
Function at 0x40d250
Capabilities:
Read file on windows

Disassembly:
push ebp
mov ebp, esp
push ebx
push edi
push esi
and esp, 0xfffffff8
sub esp, 0x58
mov esi, esp
mov dword [esi + 0x40], ebp
mov dword [esi + 0x44], esp
mov dword [esi + 0x50], 0xffffffff
mov dword [esi + 0x4c], 0x4363e0
mov dword [esi + 0xc], ecx
mov eax, dword [ebp + 8]
mov ebx, edx
mov ecx, dword fs:[0]
mov dword [esi + 8], ebx
mov dword [esi + 0x48], ecx
lea ecx, [esi + 0x48]
mov dword fs:[0], ecx
mov ecx, dword [edx + 8]
mov dword [esi + 0x38], edx
mov dword [esi + 0x3c], ecx
mov edi, ecx
mov dword [esi + 4], ecx
mov eax, dword [eax]
mov dword [esi + 0x18], edx
mov edx, ecx
mov dword [esi + 0x1c], ecx
mov dword [esi + 0x14], eax
cmp edi, edx
jne 0x40d2e0
mov dword [esi + 0x10], edi
mov dword [esi + 0x50], 2
mov ecx, ebx
mov dword [esi + 0x34], edx
push 0x20
call fcn.0040d120
add esp, 4
mov ebx, dword [esi + 8]
mov ecx, dword [esi + 0x34]
mov edx, dword [ebx + 4]
cmp edx, ecx
mov dword [ebx + 8], edx
jb 0x40d41d
mov edi, dword [esi + 0x10]
mov eax, edx
sub eax, edi
jb 0x40d40d
mov ecx, dword [ebx]
mov dword [esi + 0x28], 0
add ecx, edi
push 0
lea edx, [esi + 0x28]
push edx
push eax
push ecx
mov eax, dword [esi + 0x14]
push dword [eax]
call sub.KERNEL32.dll_ReadFile
test eax, eax
je 0x40d320
mov eax, dword [esi + 0x28]
test eax, eax
je 0x40d335
add edi, eax
mov dword [esi + 0x1c], edi
mov edx, dword [ebx + 8]
cmp edi, edx
je 0x40d2b0
jmp 0x40d2e0
call sub.KERNEL32.dll_GetLastError
cmp eax, 0xe8
je 0x40d335
cmp eax, 0x6d
jne 0x40d3fc
mov ecx, dword [esi + 4]
mov ebx, edi
mov edx, edi
xor eax, eax
xor edi, edi
sub ebx, ecx
mov dword [esi + 0x28], edi
mov dword [esi + 0x14], edi
mov edi, dword [esi + 8]
mov dword [esi + 0x10], eax
mov dword [esi + 0x30], eax
mov eax, edx
mov dword [esi + 0x2c], ebx
sub eax, ecx
mov dword [edi + 8], edx
jb 0x40d424
mov edx, dword [edi]
add edx, ecx
lea ecx, [esi + 0x18]
push eax
call fcn.004121d0
add esp, 4
cmp dword [esi + 0x18], 1
jne 0x40d391
cmp dword [esi + 0x14], 0
je 0x40d3ab
mov eax, dword [esi + 0xc]
mov ecx, dword [esi + 0x10]
mov dword [eax + 4], ebx
mov dword [eax + 8], ecx
mov dword [eax], 1
jmp 0x40d3e2
mov ecx, dword [edi + 8]
mov eax, dword [esi + 0x30]
mov edx, dword [esi + 0xc]
movsd xmm0, qword [esi + 0x28]
mov dword [esi + 0x3c], ecx
mov dword [edx + 8], eax
movsd qword [edx], xmm0
jmp 0x40d3e8
mov byte [esi + 3], 0
mov dword [esi + 0x50], 1
lea ecx, [esi + 0x18]
mov edx, 0xc
push 0x22
push str.stream_did_not_contain_valid_UTF_8_rPath_does_not_exist_or_you_dont_have_access_
call fcn.0040bd10
add esp, 8
mov eax, dword [esi + 0x18]
mov edx, dword [esi + 0xc]
mov ecx, dword [esi + 0x1c]
mov dword [edx + 8], ecx
mov dword [edx + 4], eax
mov dword [edx], 1
mov edi, dword [esi + 8]
mov ecx, dword [esi + 4]
mov dword [edi + 8], ecx
mov eax, dword [esi + 0x48]
mov dword fs:[0], eax
lea esp, [ebp - 0xc]
pop esi
pop edi
pop ebx
pop ebp
ret
mov ecx, dword [esi + 4]
mov edx, edi
xor ebx, ebx
mov edi, 1
jmp 0x40d342
mov ecx, edi
mov dword [esi + 0x50], 2
call fcn.00410500
jmp 0x40d422
call fcn.00410500
ud2
mov byte [esi + 3], 1
mov dword [esi + 0x50], 1
call fcn.00410500
jmp 0x40d422
Function at 0x40d990
Capabilities:
Delete directory

Disassembly:
push ebp
mov ebp, esp
push ebx
push edi
push esi
and esp, 0xfffffff8
sub esp, 0x90
mov esi, ecx
push dword [ebp + 8]
push edx
call fcn.00428220
add esp, 8
mov ebx, eax
mov edi, edx
lea eax, [esp + 0x14]
mov dword [esp + 0x20], 0
mov dword [esp + 0x30], 0
mov word [esp + 0x34], 0
mov dword [esp + 0x24], 7
mov dword [esp + 0x28], 0
mov dword [esp + 0x2c], 0
mov dword [esp + 0x1c], 0
mov dword [esp + 0x18], 1
mov dword [esp + 0x14], 0x2200000
lea ecx, [esp + 8]
mov edx, ebx
push eax
push edi
call fcn.00428520
add esp, 8
cmp dword [esp + 8], 1
jne 0x40da1d
mov ecx, dword [esp + 0xc]
mov eax, dword [esp + 0x10]
jmp 0x40da49
mov dword [esp + 4], esi
mov esi, dword [esp + 0xc]
lea ecx, [esp + 0x38]
mov edx, esi
call fcn.00428710
push esi
call sub.KERNEL32.dll_CloseHandle
cmp dword [esp + 0x38], 1
jne 0x40da56
mov eax, dword [esp + 0x40]
mov ecx, dword [esp + 0x3c]
mov esi, dword [esp + 4]
mov dword [esi], ecx
mov dword [esi + 4], eax
lea esp, [ebp - 0xc]
pop esi
pop edi
pop ebx
pop ebp
ret
test dword [esp + 0x58], 0x400
je 0x40da91
mov eax, dword [esp + 0x74]
and eax, 0x20000000
je 0x40da91
lea ecx, [esp + 0x38]
mov edx, ebx
push edi
call fcn.004252a0
add esp, 4
cmp dword [esp + 0x38], 1
jne 0x40daa2
movsd xmm0, qword [esp + 0x3c]
mov eax, dword [esp + 4]
movsd qword [eax], xmm0
jmp 0x40da4e
mov ecx, dword [esp + 4]
mov edx, ebx
push edi
call fcn.0042e5c0
add esp, 4
jmp 0x40da4e
mov esi, dword [esp + 0x3c]
mov edi, dword [esp + 0x40]
push esi
call sub.KERNEL32.dll_RemoveDirectoryW
test eax, eax
je 0x40dac1
mov eax, dword [esp + 4]
mov byte [eax], 3
test edi, edi
jne 0x40dadb
jmp 0x40da4e
call sub.KERNEL32.dll_GetLastError
mov ecx, dword [esp + 4]
mov dword [ecx + 4], eax
mov dword [ecx], 0
test edi, edi
je 0x40da4e
call sub.KERNEL32.dll_GetProcessHeap
push esi
push 0
push eax
call sub.KERNEL32.dll_HeapFree
jmp 0x40da4e
Function at 0x40dbc0
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
push ebx
push edi
push esi
and esp, 0xfffffff8
sub esp, 0x38
mov esi, esp
mov dword [esi + 0x20], ebp
mov dword [esi + 0x24], esp
mov dword [esi + 0x30], 0xffffffff
mov dword [esi + 0x2c], 0x436420
mov ebx, dword [ebp + 0xc]
mov edi, dword [ebp + 8]
mov dword [esi + 4], ecx
lea ecx, [esi + 0x28]
mov dword [esi + 0x10], edx
mov eax, dword fs:[0]
mov dword [esi + 0x28], eax
mov dword fs:[0], ecx
test ebx, ebx
je 0x40dc4c
nop word cs:[eax + eax]
nop
mov dword [esi + 8], 0
push 0
lea eax, [esi + 8]
push eax
push ebx
push edi
mov eax, dword [esi + 0x10]
push dword [eax]
call sub.KERNEL32.dll_WriteFile
test eax, eax
je 0x40dc54
mov ecx, dword [esi + 8]
test ecx, ecx
mov dword [esi + 0x18], ecx
mov dword [esi + 0x14], 0
je 0x40dc78
mov eax, ebx
sub eax, ecx
jb 0x40dcb3
add edi, ecx
mov ebx, eax
test ebx, ebx
jne 0x40dc10
mov eax, dword [esi + 4]
mov byte [eax], 3
jmp 0x40dca2
call sub.KERNEL32.dll_GetLastError
mov ecx, dword [esi + 4]
mov dword [esi + 0x1c], eax
mov dword [esi + 0x18], 0
mov dword [esi + 0x14], 1
mov dword [ecx + 4], eax
mov dword [ecx], 0
jmp 0x40dca2
mov dword [esi + 0x30], 0
lea ecx, [esi + 8]
mov edx, 0xe
push 0x1c
push str.failed_to_write_whole_bufferWindows_stdio_in_console_mode_does_not_support_writing_non_UTF_8_byte_sequences
call fcn.0040bd10
add esp, 8
movsd xmm0, qword [esi + 8]
mov eax, dword [esi + 4]
movsd qword [eax], xmm0
mov eax, dword [esi + 0x28]
mov dword fs:[0], eax
lea esp, [ebp - 0xc]
pop esi
pop edi
pop ebx
pop ebp
ret
mov edx, ebx
mov dword [esi + 0x30], 0
call fcn.00410500
ud2
Function at 0x416860
Capabilities:
Link many functions at runtime

Disassembly:
push ebp
mov ebp, esp
push ebx
push edi
push esi
sub esp, 0x28
mov dword [ebp - 0x1c], esp
mov dword [ebp - 0x10], 0xffffffff
mov dword [ebp - 0x14], 0x4364d0
lea eax, [ebp - 0x18]
mov ecx, dword fs:[0]
mov dword [ebp - 0x18], ecx
mov dword fs:[0], eax
push str.api_ms_win_core_synch_l1_2_0.dll
call sub.KERNEL32.dll_GetModuleHandleA
test eax, eax
je 0x4168c7
mov esi, eax
push str.WaitOnAddress
push eax
call sub.KERNEL32.dll_GetProcAddress
test eax, eax
je 0x4168c7
mov ebx, eax
push str.WakeByAddressSingle
push esi
call sub.KERNEL32.dll_GetProcAddress
test eax, eax
je 0x4168c7
mov esi, 1
mov dword [ebp - 0x20], eax
jmp 0x416936
push 0x447838
call sub.KERNEL32.dll_GetModuleHandleA
test eax, eax
je 0x41699a
mov ebx, eax
push str.NtCreateKeyedEvent
push eax
call sub.KERNEL32.dll_GetProcAddress
test eax, eax
je 0x41699a
mov edi, eax
push str.NtReleaseKeyedEvent
push ebx
call sub.KERNEL32.dll_GetProcAddress
test eax, eax
je 0x41699a
mov esi, eax
push str.NtWaitForKeyedEvent
push ebx
call sub.KERNEL32.dll_GetProcAddress
test eax, eax
je 0x41699a
mov dword [ebp - 0x24], eax
mov dword [ebp - 0x20], esi
lea eax, [ebp - 0x34]
push 0
push 0
push 0xc0000000
push eax
call edi
test eax, eax
jne 0x41699a
mov ebx, dword [ebp - 0x34]
xor esi, esi
call sub.KERNEL32.dll_GetProcessHeap
push 0x10
push 0
push eax
call sub.KERNEL32.dll_HeapAlloc
test eax, eax
je 0x4169af
mov dword [eax], esi
mov edi, eax
mov dword [eax + 4], ebx
mov eax, dword [ebp - 0x20]
mov dword [edi + 8], eax
mov eax, dword [ebp - 0x24]
mov dword [edi + 0xc], eax
xor eax, eax
lock cmpxchg dword [0x4529bc], edi
je 0x416987
cmp dword [edi], 0
mov esi, eax
jne 0x416977
push dword [edi + 4]
call sub.KERNEL32.dll_CloseHandle
call sub.KERNEL32.dll_GetProcessHeap
push edi
push 0
push eax
call sub.KERNEL32.dll_HeapFree
mov edi, esi
mov eax, dword [ebp - 0x18]
mov dword fs:[0], eax
mov eax, edi
add esp, 0x28
pop esi
pop edi
pop ebx
pop ebp
ret
mov dword [ebp - 0x2c], 0
mov dword [ebp - 0x10], 0
call fcn.00416de0
ud2
mov ecx, 0x10
mov edx, 4
call fcn.0040dcf0
ud2

Function at 0x417880
Capabilities:
Hash data with md5

Disassembly:
push ebp
push ebx
push edi
push esi
push eax
mov edx, dword [ecx]
mov eax, dword [ecx + 4]
mov dword [esp], ecx
mov ebx, 0x98badcfe
mov edi, 0x10325476
xor ecx, ecx
nop dword [eax]
mov esi, eax
mov ebp, ebx
mov ebx, edx
shrd ebx, eax, cl
shr esi, cl
test cl, 0x20
lea ecx, [ecx + 1]
cmove esi, ebx
mov ebx, 0
and esi, 1
add esi, 0xffffffff
adc ebx, 0xffffffff
and esi, 0xefcdab89
xor esi, edi
and ebx, 0x67452301
xor ebx, ebp
xor esi, 0xefcdab89
xor ebx, 0x67452301
mov edi, esi
shld ebx, esi, 1
shld edi, ebp, 1
cmp ecx, 0x40
jne 0x4178a0
mov ecx, dword [esp]
xor ebx, eax
xor edi, edx
mov dword [ecx], edi
mov dword [ecx + 4], ebx
add esp, 4
pop esi
pop edi
pop ebx
pop ebp
ret