joyce8/EMBER2024-capa huggingface dataset:
Function at 0x10007ee0
Capabilities:
Encode data using xor
Encrypt data using rc4 prga

Disassembly:
push ebp
mov ebp, esp
push ecx
push ebx
push edi
xor edi, edi
mov ebx, ecx
cmp dword [ebp + 8], edi
jbe 0x10007f89
push esi
lea esi, [eax + 2]
sub eax, ebx
add eax, 0xfffffffe
lea ecx, [ebx + 2]
mov dword [ebp - 4], eax
sub edx, 0x76bdefdb
movzx ebx, dl
shl bx, 8
movzx ebx, bx
mov eax, edx
shr eax, 0x10
shr edx, 8
movzx edx, dl
or ebx, edx
mov edx, eax
movzx eax, al
shl ebx, 0x10
shl ax, 8
shr edx, 8
movzx edx, dl
or ebx, edx
movzx edx, ax
movzx eax, byte [esi + 1]
or edx, ebx
movzx ebx, byte [esi]
shl eax, 8
or eax, ebx
movzx ebx, byte [esi - 1]
shl eax, 8
or eax, ebx
mov ebx, dword [ebp - 4]
movzx ebx, byte [ebx + ecx]
shl eax, 8
or eax, ebx
xor eax, edi
add eax, edx
mov ebx, eax
shr ebx, 8
mov byte [ecx - 1], bl
mov ebx, eax
shr ebx, 0x10
mov byte [ecx], bl
mov ebx, eax
shr ebx, 0x18
mov byte [ecx - 2], al
mov byte [ecx + 1], bl
add esi, 4
add ecx, 4
dec dword [ebp + 8]
mov edi, eax
jne 0x10007f02
pop esi
pop edi
pop ebx
mov esp, ebp
pop ebp
ret

Function at 0x10007f90
Capabilities:
Encrypt data using tea

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
sub esp, 0xc
push ebx
shr eax, 3
push esi
push edi
mov dword [esp + 0x14], eax
test eax, eax
je 0x100080a9
lea esi, [ecx + 6]
movzx ecx, byte [esi - 3]
movzx eax, byte [esi - 4]
movzx edx, byte [esi - 5]
shl ecx, 8
or ecx, eax
movzx eax, byte [esi - 6]
shl ecx, 8
or ecx, edx
movzx edx, byte [esi]
shl ecx, 8
or ecx, eax
movzx eax, byte [esi + 1]
shl eax, 8
or eax, edx
movzx edx, byte [esi - 1]
shl eax, 8
or eax, edx
movzx edx, byte [esi - 2]
shl eax, 8
or eax, edx
mov dword [esp + 0x10], 0x20
xor edx, edx
jmp 0x10008004
mov edx, dword [esp + 0xc]
sub edx, 0x61c88647
mov dword [esp + 0xc], edx
mov edi, eax
shr edi, 5
xor edi, edx
mov edx, eax
xor edx, dword [ebp + 8]
mov ebx, eax
add edx, dword [ebp + 0xc]
shl ebx, 4
add edx, edi
add ebx, edx
add ecx, ebx
mov edi, ecx
xor edi, dword [ebp + 0x10]
mov edx, ecx
add edi, dword [ebp + 0x14]
shr edx, 5
xor edx, dword [esp + 0xc]
mov ebx, ecx
shl ebx, 4
add edi, edx
add ebx, edi
add eax, ebx
dec dword [esp + 0x10]
jne 0x10008000
xor edi, edi
or eax, edi
xor edx, edx
or edx, ecx
mov ecx, edx
mov edi, eax
shrd ecx, edi, 8
mov byte [esi - 5], cl
shr edi, 8
mov ecx, edx
mov edi, eax
shrd ecx, edi, 0x10
mov byte [esi - 4], cl
mov ecx, eax
mov byte [esi - 6], dl
shrd edx, ecx, 0x18
shr ecx, 0x18
mov byte [esi - 3], dl
mov edx, eax
mov ecx, eax
shr eax, 0x18
mov byte [esi + 1], al
mov eax, dword [esp + 0x14]
mov byte [esi - 2], dl
shr ecx, 8
shr edx, 0x10
dec eax
mov byte [esi - 1], cl
mov byte [esi], dl
shr edi, 0x10
add esi, 8
mov dword [esp + 0x14], eax
test eax, eax
jne 0x10007fae
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 0x10

Function at 0x100080c0
Capabilities:
Encode data using xor

