joyce8/EMBER2024-capa huggingface dataset:
Function at 0x55fb10
Capabilities:
Read file on windows

Disassembly:
mov eax, dword fs:[0]
push 0xffffffffffffffff
push 0x5c32d0
push eax
mov dword fs:[0], esp
sub esp, 0x8c
mov eax, dword [esp + 0x9c]
push ebx
push esi
xor esi, esi
push esi
push esi
push 3
push esi
push 3
push closesocket
push eax
call dword [sym.imp.KERNEL32.dll_CreateFileW]
mov ebx, eax
cmp ebx, 0xffffffff
jne 0x55fb5d
call dword [sym.imp.KERNEL32.dll_GetLastError]
xor eax, eax
jmp 0x55fc40
push edi
mov ecx, 0x20
xor eax, eax
lea edi, [esp + 0x10]
rep stosd dword es:[edi], eax
lea ecx, [esp + 0xc]
push esi
push ecx
lea edx, [esp + 0x18]
push 0x80
push edx
push ebx
mov dword [esp + 0x20], esi
stosb byte es:[edi], al
call dword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
pop edi
je 0x55fc37
cmp dword [esp + 8], esi
je 0x55fc37
lea eax, [esp + 0xc]
push eax
call fcn.00581768
lea ecx, [esp + 0x10]
push 0x66e854
push ecx
call fcn.0057ea00
add esp, 0xc
test eax, eax
jne 0x55fbd0
lea edx, [esp + 0xc]
push 0x66e84c
push edx
call fcn.0057ea00
add esp, 8
test eax, eax
je 0x55fbd5
mov esi, 1
lea eax, [esp + 0xc]
push 0x66e844
push eax
call fcn.0057ea00
add esp, 8
test eax, eax
jne 0x55fc01
lea ecx, [esp + 0xc]
push 0x66e83c
push ecx
call fcn.0057ea00
add esp, 8
test eax, eax
je 0x55fc06
mov esi, 1
lea edx, [esp + 0xc]
push 0x66e834
push edx
call fcn.0057ea00
add esp, 8
test eax, eax
jne 0x55fc32
lea eax, [esp + 0xc]
push 0x66e82c
push eax
call fcn.0057ea00
add esp, 8
test eax, eax
je 0x55fc37
mov esi, 1
push ebx
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov eax, esi
mov ecx, dword [esp + 0x94]
pop esi
pop ebx
mov dword fs:[0], ecx
add esp, 0x98
ret 4

Function at 0x560140
Capabilities:
Get file size

Disassembly:
push esi
push edi
mov edi, ecx
lea eax, [esp + 0xc]
mov ecx, dword [esp + 0xc]
push eax
push ecx
call dword [sym.imp.KERNEL32.dll_GetFileSize]
mov esi, eax
cmp esi, 0xffffffff
jne 0x56017b
call dword [sym.imp.KERNEL32.dll_GetLastError]
test eax, eax
je 0x56017b
push eax
push 0x66e8ac
mov ecx, edi
call fcn.00561740
xor eax, eax
pop edi
xor edx, edx
pop esi
ret 4
mov edx, dword [esp + 0xc]
push 1
push 0
push 0
push edx
call fcn.00581190
xor ecx, ecx
add eax, esi
pop edi
pop esi
adc edx, ecx
ret 4
Function at 0x5611b0
Capabilities:
Read file on windows

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x5c33a8
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
push ecx
mov eax, 0x2760
call fcn.0057ed50
push ebx
push esi
mov esi, ecx
push edi
xor ebx, ebx
lea ecx, [ebp - 0x60]
mov dword [ebp - 0x10], esp
mov dword [ebp - 0x14], esi
mov dword [ebp - 4], ebx
call fcn.005620a0
mov eax, dword [esi + 0x1c]
mov ecx, dword [esi + 0x18]
test eax, eax
mov byte [ebp - 4], 1
mov edi, 0x2710
jg 0x561231
jl 0x561204
cmp ecx, edi
jae 0x561231
mov edx, dword [esi + 0x14]
test edx, edx
jne 0x56122d
lea ecx, [ebp - 0x60]
mov byte [ebp - 4], 0
call fcn.005620d0
mov eax, 3
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
mov edi, ecx
mov ebx, eax
mov edx, dword [esi + 0x10]
lea eax, [ebp - 0x18]
push 0
push eax
lea ecx, [ebp - 0x2770]
push edi
push ecx
push edx
call dword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
je 0x5612af
mov eax, dword [ebp - 0x18]
test eax, eax
je 0x5612af
push ebx
lea eax, [ebp - 0x2770]
push edi
push eax
lea ecx, [ebp - 0x60]
call fcn.005620e0
cmp eax, 0xa
jne 0x5612c2
mov ecx, dword [ebp - 0x48]
mov edx, dword [ebp - 0x24]
mov eax, dword [ebp - 0x28]
push ecx
mov ecx, dword [ebp - 0x54]
push edx
mov edx, dword [ebp - 0x58]
push eax
mov eax, dword [0x67abb8]
push ecx
push edx
add esi, 8
push eax
push esi
call fcn.00593b08
add esp, 0x1c
lea ecx, [ebp - 0x60]
mov byte [ebp - 4], 0
call fcn.005620d0
xor eax, eax
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
push 0x66e9f0
mov ecx, esi
call fcn.00561740
lea ecx, [ebp - 0x60]
mov byte [ebp - 4], 0
call fcn.005620d0
mov ecx, dword [ebp - 0xc]
pop edi
pop esi
mov eax, 1
mov dword fs:[0], ecx
pop ebx
mov esp, ebp
pop ebp
ret

