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

Disassembly:
sub esp, 0xc
mov eax, dword [0x5755c4]
xor eax, esp
mov dword [esp + 8], eax
mov eax, dword [esp + 0x10]
push ebx
push esi
push edi
mov edx, dword [eax]
mov edi, ecx
lea ecx, [esp + 0x10]
mov dword [esp + 0x10], 0
push ecx
push eax
mov esi, dword [edx + 0x48]
mov ecx, esi
mov dword [esp + 0x14], 0
call dword [0x540780]
call esi
mov ebx, eax
test ebx, ebx
js 0x4ca7b5
mov eax, dword [esp + 0x10]
test eax, eax
je 0x4ca7ad
mov esi, dword [eax]
lea ecx, [esp + 0xc]
push ecx
push 0x5560a0
push eax
mov esi, dword [esi]
mov ecx, esi
call dword [0x540780]
call esi
mov ebx, eax
test ebx, ebx
js 0x4ca795
mov eax, dword [esp + 0xc]
push eax
mov ecx, dword [eax]
mov esi, dword [ecx + 0x20]
mov ecx, esi
call dword [0x540780]
call esi
mov ebx, eax
test ebx, ebx
js 0x4ca781
mov eax, dword [esp + 0xc]
push dword [esp + 0x20]
push eax
mov ecx, dword [eax]
mov esi, dword [ecx + 0x14]
mov ecx, esi
call dword [0x540780]
call esi
mov ebx, eax
mov eax, dword [esp + 0xc]
push eax
mov ecx, dword [eax]
mov esi, dword [ecx + 8]
mov ecx, esi
call dword [0x540780]
call esi
mov eax, dword [esp + 0x10]
push eax
mov ecx, dword [eax]
mov esi, dword [ecx + 8]
mov ecx, esi
call dword [0x540780]
call esi
mov eax, dword [esp + 0x10]
test ebx, ebx
js 0x4ca7b5
test eax, eax
jne 0x4ca80c
cmp dword [edi + 8], 0
je 0x4ca80c
cmp dword [edi + 0x20], 0
jne 0x4ca80c
mov eax, dword [edi + 0x1c]
test eax, eax
je 0x4ca80c
push eax
mov ecx, edi
call fcn.004cb1c0
mov esi, eax
test esi, esi
je 0x4ca80c
push 0x204
push 0
push 0
push 0
push 0
push 1
push dword [edi + 4]
call dword [sym.imp.USER32.dll_SetWindowPos]
push 5
push dword [edi + 8]
call dword [sym.imp.USER32.dll_ShowWindow]
push esi
push dword [edi + 8]
call dword [sym.imp.USER32.dll_SetWindowTextW]
push esi
call fcn.00524aa2
add esp, 4
mov ecx, dword [esp + 0x14]
not ebx
shr ebx, 0x1f
pop edi
pop esi
mov al, bl
pop ebx
xor ecx, esp
call fcn.00507712
add esp, 0xc
ret 8
Function at 0x4cb510
Capabilities:
Hide graphical window

