joyce8/EMBER2024-capa huggingface dataset:
Function at 0x417e10
Capabilities:
Log keystrokes via polling

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
sub esp, 0x2c
mov eax, dword [0x4c6018]
xor eax, esp
mov dword [esp + 0x28], eax
push ebx
push esi
push edi
mov edi, dword [ebp + 8]
mov eax, dword [edi + 4]
mov esi, ecx
cmp eax, 0x100
jne 0x417e40
cmp dword [edi + 8], 0x74
je 0x417f45
cmp eax, 0x20a
jne 0x417e58
push 0x11
call dword [sym.imp.USER32.dll_GetKeyState]
test ax, ax
js 0x417f45
cmp dword [edi + 4], 0x201
jne 0x417f5e
lea eax, [esp + 0xc]
push eax
call dword [sym.imp.USER32.dll_GetCursorPos]
mov edx, dword [esi + 0x20]
lea ecx, [esp + 0x14]
xor ebx, ebx
push ecx
push edx
mov dword [esp + 0x1c], ebx
mov dword [esp + 0x20], ebx
mov dword [esp + 0x24], ebx
mov dword [esp + 0x28], ebx
call dword [sym.imp.USER32.dll_GetClientRect]
lea eax, [esp + 0x14]
push eax
mov ecx, esi
call dword [sym.imp.mfc100.dll_Ordinal_2505]
mov ecx, dword [esp + 0x10]
mov edx, dword [esp + 0xc]
push ecx
push edx
lea eax, [esp + 0x1c]
push eax
call dword [sym.imp.USER32.dll_PtInRect]
test eax, eax
je 0x417f5e
mov edx, dword [esi + 0x20]
lea ecx, [esp + 0xc]
push ecx
push edx
call dword [sym.imp.USER32.dll_ScreenToClient]
mov eax, dword [esp + 0xc]
mov ecx, dword [esp + 0x10]
cmp eax, 0x32
jl 0x417edc
cmp ecx, 0x32
jle 0x417ee4
cmp byte [esi + 0x98], bl
je 0x417f5e
push ecx
push eax
call fcn.00417f80
test eax, eax
jne 0x417f5e
lea eax, [esp + 0x24]
push eax
mov ecx, esi
mov dword [esp + 0x28], ebx
mov dword [esp + 0x2c], ebx
mov dword [esp + 0x30], 0x384
mov dword [esp + 0x34], 0x32
call dword [sym.imp.mfc100.dll_Ordinal_2505]
mov ecx, dword [edi + 0x18]
mov edx, dword [edi + 0x14]
push ecx
push edx
lea eax, [esp + 0x2c]
push eax
call dword [sym.imp.USER32.dll_PtInRect]
test eax, eax
je 0x417f5e
mov edi, dword [edi + 0xc]
call fcn.00417ff0
mov ecx, dword [eax + 0x20]
push edi
push 2
push 0xa1
push ecx
call dword [sym.imp.USER32.dll_SendMessageA]
mov eax, 1
pop edi
pop esi
pop ebx
mov ecx, dword [esp + 0x28]
xor ecx, esp
call fcn.00449013
mov esp, ebp
pop ebp
ret 4
push edi
mov ecx, esi
call dword [sym.imp.mfc100.dll_Ordinal_11154]
mov ecx, dword [esp + 0x34]
pop edi
pop esi
pop ebx
xor ecx, esp
call fcn.00449013
mov esp, ebp
pop ebp
ret 4
Function at 0x418440
Capabilities:
Check mutex on windows

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x48a789
mov eax, dword fs:[0]
push eax
push ecx
push ebx
push edi
mov eax, dword [0x4c6018]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
lea eax, [ebp - 0x10]
push eax
mov edi, str._instance
lea ebx, [ebp + 8]
mov dword [ebp - 4], 0
call fcn.0040a2f0
mov edx, dword [ebp - 0x10]
add esp, 4
xor ecx, ecx
cmp ecx, dword [0x4d48d4]
push edx
sbb eax, eax
and eax, 0x4d48d4
push ecx
push eax
call dword [sym.imp.KERNEL32.dll_CreateMutexA]
mov dword [esi + 0xfc], eax
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0xb7
jne 0x4184e1
mov eax, dword [esi + 0xfc]
push eax
call dword [sym.imp.KERNEL32.dll_CloseHandle]
lea ecx, [ebp - 0x10]
call dword [sym.imp.mfc100.dll_Ordinal_901]
mov ecx, ebx
call dword [sym.imp.mfc100.dll_Ordinal_901]
xor eax, eax
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop ebx
mov esp, ebp
pop ebp
ret 4
lea ecx, [ebp - 0x10]
call dword [sym.imp.mfc100.dll_Ordinal_901]
lea ecx, [ebp + 8]
call dword [sym.imp.mfc100.dll_Ordinal_901]
mov eax, 1
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop ebx
mov esp, ebp
pop ebp
ret 4
Function at 0x419320
Capabilities:
Encode data using base64