Function at 0x561300
Capabilities:
Check if file exists

Disassembly:
mov eax, dword [esp + 4]
push esi
push 0
push 0
push 3
push 0
push 3
push closesocket
mov esi, ecx
push eax
call dword [sym.imp.KERNEL32.dll_CreateFileW]
cmp eax, 0xffffffff
mov dword [esi + 0x10], eax
jne 0x561343
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 2
je 0x56133d
push eax
push 0x66ea28
mov ecx, esi
call fcn.00561740
xor al, al
pop esi
ret 8
push eax
mov ecx, esi
call fcn.00560140
mov ecx, dword [esp + 0xc]
mov dword [esi + 0x18], eax
mov dword [esi + 0x1c], edx
mov dword [esi + 0x14], ecx
mov al, 1
pop esi
ret 8
Function at 0x5614f0
Capabilities:
Read file on windows

Disassembly:
push 0xffffffffffffffff
push 0x5c33e6
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x150
push ebp
push esi
mov esi, ecx
push edi
lea ecx, [esp + 0x14]
call fcn.00561d60
mov eax, dword [esi + 0x1c]
mov dword [esp + 0x164], 0
test eax, eax
jg 0x56155e
jl 0x561536
cmp dword [esi + 0x18], 0x80
jae 0x56155e
mov esi, dword [esi + 0x14]
lea ecx, [esp + 0x14]
neg esi
sbb esi, esi
mov dword [esp + 0x164], 0xffffffff
and esi, 0xfffffffe
add esi, 3
call fcn.00561e60
mov eax, esi
jmp 0x56171a
mov eax, dword [esi + 0x10]
push 2
push 0
push 0xffffffffffffff80
push eax
call dword [sym.imp.KERNEL32.dll_SetFilePointer]
mov edi, dword [sym.imp.KERNEL32.dll_GetLastError]
or ebp, 0xffffffff
cmp eax, ebp
jne 0x56158c
call edi
test eax, eax
je 0x56158c
push eax
push 0x66ead4
jmp 0x5616fe
mov eax, dword [esi + 0x10]
lea ecx, [esp + 0x10]
push 0
push ecx
lea edx, [esp + 0xcc]
push 0x80
push edx
push eax
call dword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
je 0x5616f6
mov eax, dword [esp + 0x10]
test eax, eax
je 0x5616f6
lea ecx, [esp + 0x14]
call fcn.00561ed0
cmp eax, 0x51
jne 0x561705
lea ecx, [esp + 0x64]
call fcn.00593b1b
mov ecx, dword [esp + 0x64]
mov eax, dword [ecx - 8]
test eax, eax
je 0x5615ff
lea edi, [esi + 8]
push 0x67abcc
mov ecx, edi
call fcn.0059b07b
lea edx, [esp + 0x64]
mov ecx, edi
push edx
call fcn.0059b07b
lea ecx, [esp + 0x6c]
call fcn.00593b1b
mov eax, dword [esp + 0x6c]
mov ecx, dword [eax - 8]
test ecx, ecx
je 0x56162e
lea edi, [esi + 8]
push 0x67abc8
mov ecx, edi
call fcn.0059b07b
lea ecx, [esp + 0x6c]
push ecx
mov ecx, edi
call fcn.0059b07b
lea ecx, [esp + 0x68]
call fcn.00593b1b
mov edx, dword [esp + 0x68]
mov eax, dword [edx - 8]
test eax, eax
je 0x56165d
lea edi, [esi + 8]
push 0x67abc4
mov ecx, edi
call fcn.0059b07b
lea eax, [esp + 0x68]
mov ecx, edi
push eax
call fcn.0059b07b
lea ecx, [esp + 0x5c]
push ecx
lea ecx, [esp + 0x10]
call fcn.0059adab
lea ecx, [esp + 0xc]
mov byte [esp + 0x164], 1
call fcn.00593b1b
mov edx, dword [esp + 0xc]
mov eax, dword [edx - 8]
test eax, eax
je 0x5616a2
lea edi, [esi + 8]
push 0x66c1ac
mov ecx, edi
call fcn.0059b03f
lea eax, [esp + 0xc]
mov ecx, edi
push eax
call fcn.0059b07b
lea ecx, [esp + 0x70]
call fcn.00593b1b
mov ecx, dword [esp + 0x70]
mov eax, dword [ecx - 8]
test eax, eax
je 0x5616d1
add esi, 8
push 0x67abc0
mov ecx, esi
call fcn.0059b07b
lea edx, [esp + 0x70]
mov ecx, esi
push edx
call fcn.0059b07b
lea ecx, [esp + 0xc]
mov byte [esp + 0x164], 0
call fcn.0059ad3d
lea ecx, [esp + 0x14]
mov dword [esp + 0x164], ebp
call fcn.00561e60
xor eax, eax
jmp 0x56171a
call edi
push eax
push 0x66ea9c
mov ecx, esi
call fcn.00561740
lea ecx, [esp + 0x14]
mov dword [esp + 0x164], ebp
call fcn.00561e60
mov eax, 1
mov ecx, dword [esp + 0x15c]
pop edi
pop esi
pop ebp
mov dword fs:[0], ecx
add esp, 0x15c
ret
Function at 0x565ec0
Capabilities:
Send data
Send data on socket

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x5c3910
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x30
push ebx
push esi
mov esi, ecx
lea edx, [ebp - 0x30]
lea ecx, [ebp - 0x14]
push edi
mov eax, 1
mov dword [ebp - 0x28], ecx
mov dword [ebp - 0x34], edx
mov edx, dword [ebp + 0xc]
lea ecx, [ebp - 0x3c]
mov dword [ebp - 0x10], esp
mov dword [ebp - 0x14], eax
mov dword [ebp - 0x38], eax
mov eax, dword [esi + 0x80]
xor ebx, ebx
push ecx
push edx
mov dword [ebp - 0x18], esi
mov dword [ebp - 0x2c], 2
mov dword [ebp - 0x30], 4
mov dword [ebp - 0x3c], ebx
mov dword [ebp - 4], ebx
call dword [eax + 0x354]
mov edi, eax
mov dword [ebp - 4], 0xffffffff
cmp edi, ebx
jl 0x565fe3
lea eax, [ebp - 0x30]
lea edx, [ebp - 0x24]
mov dword [ebp - 0x34], eax
lea eax, [ebp - 0x1c]
push edx
push eax
mov eax, dword [ebp + 0xc]
lea edx, [ebp - 0x3c]
push edx
push eax
mov ecx, dword [esi + 0x80]
push ebx
push ebx
push 0x10
push ebx
push 0xc11c
push ebx
push eax
mov eax, dword [ebp + 8]
mov dword [ebp - 0x28], ebx
push eax
mov dword [ebp - 0x2c], 2
mov dword [ebp - 0x30], ebx
mov dword [ebp - 0x38], 1
mov dword [ebp - 0x3c], ebx
call dword [ecx + 0x344]
mov edi, eax
cmp edi, ebx
jl 0x565fe3
mov eax, dword [ebp - 0x28]
cmp eax, ebx
mov dword [ebp + 8], eax
je 0x565fe3
mov ecx, dword [ebp - 0x30]
cmp ecx, ebx
je 0x565fe3
push ebx
push ecx
mov ecx, dword [esi + 0x30c4]
push eax
push ecx
call sub.WSOCK32.dll_send
cmp eax, 0xffffffff
je 0x565fce
cmp eax, ebx
je 0x565fce
push 0x66fd10
mov ecx, esi
call fcn.00508d80
mov eax, dword [ebp + 8]
mov edx, dword [esi + 0x80]
push eax
call dword [edx + 0x36c]
jmp 0x565fe3
call sub.WSOCK32.dll_WSAGetLastError
mov edi, eax
jmp 0x565fe3
mov edx, dword [ebp + 0xc]
mov ecx, dword [esi + 0x80]
push edx
call dword [ecx + 0x350]
mov eax, dword [esi + 0x80]
add esi, 0x31e4
push esi
call dword [eax + 0x33c]
mov ecx, dword [ebp - 0xc]
mov eax, edi
pop edi
pop esi
mov dword fs:[0], ecx
pop ebx
mov esp, ebp
pop ebp
ret 8
Function at 0x56eb90
Capabilities:
Delete file

