joyce8/EMBER2024-capa huggingface dataset:
Function at 0x509c30
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 [0x559024]
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 0x543d38
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 0x509d7c
push esi
push 0x543d40
lea eax, [ebp - 0x494]
push eax
lea ecx, [ebp - 0x498]
push ecx
call fcn.00514d89
mov esi, dword [ebp - 0x498]
add esp, 0xc
cmp esi, ebx
je 0x509d68
mov ecx, dword [0x543d50]
mov edx, dword [str.DummyData]
mov eax, dword [0x543d4c]
push 0x2c
mov dword [ebp - 0x3c], ecx
mov dword [ebp - 0x44], edx
mov edx, dword [0x543d54]
mov dword [ebp - 0x40], eax
mov eax, dword [0x543d58]
lea ecx, [ebp - 0x30]
push ebx
push ecx
mov dword [ebp - 0x38], edx
mov dword [ebp - 0x34], eax
call fcn.00517440
push esi
push 1
lea edx, [ebp - 0x44]
push 0x40
push edx
call fcn.005151f9
mov eax, dword [ebp - 0x498]
push eax
call fcn.0051535f
push 0x543d5c
lea ecx, [ebp - 0x494]
push ecx
lea edx, [ebp - 0x498]
push edx
call fcn.00514d89
mov eax, dword [ebp - 0x498]
add esp, 0x2c
cmp eax, ebx
je 0x509d5b
push eax
push 1
lea edx, [ebp - 0x84]
xor ecx, ecx
push 0x40
push edx
mov word [ebp - 0x84], cx
call fcn.00515085
add esp, 0x10
test eax, eax
je 0x509d4c
lea eax, [ebp - 0x84]
push eax
lea ecx, [ebp - 0x44]
push ecx
call dword [sym.imp.KERNEL32.dll_lstrcmpW]
test eax, eax
jne 0x509d4c
mov bl, 1
mov edx, dword [ebp - 0x498]
push edx
call fcn.0051535f
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.00513498
mov esp, ebp
pop ebp
ret 4
mov ecx, dword [ebp - 4]
mov al, bl
xor ecx, ebp
pop ebx
call fcn.00513498
mov esp, ebp
pop ebp
ret 4

