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

Disassembly:
sub esp, 0x80c
mov eax, dword [0x6e1c7c]
xor eax, esp
mov dword [esp + 0x808], eax
push ebx
mov ebx, dword [esp + 0x814]
push ebp
push esi
mov dword [esp + 0xc], ebx
mov esi, dword [ebx + 0x11c]
mov ebp, dword [ebx + 0x18]
mov dword [esp + 0x10], ebp
mov eax, dword [esi + 0x1eb8]
sub eax, dword [esi + 0x1eb4]
add eax, 2
push eax
lea eax, [esi + 0x1cb4]
push eax
push 0x3c
push ebx
call fcn.0054c290
mov eax, dword [esi + 0x1eb4]
add esp, 0x10
mov cl, byte [eax]
inc eax
mov dword [esi + 0x1eb4], eax
cmp cl, 0x18
je 0x54ca38
cmp cl, 0x23
je 0x54ca15
cmp cl, 0x27
jne 0x54cac0
push edi
push 0
push 0x27
push 0xfa
push 0xff
push str._c_c_c_c
lea eax, [esp + 0x2c]
push 0x800
push eax
call fcn.0052d490
mov esi, dword [esi + 0x1cb0]
add esp, 0x1c
mov edi, 4
test esi, esi
je 0x54c995
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 0x54c920
sub ecx, ebx
lea eax, [edi + 1]
add eax, ecx
cmp eax, 0x7fa
jae 0x54c986
push 0x2c
push edx
call fcn.00619e20
mov ebx, 0x800
lea ebp, [esp + 0x20]
mov edx, eax
add esp, 8
sub ebx, edi
add ebp, edi
test edx, edx
jne 0x54c967
push dword [esi]
push eax
push str._c_s
push ebx
push ebp
call fcn.0052d490
add esp, 0x14
jmp 0x54c984
mov ecx, dword [esi]
lea eax, [edx + 1]
push eax
push 1
push ecx
sub edx, ecx
push edx
push 0
push str._c_.s_c_s
push ebx
push ebp
call fcn.0052d490
add esp, 0x20
add edi, eax
mov esi, dword [esi + 4]
test esi, esi
jne 0x54c914
mov ebx, dword [esp + 0x10]
mov ebp, dword [esp + 0x14]
push 0xf0
push 0xff
mov eax, 0x800
sub eax, edi
push str._c_c
push eax
lea eax, [esp + 0x28]
add eax, edi
push eax
call fcn.0052d490
add esp, 0x14
lea eax, [edi + 2]
push 0
push eax
lea eax, [esp + 0x20]
push eax
push dword [ebp + 0x140]
call dword [sym.imp.WS2_32.dll_send]
test eax, eax
jns 0x54c9eb
call dword [sym.imp.WS2_32.dll_WSAGetLastError]
push eax
push str.Sending_data_failed___d_
push ebx
call fcn.00525f00
add esp, 0xc
push edi
lea eax, [esp + 0x1e]
push eax
push 0x3e
push ebx
call fcn.0054c290
add esp, 0x10
pop edi
pop esi
pop ebp
pop ebx
mov ecx, dword [esp + 0x808]
xor ecx, esp
call fcn.006021fd
add esp, 0x80c
ret
lea edx, [esi + 0x1c28]
mov ecx, edx
lea esi, [ecx + 1]
mov al, byte [ecx]
inc ecx
test al, al
jne 0x54ca20
push 0xf0
push 0xff
push edx
push 0
push 0x23
jmp 0x54ca59
lea edx, [esi + 0x1c08]
mov ecx, edx
lea esi, [ecx + 1]
mov al, byte [ecx]
inc ecx
test al, al
jne 0x54ca43
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, [esp + 0x34]
push 0x800
push eax
lea esi, [ecx + 6]
call fcn.0052d490
add esp, 0x28
lea eax, [esp + 0x14]
push 0
push esi
push eax
push dword [ebp + 0x140]
call dword [sym.imp.WS2_32.dll_send]
test eax, eax
jns 0x54caac
call dword [sym.imp.WS2_32.dll_WSAGetLastError]
push eax
push str.Sending_data_failed___d_
push ebx
call fcn.00525f00
add esp, 0xc
lea eax, [esi - 2]
push eax
lea eax, [esp + 0x1a]
push eax
push 0x3e
push ebx
call fcn.0054c290
add esp, 0x10
mov ecx, dword [esp + 0x814]
pop esi
pop ebp
pop ebx
xor ecx, esp
call fcn.006021fd
add esp, 0x80c
ret
Function at 0x54dc20
Capabilities:
Receive data
Receive data on socket

