joyce8/EMBER2024-capa huggingface dataset:
Function at 0x4608c4
Capabilities:
Get keyboard layout
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffda0
push ebx
xor edx, edx
mov dword [ebp - 0x260], edx
mov dword [ebp - 4], eax
xor eax, eax
push ebp
push 0x460a6f
push dword fs:[eax]
mov dword fs:[eax], esp
mov eax, dword [ebp - 4]
cmp dword [eax + 0x34], 0
jne 0x460a50
mov dl, 1
mov eax, dword [0x417814]
call fcn.00403d14
mov edx, dword [ebp - 4]
mov dword [edx + 0x34], eax
mov eax, dword [ebp - 4]
add eax, 0x38
call fcn.00404d08
lea eax, [ebp - 0x114]
push eax
push 0x40
call sub.user32.dll_GetKeyboardLayoutList
dec eax
test eax, eax
jl 0x460a3f
inc eax
mov dword [ebp - 0x10], eax
lea eax, [ebp - 0x114]
mov dword [ebp - 0x14], eax
mov eax, dword [ebp - 0x14]
mov eax, dword [eax]
call fcn.00451ea4
test al, al
je 0x460a32
lea eax, [ebp - 0xc]
push eax
push 0x20019
push 0
push 0
mov eax, dword [ebp - 0x14]
mov eax, dword [eax]
mov dword [ebp - 0x25c], eax
mov byte [ebp - 0x258], 0
lea ecx, [ebp - 0x25c]
mov edx, 0x460a80
lea eax, [ebp - 0x254]
call fcn.0040aa0c
push eax
push 0x80000002
call sub.advapi32.dll_RegOpenKeyExA
test eax, eax
jne 0x460a32
xor eax, eax
push ebp
push 0x460a2b
push dword fs:[eax]
mov dword fs:[eax], esp
mov dword [ebp - 8], pe_nt_image_headers32
lea eax, [ebp - 8]
push eax
lea eax, [ebp - 0x214]
push eax
push 0
push 0
push 0x460ab8
mov eax, dword [ebp - 0xc]
push eax
call sub.advapi32.dll_RegQueryValueExA
test eax, eax
jne 0x460a14
lea eax, [ebp - 0x260]
lea edx, [ebp - 0x214]
mov ecx, pe_nt_image_headers32
call fcn.00404f78
mov edx, dword [ebp - 0x260]
mov eax, dword [ebp - 0x14]
mov ecx, dword [eax]
mov eax, dword [ebp - 4]
mov eax, dword [eax + 0x34]
mov ebx, dword [eax]
call dword [ebx + 0x3c]
mov eax, dword [ebp - 0x14]
mov eax, dword [eax]
mov edx, dword [ebp - 4]
cmp eax, dword [edx + 0x3c]
jne 0x460a14
mov eax, dword [ebp - 4]
add eax, 0x38
lea edx, [ebp - 0x214]
mov ecx, pe_nt_image_headers32
call fcn.00404f78
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x460a32
mov eax, dword [ebp - 0xc]
push eax
call sub.advapi32.dll_RegCloseKey
ret
add dword [ebp - 0x14], 4
dec dword [ebp - 0x10]
jne 0x460935
mov eax, dword [ebp - 4]
mov eax, dword [eax + 0x34]
mov byte [eax + 0x25], 0
mov dl, 1
call fcn.0041c464
mov eax, dword [ebp - 4]
mov ebx, dword [eax + 0x34]
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x460a76
lea eax, [ebp - 0x260]
call fcn.00404d08
ret

Function at 0x4613e8
Capabilities:
Create thread
Set global application hook