Disassembly:
push ebp
mov ebp, esp
push ecx
push ebx
push esi
mov dword [ebp - 4], 6
push edi
mov edi, edi
mov eax, dword [edx]
mov esi, eax
shr esi, 8
and esi, 0xf
add esi, esi
add esi, esi
mov edi, eax
shr edi, 0x16
and edi, 3
or esi, edi
movsx esi, byte [esi + 0x4a4140]
mov edi, eax
shr edi, 0x10
and edi, 0x3f
movsx edi, byte [edi + 0x4a4140]
shl edi, 8
or esi, edi
mov edi, eax
mov ebx, eax
shr edi, 0xc
and ebx, 3
and edi, 0xf
shl ebx, 4
or edi, ebx
movsx edi, byte [edi + 0x4a4140]
shr eax, 2
shl esi, 8
and eax, 0x3f
movsx eax, byte [eax + 0x4a4140]
or esi, edi
shl esi, 8
or esi, eax
mov dword [ecx], esi
add ecx, 4
add edx, 3
dec dword [ebp - 4]
jne 0x419330
mov dx, word [edx]
mov dword [ebp - 4], 0
mov word [ebp - 4], dx
mov eax, dword [ebp - 4]
mov edx, eax
shr edx, 2
and edx, 0x3f
movzx edx, byte [edx + 0x4a4140]
mov byte [ecx], dl
mov edx, eax
shr edx, 0xc
mov esi, eax
and edx, 0xf
and esi, 3
shl esi, 4
or edx, esi
movzx edx, byte [edx + 0x4a4140]
mov byte [ecx + 1], dl
mov edx, eax
shr edx, 8
and edx, 0xf
shr eax, 0x16
add edx, edx
and eax, 3
add edx, edx
or edx, eax
mov al, byte [edx + 0x4a4140]
pop edi
pop esi
mov byte [ecx + 2], al
mov word [ecx + 3], 0x3d
mov eax, 0x1c
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x41a360
Capabilities:
Access peb ldr_data

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
push 0xffffffffffffffff
push 0x48b7a3
mov eax, dword fs:[0]
push eax
sub esp, 0x24
push esi
push edi
mov eax, dword [0x4c6018]
xor eax, esp
push eax
lea eax, [esp + 0x30]
mov dword fs:[0], eax
mov esi, ecx
mov eax, dword [ebp + 8]
push eax
lea ecx, [esp + 0x14]
call dword [sym.imp.mfc100.dll_Ordinal_310]
mov ecx, dword [ebp + 0xc]
push ecx
lea ecx, [esp + 0x10]
mov dword [esp + 0x3c], 0
call dword [sym.imp.mfc100.dll_Ordinal_310]
mov edi, dword [sym.imp.OLEAUT32.dll_VariantClear]
lea edx, [esp + 0x1c]
push edx
call edi
lea eax, [esp + 0x1c]
push eax
mov byte [esp + 0x3c], 2
call edi
lea ecx, [esp + 0x1c]
push ecx
push ecx
lea edx, [esp + 0x14]
mov ecx, esp
mov dword [esp + 0x1c], esp
push edx
call dword [sym.imp.mfc100.dll_Ordinal_300]
push ecx
lea eax, [esp + 0x1c]
mov ecx, esp
mov dword [esp + 0x24], esp
push eax
mov byte [esp + 0x48], 3
call dword [sym.imp.mfc100.dll_Ordinal_300]
add esi, 0x110c
push esi
mov byte [esp + 0x48], 2
call fcn.00403ff0
cmp word [esp + 0x1c], 0xb
jne 0x41a451
cmp word [esp + 0x24], 1
jne 0x41a451
lea ecx, [esp + 0x1c]
push ecx
call dword [sym.imp.OLEAUT32.dll_VariantCopy]
lea ecx, [esp + 0xc]
call dword [sym.imp.mfc100.dll_Ordinal_901]
lea ecx, [esp + 0x10]
call dword [sym.imp.mfc100.dll_Ordinal_901]
mov eax, 1
mov ecx, dword [esp + 0x30]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
mov esp, ebp
pop ebp
ret 8
lea edx, [esp + 0x1c]
push edx
call dword [sym.imp.OLEAUT32.dll_VariantCopy]
lea ecx, [esp + 0xc]
call dword [sym.imp.mfc100.dll_Ordinal_901]
lea ecx, [esp + 0x10]
call dword [sym.imp.mfc100.dll_Ordinal_901]
xor eax, eax
mov ecx, dword [esp + 0x30]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
mov esp, ebp
pop ebp
ret 8
Function at 0x41b330
Capabilities:
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x48b27b
mov eax, dword fs:[0]
push eax
sub esp, 0x134
mov eax, dword [0x4c6018]
xor eax, ebp
mov dword [ebp - 0x10], eax
push ebx
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov eax, dword [ebp + 8]
xor ebx, ebx
push 0x103
lea ecx, [ebp - 0x113]
push ebx
push ecx
mov dword [ebp - 0x13c], eax
mov dword [ebp - 0x138], ebx
mov byte [ebp - 0x114], bl
call sub.MSVCR100.dll_memset
add esp, 0xc
lea edi, [ebx + 0x19]
mov eax, str.SOFTWAREEnterSafeWebUI_
lea esi, [ebp - 0x130]
mov dword [ebp - 0x140], 0x104
mov dword [ebp - 0x11c], 0xf
mov dword [ebp - 0x120], ebx
mov byte [ebp - 0x130], bl
call fcn.00402610
push 7
mov eax, 0x4bb750
mov ecx, esi
mov dword [ebp - 4], ebx
call fcn.00409fe0
mov eax, dword [ebp - 0x130]
mov esi, 0x10
cmp dword [ebp - 0x11c], esi
jae 0x41b3e7
lea eax, [ebp - 0x130]
lea edx, [ebp - 0x134]
push edx
push 0x20019
push ebx
push eax
push reloc.OLEAUT32.dll_SysReAllocString
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
test eax, eax
jne 0x41b462
lea eax, [ebp - 0x140]
push eax
mov eax, dword [ebp - 0x134]
lea ecx, [ebp - 0x114]
push ecx
lea edx, [ebp - 0x138]
push edx
push ebx
push str.Title
push eax
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
test eax, eax
jne 0x41b462
lea ecx, [ebp - 0x114]
push ecx
mov ecx, dword [ebp - 0x13c]
call dword [sym.imp.mfc100.dll_Ordinal_12868]
cmp dword [ebp - 0x11c], esi
jb 0x41b45b
mov edx, dword [ebp - 0x130]
push edx
call dword [sym.imp.MSVCR100.dll_void___cdecl_operator_delete_void__]
add esp, 4
mov eax, 1
jmp 0x41b47c
cmp dword [ebp - 0x11c], esi
jb 0x41b47a
mov eax, dword [ebp - 0x130]
push eax
call dword [sym.imp.MSVCR100.dll_void___cdecl_operator_delete_void__]
add esp, 4
xor eax, eax
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.00449013
mov esp, ebp
pop ebp
ret 4
Function at 0x41c2c0
Capabilities:
Check if file exists
Read file on windows

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x48b248
mov eax, dword fs:[0]
push eax
mov eax, 0x10ac
call fcn.0048a1d0
mov eax, dword [0x4c6018]
xor eax, ebp
mov dword [ebp - 0x10], eax
push ebx
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov eax, dword [ebp + 0x24]
mov dword [ebp - 0x10b4], eax
xor ebx, ebx
mov dword [ebp - 4], ebx
mov eax, dword [ebp + 8]
mov esi, 0x10
cmp dword [ebp + 0x1c], esi
jae 0x41c310
lea eax, [ebp + 8]
push eax
call dword [sym.imp.SHLWAPI.dll_PathFileExistsA]
test eax, eax
jne 0x41c334
cmp dword [ebp + 0x1c], esi
jb 0x41c32d
mov ecx, dword [ebp + 8]
push ecx
call dword [sym.imp.MSVCR100.dll_void___cdecl_operator_delete_void__]
add esp, 4
xor eax, eax
jmp 0x41c448
xor eax, eax
push 0x27
lea edx, [ebp - 0x4b]
push ebx
push edx
mov byte [ebp - 0x24], bl
mov dword [ebp - 0x23], eax
mov dword [ebp - 0x1f], eax
mov dword [ebp - 0x1b], eax
mov dword [ebp - 0x17], eax
mov word [ebp - 0x13], ax
mov byte [ebp - 0x11], al
mov byte [ebp - 0x4c], bl
call sub.MSVCR100.dll_memset
push 0xfff
lea eax, [ebp - 0x104f]
push ebx
push eax
mov byte [ebp - 0x1050], bl
call sub.MSVCR100.dll_memset
lea ecx, [ebp - 0x10b0]
push ecx
call fcn.0044ea20
mov eax, dword [ebp + 8]
add esp, 0x1c
cmp dword [ebp + 0x1c], esi
jae 0x41c38d
lea eax, [ebp + 8]
push 0x4a2608
push eax
call dword [sym.imp.MSVCR100.dll_fopen]
mov esi, dword [sym.imp.MSVCR100.dll_fread]
mov edi, eax
push edi
push 0x1000
lea edx, [ebp - 0x1050]
push 1
push edx
call esi
add esp, 0x18
cmp eax, ebx
jbe 0x41c3ec
lea esp, [esp]
push eax
lea eax, [ebp - 0x1050]
push eax
lea ecx, [ebp - 0x10b0]
push ecx
call fcn.0044e5f0
push edi
push 0x1000
lea edx, [ebp - 0x1050]
push 1
push edx
call esi
add esp, 0x1c
cmp eax, ebx
ja 0x41c3c0
push edi
call dword [sym.imp.MSVCR100.dll_fclose]
lea eax, [ebp - 0x10b0]
push eax
lea ecx, [ebp - 0x24]
push ecx
call fcn.0044e8b0
add esp, 0xc
lea edx, [ebp - 0x24]
lea ecx, [ebp - 0x4c]
call fcn.00419320
lea eax, [ebp - 0x4c]
lea edx, [eax + 1]
mov cl, byte [eax]
inc eax
cmp cl, bl
jne 0x41c417
mov esi, dword [ebp - 0x10b4]
sub eax, edx
mov edi, eax
lea eax, [ebp - 0x4c]
call fcn.00402610
cmp dword [ebp + 0x1c], 0x10
jb 0x41c443
mov edx, dword [ebp + 8]
push edx
call dword [sym.imp.MSVCR100.dll_void___cdecl_operator_delete_void__]
add esp, 4
mov eax, 1
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.00449013
mov esp, ebp
pop ebp
ret 0x20
Function at 0x41e1c0
Capabilities:
Print debug messages

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
push 0xffffffffffffffff
push 0x48c8a0
mov eax, dword fs:[0]
push eax
sub esp, 0x48
mov eax, dword [0x4c6018]
xor eax, esp
mov dword [esp + 0x40], eax
push ebx
push esi
push edi
mov eax, dword [0x4c6018]
xor eax, esp
push eax
lea eax, [esp + 0x58]
mov dword fs:[0], eax
mov ebx, ecx
xor eax, eax
mov ecx, 0xf
mov dword [esp + 0x10], ebx
mov dword [esp + 0x2c], ecx
mov dword [esp + 0x28], eax
mov byte [esp + 0x18], al
lea edx, [esp + 0x18]
push edx
sub esp, 0x1c
mov dword [esp + 0x80], eax
mov esi, esp
mov dword [esi + 0x10], eax
mov dword [esi + 0x14], ecx
mov byte [esi], al
lea edi, [ecx - 6]
mov eax, str.g_KeyType
mov dword [esp + 0x34], esp
call fcn.00402610
add ebx, 0x170
call fcn.004126f0
xor eax, eax
mov dword [esp + 0x48], 0xf
mov dword [esp + 0x44], eax
mov byte [esp + 0x34], al
mov esi, dword [esp + 0x10]
mov byte [esp + 0x60], 1
lea edi, [eax + 0x10]
cmp byte [esi + 0x1501], al
je 0x41e2b5
mov eax, dword [esp + 0x18]
cmp dword [esp + 0x2c], edi
jae 0x41e279
lea eax, [esp + 0x18]
push eax
call dword [sym.imp.KERNEL32.dll_OutputDebugStringA]
lea eax, [esp + 0x18]
push eax
lea ecx, [esi + 0x94]
or eax, 0xffffffff
xor ebx, ebx
call fcn.00402020
push ebx
mov dword [esi + 0x145c], 1
call dword [sym.imp.MSVCR100.dll__time64]
add esp, 4
mov dword [esi + 0x10f8], eax
mov dword [esi + 0x10fc], edx
cmp dword [esp + 0x2c], edi
jb 0x41e2c9
mov ecx, dword [esp + 0x18]
push ecx
call dword [sym.imp.MSVCR100.dll_void___cdecl_operator_delete_void__]
add esp, 4
mov ecx, dword [esp + 0x58]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [esp + 0x40]
xor ecx, esp
call fcn.00449013
mov esp, ebp
pop ebp
ret

