joyce8/EMBER2024-capa huggingface dataset:
Function at 0x407123
Capabilities:
Accept command line arguments

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x208
push esi
call dword [sym.imp.KERNEL32.dll_GetCommandLineW]
lea ecx, [ebp - 0x18]
push eax
call fcn.0040a964
or dword [ebp - 0x20], 0xffffffff
and dword [ebp - 0x1c], 0
push 1
pop esi
cmp dword [ebp - 0x10], esi
jbe 0x40718a
mov ecx, dword [ebp - 0xc]
mov eax, dword [ecx + esi*4]
cmp word [eax], 0x2d
jne 0x40718a
movzx eax, word [eax + 2]
cmp eax, 0x63
je 0x407176
cmp eax, 0x6c
jne 0x407184
mov eax, dword [ecx + esi*4]
lea ecx, [eax + 4]
call fcn.0040c8e0
mov dword [ebp - 0x20], eax
jmp 0x407184
mov eax, dword [ecx + esi*4]
lea ecx, [eax + 4]
call fcn.0040c8e0
mov dword [ebp - 0x1c], eax
inc esi
cmp esi, dword [ebp - 0x10]
jb 0x40714c
mov eax, dword [0x41d878]
push edi
mov dword [ebp - 4], eax
inc dword [eax]
cmp esi, dword [ebp - 0x10]
jae 0x40720e
mov eax, dword [ebp - 0xc]
mov edi, dword [eax + esi*4]
mov ecx, edi
call fcn.0040470b
lea ecx, [ebp - 4]
push eax
push edi
call fcn.0040c762
lea ecx, [ebp - 4]
call fcn.004063f0
test al, al
jne 0x40720e
lea edi, [esi + 1]
cmp edi, dword [ebp - 0x10]
jae 0x4071fa
lea eax, [ebp - 8]
push 1
push eax
lea ecx, [ebp - 4]
mov dword [ebp - 8], 0x20
call fcn.0040c7b2
mov eax, dword [ebp - 0xc]
lea ecx, [ebp - 4]
push dword [eax + edi*4]
call fcn.004017c3
lea ecx, [ebp - 4]
call fcn.004063f0
test al, al
jne 0x4071f7
inc edi
jmp 0x4071c0
cmp edi, dword [ebp - 0x10]
jne 0x40720c
mov eax, dword [ebp - 0xc]
lea ecx, [ebp - 4]
push dword [eax + esi*4]
call fcn.004010ce
jmp 0x40720e
mov esi, edi
inc esi
pop edi
cmp esi, dword [ebp - 0x10]
jae 0x40726a
mov eax, dword [0x41d878]
mov dword [ebp - 8], eax
inc dword [eax]
cmp esi, dword [ebp - 0x10]
jae 0x407257
lea eax, [ebp - 0x24]
push 1
push eax
lea ecx, [ebp - 8]
mov dword [ebp - 0x24], 0x22
call fcn.0040c7b2
mov eax, dword [ebp - 0xc]
lea ecx, [ebp - 8]
push dword [eax + esi*4]
call fcn.004017c3
lea ecx, [ebp - 8]
push 0x42ebcc
call fcn.004017c3
inc esi
jmp 0x40721f
mov eax, dword [ebp - 8]
lea ecx, [eax + 0xc]
call fcn.004034b4
lea ecx, [ebp - 8]
call fcn.0040c728
lea ecx, [ebp - 0x208]
call fcn.00406e85
lea eax, [ebp - 4]
lea ecx, [ebp - 0x208]
push dword [ebp - 0x20]
push dword [ebp - 0x1c]
push eax
call fcn.0040704d
test al, al
jne 0x407293
or esi, 0xffffffff
jmp 0x4072a0
lea ecx, [ebp - 0x208]
call fcn.00411faf
xor esi, esi
lea ecx, [ebp - 0x208]
call fcn.004072e2
lea ecx, [ebp - 4]
call fcn.0040c728
lea ecx, [ebp - 0x18]
call fcn.004072c0
mov eax, esi
pop esi
leave
ret

Function at 0x40a5da
Capabilities:
Terminate process

Disassembly:
push esi
mov esi, ecx
push edi
mov edi, dword [sym.imp.KERNEL32.dll_FreeLibrary]
mov eax, dword [esi + 0x14]
test eax, eax
je 0x40a600
cmp eax, 0xffffffff
je 0x40a600
test byte [esi + 0xc], 4
je 0x40a5fb
call fcn.0040a616
push dword [esi + 0x14]
call edi
mov eax, dword [esi + 0x18]
test eax, eax
je 0x40a60a
push eax
call edi
push dword [esi + 8]
call dword [sym.imp.KERNEL32.dll_ExitProcess]
Function at 0x40aeae
Capabilities:
Get file size
Read file via mapping

