joyce8/EMBER2024-capa huggingface dataset:
Function at 0x567ff0
Capabilities:
Get socket status

Disassembly:
sub esp, 0x10c
mov eax, dword [ecx]
lea ecx, [esp]
push ecx
push 0
lea edx, [esp + 0x10]
push 0
push edx
push 0
mov dword [esp + 0x14], 0
mov dword [esp + 0x18], 0
mov dword [esp + 0x20], eax
mov dword [esp + 0x1c], 1
call sub.WS2_32.dll_select
cmp eax, 0xffffffff
jne 0x568039
xor eax, eax
add esp, 0x10c
ret 4
mov edx, dword [esp + 0x110]
xor ecx, ecx
test eax, eax
setne cl
mov dword [edx], ecx
mov eax, 1
add esp, 0x10c
ret 4

Function at 0x5684b0
Capabilities:
Access peb ldr_data

Disassembly:
push 0xffffffffffffffff
push 0x590d60
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 8
push esi
mov esi, ecx
lea ecx, [esp + 4]
call fcn.00568060
lea eax, [esp + 4]
lea ecx, [esi + 4]
push eax
mov dword [esp + 0x18], 0
call fcn.005680e0
lea ecx, [esp + 4]
push ecx
lea ecx, [esi + 0x14]
call fcn.005680e0
lea ecx, [esi + 0xc]
call fcn.0057ceea
lea ecx, [esi + 0x10]
call fcn.0057ceea
push 0xffffffffffffffff
push 0
lea ecx, [esi + 0x1c]
call fcn.00569670
push 0xffffffffffffffff
push 0
lea ecx, [esi + 0x30]
call fcn.00569670
push 0xffffffffffffffff
push 0
lea ecx, [esi + 0x44]
call fcn.00569670
lea ecx, [esp + 8]
mov dword [esp + 0x14], 1
call fcn.0057cf5f
lea ecx, [esp + 4]
mov dword [esp + 0x14], 0xffffffff
call fcn.0057cf5f
mov ecx, dword [esp + 0xc]
pop esi
mov dword fs:[0], ecx
add esp, 0x14
ret
Function at 0x569860
Capabilities:
Check for time delay via gettickcount

Disassembly:
sub esp, 0xa0
push ebx
push ebp
mov ebp, dword [esp + 0xac]
push esi
push edi
push ebp
call sub.RASAPI32.dll_RasHangUpA
mov esi, dword [sym.imp.KERNEL32.dll_GetTickCount_1]
mov ecx, 0x28
xor eax, eax
lea edi, [esp + 0x10]
rep stosd dword es:[edi], eax
mov dword [esp + 0x10], 0xa0
call esi
mov edi, eax
call esi
sub eax, edi
cmp eax, 0xbb8
jae 0x5698c6
mov ebx, dword [sym.imp.KERNEL32.dll_Sleep_1]
lea eax, [esp + 0x10]
push eax
push ebp
call sub.RASAPI32.dll_RasGetConnectStatusA
cmp eax, 6
je 0x5698c6
push 0
call ebx
call esi
sub eax, edi
cmp eax, 0xbb8
jb 0x5698a7
pop edi
pop esi
pop ebp
pop ebx
add esp, 0xa0
ret

Function at 0x56d84c
Capabilities:
Check if file exists
Get file attributes

Disassembly:
push dword [esp + 4]
call dword [sym.imp.KERNEL32.dll_GetFileAttributesA_1]
cmp eax, 0xffffffff
jne 0x56d86c
call dword [sym.imp.KERNEL32.dll_GetLastError_1]
push eax
call fcn.0056f439
pop ecx
or eax, 0xffffffff
ret
test al, 1
je 0x56d88f
test byte [esp + 8], 2
je 0x56d88f
call fcn.0056f4ac
mov dword [eax], 0xd
call fcn.0056f4b5
mov dword [eax], 5
jmp 0x56d868
xor eax, eax
ret

Function at 0x57f399
Capabilities:
Get graphical window text

