joyce8/EMBER2024-capa huggingface dataset:
Function at 0x49ad81
Capabilities:
Enumerate files on windows

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x264
mov eax, dword [0x4d0034]
xor eax, ebp
mov dword [ebp - 4], eax
mov edx, dword [ebp + 0xc]
mov ecx, dword [ebp + 0x10]
push ebx
push esi
push edi
mov edi, dword [ebp + 8]
mov dword [ebp - 0x25c], ecx
cmp edx, edi
je 0x49adcc
movzx eax, word [edx]
lea ecx, [ebp - 0x255]
push eax
call fcn.0049b243
test al, al
jne 0x49adc6
sub edx, 2
cmp edx, edi
jne 0x49adac
mov ecx, dword [ebp - 0x25c]
movzx esi, word [edx]
cmp esi, 0x3a
jne 0x49adee
lea eax, [edi + 2]
cmp edx, eax
je 0x49adee
push ecx
xor ebx, ebx
push ebx
push ebx
push edi
call fcn.0049a97a
add esp, 0x10
jmp 0x49aee8
push esi
lea ecx, [ebp - 0x255]
call fcn.0049b243
sub edx, edi
movzx eax, al
sar edx, 1
inc edx
neg eax
sbb eax, eax
xor ebx, ebx
push ebx
push ebx
and eax, edx
push ebx
mov dword [ebp - 0x260], eax
lea eax, [ebp - 0x254]
push eax
push ebx
push edi
call dword [sym.imp.KERNEL32.dll_FindFirstFileExW]
mov esi, eax
cmp esi, 0xffffffff
jne 0x49ae31
push dword [ebp - 0x25c]
jmp 0x49adde
mov ebx, dword [ebp - 0x25c]
push 0x2e
mov eax, dword [ebx + 4]
sub eax, dword [ebx]
sar eax, 2
mov dword [ebp - 0x25c], eax
pop eax
cmp word [ebp - 0x228], ax
jne 0x49ae6e
cmp word [ebp - 0x226], 0
je 0x49ae8f
cmp word [ebp - 0x226], ax
jne 0x49ae6e
cmp word [ebp - 0x224], 0
je 0x49ae8f
push ebx
push dword [ebp - 0x260]
lea eax, [ebp - 0x228]
push edi
push eax
call fcn.0049a97a
add esp, 0x10
mov dword [ebp - 0x264], eax
test eax, eax
jne 0x49aedb
lea eax, [ebp - 0x254]
push eax
push esi
call dword [sym.imp.KERNEL32.dll_FindNextFileW]
push 0x2e
test eax, eax
pop eax
jne 0x49ae48
mov eax, dword [ebx + 4]
mov edx, dword [ebx]
sub eax, edx
mov ecx, dword [ebp - 0x25c]
sar eax, 2
cmp ecx, eax
jne 0x49aec3
push esi
call dword [sym.imp.KERNEL32.dll_FindClose]
xor eax, eax
jmp 0x49aee8
push 0x49a362
sub eax, ecx
push 4
push eax
lea eax, [edx + ecx*4]
push eax
call fcn.0040555b
add esp, 0x10
jmp 0x49aeb8
push esi
call dword [sym.imp.KERNEL32.dll_FindClose]
mov eax, dword [ebp - 0x264]
mov ecx, dword [ebp - 4]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.00403044
leave
ret

Function at 0x401219
Capabilities:
Terminate process