Disassembly:
push ecx
mov eax, dword [0x4c1c9c]
cmp byte [eax + 0xad], 0
jne 0x461459
cmp dword [0x4c1cb8], 0
jne 0x46141a
call sub.KERNEL32.DLL_GetCurrentThreadId
push eax
push 0
mov eax, 0x4613a4
push eax
push 3
call sub.user32.dll_SetWindowsHookExA
mov dword [0x4c1cb8], eax
cmp dword [0x4c1cb4], 0
jne 0x461435
push 0
push 0
push 0
push 0
call sub.KERNEL32.DLL_CreateEventA
mov dword [0x4c1cb4], eax
cmp dword [0x4c1cbc], 0
jne 0x461459
push esp
push 0
push 0
push 0x461348
push 0x3e8
push 0
call sub.KERNEL32.DLL_CreateThread
mov dword [0x4c1cbc], eax
pop edx
ret
Function at 0x46165c
Capabilities:
Inspect load icon resource

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffefc
push ebx
push esi
test dl, dl
je 0x461673
add esp, 0xfffffff0
call fcn.00404068
mov byte [ebp - 1], dl
mov ebx, eax
xor edx, edx
mov eax, ebx
call fcn.00420df8
mov eax, dword [0x4bc8a8]
cmp word [eax + 2], 0
jne 0x46169b
mov eax, dword [0x4bc8a8]
mov dword [eax + 4], ebx
mov dword [eax], fcn.00463364
mov eax, dword [0x4bca10]
cmp word [eax + 2], 0
jne 0x4616b5
mov eax, dword [0x4bca10]
mov dword [eax + 4], ebx
mov dword [eax], fcn.00463570
mov byte [ebx + 0x34], 0
mov dl, 1
mov eax, dword [0x4171a8]
call fcn.00403d14
mov dword [ebx + 0x90], eax
mov dl, 1
mov eax, dword [0x4171a8]
call fcn.00403d14
mov dword [ebx + 0x98], eax
mov dl, 1
mov eax, dword [0x4171a8]
call fcn.00403d14
mov dword [ebx + 0xb0], eax
xor eax, eax
mov dword [ebx + 0x60], eax
xor eax, eax
mov dword [ebx + 0x84], eax
mov dword [ebx + 0x5c], 0xff000018
mov dword [ebx + 0x78], 0x1f4
mov byte [ebx + 0x7c], 1
xor eax, eax
mov dword [ebx + 0x80], eax
mov dword [ebx + 0x74], 0x9c4
mov byte [ebx + 0x88], 0
mov byte [ebx + 0xa5], 1
mov byte [ebx + 0xbc], 1
mov dl, 1
mov eax, dword [0x426114]
call fcn.0042e074
mov esi, eax
mov dword [ebx + 0xa0], esi
push 0x46186c
mov eax, dword [0x4bc6f0]
mov eax, dword [eax]
push eax
call sub.user32.dll_LoadIconA
mov edx, eax
mov eax, esi
call fcn.0042e448
mov eax, dword [ebx + 0xa0]
mov dword [eax + 0x14], ebx
mov dword [eax + 0x10], 0x463c34
push pe_nt_image_headers32
lea eax, [ebp - 0x101]
push eax
mov eax, dword [0x4bc6f0]
mov eax, dword [eax]
push eax
call sub.KERNEL32.DLL_GetModuleFileNameA
lea eax, [ebp - 0x101]
push eax
lea eax, [ebp - 0x101]
push eax
call sub.user32.dll_OemToCharA
lea eax, [ebp - 0x101]
mov dl, 0x5c
call fcn.0040e448
test eax, eax
je 0x4617bc
lea edx, [eax + 1]
lea eax, [ebp - 0x101]
call fcn.0040a3b0
lea eax, [ebp - 0x101]
mov dl, 0x2e
call fcn.0040e47c
test eax, eax
je 0x4617d0
mov byte [eax], 0
lea eax, [ebp - 0x101]
push eax
call sub.user32.dll_CharNextA
push eax
call sub.user32.dll_CharLowerA
lea eax, [ebx + 0x8c]
lea edx, [ebp - 0x101]
mov ecx, pe_nt_image_headers32
call fcn.00404f78
mov byte [ebx + 0xd4], 0
push ebx
push 0x462dd8
call fcn.00421f74
mov dword [ebx + 0xc8], eax
mov eax, dword [0x4bc418]
cmp byte [eax], 0
jne 0x461821
mov eax, ebx
call fcn.004619b0
mov byte [ebx + 0x59], 1
mov byte [ebx + 0x5a], 1
mov byte [ebx + 0x5b], 1
mov byte [ebx + 0xa6], 1
xor eax, eax
mov dword [ebx + 0xa8], eax
mov eax, ebx
call fcn.00463e48
mov eax, ebx
call fcn.004649ac
mov eax, ebx
cmp byte [ebp - 1], 0
je 0x461861
call fcn.004040c0
pop dword fs:[0]
add esp, 0xc
mov eax, ebx
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x461c30
Capabilities:
Enumerate gui resources