Disassembly:
push esi
mov esi, ecx
mov ecx, dword [esi + 0x38]
test ecx, ecx
jne 0x57f3d1
push dword [esi + 0x1c]
call dword [sym.imp.USER32.dll_GetWindowTextLengthA_1]
lea ecx, [eax + 1]
push ecx
mov ecx, dword [esp + 0xc]
push eax
call fcn.0057d3ba
push eax
push dword [esi + 0x1c]
call dword [sym.imp.USER32.dll_GetWindowTextA_1]
mov ecx, dword [esp + 8]
push 0xffffffffffffffff
call fcn.0057d392
jmp 0x57f3dd
mov eax, dword [ecx]
push dword [esp + 8]
call dword [eax + 0x88]
pop esi
ret 4

Function at 0x580c0a
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 0x580c4c
call fcn.005871dc
mov esi, dword [eax + 0xc]
push 0xf0
push dword [esp + 0x14]
push esi
call dword [sym.imp.KERNEL32.dll_FindResourceA_1]
cmp eax, edi
je 0x580c4c
push eax
push esi
call dword [sym.imp.KERNEL32.dll_LoadResource_1]
cmp eax, edi
jne 0x580c43
xor eax, eax
jmp 0x580c54
push eax
call dword [sym.imp.KERNEL32.dll_LockResource_1]
mov edi, eax
push edi
mov ecx, ebx
call fcn.00580c5a
pop edi
pop esi
pop ebx
ret 4

Function at 0x58770c
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_1]
cmp dword [esp + 0x10], 0
jne 0x58773a
push dword [esi]
call dword [sym.imp.KERNEL32.dll_TlsGetValue_1]
test eax, eax
je 0x587758
push dword [esp + 0xc]
mov ecx, esi
push eax
call fcn.00587672
jmp 0x587758
mov eax, dword [esi + 0x14]
test eax, eax
je 0x587758
push edi
push dword [esp + 0x10]
mov edi, dword [eax + 4]
mov ecx, esi
push eax
call fcn.00587672
test edi, edi
mov eax, edi
jne 0x587742
pop edi
push ebx
call dword [sym.imp.KERNEL32.dll_LeaveCriticalSection_1]
pop esi
pop ebx
ret 8
Function at 0x58a005
Capabilities:
Check for time delay via gettickcount
Log keystrokes via polling

Disassembly:
sub esp, 0x20
push ebx
push ebp
push esi
mov esi, ecx
push edi
mov edi, dword [sym.imp.USER32.dll_GetKeyState_1]
xor ebx, ebx
push 1
mov dword [esi + 0x30], ebx
mov dword [esi + 0x34], ebx
mov dword [esi + 0x38], ebx
call edi
test ax, ax
jge 0x58a02d
or dword [esi + 0x38], 1
or dword [esi + 0x34], 2
jmp 0x58a03e
push 2
call edi
test ax, ax
jge 0x58a03e
or dword [esi + 0x38], 2
or dword [esi + 0x34], 1
mov ebp, dword [sym.imp.KERNEL32.dll_GetTickCount_1]
call ebp
mov dword [esp + 0x10], eax
mov eax, dword [esp + 0x34]
push dword [eax + 0x1c]
call dword [sym.imp.USER32.dll_SetCapture_1]
push eax
call fcn.0057e9cf
cmp dword [esi + 0x30], ebx
jne 0x58a118
mov edi, dword [sym.imp.USER32.dll_PeekMessageA_1]
mov ebx, 0x100
call dword [sym.imp.USER32.dll_GetCapture_1]
push eax
call fcn.0057e9cf
cmp eax, dword [esp + 0x34]
jne 0x58a118
push 1
push 0x209
push 0x200
lea eax, [esp + 0x20]
push 0
push eax
call edi
test eax, eax
jne 0x58a0b4
push 1
push 0x108
push ebx
push eax
lea eax, [esp + 0x24]
push eax
call edi
test eax, eax
je 0x58a0f9
mov eax, dword [esp + 0x18]
cmp eax, 0x202
je 0x58a118
cmp eax, 0x205
je 0x58a118
cmp eax, 0x201
je 0x58a118
cmp eax, 0x204
je 0x58a118
cmp eax, ebx
jne 0x58a0df
cmp dword [esp + 0x1c], 0x1b
je 0x58a118
push dword [esp + 0x2c]
lea eax, [esi + 0x20]
push dword [esp + 0x2c]
push eax
call dword [sym.imp.USER32.dll_PtInRect_1]
neg eax
sbb eax, eax
inc eax
mov dword [esi + 0x30], eax
call ebp
sub eax, dword [esp + 0x10]
cmp eax, dword [0x80659c]
jbe 0x58a10e
mov dword [esi + 0x30], 1
cmp dword [esi + 0x30], 0
je 0x58a071
call dword [sym.imp.USER32.dll_ReleaseCapture_1]
mov eax, dword [esi + 0x30]
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x20
ret 4
Function at 0xf16058
Capabilities:
Decompress data using aplib