Disassembly:
sub esp, 0x8c
mov eax, dword [0x6e1c7c]
xor eax, esp
mov dword [esp + 0x88], eax
push ebx
push ebp
mov ebp, dword [esp + 0x98]
xor ebx, ebx
push esi
push edi
mov eax, dword [ebp + 0x18]
mov edi, dword [eax + 0x398]
lea eax, [esp + 0x10]
push eax
mov dword [esp + 0x14], 0x80
lea eax, [esp + 0x1c]
push eax
mov eax, dword [edi + 0x13c]
push ebx
add eax, 4
push eax
push dword [edi + 0x148]
push dword [edi + 0x14]
call dword [sym.imp.WS2_32.dll_recvfrom]
mov dword [edi + 0x134], eax
cmp dword [edi + 0x130], ebx
jne 0x54dca6
push dword [esp + 0x10]
lea eax, [esp + 0x1c]
push eax
lea eax, [edi + 0xb0]
push eax
call fcn.00619f50
mov eax, dword [esp + 0x1c]
add esp, 0xc
mov dword [edi + 0x130], eax
mov esi, dword [edi + 0x134]
cmp esi, 4
jge 0x54dce1
push str.Received_too_short_packet
push ebp
call fcn.00525f00
add esp, 8
mov dword [edi + 0xc], 7
mov eax, ebx
mov ecx, dword [esp + 0x98]
pop edi
pop esi
pop ebp
pop ebx
xor ecx, esp
call fcn.006021fd
add esp, 0x8c
ret
mov edx, dword [edi + 0x148]
movzx eax, byte [edx]
movzx ecx, byte [edx + 1]
shl eax, 8
or ecx, eax
mov dword [edi + 0xc], ecx
dec ecx
cmp ecx, 5
ja case.0x54dd00.1
jmp dword [ecx*4 + 0x54ddec]
cmp esi, 4
jle case.0x54dd00.4
movzx ecx, byte [edx + 2]
movzx eax, byte [edx + 3]
shl ecx, 8
or ecx, eax
movzx eax, word [edi + 0x144]
inc eax
movzx eax, ax
cmp eax, ecx
jne case.0x54dd00.4
lea eax, [esi - 4]
push eax
lea eax, [edx + 4]
push eax
push 1
push ebp
call fcn.00526780
mov ebx, eax
add esp, 0x10
test ebx, ebx
je case.0x54dd00.4
push 5
push edi
call fcn.0054e710
add esp, 8
jmp 0x54dcc6
movzx ecx, byte [edx + 2]
lea eax, [edx + 4]
mov dword [esp + 0x14], eax
add esi, 0xfffffffc
movzx eax, byte [edx + 3]
shl ecx, 8
or ecx, eax
lea eax, [edx + 4]
push esi
push eax
mov dword [edi + 8], ecx
call fcn.0054e780
add esp, 8
cmp eax, esi
jae case.0x54dd00.4
push dword [esp + 0x14]
push str.TFTP_error:__s
push ebp
call fcn.00525fd0
jmp 0x54ddc1
lea eax, [esi - 2]
push eax
lea eax, [edx + 2]
push eax
push edi
call fcn.0054d9d0
mov ebx, eax
add esp, 0xc
test ebx, ebx
je case.0x54dd00.4
jmp 0x54dcc6
push str.Internal_error:_Unexpected_packet
push 0x655b04
push ebp
call fcn.00525f00
add esp, 0xc
push ebp
call fcn.00537290
add esp, 4
test eax, eax
je 0x54dcc6
push 5
push edi
call fcn.0054e710
add esp, 8
mov eax, 0x2a
jmp 0x54dcc8
Function at 0x555740
Capabilities:
Get local ipv4 addresses
Get socket information

