joyce8/EMBER2024-capa huggingface dataset:
Function at 0x564164
Capabilities:
Inspect load icon resource

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffdfc
push ebx
push esi
test dl, dl
je 0x56417b
add esp, 0xfffffff0
call fcn.00405b98
mov byte [ebp - 1], dl
mov ebx, eax
xor edx, edx
mov eax, ebx
call fcn.0049fc58
mov eax, dword [0x57e850]
cmp byte [eax], 0
jne 0x5641a8
push 0
call sub.ole32.dll_OleInitialize
test eax, 0x80000000
sete al
mov byte [ebx + 0x194], al
mov eax, dword [0x57eb14]
cmp word [eax + 2], 0
jne 0x5641c2
mov eax, dword [0x57eb14]
mov dword [eax + 4], ebx
mov dword [eax], fcn.00566440
mov eax, dword [0x57ec28]
cmp word [eax + 2], 0
jne 0x5641dc
mov eax, dword [0x57ec28]
mov dword [eax + 4], ebx
mov dword [eax], fcn.00566644
mov byte [ebx + 0x41], 0
mov dl, 1
mov eax, dword [0x4c10c0]
call fcn.004c70dc
mov esi, eax
mov dword [ebx + 0x54], esi
mov dword [esi + 0xc], ebx
mov dword [esi + 8], 0x566ac0
mov dl, 1
mov eax, dword [0x46d3ac]
call fcn.004055f8
mov dword [ebx + 0xa4], eax
mov dl, 1
mov eax, dword [0x46d3ac]
call fcn.004055f8
mov dword [ebx + 0xc4], eax
xor eax, eax
mov dword [ebx + 0x74], eax
xor eax, eax
mov dword [ebx + 0x98], eax
mov dword [ebx + 0x70], 0xff000018
mov dword [ebx + 0x8c], 0x1f4
mov byte [ebx + 0x90], 1
xor eax, eax
mov dword [ebx + 0x94], eax
mov dword [ebx + 0x88], 0x9c4
mov byte [ebx + 0x9c], 0
mov byte [ebx + 0xb9], 1
mov byte [ebx + 0xd0], 1
mov dl, 1
mov eax, dword [0x4c59e0]
call fcn.004cff64
mov esi, eax
mov dword [ebx + 0xb4], esi
push 0x5643c4
mov eax, dword [0x57e9f0]
mov eax, dword [eax]
push eax
call sub.user32.dll_LoadIconW
mov edx, eax
mov eax, esi
call fcn.004d0360
mov eax, dword [ebx + 0xb4]
mov dword [eax + 0x14], ebx
mov dword [eax + 0x10], 0x566d80
mov dl, 1
mov eax, dword [0x46d3ac]
call fcn.004055f8
mov dword [ebx + 0xac], eax
push pe_nt_image_headers32
lea eax, [ebp - 0x202]
push eax
mov eax, dword [0x57e9f0]
mov eax, dword [eax]
push eax
call sub.kernel32.dll_GetModuleFileNameW_1
lea eax, [ebp - 0x202]
mov dx, 0x5c
call fcn.0041c4f4
test eax, eax
je 0x5642f6
lea edx, [eax + 2]
lea eax, [ebp - 0x202]
call fcn.0041c330
lea eax, [ebp - 0x202]
mov dx, 0x2e
call fcn.0041c4d8
test eax, eax
je 0x56430e
mov word [eax], 0
lea eax, [ebp - 0x202]
push eax
call sub.user32.dll_CharNextW_1
push eax
call sub.user32.dll_CharLowerW
lea eax, [ebx + 0xa0]
lea edx, [ebp - 0x202]
mov ecx, pe_nt_image_headers32
call fcn.00407dec
push ebx
push 0x565e1c
call fcn.00559f6c
mov dword [ebx + 0x190], eax
mov byte [ebx + 0xe4], 0
mov eax, dword [0x57e850]
cmp byte [eax], 0
jne 0x56435f
mov eax, ebx
call fcn.0056458c
mov byte [ebx + 0x6d], 1
mov byte [ebx + 0x6e], 1
mov byte [ebx + 0x6f], 1
mov byte [ebx + 0xba], 1
mov byte [ebx + 0xe5], 0
mov byte [ebx + 0xf0], 0
xor eax, eax
mov dword [ebx + 0xe8], eax
mov byte [ebx + 0xe7], 0
xor eax, eax
mov dword [ebx + 0xbc], eax
mov eax, ebx
call fcn.00566fc8
mov eax, ebx
call fcn.00567c20
mov eax, ebx
cmp byte [ebp - 1], 0
je 0x5643bc
call fcn.00405bf0
pop dword fs:[0]
add esp, 0xc
mov eax, ebx
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x5648cc
Capabilities:
Enumerate gui resources

