joyce8/EMBER2024-capa huggingface dataset:
Function at 0x4021b7
Capabilities:
Link many functions at runtime

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x20
push ebx
push esi
push edi
call fcn.0040483b
xor ebx, ebx
cmp dword [0x40eef4], ebx
mov dword [ebp - 0x10], eax
mov dword [ebp - 4], ebx
mov dword [ebp - 8], ebx
mov dword [ebp - 0xc], ebx
jne 0x40228c
push str.USER32.DLL
call dword [sym.imp.KERNEL32.dll_LoadLibraryA]
mov edi, eax
cmp edi, ebx
jne 0x4021f7
xor eax, eax
jmp 0x402350
mov esi, dword [sym.imp.KERNEL32.dll_GetProcAddress]
push str.MessageBoxA
push edi
call esi
cmp eax, ebx
je 0x4021f0
push eax
call fcn.004023f9
mov dword [esp], str.GetActiveWindow
push edi
mov dword [0x40eef4], eax
call esi
push eax
call fcn.004023f9
mov dword [esp], str.GetLastActivePopup
push edi
mov dword [0x40eef8], eax
call esi
push eax
call fcn.004023f9
mov dword [0x40eefc], eax
lea eax, [ebp - 8]
push eax
call fcn.004054b6
test eax, eax
pop ecx
pop ecx
je 0x40225a
push ebx
push ebx
push ebx
push ebx
push ebx
call fcn.00406890
add esp, 0x14
cmp dword [ebp - 8], 2
jne 0x40228c
push str.GetUserObjectInformationA
push edi
call esi
push eax
call fcn.004023f9
cmp eax, ebx
pop ecx
mov dword [0x40ef04], eax
je 0x40228c
push str.GetProcessWindowStation
push edi
call esi
push eax
call fcn.004023f9
pop ecx
mov dword [0x40ef00], eax
mov eax, dword [0x40ef00]
mov esi, dword [ebp - 0x10]
cmp eax, esi
je 0x402305
cmp dword [0x40ef04], esi
je 0x402305
push eax
call fcn.00401faa
pop ecx
call eax
cmp eax, ebx
je 0x4022d2
lea ecx, [ebp - 0x14]
push ecx
push 0xc
lea ecx, [ebp - 0x20]
push ecx
push 1
push eax
push dword [0x40ef04]
call fcn.00401faa
pop ecx
call eax
test eax, eax
je 0x4022d2
test byte [ebp - 0x18], 1
jne 0x402305
lea eax, [ebp - 0xc]
push eax
call fcn.0040675b
test eax, eax
pop ecx
je 0x4022ed
push ebx
push ebx
push ebx
push ebx
push ebx
call fcn.00406890
add esp, 0x14
cmp dword [ebp - 0xc], 4
jb 0x4022fc
or dword [ebp + 0x10], 0x200000
jmp 0x402336
or dword [ebp + 0x10], 0x40000
jmp 0x402336
mov eax, dword [0x40eef8]
cmp eax, esi
je 0x402336
push eax
call fcn.00401faa
pop ecx
call eax
cmp eax, ebx
mov dword [ebp - 4], eax
je 0x402336
mov eax, dword [0x40eefc]
cmp eax, esi
je 0x402336
push dword [ebp - 4]
push eax
call fcn.00401faa
pop ecx
call eax
mov dword [ebp - 4], eax
push dword [ebp + 0x10]
push dword [ebp + 0xc]
push dword [ebp + 8]
push dword [ebp - 4]
push dword [0x40eef4]
call fcn.00401faa
pop ecx
call eax
pop edi
pop esi
pop ebx
leave
ret

Function at 0x4031b7
Capabilities:
Terminate process

Disassembly:
cmp ecx, dword [0x40e038]
jne 0x4031c1
repz ret
jmp fcn.00401818
Function at 0x433001
Capabilities:
Encode data using xor
Packed with generic packer