Disassembly:
push ebp
mov ebp, esp
push ecx
push ecx
push ebx
push esi
push edi
mov esi, ecx
call fcn.0040afd2
mov edi, dword [ebp + 8]
mov ecx, dword [0x41c078]
mov dword [ebp - 4], edi
call fcn.0040a8aa
test al, al
je 0x40aedc
mov ecx, edi
call fcn.0040ad7e
mov dword [ebp - 4], eax
xor ebx, ebx
xor eax, eax
cmp byte [ebp + 0xc], bl
push ebx
push 0x8000080
setne al
add eax, 3
push eax
push ebx
push 3
push 0x80000000
push dword [ebp - 4]
call dword [0x43249c]
mov edi, eax
mov eax, dword [ebp - 4]
cmp eax, dword [ebp + 8]
je 0x40af12
push eax
call fcn.0040b41d
pop ecx
cmp edi, 0xffffffff
mov dword [esi], edi
je 0x40afce
lea eax, [ebp - 8]
mov dword [ebp + 0xc], ebx
push eax
push edi
mov dword [ebp - 8], ebx
call dword [sym.imp.KERNEL32.dll_GetFileSize]
cmp dword [ebp - 8], ebx
lea edi, [esi + 8]
mov dword [edi], eax
jne 0x40af3f
cmp eax, 0x80000000
jb 0x40af75
mov ecx, dword [ebp + 8]
push 0x2002
call fcn.0040bc1c
push eax
push str.File_is_too_large_to_be_loaded__nRetry_loading_the_1st_64KB_only__nBE_CAREFUL_NOT_TO_ERASE_THE_FILE____
call dword [sym.imp.USER32.dll_GetActiveWindow]
push eax
call dword [0x432090]
cmp eax, 4
jne 0x40af70
mov eax, 0x10000
mov dword [ebp + 0xc], eax
mov dword [edi], eax
jmp 0x40af75
cmp eax, 3
je 0x40afce
cmp dword [edi], ebx
jne 0x40af85
mov dword [esi + 0xc], edi
mov al, 1
pop edi
pop esi
pop ebx
leave
ret 8
push ebx
push ebx
push ebx
push 2
push ebx
push dword [esi]
call dword [0x4324e8]
cmp eax, ebx
mov dword [esi + 4], eax
jne 0x40afa4
push dword [esi]
call dword [sym.imp.KERNEL32.dll_CloseHandle]
jmp 0x40afcb
push dword [ebp + 0xc]
push ebx
push ebx
push 4
push eax
call dword [sym.imp.KERNEL32.dll_MapViewOfFile]
cmp eax, ebx
mov dword [esi + 0xc], eax
jne 0x40af7c
push dword [esi + 4]
mov edi, dword [sym.imp.KERNEL32.dll_CloseHandle]
call edi
push dword [esi]
mov dword [esi + 4], ebx
call edi
or dword [esi], 0xffffffff
xor al, al
jmp 0x40af7e

Function at 0x40b3ac
Capabilities:
Terminate process

Disassembly:
push esi
push edi
push dword [esp + 0xc]
mov edi, dword [sym.imp.KERNEL32.dll_HeapAlloc]
push 0
push dword [0x41c080]
call edi
mov esi, eax
test esi, esi
jne 0x40b418
cmp byte [0x41d874], 8
jae 0x40b418
push 0x2002
push eax
push str.Unable_to_allocate_memory_
call dword [sym.imp.USER32.dll_GetActiveWindow]
push eax
call dword [0x432090]
sub eax, 3
je 0x40b410
dec eax
jne 0x40b405
push dword [esp + 0xc]
and byte [0x41d874], 0
push esi
push dword [0x41c080]
jmp 0x40b3c0
dec eax
jne 0x40b418
inc byte [0x41d874]
jmp 0x40b418
push 1
call dword [sym.imp.KERNEL32.dll_ExitProcess]
mov eax, esi
pop edi
pop esi
ret

Function at 0x4120de
Capabilities:
Allocate or change rwx memory