Disassembly:
push ebx
push esi
add esp, 0xfffffff8
mov ebx, eax
mov eax, dword [ebx + 0x188]
test eax, eax
je 0x564978
cmp dword [ebx + 0xa8], 0
jne 0x564972
mov dword [esp], eax
mov byte [esp + 4], dl
mov eax, esp
push eax
push 0x564804
call sub.user32.dll_EnumWindows
mov eax, dword [ebx + 0xa4]
cmp dword [eax + 8], 0
je 0x564972
push 3
mov eax, dword [esp + 4]
push eax
call sub.user32.dll_GetWindow
mov esi, eax
mov dword [esp], esi
mov eax, esi
mov edx, 0xffffffec
push edx
push eax
call sub.user32.dll_GetWindowLongW
test al, 8
je 0x564938
mov dword [esp], 0xfffffffe
mov eax, dword [ebx + 0xa4]
mov esi, dword [eax + 8]
dec esi
cmp esi, 0
jl 0x564972
push 0x213
push 0
push 0
push 0
push 0
mov eax, dword [esp + 0x14]
push eax
mov edx, esi
mov eax, dword [ebx + 0xa4]
call fcn.0048f198
push eax
call sub.user32.dll_SetWindowPos
dec esi
cmp esi, 0xffffffff
jne 0x564947
inc dword [ebx + 0xa8]
pop ecx
pop edx
pop esi
pop ebx
ret

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

Disassembly:
push ebx
push esi
push edi
mov ebx, edx
mov esi, eax
mov eax, dword [0x58430c]
cmp dword [eax + 0x188], 0
je 0x564cfd
test bl, bl
jne 0x564c4b
cmp dword [esi + 0xb0], 0
jne 0x564c40
mov eax, esi
call fcn.00567a70
push eax
push 0x564aa4
call sub.user32.dll_EnumWindows
cmp dword [esi + 0x58], 0
je 0x564c11
mov eax, dword [0x58430c]
cmp byte [eax + 0xe7], 0
je 0x564c11
mov eax, dword [esi + 0xec]
call fcn.00408ea4
mov edi, eax
cmp edi, 0
jl 0x564c11
push 0
mov eax, dword [esi + 0xec]
mov eax, dword [eax + edi*4]
push eax
call sub.user32.dll_ShowWindow
dec edi
cmp edi, 0xffffffff
jne 0x564bfa
mov eax, dword [esi + 0xac]
mov edi, dword [eax + 8]
dec edi
cmp edi, 0
jl 0x564c40
cmp bl, 1
cmc
sbb eax, eax
push eax
mov edx, edi
mov eax, dword [esi + 0xac]
call fcn.0048f198
push eax
call sub.user32.dll_ShowOwnedPopups
dec edi
cmp edi, 0xffffffff
jne 0x564c20
inc dword [esi + 0xb0]
jmp 0x564cfd
cmp dword [esi + 0xb0], 0
jle 0x564cfd
dec dword [esi + 0xb0]
cmp dword [esi + 0xb0], 0
jne 0x564cfd
cmp dword [esi + 0x58], 0
je 0x564ca8
mov eax, dword [0x58430c]
cmp byte [eax + 0xe7], 0
je 0x564ca8
mov eax, dword [esi + 0xec]
call fcn.00408ea4
mov edi, eax
cmp edi, 0
jl 0x564ca8
push 5
mov eax, dword [esi + 0xec]
mov eax, dword [eax + edi*4]
push eax
call sub.user32.dll_ShowWindow
dec edi
cmp edi, 0xffffffff
jne 0x564c91
mov eax, dword [esi + 0xac]
mov edi, dword [eax + 8]
dec edi
cmp edi, 0
jl 0x564cd7
cmp bl, 1
cmc
sbb eax, eax
push eax
mov edx, edi
mov eax, dword [esi + 0xac]
call fcn.0048f198
push eax
call sub.user32.dll_ShowOwnedPopups
dec edi
cmp edi, 0xffffffff
jne 0x564cb7
mov eax, dword [esi + 0xac]
mov edx, dword [eax]
call dword [edx + 8]
push 0
lea eax, [esi + 0xec]
mov ecx, 1
mov edx, dword [0x556810]
call fcn.004090b8
add esp, 4
pop edi
pop esi
pop ebx
ret
Function at 0x56591c
Capabilities:
Get graphical window text

