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

Disassembly:
sub esp, 0x4c
mov eax, dword [0x572844]
xor eax, esp
mov dword [esp + 0x48], eax
mov eax, dword [esp + 0x5c]
push ebx
mov ebx, dword [esp + 0x58]
push ebp
push esi
mov esi, dword [esp + 0x5c]
mov ebp, ecx
push edi
mov edi, dword [esp + 0x68]
mov dword [esp + 0x14], eax
mov al, byte [esp + 0x70]
push 0
push ebx
mov dword [esp + 0x18], ebx
mov dword [ebp + 8], ebx
mov byte [ebp + 0x26], al
call dword [sym.imp.USER32.dll_ShowWindow]
push 0x7f00
push 0
mov dword [esp + 0x20], 0x30
mov dword [esp + 0x24], 0x828
mov dword [esp + 0x28], 0x4e0f50
mov dword [esp + 0x2c], 0
mov dword [esp + 0x30], 0
mov dword [esp + 0x34], esi
mov dword [esp + 0x38], 0
call dword [sym.imp.USER32.dll_LoadCursorW]
mov dword [esp + 0x34], eax
lea eax, [esp + 0x18]
push eax
mov dword [esp + 0x3c], 6
mov dword [esp + 0x40], 0
mov dword [esp + 0x44], 0x554680
mov dword [esp + 0x48], 0
call dword [sym.imp.USER32.dll_RegisterClassExW]
mov eax, dword [ebp + 0x1c]
mov dword [ebp], esi
test eax, eax
je 0x4e0d62
push eax
call fcn.00525b95
add esp, 4
test edi, edi
jne 0x4e0d6a
xor eax, eax
jmp 0x4e0d73
push edi
call fcn.005264ec
add esp, 4
mov dword [ebp + 0x1c], eax
mov eax, dword [esp + 0x14]
test eax, eax
je 0x4e0d87
push eax
call fcn.005264ec
add esp, 4
mov dword [ebp + 0x20], eax
lea eax, [esp + 0x48]
push eax
push ebx
call dword [sym.imp.USER32.dll_GetWindowRect]
push 2
lea eax, [esp + 0x4c]
push eax
push ebx
call dword [sym.imp.USER32.dll_GetParent]
push eax
push 0
call dword [sym.imp.USER32.dll_MapWindowPoints]
mov eax, dword [ebp + 4]
test eax, eax
je 0x4e0dbb
push eax
call dword [sym.imp.USER32.dll_DestroyWindow]
mov edi, dword [esp + 0x50]
mov ebx, dword [esp + 0x48]
sub edi, ebx
push dword [esp + 0x10]
mov esi, dword [ebp]
call dword [sym.imp.USER32.dll_GetParent]
mov ecx, dword [esp + 0x4c]
push ebp
push esi
push 0
push eax
mov eax, dword [esp + 0x64]
sub eax, ecx
push eax
push edi
push ecx
push ebx
push 0x40000000
push 0
push 0x554680
push 0
call dword [sym.imp.USER32.dll_CreateWindowExW]
cmp dword [ebp + 0x10], 0
mov dword [ebp + 4], eax
jne 0x4e0e54
mov ebx, dword [esp + 0x10]
test ebx, ebx
je 0x4e0e6a
cmp dword [ebp + 0x20], 0
jne 0x4e0e6a
mov eax, dword [ebp + 0x1c]
test eax, eax
je 0x4e0e6a
push eax
mov ecx, ebp
call fcn.004e0940
mov esi, eax
test esi, esi
je 0x4e0e6a
push 5
push ebx
call dword [sym.imp.USER32.dll_ShowWindow]
push esi
push ebx
call dword [sym.imp.USER32.dll_SetWindowTextW]
push esi
call fcn.00525b95
add esp, 4
pop edi
pop esi
pop ebp
pop ebx
mov ecx, dword [esp + 0x48]
xor ecx, esp
call fcn.0051dca8
add esp, 0x4c
ret 0x14
test eax, eax
je 0x4e0e6a
push 5
push eax
call dword [sym.imp.USER32.dll_ShowWindow]
push dword [ebp + 4]
call dword [sym.imp.USER32.dll_UpdateWindow]
mov ecx, dword [esp + 0x58]
pop edi
pop esi
pop ebp
pop ebx
xor ecx, esp
call fcn.0051dca8
add esp, 0x4c
ret 0x14
Function at 0x4e1bf0
Capabilities:
Get disk information
Query environment variable