Function at 0x41f8a0
Capabilities:
Check if file exists

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x48cd08
mov eax, dword fs:[0]
push eax
push edi
mov eax, dword [0x4c6018]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov dword [ebp - 4], 0
mov eax, dword [ebp + 8]
mov edi, 0x10
cmp dword [ebp + 0x1c], edi
jae 0x41f8da
lea eax, [ebp + 8]
push eax
call dword [sym.imp.SHLWAPI.dll_PathFileExistsA]
test eax, eax
je 0x41f930
mov eax, dword [ebp + 8]
cmp dword [ebp + 0x1c], edi
jae 0x41f8f0
lea eax, [ebp + 8]
push eax
mov ecx, esi
call fcn.00423940
test al, al
jne 0x41f907
cmp dword [ebp + 0x1c], edi
jb 0x41f942
mov eax, dword [ebp + 8]
push eax
jmp 0x41f939
cmp dword [ebp + 0x1c], edi
jb 0x41f919
mov ecx, dword [ebp + 8]
push ecx
call dword [sym.imp.MSVCR100.dll_void___cdecl_operator_delete_void__]
add esp, 4
mov eax, 1
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
mov esp, ebp
pop ebp
ret 0x1c
cmp dword [ebp + 0x1c], edi
jb 0x41f942
mov edx, dword [ebp + 8]
push edx
call dword [sym.imp.MSVCR100.dll_void___cdecl_operator_delete_void__]
add esp, 4
xor eax, eax
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
mov esp, ebp
pop ebp
ret 0x1c
Function at 0x4202d0
Capabilities:
Log keystrokes via polling

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
mov eax, dword [ebp + 8]
mov ecx, dword [eax - 0xd4]
sub esp, 0x10
push ebx
push esi
push ecx
lea ecx, [esp + 0xc]
call dword [sym.imp.mfc100.dll_Ordinal_322]
push 0x11
call dword [sym.imp.USER32.dll_GetKeyState]
mov edx, 0x8000
test dx, ax
je 0x420354
mov esi, dword [ebp + 0xc]
cmp dword [esi + 4], 0x100
mov ebx, dword [sym.imp.USER32.dll_GetAsyncKeyState]
jne 0x420354
push 0x4f
call ebx
test ax, ax
jns 0x420330
lea ecx, [esp + 8]
call dword [sym.imp.mfc100.dll_Ordinal_13518]
xor eax, eax
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 0x10
cmp dword [esi + 4], 0x100
jne 0x420354
push 0x50
call ebx
test ax, ax
js 0x42031c
cmp dword [esi + 4], 0x100
jne 0x420354
push 0x4e
call ebx
test ax, ax
js 0x42031c
lea ecx, [esp + 8]
call dword [sym.imp.mfc100.dll_Ordinal_13518]
pop esi
mov eax, 1
pop ebx
mov esp, ebp
pop ebp
ret 0x10
Function at 0x420d80
Capabilities:
Get local ipv4 addresses

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x48b679
mov eax, dword fs:[0]
push eax
sub esp, 8
push ebx
push esi
push edi
mov eax, dword [0x4c6018]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov esi, dword [ebp + 8]
xor ebx, ebx
mov dword [ebp - 4], ebx
mov dword [ebp - 0x14], ebx
mov dword [esi + 0x14], 0xf
mov dword [esi + 0x10], ebx
xor edi, edi
mov eax, 0x4b98a0
mov byte [esi], bl
call fcn.00402610
mov dword [ebp - 4], ebx
push 0x288
mov dword [ebp - 0x14], 1
call dword [sym.imp.MSVCR100.dll_malloc]
mov ebx, dword [sym.imp.IPHLPAPI.DLL_GetAdaptersInfo]
mov edi, eax
add esp, 4
lea eax, [ebp - 0x10]
push eax
push edi
mov dword [ebp - 0x10], 0x288
call ebx
test eax, eax
je 0x420e0c
mov ecx, dword [ebp - 0x10]
push ecx
call dword [sym.imp.MSVCR100.dll_malloc]
add esp, 4
mov edi, eax
lea edx, [ebp - 0x10]
push edx
push edi
call ebx
test eax, eax
jne 0x420e70
test edi, edi
je 0x420e70
mov ebx, dword [sym.imp.MSVCR100.dll_strstr]
lea eax, [edi + 0x10c]
push 0x4bc310
push eax
call ebx
add esp, 8
test eax, eax
jne 0x420e50
mov edi, dword [edi]
test edi, edi
jne 0x420e21
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
lea eax, [edi + 0x1b0]
mov ecx, eax
lea edi, [ecx + 1]
jmp 0x420e60
mov dl, byte [ecx]
inc ecx
test dl, dl
jne 0x420e60
sub ecx, edi
mov edi, ecx
call fcn.00402610
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

