joyce8/EMBER2024-capa huggingface dataset:
Function at 0x50f110
Capabilities:
Get geographical location

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffe00
push ebx
push esi
push edi
mov esi, dword [ebp + 0xc]
mov ebx, dword [ebp + 8]
push pe_nt_image_headers32
lea eax, [ebp - 0x200]
push eax
push 0x1001
mov edx, dword [ebx + 4]
push edx
call sub.KERNEL32.DLL_GetLocaleInfoA
push str._._n
lea ecx, [ebp - 0x200]
push ecx
call fcn.0050a008
add esp, 8
lea eax, [ebp - 0x200]
push eax
call fcn.0050a120
pop ecx
mov edx, pe_nt_image_headers32
sub edx, eax
push edx
lea ecx, [ebp - 0x200]
push ecx
call fcn.0050a120
pop ecx
lea edx, [ebp - 0x200]
add eax, edx
push eax
push 0x1002
mov eax, dword [ebx + 4]
push eax
call sub.KERNEL32.DLL_GetLocaleInfoA
push 0x66a0c9
lea ecx, [ebp - 0x200]
push ecx
call fcn.0050a008
add esp, 8
push 0xa
lea eax, [ebp - 0x200]
push eax
call fcn.0050a120
pop ecx
lea edx, [ebp - 0x200]
add eax, edx
push eax
mov ecx, dword [ebx]
push ecx
call fcn.0051043c
add esp, 0xc
cmp dword [ebx + 0x24], 0
jne 0x50f221
push esi
call fcn.0050a120
pop ecx
mov edi, eax
lea eax, [ebp - 0x200]
push eax
call fcn.0050a120
pop ecx
add edi, eax
add edi, 3
push edi
call fcn.00488d5c
pop ecx
mov edi, eax
mov dword [ebx + 0x24], edi
test edi, edi
jne 0x50f1f8
xor eax, eax
jmp 0x50f2a8
push esi
call fcn.0050a120
pop ecx
push eax
lea edx, [ebp - 0x200]
push edx
call fcn.0050a120
pop ecx
pop ecx
add ecx, eax
add ecx, 3
push ecx
push 0
push edi
call fcn.00509f60
add esp, 0xc
jmp 0x50f261
mov edi, dword [ebx + 0x24]
push edi
call fcn.0050a120
pop ecx
push eax
push esi
call fcn.0050a120
pop ecx
pop edx
add edx, eax
push edx
lea eax, [ebp - 0x200]
push eax
call fcn.0050a120
pop ecx
pop ecx
add ecx, eax
add ecx, 3
push ecx
push edi
call fcn.0048a0bc
add esp, 8
mov dword [ebx + 0x24], eax
cmp dword [ebx + 0x24], 0
jne 0x50f261
xor eax, eax
jmp 0x50f2a8
push esi
mov edx, dword [ebx + 0x24]
push edx
call fcn.0050a008
add esp, 8
push 0x66a0cb
mov ecx, dword [ebx + 0x24]
push ecx
call fcn.0050a008
add esp, 8
lea eax, [ebp - 0x200]
push eax
mov edx, dword [ebx + 0x24]
push edx
call fcn.0050a008
add esp, 8
push 0x66a0cd
mov ecx, dword [ebx + 0x24]
push ecx
call fcn.0050a008
add esp, 8
mov eax, 1
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret

