joyce8/EMBER2024-capa huggingface dataset:
Function at 0x508530
Capabilities:
Get common file path

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x534972
mov eax, dword fs:[0]
push eax
sub esp, 0x41c
mov eax, dword [0x575494]
xor eax, ebp
mov dword [ebp - 0x10], eax
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
xor edi, edi
mov dword [ebp - 0x424], edi
mov dword [ebp - 0x428], esi
mov dword [esi], edi
mov dword [esi + 4], edi
mov dword [esi + 8], edi
lea eax, [ebp - 0x420]
push eax
push edi
push edi
push ecx
mov dword [ebp - 4], edi
push edi
mov dword [ebp - 0x424], 1
call dword [sym.imp.SHELL32.dll_SHGetFolderPathW]
cmp eax, edi
jl 0x5085a4
lea edx, [ebp - 0x420]
push edx
mov eax, esi
call fcn.005080c0
jmp 0x5085cd
cmp eax, 0x80070057
jne 0x5085b3
mov dword [ebx], 0x57
jmp 0x5085cd
cmp eax, 1
je 0x5085c7
cmp eax, 0x80004005
je 0x5085c7
mov dword [ebx], 0x54f
jmp 0x5085cd
mov dword [ebx], 3
mov eax, esi
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.0051eacc
mov esp, ebp
pop ebp
ret
Function at 0x50eb20
Capabilities:
Hide graphical window

