joyce8/EMBER2024-capa huggingface dataset:
Function at 0x402220
Capabilities:
Create udp socket
Initialize winsock library

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x1a0
push ebx
push esi
push edi
jb 0x402248
jae 0x402248
push es
push es
push es
push es
push es
push es
push es
push es
push es
push es
push es
push es
push es
push es
push es
push es
push es
push es
push es
push es
push es
push es
push es
push es
lea eax, [ebp - 0x1a0]
push eax
push 0x202
call dword [sym.imp.WS2_32.dll_WSAStartup]
cmp eax, 0xffffffff
je 0x40236a
push 0
push 2
push 2
call dword [sym.imp.WS2_32.dll_socket]
cmp eax, 0xffffffff
mov dword [0x4062fc], eax
je 0x40236a
call dword [sym.imp.WS2_32.dll_WSACreateEvent]
mov ecx, dword [0x4062fc]
push 1
push eax
push ecx
mov dword [0x4062f8], eax
call dword [sym.imp.WS2_32.dll_WSAEventSelect]
push 0x10f
call sub.MFC42.DLL_operatornew
add esp, 4
mov dword [0x4062f0], eax
test eax, eax
je 0x40236a
jb 0x4022c8
jae 0x4022c8
push es
push es
push es
push es
push es
push es
push es
push es
push es
push es
push es
push es
push es
push es
push es
push es
push es
push es
call dword [sym.imp.KERNEL32.dll_GetCurrentProcessId]
mov esi, dword [ebp + 8]
push 0x35
mov word [0x4062f4], ax
mov word [ebp - 0x10], 2
call dword [sym.imp.WS2_32.dll_htons]
mov edx, dword [ebp + 0xc]
mov word [ebp - 0xe], ax
mov edi, dword [ebp - 0x10]
push edx
sub esp, 0x10
mov ebx, dword [ebp - 8]
mov eax, esp
mov ecx, dword [ebp - 4]
mov dword [eax], edi
mov dword [eax + 4], esi
mov dword [eax + 8], ebx
mov dword [eax + 0xc], ecx
call fcn.00401d70
add esp, 0x14
test eax, eax
je 0x40235c
mov edx, dword [ebp + 0x1c]
mov eax, dword [ebp + 0x14]
mov ecx, dword [ebp + 0x10]
push edx
mov edx, dword [ebp + 0x18]
push eax
push ecx
push edx
sub esp, 0x10
mov ecx, dword [ebp - 4]
mov eax, esp
mov dword [eax], edi
mov dword [eax + 4], esi
mov dword [eax + 8], ebx
mov dword [eax + 0xc], ecx
call fcn.00401ee0
add esp, 0x20
test eax, eax
je 0x40235c
mov edx, dword [0x4062f0]
push edx
call sub.MFC42.DLL_operatordelete
add esp, 4
mov eax, 1
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
mov eax, dword [0x4062f0]
push eax
call sub.MFC42.DLL_operatordelete
add esp, 4
pop edi
pop esi
xor eax, eax
pop ebx
mov esp, ebp
pop ebp
ret

