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

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x14
mov eax, dword [ebp + 8]
mov ecx, eax
push ebx
mov ebx, dword [ebp + 0xc]
and eax, 0x3f
sar ecx, 6
push esi
push edi
imul edi, eax, 0x38
mov eax, dword [ecx*4 + 0x51af30]
mov dword [ebp - 0x10], ecx
mov ecx, dword [eax + edi + 0x18]
mov dword [ebp - 0x14], ecx
mov ecx, dword [ebp + 0x10]
test ecx, ecx
je 0x4d4cdd
cmp byte [ebx], 0xa
jne 0x4d4cdd
or byte [eax + edi + 0x28], 4
jmp 0x4d4ce2
and byte [eax + edi + 0x28], 0xfb
add ecx, ebx
mov edx, ebx
mov dword [ebp - 0xc], ecx
mov esi, ebx
cmp ebx, ecx
jae 0x4d4de0
mov al, byte [edx]
cmp al, 0x1a
je 0x4d4dc2
lea ecx, [edx + 1]
mov dword [ebp - 8], ecx
mov ecx, dword [ebp - 0xc]
cmp al, 0xd
je 0x4d4d11
mov edx, dword [ebp - 8]
mov byte [esi], al
jmp 0x4d4d36
mov eax, dword [ebp - 8]
cmp eax, ecx
jae 0x4d4d40
mov cl, byte [eax]
xor eax, eax
cmp cl, 0xa
sete al
inc eax
add edx, eax
cmp cl, 0xa
sete al
dec al
and al, 3
add al, 0xa
mov byte [esi], al
mov ecx, dword [ebp - 0xc]
inc esi
cmp edx, ecx
jb 0x4d4cf3
jmp 0x4d4de0
push 0
lea eax, [ebp - 0xc]
push eax
push 1
lea eax, [ebp - 1]
push eax
push dword [ebp - 0x14]
call dword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
je 0x4d4dbd
cmp dword [ebp - 0xc], 0
je 0x4d4dbd
mov ecx, dword [ebp - 0x10]
mov eax, dword [ecx*4 + 0x51af30]
test byte [eax + edi + 0x28], 0x48
je 0x4d4d97
mov dl, byte [ebp - 1]
lea eax, [esi + 1]
mov dword [ebp - 0x14], eax
cmp dl, 0xa
jne 0x4d4d82
mov byte [esi], dl
jmp 0x4d4d93
mov byte [esi], 0xd
mov eax, dword [ecx*4 + 0x51af30]
mov byte [eax + edi + 0x2a], dl
mov eax, dword [ebp - 0x14]
mov esi, eax
jmp 0x4d4de0
cmp byte [ebp - 1], 0xa
jne 0x4d4da6
cmp esi, ebx
jne 0x4d4da6
mov byte [esi], 0xa
jmp 0x4d4ddf
push 1
push 0xffffffffffffffff
push 0xffffffffffffffff
push dword [ebp + 8]
call fcn.004cdb3b
add esp, 0x10
cmp byte [ebp - 1], 0xa
je 0x4d4de0
mov byte [esi], 0xd
jmp 0x4d4ddf
mov ecx, dword [ebp - 0x10]
mov ecx, dword [ecx*4 + 0x51af30]
mov al, byte [ecx + edi + 0x28]
test al, 0x40
jne 0x4d4ddc
or al, 2
mov byte [ecx + edi + 0x28], al
jmp 0x4d4de0
mov byte [esi], 0x1a
inc esi
sub esi, ebx
pop edi
mov eax, esi
pop esi
pop ebx
leave
ret
Function at 0x4d4de9
Capabilities:
Read file on windows

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x18
mov eax, dword [ebp + 8]
push ebx
push esi
mov esi, dword [ebp + 0xc]
mov ebx, eax
and eax, 0x3f
sar ebx, 6
push edi
imul edi, eax, 0x38
push 0xa
mov eax, dword [ebx*4 + 0x51af30]
pop edx
mov dword [ebp - 0x14], edx
mov ecx, dword [edi + eax + 0x18]
mov dword [ebp - 0x18], ecx
mov ecx, dword [ebp + 0x10]
test ecx, ecx
je 0x4d4e2c
cmp word [esi], dx
jne 0x4d4e2c
or byte [edi + eax + 0x28], 4
jmp 0x4d4e31
and byte [edi + eax + 0x28], 0xfb
lea edx, [esi + ecx*2]
mov eax, esi
mov dword [ebp - 8], edx
mov dword [ebp - 4], eax
cmp eax, edx
jae 0x4d4f84
mov dword [ebp - 0xc], 0xd
movzx ecx, word [eax]
mov edx, ecx
mov dword [ebp - 0x10], edx
push 0x1a
pop edx
cmp cx, dx
mov edx, dword [ebp - 8]
je 0x4d4f64
add eax, 2
cmp cx, word [ebp - 0xc]
je 0x4d4e73
mov dword [ebp - 4], eax
mov word [esi], cx
jmp 0x4d4ea9
cmp eax, edx
jae 0x4d4eb5
movzx eax, word [eax]
xor ecx, ecx
cmp ax, word [ebp - 0x14]
mov edx, eax
push 0xa
sete cl
xor eax, eax
lea ecx, [ecx*2 + 2]
add dword [ebp - 4], ecx
pop ecx
cmp dx, cx
mov edx, dword [ebp - 8]
sete al
dec eax
and eax, 3
add eax, ecx
mov word [esi], ax
mov eax, dword [ebp - 4]
add esi, 2
cmp eax, edx
jb 0x4d4e4b
jmp 0x4d4f84
push 0
lea eax, [ebp - 0x14]
push eax
push 2
lea eax, [ebp - 4]
push eax
push dword [ebp - 0x18]
call dword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
je 0x4d4f60
cmp dword [ebp - 0x14], 0
je 0x4d4f60
mov eax, dword [ebx*4 + 0x51af30]
push 0xa
test byte [edi + eax + 0x28], 0x48
je 0x4d4f38
mov dx, word [ebp - 4]
lea eax, [esi + 2]
pop ecx
mov dword [ebp - 0x18], eax
cmp dx, cx
jne 0x4d4f01
mov word [esi], cx
jmp 0x4d4f34
push 0xd
pop eax
mov word [esi], ax
mov eax, dword [ebx*4 + 0x51af30]
movzx ecx, dx
shr ecx, 8
push 0xa
mov byte [edi + eax + 0x2a], dl
mov eax, dword [ebx*4 + 0x51af30]
mov byte [edi + eax + 0x2b], cl
mov eax, dword [ebx*4 + 0x51af30]
pop ecx
mov byte [edi + eax + 0x2c], cl
mov eax, dword [ebp - 0x18]
mov esi, eax
jmp 0x4d4f84
pop ebx
cmp word [ebp - 4], bx
jne 0x4d4f49
cmp esi, dword [ebp + 0xc]
jne 0x4d4f49
mov word [esi], bx
jmp 0x4d4f81
push 1
push 0xffffffffffffffff
push 0xfffffffffffffffe
push dword [ebp + 8]
call fcn.004cdb3b
add esp, 0x10
cmp word [ebp - 4], bx
je 0x4d4f84
push 0xd
jmp 0x4d4f7d
mov ecx, dword [ebx*4 + 0x51af30]
mov al, byte [ecx + edi + 0x28]
test al, 0x40
jne 0x4d4f7b
or al, 2
mov byte [ecx + edi + 0x28], al
jmp 0x4d4f84
push 0x1a
pop eax
mov word [esi], ax
add esi, 2
sub esi, dword [ebp + 0xc]
and esi, 0xfffffffe
pop edi
mov eax, esi
pop esi
pop ebx
leave
ret
Function at 0x4d8e18
Capabilities:
Allocate thread local storage

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push esi
push 0x50459c
push 0x504594
push str.FlsAlloc
push 0x1e
call fcn.004d8c45
mov esi, eax
add esp, 0x10
test esi, esi
je 0x4d8e4c
push dword [ebp + 8]
mov ecx, esi
call dword [0x4ea5b0]
call esi
jmp 0x4d8e52
call dword [sym.imp.KERNEL32.dll_TlsAlloc]
pop esi
pop ebp
ret 4