Disassembly:
sub esp, 0x18
mov eax, dword [0x5755c4]
xor eax, esp
mov dword [esp + 0x14], eax
mov eax, dword [esp + 0x28]
push ebx
push ebp
mov ebp, dword [esp + 0x28]
mov ebx, ecx
push esi
mov esi, dword [esp + 0x28]
push edi
mov edi, dword [esp + 0x34]
mov dword [esp + 0x10], eax
mov al, byte [esp + 0x3c]
push 0
push ebp
mov dword [ebx + 8], ebp
mov byte [ebx + 0x26], al
call dword [sym.imp.USER32.dll_ShowWindow]
push esi
mov ecx, ebx
call fcn.004cb050
mov eax, dword [ebx + 0x1c]
test eax, eax
je 0x4cb563
push eax
call fcn.00524aa2
add esp, 4
test edi, edi
jne 0x4cb56b
xor eax, eax
jmp 0x4cb574
push edi
call fcn.0052551d
add esp, 4
mov dword [ebx + 0x1c], eax
mov eax, dword [esp + 0x10]
test eax, eax
je 0x4cb588
push eax
call fcn.0052551d
add esp, 4
mov dword [ebx + 0x20], eax
lea eax, [esp + 0x14]
push eax
push ebp
call dword [sym.imp.USER32.dll_GetWindowRect]
push 2
lea eax, [esp + 0x18]
push eax
push ebp
call dword [sym.imp.USER32.dll_GetParent]
push eax
push 0
call dword [sym.imp.USER32.dll_MapWindowPoints]
mov eax, dword [ebx + 4]
test eax, eax
je 0x4cb5bc
push eax
call dword [sym.imp.USER32.dll_DestroyWindow]
mov esi, dword [esp + 0x1c]
mov edi, dword [esp + 0x14]
sub esi, edi
push ebx
push dword [ebx]
push 0
push ebp
call dword [sym.imp.USER32.dll_GetParent]
mov ecx, dword [esp + 0x24]
push eax
mov eax, dword [esp + 0x30]
sub eax, ecx
push eax
push esi
push ecx
push edi
push 0x40000000
push 0
push 0x552b00
push 0
call dword [sym.imp.USER32.dll_CreateWindowExW]
cmp dword [ebx + 0x10], 0
mov dword [ebx + 4], eax
jne 0x4cb64c
test ebp, ebp
je 0x4cb662
cmp dword [ebx + 0x20], 0
jne 0x4cb662
mov eax, dword [ebx + 0x1c]
test eax, eax
je 0x4cb662
push eax
mov ecx, ebx
call fcn.004cb1c0
mov esi, eax
test esi, esi
je 0x4cb662
push 5
push ebp
call dword [sym.imp.USER32.dll_ShowWindow]
push esi
push ebp
call dword [sym.imp.USER32.dll_SetWindowTextW]
push esi
call fcn.00524aa2
add esp, 4
pop edi
pop esi
pop ebp
pop ebx
mov ecx, dword [esp + 0x14]
xor ecx, esp
call fcn.00507712
add esp, 0x18
ret 0x14
test eax, eax
je 0x4cb662
push 5
push eax
call dword [sym.imp.USER32.dll_ShowWindow]
push dword [ebx + 4]
call dword [sym.imp.USER32.dll_UpdateWindow]
mov ecx, dword [esp + 0x24]
pop edi
pop esi
pop ebp
pop ebx
xor ecx, esp
call fcn.00507712
add esp, 0x18
ret 0x14
Function at 0x4cb8c0
Capabilities:
Create process on windows

