joyce8/EMBER2024-capa huggingface dataset:
Function at 0x43ecec
Capabilities:
Get graphical window text

Disassembly:
push 4
mov eax, 0x46f910
call fcn.004593b4
mov esi, ecx
cmp dword [esi + 0x50], 0
jne 0x43ed11
push dword [ebp + 0xc]
push dword [ebp + 8]
push dword [esi + 0x20]
call dword [sym.imp.USER32.dll_GetWindowTextW]
jmp 0x43ed57
lea ecx, [ebp - 0x10]
call fcn.00401b50
mov ecx, dword [esi + 0x50]
mov eax, dword [ecx]
and dword [ebp - 4], 0
lea edx, [ebp - 0x10]
push edx
call dword [eax + 0x8c]
push 0xffffffffffffffff
push dword [ebp - 0x10]
push dword [ebp + 0xc]
push dword [ebp + 8]
call fcn.00438c70
add esp, 0x10
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.dll_lstrlenW]
mov ecx, dword [ebp - 0x10]
add ecx, 0xfffffff0
mov esi, eax
call fcn.00401160
mov eax, esi
call fcn.0045948c
ret 8

Function at 0x444dcd
Capabilities:
Extract resource via kernel32 functions

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push ecx
push ebx
push esi
push edi
xor ebx, ebx
xor edi, edi
mov dword [ebp - 4], ecx
cmp dword [ebp + 8], ebx
je 0x444e14
call fcn.0043e38a
mov esi, dword [eax + 0xc]
push 0xf0
push dword [ebp + 8]
push esi
call dword [sym.imp.KERNEL32.dll_FindResourceW]
test eax, eax
je 0x444e14
push eax
push esi
call dword [sym.imp.KERNEL32.dll_LoadResource]
mov ebx, eax
test ebx, ebx
je 0x444e30
push ebx
call dword [sym.imp.KERNEL32.dll_LockResource]
mov edi, eax
mov ecx, dword [ebp - 4]
push edi
call fcn.00444945
mov esi, eax
test edi, edi
je 0x444e2e
test ebx, ebx
je 0x444e2e
push ebx
call dword [sym.imp.KERNEL32.dll_FreeResource]
mov eax, esi
pop edi
pop esi
pop ebx
leave
ret 4

Function at 0x454c4f
Capabilities:
Extract resource via kernel32 functions

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push ebx
mov ebx, dword [ebp + 8]
push esi
push edi
mov edi, ecx
mov dword [edi + 0x58], ebx
test ebx, 0xffff0000
jne 0x454c73
cmp dword [edi + 0x54], 0
jne 0x454c73
movzx eax, bx
mov dword [edi + 0x54], eax
call fcn.0043e38a
mov esi, dword [eax + 0xc]
push 5
push ebx
push esi
call dword [sym.imp.KERNEL32.dll_FindResourceW]
push eax
push esi
call dword [sym.imp.KERNEL32.dll_LoadResource]
push esi
push dword [ebp + 0xc]
mov ebx, eax
push ebx
mov ecx, edi
call fcn.00454c10
push ebx
mov esi, eax
call dword [sym.imp.KERNEL32.dll_FreeResource]
pop edi
mov eax, esi
pop esi
pop ebx
pop ebp
ret 8

Function at 0x456bcf
Capabilities:
Terminate process