Function at 0x4d8e96
Capabilities:
Get thread local storage value

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push esi
push 0x5045ac
push 0x5045a4
push str.FlsGetValue
push 0x20
call fcn.004d8c45
mov esi, eax
add esp, 0x10
test esi, esi
je 0x4d8ecd
push dword [ebp + 8]
mov ecx, esi
call dword [0x4ea5b0]
call esi
pop esi
pop ebp
ret 4
pop esi
pop ebp
jmp dword [sym.imp.KERNEL32.dll_TlsGetValue]

Function at 0x4d9477
Capabilities:
Read file on windows

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
pop ebp
jmp fcn.004d92e8
Function at 0x4d991c
Capabilities:
Read file on windows

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
mov eax, 0x101c
call fcn.004b9670
mov eax, dword [0x517728]
xor eax, ebp
mov dword [ebp - 4], eax
mov eax, dword [ebp + 0x14]
push ebx
push dword [ebp + 8]
mov dword [ebp - 0x100c], eax
call fcn.004d6545
pop ecx
mov ecx, dword [ebp + 8]
mov ebx, eax
cmp dword [ecx + 8], 0
jne 0x4d995e
mov eax, dword [ebp + 0xc]
mov edx, dword [ebp + 0x10]
jmp 0x4d9aba
mov eax, dword [ecx]
sub eax, dword [ecx + 4]
push esi
push edi
push 0
cdq
push 2
push edx
push eax
call fcn.004b95c0
push dword [ebp - 0x100c]
mov ecx, ebx
mov dword [ebp - 0x1008], eax
mov esi, ebx
mov dword [ebp - 0x1018], edx
and ecx, 0x3f
sar esi, 6
imul edi, ecx, 0x38
push 0
mov eax, dword [esi*4 + 0x51af30]
push dword [edi + eax + 0x24]
push dword [edi + eax + 0x20]
push ebx
call fcn.004cdb1d
mov ecx, dword [esi*4 + 0x51af30]
add esp, 0x14
mov dword [ebp - 0x1010], eax
mov eax, edx
mov edx, dword [ebp - 0x1010]
mov dword [ebp - 0x101c], eax
cmp edx, dword [edi + ecx + 0x20]
jne 0x4d9ab3
cmp eax, dword [edi + ecx + 0x24]
jne 0x4d9ab3
push 0
lea eax, [ebp - 0x1014]
push eax
push 0x1000
lea eax, [ebp - 0x1004]
push eax
push dword [edi + ecx + 0x18]
call dword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
je 0x4d9ab3
push dword [ebp - 0x100c]
push 0
push dword [ebp + 0x10]
push dword [ebp + 0xc]
push ebx
call fcn.004cdb1d
add esp, 0x14
test edx, edx
jl 0x4d9ab3
jg 0x4d9a29
test eax, eax
jb 0x4d9ab3
mov ebx, dword [ebp - 0x1018]
mov eax, dword [ebp - 0x1014]
test ebx, ebx
jg 0x4d9ab3
jl 0x4d9a43
cmp dword [ebp - 0x1008], eax
ja 0x4d9ab3
lea edi, [ebp - 0x1004]
xor edx, edx
add edi, eax
lea ecx, [ebp - 0x1004]
xor esi, esi
cmp dword [ebp - 0x1008], edx
jne 0x4d9a61
test ebx, ebx
je 0x4d9a9a
cmp ecx, edi
jae 0x4d9a9a
mov al, byte [ecx]
cmp al, 0xd
jne 0x4d9a7b
lea eax, [edi - 1]
cmp ecx, eax
jae 0x4d9a87
cmp byte [ecx + 1], 0xa
jne 0x4d9a87
inc ecx
jmp 0x4d9a87
movzx eax, al
movsx eax, byte [eax + 0x5178c0]
add ecx, eax
add esi, 1
adc edx, 0
inc ecx
cmp esi, dword [ebp - 0x1008]
jne 0x4d9a61
cmp edx, ebx
jne 0x4d9a61
lea eax, [ebp - 0x1004]
sub ecx, eax
mov eax, ecx
cdq
add eax, dword [ebp - 0x1010]
adc edx, dword [ebp - 0x101c]
jmp 0x4d9ab8
or edx, 0xffffffff
mov eax, edx
pop edi
pop esi
mov ecx, dword [ebp - 4]
xor ecx, ebp
pop ebx
call fcn.004b90ac
leave
ret
Function at 0x4da482
Capabilities:
Clear file content

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x2c
push ebx
mov ebx, dword [ebp + 8]
lea ecx, [ebp - 0x2c]
push esi
push edi
push dword [ebp + 0x10]
push dword [ebp + 0xc]
push ebx
call fcn.004da3fe
mov eax, dword [ebp - 0x2c]
and eax, dword [ebp - 0x28]
cmp eax, 0xffffffff
je 0x4da5fa
mov eax, dword [ebp - 0x24]
and eax, dword [ebp - 0x20]
cmp eax, 0xffffffff
je 0x4da5fa
mov ecx, dword [ebp - 0x18]
mov eax, dword [ebp - 0x1c]
mov dword [ebp - 8], ecx
mov dword [ebp - 4], eax
test ecx, ecx
jl 0x4da5a9
jg 0x4da4db
test eax, eax
je 0x4da59f
push 1
push 0x1000
call fcn.004d8947
mov esi, eax
pop ecx
pop ecx
test esi, esi
jne 0x4da501
mov eax, dword [ebp + 0x14]
push 0xc
pop edi
mov byte [eax + 0x1c], 1
mov dword [eax + 0x18], edi
jmp 0x4da596
push 0x8000
push ebx
call fcn.004d2af2
mov edi, dword [ebp + 0x14]
pop ecx
pop ecx
mov ecx, dword [ebp - 0x1c]
mov dword [ebp - 0xc], eax
mov eax, dword [ebp - 0x18]
test eax, eax
jl 0x4da52d
jg 0x4da528
cmp ecx, 0x1000
jb 0x4da52d
mov ecx, 0x1000
push edi
push ecx
push esi
push ebx
call fcn.004d5f03
add esp, 0x10
cmp eax, 0xffffffff
je 0x4da572
mov ecx, dword [ebp - 4]
cdq
sub ecx, eax
mov eax, dword [ebp - 8]
mov dword [ebp - 4], ecx
sbb eax, edx
mov dword [ebp - 8], eax
test eax, eax
jg 0x4da528
jl 0x4da559
test ecx, ecx
jne 0x4da51a
push dword [ebp - 0xc]
push ebx
call fcn.004d2af2
push esi
call fcn.004d726d
add esp, 0xc
xor edi, edi
jmp 0x4da60b
cmp byte [edi + 0x24], 0
je 0x4da589
cmp dword [edi + 0x20], 5
jne 0x4da589
mov byte [edi + 0x1c], 1
mov dword [edi + 0x18], 0xd
cmp byte [edi + 0x1c], 0
je 0x4da594
mov edi, dword [edi + 0x18]
jmp 0x4da596
xor edi, edi
push esi
call fcn.004d726d
pop ecx
jmp 0x4da60b
test ecx, ecx
jg 0x4da56b
jl 0x4da5a9
test eax, eax
jae 0x4da56b
push 0
push dword [ebp + 0x10]
push dword [ebp + 0xc]
push ebx
call fcn.004cdb3b
and eax, edx
add esp, 0x10
cmp eax, 0xffffffff
jne 0x4da5cc
mov edi, dword [ebp + 0x14]
cmp byte [edi + 0x1c], 0
je 0x4da56b
jmp 0x4da603
push ebx
call fcn.004da394
pop ecx
push eax
call dword [sym.imp.KERNEL32.dll_SetEndOfFile]
test eax, eax
jne 0x4da56b
mov esi, dword [ebp + 0x14]
call dword [sym.imp.KERNEL32.dll_GetLastError]
push 0xd
mov byte [esi + 0x24], 1
mov dword [esi + 0x20], eax
pop edi
mov byte [esi + 0x1c], 1
mov dword [esi + 0x18], edi
jmp 0x4da60b
mov edi, dword [ebp + 0x14]
cmp byte [edi + 0x1c], 0
je 0x4da608
mov edi, dword [edi + 0x18]
jmp 0x4da60b
push 0x16
pop edi
push 0
push dword [ebp - 0x28]
push dword [ebp - 0x2c]
push dword [ebp - 0x14]
call fcn.004cdb3b
add esp, 0x10
mov eax, edi
pop edi
pop esi
pop ebx
leave
ret
Function at 0x4dd967
Capabilities:
Enumerate files on windows

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x264
mov eax, dword [0x517728]
xor eax, ebp
mov dword [ebp - 4], eax
mov edx, dword [ebp + 0xc]
mov ecx, dword [ebp + 0x10]
push ebx
push esi
push edi
mov edi, dword [ebp + 8]
mov dword [ebp - 0x25c], ecx
cmp edx, edi
je 0x4dd9b2
movzx eax, word [edx]
lea ecx, [ebp - 0x255]
push eax
call fcn.004ddb06
test al, al
jne 0x4dd9ac
sub edx, 2
cmp edx, edi
jne 0x4dd992
mov ecx, dword [ebp - 0x25c]
movzx esi, word [edx]
cmp esi, 0x3a
jne 0x4dd9d4
lea eax, [edi + 2]
cmp edx, eax
je 0x4dd9d4
push ecx
xor ebx, ebx
push ebx
push ebx
push edi
call fcn.004dd8b3
add esp, 0x10
jmp 0x4ddace
push esi
lea ecx, [ebp - 0x255]
call fcn.004ddb06
sub edx, edi
movzx eax, al
sar edx, 1
inc edx
neg eax
sbb eax, eax
xor ebx, ebx
push ebx
push ebx
and eax, edx
push ebx
mov dword [ebp - 0x260], eax
lea eax, [ebp - 0x254]
push eax
push ebx
push edi
call dword [sym.imp.KERNEL32.dll_FindFirstFileExW]
mov esi, eax
cmp esi, 0xffffffff
jne 0x4dda17
push dword [ebp - 0x25c]
jmp 0x4dd9c4
mov ebx, dword [ebp - 0x25c]
push 0x2e
mov eax, dword [ebx + 4]
sub eax, dword [ebx]
sar eax, 2
mov dword [ebp - 0x25c], eax
pop eax
cmp word [ebp - 0x228], ax
jne 0x4dda54
cmp word [ebp - 0x226], 0
je 0x4dda75
cmp word [ebp - 0x226], ax
jne 0x4dda54
cmp word [ebp - 0x224], 0
je 0x4dda75
push ebx
push dword [ebp - 0x260]
lea eax, [ebp - 0x228]
push edi
push eax
call fcn.004dd8b3
add esp, 0x10
mov dword [ebp - 0x264], eax
test eax, eax
jne 0x4ddac1
lea eax, [ebp - 0x254]
push eax
push esi
call dword [sym.imp.KERNEL32.dll_FindNextFileW]
push 0x2e
test eax, eax
pop eax
jne 0x4dda2e
mov eax, dword [ebx + 4]
mov edx, dword [ebx]
sub eax, edx
mov ecx, dword [ebp - 0x25c]
sar eax, 2
cmp ecx, eax
jne 0x4ddaa9
push esi
call dword [sym.imp.KERNEL32.dll_FindClose]
xor eax, eax
jmp 0x4ddace
push 0x4dd6e3
sub eax, ecx
push 4
push eax
lea eax, [edx + ecx*4]
push eax
call fcn.004c97f0
add esp, 0x10
jmp 0x4dda9e
push esi
call dword [sym.imp.KERNEL32.dll_FindClose]
mov eax, dword [ebp - 0x264]
mov ecx, dword [ebp - 4]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.004b90ac
leave
ret