Disassembly:
mov eax, dword fs:[0]
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x40301c
push 0x40109a
push eax
mov dword fs:[0], esp
sub esp, 0x10
push ebx
push esi
push edi
mov dword [ebp - 0x18], esp
push eax
fnstcw word [esp]
or word [esp], 0x300
fldcw word [esp]
add esp, 4
push 0
push 0
push 0x403028
push 0x403024
push 0x403020
call sub.CRTDLL.DLL___GetMainArgs
push dword [0x403028]
push dword [0x403024]
push dword [0x403020]
mov dword [0x403014], esp
call fcn.0040129c
add esp, 0x18
xor ecx, ecx
mov dword [ebp - 4], ecx
push eax
call sub.CRTDLL.DLL_exit
leave
ret
Function at 0x4078a8
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x40
pushal
call 0x4078b7
pop dword [ebp - 0x30]
mov eax, 0x4078b7
sub dword [ebp - 0x30], eax
push 0x40
push 0x1000
push 0x3fc4c
push 0
mov eax, 0x892d235d
add eax, 0x77152ebb
add eax, dword [ebp - 0x30]
call dword [eax]
mov ecx, 0x23ecef9d
add ecx, 0xdc136036
xor edi, edi
add edi, eax
mov ebx, 0x435400
add ebx, dword [ebp - 0x30]
mov edx, 0x5b64e819
sub edx, 0x8dedbee9
sub dword [ebp - 0x10], 0x8fa6e543
mov esi, dword [ebx]
add dword [ebp - 0x24], 0x41e6965
sub esi, edx
mov dword [edi], esi
xor dword [ebp - 0x14], esi
add edi, 4
add ebx, 0x1329c8d5
sub ebx, 0x1329c8d1
loop 0x40790d
add eax, 0xef2c3330
add eax, 0x10d4feef
xor ebx, ebx
add ebx, eax
add eax, 0xdb09983b
sub eax, 0xdb099836
mov ecx, 0x60260540
sub ecx, 0x5fe60540
add ecx, dword [ebp - 0x30]
call ebx
leave
ret
Function at 0x401120
Capabilities:
Create thread

Disassembly:
push 0xffffffffffffffff
push 0x4344b8
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0xc
push ebx
push esi
mov esi, ecx
mov dword [esp + 0xc], esi
lea ebx, [esi + 0x20]
test ebx, ebx
mov dword [esp + 8], ebx
je 0x401152
push ebx
call dword [sym.imp.KERNEL32.dll_EnterCriticalSection]
push ebp
push edi
mov dword [esp + 0x18], ebx
mov edi, dword [esp + 0x2c]
mov dword [esp + 0x24], 0
test edi, edi
je 0x4011ae
or ecx, 0xffffffff
xor eax, eax
repne scasb al, byte es:[edi]
not ecx
dec ecx
lea ebp, [esi + 4]
mov ebx, ecx
push 1
push ebx
mov ecx, ebp
call fcn.00402220
test al, al
je 0x4011aa
mov esi, dword [esp + 0x2c]
mov edi, dword [ebp + 4]
mov ecx, ebx
mov eax, ecx
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, eax
and ecx, 3
rep movsb byte es:[edi], byte [esi]
mov ecx, dword [ebp + 4]
mov esi, dword [esp + 0x14]
mov dword [ebp + 8], ebx
mov byte [ecx + ebx], 0
mov ebx, dword [esp + 0x10]
mov ecx, esi
call fcn.004010c0
pop edi
pop ebp
test eax, eax
jne 0x4011fd
lea edx, [esi + 0x18]
mov dword [esi + 0x1c], eax
push edx
push eax
push esi
push 0x401230
push eax
push eax
call fcn.004195b5
add esp, 0x18
mov dword [esi + 0x14], eax
test eax, eax
je 0x4011fd
test ebx, ebx
je 0x4011e5
push ebx
call dword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
pop esi
mov eax, 1
pop ebx
mov ecx, dword [esp + 0xc]
mov dword fs:[0], ecx
add esp, 0x18
ret 4
test ebx, ebx
je 0x401208
push ebx
call dword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
mov ecx, dword [esp + 0x14]
pop esi
xor eax, eax
pop ebx
mov dword fs:[0], ecx
add esp, 0x18
ret 4
Function at 0x403110
Capabilities:
Get file attributes