Function at 0x512d80
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
push ecx
push ebx
push esi
push edi
mov edi, dword [ebp + 0xc]
push 0
push 0x80
push 2
push 0
push 0
push 0xc0000000
mov eax, dword [ebp + 8]
push eax
call sub.KERNEL32.DLL_CreateFileA
mov ebx, eax
test eax, eax
jne 0x512dad
jmp 0x512de4
call fcn.00512d30
mov esi, eax
lea eax, [ebp - 4]
push 0
push eax
push esi
call fcn.0050a120
pop ecx
push eax
push esi
push ebx
call sub.KERNEL32.DLL_WriteFile
push 0
lea edx, [ebp - 4]
push edx
push edi
call fcn.0050a120
pop ecx
push eax
push edi
push ebx
call sub.KERNEL32.DLL_WriteFile
push ebx
call sub.KERNEL32.DLL_CloseHandle
pop edi
pop esi
pop ebx
pop ecx
pop ebp
ret
Function at 0x512e44
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
add esp, 0xffffff7c
cmp dword [0x66a7f4], 0
push ebx
push esi
mov esi, dword [ebp + 8]
jne 0x512f1e
cmp dword [0x66a7f0], 0
jne 0x512f1e
cmp dword [0x66aa04], 0
je 0x512ed8
push 0x80
lea eax, [ebp - 0x84]
push eax
push 0
call sub.KERNEL32.DLL_GetModuleFileNameA
push 0x5c
lea edx, [ebp - 0x84]
push edx
call fcn.00512c30
add esp, 8
mov ebx, eax
test eax, eax
jne 0x512ebe
push 0x3a
lea edx, [ebp - 0x84]
push edx
call fcn.00512c30
add esp, 8
mov ebx, eax
test eax, eax
jne 0x512ebe
lea ebx, [ebp - 0x84]
jmp 0x512ebf
inc ebx
call fcn.00512e00
or eax, 0x10010
push eax
push ebx
push esi
push 0
call sub.USER32.DLL_MessageBoxA
jmp 0x512f59
push 0xfffffffffffffff4
call sub.KERNEL32.DLL_GetStdHandle
mov ebx, eax
lea eax, [ebp - 4]
push 0
push eax
push 2
push 0x66a7f8
push ebx
call sub.KERNEL32.DLL_WriteFile
push 0
lea edx, [ebp - 4]
push edx
push esi
call fcn.0050a120
pop ecx
push eax
push esi
push ebx
call sub.KERNEL32.DLL_WriteFile
push 0
lea ecx, [ebp - 4]
push ecx
push 2
push 0x66a7fb
push ebx
call sub.KERNEL32.DLL_WriteFile
jmp 0x512f59
cmp dword [0x66a7f0], 0
je 0x512f38
cmp dword [0x66a7f0], 0xffffffff
je 0x512f59
push esi
call dword [0x66a7f0]
pop ecx
mov eax, dword [0x66a7f4]
test eax, eax
je 0x512f59
cmp dword [0x66a7f4], 0xffffffff
je 0x512f59
cmp byte [eax], 0
je 0x512f59
push esi
push eax
call fcn.00512d80
add esp, 8
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x513a90
Capabilities:
Query environment variable

Disassembly:
push ebx
push esi
push edi
push ebp
push ecx
cmp dword [0x6763dc], 0
jne 0x513b11
cmp dword [0x6763fc], 0
jne 0x513ac0
call sub.KERNEL32.DLL_GetEnvironmentStrings
mov dword [0x6763fc], eax
test eax, eax
jne 0x513ac0
push str.GetEnvironmentStrings_failed
call fcn.00512f70
pop ecx
xor ebp, ebp
xor esi, esi
mov ebx, dword [0x6763fc]
jmp 0x513ad4
lea eax, [edi + 1]
inc esi
add ebp, eax
add ebx, eax
push ebx
call fcn.0050a120
pop ecx
mov edi, eax
test eax, eax
jne 0x513acc
lea edi, [ebp + 1]
push edi
call fcn.00488d5c
pop ecx
mov ebx, eax
mov dword [0x6763e0], ebx
test ebx, ebx
jne 0x513afe
xor eax, eax
jmp 0x513bd4
push edi
mov edx, dword [0x6763fc]
push edx
push ebx
call fcn.00509ecc
add esp, 0xc
jmp 0x513b31
xor esi, esi
mov ebx, dword [0x6763dc]
jmp 0x513b2b
push eax
call fcn.0050a120
pop ecx
test eax, eax
jne 0x513b27
dec esi
inc esi
add ebx, 4
mov eax, dword [ebx]
test eax, eax
jne 0x513b1b
lea ebx, [esi + 4]
push 4
mov dword [0x6763e4], ebx
inc ebx
push ebx
call fcn.00489868
add esp, 8
test eax, eax
mov dword [esp], eax
jne 0x513b54
xor eax, eax
jmp 0x513bd4
cmp dword [0x6763dc], 0
jne 0x513b85
xor esi, esi
mov ebx, dword [0x6763e0]
mov eax, dword [esp]
mov ebp, eax
jmp 0x513b76
mov dword [ebp], ebx
add ebp, 4
inc esi
inc edi
add ebx, edi
push ebx
call fcn.0050a120
pop ecx
mov edi, eax
test eax, eax
jne 0x513b6c
jmp 0x513bb6
xor esi, esi
mov ebx, dword [0x6763dc]
mov eax, dword [esp]
mov edi, eax
jmp 0x513bb0
push eax
call fcn.0050a120
pop ecx
test eax, eax
je 0x513ba5
mov eax, dword [ebx]
mov dword [edi], eax
jmp 0x513ba9
dec esi
add edi, 0xfffffffc
add edi, 4
inc esi
add ebx, 4
mov eax, dword [ebx]
test eax, eax
jne 0x513b94
mov eax, dword [0x6763dc]
test eax, eax
je 0x513bc6
push eax
call fcn.004890a0
pop ecx
mov edx, dword [esp]
mov eax, 1
mov dword [0x6763dc], edx
pop edx
pop ebp
pop edi
pop esi
pop ebx
ret
Function at 0x43ced0
Capabilities:
Packed with generic packer

