joyce8/EMBER2024-capa huggingface dataset:
Function at 0x4957a9
Capabilities:
Hide graphical window

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x10
mov dword [ebp - 0x10], ecx
push 5
call dword [sym.imp.USER32.dll_GetDesktopWindow]
push eax
call dword [sym.imp.USER32.dll_GetWindow]
mov dword [ebp - 4], eax
cmp dword [ebp - 4], 0
je 0x495898
mov eax, dword [ebp - 4]
push eax
call fcn.00456bf4
mov dword [ebp - 8], eax
cmp dword [ebp - 8], 0
je 0x495884
mov ecx, dword [ebp - 0x10]
mov edx, dword [ecx + 0x1c]
cmp edx, dword [ebp - 4]
je 0x495884
mov eax, dword [ebp - 4]
push eax
mov ecx, dword [ebp - 0x10]
mov edx, dword [ecx + 0x1c]
push edx
call fcn.004953c1
test eax, eax
je 0x495884
push 0xfffffffffffffff0
mov eax, dword [ebp - 4]
push eax
call dword [sym.imp.USER32.dll_GetWindowLongA]
mov dword [ebp - 0xc], eax
cmp dword [ebp + 8], 0
jne 0x49584a
mov ecx, dword [ebp - 0xc]
and ecx, 0x18000000
cmp ecx, 0x10000000
jne 0x49584a
push 0
mov edx, dword [ebp - 4]
push edx
call dword [sym.imp.USER32.dll_ShowWindow]
mov eax, dword [ebp - 8]
mov ecx, dword [eax + 0x24]
or ecx, 2
mov edx, dword [ebp - 8]
mov dword [edx + 0x24], ecx
jmp 0x495884
cmp dword [ebp + 8], 0
je 0x495884
mov eax, dword [ebp - 0xc]
and eax, 0x18000000
test eax, eax
jne 0x495884
mov ecx, dword [ebp - 8]
mov edx, dword [ecx + 0x24]
and edx, 2
test edx, edx
je 0x495884
push 4
mov eax, dword [ebp - 4]
push eax
call dword [sym.imp.USER32.dll_ShowWindow]
mov ecx, dword [ebp - 8]
mov edx, dword [ecx + 0x24]
and edx, 0xfffffffd
mov eax, dword [ebp - 8]
mov dword [eax + 0x24], edx
push 2
mov ecx, dword [ebp - 4]
push ecx
call dword [sym.imp.USER32.dll_GetWindow]
mov dword [ebp - 4], eax
jmp 0x4957c4
mov esp, ebp
pop ebp
ret 4
Function at 0x4996fe
Capabilities:
Extract resource via kernel32 functions

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x20
push ebx
push esi
push edi
mov dword [ebp - 0x20], ecx
mov eax, dword [ebp + 8]
mov ecx, dword [eax + 4]
and ecx, 1
test ecx, ecx
je 0x499722
mov edx, dword [ebp + 8]
mov eax, dword [edx + 0xc]
mov dword [ebp - 4], eax
jmp 0x49975c
push 5
mov ecx, dword [ebp + 8]
mov edx, dword [ecx + 0xc]
push edx
mov eax, dword [ebp + 8]
mov ecx, dword [eax + 8]
push ecx
call dword [sym.imp.KERNEL32.dll_FindResourceA]
mov dword [ebp - 0x10], eax
mov edx, dword [ebp - 0x10]
push edx
mov eax, dword [ebp + 8]
mov ecx, dword [eax + 8]
push ecx
call dword [sym.imp.KERNEL32.dll_LoadResource]
mov dword [ebp - 0xc], eax
mov edx, dword [ebp - 0xc]
push edx
call dword [sym.imp.KERNEL32.dll_LockResource]
mov dword [ebp - 4], eax
cmp dword [ebp - 4], 0
jne 0x499776
push 0xc9
push str.dlgprop.cpp
call fcn.004aba00
test eax, eax
je 0x499776
int3
xor eax, eax
test eax, eax
jne 0x49975c
mov ecx, dword [ebp - 4]
xor edx, edx
mov dx, word [ecx + 2]
cmp edx, 0xffff
jne 0x499851
call dword [sym.imp.KERNEL32.dll_GetVersion]
mov dword [ebp - 0x14], eax
mov eax, dword [ebp - 0x14]
and eax, 0x80000000
test eax, eax
je 0x499821
push 0x535a5c
call dword [sym.imp.KERNEL32.dll_LoadLibraryA]
mov dword [ebp - 0x18], eax
cmp dword [ebp - 0x18], 0
jne 0x4997ce
push 0xe1
push str.dlgprop.cpp
call fcn.004aba00
test eax, eax
je 0x4997ce
int3
xor ecx, ecx
test ecx, ecx
jne 0x4997b4
cmp dword [ebp - 0x18], 0
je 0x49981f
push 0x535a6c
mov edx, dword [ebp - 0x18]
push edx
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
mov dword [ebp - 0x1c], eax
cmp dword [ebp - 0x1c], 0
jne 0x499815
mov eax, 1
test eax, eax
je 0x49980f
push 0xe6
push str.dlgprop.cpp
call fcn.004aba00
test eax, eax
je 0x49980f
int3
xor ecx, ecx
test ecx, ecx
jne 0x4997f2
mov edx, dword [ebp - 0x18]
push edx
call dword [sym.imp.KERNEL32.dll_FreeLibrary]
jmp 0x499851
mov eax, dword [ebp - 0x14]
and eax, 0xff
cmp eax, 3
jne 0x499851
mov ecx, 1
test ecx, ecx
je 0x49984b
push 0xed
push str.dlgprop.cpp
call fcn.004aba00
test eax, eax
je 0x49984b
int3
xor edx, edx
test edx, edx
jne 0x49982e
call fcn.004c2af3
cmp dword [eax + 0x1038], 0
je 0x49986e
mov eax, dword [ebp - 4]
push eax
mov ecx, dword [ebp - 0x20]
call fcn.004996b3
mov dword [ebp - 4], eax
mov ecx, dword [ebp + 0xc]
push ecx
mov edx, dword [ebp - 4]
push edx
call fcn.00499575
mov dword [ebp - 8], eax
mov eax, dword [ebp - 0x20]
cmp dword [eax + 0x44], 0
je 0x49989e
mov ecx, dword [ebp - 0x20]
mov edx, dword [ecx + 0x44]
push edx
call dword [sym.imp.KERNEL32.dll_GlobalFree]
mov eax, dword [ebp - 0x20]
mov dword [eax + 0x44], 0
cmp dword [ebp - 8], 0
je 0x4998b3
mov ecx, dword [ebp - 8]
mov dword [ebp - 4], ecx
mov edx, dword [ebp - 0x20]
mov eax, dword [ebp - 8]
mov dword [edx + 0x44], eax
mov ecx, dword [ebp + 8]
mov edx, dword [ebp - 4]
mov dword [ecx + 0xc], edx
mov eax, dword [ebp + 8]
mov ecx, dword [eax + 4]
or ecx, 1
mov edx, dword [ebp + 8]
mov dword [edx + 4], ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 8
Function at 0x4b486b
Capabilities:
Resume thread