Disassembly:
call 0xf161a8
push ebx
mov ebx, esp
push ebx
mov esi, dword [ebx + 8]
mov edi, dword [ebx + 0x10]
cld
mov dl, 0x80
mov al, byte [esi]
inc esi
mov byte [edi], al
inc edi
mov ebx, 2
add dl, dl
jne 0xf1607e
mov dl, byte [esi]
inc esi
adc dl, dl
jae 0xf1606a
add dl, dl
jne 0xf16089
mov dl, byte [esi]
inc esi
adc dl, dl
jae 0xf160dc
xor eax, eax
add dl, dl
jne 0xf16096
mov dl, byte [esi]
inc esi
adc dl, dl
jae 0xf1617d
add dl, dl
jne 0xf160a5
mov dl, byte [esi]
inc esi
adc dl, dl
adc eax, eax
add dl, dl
jne 0xf160b0
mov dl, byte [esi]
inc esi
adc dl, dl
adc eax, eax
add dl, dl
jne 0xf160bb
mov dl, byte [esi]
inc esi
adc dl, dl
adc eax, eax
add dl, dl
jne 0xf160c6
mov dl, byte [esi]
inc esi
adc dl, dl
adc eax, eax
je 0xf160d2
push edi
mov eax, eax
sub edi, eax
mov al, byte [edi]
pop edi
mov byte [edi], al
inc edi
mov ebx, 2
jmp 0xf16075
mov eax, 1
add dl, dl
jne 0xf160ea
mov dl, byte [esi]
inc esi
adc dl, dl
adc eax, eax
add dl, dl
jne 0xf160f5
mov dl, byte [esi]
inc esi
adc dl, dl
jb 0xf160e1
sub eax, ebx
mov ebx, 1
jne 0xf16128
mov ecx, 1
add dl, dl
jne 0xf1610e
mov dl, byte [esi]
inc esi
adc dl, dl
adc ecx, ecx
add dl, dl
jne 0xf16119
mov dl, byte [esi]
inc esi
adc dl, dl
jb 0xf16105
push esi
mov esi, edi
sub esi, ebp
rep movsb byte es:[edi], byte [esi]
pop esi
jmp 0xf16075
dec eax
shl eax, 8
mov al, byte [esi]
inc esi
mov ebp, eax
mov ecx, 1
add dl, dl
jne 0xf1613f
mov dl, byte [esi]
inc esi
adc dl, dl
adc ecx, ecx
add dl, dl
jne 0xf1614a
mov dl, byte [esi]
inc esi
adc dl, dl
jb 0xf16136
cmp eax, 0x7d00
jae 0xf1616d
cmp eax, 0x500
jb 0xf16168
inc ecx
push esi
mov esi, edi
sub esi, eax
rep movsb byte es:[edi], byte [esi]
pop esi
jmp 0xf16075
cmp eax, 0x7f
ja 0xf16170
add ecx, 2
push esi
mov esi, edi
sub esi, eax
rep movsb byte es:[edi], byte [esi]
pop esi
jmp 0xf16075
mov al, byte [esi]
inc esi
xor ecx, ecx
shr al, 1
je 0xf1619e
adc ecx, 2
mov ebp, eax
push esi
mov esi, edi
sub esi, eax
rep movsb byte es:[edi], byte [esi]
pop esi
mov ebx, 1
jmp 0xf16075
pop ebx
sub edi, dword [ebx + 0x10]
mov eax, edi
pop ebx
ret 0x10
Function at 0x601440
Capabilities:
Packed with generic packer