Disassembly:
pushal
mov esi, section.UPX1
lea edi, [esi - 0x34000]
push edi
or ebp, 0xffffffff
jmp 0x43cef2
mov al, byte [esi]
inc esi
mov byte [edi], al
inc edi
add ebx, ebx
jne 0x43cef9
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
jb 0x43cee8
mov eax, 1
add ebx, ebx
jne 0x43cf0b
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc eax, eax
add ebx, ebx
jae 0x43cf00
jne 0x43cf1c
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
jae 0x43cf00
xor ecx, ecx
sub eax, 3
jb 0x43cf30
shl eax, 8
mov al, byte [esi]
inc esi
xor eax, 0xffffffff
je 0x43cfa2
mov ebp, eax
add ebx, ebx
jne 0x43cf3b
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc ecx, ecx
add ebx, ebx
jne 0x43cf48
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc ecx, ecx
jne 0x43cf6c
inc ecx
add ebx, ebx
jne 0x43cf58
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc ecx, ecx
add ebx, ebx
jae 0x43cf4d
jne 0x43cf69
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
jae 0x43cf4d
add ecx, 2
cmp ebp, 0xfffff300
adc ecx, 1
lea edx, [edi + ebp]
cmp ebp, 0xfffffffc
jbe 0x43cf8c
mov al, byte [edx]
inc edx
mov byte [edi], al
inc edi
dec ecx
jne 0x43cf7d
jmp 0x43ceee
mov eax, dword [edx]
add edx, 4
mov dword [edi], eax
add edi, 4
sub ecx, 4
ja 0x43cf8c
add edi, ecx
jmp 0x43ceee
pop esi
mov edi, esi
mov ecx, 0x59
mov al, byte [edi]
inc edi
sub al, 0xe8
cmp al, 1
ja 0x43cfaa
cmp byte [edi], 2
jne 0x43cfaa
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 0x43cfaf
lea edi, [esi + 0x3a000]
mov eax, dword [edi]
or eax, eax
je 0x43d027
mov ebx, dword [edi + 4]
lea eax, [eax + esi + 0x3d970]
add ebx, esi
push eax
add edi, 8
call dword [esi + 0x3d9ac]
xchg ebp, eax
mov al, byte [edi]
inc edi
or al, al
je 0x43cfdc
mov ecx, edi
jns 0x43d00b
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 + 0x3d9b0]
or eax, eax
je 0x43d021
mov dword [ebx], eax
add ebx, 4
jmp 0x43cff9
call dword [esi + 0x3d9b8]
mov ebp, dword [esi + 0x3d9b4]
lea edi, [esi - 0x1000]
mov ebx, 0x1000
push eax
push esp
push 4
push ebx
push edi
call ebp
lea eax, [edi + 0x1d7]
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 0x43d05b
sub esp, 0xffffff80
jmp 0x401694

Function at 0x438c9a
Capabilities:
Encode data using xor

Disassembly:
sub esp, 4
mov dword [esp], 0x438a14
pop esi
mov ebx, ebx
sub ecx, ecx
call fcn.00438cd3
sub ebx, 1
xor dword [edx], esi
and ebx, ebx
sub esp, 4
mov dword [esp], ebx
pop ecx
inc edx
mov ecx, 0xb139b5b8
cmp edx, edi
jne fcn.00438c9a
sub ebx, ebx
ret
Function at 0x43ebf4
Capabilities:
Execute anti-debugging instructions