Disassembly:
push ebx
push esi
add esp, 0xfffffff8
mov ebx, eax
mov eax, dword [ebx + 0x30]
test eax, eax
je 0x461ccf
cmp dword [ebx + 0x94], 0
jne 0x461cc9
mov dword [esp], eax
mov byte [esp + 4], dl
mov eax, esp
push eax
push 0x461bb8
call sub.user32.dll_EnumWindows
mov eax, dword [ebx + 0x90]
cmp dword [eax + 8], 0
je 0x461cc9
push 3
mov eax, dword [esp + 4]
push eax
call sub.user32.dll_GetWindow
mov esi, eax
mov dword [esp], esi
push 0xffffffffffffffec
push esi
call sub.user32.dll_GetWindowLongA
test al, 8
je 0x461c8f
mov dword [esp], 0xfffffffe
mov eax, dword [ebx + 0x90]
mov esi, dword [eax + 8]
dec esi
cmp esi, 0
jl 0x461cc9
push 0x213
push 0
push 0
push 0
push 0
mov eax, dword [esp + 0x14]
push eax
mov edx, esi
mov eax, dword [ebx + 0x90]
call fcn.00419b50
push eax
call sub.user32.dll_SetWindowPos
dec esi
cmp esi, 0xffffffff
jne 0x461c9e
inc dword [ebx + 0x94]
pop ecx
pop edx
pop esi
pop ebx
ret

Function at 0x461ee8
Capabilities:
Enumerate gui resources
Hide graphical window

Disassembly:
push ebx
push esi
push edi
mov ebx, edx
mov esi, eax
mov eax, dword [0x4c1c9c]
cmp dword [eax + 0x30], 0
je 0x462045
test bl, bl
jne 0x461f96
cmp dword [esi + 0x9c], 0
jne 0x461f8b
mov eax, esi
call fcn.00464828
push eax
push 0x461e14
call sub.user32.dll_EnumWindows
cmp dword [esi + 0x44], 0
je 0x461f5c
mov eax, dword [0x4c1c9c]
call fcn.00464f08
test al, al
je 0x461f5c
mov eax, dword [0x4c1cc0]
call fcn.00405fe8
mov edi, eax
cmp edi, 0
jl 0x461f5c
push 0
mov eax, dword [0x4c1cc0]
mov eax, dword [eax + edi*4]
push eax
call sub.user32.dll_ShowWindow
dec edi
cmp edi, 0xffffffff
jne 0x461f46
mov eax, dword [esi + 0x98]
mov edi, dword [eax + 8]
dec edi
cmp edi, 0
jl 0x461f8b
cmp bl, 1
cmc
sbb eax, eax
push eax
mov edx, edi
mov eax, dword [esi + 0x98]
call fcn.00419b50
push eax
call sub.user32.dll_ShowOwnedPopups
dec edi
cmp edi, 0xffffffff
jne 0x461f6b
inc dword [esi + 0x9c]
jmp 0x462045
cmp dword [esi + 0x9c], 0
jle 0x462045
dec dword [esi + 0x9c]
cmp dword [esi + 0x9c], 0
jne 0x462045
cmp dword [esi + 0x44], 0
je 0x461ff1
mov eax, dword [0x4c1c9c]
call fcn.00464f08
test al, al
je 0x461ff1
mov eax, dword [0x4c1cc0]
call fcn.00405fe8
mov edi, eax
cmp edi, 0
jl 0x461ff1
push 5
mov eax, dword [0x4c1cc0]
mov eax, dword [eax + edi*4]
push eax
call sub.user32.dll_ShowWindow
dec edi
cmp edi, 0xffffffff
jne 0x461fdb
mov eax, dword [esi + 0x98]
mov edi, dword [eax + 8]
dec edi
cmp edi, 0
jl 0x462020
cmp bl, 1
cmc
sbb eax, eax
push eax
mov edx, edi
mov eax, dword [esi + 0x98]
call fcn.00419b50
push eax
call sub.user32.dll_ShowOwnedPopups
dec edi
cmp edi, 0xffffffff
jne 0x462000
mov eax, dword [esi + 0x98]
mov edx, dword [eax]
call dword [edx + 8]
push 0
mov eax, 0x4c1cc0
mov ecx, 1
mov edx, dword [0x461df4]
call fcn.0040619c
add esp, 4
pop edi
pop esi
pop ebx
ret
Function at 0x462b2c
Capabilities:
Get graphical window text