Disassembly:
mov eax, 0x2004
call fcn.00507730
mov eax, dword [0x5755c4]
xor eax, esp
mov dword [esp + 0x2000], eax
push ebx
push esi
mov esi, dword [esp + 0x2010]
mov ebx, 0x400c
push edi
mov edi, ecx
cmp dword [esi + 8], 6
jb 0x4cb92b
mov eax, dword [esi]
cmp word [eax + 0x50], bx
jne 0x4cb92b
mov eax, dword [eax + 0x58]
mov ecx, dword [eax + 8]
movzx eax, word [ecx]
cmp eax, 0x5c
je 0x4cb91b
cmp eax, 0x2f
je 0x4cb91b
push 5
push str.file:
push ecx
call fcn.004a1380
test eax, eax
jne 0x4cb92b
mov eax, dword [esi]
or ecx, 0xffffffff
mov eax, dword [eax + 8]
mov word [eax], cx
jmp 0x4cbaa1
cmp dword [edi + 0x28], 0
je 0x4cbaa1
cmp byte [edi + 0x25], 0
je 0x4cbaa1
cmp dword [esi + 8], 6
jb 0x4cbaa1
mov eax, dword [esi]
cmp word [eax + 0x50], bx
jne 0x4cbaa1
mov eax, dword [eax + 8]
or ecx, 0xffffffff
mov word [eax], cx
cmp dword [edi + 0x28], 2
mov eax, dword [esi]
mov eax, dword [eax + 0x58]
mov esi, dword [eax + 8]
lea eax, [ecx + 6]
jne 0x4cb974
call fcn.004ca290
cmp eax, 4
ja case.0x4cb97d.3
jmp dword [eax*4 + 0x4cbabc]
push 1
push 0x541b9c
push esi
push str.iexplore.exe
jmp 0x4cba78
push esi
push str._new_window__s
lea eax, [esp + 0x14]
push 0x800
push eax
call fcn.00402930
add esp, 0x10
lea eax, [esp + 0xc]
push 1
push 0x541b9c
push eax
push str.firefox.exe
jmp 0x4cba78
push esi
push str.__new_window__s
lea eax, [esp + 0x14]
push 0x800
push eax
call fcn.00402930
add esp, 0x10
lea eax, [esp + 0xc]
push 1
push esi
push eax
push str.chrome.exe
jmp 0x4cba78
push 0x800
push 0x541b9c
lea eax, [esp + 0x14]
push eax
push 0x541b9c
push str.http_shellopencommand
push SysReAllocString
call fcn.004af180
cmp word [esp + 0xc], 0x22
jne case.0x4cb97d.3
lea eax, [esp + 0xe]
push 0x22
push eax
call fcn.0051f04b
mov edi, eax
add esp, 8
test edi, edi
je case.0x4cb97d.3
push 9
push str.opera.exe
lea eax, [esp + 0x14]
push eax
call fcn.00486220
push eax
call fcn.004a1380
test eax, eax
jne case.0x4cb97d.3
push esi
push str._newwindow__s
mov word [edi + 2], ax
lea eax, [esp + 0x1014]
push 0x800
push eax
call fcn.00402930
add esp, 0x10
lea eax, [esp + 0x100c]
push 1
push esi
push eax
lea eax, [esp + 0x18]
push eax
push str.open
push 0
call dword [sym.imp.SHELL32.dll_ShellExecuteW]
cmp eax, 0x20
ja 0x4cbaa1
push 1
push 0x541b9c
push 0
push esi
push str.open
push 0
call dword [sym.imp.SHELL32.dll_ShellExecuteW]
mov ecx, dword [esp + 0x200c]
pop edi
pop esi
pop ebx
xor ecx, esp
call fcn.00507712
add esp, 0x2004
ret 4
Function at 0x4cc7b0
Capabilities:
Get disk information
Query environment variable

