joyce8/EMBER2024-capa huggingface dataset:
Function at 0x465ce4
Capabilities:
Extract resource via kernel32 functions

Disassembly:
push 0x24
mov eax, 0x4a9649
call fcn.0048242a
mov esi, ecx
mov dword [ebp - 0x20], esi
mov eax, dword [esi + 0x60]
mov dword [ebp - 0x1c], eax
mov eax, dword [esi + 0x5c]
mov dword [ebp - 0x18], eax
call fcn.0046a5c8
mov edi, dword [eax + 0xc]
xor ebx, ebx
cmp dword [esi + 0x58], ebx
je 0x465d2f
call fcn.0046a5c8
mov edi, dword [eax + 0xc]
push 5
push dword [esi + 0x58]
push edi
call dword [sym.imp.KERNEL32.dll_FindResourceA]
push eax
push edi
call dword [sym.imp.KERNEL32.dll_LoadResource]
mov dword [ebp - 0x18], eax
cmp dword [ebp - 0x18], ebx
je 0x465d40
push dword [ebp - 0x18]
call dword [sym.imp.KERNEL32.dll_LockResource]
mov dword [ebp - 0x1c], eax
cmp dword [ebp - 0x1c], ebx
jne 0x465d4d
or eax, 0xffffffff
jmp 0x465ea9
mov ecx, esi
call fcn.00465814
mov dword [ebp - 0x14], eax
call fcn.004628aa
and dword [ebp - 0x28], ebx
cmp dword [ebp - 0x14], ebx
mov dword [ebp - 0x2c], ebx
mov dword [ebp - 0x24], ebx
je 0x465dcb
call dword [sym.imp.USER32.dll_GetDesktopWindow]
cmp dword [ebp - 0x14], eax
je 0x465dcb
push dword [ebp - 0x14]
call dword [sym.imp.USER32.dll_IsWindowEnabled]
test eax, eax
je 0x465dcb
push 0
push dword [ebp - 0x14]
call dword [sym.imp.USER32.dll_EnableWindow]
mov dword [ebp - 0x2c], 1
call fcn.00461437
mov ebx, eax
test ebx, ebx
mov dword [ebp - 0x24], ebx
je 0x465dcb
mov eax, dword [ebx]
mov ecx, ebx
call dword [eax + 0x120]
test eax, eax
je 0x465dcb
mov ecx, ebx
call fcn.0045f85f
test eax, eax
je 0x465dcb
push 0
mov ecx, ebx
call fcn.0045f87a
mov dword [ebp - 0x28], 1
and dword [ebp - 4], 0
push esi
call fcn.004642c3
push dword [ebp - 0x14]
call fcn.00462802
push edi
push eax
push dword [ebp - 0x1c]
mov ecx, esi
call fcn.00465aec
xor edi, edi
cmp eax, edi
je 0x465e28
test byte [esi + 0x3c], 0x10
je 0x465e12
push 4
pop edi
mov ecx, esi
call fcn.0045f770
test ax, 0x100
je 0x465e08
push 5
pop edi
push edi
mov ecx, esi
call fcn.00462398
xor edi, edi
cmp dword [esi + 0x20], edi
je 0x465e28
push 0x97
push edi
push edi
push edi
push edi
push edi
mov ecx, esi
call fcn.0045fa6a
or dword [ebp - 4], 0xffffffff
jmp 0x465e53
cmp dword [ebp - 0x28], edi
je 0x465e61
push 1
mov ecx, ebx
call fcn.0045f87a
cmp dword [ebp - 0x2c], edi
je 0x465e71
push 1
push dword [ebp - 0x14]
call dword [sym.imp.USER32.dll_EnableWindow]
cmp dword [ebp - 0x14], edi
je 0x465e8a
call dword [sym.imp.USER32.dll_GetActiveWindow]
cmp eax, dword [esi + 0x20]
jne 0x465e8a
push dword [ebp - 0x14]
call dword [sym.imp.USER32.dll_SetActiveWindow]
mov eax, dword [esi]
mov ecx, esi
call dword [eax + 0x60]
mov ecx, esi
call fcn.0046584e
cmp dword [esi + 0x58], edi
je 0x465ea6
push dword [ebp - 0x18]
call dword [sym.imp.KERNEL32.dll_FreeResource]
mov eax, dword [esi + 0x44]
call fcn.004824cf
ret
Function at 0x46780b
Capabilities:
Get geographical location

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x11c
mov eax, dword [0x4e0c44]
xor eax, ebp
mov dword [ebp - 4], eax
cmp dword [ebp + 8], 0x800
push ebx
push esi
mov esi, ecx
mov ebx, edx
lea eax, [ebp - 0x11c]
jne 0x46784b
push 0x4baa30
push 4
push eax
call fcn.0047fd11
push eax
call fcn.00448050
add esp, 0x10
jmp 0x46785d
push 4
push eax
push 3
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.dll_GetLocaleInfoA]
test eax, eax
je 0x4678cb
push edi
call fcn.00482806
mov edi, dword [eax]
call fcn.00482806
and dword [eax], 0
lea eax, [ebp - 0x11c]
push eax
push ebx
push esi
push 0x111
mov esi, 0x112
lea eax, [ebp - 0x118]
push esi
push eax
call fcn.0047ec01
add esp, 0x18
mov ebx, eax
call fcn.00482806
cmp dword [eax], 0
je 0x4678ab
call fcn.00482806
push dword [eax]
call fcn.00460126
pop ecx
jmp 0x4678b2
call fcn.00482806
mov dword [eax], edi
cmp ebx, 0xffffffff
pop edi
je 0x4678cb
cmp ebx, esi
jae 0x4678cb
lea eax, [ebp - 0x118]
push eax
call dword [sym.imp.KERNEL32.dll_LoadLibraryA]
jmp 0x4678cd
xor eax, eax
mov ecx, dword [ebp - 4]
pop esi
xor ecx, ebp
pop ebx
call fcn.0047e4dd
leave
ret
Function at 0x4692fa
Capabilities:
Extract resource via kernel32 functions