Disassembly:
push ebp
mov ebp, esp
mov eax, dword [ebp + 8]
push edi
cmp eax, 0x1811
jne 0x50eb79
mov eax, dword [esi + 0xec]
mov edi, dword [sym.imp.USER32.dll_ShowWindow]
test eax, eax
je 0x50eb45
push 0
push eax
call edi
jmp 0x50eb59
mov eax, dword [esi + 0xe8]
mov ecx, dword [eax + 4]
mov dword [esi + ecx + 0xe8], 6
mov eax, dword [esi + 0x398]
test eax, eax
jne 0x50ebb5
mov edx, dword [esi + 0x394]
mov eax, dword [edx + 4]
mov dword [esi + eax + 0x394], 6
jmp 0x50ebd0
cmp eax, 0x1812
jne 0x50ebd0
mov eax, dword [esi + 0x398]
mov edi, dword [sym.imp.USER32.dll_ShowWindow]
test eax, eax
je 0x50eb97
push 0
push eax
call edi
jmp 0x50ebab
mov ecx, dword [esi + 0x394]
mov edx, dword [ecx + 4]
mov dword [esi + edx + 0x394], 6
mov eax, dword [esi + 0xec]
test eax, eax
je 0x50ebbc
push 5
push eax
call edi
jmp 0x50ebd0
mov eax, dword [esi + 0xe8]
mov ecx, dword [eax + 4]
mov dword [esi + ecx + 0xe8], 6
movzx eax, word [ebp + 0x10]
movzx ecx, word [ebp + 8]
mov edx, dword [ebp + 0xc]
push edx
mov edx, dword [esi + 0xc]
shl eax, 0x10
or eax, ecx
push eax
push 0x111
push edx
call dword [sym.imp.USER32.dll_SendMessageW]
pop edi
pop ebp
ret 0xc
Function at 0x514db0
Capabilities:
Get file attributes

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x414
mov eax, dword [0x575494]
xor eax, ebp
mov dword [ebp - 4], eax
push esi
lea eax, [ebp - 0x414]
mov esi, ebx
mov ecx, eax
mov edx, 0x104
sub esi, ecx
lea ecx, [edx + 0x7ffffefa]
test ecx, ecx
je 0x514df3
movzx ecx, word [esi + eax]
test cx, cx
je 0x514df3
mov word [eax], cx
add eax, 2
dec edx
jne 0x514dd5
jmp 0x514df7
test edx, edx
jne 0x514dfa
sub eax, 2
xor edx, edx
mov word [eax], dx
pop esi
cmp word [ebp - 0x414], dx
je 0x514e60
push edi
lea edi, [ebp - 0x414]
call fcn.00515070
mov eax, edi
push 0
push eax
call fcn.00520cf3
add esp, 8
pop edi
mov ecx, ebx
test eax, eax
jne 0x514e73
call fcn.005150f0
test eax, eax
jne 0x514e60
lea ecx, [ebp - 0x414]
push ecx
call dword [sym.imp.KERNEL32.dll_GetFileAttributesW]
test al, 0x10
je 0x514e60
push ebx
call fcn.00515270
test al, al
jne 0x514e8d
mov eax, 4
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.0051eacc
mov esp, ebp
pop ebp
ret
mov eax, 2
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.0051eacc
mov esp, ebp
pop ebp
ret
call fcn.005150f0
neg eax
sbb eax, eax
add eax, 3
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.0051eacc
mov esp, ebp
pop ebp
ret
mov ecx, dword [ebp - 4]
xor ecx, ebp
xor eax, eax
call fcn.0051eacc
mov esp, ebp
pop ebp
ret
Function at 0x514ea0
Capabilities:
Get common file path

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x539e1d
mov eax, dword fs:[0]
push eax
sub esp, 0x224
mov eax, dword [0x575494]
xor eax, ebp
mov dword [ebp - 0x10], eax
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
xor eax, eax
mov dword [ebp - 4], eax
mov dword [ebp - 0x220], eax
mov edi, ecx
push 0x54ee24
mov esi, ebx
mov dword [ebp - 0x224], ebx
mov dword [ebp - 0x21c], edi
mov dword [ebx], eax
mov dword [ebx + 4], eax
mov dword [ebx + 8], eax
call fcn.00507d60
mov dword [ebp - 4], 0
mov dword [ebp - 0x220], 1
test edi, edi
je 0x514ffb
mov ecx, dword [edi + 0x410]
xor eax, eax
push eax
push ecx
lea edx, [ebp - 0x218]
push edx
push eax
mov word [ebp - 0x218], ax
call dword [sym.imp.SHELL32.dll_SHGetSpecialFolderPathW]
cmp word [ebp - 0x218], 0
je 0x514f55
push 0x54ede0
lea eax, [ebp - 0x218]
push 0x104
push eax
call fcn.0052003e
add esp, 0xc
lea ecx, [ebp - 0x218]
push ecx
mov eax, ebx
call fcn.005080c0
lea esi, [edi + 0x208]
test esi, esi
je 0x514f76
push esi
call dword [sym.imp.KERNEL32.dll_lstrlenW]
jmp 0x514f78
xor eax, eax
push esi
mov edi, ebx
call fcn.00507dd0
push 0x54ede0
call dword [sym.imp.KERNEL32.dll_lstrlenW]
push 0x54ede0
call fcn.00507dd0
mov esi, dword [ebp - 0x21c]
lea edi, [ebp - 0x230]
call fcn.005153d0
mov dword [ebp - 4], 1
mov edx, dword [eax]
mov eax, dword [eax + 4]
push edx
mov edi, ebx
call fcn.00507dd0
mov byte [ebp - 4], 0
mov eax, dword [ebp - 0x230]
test eax, eax
je 0x514fd1
push eax
call fcn.0051eadb
add esp, 4
mov esi, dword [sym.imp.KERNEL32.dll_lstrlenW]
push str..eeee
call esi
push str..eeee
mov edi, ebx
call fcn.00507dd0
push 0x55e118
call esi
push 0x55e118
call fcn.00507dd0
mov eax, ebx
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.0051eacc
mov esp, ebp
pop ebp
ret
Function at 0x515270
Capabilities:
Delete file
Get common file path
Read file on windows
Write file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x498
mov eax, dword [0x575494]
xor eax, ebp
mov dword [ebp - 4], eax
mov eax, dword [ebp + 8]
push ebx
lea edx, [ebp - 0x494]
push edx
xor ebx, ebx
push ebx
push 0x55e124
xor ecx, ecx
push eax
mov dword [ebp - 0x498], ebx
mov word [ebp - 0x494], cx
call dword [sym.imp.KERNEL32.dll_GetTempFileNameW]
test eax, eax
je 0x5153bc
push esi
push 0x55e12c
lea eax, [ebp - 0x494]
push eax
lea ecx, [ebp - 0x498]
push ecx
call fcn.005209da
mov esi, dword [ebp - 0x498]
add esp, 0xc
cmp esi, ebx
je 0x5153a8
mov ecx, dword [0x55e13c]
mov edx, dword [str.DummyData]
mov eax, dword [0x55e138]
push 0x2c
mov dword [ebp - 0x3c], ecx
mov dword [ebp - 0x44], edx
mov edx, dword [0x55e140]
mov dword [ebp - 0x40], eax
mov eax, dword [0x55e144]
lea ecx, [ebp - 0x30]
push ebx
push ecx
mov dword [ebp - 0x38], edx
mov dword [ebp - 0x34], eax
call fcn.00522610
push esi
push 1
lea edx, [ebp - 0x44]
push 0x40
push edx
call fcn.005206eb
mov eax, dword [ebp - 0x498]
push eax
call fcn.005207d2
push 0x55e148
lea ecx, [ebp - 0x494]
push ecx
lea edx, [ebp - 0x498]
push edx
call fcn.005209da
mov eax, dword [ebp - 0x498]
add esp, 0x2c
cmp eax, ebx
je 0x51539b
push eax
push 1
lea edx, [ebp - 0x84]
xor ecx, ecx
push 0x40
push edx
mov word [ebp - 0x84], cx
call fcn.00520cd6
add esp, 0x10
test eax, eax
je 0x51538c
lea eax, [ebp - 0x84]
push eax
lea ecx, [ebp - 0x44]
push ecx
call dword [sym.imp.KERNEL32.dll_lstrcmpW]
test eax, eax
jne 0x51538c
mov bl, 1
mov edx, dword [ebp - 0x498]
push edx
call fcn.005207d2
add esp, 4
lea eax, [ebp - 0x494]
push eax
call dword [sym.imp.KERNEL32.dll_DeleteFileW]
pop esi
mov al, bl
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.0051eacc
mov esp, ebp
pop ebp
ret 4
mov ecx, dword [ebp - 4]
mov al, bl
xor ecx, ebp
pop ebx
call fcn.0051eacc
mov esp, ebp
pop ebp
ret 4