Disassembly:
mov dl, ah
mov edx, 0x3d96746a
mov word [esp], cx
bswap edx
jmp 0x43ec07
pop word [esp]
lea esp, [esp + 2]
jmp 0x43eca5
add al, 0xfd
ror dx, cl
jae 0x43ec7b
inc dx
jmp 0x43ec65
lea edx, reloc.mscoree.dll__CorExeMain
mov dx, 0x9ab3
clc
jmp 0x43ec63
lea edx, reloc.mscoree.dll__CorExeMain
mov dx, 0x9ab3
clc
jmp 0x43ec2b
stc
neg dh
mov dl, bh
jmp 0x43ec8a
inc dx
stc
neg dh
mov dl, bh
dec dx
jmp 0x43ecc7
dec dx
jmp 0x43ecc7
mov edx, 0x285ef95b
call fcn.0043ed3d
push ecx
fimul word [ebx + ebp - 0x1a]
push edi
mov eax, dword [reloc.mscoree.dll__CorExeMain]
test byte [esi - 0x2d088cfc], dh
add al, 0x73
not edx
btr dx, bx
jge 0x43ec58
jl 0x43ec41
mov edx, 0x285ef95b
jmp 0x43ec93
neg al
push ax
rol dx, 3
jl 0x43ec8e
jge 0x43ecb1
Function at 0x43ecd3
Capabilities:
Execute anti-debugging instructions

Disassembly:
add edx, 0xfdcfbdd7
jmp 0x43f091
lea esp, [esp + 2]
mov edx, 0x7fca64ab
jmp 0x43ed26
neg al
shl edx, cl
jge 0x43ed49
setnp dh
not dx
seto dh
jmp 0x43ed58
mov dx, cx
lea esp, [esp + 2]
jmp 0x43ed10
setnp dh
jmp 0x43ed52
not dx
seto dh
add bl, al
jmp 0x43ee73
jae 0x43eec0
xchg dh, dl
mov al, ch
call fcn.0043edc0
mov dx, word [esp]
jmp 0x43eee0
mov ah, dh
lea eax, [esi*4]
btr eax, ebx
jp 0x43ee7e
mov dx, word [esp]
xchg ah, dl
mov ah, al
mov dl, byte [esp]
jmp 0x43eeca
xchg dh, dl
mov al, ch
dec eax
dec dh
dec esi
jmp 0x43ee94
neg cl
sub esp, 2
jnp 0x43ef08
rdtsc
lea eax, [ecx + esi]
mov byte [esp], bh
jmp 0x43ef22
xchg ah, dl
mov ah, al
mov dl, byte [esp]
jmp 0x43eeca
lea eax, [ecx + esi]
mov byte [esp], bh
mov eax, 0x4b02550b
xchg dh, ah
lea esp, [esp + 2]
jmp 0x43ef0c
rdtsc
jmp 0x43eee9
rol cl, 0
je 0x43ef2b
pushal
call 0x43efd5
test al, 0x2d
mov ebp, 0xbc8537c4
invalid
mov eax, 0x4b02550b
xchg dh, ah
jmp 0x43eef6
pushal
mov dword [esp + 9], ebp
btc eax, edx
inc edx
mov ah, 0xb5
bt dx, bx
jmp 0x43f009
lea esp, [esp + 3]
jmp 0x43f075
inc ah
lea esp, [esp + 3]
jmp 0x43f075
mov eax, dword [esp + 0xd]
sub esp, 0x13
jl 0x43eff0
inc ah
jmp 0x43efda
clc
jnp 0x43f04e
xchg ah, dl
setle dl
shr eax, cl
setge dh
xchg edx, eax
jmp 0x43f0a7
xor cl, 0xbc
mov dh, 0x69
jmp 0x43f016
mov dh, 0x93
btc ax, bx
je 0x43f02c
jne 0x43f02c
xchg ah, dl
setle dl
jmp 0x43f059
shr eax, cl
setge dh
xchg edx, eax
jmp 0x43f0a7
lea esp, [esp + 0x30]
add cl, 0x6c
lea edx, [eax + esi]
bswap eax
rdtsc
jmp 0x43f044
lea esp, [esp + 2]
mov edx, ecx
xchg al, ah
not al
jmp 0x43f0d2
mov ax, word [esp]
sub esp, 0x11
jno 0x43f0bc
lea esp, [esp + 0xe]
jmp 0x43f110
rol cl, 0
lea eax, [ebp + ebp]
lea eax, [edi*4]
push edi
lea esp, [esp + 2]
jmp 0x43f085
jmp 0x43f134
shl edx, 2
mov eax, 0x21274c0d
mov ax, word [esp]
jmp 0x43e886
mov word [esp], sp
lea esp, [esp + 3]
jmp 0x43f140
lea esp, [esp + 0xe]
mov word [esp], sp
lea esp, [esp + 3]
mov edx, dword [edx + reloc.mscoree.dll__CorExeMain]
mov ax, si
call fcn.0043f11a
or byte [edi], 0x9f
les ecx, [edx - 0x7839743d]
push esp
and al, 4
mov ax, word [esp]
jmp 0x43f17c
mov ah, bl
bt ax, cx
neg ah
call 0x43f18a
fdivp st(7)
je 0x43f1b1
or dl, al
or al, 0
xor byte [ecx + 0x1fab5839], ch
push edx
retf 0x3f58
bsr eax, eax
js 0x43f1e1
pushfd
mov al, ah
jmp 0x43f1cb
mov esp, ebp
mov eax, 0x3aa901c7
neg ax
jne 0x43f1e6
je 0x43f21b
push cs
xchg edx, eax
add byte [edi - 0x6e], ah
push ebx
xchg ebx, eax
or bl, byte [edx + ecx*4 - 0x11a143c]
invalid
pushfd
mov al, ah
jmp 0x43f1cb
inc ah
jmp 0x43f205
push edx
ret
inc ah
jmp 0x43f205