Disassembly:
push ebp
mov ebp, esp
push ecx
push ebx
push esi
push edi
mov dword [ebp - 4], ecx
mov eax, dword [ebp - 4]
cmp dword [eax + 0x28], 0
jne 0x4b4892
push 0x3cc
push str.afxwin2.inl
call fcn.004aba00
test eax, eax
je 0x4b4892
int3
xor ecx, ecx
test ecx, ecx
jne 0x4b4875
mov edx, dword [ebp - 4]
mov eax, dword [edx + 0x28]
push eax
call dword [sym.imp.KERNEL32.dll_ResumeThread]
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x4c1dbc
Capabilities:
Set thread local storage value

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x24
push ebx
push esi
push edi
mov dword [ebp - 0x1c], ecx
cmp dword [ebp + 8], 0
jne 0x4c1de2
push 0x146
push str.afxtls.cpp
call fcn.004aba00
test eax, eax
je 0x4c1de2
int3
xor eax, eax
test eax, eax
jne 0x4c1dc8
mov dword [ebp - 4], 1
mov dword [ebp - 8], 1
jmp 0x4c1e01
mov ecx, dword [ebp - 8]
add ecx, 1
mov dword [ebp - 8], ecx
mov edx, dword [ebp + 8]
mov eax, dword [ebp - 8]
cmp eax, dword [edx + 8]
jge 0x4c1e84
cmp dword [ebp + 0xc], 0
je 0x4c1e24
mov ecx, dword [ebp - 0x1c]
mov edx, dword [ecx + 0x10]
mov eax, dword [ebp - 8]
mov ecx, dword [edx + eax*8 + 4]
cmp ecx, dword [ebp + 0xc]
jne 0x4c1e69
mov edx, dword [ebp + 8]
mov eax, dword [edx + 0xc]
mov ecx, dword [ebp - 8]
mov edx, dword [eax + ecx*4]
mov dword [ebp - 0x10], edx
mov eax, dword [ebp - 0x10]
mov dword [ebp - 0xc], eax
cmp dword [ebp - 0xc], 0
je 0x4c1e50
push 1
mov ecx, dword [ebp - 0xc]
mov edx, dword [ecx]
mov ecx, dword [ebp - 0xc]
call dword [edx]
mov dword [ebp - 0x20], eax
jmp 0x4c1e57
mov dword [ebp - 0x20], 0
mov eax, dword [ebp + 8]
mov ecx, dword [eax + 0xc]
mov edx, dword [ebp - 8]
mov dword [ecx + edx*4], 0
jmp 0x4c1e7f
mov eax, dword [ebp + 8]
mov ecx, dword [eax + 0xc]
mov edx, dword [ebp - 8]
cmp dword [ecx + edx*4], 0
je 0x4c1e7f
mov dword [ebp - 4], 0
jmp 0x4c1df8
cmp dword [ebp - 4], 0
je 0x4c1ef8
mov eax, dword [ebp - 0x1c]
add eax, 0x1c
push eax
call dword [sym.imp.KERNEL32.dll_EnterCriticalSection]
mov ecx, dword [ebp + 8]
push ecx
mov ecx, dword [ebp - 0x1c]
add ecx, 0x14
call fcn.004c2480
mov edx, dword [ebp - 0x1c]
add edx, 0x1c
push edx
call dword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
mov eax, dword [ebp + 8]
mov ecx, dword [eax + 0xc]
push ecx
call dword [sym.imp.KERNEL32.dll_LocalFree]
mov edx, dword [ebp + 8]
mov dword [ebp - 0x18], edx
mov eax, dword [ebp - 0x18]
mov dword [ebp - 0x14], eax
cmp dword [ebp - 0x14], 0
je 0x4c1ee3
push 1
mov ecx, dword [ebp - 0x14]
mov edx, dword [ecx]
mov ecx, dword [ebp - 0x14]
call dword [edx]
mov dword [ebp - 0x24], eax
jmp 0x4c1eea
mov dword [ebp - 0x24], 0
push 0
mov eax, dword [ebp - 0x1c]
mov ecx, dword [eax]
push ecx
call dword [sym.imp.KERNEL32.dll_TlsSetValue]
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 8
Function at 0x4c1f01
Capabilities:
Get thread local storage value

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x10
mov dword [ebp - 0x10], ecx
mov eax, dword [ebp - 0x10]
add eax, 0x1c
push eax
call dword [sym.imp.KERNEL32.dll_EnterCriticalSection]
cmp dword [ebp + 0xc], 0
jne 0x4c1f44
mov ecx, dword [ebp - 0x10]
mov edx, dword [ecx]
push edx
call dword [sym.imp.KERNEL32.dll_TlsGetValue]
mov dword [ebp - 4], eax
cmp dword [ebp - 4], 0
je 0x4c1f42
mov eax, dword [ebp + 8]
push eax
mov ecx, dword [ebp - 4]
push ecx
mov ecx, dword [ebp - 0x10]
call fcn.004c1dbc
jmp 0x4c1f79
mov ecx, dword [ebp - 0x10]
add ecx, 0x14
call fcn.004c24a0
mov dword [ebp - 8], eax
cmp dword [ebp - 8], 0
je 0x4c1f79
mov edx, dword [ebp - 8]
mov eax, dword [edx + 4]
mov dword [ebp - 0xc], eax
mov ecx, dword [ebp + 8]
push ecx
mov edx, dword [ebp - 8]
push edx
mov ecx, dword [ebp - 0x10]
call fcn.004c1dbc
mov eax, dword [ebp - 0xc]
mov dword [ebp - 8], eax
jmp 0x4c1f52
mov ecx, dword [ebp - 0x10]
add ecx, 0x1c
push ecx
call dword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
mov esp, ebp
pop ebp
ret 8
Function at 0x4c7645
Capabilities:
Extract resource via kernel32 functions

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x10
push ebx
push esi
push edi
mov ecx, 0x53cb28
call fcn.004c7790
mov dword [ebp - 4], eax
mov eax, dword [ebp - 4]
xor ecx, ecx
mov cx, word [eax + 8]
test ecx, ecx
jne 0x4c772e
mov edx, dword [ebp - 4]
cmp dword [edx + 4], 0
je 0x4c7686
push 0x2f
push str.ccdata.cpp
call fcn.004aba00
test eax, eax
je 0x4c7686
int3
xor eax, eax
test eax, eax
jne 0x4c766c
push str.COMCTL32.DLL
call dword [sym.imp.KERNEL32.dll_GetModuleHandleA]
mov dword [ebp - 8], eax
cmp dword [ebp - 8], 0
je 0x4c76f1
push 5
mov ecx, dword [ebp + 0x10]
neg ecx
sbb ecx, ecx
and ecx, 0xe
add ecx, 0x3ee
and ecx, 0xffff
push ecx
mov edx, dword [ebp - 8]
push edx
call dword [sym.imp.KERNEL32.dll_FindResourceA]
mov dword [ebp - 0x10], eax
mov eax, dword [ebp - 0x10]
push eax
mov ecx, dword [ebp - 8]
push ecx
call dword [sym.imp.KERNEL32.dll_LoadResource]
mov dword [ebp - 0xc], eax
cmp dword [ebp - 0xc], 0
je 0x4c76f1
mov edx, dword [ebp + 0xc]
push edx
mov eax, dword [ebp + 8]
push eax
mov ecx, dword [ebp - 0xc]
push ecx
call fcn.00461242
add esp, 0xc
mov ecx, dword [ebp + 8]
call fcn.004a7f60
add eax, 1
push eax
push 0x40
call dword [sym.imp.KERNEL32.dll_GlobalAlloc]
mov edx, dword [ebp - 4]
mov dword [edx + 4], eax
mov ecx, dword [ebp + 8]
call fcn.004a7faa
push eax
mov eax, dword [ebp - 4]
mov ecx, dword [eax + 4]
push ecx
call dword [sym.imp.KERNEL32.dll_lstrcpyA]
mov edx, dword [ebp - 4]
mov eax, dword [ebp + 0xc]
mov cx, word [eax]
mov word [edx + 8], cx
mov edx, dword [ebp - 4]
mov eax, dword [edx + 4]
push eax
mov ecx, dword [ebp + 8]
call fcn.0045571d
mov ecx, dword [ebp + 0xc]
mov edx, dword [ebp - 4]
mov ax, word [edx + 8]
mov word [ecx], ax
mov ecx, dword [ebp + 0xc]
xor edx, edx
mov dx, word [ecx]
xor eax, eax
cmp edx, 0xffff
setne al
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 0xc
Function at 0x401a70
Capabilities:
Inspect section memory permissions