Disassembly:
push ebx
push esi
mov esi, eax
xor ebx, ebx
mov al, byte [esi]
movzx edx, al
shl edx, 8
xor ecx, edx
movzx edx, bl
xor edx, ecx
add edx, 0x7034616b
movzx ecx, dl
and ecx, 0x1f
ror edx, cl
add ebx, 0xffff
xor edx, 0x8372a5a7
mov ecx, edx
test bx, bx
jne 0x100080d0
inc esi
test al, al
jne 0x100080c6
pop esi
mov eax, ecx
pop ebx
ret
Function at 0x10008100
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
push ebx
push esi
mov ebx, eax
push edi
movzx edi, byte [ebx]
mov ecx, edi
xor ecx, 0x41363233
call fcn.100080c0
mov esi, eax
mov ecx, edi
shl ecx, 8
xor ecx, esi
mov eax, ebx
call fcn.100080c0
mov edx, dword [ebp + 8]
add edx, 2
mov edi, edi
movzx ecx, byte [edx + 1]
movzx edi, byte [edx]
shl ecx, 8
or ecx, edi
movzx edi, byte [edx - 1]
shl ecx, 8
or ecx, edi
movzx edi, byte [edx - 2]
shl ecx, 8
or ecx, edi
xor ecx, eax
mov ebx, ecx
shr ebx, 8
mov byte [edx - 2], cl
mov byte [edx - 1], bl
mov ebx, ecx
shr ecx, 0x18
mov byte [edx + 1], cl
movzx ecx, al
shr ebx, 0x10
and ecx, 0x1f
add edx, 4
rol esi, cl
mov byte [edx - 4], bl
mov ecx, esi
shr ecx, 8
xor eax, esi
and ecx, 0x1f
ror eax, cl
add esi, eax
dec dword [ebp + 0xc]
jne 0x10008130
pop edi
pop esi
pop ebx
pop ebp
ret
Function at 0x100096a0
Capabilities:
Hash data using sha1

Disassembly:
mov eax, dword [esp + 4]
xor ecx, ecx
mov dword [eax + 8], 0x67452301
mov dword [eax + 0xc], 0xefcdab89
mov dword [eax + 0x10], 0x98badcfe
mov dword [eax + 0x14], 0x10325476
mov dword [eax + 0x18], 0xc3d2e1f0
mov dword [eax + 0x1c], ecx
mov dword [eax], ecx
mov dword [eax + 4], ecx
xor eax, eax
ret
Function at 0x1000b2f4
Capabilities:
Hash data using sha256

Disassembly:
mov eax, dword [esp + 4]
xor ecx, ecx
mov dword [eax + 0x28], ecx
mov dword [eax], ecx
mov dword [eax + 4], ecx
mov dword [eax + 8], 0x6a09e667
mov dword [eax + 0xc], 0xbb67ae85
mov dword [eax + 0x10], 0x3c6ef372
mov dword [eax + 0x14], 0xa54ff53a
mov dword [eax + 0x18], 0x510e527f
mov dword [eax + 0x1c], 0x9b05688c
mov dword [eax + 0x20], 0x1f83d9ab
mov dword [eax + 0x24], 0x5be0cd19
xor eax, eax
ret

Function at 0x1000b517
Capabilities:
Hash data using sha224

Disassembly:
mov eax, dword [esp + 4]
xor ecx, ecx
mov dword [eax + 0x28], ecx
mov dword [eax], ecx
mov dword [eax + 4], ecx
mov dword [eax + 8], 0xc1059ed8
mov dword [eax + 0xc], 0x367cd507
mov dword [eax + 0x10], 0x3070dd17
mov dword [eax + 0x14], 0xf70e5939
mov dword [eax + 0x18], 0xffc00b31
mov dword [eax + 0x1c], 0x68581511
mov dword [eax + 0x20], 0x64f98fa7
mov dword [eax + 0x24], 0xbefa4fa4
xor eax, eax
ret
Function at 0x10016ac3
Capabilities:
Access peb ldr_data