Function at 0x43ed3d
Capabilities:
Execute anti-debugging instructions

Disassembly:
lea esp, [esp + 2]
jmp 0x43ed05
lea esp, [esp + 2]
lea esp, [esp + 4]
not al
call fcn.0043ecd3
not edx
mov edx, dword [esp + 1]
dec dh
jp 0x43ed01
jnp 0x43ece9

Function at 0x44ed53
Capabilities:
Hash data with md5

Disassembly:
jmp fcn.0044f608
jmp 0x432599
push dword [esp + 1]
pop di
lea esp, [esp + 2]
mov edi, dword [esp + 0xc]
lea esp, [esp + 0x10]
jmp 0x4325fb
Function at 0x4e801e
Capabilities:
Check for peb beingdebugged flag

Disassembly:
jmp 0x4e601b
call int.004e6020
call fcn.004e7fdd
sub esp, 4
call fcn.004e7fe9
lea esp, [esp + 4]
push eax
call fcn.004e98d1
add ch, byte [ecx - 0x19]
ja 0x4e7fd3
loope 0x4e7ffe
xchg ecx, eax
sbb byte [esi - 0xa08e717], cl
in al, 0x17
jle 0x4e8017
call 0x5cd77c27
and al, 4
je 0x4e8024
add ebx, ebp
and byte [ebp - 0x14b1d8cc], al
call 0x4e80f5
add bl, ch
push edi
enter 0xffffffffffffc959, 0xffffffffffffffa8
pop ebx
mov al, 0x2a
call 0x4e800e
jmp 0x4e8067
mov edx, 0x1dba4f28
sbb esi, dword [edx - 0x18]
invalid
in al, 0xff
invalid
and al, 2
mov dword [esp + 0x3c], esi
mov dword [esp + 0x38], edi
lea esp, [esp + 0x38]
mov eax, dword fs:[0x30]
jmp 0x4e807f
mov eax, dword [eax + 8]
push eax
jmp 0x4e8009
pop eax
sub eax, 0xe800e
jmp 0x4e80a2
mov eax, dword [eax + 0xc]
mov eax, dword [eax + 0x1c]
mov eax, dword [eax]
jmp 0x4e8061
push eax
jmp 0x4e43f2
Function at 0x4015a0
Capabilities:
Check os version

Disassembly:
sub esp, 0x94
push edi
mov ecx, 0x25
xor eax, eax
lea edi, [esp + 4]
rep stosd dword es:[edi], eax
lea eax, [esp + 4]
mov dword [esp + 4], 0x94
push eax
call dword [sym.imp.KERNEL32.dll_GetVersionExA]
test eax, eax
pop edi
je 0x401627
mov eax, dword [esp + 0x10]
mov ecx, 2
sub eax, ecx
je 0x4015ec
mov word [0x45fe00], cx
call fcn.00404980
add esp, 0x94
ret
mov eax, dword [esp + 4]
cmp eax, 5
jne 0x40160a
mov edx, dword [esp + 8]
mov eax, 1
cmp edx, eax
jb 0x4015d9
mov word [0x45fe00], ax
jmp 0x401618
cmp eax, 6
jb 0x4015d9
mov word [0x45fe00], 1
call fcn.004012f0
call fcn.00401480
call fcn.00404980
add esp, 0x94
ret