Disassembly:
mov eax, 0x4408
call fcn.0051dcc0
mov eax, dword [0x572844]
xor eax, esp
mov dword [esp + 0x4404], eax
mov eax, dword [esp + 0x4410]
lea ecx, [esp + 0x1004]
push edi
mov edi, dword [esp + 0x4410]
push 0x800
push ecx
push eax
call dword [sym.imp.KERNEL32.dll_ExpandEnvironmentStringsW]
test eax, eax
je 0x4e1e08
cmp eax, 0x800
jae 0x4e1e08
push 0x800
lea eax, [esp + 0x100c]
mov ecx, 0x5a84b0
push eax
push eax
call fcn.00452e10
lea eax, [esp + 0x1008]
push eax
call fcn.00495850
push 0x3a
push eax
call fcn.0051f225
add esp, 8
test eax, eax
je 0x4e1ca8
cmp byte [0x5d86ce], 0
jne 0x4e1ca8
push esi
push 0x65
call fcn.004a9c90
push 0x528
mov esi, eax
call fcn.004a9c90
push 0x31
push esi
push eax
push edi
call fcn.004edd90
pop esi
cmp eax, 1
jne 0x4e1dee
mov byte [0x5d86ce], al
push 0x800
lea eax, [esp + 0x100c]
push eax
lea eax, [esp + 0x10]
push eax
call fcn.004b0360
lea eax, [esp + 8]
push eax
call fcn.004958c0
lea eax, [esp + 8]
push eax
call fcn.00495850
cmp word [eax], 0
je 0x4e1d67
lea eax, [esp + 8]
push eax
call fcn.004837b0
test al, al
jne 0x4e1d67
jmp 0x4e1cf0
push 0
lea eax, [esp + 0xc]
push eax
call fcn.00412e10
test al, al
jne 0x4e1d67
push 0x14e
call fcn.004a9c90
push eax
lea eax, [esp + 0xc]
push eax
push str.__s__n_s
lea eax, [esp + 0x3014]
push 0xa00
push eax
call fcn.00402c90
add esp, 0x14
push 0x34
push 0x65
call fcn.004a9c90
push eax
lea eax, [esp + 0x3010]
push eax
push edi
call fcn.004edd90
cmp eax, 6
jne 0x4e1dee
push 0
push 0
lea eax, [esp + 0x10]
push eax
call fcn.00483010
lea eax, [esp + 8]
push eax
call fcn.004837b0
test al, al
je 0x4e1cf0
push 0x800
lea eax, [esp + 0x200c]
push eax
lea eax, [esp + 0x1010]
push eax
call fcn.00494910
push 0
push 0
lea eax, [esp + 0xc]
push eax
push 0
push 0
push 0
push 0
lea eax, [esp + 0x2024]
push eax
call dword [sym.imp.KERNEL32.dll_GetVolumeInformationW]
test eax, eax
je 0x4e1e08
test dword [esp + 4], 0x80000
je 0x4e1e08
lea eax, [esp + 0x2008]
push eax
push 0x65e
call fcn.004a9c90
push eax
lea eax, [esp + 0x3010]
push 0xa00
push eax
call fcn.00402c90
add esp, 0x10
push 0x30
push 0x65
call fcn.004a9c90
push eax
lea eax, [esp + 0x3010]
push eax
push edi
call fcn.004edd90
xor al, al
pop edi
mov ecx, dword [esp + 0x4404]
xor ecx, esp
call fcn.0051dca8
add esp, 0x4408
ret 8
mov ecx, dword [esp + 0x4408]
mov al, 1
pop edi
xor ecx, esp
call fcn.0051dca8
add esp, 0x4408
ret 8
Function at 0x4e4680
Capabilities:
Resolve function by parsing pe exports