Function at 0x515630
Capabilities:
Get common file path

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x20c
mov eax, dword [0x575494]
xor eax, ebp
mov dword [ebp - 4], eax
push edi
xor edi, edi
test esi, esi
je 0x515703
mov ecx, dword [esi + 0x208]
xor eax, eax
push eax
push ecx
lea edx, [ebp - 0x20c]
push edx
push eax
mov word [ebp - 0x20c], ax
call dword [sym.imp.SHELL32.dll_SHGetSpecialFolderPathW]
cmp word [ebp - 0x20c], di
je 0x51568f
push 0x54ede0
lea eax, [ebp - 0x20c]
push 0x104
push eax
call fcn.0052003e
add esp, 0xc
push ebx
push esi
lea ecx, [ebp - 0x20c]
push 0x104
push ecx
call fcn.0052003e
add esp, 0xc
lea ebx, [ebp - 0x20c]
call fcn.00514db0
pop ebx
test eax, eax
je 0x515708
cmp eax, 2
jne 0x5156ce
mov eax, 4
pop edi
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.0051eacc
mov esp, ebp
pop ebp
ret
cmp eax, 3
jne 0x5156e7
mov eax, 5
pop edi
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.0051eacc
mov esp, ebp
pop ebp
ret
sub eax, 4
neg eax
sbb eax, eax
and eax, 0xfffffffb
add eax, 6
pop edi
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.0051eacc
mov esp, ebp
pop ebp
ret
mov edi, 7
mov ecx, dword [ebp - 4]
mov eax, edi
xor ecx, ebp
pop edi
call fcn.0051eacc
mov esp, ebp
pop ebp
ret
Function at 0x515760
Capabilities:
Get common file path

Disassembly:
test edi, edi
je 0x5157ab
push esi
mov edx, edi
call fcn.004f73b0
xor esi, esi
test eax, eax
je 0x51577e
cmp word [eax], si
jne 0x515783
mov esi, 2
jmp 0x515783
mov esi, 7
cmp esi, 2
jne 0x515798
mov ecx, edi
call fcn.004f72e0
test eax, eax
je 0x5157b1
cmp dword [eax], 0
jmp 0x51579a
test esi, esi
jne 0x5157b1
mov ecx, edi
call fcn.004f7430
mov ecx, eax
pop esi
jmp fcn.005157c0
mov eax, 7
ret
mov eax, esi
pop esi
ret