Disassembly:
cmp dword [eax], ebx
je 0x401ab9
lea edi, [eax + 8]
mov ecx, dword [eax + 4]
add ecx, eax
cmp edi, ecx
jae 0x401ab4
movzx ecx, word [edi]
mov edx, ecx
and edx, 0xf000
cmp edx, 0x3000
add byte [ebp + 0x15], dh
mov edx, dword [ebp + 0xc]
and ecx, 0xfff
add ecx, dword [ebp + 0xc]
sub edx, dword [esi + 0x34]
push esi
xor al, 3
or byte [ecx], al
adc ebx, ebp
invalid
cmp edx, ebx
jne 0x401c05
inc edi
inc edi
jmp 0x401a77
add eax, dword [eax + 4]
jmp fcn.00401a70
mov dword [ebp - 8], ebx
jmp 0x401ac4
mov esi, dword [ebp - 0x88]
mov ax, word [ebp - 8]
cmp ax, word [esi + 6]
jne 0x401add
mov edx, dword [ebp - 0xb4]
xor ecx, ecx
mov esi, 0x60000000
jmp 0x401b05
call fcn.004013fa
push es
xchg esi, eax
push esp
cmp eax, 0xf845b70f
lea eax, [eax + eax*4]
mov ecx, dword [esi + eax*8 + 0x104]
mov edx, dword [esi + eax*8 + 0x108]
lea eax, [esi + eax*8 + 0xf8]
mov esi, dword [eax + 0x24]
lea eax, [edx + ecx - 1]
xor edx, edx
div dword [ebp - 0xac]
xor edx, edx
mov dword [ebp + 8], eax
mov eax, ecx
div dword [ebp - 0xac]
cmp eax, dword [ebp + 8]
ja 0x401b5b
mov edx, esi
mov edi, esi
and edx, 0x20000000
and edi, 0x40000000
add byte [eax], al
inc eax
and esi, 0x80000000
mov ecx, dword [ebp + 0x18]
cmp edx, ebx
je 0x401b44
or byte [eax + ecx], 1
cmp edi, ebx
je 0x401b4c
or byte [eax + ecx], 2
cmp esi, ebx
je 0x401b55
add ecx, eax
or byte [ecx], 4
inc eax
cmp eax, dword [ebp + 8]
jbe 0x401b39
inc dword [ebp - 8]
invalid
invalid
push 0x8000
push ebx
push dword [ebp + 0xc]
invalid
push ebp
Function at 0x10004f5c
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x5c
pushal
call 0x10004f6b
pop dword [ebp - 0x4c]
mov eax, 0x10004f6b
sub dword [ebp - 0x4c], eax
mov dword [ebp - 0x5c], 0xc7b56796
add dword [ebp - 0x5c], 0x869cddb5
mov dword [ebp - 0x58], 0x1fb9b6f5
sub dword [ebp - 0x58], 0xed866ab0
mov dword [ebp - 0x54], 0x3895e268
add dword [ebp - 0x54], 0x13b661c6
mov dword [ebp - 0x50], 0x59059d03
sub dword [ebp - 0x50], 0x59059d03
lea eax, [ebp - 0x5c]
push eax
mov eax, 0x26d6eb8c
sub eax, 0x16d61b0c
add eax, dword [ebp - 0x4c]
call dword [eax]
mov dword [ebp - 0x5c], 0xe54c3f64
add dword [ebp - 0x5c], 0x8f2629f2
mov dword [ebp - 0x58], 0x58574b99
sub dword [ebp - 0x58], 0x16eaea24
mov dword [ebp - 0x54], 0xdf1d94de
sub dword [ebp - 0x54], 0x7bae2872
mov dword [ebp - 0x50], 0xd96437f0
add dword [ebp - 0x50], 0x269bc810
lea ebx, [ebp - 0x5c]
push ebx
push eax
mov eax, 0xee94f0be
add eax, 0x216bdfba
add eax, dword [ebp - 0x4c]
call dword [eax]
push 0x40
push 0x1000
push 0x3cc29
push 0
call eax
mov ecx, 0xc087fefa
add ecx, 0x3f785b15
xor esi, esi
add esi, eax
mov edx, 0x1001b400
add edx, dword [ebp - 0x4c]
mov edi, 0x164b89aa
xor dword [ebp - 0x1c], 0xd78a45a
mov ebx, dword [edx]
add dword [ebp - 0x38], edx
sub ebx, edi
sub dword [ebp - 4], 0xfa908633
mov dword [esi], ebx
sub dword [ebp - 8], eax
add esi, 0xc630b884
sub esi, 0xc630b880
add edx, 4
loop 0x1000507e
add eax, 0x15b0f
xor ebx, ebx
add ebx, eax
add eax, 0x87577398
add eax, 0x78a88c6d
mov ecx, 0xd3304909
add ecx, 0x3ccfb6f7
add ecx, dword [ebp - 0x4c]
call ebx
leave
ret