Disassembly:
sub esp, 0x1c0
mov eax, dword [0x572844]
xor eax, esp
mov dword [esp + 0x1bc], eax
mov ecx, dword [esp + 0x1c4]
push ebx
mov bh, byte [esp + 0x1cc]
mov bl, byte [esp + 0x1d0]
movzx eax, bh
mov dword [esp + 0x54], eax
mov eax, dword [0x5b6818]
mov dword [esp + 0xc], ecx
mov ecx, 0x5aa610
push 1
mov dword [0x5d86bc], 0
mov dword [0x5d86c0], 0
mov byte [0x5d86b5], bl
mov dword [esp + 0x48], str.GETARC
mov dword [esp + 0x54], 0x4e4910
mov dword [esp + 0x80], str.GETARCADV
mov dword [esp + 0x8c], 0x4e35f0
mov dword [esp + 0xb8], str.GETARCOPT
mov dword [esp + 0xc4], 0x4e6640
mov dword [esp + 0xf0], str.GETARCFILES
mov dword [esp + 0xfc], 0x4e6000
mov dword [esp + 0x128], str.GETARCBACKUP
mov dword [esp + 0x134], 0x4e3ee0
mov dword [esp + 0x160], str.GETARCTIME
mov dword [esp + 0x16c], 0x4e69c0
mov dword [esp + 0x198], str.GETARCCMT
mov dword [esp + 0x1a4], 0x4e41b0
mov dword [esp + 8], 0x34
mov dword [esp + 0xc], 0x28a
mov dword [esp + 0x14], eax
call fcn.004cdb80
mov dword [esp + 0x14], eax
test bl, bl
je 0x4e4797
push 0x3f0
jmp 0x4e47ad
movzx eax, byte [0x58ebe8]
neg eax
sbb eax, eax
and eax, 0xfffffd08
add eax, 0x3de
push eax
call fcn.004a9c90
mov dword [esp + 0x18], eax
mov ecx, 0x5b6880
lea eax, [esp + 0x38]
mov dword [esp + 0x1c], 7
mov dword [esp + 0x24], eax
mov eax, dword [0x5b6818]
mov dword [esp + 0x40], eax
mov dword [esp + 0x78], eax
mov dword [esp + 0xb0], eax
mov dword [esp + 0xe8], eax
mov dword [esp + 0x120], eax
mov dword [esp + 0x158], eax
mov dword [esp + 0x190], eax
lea eax, [esp + 0x38]
push 7
push eax
lea eax, [esp + 0xc]
mov dword [esp + 0x28], 0
push eax
mov dword [esp + 0x44], 0x38
mov dword [esp + 0x48], 0x20
mov dword [esp + 0x7c], 0x38
mov dword [esp + 0x80], 0x20
mov dword [esp + 0xb4], 0x38
mov dword [esp + 0xb8], 0x20
mov dword [esp + 0xec], 0x38
mov dword [esp + 0xf0], 0x20
mov dword [esp + 0x124], 0x38
mov dword [esp + 0x128], 0x20
mov dword [esp + 0x15c], 0x38
mov dword [esp + 0x160], 0x20
mov dword [esp + 0x194], 0x38
mov dword [esp + 0x198], 0x20
call fcn.004a90a0
test bh, bh
jne 0x4e48d2
lea eax, [esp + 4]
push eax
call dword [sym.imp.COMCTL32.dll_PropertySheetW]
test eax, eax
jle 0x4e48ce
cmp word [0x59701a], 0
jne 0x4e48d2
cmp byte [0x595fec], bh
jne 0x4e48d2
test bl, bl
jne 0x4e48d2
xor bl, bl
jmp 0x4e48d4
mov bl, 1
push 7
lea eax, [esp + 0x3c]
mov ecx, 0x5b6880
push eax
call fcn.004a9050
mov ecx, dword [esp + 0x1c0]
mov al, bl
pop ebx
xor ecx, esp
mov byte [0x5a80ac], 0
call fcn.0051dca8
add esp, 0x1c0
ret 0xc
Function at 0x4ec500
Capabilities:
Check if file exists
Get common file path
Get file attributes
Query environment variable

Disassembly:
mov eax, 0x1004
call fcn.0051dcc0
mov eax, dword [0x572844]
xor eax, esp
mov dword [esp + 0x1000], eax
cmp word [0x57b5a0], 0
push esi
mov esi, dword [esp + 0x100c]
push edi
mov edi, dword [esp + 0x1014]
push edi
je 0x4ec53d
push 0x57b5a0
jmp 0x4ec5bd
push 0x54266c
push esi
push str.TempFolder
push 0x542988
call fcn.004c3190
xor eax, eax
mov word [esp + 8], ax
lea eax, [esp + 8]
push 0x800
push eax
push esi
call dword [sym.imp.KERNEL32.dll_ExpandEnvironmentStringsW]
cmp word [esi], 0
je 0x4ec58d
test eax, eax
je 0x4ec587
cmp eax, 0x800
jae 0x4ec587
push edi
lea eax, [esp + 0xc]
push eax
push esi
call fcn.004b0360
cmp word [esi], 0
jne 0x4ec599
cmp byte [esp + 0x1018], 0
je 0x4ec5a5
jmp 0x4ec5c3
push esi
call dword [sym.imp.KERNEL32.dll_GetFileAttributesW]
cmp eax, 0xffffffff
jne 0x4ec5c3
push esi
push edi
call dword [sym.imp.KERNEL32.dll_GetTempPathW]
test eax, eax
je 0x4ec5b7
cmp word [esi], 0
jne 0x4ec5c3
push edi
push str._rartemp
push esi
call fcn.004b0360
push edi
push esi
call fcn.00493970
mov ecx, dword [esp + 0x1008]
pop edi
pop esi
xor ecx, esp
call fcn.0051dca8
add esp, 0x1004
ret 0xc

