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

Disassembly:
push ebp
mov ebp, esp
mov eax, dword [ebp + 8]
push edi
cmp eax, 0x1811
jne 0x50ec39
mov eax, dword [esi + 0xec]
mov edi, dword [sym.imp.USER32.dll_ShowWindow]
test eax, eax
je 0x50ec05
push 0
push eax
call edi
jmp 0x50ec19
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 0x50ec75
mov edx, dword [esi + 0x394]
mov eax, dword [edx + 4]
mov dword [esi + eax + 0x394], 6
jmp 0x50ec90
cmp eax, 0x1812
jne 0x50ec90
mov eax, dword [esi + 0x398]
mov edi, dword [sym.imp.USER32.dll_ShowWindow]
test eax, eax
je 0x50ec57
push 0
push eax
call edi
jmp 0x50ec6b
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 0x50ec7c
push 5
push eax
call edi
jmp 0x50ec90
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 0x514ee0
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 0x514f23
movzx ecx, word [esi + eax]
test cx, cx
je 0x514f23
mov word [eax], cx
add eax, 2
dec edx
jne 0x514f05
jmp 0x514f27
test edx, edx
jne 0x514f2a
sub eax, 2
xor edx, edx
mov word [eax], dx
pop esi
cmp word [ebp - 0x414], dx
je 0x514f90
push edi
lea edi, [ebp - 0x414]
call fcn.005151a0
mov eax, edi
push 0
push eax
call fcn.00520dc3
add esp, 8
pop edi
mov ecx, ebx
test eax, eax
jne 0x514fa3
call fcn.00515220
test eax, eax
jne 0x514f90
lea ecx, [ebp - 0x414]
push ecx
call dword [sym.imp.KERNEL32.dll_GetFileAttributesW]
test al, 0x10
je 0x514f90
push ebx
call fcn.005153a0
test al, al
jne 0x514fbd
mov eax, 4
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.0051eb9c
mov esp, ebp
pop ebp
ret
mov eax, 2
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.0051eb9c
mov esp, ebp
pop ebp
ret
call fcn.00515220
neg eax
sbb eax, eax
add eax, 3
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.0051eb9c
mov esp, ebp
pop ebp
ret
mov ecx, dword [ebp - 4]
xor ecx, ebp
xor eax, eax
call fcn.0051eb9c
mov esp, ebp
pop ebp
ret
Function at 0x514fd0
Capabilities:
Get common file path

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x539f7d
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 0x51512b
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 0x515085
push 0x54ede0
lea eax, [ebp - 0x218]
push 0x104
push eax
call fcn.0052010e
add esp, 0xc
lea ecx, [ebp - 0x218]
push ecx
mov eax, ebx
call fcn.005080c0
lea esi, [edi + 0x208]
test esi, esi
je 0x5150a6
push esi
call dword [sym.imp.KERNEL32.dll_lstrlenW]
jmp 0x5150a8
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.00515500
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 0x515101
push eax
call fcn.0051ebab
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.0051eb9c
mov esp, ebp
pop ebp
ret
Function at 0x5153a0
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 0x5154ec
push esi
push 0x55e12c
lea eax, [ebp - 0x494]
push eax
lea ecx, [ebp - 0x498]
push ecx
call fcn.00520aaa
mov esi, dword [ebp - 0x498]
add esp, 0xc
cmp esi, ebx
je 0x5154d8
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.005226e0
push esi
push 1
lea edx, [ebp - 0x44]
push 0x40
push edx
call fcn.005207bb
mov eax, dword [ebp - 0x498]
push eax
call fcn.005208a2
push 0x55e148
lea ecx, [ebp - 0x494]
push ecx
lea edx, [ebp - 0x498]
push edx
call fcn.00520aaa
mov eax, dword [ebp - 0x498]
add esp, 0x2c
cmp eax, ebx
je 0x5154cb
push eax
push 1
lea edx, [ebp - 0x84]
xor ecx, ecx
push 0x40
push edx
mov word [ebp - 0x84], cx
call fcn.00520da6
add esp, 0x10
test eax, eax
je 0x5154bc
lea eax, [ebp - 0x84]
push eax
lea ecx, [ebp - 0x44]
push ecx
call dword [sym.imp.KERNEL32.dll_lstrcmpW]
test eax, eax
jne 0x5154bc
mov bl, 1
mov edx, dword [ebp - 0x498]
push edx
call fcn.005208a2
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.0051eb9c
mov esp, ebp
pop ebp
ret 4
mov ecx, dword [ebp - 4]
mov al, bl
xor ecx, ebp
pop ebx
call fcn.0051eb9c
mov esp, ebp
pop ebp
ret 4