Function at 0x4024d0
Capabilities:
Initialize winsock library
Resolve dns

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x190
push esi
jb 0x4024f8
jae 0x4024f8
push es
push es
push es
push es
push es
push es
push es
push es
push es
push es
push es
push es
push es
push es
push es
push es
push es
push es
push es
push es
push es
push es
push es
push es
push es
push es
push str.www.hao123.com
call dword [sym.imp.WS2_32.dll_inet_addr]
mov esi, eax
cmp esi, 0xffffffff
jne 0x40254b
lea eax, [ebp - 0x190]
push eax
push 0x101
call dword [sym.imp.WS2_32.dll_WSAStartup]
test eax, eax
jne 0x40254b
jb 0x402530
jae 0x402530
push es
push es
push es
push es
push es
push es
push es
push es
push es
push es
push es
push es
push str.www.hao123.com
call dword [sym.imp.WS2_32.dll_gethostbyname]
test eax, eax
je 0x40254b
mov ecx, dword [eax + 0xc]
pop esi
mov edx, dword [ecx]
mov eax, dword [edx]
mov esp, ebp
pop ebp
ret
mov eax, esi
pop esi
mov esp, ebp
pop ebp
ret
Function at 0x402560
Capabilities:
Act as tcp client
Connect socket
Connect tcp socket
Create tcp socket
Initialize winsock library
Receive data
Receive data on socket
Send data
Send data on socket

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x1a0
push ebx
or ebx, 0xffffffff
jb 0x40258c
jae 0x40258c
push es
push es
push es
push es
push es
push es
push es
push es
push es
push es
push es
push es
push es
push es
push es
push es
push es
push es
push es
push es
push es
push es
push es
push es
push es
push es
push es
lea eax, [ebp - 0x1a0]
push eax
push 0x202
call dword [sym.imp.WS2_32.dll_WSAStartup]
cmp eax, 0xffffffff
jne 0x4025aa
or eax, eax
pop ebx
mov esp, ebp
pop ebp
ret
push esi
jb 0x4025c7
jae 0x4025c7
push es
push es
push es
push es
push es
push es
push es
push es
push es
push es
push es
push es
push es
push es
push es
push es
push es
push es
push es
push es
push es
push es
push es
jnp 0x402632
push 6
push es
push 1
push 2
call dword [sym.imp.WS2_32.dll_socket]
mov esi, eax
cmp esi, 0xffffffff
je 0x402677
push edi
push str.127.0.0.1
mov word [ebp - 0x10], 2
call dword [sym.imp.WS2_32.dll_inet_addr]
push 0x830f
mov dword [ebp - 0xc], eax
call dword [sym.imp.WS2_32.dll_htons]
mov word [ebp - 0xe], ax
jb 0x402615
jae 0x402615
push es
push es
push es
push es
push es
push es
push es
push es
push es
push es
push es
push es
push es
push es
push es
lea ecx, [ebp - 0x10]
push 0x10
push ecx
push esi
call dword [sym.imp.WS2_32.dll_connect]
cmp eax, 0xffffffff
je 0x40266f
mov edi, dword [ebp + 8]
push 0
push 0x1000
push edi
push esi
call dword [sym.imp.WS2_32.dll_send]
cmp eax, 0x1000
jne 0x40266f
jb 0x40265b
jae 0x40265b
push es
push es
push es
push es
push es
push es
push es
push es
push es
push es
push es
push es
push es
push es
push es
push es
push es
push es
push es
push es
push es
push es
push es
push 0
push eax
push edi
push esi
call dword [sym.imp.WS2_32.dll_recv]
cmp eax, 0x1000
jne 0x40266f
xor ebx, ebx
push esi
call dword [sym.imp.WS2_32.dll_closesocket]
pop edi
call dword [sym.imp.WS2_32.dll_WSACleanup]
mov eax, ebx
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x420860
Capabilities:
Inspect section memory permissions