Function at 0x4ec930
Capabilities:
Create directory

Disassembly:
mov eax, 0x2004
call fcn.0051dcc0
mov eax, dword [0x572844]
xor eax, esp
mov dword [esp + 0x2000], eax
mov eax, dword [esp + 0x2008]
push esi
mov esi, dword [esp + 0x2010]
push 0x7ff
push eax
lea eax, [esp + 0x100c]
push eax
call fcn.004b0360
cmp byte [esp + 0x2018], 0
je 0x4ec9cb
cmp byte [0x5a5ae4], 0
jne 0x4ec98b
cmp byte [0x5a5a33], 0
mov edx, 0x61
je 0x4ec990
mov edx, 0x62
lea ecx, [esp + 0x1004]
push edi
lea edi, [ecx + 2]
jmp 0x4ec9a0
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x4ec9a0
sub ecx, edi
lea eax, [esp + 0x1008]
push edx
sar ecx, 1
push 0x555944
push 2
lea eax, [eax + ecx*2]
push eax
call fcn.00402c90
add esp, 0x10
pop edi
push 0
push 0x800
lea eax, [esp + 0xc]
push eax
call fcn.004ec500
push 0x800
lea eax, [esp + 8]
push eax
call fcn.00493970
push 0x800
lea eax, [esp + 0x1008]
push eax
lea eax, [esp + 0xc]
push eax
call fcn.004b0300
push 0x800
lea eax, [esp + 8]
push eax
call fcn.00483e40
test eax, eax
je 0x4eca52
push 0
lea eax, [esp + 8]
push eax
call dword [sym.imp.KERNEL32.dll_CreateDirectoryW]
test eax, eax
je 0x4eca52
push dword [esp + 0x2014]
lea eax, [esp + 8]
push eax
push esi
call fcn.004b0360
mov al, 1
pop esi
mov ecx, dword [esp + 0x2000]
xor ecx, esp
call fcn.0051dca8
add esp, 0x2004
ret 0x10
lea eax, [esp + 4]
push eax
push 0x1f7
call fcn.004a9c90
push eax
call fcn.004f27d0
add esp, 8
mov ecx, 0x5b68fc
call fcn.0047b860
mov ecx, dword [esp + 0x2004]
xor al, al
pop esi
xor ecx, esp
call fcn.0051dca8
add esp, 0x2004
ret 0x10
Function at 0x4eca90
Capabilities:
Capture screenshot

