joyce8/EMBER2024-capa huggingface dataset:
Function at 0x413962
Capabilities:
Access peb ldr_data
Get process heap flags

Disassembly:
mov eax, 0x41e5f2
call fcn.00418ca8
push ecx
push esi
push edi
mov edi, dword [ebp + 8]
mov esi, ecx
push edi
mov dword [ebp - 0x10], esi
call fcn.0041055a
and dword [ebp - 4], 0
lea eax, [edi + 0xc]
push eax
lea ecx, [esi + 0xc]
call fcn.0041055a
lea eax, [edi + 0x18]
push eax
lea ecx, [esi + 0x18]
mov byte [ebp - 4], 1
call fcn.0041055a
mov eax, dword [edi + 0x24]
mov dword [esi + 0x24], eax
mov eax, dword [edi + 0x28]
mov dword [esi + 0x28], eax
mov eax, dword [edi + 0x2c]
mov dword [esi + 0x2c], eax
mov eax, dword [edi + 0x30]
add edi, 0x34
push edi
lea ecx, [esi + 0x34]
mov byte [ebp - 4], 2
mov dword [esi + 0x30], eax
call fcn.0041055a
mov ecx, dword [ebp - 0xc]
pop edi
mov eax, esi
pop esi
mov dword fs:[0], ecx
leave
ret 4
Function at 0x42e000
Capabilities:
Encode data using xor
Packed with generic packer

Disassembly:
pushal
nop
nop
nop
nop
nop
call 0x42e00c
nop
nop
nop
nop
pop eax
nop
add eax, 0x403ac5
nop
sub eax, 0x403a6b
nop
mov ebx, dword [eax]
nop
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
nop
nop
nop
nop
nop
nop
cmp ebx, ecx
nop
nop
nop
jl 0x42e030
nop
nop
nop
add eax, 0xc
nop
nop
nop
nop
cmp dword [eax], 0
nop
nop
nop
nop
jne 0x42e01e
nop
nop
nop
popal
nop
nop
jmp fcn.00401219
Function at 0x55f740
Capabilities:
Packed with generic packer

Disassembly:
pushal
mov esi, section.UPX1
lea edi, [esi - 0x102000]
push edi
jmp 0x55f75a
mov al, byte [esi]
inc esi
mov byte [edi], al
inc edi
add ebx, ebx
jne 0x55f761
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
jb 0x55f750
mov eax, 1
add ebx, ebx
jne 0x55f773
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc eax, eax
add ebx, ebx
jae 0x55f784
jne 0x55f7a3
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
jb 0x55f7a3
dec eax
add ebx, ebx
jne 0x55f790
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc eax, eax
jmp 0x55f768
add ebx, ebx
jne 0x55f79f
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc ecx, ecx
jmp 0x55f7f5
xor ecx, ecx
sub eax, 3
jb 0x55f7bb
shl eax, 8
mov al, byte [esi]
inc esi
xor eax, 0xffffffff
je 0x55f82a
sar eax, 1
mov ebp, eax
jmp 0x55f7c6
add ebx, ebx
jne 0x55f7c6
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
jb 0x55f794
inc ecx
add ebx, ebx
jne 0x55f7d4
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
jb 0x55f794
add ebx, ebx
jne 0x55f7e1
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc ecx, ecx
add ebx, ebx
jae 0x55f7d6
jne 0x55f7f2
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
jae 0x55f7d6
add ecx, 2
cmp ebp, 0xfffffb00
adc ecx, 2
lea edx, [edi + ebp]
cmp ebp, 0xfffffffc
jbe 0x55f814
mov al, byte [edx]
inc edx
mov byte [edi], al
inc edi
dec ecx
jne 0x55f806
jmp 0x55f756
mov eax, dword [edx]
add edx, 4
mov dword [edi], eax
add edi, 4
sub ecx, 4
ja 0x55f814
add edi, ecx
jmp 0x55f756
pop esi
mov edi, esi
mov ecx, 0x40f0
mov al, byte [edi]
inc edi
sub al, 0xe8
cmp al, 1
ja 0x55f832
cmp byte [edi], 0x11
jne 0x55f832
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 0x55f837
lea edi, [esi + 0x158000]
mov eax, dword [edi]
or eax, eax
je 0x55f8af
mov ebx, dword [edi + 4]
lea eax, [eax + esi + 0x1d9ad0]
add ebx, esi
push eax
add edi, 8
call dword [esi + 0x1d9c4c]
xchg ebp, eax
mov al, byte [edi]
inc edi
or al, al
je 0x55f864
mov ecx, edi
jns 0x55f893
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 + 0x1d9c50]
or eax, eax
je 0x55f8a9
mov dword [ebx], eax
add ebx, 4
jmp 0x55f881
call dword [esi + 0x1d9c60]
add edi, 4
lea ebx, [esi - 4]
xor eax, eax
mov al, byte [edi]
inc edi
or eax, eax
je 0x55f8e0
cmp al, 0xef
ja 0x55f8d3
add ebx, eax
mov eax, dword [ebx]
xchg ah, al
rol eax, 0x10
xchg ah, al
add eax, esi
mov dword [ebx], eax
jmp 0x55f8b5
and al, 0xf
shl eax, 0x10
mov ax, word [edi]
add edi, 2
jmp 0x55f8c2
mov ebp, dword [esi + 0x1d9c54]
lea edi, [esi - 0x1000]
mov ebx, 0x1000
push eax
push esp
push 4
push ebx
push edi
call ebp
lea eax, [edi + 0x23f]
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 0x55f914
sub esp, 0xffffff80
jmp 0x420577
Function at 0x42e410
Capabilities:
Packed with generic packer