Disassembly:
push ebp
mov ebp, esp
push ecx
push ebx
xor ebx, ebx
cmp dword [ebp + 0xc], ebx
push esi
push edi
mov edi, ecx
mov dword [ebp - 4], ebx
je 0x469340
call fcn.0046a5c8
mov esi, dword [eax + 0xc]
push 0xf0
push dword [ebp + 0xc]
push esi
call dword [sym.imp.KERNEL32.dll_FindResourceA]
test eax, eax
je 0x469340
push eax
push esi
call dword [sym.imp.KERNEL32.dll_LoadResource]
test eax, eax
mov dword [ebp - 4], eax
je 0x469383
push eax
call dword [sym.imp.KERNEL32.dll_LockResource]
mov ebx, eax
test ebx, ebx
mov esi, dword [ebp + 8]
mov dword [ebp + 0xc], 1
je 0x46936c
push dword [ebp + 0x10]
mov eax, dword [edi]
push ebx
push esi
mov ecx, edi
call dword [eax + 0x20]
cmp dword [ebp - 4], 0
mov dword [ebp + 0xc], eax
je 0x46936c
push dword [ebp - 4]
call dword [sym.imp.KERNEL32.dll_FreeResource]
cmp dword [esi + 0x4c], 0
je 0x469380
mov ecx, dword [esi + 0x4c]
push dword [ebp + 0x10]
mov eax, dword [ecx]
call dword [eax + 0xa0]
mov eax, dword [ebp + 0xc]
pop edi
pop esi
pop ebx
leave
ret 0xc

Function at 0x46e8d5
Capabilities:
Get thread local storage value

Disassembly:
push ebx
push esi
mov esi, ecx
lea ebx, [esi + 0x1c]
push ebx
call dword [sym.imp.KERNEL32.dll_EnterCriticalSection]
cmp dword [esp + 0x10], 0
jne 0x46e903
push dword [esi]
call dword [sym.imp.KERNEL32.dll_TlsGetValue]
test eax, eax
je 0x46e921
push dword [esp + 0xc]
mov ecx, esi
push eax
call fcn.0046e83f
jmp 0x46e921
mov eax, dword [esi + 0x14]
test eax, eax
je 0x46e921
push edi
push dword [esp + 0x10]
mov edi, dword [eax + 4]
push eax
mov ecx, esi
call fcn.0046e83f
test edi, edi
mov eax, edi
jne 0x46e90b
pop edi
push ebx
call dword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
pop esi
pop ebx
ret 8
mov ecx, dword [0x4f4e6c]
test ecx, ecx
je 0x46e9e4
jmp 0x46e8d4
ret 8