Disassembly:
push esi
mov esi, ecx
mov ecx, dword [esp + 8]
push 0x40
mov dword [esi + 0xc], ecx
mov ecx, dword [esp + 0x10]
xor eax, eax
mov dword [esi + 0x10], ecx
mov ecx, dword [esp + 0x14]
push 0x1000
push 0x16
push eax
mov dword [esi + 4], eax
mov byte [esi + 8], al
mov dword [esi + 0x14], ecx
call dword [sym.imp.KERNEL32.dll_VirtualAlloc]
mov dword [esi + 0x18], eax
mov eax, esi
pop esi
ret 0xc
Function at 0x412580
Capabilities:
Open clipboard

Disassembly:
push esi
mov esi, ecx
push dword [esp + 8]
and byte [esi], 0
call dword [sym.imp.USER32.dll_OpenClipboard]
test eax, eax
je 0x4125b0
cmp byte [esp + 0xc], 0
jne 0x4125ad
call dword [sym.imp.USER32.dll_EmptyClipboard]
test eax, eax
jne 0x4125ad
call dword [sym.imp.USER32.dll_CloseClipboard]
jmp 0x4125b0
mov byte [esi], 1
mov eax, esi
pop esi
ret 8
Function at 0x41bc92
Capabilities:
Terminate process

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x800
push dword [ebp + 8]
and byte [ebp - 0x800], 0
lea eax, [ebp - 0x800]
push eax
call fcn.0041bce5
lea eax, [ebp - 0x800]
push str._nThe_application_will_terminate_now.
push eax
call fcn.0041bce5
add esp, 0x10
lea eax, [ebp - 0x800]
push 0x10
push str.Fatal_error
push eax
push 0
call dword [sym.imp.USER32.dll_MessageBoxA]
push 1
call dword [sym.imp.KERNEL32.dll_ExitProcess]

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

Disassembly:
push ebp
mov ebp, esp
push ecx
push ecx
push ebx
push esi
push edi
mov edi, dword [ebp + 8]
and dword [ebp + 8], 0
mov eax, dword [edi + 0x3c]
mov esi, dword [eax + edi + 0x78]
mov eax, dword [esi + edi + 0x20]
add esi, edi
add eax, edi
mov ebx, dword [esi + 0x24]
mov ecx, dword [esi + 0x1c]
add ebx, edi
add ecx, edi
cmp dword [esi + 0x18], 0
mov dword [ebp - 8], ecx
jbe 0x41bf4f
mov dword [ebp - 4], eax
mov eax, dword [ebp - 4]
push dword [ebp + 0xc]
mov eax, dword [eax]
add eax, edi
push eax
call dword [sym.imp.KERNEL32.dll_lstrcmpA]
test eax, eax
je 0x41bf56
inc dword [ebp + 8]
add dword [ebp - 4], 4
mov eax, dword [ebp + 8]
cmp eax, dword [esi + 0x18]
jb 0x41bf2b
xor eax, eax
pop edi
pop esi
pop ebx
leave
ret
mov eax, dword [ebp + 8]
mov ecx, dword [ebp - 8]
movzx eax, word [ebx + eax*2]
mov eax, dword [ecx + eax*4]
add eax, edi
jmp 0x41bf51
Function at 0x41fd1c
Capabilities:
Link many functions at runtime

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x24
mov eax, dword [0x42c520]
xor eax, ebp
mov dword [ebp - 4], eax
mov eax, dword [ebp + 8]
push ebx
mov dword [ebp - 0x20], eax
mov eax, dword [ebp + 0xc]
push esi
push edi
mov dword [ebp - 0x1c], eax
call fcn.00416e92
and dword [ebp - 0x14], 0
cmp dword [0x45b068], 0
mov dword [ebp - 0x18], eax
jne 0x41fdcf
push str.USER32.DLL
call dword [sym.imp.KERNEL32.dll_LoadLibraryW]
mov ebx, eax
test ebx, ebx
je 0x41fe77
mov edi, dword [sym.imp.KERNEL32.dll_GetProcAddress]
push str.MessageBoxW
push ebx
call edi
test eax, eax
je 0x41fe77
mov esi, dword [sym.imp.KERNEL32.dll_EncodePointer]
push eax
call esi
push str.GetActiveWindow
push ebx
mov dword [0x45b068], eax
call edi
push eax
call esi
push str.GetLastActivePopup
push ebx
mov dword [0x45b06c], eax
call edi
push eax
call esi
push str.GetUserObjectInformationW
push ebx
mov dword [0x45b070], eax
call edi
push eax
call esi
mov dword [0x45b078], eax
test eax, eax
je 0x41fdcf
push str.GetProcessWindowStation
push ebx
call edi
push eax
call esi
mov dword [0x45b074], eax
mov eax, dword [0x45b074]
mov ecx, dword [ebp - 0x18]
mov esi, dword [sym.imp.KERNEL32.dll_DecodePointer]
cmp eax, ecx
je 0x41fe28
cmp dword [0x45b078], ecx
je 0x41fe28
push eax
call esi
push dword [0x45b078]
mov edi, eax
call esi
mov ebx, eax
test edi, edi
je 0x41fe28
test ebx, ebx
je 0x41fe28
call edi
test eax, eax
je 0x41fe1f
lea ecx, [ebp - 0x24]
push ecx
push 0xc
lea ecx, [ebp - 0x10]
push ecx
push 1
push eax
call ebx
test eax, eax
je 0x41fe1f
test byte [ebp - 8], 1
jne 0x41fe28
or dword [ebp + 0x10], 0x200000
jmp 0x41fe5b
mov eax, dword [0x45b06c]
cmp eax, dword [ebp - 0x18]
je 0x41fe5b
push eax
call esi
test eax, eax
je 0x41fe5b
call eax
mov dword [ebp - 0x14], eax
test eax, eax
je 0x41fe5b
mov eax, dword [0x45b070]
cmp eax, dword [ebp - 0x18]
je 0x41fe5b
push eax
call esi
test eax, eax
je 0x41fe5b
push dword [ebp - 0x14]
call eax
mov dword [ebp - 0x14], eax
push dword [0x45b068]
call esi
test eax, eax
je 0x41fe77
push dword [ebp + 0x10]
push dword [ebp - 0x1c]
push dword [ebp - 0x20]
push dword [ebp - 0x14]
call eax
jmp 0x41fe79
xor eax, eax
mov ecx, dword [ebp - 4]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.004113eb
leave
ret