Disassembly:
pushal
mov esi, section.UPX1
lea edi, [esi - 0x1c000]
push edi
jmp 0x42e42a
mov al, byte [esi]
inc esi
mov byte [edi], al
inc edi
add ebx, ebx
jne 0x42e431
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
jb 0x42e420
mov eax, 1
add ebx, ebx
jne 0x42e443
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc eax, eax
add ebx, ebx
jae 0x42e438
jne 0x42e454
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
jae 0x42e438
xor ecx, ecx
sub eax, 3
jb 0x42e468
shl eax, 8
mov al, byte [esi]
inc esi
xor eax, 0xffffffff
je 0x42e4da
mov ebp, eax
add ebx, ebx
jne 0x42e473
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc ecx, ecx
add ebx, ebx
jne 0x42e480
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc ecx, ecx
jne 0x42e4a4
inc ecx
add ebx, ebx
jne 0x42e490
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc ecx, ecx
add ebx, ebx
jae 0x42e485
jne 0x42e4a1
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
jae 0x42e485
add ecx, 2
cmp ebp, 0xfffff300
adc ecx, 1
lea edx, [edi + ebp]
cmp ebp, 0xfffffffc
jbe 0x42e4c4
mov al, byte [edx]
inc edx
mov byte [edi], al
inc edi
dec ecx
jne 0x42e4b5
jmp 0x42e426
mov eax, dword [edx]
add edx, 4
mov dword [edi], eax
add edi, 4
sub ecx, 4
ja 0x42e4c4
add edi, ecx
jmp 0x42e426
pop esi
mov edi, esi
mov ecx, 0xa88
mov al, byte [edi]
inc edi
sub al, 0xe8
cmp al, 1
ja 0x42e4e2
cmp byte [edi], 0x12
jne 0x42e4e2
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 0x42e4e7
lea edi, [esi + 0x2c000]
mov eax, dword [edi]
or eax, eax
je 0x42e55f
mov ebx, dword [edi + 4]
lea eax, [eax + esi + 0x33054]
add ebx, esi
push eax
add edi, 8
call dword [esi + 0x33134]
xchg ebp, eax
mov al, byte [edi]
inc edi
or al, al
je 0x42e514
mov ecx, edi
jns 0x42e543
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 + 0x3313c]
or eax, eax
je 0x42e559
mov dword [ebx], eax
add ebx, 4
jmp 0x42e531
call dword [esi + 0x33138]
mov ebp, dword [esi + 0x33140]
lea edi, [esi - 0x1000]
mov ebx, 0x1000
push eax
push esp
push 4
push ebx
push edi
call ebp
lea eax, [edi + 0x17f]
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 0x42e593
sub esp, 0xffffff80
jmp 0x41c35f

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