Disassembly:
push ebx
push esi
add esp, 0xfffffe00
mov esi, edx
mov ebx, eax
cmp byte [ebx + 0xc0], 0
je 0x565979
cmp byte [ebx + 0xe7], 0
jne 0x565979
push pe_nt_image_headers32
lea eax, [esp + 4]
push eax
mov eax, dword [ebx + 0x188]
push eax
call sub.user32.dll_GetWindowTextW
mov ecx, eax
mov edx, esp
mov eax, esi
call fcn.0040738c
mov eax, dword [esi]
test eax, eax
je 0x565966
sub eax, 4
mov eax, dword [eax]
test eax, eax
jne 0x565986
mov eax, esi
mov edx, dword [ebx + 0xa0]
call fcn.004075e4
jmp 0x565986
mov eax, esi
mov edx, dword [ebx + 0xa0]
call fcn.004075e4
add esp, 0x200
pop esi
pop ebx
ret

Function at 0x5671b4
Capabilities:
Hide graphical window

Disassembly:
push ebx
push esi
mov ebx, eax
mov esi, dword [ebx + 0x98]
test esi, esi
je 0x567225
mov eax, esi
call fcn.004ecc98
test al, al
je 0x567225
mov eax, dword [ebx + 0x98]
call fcn.004ec8c0
push eax
call sub.user32.dll_IsWindowVisible
test eax, eax
je 0x567225
mov eax, dword [ebx + 0x98]
mov edx, dword [eax]
call dword [edx + 0x110]
test al, al
je 0x567216
push 0
mov eax, dword [ebx + 0x98]
call fcn.004ec8c0
push eax
call sub.user32.dll_ShowWindow
xor edx, edx
mov eax, dword [ebx + 0x98]
call fcn.004e3958
jmp 0x567225
mov cl, 1
mov edx, dword [ebx + 0x88]
mov eax, ebx
call fcn.00566fe8
pop esi
pop ebx
ret
Function at 0x56dc4c
Capabilities:
Hide graphical window