Disassembly:
pushal
mov esi, section.UPX1
lea edi, [esi - 0x15d000]
push edi
jmp 0x60145a
mov al, byte [esi]
inc esi
mov byte [edi], al
inc edi
add ebx, ebx
jne 0x601461
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
jb 0x601450
mov eax, 1
add ebx, ebx
jne 0x601473
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc eax, eax
add ebx, ebx
jae 0x601484
jne 0x6014a3
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
jb 0x6014a3
dec eax
add ebx, ebx
jne 0x601490
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc eax, eax
jmp 0x601468
add ebx, ebx
jne 0x60149f
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc ecx, ecx
jmp 0x6014f5
xor ecx, ecx
sub eax, 3
jb 0x6014bb
shl eax, 8
mov al, byte [esi]
inc esi
xor eax, 0xffffffff
je 0x60152a
sar eax, 1
mov ebp, eax
jmp 0x6014c6
add ebx, ebx
jne 0x6014c6
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
jb 0x601494
inc ecx
add ebx, ebx
jne 0x6014d4
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
jb 0x601494
add ebx, ebx
jne 0x6014e1
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc ecx, ecx
add ebx, ebx
jae 0x6014d6
jne 0x6014f2
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
jae 0x6014d6
add ecx, 2
cmp ebp, 0xfffffb00
adc ecx, 2
lea edx, [edi + ebp]
cmp ebp, 0xfffffffc
jbe 0x601514
mov al, byte [edx]
inc edx
mov byte [edi], al
inc edi
dec ecx
jne 0x601506
jmp 0x601456
mov eax, dword [edx]
add edx, 4
mov dword [edi], eax
add edi, 4
sub ecx, 4
ja 0x601514
add edi, ecx
jmp 0x601456
pop esi
mov edi, esi
mov ecx, 0x63e5
mov al, byte [edi]
inc edi
sub al, 0xe8
cmp al, 1
ja 0x601532
cmp byte [edi], 0x26
jne 0x601532
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 al, bl
loop 0x601537
lea edi, [esi + 0x1f5000]
mov eax, dword [edi]
or eax, eax
je 0x6015af
mov ebx, dword [edi + 4]
lea eax, [eax + esi + 0x24375c]
add ebx, esi
push eax
add edi, 8
call dword [esi + 0x2438d8]
xchg ebp, eax
mov al, byte [edi]
inc edi
or al, al
je 0x601564
mov ecx, edi
jns 0x601593
movzx eax, word [edi]
inc edi
push eax
inc edi
mov ecx, 0xaef24857
push edi
dec eax
repne scasb al, byte es:[edi]
push ebp
call dword [esi + 0x2438e0]
or eax, eax
je 0x6015a9
mov dword [ebx], eax
add ebx, 4
jmp 0x601581
call dword [esi + 0x2438dc]
add edi, 4
lea ebx, [esi - 4]
xor eax, eax
mov al, byte [edi]
inc edi
or eax, eax
je 0x6015e0
cmp al, 0xef
ja 0x6015d3
add ebx, eax
mov eax, dword [ebx]
xchg ah, al
rol eax, 0x10
xchg ah, al
add eax, esi
mov dword [ebx], eax
jmp 0x6015b5
and al, 0xf
shl eax, 0x10
mov ax, word [edi]
add edi, 2
jmp 0x6015c2
mov ebp, dword [esi + 0x2438e4]
lea edi, [esi - 0x1000]
mov ebx, 0x1000
push eax
push esp
push 4
push ebx
push edi
call ebp
lea eax, [edi + 0x257]
and byte [eax], 0x7f
and byte [eax + 0x28], 0x7f
pop eax
push eax
push esp
push eax
push ebx
push edi
call ebp
pop eax
popal
lea eax, [esp - 0x80]
push 0
cmp esp, eax
jne 0x601614
sub esp, 0xffffff80
jmp 0x4c93b3
Function at 0x401126
Capabilities:
Execute syscall

Disassembly:
mov edx, esp
sysenter
ret

Function at 0x401237
Capabilities:
Hash data using djb2

Disassembly:
push ebx
push esi
push edi
mov edi, edx
xor esi, esi
mov ebx, ecx
mov eax, 0x1505
test edi, edi
je 0x40125d
mov dl, byte [esi + ebx]
test dl, dl
je 0x40125d
imul eax, eax, 0x21
movzx ecx, dl
add eax, ecx
inc esi
cmp esi, edi
jb 0x401249
pop edi
pop esi
pop ebx
ret

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