Function at 0x4de3f2
Capabilities:
Query environment variable

Disassembly:
mov edi, edi
push esi
call dword [sym.imp.KERNEL32.dll_GetEnvironmentStringsW]
mov esi, eax
test esi, esi
jne 0x4de403
pop esi
ret
push ebx
push edi
push esi
call fcn.004de3bb
mov ebx, eax
sub ebx, esi
and ebx, 0xfffffffe
push ebx
call fcn.004d72a7
mov edi, eax
pop ecx
pop ecx
test edi, edi
je 0x4de42b
push ebx
push esi
push edi
call fcn.004baf80
add esp, 0xc
push 0
call fcn.004d726d
pop ecx
push esi
call dword [sym.imp.KERNEL32.dll_FreeEnvironmentStringsW]
mov eax, edi
pop edi
pop ebx
pop esi
ret

Function at 0x4de7ef
Capabilities:
Set environment variable

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
pop ebp
jmp fcn.004de440
Function at 0x484cee
Capabilities:
Encode data using xor

Disassembly:
mov esi, 0x484a08
sub edi, edi
call fcn.00484d19
sub ebx, 0xf42a1642
xor dword [edx], esi
dec edi
add edx, 2
add ebx, ebx
and edi, ebx
cmp edx, ecx
jl fcn.00484cee
sub ebx, ebx
dec edi
ret
Function at 0x5ade53
Capabilities:
Encode data using xor

