joyce8/EMBER2024-capa huggingface dataset:
Function at 0x418930
Capabilities:
Encode data using xor

Disassembly:
push ecx
mov ecx, dword [esp + 8]
xor eax, eax
xor edx, edx
mov dl, byte [eax + 0x47e928]
inc eax
cmp eax, 0x40
mov dl, byte [edx + ecx - 1]
mov byte [eax + 0x48438b], dl
jl 0x418937
push ebx
push ebp
push esi
push edi
mov ecx, 8
mov esi, 0x4843ac
mov edi, 0x48434c
xor edx, edx
rep movsd dword es:[edi], dword [esi]
mov dword [esp + 0x10], edx
mov ebp, 0x2d0
mov eax, dword [esp + 0x1c]
test eax, eax
je 0x418979
mov edx, ebp
mov ecx, 8
mov esi, 0x48434c
mov edi, 0x48430c
xor eax, eax
rep movsd dword es:[edi], dword [esi]
mov bl, byte [edx + eax + 0x48440c]
xor ecx, ecx
mov cl, byte [eax + 0x4843cc]
mov cl, byte [ecx + 0x48434b]
xor cl, bl
mov byte [eax + 0x48428c], cl
inc eax
cmp eax, 0x30
jl 0x41898c
xor edi, edi
mov esi, 0x4842cd
mov ecx, 0x484291
xor edx, edx
xor eax, eax
mov dl, byte [ecx - 5]
mov al, byte [ecx]
add edx, edi
add ecx, 6
add edi, 2
add esi, 4
lea edx, [eax + edx*2]
xor eax, eax
mov al, byte [ecx - 0xa]
lea edx, [eax + edx*2]
xor eax, eax
mov al, byte [ecx - 9]
lea edx, [eax + edx*2]
xor eax, eax
mov al, byte [ecx - 8]
lea edx, [eax + edx*2]
xor eax, eax
mov al, byte [ecx - 7]
mov ebx, eax
xor eax, eax
mov al, byte [ebx + edx*2 + 0x47ea50]
mov edx, eax
sar edx, 3
and dl, 1
mov byte [esi - 5], dl
mov edx, eax
sar edx, 2
and dl, 1
mov byte [esi - 4], dl
mov edx, eax
sar edx, 1
and dl, 1
and al, 1
mov byte [esi - 3], dl
mov byte [esi - 2], al
cmp ecx, 0x4842c1
jl 0x4189bb
xor eax, eax
mov bl, byte [eax + 0x48438c]
xor ecx, ecx
mov cl, byte [eax + 0x47ec50]
mov dl, byte [ecx + 0x4842cb]
xor dl, bl
mov byte [eax + 0x48434c], dl
inc eax
cmp eax, 0x20
jl 0x418a29
mov edx, dword [esp + 0x10]
sub ebp, 0x30
mov ecx, 8
mov esi, 0x48430c
mov edi, 0x48438c
add edx, 0x30
cmp ebp, 0xffffffd0
mov dword [esp + 0x10], edx
rep movsd dword es:[edi], dword [esi]
jg 0x41896f
xor eax, eax
mov dl, byte [eax + 0x48434c]
xor ecx, ecx
mov cl, byte [eax + 0x48438c]
mov byte [eax + 0x48438c], dl
mov byte [eax + 0x48434c], cl
inc eax
cmp eax, 0x20
jl 0x418a75
mov ecx, 8
mov esi, 0x48434c
mov edi, 0x4843ac
xor eax, eax
rep movsd dword es:[edi], dword [esi]
inc eax
lea ecx, [eax + 0x20]
cmp ecx, 0x40
jl 0x418aa8
mov eax, dword [esp + 0x18]
mov ecx, 0x47e968
sub ecx, eax
mov esi, 0x40
xor edx, edx
mov dl, byte [ecx + eax]
inc eax
dec esi
mov dl, byte [edx + 0x48438b]
mov byte [eax - 1], dl
jne 0x418ac1
pop edi
pop esi
pop ebp
pop ebx
pop ecx
ret

Function at 0x418d30
Capabilities:
Encode data using xor