Disassembly:
in al, dx
add ebp, 0x24
push esp
call fcn.10014922
dec esi
sbb dh, 0xfb
mov eax, dword fs:[0x30]
mov eax, dword [eax + 0xc]
mov esi, dword [eax + 0x1c]
lodsd eax, dword [esi]
cmp byte [eax + 0x1c], 0x18
je 0x10016ae6
xchg esi, eax
lodsd eax, dword [esi]
mov eax, dword [eax + 8]
push eax
invalid
Function at 0x401040
Capabilities:
Get memory capacity
Get system information on windows

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
sub esp, 0x88
mov eax, dword [0x403004]
xor eax, esp
mov dword [esp + 0x84], eax
lea eax, [esp + 0x60]
push eax
call dword [sym.imp.KERNEL32.dll_GetSystemInfo]
cmp dword [esp + 0x74], 2
jb 0x40110a
lea eax, [esp + 0x20]
mov dword [esp + 0x20], 0x40
push eax
call dword [sym.imp.KERNEL32.dll_GlobalMemoryStatusEx]
mov ecx, dword [esp + 0x28]
mov eax, dword [esp + 0x2c]
shrd ecx, eax, 0x14
cmp ecx, 0x800
jb 0x40110a
push 0
push 0
push 3
push 0
push 3
push 0
push 0x402110
call dword [sym.imp.KERNEL32.dll_CreateFileW]
push 0
lea ecx, [esp + 8]
push ecx
push 0x18
lea ecx, [esp + 0x14]
push ecx
push 0
push 0
push 0x70000
push eax
call dword [sym.imp.KERNEL32.dll_DeviceIoControl]
mov eax, dword [esp + 0x1c]
mul dword [esp + 0x18]
push 0
push dword [esp + 0x18]
push edx
push eax
call fcn.00401e80
push dword [esp + 0xc]
push dword [esp + 0xc]
push edx
push eax
call fcn.00401e80
push 0
push 0x40000000
push edx
push eax
call fcn.00401dd0
cmp eax, 0x64
jb 0x40110a
cmp dword [esp + 4], 0
jne 0x401117
push str.THIS_IS_VIRTUAL_MACHINE
call fcn.00401010
add esp, 4
push str.THIS_IS_NOT_VIRTUAL_MACHINE
call fcn.00401010
mov ecx, dword [esp + 0x88]
add esp, 4
xor ecx, esp
xor eax, eax
call fcn.00401138
mov esp, ebp
pop ebp
ret
Function at 0x30017c9c
Capabilities:
Terminate process

Disassembly:
push 0x58
push 0x300190b0
call fcn.30017e54
xor ebx, ebx
mov dword [ebp - 0x1c], ebx
mov dword [ebp - 4], ebx
lea eax, [ebp - 0x68]
push eax
call dword [sym.imp.KERNEL32.dll_GetStartupInfoA]
mov dword [ebp - 4], 0xfffffffe
mov dword [ebp - 4], 1
mov eax, dword fs:[0x18]
mov esi, dword [eax + 4]
mov edi, 0x300200e8
push 0
push esi
push edi
call dword [sym.imp.KERNEL32.dll_InterlockedCompareExchange]
test eax, eax
je 0x30017a3b
cmp eax, esi
jne 0x30017a2e
xor esi, esi
inc esi
mov ebx, esi
jmp 0x30017a3e
push 0x3e8
call dword [sym.imp.KERNEL32.dll_Sleep]
jmp 0x30017a15
xor esi, esi
inc esi
mov eax, dword [0x300200e4]
cmp eax, esi
jne 0x30017a51
push 0x1f
call sub.MSVCR80.dll__amsg_exit
pop ecx
jmp 0x30017a80
mov eax, dword [0x300200e4]
test eax, eax
jne 0x30017a7a
mov dword [0x300200e4], esi
push 0x30001534
push 0x30001528
call fcn.30147000
pop ecx
pop ecx
test eax, eax
je 0x30017a80
jmp 0x30017ba8
mov dword [0x3001fd94], esi
mov eax, dword [0x300200e4]
cmp eax, esi
jne 0x30017aa4
push 0x30001524
push 0x300014e4
call sub.MSVCR80.dll__initterm
pop ecx
pop ecx
mov dword [0x300200e4], 2
test ebx, ebx
jne 0x30017ab0
push ebx
push edi
call dword [sym.imp.KERNEL32.dll_InterlockedExchange]
cmp dword [0x300200f4], 0
je 0x30017ad4
push 0x300200f4
call fcn.30018076
pop ecx
test eax, eax
je 0x30017ad4
push 0
push 2
push 0
call dword [0x300200f4]
mov eax, dword [sym.imp.MSVCR80.dll__acmdln]
mov esi, dword [eax]
mov dword [ebp - 0x20], esi
mov al, byte [esi]
cmp al, 0x20
ja 0x30017b30
test al, al
je 0x30017aee
cmp dword [ebp - 0x1c], 0
jne 0x30017b30
mov al, byte [esi]
test al, al
je 0x30017afe
cmp al, 0x20
ja 0x30017afe
inc esi
mov dword [ebp - 0x20], esi
jmp 0x30017aee
test byte [ebp - 0x3c], 1
je 0x30017b0a
movzx eax, word [ebp - 0x38]
jmp 0x30017b0d
push 0xa
pop eax
push eax
push esi
push 0
push 0x30000000
call main
mov dword [0x3001fd90], eax
cmp dword [0x3001fd84], 0
jne 0x30017b84
push eax
call dword [sym.imp.MSVCR80.dll_exit]
cmp al, 0x22
jne 0x30017b3f
xor ecx, ecx
cmp dword [ebp - 0x1c], ecx
sete cl
mov dword [ebp - 0x1c], ecx
movzx eax, al
push eax
call dword [sym.imp.MSVCR80.dll__ismbblead]
pop ecx
test eax, eax
je 0x30017b52
inc esi
mov dword [ebp - 0x20], esi
inc esi
jmp 0x30017adb
cmp dword [0x3001fd94], 0
jne 0x30017b93
call dword [sym.imp.MSVCR80.dll__cexit]
mov dword [ebp - 4], 0xfffffffe
mov eax, dword [0x3001fd90]
jmp 0x30017bb4
mov dword [ebp - 4], 0xfffffffe
mov eax, 0xff
call fcn.30017e99
ret
call fcn.300178c4
jmp 0x300179db
Function at 0x4287df
Capabilities:
Get keyboard layout