Disassembly:
push ebx
push esi
add esp, 0xfffffefc
mov esi, edx
mov ebx, eax
cmp byte [ebx + 0xac], 0
je 0x462b96
mov eax, ebx
call fcn.00464f08
test al, al
jne 0x462b96
push pe_nt_image_headers32
lea eax, [esp + 4]
push eax
mov eax, dword [ebx + 0x30]
push eax
call sub.user32.dll_GetWindowTextA
mov ecx, eax
mov edx, esp
mov eax, esi
call fcn.00404df8
mov eax, dword [esi]
mov dword [esp + 0x100], eax
mov eax, dword [esp + 0x100]
test eax, eax
je 0x462b83
sub eax, 4
mov eax, dword [eax]
test eax, eax
jne 0x462ba3
mov eax, esi
mov edx, dword [ebx + 0x8c]
call fcn.00404d5c
jmp 0x462ba3
mov eax, esi
mov edx, dword [ebx + 0x8c]
call fcn.00404d5c
add esp, 0x104
pop esi
pop ebx
ret

Function at 0x46402c
Capabilities:
Hide graphical window

Disassembly:
push ebx
push esi
mov ebx, eax
mov esi, dword [ebx + 0x84]
test esi, esi
je 0x46409a
mov eax, esi
call fcn.0044cc04
test al, al
je 0x46409a
mov eax, dword [ebx + 0x84]
call fcn.0044c864
push eax
call sub.user32.dll_IsWindowVisible
test eax, eax
je 0x46409a
mov eax, dword [ebx + 0x84]
mov edx, dword [eax]
call dword [edx + 0xf0]
test al, al
je 0x46408e
push 0
mov eax, dword [ebx + 0x84]
call fcn.0044c864
push eax
call sub.user32.dll_ShowWindow
xor edx, edx
mov eax, dword [ebx + 0x84]
call fcn.0044469c
jmp 0x46409a
mov cl, 1
mov edx, dword [ebx + 0x74]
mov eax, ebx
call fcn.00463e68
pop esi
pop ebx
ret
Function at 0x4658cc
Capabilities:
Get hostname

Disassembly:
push ebp
mov ebp, esp
add esp, 0xffffffa8
push ebx
push esi
push edi
xor ebx, ebx
mov dword [ebp - 0x54], ebx
mov dword [ebp - 0x58], ebx
mov dword [ebp - 0x50], ebx
mov dword [ebp - 0x4c], ebx
mov dword [ebp - 0x14], ecx
mov dword [ebp - 0x10], edx
mov ebx, eax
lea eax, [ebp - 0xc]
mov edx, dword [0x407d30]
call fcn.004057a8
xor eax, eax
push ebp
push 0x465a6d
push dword fs:[eax]
mov dword fs:[eax], esp
cmp dword [0x4b991c], 0
jne 0x465927
mov ecx, dword [0x4bc45c]
mov dl, 1
mov eax, dword [0x408544]
call fcn.0040d5b4
call fcn.0040467c
lea eax, [ebp - 0x28]
xor ecx, ecx
mov edx, 0x10
call fcn.00403658
mov eax, ebx
call fcn.00405658
mov dword [ebp - 0x24], eax
mov esi, 0x465a7c
lea edi, [ebp - 0x38]
movsd dword es:[edi], dword [esi]
movsd dword es:[edi], dword [esi]
movsd dword es:[edi], dword [esi]
movsd dword es:[edi], dword [esi]
lea eax, [ebp - 0x38]
mov dword [ebp - 0xc], eax
lea eax, [ebp - 8]
call fcn.0040688c
xor eax, eax
mov dword [ebp - 4], eax
mov eax, ebx
call fcn.00405668
test eax, eax
jle 0x465a10
mov dword [ebp - 0x18], 0x10
lea eax, [ebp - 0x18]
push eax
lea eax, [ebp - 0x48]
push eax
call sub.KERNEL32.DLL_GetComputerNameA
test eax, eax
je 0x4659fc
lea eax, [ebp - 0x4c]
lea edx, [ebp - 0x48]
mov ecx, 0x10
call fcn.00404f78
mov edi, dword [ebp - 0x4c]
test edi, edi
je 0x4659a2
sub edi, 4
mov edi, dword [edi]
lea eax, [ebp - 0x50]
mov edx, ebx
call fcn.00404f90
mov esi, dword [ebp - 0x50]
test esi, esi
je 0x4659b8
sub esi, 4
mov esi, dword [esi]
push esi
lea eax, [ebp - 0x54]
mov edx, ebx
call fcn.00404f90
mov eax, dword [ebp - 0x54]
call fcn.00405198
push eax
push edi
lea eax, [ebp - 0x58]
lea edx, [ebp - 0x48]
mov ecx, 0x10
call fcn.00404f78
mov eax, dword [ebp - 0x58]
call fcn.00405198
push eax
push 1
push 0x400
call sub.KERNEL32.DLL_CompareStringA
sub eax, 2
test eax, eax
sete al
jmp 0x4659fe
xor eax, eax
test al, al
je 0x465a09
mov ebx, 0x15
jmp 0x465a15
mov ebx, 0x10
jmp 0x465a15
mov ebx, 0x15
lea eax, [ebp - 0xc]
push eax
push 1
lea eax, [ebp - 0x28]
push eax
push ebx
push 0
mov eax, dword [ebp - 0x10]
push eax
call dword [0x4b991c]
call fcn.004656f0
mov eax, dword [ebp - 4]
call fcn.004656f0
mov eax, dword [ebp - 0x14]
mov edx, dword [ebp - 8]
call fcn.004068a4
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x465a74
lea eax, [ebp - 0x58]
mov edx, 4
call fcn.00404d2c
lea eax, [ebp - 0xc]
mov edx, dword [0x407d30]
call fcn.00405878
ret
Function at 0x46c3b0
Capabilities:
Encode data using base64