Disassembly:
sub esp, 0x188
mov eax, dword [0x6e1c7c]
xor eax, esp
mov dword [esp + 0x184], eax
mov eax, dword [esp + 0x18c]
push ebx
mov ebx, dword [esp + 0x194]
push esi
mov esi, dword [eax + 8]
mov eax, dword [ebx + 0x18]
mov eax, dword [eax + 0x200]
test dword [eax + 0x44], 0x800
jne 0x55586d
push 0x80
lea eax, [esp + 0x10]
mov dword [esp + 0xc], 0x80
push 0
push eax
call fcn.00619cc0
add esp, 0xc
lea eax, [esp + 8]
push eax
lea eax, [esp + 0x10]
push eax
push dword [esi + 0x98]
call dword [sym.imp.WS2_32.dll_getsockname]
test eax, eax
je 0x5557fa
call dword [sym.imp.WS2_32.dll_WSAGetLastError]
mov esi, eax
lea eax, [esp + 0x8c]
push 0x100
push eax
push esi
call fcn.00538df0
push eax
push esi
push str.getsockname___failed_with_errno__d:__s
push ebx
call fcn.00525f00
add esp, 0x1c
mov eax, 2
pop esi
pop ebx
mov ecx, dword [esp + 0x184]
xor ecx, esp
call fcn.006021fd
add esp, 0x188
ret
lea eax, [esi + 0x120]
push eax
lea eax, [esi + 0xf0]
push eax
push dword [esp + 0x10]
lea eax, [esp + 0x18]
push eax
call fcn.005275d0
add esp, 0x10
test al, al
jne 0x55586d
push edi
call fcn.0062386b
mov esi, dword [eax]
call fcn.0062386b
mov edi, eax
lea eax, [esp + 0x90]
push 0x100
push eax
push esi
call fcn.00538df0
push eax
push dword [edi]
push str.ssloc_inet_ntop___failed_with_errno__d:__s
push ebx
call fcn.00525f00
add esp, 0x1c
mov eax, 2
pop edi
pop esi
pop ebx
mov ecx, dword [esp + 0x184]
xor ecx, esp
call fcn.006021fd
add esp, 0x188
ret
mov ecx, dword [esp + 0x18c]
xor eax, eax
pop esi
pop ebx
xor ecx, esp
call fcn.006021fd
add esp, 0x188
ret
Function at 0x55f1d0
Capabilities:
Get file size
Read file on windows