Function at 0x5157c0
Capabilities:
Get common file path

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x20c
mov eax, dword [0x575494]
xor eax, ebp
mov dword [ebp - 4], eax
push esi
push edi
mov esi, ecx
xor edi, edi
test esi, esi
je 0x5158bb
call fcn.00514c20
test eax, eax
je 0x5157fd
lea eax, [edi + 3]
pop edi
pop esi
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.0051eacc
mov esp, ebp
pop ebp
ret
mov ecx, dword [esi + 0x410]
xor eax, eax
push eax
push ecx
lea edx, [ebp - 0x20c]
push edx
push eax
mov word [ebp - 0x20c], ax
call dword [sym.imp.SHELL32.dll_SHGetSpecialFolderPathW]
cmp word [ebp - 0x20c], di
je 0x51583e
push 0x54ede0
lea eax, [ebp - 0x20c]
push 0x104
push eax
call fcn.0052003e
add esp, 0xc
push ebx
add esi, 0x208
push esi
lea ecx, [ebp - 0x20c]
push 0x104
push ecx
call fcn.0052003e
add esp, 0xc
lea ebx, [ebp - 0x20c]
call fcn.00514db0
pop ebx
test eax, eax
je 0x5158c0
cmp eax, 2
jne 0x515884
pop edi
mov eax, 4
pop esi
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.0051eacc
mov esp, ebp
pop ebp
ret
cmp eax, 3
jne 0x51589e
pop edi
mov eax, 5
pop esi
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.0051eacc
mov esp, ebp
pop ebp
ret
sub eax, 4
neg eax
sbb eax, eax
and eax, 0xfffffffb
pop edi
add eax, 6
pop esi
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.0051eacc
mov esp, ebp
pop ebp
ret
mov edi, 7
mov ecx, dword [ebp - 4]
mov eax, edi
pop edi
xor ecx, ebp
pop esi
call fcn.0051eacc
mov esp, ebp
pop ebp
ret

Function at 0x515f60
Capabilities:
Hide graphical window