Function at 0x408901
Capabilities:
Encode data using xor

Disassembly:
mov ecx, 0x4085d8
call fcn.0040892e
add esi, edx
push 0x7fd1d8e9
pop edx
xor dword [eax], ecx
push 0xf262c306
pop edx
inc eax
cmp eax, edi
jne fcn.00408901
sub edx, 0x9222a869
ret
Function at 0x401180
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
mov eax, dword [ebp + 8]
push ebx
push esi
push edi
mov esi, 0x6987
mov ecx, 0x7f16
mov edi, 0x5c7a
test eax, eax
je 0x401270
mov edx, dword [ebp + 0xc]
test edx, edx
je 0x401270
cmp eax, edx
jae 0x401270
mov ebx, 0x2829
jmp 0x4011c0
mov eax, 0x38e38e39
imul ebx
sar edx, 2
mov ebx, edx
shr ebx, 0x1f
add ebx, edx
jne 0x4011c0
mov esi, dword [ebp + 8]
sub dword [ebp + 0xc], esi
mov ebx, 0xa8
mov ecx, 0x67d0
mov eax, 0xdd67c8a7
imul ecx
add edx, ecx
sar edx, 7
mov ecx, edx
shr ecx, 0x1f
add ecx, edx
jne 0x4011e3
mov ecx, 0x271b
mov edx, 0x3a
mov eax, 6
cmp eax, 0x3a
cmovg eax, edx
dec ecx
jne 0x401207
mov ecx, 0x56d8
mov eax, 0x92492493
imul ecx
add edx, ecx
sar edx, 3
mov ecx, edx
shr ecx, 0x1f
add ecx, edx
jne 0x401215
mov edx, dword [ebp + 0xc]
test edx, edx
je 0x401240
mov al, byte [ecx + esi + 1]
sub al, 0x4a
xor byte [ecx + esi], al
inc ecx
cmp ecx, edx
jb 0x401231
nop
mov eax, 0xd20d20d3
imul edi
add edx, edi
sar edx, 6
mov edi, edx
shr edi, 0x1f
add edi, edx
jne 0x401240
mov eax, 0x1400
mov ecx, 0xc8
nop
cmp ebx, ecx
cmovl ebx, ecx
dec eax
jne 0x401260
pop edi
pop esi
pop ebx
pop ebp
ret
mov eax, 0x4bda12f7
imul esi
sar edx, 6
mov esi, edx
shr esi, 0x1f
add esi, edx
jne 0x401270
mov eax, 0x6bca1af3
imul ecx
sar edx, 5
mov ecx, edx
shr ecx, 0x1f
add ecx, edx
jne 0x401283
pop edi
pop esi
pop ebx
pop ebp
ret
Function at 0x403520
Capabilities:
Encode data using xor
Encrypt data using rc4 prga