Disassembly:
pushal
nop
nop
nop
nop
nop
mov eax, section..text
nop
mov ebx, 0x40de38
nop
mov ecx, 0x5a3c7e88
nop
nop
nop
test eax, eax
nop
nop
nop
nop
nop
je 0x43304e
nop
xor dword [eax], ecx
nop
nop
nop
nop
nop
nop
inc eax
nop
nop
nop
nop
inc eax
nop
nop
nop
nop
nop
nop
inc eax
nop
nop
nop
nop
nop
inc eax
nop
nop
nop
cmp eax, ebx
nop
nop
nop
nop
nop
nop
jne 0x433024
nop
mov eax, section..data
nop
nop
mov ebx, 0x4304d8
mov ecx, 0x64ef75dd
nop
nop
nop
test eax, eax
nop
nop
nop
nop
nop
je 0x433084
nop
nop
nop
nop
xor dword [eax], ecx
nop
nop
nop
nop
add eax, 4
nop
nop
cmp eax, ebx
nop
nop
nop
jne 0x43306c
nop
nop
nop
nop
nop
nop
nop
nop
popal
jmp 0x431219
Function at 0x401311
Capabilities:
Authenticate hmac
Encode data using xor

Disassembly:
jmp 0x417620
push ebx
mov ebx, dword [esp + 0xc]
push edi
xor edi, edi
test ebx, ebx
je 0x41776d
push ebp
mov ebp, dword [esp + 0x10]
push esi
mov esi, dword [sym.imp.ADVAPI32.dll_RegDisablePredefinedCacheEx]
nop dword [eax]
call esi
sub byte [edi + ebp], 0x19
call esi
add byte [edi + ebp], 0x35
call esi
xor byte [edi + ebp], 4
call esi
add byte [edi + ebp], 0x2d
call esi
add byte [edi + ebp], 0xd3
call esi
add byte [edi + ebp], 0x21
call esi
add byte [edi + ebp], 0x67
call esi
xor byte [edi + ebp], 0xb4
call esi
add byte [edi + ebp], 0x96
call esi
add byte [edi + ebp], 0x4e
call esi
xor byte [edi + ebp], 0xa2
call esi
add byte [edi + ebp], 0x7d
call esi
add byte [edi + ebp], 0x58
call esi
add byte [edi + ebp], 0x3c
call esi
add byte [edi + ebp], 0x83
call esi
add byte [edi + ebp], 0xb6
call esi
xor byte [edi + ebp], 0x48
call esi
add byte [edi + ebp], 0xad
call esi
call esi
add byte [edi + ebp], 0xb9
call esi
add byte [edi + ebp], 0x51
call esi
add byte [edi + ebp], 0xc3
call esi
add byte [edi + ebp], 0xbb
call esi
add byte [edi + ebp], 0xc0
call esi
add byte [edi + ebp], 0x5c
call esi
xor byte [edi + ebp], 0x17
call esi
add byte [edi + ebp], 0xa
call esi
add byte [edi + ebp], 0x32
call esi
add byte [edi + ebp], 0xea
call esi
add byte [edi + ebp], 0x3a
call esi
add byte [edi + ebp], 0xee
call esi
xor byte [edi + ebp], 0xc4
call esi
xor byte [edi + ebp], 0xca
call esi
xor byte [edi + ebp], 0x87
call esi
add byte [edi + ebp], 0xa7
call esi
add byte [edi + ebp], 0x59
call esi
xor byte [edi + ebp], 1
call esi
add byte [edi + ebp], 0xa9
call esi
add byte [edi + ebp], 0x40
call esi
xor byte [edi + ebp], 0xa5
call esi
add byte [edi + ebp], 0xf
call esi
xor byte [edi + ebp], 0xf
call esi
add byte [edi + ebp], 0xd2
call esi
xor byte [edi + ebp], 0x8d
call esi
add byte [edi + ebp], 0x2c
call esi
xor byte [edi + ebp], 0x83
call esi
add byte [edi + ebp], 0x68
call esi
add byte [edi + ebp], 0x3f
call esi
add byte [edi + ebp], 0x36
inc edi
cmp edi, ebx
jb 0x417640
pop esi
pop ebp
pop edi
pop ebx
ret

Function at 0x402e0a
Capabilities:
Terminate process