Disassembly:
add dword [edi - 0x78a67620], ebx
scasb al, byte es:[edi]
mov cl, 0x51
shl bh, 1
out 0x9c, eax
out 0x9c, eax
cmpsd dword [esi], dword es:[edi]
dec esp
test eax, 0xd06e7650
add eax, 0xe76a3773
sti
lea ecx, [ecx - 0x56bde74d]
out 0xd9, al
outsd dx, dword [esi]
or ax, 0xe37c
rcl cl, 1
push ecx
std
cmp esp, dword [edx + 0x26203f73]
jae 0x5adeb6
and byte [esi], ah
scasd eax, dword es:[edi]
xor al, byte [eax - 0x45]
cmpsb byte [esi], byte es:[edi]
ja 0x5ade75
clc
std
mov esp, 0x82d957b2
std
loopne 0x5ade49
push ss
pop ebp
cdq
invalid
xchg esp, eax
out 0xae, eax
int 0x13
dec edx
shr byte [esi - 0x23], 1
sbb edx, dword [ecx]
add al, 0x88
pop ebp
insb byte es:[edi], dx
mov bh, 4
inc esp
loopne 0x5aded0
test bh, bl
mov ch, 0xe3
not al
xchg esp, eax
ret 0xbc01
Function at 0x6da2a3
Capabilities:
Encode data using xor