Function at 0x47e4dd
Capabilities:
Terminate process

Disassembly:
cmp ecx, dword [0x4e0c44]
jne 0x47e4e7
repz ret
jmp fcn.00487a5c
Function at 0x485ef0
Capabilities:
Write file on windows

Disassembly:
push ecx
push ebx
mov ebx, dword [esp + 0xc]
push esi
push edi
xor esi, esi
xor edi, edi
cmp ebx, dword [edi*8 + 0x4e1188]
je 0x485f0b
inc edi
cmp edi, 0x17
jb 0x485efc
cmp edi, 0x17
jae 0x48608b
push ebp
push 3
call fcn.0048ffed
cmp eax, 1
pop ecx
je 0x486057
push 3
call fcn.0048ffed
test eax, eax
pop ecx
jne 0x485f3f
cmp dword [0x4e0ee0], 1
je 0x486057
cmp ebx, 0xfc
je 0x48608a
push str.Runtime_Error__n_nProgram:
mov ebx, 0x314
push ebx
mov ebp, 0x4f5328
push ebp
call fcn.0047fd11
add esp, 0xc
test eax, eax
je 0x485f75
push esi
push esi
push esi
push esi
push esi
call fcn.00486202
add esp, 0x14
push 0x104
mov esi, 0x4f5341
push esi
push 0
mov byte [0x4f5445], 0
call dword [sym.imp.KERNEL32.dll_GetModuleFileNameA]
test eax, eax
jne 0x485fb9
push 0x4bd04c
push 0x2fb
push esi
call fcn.0047fd11
add esp, 0xc
test eax, eax
je 0x485fb9
xor eax, eax
push eax
push eax
push eax
push eax
push eax
call fcn.00486202
add esp, 0x14
push esi
call fcn.00482740
inc eax
cmp eax, 0x3c
pop ecx
jbe 0x485ffe
push esi
call fcn.00482740
sub esi, 0x3b
add eax, esi
push 3
mov ecx, 0x4f563c
push 0x4bd048
sub ecx, eax
push ecx
push eax
call fcn.00482630
add esp, 0x14
test eax, eax
je 0x485ffe
xor esi, esi
push esi
push esi
push esi
push esi
push esi
call fcn.00486202
add esp, 0x14
jmp 0x486000
xor esi, esi
push 0x4c5560
push ebx
push ebp
call fcn.004805b3
add esp, 0xc
test eax, eax
je 0x486020
push esi
push esi
push esi
push esi
push esi
call fcn.00486202
add esp, 0x14
push dword [edi*8 + 0x4e118c]
push ebx
push ebp
call fcn.004805b3
add esp, 0xc
test eax, eax
je 0x486042
push esi
push esi
push esi
push esi
push esi
call fcn.00486202
add esp, 0x14
push 0x12010
push str.Microsoft_Visual_C_Runtime_Library
push ebp
call fcn.0048fe30
add esp, 0xc
jmp 0x48608a
push 0xfffffffffffffff4
call dword [sym.imp.KERNEL32.dll_GetStdHandle]
mov ebp, eax
cmp ebp, esi
je 0x48608a
cmp ebp, 0xffffffff
je 0x48608a
push 0
lea eax, [esp + 0x14]
push eax
lea esi, [edi*8 + 0x4e118c]
push dword [esi]
call fcn.00482740
pop ecx
push eax
push dword [esi]
push ebp
call dword [sym.imp.KERNEL32.dll_WriteFile]
pop ebp
pop edi
pop esi
pop ebx
pop ecx
ret
Function at 0x48fe30
Capabilities:
Link many functions at runtime

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x20
push ebx
push esi
push edi
call fcn.004873f9
xor ebx, ebx
cmp dword [0x4f5bd0], ebx
mov dword [ebp - 8], eax
mov dword [ebp - 4], ebx
mov dword [ebp - 0xc], ebx
mov dword [ebp - 0x10], ebx
jne 0x48ff06
push 0x4bd3ac
call dword [sym.imp.KERNEL32.dll_LoadLibraryA]
mov edi, eax
cmp edi, ebx
je 0x48ffe6
mov esi, dword [sym.imp.KERNEL32.dll_GetProcAddress]
push 0x4bd3a0
push edi
call esi
cmp eax, ebx
je 0x48ffe6
push eax
call fcn.0048738b
mov dword [esp], 0x4bd390
push edi
mov dword [0x4f5bd0], eax
call esi
push eax
call fcn.0048738b
mov dword [esp], 0x4bd37c
push edi
mov dword [0x4f5bd4], eax
call esi
push eax
call fcn.0048738b
mov dword [0x4f5bd8], eax
lea eax, [ebp - 0xc]
push eax
call fcn.0047f8bc
test eax, eax
pop ecx
pop ecx
je 0x48fed4
push ebx
push ebx
push ebx
push ebx
push ebx
call fcn.00486202
add esp, 0x14
cmp dword [ebp - 0xc], 2
jne 0x48ff06
push str.GetUserObjectInformationA
push edi
call esi
push eax
call fcn.0048738b
cmp eax, ebx
pop ecx
mov dword [0x4f5be0], eax
je 0x48ff06
push str.GetProcessWindowStation
push edi
call esi
push eax
call fcn.0048738b
pop ecx
mov dword [0x4f5bdc], eax
mov eax, dword [0x4f5bdc]
mov ecx, dword [ebp - 8]
cmp eax, ecx
je 0x48ff8b
cmp dword [0x4f5be0], ecx
je 0x48ff8b
push eax
call fcn.00487402
push dword [0x4f5be0]
mov esi, eax
call fcn.00487402
cmp esi, ebx
pop ecx
pop ecx
mov edi, eax
je 0x48ff8b
cmp edi, ebx
je 0x48ff8b
call esi
cmp eax, ebx
je 0x48ff58
lea ecx, [ebp - 0x14]
push ecx
push 0xc
lea ecx, [ebp - 0x20]
push ecx
push 1
push eax
call edi
test eax, eax
je 0x48ff58
test byte [ebp - 0x18], 1
jne 0x48ff8b
lea eax, [ebp - 0x10]
push eax
call fcn.0047f8f3
test eax, eax
pop ecx
je 0x48ff73
push ebx
push ebx
push ebx
push ebx
push ebx
call fcn.00486202
add esp, 0x14
cmp dword [ebp - 0x10], 4
jb 0x48ff82
or dword [ebp + 0x10], 0x200000
jmp 0x48ffc6
or dword [ebp + 0x10], 0x40000
jmp 0x48ffc6
mov eax, dword [0x4f5bd4]
cmp eax, dword [ebp - 8]
je 0x48ffc6
push eax
call fcn.00487402
cmp eax, ebx
pop ecx
je 0x48ffc6
call eax
cmp eax, ebx
mov dword [ebp - 4], eax
je 0x48ffc6
mov eax, dword [0x4f5bd8]
cmp eax, dword [ebp - 8]
je 0x48ffc6
push eax
call fcn.00487402
cmp eax, ebx
pop ecx
je 0x48ffc6
push dword [ebp - 4]
call eax
mov dword [ebp - 4], eax
push dword [0x4f5bd0]
call fcn.00487402
cmp eax, ebx
pop ecx
je 0x48ffe6
push dword [ebp + 0x10]
push dword [ebp + 0xc]
push dword [ebp + 8]
push dword [ebp - 4]
call eax
jmp 0x48ffe8
xor eax, eax
pop edi
pop esi
pop ebx
leave
ret
Function at 0x4962a1
Capabilities:
Check os version