Disassembly:
jmp 0x42b239
push 0x17
call dword [sym.imp.KERNEL32.dll_IsProcessorFeaturePresent]
test eax, eax
je 0x42b24a
push 5
pop ecx
int 0x29
push esi
push 1
mov esi, 0xc0000417
push esi
push 2
call fcn.00404a11
add esp, 0xc
push esi
call dword [sym.imp.KERNEL32.dll_GetCurrentProcess]
push eax
call dword [sym.imp.KERNEL32.dll_TerminateProcess]
pop esi
ret

Function at 0x402f09
Capabilities:
Query environment variable

Disassembly:
jmp 0x45d7b9
mov edi, edi
push esi
call dword [sym.imp.KERNEL32.dll_GetEnvironmentStringsW]
mov esi, eax
test esi, esi
jne 0x45d7ca
pop esi
ret
push ebx
push edi
push esi
call fcn.0045d6a0
mov ebx, eax
sub ebx, esi
and ebx, 0xfffffffe
push ebx
call fcn.00403666
mov edi, eax
pop ecx
pop ecx
test edi, edi
je 0x45d7f2
push ebx
push esi
push edi
call fcn.0040487c
add esp, 0xc
push 0
call fcn.0040514b
pop ecx
push esi
call dword [sym.imp.KERNEL32.dll_FreeEnvironmentStringsW]
mov eax, edi
pop edi
pop ebx
pop esi
ret
Function at 0x40542a
Capabilities:
Encode data using xor
Resolve function by parsing pe exports