Disassembly:
push 0xffffffffffffffff
push 0x5c3ad0
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x3c
mov eax, dword [0x6754d4]
push ebx
xor ebx, ebx
push esi
push edi
mov esi, ecx
mov dword [esp + 0x10], eax
mov dword [esp + 0x14], ebx
mov dword [esp + 0x1c], ebx
mov word [esp + 0x18], bx
mov dword [esp + 0x20], eax
mov dword [esp + 0x24], eax
mov dword [esp + 0x28], eax
mov dword [esp + 0x50], ebx
mov dword [esp + 0xc], eax
mov eax, dword [esi + 0x60]
xor edi, edi
cmp eax, ebx
mov byte [esp + 0x50], 1
jle 0x56ec37
push ebp
mov ebp, dword [sym.imp.KERNEL32.dll_DeleteFileW]
lea eax, [esp + 0x14]
push 1
lea ecx, [esp + 0x14]
push eax
push ecx
push edi
mov ecx, esi
call fcn.0056df80
test al, al
je 0x56ec2e
mov eax, dword [esp + 0x18]
cmp eax, ebx
jne 0x56ec12
lea eax, [esp + 0x1c]
push eax
call fcn.0057e90a
add esp, 4
test eax, eax
jbe 0x56ec2e
mov eax, dword [esp + 0x18]
cmp eax, ebx
jne 0x56ec2b
lea eax, [esp + 0x1c]
push eax
call ebp
mov eax, dword [esi + 0x60]
inc edi
cmp edi, eax
jl 0x56ebee
pop ebp
lea ecx, [esi + 0x70]
call fcn.0056d350
lea ecx, [esi + 0x50]
call fcn.0056d640
mov al, byte [esp + 0x58]
mov dword [esi + 0x60], ebx
cmp al, bl
je 0x56ec65
mov eax, dword [esi + 0x64]
cmp eax, ebx
jne 0x56ec5c
lea eax, [esi + 0x68]
push ebx
push eax
mov ecx, esi
call fcn.0056e740
lea ecx, [esp + 0xc]
mov byte [esp + 0x50], bl
call fcn.0059ad3d
lea ecx, [esp + 0x28]
mov dword [esp + 0x50], 5
call fcn.0059ad3d
lea ecx, [esp + 0x24]
mov byte [esp + 0x50], 4
call fcn.0059ad3d
lea ecx, [esp + 0x20]
mov byte [esp + 0x50], 3
call fcn.0059ad3d
lea ecx, [esp + 0x14]
mov byte [esp + 0x50], 2
call fcn.00401070
lea ecx, [esp + 0x10]
mov dword [esp + 0x50], 0xffffffff
call fcn.0059ad3d
mov ecx, dword [esp + 0x48]
pop edi
pop esi
pop ebx
mov dword fs:[0], ecx
add esp, 0x48
ret 4
Function at 0x571040
Capabilities:
Delete file