Disassembly:
sub esp, 0x124
push ebx
push ebp
push esi
push edi
mov ecx, 0x3e
xor eax, eax
lea edi, [esp + 0x3c]
xor ebx, ebx
rep stosd dword es:[edi], eax
mov ecx, 0xa
lea edi, [esp + 0x14]
rep stosd dword es:[edi], eax
mov ecx, dword [esp + 0x138]
lea eax, [esp + 0x3c]
push eax
push ecx
mov dword [esp + 0x18], ebx
xor esi, esi
call fcn.00420cd0
add eax, 4
movsx edx, word [esp + 0x50]
jo 0x4209b6
add eax, 0x14
jo 0x4209b6
add eax, edx
jo 0x4209b6
mov edi, eax
mov ax, word [esp + 0x42]
sub ax, 1
jo 0x4209b6
movsx ebp, ax
cmp ebp, ebx
jl 0x4209a7
lea ecx, [esp + 0x14]
push ecx
call fcn.004210b0
push 0x28
push edi
push eax
call fcn.00421000
mov eax, dword [esp + 0x38]
test eax, 0x20000000
je 0x42091e
test eax, 0x40000000
je 0x42090d
and eax, 0x80000000
neg eax
sbb eax, eax
and eax, 0x20
add eax, 0x20
jmp 0x420943
and eax, 0x80000000
neg eax
sbb eax, eax
and eax, 0x70
add eax, 0x10
jmp 0x420943
test eax, 0x40000000
je 0x420936
and eax, 0x80000000
neg eax
sbb eax, eax
and eax, 2
add eax, 2
jmp 0x420943
and eax, 0x80000000
neg eax
sbb eax, eax
and eax, 7
inc eax
lea edx, [esp + 0x10]
mov esi, eax
push edx
call fcn.004210b0
push eax
push esi
mov ecx, dword [esp + 0x28]
mov esi, dword [esp + 0x140]
mov eax, dword [esp + 0x24]
add ecx, esi
push eax
jo 0x4209b6
push ecx
call fcn.00420fe0
test eax, eax
je 0x420990
add edi, 0x28
jo 0x4209b6
add ebx, 1
jo 0x4209b6
cmp ebx, ebp
jle 0x4208d7
pop edi
pop esi
pop ebp
xor eax, eax
pop ebx
add esp, 0x124
ret 4
mov esi, 4
call dword [sym.imp.KERNEL32.DLL_SetFileApisToANSI]
call dword [sym.imp.KERNEL32.DLL_SetFileApisToOEM]
call dword [sym.imp.USER32.DLL_WaitMessage]
mov eax, esi
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x124
ret 4
call dword [sym.imp.MSVBVM60.DLL___vbaErrorOverflow]
nop
nop
nop
nop

Function at 0x401010
Capabilities:
Terminate process

Disassembly:
push ebp
mov ebp, esp
push ecx
push 2
call dword [sym.imp.KERNEL32.dll_SetErrorMode]
mov dword [ebp - 4], 0
mov eax, dword [ebp - 4]
add eax, 2
mov dword [ebp - 4], eax
mov ecx, dword [ebp - 4]
add ecx, 3
mov dword [ebp - 4], ecx
mov edx, dword [ebp - 4]
add edx, 4
mov dword [ebp - 4], edx
mov eax, dword [ebp - 4]
add eax, 5
mov dword [ebp - 4], eax
mov ecx, dword [ebp - 4]
add ecx, 6
mov dword [ebp - 4], ecx
mov edx, dword [ebp - 4]
add edx, 7
mov dword [ebp - 4], edx
mov eax, dword [ebp - 4]
add eax, 8
mov dword [ebp - 4], eax
mov ecx, dword [ebp - 4]
add ecx, 9
mov dword [ebp - 4], ecx
mov edx, dword [ebp - 4]
add edx, 0xa
mov dword [ebp - 4], edx
push 0x4e20
call dword [sym.imp.KERNEL32.dll_Sleep]
push 0
call dword [sym.imp.KERNEL32.dll_ExitProcess]
Function at 0x430000
Capabilities:
Encode data using xor
Packed with generic packer

Disassembly:
pushal
nop
nop
nop
nop
nop
nop
mov eax, section..text
mov ebx, 0x408f6c
nop
nop
mov ecx, 0x23d42728
nop
nop
nop
test eax, eax
nop
nop
je 0x43004e
nop
nop
nop
nop
nop
nop
xor dword [eax], ecx
nop
nop
nop
nop
nop
nop
inc eax
nop
inc eax
nop
nop
nop
nop
nop
nop
nop
inc eax
nop
nop
inc eax
nop
nop
nop
nop
nop
nop
nop
nop
nop
cmp eax, ebx
nop
nop
jne 0x430024
nop
nop
nop
mov eax, section..data
mov ebx, 0x42e3d0
nop
nop
mov ecx, 0x7b1d6af4
nop
nop
test eax, eax
nop
nop
nop
nop
nop
je 0x430084
nop
nop
nop
nop
xor dword [eax], ecx
nop
nop
add eax, 4
nop
nop
nop
cmp eax, ebx
nop
nop
nop
jne 0x43006c
nop
nop
nop
nop
popal
nop
nop
nop
nop
nop
jmp 0x401219

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 0x46c1f0
Capabilities:
Packed with generic packer