Disassembly:
push ebx
push esi
push edi
push ebp
push ecx
mov dword [esp], ecx
mov esi, eax
mov ebp, edx
xor ebx, ebx
xor edi, edi
mov eax, dword [esp]
mov ecx, 3
cdq
idiv ecx
test eax, eax
jle 0x46c44a
movzx edx, byte [esi + ebx]
shr edx, 2
movzx edx, byte [edx + 0x4b99c4]
mov byte [ebp + edi], dl
movzx edx, byte [esi + ebx]
and dl, 3
movzx edx, dl
shl edx, 4
movzx ecx, byte [esi + ebx + 1]
shr ecx, 4
add edx, ecx
movzx edx, byte [edx + 0x4b99c4]
push edx
pop edx
mov byte [ebp + edi + 1], dl
movzx edx, byte [esi + ebx + 1]
and dl, 0xf
movzx edx, dl
add edx, edx
add edx, edx
movzx ecx, byte [esi + ebx + 2]
shr ecx, 6
add edx, ecx
movzx edx, byte [edx + 0x4b99c4]
push edx
pop edx
mov byte [ebp + edi + 2], dl
movzx edx, byte [esi + ebx + 2]
and dl, 0x3f
movzx edx, dl
movzx edx, byte [edx + 0x4b99c4]
mov byte [ebp + edi + 3], dl
add edi, 4
add ebx, 3
dec eax
jne 0x46c3cf
mov eax, dword [esp]
mov ecx, 3
cdq
idiv ecx
dec edx
je 0x46c460
dec edx
je 0x46c495
jmp 0x46c4e6
movzx eax, byte [esi + ebx]
shr eax, 2
movzx eax, byte [eax + 0x4b99c4]
mov byte [ebp + edi], al
movzx eax, byte [esi + ebx]
and al, 3
movzx eax, al
shl eax, 4
movzx eax, byte [eax + 0x4b99c4]
mov byte [ebp + edi + 1], al
mov byte [ebp + edi + 2], 0x3d
mov byte [ebp + edi + 3], 0x3d
jmp 0x46c4e6
movzx eax, byte [esi + ebx]
shr eax, 2
movzx eax, byte [eax + 0x4b99c4]
mov byte [ebp + edi], al
movzx eax, byte [esi + ebx]
and al, 3
movzx eax, al
shl eax, 4
movzx edx, byte [esi + ebx + 1]
shr edx, 4
add eax, edx
movzx eax, byte [eax + 0x4b99c4]
mov byte [ebp + edi + 1], al
movzx eax, byte [esi + ebx + 1]
and al, 0xf
movzx eax, al
add eax, eax
add eax, eax
movzx eax, byte [eax + 0x4b99c4]
mov byte [ebp + edi + 2], al
mov byte [ebp + edi + 3], 0x3d
mov eax, dword [esp]
add eax, 2
mov ecx, 3
cdq
idiv ecx
add eax, eax
add eax, eax
pop edx
pop ebp
pop edi
pop esi
pop ebx
ret

Function at 0x46d244
Capabilities:
Encode data using xor

Disassembly:
push ebx
push esi
push edi
mov esi, ecx
test esi, esi
jbe 0x46d265
mov ecx, 1
mov ebx, edx
add ebx, ecx
dec ebx
movzx ebx, byte [ebx]
mov edi, eax
add edi, ecx
dec edi
xor byte [edi], bl
inc ecx
dec esi
jne 0x46d252
pop edi
pop esi
pop ebx
ret
Function at 0x47294c
Capabilities:
Encode data using xor
Encrypt data using rc4 prga