Disassembly:
push ebp
lea ebp, [esp - 0x78]
sub esp, 0x98
mov eax, dword [0x4e0c44]
xor eax, ebp
mov dword [ebp + 0x74], eax
push esi
mov esi, ecx
call fcn.00496236
mov eax, 0x400000
push 0x94
mov dword [esi + 8], eax
mov dword [esi + 4], eax
lea eax, [ebp - 0x20]
push 0
push eax
mov dword [esi], 0x3c
mov byte [esi + 0xc], 0
call fcn.0047ec20
add esp, 0xc
lea eax, [ebp - 0x20]
push eax
mov dword [ebp - 0x20], 0x94
call dword [sym.imp.KERNEL32.dll_GetVersionExA]
cmp dword [ebp - 0x10], 2
jne 0x4962f0
cmp dword [ebp - 0x1c], 5
jb 0x496308
jmp 0x496304
cmp dword [ebp - 0x10], 1
jne 0x496308
cmp dword [ebp - 0x1c], 4
ja 0x496304
jne 0x496308
cmp dword [ebp - 0x18], 0
jbe 0x496308
mov byte [esi + 0xc], 1
lea ecx, [esi + 0x18]
mov dword [esi + 0x10], 0x800
mov dword [esi + 0x14], 0x4bec08
call fcn.00496127
test eax, eax
jge 0x496329
mov byte [0x4e3220], 1
mov ecx, dword [ebp + 0x74]
mov eax, esi
xor ecx, ebp
pop esi
call fcn.0047e4dd
add ebp, 0x78
leave
ret
Function at 0x401c00
Capabilities:
Check if process is running under wine
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
push edi
mov edi, pe_nt_image_headers32
push esi
mov esi, ecx
push ebx
mov ebx, edx
sub esp, 0xcc
mov dword [ebp - 0xac], eax
lea eax, [ebp - 0xa0]
mov dword [edx], 0x320
mov dword [ecx], 0x258
mov dword [esp + 8], eax
mov eax, str.SoftwareWineExplorerDesktops
mov dword [esp + 4], eax
mov dword [esp], 0x80000001
mov dword [ebp - 0x9c], edi
xor edi, edi
call sym._RegOpenKeyW_12
sub esp, 0xc
test eax, eax
je 0x401c5f
lea esp, [ebp - 0xc]
mov eax, edi
pop ebx
pop esi
pop edi
pop ebp
ret
mov dword [esp + 0xc], 0
mov edi, eax
mov dword [esp + 8], 0
lea eax, [ebp - 0x9c]
mov dword [esp + 0x14], eax
lea eax, [ebp - 0x98]
mov dword [esp + 0x10], eax
mov eax, dword [ebp - 0xac]
mov dword [esp + 4], eax
mov eax, dword [ebp - 0xa0]
mov dword [esp], eax
call sym._RegQueryValueExW_24
sub esp, 0x18
test eax, eax
je 0x401cb5
mov eax, dword [ebp - 0xa0]
mov dword [esp], eax
call sym._RegCloseKey_4
push eax
jmp 0x401c55
mov ecx, esi
mov edx, ebx
lea eax, [ebp - 0x98]
mov edi, 1
call sym._parse_size
test eax, eax
jne 0x401ca4
mov dword [esi], 0
mov dword [ebx], 0
jmp 0x401ca4
Function at 0x401e20
Capabilities:
Get process heap flags