Disassembly:
push ebp
mov ebp, esp
push esi
mov esi, dword [ebp + 8]
not ecx
cmp esi, 4
jb 0x40342d
push edi
mov edi, esi
shr edi, 2
movzx eax, byte [edx]
sub esi, 4
xor eax, ecx
shr ecx, 8
movzx eax, al
xor ecx, dword [eax*4 + 0x424770]
movzx eax, byte [edx + 1]
xor eax, ecx
shr ecx, 8
movzx eax, al
xor ecx, dword [eax*4 + 0x424770]
movzx eax, byte [edx + 2]
xor eax, ecx
shr ecx, 8
movzx eax, al
xor ecx, dword [eax*4 + 0x424770]
movzx eax, byte [edx + 3]
add edx, 4
xor eax, ecx
shr ecx, 8
movzx eax, al
xor ecx, dword [eax*4 + 0x424770]
sub edi, 1
jne 0x4033d6
pop edi
test esi, esi
je 0x403449
movzx eax, byte [edx]
xor eax, ecx
shr ecx, 8
movzx eax, al
xor ecx, dword [eax*4 + 0x424770]
inc edx
sub esi, 1
jne 0x403431
not ecx
mov eax, ecx
pop esi
pop ebp
ret
Function at 0x408239
Capabilities:
Enumerate pe sections

Disassembly:
movzx eax, word [edx + 0x14]
push esi
lea esi, [edx + 0x18]
movzx edx, word [edx + 6]
push edi
add esi, eax
xor edi, edi
test edx, edx
je 0x408265
cmp dword [esi + 0xc], ecx
ja 0x40825d
mov eax, dword [esi + 8]
add eax, dword [esi + 0xc]
cmp eax, ecx
ja 0x40826a
add esi, 0x28
inc edi
cmp edi, edx
jl 0x40824e
xor eax, eax
pop edi
pop esi
ret
mov eax, esi
jmp 0x408267
Function at 0x408553
Capabilities:
Get system information on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x30
mov eax, dword [section..data]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
push esi
push edi
mov edi, dword [ebp + 0xc]
xor ecx, ecx
push 4
xor esi, esi
mov eax, edi
pop edx
mul edx
mov dword [ebp - 0xc], esi
mov dword [ebp - 8], esi
seto cl
neg ecx
or ecx, eax
push ecx
call fcn.0040fae4
mov ebx, eax
pop ecx
test edi, edi
je 0x40859e
lea ecx, [ebp + 0xc]
lea ecx, [ecx + 4]
mov eax, dword [ecx]
mov dword [ebx + esi*4], eax
inc esi
cmp esi, edi
jb 0x408591
mov edx, str.KernelBase.dll
mov ecx, 0x5658bf2e
call fcn.00408bc3
mov esi, eax
test esi, esi
je 0x4085d3
lea eax, [ebp - 8]
push eax
lea eax, [ebp - 0xc]
push eax
call dword [sym.imp.KERNEL32.dll_GetCurrentProcess]
push eax
call esi
mov eax, dword [ebp - 8]
mov ecx, 0x8664
mov esi, pe_nt_image_headers32
jmp 0x4085fd
lea eax, [ebp - 0x30]
push eax
call dword [sym.imp.KERNEL32.dll_GetNativeSystemInfo]
cmp word [ebp - 0x30], 9
mov ecx, 0x8664
mov eax, dword [ebp - 8]
mov esi, pe_nt_image_headers32
cmove eax, ecx
cmp word [ebp - 0x30], 0
cmove eax, esi
mov dword [ebp - 8], eax
xor edx, edx
cmp ax, cx
mov ecx, dword [ebp + 8]
sete dl
call fcn.0040826e
mov ecx, dword [ebp - 8]
cmp cx, si
je 0x408647
mov edx, 0x14c
cmp cx, dx
je 0x408647
mov edx, 0xaa64
cmp cx, dx
je 0x40863d
mov edx, 0x1c0
cmp cx, dx
je 0x40863d
push ebx
push edi
push eax
call fcn.0040102d
jmp 0x40864f
push ebx
push edi
push eax
call fcn.00401000
jmp 0x40864f
push ebx
push edi
push eax
call fcn.004010fd
mov ecx, dword [ebp - 4]
add esp, 0xc
xor ecx, ebp
pop edi
pop esi
pop ebx
call fcn.00408d2b
leave
ret