Disassembly:
mov eax, dword [esp + 4]
mov ecx, dword [esp + 8]
push ebx
push esi
sub ecx, eax
mov esi, 8
mov dl, byte [ecx + eax]
mov bl, byte [eax]
xor bl, dl
mov byte [eax], bl
inc eax
dec esi
jne 0x418d41
pop esi
pop ebx
ret
Function at 0x419160
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x14
or byte [ebp - 8], 0xff
push ebx
push esi
push edi
mov esi, pe_nt_image_headers32
xor edi, edi
cmp dword [ebp + 0xc], esi
mov dword [ebp - 4], edi
mov byte [ebp - 0x14], 0xa7
mov byte [ebp - 0x13], 0x92
mov byte [ebp - 0x12], 0x98
mov byte [ebp - 0x11], 0xbb
mov byte [ebp - 0x10], 0x23
mov byte [ebp - 0xf], 0xcb
mov byte [ebp - 0xe], 0x88
mov byte [ebp - 0xd], 0x29
mov byte [ebp - 0xc], 0x30
mov byte [ebp - 0xb], 9
mov byte [ebp - 0xa], 0x5e
mov byte [ebp - 9], 0x70
mov byte [ebp - 7], 0x6a
mov byte [ebp - 6], 0xcf
mov byte [ebp - 5], 0x1b
jne 0x419259
cmp dword [ebp + 0x14], edi
je 0x419259
xor eax, eax
inc eax
sub eax, dword [ebp + 8]
mov dword [ebp + 0xc], eax
mov eax, dword [ebp + 8]
push 0x10
pop ebx
lea ecx, [edi + eax]
mov eax, edi
cdq
idiv ebx
movzx eax, byte [ebp + edx - 0x14]
mov edx, dword [ebp + 0xc]
add edx, ecx
imul eax, edx
xor edx, edx
div dword [ebp + 0x14]
mov eax, dword [ebp + 0x10]
inc edi
cmp edi, esi
mov al, byte [edx + eax]
mov byte [ecx], al
jl 0x4191ce
mov edi, dword [ebp + 8]
xor ecx, ecx
mov eax, ecx
mov ebx, 0x80
cdq
idiv ebx
mov al, byte [edx + 0x47ec70]
xor byte [ecx + edi], al
inc ecx
cmp ecx, esi
jl 0x419200
push 0x10
pop ebx
push ebx
call fcn.0042b7c4
pop ecx
mov ecx, eax
test ecx, ecx
mov dword [ebp + 8], ecx
je 0x419259
xor eax, eax
mov dl, byte [eax + 0x47ec90]
xor dl, byte [ebp + eax - 0x14]
mov byte [ecx + eax], dl
inc eax
cmp eax, ebx
jb 0x41922d
push edi
push esi
push edi
push ebx
push ebx
push ecx
push 6
call fcn.004198f4
test eax, eax
je 0x419260
push dword [ebp + 8]
call fcn.0042b0c7
pop ecx
xor al, al
pop edi
pop esi
pop ebx
leave
ret
push esi
call fcn.0042b7c4
test eax, eax
pop ecx
mov dword [ebp + 0x14], eax
je 0x419259
lea ecx, [ebp - 4]
push ecx
push eax
push esi
push edi
push 2
call fcn.00419880
test eax, eax
je 0x419284
xor bl, bl
jmp 0x41929c
push edi
push esi
push edi
push dword [ebp + 0x14]
push ebx
push ebx
push dword [ebp + 8]
push 5
call fcn.004197dd
test eax, eax
jne 0x419280
mov bl, 1
push dword [ebp + 8]
call fcn.0042b0c7
push dword [ebp + 0x14]
call fcn.0042b0c7
pop ecx
mov al, bl
pop ecx
jmp 0x41925b
Function at 0x4192b2
Capabilities:
Authenticate hmac
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x14
push ebx
push esi
mov esi, pe_nt_image_headers32
xor ecx, ecx
cmp dword [ebp + 0xc], esi
push edi
mov dword [ebp - 4], ecx
mov byte [ebp - 0x14], 0xe2
mov byte [ebp - 0x13], 0x36
mov byte [ebp - 0x12], 0x1d
mov byte [ebp - 0x11], 0xcd
mov byte [ebp - 0x10], 0x74
mov byte [ebp - 0xf], 0x4e
mov byte [ebp - 0xe], 0xf9
mov byte [ebp - 0xd], 0x3a
mov byte [ebp - 0xc], 0x50
mov byte [ebp - 0xb], 0x86
mov byte [ebp - 0xa], 0xde
mov byte [ebp - 9], 0x84
mov byte [ebp - 8], 0x8b
mov byte [ebp - 7], 0x75
mov byte [ebp - 6], 0x83
mov byte [ebp - 5], 0x5c
jne 0x41939d
cmp dword [ebp + 0x14], ecx
je 0x41939d
mov edi, dword [ebp + 8]
mov eax, ecx
push 0x10
cdq
pop ebx
idiv ebx
movzx eax, byte [ebp + edx - 0x14]
imul eax, ecx
xor edx, edx
div dword [ebp + 0x14]
mov eax, dword [ebp + 0x10]
mov al, byte [edx + eax]
mov byte [ecx + edi], al
inc ecx
cmp ecx, esi
jl 0x41931a
xor ecx, ecx
mov eax, ecx
mov ebx, 0x80
cdq
idiv ebx
mov al, byte [edx + 0x47ecf0]
xor byte [ecx + edi], al
inc ecx
cmp ecx, esi
jl 0x41933f
push 0x10
pop ebx
push ebx
call fcn.0042b7c4
pop ecx
mov ecx, eax
test ecx, ecx
mov dword [ebp + 0x14], ecx
je 0x41939d
xor eax, eax
mov dl, byte [eax + 0x47ed10]
xor dl, byte [ebp + eax - 0x14]
mov byte [ecx + eax], dl
inc eax
cmp eax, ebx
jb 0x41936c
inc eax
cmp eax, ebx
jb 0x41936a
push edi
push esi
push edi
push ebx
push ebx
push ecx
push 5
call fcn.004198f4
test eax, eax
je 0x4193a4
push dword [ebp + 0x14]
call fcn.0042b0c7
pop ecx
xor al, al
pop edi
pop esi
pop ebx
leave
ret
push esi
call fcn.0042b7c4
test eax, eax
pop ecx
mov dword [ebp + 0xc], eax
je 0x41939d
lea ecx, [ebp - 4]
push ecx
push eax
push esi
push edi
push 3
call fcn.00419880
test eax, eax
je 0x4193c8
xor bl, bl
jmp 0x4193e0
push edi
push esi
push edi
push dword [ebp + 0xc]
push ebx
push ebx
push dword [ebp + 0x14]
push 6
call fcn.004197dd
test eax, eax
jne 0x4193c4
mov bl, 1
push dword [ebp + 0x14]
call fcn.0042b0c7
push dword [ebp + 0xc]
call fcn.0042b0c7
pop ecx
mov al, bl
pop ecx
jmp 0x41939f
Function at 0x4197dd
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x400
mov eax, dword [ebp + 0x20]
push ebx
push edi
push 8
pop ebx
xor edx, edx
mov ecx, ebx
div ecx
test edx, edx
mov edi, eax
je 0x419801
mov eax, 0x1000e
jmp 0x41987a
cmp dword [ebp + 8], 5
jb 0x419829
cmp dword [ebp + 8], 6
ja 0x419829
lea eax, [ebp - 0x400]
push eax
push dword [ebp + 0x10]
push dword [ebp + 0xc]
call fcn.004199b5
add esp, 0xc
mov dword [ebp + 0x10], 0x41996a
test edi, edi
je 0x419878
push esi
mov esi, dword [ebp + 0x18]
sub esi, dword [ebp + 0x1c]
mov dword [ebp + 0x20], edi
mov edi, dword [ebp + 0x24]
mov eax, dword [ebp + 0x1c]
mov ecx, edi
sub ecx, eax
mov dword [ebp + 8], ebx
mov dl, byte [esi + eax]
xor dl, byte [eax]
mov byte [ecx + eax], dl
inc eax
dec dword [ebp + 8]
jne 0x419844
push edi
lea eax, [ebp - 0x400]
push edi
push eax
call dword [ebp + 0x10]
push ebx
push edi
push dword [ebp + 0x18]
call fcn.0042cf40
add dword [ebp + 0x1c], ebx
add esp, 0x18
sub esi, ebx
add edi, ebx
dec dword [ebp + 0x20]
jne 0x41983a
pop esi
xor eax, eax
pop edi
pop ebx
leave
ret 0x20