Disassembly:
mov eax, dword [esi + 0x40]
push edi
mov edi, dword [sym.imp.USER32.dll_ShowWindow]
test eax, eax
je 0x515f75
push 3
push eax
call edi
jmp 0x515f83
mov eax, dword [esi + 0x3c]
mov ecx, dword [eax + 4]
mov dword [esi + ecx + 0x3c], 6
mov eax, dword [esi + 0x588]
test eax, eax
je 0x515f94
push 0
push eax
call edi
jmp 0x515fa8
mov edx, dword [esi + 0x584]
mov eax, dword [edx + 4]
mov dword [esi + eax + 0x584], 6
mov eax, dword [esi + 0x834]
test eax, eax
je 0x515fb9
push 5
push eax
call edi
pop edi
ret
mov ecx, dword [esi + 0x830]
mov edx, dword [ecx + 4]
mov dword [esi + edx + 0x830], 6
pop edi
ret
Function at 0x5182b0
Capabilities:
Hide graphical window

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x536810
mov eax, dword fs:[0]
push eax
sub esp, 0x18
push ebx
push esi
mov eax, dword [0x575494]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
xor ebx, ebx
cmp byte [edi + 0x3e14], bl
je 0x5183da
cmp dword [ebp + 8], ebx
jl 0x5183da
mov eax, dword [edi + 0x264]
cmp eax, ebx
je 0x518305
push eax
call dword [sym.imp.USER32.dll_IsWindowVisible]
test eax, eax
je 0x518319
jmp 0x518342
mov eax, dword [edi + 0x260]
mov eax, dword [eax + 4]
mov dword [eax + edi + 0x260], 6
mov eax, dword [edi + 0x264]
cmp eax, ebx
je 0x51832e
push 5
push eax
call dword [sym.imp.USER32.dll_ShowWindow]
jmp 0x518342
mov ecx, dword [edi + 0x260]
mov eax, dword [ecx + 4]
mov dword [eax + edi + 0x260], 6
push 0x754b
lea edx, [ebp - 0x24]
push edx
mov ecx, 0x5776a0
call fcn.00471380
mov dword [ebp - 4], ebx
mov dword [ebp - 0x18], ebx
mov dword [ebp - 0x14], ebx
mov dword [ebp - 0x10], ebx
mov byte [ebp - 4], 1
mov eax, dword [ebp - 0x24]
cmp eax, ebx
jne 0x518371
mov eax, 0x54ee24
mov ecx, dword [ebp + 8]
push ecx
push eax
lea edx, [ebp - 0x18]
push str._s__d
push edx
call fcn.005074a0
mov esi, dword [ebp - 0x18]
add esp, 0x10
mov eax, esi
cmp esi, ebx
jne 0x518395
mov eax, 0x54ee24
lea ecx, [edi + 0x234]
call fcn.005091f0
mov byte [ebp - 4], bl
cmp esi, ebx
je 0x5183b0
push esi
call fcn.0051eadb
add esp, 4
mov dword [ebp - 4], 0xffffffff
mov eax, dword [ebp - 0x24]
cmp eax, ebx
je 0x518413
push eax
call fcn.0051eadb
add esp, 4
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 4
mov eax, dword [edi + 0x264]
cmp eax, ebx
je 0x5183ff
push ebx
push eax
call dword [sym.imp.USER32.dll_ShowWindow]
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 4
mov eax, dword [edi + 0x260]
mov ecx, dword [eax + 4]
mov dword [edi + ecx + 0x260], 6
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 4
Function at 0x518530
Capabilities:
Hide graphical window

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x534808
mov eax, dword fs:[0]
push eax
sub esp, 0x18
push ebx
push esi
push edi
mov eax, dword [0x575494]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov edi, dword [ebp + 8]
mov ecx, dword [edi + 0x3e34]
xor ebx, ebx
cmp ecx, ebx
je 0x518675
cmp byte [edi + 0x3e14], bl
jne 0x518675
mov esi, edx
call fcn.004678f0
test al, al
je 0x518675
mov dword [ebp - 0x20], ebx
mov dword [ebp - 0x1c], ebx
mov dword [ebp - 0x18], ebx
mov dword [ebp - 4], ebx
mov edi, dword [edi + 0x3e34]
lea ebx, [ebp - 0x20]
call fcn.00467940
mov ebx, dword [ebp - 0x20]
cmp eax, 0xffffffff
je 0x518661
mov eax, ebx
test ebx, ebx
jne 0x5185b7
mov eax, 0x54ee24
mov esi, dword [ebp + 8]
push eax
lea eax, [esi + 0x178]
call fcn.005080c0
mov eax, dword [esi + 0x124]
push eax
call fcn.00519680
mov eax, dword [ebp - 0x14]
cmp eax, 4
je 0x5185df
cmp eax, 5
jne 0x518647
mov eax, dword [ebp - 0x10]
cmp eax, 1
jle 0x518647
mov ecx, dword [esi + 0x3e18]
mov edi, dword [sym.imp.USER32.dll_SendMessageW]
movzx eax, ax
or eax, 0x10000
push eax
push 0
push 0x465
push ecx
call edi
mov edx, dword [esi + 0x3e18]
push 1
push 0
push 0x467
push edx
call edi
lea ecx, [esi + 0x1d0]
mov dword [esi + 0x3e1c], 1
call fcn.0051c5d0
mov eax, dword [esi + 0x3e18]
push 5
push eax
call dword [sym.imp.USER32.dll_ShowWindow]
push 1
mov ecx, esi
call fcn.00519730
jmp 0x518661
lea ecx, [esi + 0x1d0]
call fcn.0051c5f0
mov ecx, dword [esi + 0x3e18]
push 0
push ecx
call dword [sym.imp.USER32.dll_ShowWindow]
mov dword [ebp - 4], 0xffffffff
test ebx, ebx
je 0x518675
push ebx
call fcn.0051eadb
add esp, 4
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 0x519810
Capabilities:
Hide graphical window

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x537f10
mov eax, dword fs:[0]
push eax
sub esp, 0x18
push ebx
push esi
push edi
mov eax, dword [0x575494]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov esi, ecx
mov eax, dword [esi + 0xb4]
xor ebx, ebx
cmp dword [ebp + 8], ebx
jl 0x51993e
cmp eax, ebx
je 0x51985c
push eax
call dword [sym.imp.USER32.dll_IsWindowVisible]
test eax, eax
je 0x519870
jmp 0x519899
mov eax, dword [esi + 0xb0]
mov eax, dword [eax + 4]
mov dword [eax + esi + 0xb0], 6
mov eax, dword [esi + 0xb4]
cmp eax, ebx
je 0x519885
push 5
push eax
call dword [sym.imp.USER32.dll_ShowWindow]
jmp 0x519899
mov ecx, dword [esi + 0xb0]
mov eax, dword [ecx + 4]
mov dword [eax + esi + 0xb0], 6
push 0x753d
lea edx, [ebp - 0x24]
push edx
mov ecx, 0x5776a0
call fcn.00471380
mov dword [ebp - 4], ebx
mov dword [ebp - 0x18], ebx
mov dword [ebp - 0x14], ebx
mov dword [ebp - 0x10], ebx
mov byte [ebp - 4], 1
mov eax, dword [ebp - 0x24]
cmp eax, ebx
jne 0x5198c8
mov eax, 0x54ee24
push eax
mov eax, dword [ebp + 8]
push eax
lea ecx, [ebp - 0x18]
push 0x55a324
push ecx
call fcn.005074a0
mov edi, dword [ebp - 0x18]
add esp, 0x10
mov eax, edi
cmp edi, ebx
jne 0x5198ec
mov eax, 0x54ee24
lea ecx, [esi + 0x84]
call fcn.005091f0
mov eax, dword [esi + 0x94]
push eax
call fcn.00519680
mov byte [ebp - 4], bl
cmp edi, ebx
je 0x519913
push edi
call fcn.0051eadb
add esp, 4
mov dword [ebp - 4], 0xffffffff
mov eax, dword [ebp - 0x24]
cmp eax, ebx
je 0x519972
push eax
call fcn.0051eadb
add esp, 4
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
cmp eax, ebx
je 0x51995e
push ebx
push eax
call dword [sym.imp.USER32.dll_ShowWindow]
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
mov edx, dword [esi + 0xb0]
mov eax, dword [edx + 4]
mov dword [esi + eax + 0xb0], 6
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 0x51afe0
Capabilities:
Read .ini file