Disassembly:
sub esp, 0x28
push ebx
push ebp
push esi
push edi
call dword [sym.imp.USER32.dll_GetDesktopWindow]
push eax
mov dword [esp + 0x20], eax
call dword [sym.imp.USER32.dll_GetDC]
mov ebp, eax
push ebp
mov dword [esp + 0x1c], ebp
call dword [sym.imp.GDI32.dll_CreateCompatibleDC]
mov ebx, eax
push ebp
mov dword [esp + 0x14], ebx
call dword [sym.imp.GDI32.dll_CreateCompatibleDC]
mov esi, dword [esp + 0x3c]
mov edi, eax
lea eax, [esp + 0x20]
mov dword [esp + 0x14], edi
push eax
push 0x18
push esi
call dword [sym.imp.GDI32.dll_GetObjectW]
push dword [esp + 0x28]
push dword [esp + 0x28]
push ebp
call dword [sym.imp.GDI32.dll_CreateCompatibleBitmap]
push esi
push ebx
mov ebp, eax
call dword [sym.imp.GDI32.dll_SelectObject]
push ebp
push edi
mov ebx, eax
call dword [sym.imp.GDI32.dll_SelectObject]
mov edx, dword [esp + 0x24]
mov edi, eax
mov esi, dword [esp + 0x28]
mov ecx, edx
push 0xcc0020
push esi
neg ecx
push ecx
push 0
lea ecx, [edx - 1]
push ecx
push dword [esp + 0x24]
push esi
mov esi, dword [esp + 0x30]
push edx
push 0
push 0
push esi
call dword [sym.imp.GDI32.dll_StretchBlt]
push 0xcc0020
push 0
push 0
push esi
push dword [esp + 0x38]
push dword [esp + 0x38]
push 0
push 0
push dword [esp + 0x30]
call dword [sym.imp.GDI32.dll_BitBlt]
push ebx
mov ebx, dword [esp + 0x14]
push ebx
call dword [sym.imp.GDI32.dll_SelectObject]
push edi
push esi
call dword [sym.imp.GDI32.dll_SelectObject]
push ebp
call dword [sym.imp.GDI32.dll_DeleteObject]
push ebx
call dword [sym.imp.GDI32.dll_DeleteDC]
push esi
call dword [sym.imp.GDI32.dll_DeleteDC]
push dword [esp + 0x18]
push dword [esp + 0x20]
call dword [sym.imp.USER32.dll_ReleaseDC]
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x28
ret 4
Function at 0x4ed430
Capabilities:
Create shortcut via ishelllink

Disassembly:
sub esp, 8
lea eax, [esp]
push ebx
push eax
push 0x557af4
push 1
push 0
push 0x557b14
xor bl, bl
call dword [sym.imp.ole32.dll_CoCreateInstance]
test eax, eax
js 0x4ed57a
mov ecx, dword [esp + 4]
push esi
mov eax, dword [ecx]
mov esi, dword [eax]
lea eax, [esp + 0xc]
push eax
push 0x557bb4
push ecx
mov ecx, esi
call dword [0x541740]
call esi
test eax, eax
js 0x4ed565
cmp byte [esp + 0x14], bl
je 0x4ed49c
mov eax, dword [esp + 0xc]
push 2
push dword [esp + 0x20]
mov ecx, dword [eax]
push eax
mov esi, dword [ecx + 0x14]
mov ecx, esi
call dword [0x541740]
call esi
mov eax, dword [esp + 8]
push dword [esp + 0x18]
push eax
mov ecx, dword [eax]
mov esi, dword [ecx + 0x50]
mov ecx, esi
call dword [0x541740]
call esi
mov edx, dword [esp + 0x24]
test edx, edx
je 0x4ed4d1
mov eax, dword [esp + 8]
push edx
push eax
mov ecx, dword [eax]
mov esi, dword [ecx + 0x1c]
mov ecx, esi
call dword [0x541740]
call esi
mov eax, dword [esp + 8]
mov edx, dword [esp + 0x28]
push 0
mov ecx, dword [eax]
mov esi, dword [ecx + 0x44]
mov ecx, esi
test edx, edx
jne 0x4ed4ed
push 0x54266c
jmp 0x4ed4ee
push edx
push eax
call dword [0x541740]
call esi
mov edx, dword [esp + 0x2c]
test edx, edx
je 0x4ed514
mov eax, dword [esp + 8]
push edx
push eax
mov ecx, dword [eax]
mov esi, dword [ecx + 0x2c]
mov ecx, esi
call dword [0x541740]
call esi
mov edx, dword [esp + 0x20]
test edx, edx
je 0x4ed531
mov eax, dword [esp + 8]
push edx
push eax
mov ecx, dword [eax]
mov esi, dword [ecx + 0x24]
mov ecx, esi
call dword [0x541740]
call esi
mov ecx, dword [esp + 0xc]
push 1
push dword [esp + 0x20]
mov eax, dword [ecx]
push ecx
mov esi, dword [eax + 0x18]
mov ecx, esi
call dword [0x541740]
call esi
test eax, eax
js 0x4ed551
mov bl, 1
mov eax, dword [esp + 0xc]
push eax
mov ecx, dword [eax]
mov esi, dword [ecx + 8]
mov ecx, esi
call dword [0x541740]
call esi
mov ecx, dword [esp + 8]
push ecx
mov edx, dword [ecx]
mov esi, dword [edx + 8]
mov ecx, esi
call dword [0x541740]
call esi
pop esi
mov al, bl
pop ebx
add esp, 8
ret 0x1c

Function at 0x4ed8e0
Capabilities:
Get common file path