Disassembly:
adc dh, cl
in al, 0xe6
mov ch, 0x95
retf 0x6f75
inc ecx
push ecx
sub byte [edi], ah
pushal
jecxz 0x6da2b6
and dl, byte [ecx]
adc esi, dword [edi]
out 0x43, eax
wait
jecxz 0x6da279
popfd
in eax, 0xfe
invalid
dec byte [edi - 0xd4c6b0a]
mov esp, edi
xchg byte [ebp - 0x10d3b754], dh
push edx
jne 0x6da31a
dec edi
xor dword [ecx], eax
aaa
inc esp
cmp al, 0x45
and eax, 0x5c4355f2
inc ebx
pop esp
sal esp, cl
xor esi, ebp
inc edx
xchg ebp, eax
invalid
mov dword [0xbfd6cf95], eax
cdq
insb byte es:[edi], dx
arpl word [eax + 0x11], bp
inc eax
add eax, 0x87f3f4c6
popal
je 0x6da2d2
cmc
pop esi
je 0x6da396
das
comiss xmm6, dword [esi + edx - 0x50e750c6]
inc esp
cli
cmpsb byte fs:[esi], byte es:[edi]
mov ah, 0x6f
dec ecx
dec ebx
ret
cmpsb byte [si], byte es:[di]
or byte [ecx], ch
bound edi, qword [ecx - 0x2f]
popal
inc edx
push eax
cmpsd dword [esi], dword es:[edi]
and al, 0x32
salc
adc dl, al
pop eax
push esp
mov dh, 0xe8
sbb dword [ebx + edx*4 - 0xc], eax
mov eax, 0x57b18fb4
test byte [ebx + 0x65], al
test eax, 0xb4d422c1
rcl esp, 1
adc byte es:[ebx + 0x6533ca33], bh
xor al, 0x3f
in al, 0xfc
xchg ecx, eax
neg dword [ecx]
push eax
mov dl, byte [eax + 0x31]
xor al, 0xb1
xchg dword [0x25024277], eax
dec edi
push es
lahf
add byte cs:[esi - 0x40], bh
out 0x50, al
leave
daa
pop ecx
lcall 0xe8ad, 0x373711f2
sbb dword [edx - 0x591a41e1], ebp
adc dword [edi], esi
aaa
lodsd eax, dword [esi]
call 0xbe8d4db8
in eax, 0xa6
pop esi
bound esi, qword [esi + 0x44]
fild word [edx]
mov ch, 0x46
xchg ecx, eax
sub eax, 0x5676771d
cwde
mov cl, 0xd4
mov bh, 7
add dword [edx - 0x3e8c5b7b], edi
pop es
clc
jb 0x6da346
into
popal
dec edi
xor byte [edi], 0x11
xchg edi, eax
loope 0x6da3c6
inc dword [esi]
push es
fcom st(3)
jge 0x6da3e1
add byte [ebx - 0x1e], bh
aaa
add al, 0x7f
add al, 0x9a
and dword [edi], 0xffffffc4
add dword [esi + 0x2d], esp
test dword [ebp - 0x5b], ebx
push ebp
xor al, 0x19
xchg ebp, eax
mov byte [0x7988f79f], al
and eax, 0x555708d2
push esp
dec eax
dec edi
pushal
daa
sub dword [eax + 0x7a], ecx
shr dword [edi], cl
and dword [eax - 0x3f15ae27], 0x76
or edx, 0xf5293411
salc
mov bl, 0x73
push ds
and esi, esi
pushal
sbb byte [esi - 0x3e], dl
sub dword [edi], ebx
cmp dword [edi - 0x307fd877], eax
or dword [esi + 0x663fdcb9], eax
std
pop ss
push 0x927e057
cmpsb byte [esi], byte es:[edi]
mov eax, dword [0x2af7e916]
outsd dx, dword [esi]
mov edi, 0x7e4656c5
mov edi, 0xcda9bae2
push ecx
aaa
jmp 0xe3885de1
Function at 0x401f10
Capabilities:
Get disk information
Inspect load icon resource
Read file on windows