Disassembly:
push 0xffffffffffffffff
push 0x5c3d88
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x30
push ebx
push esi
mov esi, ecx
mov dword [esp + 0x10], esi
call fcn.005730b0
mov ecx, esi
call fcn.00572860
mov eax, dword [esi + 0xbc]
xor ebx, ebx
cmp eax, ebx
mov dword [esp + 8], ebx
jle 0x571202
push ebp
push edi
xor edi, edi
mov dword [esp + 0x14], edi
mov ebp, dword [esi + 0xc4]
mov eax, edi
add eax, ebp
mov ecx, dword [eax]
cmp ecx, ebx
je 0x57109c
mov eax, ecx
jmp 0x57109f
add eax, 4
push eax
call dword [sym.imp.KERNEL32.dll_DeleteFileW]
xor edx, edx
mov dword [esp + 0x24], ebx
mov dword [esp + 0x1c], edx
mov word [esp + 0x20], bx
mov ecx, dword [esi + 0xc4]
mov eax, edi
add eax, ecx
mov dword [esp + 0x48], ebx
mov ecx, dword [eax]
cmp ecx, ebx
jne 0x5710cc
lea ecx, [eax + 4]
mov eax, 0x671194
test eax, eax
je 0x5711c0
cmp ecx, ebx
je 0x5711c0
push ecx
lea ecx, [esp + 0x2c]
mov dword [esp + 0x2c], ebx
mov dword [esp + 0x34], ebx
mov word [esp + 0x30], bx
call fcn.00401fc0
lea ecx, [esp + 0x1c]
mov byte [esp + 0x48], 1
call fcn.00401070
push ebx
push 0x671194
lea ecx, [esp + 0x3c]
mov dword [esp + 0x3c], ebx
mov dword [esp + 0x44], ebx
mov word [esp + 0x40], bx
call fcn.004028e0
mov eax, dword [esp + 0x28]
mov byte [esp + 0x48], 2
cmp eax, ebx
jne 0x571133
lea eax, [esp + 0x2c]
mov esi, dword [esp + 0x3c]
push eax
call fcn.0057e90a
lea esi, [eax + esi + 2]
lea ebp, [esi + esi]
push ebp
call fcn.005970d9
mov edi, eax
add esp, 8
cmp edi, ebx
mov dword [esp + 0x1c], edi
je 0x571199
mov ecx, ebp
xor eax, eax
mov edx, ecx
shr ecx, 2
rep stosd dword es:[edi], eax
mov ecx, edx
and ecx, 3
rep stosb byte es:[edi], al
lea ecx, [esp + 0x28]
call fcn.00401fb0
push eax
lea ecx, [esp + 0x38]
call fcn.00401fb0
push eax
mov eax, dword [esp + 0x24]
push esi
push eax
call fcn.0057e89a
mov ecx, dword [esp + 0x2c]
push ecx
call fcn.0057e90a
add esp, 0x14
mov dword [esp + 0x24], eax
lea ecx, [esp + 0x34]
mov byte [esp + 0x48], 1
call fcn.00401070
lea ecx, [esp + 0x28]
mov byte [esp + 0x48], bl
call fcn.00401070
mov edx, dword [esp + 0x1c]
mov esi, dword [esp + 0x18]
mov edi, dword [esp + 0x14]
cmp edx, ebx
mov eax, edx
jne 0x5711ca
lea eax, [esp + 0x20]
push eax
call dword [sym.imp.KERNEL32.dll_DeleteFileW]
lea ecx, [esp + 0x1c]
mov dword [esp + 0x48], 0xffffffff
call fcn.00401070
mov eax, dword [esp + 0x10]
mov ecx, dword [esi + 0xbc]
inc eax
add edi, 0xc
cmp eax, ecx
mov dword [esp + 0x10], eax
mov dword [esp + 0x14], edi
jl 0x571088
pop edi
pop ebp
mov ecx, dword [esp + 0x38]
pop esi
pop ebx
mov dword fs:[0], ecx
add esp, 0x3c
ret
Function at 0x5736b0
Capabilities:
Get disk size