Disassembly:
push dword [esp + 4]
push dword [esp + 0xc]
call dword [sym.imp.KERNEL32.dll_GetCurrentDirectoryW]
test eax, eax
setne al
ret 8
Function at 0x4ed900
Capabilities:
Query environment variable

Disassembly:
mov eax, 0x1018
call fcn.0051dcc0
mov eax, dword [0x572844]
xor eax, esp
mov dword [esp + 0x1014], eax
push esi
mov esi, dword [esp + 0x1020]
push edi
mov edi, dword [esp + 0x1028]
push esi
call fcn.00494ec0
test al, al
je 0x4ed99f
movzx eax, word [esi]
push eax
push 0x555a6c
lea eax, [esp + 0x10]
push 0xa
push eax
call fcn.00402c90
add esp, 0x10
lea eax, [esp + 0x1c]
push 0x800
push eax
lea eax, [esp + 0x10]
push eax
call dword [sym.imp.KERNEL32.dll_ExpandEnvironmentStringsW]
test eax, eax
je 0x4ed986
cmp eax, 0x800
jae 0x4ed986
cmp word [esp + 0x1c], 0x25
je 0x4ed986
push dword [esp + 0x102c]
lea eax, [esp + 0x20]
push eax
push edi
call fcn.004b0360
jmp 0x4ed99f
movzx eax, word [esi]
push eax
push str._c:_
push dword [esp + 0x1034]
push edi
call fcn.00402c90
add esp, 0x10
mov ecx, dword [esp + 0x101c]
pop edi
pop esi
xor ecx, esp
call fcn.0051dca8
add esp, 0x1018
ret 0xc
Function at 0x4edb00
Capabilities:
Extract resource via kernel32 functions

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x53f607
mov eax, dword fs:[0]
push eax
sub esp, 0x10
push ebx
push esi
push edi
mov eax, dword [0x572844]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
push 0x55337c
push dword [ebp + 8]
push dword [0x5b6818]
call dword [sym.imp.KERNEL32.dll_FindResourceW]
mov esi, eax
test esi, esi
je 0x4edc98
push esi
push dword [0x5b6818]
call dword [sym.imp.KERNEL32.dll_SizeofResource]
mov edi, eax
test edi, edi
je 0x4edc98
push esi
push dword [0x5b6818]
call dword [sym.imp.KERNEL32.dll_LoadResource]
test eax, eax
je 0x4edc98
push eax
call dword [sym.imp.KERNEL32.dll_LockResource]
mov esi, eax
test esi, esi
je 0x4edc98
push edi
push 2
mov dword [ebp - 0x18], 0
call dword [sym.imp.KERNEL32.dll_GlobalAlloc]
mov ebx, eax
test ebx, ebx
je 0x4edc81
push ebx
call dword [sym.imp.KERNEL32.dll_GlobalLock]
test eax, eax
je 0x4edc7a
push edi
push esi
push eax
call fcn.0051f6b0
add esp, 0xc
mov dword [ebp - 0x10], 0
lea eax, [ebp - 0x10]
push eax
push 0
push ebx
call dword [sym.imp.ole32.dll_CreateStreamOnHGlobal]
test eax, eax
jne 0x4edc73
mov esi, dword [ebp - 0x10]
push 0x10
call sub.gdiplus.dll_GdipAlloc
mov edi, eax
mov dword [ebp - 0x1c], edi
mov dword [ebp - 4], 0
test edi, edi
je 0x4edc1d
mov dword [edi], 0x555a5c
mov byte [ebp - 4], 1
lea eax, [ebp - 0x14]
push eax
push esi
mov dword [edi], 0x555a64
mov dword [ebp - 0x14], 0
call sub.gdiplus.dll_GdipCreateBitmapFromStream
mov dword [edi + 8], eax
mov eax, dword [ebp - 0x14]
mov dword [edi + 4], eax
mov byte [ebp - 4], 0
jmp 0x4edc1f
xor edi, edi
mov dword [ebp - 4], 0xffffffff
mov eax, dword [ebp - 0x10]
push eax
mov ecx, dword [eax]
mov esi, dword [ecx + 8]
mov ecx, esi
call dword [0x541740]
call esi
test edi, edi
je 0x4edc73
mov eax, dword [edi + 8]
mov dword [edi + 8], 0
test eax, eax
jne 0x4edc61
lea eax, [ebp - 0x18]
mov dword [ebp - 0x14], 0xffffff
push eax
lea eax, [ebp - 0x14]
mov ecx, edi
push eax
call fcn.004ed9c0
mov eax, dword [edi]
push 1
mov esi, dword [eax]
mov ecx, esi
call dword [0x541740]
mov ecx, edi
call esi
push ebx
call dword [sym.imp.KERNEL32.dll_GlobalUnlock]
push ebx
call dword [sym.imp.KERNEL32.dll_GlobalFree]
mov eax, dword [ebp - 0x18]
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
xor eax, eax
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 0x4ee390
Capabilities:
Set environment variable