Disassembly:
pushal
nop
nop
nop
call 0x43200c
nop
nop
nop
pop eax
nop
nop
nop
add eax, 0x40729f
sub eax, 0x407245
nop
mov ebx, dword [eax]
nop
nop
nop
nop
mov ecx, dword [eax + 4]
nop
nop
nop
mov edx, dword [eax + 8]
nop
nop
nop
nop
nop
nop
nop
xor dword [ebx], edx
nop
nop
add ebx, 4
nop
nop
nop
nop
nop
cmp ebx, ecx
nop
nop
jl 0x432030
nop
nop
nop
nop
add eax, 0xc
nop
cmp dword [eax], 0
nop
nop
nop
nop
jne 0x43201e
nop
nop
nop
nop
nop
nop
nop
popal
nop
jmp 0x431219
Function at 0x4019b0
Capabilities:
Read .ini file

Disassembly:
sub esp, 0x8c
or ecx, 0xffffffff
xor eax, eax
lea edx, [esp + 0x28]
push ebx
push esi
push edi
mov edi, 0x40cb90
repne scasb al, byte es:[edi]
not ecx
sub edi, ecx
push str.IPAddress
mov eax, ecx
mov esi, edi
mov edi, edx
lea edx, [esp + 0x38]
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, eax
xor eax, eax
and ecx, 3
rep movsb byte es:[edi], byte [esi]
mov edi, str._asdpu.cfg
or ecx, 0xffffffff
repne scasb al, byte es:[edi]
not ecx
sub edi, ecx
mov esi, edi
mov ebx, ecx
mov edi, edx
or ecx, 0xffffffff
repne scasb al, byte es:[edi]
mov ecx, ebx
dec edi
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, ebx
lea eax, [esp + 0x10]
and ecx, 3
push eax
rep movsb byte es:[edi], byte [esi]
mov esi, dword [sym.imp.MSVCRT.dll_sprintf]
call esi
mov ecx, dword [esp + 0xa8]
lea edx, [esp + 0x28]
and ecx, 0xffff
push ecx
push str.net_d
push edx
call esi
mov ecx, dword [esp + 0xb8]
add esp, 0x14
lea eax, [esp + 0x34]
lea edx, [esp + 0x20]
push eax
push 0x14
push ecx
push 0x40ca64
lea eax, [esp + 0x1c]
push edx
push eax
call dword [sym.imp.KERNEL32.dll_GetPrivateProfileStringA]
pop edi
pop esi
mov eax, 1
pop ebx
add esp, 0x8c
ret

Function at 0x401a70
Capabilities:
Read .ini file

Disassembly:
sub esp, 0x140
or ecx, 0xffffffff
xor eax, eax
lea edx, [esp + 0x40]
push ebx
push esi
push edi
mov edi, 0x40cb90
repne scasb al, byte es:[edi]
not ecx
sub edi, ecx
mov eax, ecx
mov esi, edi
mov edi, edx
lea edx, [esp + 0x4c]
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, eax
xor eax, eax
and ecx, 3
rep movsb byte es:[edi], byte [esi]
mov edi, str._asdpu.cfg
or ecx, 0xffffffff
repne scasb al, byte es:[edi]
not ecx
sub edi, ecx
mov esi, edi
mov ebx, ecx
mov edi, edx
or ecx, 0xffffffff
repne scasb al, byte es:[edi]
mov ecx, ebx
dec edi
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, ebx
lea edx, [esp + 0xc]
and ecx, 3
rep movsb byte es:[edi], byte [esi]
mov edi, str.ReceiveIP
or ecx, 0xffffffff
repne scasb al, byte es:[edi]
not ecx
sub edi, ecx
mov eax, ecx
mov esi, edi
mov edi, edx
lea edx, [esp + 0xc]
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, eax
and ecx, 3
rep movsb byte es:[edi], byte [esi]
lea ecx, [esp + 0x4c]
push ecx
push 0
push edx
push str.IPAddress
call dword [sym.imp.KERNEL32.dll_GetPrivateProfileIntA]
pop edi
pop esi
pop ebx
add esp, 0x140
ret
Function at 0x402460
Capabilities:
Read .ini file