Function at 0x10009670
Capabilities:
Hide graphical window

Disassembly:
push ebp
mov ebp, esp
push esi
mov esi, dword [ebp + 8]
push edi
mov edi, ecx
mov eax, dword [esi + 0xc]
sub eax, dword [esi + 4]
cmp eax, 0x1a
jl 0x100096c8
mov eax, dword [esi + 8]
cmp eax, dword [esi]
jl 0x100096c8
push 0
push dword [edi + 0x18]
call dword [sym.imp.USER32.dll_ShowWindow]
mov eax, dword [esi + 0xc]
sub eax, dword [esi + 4]
push 0x10
push eax
mov eax, dword [esi + 8]
sub eax, dword [esi]
push eax
push dword [esi + 4]
push dword [esi]
push 0
push dword [edi + 0x18]
call dword [sym.imp.USER32.dll_SetWindowPos]
mov ecx, edi
call fcn.10004f5c
push 1
push dword [edi + 0x18]
call dword [sym.imp.USER32.dll_ShowWindow]
pop edi
pop esi
pop ebp
ret 4

Function at 0x10009c50
Capabilities:
Get graphical window text

Disassembly:
push ebp
mov ebp, esp
push dword [ebp + 8]
push dword [ebp + 0xc]
push 0xd
push dword [ecx + 0x38]
call dword [sym.imp.USER32.dll_SendMessageA]
pop ebp
ret 8
Function at 0x401510
Capabilities:
Get graphical window text
Hide graphical window
Write file on windows