Disassembly:
mov ecx, dword [esp + 4]
sub esp, 0x2c
lea eax, [esp + 0xc]
push 0
push 0
push 0
push eax
push ecx
call fcn.0057f69a
mov al, byte [0x67b218]
add esp, 0x14
test al, 1
jne 0x573718
or al, 1
push 0x6686bc
mov byte [0x67b218], al
call dword [sym.imp.KERNEL32.dll_GetModuleHandleA]
test eax, eax
mov dword [0x67b210], eax
je 0x57370e
push 0x669008
push eax
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
test eax, eax
mov dword [0x67b20c], eax
mov dword [0x67b214], 1
jne 0x573718
mov dword [0x67b214], 0
mov eax, dword [0x67b214]
push esi
push edi
or esi, 0xffffffff
or edi, 0xffffffff
test eax, eax
je 0x573751
lea edx, [esp + 0x24]
lea eax, [esp + 0x2c]
push edx
lea ecx, [esp + 0x20]
push eax
lea edx, [esp + 0x1c]
push ecx
push edx
call dword [0x67b20c]
test eax, eax
je 0x573784
mov esi, dword [esp + 0x1c]
mov edi, dword [esp + 0x20]
jmp 0x573784
lea eax, [esp + 0x10]
lea ecx, [esp + 0xc]
push eax
lea edx, [esp + 0xc]
push ecx
lea eax, [esp + 0x40]
push edx
lea ecx, [esp + 0x20]
push eax
push ecx
call dword [sym.imp.KERNEL32.dll_GetDiskFreeSpaceW]
test eax, eax
je 0x573784
mov esi, dword [esp + 0x38]
imul esi, dword [esp + 8]
imul esi, dword [esp + 0xc]
xor edi, edi
cmp edi, dword [esp + 0x40]
jg 0x5737a1
jl 0x573792
cmp esi, dword [esp + 0x3c]
ja 0x5737a1
and esi, edi
cmp esi, 0xffffffff
je 0x5737a1
pop edi
xor al, al
pop esi
add esp, 0x2c
ret
pop edi
mov al, 1
pop esi
add esp, 0x2c
ret