Function at 0x509fb0
Capabilities:
Get common file path

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x20c
mov eax, dword [0x559024]
xor eax, ebp
mov dword [ebp - 4], eax
push edi
xor edi, edi
test esi, esi
je 0x50a083
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 0x50a00f
push 0x5388e8
lea eax, [ebp - 0x20c]
push 0x104
push eax
call fcn.005149bd
add esp, 0xc
push ebx
push esi
lea ecx, [ebp - 0x20c]
push 0x104
push ecx
call fcn.005149bd
add esp, 0xc
lea ebx, [ebp - 0x20c]
call fcn.005098f0
pop ebx
test eax, eax
je 0x50a088
cmp eax, 2
jne 0x50a04e
mov eax, 4
pop edi
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.00513498
mov esp, ebp
pop ebp
ret
cmp eax, 3
jne 0x50a067
mov eax, 5
pop edi
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.00513498
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.00513498
mov esp, ebp
pop ebp
ret
mov edi, 7
mov ecx, dword [ebp - 4]
mov eax, edi
xor ecx, ebp
pop edi
call fcn.00513498
mov esp, ebp
pop ebp
ret
Function at 0x50a0d0
Capabilities:
Get common file path

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x210
mov eax, dword [0x559024]
xor eax, ebp
mov dword [ebp - 4], eax
push esi
push edi
mov esi, ecx
xor edi, edi
test esi, esi
je 0x50a204
mov al, byte [esi + 0x546]
lea ecx, [esi + 0x130]
mov byte [ebp - 0x210], al
test ecx, ecx
je 0x50a11c
mov edx, dword [ebp - 0x210]
push edx
call fcn.00509750
test eax, eax
je 0x50a146
cmp eax, 5
jne 0x50a131
pop edi
mov eax, 8
pop esi
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.00513498
mov esp, ebp
pop ebp
ret
pop edi
mov eax, 3
pop esi
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.00513498
mov esp, ebp
pop ebp
ret
mov ecx, dword [esi + 0x540]
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 0x50a187
push 0x5388e8
lea eax, [ebp - 0x20c]
push 0x104
push eax
call fcn.005149bd
add esp, 0xc
push ebx
add esi, 0x338
push esi
lea ecx, [ebp - 0x20c]
push 0x104
push ecx
call fcn.005149bd
add esp, 0xc
lea ebx, [ebp - 0x20c]
call fcn.005098f0
pop ebx
test eax, eax
je 0x50a209
cmp eax, 2
jne 0x50a1cd
pop edi
mov eax, 4
pop esi
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.00513498
mov esp, ebp
pop ebp
ret
cmp eax, 3
jne 0x50a1e7
pop edi
mov eax, 5
pop esi
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.00513498
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.00513498
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.00513498
mov esp, ebp
pop ebp
ret
Function at 0x50a220
Capabilities:
Get common file path

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x52dfb2
mov eax, dword fs:[0]
push eax
sub esp, 0x214
mov eax, dword [0x559024]
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 edi, ecx
mov dword [ebp - 4], eax
mov dword [ebp - 0x21c], eax
push 0x538640
mov esi, edi
mov dword [ebp - 0x220], edi
mov dword [edi], eax
mov dword [edi + 4], eax
mov dword [edi + 8], eax
call fcn.004fcba0
mov dword [ebp - 4], 0
mov dword [ebp - 0x21c], 1
test ebx, ebx
je 0x50a367
mov ecx, dword [ebx + 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 0x50a2cf
push 0x5388e8
lea eax, [ebp - 0x218]
push 0x104
push eax
call fcn.005149bd
add esp, 0xc
lea ecx, [ebp - 0x218]
push ecx
mov eax, edi
call fcn.004fcf00
mov esi, dword [sym.imp.KERNEL32.dll_lstrlenW]
lea eax, [ebx + 0x208]
test eax, eax
je 0x50a2f2
push eax
call esi
jmp 0x50a2f4
xor eax, eax
lea ecx, [ebx + 0x208]
push ecx
call fcn.004fcc10
push 0x5388e8
call esi
push 0x5388e8
call fcn.004fcc10
push ebx
call esi
push ebx
call fcn.004fcc10
cmp byte [ebx + 0x416], 0
je 0x50a334
push 0x543d74
call esi
push 0x543d74
call fcn.004fcc10
push str._nnnn
call esi
push str._nnnn
call fcn.004fcc10
push str..eeee
call esi
push str..eeee
call fcn.004fcc10
push 0x543da0
call esi
push 0x543da0
call fcn.004fcc10
mov eax, edi
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.00513498
mov esp, ebp
pop ebp
ret
Function at 0x50a390
Capabilities:
Get common file path

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x210
mov eax, dword [0x559024]
xor eax, ebp
mov dword [ebp - 4], eax
push esi
push edi
mov esi, ecx
xor edi, edi
test esi, esi
je 0x50a4aa
mov al, byte [esi + 0x416]
mov byte [ebp - 0x210], al
mov ecx, dword [ebp - 0x210]
push ecx
mov ecx, esi
call fcn.00509750
test eax, eax
je 0x50a3ec
sub eax, 5
neg eax
sbb eax, eax
and eax, 0xfffffffb
pop edi
add eax, 8
pop esi
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.00513498
mov esp, ebp
pop ebp
ret
mov eax, dword [esi + 0x410]
xor edx, edx
push edx
push eax
lea ecx, [ebp - 0x20c]
push ecx
push edx
mov word [ebp - 0x20c], dx
call dword [sym.imp.SHELL32.dll_SHGetSpecialFolderPathW]
cmp word [ebp - 0x20c], di
je 0x50a42d
push 0x5388e8
lea edx, [ebp - 0x20c]
push 0x104
push edx
call fcn.005149bd
add esp, 0xc
push ebx
add esi, 0x208
push esi
lea eax, [ebp - 0x20c]
push 0x104
push eax
call fcn.005149bd
add esp, 0xc
lea ebx, [ebp - 0x20c]
call fcn.005098f0
pop ebx
test eax, eax
je 0x50a4af
cmp eax, 2
jne 0x50a473
pop edi
mov eax, 4
pop esi
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.00513498
mov esp, ebp
pop ebp
ret
cmp eax, 3
jne 0x50a48d
pop edi
mov eax, 5
pop esi
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.00513498
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.00513498
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.00513498
mov esp, ebp
pop ebp
ret

Function at 0x50aab0
Capabilities:
Hide graphical window

Disassembly:
mov eax, dword [esi + 0x40]
push edi
mov edi, dword [sym.imp.USER32.dll_ShowWindow]
test eax, eax
je 0x50aac5
push 3
push eax
call edi
jmp 0x50aad3
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 0x50aae4
push 0
push eax
call edi
jmp 0x50aaf8
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 0x50ab09
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 0x50ad10
Capabilities:
Hide graphical window

Disassembly:
push ebp
mov ebp, esp
cmp dword [ebp + 0xc], 2
push ebx
mov ebx, dword [sym.imp.USER32.dll_ShowWindow]
push esi
lea esi, [edi + 0x1fc]
jne 0x50ad73
mov eax, dword [esi + 0x38c]
test eax, eax
je 0x50ad38
push 0
push eax
call ebx
jmp 0x50ad4c
mov eax, dword [esi + 0x388]
mov ecx, dword [eax + 4]
mov dword [esi + ecx + 0x388], 6
mov eax, dword [esi + 0x638]
test eax, eax
je 0x50ad5d
push 5
push eax
call ebx
jmp 0x50adc3
mov edx, dword [esi + 0x634]
mov eax, dword [edx + 4]
mov dword [esi + eax + 0x634], 6
jmp 0x50adc3
mov eax, dword [esi + 0x638]
test eax, eax
je 0x50ad84
push 0
push eax
call ebx
jmp 0x50ad98
mov ecx, dword [esi + 0x634]
mov edx, dword [ecx + 4]
mov dword [esi + edx + 0x634], 6
mov eax, dword [esi + 0x38c]
test eax, eax
je 0x50ada9
push 5
push eax
call ebx
jmp 0x50adbd
mov eax, dword [esi + 0x388]
mov ecx, dword [eax + 4]
mov dword [esi + ecx + 0x388], 6
cmp dword [ebp + 0xc], 0
jne 0x50addd
mov ebx, dword [ebp + 8]
lea eax, [edi + 0xb8]
call fcn.00511440
mov ebx, dword [ebp + 0x10]
mov eax, ebx
call fcn.0050b410
jmp 0x50ade0
mov ebx, dword [ebp + 0x10]
mov dx, word [edi + 0xd94]
sub dx, word [edi + 0xd78]
mov cx, word [edi + 0xd7c]
add dx, word [ebp + 0x14]
add cx, cx
movzx eax, dx
sub bx, cx
mov ecx, dword [edi + 0xdcc]
movzx edx, bx
shl eax, 0x10
or eax, edx
push eax
mov eax, dword [ebp + 0xc]
push eax
push 5
push ecx
call dword [sym.imp.USER32.dll_SendMessageW]
pop esi
pop ebx
pop ebp
ret 0x10
Function at 0x50d070
Capabilities:
Hide graphical window

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x52be90
mov eax, dword fs:[0]
push eax
sub esp, 0x18
push ebx
push esi
mov eax, dword [0x559024]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
xor ebx, ebx
cmp byte [edi + 0x3ce4], bl
je 0x50d19a
cmp dword [ebp + 8], ebx
jl 0x50d19a
mov eax, dword [edi + 0x264]
cmp eax, ebx
je 0x50d0c5
push eax
call dword [sym.imp.USER32.dll_IsWindowVisible]
test eax, eax
je 0x50d0d9
jmp 0x50d102
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 0x50d0ee
push 5
push eax
call dword [sym.imp.USER32.dll_ShowWindow]
jmp 0x50d102
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, 0x55a400
call fcn.00467b90
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 0x50d131
mov eax, 0x538640
mov ecx, dword [ebp + 8]
push ecx
push eax
lea edx, [ebp - 0x18]
push str._s__d
push edx
call fcn.004fc310
mov esi, dword [ebp - 0x18]
add esp, 0x10
mov eax, esi
cmp esi, ebx
jne 0x50d155
mov eax, 0x538640
lea ecx, [edi + 0x234]
call fcn.004fe030
mov byte [ebp - 4], bl
cmp esi, ebx
je 0x50d170
push esi
call fcn.005134a7
add esp, 4
mov dword [ebp - 4], 0xffffffff
mov eax, dword [ebp - 0x24]
cmp eax, ebx
je 0x50d1d3
push eax
call fcn.005134a7
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 0x50d1bf
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 0x50d2f0
Capabilities:
Hide graphical window

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x528b88
mov eax, dword fs:[0]
push eax
sub esp, 0x18
push ebx
push esi
push edi
mov eax, dword [0x559024]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov edi, dword [ebp + 8]
mov ecx, dword [edi + 0x3d04]
xor ebx, ebx
cmp ecx, ebx
je 0x50d435
cmp byte [edi + 0x3ce4], bl
jne 0x50d435
mov esi, edx
call fcn.0045e600
test al, al
je 0x50d435
mov dword [ebp - 0x20], ebx
mov dword [ebp - 0x1c], ebx
mov dword [ebp - 0x18], ebx
mov dword [ebp - 4], ebx
mov edi, dword [edi + 0x3d04]
lea ebx, [ebp - 0x20]
call fcn.0045e650
mov ebx, dword [ebp - 0x20]
cmp eax, 0xffffffff
je 0x50d421
mov eax, ebx
test ebx, ebx
jne 0x50d377
mov eax, 0x538640
mov esi, dword [ebp + 8]
push eax
lea eax, [esi + 0x178]
call fcn.004fcf00
mov eax, dword [esi + 0x124]
push eax
call fcn.0050e440
mov eax, dword [ebp - 0x14]
cmp eax, 4
je 0x50d39f
cmp eax, 5
jne 0x50d407
mov eax, dword [ebp - 0x10]
cmp eax, 1
jle 0x50d407
mov ecx, dword [esi + 0x3ce8]
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 + 0x3ce8]
push 1
push 0
push 0x467
push edx
call edi
lea ecx, [esi + 0x1d0]
mov dword [esi + 0x3cec], 1
call fcn.00511390
mov eax, dword [esi + 0x3ce8]
push 5
push eax
call dword [sym.imp.USER32.dll_ShowWindow]
push 1
mov ecx, esi
call fcn.0050e4f0
jmp 0x50d421
lea ecx, [esi + 0x1d0]
call fcn.005113b0
mov ecx, dword [esi + 0x3ce8]
push 0
push ecx
call dword [sym.imp.USER32.dll_ShowWindow]
mov dword [ebp - 4], 0xffffffff
test ebx, ebx
je 0x50d435
push ebx
call fcn.005134a7
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 0x50e5d0
Capabilities:
Hide graphical window

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x52d530
mov eax, dword fs:[0]
push eax
sub esp, 0x18
push ebx
push esi
push edi
mov eax, dword [0x559024]
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 0x50e6fe
cmp eax, ebx
je 0x50e61c
push eax
call dword [sym.imp.USER32.dll_IsWindowVisible]
test eax, eax
je 0x50e630
jmp 0x50e659
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 0x50e645
push 5
push eax
call dword [sym.imp.USER32.dll_ShowWindow]
jmp 0x50e659
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, 0x55a400
call fcn.00467b90
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 0x50e688
mov eax, 0x538640
push eax
mov eax, dword [ebp + 8]
push eax
lea ecx, [ebp - 0x18]
push 0x5409d4
push ecx
call fcn.004fc310
mov edi, dword [ebp - 0x18]
add esp, 0x10
mov eax, edi
cmp edi, ebx
jne 0x50e6ac
mov eax, 0x538640
lea ecx, [esi + 0x84]
call fcn.004fe030
mov eax, dword [esi + 0x94]
push eax
call fcn.0050e440
mov byte [ebp - 4], bl
cmp edi, ebx
je 0x50e6d3
push edi
call fcn.005134a7
add esp, 4
mov dword [ebp - 4], 0xffffffff
mov eax, dword [ebp - 0x24]
cmp eax, ebx
je 0x50e732
push eax
call fcn.005134a7
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 0x50e71e
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 0x50fda0
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, 0x53b7a8
mov ebx, eax
call fcn.00466b30
push str.PrntPreView_ImageArea
lea eax, [esi + 0x4c]
call fcn.004fcf00
mov eax, dword [edi + 0x10]
mov ecx, eax
test eax, eax
jne 0x50fdd3
mov ecx, 0x538640
xor eax, eax
cmp dword [edi + 8], eax
jle 0x50fdfe
test ecx, ecx
je 0x50fdfe
cmp word [ecx], ax
je 0x50fdfe
mov eax, dword [edi + 4]
test eax, eax
jne 0x50fdef
mov eax, 0x538640
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 0x50fe12
mov ecx, 0x538640
xor eax, eax
cmp dword [edi + 8], eax
jle 0x50fe3f
test ecx, ecx
je 0x50fe3f
cmp word [ecx], ax
je 0x50fe3f
mov edi, dword [edi + 4]
mov eax, edi
test edi, edi
jne 0x50fe30
mov eax, 0x538640
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.0045f600
pop edi
pop esi
pop ebx
pop ebp
ret 0x10