Disassembly:
sub esp, 0x130
mov eax, dword [0x41300c]
xor eax, esp
mov dword [esp + 0x12c], eax
push esi
mov esi, dword [esp + 0x138]
push 0x64
push 0x414020
push 0x277d
push esi
mov byte [0x414088], 0
call dword [sym.imp.USER32.dll_LoadStringA]
push esi
call fcn.00401480
push 0x40f287
push 0
call fcn.004029b0
push 5
push esi
call fcn.00401000
add esp, 0x14
test eax, eax
jne 0x40157f
pop esi
mov ecx, dword [esp + 0x12c]
xor ecx, esp
call fcn.00401a62
add esp, 0x130
ret 0x10
push 0x277d
push esi
call dword [sym.imp.USER32.dll_LoadAcceleratorsA]
push 0
push 0
push 3
push 0
push 0
push 0xc0000000
push str..pipeKMWIAUSB3
mov dword [esp + 0x24], eax
call dword [sym.imp.KERNEL32.dll_CreateFileA]
mov dword [0x413004], eax
push 0x104
lea eax, [esp + 0x30]
push eax
push 0
call dword [sym.imp.KERNEL32.dll_GetModuleFileNameA]
lea eax, [esp + 0x2c]
lea edx, [eax + 1]
mov cl, byte [eax]
inc eax
test cl, cl
jne 0x4015c7
sub eax, edx
dec eax
test eax, eax
jle 0x4015e9
mov cl, 0x5c
cmp byte [esp + eax + 0x2c], cl
je 0x4015e4
dec eax
test eax, eax
jg 0x4015d7
jmp 0x4015e9
mov byte [esp + eax + 0x2d], 0
push str.Ns1815TW3
lea ecx, [esp + 0x30]
push 0x104
push ecx
call fcn.00401afa
push str.20B3
lea edx, [esp + 0x3c]
push 0x104
push edx
call fcn.00401afa
push str..dll
lea eax, [esp + 0x48]
push 0x104
push eax
call fcn.00401afa
add esp, 0x24
lea ecx, [esp + 0x2c]
push ecx
call dword [sym.imp.KERNEL32.dll_LoadLibraryA]
test eax, eax
je 0x4016f7
push str.fnOpenUI
push eax
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
test eax, eax
je 0x4016f7
mov ecx, dword [0x414120]
push 1
push ecx
push ecx
call eax
add esp, 0xc
push 5
push eax
mov dword [0x414124], eax
call dword [sym.imp.USER32.dll_ShowWindow]
mov edx, dword [0x414124]
push 0x64
push 0x414088
push edx
call dword [sym.imp.USER32.dll_GetWindowTextA]
mov eax, dword [0x414120]
push 0x414088
push eax
call dword [sym.imp.USER32.dll_SetWindowTextA]
mov esi, dword [sym.imp.USER32.dll_GetMessageA]
push 0
push 0
push 0
lea ecx, [esp + 0x1c]
push ecx
call esi
test eax, eax
je 0x4016f7
push ebx
mov ebx, dword [sym.imp.USER32.dll_DispatchMessageA]
push ebp
mov ebp, dword [sym.imp.USER32.dll_TranslateMessage]
push edi
mov edi, dword [sym.imp.USER32.dll_TranslateAcceleratorA]
lea ecx, [ecx]
mov eax, dword [esp + 0x14]
mov ecx, dword [esp + 0x1c]
lea edx, [esp + 0x1c]
push edx
push eax
push ecx
call edi
test eax, eax
jne 0x4016e3
lea edx, [esp + 0x1c]
push edx
call ebp
lea eax, [esp + 0x1c]
push eax
call ebx
push 0
push 0
push 0
lea ecx, [esp + 0x28]
push ecx
call esi
test eax, eax
jne 0x4016c0
pop edi
pop ebp
pop ebx
mov ecx, dword [0x413004]
push 0
lea edx, [esp + 0x10]
push edx
push 4
lea eax, [esp + 0x10]
push eax
push ecx
mov dword [esp + 0x18], 0x46e
mov dword [esp + 0x20], 4
call dword [sym.imp.KERNEL32.dll_WriteFile]
mov edx, dword [0x413004]
push edx
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov ecx, dword [esp + 0x130]
mov eax, dword [esp + 0x18]
pop esi
xor ecx, esp
call fcn.00401a62
add esp, 0x130
ret 0x10
Function at 0x4013c0
Capabilities:
Extract resource via kernel32 functions