Function at 0x5157a0
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 0x515873
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 0x5157ff
push 0x54ede0
lea eax, [ebp - 0x20c]
push 0x104
push eax
call fcn.0052010e
add esp, 0xc
push ebx
push esi
lea ecx, [ebp - 0x20c]
push 0x104
push ecx
call fcn.0052010e
add esp, 0xc
lea ebx, [ebp - 0x20c]
call fcn.00514ee0
pop ebx
test eax, eax
je 0x515878
cmp eax, 2
jne 0x51583e
mov eax, 4
pop edi
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.0051eb9c
mov esp, ebp
pop ebp
ret
cmp eax, 3
jne 0x515857
mov eax, 5
pop edi
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.0051eb9c
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.0051eb9c
mov esp, ebp
pop ebp
ret
mov edi, 7
mov ecx, dword [ebp - 4]
mov eax, edi
xor ecx, ebp
pop edi
call fcn.0051eb9c
mov esp, ebp
pop ebp
ret
Function at 0x515890
Capabilities:
Get common file path

Disassembly:
test edi, edi
je 0x5158db
push esi
mov edx, edi
call fcn.004f7340
xor esi, esi
test eax, eax
je 0x5158ae
cmp word [eax], si
jne 0x5158b3
mov esi, 2
jmp 0x5158b3
mov esi, 7
cmp esi, 2
jne 0x5158c8
mov ecx, edi
call fcn.004f7270
test eax, eax
je 0x5158e1
cmp dword [eax], 0
jmp 0x5158ca
test esi, esi
jne 0x5158e1
mov ecx, edi
call fcn.004f73c0
mov ecx, eax
pop esi
jmp fcn.005158f0
mov eax, 7
ret
mov eax, esi
pop esi
ret

Function at 0x5158f0
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 0x5159eb
call fcn.00514d50
test eax, eax
je 0x51592d
lea eax, [edi + 3]
pop edi
pop esi
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.0051eb9c
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 0x51596e
push 0x54ede0
lea eax, [ebp - 0x20c]
push 0x104
push eax
call fcn.0052010e
add esp, 0xc
push ebx
add esi, 0x208
push esi
lea ecx, [ebp - 0x20c]
push 0x104
push ecx
call fcn.0052010e
add esp, 0xc
lea ebx, [ebp - 0x20c]
call fcn.00514ee0
pop ebx
test eax, eax
je 0x5159f0
cmp eax, 2
jne 0x5159b4
pop edi
mov eax, 4
pop esi
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.0051eb9c
mov esp, ebp
pop ebp
ret
cmp eax, 3
jne 0x5159ce
pop edi
mov eax, 5
pop esi
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.0051eb9c
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.0051eb9c
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.0051eb9c
mov esp, ebp
pop ebp
ret

Function at 0x516090
Capabilities:
Hide graphical window