Disassembly:
push ebp
mov ebp, esp
push ebx
push esi
mov esi, ecx
push edi
lea edi, [esi + 0x3c]
push edi
mov ecx, 0x554c48
mov ebx, eax
call fcn.00470260
push str.PrntPreView_ImageArea
lea eax, [esi + 0x4c]
call fcn.005080c0
mov eax, dword [edi + 0x10]
mov ecx, eax
test eax, eax
jne 0x51b013
mov ecx, 0x54ee24
xor eax, eax
cmp dword [edi + 8], eax
jle 0x51b03e
test ecx, ecx
je 0x51b03e
cmp word [ecx], ax
je 0x51b03e
mov eax, dword [edi + 4]
test eax, eax
jne 0x51b02f
mov eax, 0x54ee24
push eax
push 0
push str.TMargin
push ecx
call dword [sym.imp.KERNEL32.dll_GetPrivateProfileIntW]
mov dword [esi + 0x1660], eax
mov eax, dword [edi + 0x10]
mov ecx, eax
test eax, eax
jne 0x51b052
mov ecx, 0x54ee24
xor eax, eax
cmp dword [edi + 8], eax
jle 0x51b07f
test ecx, ecx
je 0x51b07f
cmp word [ecx], ax
je 0x51b07f
mov edi, dword [edi + 4]
mov eax, edi
test edi, edi
jne 0x51b070
mov eax, 0x54ee24
push eax
push 0
push str.BMargin
push ecx
call dword [sym.imp.KERNEL32.dll_GetPrivateProfileIntW]
mov ecx, dword [esi + 0x164c]
mov edx, dword [esi + 0x1660]
lea edi, [ecx + ecx]
sub ebx, edi
mov edi, dword [ebp + 0x10]
push 0
mov dword [esi + 0x1664], eax
sub edi, edx
sub edi, eax
xor eax, eax
cmp byte [ebp + 0x14], al
push edi
push ebx
setne al
push edx
push ecx
mov ecx, dword [ebp + 8]
push 0x10300000
push ecx
mov ecx, dword [ebp + 0xc]
lea eax, [eax + eax + 0x237a]
add esi, 0x5dc
call fcn.004688f0
pop edi
pop esi
pop ebx
pop ebp
ret 0x10

Function at 0x51c5f0
Capabilities:
Hide graphical window

Disassembly:
mov eax, dword [ecx + 4]
test eax, eax
je 0x51c601
push 0
push eax
call dword [sym.imp.USER32.dll_ShowWindow]
ret
mov eax, dword [ecx]
mov edx, dword [eax + 4]
mov dword [ecx + edx], 6
ret