Function at 0x573840
Capabilities:
Get file size

Disassembly:
push ebx
push ebp
push esi
push edi
mov esi, ecx
call fcn.00573b70
mov al, byte [esp + 0x18]
mov ebp, dword [esp + 0x14]
neg al
sbb eax, eax
mov ebx, dword [sym.imp.KERNEL32.dll_CreateFileW]
and eax, 2
push 0
add eax, 2
push 0
mov edi, eax
push edi
push 0
push 3
push 0xc0000000
push ebp
call ebx
cmp eax, 0xffffffff
mov dword [esi + 0x10], eax
jne 0x57388b
call dword [sym.imp.KERNEL32.dll_GetLastError]
pop edi
pop esi
pop ebp
pop ebx
ret 8
push 0
push 0
push edi
push 0
push 3
push 0xc0000000
push ebp
call ebx
cmp eax, 0xffffffff
mov dword [esi + 0x2c], eax
jne 0x5738bc
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov ecx, esi
mov edi, eax
call fcn.00573b70
mov eax, edi
pop edi
pop esi
pop ebp
pop ebx
ret 8
mov al, byte [esp + 0x18]
test al, al
je 0x57392f
mov edx, dword [esi + 0x10]
lea ecx, [esp + 0x18]
push ecx
push edx
call dword [sym.imp.KERNEL32.dll_GetFileSize]
mov dword [esi + 8], eax
mov dword [esi + 0xc], 0
cmp dword [esi + 8], 0xffffffff
jne 0x573906
mov eax, dword [esi + 0xc]
test eax, eax
jne 0x573906
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov edi, eax
test edi, edi
je 0x573906
mov ecx, esi
call fcn.00573b70
mov eax, edi
pop edi
pop esi
pop ebp
pop ebx
ret 8
mov eax, dword [esp + 0x18]
push 1
push 0
push 0
push eax
call fcn.00581190
mov ecx, dword [esi + 8]
pop edi
add ecx, eax
mov dword [esi + 8], ecx
mov eax, dword [esi + 0xc]
adc eax, edx
mov dword [esi + 0xc], eax
pop esi
pop ebp
xor eax, eax
pop ebx
ret 8
xor eax, eax
pop edi
mov dword [esi + 8], eax
mov dword [esi + 0xc], eax
pop esi
pop ebp
pop ebx
ret 8
Function at 0x58ac08
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x1a4
mov edx, dword [ebp + 8]
xor ecx, ecx
mov eax, 0x6792a8
cmp edx, dword [eax]
je 0x58ac2a
add eax, 8
inc ecx
cmp eax, 0x679338
jl 0x58ac1b
push esi
mov esi, ecx
shl esi, 3
cmp edx, dword [esi + 0x6792a8]
jne 0x58ad58
mov eax, dword [0x67d388]
cmp eax, 1
je 0x58ad32
test eax, eax
jne 0x58ac5b
cmp dword [0x676834], 1
je 0x58ad32
cmp edx, 0xfc
je 0x58ad58
lea eax, [ebp - 0x1a4]
push 0x104
push eax
push 0
call dword [sym.imp.KERNEL32.dll_GetModuleFileNameA]
test eax, eax
jne 0x58ac92
lea eax, [ebp - 0x1a4]
push 0x61b7e4
push eax
call fcn.0058af20
pop ecx
pop ecx
lea eax, [ebp - 0x1a4]
push edi
push eax
lea edi, [ebp - 0x1a4]
call fcn.005830b0
inc eax
pop ecx
cmp eax, 0x3c
jbe 0x58acd5
lea eax, [ebp - 0x1a4]
push eax
call fcn.005830b0
mov edi, eax
lea eax, [ebp - 0x1a4]
sub eax, 0x3b
push 3
add edi, eax
push 0x61b7e0
push edi
call fcn.0057ee60
add esp, 0x10
lea eax, [ebp - 0xa0]
push 0x61b7c4
push eax
call fcn.0058af20
lea eax, [ebp - 0xa0]
push edi
push eax
call fcn.0058af30
lea eax, [ebp - 0xa0]
push 0x66bc8c
push eax
call fcn.0058af30
push dword [esi + 0x6792ac]
lea eax, [ebp - 0xa0]
push eax
call fcn.0058af30
push 0x12010
lea eax, [ebp - 0xa0]
push 0x61b79c
push eax
call fcn.0058e0e4
add esp, 0x2c
pop edi
jmp 0x58ad58
lea eax, [ebp + 8]
lea esi, [esi + 0x6792ac]
push 0
push eax
push dword [esi]
call fcn.005830b0
pop ecx
push eax
push dword [esi]
push 0xfffffffffffffff4
call dword [sym.imp.KERNEL32.dll_GetStdHandle]
push eax
call dword [sym.imp.KERNEL32.dll_WriteFile]
pop esi
leave
ret
Function at 0x592b70
Capabilities:
Get graphical window text