Disassembly:
mov eax, dword fs:[0]
push 0xffffffffffffffff
push 0x4345d8
push eax
mov dword fs:[0], esp
sub esp, 0x30
xor eax, eax
push ebx
push esi
mov esi, dword [esp + 0x48]
push edi
test esi, esi
mov ebx, ecx
je 0x4032e8
mov al, byte [esp + 0x4c]
push ebp
push 0
lea ecx, [esp + 0x24]
mov byte [esp + 0x24], al
call fcn.00401d50
mov edi, esi
or ecx, 0xffffffff
xor eax, eax
push 1
repne scasb al, byte es:[edi]
not ecx
dec ecx
mov ebp, ecx
lea ecx, [esp + 0x24]
push ebp
call fcn.00402220
test al, al
je 0x40318b
mov edi, dword [esp + 0x24]
mov ecx, ebp
mov edx, ecx
push ebp
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, edx
and ecx, 3
rep movsb byte es:[edi], byte [esi]
lea ecx, [esp + 0x24]
call fcn.00402200
mov al, byte [esp + 0x50]
xor esi, esi
push esi
lea ecx, [esp + 0x14]
mov dword [esp + 0x4c], esi
mov byte [esp + 0x14], al
call fcn.00401d50
push 1
lea ecx, [esp + 0x54]
push esi
push ecx
lea ecx, [esp + 0x2c]
mov byte [esp + 0x54], 1
mov byte [esp + 0x5c], 0x5c
call fcn.00403da0
cmp eax, esi
jge 0x4031ff
add ebx, 4
push 0x4420e0
lea edx, [esp + 0x34]
push ebx
push edx
call fcn.00402aa0
add esp, 0xc
mov ecx, dword [0x4375d4]
mov byte [esp + 0x48], 2
push ecx
push esi
push eax
lea ecx, [esp + 0x1c]
call fcn.00401b50
push 1
lea ecx, [esp + 0x34]
mov byte [esp + 0x4c], 1
call fcn.00401d50
mov eax, dword [0x4375d4]
mov ecx, dword [esp + 0x28]
mov edi, eax
cmp ecx, edi
jae 0x403210
mov edi, ecx
sub eax, dword [esp + 0x18]
cmp eax, edi
ja 0x40321d
call fcn.00424090
cmp edi, esi
jbe 0x40326b
mov edx, dword [esp + 0x18]
push esi
lea ecx, [esp + 0x14]
lea ebp, [edx + edi]
push ebp
call fcn.00402220
test al, al
je 0x40326b
mov esi, dword [esp + 0x24]
test esi, esi
jne 0x403244
mov esi, 0x4375d0
mov eax, dword [esp + 0x18]
mov edx, dword [esp + 0x14]
mov ecx, edi
push ebp
lea edi, [edx + eax]
mov eax, ecx
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, eax
and ecx, 3
rep movsb byte es:[edi], byte [esi]
lea ecx, [esp + 0x14]
call fcn.00402200
xor esi, esi
mov eax, dword [esp + 0x14]
pop ebp
cmp eax, esi
jne 0x403279
mov eax, 0x4375d0
push eax
call dword [sym.imp.KERNEL32.dll_GetFileAttributesA]
test al, 0x10
jne 0x403290
cmp eax, 0xffffffff
je 0x403290
mov edi, 1
jmp 0x403292
xor edi, edi
mov ecx, dword [esp + 0x10]
cmp ecx, esi
je 0x4032b6
mov al, byte [ecx - 1]
test al, al
je 0x4032ac
cmp al, 0xff
je 0x4032ac
dec al
mov byte [ecx - 1], al
jmp 0x4032b6
dec ecx
push ecx
call fcn.0042912a
add esp, 4
mov ecx, dword [esp + 0x20]
mov dword [esp + 0x10], esi
cmp ecx, esi
mov dword [esp + 0x14], esi
mov dword [esp + 0x18], esi
je 0x4032e6
mov al, byte [ecx - 1]
test al, al
je 0x4032dc
cmp al, 0xff
je 0x4032dc
dec al
mov byte [ecx - 1], al
jmp 0x4032e6
dec ecx
push ecx
call fcn.0042912a
add esp, 4
mov eax, edi
mov ecx, dword [esp + 0x3c]
pop edi
pop esi
pop ebx
mov dword fs:[0], ecx
add esp, 0x3c
ret 4
Function at 0x403c10
Capabilities:
Read file on windows

Disassembly:
push ecx
push ebx
push ebp
push esi
push edi
mov edi, ecx
call fcn.004035d0
mov edx, dword [esp + 0x18]
mov ebx, eax
test edx, edx
je 0x403c28
mov ebx, edx
mov ebp, dword [esp + 0x1c]
mov ecx, eax
sub ecx, ebp
mov dword [esp + 0x10], 0
cmp edx, ecx
jbe 0x403c3e
mov ebx, ecx
cmp ebp, eax
jae 0x403c7a
lea eax, [ebx + 1]
push eax
call fcn.00429101
add esp, 4
mov ecx, edi
mov esi, eax
push 0xffffffffffffffff
push ebp
call fcn.00403910
mov edx, dword [edi + 0x24]
lea ecx, [esp + 0x10]
push 0
push ecx
push ebx
push esi
push edx
call dword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
jne 0x403c84
push esi
call fcn.0042912a
add esp, 4
pop edi
pop esi
pop ebp
xor eax, eax
pop ebx
pop ecx
ret 8
mov eax, dword [esp + 0x10]
mov byte [eax + esi], 0
mov ecx, dword [esp + 0x10]
mov dword [edi + 0x28], esi
mov dword [edi + 0x2c], ecx
mov eax, esi
pop edi
pop esi
pop ebp
pop ebx
pop ecx
ret 8