Disassembly:
push ebp
mov ebp, esp
push edi
push esi
mov esi, eax
push ebx
sub esp, 0x2c
cmp word [eax], 0
mov dword [ebp - 0x20], edx
mov edx, ecx
je 0x401f50
mov ebx, eax
lea esi, [esi]
add ebx, 2
cmp word [ebx], 0
jne 0x401e40
sub ebx, esi
mov eax, ebx
sar eax, 1
mov dword [ebp - 0x1c], eax
cmp edx, 0xffffffff
je 0x401ed0
mov eax, dword [ebp - 0x1c]
lea ecx, [eax + edx]
mov dword [ebp - 0x24], edx
lea ecx, [ecx + ecx + 4]
xor edx, edx
mov dword [esp + 8], ecx
mov dword [esp + 4], edx
mov eax, dword fs:[0x18]
mov eax, dword [eax + 0x30]
mov eax, dword [eax + 0x18]
mov dword [esp], eax
call dword [sym.imp.kernel32.dll_HeapAlloc]
sub esp, 0xc
test eax, eax
je 0x401ec4
cmp ebx, 8
mov edx, dword [ebp - 0x24]
mov edi, eax
mov dword [ebp - 0x28], ebx
jae 0x401f20
mov ecx, dword [ebp - 0x28]
rep movsb byte es:[edi], byte [esi]
lea ecx, [edx + edx]
mov word [eax + ebx], 0x5c
lea edi, [eax + ebx + 2]
cmp ecx, 8
mov esi, dword [ebp - 0x20]
jae 0x401ef8
rep movsb byte es:[edi], byte [esi]
mov edi, dword [ebp - 0x1c]
lea edx, [edi + edx + 1]
mov word [eax + edx*2], 0
lea esp, [ebp - 0xc]
pop ebx
pop esi
pop edi
pop ebp
ret
mov edx, dword [ebp - 0x20]
cmp word [edx], 0
je 0x401f5e
lea esi, [esi]
add edx, 2
cmp word [edx], 0
jne 0x401ee0
mov ecx, dword [ebp - 0x20]
sub edx, ecx
sar edx, 1
jmp 0x401e57
test edi, 1
jne 0x401f68
test edi, 2
jne 0x401f73
test edi, 4
je 0x401eb5
mov ebx, dword [esi]
add edi, 4
add esi, 4
sub ecx, 4
mov dword [edi - 4], ebx
jmp 0x401eb5
test al, 1
jne 0x401f85
test edi, 2
jne 0x401f96
test edi, 4
je 0x401e9b
mov ecx, dword [esi]
add edi, 4
add esi, 4
mov dword [edi - 4], ecx
sub dword [ebp - 0x28], 4
jmp 0x401e9b
mov dword [ebp - 0x1c], 0
xor ebx, ebx
jmp 0x401e52
mov ecx, dword [ebp - 0x1c]
xor edx, edx
jmp 0x401e5d
movzx ebx, byte [esi]
inc edi
inc esi
dec ecx
mov byte [edi - 1], bl
jmp 0x401f00
movzx ebx, word [esi]
add edi, 2
add esi, 2
sub ecx, 2
mov word [edi - 2], bx
jmp 0x401f08
movzx ecx, byte [esi]
lea edi, [eax + 1]
inc esi
mov byte [eax], cl
lea ecx, [ebx - 1]
mov dword [ebp - 0x28], ecx
jmp 0x401f24
movzx ecx, word [esi]
add edi, 2
add esi, 2
mov word [edi - 2], cx
sub dword [ebp - 0x28], 2
jmp 0x401f2c
Function at 0x401fb0
Capabilities:
Query environment variable