Disassembly:
mov eax, dword [esi + 0x40]
push edi
mov edi, dword [sym.imp.USER32.dll_ShowWindow]
test eax, eax
je 0x5160a5
push 3
push eax
call edi
jmp 0x5160b3
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 0x5160c4
push 0
push eax
call edi
jmp 0x5160d8
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 0x5160e9
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 0x5183d0
Capabilities:
Hide graphical window

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x536920
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 0x5184fa
cmp dword [ebp + 8], ebx
jl 0x5184fa
mov eax, dword [edi + 0x264]
cmp eax, ebx
je 0x518425
push eax
call dword [sym.imp.USER32.dll_IsWindowVisible]
test eax, eax
je 0x518439
jmp 0x518462
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 0x51844e
push 5
push eax
call dword [sym.imp.USER32.dll_ShowWindow]
jmp 0x518462
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.00471480
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 0x518491
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 0x5184b5
mov eax, 0x54ee24
lea ecx, [edi + 0x234]
call fcn.005091f0
mov byte [ebp - 4], bl
cmp esi, ebx
je 0x5184d0
push esi
call fcn.0051ebab
add esp, 4
mov dword [ebp - 4], 0xffffffff
mov eax, dword [ebp - 0x24]
cmp eax, ebx
je 0x518533
push eax
call fcn.0051ebab
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 0x51851f
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 0x518650
Capabilities:
Hide graphical window

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x5348a8
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 0x518795
cmp byte [edi + 0x3e14], bl
jne 0x518795
mov esi, edx
call fcn.00467ac0
test al, al
je 0x518795
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.00467b10
mov ebx, dword [ebp - 0x20]
cmp eax, 0xffffffff
je 0x518781
mov eax, ebx
test ebx, ebx
jne 0x5186d7
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.005197a0
mov eax, dword [ebp - 0x14]
cmp eax, 4
je 0x5186ff
cmp eax, 5
jne 0x518767
mov eax, dword [ebp - 0x10]
cmp eax, 1
jle 0x518767
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.0051c6a0
mov eax, dword [esi + 0x3e18]
push 5
push eax
call dword [sym.imp.USER32.dll_ShowWindow]
push 1
mov ecx, esi
call fcn.00519850
jmp 0x518781
lea ecx, [esi + 0x1d0]
call fcn.0051c6c0
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 0x518795
push ebx
call fcn.0051ebab
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 0x519930
Capabilities:
Hide graphical window

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x537f80
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 0x519a5e
cmp eax, ebx
je 0x51997c
push eax
call dword [sym.imp.USER32.dll_IsWindowVisible]
test eax, eax
je 0x519990
jmp 0x5199b9
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 0x5199a5
push 5
push eax
call dword [sym.imp.USER32.dll_ShowWindow]
jmp 0x5199b9
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.00471480
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 0x5199e8
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 0x519a0c
mov eax, 0x54ee24
lea ecx, [esi + 0x84]
call fcn.005091f0
mov eax, dword [esi + 0x94]
push eax
call fcn.005197a0
mov byte [ebp - 4], bl
cmp edi, ebx
je 0x519a33
push edi
call fcn.0051ebab
add esp, 4
mov dword [ebp - 4], 0xffffffff
mov eax, dword [ebp - 0x24]
cmp eax, ebx
je 0x519a92
push eax
call fcn.0051ebab
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 0x519a7e
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 0x51b100
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, 0x554c58
mov ebx, eax
call fcn.00470370
push str.PrntPreView_ImageArea
lea eax, [esi + 0x4c]
call fcn.005080c0
mov eax, dword [edi + 0x10]
mov ecx, eax
test eax, eax
jne 0x51b133
mov ecx, 0x54ee24
xor eax, eax
cmp dword [edi + 8], eax
jle 0x51b15e
test ecx, ecx
je 0x51b15e
cmp word [ecx], ax
je 0x51b15e
mov eax, dword [edi + 4]
test eax, eax
jne 0x51b14f
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 0x51b172
mov ecx, 0x54ee24
xor eax, eax
cmp dword [edi + 8], eax
jle 0x51b19f
test ecx, ecx
je 0x51b19f
cmp word [ecx], ax
je 0x51b19f
mov edi, dword [edi + 4]
mov eax, edi
test edi, edi
jne 0x51b190
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.00468ac0
pop edi
pop esi
pop ebx
pop ebp
ret 0x10

Function at 0x51c6c0
Capabilities:
Hide graphical window

Disassembly:
mov eax, dword [ecx + 4]
test eax, eax
je 0x51c6d1
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 0x51d840
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 0x51d89e
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 0x51d900
Capabilities:
Link many functions at runtime

Disassembly:
cmp dword [esi + 4], 0
jne 0x51d9c2
push eax
call dword [sym.imp.KERNEL32.dll_LoadLibraryW]
mov dword [esi + 4], eax
test eax, eax
je 0x51d9bf
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 0x51d9bf
cmp dword [esi + 0xc], 0
je 0x51d9bf
cmp dword [esi + 0x10], 0
je 0x51d9bf
cmp dword [esi + 0x14], 0
je 0x51d9bf
cmp dword [esi + 0x18], 0
je 0x51d9bf
cmp dword [esi + 0x1c], 0
je 0x51d9bf
cmp dword [esi + 0x20], 0
je 0x51d9bf
test eax, eax
jne 0x51d9c2
xor eax, eax
ret
mov eax, 1
ret