Function at 0x408bc3
Capabilities:
Access peb ldr_data

Disassembly:
push ebp
mov ebp, esp
push ecx
mov eax, dword fs:[0x30]
push ebx
push esi
push edi
mov eax, dword [eax + 0xc]
mov ebx, edx
mov dword [ebp - 4], ecx
mov edi, dword [eax + 0x10]
mov esi, edi
mov esi, dword [esi]
cmp dword [esi + 0x18], 0
je 0x408bf7
push str.kernel32.dll
push dword [esi + 0x30]
call dword [sym.imp.KERNEL32.dll_lstrcmpiW]
test eax, eax
je 0x408bfb
cmp edi, esi
jne 0x408bdd
mov ecx, dword [esi + 0x18]
mov edx, 0xab87776c
call fcn.00408c1a
push ebx
call eax
mov edx, dword [ebp - 4]
mov ecx, eax
call fcn.00408c1a
pop edi
pop esi
pop ebx
leave
ret

Function at 0x408c1a
Capabilities:
Resolve function by parsing pe exports

Disassembly:
push ebp
mov ebp, esp
sub esp, 0xc
push ebx
push esi
push edi
mov edi, ecx
mov dword [ebp - 4], edx
xor esi, esi
mov eax, dword [edi + 0x3c]
mov ebx, dword [eax + edi + 0x78]
add ebx, edi
mov ecx, dword [ebx + 0x20]
mov eax, dword [ebx + 0x24]
add ecx, edi
add eax, edi
mov dword [ebp - 8], ecx
mov dword [ebp - 0xc], eax
cmp dword [ebx + 0x18], esi
jbe 0x408c60
mov ecx, dword [ecx + esi*4]
add ecx, edi
call fcn.00408c7f
cmp dword [ebp - 4], eax
je 0x408c67
mov ecx, dword [ebp - 8]
inc esi
cmp esi, dword [ebx + 0x18]
jb 0x408c48
xor eax, eax
pop edi
pop esi
pop ebx
leave
ret
mov eax, dword [ebp - 0xc]
movzx ecx, word [eax + esi*2]
test ecx, ecx
je 0x408c60
mov eax, dword [ebx + 0x1c]
lea eax, [eax + ecx*4]
mov eax, dword [eax + edi]
add eax, edi
jmp 0x408c62
Function at 0x408c7f
Capabilities:
Encode data using xor

Disassembly:
push esi
push edi
mov edi, ecx
mov edx, edi
lea ecx, [edx + 1]
mov al, byte [edx]
inc edx
test al, al
jne 0x408c88
sub edx, ecx
mov esi, edx
xor esi, 0x20
cmp edx, 4
jl 0x408ce8
push ebx
mov ebx, edx
shr ebx, 2
imul eax, ebx, 0xfffffffc
add edx, eax
movzx ecx, byte [edi + 3]
movzx eax, byte [edi + 2]
shl ecx, 8
or ecx, eax
imul esi, esi, 0x5bd1e995
movzx eax, byte [edi + 1]
shl ecx, 8
or ecx, eax
movzx eax, byte [edi]
shl ecx, 8
add edi, 4
or ecx, eax
imul ecx, ecx, 0x5bd1e995
mov eax, ecx
shr eax, 0x18
xor eax, ecx
imul ecx, eax, 0x5bd1e995
xor esi, ecx
sub ebx, 1
jne 0x408ca6
pop ebx
sub edx, 1
je 0x408d09
sub edx, 1
je 0x408d00
sub edx, 1
jne 0x408d14
movzx eax, byte [edi + 2]
shl eax, 0x10
xor esi, eax
movzx eax, byte [edi + 1]
shl eax, 8
xor esi, eax
movzx eax, byte [edi]
xor eax, esi
imul esi, eax, 0x5bd1e995
mov eax, esi
shr eax, 0xd
xor eax, esi
imul ecx, eax, 0x5bd1e995
pop edi
pop esi
mov eax, ecx
shr eax, 0xf
xor eax, ecx
ret

Function at 0x409638
Capabilities:
Parse pe header