Disassembly:
mov eax, 0x4408
call fcn.00507730
mov eax, dword [0x5755c4]
xor eax, esp
mov dword [esp + 0x4404], eax
mov eax, dword [esp + 0x4410]
lea ecx, [esp + 0x1004]
push esi
mov esi, dword [esp + 0x4410]
push 0x800
push ecx
push eax
call dword [sym.imp.KERNEL32.dll_ExpandEnvironmentStringsW]
test eax, eax
je 0x4cc9bf
cmp eax, 0x800
jae 0x4cc9bf
push 0x800
lea eax, [esp + 0x100c]
mov ecx, 0x5a9378
push eax
push eax
call fcn.00448100
lea eax, [esp + 0x1008]
push eax
call fcn.00486220
push 0x3a
push eax
call fcn.0051f04b
add esp, 8
test eax, eax
je 0x4cc864
cmp byte [0x5d9706], 0
jne 0x4cc864
push 0x31
push 0x65
call fcn.00497960
push eax
push 0x528
call fcn.00497960
push eax
push esi
call fcn.004d8380
cmp eax, 1
jne 0x4cc9a5
mov byte [0x5d9706], al
push 0x800
lea eax, [esp + 0x100c]
push eax
lea eax, [esp + 0x10]
push eax
call fcn.0049dc20
lea eax, [esp + 8]
push eax
call fcn.00486280
lea eax, [esp + 8]
push eax
call fcn.00486220
cmp word [eax], 0
je 0x4cc91e
lea eax, [esp + 8]
push eax
call fcn.004750c0
test al, al
jne 0x4cc91e
push 0
lea eax, [esp + 0xc]
push eax
call fcn.00412530
test al, al
jne 0x4cc91e
push 0x14e
call fcn.00497960
push eax
lea eax, [esp + 0xc]
push eax
push str.__s__n_s
lea eax, [esp + 0x3014]
push 0xa00
push eax
call fcn.00402930
add esp, 0x14
push 0x34
push 0x65
call fcn.00497960
push eax
lea eax, [esp + 0x3010]
push eax
push esi
call fcn.004d8380
cmp eax, 6
jne 0x4cc9a5
push 0
push 0
lea eax, [esp + 0x10]
push eax
call fcn.00474b20
lea eax, [esp + 8]
push eax
call fcn.004750c0
test al, al
je 0x4cc8a7
push 0x800
lea eax, [esp + 0x200c]
push eax
lea eax, [esp + 0x1010]
push eax
call fcn.00485630
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 0x4cc9bf
test dword [esp + 4], 0x80000
je 0x4cc9bf
lea eax, [esp + 0x2008]
push eax
push 0x65e
call fcn.00497960
push eax
lea eax, [esp + 0x3010]
push 0xa00
push eax
call fcn.00402930
add esp, 0x10
push 0x30
push 0x65
call fcn.00497960
push eax
lea eax, [esp + 0x3010]
push eax
push esi
call fcn.004d8380
xor al, al
pop esi
mov ecx, dword [esp + 0x4404]
xor ecx, esp
call fcn.00507712
add esp, 0x4408
ret 8
mov ecx, dword [esp + 0x4408]
mov al, 1
pop esi
xor ecx, esp
call fcn.00507712
add esp, 0x4408
ret 8
Function at 0x4cf170
Capabilities:
Resolve function by parsing pe exports