Disassembly:
push ebp
mov ebp, esp
push edi
xor edi, edi
cmp dword [ebp + 0x10], edi
jbe 0x40357d
mov eax, dword [ebp + 8]
push ebx
push esi
mov ecx, dword [ebp + 0xc]
inc edi
mov bh, byte [edi + ecx - 1]
inc byte [eax]
movzx esi, byte [eax]
movzx edx, byte [esi + eax + 2]
movzx ecx, byte [eax + 1]
add esi, eax
add ecx, edx
movzx edx, cl
mov byte [eax + 1], cl
movzx ecx, byte [edx + eax + 2]
mov bl, byte [esi + 2]
mov byte [esi + 2], cl
mov byte [edx + eax + 2], bl
movzx ecx, byte [esi + 2]
mov edx, dword [ebp + 0xc]
add cl, bl
movzx ecx, cl
movzx ecx, byte [ecx + eax + 2]
xor cl, bh
mov byte [edi + edx - 1], cl
cmp edi, dword [ebp + 0x10]
jb 0x403530
pop esi
pop ebx
pop edi
pop ebp
ret
Function at 0x4153e0
Capabilities:
Encode data using xor

Disassembly:
cli
mov esp, dword [ebp + 0x668bfa51]
push ecx
cli
mov esp, dword [esi + 0x51]
cli
mov esp, dword [esi + 0x51]
cli
mov esp, dword [ebp + 0x668bfa51]
push ecx
cli
mov esp, dword [esi + 0x51]
cli
mov esp, dword [esi + 0x51]
cli
mov eax, esi
rcr dword [edx - 0x350c9936], 1
sti
daa
push ecx
cmp dword [ebx - 0x7405ae9a], ecx
xor ebx, eax
pop ds
fcomp dword [edi]
add byte [ebx], ah
pop ecx
jno 0x415356
push 0xffffffffffffffda
scasd eax, dword es:[edi]
wait
out 0x6c, al
sub ch, dl
daa
push ecx
cli
invalid
add eax, 0xa7ba8e74
je 0x41534e
mov edx, 0x84263df
add eax, 0xfa51de74
mov esp, dword [edi - 0x47]
mov al, 0xdd
cdq
scasb al, byte es:[edi]
adc dword [edi - 0x1d659b67], ebx
daa
push ecx
adc dl, byte [esi + 0xe05afd8]
cmpsb byte [esi], byte es:[edi]
and eax, 0x67263ff
add eax, 0xf693af74
mov esi, dword [ebx]
xor ebx, eax
pop ds
xor ebx, eax
pop ds
dec ebp
arpl word [ecx + 0x5066ca9b], si
xchg edx, eax
pop ebx
in al, 0x1a
cli
loope 0x415381
mov ecx, 0xae9837a0
stosb byte es:[edi], al
arpl dx, sp
in al, dx
add al, 0x74
fist word [ecx + 0x5a]
shl byte [esi - 0x15], 0xfe
sub ebp, dword [0x16cb4251]
adc dl, bh
arpl word [esi], si
scasb al, byte es:[edi]
add eax, 0x50a8e74
je 0x4153ae
jmp 0x51694ff4
Function at 0x401ff7
Capabilities:
Allocate or change rwx memory

Disassembly:
push ebx
push ecx
push edx
push esi
push edi
enter 4, 0
mov esi, eax
lea edx, [eax + 1]
imul edx, dword [0x404050]
mov ebx, eax
mov eax, 0x404054
call fcn.00401f33
lea edx, [ebp - 4]
push edx
mov edx, esi
or dl, 0x40
mov edi, 0x402fd6
push edx
sub edi, fcn.00402780
push edi
xor eax, eax
push fcn.00402780
mov dword [ebp - 4], eax
call dword [sym.imp.KERNEL32.DLL_VirtualProtect]
cmp dword [ebp - 4], 0
je 0x402063
mov eax, fcn.00402780
mov ebx, esi
mov edx, edi
call fcn.00401f33
mov edx, 0x1c000
mov eax, 0x404054
mov ebx, esi
call fcn.0040186d
leave
pop edi
pop esi
pop edx
pop ecx
pop ebx
ret

Function at 0x42e000
Capabilities:
Encode data using xor
Packed with generic packer