Function at 0x5113b0
Capabilities:
Hide graphical window

Disassembly:
mov eax, dword [ecx + 4]
test eax, eax
je 0x5113c1
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 0x5124d0
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 0x51252e
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 0x512590
Capabilities:
Link many functions at runtime

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

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

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x210
mov eax, dword [0x559024]
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 0x5127d0
cmp dword [ecx + 4], eax
setne al
test eax, eax
jne 0x5127d0
mov ecx, 0x208
lea eax, [ebp - 0x20c]
lea esp, [esp]
mov byte [eax], 0
inc eax
dec ecx
jne 0x512730
push esi
lea eax, [ebp - 0x20c]
push eax
call fcn.005124d0
push 0x104
lea ecx, [ebp - 0x20c]
push ecx
mov esi, eax
call dword [sym.imp.SHELL32.dll_DoEnvironmentSubstW]
test esi, esi
jne 0x51276e
lea edx, [ebp - 0x20c]
push edx
call dword [sym.imp.KERNEL32.dll_GetFileAttributesW]
cmp eax, 0xffffffff
jne 0x5127c1
mov ecx, 0x208
lea eax, [ebp - 0x20c]
lea esp, [esp]
mov byte [eax], 0
inc eax
dec ecx
jne 0x512780
push edi
lea edi, [ebp - 0x210]
mov edx, 0x82
lea ecx, [ebp - 0x20c]
call fcn.00423090
pop edi
test eax, eax
js 0x5127c1
mov ecx, dword [ebp - 0x210]
mov eax, 0x82
sub eax, ecx
lea ecx, [ebp + ecx*2 - 0x20c]
mov edx, str.BrLogAPI.dll
call fcn.004230f0
mov esi, dword [ebx + 4]
lea eax, [ebp - 0x20c]
call fcn.00512590
pop esi
mov ecx, dword [ebp - 4]
xor ecx, ebp
pop ebx
call fcn.00513498
mov esp, ebp
pop ebp
ret
Function at 0x5132fd
Capabilities:
Query environment variable
Query or enumerate registry value

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x118
mov eax, dword [0x559024]
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 0x5133d2
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 0x5133c1
cmp dword [ebp - 0x114], 2
mov byte [ebp - 5], al
lea eax, [ebp - 0x108]
jne 0x5133ab
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 0x5133c1
push eax
push edi
push dword [ebp - 0x110]
call fcn.0051329a
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 0x5133d4
xor eax, eax
mov ecx, dword [ebp - 4]
xor ecx, ebp
pop esi
call fcn.00513498
leave
ret 4

Function at 0x513498
Capabilities:
Terminate process

Disassembly:
cmp ecx, dword [0x559024]
jne 0x5134a2
repz ret
jmp fcn.0051563c

Function at 0x515273
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 0x51529a
call fcn.00516844
mov dword [eax], esi
call fcn.00516831
push 0x16
pop esi
mov dword [eax], esi
call fcn.005167df
mov eax, esi
jmp 0x5152ef
test dword [ebp + 0xc], 0xfffffff9
jne 0x515280
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.dll_GetFileAttributesW]
cmp eax, 0xffffffff
jne 0x5152c7
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
call fcn.00516857
pop ecx
call fcn.00516831
mov eax, dword [eax]
jmp 0x5152ef
test al, 0x10
jne 0x5152ed
test al, 1
je 0x5152ed
test byte [ebp + 0xc], 2
je 0x5152ed
call fcn.00516844
mov dword [eax], 5
call fcn.00516831
mov dword [eax], 0xd
jmp 0x5152be
xor eax, eax
pop esi
pop ebp
ret