Disassembly:
push ebp
mov ebp, esp
push ebx
push edi
mov edi, edx
mov ebx, ecx
push edi
push ebx
call dword [sym.imp.KERNEL32.dll_LoadResource]
test eax, eax
jne 0x4013d9
pop edi
pop ebx
pop ebp
ret
push esi
push eax
call dword [sym.imp.KERNEL32.dll_LockResource]
mov esi, eax
test esi, esi
je 0x401414
push edi
push ebx
call dword [sym.imp.KERNEL32.dll_SizeofResource]
mov ecx, dword [ebp + 8]
lea edx, [esi + eax]
and ecx, 0xf
jbe 0x401410
lea ebx, [ebx]
cmp esi, edx
jae 0x401414
movzx eax, word [esi]
lea esi, [esi + eax*2]
add esi, 2
dec ecx
jne 0x401400
cmp esi, edx
jb 0x40141b
pop esi
pop edi
xor eax, eax
pop ebx
pop ebp
ret
xor eax, eax
cmp word [esi], ax
cmove esi, eax
mov eax, esi
pop esi
pop edi
pop ebx
pop ebp
ret

Function at 0x401b80
Capabilities:
Check mutex on windows

Disassembly:
push ebp
mov ebp, esp
mov edx, dword [ebp + 0x10]
push esi
test edx, edx
jne 0x401b8f
xor ecx, ecx
jmp 0x401ba3
mov ecx, edx
lea esi, [ecx + 2]
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x401b94
sub ecx, esi
sar ecx, 1
push ecx
push edx
mov ecx, 0x42dbe4
call fcn.00404bd0
mov eax, dword [0x42dbe4]
cmp dword [eax - 0xc], 0
je 0x401bfd
push str.popup_1.x
push 0
push 0
call dword [sym.imp.KERNEL32.dll_CreateMutexW]
mov esi, eax
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0xb7
jne 0x401be6
push esi
call dword [sym.imp.KERNEL32.dll_ReleaseMutex]
xor eax, eax
pop esi
pop ebp
ret 0x10
push 0
push 0x401c10
push 0
push 0x81
push dword [ebp + 8]
call dword [sym.imp.USER32.dll_DialogBoxParamW]
xor eax, eax
pop esi
pop ebp
ret 0x10