Function at 0x403e90
Capabilities:
Create new key via cryptacquirecontext

Disassembly:
push ebx
mov ebx, dword [sym.imp.ADVAPI32.dll_CryptAcquireContextA]
push esi
push edi
mov esi, ecx
push 0
push 1
push str.Microsoft_Base_Cryptographic_Provider_v1.0
lea edi, [esi + 0x104]
push 0
push edi
mov dword [esi], 0x4375dc
call ebx
test eax, eax
jne 0x403ecc
push 8
push 1
push str.Microsoft_Base_Cryptographic_Provider_v1.0
push eax
push edi
call ebx
test eax, eax
jne 0x403ecc
mov dword [edi], eax
mov eax, esi
pop edi
pop esi
pop ebx
ret

Function at 0x4048a0
Capabilities:
Get common file path

Disassembly:
push 0xffffffffffffffff
push 0x4347d8
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
push ecx
push ebx
mov ebx, ecx
push edi
mov eax, dword [ebx + 0x70]
test eax, eax
jne 0x404966
call fcn.004312ae
mov edi, dword [sym.imp.USER32.dll_LoadCursorA]
push 0x7f89
push 0
call edi
test eax, eax
mov dword [ebx + 0x70], eax
jne 0x404966
mov eax, dword [0x442a9c]
push esi
mov dword [esp + 0xc], eax
push 0x104
push 0x104
lea ecx, [esp + 0x14]
mov dword [esp + 0x20], 0
call fcn.0042c986
push eax
call dword [sym.imp.KERNEL32.dll_GetWindowsDirectoryA]
push 0xffffffffffffffff
lea ecx, [esp + 0x10]
call fcn.0042c9d5
push str.winhlp32.exe
lea ecx, [esp + 0x10]
call fcn.0042c95f
mov ecx, dword [esp + 0xc]
push ecx
call dword [sym.imp.KERNEL32.dll_LoadLibraryA]
mov esi, eax
test esi, esi
je 0x404954
push 0x6a
push esi
call edi
test eax, eax
je 0x40494d
push eax
call dword [sym.imp.USER32.dll_CopyIcon]
mov dword [ebx + 0x70], eax
push esi
call dword [sym.imp.KERNEL32.dll_FreeLibrary]
lea ecx, [esp + 0xc]
mov dword [esp + 0x18], 0xffffffff
call fcn.0042c715
pop esi
mov ecx, dword [esp + 0xc]
pop edi
pop ebx
mov dword fs:[0], ecx
add esp, 0x10
ret
Function at 0x40e600
Capabilities:
Check internet connectivity via wininet
Create http request

Disassembly:
sub esp, 0x44
lea eax, [esp]
push esi
push 0
push eax
call dword [sym.imp.WININET.dll_InternetGetConnectedState]
test eax, eax
je 0x40e68c
call dword [sym.imp.KERNEL32.dll_GetTickCount]
push eax
lea ecx, [esp + 0xc]
push str.Agent_ld
push ecx
call fcn.00419aee
mov al, byte [esp + 0x10]
add esp, 0xc
test al, 4
push 0
push 0
push 0
jne 0x40e645
lea edx, [esp + 0x14]
push 4
push edx
jmp 0x40e64c
lea eax, [esp + 0x14]
push 0
push eax
call dword [sym.imp.WININET.dll_InternetOpenA]
mov esi, eax
test esi, esi
je 0x40e68c
mov ecx, dword [esp + 0x54]
mov edx, dword [esp + 0x50]
mov eax, dword [esp + 0x4c]
push edi
push ecx
mov ecx, dword [esp + 0x64]
push edx
mov edx, dword [esp + 0x64]
push eax
push ecx
push edx
push esi
call fcn.0040e360
add esp, 0x18
mov edi, eax
push esi
call dword [sym.imp.WININET.dll_InternetCloseHandle]
mov eax, edi
pop edi
pop esi
add esp, 0x44
ret
mov eax, 4
pop esi
add esp, 0x44
ret
Function at 0x40ff80
Capabilities:
Query or enumerate registry value