Disassembly:
sub esp, 0x1a4
mov eax, dword [0x5755c4]
xor eax, esp
mov dword [esp + 0x1a0], eax
mov ecx, dword [esp + 0x1a8]
push ebx
mov bh, byte [esp + 0x1b0]
mov bl, byte [esp + 0x1b4]
movzx eax, bh
mov dword [esp + 0x54], eax
mov eax, dword [0x5b76d8]
mov dword [esp + 0xc], ecx
mov ecx, 0x5ab4d8
push 1
mov dword [0x5d96f4], 0
mov dword [0x5d96f8], 0
mov byte [0x5d96ed], bl
mov dword [esp + 0x48], str.GETARC
mov dword [esp + 0x54], 0x4cf3f0
mov dword [esp + 0x7c], str.GETARCADV
mov dword [esp + 0x88], 0x4ce120
mov dword [esp + 0xb0], str.GETARCOPT
mov dword [esp + 0xbc], 0x4d0c30
mov dword [esp + 0xe4], str.GETARCFILES
mov dword [esp + 0xf0], 0x4d05f0
mov dword [esp + 0x118], str.GETARCBACKUP
mov dword [esp + 0x124], 0x4ce9c0
mov dword [esp + 0x14c], str.GETARCTIME
mov dword [esp + 0x158], 0x4d0fb0
mov dword [esp + 0x180], str.GETARCCMT
mov dword [esp + 0x18c], 0x4cec80
mov dword [esp + 8], 0x34
mov dword [esp + 0xc], 0x28a
mov dword [esp + 0x14], eax
call fcn.004b8ea0
mov dword [esp + 0x14], eax
test bl, bl
je 0x4cf284
push 0x3f1
jmp 0x4cf29a
movzx eax, byte [0x590ac0]
neg eax
sbb eax, eax
and eax, 0xfffffd08
add eax, 0x3de
push eax
call fcn.00497960
mov dword [esp + 0x18], eax
mov ecx, 0x5b7768
lea eax, [esp + 0x38]
mov dword [esp + 0x1c], 7
mov dword [esp + 0x24], eax
mov eax, dword [0x5b76d8]
mov dword [esp + 0x40], eax
mov dword [esp + 0x74], eax
mov dword [esp + 0xa8], eax
mov dword [esp + 0xdc], eax
mov dword [esp + 0x110], eax
mov dword [esp + 0x144], eax
mov dword [esp + 0x178], eax
lea eax, [esp + 0x38]
push 7
push eax
lea eax, [esp + 0xc]
mov dword [esp + 0x28], 0
push eax
mov dword [esp + 0x44], 0x34
mov dword [esp + 0x48], 0x20
mov dword [esp + 0x78], 0x34
mov dword [esp + 0x7c], 0x20
mov dword [esp + 0xac], 0x34
mov dword [esp + 0xb0], 0x20
mov dword [esp + 0xe0], 0x34
mov dword [esp + 0xe4], 0x20
mov dword [esp + 0x114], 0x34
mov dword [esp + 0x118], 0x20
mov dword [esp + 0x148], 0x34
mov dword [esp + 0x14c], 0x20
mov dword [esp + 0x17c], 0x34
mov dword [esp + 0x180], 0x20
call fcn.00496e90
test bh, bh
jne 0x4cf3bc
lea eax, [esp + 4]
push eax
call dword [sym.imp.COMCTL32.dll_PropertySheetW]
test eax, eax
jle 0x4cf3b8
cmp word [0x598eea], 0
jne 0x4cf3bc
cmp byte [0x597ebc], bh
jne 0x4cf3bc
test bl, bl
jne 0x4cf3bc
xor bl, bl
jmp 0x4cf3be
mov bl, 1
push 7
lea eax, [esp + 0x3c]
mov ecx, 0x5b7768
push eax
call fcn.00496e40
mov ecx, dword [esp + 0x1a4]
mov al, bl
pop ebx
xor ecx, esp
mov byte [0x5a8f74], 0
call fcn.00507712
add esp, 0x1a4
ret 0xc
Function at 0x4d60d0
Capabilities:
Write file on windows

Disassembly:
push edi
mov edi, dword [esp + 8]
test edi, edi
je 0x4d6146
push ebx
push 0x800
push 0x58e9ae
push str.Rar_CM
call fcn.004d6eb0
mov ebx, eax
test ebx, ebx
je 0x4d6145
push esi
mov esi, edi
lea ecx, [esi + 2]
lea ebx, [ebx]
mov ax, word [esi]
add esi, 2
test ax, ax
jne 0x4d6100
sub esi, ecx
mov ecx, edi
sar esi, 1
lea edx, [ecx + 2]
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x4d6114
sub ecx, edx
push ebx
sar ecx, 1
push ecx
push 2
push edi
call fcn.00525e32
push ebx
call fcn.00525a4d
add esp, 0x14
test esi, esi
pop esi
je 0x4d6145
mov dword [0x58f9b0], 3
pop ebx
pop edi
ret 4

Function at 0x4d6b80
Capabilities:
Check if file exists
Get common file path
Get file attributes
Query environment variable