Function at 0x41a232
Capabilities:
Hash data with md5

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x58
push dword [ebp + 0xc]
and dword [ebp - 0x44], 0
and dword [ebp - 0x48], 0
lea eax, [ebp - 0x58]
push dword [ebp + 8]
mov dword [ebp - 0x58], 0x67452301
mov dword [ebp - 0x54], 0xefcdab89
mov dword [ebp - 0x50], 0x98badcfe
push eax
mov dword [ebp - 0x4c], 0x10325476
call fcn.00419a59
lea eax, [ebp - 0x58]
push eax
push dword [ebp + 0x10]
call fcn.00419af7
add esp, 0x14
leave
ret 0xc

Function at 0x41ac44
Capabilities:
Hash data with md5

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x58
push dword [ebp + 0xc]
and dword [ebp - 0x48], 0
and dword [ebp - 0x44], 0
lea eax, [ebp - 0x58]
push dword [ebp + 8]
mov dword [ebp - 0x58], 0x67452301
mov dword [ebp - 0x54], 0xefcdab89
mov dword [ebp - 0x50], 0x98badcfe
push eax
mov dword [ebp - 0x4c], 0x10325476
call fcn.0041ab21
lea eax, [ebp - 0x58]
push eax
push dword [ebp + 0x10]
call fcn.0041abc1
add esp, 0x14
leave
ret 0xc