Disassembly:
mov ecx, dword [esp + 8]
mov edx, dword [esp + 4]
sub esp, 0x10c
lea eax, [esp]
push esi
push eax
push 1
push 0
push ecx
push edx
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
mov esi, eax
test esi, esi
jne 0x40ffe2
mov edx, dword [esp + 4]
lea eax, [esp + 8]
lea ecx, [esp + 0xc]
push eax
push ecx
push esi
push edx
mov dword [esp + 0x18], 0x104
call dword [sym.imp.ADVAPI32.dll_RegQueryValueA]
mov ecx, dword [esp + 0x11c]
lea eax, [esp + 0xc]
push eax
push ecx
call dword [sym.imp.KERNEL32.dll_lstrcpyA]
mov edx, dword [esp + 4]
push edx
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov eax, esi
pop esi
add esp, 0x10c
ret
Function at 0x4275a0
Capabilities:
Get graphical window text

Disassembly:
push ebp
mov ebp, esp
sub esp, 8
push ebx
push esi
push edi
mov esi, dword [ebp + 0x10]
push 0xf00021
mov edx, dword [esi + 4]
mov ecx, dword [esi]
mov eax, dword [esi + 0xc]
sub eax, edx
push eax
mov eax, dword [esi + 8]
sub eax, ecx
push eax
push edx
push ecx
mov ecx, dword [ebp + 0xc]
push ecx
call dword [sym.imp.GDI32.dll_PatBlt]
mov edi, dword [ebp + 8]
push edi
call dword [sym.imp.USER32.dll_GetWindowTextLengthA]
mov ebx, eax
lea eax, [eax + 5]
add eax, 3
and eax, 0xfffffffc
call fcn.0041a330
mov dword [ebp - 4], esp
cmp dword [ebp - 4], 0
je 0x42766b
add ebx, 2
mov eax, dword [ebp - 4]
push ebx
push eax
push edi
call dword [sym.imp.USER32.dll_GetWindowTextA]
test eax, eax
je 0x42766b
mov bx, 0x140
mov edi, dword [ebp + 0x14]
mov eax, edi
and al, 0xf
cmp al, 0xc
je 0x42761e
mov ebx, edi
and bx, 0xf
or bx, 0x150
test edi, 0x80
je 0x427629
or bh, 8
and edi, 0x8000000
je 0x427644
mov eax, dword [0x44a0bc]
mov ecx, dword [ebp + 0xc]
push eax
push ecx
call dword [sym.imp.GDI32.dll_SetTextColor]
mov dword [ebp - 8], eax
mov ecx, dword [ebp - 4]
mov edx, dword [ebp + 0xc]
movzx eax, bx
push eax
push esi
push 0xffffffffffffffff
push ecx
push edx
call dword [sym.imp.USER32.dll_DrawTextA]
test edi, edi
je 0x42766b
mov eax, dword [ebp - 8]
mov ecx, dword [ebp + 0xc]
push eax
push ecx
call dword [sym.imp.GDI32.dll_SetTextColor]
lea esp, [ebp - 0x14]
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x427a40
Capabilities:
Extract resource via kernel32 functions