Disassembly:
mov eax, dword [esp + 4]
sub esp, 0x148
push ebx
push esi
push edi
push 0x65
push eax
call dword [sym.imp.USER32.dll_LoadIconA]
lea ecx, [esp + 0xc]
call fcn.00401000
lea ecx, [esp + 0x50]
push 0x104
push ecx
push 0
call dword [sym.imp.KERNEL32.dll_GetModuleFileNameA]
lea edx, [esp + 0x50]
lea ecx, [esp + 0xc]
push edx
call fcn.004012b0
test eax, eax
je 0x402021
lea eax, [esp + 0x50]
push 0x404030
push eax
call dword [sym.imp.MSVCRT.dll_fopen]
mov esi, eax
add esp, 8
test esi, esi
je 0x402084
lea ecx, [esp + 0x50]
push ecx
lea ecx, [esp + 0x10]
call fcn.00401290
mov edi, dword [sym.imp.MSVCRT.dll_fseek]
sub eax, 8
push 0
push eax
push esi
call edi
mov ebx, dword [sym.imp.MSVCRT.dll_fread]
push esi
push 1
lea edx, [esp + 0x24]
push 8
push edx
call ebx
mov eax, dword [esp + 0x2c]
push 0
push eax
push esi
call edi
push esi
push 1
lea ecx, [esp + 0x48]
push 0x38
push ecx
call ebx
push esi
call dword [sym.imp.MSVCRT.dll_fclose]
mov eax, dword [esp + 0x88]
mov edx, dword [esp + 0x50]
add esp, 0x3c
test eax, eax
mov eax, dword [esp + 0x10]
push edx
push eax
jne 0x401ffe
sub esp, 0x38
mov ecx, 0xe
lea esi, [esp + 0x58]
mov edi, esp
rep movsd dword es:[edi], dword [esi]
lea ecx, [esp + 0x90]
push ecx
lea ecx, [esp + 0x50]
call fcn.00401800
jmp 0x402084
sub esp, 0x38
mov ecx, 0xe
lea esi, [esp + 0x58]
mov edi, esp
rep movsd dword es:[edi], dword [esi]
lea ecx, [esp + 0x90]
push ecx
lea ecx, [esp + 0x50]
call fcn.00401a90
jmp 0x402084
lea ecx, [esp + 0x10]
call sub.MFC42.DLL_CString::CString_1
call dword [sym.imp.KERNEL32.dll_GetLogicalDrives]
mov edi, eax
mov esi, 1
xor ebx, ebx
test edi, esi
je 0x40206a
mov dl, bl
lea ecx, [esp + 0x10]
add dl, 0x41
push edx
call sub.MFC42.DLL_CString::operator_1
push 0x40412c
lea ecx, [esp + 0x14]
call fcn.004020e2
lea ecx, [esp + 0xc]
mov eax, dword [esp + 0x10]
push eax
push 0
call fcn.00401cf0
add esi, esi
inc ebx
cmp ebx, 0x1a
jl 0x402039
lea ecx, [esp + 0xc]
call fcn.00401040
lea ecx, [esp + 0x10]
call sub.MFC42.DLL_CString::CString
lea ecx, [esp + 0xc]
call fcn.00401030
pop edi
pop esi
xor eax, eax
pop ebx
add esp, 0x148
ret 0x10