Disassembly:
sub esp, 0x190
push ebx
push esi
push edi
xor eax, eax
mov edi, 0x40cb90
or ecx, 0xffffffff
repne scasb al, byte es:[edi]
not ecx
sub edi, ecx
mov dword [esp + 0xc], eax
mov dword [esp + 0x14], eax
mov dword [esp + 0x18], eax
mov dword [esp + 0x10], eax
lea edx, [esp + 0x9c]
mov eax, ecx
mov esi, edi
mov edi, edx
lea edx, [esp + 0x9c]
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, eax
xor eax, eax
and ecx, 3
rep movsb byte es:[edi], byte [esi]
mov edi, str._asdpu.cfg
or ecx, 0xffffffff
repne scasb al, byte es:[edi]
not ecx
sub edi, ecx
mov esi, edi
mov ebx, ecx
mov edi, edx
or ecx, 0xffffffff
repne scasb al, byte es:[edi]
mov ecx, ebx
dec edi
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov eax, dword [esp + 0x1a0]
mov ecx, ebx
and ecx, 3
push eax
rep movsb byte es:[edi], byte [esi]
lea ecx, [esp + 0x20]
push str.Mask_d
push ecx
call dword [sym.imp.MSVCRT.dll_sprintf]
add esp, 0xc
lea edx, [esp + 0x9c]
lea eax, [esp + 0x5c]
lea ecx, [esp + 0x1c]
push edx
push 0x40
push eax
push str.255.255.255.0
push ecx
push str.IPAddress
call dword [sym.imp.KERNEL32.dll_GetPrivateProfileStringA]
lea edx, [esp + 0x10]
lea eax, [esp + 0x18]
push edx
lea ecx, [esp + 0x18]
push eax
lea edx, [esp + 0x14]
push ecx
push edx
lea eax, [esp + 0x6c]
push str._d._d._d._d
push eax
call dword [sym.imp.MSVCRT.dll_sscanf]
mov edx, dword [esp + 0x24]
xor eax, eax
mov ah, byte [esp + 0x28]
xor ecx, ecx
mov al, byte [esp + 0x30]
mov ch, byte [esp + 0x2c]
shl eax, 0x10
and ecx, 0xffff
add esp, 0x18
or eax, ecx
and edx, 0xff
pop edi
pop esi
or eax, edx
pop ebx
add esp, 0x190
ret
Function at 0x402c80
Capabilities:
Send data
Send data on socket