Function at 0x41db08
Capabilities:
Encode data using xor

Disassembly:
push esi
mov esi, dword [esp + 0xc]
shr esi, 2
je 0x41db3b
mov ecx, dword [esp + 8]
mov eax, dword [ecx]
mov edx, eax
shl edx, 8
shr eax, 8
xor eax, edx
and eax, 0xff00ff
xor eax, edx
mov edx, eax
shr edx, 0x10
shl eax, 0x10
or edx, eax
mov dword [ecx], edx
add ecx, 4
dec esi
jne 0x41db16
pop esi
ret

Function at 0x41db3d
Capabilities:
Hash data using sha1

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x60
push 0x60
lea eax, [ebp - 0x60]
push 0
push eax
call fcn.0042d280
push dword [ebp + 0xc]
and dword [ebp - 0x48], 0
and dword [ebp - 0x4c], 0
lea eax, [ebp - 0x60]
push dword [ebp + 8]
mov dword [ebp - 0x60], 0x67452301
mov dword [ebp - 0x5c], 0xefcdab89
mov dword [ebp - 0x58], 0x98badcfe
push eax
mov dword [ebp - 0x54], 0x10325476
mov dword [ebp - 0x50], 0xc3d2e1f0
call fcn.0041d9b8
lea eax, [ebp - 0x60]
push eax
push dword [ebp + 0x10]
call fcn.0041da6e
add esp, 0x20
leave
ret 0xc
Function at 0x4352d0
Capabilities:
Check if file exists
Get file attributes

Disassembly:
push dword [esp + 4]
call dword [sym.imp.KERNEL32.dll_GetFileAttributesA]
cmp eax, 0xffffffff
jne 0x4352f0
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
call fcn.0042e3a6
pop ecx
or eax, 0xffffffff
ret
test al, 1
je 0x435313
test byte [esp + 8], 2
je 0x435313
call fcn.0042e419
mov dword [eax], 0xd
call fcn.0042e422
mov dword [eax], 5
jmp 0x4352ec
xor eax, eax
ret

Function at 0x44485d
Capabilities:
Get graphical window text

Disassembly:
push esi
mov esi, ecx
mov ecx, dword [esi + 0x38]
test ecx, ecx
jne 0x444895
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.00448253
push eax
push dword [esi + 0x1c]
call dword [sym.imp.USER32.dll_GetWindowTextA]
mov ecx, dword [esp + 8]
push 0xffffffffffffffff
call fcn.0044822b
jmp 0x4448a1
mov eax, dword [ecx]
push dword [esp + 8]
call dword [eax + 0x88]
pop esi
ret 4