Disassembly:
pushal
mov esi, section..bhxe
lea edi, [esi - 0x40000]
push edi
or ebp, 0xffffffff
jmp 0x46c212
mov al, byte [esi]
inc esi
mov byte [edi], al
inc edi
add ebx, ebx
jne 0x46c219
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
jb 0x46c208
mov eax, 1
add ebx, ebx
jne 0x46c22b
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc eax, eax
add ebx, ebx
jae 0x46c220
jne 0x46c23c
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
jae 0x46c220
xor ecx, ecx
sub eax, 3
jb 0x46c250
shl eax, 8
mov al, byte [esi]
inc esi
xor eax, 0xffffffff
je 0x46c2c2
mov ebp, eax
add ebx, ebx
jne 0x46c25b
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc ecx, ecx
add ebx, ebx
jne 0x46c268
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc ecx, ecx
jne 0x46c28c
inc ecx
add ebx, ebx
jne 0x46c278
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc ecx, ecx
add ebx, ebx
jae 0x46c26d
jne 0x46c289
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
jae 0x46c26d
add ecx, 2
cmp ebp, 0xfffff300
adc ecx, 1
lea edx, [edi + ebp]
cmp ebp, 0xfffffffc
jbe 0x46c2ac
mov al, byte [edx]
inc edx
mov byte [edi], al
inc edi
dec ecx
jne 0x46c29d
jmp 0x46c20e
mov eax, dword [edx]
add edx, 4
mov dword [edi], eax
add edi, 4
sub ecx, 4
ja 0x46c2ac
add edi, ecx
jmp 0x46c20e
pop esi
mov edi, esi
mov ecx, 0x2ef
mov al, byte [edi]
inc edi
sub al, 0xe8
cmp al, 1
ja 0x46c2ca
cmp byte [edi], 5
jne 0x46c2ca
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 0x46c2cf
lea edi, [esi + 0x6a000]
mov eax, dword [edi]
or eax, eax
je 0x46c33e
mov ebx, dword [edi + 4]
lea eax, [eax + esi + 0x6c000]
add ebx, esi
push eax
add edi, 8
call dword [esi + 0x6c06c]
xchg ebp, eax
mov al, byte [edi]
inc edi
or al, al
je 0x46c2fc
mov ecx, edi
push edi
dec eax
repne scasb al, byte es:[edi]
push ebp
call dword [esi + 0x6c074]
or eax, eax
je 0x46c338
mov dword [ebx], eax
add ebx, 4
jmp 0x46c319
call dword [esi + 0x6c070]
mov ebp, dword [esi + 0x6c078]
lea edi, [esi - 0x1000]
mov ebx, 0x1000
push eax
push esp
push 4
push ebx
push edi
call ebp
lea eax, [edi + 0x1f7]
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 0x46c372
sub esp, 0xffffff80
jmp 0x401852
Function at 0x401450
Capabilities:
Parse pe header
Read file on windows