Function at 0x433002
Capabilities:
Authenticate hmac
Encode data using xor
Packed with generic packer

Disassembly:
pushal
nop
nop
nop
call 0x43300c
nop
pop eax
nop
nop
nop
nop
nop
add eax, 0x40a063
sub eax, 0x40a009
nop
nop
nop
mov ebx, dword [eax]
nop
nop
nop
nop
mov ecx, dword [eax + 4]
nop
nop
mov edx, dword [eax + 8]
nop
nop
nop
nop
nop
nop
xor dword [ebx], edx
add ebx, 4
nop
nop
nop
nop
cmp ebx, ecx
nop
nop
nop
nop
nop
nop
nop
jl 0x433030
nop
nop
nop
add eax, 0xc
nop
nop
cmp dword [eax], 0
nop
nop
jne 0x43301e
nop
nop
nop
nop
nop
popal
nop
nop
nop
jmp 0x431219
Function at 0x409c20
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 8
lea eax, [ebp - 4]
push ebx
push 0
push 0
push eax
push 0x400
push dword [ebp + 8]
push 0
push 0x1300
call dword [sym.imp.KERNEL32.dll_FormatMessageA]
mov ebx, eax
test ebx, ebx
je 0x409ce2
cmp byte [0x539f47], 0
push esi
je 0x409c9b
push edi
push 1
call fcn.004c9bff
mov edi, eax
push edi
push 0x3c
call fcn.004c9f06
add esp, 0xc
mov esi, 0x4fa46c
mov ecx, 0x65
push edi
push ecx
call fcn.004c9f06
movzx eax, word [esi + 2]
lea esi, [esi + 2]
add esp, 8
mov ecx, eax
test ax, ax
jne 0x409c77
push edi
push 0x3e
call fcn.004c9f06
add esp, 8
pop edi
mov esi, dword [ebp - 4]
push 0xfffffffffffffff4
call dword [sym.imp.KERNEL32.dll_GetStdHandle]
push 0
lea ecx, [ebp - 8]
push ecx
push ebx
push esi
push eax
call dword [sym.imp.KERNEL32.dll_WriteFile]
cmp byte [0x539f47], 0
pop esi
je 0x409cd9
push 0
push 0x4fa46c
push 1
call fcn.004c9bff
add esp, 4
push eax
call fcn.00413be0
add esp, 0xc
push dword [ebp - 4]
call dword [sym.imp.KERNEL32.dll_LocalFree]
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x414b20
Capabilities:
Query environment variable