Function at 0x44665f
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 0x4466a1
call fcn.004571ca
mov esi, dword [eax + 0xc]
push 0xf0
push dword [esp + 0x14]
push esi
call dword [sym.imp.KERNEL32.dll_FindResourceA]
cmp eax, edi
je 0x4466a1
push eax
push esi
call dword [sym.imp.KERNEL32.dll_LoadResource]
cmp eax, edi
jne 0x446698
xor eax, eax
jmp 0x4466a9
push eax
call dword [sym.imp.KERNEL32.dll_LockResource]
mov edi, eax
push edi
mov ecx, ebx
call fcn.004466af
pop edi
pop esi
pop ebx
ret 4
Function at 0x449cd8
Capabilities:
Check if file exists
Get file attributes
Set file attributes

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x24
push ebx
push edi
push dword [ebp + 8]
xor edi, edi
mov dword [ebp - 0xc], edi
mov dword [ebp - 8], edi
call dword [sym.imp.KERNEL32.dll_GetFileAttributesA]
mov ebx, dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0xffffffff
mov dword [ebp - 4], eax
jne 0x449d08
push edi
call ebx
push eax
call fcn.0044a23f
push esi
mov esi, dword [ebp + 0xc]
movzx eax, byte [esi + 0x10]
cmp eax, dword [ebp - 4]
je 0x449d32
test byte [ebp - 4], 1
je 0x449d32
push eax
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.dll_SetFileAttributesA]
test eax, eax
jne 0x449d32
push edi
call ebx
push eax
call fcn.0044a23f
cmp dword [esi + 4], edi
lea eax, [esi + 4]
je 0x449dd8
lea ecx, [ebp - 0x24]
push ecx
push eax
call fcn.00449c25
cmp dword [esi + 8], edi
lea eax, [esi + 8]
pop ecx
pop ecx
je 0x449d64
lea ecx, [ebp - 0x14]
push ecx
push eax
call fcn.00449c25
pop ecx
lea eax, [ebp - 0x14]
pop ecx
mov dword [ebp - 8], eax
cmp dword [esi], edi
je 0x449d7a
lea eax, [ebp - 0x1c]
push eax
push esi
call fcn.00449c25
pop ecx
lea eax, [ebp - 0x1c]
pop ecx
mov dword [ebp - 0xc], eax
push edi
push 0x80
push 3
push edi
push 1
push 0xc0000000
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.dll_CreateFileA]
mov edi, eax
cmp edi, 0xffffffff
jne 0x449da4
push 0
call ebx
push eax
call fcn.0044a23f
lea eax, [ebp - 0x24]
push eax
push dword [ebp - 8]
push dword [ebp - 0xc]
push edi
call dword [sym.imp.KERNEL32.dll_SetFileTime]
test eax, eax
jne 0x449dc2
push eax
call ebx
push eax
call fcn.0044a23f
push edi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
test eax, eax
jne 0x449dd6
push eax
call ebx
push eax
call fcn.0044a23f
xor edi, edi
movzx eax, byte [esi + 0x10]
cmp eax, dword [ebp - 4]
pop esi
je 0x449dff
test byte [ebp - 4], 1
jne 0x449dff
push eax
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.dll_SetFileAttributesA]
test eax, eax
jne 0x449dff
push edi
call ebx
push eax
call fcn.0044a23f
pop edi
pop ebx
leave
ret 8

Function at 0x454a80
Capabilities:
Access peb ldr_data
Get kernel32 base address
Get process heap flags

Disassembly:
mov eax, 0x46270b
call fcn.0042d38c
push ecx
push ebx
push esi
mov esi, ecx
push edi
mov dword [ebp - 0x10], esi
call fcn.0044a663
mov eax, dword [ebp + 0x18]
lea ebx, [esi + 0x24]
mov dword [esi + 0x1c], eax
mov eax, dword [0x47f244]
xor edi, edi
mov dword [ebx], eax
mov dword [ebp - 4], edi
push dword [ebp + 0x10]
lea ecx, [esi + 0xc]
mov byte [ebp - 4], 1
mov dword [esi], 0x4688b8
call fcn.00447f35
push dword [ebp + 0x14]
mov ecx, ebx
call fcn.00447f35
mov eax, dword [ebp + 8]
mov ecx, dword [ebp - 0xc]
mov dword [esi + 0x14], eax
mov eax, dword [ebp + 0x1c]
mov dword [esi + 0x18], eax
mov dword [esi + 0x3c], edi
mov dword [esi + 0x30], edi
mov dword [esi + 0x34], edi
mov dword [esi + 0x38], edi
mov dword [esi + 0x28], edi
mov dword [esi + 0x2c], edi
mov dword [esi + 0x40], edi
mov eax, esi
pop edi
pop esi
pop ebx
mov dword fs:[0], ecx
leave
ret 0x18
Function at 0x454b1c
Capabilities:
Access peb ldr_data
Get kernel32 base address

Disassembly:
mov eax, 0x462733
call fcn.0042d38c
push ecx
push ebx
push esi
mov esi, ecx
push edi
mov dword [ebp - 0x10], esi
call fcn.0044a663
mov eax, dword [0x47f244]
lea ebx, [esi + 0x24]
xor edi, edi
mov dword [ebp - 4], edi
mov dword [ebx], eax
mov eax, dword [ebp + 0x10]
mov dword [esi], 0x4688b8
mov ecx, 0x486350
mov byte [ebp - 4], 1
push dword [eax + 0xc]
push dword [ebp + 8]
call fcn.004545a6
push dword [ebp + 0xc]
lea ecx, [esi + 0xc]
call fcn.00447f35
mov ecx, dword [ebp + 0x10]
mov eax, dword [ecx + 8]
mov dword [esi + 0x1c], eax
lea eax, [ebp + 0x10]
push eax
call fcn.0041ef47
push eax
mov ecx, ebx
mov byte [ebp - 4], 2
call fcn.00447ee5
lea ecx, [ebp + 0x10]
mov byte [ebp - 4], 1
call fcn.00447dac
mov eax, dword [ebp + 8]
mov ecx, dword [ebp - 0xc]
mov dword [esi + 0x14], eax
mov eax, dword [ebp + 0x14]
mov dword [esi + 0x18], eax
mov dword [esi + 0x3c], edi
mov dword [esi + 0x30], edi
mov dword [esi + 0x34], edi
mov dword [esi + 0x38], edi
mov dword [esi + 0x28], edi
mov dword [esi + 0x2c], edi
mov dword [esi + 0x40], edi
mov eax, esi
pop edi
pop esi
pop ebx
mov dword fs:[0], ecx
leave
ret 0x10
Function at 0x401088
Capabilities:
Check if file exists
Check mutex on windows