Disassembly:
cmp ecx, dword [0x48e900]
jne 0x456bd9
repz ret
jmp fcn.0045d31f
Function at 0x468f30
Capabilities:
Link many functions at runtime

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x14
push ebx
push esi
push edi
call fcn.0045cc83
and dword [ebp - 4], 0
cmp dword [0x492ce0], 0
mov ebx, eax
jne 0x468fe1
push str.USER32.DLL
call dword [sym.imp.KERNEL32.dll_LoadLibraryA]
mov edi, eax
test edi, edi
je 0x469092
mov esi, dword [sym.imp.KERNEL32.dll_GetProcAddress]
push str.MessageBoxA
push edi
call esi
test eax, eax
je 0x469092
push eax
call fcn.0045cc11
mov dword [esp], 0x479bf0
push edi
mov dword [0x492ce0], eax
call esi
push eax
call fcn.0045cc11
mov dword [esp], 0x479bdc
push edi
mov dword [0x492ce4], eax
call esi
push eax
call fcn.0045cc11
mov dword [esp], str.GetUserObjectInformationA
push edi
mov dword [0x492ce8], eax
call esi
push eax
call fcn.0045cc11
pop ecx
mov dword [0x492cf0], eax
test eax, eax
je 0x468fe1
push str.GetProcessWindowStation
push edi
call esi
push eax
call fcn.0045cc11
pop ecx
mov dword [0x492cec], eax
mov eax, dword [0x492cec]
cmp eax, ebx
je 0x469039
cmp dword [0x492cf0], ebx
je 0x469039
push eax
call fcn.0045cc8c
push dword [0x492cf0]
mov esi, eax
call fcn.0045cc8c
pop ecx
pop ecx
mov edi, eax
test esi, esi
je 0x469039
test edi, edi
je 0x469039
call esi
test eax, eax
je 0x469030
lea ecx, [ebp - 8]
push ecx
push 0xc
lea ecx, [ebp - 0x14]
push ecx
push 1
push eax
call edi
test eax, eax
je 0x469030
test byte [ebp - 0xc], 1
jne 0x469039
or dword [ebp + 0x10], 0x200000
jmp 0x469072
mov eax, dword [0x492ce4]
cmp eax, ebx
je 0x469072
push eax
call fcn.0045cc8c
pop ecx
test eax, eax
je 0x469072
call eax
mov dword [ebp - 4], eax
test eax, eax
je 0x469072
mov eax, dword [0x492ce8]
cmp eax, ebx
je 0x469072
push eax
call fcn.0045cc8c
pop ecx
test eax, eax
je 0x469072
push dword [ebp - 4]
call eax
mov dword [ebp - 4], eax
push dword [0x492ce0]
call fcn.0045cc8c
pop ecx
test eax, eax
je 0x469092
push dword [ebp + 0x10]
push dword [ebp + 0xc]
push dword [ebp + 8]
push dword [ebp - 4]
call eax
jmp 0x469094
xor eax, eax
pop edi
pop esi
pop ebx
leave
ret
Function at 0x417504
Capabilities:
Delete registry value

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push ecx
push ecx
and dword [ebp - 4], 0
lea eax, [ebp - 4]
push edi
push eax
push 2
mov ecx, 0x80000002
call fcn.0041e092
mov edi, eax
mov dword [ebp - 8], edi
test edi, edi
js 0x417546
push dword [ebp + 8]
push dword [ebp - 4]
call dword [sym.imp.ADVAPI32.dll_RegDeleteValueW]
lea edx, [ebp - 8]
mov ecx, eax
call fcn.00425c37
mov edi, dword [ebp - 8]
test eax, eax
jne 0x41754d
mov ecx, edi
call fcn.0042752a
mov ecx, edi
call fcn.00427547
cmp dword [ebp - 4], 0
je 0x417563
push dword [ebp - 4]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov eax, edi
pop edi
mov esp, ebp
pop ebp
ret 4