Disassembly:
push ebp
mov ebp, esp
mov eax, 0x1014
call fcn.0040b330
push ebx
push esi
push edi
mov ebx, dword [ebp + 0xc]
mov dword [ebx], 0
mov eax, dword [ebp + 8]
mov dword [eax], 0
mov dword [eax + 4], 0
push 0
push pe_nt_image_headers32
push 3
push 0
push 1
push 0x80000000
push 0x419114
call dword [sym.imp.KERNEL32.dll_CreateFileW]
mov esi, eax
cmp esi, 0xffffffff
jne 0x4014a4
xor eax, eax
jmp 0x4015ef
push 0
lea eax, [ebp - 4]
push eax
push 0x1000
lea eax, [ebp - 0x1010]
push eax
push esi
call dword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
je 0x4015db
cmp word [ebp - 0x1010], 0x5a4d
jne 0x4015e6
cmp dword [ebp - 0xfd4], 0xf08
jae 0x4015e6
mov eax, dword [ebp - 0xfd4]
lea eax, [ebp + eax - 0x1010]
mov dword [ebp - 0x1014], eax
cmp dword [eax], 0x4550
jne 0x4015e6
mov eax, dword [ebp - 0x1014]
add eax, 0xf8
lea edx, [ebp - 0x10]
cmp eax, edx
jae 0x4015e6
xor edx, edx
xor ecx, ecx
jmp 0x401533
cmp dword [eax + 0x14], edx
jbe 0x40152f
mov edx, dword [eax + 0x14]
mov edi, dword [eax + 0x14]
add edi, dword [eax + 0x10]
mov dword [ebx], edi
add eax, 0x28
inc ecx
mov edi, dword [ebp - 0x1014]
movzx edi, word [edi + 6]
cmp ecx, edi
jl 0x40151f
push 0
push 0
mov ebx, dword [ebx]
add ebx, 2
push ebx
push esi
call dword [sym.imp.KERNEL32.dll_SetFilePointer]
cmp eax, 0xffffffff
je 0x4015e6
mov dword [ebp - 0x10], 0
mov dword [ebp - 0xc], 0
push 0
lea eax, [ebp - 4]
push eax
push 8
lea eax, [ebp - 0x10]
push eax
push esi
call dword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
je 0x4015db
mov eax, dword [ebp + 8]
mov ecx, dword [ebp - 0x10]
mov ebx, dword [ebp - 0xc]
mov dword [eax], ecx
mov dword [eax + 4], ebx
cmp dword [ebp - 4], 8
jb 0x4015db
mov dword [ebp - 0x10], 0
mov dword [ebp - 0xc], 0
push 0
lea eax, [ebp - 4]
push eax
push 8
lea eax, [ebp - 0x10]
push eax
push esi
call dword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
je 0x4015db
mov eax, dword [ebp + 0x10]
mov ecx, dword [ebp - 0x10]
mov ebx, dword [ebp - 0xc]
mov dword [eax], ecx
mov dword [eax + 4], ebx
cmp dword [ebp - 4], 8
jb 0x4015db
push esi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov eax, 1
jmp 0x4015ef
push esi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
xor eax, eax
jmp 0x4015ef
push esi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
xor eax, eax
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 0xc
Function at 0x402000
Capabilities:
Read file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 4
push ebx
push esi
push edi
mov ebx, dword [ebp + 0xc]
mov esi, dword [ebp + 0x10]
mov edi, dword [esi]
test edi, edi
je 0x40205e
mov dword [esi], 0
mov eax, edi
mov edx, 0x400000
cmp eax, 0x400000
jbe 0x40202b
mov eax, edx
mov dword [ebp - 4], 0
push 0
lea edx, [ebp - 4]
push edx
push eax
push ebx
mov eax, dword [ebp + 8]
push dword [eax]
call dword [sym.imp.KERNEL32.dll_ReadFile]
add ebx, dword [ebp - 4]
sub edi, dword [ebp - 4]
mov edx, dword [ebp - 4]
add dword [esi], edx
test eax, eax
je 0x402062
cmp dword [ebp - 4], 0
je 0x40205e
test edi, edi
jne 0x40201b
xor eax, eax
jmp 0x402068
call dword [sym.imp.KERNEL32.dll_GetLastError]
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 0xc

Function at 0x402080
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 4
push ebx
push esi
push edi
mov ebx, dword [ebp + 0xc]
mov esi, dword [ebp + 0x10]
mov edi, dword [esi]
test edi, edi
je 0x4020de
mov dword [esi], 0
mov eax, edi
mov edx, 0x400000
cmp eax, 0x400000
jbe 0x4020ab
mov eax, edx
mov dword [ebp - 4], 0
push 0
lea edx, [ebp - 4]
push edx
push eax
push ebx
mov eax, dword [ebp + 8]
push dword [eax]
call dword [sym.imp.KERNEL32.dll_WriteFile]
add ebx, dword [ebp - 4]
sub edi, dword [ebp - 4]
mov edx, dword [ebp - 4]
add dword [esi], edx
test eax, eax
je 0x4020e2
cmp dword [ebp - 4], 0
je 0x4020de
test edi, edi
jne 0x40209b
xor eax, eax
jmp 0x4020e8
call dword [sym.imp.KERNEL32.dll_GetLastError]
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 0xc