Disassembly:
pushal
nop
nop
nop
nop
nop
call 0x42e00c
nop
nop
nop
pop eax
nop
nop
nop
add eax, 0x403ac5
nop
sub eax, 0x403a6b
nop
nop
nop
nop
mov ebx, dword [eax]
nop
mov ecx, dword [eax + 4]
nop
nop
nop
nop
nop
mov edx, dword [eax + 8]
nop
xor dword [ebx], edx
nop
nop
nop
add ebx, 4
nop
nop
nop
nop
cmp ebx, ecx
nop
nop
nop
jl 0x42e030
nop
nop
nop
nop
nop
nop
nop
add eax, 0xc
nop
cmp dword [eax], 0
nop
nop
nop
nop
nop
jne 0x42e01e
nop
nop
nop
nop
nop
popal
nop
jmp fcn.00401219
Function at 0x432004
Capabilities:
Encode data using xor
Packed with generic packer

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

Function at 0x430004
Capabilities:
Encode data using xor
Packed with generic packer

Disassembly:
pushal
nop
nop
mov eax, section..text
nop
push 4
nop
nop
nop
nop
pop edi
nop
nop
nop
nop
nop
nop
cmp eax, 0
nop
nop
nop
je 0x430072
nop
nop
nop
mov ebx, 0x408ecc
nop
nop
nop
mov ecx, ebx
nop
nop
nop
nop
nop
sub ecx, eax
nop
nop
nop
xor edx, edx
nop
nop
nop
nop
nop
push eax
nop
nop
nop
nop
mov eax, ecx
nop
nop
nop
nop
div edi
nop
nop
nop
nop
xchg ecx, eax
nop
nop
nop
nop
nop
pop eax
nop
nop
nop
mov esi, 0xb2e2ec6
xor dword [eax], esi
nop
nop
nop
nop
add eax, edi
nop
nop
nop
nop
nop
nop
nop
loop 0x430060
nop
nop
mov eax, section..data
nop
cmp eax, 0
nop
nop
nop
nop
nop
je 0x4300d2
nop
nop
mov ebx, 0x42e1d0
mov ecx, ebx
nop
nop
nop
nop
nop
nop
nop
sub ecx, eax
nop
nop
xor edx, edx
nop
nop
nop
nop
nop
nop
push eax
nop
nop
nop
nop
nop
nop
mov eax, ecx
nop
nop
div edi
nop
nop
nop
nop
nop
xchg ecx, eax
nop
nop
nop
nop
nop
nop
pop eax
nop
nop
mov esi, 0xa8c4e1c
nop
nop
nop
nop
xor dword [eax], esi
nop
nop
add eax, edi
nop
nop
nop
nop
nop
loop 0x4300c0
nop
nop
nop
nop
nop
nop
popal
jmp 0x401219
Function at 0x401450
Capabilities:
Extract resource via kernel32 functions

Disassembly:
push esi
push dword [esp + 0xc]
push dword [esp + 0xc]
push 0
call dword [sym.imp.KERNEL32.dll_FindResourceA]
mov esi, eax
test esi, esi
je 0x40147a
push esi
push 0
call dword [sym.imp.KERNEL32.dll_SizeofResource]
mov ecx, dword [esp + 0x14]
test eax, eax
mov dword [ecx], eax
jne 0x40147e
xor eax, eax
pop esi
ret
push esi
push 0
call dword [sym.imp.KERNEL32.dll_LoadResource]
push eax
call dword [sym.imp.KERNEL32.dll_LockResource]
mov ecx, dword [esp + 0x10]
push 1
mov dword [ecx], eax
pop eax
pop esi
ret

Function at 0x401499
Capabilities:
Create new key via cryptacquirecontext
Generate random numbers via winapi

Disassembly:
push ebp
mov ebp, esp
push ecx
push ecx
push esi
mov esi, dword [sym.imp.ADVAPI32.dll_CryptAcquireContextA]
push edi
xor edi, edi
push edi
push 1
push edi
lea eax, [ebp - 4]
push edi
push eax
mov dword [ebp - 4], edi
mov dword [ebp - 8], edi
call esi
test eax, eax
jne 0x4014da
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0x80090016
jne 0x4014ed
push 8
push 1
push edi
lea eax, [ebp - 4]
push edi
push eax
call esi
test eax, eax
je 0x4014ed
lea eax, [ebp - 8]
push eax
push 4
push dword [ebp - 4]
call dword [sym.imp.ADVAPI32.dll_CryptGenRandom]
test eax, eax
jne 0x4014f1
xor eax, eax
jmp 0x401503
cmp dword [ebp - 4], edi
je 0x401500
push edi
push dword [ebp - 4]
call dword [sym.imp.ADVAPI32.dll_CryptReleaseContext]
mov eax, dword [ebp - 8]
pop edi
pop esi
leave
ret