Disassembly:
push ebx
push esi
mov ebx, eax
cmp dword [ebx + 0x8c], 0
jne 0x56dcc6
mov eax, dword [ebx + 8]
call fcn.004ec8c0
mov ecx, eax
mov dl, 1
mov eax, dword [0x4f986c]
call fcn.004e6d20
mov esi, eax
mov dword [ebx + 0x8c], esi
xor edx, edx
mov eax, esi
call fcn.004fec14
mov dword [esi + 0x2bc], ebx
mov dword [esi + 0x2b8], 0x56d544
push 8
push 3
call sub.user32.dll_GetSystemMetrics
push eax
push 0
push 0
push 0
push 0
mov eax, dword [ebx + 0x8c]
call fcn.004ec8c0
push eax
call sub.user32.dll_SetWindowPos
push 0
mov eax, dword [ebx + 0x8c]
call fcn.004ec8c0
push eax
call sub.user32.dll_ShowWindow
cmp dword [ebx + 0x9c], 0
jne 0x56dd3c
mov eax, dword [ebx + 8]
call fcn.004ec8c0
mov ecx, eax
mov dl, 1
mov eax, dword [0x4f986c]
call fcn.004e6d20
mov esi, eax
mov dword [ebx + 0x9c], esi
mov dl, 1
mov eax, esi
call fcn.004fec14
mov dword [esi + 0x2bc], ebx
mov dword [esi + 0x2b8], 0x56d590
push 8
push 0
push 2
call sub.user32.dll_GetSystemMetrics
push eax
push 0
push 0
push 0
mov eax, dword [ebx + 0x9c]
call fcn.004ec8c0
push eax
call sub.user32.dll_SetWindowPos
push 0
mov eax, dword [ebx + 0x9c]
call fcn.004ec8c0
push eax
call sub.user32.dll_ShowWindow
cmp dword [ebx + 0x94], 0
jne 0x56dda8
mov eax, dword [ebx + 8]
call fcn.004ec8c0
mov ecx, eax
mov dl, 1
mov eax, dword [0x4fa2dc]
call fcn.004e6d20
mov esi, eax
mov dword [ebx + 0x94], esi
mov eax, esi
mov byte [eax + 0x290], 1
push 8
push 3
call sub.user32.dll_GetSystemMetrics
push eax
push 2
call sub.user32.dll_GetSystemMetrics
push eax
push 0
push 0
push 0
mov eax, dword [ebx + 0x94]
call fcn.004ec8c0
push eax
call sub.user32.dll_SetWindowPos
push 0
mov eax, dword [ebx + 0x94]
call fcn.004ec8c0
push eax
call sub.user32.dll_ShowWindow
pop esi
pop ebx
ret
Function at 0x5715a8
Capabilities:
Copy file

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffd78
push ebx
push esi
push edi
xor edx, edx
mov dword [ebp - 0x288], edx
mov dword [ebp - 0x284], edx
mov dword [ebp - 4], edx
mov dword [ebp - 0x27c], eax
lea eax, [ebp - 0x278]
mov edx, dword [0x415f80]
call fcn.00408580
xor eax, eax
push ebp
push 0x5717e5
push dword fs:[eax]
mov dword fs:[eax], esp
cmp byte [0x584344], 0
jne 0x571606
mov eax, dword [ebp - 0x27c]
add eax, 0x44
mov edx, 0x571800
call fcn.004075e4
mov eax, dword [ebp - 0x27c]
push eax
push 0x5710b8
mov eax, dword [ebp - 0x27c]
call fcn.0049f9bc
xor eax, eax
mov dword [ebp - 0x280], eax
lea eax, [ebp - 0x284]
mov ecx, 0x571838
mov edx, dword [0x584348]
call fcn.00407f9c
mov eax, dword [ebp - 0x284]
lea ecx, [ebp - 0x278]
mov edx, 0x1ff
call fcn.0041c034
mov ebx, eax
xor eax, eax
push ebp
push 0x5717a7
push dword fs:[eax]
mov dword fs:[eax], esp
jmp 0x57173c
xor eax, eax
push ebp
push 0x5716e5
push dword fs:[eax]
mov dword fs:[eax], esp
inc dword [ebp - 0x280]
push dword [0x584348]
push 0x57185c
push dword [ebp - 0x264]
mov eax, dword [ebp - 0x27c]
add eax, 0x40
mov edx, 3
call fcn.00408024
push dword [0x58434c]
push 0x57185c
push dword [ebp - 0x264]
lea eax, [ebp - 4]
mov edx, 3
call fcn.00408024
push 0
mov eax, dword [ebp - 4]
call fcn.00407d48
push eax
mov eax, dword [ebp - 0x27c]
mov eax, dword [eax + 0x40]
call fcn.00407d48
push eax
call sub.kernel32.dll_CopyFileW
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
jmp 0x57172f
lea eax, [ebp - 0x278]
call fcn.0041c084
mov ebx, eax
test ebx, ebx
jne 0x57174d
cmp byte [0x584344], 0
je 0x571666
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x5717ae
lea eax, [ebp - 0x278]
call fcn.0041c0a8
lea edx, [ebp - 0x288]
mov eax, dword [ebp - 0x280]
call fcn.0041b750
mov ecx, dword [ebp - 0x288]
mov eax, dword [ebp - 0x27c]
add eax, 0x44
mov edx, 0x5718a8
call fcn.00407f9c
mov eax, dword [ebp - 0x27c]
push eax
push 0x5710b8
mov eax, dword [ebp - 0x27c]
call fcn.0049f9bc
ret

Function at 0x5718cc
Capabilities:
Get common file path

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffdfc
push ebx
xor edx, edx
mov dword [ebp - 0x204], edx
mov ebx, eax
xor eax, eax
push ebp
push 0x57195e
push dword fs:[eax]
mov dword fs:[eax], esp
mov edx, 0xff
lea eax, [ebp - 0x1fe]
mov word [eax], 0x20
add eax, 2
dec edx
jne 0x5718f9
push 0
push 0x23
lea eax, [ebp - 0x1fe]
push eax
mov eax, dword [0x57ebf4]
mov eax, dword [eax]
mov eax, dword [eax + 0x188]
push eax
call sub.shell32.dll_SHGetSpecialFolderPathW
lea eax, [ebp - 0x204]
lea edx, [ebp - 0x1fe]
mov ecx, 0xff
call fcn.0040738c
mov eax, dword [ebp - 0x204]
mov edx, ebx
call fcn.0041adcc
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x571965
lea eax, [ebp - 0x204]
call fcn.00407204
ret
Function at 0x432000
Capabilities:
Encode data using xor
Packed with generic packer