Disassembly:
push 0x482bbc
push 0
push 0x100000
call dword [sym.imp.kernel32.dll_OpenMutexW]
test eax, eax
je 0x4010a9
push eax
call dword [sym.imp.kernel32.dll_CloseHandle]
xor eax, eax
inc eax
ret
call dword [sym.imp.kernel32.dll_GetLastError]
cmp eax, 2
jne 0x4010a5
xor eax, eax
ret

Function at 0x4010b7
Capabilities:
Check if file exists
Check mutex on windows

Disassembly:
push str.GlobalAcro_Update_Mutex
push 0
push 0x100000
call dword [sym.imp.kernel32.dll_OpenMutexW]
test eax, eax
je 0x4010d8
push eax
call dword [sym.imp.kernel32.dll_CloseHandle]
xor eax, eax
inc eax
ret
call dword [sym.imp.kernel32.dll_GetLastError]
cmp eax, 2
jne 0x4010d4
xor eax, eax
ret

Function at 0x409d31
Capabilities:
Get disk information

Disassembly:
push edi
mov ecx, esi
xor edi, edi
call fcn.00408157
cmp dword [esi + 4], edi
jne 0x409d44
xor eax, eax
pop edi
ret
mov ecx, esi
call fcn.00408157
cmp dword [esi + 4], 1
jne 0x409d6e
push edi
mov ecx, esi
call fcn.00447b4e
movzx eax, ax
push eax
call fcn.00447b4e
add esp, 4
test al, al
je 0x409d6e
xor eax, eax
inc eax
pop edi
ret
mov ecx, esi
call fcn.00408157
cmp dword [esi + 4], 3
jne 0x409dd3
push edi
mov ecx, esi
call fcn.00447b4e
movzx eax, ax
push eax
call dword [sym.imp.MSVCR100.dll_iswalpha]
pop ecx
test eax, eax
je 0x409dd3
push 1
mov ecx, esi
call fcn.00447b4e
cmp ax, 0x3a
jne 0x409dd3
push 2
mov ecx, esi
call fcn.00447b4e
movzx eax, ax
push eax
call fcn.00447b4e
add esp, 4
test al, al
je 0x409dd3
mov ecx, esi
call fcn.00408157
push eax
call dword [sym.imp.kernel32.dll_GetDriveTypeW]
xor ecx, ecx
inc ecx
cmp ecx, eax
sbb eax, eax
neg eax
pop edi
ret
mov ecx, esi
call fcn.00408157
cmp dword [esi + 4], 2
jbe 0x409f09
push 0
mov ecx, esi
call fcn.00447b4e
movzx eax, ax
push eax
call fcn.00447b4e
add esp, 4
test al, al
je 0x409f09
push 1
mov ecx, esi
call fcn.00447b4e
movzx eax, ax
push eax
call fcn.00447b4e
add esp, 4
test al, al
je 0x409f09
push 2
pop edi
push edi
mov ecx, esi
call fcn.00447b4e
movzx eax, ax
push eax
call fcn.00447b4e
add esp, 4
test al, al
jne 0x409d40
mov ecx, esi
inc edi
call fcn.00408157
cmp edi, dword [esi + 4]
jae 0x409e62
push edi
mov ecx, esi
call fcn.00447b4e
movzx eax, ax
push eax
call fcn.00447b4e
add esp, 4
test al, al
je 0x409e3d
mov ecx, esi
call fcn.00408157
cmp dword [esi + 4], edi
je 0x409d40
mov ecx, esi
inc edi
call fcn.00408157
cmp dword [esi + 4], edi
je 0x409d40
push edi
mov ecx, esi
call fcn.00447b4e
movzx eax, ax
push eax
call fcn.00447b4e
add esp, 4
test al, al
jne 0x409d40
mov ecx, esi
inc edi
call fcn.00408157
cmp edi, dword [esi + 4]
jae 0x409ec4
push edi
mov ecx, esi
call fcn.00447b4e
movzx eax, ax
push eax
call fcn.00447b4e
add esp, 4
test al, al
je 0x409e9f
mov ecx, esi
call fcn.00408157
lea eax, [edi + 1]
cmp dword [esi + 4], eax
ja 0x409d40
mov ecx, esi
call fcn.00408157
cmp dword [esi + 4], edi
jne 0x409ef2
movzx eax, word [0x4a69d4]
push eax
mov ecx, esi
call fcn.00447b4e
mov ecx, esi
call fcn.00408157
push eax
call dword [sym.imp.kernel32.dll_GetDriveTypeW]
xor ecx, ecx
inc ecx
cmp ecx, eax
sbb edi, edi
neg edi
mov eax, edi
pop edi
ret
Function at 0x40a354
Capabilities:
Check if file exists