Function at 0x420e90
Capabilities:
Check if file exists
Download url
Receive data

Disassembly:
push ebp
mov ebp, esp
mov eax, dword [ebp + 8]
push ebx
push esi
push edi
mov edi, 0x10
cmp dword [ebp + 0x1c], edi
jae 0x420ea6
lea eax, [ebp + 8]
push eax
call dword [sym.imp.WININET.dll_DeleteUrlCacheEntry]
mov ecx, dword [ebp + 0x24]
cmp dword [ebp + 0x38], edi
jae 0x420eb8
lea ecx, [ebp + 0x24]
mov eax, dword [ebp + 8]
cmp dword [ebp + 0x1c], edi
jae 0x420ec3
lea eax, [ebp + 8]
xor ebx, ebx
push ebx
push ebx
push ecx
push eax
push ebx
call dword [sym.imp.urlmon.dll_URLDownloadToFileA]
test eax, eax
jne 0x420f23
mov eax, dword [ebp + 0x24]
cmp dword [ebp + 0x38], edi
jae 0x420edf
lea eax, [ebp + 0x24]
push eax
call dword [sym.imp.SHLWAPI.dll_PathFileExistsA]
test eax, eax
je 0x420f23
mov esi, dword [sym.imp.MSVCR100.dll_void___cdecl_operator_delete_void__]
cmp dword [ebp + 0x1c], edi
jb 0x420efe
mov eax, dword [ebp + 8]
push eax
call esi
add esp, 4
mov dword [ebp + 0x1c], 0xf
mov dword [ebp + 0x18], ebx
mov byte [ebp + 8], bl
cmp dword [ebp + 0x38], edi
jb 0x420f19
mov ecx, dword [ebp + 0x24]
push ecx
call esi
add esp, 4
pop edi
pop esi
mov eax, 1
pop ebx
pop ebp
ret
mov esi, dword [sym.imp.MSVCR100.dll_void___cdecl_operator_delete_void__]
cmp dword [ebp + 0x1c], edi
jb 0x420f37
mov edx, dword [ebp + 8]
push edx
call esi
add esp, 4
mov dword [ebp + 0x1c], 0xf
mov dword [ebp + 0x18], ebx
mov byte [ebp + 8], bl
cmp dword [ebp + 0x38], edi
jb 0x420f52
mov eax, dword [ebp + 0x24]
push eax
call esi
add esp, 4
pop edi
pop esi
xor eax, eax
pop ebx
pop ebp
ret
Function at 0x423310
Capabilities:
Access peb ldr_data

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x48b173
mov eax, dword fs:[0]
push eax
push ebx
push esi
push edi
mov eax, dword [0x4c6018]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov ebx, dword [ebp + 8]
or edi, 0xffffffff
mov dword [ebx + 8], edi
mov dword [ebx + 4], edi
xor edx, edx
lea esi, [ebx + 0x20]
mov dword [ebx + 0xc], edx
mov dword [esi + 0x10], edx
mov eax, 0xf
mov dword [esi + 0x14], eax
mov byte [esi], dl
mov dword [ebx + 0x10], edx
mov dword [ebx + 0x14], 1
mov dword [ebx + 0x3c], edx
mov dword [ebx + 0x40], edx
mov dword [ebp - 4], edx
lea ecx, [ebx + 0x44]
mov dword [ebx], vtable.TiXmlElement.0
mov dword [ecx + 8], edi
mov dword [ecx + 4], edi
mov dword [ecx + 0xc], edx
mov dword [ecx], vtable.TiXmlAttribute.0
mov dword [ecx + 0x28], eax
mov dword [ecx + 0x24], edx
mov byte [ecx + 0x14], dl
mov dword [ecx + 0x44], eax
mov dword [ecx + 0x40], edx
mov byte [ecx + 0x30], dl
mov dword [ecx + 0x10], edx
mov dword [ecx + 0x50], ecx
mov dword [ecx + 0x4c], ecx
mov edi, dword [ebp + 0xc]
mov byte [ebp - 4], 1
mov dword [ebx + 0x1c], edx
mov dword [ebx + 0x18], edx
lea ecx, [edi + 1]
lea esp, [esp]
mov al, byte [edi]
inc edi
cmp al, dl
jne 0x4233b0
mov eax, dword [ebp + 0xc]
sub edi, ecx
call fcn.00402610
mov eax, ebx
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 8