Disassembly:
pushal
nop
nop
nop
nop
nop
nop
mov eax, section..text
nop
mov ebx, 0x40c7d0
mov ecx, 0x5c30826
nop
nop
nop
test eax, eax
nop
nop
je 0x43204e
nop
nop
nop
nop
xor dword [eax], ecx
nop
nop
nop
nop
nop
nop
nop
inc eax
nop
nop
nop
nop
nop
inc eax
nop
nop
nop
nop
nop
inc eax
nop
nop
nop
nop
nop
nop
inc eax
nop
nop
cmp eax, ebx
nop
nop
nop
nop
nop
nop
jne 0x432024
nop
mov eax, section..data
nop
mov ebx, 0x42f314
nop
mov ecx, 0x1e7f5e40
nop
nop
nop
nop
nop
test eax, eax
nop
nop
je 0x432084
nop
nop
xor dword [eax], ecx
nop
nop
nop
nop
add eax, 4
nop
nop
nop
cmp eax, ebx
nop
nop
nop
nop
nop
nop
jne 0x43206c
nop
nop
nop
nop
nop
popal
nop
nop
jmp 0x431219
Function at 0x40181c
Capabilities:
Create http request
Read data from internet
Receive data

Disassembly:
push ebp
mov ebp, esp
sub esp, 0xc
push ebx
mov ebx, dword [sym.imp.KERNEL32.dll_GetProcessHeap]
push esi
push edi
push dword [ebp + 0x10]
xor edi, edi
push 8
mov dword [ebp - 8], edi
call ebx
push eax
call dword [sym.imp.KERNEL32.dll_HeapAlloc]
push edi
push edi
push edi
push edi
push dword [ebp + 0x14]
mov dword [ebp - 4], eax
call dword [sym.imp.WININET.dll_InternetOpenW]
push edi
push 0x84000300
push edi
push edi
push dword [ebp + 8]
mov dword [ebp - 0xc], eax
push eax
call dword [sym.imp.WININET.dll_InternetOpenUrlW]
mov esi, eax
cmp esi, edi
jne 0x40187a
push dword [ebp - 0xc]
call dword [sym.imp.WININET.dll_InternetCloseHandle]
or eax, 0xffffffff
jmp 0x401900
lea eax, [ebp - 8]
push eax
push dword [ebp + 0x10]
push dword [ebp - 4]
push esi
call dword [sym.imp.WININET.dll_InternetReadFile]
test eax, eax
jne 0x401893
or dword [ebp - 8], 0xffffffff
push esi
mov esi, dword [sym.imp.WININET.dll_InternetCloseHandle]
call esi
push dword [ebp - 0xc]
call esi
cmp dword [ebp - 8], 0xffffffff
je 0x4018fd
cmp dword [ebp - 4], edi
je 0x4018c0
push dword [ebp - 4]
call dword [sym.imp.KERNEL32.dll_lstrlenA]
mov esi, eax
inc esi
cmp esi, 0x3fffffff
jle 0x4018c4
xor eax, eax
jmp 0x4018db
lea eax, [esi + esi]
call fcn.00417cb0
mov eax, esp
push 3
push esi
push dword [ebp - 4]
mov esi, eax
call fcn.00401043
push eax
push 0x428290
push dword [ebp + 0x10]
push dword [ebp + 0xc]
call dword [sym.imp.SHLWAPI.dll_wnsprintfW]
add esp, 0x10
push dword [ebp - 4]
push edi
call ebx
push eax
call dword [sym.imp.KERNEL32.dll_HeapFree]
mov eax, dword [ebp - 8]
lea esp, [ebp - 0x18]
pop edi
pop esi
pop ebx
leave
ret

Function at 0x401908
Capabilities:
Check internet connectivity via wininet