Disassembly:
sub esp, 0x1c
push ebx
mov ebx, dword [esp + 0x24]
push ebp
mov ebp, dword [sym.imp.KERNEL32.dll_CloseHandle]
push esi
xor ecx, ecx
push edi
mov dword [esp + 0x18], 0
mov dword [esp + 0x14], ecx
mov dword [esp + 0x10], 0x40ce80
mov edi, 0x40b6f0
mov eax, dword [edi + 4]
test eax, eax
jne 0x402dba
mov eax, dword [edi + 8]
mov edx, dword [edi + 0xc]
mov dword [esp + 0x1c], eax
mov eax, dword [edi + 0x10]
mov dword [esp + 0x24], eax
xor eax, eax
mov ax, word [ebx + 0xa]
mov dword [esp + 0x20], edx
mov edx, dword [edi + 0x14]
cmp eax, 0x1005
mov dword [esp + 0x28], edx
jg 0x402cf9
cmp eax, 0x1001
jge 0x402d09
test eax, eax
jle 0x402d00
cmp eax, 2
jle 0x402d09
mov eax, dword [0x40b020]
add eax, ecx
jmp 0x402d13
cmp eax, 0x2111
je 0x402d09
mov eax, dword [0x40b020]
add eax, ecx
jmp 0x402d13
mov edx, dword [0x40b020]
lea eax, [edx + ecx + 2]
push eax
call sub.WSOCK32.dll_htons
mov word [esp + 0x1e], ax
mov eax, dword [0x40ca50]
test eax, eax
je 0x402d2f
mov eax, dword [edi]
mov dword [esp + 0x30], eax
jmp 0x402d6b
mov ecx, dword [0x40cc50]
push ecx
push 0
push 0x1f0fff
call dword [sym.imp.KERNEL32.dll_OpenProcess]
mov esi, eax
test esi, esi
je 0x402d6b
push 2
push 1
lea edx, [esp + 0x38]
push 0x1f0fff
push edx
call dword [sym.imp.KERNEL32.dll_GetCurrentProcess]
push eax
mov eax, dword [edi]
push eax
push esi
call dword [sym.imp.KERNEL32.dll_DuplicateHandle]
push esi
call ebp
mov edx, dword [esp + 0x34]
mov eax, dword [esp + 0x30]
lea ecx, [esp + 0x1c]
push 0x10
push ecx
and edx, 0xffff
push 0
push edx
push ebx
push eax
call sub.WSOCK32.dll_sendto
cmp eax, 0xffffffff
mov eax, dword [0x40ca50]
jne 0x402da1
test eax, eax
jne 0x402dba
mov ecx, dword [esp + 0x30]
push ecx
call ebp
jmp 0x402dba
test eax, eax
jne 0x402dac
mov edx, dword [esp + 0x30]
push edx
call ebp
mov eax, dword [esp + 0x10]
mov dword [esp + 0x18], 1
inc dword [eax]
mov ecx, dword [esp + 0x14]
mov edx, dword [esp + 0x10]
add edi, 0x18
inc ecx
add edx, 0x5e
cmp edi, 0x40b720
mov dword [esp + 0x14], ecx
mov dword [esp + 0x10], edx
jl 0x402cac
mov eax, dword [esp + 0x18]
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x1c
ret
Function at 0x407110
Capabilities:
Create thread
Resume thread

Disassembly:
mov eax, dword [esp + 8]
push esi
cmp dword [eax], 0
jne 0x40712d
mov ecx, dword [esp + 8]
lea eax, [esp + 8]
push eax
push 4
push 0x40cbf8
push ecx
jmp 0x40713a
lea edx, [esp + 8]
push edx
push 4
push eax
mov eax, dword [esp + 0x14]
push eax
push 0
push 0
call dword [sym.imp.KERNEL32.dll_CreateThread]
mov esi, eax
test esi, esi
je 0x40715e
push 2
push esi
call dword [sym.imp.KERNEL32.dll_SetThreadPriority]
push esi
call dword [sym.imp.KERNEL32.dll_ResumeThread]
mov eax, esi
pop esi
ret
xor eax, eax
pop esi
ret
Function at 0x407170
Capabilities:
Read .ini file