Disassembly:
mov eax, 0x1004
call fcn.00507730
mov eax, dword [0x5755c4]
xor eax, esp
mov dword [esp + 0x1000], eax
cmp word [0x57f480], 0
push esi
mov esi, dword [esp + 0x100c]
push edi
mov edi, dword [esp + 0x1014]
push edi
je 0x4d6bbd
push 0x57f480
jmp 0x4d6c44
push 0x541b9c
push esi
push str.TempFolder
push 0x541e90
call fcn.004af2c0
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]
movzx ecx, word [esi]
test cx, cx
je 0x4d6c11
test eax, eax
je 0x4d6c09
cmp eax, 0x800
jae 0x4d6c09
push edi
lea eax, [esp + 0xc]
push eax
push esi
call fcn.0049dc20
movzx ecx, word [esi]
test cx, cx
jne 0x4d6c20
cmp byte [esp + 0x1018], 0
je 0x4d6c2c
test cx, cx
je 0x4d6c4a
push esi
call dword [sym.imp.KERNEL32.dll_GetFileAttributesW]
cmp eax, 0xffffffff
jne 0x4d6c4a
push esi
push edi
call dword [sym.imp.KERNEL32.dll_GetTempPathW]
test eax, eax
je 0x4d6c3e
cmp word [esi], 0
jne 0x4d6c4a
push edi
push str._rartemp
push esi
call fcn.0049dc20
push edi
push esi
call fcn.00484610
mov ecx, dword [esp + 0x1008]
pop edi
pop esi
xor ecx, esp
call fcn.00507712
add esp, 0x1004
ret 0xc
Function at 0x4d6f80
Capabilities:
Create directory

Disassembly:
mov eax, 0x2004
call fcn.00507730
mov eax, dword [0x5755c4]
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.0049dc20
cmp byte [esp + 0x2018], 0
je 0x4d7025
cmp byte [0x5a69ac], 0
jne 0x4d6fda
cmp byte [0x5a68fb], 0
jne 0x4d6fda
xor edx, edx
jmp 0x4d6fdf
mov edx, 1
lea ecx, [esp + 0x1004]
push edi
lea edi, [ecx + 2]
lea ebx, [ebx]
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x4d6ff0
xor eax, eax
sub ecx, edi
sar ecx, 1
test dl, dl
setne al
add eax, 0x61
push eax
push 0x553dcc
lea eax, [esp + 0x1010]
lea eax, [eax + ecx*2]
push 2
push eax
call fcn.00402930
add esp, 0x10
pop edi
push 0
push 0x800
lea eax, [esp + 0xc]
push eax
call fcn.004d6b80
push 0x800
lea eax, [esp + 8]
push eax
call fcn.00484610
push 0x800
lea eax, [esp + 0x1008]
push eax
lea eax, [esp + 0xc]
push eax
call fcn.0049dbe0
push 0x800
lea eax, [esp + 8]
push eax
call fcn.00475740
test eax, eax
je 0x4d70ac
push 0
lea eax, [esp + 8]
push eax
call dword [sym.imp.KERNEL32.dll_CreateDirectoryW]
test eax, eax
je 0x4d70ac
push dword [esp + 0x2014]
lea eax, [esp + 8]
push eax
push esi
call fcn.0049dc20
mov al, 1
pop esi
mov ecx, dword [esp + 0x2000]
xor ecx, esp
call fcn.00507712
add esp, 0x2004
ret 0x10
lea eax, [esp + 4]
push eax
push 0x1f7
call fcn.00497960
push eax
call fcn.004dcc30
add esp, 8
mov ecx, 0x5b77e4
call fcn.0046e910
mov ecx, dword [esp + 0x2004]
xor al, al
pop esi
xor ecx, esp
call fcn.00507712
add esp, 0x2004
ret 0x10
Function at 0x4d70f0
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 0x4d7a50
Capabilities:
Create shortcut via ishelllink