Disassembly:
push ebp
mov ebp, esp
sub esp, 8
push ebx
push esi
push edi
mov esi, dword [ebp + 0x10]
push 0xf00021
mov edx, dword [esi + 4]
mov ecx, dword [esi]
mov eax, dword [esi + 0xc]
sub eax, edx
push eax
mov eax, dword [esi + 8]
sub eax, ecx
push eax
push edx
push ecx
mov ecx, dword [ebp + 0xc]
push ecx
call dword [sym.imp.GDI32.dll_PatBlt]
mov edi, dword [ebp + 8]
push edi
call dword [sym.imp.USER32.dll_GetWindowTextLengthA]
mov ebx, eax
lea eax, [eax + 5]
add eax, 3
and eax, 0xfffffffc
call fcn.0057ed50
mov dword [ebp - 4], esp
cmp dword [ebp - 4], 0
je 0x592c3b
add ebx, 2
mov eax, dword [ebp - 4]
push ebx
push eax
push edi
call dword [sym.imp.USER32.dll_GetWindowTextA]
test eax, eax
je 0x592c3b
mov bx, 0x140
mov edi, dword [ebp + 0x14]
mov eax, edi
and al, 0xf
cmp al, 0xc
je 0x592bee
mov ebx, edi
and bx, 0xf
or bx, 0x150
test edi, 0x80
je 0x592bf9
or bh, 8
and edi, 0x8000000
je 0x592c14
mov eax, dword [0x67eadc]
mov ecx, dword [ebp + 0xc]
push eax
push ecx
call dword [sym.imp.GDI32.dll_SetTextColor]
mov dword [ebp - 8], eax
mov ecx, dword [ebp - 4]
mov edx, dword [ebp + 0xc]
movzx eax, bx
push eax
push esi
push 0xffffffffffffffff
push ecx
push edx
call dword [sym.imp.USER32.dll_DrawTextA]
test edi, edi
je 0x592c3b
mov eax, dword [ebp - 8]
mov ecx, dword [ebp + 0xc]
push eax
push ecx
call dword [sym.imp.GDI32.dll_SetTextColor]
lea esp, [ebp - 0x14]
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x596952
Capabilities:
Extract resource via kernel32 functions