Function at 0x402180
Capabilities:
Contain obfuscated stackstrings

Disassembly:
sub esp, 0x10
mov cl, 0x65
mov al, 0x72
push esi
xor esi, esi
mov byte [esp + 4], 0x54
mov byte [esp + 5], cl
mov byte [esp + 6], al
mov byte [esp + 7], 0x6d
mov byte [esp + 8], 0x69
mov byte [esp + 9], 0x6e
mov byte [esp + 0xa], 0x61
mov byte [esp + 0xb], 0x6c
mov byte [esp + 0xc], 0x20
mov byte [esp + 0xd], 0x53
mov byte [esp + 0xe], cl
mov byte [esp + 0xf], al
mov byte [esp + 0x10], 0x76
mov byte [esp + 0x11], cl
mov byte [esp + 0x12], al
mov byte [esp + 0x13], 0
call dword [sym.imp.KERNEL32.dll_GetVersion]
test eax, 0x80000000
jne 0x402209
cmp al, 4
jbe 0x4021f7
lea eax, [esp + 4]
push eax
call fcn.00402210
add esp, 4
pop esi
add esp, 0x10
ret
lea ecx, [esp + 4]
push ecx
call fcn.00402210
add esp, 4
pop esi
add esp, 0x10
ret
mov eax, esi
pop esi
add esp, 0x10
ret
Function at 0x402210
Capabilities:
Query or enumerate registry value

Disassembly:
sub esp, 0x10
push ebx
push ebp
push esi
lea eax, [esp + 0xc]
push edi
push eax
xor ebp, ebp
xor ebx, ebx
push str.SystemCurrentControlSetControlProductOptions
push reloc.WSOCK32.dll_bind
mov dword [esp + 0x28], ebx
mov dword [esp + 0x1c], ebp
mov dword [esp + 0x24], ebp
mov dword [esp + 0x20], ebp
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyA]
test eax, eax
jne 0x4022e5
mov eax, dword [esp + 0x10]
mov esi, dword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
lea ecx, [esp + 0x14]
lea edx, [esp + 0x18]
push ecx
push ebp
push edx
push ebp
push str.ProductSuite
push eax
call esi
test eax, eax
jne 0x4022e5
mov eax, dword [esp + 0x14]
cmp eax, ebp
je 0x4022e5
push eax
push 0x40
call dword [sym.imp.KERNEL32.dll_LocalAlloc]
mov edi, eax
cmp edi, ebp
je 0x4022e5
mov eax, dword [esp + 0x10]
lea ecx, [esp + 0x14]
push ecx
lea edx, [esp + 0x1c]
push edi
push edx
push ebp
push str.ProductSuite
push eax
call esi
test eax, eax
jne 0x4022d8
cmp dword [esp + 0x18], 7
jne 0x4022d8
mov al, byte [edi]
mov esi, edi
test al, al
je 0x4022d8
mov ebp, dword [esp + 0x24]
mov ebx, dword [sym.imp.KERNEL32.dll_lstrcmpA]
push ebp
push esi
call ebx
test eax, eax
je 0x4022d0
push esi
call dword [sym.imp.KERNEL32.dll_lstrlenA]
lea esi, [esi + eax + 1]
cmp byte [esi], 0
jne 0x4022b6
jmp 0x4022d8
mov dword [esp + 0x1c], 1
push edi
call dword [sym.imp.KERNEL32.dll_LocalFree]
mov ebx, dword [esp + 0x1c]
xor ebp, ebp
mov eax, dword [esp + 0x10]
cmp eax, ebp
je 0x4022f4
push eax
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
pop edi
pop esi
mov eax, ebx
pop ebp
pop ebx
add esp, 0x10
ret

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