Function at 0x423890
Capabilities:
Access peb ldr_data
Get kernel32 base address

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x48b5c3
mov eax, dword fs:[0]
push eax
push ebx
push esi
push edi
mov eax, dword [0x4c6018]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov ebx, dword [ebp + 8]
xor eax, eax
or ecx, 0xffffffff
mov dword [ebx + 8], ecx
mov dword [ebx + 4], ecx
mov dword [ebx + 0xc], eax
mov dword [ebx + 0x30], eax
mov edx, 0xf
mov dword [ebx + 0x34], edx
mov byte [ebx + 0x20], al
mov dword [ebx + 0x10], eax
mov dword [ebx + 0x14], eax
mov dword [ebx + 0x18], eax
mov dword [ebx + 0x1c], eax
mov dword [ebx + 0x3c], eax
mov dword [ebx + 0x40], eax
mov dword [ebp - 4], eax
lea esi, [ebx + 0x4c]
mov dword [ebx], vtable.TiXmlDocument.0
mov dword [esi + 0x14], edx
mov dword [esi + 0x10], eax
mov byte [esi], al
mov byte [ebp - 4], 1
mov dword [ebx + 0x70], ecx
mov dword [ebx + 0x6c], ecx
mov byte [ebx + 0x74], al
mov byte [ebx + 0x44], al
mov dword [ebx + 0x48], eax
xor edi, edi
mov eax, 0x4b98a0
mov dword [ebx + 0x68], 4
call fcn.00402610
xor eax, eax
mov dword [ebx + 0x70], eax
mov dword [ebx + 0x6c], eax
mov eax, ebx
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 4
Function at 0x423a90
Capabilities:
Read file on windows