Disassembly:
push ebx
push esi
push edi
push ebp
add esp, 0xfffffff8
mov esi, ecx
mov edi, edx
mov ebx, eax
mov eax, esi
mov edx, ebx
call fcn.00404d5c
mov eax, dword [esi]
mov dword [esp + 4], eax
mov eax, dword [esp + 4]
test eax, eax
je 0x472975
sub eax, 4
mov eax, dword [eax]
test ax, ax
jbe 0x4729bb
mov word [esp], ax
mov bx, 1
mov eax, esi
call fcn.004051f8
movzx ebp, bx
mov edx, dword [esi]
movzx edx, byte [edx + ebp - 1]
movzx ecx, di
shr ecx, 8
xor dl, cl
mov byte [eax + ebp - 1], dl
mov eax, dword [esi]
movzx eax, byte [eax + ebp - 1]
add di, ax
imul ax, di, 0xce6d
add ax, 0x58bf
mov edi, eax
inc ebx
dec word [esp]
jne 0x472982
pop ecx
pop edx
pop ebp
pop edi
pop esi
pop ebx
ret

Function at 0x475b8c
Capabilities:
Get common file path
Query environment variable

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffde0
push ebx
xor eax, eax
mov dword [ebp - 0x220], eax
mov dword [ebp - 0x21c], eax
mov dword [ebp - 0x218], eax
mov dword [ebp - 0x214], eax
mov dword [ebp - 4], eax
xor eax, eax
push ebp
push 0x475d5c
push dword fs:[eax]
mov dword fs:[eax], esp
lea eax, [ebp - 0x214]
call fcn.00475a48
mov edx, dword [ebp - 0x214]
mov eax, dword [0x4bc8d0]
call fcn.00404d5c
mov edx, dword [0x4bc8d0]
mov edx, dword [edx]
mov eax, dword [0x4bcb10]
mov ecx, 0x475d70
call fcn.00405020
lea eax, [ebp - 4]
mov edx, 0x3e8
call fcn.00405428
mov ebx, dword [ebp - 4]
test ebx, ebx
je 0x475c0c
sub ebx, 4
mov ebx, dword [ebx]
push ebx
mov eax, dword [ebp - 4]
call fcn.00405198
push eax
push 0x475d7c
call sub.KERNEL32.DLL_GetEnvironmentVariableA
mov edx, eax
lea eax, [ebp - 4]
call fcn.00405428
push dword [ebp - 4]
push 0x475d8c
push 0x475d70
mov eax, dword [0x4bc468]
mov edx, 3
call fcn.0040509c
lea eax, [ebp - 0x108]
xor ecx, ecx
mov edx, pe_nt_image_headers32
call fcn.00403658
push pe_nt_image_headers32
lea eax, [ebp - 0x108]
push eax
call sub.KERNEL32.DLL_GetSystemDirectoryA
lea eax, [ebp - 0x218]
lea edx, [ebp - 0x108]
mov ecx, pe_nt_image_headers32
call fcn.00404f78
mov edx, dword [ebp - 0x218]
mov eax, dword [0x4bc4a0]
mov ecx, 0x475d8c
call fcn.00405020
lea eax, [ebp - 0x108]
xor ecx, ecx
mov edx, pe_nt_image_headers32
call fcn.00403658
lea eax, [ebp - 8]
push eax
push 6
push 0
call sub.shell32.dll_SHGetSpecialFolderLocation
lea eax, [ebp - 0x108]
push eax
mov eax, dword [ebp - 8]
push eax
call sub.shell32.dll_SHGetPathFromIDListA
lea eax, [ebp - 0x21c]
lea edx, [ebp - 0x108]
mov ecx, pe_nt_image_headers32
call fcn.00404f78
mov edx, dword [ebp - 0x21c]
mov eax, dword [0x4bca30]
mov ecx, 0x475d8c
call fcn.00405020
lea eax, [ebp - 8]
push eax
push 0x10
push 0
call sub.shell32.dll_SHGetSpecialFolderLocation
lea eax, [ebp - 0x20d]
push eax
mov eax, dword [ebp - 8]
push eax
call sub.shell32.dll_SHGetPathFromIDListA
lea eax, [ebp - 0x220]
lea edx, [ebp - 0x20d]
mov ecx, 0x105
call fcn.00404f78
mov edx, dword [ebp - 0x220]
mov eax, dword [0x4bcab4]
mov ecx, 0x475d8c
call fcn.00405020
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x475d63
lea eax, [ebp - 0x220]
mov edx, 4
call fcn.00404d2c
lea eax, [ebp - 4]
call fcn.00404d08
ret
Function at 0x475ed4
Capabilities:
Query environment variable