Disassembly:
sub esp, 0xc
mov eax, dword [0x5755c4]
xor eax, esp
mov dword [esp + 8], eax
push ebx
lea eax, [esp + 4]
xor bl, bl
push eax
push 0x555f40
push 1
push 0
push 0x556040
call dword [sym.imp.ole32.dll_CoCreateInstance]
test eax, eax
js 0x4d7ba6
mov eax, dword [esp + 4]
lea ecx, [esp + 8]
push esi
push ecx
push 0x555f90
mov esi, dword [eax]
push eax
mov esi, dword [esi]
mov ecx, esi
call dword [0x540780]
call esi
test eax, eax
js 0x4d7b91
cmp byte [esp + 0x18], bl
je 0x4d7ac8
mov eax, dword [esp + 0xc]
push 2
push dword [esp + 0x24]
mov ecx, dword [eax]
push eax
mov esi, dword [ecx + 0x14]
mov ecx, esi
call dword [0x540780]
call esi
mov eax, dword [esp + 8]
push dword [esp + 0x1c]
push eax
mov ecx, dword [eax]
mov esi, dword [ecx + 0x50]
mov ecx, esi
call dword [0x540780]
call esi
mov edx, dword [esp + 0x28]
test edx, edx
je 0x4d7afd
mov eax, dword [esp + 8]
push edx
push eax
mov ecx, dword [eax]
mov esi, dword [ecx + 0x1c]
mov ecx, esi
call dword [0x540780]
call esi
mov eax, dword [esp + 8]
mov edx, dword [esp + 0x2c]
push 0
mov ecx, dword [eax]
mov esi, dword [ecx + 0x44]
mov ecx, esi
test edx, edx
jne 0x4d7b19
push 0x541b9c
jmp 0x4d7b1a
push edx
push eax
call dword [0x540780]
call esi
mov edx, dword [esp + 0x30]
test edx, edx
je 0x4d7b40
mov eax, dword [esp + 8]
push edx
push eax
mov ecx, dword [eax]
mov esi, dword [ecx + 0x2c]
mov ecx, esi
call dword [0x540780]
call esi
mov edx, dword [esp + 0x24]
test edx, edx
je 0x4d7b5d
mov eax, dword [esp + 8]
push edx
push eax
mov ecx, dword [eax]
mov esi, dword [ecx + 0x24]
mov ecx, esi
call dword [0x540780]
call esi
mov eax, dword [esp + 0xc]
push 1
push dword [esp + 0x24]
mov ecx, dword [eax]
push eax
mov esi, dword [ecx + 0x18]
mov ecx, esi
call dword [0x540780]
call esi
test eax, eax
js 0x4d7b7d
mov bl, 1
mov eax, dword [esp + 0xc]
push eax
mov ecx, dword [eax]
mov esi, dword [ecx + 8]
mov ecx, esi
call dword [0x540780]
call esi
mov ecx, dword [esp + 8]
push ecx
mov edx, dword [ecx]
mov esi, dword [edx + 8]
mov ecx, esi
call dword [0x540780]
call esi
pop esi
mov ecx, dword [esp + 0xc]
mov al, bl
pop ebx
xor ecx, esp
call fcn.00507712
add esp, 0xc
ret 0x1c

Function at 0x4d7f20
Capabilities:
Get common file path

Disassembly:
push dword [esp + 4]
push dword [esp + 0xc]
call dword [sym.imp.KERNEL32.dll_GetCurrentDirectoryW]
neg eax
sbb eax, eax
neg eax
ret 8
Function at 0x4d7f40
Capabilities:
Query environment variable

Disassembly:
mov eax, 0x1018
call fcn.00507730
mov eax, dword [0x5755c4]
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.00485b10
test al, al
je 0x4d7fdf
movzx eax, word [esi]
push eax
push 0x553ef4
lea eax, [esp + 0x10]
push 0xa
push eax
call fcn.00402930
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 0x4d7fc6
cmp eax, 0x800
jae 0x4d7fc6
cmp word [esp + 0x1c], 0x25
je 0x4d7fc6
push dword [esp + 0x102c]
lea eax, [esp + 0x20]
push eax
push edi
call fcn.0049dc20
jmp 0x4d7fdf
movzx eax, word [esi]
push eax
push str._c:_
push dword [esp + 0x1034]
push edi
call fcn.00402930
add esp, 0x10
mov ecx, dword [esp + 0x101c]
pop edi
pop esi
xor ecx, esp
call fcn.00507712
add esp, 0x1018
ret 0xc

Function at 0x4d8140
Capabilities:
Extract resource via kernel32 functions