Function at 0x4015ee
Capabilities:
Encode data using xor

Disassembly:
mov bl, 0x54
in al, 0x86
push edx
push edi
xor ecx, dword [ebx + 0x21]
invalid
Function at 0x401090
Capabilities:
Hide graphical window

Disassembly:
mov ebp, esp
push esi
lea eax, [0x4032cc]
push eax
call dword [sym.imp.KERNEL32.dll_GetSystemTime]
mov eax, dword [ebp + 4]
mov dword [0x403183], eax
xor eax, eax
push 0
push 0
push 0
call dword [sym.imp.KERNEL32.dll_CreateMutexA]
xor eax, eax
mov ecx, 0x16
push eax
dec ecx
jne 0x4010bd
push 0x7f00
push esi
call dword [sym.imp.USER32.dll_LoadIconA]
push 0x7f00
push esi
call dword [sym.imp.USER32.dll_LoadCursorA]
lea ecx, [ebp - 0x5c]
push ecx
mov eax, 0x30
mov dword [ecx], eax
mov eax, dword [0x403183]
mov dword [ebp - 0x48], eax
mov eax, 0x402353
mov dword [ebp - 0x54], eax
mov ecx, str.secondclass
mov dword [ebp - 0x34], ecx
call dword [sym.imp.USER32.dll_RegisterClassExA]
call dword [sym.imp.COMCTL32.dll_InitCommonControls]
push 0
push 0
push str.Riched32.dll
call dword [sym.imp.KERNEL32.dll_LoadLibraryExA]
xor ecx, ecx
push ecx
push dword [0x403183]
push ecx
push ecx
push 0x12e
push 0x7a
push 0x34c
push 0x2aa
push 0x40000
lea eax, str.bananas
push eax
mov eax, str.secondclass
push eax
push ecx
call dword [sym.imp.USER32.dll_CreateWindowExA]
mov dword [0x403328], eax
push 0
push eax
call dword [sym.imp.USER32.dll_ShowWindow]
mov eax, dword [0x403328]
push eax
call dword [sym.imp.USER32.dll_UpdateWindow]
xor ebx, ebx
lea edi, [ebp - 0x50]
jmp 0x40117b
push edi
call dword [sym.imp.USER32.dll_TranslateMessage]
push edi
call dword [sym.imp.USER32.dll_DispatchMessageA]
push ebx
push ebx
push ebx
push edi
call dword [sym.imp.USER32.dll_GetMessageA]
test al, al
jne 0x40116d
mov esp, ebp
ret

Function at 0x40366b
Capabilities:
Terminate process

Disassembly:
jmp 0x459883
push 0x17
call dword [sym.imp.KERNEL32.dll_IsProcessorFeaturePresent]
test eax, eax
je 0x459894
push 5
pop ecx
int 0x29
push esi
push 1
mov esi, 0xc0000417
push esi
push 2
call fcn.00405a6a
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 0x4037ab
Capabilities:
Query environment variable

Disassembly:
jmp 0x498f4d
mov edi, edi
push esi
push edi
call dword [sym.imp.KERNEL32.dll_GetEnvironmentStringsW]
mov esi, eax
test esi, esi
jne 0x498f61
xor edi, edi
jmp 0x498f98
push ebx
push esi
call fcn.00498e57
mov ebx, eax
sub ebx, esi
and ebx, 0xfffffffe
push ebx
call fcn.0040409d
mov edi, eax
pop ecx
pop ecx
test edi, edi
je 0x498f88
push ebx
push esi
push edi
call fcn.00405826
add esp, 0xc
push 0
call fcn.004063ed
pop ecx
push esi
call dword [sym.imp.KERNEL32.dll_FreeEnvironmentStringsW]
pop ebx
mov eax, edi
pop edi
pop esi
ret

Function at 0x4058f3
Capabilities:
Parse pe header

Disassembly:
jmp 0x427143
push 0
call dword [sym.imp.KERNEL32.dll_GetModuleHandleW]
test eax, eax
je 0x427183
mov ecx, 0x5a4d
cmp word [eax], cx
jne 0x427183
mov ecx, dword [eax + 0x3c]
add ecx, eax
cmp dword [ecx], 0x4550
jne 0x427183
mov eax, 0x10b
cmp word [ecx + 0x18], ax
jne 0x427183
cmp dword [ecx + 0x74], 0xe
jbe 0x427183
cmp dword [ecx + 0xe8], 0
je 0x427183
mov al, 1
ret
xor al, al
ret
Function at 0x5709d0
Capabilities:
Connect socket