Disassembly:
push 0x49c
mov eax, 0x47383c
call fcn.0043eed3
mov esi, dword [ebp + 8]
mov edi, dword [ebp + 0xc]
mov ecx, esi
call fcn.00408157
xor ebx, ebx
cmp dword [esi + 4], ebx
jne 0x40a381
mov eax, 0xffffe89d
jmp 0x40a5ac
push ebx
push 0xffffffffffffffff
push 0x484ce8
lea ecx, [ebp - 0x488]
call fcn.00408d63
push ebx
lea eax, [ebp - 0x488]
push eax
mov ecx, esi
mov dword [ebp - 4], ebx
call fcn.00409afc
cmp eax, 0xffffffff
setne bl
or dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x478]
call fcn.004035af
lea ecx, [ebp - 0x480]
call fcn.004035af
test bl, bl
je 0x40a3d4
mov eax, 0xffffe8c2
jmp 0x40a5ac
mov ecx, esi
call fcn.00408157
mov ebx, dword [sym.imp.kernel32.dll_FindFirstFileW]
lea ecx, [ebp - 0x46c]
push ecx
push eax
call ebx
mov dword [ebp - 0x470], eax
cmp eax, 0xffffffff
jne 0x40a50c
mov ecx, esi
call fcn.00408157
lea ecx, [ebp - 0x48c]
push ecx
lea ecx, [ebp - 0x21c]
push ecx
mov esi, 0x105
push esi
push eax
call dword [sym.imp.kernel32.dll_GetFullPathNameW]
mov dword [ebp - 0x470], eax
test eax, eax
jne 0x40a42c
inc eax
jmp 0x40a5ac
cmp eax, esi
jbe 0x40a43a
mov eax, 0xffffe8c1
jmp 0x40a5ac
push eax
lea eax, [ebp - 0x21c]
push eax
lea ecx, [ebp - 0x488]
call fcn.00408613
lea esi, [ebp - 0x488]
mov dword [ebp - 4], 1
call fcn.00409d31
test eax, eax
je 0x40a499
xor eax, eax
mov dword [edi], 2
mov dword [edi + 4], eax
mov dword [edi + 0x10], eax
mov dword [edi + 0x14], eax
mov dword [edi + 8], eax
mov dword [edi + 0xc], eax
xor esi, esi
lea ecx, [ebp - 0x478]
call fcn.004035af
lea ecx, [ebp - 0x480]
call fcn.004035af
mov eax, esi
jmp 0x40a5ac
mov ecx, dword [ebp - 0x470]
lea ecx, [ebp + ecx*2 - 0x21e]
movzx eax, word [ecx]
push eax
call fcn.00447b4e
add esp, 4
test al, al
jne 0x40a4d2
call dword [sym.imp.kernel32.dll_GetLastError]
cmp eax, 2
je 0x40a4cb
cmp eax, 3
je 0x40a4cb
xor esi, esi
inc esi
jmp 0x40a47c
mov esi, 0xffffe8c2
jmp 0x40a47c
xor eax, eax
mov word [ecx], ax
lea eax, [ebp - 0x46c]
push eax
lea eax, [ebp - 0x21c]
push eax
call ebx
mov dword [ebp - 0x470], eax
cmp eax, 0xffffffff
je 0x40a4b6
or dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x478]
call fcn.004035af
lea ecx, [ebp - 0x480]
call fcn.004035af
push dword [ebp - 0x470]
call dword [sym.imp.kernel32.dll_FindClose]
test byte [ebp - 0x46c], 0x10
push 0
pop eax
setne al
xor ebx, ebx
inc eax
mov dword [edi], eax
cmp dword [ebp - 0x450], ebx
je 0x40a560
push ebx
push 0xffffffffffffffff
push str.file_size_larger_than_4GB_encountered
lea ecx, [ebp - 0x4a4]
mov dword [ebp - method.RSException.virtual_0], vtable.RSException.0
call fcn.00408d63
push 0x493cfc
lea eax, [ebp - 0x4a8]
push eax
call sub.MSVCR100.dll__CxxThrowException
mov eax, dword [ebp - 0x44c]
mov dword [edi + 4], eax
lea esi, [edi + 0x10]
lea eax, [ebp - 0x458]
push esi
push eax
call fcn.00447b4e
pop ecx
pop ecx
cmp dword [ebp - 0x468], ebx
jne 0x40a598
cmp dword [ebp - 0x464], ebx
jne 0x40a598
mov eax, dword [esi]
mov dword [edi + 8], eax
mov eax, dword [esi + 4]
mov dword [edi + 0xc], eax
jmp 0x40a5aa
add edi, 8
lea eax, [ebp - 0x468]
push edi
push eax
call fcn.00447b4e
pop ecx
pop ecx
xor eax, eax
call fcn.0043ef56
ret
Function at 0x40ae1e
Capabilities:
Create thread