Disassembly:
sub esp, 0xc8
lea eax, [esp]
mov word [0x40cf30], 0x400
mov word [0x40cf34], 0x1000
push ebx
push ebp
push esi
push edi
push 0x40cb90
mov ebx, 0x200
push str._s_asdpu.cfg
push eax
mov word [0x40cf38], 0x40
mov word [0x40cf3c], bx
call dword [sym.imp.MSVCRT.dll_sprintf]
add esp, 0xc
lea ecx, [esp + 0x10]
lea edx, [esp + 0x74]
push ecx
push 0x64
push edx
push 0x40b7c4
push str.Type
push str.Node
call dword [sym.imp.KERNEL32.dll_GetPrivateProfileStringA]
lea eax, [esp + 0x74]
push 0x40b7b0
push eax
call dword [sym.imp.MSVCRT.dll__strcmpi]
mov esi, dword [sym.imp.KERNEL32.dll_GetPrivateProfileIntA]
add esp, 8
test eax, eax
jne 0x40720b
mov word [0x40b740], 0
mov word [0x40cf34], 1
jmp 0x407250
lea ecx, [esp + 0x10]
mov word [0x40b740], 1
push ecx
push 0x1000
push str.AlarmFifo
push str.Node
call esi
cmp ax, 0x2000
mov word [0x40cf34], ax
jbe 0x407241
mov word [0x40cf34], 0x2000
jmp 0x407250
cmp ax, 0x80
jae 0x407250
mov word [0x40cf34], 0x80
lea edx, [esp + 0x10]
push edx
push 0x400
push str.RtdbFifo
push str.Node
call esi
cmp ax, 0x800
mov word [0x40cf30], ax
mov edi, 0x20
jbe 0x407282
mov word [0x40cf30], 0x800
jmp 0x40728e
cmp ax, di
jae 0x40728e
mov word [0x40cf30], di
lea eax, [esp + 0x10]
push eax
push 0x40
push str.PTPFifo
push str.Node
call esi
cmp ax, bx
mov word [0x40cf38], ax
jbe 0x4072b5
mov word [0x40cf38], bx
jmp 0x4072c1
cmp ax, di
jae 0x4072c1
mov word [0x40cf38], di
mov ecx, dword [0x40cf38]
mov edx, dword [0x40cf30]
mov eax, dword [0x40cf3c]
and ecx, 0xffff
and edx, 0xffff
and eax, 0xffff
add ecx, edx
push str.brdcastmem1
lea ecx, [eax + ecx*4]
mov eax, dword [0x40cf34]
and eax, 0xffff
mov edx, eax
shl edx, 4
shl ecx, 7
add edx, eax
lea ebx, [ecx + edx*4]
push ebx
push 0
push 4
push 0
push 0xffffffffffffffff
call dword [sym.imp.KERNEL32.dll_CreateFileMappingA]
test eax, eax
mov esi, dword [esp + 0xdc]
mov dword [esi], eax
jne 0x407341
push eax
push str.createfilemapping
push str.apply_socket_share_error
push eax
call dword [sym.imp.USER32.dll_MessageBoxA]
pop edi
pop esi
pop ebp
xor eax, eax
pop ebx
add esp, 0xc8
ret 8
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov edx, dword [esi]
xor ecx, ecx
push 0
cmp eax, 0xb7
push 0
push 0
setne cl
push 2
push edx
mov ebp, ecx
call dword [sym.imp.KERNEL32.dll_MapViewOfFile]
mov edi, eax
mov edx, dword [esp + 0xe0]
test edi, edi
mov dword [edx], edi
jne 0x407394
push eax
push str.mapviewoffile
push str.apply_socket_share_error
push eax
call dword [sym.imp.USER32.dll_MessageBoxA]
pop edi
pop esi
pop ebp
xor eax, eax
pop ebx
add esp, 0xc8
ret 8
test ebp, ebp
je 0x4073aa
mov ecx, ebx
xor eax, eax
mov esi, ecx
shr ecx, 2
rep stosd dword es:[edi], eax
mov ecx, esi
and ecx, 3
rep stosb byte es:[edi], al
mov eax, dword [0x40cf30]
mov ecx, dword [edx]
and eax, 0xffff
mov dword [0x40cbec], ecx
shl eax, 9
add eax, ecx
mov ecx, dword [0x40cf34]
and ecx, 0xffff
mov dword [0x40cbe8], eax
mov edx, ecx
pop edi
shl edx, 4
add edx, ecx
mov ecx, dword [0x40cf38]
and ecx, 0xffff
pop esi
lea eax, [eax + edx*4]
pop ebp
shl ecx, 9
add ecx, eax
mov dword [0x40cbe4], eax
mov dword [0x40cbe0], ecx
mov eax, 1
pop ebx
add esp, 0xc8
ret 8
Function at 0x407410
Capabilities:
Initialize winsock library
Read .ini file