Disassembly:
push ebp
mov ebp, esp
sub esp, 8
push ebx
push esi
push edi
cmp dword [0x45aa24], 0
je 0x428816
push 0
call dword [sym.imp.USER32.dll_GetKeyboardLayout]
mov dword [ebp - 4], eax
mov eax, dword [ebp - 4]
push eax
call main
add esp, 4
jmp 0x42882f
call main
mov dword [ebp - 8], eax
mov eax, dword [ebp - 8]
push eax
call main
add esp, 4
jmp 0x42882f
pop edi
pop esi
pop ebx
leave
ret

Function at 0x4449f0
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x3c
pushal
call 0x4449ff
pop dword [ebp - 0x2c]
mov eax, 0x6a04f07d
sub eax, 0x69c0a67e
sub dword [ebp - 0x2c], eax
push 0x40
push 0x1000
push 0x502d6
push 0
mov eax, 0x28f400f1
sub eax, 0x28ad9919
add eax, dword [ebp - 0x2c]
call dword [eax]
mov ecx, 0xd24cb212
add ecx, 0x2db39fa6
xor edi, edi
add edi, eax
mov ebx, 0xa62a4dd5
add ebx, 0x5a1e922b
add ebx, dword [ebp - 0x2c]
mov esi, 0xcc1e6d35
add esi, 0x52b74147
xor dword [ebp - 0x10], 0x29e24bfb
mov edx, dword [ebx]
sub edx, esi
xor dword [ebp - 0x1c], edx
mov dword [edi], edx
add edi, 0xfb77185f
sub edi, 0xfb77185b
add ebx, 0x7ba6129b
add ebx, 0x8459ed69
loop 0x444a60
add eax, 0x85a983ef
sub eax, 0x85a84a3c
xor ebx, ebx
add ebx, eax
add eax, 0xc81d2274
sub eax, 0xc81d226f
mov ecx, 0x792a6d56
add ecx, 0x871592aa
add ecx, dword [ebp - 0x2c]
call ebx
leave
ret

Function at 0x44c8c0
Capabilities:
Move file

Disassembly:
mov eax, dword [esp + 8]
mov ecx, dword [esp + 4]
push eax
push ecx
call dword [sym.imp.kernel32.dll_MoveFileA]
test eax, eax
mov eax, 0
jne 0x44c8df
call dword [sym.imp.kernel32.dll_GetLastError]
test eax, eax
je 0x44c8f2
push eax
call fcn.0044d700
add esp, 4
mov eax, 0xffffffff
ret
xor eax, eax
ret
Function at 0x401058
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
push 0x82
call fcn.0040afeb
xor edx, edx
pop ecx
cmp dword [ebp + 0xc], edx
jle 0x40109d
push esi
mov esi, dword [ebp + 8]
push edi
mov ecx, 0x426e58
mov edi, eax
sub esi, ecx
sub edi, ecx
mov cx, word [esi + edx*2 + 0x426e58]
xor cx, word [edx*2 + 0x426e58]
inc edx
mov word [edi + edx*2 + 0x426e56], cx
cmp edx, dword [ebp + 0xc]
jl 0x40107d
pop edi
pop esi
xor ecx, ecx
mov word [eax + edx*2], cx
pop ebp
ret 8