Disassembly:
jmp 0x417a90
sub esp, 0x30
mov eax, dword [0x546238]
xor eax, esp
mov dword [esp + 0x2c], eax
push ebx
mov ebx, dword [esp + 0x38]
push ebp
push esi
xor ebp, ebp
mov dword [esp + 0x10], ebx
mov eax, dword [ebx + 0x3c]
push edi
mov dword [esp + 0x18], 0
mov ecx, dword [eax + ebx + 0x78]
mov eax, dword [ecx + ebx + 0x20]
add ecx, ebx
mov dword [esp + 0x20], ecx
add eax, ebx
mov dword [esp + 0x10], eax
mov ecx, dword [ecx + 0x18]
mov dword [esp + 0x1c], ecx
test ecx, ecx
je 0x417c6a
nop word [eax + eax]
mov edx, dword [eax]
xorps xmm0, xmm0
add edx, ebx
mov dword [esp + 0x34], 0
mov eax, edx
mov dword [esp + 0x38], 0
movups xmmword [esp + 0x24], xmm0
lea esi, [eax + 1]
mov cl, byte [eax]
inc eax
test cl, cl
jne 0x417b01
sub eax, esi
lea ecx, [esp + 0x24]
push eax
push edx
call fcn.004046c9
mov edi, dword [esp + 0x34]
lea ebx, [esp + 0x24]
mov esi, edi
xor esi, 0x14d
cmp dword [esp + 0x38], 0x10
cmovae ebx, dword [esp + 0x24]
push ebx
shr edi, 2
push edi
push str._x_and__p
call fcn.00401e6f
add esp, 0xc
xor edx, edx
test edi, edi
je 0x417b71
nop word [eax + eax]
imul ecx, dword [ebx + edx*4], 0x5bd1e991
inc edx
imul esi, esi, 0x5bd1e991
mov eax, ecx
shr eax, 0x18
xor eax, ecx
imul ecx, eax, 0x5bd1e991
xor esi, ecx
cmp edx, edi
jl 0x417b50
mov eax, dword [esp + 0x34]
xor ecx, ecx
and eax, 3
sub eax, 1
je 0x417b9b
sub eax, 1
je 0x417b91
sub eax, 1
jne 0x417ba9
movsx ecx, byte [ebx + edi*4 + 2]
shl ecx, 0x10
movsx eax, byte [ebx + edi*4 + 1]
shl eax, 8
xor ecx, eax
movsx eax, byte [ebx + edi*4]
xor eax, ecx
imul eax, eax, 0x5bd1e991
xor esi, eax
mov eax, esi
shr eax, 0xd
xor eax, esi
imul ecx, eax, 0x5bd1e991
mov eax, ecx
shr eax, 0xf
xor eax, ecx
cmp eax, dword [esp + 0x48]
je 0x417c19
mov eax, dword [esp + 0x10]
mov ecx, dword [esp + 0x38]
add eax, 4
mov dword [esp + 0x10], eax
cmp ecx, 0x10
jb 0x417c08
mov edx, dword [esp + 0x24]
inc ecx
mov eax, edx
cmp ecx, 0x1000
jb 0x417bfa
mov edx, dword [eax - 4]
add ecx, 0x23
sub eax, edx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x417c83
push ecx
push edx
call fcn.004017fd
mov eax, dword [esp + 0x18]
add esp, 8
mov ebx, dword [esp + 0x14]
inc ebp
cmp ebp, dword [esp + 0x1c]
jb 0x417ae0
jmp 0x417c6a
mov edx, dword [esp + 0x20]
mov ebx, dword [esp + 0x14]
mov eax, dword [edx + 0x24]
lea eax, [eax + ebp*2]
movzx ecx, word [eax + ebx]
mov eax, dword [edx + 0x1c]
lea eax, [eax + ecx*4]
mov ecx, dword [eax + ebx]
mov dword [esp + 0x18], ecx
mov ecx, dword [esp + 0x38]
cmp ecx, 0x10
jb 0x417c6a
mov edx, dword [esp + 0x24]
inc ecx
mov eax, edx
cmp ecx, 0x1000
jb 0x417c60
mov edx, dword [eax - 4]
add ecx, 0x23
sub eax, edx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x417c83
push ecx
push edx
call fcn.004017fd
add esp, 8
mov eax, dword [esp + 0x18]
mov ecx, dword [esp + 0x3c]
add eax, ebx
pop edi
pop esi
pop ebp
pop ebx
xor ecx, esp
call fcn.004029cd
add esp, 0x30
ret
call fcn.00403c6a
int3
Function at 0x45b5a6
Capabilities:
Enumerate files on windows

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x264
mov eax, dword [0x546238]
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 0x45b5f1
movzx eax, word [edx]
lea ecx, [ebp - 0x255]
push eax
call fcn.0045bb67
test al, al
jne 0x45b5eb
sub edx, 2
cmp edx, edi
jne 0x45b5d1
mov ecx, dword [ebp - 0x25c]
movzx esi, word [edx]
cmp esi, 0x3a
jne 0x45b613
lea eax, [edi + 2]
cmp edx, eax
je 0x45b613
push ecx
xor ebx, ebx
push ebx
push ebx
push edi
call fcn.0045b19f
add esp, 0x10
jmp 0x45b70d
push esi
lea ecx, [ebp - 0x255]
call fcn.0045bb67
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 0x45b656
push dword [ebp - 0x25c]
jmp 0x45b603
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 0x45b693
cmp word [ebp - 0x226], 0
je 0x45b6b4
cmp word [ebp - 0x226], ax
jne 0x45b693
cmp word [ebp - 0x224], 0
je 0x45b6b4
push ebx
push dword [ebp - 0x260]
lea eax, [ebp - 0x228]
push edi
push eax
call fcn.0045b19f
add esp, 0x10
mov dword [ebp - 0x264], eax
test eax, eax
jne 0x45b700
lea eax, [ebp - 0x254]
push eax
push esi
call dword [sym.imp.KERNEL32.dll_FindNextFileW]
push 0x2e
test eax, eax
pop eax
jne 0x45b66d
mov eax, dword [ebx + 4]
mov edx, dword [ebx]
sub eax, edx
mov ecx, dword [ebp - 0x25c]
sar eax, 2
cmp ecx, eax
jne 0x45b6e8
push esi
call dword [sym.imp.KERNEL32.dll_FindClose]
xor eax, eax
jmp 0x45b70d
push 0x45aa85
sub eax, ecx
push 4
push eax
lea eax, [edx + ecx*4]
push eax
call fcn.0040473c
add esp, 0x10
jmp 0x45b6dd
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.004029cd
leave
ret
Function at 0x46d73b
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 + 0x54a1d0]
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 0x46d77b
cmp byte [ebx], 0xa
jne 0x46d77b
or byte [eax + edi + 0x28], 4
jmp 0x46d780
and byte [eax + edi + 0x28], 0xfb
add ecx, ebx
mov edx, ebx
mov dword [ebp - 0xc], ecx
mov esi, ebx
cmp ebx, ecx
jae 0x46d87e
mov al, byte [edx]
cmp al, 0x1a
je 0x46d860
lea ecx, [edx + 1]
mov dword [ebp - 8], ecx
mov ecx, dword [ebp - 0xc]
cmp al, 0xd
je 0x46d7af
mov edx, dword [ebp - 8]
mov byte [esi], al
jmp 0x46d7d4
mov eax, dword [ebp - 8]
cmp eax, ecx
jae 0x46d7de
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 0x46d791
jmp 0x46d87e
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 0x46d85b
cmp dword [ebp - 0xc], 0
je 0x46d85b
mov ecx, dword [ebp - 0x10]
mov eax, dword [ecx*4 + 0x54a1d0]
test byte [eax + edi + 0x28], 0x48
je 0x46d835
mov dl, byte [ebp - 1]
lea eax, [esi + 1]
mov dword [ebp - 0x14], eax
cmp dl, 0xa
jne 0x46d820
mov byte [esi], dl
jmp 0x46d831
mov byte [esi], 0xd
mov eax, dword [ecx*4 + 0x54a1d0]
mov byte [eax + edi + 0x2a], dl
mov eax, dword [ebp - 0x14]
mov esi, eax
jmp 0x46d87e
cmp byte [ebp - 1], 0xa
jne 0x46d844
cmp esi, ebx
jne 0x46d844
mov byte [esi], 0xa
jmp 0x46d87d
push 1
push 0xffffffffffffffff
push 0xffffffffffffffff
push dword [ebp + 8]
call fcn.0040175d
add esp, 0x10
cmp byte [ebp - 1], 0xa
je 0x46d87e
mov byte [esi], 0xd
jmp 0x46d87d
mov ecx, dword [ebp - 0x10]
mov ecx, dword [ecx*4 + 0x54a1d0]
mov al, byte [ecx + edi + 0x28]
test al, 0x40
jne 0x46d87a
or al, 2
mov byte [ecx + edi + 0x28], al
jmp 0x46d87e
mov byte [esi], 0x1a
inc esi
sub esi, ebx
pop edi
mov eax, esi
pop esi
pop ebx
leave
ret
Function at 0x46d8da
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 + 0x54a1d0]
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 0x46d91d
cmp word [esi], dx
jne 0x46d91d
or byte [edi + eax + 0x28], 4
jmp 0x46d922
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 0x46da75
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 0x46da55
add eax, 2
cmp cx, word [ebp - 0xc]
je 0x46d964
mov dword [ebp - 4], eax
mov word [esi], cx
jmp 0x46d99a
cmp eax, edx
jae 0x46d9a6
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 0x46d93c
jmp 0x46da75
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 0x46da51
cmp dword [ebp - 0x14], 0
je 0x46da51
mov eax, dword [ebx*4 + 0x54a1d0]
push 0xa
test byte [edi + eax + 0x28], 0x48
je 0x46da29
mov dx, word [ebp - 4]
lea eax, [esi + 2]
pop ecx
mov dword [ebp - 0x18], eax
cmp dx, cx
jne 0x46d9f2
mov word [esi], cx
jmp 0x46da25
push 0xd
pop eax
mov word [esi], ax
mov eax, dword [ebx*4 + 0x54a1d0]
movzx ecx, dx
shr ecx, 8
push 0xa
mov byte [edi + eax + 0x2a], dl
mov eax, dword [ebx*4 + 0x54a1d0]
mov byte [edi + eax + 0x2b], cl
mov eax, dword [ebx*4 + 0x54a1d0]
pop ecx
mov byte [edi + eax + 0x2c], cl
mov eax, dword [ebp - 0x18]
mov esi, eax
jmp 0x46da75
pop ebx
cmp word [ebp - 4], bx
jne 0x46da3a
cmp esi, dword [ebp + 0xc]
jne 0x46da3a
mov word [esi], bx
jmp 0x46da72
push 1
push 0xffffffffffffffff
push 0xfffffffffffffffe
push dword [ebp + 8]
call fcn.0040175d
add esp, 0x10
cmp word [ebp - 4], bx
je 0x46da75
push 0xd
jmp 0x46da6e
mov ecx, dword [ebx*4 + 0x54a1d0]
mov al, byte [ecx + edi + 0x28]
test al, 0x40
jne 0x46da6c
or al, 2
mov byte [ecx + edi + 0x28], al
jmp 0x46da75
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 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 0x432000
Capabilities:
Encode data using xor
Packed with generic packer