Function at 0x51d770
Capabilities:
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
sub esp, 0xc
push esi
lea eax, [ebp - 4]
push eax
push 0x20019
xor esi, esi
push esi
push str.SoftwareBrotherBrUtilities
push SysStringLen
mov dword [ebp - 4], esi
mov dword [ebp - 0xc], esi
mov dword [ebp - 8], 0x208
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
cmp eax, esi
jne 0x51d7ce
mov edx, dword [ebp + 8]
lea ecx, [ebp - 8]
push ecx
mov ecx, dword [ebp - 4]
push edx
lea eax, [ebp - 0xc]
push eax
push esi
push str.BrLogAPI
push ecx
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
mov edx, dword [ebp - 4]
push edx
mov esi, eax
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov eax, esi
pop esi
mov esp, ebp
pop ebp
ret 4
Function at 0x51d830
Capabilities:
Link many functions at runtime

Disassembly:
cmp dword [esi + 4], 0
jne 0x51d8f2
push eax
call dword [sym.imp.KERNEL32.dll_LoadLibraryW]
mov dword [esi + 4], eax
test eax, eax
je 0x51d8ef
push edi
mov edi, dword [sym.imp.KERNEL32.dll_GetProcAddress]
push str.OpenA
push eax
call edi
mov ecx, dword [esi + 4]
push str.CloseA
push ecx
mov dword [esi + 8], eax
call edi
mov edx, dword [esi + 4]
push str.TraceWriteA
push edx
mov dword [esi + 0xc], eax
call edi
mov dword [esi + 0x10], eax
mov eax, dword [esi + 4]
push str.DumpWriteA
push eax
call edi
mov ecx, dword [esi + 4]
push str.OpenW
push ecx
mov dword [esi + 0x14], eax
call edi
mov edx, dword [esi + 4]
push str.CloseW
push edx
mov dword [esi + 0x18], eax
call edi
mov dword [esi + 0x1c], eax
mov eax, dword [esi + 4]
push str.TraceWriteW
push eax
call edi
mov ecx, dword [esi + 4]
push str.DumpWriteW
push ecx
mov dword [esi + 0x20], eax
call edi
cmp dword [esi + 8], 0
mov dword [esi + 0x24], eax
pop edi
je 0x51d8ef
cmp dword [esi + 0xc], 0
je 0x51d8ef
cmp dword [esi + 0x10], 0
je 0x51d8ef
cmp dword [esi + 0x14], 0
je 0x51d8ef
cmp dword [esi + 0x18], 0
je 0x51d8ef
cmp dword [esi + 0x1c], 0
je 0x51d8ef
cmp dword [esi + 0x20], 0
je 0x51d8ef
test eax, eax
jne 0x51d8f2
xor eax, eax
ret
mov eax, 1
ret

Function at 0x51d990
Capabilities:
Check if file exists
Get file attributes

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x210
mov eax, dword [0x575494]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
mov ebx, ecx
mov ecx, dword [ebx + 4]
xor eax, eax
test ecx, ecx
je 0x51da70
cmp dword [ecx + 4], eax
setne al
test eax, eax
jne 0x51da70
mov ecx, 0x208
lea eax, [ebp - 0x20c]
lea esp, [esp]
mov byte [eax], 0
inc eax
dec ecx
jne 0x51d9d0
push esi
lea eax, [ebp - 0x20c]
push eax
call fcn.0051d770
push 0x104
lea ecx, [ebp - 0x20c]
push ecx
mov esi, eax
call dword [sym.imp.SHELL32.dll_DoEnvironmentSubstW]
test esi, esi
jne 0x51da0e
lea edx, [ebp - 0x20c]
push edx
call dword [sym.imp.KERNEL32.dll_GetFileAttributesW]
cmp eax, 0xffffffff
jne 0x51da61
mov ecx, 0x208
lea eax, [ebp - 0x20c]
lea esp, [esp]
mov byte [eax], 0
inc eax
dec ecx
jne 0x51da20
push edi
lea edi, [ebp - 0x210]
mov edx, 0x82
lea ecx, [ebp - 0x20c]
call fcn.0051cb20
pop edi
test eax, eax
js 0x51da61
mov ecx, dword [ebp - 0x210]
mov eax, 0x82
sub eax, ecx
lea ecx, [ebp + ecx*2 - 0x20c]
mov edx, str.BrLogAPI.dll
call fcn.0042a1a0
mov esi, dword [ebx + 4]
lea eax, [ebp - 0x20c]
call fcn.0051d830
pop esi
mov ecx, dword [ebp - 4]
xor ecx, ebp
pop ebx
call fcn.0051eacc
mov esp, ebp
pop ebp
ret