Disassembly:
sub esp, 0x10
mov eax, dword [0x5755c4]
xor eax, esp
mov dword [esp + 0xc], eax
push esi
push 0x5517fc
push dword [esp + 0x1c]
push dword [0x5b76d8]
call dword [sym.imp.KERNEL32.dll_FindResourceW]
mov esi, eax
test esi, esi
jne 0x4d817c
pop esi
mov ecx, dword [esp + 0xc]
xor ecx, esp
call fcn.00507712
add esp, 0x10
ret 4
push ebx
push esi
push dword [0x5b76d8]
call dword [sym.imp.KERNEL32.dll_SizeofResource]
mov ebx, eax
test ebx, ebx
je 0x4d81ae
push esi
push dword [0x5b76d8]
call dword [sym.imp.KERNEL32.dll_LoadResource]
test eax, eax
je 0x4d81ae
push eax
call dword [sym.imp.KERNEL32.dll_LockResource]
mov esi, eax
test esi, esi
jne 0x4d81c3
pop ebx
xor eax, eax
pop esi
mov ecx, dword [esp + 0xc]
xor ecx, esp
call fcn.00507712
add esp, 0x10
ret 4
push edi
push ebx
push 2
mov dword [esp + 0x18], 0
call dword [sym.imp.KERNEL32.dll_GlobalAlloc]
mov edi, eax
test edi, edi
je 0x4d827e
push edi
call dword [sym.imp.KERNEL32.dll_GlobalLock]
test eax, eax
je 0x4d8277
push ebx
push esi
push eax
call fcn.0051ff80
add esp, 0xc
mov dword [esp + 0xc], 0
lea eax, [esp + 0xc]
push eax
push 0
push edi
call dword [sym.imp.ole32.dll_CreateStreamOnHGlobal]
test eax, eax
jne 0x4d8270
push eax
push dword [esp + 0x10]
call fcn.004d7e70
mov ecx, dword [esp + 0xc]
mov ebx, eax
push ecx
mov edx, dword [ecx]
mov esi, dword [edx + 8]
mov ecx, esi
call dword [0x540780]
call esi
test ebx, ebx
je 0x4d8270
mov eax, dword [ebx + 8]
mov dword [ebx + 8], 0
test eax, eax
jne 0x4d825e
lea eax, [esp + 0x10]
mov dword [esp + 0x14], 0xffffff
push eax
lea eax, [esp + 0x18]
mov ecx, ebx
push eax
call fcn.004d8000
mov eax, dword [ebx]
push 1
mov esi, dword [eax]
mov ecx, esi
call dword [0x540780]
mov ecx, ebx
call esi
push edi
call dword [sym.imp.KERNEL32.dll_GlobalUnlock]
push edi
call dword [sym.imp.KERNEL32.dll_GlobalFree]
mov ecx, dword [esp + 0x18]
mov eax, dword [esp + 0x10]
pop edi
pop ebx
pop esi
xor ecx, esp
call fcn.00507712
add esp, 0x10
ret 4
Function at 0x4d8880
Capabilities:
Set environment variable

Disassembly:
sub esp, 0x18
mov eax, dword [0x5755c4]
xor eax, esp
mov dword [esp + 0x14], eax
push esi
mov esi, dword [esp + 0x20]
push esi
call fcn.00485b10
test al, al
je 0x4d88c1
movzx eax, word [esi]
push eax
push 0x553f08
lea eax, [esp + 0xc]
push 0xa
push eax
call fcn.00402930
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.00507712
add esp, 0x18
ret 4

Function at 0x4d88e0
Capabilities:
Set current directory

Disassembly:
push ebx
push dword [esp + 8]
call dword [sym.imp.KERNEL32.dll_SetCurrentDirectoryW]
test eax, eax
setne bl
test bl, bl
jne 0x4d8915
push dword [esp + 8]
push 0x627
call fcn.00497960
push eax
call fcn.004dcc30
add esp, 8
mov ecx, 0x5b77e4
call fcn.0046e910
mov al, bl
pop ebx
ret 4