Disassembly:
sub esp, 0x120
mov eax, dword [0x6e1c7c]
xor eax, esp
mov dword [esp + 0x11c], eax
mov eax, dword [esp + 0x124]
push ebx
push ebp
mov ebp, dword [esp + 0x134]
xor ebx, ebx
push esi
push edi
mov edi, dword [esp + 0x138]
xor esi, esi
push edi
mov dword [esp + 0x20], eax
mov dword [esp + 0x18], edi
call fcn.0062f59c
add esp, 4
mov dword [esp + 0x20], eax
test eax, eax
jne 0x55f24f
push 0x100
lea eax, [esp + 0x30]
push eax
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
call fcn.00538ee0
push eax
push edi
push str.schannel:_invalid_path_name_for_CA_file__s:__s
push ebp
call fcn.00525f00
push esi
call dword [0x6dd004]
add esp, 0x20
lea eax, [ebx + 0x4d]
jmp 0x55f3af
push 0
push 0x80
push 3
push 0
push 1
push bind
push eax
call dword [sym.imp.KERNEL32.dll_CreateFileA]
mov dword [esp + 0x18], eax
cmp eax, 0xffffffff
jne 0x55f2a9
push 0x100
lea eax, [esp + 0x30]
push eax
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
call fcn.00538ee0
push eax
push edi
push str.schannel:_failed_to_open_CA_file__s:__s
push ebp
call fcn.00525f00
push 0
mov esi, 0x4d
call dword [0x6dd004]
add esp, 0x20
jmp 0x55f3a1
lea ecx, [esp + 0x24]
push ecx
push eax
call dword [sym.imp.KERNEL32.dll_GetFileSizeEx]
test eax, eax
jne 0x55f2e9
push 0x100
lea eax, [esp + 0x30]
push eax
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
call fcn.00538ee0
push eax
push edi
push str.schannel:_failed_to_determine_size_of_CA_file__s:__s
push ebp
call fcn.00525f00
add esp, 0x1c
mov esi, 0x4d
jmp 0x55f38d
mov edi, dword [esp + 0x24]
cmp dword [esp + 0x28], ebx
jl 0x55f317
jg 0x55f2fd
cmp edi, 0x100000
jbe 0x55f317
push 0x100000
push str.schannel:_CA_file_exceeds_max_size_of__u_bytes
push ebp
call fcn.00525f00
add esp, 0xc
mov esi, 0x4d
jmp 0x55f38d
lea eax, [edi + 1]
push eax
call dword [section..data]
mov ebx, eax
add esp, 4
test ebx, ebx
jne 0x55f32f
lea esi, [eax + 0x1b]
jmp 0x55f38d
test edi, edi
je 0x55f374
nop dword [eax]
nop word [eax + eax]
push 0
lea eax, [esp + 0x14]
mov dword [esp + 0x14], 0
push eax
mov eax, edi
sub eax, esi
push eax
lea eax, [esi + ebx]
push eax
push dword [esp + 0x28]
call dword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
je 0x55f3cc
mov eax, dword [esp + 0x10]
test eax, eax
je 0x55f3c8
add esi, eax
cmp esi, edi
jb 0x55f340
push ebp
push dword [esp + 0x18]
mov byte [edi + ebx], 0
push edi
push ebx
push dword [esp + 0x2c]
call fcn.0055efd0
add esp, 0x14
mov esi, eax
push dword [esp + 0x18]
call dword [sym.imp.KERNEL32.dll_CloseHandle]
push ebx
call dword [0x6dd004]
add esp, 4
push dword [esp + 0x20]
call fcn.0062208a
add esp, 4
mov eax, esi
mov ecx, dword [esp + 0x12c]
pop edi
pop esi
pop ebp
pop ebx
xor ecx, esp
call fcn.006021fd
add esp, 0x120
ret
mov edi, esi
jmp 0x55f374
push 0x100
lea eax, [esp + 0x30]
push eax
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
call fcn.00538ee0
push eax
push dword [esp + 0x24]
push str.schannel:_failed_to_read_from_CA_file__s:__s
push ebp
call fcn.00525f00
add esp, 0x1c
mov esi, 0x4d
jmp 0x55f38d
Function at 0x582320
Capabilities:
Check if file exists

Disassembly:
push ebx
push esi
mov esi, dword [esp + 0x10]
push edi
push esi
push dword [esp + 0x14]
call fcn.005977e0
push 0x62
push esi
mov edi, eax
mov ebx, 1
call fcn.00619e20
add esp, 0x10
mov ecx, 0x11
test eax, eax
cmove ebx, ecx
test edi, edi
jne 0x5823c5
push 0x4a
push str.crypto_bio_bss_file.c
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
push 1
push 2
call fcn.00573e20
push 0x676b84
push esi
push 0x676b88
push dword [esp + 0x30]
push str.fopen_
push 5
call fcn.00573310
add esp, 0x2c
call fcn.0062386b
cmp dword [eax], 2
je 0x5823a2
call fcn.0062386b
cmp dword [eax], 6
je 0x5823a2
lea eax, [edi + 2]
lea ecx, [edi + 0x53]
jmp 0x5823ac
mov eax, 0x80
mov ecx, 0x51
push ecx
push str.crypto_bio_bss_file.c
push eax
push 0x6d
push 0x20
call fcn.00573e20
add esp, 0x14
xor eax, eax
pop edi
pop esi
pop ebx
ret
push 0x676b34
call fcn.005799a0
mov esi, eax
add esp, 4
test esi, esi
jne 0x5823e7
push edi
call fcn.0061dd9b
add esp, 4
xor eax, eax
pop edi
pop esi
pop ebx
ret
push 0
push esi
call fcn.00579580
push edi
push ebx
push 0x6a
push esi
call fcn.005795b0
add esp, 0x18
mov eax, esi
pop edi
pop esi
pop ebx
ret
Function at 0x597ca0
Capabilities:
Generate random numbers via winapi
Get memory capacity