Disassembly:
mov eax, dword [esp + 4]
sub esp, 0x1e0
push ebx
xor ebx, ebx
sub eax, ebx
je 0x407481
dec eax
jne 0x4075c3
call sub.WSOCK32.dll_WSACleanup
mov eax, dword [0x40cf50]
push eax
call dword [sym.imp.KERNEL32.dll_UnmapViewOfFile]
mov ecx, dword [0x40cf54]
push ecx
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov edx, dword [0x40cbf4]
push edx
call dword [sym.imp.USER32.dll_DestroyWindow]
dec word [0x40cf42]
call dword [sym.imp.KERNEL32.dll_GetCurrentProcessId]
mov ecx, dword [0x40ce6c]
cmp ecx, eax
mov eax, 1
jne 0x4075c8
mov word [0x40cf44], ax
pop ebx
add esp, 0x1e0
ret
inc word [0x40cf42]
push esi
push edi
push 0x40cb90
call sub.XAPIDB.dll_GetWorkPath
mov edi, str.gtw
or ecx, 0xffffffff
xor eax, eax
repne scasb al, byte es:[edi]
not ecx
sub edi, ecx
mov esi, edi
mov edx, ecx
mov edi, 0x40cb90
or ecx, 0xffffffff
repne scasb al, byte es:[edi]
mov ecx, edx
dec edi
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov eax, dword [0x40b6e8]
mov ecx, edx
and ecx, 3
cmp eax, 1
rep movsb byte es:[edi], byte [esi]
mov esi, dword [sym.imp.MSVCRT.dll_sprintf]
jne 0x40755a
push 0x40cb90
lea eax, [esp + 0x10]
push str._s_asdpu.cfg
push eax
call esi
add esp, 0xc
lea ecx, [esp + 0xc]
push ecx
push 0x50
push 0x40cbfc
push 0x40ca64
push str.AppPath
push str.DefAppPath
call dword [sym.imp.KERNEL32.dll_GetPrivateProfileStringA]
call dword [sym.imp.KERNEL32.dll_GetCurrentProcessId]
mov dword [0x40ce6c], eax
mov dword [0x40ce5c], ebx
mov dword [0x40ce58], ebx
call fcn.004070d0
mov ecx, 0x40
xor eax, eax
mov edi, 0x40cc54
xor edx, edx
rep stosd dword es:[edi], eax
mov ecx, 0x40
mov edi, 0x40cd54
mov dword [0x40ce60], edx
rep stosd dword es:[edi], eax
mov word [0x40ce64], dx
call fcn.00401260
mov dword [0x40b6e8], ebx
push 0x40cf50
push 0x40cf54
call fcn.00407170
lea eax, [esp + 0x5c]
push eax
push 0x101
call sub.WSOCK32.dll_WSAStartup
cmp eax, ebx
je 0x40759e
push eax
lea ecx, [esp + 0x10]
push str._d_is_the_err
push ecx
call esi
add esp, 0xc
lea edx, [esp + 0xc]
push ebx
push str.Error
push edx
push ebx
call dword [sym.imp.USER32.dll_MessageBoxA]
mov eax, dword [0x40cc4c]
pop edi
cmp eax, ebx
mov dword [0x40cbf8], ebx
pop esi
jne 0x4075c3
mov dword [0x40b70c], 0xffffffff
mov dword [0x40b6f4], 0xffffffff
mov eax, 1
pop ebx
add esp, 0x1e0
ret
Function at 0x4076a0
Capabilities:
Shutdown system