Disassembly:
sub esp, 0x18
mov eax, dword [0x572844]
xor eax, esp
mov dword [esp + 0x14], eax
push esi
mov esi, dword [esp + 0x20]
push esi
call fcn.00494ec0
test al, al
je 0x4ee3d1
movzx eax, word [esi]
push eax
push 0x555a80
lea eax, [esp + 0xc]
push 0xa
push eax
call fcn.00402c90
add esp, 0x10
lea eax, [esp + 4]
push esi
push eax
call dword [sym.imp.KERNEL32.dll_SetEnvironmentVariableW]
mov ecx, dword [esp + 0x18]
pop esi
xor ecx, esp
call fcn.0051dca8
add esp, 0x18
ret 4
Function at 0x4f1300
Capabilities:
Get graphical window text

Disassembly:
sub esp, 0x404
mov eax, dword [0x572844]
xor eax, esp
mov dword [esp + 0x400], eax
push ebx
push esi
push edi
mov edi, dword [esp + 0x414]
lea eax, [esp + 0xc]
push 0x200
push eax
push dword [edi + 4]
call dword [sym.imp.USER32.dll_GetWindowTextW]
cmp word [0x5dcd68], 0
mov ebx, 0x200
je 0x4f1390
push ebx
push 0x5471c4
lea eax, [esp + 0x14]
push eax
call fcn.004b0300
lea esi, [esp + 0xc]
lea ecx, [esi + 2]
mov ax, word [esi]
add esi, 2
test ax, ax
jne 0x4f1357
push 0x5dcd68
sub esi, ecx
push 0x5aa
sar esi, 1
call fcn.004a9c90
push eax
mov eax, ebx
sub eax, esi
push 0x55299c
push eax
lea eax, [esp + 0x1c]
lea eax, [eax + esi*2]
push eax
call fcn.00402c90
add esp, 0x14
cmp byte [0x5dcd19], 0
je 0x4f13e8
push 0x200
push 0x5471c4
lea eax, [esp + 0x14]
push eax
call fcn.004b0300
lea esi, [esp + 0xc]
lea ecx, [esi + 2]
mov ax, word [esi]
add esi, 2
test ax, ax
jne 0x4f13b4
push dword [esp + 0x418]
sub esi, ecx
push 0x2fd
sar esi, 1
call fcn.004a9c90
push eax
sub ebx, esi
lea eax, [esp + 0x14]
lea eax, [eax + esi*2]
push ebx
push eax
call fcn.00402c90
add esp, 0x10
push 0x80
lea eax, [esp + 0x10]
push eax
call fcn.004cbba0
push 0x80
lea eax, [esp + 0x10]
push eax
lea eax, [edi + 0x18]
push eax
call fcn.004b0360
mov ecx, dword [esp + 0x40c]
pop edi
pop esi
pop ebx
xor ecx, esp
call fcn.0051dca8
add esp, 0x404
ret 8

Function at 0x4f1ba0
Capabilities:
Get graphical window text