Disassembly:
push ebp
mov ebp, esp
sub esp, 8
push esi
push edi
push 0
push 0
push dword [ebp + 0xc]
call dword [sym.imp.KERNEL32.dll_ExpandEnvironmentStringsW]
mov edi, eax
push 2
mov dword [ebp - 4], edi
call fcn.004c8d7a
mov esi, dword [ebp + 8]
lea edi, [edi*2 + 2]
xor ecx, ecx
push edi
mov dword [esi], eax
mov word [eax], cx
push dword [esi]
call fcn.004c8d85
add esp, 0xc
mov dword [esi], eax
test eax, eax
je 0x414b6f
push edi
push 0
push eax
call fcn.004c53a0
add esp, 0xc
push dword [ebp - 4]
push dword [esi]
push dword [ebp + 0xc]
call dword [sym.imp.KERNEL32.dll_ExpandEnvironmentStringsW]
pop edi
mov eax, esi
pop esi
mov esp, ebp
pop ebp
ret

Function at 0x414c20
Capabilities:
Get file attributes

Disassembly:
push ebp
mov ebp, esp
sub esp, 8
push esi
push edi
push dword [ebp + 8]
lea eax, [ebp - 8]
mov ecx, 0x53a704
push 0
push eax
lea eax, [ebp - 4]
push eax
call fcn.004080f0
mov esi, dword [ebp - 4]
test esi, esi
je 0x414c4a
mov eax, dword [esi]
jmp 0x414c4c
xor eax, eax
push eax
call dword [sym.imp.KERNEL32.dll_GetFileAttributesW]
mov edi, eax
test esi, esi
je 0x414c99
or ecx, 0xffffffff
lock xadd dword [esi + 8], ecx
dec ecx
jne 0x414c99
mov eax, dword [esi]
test eax, eax
je 0x414c77
push eax
call dword [sym.imp.OLEAUT32.dll_SysStringLen]
mov dword [esi], 0
mov eax, dword [esi + 4]
test eax, eax
je 0x414c8e
push eax
call fcn.004c3683
add esp, 4
mov dword [esi + 4], 0
push 0xc
push esi
call fcn.004c34a9
add esp, 8
mov eax, edi
pop edi
pop esi
mov esp, ebp
pop ebp
ret

Function at 0x414cb0
Capabilities:
Get file system object information

Disassembly:
push ebp
mov ebp, esp
sub esp, 8
push esi
push edi
push dword [ebp + 8]
lea eax, [ebp - 8]
mov ecx, 0x53a704
push 0
push eax
lea eax, [ebp - 4]
push eax
call fcn.004080f0
mov esi, dword [ebp - 4]
test esi, esi
je 0x414cda
mov eax, dword [esi]
jmp 0x414cdc
xor eax, eax
push dword [ebp + 0x18]
push dword [ebp + 0x14]
push dword [ebp + 0x10]
push dword [ebp + 0xc]
push eax
call dword [sym.imp.SHELL32.dll_SHGetFileInfoW]
mov edi, eax
test esi, esi
je 0x414d35
or ecx, 0xffffffff
lock xadd dword [esi + 8], ecx
dec ecx
jne 0x414d35
mov eax, dword [esi]
test eax, eax
je 0x414d13
push eax
call dword [sym.imp.OLEAUT32.dll_SysStringLen]
mov dword [esi], 0
mov eax, dword [esi + 4]
test eax, eax
je 0x414d2a
push eax
call fcn.004c3683
add esp, 4
mov dword [esi + 4], 0
push 0xc
push esi
call fcn.004c34a9
add esp, 8
mov eax, edi
pop edi
pop esi
mov esp, ebp
pop ebp
ret