Disassembly:
push ebp
mov ebp, esp
and esp, 0xffffffc0
mov eax, 0x80
call fcn.006032d0
mov eax, dword [0x6e1c7c]
xor eax, esp
mov dword [esp + 0x7c], eax
push 0xf0000040
push 1
push 0
push 0
lea eax, [esp + 0x14]
push eax
call dword [sym.imp.ADVAPI32.dll_CryptAcquireContextW]
test eax, eax
je 0x597d1c
lea eax, [esp + 0x38]
push eax
push 0x40
push dword [esp + 0xc]
call dword [sym.imp.ADVAPI32.dll_CryptGenRandom]
test eax, eax
je 0x597d10
mov eax, 8
call fcn.006032d0
movsd xmm0, qword [0x6833f0]
lea eax, [esp + 0x40]
movsd qword [esp], xmm0
push 0x40
push eax
call fcn.005792e0
add esp, 0x10
push 0
push dword [esp + 8]
call dword [sym.imp.ADVAPI32.dll_CryptReleaseContext]
push 0xf0000040
push 0x16
push str.Intel_Hardware_Cryptographic_Service_Provider
push 0
lea eax, [esp + 0x14]
push eax
call dword [sym.imp.ADVAPI32.dll_CryptAcquireContextW]
test eax, eax
je 0x597d80
lea eax, [esp + 0x38]
push eax
push 0x40
push dword [esp + 0xc]
call dword [sym.imp.ADVAPI32.dll_CryptGenRandom]
test eax, eax
je 0x597d74
mov eax, 8
call fcn.006032d0
movsd xmm0, qword [0x6833f0]
lea eax, [esp + 0x40]
movsd qword [esp], xmm0
push 0x40
push eax
call fcn.005792e0
add esp, 0x10
push 0
push dword [esp + 8]
call dword [sym.imp.ADVAPI32.dll_CryptReleaseContext]
cmp dword [0x6e16f8], 0
je 0x597dc9
lea eax, [esp + 0x10]
push eax
call dword [sym.imp.KERNEL32.dll_QueryPerformanceCounter]
test eax, eax
jne 0x597d9f
mov dword [0x6e16f8], eax
jmp 0x597dc9
mov eax, 8
call fcn.006032d0
xorps xmm0, xmm0
lea eax, [esp + 0x18]
movsd qword [esp], xmm0
push 8
push eax
call fcn.005792e0
add esp, 0x10
cmp dword [0x6e16f8], 0
jne 0x597df4
call dword [sym.imp.KERNEL32.dll_GetTickCount]
mov dword [esp + 8], eax
mov eax, 8
call fcn.006032d0
xorps xmm0, xmm0
lea eax, [esp + 0x10]
movsd qword [esp], xmm0
push 4
push eax
call fcn.005792e0
add esp, 0x10
lea eax, [esp + 0x18]
push eax
call dword [sym.imp.KERNEL32.dll_GlobalMemoryStatus]
mov eax, 8
call fcn.006032d0
movsd xmm0, qword [0x6c0888]
lea eax, [esp + 0x20]
movsd qword [esp], xmm0
push 0x20
push eax
call fcn.005792e0
add esp, 0x10
call dword [sym.imp.KERNEL32.dll_GetCurrentProcessId]
mov dword [esp + 0xc], eax
mov eax, 8
call fcn.006032d0
movsd xmm0, qword [0x6c0888]
lea eax, [esp + 0x14]
movsd qword [esp], xmm0
push 4
push eax
call fcn.005792e0
mov ecx, dword [esp + 0x8c]
add esp, 0x10
xor ecx, esp
mov eax, 1
call fcn.006021fd
mov esp, ebp
pop ebp
ret
Function at 0x5dd540
Capabilities:
Encode data using base64