Disassembly:
mov eax, 0x1404
call fcn.0051dcc0
mov eax, dword [0x572844]
xor eax, esp
mov dword [esp + 0x1400], eax
mov eax, dword [esp + 0x1408]
push esi
mov esi, dword [esp + 0x1410]
push edi
push eax
push dword [0x57a0d4]
call dword [sym.imp.USER32.dll_GetDlgItem]
mov edi, eax
lea eax, [esp + 8]
push 0xa00
push eax
push edi
call dword [sym.imp.USER32.dll_GetWindowTextW]
lea edx, [esp + 8]
mov ecx, esi
mov edi, edi
mov ax, word [ecx]
cmp ax, word [edx]
jne 0x4f1c16
test ax, ax
je 0x4f1c12
mov ax, word [ecx + 2]
cmp ax, word [edx + 2]
jne 0x4f1c16
add ecx, 4
add edx, 4
test ax, ax
jne 0x4f1bf0
xor eax, eax
jmp 0x4f1c1b
sbb eax, eax
or eax, 1
test eax, eax
je 0x4f1c27
push esi
push edi
call dword [sym.imp.USER32.dll_SetWindowTextW]
mov ecx, dword [esp + 0x1408]
pop edi
pop esi
xor ecx, esp
call fcn.0051dca8
add esp, 0x1404
ret 8
Function at 0x4f1c40
Capabilities:
Get graphical window text

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x53f6e1
mov eax, dword fs:[0]
push eax
sub esp, 0x7c0
mov eax, dword [0x572844]
xor eax, ebp
mov dword [ebp - 0x10], eax
push esi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
cmp dword [0x57a0d4], 0
je 0x4f1e30
mov eax, dword fs:[0x2c]
mov ecx, dword [0x618b48]
mov ecx, dword [eax + ecx*4]
mov eax, dword [0x5de2dc]
cmp eax, dword [ecx + 4]
jg 0x4f1e4a
push 0x64
mov ecx, 0x5de2d8
call fcn.00458bc0
test al, al
jne 0x4f1cb5
mov byte [0x5dcd18], 1
jmp 0x4f1e30
push 0x200
lea eax, [ebp - 0x410]
mov byte [0x5dcd18], 0
push eax
push dword [0x57a0d4]
call dword [sym.imp.USER32.dll_GetWindowTextW]
mov eax, dword [0x5d9714]
cmp eax, 0xa
je 0x4f1db6
cmp eax, 9
je 0x4f1db6
mov edx, 0x5db718
lea ecx, [ebp - 0x410]
mov si, word [ecx]
cmp si, word [edx]
jne 0x4f1d1c
test si, si
je 0x4f1d18
mov si, word [ecx + 2]
cmp si, word [edx + 2]
jne 0x4f1d1c
add ecx, 4
add edx, 4
test si, si
jne 0x4f1cf6
xor ecx, ecx
jmp 0x4f1d21
sbb ecx, ecx
or ecx, 1
test ecx, ecx
je 0x4f1db6
push 0x5db718
push dword [0x57a0d4]
call dword [sym.imp.USER32.dll_SetWindowTextW]
mov eax, dword [0x5d9714]
cmp eax, 3
jne 0x4f1dcf
cmp dword [0x5d9710], 0
je 0x4f1dbb
push 0x3ac
lea eax, [ebp - 0x7bc]
push 0
push eax
call fcn.005201d0
mov eax, dword [0x57a0d4]
add esp, 0xc
mov dword [ebp - 0x7c8], eax
lea eax, [ebp - 0x7cc]
mov dword [ebp - 0x7cc], 0x3bc
mov dword [ebp - 0x7c4], 0x7b
push dword [0x5dcdcc]
mov dword [ebp - 0x7c0], 4
push eax
call fcn.004f1300
lea eax, [ebp - 0x7cc]
push eax
push 1
call dword [sym.imp.SHELL32.dll_Shell_NotifyIconW]
mov eax, dword [0x5d9714]
cmp eax, 3
jne 0x4f1dcf
push 0x5dc818
push 0x9d
call fcn.004f1ba0
mov eax, dword [0x5d9714]
test eax, eax
je 0x4f1de2
cmp eax, 1
je 0x4f1de2
cmp eax, 2
je 0x4f1de2
cmp eax, 0xa
jne 0x4f1e24
push 0x5dc818
push 0x9d
call fcn.004f1ba0
push 0x5d9718
call fcn.00495850
push eax
push 0x9c
push dword [0x57a0d4]
call dword [sym.imp.USER32.dll_SetDlgItemTextW]
push 0x9c
push dword [0x57a0d4]
call dword [sym.imp.USER32.dll_GetDlgItem]
push eax
call fcn.004cbe30
push dword [0x57a0d4]
call dword [sym.imp.USER32.dll_UpdateWindow]
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop esi
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.0051dca8
mov esp, ebp
pop ebp
ret
push 0x5de2dc
call fcn.0051e56a
add esp, 4
cmp dword [0x5de2dc], 0xffffffff
jne 0x4f1c99
mov dword [ebp - 4], 0
mov dword [0x5de2d8], 0
mov dword [ebp - 4], 0xffffffff
push 0x5de2dc
call fcn.0051e520
add esp, 4
jmp 0x4f1c99