Function at 0x418b71
Capabilities:
Delete registry value

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push ecx
push ecx
and dword [ebp - 4], 0
lea eax, [ebp - 4]
push edi
push eax
push 2
mov edx, 0x407700
mov ecx, 0x80000002
call fcn.0041e092
mov edi, eax
mov dword [ebp - 8], edi
test edi, edi
js 0x418bba
push 0x407770
push dword [ebp - 4]
call dword [sym.imp.ADVAPI32.dll_RegDeleteValueW]
lea edx, [ebp - 8]
mov ecx, eax
call fcn.00425c37
mov edi, dword [ebp - 8]
test eax, eax
jne 0x418bc1
mov ecx, edi
call fcn.0042752a
mov ecx, edi
call fcn.00427547
cmp dword [ebp - 4], 0
je 0x418bd7
push dword [ebp - 4]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov eax, edi
pop edi
mov esp, ebp
pop ebp
ret 4
Function at 0x41a77d
Capabilities:
Set registry value

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0xc
push ebx
push edi
lea eax, [ebp - 4]
xor ebx, ebx
push eax
push 2
mov ecx, 0x80000002
mov dword [ebp - 4], ebx
mov dword [ebp - 0xc], ebx
call fcn.0041e092
mov edi, eax
test edi, edi
js 0x41a7d8
xor ecx, ecx
mov dword [ebp - 0xc], ebx
call fcn.00427547
push dword [ebp + 0x10]
mov dword [ebp - 8], ebx
push dword [ebp + 0xc]
push 1
push ebx
push dword [ebp + 8]
push dword [ebp - 4]
call dword [sym.imp.ADVAPI32.dll_RegSetValueExW]
lea edx, [ebp - 8]
mov ecx, eax
call fcn.00425c37
mov edi, dword [ebp - 8]
test eax, eax
jne 0x41a7df
mov ecx, edi
call fcn.0042752a
mov ecx, edi
call fcn.00427547
lea ecx, [ebp - 0xc]
call fcn.0041d834
cmp dword [ebp - 4], ebx
je 0x41a7fc
push dword [ebp - 4]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov eax, edi
pop edi
pop ebx
mov esp, ebp
pop ebp
ret 0xc

Function at 0x41a9f7
Capabilities:
Query environment variable

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x41c
mov eax, dword [0x477008]
xor eax, ebp
mov dword [ebp - 4], eax
push esi
push 0x410
lea eax, [ebp - 0x418]
mov esi, ecx
push 0
push eax
call sub.msvcrt.dll_memset
add esp, 0xc
lea eax, [ebp - 0x418]
push 0x208
push eax
push 0x408a14
call dword [sym.imp.KERNEL32.dll_ExpandEnvironmentStringsW]
test eax, eax
jne 0x41aa51
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov ecx, eax
call fcn.004247f6
mov esi, eax
jmp 0x41aa64
mov edx, esi
lea ecx, [ebp - 0x418]
call fcn.004259da
mov esi, eax
test esi, esi
jns 0x41aa6b
mov ecx, esi
call fcn.0042752a
mov ecx, esi
call fcn.00427547
mov ecx, dword [ebp - 4]
mov eax, esi
xor ecx, ebp
pop esi
call fcn.00456cf0
mov esp, ebp
pop ebp
ret