Disassembly:
push ebp
mov ebp, esp
push 0
push 0
push ebx
xor eax, eax
push ebp
push 0x475f84
push dword fs:[eax]
mov dword fs:[eax], esp
lea eax, [ebp - 8]
call fcn.00475df8
mov edx, dword [ebp - 8]
mov eax, dword [0x4bc8d0]
call fcn.00404d5c
mov edx, dword [0x4bc8d0]
mov edx, dword [edx]
mov eax, dword [0x4bcb10]
mov ecx, 0x475f98
call fcn.00405020
lea eax, [ebp - 4]
mov edx, 0x3e8
call fcn.00405428
mov ebx, dword [ebp - 4]
test ebx, ebx
je 0x475f2f
sub ebx, 4
mov ebx, dword [ebx]
push ebx
mov eax, dword [ebp - 4]
call fcn.00405198
push eax
push 0x475fa4
call sub.KERNEL32.DLL_GetEnvironmentVariableA
mov edx, eax
lea eax, [ebp - 4]
call fcn.00405428
push dword [ebp - 4]
push 0x475fb4
push 0x475f98
mov eax, dword [0x4bcb00]
mov edx, 3
call fcn.0040509c
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x475f8b
lea eax, [ebp - 8]
mov edx, 2
call fcn.00404d2c
ret

Function at 0x475fb8
Capabilities:
Check os version

Disassembly:
push ebx
add esp, 0xffffff6c
xor ebx, ebx
mov dword [esp], 0x94
push esp
call sub.KERNEL32.DLL_GetVersionExA
test eax, eax
je 0x47605b
mov edx, dword [esp + 8]
mov eax, dword [esp + 4]
mov ecx, dword [esp + 0x10]
dec ecx
je 0x476025
dec ecx
jne 0x47605b
cmp eax, 4
jg 0x475ff1
mov bl, 8
jmp 0x47605b
cmp eax, 5
jne 0x475ffe
test edx, edx
jne 0x475ffe
mov bl, 0xb
jmp 0x47605b
cmp eax, 5
jne 0x47600c
cmp edx, 1
jne 0x47600c
mov bl, 0xc
jmp 0x47605b
cmp eax, 6
jne 0x476019
test edx, edx
jne 0x476019
mov bl, 0xe
jmp 0x47605b
cmp eax, 6
jne 0x47605b
dec edx
jne 0x47605b
mov bl, 0xf
jmp 0x47605b
cmp eax, 4
jne 0x476032
test edx, edx
jne 0x476032
mov bl, 3
jmp 0x47605b
cmp eax, 4
jne 0x47604b
cmp edx, 0xa
jne 0x47604b
cmp byte [esp + 0x15], 0x41
jne 0x476047
mov bl, 6
jmp 0x47605b
mov bl, 5
jmp 0x47605b
cmp eax, 4
jne 0x476059
cmp edx, 0x5a
jne 0x476059
mov bl, 7
jmp 0x47605b
xor ebx, ebx
mov eax, ebx
add esp, 0x94
pop ebx
ret

Function at 0x476068
Capabilities:
Get common file path

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffeec
push ebx
push esi
xor ecx, ecx
mov dword [ebp - 0x114], ecx
mov dword [ebp - 4], ecx
mov ebx, edx
mov esi, eax
xor eax, eax
push ebp
push 0x47610f
push dword fs:[eax]
mov dword fs:[eax], esp
mov eax, ebx
call fcn.00404d08
lea eax, [ebp - 8]
push eax
push esi
push 0
call sub.shell32.dll_SHGetSpecialFolderLocation
test eax, eax
jne 0x4760ee
lea eax, [ebp - 0x10d]
push eax
mov eax, dword [ebp - 8]
push eax
call sub.shell32.dll_SHGetPathFromIDListA
test eax, eax
je 0x4760ee
lea eax, [ebp - 0x114]
lea edx, [ebp - 0x10d]
mov ecx, 0x105
call fcn.00404f78
mov edx, dword [ebp - 0x114]
lea eax, [ebp - 4]
mov ecx, 0x476124
call fcn.00405020
mov eax, ebx
mov edx, dword [ebp - 4]
call fcn.00404d5c
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x476116
lea eax, [ebp - 0x114]
call fcn.00404d08
lea eax, [ebp - 4]
call fcn.00404d08
ret
Function at 0x479824
Capabilities:
Check for software breakpoints