Function at 0x51da60
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 0x51db40
cmp dword [ecx + 4], eax
setne al
test eax, eax
jne 0x51db40
mov ecx, 0x208
lea eax, [ebp - 0x20c]
lea esp, [esp]
mov byte [eax], 0
inc eax
dec ecx
jne 0x51daa0
push esi
lea eax, [ebp - 0x20c]
push eax
call fcn.0051d840
push 0x104
lea ecx, [ebp - 0x20c]
push ecx
mov esi, eax
call dword [sym.imp.SHELL32.dll_DoEnvironmentSubstW]
test esi, esi
jne 0x51dade
lea edx, [ebp - 0x20c]
push edx
call dword [sym.imp.KERNEL32.dll_GetFileAttributesW]
cmp eax, 0xffffffff
jne 0x51db31
mov ecx, 0x208
lea eax, [ebp - 0x20c]
lea esp, [esp]
mov byte [eax], 0
inc eax
dec ecx
jne 0x51daf0
push edi
lea edi, [ebp - 0x210]
mov edx, 0x82
lea ecx, [ebp - 0x20c]
call fcn.0051cbf0
pop edi
test eax, eax
js 0x51db31
mov ecx, dword [ebp - 0x210]
mov eax, 0x82
sub eax, ecx
lea ecx, [ebp + ecx*2 - 0x20c]
mov edx, str.BrLogAPI.dll
call fcn.0042a2b0
mov esi, dword [ebx + 4]
lea eax, [ebp - 0x20c]
call fcn.0051d900
pop esi
mov ecx, dword [ebp - 4]
xor ecx, ebp
pop ebx
call fcn.0051eb9c
mov esp, ebp
pop ebp
ret
Function at 0x51e66d
Capabilities:
Query environment variable
Query or enumerate registry value

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x118
mov eax, dword [0x575494]
xor eax, ebp
mov dword [ebp - 4], eax
mov eax, dword [ebp + 8]
push esi
mov dword [ebp - 0x110], eax
lea eax, [ebp - 0x10c]
push eax
push 0x20019
xor esi, esi
push esi
push str.CLSIDADB880A6_D8FF_11CF_9377_00AA003B7A11InprocServer32
push 0x80000000
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
test eax, eax
jne 0x51e742
push edi
lea eax, [ebp - 0x118]
push eax
lea eax, [ebp - 0x108]
push eax
lea eax, [ebp - 0x114]
push eax
push esi
push esi
push dword [ebp - 0x10c]
mov edi, 0x104
mov dword [ebp - 0x118], edi
mov dword [ebp - 0x114], 1
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
test eax, eax
jne 0x51e731
cmp dword [ebp - 0x114], 2
mov byte [ebp - 5], al
lea eax, [ebp - 0x108]
jne 0x51e71b
push edi
push dword [ebp - 0x110]
push eax
call dword [sym.imp.KERNEL32.dll_ExpandEnvironmentStringsA]
dec eax
lea ecx, [edi - 1]
cmp ecx, eax
sbb esi, esi
inc esi
jmp 0x51e731
push eax
push edi
push dword [ebp - 0x110]
call fcn.0051e60a
xor ecx, ecx
test eax, eax
setge cl
mov esi, ecx
push dword [ebp - 0x10c]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov eax, esi
pop edi
jmp 0x51e744
xor eax, eax
mov ecx, dword [ebp - 4]
xor ecx, ebp
pop esi
call fcn.0051eb9c
leave
ret 4

Function at 0x51eb9c
Capabilities:
Terminate process

Disassembly:
cmp ecx, dword [0x575494]
jne 0x51eba6
repz ret
jmp fcn.00522228

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

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push esi
xor esi, esi
cmp dword [ebp + 8], esi
jne 0x520dea
call fcn.0052114c
mov dword [eax], esi
call fcn.00521139
push 0x16
pop esi
mov dword [eax], esi
call fcn.005228e4
mov eax, esi
jmp 0x520e3f
test dword [ebp + 0xc], 0xfffffff9
jne 0x520dd0
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.dll_GetFileAttributesW]
cmp eax, 0xffffffff
jne 0x520e17
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
call fcn.0052115f
pop ecx
call fcn.00521139
mov eax, dword [eax]
jmp 0x520e3f
test al, 0x10
jne 0x520e3d
test al, 1
je 0x520e3d
test byte [ebp + 0xc], 2
je 0x520e3d
call fcn.0052114c
mov dword [eax], 5
call fcn.00521139
mov dword [eax], 0xd
jmp 0x520e0e
xor eax, eax
pop esi
pop ebp
ret