Disassembly:
mov eax, dword [esp + 8]
sub esp, 4
push ebx
push esi
mov esi, dword [esp + 0x10]
push edi
push ebp
push 2
push eax
push esi
call dword [sym.imp.KERNEL32.dll_FindResourceA]
mov edi, eax
test edi, edi
jne 0x427a6b
xor eax, eax
pop ebp
pop edi
pop esi
pop ebx
add esp, 4
ret 0x20
push edi
push esi
call dword [sym.imp.KERNEL32.dll_SizeofResource]
mov ebx, eax
push edi
push esi
call dword [sym.imp.KERNEL32.dll_LoadResource]
mov esi, eax
test esi, esi
jne 0x427a8f
xor eax, eax
pop ebp
pop edi
pop esi
pop ebx
add esp, 4
ret 0x20
push ebx
push 0x40
call dword [sym.imp.KERNEL32.dll_GlobalAlloc]
mov ebp, eax
test ebp, ebp
jne 0x427aaa
xor eax, eax
pop ebp
pop edi
pop esi
pop ebx
add esp, 4
ret 0x20
mov edi, ebp
mov ecx, ebx
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, ebx
and ecx, 3
rep movsb byte es:[edi], byte [esi]
mov eax, dword [esp + 0x20]
xor ecx, ecx
mov cl, ah
mov edx, eax
mov dword [esp + 0x10], 0
shl ecx, 8
shr edx, 0x10
mov byte [esp + 0x10], dl
xor edx, edx
or ecx, dword [esp + 0x10]
mov dl, al
shl edx, 0x10
mov eax, dword [esp + 0x28]
or ecx, edx
mov edx, eax
shr edx, 0x10
mov dword [ebp + 0x28], ecx
mov dword [esp + 0x10], 0
xor ecx, ecx
mov byte [esp + 0x10], dl
mov cl, ah
xor edx, edx
shl ecx, 8
mov dl, al
shl edx, 0x10
or ecx, dword [esp + 0x10]
or ecx, edx
mov eax, dword [esp + 0x24]
mov edx, eax
mov dword [ebp + 0x44], ecx
shr edx, 0x10
xor ecx, ecx
mov dword [esp + 0x10], 0
mov cl, ah
mov byte [esp + 0x10], dl
shl ecx, 8
xor edx, edx
or ecx, dword [esp + 0x10]
mov dl, al
shl edx, 0x10
mov eax, dword [esp + 0x2c]
or ecx, edx
xor edx, edx
mov dl, al
mov dword [ebp + 0x48], ecx
shl edx, 0x10
xor ecx, ecx
mov cl, ah
shl ecx, 8
shr eax, 0x10
or ecx, edx
xor edx, edx
mov dl, al
mov eax, dword [esp + 0x30]
or ecx, edx
xor edx, edx
mov dl, al
mov dword [ebp + 0x64], ecx
shl edx, 0x10
xor ecx, ecx
mov cl, ah
shl ecx, 8
shr eax, 0x10
or ecx, edx
xor edx, edx
mov dl, al
mov eax, dword [esp + 0x34]
or ecx, edx
xor edx, edx
mov dl, al
mov dword [ebp + 0x54], ecx
shl edx, 0x10
xor ecx, ecx
mov cl, ah
shl ecx, 8
push 0
shr eax, 0x10
or ecx, edx
xor edx, edx
mov dl, al
or ecx, edx
mov dword [ebp + 0x50], ecx
call dword [sym.imp.USER32.dll_GetDC]
mov edi, eax
push 0
push ebp
lea ecx, [ebp + 0x68]
push ecx
push 4
push ebp
push edi
call dword [sym.imp.GDI32.dll_CreateDIBitmap]
mov esi, eax
push edi
push 0
call dword [sym.imp.USER32.dll_ReleaseDC]
push ebp
call dword [sym.imp.KERNEL32.dll_GlobalFree]
mov eax, esi
pop ebp
pop edi
pop esi
pop ebx
add esp, 4
ret 0x20

Function at 0x42a039
Capabilities:
Get graphical window text

Disassembly:
push esi
mov esi, ecx
mov ecx, dword [esi + 0x38]
test ecx, ecx
jne 0x42a071
push dword [esi + 0x1c]
call dword [sym.imp.USER32.dll_GetWindowTextLengthA]
lea ecx, [eax + 1]
push ecx
mov ecx, dword [esp + 0xc]
push eax
call fcn.0042c9fd
push eax
push dword [esi + 0x1c]
call dword [sym.imp.USER32.dll_GetWindowTextA]
mov ecx, dword [esp + 8]
push 0xffffffffffffffff
call fcn.0042c9d5
jmp 0x42a07d
mov eax, dword [ecx]
push dword [esp + 8]
call dword [eax + 0x88]
pop esi
ret 4
Function at 0x42b5bf
Capabilities:
Extract resource via kernel32 functions

Disassembly:
push ebx
push esi
push edi
xor edi, edi
cmp dword [esp + 0x10], edi
mov ebx, ecx
je 0x42b601
call fcn.004312ae
mov esi, dword [eax + 0xc]
push 0xf0
push dword [esp + 0x14]
push esi
call dword [sym.imp.KERNEL32.dll_FindResourceA]
cmp eax, edi
je 0x42b601
push eax
push esi
call dword [sym.imp.KERNEL32.dll_LoadResource]
cmp eax, edi
jne 0x42b5f8
xor eax, eax
jmp 0x42b609
push eax
call dword [sym.imp.KERNEL32.dll_LockResource]
mov edi, eax
push edi
mov ecx, ebx
call fcn.0042b60f
pop edi
pop esi
pop ebx
ret 4

Function at 0x431e4f
Capabilities:
Get thread local storage value