Disassembly:
push ebp
xor edx, edx
mov ebp, esp
sub esp, 0x658
mov dword [ebp - 0xc], ebx
mov ebx, eax
xor ecx, ecx
mov dword [ebp - 8], esi
mov esi, 0x104
mov dword [ebp - 4], edi
mov edi, 0x104
mov dword [ebp - 0x638], edx
mov eax, dword [eax]
lea edx, [ebp - 0x634]
mov dword [esp + 8], esi
lea esi, [ebp - 0x630]
mov word [ebp - 0x630], cx
mov dword [esp + 0xc], edx
mov dword [esp + 4], esi
mov dword [esp], ebx
call dword [eax + 0x40]
lea edx, [ebp - 0x428]
sub esp, 0x10
mov dword [esp + 8], edi
mov edi, dword [sym.imp.kernel32.dll_ExpandEnvironmentStringsW]
mov dword [esp + 4], edx
mov dword [esp], esi
call edi
sub esp, 0xc
cmp word [ebp - 0x428], 0
jne 0x402040
mov eax, dword [ebp - 0x638]
test eax, eax
je 0x40207e
mov ebx, dword [ebp - 0xc]
mov esi, dword [ebp - 8]
mov edi, dword [ebp - 4]
mov esp, ebp
pop ebp
ret
lea edx, [ebp - 0x428]
mov eax, 1
mov dword [esp + 0x10], eax
xor eax, eax
mov dword [esp + 0xc], eax
lea eax, [ebp - 0x638]
mov dword [esp + 8], eax
mov eax, dword [ebp - 0x634]
mov dword [esp], edx
mov dword [esp + 4], eax
call sym._ExtractIconExW_20
mov eax, dword [ebp - 0x638]
sub esp, 0x14
test eax, eax
jne 0x402032
xor eax, eax
mov edx, 4
mov word [ebp - 0x630], ax
mov eax, dword [ebx]
xor ecx, ecx
mov dword [esp + 0x10], edx
mov edx, 0x104
mov dword [esp + 8], edx
mov dword [esp + 0xc], ecx
mov dword [esp + 4], esi
mov dword [esp], ebx
lea ebx, [ebp - 0x220]
call dword [eax + 0xc]
mov ecx, 0x104
sub esp, 0x14
mov dword [esp + 8], ecx
mov dword [esp + 4], ebx
mov dword [esp], esi
mov esi, 1
call edi
lea eax, [ebp - 0x638]
xor edi, edi
sub esp, 0xc
mov dword [esp + 8], eax
mov eax, dword [ebp - 0x634]
mov dword [esp + 0x10], esi
mov dword [esp + 0xc], edi
mov dword [esp], ebx
mov dword [esp + 4], eax
call sym._ExtractIconExW_20
mov eax, dword [ebp - 0x638]
mov ebx, dword [ebp - 0xc]
mov esi, dword [ebp - 8]
mov edi, dword [ebp - 4]
sub esp, 0x14
mov esp, ebp
pop ebp
ret
Function at 0x402480
Capabilities:
Enumerate files on windows
Get process heap flags