Disassembly:
mov eax, 4
call fcn.006032d0
push esi
mov esi, dword [esp + 0x14]
xor ecx, ecx
mov dword [esp + 4], ecx
test esi, esi
jle 0x5dd643
mov edx, dword [esp + 0xc]
push ebx
push ebp
push edi
mov edi, dword [esp + 0x1c]
inc edi
nop dword [eax]
movzx eax, byte [edi - 1]
cmp esi, 3
jb 0x5dd5c8
movzx ecx, byte [edi]
shl eax, 8
or eax, ecx
movzx ecx, byte [edi + 1]
shl eax, 8
or eax, ecx
mov ecx, eax
shr ecx, 0x12
movzx ecx, byte [ecx + 0x693d78]
mov byte [edx], cl
mov ecx, eax
shr ecx, 0xc
and ecx, 0x3f
movzx ecx, byte [ecx + 0x693d78]
mov byte [edx + 1], cl
mov ecx, eax
and ecx, 0x3f
shr eax, 6
add edx, 2
and eax, 0x3f
mov bl, byte [ecx + 0x693d78]
mov ecx, edx
mov al, byte [eax + 0x693d78]
jmp 0x5dd614
shl eax, 0x10
cmp esi, 2
jne 0x5dd5d8
movzx ecx, byte [edi]
shl ecx, 8
or eax, ecx
mov ecx, eax
shr ecx, 0x12
movzx ecx, byte [ecx + 0x693d78]
mov byte [edx], cl
mov ecx, eax
shr ecx, 0xc
and ecx, 0x3f
movzx ecx, byte [ecx + 0x693d78]
mov byte [edx + 1], cl
add edx, 2
mov ecx, edx
cmp esi, 1
jne 0x5dd606
mov al, 0x3d
jmp 0x5dd612
shr eax, 6
and eax, 0x3f
mov al, byte [eax + 0x693d78]
mov bl, 0x3d
lea ebp, [ecx + 2]
mov byte [edx], al
mov byte [ecx + 1], bl
sub esi, 3
mov ecx, dword [esp + 0x10]
add edi, 3
add ecx, 4
mov edx, ebp
mov dword [esp + 0x10], ecx
test esi, esi
jg 0x5dd570
pop edi
mov byte [ebp], 0
mov eax, ecx
pop ebp
pop ebx
pop esi
pop ecx
ret
mov eax, dword [esp + 0xc]
pop esi
mov byte [eax], cl
mov eax, ecx
pop ecx
ret
Function at 0x6057ae
Capabilities:
Create thread

Disassembly:
push ebp
mov ebp, esp
push dword [ebp + 0x1c]
push dword [ebp + 0x18]
push dword [ebp + 0x14]
push dword [ebp + 0x10]
push dword [ebp + 0xc]
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.dll_CreateThread]
pop ebp
ret

Function at 0x63a312
Capabilities:
Read file on windows

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
pop ebp
jmp fcn.0063a191

Function at 0x63e564
Capabilities:
Set environment variable

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
pop ebp
jmp fcn.0063e224

Function at 0x4019c3
Capabilities:
Hide graphical window

Disassembly:
push ebp
mov eax, dword [esp + 8]
mov dword [0x4040d0], eax
xor eax, eax
mov ebp, esp
mov ecx, 0xa
push eax
dec ecx
jne 0x4019d6
push esp
mov dword [ebp - 0x24], 0x4016fe
mov eax, dword [0x4040d0]
mov dword [ebp - 0x18], eax
mov dword [ebp - 4], str.solienty
call dword [sym.imp.USER32.dll_RegisterClassA]
xor eax, eax
push eax
push dword [0x4040d0]
push eax
push eax
push 0x190
push 0x2b2
push 0x640
push 0x9c4
push 0
push str.absent
push str.solienty
push eax
call dword [sym.imp.USER32.dll_CreateWindowExA]
mov dword [0x4040d8], eax
push 0
push eax
call dword [sym.imp.USER32.dll_ShowWindow]
xor eax, eax
push eax
push eax
push eax
lea edx, [ebp - 0x1c]
push edx
call dword [sym.imp.USER32.dll_GetMessageA]
test eax, eax
je 0x401a75
mov esi, dword [sym.imp.USER32.dll_TranslateMessage]
mov edi, dword [sym.imp.USER32.dll_DispatchMessageA]
lea eax, [ebp - 0x1c]
push eax
call esi
lea ecx, [ebp - 0x1c]
push ecx
call edi
xor eax, eax
push eax
push eax
push eax
lea edx, [ebp - 0x1c]
push edx
call dword [sym.imp.USER32.dll_GetMessageA]
test eax, eax
jne 0x401a56
pop ebp
ret 0x10

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