Disassembly:
push ebx
push esi
mov esi, ecx
lea ebx, [esi + 0x1c]
push ebx
call dword [sym.imp.KERNEL32.dll_EnterCriticalSection]
cmp dword [esp + 0x10], 0
jne 0x431e7d
push dword [esi]
call dword [sym.imp.KERNEL32.dll_TlsGetValue]
test eax, eax
je 0x431e9b
push dword [esp + 0xc]
mov ecx, esi
push eax
call fcn.00431db5
jmp 0x431e9b
mov eax, dword [esi + 0x14]
test eax, eax
je 0x431e9b
push edi
push dword [esp + 0x10]
mov edi, dword [eax + 4]
mov ecx, esi
push eax
call fcn.00431db5
test edi, edi
mov eax, edi
jne 0x431e85
pop edi
push ebx
call dword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
pop esi
pop ebx
ret 8
Function at 0x42e000
Capabilities:
Encode data using xor
Packed with generic packer

Disassembly:
pushal
nop
nop
nop
nop
nop
call 0x42e00c
nop
pop eax
nop
nop
nop
nop
nop
add eax, 0x403ac5
nop
sub eax, 0x403a6b
mov ebx, dword [eax]
nop
nop
nop
nop
nop
nop
nop
mov ecx, dword [eax + 4]
nop
nop
nop
mov edx, dword [eax + 8]
nop
nop
nop
nop
xor dword [ebx], edx
add ebx, 4
nop
nop
nop
nop
nop
nop
cmp ebx, ecx
nop
jl 0x42e030
nop
nop
nop
nop
nop
nop
nop
add eax, 0xc
nop
nop
nop
cmp dword [eax], 0
nop
nop
nop
jne 0x42e01e
nop
nop
nop
nop
nop
popal
nop
jmp int.00401219
Function at 0x402bd0
Capabilities:
Create http request

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x4b0ca0
mov eax, dword fs:[0]
push eax
sub esp, 0x24
push ebx
push esi
push edi
mov eax, dword [0x576f24]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov dword [ebp - 0x10], esp
mov dword [ebp - 0x20], ecx
mov esi, dword [ebp + 0x10]
mov dword [ebp - 0x14], 0
mov dword [ebp - 0x18], 0
test esi, esi
jne 0x402c3c
push 0x10
push 0x4b6d18
push str.Callback_pointer_is_null
push esi
call dword [sym.imp.USER32.dll_MessageBoxW]
xor eax, eax
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 0x10
push 0
push 0x80
push 2
push 0
push 0
push 0x40000000
push dword [ebp + 0xc]
mov dword [ebp - 4], 0
call dword [sym.imp.KERNEL32.dll_CreateFileW]
mov edi, eax
mov dword [ebp + 0x10], edi
cmp edi, 0xffffffff
je 0x402d9d
push 0x2454
call fcn.004247c8
add esp, 4
test eax, eax
je 0x402c8c
push dword [ebp + 0x14]
mov ecx, eax
push esi
call fcn.00402b70
mov esi, eax
jmp 0x402c8e
xor esi, esi
push dword [ebp + 0xc]
mov eax, dword [ebp - 0x20]
mov dword [esi + 8], eax
lea eax, [esi + 0x18]
push 0x104
push eax
mov dword [ebp - 0x14], esi
mov dword [esi + 0x14], edi
call fcn.00454857
add esp, 0xc
push 0x10000000
push 0
push 0
push 0
push str.UniKey_Downloader
call dword [sym.imp.WININET.dll_InternetOpenW]
mov dword [ebp - 0x18], eax
mov dword [esi + 0xc], eax
test eax, eax
je 0x402db2
push 0x402bb0
push eax
call dword [sym.imp.WININET.dll_InternetSetStatusCallbackW]
cmp eax, 0xffffffff
je 0x402dc7
push str.InternetOpenUrl
lea eax, [esi + 0x224c]
push 0x100
push eax
call fcn.00454857
add esp, 0xc
push esi
push 0
push 0
push 0
push dword [ebp + 8]
push dword [esi + 0xc]
call dword [sym.imp.WININET.dll_InternetOpenUrlW]
test eax, eax
jne 0x402d87
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0x3e5
jne 0x402ddc
jmp 0x402d87
mov eax, esi
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 0x10
push 0x566b64
lea eax, [ebp - 0x1c]
mov dword [ebp - 0x1c], str.Failed_to_create_file
push eax
call fcn.004474c3
push 0x566b64
lea eax, [ebp - 0x24]
mov dword [ebp - 0x24], str.InternetOpen_returned_NULL
push eax
call fcn.004474c3
push 0x566b64
lea eax, [ebp - 0x28]
mov dword [ebp - 0x28], str.Failed_to_setup_callback
push eax
call fcn.004474c3
push 0x566b64
lea eax, [ebp - 0x2c]
mov dword [ebp - 0x2c], str.Failed_to_connect
push eax
call fcn.004474c3
int3