Function at 0x4020d4
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
push 0x66
call fcn.0040afeb
xor edx, edx
pop ecx
cmp dword [ebp + 0xc], edx
jle 0x402116
push esi
mov esi, dword [ebp + 8]
push edi
mov ecx, 0x426b98
mov edi, eax
sub esi, ecx
sub edi, ecx
mov cx, word [esi + edx*2 + 0x426b98]
xor cx, word [edx*2 + 0x426b98]
inc edx
mov word [edi + edx*2 + 0x426b96], cx
cmp edx, dword [ebp + 0xc]
jl 0x4020f6
pop edi
pop esi
xor ecx, ecx
mov word [eax + edx*2], cx
pop ebp
ret 8
Function at 0x4021e9
Capabilities:
Create process on windows

Disassembly:
push 0x868
mov eax, 0x41d99a
call fcn.0040ee4e
mov ebx, ecx
mov edi, edx
mov esi, dword [ebp + 8]
mov byte [ebp - 0x831], 1
and dword [ebp - 4], 0
mov dword [ebp - 0x874], 0x3c
mov dword [ebp - 0x870], 0x8040
push 4
push 0x4265c0
call fcn.004020d4
mov dword [ebp - 0x868], eax
push 8
pop edx
cmp dword [edi + 0x14], edx
jb 0x40223c
mov eax, dword [edi]
jmp 0x40223e
mov eax, edi
mov dword [ebp - 0x864], eax
mov ecx, dword [esi + 0x14]
cmp ecx, edx
jb 0x40224f
mov eax, dword [esi]
jmp 0x402251
mov eax, esi
mov dword [ebp - 0x860], eax
cmp dword [ebx + 0x14], edx
jb 0x402260
mov eax, dword [ebx]
jmp 0x402262
mov eax, ebx
mov dword [ebp - 0x85c], eax
and dword [ebp - 0x858], 0
mov dword [ebp - 0x854], 0x1d
cmp ecx, edx
jb 0x40227f
mov esi, dword [esi]
cmp dword [edi + 0x14], edx
jb 0x402288
mov eax, dword [edi]
jmp 0x40228a
mov eax, edi
push esi
push eax
push 0xe
push 0x4265c8
call fcn.004020d4
push eax
lea eax, [ebp - 0x814]
push eax
mov edi, dword [sym.imp.USER32.dll_wsprintfW]
call edi
add esp, 0x10
lea eax, [ebp - 0x814]
push eax
lea esi, [ebp - 0x830]
call fcn.004012ca
mov ebx, esi
call fcn.00402120
xor ebx, ebx
push ebx
push 1
mov ecx, esi
call fcn.00401455
lea eax, [ebp - 0x874]
push eax
call dword [sym.imp.SHELL32.dll_ShellExecuteExW]
test eax, eax
je 0x402393
cmp dword [ebp - 0x83c], ebx
je 0x40234f
push dword [ebp - 0x83c]
push 0x15
push 0x4265e4
call fcn.004020d4
push eax
lea eax, [ebp - 0x814]
push eax
call edi
add esp, 0xc
lea eax, [ebp - 0x814]
push eax
lea esi, [ebp - 0x830]
call fcn.004012ca
mov ebx, esi
call fcn.00402120
push 0
push 1
mov ecx, esi
call fcn.00401455
push 0xffffffffffffffff
push dword [ebp - 0x83c]
call dword [sym.imp.KERNEL32.dll_WaitForSingleObject]
push dword [ebp - 0x83c]
call dword [sym.imp.KERNEL32.dll_CloseHandle]
jmp 0x4023db
push 0x422928
push 0x19
push 0x426610
call fcn.004020d4
push eax
lea eax, [ebp - 0x814]
push eax
call edi
add esp, 0xc
lea eax, [ebp - 0x814]
push eax
lea esi, [ebp - 0x830]
call fcn.004012ca
mov ebx, esi
call fcn.00402120
push 0
push 1
mov ecx, esi
call fcn.00401455
jmp 0x4023db
cmp byte [0x42818c], bl
je 0x4023db
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
push 0x11
push 0x426644
call fcn.004020d4
push eax
lea eax, [ebp - 0x814]
push eax
call edi
add esp, 0xc
push 0x40000
push 3
push 0x426668
call fcn.004020d4
push eax
lea eax, [ebp - 0x814]
push eax
push ebx
call dword [sym.imp.USER32.dll_MessageBoxW]
or dword [ebp - 4], 0xffffffff
mov al, byte [ebp - 0x831]
call fcn.0040ee9b
ret 4
Function at 0x4025a2
Capabilities:
Initialize winhttp library
Prepare http request
Receive http response

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x444
mov eax, dword [0x4255d4]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
push esi
push 0x12
push 0x426ac4
call fcn.004020d4
push eax
lea esi, [ebp - 0x420]
call fcn.004012ca
xor ebx, ebx
cmp byte [0x42818c], bl
je 0x4025ee
push 8
push 0x426ae8
call fcn.004020d4
push eax
mov eax, esi
push eax
call fcn.0040131e
cmp dword [ebp + 0x38], 8
mov eax, dword [ebp + 0x24]
jae 0x4025fa
lea eax, [ebp + 0x24]
push eax
push 0x13
push 0x426af8
call fcn.004020d4
push eax
lea eax, [ebp - 0x404]
push eax
call dword [sym.imp.USER32.dll_wsprintfW]
add esp, 0xc
lea eax, [ebp - 0x404]
push eax
lea esi, [ebp - 0x43c]
call fcn.004012ca
cmp dword [ebp + 0x1c], 8
mov eax, dword [ebp + 8]
jae 0x402636
lea eax, [ebp + 8]
push ebx
push ebx
push ebx
push ebx
push eax
call dword [sym.imp.WINHTTP.dll_WinHttpOpen]
mov dword [ebp - 0x444], eax
cmp eax, ebx
je 0x4026eb
cmp dword [ebp - 0x40c], 8
mov eax, dword [ebp - 0x420]
jae 0x402664
lea eax, [ebp - 0x420]
push edi
push ebx
push 0x50
push eax
push dword [ebp - 0x444]
call dword [sym.imp.WINHTTP.dll_WinHttpConnect]
mov edi, dword [sym.imp.WINHTTP.dll_WinHttpCloseHandle]
mov dword [ebp - 0x440], eax
cmp eax, ebx
je 0x4026e2
cmp dword [ebp - 0x428], 8
mov eax, dword [ebp - 0x43c]
jae 0x40269a
lea eax, [ebp - 0x43c]
push ebx
push ebx
push ebx
push ebx
push eax
push 3
push 0x426b20
call fcn.004020d4
push eax
push dword [ebp - 0x440]
call dword [sym.imp.WINHTTP.dll_WinHttpOpenRequest]
mov esi, eax
cmp esi, ebx
je 0x4026da
push ebx
push ebx
push ebx
push ebx
push ebx
push ebx
push esi
call dword [sym.imp.WINHTTP.dll_WinHttpSendRequest]
test eax, eax
je 0x4026d7
push ebx
push esi
call dword [sym.imp.WINHTTP.dll_WinHttpReceiveResponse]
push esi
call edi
push dword [ebp - 0x440]
call edi
push dword [ebp - 0x444]
call edi
pop edi
xor esi, esi
push ebx
inc esi
push esi
lea ecx, [ebp - 0x43c]
call fcn.00401455
push ebx
push esi
lea ecx, [ebp - 0x420]
call fcn.00401455
push ebx
push esi
lea ecx, [ebp + 8]
call fcn.00401455
push ebx
push esi
lea ecx, [ebp + 0x24]
call fcn.00401455
mov ecx, dword [ebp - 4]
pop esi
xor ecx, ebp
pop ebx
call fcn.0040bbf1
leave
ret 0x38
Function at 0x4043a5
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x2c
mov eax, dword [0x4255d4]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
push esi
mov esi, dword [ebp + 8]
mov ebx, 0xffff
mov eax, ebx
push edi
mov edi, ecx
cmp ax, si
jne 0x4043d0
xor eax, eax
jmp 0x404538
mov ecx, dword [edi + 0x24]
cmp dword [ecx], 0
je 0x4043fd
mov eax, dword [edi + 0x34]
mov ecx, dword [ecx]
mov edx, dword [eax]
lea edx, [ecx + edx*2]
cmp ecx, edx
jae 0x4043fd
dec dword [eax]
mov edi, dword [edi + 0x24]
mov eax, dword [edi]
lea ecx, [eax + 2]
mov dword [edi], ecx
mov word [eax], si
mov ax, si
jmp 0x404538
cmp dword [edi + 0x54], 0
jne 0x40440a
mov eax, ebx
jmp 0x404538
mov eax, edi
call fcn.0040589a
cmp dword [edi + 0x44], 0
jne 0x404430
push dword [edi + 0x54]
push esi
call fcn.0040c44a
pop ecx
cmp ax, bx
pop ecx
movzx eax, si
jne 0x404538
jmp 0x404403
movzx eax, si
lea esi, [ebp - 0x20]
mov dword [ebp - 0x24], eax
call fcn.004051f3
cmp dword [ebp - 0xc], 0x10
mov eax, dword [ebp - 0x20]
jae 0x4044dd
lea eax, [ebp - 0x20]
mov edx, eax
add eax, dword [ebp - 0x10]
mov ecx, dword [edi + 0x44]
mov esi, dword [ecx]
lea ebx, [ebp - 0x28]
push ebx
push eax
push edx
lea eax, [ebp - 0x2c]
push eax
lea eax, [ebp - 0x22]
push eax
lea eax, [ebp - 0x24]
push eax
lea eax, [edi + 0x4c]
push eax
call dword [esi + 0x14]
xor ebx, ebx
cmp eax, ebx
jl 0x404528
cmp eax, 1
jg 0x4044e5
cmp dword [ebp - 0xc], 0x10
mov eax, dword [ebp - 0x20]
jae 0x40448c
lea eax, [ebp - 0x20]
mov esi, dword [ebp - 0x28]
sub esi, eax
je 0x4044b2
cmp dword [ebp - 0xc], 0x10
mov eax, dword [ebp - 0x20]
jae 0x40449f
lea eax, [ebp - 0x20]
push dword [edi + 0x54]
push esi
push 1
push eax
call fcn.0040da12
add esp, 0x10
cmp esi, eax
jne 0x404528
lea eax, [ebp - 0x24]
mov byte [edi + 0x4a], 1
cmp dword [ebp - 0x2c], eax
jne 0x404517
cmp esi, ebx
ja 0x40443e
cmp dword [ebp - 0x10], 0x20
push ebx
jae 0x404529
push 8
pop ebx
lea esi, [ebp - 0x20]
call fcn.00405237
jmp 0x40443e
mov edx, dword [ebp - 0x20]
jmp 0x404450
cmp eax, 3
jne 0x404528
push dword [edi + 0x54]
push dword [ebp - 0x24]
call fcn.0040c44a
movzx esi, word [ebp + 8]
pop ecx
pop ecx
mov ecx, 0xffff
cmp ax, cx
jne 0x404507
mov esi, ecx
push ebx
push 1
lea ecx, [ebp - 0x20]
call fcn.00405327
jmp 0x4043f5
push ebx
push 1
lea ecx, [ebp - 0x20]
call fcn.00405327
mov ax, word [ebp + 8]
jmp 0x404538
push ebx
push 1
lea ecx, [ebp - 0x20]
call fcn.00405327
mov eax, 0xffff
mov ecx, dword [ebp - 4]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.0040bbf1
leave
ret 4
Function at 0x4057a2
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x24
mov eax, dword [0x4255d4]
xor eax, ebp
mov dword [ebp - 4], eax
cmp dword [edi + 0x44], 0
push esi
je 0x40588b
cmp byte [edi + 0x4a], 0
je 0x40588b
mov eax, dword [edi]
mov esi, 0xffff
push esi
mov ecx, edi
call dword [eax + 0xc]
cmp si, ax
jne 0x4057e0
xor al, al
jmp 0x40588d
lea esi, [ebp - 0x20]
call fcn.004051f3
push ebx
cmp dword [ebp - 0xc], 0x10
mov eax, dword [ebp - 0x20]
jae 0x40582d
lea eax, [ebp - 0x20]
mov edx, eax
mov ecx, dword [edi + 0x44]
mov esi, dword [ecx]
lea ebx, [ebp - 0x24]
push ebx
mov ebx, dword [ebp - 0x10]
add eax, ebx
push eax
push edx
lea eax, [edi + 0x4c]
push eax
call dword [esi + 0x18]
sub eax, 0
je 0x405832
dec eax
je 0x405836
dec eax
dec eax
je 0x405887
xor bl, bl
push 0
push 1
lea ecx, [ebp - 0x20]
call fcn.00405327
mov al, bl
pop ebx
jmp 0x40588d
mov edx, dword [ebp - 0x20]
jmp 0x4057f7
mov byte [edi + 0x4a], 0
cmp dword [ebp - 0xc], 0x10
mov eax, dword [ebp - 0x20]
jae 0x405842
lea eax, [ebp - 0x20]
mov esi, dword [ebp - 0x24]
sub esi, eax
je 0x405868
cmp dword [ebp - 0xc], 0x10
mov eax, dword [ebp - 0x20]
jae 0x405855
lea eax, [ebp - 0x20]
push dword [edi + 0x54]
push esi
push 1
push eax
call fcn.0040da12
add esp, 0x10
cmp esi, eax
jne 0x40581a
cmp byte [edi + 0x4a], 0
je 0x405887
test esi, esi
jne 0x4057e9
push esi
push 8
pop ebx
lea esi, [ebp - 0x20]
call fcn.00405237
jmp 0x4057e9
mov bl, 1
jmp 0x40581c
mov al, 1
mov ecx, dword [ebp - 4]
xor ecx, ebp
pop esi
call fcn.0040bbf1
leave
ret
Function at 0x406676
Capabilities:
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x4c0
mov eax, dword [0x4255d4]
xor eax, ebp
mov dword [ebp - 8], eax
mov eax, dword [ebp + 8]
cmp dword [eax + 0x14], 8
push ebx
push esi
push edi
mov esi, ecx
mov edi, edx
mov ecx, 0x80000002
mov dword [ebp - 0x4bc], edi
mov dword [ebp - 0x4ac], ecx
jb 0x4066ac
mov eax, dword [eax]
lea edx, [ebp - 0x4ac]
push edx
push 0x20019
push 0
push eax
push ecx
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
mov ebx, eax
test ebx, ebx
jne 0x4067c5
push 0x422918
push edi
call fcn.0040131e
cmp dword [esi + 0x14], 8
mov dword [ebp - 0x4b0], 1
mov dword [ebp - 0x4b4], 0x400
jb 0x4066f5
mov eax, dword [esi]
jmp 0x4066f7
mov eax, esi
mov edi, dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
lea ecx, [ebp - 0x4b4]
push ecx
lea ecx, [ebp - 0x48c]
push ecx
lea ecx, [ebp - 0x4b0]
push ecx
push 0
push eax
push dword [ebp - 0x4ac]
call edi
mov ebx, eax
test ebx, ebx
jne 0x4067c5
push 4
pop eax
cmp dword [ebp - 0x4b0], eax
je 0x406746
lea eax, [ebp - 0x48c]
push eax
push dword [ebp - 0x4bc]
call fcn.0040131e
jmp 0x4067c5
and dword [ebp - 0x4b8], 0
cmp dword [esi + 0x14], 8
mov dword [ebp - 0x4b4], eax
jb 0x40675b
mov esi, dword [esi]
lea eax, [ebp - 0x4b4]
push eax
lea eax, [ebp - 0x4b8]
push eax
lea eax, [ebp - 0x4b0]
push eax
push 0
push esi
push dword [ebp - 0x4ac]
call edi
mov ebx, eax
test ebx, ebx
jne 0x4067c5
push eax
push dword [ebp - 0x4b8]
lea eax, [ebp - 0x8c]
push 0x422bb4
push 0x40
push eax
call fcn.0040665a
add esp, 0x14
lea eax, [ebp - 0x8c]
push eax
lea esi, [ebp - 0x4a8]
call fcn.004012ca
mov edi, dword [ebp - 0x4bc]
call fcn.00401370
push ebx
push 1
mov ecx, esi
call fcn.00401455
mov ecx, dword [ebp - 8]
pop edi
pop esi
mov eax, ebx
xor ecx, ebp
pop ebx
call fcn.0040bbf1
leave
ret 4

Function at 0x4067d8
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
push 0x58
call fcn.0040afeb
xor edx, edx
pop ecx
cmp dword [ebp + 0xc], edx
jle 0x40681a
push esi
mov esi, dword [ebp + 8]
push edi
mov ecx, 0x426548
mov edi, eax
sub esi, ecx
sub edi, ecx
mov cx, word [esi + edx*2 + 0x426548]
xor cx, word [edx*2 + 0x426548]
inc edx
mov word [edi + edx*2 + 0x426546], cx
cmp edx, dword [ebp + 0xc]
jl 0x4067fa
pop edi
pop esi
xor ecx, ecx
mov word [eax + edx*2], cx
pop ebp
ret 8