Disassembly:
sub esp, 0x14
push esi
push 0x4e8
push 5
push 6
mov dword [esp + 0x10], 0x10
call fcn.00402f50
mov esi, eax
add esp, 0xc
cmp esi, 0xffffffff
je 0x402ac4
mov edx, dword [esp + 4]
push ebx
mov ecx, edx
push edi
mov ebx, ecx
xor eax, eax
lea edi, [esp + 0x10]
push edx
shr ecx, 2
rep stosd dword es:[edi], eax
mov ecx, ebx
and ecx, 3
rep stosb byte es:[edi], al
lea eax, [esp + 0x14]
mov word [esp + 0x14], 6
push eax
push esi
call sub.WSOCK32.dll_bind
pop edi
cmp eax, 0xffffffff
pop ebx
je 0x402ac4
lea ecx, [esp + 4]
lea edx, [esp + 8]
push ecx
push edx
push esi
call sub.WSOCK32.dll_getsockname
cmp eax, 0xffffffff
je 0x402ac4
lea eax, [esp + 8]
push eax
call fcn.004029a0
mov ecx, dword [esp + 0x20]
push eax
push ecx
call fcn.00430b40
add esp, 0xc
push esi
call sub.WSOCK32.dll_closesocket
xor eax, eax
pop esi
add esp, 0x14
ret
mov edx, dword [esp + 0x1c]
push str.00_00_00_00_FF_FF_FF_FF_FF_FF
push edx
call fcn.00430b40
add esp, 8
mov eax, 1
pop esi
add esp, 0x14
ret
Function at 0x406d20
Capabilities:
Get session user name

Disassembly:
sub esp, 0x4c8
push esi
lea eax, [esp + 8]
push edi
lea ecx, [esp + 0x10]
push eax
push ecx
mov dword [esp + 0x14], 0x40
call dword [sym.imp.ADVAPI32.dll_GetUserNameA]
cmp eax, 1
jne 0x406db1
lea edi, [esp + 0x10]
or ecx, 0xffffffff
xor eax, eax
lea edx, [esp + 0xd0]
repne scasb al, byte es:[edi]
not ecx
sub edi, ecx
push 0x40
mov eax, ecx
mov esi, edi
mov edi, edx
lea edx, [esp + 0x14]
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 + 0x54]
push ecx
push edx
call fcn.0040f7d0
add esp, 0xc
cmp eax, 0xffffffff
jne 0x406da7
mov eax, dword [str.NoName]
mov cx, word [0x45d048]
mov dl, byte [0x45d04a]
mov dword [esp + 0x10], eax
mov word [esp + 0x14], cx
mov byte [esp + 0x16], dl
jmp 0x406df8
lea edi, [esp + 0x50]
lea edx, [esp + 0x10]
jmp 0x406ddb
mov dx, word [0x45d048]
mov ecx, dword [str.NoName]
mov al, byte [0x45d04a]
mov word [esp + 0x14], dx
mov dword [esp + 0x10], ecx
mov byte [esp + 0x16], al
lea edi, [esp + 0x10]
lea edx, [esp + 0xd0]
or ecx, 0xffffffff
xor eax, eax
repne scasb al, byte es:[edi]
not ecx
sub edi, ecx
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]
lea ecx, [esp + 0x90]
push ebx
push ecx
call fcn.0040f2b0
lea edi, [esp + 0x98]
or ecx, 0xffffffff
xor eax, eax
lea edx, [esp + 0xd8]
repne scasb al, byte es:[edi]
not ecx
sub edi, ecx
push 0x40
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 + 0x2dc]
and ecx, 3
push eax
rep movsb byte es:[edi], byte [esi]
lea ecx, [esp + 0xe0]
push ecx
call fcn.0040f7d0
add esp, 0x10
cmp eax, 0xffffffff
pop ebx
jne 0x406e90
mov edx, dword [str.NoShareString]
mov eax, dword [0x45d0c4]
mov ecx, dword [0x45d0c8]
mov dword [esp + 0xd0], edx
mov dx, word [0x45d0cc]
mov dword [esp + 0xd4], eax
mov dword [esp + 0xd8], ecx
mov word [esp + 0xdc], dx
jmp 0x406ebb
lea edi, [esp + 0x2d0]
or ecx, 0xffffffff
xor eax, eax
lea edx, [esp + 0xd0]
repne scasb al, byte es:[edi]
not ecx
sub edi, ecx
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]
lea ecx, [esp + 8]
lea edi, [esp + 0xd0]
push ecx
or ecx, 0xffffffff
xor eax, eax
lea edx, [esp + 0xd4]
repne scasb al, byte es:[edi]
not ecx
dec ecx
mov dword [esp + 0xc], 0
push ecx
push edx
call fcn.0040f1e0
mov ecx, dword [esp + 0x14]
add esp, 0xc
inc eax
neg eax
sbb eax, eax
pop edi
and eax, ecx
pop esi
mov dword [0x460ef4], eax
add esp, 0x4c8
ret
Function at 0x4074b0
Capabilities:
Create thread