Function at 0x402e00
Capabilities:
Delete file

Disassembly:
push ebp
mov ebp, esp
pop ebp
jmp fcn.00402e10
Function at 0x402e10
Capabilities:
Delete file

Disassembly:
push ebp
mov ebp, esp
push esi
mov esi, dword [ebp + 8]
push edi
mov edi, dword [sym.imp.WININET.dll_InternetSetStatusCallbackW]
mov eax, dword [esi + 0xc]
test eax, eax
je 0x402e2a
push 0
push eax
call edi
mov eax, dword [esi + 0x10]
test eax, eax
je 0x402e36
push 0
push eax
call edi
mov eax, dword [esi + 0x10]
mov edi, dword [sym.imp.WININET.dll_InternetCloseHandle]
test eax, eax
je 0x402e46
push eax
call edi
mov eax, dword [esi + 0xc]
test eax, eax
je 0x402e50
push eax
call edi
mov eax, dword [esi + 0x14]
cmp eax, 0xffffffff
je 0x402e5f
push eax
call dword [sym.imp.KERNEL32.dll_CloseHandle]
cmp dword [esi + 0x220], 1
jne 0x402ea7
mov ecx, dword [esi + 0x2450]
test ecx, ecx
jne 0x402e76
xor eax, eax
jmp 0x402e81
imul eax, dword [esi + 0x244c], 0x64
xor edx, edx
div ecx
push dword [esi + 4]
push eax
mov eax, dword [esi]
push 1
push str.Success
call eax
add esp, 0x10
push 0x2454
push esi
call fcn.004247f8
add esp, 8
pop edi
pop esi
pop ebp
ret 4
lea eax, [esi + 0x18]
push eax
call dword [sym.imp.KERNEL32.dll_DeleteFileW]
push 0x2454
push esi
call fcn.004247f8
add esp, 8
pop edi
pop esi
pop ebp
ret 4

Function at 0x403560
Capabilities:
Read data from internet
Receive data

Disassembly:
push ebp
mov ebp, esp
push ecx
push ebx
push esi
mov esi, dword [ebp + 8]
push edi
push str.InternetReadFileEx
push 0x100
lea eax, [esi + 0x224c]
mov dword [ebp - 4], ecx
push eax
call fcn.00454857
mov dword [esi + 0x228], 0
lea edi, [esi + 0x224]
mov dword [esi + 0x22c], 0
lea eax, [esi + 0x24c]
add esp, 0xc
mov dword [esi + 0x230], 0
mov dword [esi + 0x234], 0
mov dword [esi + 0x240], 0
mov dword [esi + 0x244], 0
push esi
mov dword [esi + 0x248], 0
mov ebx, dword [sym.imp.WININET.dll_InternetReadFileExW]
push 1
push edi
push dword [esi + 0x10]
mov dword [edi], 0x28
mov dword [esi + 0x23c], 0x2000
mov dword [esi + 0x238], eax
call ebx
test eax, eax
je 0x403624
cmp dword [esi + 0x23c], 0
je 0x403649
mov ecx, dword [ebp - 4]
push esi
call fcn.00403710
test al, al
je 0x40367b
push esi
push 1
push edi
push dword [esi + 0x10]
call ebx
test eax, eax
jne 0x403601
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0x3e5
je 0x403653
mov ecx, dword [esi + 0x2450]
mov dword [esi + 0x220], 2
test ecx, ecx
jne 0x40365e
xor eax, eax
jmp 0x403669
mov dword [esi + 0x220], 1
pop edi
pop esi
mov al, 1
pop ebx
mov esp, ebp
pop ebp
ret 8
imul eax, dword [esi + 0x244c], 0x64
xor edx, edx
div ecx
push dword [esi + 4]
push eax
mov eax, dword [esi]
push 2
push str.Download_failed
call eax
add esp, 0x10
pop edi
pop esi
xor al, al
pop ebx
mov esp, ebp
pop ebp
ret 8