Disassembly:
push ebp
mov ebp, esp
push ecx
push 0
lea eax, [ebp - 4]
push eax
call dword [sym.imp.WININET.dll_InternetGetConnectedState]
dec eax
neg eax
sbb eax, eax
inc eax
leave
ret
Function at 0x401ba3
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
mov eax, 0x11d4
call fcn.00416990
push ebx
push esi
push edi
mov edi, ecx
call fcn.00401908
test al, al
je 0x401d72
push edi
call fcn.00401920
lea esi, [edi + 0x5ec]
cmp byte [esi], 0
jne 0x401be0
lea eax, [edi + 0x64]
push eax
call fcn.00420af2
pop ecx
mov byte [esi], 1
lea eax, [edi + 0xc8]
push eax
mov eax, dword [edi + 0x5e8]
call fcn.00401972
push eax
mov eax, dword [edi + 0x5e4]
call fcn.00401972
push eax
lea eax, [edi + 0x64]
push eax
push edi
push str._s_s_s_s_s
mov ebx, 0x1f4
lea eax, [ebp - 0x5e8]
push ebx
push eax
call dword [sym.imp.SHLWAPI.dll_wnsprintfW]
add esp, 0x20
push 0x42890c
lea eax, [ebp - 0x5e8]
push eax
call dword [sym.imp.SHLWAPI.dll_StrTrimW]
lea eax, [ebp - 0x5e8]
push eax
call dword [sym.imp.KERNEL32.dll_lstrlenW]
inc eax
cmp eax, 0x3fffffff
jle 0x401c4c
and dword [ebp - 8], 0
jmp 0x401c6c
lea esi, [eax + eax]
mov eax, esi
call fcn.00417cb0
mov eax, esp
push 3
push esi
lea ecx, [ebp - 0x5e8]
push ecx
mov esi, eax
call fcn.00401076
mov dword [ebp - 8], eax
push dword [ebp - 8]
mov esi, dword [sym.imp.KERNEL32.dll_lstrlenA]
and dword [ebp - 4], 0
call esi
test eax, eax
jle 0x401c95
mov eax, dword [ebp - 8]
mov ecx, dword [ebp - 4]
add ecx, eax
xor byte [ecx], 0x83
inc dword [ebp - 4]
push eax
call esi
cmp dword [ebp - 4], eax
jl 0x401c7f
push 0x1f3
lea eax, [ebp - 0x1ff]
push 0
push eax
mov byte [ebp - 0x200], 0
call fcn.0040cdd0
add esp, 0xc
lea eax, [ebp - 4]
push eax
lea eax, [ebp - 0x200]
push eax
push dword [ebp - 8]
mov dword [ebp - 4], ebx
call esi
push eax
push dword [ebp - 8]
call fcn.004016d5
add esp, 0x10
lea eax, [ebp - 0x200]
push eax
call esi
mov esi, eax
inc esi
cmp esi, 0x3fffffff
jle 0x401ce9
xor eax, eax
jmp 0x401d04
lea eax, [esi + esi]
call fcn.00417cb0
mov eax, esp
push 3
push esi
lea ecx, [ebp - 0x200]
push ecx
mov esi, eax
call fcn.00401043
push eax
push ebx
lea eax, [ebp - 0x5e8]
push eax
call fcn.00401b10
lea eax, [ebp - 0x5e8]
push eax
add edi, 0x12c
push edi
call dword [sym.imp.SHLWAPI.dll_StrCpyW]
lea eax, [ebp - 0x5e8]
push eax
push 0x428910
push 0x4288b8
lea eax, [ebp - 0x9d0]
push ebx
push eax
call dword [sym.imp.SHLWAPI.dll_wnsprintfW]
add esp, 0x14
push str.ac_gui_1.23.357
push 0x400
lea eax, [ebp - 0x11d0]
push eax
lea eax, [ebp - 0x9d0]
push eax
call fcn.0040181c
xor ecx, ecx
add esp, 0x10
cmp eax, 0xffffffff
setne cl
mov al, cl
lea esp, [ebp - 0x11e0]
pop edi
pop esi
pop ebx
leave
ret
Function at 0x407037
Capabilities:
Extract resource via kernel32 functions