Function at 0x403150
Capabilities:
Parse url

Disassembly:
push ebp
mov ebp, esp
mov eax, 0x2290
call fcn.0041c130
mov eax, dword [0x42b4d0]
xor eax, ebp
mov dword [ebp - 4], eax
xor eax, eax
push esi
push 0x3c
push eax
mov word [ebp - 0x2254], ax
mov esi, ecx
mov word [ebp - 0x1250], ax
mov word [ebp - 0x24c], ax
mov word [ebp - 0x48], ax
lea eax, [ebp - 0x2290]
push eax
call fcn.0040ef90
lea eax, [ebp - 0x48]
mov dword [ebp - 0x2290], 0x3c
mov dword [ebp - 0x228c], eax
add esp, 0xc
lea eax, [ebp - 0x24c]
mov dword [ebp - 0x2288], 0x20
mov dword [ebp - 0x2280], eax
lea eax, [ebp - 0x1250]
mov dword [ebp - 0x2264], eax
lea eax, [ebp - 0x2254]
mov dword [ebp - 0x225c], eax
lea eax, [ebp - 0x2290]
push eax
push 0
push 0
push esi
mov dword [ebp - 0x227c], pe_nt_image_headers32
mov dword [ebp - 0x2260], 0x800
mov dword [ebp - 0x2258], 0x800
call dword [sym.imp.WININET.dll_InternetCrackUrlW]
mov ecx, dword [ebp - 4]
neg eax
pop esi
sbb eax, eax
xor ecx, ebp
neg eax
call fcn.0040d1eb
mov esp, ebp
pop ebp
ret
Function at 0x405700
Capabilities:
Set registry value

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x10
mov eax, dword [0x42b4d0]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
push esi
push edi
lea eax, [ebp - 8]
mov dword [ebp - 8], 0
push eax
push 0x20006
mov esi, edx
push 0
push dword [esi]
push SysReAllocString
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
test eax, eax
je 0x405751
lea eax, [ebp - 8]
push eax
push dword [esi]
push SysReAllocString
call dword [sym.imp.ADVAPI32.dll_RegCreateKeyW]
test eax, eax
jne 0x405891
mov ecx, dword [ebp + 0xc]
mov esi, dword [ecx]
test esi, esi
je 0x4057ae
mov ecx, esi
lea edx, [ecx + 2]
nop
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x405760
sub ecx, edx
sar ecx, 1
lea ebx, [ecx + 1]
cmp ebx, 0x3fffffff
jg 0x4057a9
add ebx, ebx
mov eax, ebx
call fcn.00419310
mov edi, esp
test edi, edi
je 0x4057a9
push 0
push 0
push ebx
push edi
push 0xffffffffffffffff
push esi
push 0
push 3
mov byte [edi], 0
call dword [sym.imp.KERNEL32.dll_WideCharToMultiByte]
mov esi, eax
neg esi
sbb esi, esi
and esi, edi
jmp 0x4057ab
xor esi, esi
mov ecx, dword [ebp + 0xc]
lea edx, [esi + 1]
mov al, byte [esi]
inc esi
test al, al
jne 0x4057b1
mov edi, dword [ecx]
sub esi, edx
test edi, edi
je 0x405814
mov ecx, edi
lea edx, [ecx + 2]
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x4057c5
sub ecx, edx
sar ecx, 1
lea eax, [ecx + 1]
mov dword [ebp - 0xc], eax
cmp eax, 0x3fffffff
jg 0x405814
add eax, eax
call fcn.00419310
mov ebx, esp
test ebx, ebx
je 0x405814
mov ecx, dword [ebp - 0xc]
push 0
push 0
mov byte [ebx], 0
lea eax, [ecx + ecx]
push eax
push ebx
push 0xffffffffffffffff
push edi
push 0
push 3
call dword [sym.imp.KERNEL32.dll_WideCharToMultiByte]
mov edi, eax
neg edi
sbb edi, edi
and edi, ebx
jmp 0x405816
xor edi, edi
mov eax, dword [0x42dbe8]
mov dword [ebp - 0x10], eax
test eax, eax
je 0x405878
mov ecx, eax
lea edx, [ecx + 2]
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x405827
sub ecx, edx
sar ecx, 1
lea eax, [ecx + 1]
mov dword [ebp - 0xc], eax
cmp eax, 0x3fffffff
jg 0x405878
add eax, eax
call fcn.00419310
mov ebx, esp
test ebx, ebx
je 0x405878
mov ecx, dword [ebp - 0xc]
push 0
push 0
mov byte [ebx], 0
lea eax, [ecx + ecx]
push eax
push ebx
push 0xffffffffffffffff
push dword [ebp - 0x10]
push 0
push 3
call dword [sym.imp.KERNEL32.dll_WideCharToMultiByte]
mov ecx, eax
neg ecx
sbb ecx, ecx
and ecx, ebx
jmp 0x40587a
xor ecx, ecx
lea eax, [esi + 1]
push eax
push edi
push 1
push 0
push ecx
push dword [ebp - 8]
call dword [sym.imp.ADVAPI32.dll_RegSetValueExA]
test eax, eax
je 0x4058b5
mov eax, dword [ebp - 8]
test eax, eax
je 0x40589f
push eax
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
xor eax, eax
lea esp, [ebp - 0x1c]
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.0040d1eb
mov esp, ebp
pop ebp
ret
mov eax, dword [ebp - 8]
test eax, eax
je 0x4058c3
push eax
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov eax, 1
lea esp, [ebp - 0x1c]
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.0040d1eb
mov esp, ebp
pop ebp
ret