Disassembly:
push esi
push 4
mov esi, ecx
call sub.MSVCR100.dll_void____cdecl_operator_new_unsigned_int_
pop ecx
xor ecx, ecx
cmp eax, ecx
je 0x40ae33
mov dword [eax], ecx
jmp 0x40ae35
xor eax, eax
push ecx
push ecx
push esi
push 0x40ae0c
push ecx
push ecx
mov dword [esi + 0x10], eax
call dword [sym.imp.kernel32.dll_CreateThread]
mov ecx, dword [esi + 0x10]
mov dword [ecx], eax
pop esi
ret

Function at 0x40b3da
Capabilities:
Delete file

Disassembly:
push 0x68
mov eax, 0x47394f
call fcn.0043ee6a
push dword [ebp + 8]
lea ecx, [ebp - 0x24]
call fcn.00403a4f
push 0x5c
xor ebx, ebx
push 0x2f
lea ecx, [ebp - 0x24]
mov dword [ebp - 4], ebx
call fcn.00447b4e
movzx eax, word [0x4a69d4]
push eax
lea ecx, [ebp - 0x24]
call fcn.00447b4e
test eax, eax
je 0x40b452
lea ecx, [ebp - 0x24]
call fcn.00408157
mov eax, dword [ebp - 0x20]
dec eax
push eax
push ebx
lea eax, [ebp - 0x54]
push eax
lea ecx, [ebp - 0x24]
call fcn.00409028
push 0xffffffffffffffff
push eax
lea ecx, [ebp - 0x24]
mov byte [ebp - 4], 1
call fcn.00447b4e
lea ecx, [ebp - 0x44]
mov byte [ebp - 4], bl
call fcn.004035af
lea ecx, [ebp - 0x4c]
call fcn.004035af
lea eax, [ebp - 0x24]
push eax
lea ecx, [ebp - 0x3c]
call fcn.00403a4f
lea ecx, [ebp - 0x3c]
mov byte [ebp - 4], 2
call fcn.00408107
push ebx
lea ecx, [ebp - 0x3c]
mov byte [ebp - 4], 3
call fcn.00447b4e
lea ecx, [ebp - 0x3c]
call fcn.00408107
cmp dword [ebp - 0x38], ebx
jne 0x40b4b1
mov esi, 0x402
lea ecx, [ebp - 0x2c]
call fcn.004035af
lea ecx, [ebp - 0x34]
call fcn.004035af
lea ecx, [ebp - 0x14]
call fcn.004035af
lea ecx, [ebp - 0x1c]
call fcn.004035af
mov eax, esi
call fcn.0043ef42
ret
push 0x1e
lea eax, [ebp - 0x74]
push ebx
push eax
call sub.MSVCR100.dll_memset
add esp, 0xc
lea ecx, [ebp - 0x3c]
mov dword [ebp - 0x74], ebx
mov dword [ebp - 0x70], 3
call fcn.00408107
mov dword [ebp - 0x6c], eax
mov eax, 0x414
mov word [ebp - 0x64], ax
lea eax, [ebp - 0x74]
push eax
call dword [sym.imp.SHELL32.dll_SHFileOperationA]
mov esi, eax
jmp 0x40b489