Disassembly:
push ebx
mov ebx, eax
cmp dword [ebx + 0x14], 0xca
jne 0x479852
mov eax, ebx
call fcn.0047a2d8
cmp dword [ebx + 0x40], 0
je 0x47984b
mov dword [ebx + 0x14], 0xcf
mov eax, 1
pop ebx
ret
mov dword [ebx + 0x14], 0xcb
cmp dword [ebx + 0x14], 0xcb
jne 0x4798c3
mov edx, dword [ebx + 0x1b4]
cmp dword [edx + 0x10], 0
je 0x4798b5
cmp dword [ebx + 8], 0
je 0x479874
mov eax, ebx
mov edx, dword [eax + 8]
call dword [edx]
mov eax, ebx
mov edx, dword [eax + 0x1b4]
call dword [edx]
test eax, eax
jne 0x479886
xor eax, eax
pop ebx
ret
cmp eax, 2
je 0x4798b5
cmp dword [ebx + 8], 0
je 0x479867
cmp eax, 3
je 0x479899
dec eax
jne 0x479867
mov edx, dword [ebx + 8]
inc dword [edx + 4]
mov ecx, dword [edx + 4]
mov eax, dword [ebx + 8]
cmp ecx, dword [eax + 8]
jl 0x479867
mov edx, dword [ebx + 0x140]
add dword [eax + 8], edx
jmp 0x479867
mov ecx, dword [ebx + 0x90]
mov dword [ebx + 0x98], ecx
jmp 0x4798e1
cmp dword [ebx + 0x14], 0xcc
je 0x4798e1
mov eax, dword [ebx]
mov dword [eax + 0x14], 0x14
mov edx, dword [ebx + 0x14]
mov dword [eax + 0x18], edx
mov eax, ebx
mov edx, dword [eax]
call dword [edx]
mov eax, ebx
call fcn.004798ec
pop ebx
ret

Function at 0x4908c8
Capabilities:
Create http request

Disassembly:
push ebp
mov ebp, esp
add esp, 0xffffffb8
push ebx
mov dword [ebp - 8], edx
mov dword [ebp - 4], eax
mov eax, dword [ebp - 4]
call fcn.00405188
mov eax, dword [ebp - 8]
call fcn.00405188
xor eax, eax
push ebp
push 0x4909e5
push dword fs:[eax]
mov dword fs:[eax], esp
mov byte [ebp - 9], 0
mov ebx, 0x14
mov dword [ebp - 0x24], 0x14
xor eax, eax
mov dword [ebp - 0x20], eax
mov dword [ebp - 0x1c], 3
mov dword [ebp - 0x48], 1
mov dword [ebp - 0x44], 3
mov dword [ebp - 0x3c], 2
mov eax, dword [ebp - 8]
call fcn.00405198
mov dword [ebp - 0x38], eax
mov dword [ebp - 0x30], 3
mov eax, 0x4909f8
mov dword [ebp - 0x2c], eax
lea eax, [ebp - 0x48]
mov dword [ebp - 0x14], eax
push 0
push 0
push 0
push 1
mov eax, dword [ebp - 4]
call fcn.00405198
push eax
call sub.wininet.dll_InternetOpenA
mov dword [ebp - 0x10], eax
cmp dword [ebp - 0x10], 0
je 0x4909ca
xor eax, eax
push ebp
push 0x4909c3
push dword fs:[eax]
mov dword fs:[eax], esp
push ebx
lea eax, [ebp - 0x24]
push eax
push 0x4b
mov eax, dword [ebp - 0x10]
push eax
call sub.wininet.dll_InternetSetOptionA
cmp eax, 1
sbb eax, eax
inc eax
mov byte [ebp - 9], al
cmp byte [ebp - 9], 0
je 0x4909a3
push 0
push 0
push 0x25
mov eax, dword [ebp - 0x10]
push eax
call sub.wininet.dll_InternetSetOptionA
test eax, eax
jne 0x4909a7
xor eax, eax
jmp 0x4909a9
mov al, 1
mov byte [ebp - 9], al
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x4909ca
mov eax, dword [ebp - 0x10]
push eax
call sub.wininet.dll_InternetCloseHandle
ret
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x4909ec
lea eax, [ebp - 8]
mov edx, 2
call fcn.00404d2c
ret