Disassembly:
pushal
nop
nop
nop
nop
nop
call 0x43200c
nop
pop eax
nop
nop
nop
nop
add eax, 0x40729f
nop
nop
sub eax, 0x407245
mov ebx, dword [eax]
nop
nop
nop
nop
nop
mov ecx, dword [eax + 4]
nop
nop
mov edx, dword [eax + 8]
nop
nop
nop
nop
nop
nop
nop
xor dword [ebx], edx
nop
nop
nop
add ebx, 4
nop
nop
nop
nop
cmp ebx, ecx
nop
nop
jl 0x432030
nop
nop
add eax, 0xc
nop
nop
nop
cmp dword [eax], 0
nop
nop
nop
nop
nop
nop
nop
jne 0x43201e
nop
nop
nop
popal
nop
nop
jmp 0x431219
Function at 0x4076d4
Capabilities:
Accept command line arguments

Disassembly:
push ebx
push esi
push edi
add esp, 0xfffffdf4
mov ebx, edx
mov esi, eax
mov eax, ebx
call fcn.0040a3f0
test esi, esi
jne 0x40770a
push 0x105
lea eax, [esp + 4]
push eax
push 0
call sub.kernel32.dll_GetModuleFileNameW
mov ecx, eax
mov edx, esp
mov eax, ebx
call fcn.0040a588
jmp 0x407728
call sub.kernel32.dll_GetCommandLineW
mov edi, eax
mov edx, ebx
mov eax, edi
call fcn.00407618
mov edi, eax
test esi, esi
je 0x407728
cmp dword [ebx], 0
je 0x407728
dec esi
jmp 0x407711
add esp, 0x20c
pop edi
pop esi
pop ebx
ret