Disassembly:
push ecx
push ebx
push ebp
push esi
mov esi, dword [esp + 0x14]
push edi
push esi
call fcn.00405c70
test esi, esi
mov edi, eax
jne 0x4074d1
pop edi
pop esi
pop ebp
mov ax, 2
pop ebx
pop ecx
ret 8
cmp word [edi + 0x18], 0x7242
lea esi, [edi + 0x18]
je 0x4074e8
pop edi
pop esi
pop ebp
mov ax, 2
pop ebx
pop ecx
ret 8
test byte [esi + 0x12], 4
jne 0x407500
mov word [esi + 6], 0xb39
pop edi
pop esi
pop ebp
mov ax, 0x39
pop ebx
pop ecx
ret 8
push 0
call fcn.00411510
mov ebp, eax
test ebp, 0x100
jne 0x407513
xor ebp, ebp
mov eax, dword [esp + 0x1c]
mov dword [esi + 0xc8], ebp
mov word [esi + 0xd0], ax
push eax
lea eax, [esi + 0x34]
mov word [esi + 0x30], 8
push eax
call fcn.00407630
xor bl, bl
mov eax, 3
cmp ax, 3
je 0x407547
cmp ax, 7
jne 0x40755d
push esi
mov byte [esi + 0xa], bl
call fcn.0040f470
push eax
call fcn.00407190
inc bl
cmp bl, 3
jbe 0x40753b
cmp ax, 9
jne 0x40756f
pop edi
pop esi
pop ebp
mov ax, 3
pop ebx
pop ecx
ret 8
test ax, ax
jne 0x40761b
mov bl, byte [edi]
mov byte [esp + 0x18], 0x91
and bl, 0xfc
mov byte [edi], bl
mov cx, word [esi + 0x3c]
mov al, bl
cmp cx, 5
mov bl, 1
jne 0x40759c
or al, 2
mov byte [esp + 0x18], bl
mov byte [edi], al
jmp 0x4075a6
cmp cx, 7
jne 0x4075a6
or al, bl
mov byte [edi], al
test ebp, ebp
je 0x4075d8
mov ecx, dword [esp + 0x18]
mov esi, dword [esi + 0xc8]
push ebp
push ecx
call fcn.00407f80
add esp, 8
cmp esi, eax
je 0x4075d8
push ebp
call fcn.00411620
cmp esi, eax
je 0x4075d8
pop edi
pop esi
pop ebp
mov ax, 3
pop ebx
pop ecx
ret 8
cmp dword [0x45d104], 0xffffffff
jne 0x407618
lea edx, [esp + 0x10]
push edx
push 0
push 0x460f12
push 0x408580
push 0
push 0
call fcn.004400f2
mov dword [0x45d104], eax
mov al, byte [0x460f10]
add esp, 0x18
cmp al, bl
jne 0x407618
pop edi
pop esi
pop ebp
mov ax, 0x68
pop ebx
pop ecx
ret 8
xor ax, ax
pop edi
pop esi
pop ebp
pop ebx
pop ecx
ret 8
Function at 0x409750
Capabilities:
Terminate thread

Disassembly:
push ecx
mov eax, dword [0x45d104]
mov dword [esp], 0
test eax, eax
je 0x4097bb
cmp eax, 0xffffffff
je 0x4097bb
lea ecx, [esp]
push ecx
push eax
call dword [sym.imp.KERNEL32.dll_GetExitCodeThread]
cmp dword [esp], 0x103
jne 0x4097bb
mov edx, dword [0x45d104]
push 0x7530
push edx
call dword [sym.imp.KERNEL32.dll_WaitForSingleObject]
cmp eax, 0x102
jne 0x4097a4
mov eax, dword [0x45d104]
push 0
push eax
call dword [sym.imp.KERNEL32.dll_TerminateThread]
mov ecx, dword [0x45d104]
push ecx
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov dword [0x45d104], 0
pop ecx
ret