Disassembly:
push ebp
mov ebp, esp
push ecx
push esi
push edi
mov edi, dword [ebp + 8]
test edi, edi
jne 0x423ade
cmp byte [ebx + 0x44], 0
jne 0x423ad4
mov byte [ebx + 0x44], 1
mov dword [ebx + 0x48], 2
mov eax, dword [str.Failed_to_open_file]
mov ecx, eax
lea esi, [ecx + 1]
mov dl, byte [ecx]
inc ecx
test dl, dl
jne 0x423ab8
sub ecx, esi
lea esi, [ebx + 0x4c]
mov edi, ecx
call fcn.00402610
or eax, 0xffffffff
mov dword [ebx + 0x70], eax
mov dword [ebx + 0x6c], eax
pop edi
xor al, al
pop esi
mov esp, ebp
pop ebp
ret 4
mov esi, dword [ebx + 0x18]
test esi, esi
je 0x423af6
mov ecx, esi
mov eax, dword [ecx]
mov edx, dword [eax]
mov esi, dword [esi + 0x40]
push 1
call edx
test esi, esi
jne 0x423ae5
xor ecx, ecx
push 2
or eax, 0xffffffff
push ecx
mov dword [ebx + 0x18], ecx
mov dword [ebx + 0x1c], ecx
push edi
mov dword [ebx + 8], eax
mov dword [ebx + 4], eax
call dword [sym.imp.MSVCR100.dll_fseek]
push edi
call dword [sym.imp.MSVCR100.dll_ftell]
push 0
mov esi, eax
push 0
push edi
mov dword [ebp - 4], esi
call dword [sym.imp.MSVCR100.dll_fseek]
add esp, 0x1c
test esi, esi
jg 0x423b5c
cmp byte [ebx + 0x44], 0
jne 0x423ad4
mov byte [ebx + 0x44], 1
mov dword [ebx + 0x48], 0xc
mov eax, dword [str.Error_document_empty.]
mov ecx, eax
lea esi, [ecx + 1]
lea ebx, [ebx]
mov dl, byte [ecx]
inc ecx
test dl, dl
jne 0x423b50
jmp 0x423abf
lea eax, [esi + 1]
push eax
call dword [sym.imp.MSVCR100.dll_void____cdecl_operator_new___unsigned_int_]
mov ecx, dword [ebp + 8]
push ecx
push 1
mov edi, eax
push esi
push edi
mov byte [edi], 0
call dword [sym.imp.MSVCR100.dll_fread]
add esp, 0x14
cmp eax, 1
je 0x423bbc
push edi
call dword [sym.imp.MSVCR100.dll_void___cdecl_operator_delete___void__]
add esp, 4
cmp byte [ebx + 0x44], 0
jne 0x423ad4
mov byte [ebx + 0x44], 1
mov dword [ebx + 0x48], 2
mov eax, dword [str.Failed_to_open_file]
mov ecx, eax
lea esi, [ecx + 1]
lea ebx, [ebx]
mov dl, byte [ecx]
inc ecx
test dl, dl
jne 0x423bb0
jmp 0x423abf
mov edx, dword [ebp - 4]
mov byte [edi + edx], 0
cmp byte [edi], 0
mov eax, edi
mov esi, edi
je 0x423bec
lea esp, [esp]
mov cl, byte [eax]
cmp cl, 0xd
jne 0x423be3
mov byte [esi], 0xa
inc eax
inc esi
cmp byte [eax], 0xa
jne 0x423be7
jmp 0x423be6
mov byte [esi], cl
inc esi
inc eax
cmp byte [eax], 0
jne 0x423bd0
push 1
mov byte [esi], 0
mov eax, dword [ebx]
mov edx, dword [eax + 8]
push 0
push edi
mov ecx, ebx
call edx
push edi
call dword [sym.imp.MSVCR100.dll_void___cdecl_operator_delete___void__]
add esp, 4
xor eax, eax
cmp byte [ebx + 0x44], al
pop edi
sete al
pop esi
mov esp, ebp
pop ebp
ret 4
Function at 0x42b450
Capabilities:
Terminate process

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
push ecx
push esi
mov esi, dword [ebp + 8]
mov eax, dword [esi + 0x70]
test eax, eax
je 0x42b477
mov ecx, dword [ebp + 0xc]
mov dword [eax + 0x44], ecx
mov edx, dword [esi + 0x70]
push 1
add edx, 4
push edx
call dword [sym.imp.MSVCR100.dll_longjmp]
mov eax, dword [ebp + 0xc]
mov ecx, dword [esi + 0x10]
mov byte [esi + 6], al
cmp dword [ecx + 0x58], 0
je 0x42b49d
push eax
mov eax, esi
call fcn.0042b380
mov edx, dword [esi + 0x10]
mov eax, dword [edx + 0x58]
add esp, 4
push esi
call eax
add esp, 4
push 1
call dword [sym.imp.MSVCR100.dll_exit]
int3