Function at 0x409038
Capabilities:
Check for time delay via gettickcount

Disassembly:
push ebx
push esi
push edi
push ebp
add esp, 0xfffffff0
mov edi, edx
mov esi, eax
mov ebp, dword [esi + 0x10]
mov eax, esi
call fcn.004094f8
mov byte [esp], al
cmp byte [esp], 0
jne 0x4091c1
test edi, edi
je 0x4091c1
mov byte [esp + 1], 0
test ebp, ebp
jle 0x409101
call sub.kernel32.dll_GetTickCount
mov dword [esp + 4], eax
xor eax, eax
mov dword [esp + 0xc], eax
test ebp, ebp
jle 0x4090dc
cmp edi, 0xffffffff
je 0x40909d
call sub.kernel32.dll_GetTickCount
sub eax, dword [esp + 4]
cmp edi, eax
ja 0x40909d
mov byte [esp], 0
jmp 0x4091c1
cmp dword [esi], 1
jg 0x4090dc
cmp dword [esi], 0
jne 0x4090ce
xor eax, eax
mov edx, 1
lock cmpxchg dword [esi], edx
test eax, eax
jne 0x4090ce
call sub.kernel32.dll_GetCurrentThreadId
mov dword [esi + 8], eax
mov dword [esi + 4], 1
mov byte [esp], 1
jmp 0x4091c1
lea eax, [esp + 0xc]
call fcn.00408cec
dec ebp
test ebp, ebp
jg 0x409082
cmp edi, 0xffffffff
je 0x409101
call sub.kernel32.dll_GetTickCount
mov dword [esp + 8], eax
mov eax, dword [esp + 8]
sub eax, dword [esp + 4]
cmp edi, eax
ja 0x4090ff
mov byte [esp], 0
jmp 0x4091c1
sub edi, eax
mov ebx, dword [esi]
test ebx, ebx
je 0x409046
lea edx, [ebx + 2]
mov eax, ebx
lock cmpxchg dword [esi], edx
cmp ebx, eax
jne 0x409101
call sub.kernel32.dll_GetTickCount
mov dword [esp + 4], eax
mov eax, esi
call fcn.0040923c
mov edx, eax
mov ebx, dword [0x6128fc]
mov ecx, edi
xor eax, eax
call dword [ebx + 0x10]
test eax, eax
sete byte [esp]
cmp edi, 0xffffffff
je 0x409165
call sub.kernel32.dll_GetTickCount
mov dword [esp + 8], eax
mov eax, dword [esp + 8]
sub eax, dword [esp + 4]
cmp edi, eax
jbe 0x409163
mov eax, dword [esp + 8]
sub eax, dword [esp + 4]
sub edi, eax
jmp 0x409165
xor edi, edi
cmp byte [esp], 0
je 0x40918b
mov ebx, dword [esi]
test bl, 1
jne 0x4091a1
mov edx, ebx
sub edx, 2
or edx, 1
mov eax, ebx
lock cmpxchg dword [esi], edx
cmp ebx, eax
jne 0x40916b
mov byte [esp + 1], 1
jmp 0x4091a1
mov ebx, dword [esi]
mov edx, ebx
sub edx, 2
mov eax, ebx
lock cmpxchg dword [esi], edx
cmp ebx, eax
jne 0x40918b
mov byte [esp + 1], 1
cmp byte [esp + 1], 0
je 0x409118
cmp byte [esp], 0
je 0x4091c1
call sub.kernel32.dll_GetCurrentThreadId
mov dword [esi + 8], eax
mov dword [esi + 4], 1
movzx eax, byte [esp]
add esp, 0x10
pop ebp
pop edi
pop esi
pop ebx
ret
Function at 0x40a088
Capabilities:
Write file on windows