Function at 0x4021a0
Capabilities:
Get file size

Disassembly:
push ebp
mov ebp, esp
sub esp, 4
push ebx
push esi
push edi
mov eax, dword [ebp + 8]
mov ebx, dword [ebp + 0xc]
lea edx, [ebp - 4]
push edx
push dword [eax]
call dword [sym.imp.KERNEL32.dll_GetFileSize]
mov esi, eax
cmp esi, 0xffffffff
jne 0x4021ce
call dword [sym.imp.KERNEL32.dll_GetLastError]
test eax, eax
je 0x4021ce
jmp 0x4021e4
mov eax, dword [ebp - 4]
xor edx, edx
mov edx, eax
xor eax, eax
xor edi, edi
add eax, esi
adc edx, edi
mov dword [ebx], eax
mov dword [ebx + 4], edx
xor eax, eax
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 8

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

Disassembly:
push ebx
push esi
push edi
xor eax, eax
mov edx, eax
mov ecx, 8
mov ebx, edx
shr ebx, 1
xor esi, esi
mov edi, edx
and edi, 1
sub esi, edi
and esi, 0xedb88320
mov edx, ebx
xor edx, esi
dec ecx
jne 0x40528c
mov dword [eax*4 + 0x419d4c], edx
inc eax
cmp eax, 0x100
jb 0x405285
mov eax, 0x100
mov edx, dword [eax*4 + 0x41994c]
mov ecx, edx
and ecx, 0xff
mov ecx, dword [ecx*4 + 0x419d4c]
shr edx, 8
xor ecx, edx
mov dword [eax*4 + 0x419d4c], ecx
inc eax
cmp eax, 0x800
jb 0x4052ba
mov dword [0x41bd50], 0x406800
mov dword [0x41bd4c], 0x406800
mov dword [0x41bd54], 0x4068b0
call fcn.00406aa0
test eax, eax
jne 0x405315
mov dword [0x41bd4c], 0x4068b0
pop edi
pop esi
pop ebx
ret
Function at 0x405320
Capabilities:
Get common file path

Disassembly:
push ebp
mov ebp, esp
sub esp, 0xa2c
push ebx
mov ebx, dword [ebp + 8]
push 0x208
lea eax, [ebp - 0x410]
push eax
call dword [sym.imp.KERNEL32.dll_GetSystemDirectoryW]
cmp eax, 0x208
ja 0x405375
lea eax, [ebp - 0x410]
push eax
call fcn.00411c60
push ebx
lea eax, [ebp - 0x410]
push eax
push str._ls_ls
push 0x30e
lea eax, [ebp - 0xa2c]
push eax
call fcn.0040b960
add esp, 0x14
jmp 0x40538a
push 0x30e
push ebx
lea eax, [ebp - 0xa2c]
push eax
call fcn.0040bae0
add esp, 0xc
push 8
push 0
lea eax, [ebp - 0xa2c]
push eax
call dword [sym.imp.KERNEL32.dll_LoadLibraryExW]
pop ebx
mov esp, ebp
pop ebp
ret 4