Disassembly:
sub esp, 0x14
lea eax, [esp]
push eax
push 0x28
call dword [sym.imp.KERNEL32.dll_GetCurrentProcess]
push eax
call dword [sym.imp.ADVAPI32.dll_OpenProcessToken]
test eax, eax
je 0x40771d
lea ecx, [esp + 8]
push ecx
push str.SeShutdownPrivilege
push 0
call dword [sym.imp.ADVAPI32.dll_LookupPrivilegeValueA]
mov eax, dword [esp]
push 0
push 0
lea edx, [esp + 0xc]
push 0
push edx
push 0
push eax
mov dword [esp + 0x1c], 1
mov dword [esp + 0x28], 2
call dword [sym.imp.ADVAPI32.dll_AdjustTokenPrivileges]
call dword [sym.imp.KERNEL32.dll_GetLastError]
test eax, eax
jne 0x40771d
push 1
push eax
push 0x14
push str.Click_on_the_main_window_and_press_the_Escape_key_to_cancel_shutdown.
push eax
call dword [sym.imp.ADVAPI32.dll_InitiateSystemShutdownA]
test eax, eax
je 0x40771d
mov eax, 1
add esp, 0x14
ret
push 0x30
push str.Warning
push str.Register_han_been_modified_Please_restart_the_computer
push 0
call dword [sym.imp.USER32.dll_MessageBoxA]
xor eax, eax
add esp, 0x14
ret
Function at 0x401c30
Capabilities:
Check if file exists

Disassembly:
push ebp
mov ebp, esp
push ebx
push edi
push esi
mov ebx, dword [ebp + 8]
cmp dword [ecx], ebx
je 0x401c72
mov esi, ecx
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov ecx, esi
mov edi, eax
call fcn.00401c80
lea eax, [ebx + 1]
cmp eax, 2
jb 0x401c6b
mov dword [esi], ebx
call fcn.00426b80
push eax
push dword [ebp + 4]
push esi
push ebx
call fcn.00438100
add esp, 0x10
push edi
call dword [sym.imp.KERNEL32.dll_SetLastError]
pop esi
pop edi
pop ebx
pop ebp
ret 4
Function at 0x403b28
Capabilities:
Encode data using xor
Hash data using murmur2

Disassembly:
push ebp
mov ebp, esp
push ebx
push edi
push esi
sub esp, 8
mov eax, dword [ebp + 8]
movzx ecx, byte [eax + 0xb]
mov esi, dword [eax]
mov edi, dword [eax + 4]
mov edx, ecx
add edi, esi
add edx, eax
test cl, cl
mov ecx, 4
cmovs edx, edi
cmovs eax, esi
sub edx, eax
cmp edx, ecx
jb 0x403b9e
mov esi, 0xfffffffc
mov ebx, eax
lea ecx, [edx + esi]
and esi, ecx
mov dword [ebp - 0x14], ecx
mov ecx, edx
mov dword [ebp - 0x10], esi
imul edi, dword [ebx], 0x5bd1e995
imul ecx, ecx, 0x5bd1e995
add edx, 0xfffffffc
add ebx, 4
mov esi, edi
shr esi, 0x18
xor esi, edi
imul esi, esi, 0x5bd1e995
xor ecx, esi
cmp edx, 3
ja 0x403b6a
mov esi, dword [ebp - 0x10]
mov edx, dword [ebp - 0x14]
lea eax, [esi + eax + 4]
sub edx, esi
jmp 0x403ba0
mov ecx, edx
cmp edx, 1
je 0x403bc1
cmp edx, 2
je 0x403bb8
cmp edx, 3
jne 0x403bcc
movzx edx, byte [eax + 2]
shl edx, 0x10
xor ecx, edx
movzx edx, byte [eax + 1]
shl edx, 8
xor ecx, edx
movzx eax, byte [eax]
xor eax, ecx
imul ecx, eax, 0x5bd1e995
mov eax, ecx
shr eax, 0xd
xor eax, ecx
imul ecx, eax, 0x5bd1e995
mov eax, ecx
shr eax, 0xf
xor eax, ecx
add esp, 8
pop esi
pop edi
pop ebx
pop ebp
ret 4