Disassembly:
push ecx
cmp byte [0x61205c], 0
je 0x40a0ef
cmp word [0x612348], 0xd7b2
jne 0x40a0b1
cmp dword [0x612350], 0
jbe 0x40a0b1
mov eax, 0x612344
call dword [0x612360]
push 0
lea eax, [esp + 4]
push eax
push 0x1d
push str.Runtime_error_____at_00000000
push 0xfffffffffffffff5
call sub.kernel32.dll_GetStdHandle
push eax
call sub.kernel32.dll_WriteFile
push 0
lea eax, [esp + 4]
push eax
push 2
mov eax, 0x40a11c
call fcn.0040ac74
push eax
push 0xfffffffffffffff5
call sub.kernel32.dll_GetStdHandle
push eax
call sub.kernel32.dll_WriteFile
pop edx
ret
cmp byte [0x608036], 0
jne 0x40a10b
push 0
push str.Error
push str.Runtime_error_____at_00000000
push 0
call sub.user32.dll_MessageBoxA
pop edx
ret

Function at 0x40a2b0
Capabilities:
Create thread

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffff8
push ebx
push esi
push edi
mov esi, ecx
mov dword [ebp - 8], edx
mov dword [ebp - 4], eax
mov edi, dword [ebp + 0x10]
cmp dword [0x608038], 0
je 0x40a2db
mov edx, edi
mov eax, esi
call dword [0x608038]
mov ebx, eax
jmp 0x40a2ec
mov eax, 8
call fcn.00406fcc
mov ebx, eax
mov dword [ebx], esi
mov dword [ebx + 4], edi
mov byte [0x61205d], 1
mov eax, dword [ebp + 8]
push eax
mov eax, dword [ebp + 0xc]
push eax
push ebx
mov eax, 0x40a278
push eax
mov eax, dword [ebp - 8]
push eax
mov eax, dword [ebp - 4]
push eax
call sub.kernel32.dll_CreateThread
mov esi, eax
test esi, esi
jne 0x40a31c
mov eax, ebx
call fcn.00406fe8
mov eax, esi
pop edi
pop esi
pop ebx
pop ecx
pop ecx
pop ebp
ret 0xc