Disassembly:
push ebp
mov ebp, esp
push edi
push esi
push ebx
mov ebx, eax
sub esp, 0x26c
cmp word [eax], 0
je 0x4024a9
lea esi, [esi]
lea edi, [edi]
add eax, 2
cmp word [eax], 0
jne 0x4024a0
sub eax, ebx
sar eax, 1
mov edx, eax
mov eax, str..lnk
lea esi, [esi]
lea edi, [edi]
add eax, 2
cmp word [eax], 0
jne 0x4024c0
sub eax, str..lnk
xor esi, esi
mov dword [esp + 4], esi
sar eax, 1
lea eax, [edx + eax + 1]
add eax, eax
mov dword [esp + 8], eax
mov ecx, dword fs:[0x18]
mov eax, dword [ecx + 0x30]
mov eax, dword [eax + 0x18]
mov dword [esp], eax
call dword [sym.imp.kernel32.dll_HeapAlloc]
mov esi, eax
sub esp, 0xc
xor eax, eax
test esi, esi
je 0x4025c8
lea esi, [esi]
lea edi, [edi]
movzx edx, word [ebx + eax]
mov word [esi + eax], dx
add eax, 2
test edx, edx
jne 0x402510
cmp word [esi], 0
mov edx, esi
je 0x402539
mov esi, esi
lea edi, [edi]
add edx, 2
cmp word [edx], 0
jne 0x402530
xor eax, eax
nop
lea esi, [esi]
movzx ecx, word [eax + str..lnk]
mov word [edx + eax], cx
add eax, 2
test ecx, ecx
jne 0x402540
mov dword [esp], esi
lea eax, [ebp - 0x268]
mov dword [esp + 4], eax
call dword [sym.imp.kernel32.dll_FindFirstFileW]
sub esp, 8
cmp eax, 0xffffffff
mov edi, eax
je 0x4025a6
nop
mov ecx, 0xffffffff
mov eax, ebx
lea edx, [ebp - 0x23c]
call sym._add_launcher
lea eax, [ebp - 0x268]
mov dword [esp + 4], eax
mov dword [esp], edi
call dword [sym.imp.kernel32.dll_FindNextFileW]
sub esp, 8
test eax, eax
jne 0x402570
mov dword [esp], edi
call dword [sym.imp.kernel32.dll_FindClose]
push ecx
xor edx, edx
mov dword [esp + 8], esi
mov dword [esp + 4], edx
mov eax, dword fs:[0x18]
mov eax, dword [eax + 0x30]
mov eax, dword [eax + 0x18]
mov dword [esp], eax
call dword [sym.imp.kernel32.dll_HeapFree]
sub esp, 0xc
lea esp, [ebp - 0xc]
pop ebx
pop esi
pop edi
pop ebp
ret
Function at 0x406b9a
Capabilities:
Enumerate pe sections