Function at 0x41ad02
Capabilities:
Set registry value

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0xc
push ebx
push edi
lea eax, [ebp - 4]
xor ebx, ebx
push eax
push 2
mov ecx, 0x80000002
mov dword [ebp - 4], ebx
mov dword [ebp - 0xc], ebx
call fcn.0041e092
mov edi, eax
test edi, edi
js 0x41ad5e
xor ecx, ecx
mov dword [ebp - 0xc], ebx
call fcn.00427547
push dword [ebp + 0x10]
lea eax, [ebp + 0xc]
mov dword [ebp - 8], ebx
push eax
push 4
push ebx
push dword [ebp + 8]
push dword [ebp - 4]
call dword [sym.imp.ADVAPI32.dll_RegSetValueExW]
lea edx, [ebp - 8]
mov ecx, eax
call fcn.00425c37
mov edi, dword [ebp - 8]
test eax, eax
jne 0x41ad65
mov ecx, edi
call fcn.0042752a
mov ecx, edi
call fcn.00427547
lea ecx, [ebp - 0xc]
call fcn.0041d834
cmp dword [ebp - 4], ebx
je 0x41ad82
push dword [ebp - 4]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov eax, edi
pop edi
pop ebx
mov esp, ebp
pop ebp
ret 0xc
Function at 0x41b92e
Capabilities:
Enumerate processes on remote desktop session host

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x22c
mov eax, dword [0x477008]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
push esi
push edi
xor edi, edi
mov esi, ecx
mov dword [ebp - 0x214], edi
mov ebx, edi
mov dword [ebp - 0x21c], edi
mov dword [ebp - 0x224], edi
mov dword [ebp - 0x218], edi
test esi, esi
jne 0x41b972
mov esi, 0x80070057
jmp 0x41bb01
push ecx
call fcn.0041c628
test al, al
jne 0x41b986
mov esi, 0x80004001
jmp 0x41bb01
push esi
mov edx, 0x104
lea ecx, [ebp - 0x210]
call fcn.00422d13
mov esi, eax
test esi, esi
js 0x41bb01
lea eax, [ebp - 0x228]
push eax
call dword [sym.imp.KERNEL32.dll_GetCurrentProcessId]
push eax
call dword [sym.imp.KERNEL32.dll_ProcessIdToSessionId]
test eax, eax
jne 0x41b9cd
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov ecx, eax
call fcn.004247f6
mov esi, eax
jmp 0x41bb01
mov ecx, dword [ebp - 0x228]
test ecx, ecx
jne 0x41baee
lea eax, [ebp - 0x224]
xor edx, edx
push eax
inc edx
mov ecx, 0x408db8
call fcn.0041c297
mov esi, eax
test esi, esi
js 0x41bb01
xor edx, edx
lea eax, [ebp - 0x218]
inc edx
mov ecx, 0x408dec
push eax
mov dword [ebp - 0x22c], edx
call fcn.0041c297
mov esi, eax
test esi, esi
jns 0x41ba25
mov ecx, esi
call fcn.0042752a
jmp 0x41bab0
lea eax, [ebp - 0x21c]
xor ebx, ebx
push eax
lea eax, [ebp - 0x214]
inc ebx
push eax
push ebx
push edi
push edi
mov dword [ebp - 0x220], ebx
call dword [sym.imp.WTSAPI32.dll_WTSEnumerateSessionsW]
test eax, eax
jne 0x41ba5a
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov ecx, eax
call fcn.004247f6
mov esi, eax
jmp 0x41ba19
mov eax, dword [ebp - 0x21c]
mov ebx, edi
test eax, eax
je 0x41baaa
mov edx, dword [ebp - 0x214]
mov ecx, dword [edi + edx]
test ecx, ecx
je 0x41ba99
mov edx, dword [edi + edx + 8]
test edx, edx
je 0x41ba80
cmp edx, 4
jne 0x41ba99
push 0
lea edx, [ebp - 0x210]
call fcn.0041c3bf
mov esi, eax
test esi, esi
js 0x41baa3
mov eax, dword [ebp - 0x21c]
inc ebx
add edi, 0xc
cmp ebx, eax
jb 0x41ba66
jmp 0x41baaa
mov ecx, esi
call fcn.0042752a
mov ebx, dword [ebp - 0x220]
cmp dword [ebp - 0x224], 0
jne 0x41bacc
lea eax, [ebp - 0x22c]
xor edx, edx
push eax
mov ecx, 0x408db8
call fcn.0041c297
test ebx, ebx
je 0x41bb08
cmp dword [ebp - 0x218], 0
jne 0x41bb08
lea eax, [ebp - 0x218]
xor edx, edx
push eax
mov ecx, 0x408dec
call fcn.0041c297
jmp 0x41bb08
push 1
lea edx, [ebp - 0x210]
call fcn.0041c3bf
mov esi, eax
test esi, esi
jns 0x41bb08
mov ecx, esi
call fcn.0042752a
cmp dword [ebp - 0x214], 0
je 0x41bb1d
push dword [ebp - 0x214]
call dword [sym.imp.WTSAPI32.dll_WTSFreeMemory]
mov ecx, esi
call fcn.00427547
mov ecx, dword [ebp - 4]
mov eax, esi
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.00456cf0
mov esp, ebp
pop ebp
ret
Function at 0x41c3bf
Capabilities:
Create process on windows

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x70
push ebx
push esi
xor eax, eax
mov dword [ebp - 0x14], ecx
push edi
push 0x44
push eax
mov dword [ebp - 0x10], eax
mov esi, eax
mov dword [ebp - 8], eax
mov ebx, edx
lea eax, [ebp - 0x6c]
push eax
call sub.msvcrt.dll_memset
xor eax, eax
lea edi, [ebp - 0x24]
stosd dword es:[edi], eax
add esp, 0xc
stosd dword es:[edi], eax
stosd dword es:[edi], eax
stosd dword es:[edi], eax
xor edi, edi
mov dword [ebp - 0xc], edi
test ebx, ebx
jne 0x41c401
mov esi, 0x80070057
jmp 0x41c473
cmp dword [ebp + 8], esi
je 0x41c4d5
lea eax, [ebp - 8]
push eax
push 0xb
call dword [sym.imp.KERNEL32.dll_GetCurrentProcess]
push eax
call dword [sym.imp.ADVAPI32.dll_OpenProcessToken]
test eax, eax
je 0x41c464
push edi
push dword [ebp - 8]
lea eax, [ebp - 0xc]
mov dword [ebp - 0x6c], 0x44
push eax
mov dword [ebp - 0x64], 0x408e5c
call dword [sym.imp.USERENV.dll_CreateEnvironmentBlock]
test eax, eax
je 0x41c464
lea eax, [ebp - 0x24]
push eax
lea eax, [ebp - 0x6c]
push eax
push edi
push dword [ebp - 0xc]
push 0x408
push edi
push edi
push edi
push ebx
push edi
push dword [ebp - 8]
call dword [sym.imp.ADVAPI32.dll_CreateProcessAsUserW]
test eax, eax
jne 0x41c47a
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov ecx, eax
call fcn.004247f6
mov esi, eax
mov ecx, esi
call fcn.0042752a
cmp dword [ebp - 0x20], edi
je 0x41c488
push dword [ebp - 0x20]
call dword [sym.imp.KERNEL32.dll_CloseHandle]
cmp dword [ebp - 0x24], edi
je 0x41c496
push dword [ebp - 0x24]
call dword [sym.imp.KERNEL32.dll_CloseHandle]
cmp dword [ebp - 0xc], edi
je 0x41c4a4
push dword [ebp - 0xc]
call dword [sym.imp.USERENV.dll_DestroyEnvironmentBlock]
mov ecx, esi
call fcn.00427547
cmp dword [ebp - 8], edi
je 0x41c4bc
push dword [ebp - 8]
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov dword [ebp - 8], edi
cmp dword [ebp - 0x10], edi
je 0x41c4ca
push dword [ebp - 0x10]
call dword [sym.imp.KERNEL32.dll_CloseHandle]
pop edi
mov eax, esi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 4
lea eax, [ebp - 0x10]
push eax
push dword [ebp - 0x14]
call dword [sym.imp.WTSAPI32.dll_WTSQueryUserToken]
test eax, eax
je 0x41c464
lea eax, [ebp - 8]
push eax
push 1
push 2
push edi
push 0xb
push dword [ebp - 0x10]
call dword [sym.imp.ADVAPI32.dll_DuplicateTokenEx]
jmp 0x41c41d
Function at 0x41c729
Capabilities:
Get file size
Read file on windows

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x20
or dword [ebp - 0x14], 0xffffffff
xor eax, eax
push ebx
push esi
push edi
push eax
push eax
push 3
push eax
push 1
push 0x80000000
push ecx
mov edi, eax
call dword [sym.imp.KERNEL32.dll_CreateFileW]
push eax
lea ecx, [ebp - 0x14]
call fcn.004230d1
mov esi, dword [ebp - 0x14]
test esi, esi
je 0x41c8b3
cmp esi, 0xffffffff
je 0x41c8b3
lea eax, [ebp - 0x1c]
push eax
push esi
call dword [sym.imp.KERNEL32.dll_GetFileSize]
mov ebx, eax
mov dword [ebp - 8], ebx
cmp ebx, 0xffffffff
je 0x41c8b3
cmp dword [ebp - 0x1c], edi
je 0x41c796
mov ecx, 0x80070057
mov ebx, ecx
jmp 0x41c8c4
push 0
lea eax, [ebp - 0xc]
push eax
push 3
lea eax, [ebp - 4]
push eax
push esi
call dword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
je 0x41c8b3
cmp dword [ebp - 0xc], 2
mov al, byte [ebp - 3]
mov cl, byte [ebp - 4]
jb 0x41c7fc
cmp cl, 0xfe
jne 0x41c7cf
cmp al, 0xff
jne 0x41c7fc
mov dword [ebp - 0x10], 3
jmp 0x41c7df
cmp cl, 0xff
jne 0x41c7fc
cmp al, 0xfe
jne 0x41c7fc
mov dword [ebp - 0x10], 2
push 1
push 0
push 0xffffffffffffffff
push esi
call dword [sym.imp.KERNEL32.dll_SetFilePointer]
sub ebx, 2
mov dword [ebp - 8], ebx
test ebx, 1
je 0x41c82f
jmp 0x41c78a
cmp dword [ebp - 0xc], 3
jne 0x41c820
cmp cl, 0xef
jne 0x41c820
cmp al, 0xbb
jne 0x41c820
cmp byte [ebp - 2], 0xbf
jne 0x41c820
sub ebx, 3
mov dword [ebp - 0x10], 1
mov dword [ebp - 8], ebx
jmp 0x41c82f
xor eax, eax
push eax
push eax
push eax
push esi
mov dword [ebp - 0x10], eax
call dword [sym.imp.KERNEL32.dll_SetFilePointer]
lea eax, [ebp - 0x18]
mov ecx, ebx
push eax
push 2
pop edx
call fcn.004258c2
mov ebx, eax
test ebx, ebx
js 0x41c8c2
push dword [ebp - 0x18]
push 0x40
call dword [sym.imp.KERNEL32.dll_LocalAlloc]
mov dword [ebp - 0x20], eax
test eax, eax
jne 0x41c85e
xor edi, edi
mov ebx, 0x8007000e
jmp 0x41c8c2
mov ebx, dword [ebp - 8]
lea ecx, [ebp - 0xc]
push 0
push ecx
push ebx
push eax
push esi
mov edi, eax
call dword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
je 0x41c8b3
cmp ebx, dword [ebp - 0xc]
je 0x41c885
mov ecx, 0x8000ffff
jmp 0x41c78f
mov eax, dword [ebp - 0x18]
cmp eax, 2
jb 0x41c87b
mov ecx, dword [ebp - 0x20]
xor edi, edi
mov word [ecx + eax - 2], 0
mov eax, dword [ebp + 8]
mov dword [eax], ecx
mov eax, dword [ebp + 0xc]
mov ecx, dword [ebp + 0x10]
mov dword [eax], ebx
test ecx, ecx
je 0x41c8af
mov eax, dword [ebp - 0x10]
mov dword [ecx], eax
xor ebx, ebx
jmp 0x41c8c9
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov ecx, eax
call fcn.004247f6
mov ebx, eax
mov ecx, ebx
call fcn.0042752a
mov ecx, ebx
call fcn.00427547
test edi, edi
je 0x41c8db
push edi
call dword [sym.imp.KERNEL32.dll_LocalFree]
lea ecx, [ebp - 0x14]
call fcn.004230b0
pop edi
pop esi
mov eax, ebx
pop ebx
mov esp, ebp
pop ebp
ret 0xc
Function at 0x41c8f3
Capabilities:
Check os version

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0xa0
mov eax, dword [0x477008]
xor eax, ebp
mov dword [ebp - 4], eax
push esi
push edi
push 0x90
xor esi, esi
lea eax, [ebp - 0x9c]
push esi
push eax
mov edi, ecx
call sub.msvcrt.dll_memset
add esp, 0xc
mov dword [ebp - 0xa0], 0x94
lea eax, [ebp - 0xa0]
push eax
call dword [sym.imp.KERNEL32.dll_GetVersionExA]
test eax, eax
jne 0x41c956
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov ecx, eax
call fcn.004247f6
mov esi, eax
mov ecx, esi
call fcn.0042752a
jmp 0x41c97b
cmp dword [ebp - 0x90], 2
jne 0x41c977
cmp dword [ebp - 0x9c], 5
ja 0x41c972
jne 0x41c977
cmp dword [ebp - 0x98], esi
jbe 0x41c977
xor eax, eax
inc eax
jmp 0x41c979
mov eax, esi
mov dword [edi], eax
mov ecx, esi
call fcn.00427547
mov ecx, dword [ebp - 4]
mov eax, esi
pop edi
xor ecx, ebp
pop esi
call fcn.00456cf0
mov esp, ebp
pop ebp
ret
Function at 0x41e544
Capabilities:
Encode data using xor

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x20
push ebx
push esi
push edi
xor eax, eax
lea edi, [ebp - 0x1c]
stosd dword es:[edi], eax
xor esi, esi
and dword [ebp - 0xc], esi
mov dword [ebp - 8], esi
stosd dword es:[edi], eax
stosd dword es:[edi], eax
stosd dword es:[edi], eax
cmp dword [ebp + 0x14], esi
jne 0x41e576
mov ecx, 0x80070057
mov edi, ecx
call fcn.0042752a
jmp 0x41e684
cmp dword [ebp + 0x18], esi
je 0x41e565
mov edx, dword [ebp + 0xc]
lea eax, [ebp - 0xc]
push eax
call fcn.0041dbe5
mov edi, eax
test edi, edi
jns 0x41e591
mov ecx, edi
jmp 0x41e56c
cmp dword [ebp - 0xc], esi
je 0x41e67b
mov edx, dword [ebp + 0xc]
lea eax, [ebp - 0xc]
and dword [ebp - 0xc], esi
push ecx
push eax
push dword [ebp + 0x10]
call fcn.0041e001
mov edi, eax
test edi, edi
js 0x41e58d
cmp dword [ebp - 0xc], esi
je 0x41e67b
mov edx, dword [ebp + 0xc]
lea eax, [ebp - 8]
push ecx
push eax
push dword [ebp + 0x10]
call fcn.0041e174
mov edi, eax
test edi, edi
jns 0x41e5e1
mov ecx, edi
call fcn.0042752a
mov esi, dword [ebp - 8]
jmp 0x41e684
mov esi, dword [ebp - 8]
lea edx, [ebp - 0x1c]
mov ecx, esi
call fcn.0041e4e4
mov edi, eax
test edi, edi
js 0x41e58d
test esi, esi
je 0x41e603
mov ecx, esi
call fcn.004274da
and dword [ebp - 8], 0
movzx eax, byte [ebp - 0xd]
push eax
movzx eax, byte [ebp - 0xe]
push eax
movzx eax, byte [ebp - 0xf]
push eax
movzx eax, byte [ebp - 0x10]
push eax
movzx eax, byte [ebp - 0x11]
push eax
movzx eax, byte [ebp - 0x12]
push eax
movzx eax, byte [ebp - 0x13]
push eax
movzx eax, byte [ebp - 0x14]
push eax
movzx eax, word [ebp - 0x16]
push eax
movzx eax, word [ebp - 0x18]
push eax
push dword [ebp - 0x1c]
lea eax, [ebp - 8]
push 0x4095b0
push eax
call fcn.004255e4
mov edi, eax
add esp, 0x34
test edi, edi
js 0x41e5d2
mov esi, dword [ebp - 8]
test esi, esi
je 0x41e65b
mov ebx, dword [esi - 4]
jmp 0x41e65d
xor ebx, ebx
xor ecx, ecx
call fcn.00427547
xor edi, edi
mov ecx, esi
test ebx, ebx
je 0x41e67b
mov edx, dword [ebp + 0x18]
mov ax, word [ecx]
lea ecx, [ecx + 2]
xor word [edx], ax
dec ebx
jne 0x41e66f
mov ecx, dword [ebp + 0x14]
mov eax, esi
xor esi, esi
mov dword [ecx], eax
mov ecx, edi
call fcn.00427547
test esi, esi
je 0x41e696
mov ecx, esi
call fcn.004274da
mov eax, edi
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 0x14
Function at 0x4201c7
Capabilities:
Initialize winhttp library
Prepare http request
Receive http response

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
and esp, 0xfffffff8
sub esp, 0x14
push ebx
xor edx, edx
mov dword [esp + 8], ecx
push esi
mov esi, edx
mov dword [esp + 0x10], edx
push edi
mov edi, edx
mov dword [esp + 0xc], esi
mov dword [esp + 0x18], edi
cmp dword [ebp + 8], edx
jne 0x420201
mov ecx, 0x80070057
mov ebx, ecx
call fcn.0042752a
jmp 0x420354
cmp dword [ebp + 0xc], edx
je 0x4201f0
mov eax, dword [ebp + 0x14]
mov dword [eax], edx
cmp dword [ecx + 0x20], edx
jne 0x420217
mov ebx, edx
jmp 0x420354
mov ecx, dword [ebp + 0xc]
lea edx, [esp + 0x14]
call fcn.004259da
mov ebx, eax
test ebx, ebx
jns 0x42022d
mov ecx, ebx
jmp 0x4201f7
xor eax, eax
push eax
push eax
push eax
push 1
push eax
call dword [sym.imp.WINHTTP.dll_WinHttpOpen]
push eax
lea ecx, [esp + 0x10]
call fcn.0041fe61
mov esi, dword [esp + 0xc]
test esi, esi
jne 0x42025e
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov ecx, eax
call fcn.004247f6
mov ebx, eax
jmp 0x420229
push 0
push 0x50
push dword [ebp + 8]
push esi
call dword [sym.imp.WINHTTP.dll_WinHttpConnect]
push eax
lea ecx, [esp + 0x1c]
call fcn.0041fe61
mov edi, dword [esp + 0x18]
test edi, edi
je 0x42024d
xor eax, eax
push eax
push eax
push eax
push eax
push dword [esp + 0x24]
push 0x40983c
push edi
call dword [sym.imp.WINHTTP.dll_WinHttpOpenRequest]
mov dword [esp + 0xc], eax
test eax, eax
je 0x42024d
xor ecx, ecx
push ecx
push ecx
push ecx
push ecx
push ecx
push ecx
push eax
call dword [sym.imp.WINHTTP.dll_WinHttpSendRequest]
test eax, eax
jne 0x4202c6
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov ebx, eax
test ebx, ebx
jle 0x420336
movzx ebx, bx
or ebx, 0x80070000
jmp 0x420336
mov ecx, dword [esp + 0x10]
and dword [esp + 0x18], 0
and dword [esp + 0x1c], 0
push ecx
lea eax, [ecx + 0x48]
lea ecx, [esp + 0x1c]
mov dword [esp + 0x1c], eax
call fcn.00420f07
mov eax, dword [esp + 0x10]
push dword [esp + 0xc]
cmp dword [eax + 0x20], 0
je 0x420300
lea ecx, [eax + 0x38]
push dword [ecx + 4]
call fcn.0041ff16
jmp 0x420306
call dword [sym.imp.WINHTTP.dll_WinHttpCloseHandle]
cmp dword [esp + 0x1c], 0
je 0x420317
push dword [esp + 0x18]
call dword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
push 0
push dword [esp + 0x10]
call dword [sym.imp.WINHTTP.dll_WinHttpReceiveResponse]
test eax, eax
jne 0x42033d
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov ecx, eax
call fcn.004247f6
mov ebx, eax
mov ecx, ebx
call fcn.0042752a
push dword [esp + 0xc]
call dword [sym.imp.WINHTTP.dll_WinHttpCloseHandle]
push dword [esp + 0xc]
mov ecx, dword [esp + 0x14]
call fcn.0042015e
mov ecx, ebx
call fcn.00427547
mov ecx, dword [esp + 0x14]
test ecx, ecx
je 0x420368
call fcn.004274da
test edi, edi
je 0x420373
push edi
call dword [sym.imp.WINHTTP.dll_WinHttpCloseHandle]
test esi, esi
je 0x42037e
push esi
call dword [sym.imp.WINHTTP.dll_WinHttpCloseHandle]
pop edi
pop esi
mov eax, ebx
pop ebx
mov esp, ebp
pop ebp
ret 0x10
Function at 0x421471
Capabilities:
Check if file exists
Get file attributes

Disassembly:
mov edi, edi
push esi
push ecx
mov esi, edx
call dword [sym.imp.KERNEL32.dll_GetFileAttributesW]
cmp eax, 0xffffffff
je 0x42148d
movzx eax, al
shr eax, 4
and eax, 1
jmp 0x42148f
xor eax, eax
xor ecx, ecx
mov dword [esi], eax
call fcn.00427547
xor ecx, ecx
call fcn.00427547
xor eax, eax
pop esi
ret