Disassembly:
pushal
nop
nop
call 0x42e00c
nop
nop
nop
nop
nop
pop eax
nop
add eax, 0x403ac5
sub eax, 0x403a6b
nop
nop
nop
nop
mov ebx, dword [eax]
nop
nop
nop
nop
mov ecx, dword [eax + 4]
nop
nop
nop
mov edx, dword [eax + 8]
nop
nop
xor dword [ebx], edx
nop
nop
nop
nop
add ebx, 4
nop
cmp ebx, ecx
nop
nop
nop
nop
nop
jl 0x42e030
nop
nop
nop
nop
add eax, 0xc
nop
nop
nop
nop
cmp dword [eax], 0
nop
nop
nop
nop
nop
jne 0x42e01e
nop
nop
popal
nop
nop
nop
jmp loc.00401219
Function at 0x403c8b
Capabilities:
Parse pe header

Disassembly:
push 0
call dword [sym.imp.KERNEL32.dll_GetModuleHandleW]
test eax, eax
je 0x403cca
mov ecx, 0x5a4d
cmp word [eax], cx
jne 0x403cca
mov ecx, dword [eax + 0x3c]
add ecx, eax
cmp dword [ecx], 0x4550
jne 0x403cca
mov eax, 0x10b
cmp word [ecx + 0x18], ax
jne 0x403cca
cmp dword [ecx + 0x74], 0xe
jbe 0x403cca
cmp dword [ecx + 0xe8], 0
setne al
ret
xor al, al
ret
Function at 0x418d50
Capabilities:
Encode data using xor
Hash data with crc32

Disassembly:
xor edx, edx
mov eax, edx
and eax, 1
dec eax
not eax
and eax, 0xedb88320
mov ecx, edx
shr ecx, 1
xor eax, ecx
mov ecx, eax
and ecx, 1
dec ecx
not ecx
and ecx, 0xedb88320
shr eax, 1
xor ecx, eax
mov eax, ecx
and eax, 1
dec eax
shr ecx, 1
not eax
and eax, 0xedb88320
xor eax, ecx
mov ecx, eax
and ecx, 1
dec ecx
not ecx
and ecx, 0xedb88320
shr eax, 1
xor ecx, eax
mov eax, ecx
and eax, 1
dec eax
shr ecx, 1
not eax
and eax, 0xedb88320
xor eax, ecx
mov ecx, eax
and ecx, 1
dec ecx
not ecx
and ecx, 0xedb88320
shr eax, 1
xor ecx, eax
mov eax, ecx
and eax, 1
dec eax
shr ecx, 1
not eax
and eax, 0xedb88320
xor eax, ecx
mov ecx, eax
and ecx, 1
dec ecx
not ecx
and ecx, 0xedb88320
shr eax, 1
xor ecx, eax
mov dword [edx*4 + 0x420b80], ecx
inc edx
cmp edx, 0x100
jb 0x418d52
cmp edx, 0x800
jae 0x418e29
lea esp, [esp]
mov eax, dword [edx*4 + 0x420780]
mov ecx, eax
and ecx, 0xff
shr eax, 8
xor eax, dword [ecx*4 + 0x420b80]
inc edx
mov dword [edx*4 + 0x420b7c], eax
cmp edx, 0x800
jb 0x418e00
mov eax, 0x419630
mov dword [0x420b74], eax
mov dword [0x422b80], eax
mov dword [0x420b70], 0x419550
call fcn.00419060
test eax, eax
jne 0x418e55
mov dword [0x422b80], 0x419550
ret

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