Function at 0x405430
Capabilities:
Delete directory
Delete file
Enumerate files on windows
Enumerate files recursively
Set file attributes

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x254
push ebx
push esi
push edi
mov ebx, dword [ebp + 8]
mov edx, ebx
or eax, 0xffffffff
inc eax
cmp word [edx + eax*2], 0
jne 0x405444
mov dword [ebp - 0x254], eax
mov ecx, dword [ebp - 0x254]
lea ecx, [ebx + ecx*2]
mov edx, 0x41238e
push ecx
sub ecx, edx
mov ax, word [edx]
mov word [ecx + edx], ax
add edx, 2
test ax, ax
jne 0x405463
pop eax
lea eax, [ebp - 0x250]
push eax
push ebx
call dword [sym.imp.KERNEL32.dll_FindFirstFileW]
mov esi, eax
mov eax, dword [ebp - 0x254]
mov word [ebx + eax*2], 0
cmp esi, 0xffffffff
je 0x405580
xor edi, edi
push 0x41238a
lea eax, [ebp - 0x224]
push eax
call fcn.0040b360
add esp, 8
test eax, eax
je 0x40552d
push 0x412384
lea eax, [ebp - 0x224]
push eax
call fcn.0040b360
add esp, 8
test eax, eax
je 0x40552d
mov ecx, dword [ebp - 0x254]
lea ecx, [ebx + ecx*2]
lea edx, [ebp - 0x224]
push ecx
sub ecx, edx
mov ax, word [edx]
mov word [ecx + edx], ax
add edx, 2
test ax, ax
jne 0x4054dc
pop eax
test byte [ebp - 0x250], 0x10
je 0x40550d
push 0x4124d6
push ebx
call fcn.0040b8e0
add esp, 8
push ebx
call fcn.00405430
mov edi, eax
jmp 0x405529
push 0
push ebx
call dword [sym.imp.KERNEL32.dll_SetFileAttributesW]
push ebx
call dword [sym.imp.KERNEL32.dll_DeleteFileW]
test eax, eax
jne 0x405529
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov edi, eax
test edi, edi
jne 0x405552
lea eax, [ebp - 0x250]
push eax
push esi
call dword [sym.imp.KERNEL32.dll_FindNextFileW]
test eax, eax
jne 0x40549a
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov edi, eax
cmp edi, 0x12
jne 0x405552
xor edi, edi
mov eax, dword [ebp - 0x254]
mov word [ebx + eax*2], 0
push esi
call dword [sym.imp.KERNEL32.dll_FindClose]
test edi, edi
jne 0x40557c
push ebx
call dword [sym.imp.KERNEL32.dll_RemoveDirectoryW]
test eax, eax
jne 0x40557c
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov edi, eax
mov eax, edi
jmp 0x405586
call dword [sym.imp.KERNEL32.dll_GetLastError]
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 4
Function at 0x40af10
Capabilities:
Encrypt data using rc4 prga

Disassembly:
push ebx
push esi
push edi
mov eax, dword [esp + 0x14]
mov edx, dword [esp + 0x1c]
and eax, 0xfffffffc
sub dword [esp + 0x18], 4
mov ecx, dword [esp + 0x10]
add eax, dword [esp + 0x10]
cmp ecx, eax
jae 0x40afd2
add ecx, 4
cmp byte [ecx - 4], 0x40
jne 0x40af42
test byte [ecx - 3], 0xc0
je 0x40af4e
cmp byte [ecx - 4], 0x7f
jne 0x40af2b
cmp byte [ecx - 3], 0xc0
jb 0x40af2b
movzx esi, byte [ecx - 4]
shl esi, 0x18
movzx edi, byte [ecx - 3]
shl edi, 0x10
or esi, edi
movzx edi, byte [ecx - 2]
shl edi, 8
or esi, edi
movzx edi, byte [ecx - 1]
or esi, edi
add esi, esi
add esi, esi
test edx, edx
je 0x40af83
mov edi, ecx
sub edi, dword [esp + 0x10]
add edi, dword [esp + 0x18]
add esi, edi
jmp 0x40af8f
mov edi, ecx
sub edi, dword [esp + 0x10]
add edi, dword [esp + 0x18]
sub esi, edi
mov edi, esi
and edi, 0x1ffffff
sub edi, 0x1000000
xor edi, 0xff000000
shr edi, 2
mov esi, edi
or esi, 0x40000000
lea edi, [ecx - 4]
mov ebx, esi
shr ebx, 0x18
mov byte [edi], bl
mov ebx, esi
shr ebx, 0x10
mov byte [edi + 1], bl
mov ebx, esi
shr ebx, 8
mov byte [edi + 2], bl
mov ebx, esi
mov byte [edi + 3], bl
jmp 0x40af2b
mov eax, ecx
sub eax, dword [esp + 0x10]
pop edi
pop esi
pop ebx
ret 0x10
Function at 0x40afe0
Capabilities:
Encrypt data using rc4 prga