Disassembly:
lea ecx, [esp + 4]
and esp, 0xfffffff0
push dword [ecx - 4]
push ebp
mov ebp, esp
sub esp, 0x88
mov dword [ebp - 0x10], ecx
mov dword [ebp - 0xc], ebx
mov dword [ebp - 8], esi
mov dword [ebp - 4], edi
mov eax, dword [ecx]
mov ebx, dword [ecx + 0x14]
mov esi, dword [ecx + 0x18]
test byte [0x413020], 8
mov dword [ebp - 0x2c], eax
mov eax, dword [ecx + 4]
mov dword [ebp - 0x34], ebx
mov edx, dword [ecx + 0xc]
mov dword [ebp - 0x38], esi
mov edi, dword [ecx + 0x20]
mov esi, dword [ecx + 0x1c]
mov dword [ebp - 0x30], eax
movzx ebx, word [ecx + 0x10]
mov eax, dword [ecx + 8]
jne 0x406c58
lea edx, [ebp - 0x1c]
mov eax, 1
call sym._get_typeinfo
test eax, eax
mov edx, eax
js 0x406c3c
mov eax, dword [ebp - 0x1c]
mov edx, dword [eax]
mov dword [esp + 0x1c], edi
mov edi, dword [ebp - 0x38]
mov dword [esp + 0x18], esi
mov esi, dword [ebp - 0x2c]
mov dword [esp + 0xc], ebx
mov ebx, dword [ebp - 0x30]
mov dword [esp], eax
mov dword [esp + 0x14], edi
mov edi, dword [ebp - 0x34]
mov dword [esp + 4], esi
mov dword [esp + 8], ebx
mov dword [esp + 0x10], edi
call dword [edx + 0x2c]
mov dword [ebp - 0x2c], eax
mov eax, dword [ebp - 0x1c]
sub esp, 0x20
mov ecx, dword [eax]
mov dword [esp], eax
call dword [ecx + 8]
mov edx, dword [ebp - 0x2c]
sub esp, 4
mov ecx, dword [ebp - 0x10]
mov eax, edx
mov ebx, dword [ebp - 0xc]
mov esi, dword [ebp - 8]
mov edi, dword [ebp - 4]
mov esp, ebp
pop ebp
lea esp, [ecx - 4]
ret 0x24
test eax, eax
je 0x406d50
mov dword [ebp - 0x3c], edx
mov ecx, eax
shr ecx, 0x10
je 0x406d30
movzx ecx, byte [eax + 0xf]
mov dword [esp + 0x2c], ecx
movzx ecx, byte [eax + 0xe]
mov dword [esp + 0x28], ecx
movzx ecx, byte [eax + 0xd]
mov dword [esp + 0x24], ecx
movzx ecx, byte [eax + 0xc]
mov dword [esp + 0x20], ecx
movzx ecx, byte [eax + 0xb]
mov dword [esp + 0x1c], ecx
movzx ecx, byte [eax + 0xa]
mov dword [esp + 0x18], ecx
movzx ecx, byte [eax + 9]
mov dword [esp + 0x14], ecx
movzx ecx, byte [eax + 8]
mov dword [esp + 0x10], ecx
movzx ecx, word [eax + 6]
mov dword [esp + 0xc], ecx
movzx ecx, word [eax + 4]
mov dword [esp + 8], ecx
mov eax, dword [eax]
mov dword [esp], str._08x__04x__04x__02x_02x__02x_02x_02x_02x_02x_02x
mov dword [esp + 4], eax
call sym._wine_dbg_sprintf_1
mov edx, dword [ebp - 0x3c]
mov dword [esp + 0x18], eax
mov ecx, dword [ebp - 0x38]
mov dword [esp + 0x1c], edx
mov eax, dword [ebp - 0x30]
mov edx, str.webbrowser_Invoke
mov dword [esp + 0x30], edi
mov dword [esp + 0x2c], esi
mov dword [esp + 0x28], ecx
mov ecx, dword [ebp - 0x34]
mov dword [esp + 0x14], eax
mov eax, dword [ebp - 0x2c]
mov dword [esp + 0x20], ebx
mov dword [esp + 8], edx
mov dword [esp + 0x24], ecx
mov ecx, 0x413020
mov dword [esp + 0x10], eax
mov eax, str.__p_____ld__s__ld__08x__p__p__p__p__n
mov dword [esp + 0xc], eax
mov dword [esp + 4], ecx
mov dword [esp], 3
call sym._wine_dbg_log.constprop.0_1
jmp 0x406bdf
mov dword [esp], str._guid_0x_04hx_
movzx eax, ax
mov dword [esp + 4], eax
call sym._wine_dbg_sprintf_1
mov edx, dword [ebp - 0x3c]
jmp 0x406cd3
mov eax, str._null_
jmp 0x406cd3