Disassembly:
pushal
nop
nop
mov eax, section..data
mov ebx, 0x408ecc
nop
nop
mov ecx, 0x26457c2
nop
nop
nop
test eax, eax
nop
nop
nop
je 0x43004e
nop
nop
xor dword [eax], ecx
nop
nop
nop
nop
nop
nop
nop
nop
inc eax
nop
nop
nop
nop
nop
nop
inc eax
nop
nop
inc eax
nop
nop
nop
inc eax
nop
nop
nop
nop
nop
cmp eax, ebx
nop
nop
nop
nop
nop
nop
nop
nop
jne 0x430024
mov eax, section..text
nop
nop
mov ebx, 0x42e1d0
nop
mov ecx, 0x23cf4728
nop
test eax, eax
nop
nop
nop
nop
nop
je 0x430084
nop
nop
nop
nop
nop
nop
xor dword [eax], ecx
nop
add eax, 4
nop
nop
cmp eax, ebx
nop
nop
nop
nop
nop
jne 0x43006c
nop
nop
nop
nop
popal
nop
nop
nop
nop
jmp 0x401219
Function at 0x402abc
Capabilities:
Accept command line arguments

Disassembly:
push ebx
push esi
push edi
add esp, 0xfffffef8
mov ebx, edx
mov esi, eax
mov eax, ebx
call fcn.00404434
test esi, esi
jne 0x402af2
push 0x105
lea eax, [esp + 4]
push eax
push 0
call sub.kernel32.dll_GetModuleFileNameA
mov ecx, eax
mov edx, esp
mov eax, ebx
call fcn.00404524
jmp 0x402b10
call sub.kernel32.dll_GetCommandLineA
mov edi, eax
mov edx, ebx
mov eax, edi
call fcn.004029d0
mov edi, eax
test esi, esi
je 0x402b10
cmp dword [ebx], 0
je 0x402b10
dec esi
jmp 0x402af9
add esp, 0x108
pop edi
pop esi
pop ebx
ret

Function at 0x403538
Capabilities:
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffff4
movzx eax, word [0x46800c]
mov dword [ebp - 8], eax
lea eax, [ebp - 4]
push eax
push 1
push 0
push 0x4035d0
push 0x80000002
call sub.advapi32.dll_RegOpenKeyExA
test eax, eax
jne 0x4035b0
xor eax, eax
push ebp
push 0x4035a9
push dword fs:[eax]
mov dword fs:[eax], esp
mov dword [ebp - 0xc], 4
lea eax, [ebp - 0xc]
push eax
lea eax, [ebp - 8]
push eax
push 0
push 0
push 0x4035ec
mov eax, dword [ebp - 4]
push eax
call sub.advapi32.dll_RegQueryValueExA
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x4035b0
mov eax, dword [ebp - 4]
push eax
call sub.advapi32.dll_RegCloseKey
ret
mov ax, word [0x46800c]
and ax, 0xffc0
mov dx, word [ebp - 8]
and dx, 0x3f
or ax, dx
mov word [0x46800c], ax
mov esp, ebp
pop ebp
ret

Function at 0x4042b8
Capabilities:
Write file on windows

Disassembly:
push ecx
cmp byte [0x46a04c], 0
je 0x404319
cmp word [0x46a220], 0xd7b2
jne 0x4042e1
cmp dword [0x46a228], 0
jbe 0x4042e1
mov eax, 0x46a21c
call dword [0x46a238]
push 0
lea eax, [esp + 4]
push eax
push 0x1e
push 0x468054
push 0xfffffffffffffff5
call sub.kernel32.dll_GetStdHandle
push eax
call sub.kernel32.dll_WriteFile
push 0
lea eax, [esp + 4]
push eax
push 2
push 0x404340
push 0xfffffffffffffff5
call sub.kernel32.dll_GetStdHandle
push eax
call sub.kernel32.dll_WriteFile
pop edx
ret
cmp byte [0x46801c], 0
jne 0x404335
push 0
push 0x468074
push 0x468054
push 0
call sub.user32.dll_MessageBoxA
pop edx
ret