Disassembly:
push 0
call dword [sym.imp.KERNEL32.dll_GetModuleHandleW]
test eax, eax
je 0x409677
mov ecx, 0x5a4d
cmp word [eax], cx
jne 0x409677
mov ecx, dword [eax + 0x3c]
add ecx, eax
cmp dword [ecx], 0x4550
jne 0x409677
mov eax, 0x10b
cmp word [ecx + 0x18], ax
jne 0x409677
cmp dword [ecx + 0x74], 0xe
jbe 0x409677
cmp dword [ecx + 0xe8], 0
setne al
ret
xor al, al
ret

Function at 0x417216
Capabilities:
Set environment variable

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
pop ebp
jmp fcn.00416e93

Function at 0x41b230
Capabilities:
Parse pe header

Disassembly:
push ebp
mov ebp, esp
mov eax, dword [ebp + 8]
mov ecx, 0x5a4d
cmp word [eax], cx
jne 0x41b25d
mov ecx, dword [eax + 0x3c]
add ecx, eax
cmp dword [ecx], 0x4550
jne 0x41b25d
mov edx, 0x10b
xor eax, eax
cmp word [ecx + 0x18], dx
sete al
pop ebp
ret
xor eax, eax
pop ebp
ret
Function at 0x402f00
Capabilities:
Accept command line arguments
Encrypt data using rc4 prga

Disassembly:
push ebp
mov ebp, esp
push edi
push esi
push ebx
sub esp, 0x58
call dword [sym.imp.kernel32.dll_GetCommandLineW]
mov ebx, eax
movzx eax, word [eax]
test ax, ax
je 0x402f8b
cmp ax, 9
je 0x402f78
cmp ax, 0x20
je 0x402f78
mov dword [ebp - 0x54], 0
xor edi, edi
nop
cmp ax, 0x5c
je 0x402fe0
cmp ax, 0x22
je 0x402ff0
mov dword [ebp - 0x54], 0
movzx eax, word [ebx + 2]
add ebx, 2
test ax, ax
je 0x402f8b
cmp ax, 9
sete cl
cmp ax, 0x20
mov esi, ecx
sete cl
mov edx, esi
or dl, cl
je 0x402f30
test edi, 1
jne 0x402f30
lea esi, [esi]
movzx eax, word [ebx + 2]
add ebx, 2
cmp ax, 9
je 0x402f78
cmp ax, 0x20
je 0x402f78
lea eax, [ebp - 0x50]
mov dword [esp], eax
call dword [sym.imp.kernel32.dll_GetStartupInfoW]
sub esp, 4
test byte [ebp - 0x24], 1
je 0x403008
movzx esi, word [ebp - 0x20]
mov dword [esp], 0
call dword [sym.imp.kernel32.dll_GetModuleHandleW]
sub esp, 4
mov dword [esp + 0xc], esi
mov dword [esp + 8], ebx
mov dword [esp + 4], 0
mov dword [esp], eax
call sym._wWinMain_16
sub esp, 0x10
lea esp, [ebp - 0xc]
pop ebx
pop esi
pop edi
pop ebp
ret
inc dword [ebp - 0x54]
jmp 0x402f4b
and dword [ebp - 0x54], 1
jne 0x402f44
xor edi, 1
jmp 0x402f4b
mov eax, 1
mov esi, 1
mov word [ebp - 0x20], ax
jmp 0x402fa4

Function at 0x403020
Capabilities:
Get process heap flags
Terminate process

Disassembly:
push ebp
mov ebp, esp
push edi
push esi
push ebx
sub esp, 0xc
mov dword [esp], 1
call sym.__configure_wide_argv
call sym.__initialize_wide_environment
call sym.___p___argc
mov esi, dword [eax]
call sym.___p___wargv
mov edi, dword [eax]
call sym.__get_initial_wide_environment
mov ebx, eax
mov eax, dword fs:[0x18]
mov eax, dword [eax + 0x30]
mov eax, dword [eax + 8]
mov edx, dword [eax + 0x3c]
cmp word [eax + edx + 0x5c], 2
sete al
movzx eax, al
inc eax
mov dword [esp], eax
call sym.__set_app_type
mov dword [esp + 8], ebx
mov dword [esp + 4], edi
mov dword [esp], esi
call sym._wmain
mov dword [esp], eax
call sym._exit
nop
nop
nop
nop
nop

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 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 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 0x433003
Capabilities:
Encode data using xor
Packed with generic packer

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