Disassembly:
push ebp
mov ebp, esp
push ecx
push edx
push eax
call sub.ws2_32.dll_connect
mov esp, ebp
pop ebp
ret

Function at 0x407bff
Capabilities:
Encrypt data using rc4 prga

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x40
push ebx
push esi
push edi
mov ebx, dword [ebp + 8]
mov dword [ebp - 8], 0x29c27be8
add dword [ebp - 8], 0x4196
mov byte [ebp - 1], 1
lea edi, [ebp - 0x1c]
lea esi, [0x42e63e]
mov ecx, 0x11
rep movsb byte es:[edi], byte [esi]
mov eax, dword [ebp - 8]
mov edx, eax
sub edx, eax
mov dword [ebp - 8], edx
lea edi, [ebp - 0x2b]
lea esi, [0x42e64f]
mov ecx, 0xf
rep movsb byte es:[edi], byte [esi]
lea edi, [ebp - 0x32]
lea esi, [0x42e65e]
mov ecx, 7
rep movsb byte es:[edi], byte [esi]
sub dword [ebp - 8], 0x6151
cmp byte [ebx], 0x67
jne 0x407c7a
inc ebx
add byte [ebp - 1], 1
mov eax, dword [ebp - 8]
mov dword [ebp - 0x38], eax
mov dword [ebp - 0x3c], eax
mul dword [ebp - 0x38]
mov dword [ebp - 0x40], eax
mov dword [ebp - 8], eax
mov byte [ebp - 9], 0
jmp 0x407c96
mov al, byte [ebx]
movzx edx, byte [ebp - 9]
cmp al, byte [ebp + edx - 0x1c]
jne 0x407c92
add byte [ebp - 1], 4
jmp 0x407c9c
add byte [ebp - 9], 1
cmp byte [ebp - 9], 0x11
jb 0x407c80
xor dword [ebp - 8], 0x774b
mov byte [ebp - 0xa], 0
jmp 0x407d57
mov al, byte [ebx]
movzx edx, byte [ebp - 0xa]
cmp al, byte [ebp + edx - 0x2b]
jne 0x407d53
add byte [ebp - 1], 1
mov eax, 0x67c6
mul dword [ebp - 8]
mov dword [ebp - 0x38], eax
mov dword [ebp - 8], eax
movzx eax, byte [ebx + 1]
cmp eax, 0xc0
jge 0x407d38
movzx eax, byte [ebx + 1]
and eax, 0xc0
cmp eax, 0x40
jne 0x407ceb
add byte [ebp - 1], 1
movzx eax, byte [ebx + 1]
mov edx, eax
and edx, 7
cmp edx, 4
je 0x407d03
cmp edx, 5
jne 0x407d07
cmp eax, 0x40
jge 0x407d07
add byte [ebp - 1], 1
sub dword [ebp - 8], 0x251a
movzx eax, byte [ebx + 1]
test byte [ebx + 1], 0xc0
jne 0x407d24
and eax, 7
cmp eax, 5
jne 0x407d24
add byte [ebp - 1], 3
movzx eax, byte [ebx + 1]
and eax, 0xc0
cmp eax, 0x80
jne 0x407d38
add byte [ebp - 1], 4
movzx eax, byte [ebx]
cmp eax, 0xf7
jne 0x407d4c
test byte [ebx + 1], 0x38
jne 0x407d4c
add byte [ebp - 1], 4
sub dword [ebp - 8], 0x2d1d
add byte [ebp - 0xa], 1
cmp byte [ebp - 0xa], 0xf
jb 0x407cac
mov byte [ebp - 0xb], 0
jmp 0x407d7d
mov al, byte [ebx]
movzx edx, byte [ebp - 0xb]
cmp al, byte [ebp + edx - 0x32]
jne 0x407d79
add byte [ebp - 1], 1
jmp 0x407d83
add byte [ebp - 0xb], 1
cmp byte [ebp - 0xb], 7
jb 0x407d67
mov eax, 0x7d5b
mul dword [ebp - 8]
mov dword [ebp - 0x38], eax
mov dword [ebp - 8], eax
movzx eax, byte [ebx]
cmp eax, 0x83
jne 0x407d9f
add byte [ebp - 1], 1
movzx eax, byte [ebp - 1]
pop edi
pop esi
pop ebx
leave
ret