Disassembly:
push ebp
mov ebp, esp
sub esp, 0xc
push ebx
push esi
push edi
mov eax, dword [ebp + 0x14]
mov eax, dword [eax]
mov edx, eax
and edx, 7
cmp dword [ebp + 0xc], 5
jb 0x40b146
sub dword [ebp + 0xc], 4
add dword [ebp + 0x10], 5
xor esi, esi
mov edi, esi
add edi, dword [ebp + 8]
mov eax, dword [ebp + 0xc]
add eax, dword [ebp + 8]
cmp edi, eax
jae 0x40b025
mov cl, byte [edi]
and cl, 0xfe
cmp cl, 0xe8
je 0x40b025
inc edi
cmp edi, eax
jb 0x40b016
mov ecx, edi
sub ecx, dword [ebp + 8]
mov ebx, ecx
sub ebx, esi
mov dword [ebp - 4], ebx
mov esi, ecx
cmp edi, eax
jae 0x40b0f4
cmp dword [ebp - 4], 2
jbe 0x40b10e
xor edx, edx
mov al, byte [edi + 4]
inc al
test al, 0xfe
jne 0x40b137
movzx eax, byte [edi + 4]
shl eax, 0x18
movzx ecx, byte [edi + 3]
shl ecx, 0x10
or eax, ecx
movzx ecx, byte [edi + 2]
shl ecx, 8
or eax, ecx
movzx ecx, byte [edi + 1]
mov ebx, eax
or ebx, ecx
mov eax, dword [ebp + 0x10]
add eax, esi
mov dword [ebp - 8], eax
add esi, 5
cmp dword [ebp + 0x18], 0
je 0x40b08b
add ebx, dword [ebp - 8]
jmp 0x40b08e
sub ebx, dword [ebp - 8]
test edx, edx
je 0x40b0cd
mov eax, edx
and eax, 6
add eax, eax
add eax, eax
mov dword [ebp - 0xc], eax
mov ecx, dword [ebp - 0xc]
mov eax, ebx
shr eax, cl
movzx eax, al
inc eax
test eax, 0xfe
jne 0x40b0cb
mov ecx, dword [ebp - 0xc]
mov eax, 0x100
shl eax, cl
dec eax
xor ebx, eax
cmp dword [ebp + 0x18], 0
je 0x40b0c8
add ebx, dword [ebp - 8]
jmp 0x40b0cb
sub ebx, dword [ebp - 8]
xor edx, edx
mov al, bl
mov byte [edi + 1], al
mov eax, ebx
shr eax, 8
mov byte [edi + 2], al
mov eax, ebx
shr eax, 0x10
mov byte [edi + 3], al
xor eax, eax
shr ebx, 0x18
and ebx, 1
sub eax, ebx
mov byte [edi + 4], al
jmp 0x40b007
cmp dword [ebp - 4], 2
jbe 0x40b0fe
xor eax, eax
jmp 0x40b105
mov ecx, dword [ebp - 4]
mov eax, edx
shr eax, cl
mov ecx, dword [ebp + 0x14]
mov dword [ecx], eax
mov eax, esi
jmp 0x40b148
mov ecx, dword [ebp - 4]
shr edx, cl
test edx, edx
je 0x40b047
cmp edx, 4
ja 0x40b137
cmp edx, 3
je 0x40b137
mov eax, edx
shr eax, 1
mov al, byte [edi + eax + 1]
inc al
test al, 0xfe
jne 0x40b047
mov eax, edx
shr eax, 1
mov edx, eax
or edx, 4
inc esi
jmp 0x40b007
xor eax, eax
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 0x14