Disassembly:
mov eax, 0x425856
call fcn.00421088
push ebx
push esi
push edi
mov esi, ecx
call fcn.0040700a
push 0x429394
push dword [ebp + 8]
push dword [ebp + 0xc]
call dword [sym.imp.KERNEL32.dll_FindResourceW]
mov edi, eax
xor ebx, ebx
cmp edi, ebx
je 0x407144
push edi
push dword [ebp + 0xc]
call dword [sym.imp.KERNEL32.dll_SizeofResource]
mov dword [ebp + 8], eax
cmp eax, ebx
je 0x407144
push edi
push dword [ebp + 0xc]
call dword [sym.imp.KERNEL32.dll_LoadResource]
push eax
call dword [sym.imp.KERNEL32.dll_LockResource]
mov edi, eax
cmp edi, ebx
je 0x407144
push dword [ebp + 8]
push 2
call dword [sym.imp.KERNEL32.dll_GlobalAlloc]
mov dword [esi + 8], eax
cmp eax, ebx
je 0x407144
push eax
call dword [sym.imp.KERNEL32.dll_GlobalLock]
cmp eax, ebx
je 0x407138
push dword [ebp + 8]
push edi
push eax
call fcn.0040eb00
add esp, 0xc
lea eax, [ebp + 0xc]
push eax
push ebx
push dword [esi + 8]
mov dword [ebp + 0xc], ebx
call dword [sym.imp.ole32.dll_CreateStreamOnHGlobal]
test eax, eax
jne 0x40712f
mov edi, dword [ebp + 0xc]
push 0x10
call sub.gdiplus.dll_GdipAlloc
mov dword [ebp + 8], eax
mov dword [ebp - 4], ebx
cmp eax, ebx
je 0x4070f8
push edi
push eax
call fcn.00406ee2
jmp 0x4070fa
xor eax, eax
or dword [ebp - 4], 0xffffffff
mov dword [esi + 4], eax
mov eax, dword [ebp + 0xc]
mov ecx, dword [eax]
push eax
call dword [ecx + 8]
mov eax, dword [esi + 4]
cmp eax, ebx
je 0x40712f
mov ecx, dword [eax + 8]
mov dword [eax + 8], ebx
cmp ecx, ebx
jne 0x40711f
mov al, 1
jmp 0x407146
mov ecx, dword [esi + 4]
cmp ecx, ebx
je 0x40712c
mov eax, dword [ecx]
push 1
call dword [eax]
mov dword [esi + 4], ebx
push dword [esi + 8]
call dword [sym.imp.KERNEL32.dll_GlobalUnlock]
push dword [esi + 8]
call dword [sym.imp.KERNEL32.dll_GlobalFree]
mov dword [esi + 8], ebx
xor al, al
mov ecx, dword [ebp - 0xc]
pop edi
pop esi
pop ebx
mov dword fs:[0], ecx
leave
ret 8
Function at 0x407207
Capabilities:
Download and write a file
Get http content length
Read data from internet
Receive and write data from server to client
Receive data
Write file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x14
push esi
mov esi, eax
call fcn.00401908
test al, al
je 0x407357
push ebx
xor ebx, ebx
push ebx
push 0x80
push 2
push ebx
push 1
push 0xc0000000
lea eax, [esi + 0x10c8]
push eax
call dword [sym.imp.KERNEL32.dll_CreateFileW]
mov dword [esi + 0x12d4], eax
cmp eax, 0xffffffff
jne 0x40724b
push eax
jmp 0x40729b
call fcn.00407157
mov eax, esi
call fcn.004071c5
test al, al
je 0x407289
mov eax, dword [esi + 0x12dc]
cmp eax, ebx
je 0x407289
push ebx
lea ecx, [ebp - 8]
push ecx
lea ecx, [ebp - 4]
push ecx
push 0x20000005
push eax
mov dword [ebp - 4], ebx
mov dword [ebp - 8], 4
call dword [sym.imp.WININET.dll_HttpQueryInfoW]
cmp dword [ebp - 4], ebx
jne 0x4072a8
mov eax, esi
call fcn.0040719e
mov esi, dword [esi + 0x12d4]
cmp esi, ebx
je 0x4072a1
push esi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
xor al, al
jmp 0x407356
push edi
call dword [sym.imp.KERNEL32.dll_GetProcessHeap]
mov edi, 0x400
push edi
push 8
push eax
mov dword [ebp - 0x14], eax
call dword [sym.imp.KERNEL32.dll_HeapAlloc]
mov dword [esi + 0x12d0], eax
mov dword [ebp - 8], ebx
mov dword [ebp - 0xc], ebx
mov dword [ebp - 0x10], ebx
lea eax, [ebp - 0xc]
push eax
push edi
push dword [esi + 0x12d0]
push dword [esi + 0x12dc]
call dword [sym.imp.WININET.dll_InternetReadFile]
mov eax, dword [ebp - 0xc]
add dword [ebp - 8], eax
push ebx
lea ecx, [ebp - 0x10]
push ecx
push eax
push dword [esi + 0x12d0]
push dword [esi + 0x12d4]
call dword [sym.imp.KERNEL32.dll_WriteFile]
mov eax, dword [esi + 0x12e0]
cmp eax, ebx
je 0x40731d
push dword [esi + 0x12e4]
push dword [ebp - 4]
push dword [ebp - 8]
call eax
cmp dword [ebp - 0xc], ebx
jne 0x4072d0
mov eax, esi
call fcn.0040719e
mov eax, dword [esi + 0x12d4]
pop edi
cmp eax, ebx
je 0x40733b
push eax
call dword [sym.imp.KERNEL32.dll_CloseHandle]
push dword [esi + 0x12d0]
push ebx
push dword [ebp - 0x14]
call dword [sym.imp.KERNEL32.dll_HeapFree]
mov ecx, dword [ebp - 4]
xor eax, eax
cmp dword [ebp - 8], ecx
sete al
pop ebx
pop esi
leave
ret
Function at 0x4073c1
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
mov eax, 0x1294
call fcn.00416990
push ebx
push esi
push edi
mov edi, ecx
call fcn.00401908
test al, al
je 0x40758e
push edi
call fcn.00401920
mov eax, dword [edi + 0x5e4]
call fcn.00401972
mov esi, eax
mov eax, dword [edi + 0x5e8]
call fcn.00401972
cmp byte [edi + 0x514], 0
je 0x40742c
push eax
lea eax, [edi + 0x516]
push eax
push str._s__s
lea eax, [ebp - 0x2c4]
push 0x64
push eax
call dword [sym.imp.SHLWAPI.dll_wnsprintfW]
add esp, 0x14
lea eax, [ebp - 0x2c4]
push edi
push eax
push esi
push dword [edi + 0x5e0]
mov ebx, 0x1f4
push str._d_s_s_s
lea eax, [ebp - 0x6ac]
push ebx
push eax
call dword [sym.imp.SHLWAPI.dll_wnsprintfW]
add esp, 0x1c
lea eax, [ebp - 0x6ac]
push eax
call dword [sym.imp.KERNEL32.dll_lstrlenW]
inc eax
cmp eax, 0x3fffffff
jle 0x40746b
and dword [ebp - 8], 0
jmp 0x40748b
lea esi, [eax + eax]
mov eax, esi
call fcn.00417cb0
mov eax, esp
push 3
push esi
lea ecx, [ebp - 0x6ac]
push ecx
mov esi, eax
call fcn.00401076
mov dword [ebp - 8], eax
push dword [ebp - 8]
mov esi, dword [sym.imp.KERNEL32.dll_lstrlenA]
and dword [ebp - 4], 0
call esi
test eax, eax
jle 0x4074b4
mov eax, dword [ebp - 8]
mov ecx, dword [ebp - 4]
add ecx, eax
xor byte [ecx], 0x83
inc dword [ebp - 4]
push eax
call esi
cmp dword [ebp - 4], eax
jl 0x40749e
push 0x1f3
lea eax, [ebp - 0x1fb]
push 0
push eax
mov byte [ebp - 0x1fc], 0
call fcn.0040cdd0
add esp, 0xc
lea eax, [ebp - 4]
push eax
lea eax, [ebp - 0x1fc]
push eax
push dword [ebp - 8]
mov dword [ebp - 4], ebx
call esi
push eax
push dword [ebp - 8]
call fcn.004016d5
add esp, 0x10
lea eax, [ebp - 0x1fc]
push eax
call esi
mov esi, eax
inc esi
cmp esi, 0x3fffffff
jle 0x407508
xor eax, eax
jmp 0x407523
lea eax, [esi + esi]
call fcn.00417cb0
mov eax, esp
push 3
push esi
lea ecx, [ebp - 0x1fc]
push ecx
mov esi, eax
call fcn.00401043
push eax
push ebx
lea eax, [ebp - 0x6ac]
push eax
call fcn.00401b10
lea eax, [ebp - 0x6ac]
push eax
add edi, 0x12c
push edi
call dword [sym.imp.SHLWAPI.dll_StrCpyW]
lea eax, [ebp - 0x6ac]
push eax
push str.http:__pages.arcadecandy.com_aj_bund.php_p
push 0x4288b8
lea eax, [ebp - 0xa94]
push ebx
push eax
call dword [sym.imp.SHLWAPI.dll_wnsprintfW]
push str.ac_gui_1.23.357
push 0x400
lea eax, [ebp - 0x1294]
push eax
lea eax, [ebp - 0xa94]
push eax
call fcn.0040181c
xor ecx, ecx
add esp, 0x24
cmp eax, 0xffffffff
setne cl
mov al, cl
lea esp, [ebp - 0x12a0]
pop edi
pop esi
pop ebx
leave
ret