Disassembly:
push ebx
mov ebx, dword [esp + 8]
push esi
mov eax, ebx
push edi
mov edi, ecx
shr eax, 0x10
test ax, ax
mov dword [edi + 0x40], ebx
jne 0x596974
cmp dword [edi + 0x3c], 0
jne 0x596974
movzx eax, bx
mov dword [edi + 0x3c], eax
call fcn.005a4ddf
mov esi, dword [eax + 0xc]
push 5
push ebx
push esi
call dword [sym.imp.KERNEL32.dll_FindResourceA]
push eax
push esi
call dword [sym.imp.KERNEL32.dll_LoadResource]
push esi
mov ecx, edi
push dword [esp + 0x18]
push eax
call fcn.005969a1
pop edi
pop esi
pop ebx
ret 8

Function at 0x597feb
Capabilities:
Get graphical window text

Disassembly:
push esi
mov esi, ecx
mov ecx, dword [esi + 0x38]
test ecx, ecx
jne 0x598023
push dword [esi + 0x1c]
call dword [sym.imp.USER32.dll_GetWindowTextLengthA]
lea ecx, [eax + 1]
push ecx
mov ecx, dword [esp + 0xc]
push eax
call fcn.0059b10a
push eax
push dword [esi + 0x1c]
call dword [sym.imp.USER32.dll_GetWindowTextA]
mov ecx, dword [esp + 8]
push 0xffffffffffffffff
call fcn.0059b0e2
jmp 0x59802f
mov eax, dword [ecx]
push dword [esp + 8]
call dword [eax + 0x88]
pop esi
ret 4

Function at 0x598033
Capabilities:
Get graphical window text

Disassembly:
push esi
push edi
mov edi, dword [esp + 0x10]
mov esi, ecx
push 0x67cc18
mov ecx, edi
call fcn.0059aec6
cmp dword [esi + 0x34], 0
push dword [esp + 0xc]
jne 0x598086
push dword [esi + 0x1c]
call dword [sym.imp.USER32.dll_GetDlgItem]
mov esi, eax
test esi, esi
je 0x598099
push esi
call dword [sym.imp.USER32.dll_GetWindowTextLengthA]
lea ecx, [eax + 1]
push ecx
push eax
mov ecx, edi
call fcn.0059b10a
push eax
push esi
call dword [sym.imp.USER32.dll_GetWindowTextA]
push 0xffffffffffffffff
mov ecx, edi
call fcn.0059b0e2
jmp 0x598099
mov ecx, esi
call fcn.0059a141
test eax, eax
je 0x598099
push edi
mov ecx, eax
call fcn.00597feb
mov eax, dword [edi]
pop edi
pop esi
mov eax, dword [eax - 8]
ret 8

Function at 0x5998d7
Capabilities:
Extract resource via kernel32 functions

Disassembly:
push ebx
push esi
push edi
xor edi, edi
cmp dword [esp + 0x10], edi
mov ebx, ecx
je 0x599919
call fcn.005a4ddf
mov esi, dword [eax + 0xc]
push 0xf0
push dword [esp + 0x14]
push esi
call dword [sym.imp.KERNEL32.dll_FindResourceA]
cmp eax, edi
je 0x599919
push eax
push esi
call dword [sym.imp.KERNEL32.dll_LoadResource]
cmp eax, edi
jne 0x599910
xor eax, eax
jmp 0x599921
push eax
call dword [sym.imp.KERNEL32.dll_LockResource]
mov edi, eax
push edi
mov ecx, ebx
call fcn.00599927
pop edi
pop esi
pop ebx
ret 4