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

Disassembly:
mov eax, dword [0x55f48c]
sub esp, 0x6c
mov ecx, dword [esp + 0x74]
mov edx, dword [esp + 0x70]
push ebp
mov ebp, dword [esp + 0x7c]
push esi
push edi
push 0
push eax
push 0
push ebp
push 0x10
push 0xb4
push 0
push 0
push ecx
push 0
push 0x5483a0
push edx
call dword [sym.imp.USER32.dll_CreateWindowExW]
mov esi, eax
mov eax, dword [0x556508]
test eax, eax
jne 0x42f216
push 0x11
call dword [sym.imp.GDI32.dll_GetStockObject]
mov edx, eax
mov ecx, 0x17
xor eax, eax
lea edi, [esp + 0x1c]
rep stosd dword es:[edi], eax
lea eax, [esp + 0x1c]
push eax
push 0x5c
push edx
call dword [sym.imp.GDI32.dll_GetObjectW]
lea ecx, [esp + 0x1c]
mov byte [esp + 0x30], 0
push ecx
mov byte [esp + 0x37], 1
mov byte [esp + 0x3a], 2
call dword [sym.imp.GDI32.dll_CreateFontIndirectW]
mov dword [0x556508], eax
mov edi, dword [sym.imp.USER32.dll_SendMessageW]
push 0
push 0x14
push 0x41e
push esi
call edi
push 0x100010
push 0
push 0x420
push esi
call edi
mov eax, dword [esp + 0x88]
test eax, eax
je 0x42f2aa
push eax
push ebp
call dword [sym.imp.USER32.dll_GetDlgItem]
xor edx, edx
mov edi, eax
mov dword [esp + 0x10], edx
mov dword [esp + 0xc], 0
mov dword [esp + 0x14], edx
push edx
push edi
mov dword [esp + 0x20], edx
call dword [sym.imp.USER32.dll_ShowWindow]
lea eax, [esp + 0xc]
push eax
push edi
call dword [sym.imp.USER32.dll_GetWindowRect]
mov edi, dword [sym.imp.USER32.dll_ScreenToClient]
lea ecx, [esp + 0xc]
push ecx
push ebp
call edi
lea edx, [esp + 0x14]
push edx
push ebp
call edi
mov ecx, dword [esp + 0x14]
mov eax, dword [esp + 0xc]
mov edx, dword [esp + 0x10]
push 0
sub ecx, eax
push 0x10
push ecx
push edx
push eax
push 0
push esi
call dword [sym.imp.USER32.dll_SetWindowPos]
mov eax, esi
pop edi
pop esi
pop ebp
add esp, 0x6c
Function at 0x47f850
Capabilities:
Get disk information

Disassembly:
sub esp, 0x10
push ebx
push ebp
push esi
push edi
call dword [sym.imp.KERNEL32.dll_GetLogicalDrives]
mov dword [esp + 0x1c], eax
mov eax, dword [0x55b5b0]
xor edi, edi
cmp eax, edi
je 0x47f6c1
mov eax, dword [0x55b5b8]
xor esi, esi
cmp eax, edi
jle 0x47f6ac
mov eax, dword [0x55b5b0]
lea ecx, [eax + esi*4]
call fcn.00405700
mov ecx, dword [0x55b5b4]
lea ecx, [ecx + esi*4]
call fcn.00405700
mov eax, dword [0x55b5b8]
inc esi
cmp esi, eax
jl 0x47f687
mov edx, dword [0x55b5b0]
push edx
call fcn.005329d2
add esp, 4
mov dword [0x55b5b0], edi
mov eax, dword [0x55b5b4]
cmp eax, edi
je 0x47f6d9
push eax
call fcn.005329d2
add esp, 4
mov dword [0x55b5b4], edi
xor esi, esi
mov dword [0x55b5b8], edi
mov dword [esp + 0x14], 1
mov dword [esp + 0x18], esi
mov eax, dword [esp + 0x1c]
mov ecx, dword [esp + 0x14]
test eax, ecx
je 0x47f823
mov ecx, dword [0x547570]
push 1
mov dword [esp + 0x14], ecx
lea ecx, [esp + 0x14]
call fcn.00405530
test eax, eax
je 0x47f720
mov edx, dword [esp + 0x10]
add esi, 0x41
mov word [edx], si
mov eax, dword [esp + 0x10]
lea esi, [eax - 0xc]
mov eax, dword [eax - 0xc]
cmp eax, 1
jle 0x47f765
lea ecx, [esp + 0x10]
call fcn.004124c0
mov ecx, dword [esi + 4]
push ecx
lea ecx, [esp + 0x14]
call fcn.00405530
test eax, eax
je 0x47f765
mov edx, dword [esi + 4]
mov edi, dword [esp + 0x10]
add esi, 0xc
lea ecx, [edx + edx + 2]
mov eax, ecx
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, eax
and ecx, 3
rep movsb byte es:[edi], byte [esi]
mov ecx, dword [esp + 0x10]
push ecx
call dword [sym.imp.USER32.dll_CharUpperW]
mov eax, dword [esp + 0x10]
push ecx
mov ebx, esp
mov ecx, dword [eax - 0xc]
test ecx, ecx
jl 0x47f790
mov dword [ebx], eax
mov edx, dword [esp + 0x14]
add edx, 0xfffffff4
push edx
call dword [sym.imp.KERNEL32.dll_InterlockedIncrement]
jmp 0x47f7dd
mov eax, dword [0x547570]
mov dword [ebx], eax
mov eax, dword [esp + 0x14]
test eax, eax
mov esi, eax
jne 0x47f7a5
xor ebp, ebp
jmp 0x47f7ae
push eax
call dword [sym.imp.KERNEL32.dll_lstrlenW]
mov ebp, eax
push ebp
mov ecx, ebx
call fcn.00405660
test eax, eax
je 0x47f7dd
mov edi, dword [ebx]
lea eax, [ebp + ebp]
mov ecx, eax
mov edx, ecx
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, edx
and ecx, 3
rep movsb byte es:[edi], byte [esi]
mov ecx, dword [ebx]
mov dword [ecx - 8], ebp
mov edx, dword [ebx]
mov word [edx + eax], 0
push ecx
lea eax, [esp + 0x18]
mov ecx, esp
push eax
call fcn.00405440
mov ecx, 0x55b5b0
call fcn.00456ab0
mov eax, dword [esp + 0x10]
mov edx, dword [0x547574]
lea ecx, [eax - 0xc]
cmp ecx, edx
je 0x47f823
add eax, 0xfffffff4
push eax
call dword [sym.imp.KERNEL32.dll_InterlockedDecrement]
test eax, eax
jg 0x47f823
mov edx, dword [esp + 0x10]
add edx, 0xfffffff4
push edx
call fcn.00532222
add esp, 4
mov edx, dword [esp + 0x14]
mov esi, dword [esp + 0x18]
shl edx, 1
inc esi
mov dword [esp + 0x14], edx
cmp esi, 0x1a
mov dword [esp + 0x18], esi
jl 0x47f6ed
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x10
jmp 0x47f660
Function at 0x48c8d0
Capabilities:
Create thread

Disassembly:
push ebx
push ebp
push edi
push 0x2c
call fcn.00532695
xor edi, edi
add esp, 4
cmp eax, edi
je 0x48c8ee
mov ecx, eax
call fcn.0048bf30
mov ebx, eax
jmp 0x48c8f0
xor ebx, ebx
mov eax, dword [esp + 0x14]
mov ecx, dword [esp + 0x2c]
mov edx, dword [esp + 0x18]
mov ebp, dword [esp + 0x10]
mov dword [ebx + 8], eax
mov eax, dword [esp + 0x1c]
mov dword [ebx + 0x14], ecx
mov ecx, dword [esp + 0x20]
mov dword [ebx + 0xc], edx
mov dword [ebx + 0x10], eax
mov edx, dword [ecx]
cmp ebp, edi
mov dword [ebx + 0x18], edx
jne 0x48c92c
lea ecx, [esp + 0x24]
call fcn.00510740
pop edi
pop ebp
xor eax, eax
pop ebx
push esi
lea esi, [esp + 0x28]
neg esi
sbb esi, esi
lea eax, [esp + 0x2c]
and esi, eax
mov eax, dword [0x554e40]
cmp eax, edi
jne 0x48c951
push 0x554e40
call dword [sym.imp.SHELL32.dll_SHGetMalloc]
jmp 0x48c957
mov ecx, dword [eax]
push eax
call dword [ecx + 4]
mov ecx, dword [ebx + 0x20]
mov dword [ebx + 0x20], edi
mov eax, dword [0x554e40]
push ecx
push eax
mov edx, dword [eax]
call dword [edx + 0x14]
mov eax, dword [0x554e40]
cmp eax, edi
je 0x48c982
mov ecx, dword [eax]
push eax
call dword [ecx + 8]
test eax, eax
jne 0x48c982
mov dword [0x554e40], edi
mov dword [ebx + 0x20], edi
mov eax, dword [esi]
cmp eax, edi
je 0x48c9fa
mov eax, dword [0x554e40]
cmp eax, edi
jne 0x48c9a1
push 0x554e40
call dword [sym.imp.SHELL32.dll_SHGetMalloc]
jmp 0x48c9a7
mov edx, dword [eax]
push eax
call dword [edx + 4]
mov eax, dword [0x554e40]
mov edx, dword [esi]
push edx
push eax
mov ecx, dword [eax]
call dword [ecx + 0x18]
mov edi, eax
mov eax, dword [esi]
test eax, eax
je 0x48c9e0
mov eax, dword [0x554e40]
push edi
push eax
mov ecx, dword [eax]
call dword [ecx + 0xc]
mov ecx, edi
mov dword [ebx + 0x20], eax
mov esi, dword [esi]
mov edx, ecx
mov edi, eax
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, edx
and ecx, 3
rep movsb byte es:[edi], byte [esi]
mov eax, dword [0x554e40]
test eax, eax
je 0x48c9f8
mov ecx, dword [eax]
push eax
call dword [ecx + 8]
test eax, eax
jne 0x48c9f8
mov dword [0x554e40], eax
xor edi, edi
mov edx, dword [ebp]
lea eax, [ebx + 4]
push eax
push 0x5433a4
push ebp
call dword [edx]
mov ecx, dword [ebp]
push ebp
call dword [ecx + 4]
lea eax, [ebx + 0x28]
mov dword [ebx + 0x24], edi
push eax
push edi
push ebx
push 0x48c8b0
push edi
push edi
mov dword [eax], edi
call dword [sym.imp.KERNEL32.dll_CreateThread]
lea ecx, [esp + 0x28]
call fcn.00510740
pop esi
pop edi
pop ebp
mov eax, 1
pop ebx
ret
Function at 0x42c360
Capabilities:
Resolve function by parsing pe exports

Disassembly:
push esi
push edi
push ebx
push ebp
sub esp, 0x24
mov esi, dword [esp + 0x48]
mov dword [esp + 0x20], esi
mov esi, dword [esp + 0x4c]
mov eax, dword [esp + 0x38]
mov dword [esp + 0x10], esi
mov esi, dword [esp + 0x50]
mov edi, dword [esp + 0x54]
movsd xmm0, qword [eax]
mov dword [esp + 0xc], eax
mov dword [esp + 0x14], edi
mov eax, dword [0x2dd71a0]
mov edi, dword [esp + 0x58]
mov ebx, dword [esp + 0x3c]
mov dword [esp + 0x18], edi
lea eax, [eax*8 + 0x2e018d0]
mov edi, dword [esp + 0x5c]
mov ecx, dword [esp + 0x40]
mov dword [esp + 0x1c], edi
mov dword [esp + 8], ecx
mov ebp, dword [esp + 0x44]
mov edi, dword [esp + 0x60]
push 0x4fba90
push eax
subsd xmm0, qword [esi]
movsd qword [ebx], xmm0
call fcn.004242f0
add esp, 8
fstp qword [esp]
movsd xmm0, qword [ebx]
movsd xmm1, qword [esp]
comisd xmm0, xmm1
jbe 0x42c3f5
mov dword [edi], 1
add esp, 0x24
pop ebp
pop ebx
pop edi
pop esi
ret
mov dword [esp + 0x64], 0xc
mov edx, ebx
mov dword [esp + 0x60], edi
mov ecx, dword [esp + 0x1c]
mov edi, dword [esp + 0x18]
mov eax, dword [esp + 0x14]
mov dword [esp + 0x5c], ecx
mov dword [esp + 0x58], edi
mov dword [esp + 0x54], eax
mov dword [esp + 0x50], esi
mov esi, dword [esp + 0x10]
mov eax, dword [esp + 0x20]
mov dword [esp + 0x4c], esi
mov dword [esp + 0x48], eax
mov dword [esp + 0x44], ebp
mov eax, dword [esp + 0xc]
mov ecx, dword [esp + 8]
add esp, 0x24
pop ebp
pop ebx
pop edi
pop esi
jmp fcn.0042c45c

Function at 0x42c450
Capabilities:
Resolve function by parsing pe exports

Disassembly:
mov eax, dword [esp + 4]
mov edx, dword [esp + 8]
mov ecx, dword [esp + 0xc]
Function at 0x42f480
Capabilities:
Resolve function by parsing pe exports

Disassembly:
push esi
push edi
push ebx
push ebp
sub esp, 0x24
mov ecx, dword [esp + 0x40]
mov ebp, dword [esp + 0x44]
mov ebx, dword [esp + 0x54]
mov dword [esp + 8], ecx
mov dword [esp + 0xc], ebp
mov dword [esp + 0x14], ebx
mov ecx, dword [0x2dd71a0]
mov ebp, dword [esp + 0x48]
mov ebx, dword [esp + 0x58]
mov dword [esp + 0x20], ebp
lea ecx, [ecx*8 + 0x2e018d0]
mov dword [esp + 0x18], ebx
mov ebp, dword [esp + 0x4c]
mov ebx, dword [esp + 0x5c]
mov dword [esp + 0x10], ebp
mov dword [esp + 0x1c], ebx
mov edi, dword [esp + 0x38]
mov esi, dword [esp + 0x3c]
mov ebp, dword [esp + 0x50]
mov ebx, dword [esp + 0x60]
push 0x4fbba0
push ecx
call fcn.004242f0
add esp, 8
fstp qword [esp]
movsd xmm1, qword [esi]
movsd xmm0, qword [esp]
comisd xmm1, xmm0
jbe 0x42f50a
mov dword [ebx], 1
add esp, 0x24
pop ebp
pop ebx
pop edi
pop esi
ret
mov ecx, dword [esp + 0x1c]
mov eax, edi
mov edx, esi
addsd xmm1, qword [ebp]
movsd qword [edi], xmm1
mov dword [esp + 0x64], 0xc
mov dword [esp + 0x60], ebx
mov dword [esp + 0x5c], ecx
mov ebx, dword [esp + 0x18]
mov ecx, dword [esp + 0x14]
mov dword [esp + 0x58], ebx
mov dword [esp + 0x54], ecx
mov dword [esp + 0x50], ebp
mov ebp, dword [esp + 0x10]
mov ecx, dword [esp + 0x20]
mov dword [esp + 0x4c], ebp
mov dword [esp + 0x48], ecx
mov ecx, dword [esp + 0xc]
mov dword [esp + 0x44], ecx
mov ecx, dword [esp + 8]
add esp, 0x24
pop ebp
pop ebx
pop edi
pop esi
jmp fcn.0042c45c
Function at 0x4556c0
Capabilities:
Allocate thread local storage
Get thread local storage value
Set thread local storage value

Disassembly:
push ebp
mov ebp, esp
push esi
push edi
sub esp, 0xc
mov edi, 1
mov dword [ebp - 0x10], 0
xor esi, esi
mov edx, 0x2df3908
mov eax, 1
xchg dword [edx], eax
mov dword [ebp - 0xc], eax
mov eax, dword [ebp - 0xc]
test eax, eax
je 0x455713
mov eax, 0x66666667
imul edi
sar edx, 2
lea ecx, [edx + edx*4]
add ecx, ecx
cmp ecx, edi
jne 0x455713
cmp edi, 0x2710
jle 0x45570c
mov esi, 1
push esi
call dword [sym.imp.KERNEL32.dll_Sleep]
mov eax, dword [ebp - 0xc]
test eax, eax
je 0x455723
inc edi
cmp edi, 0x7ffffff
jl 0x4556d6
mov eax, dword [ebp - 0xc]
test eax, eax
je 0x45573d
mov dword [ebp - 0x14], 0x98
lea eax, [ebp - 0x14]
push eax
call fcn.0046ba30
add esp, 4
mov eax, dword [0x2df390c]
test eax, eax
jne 0x45577b
cmp dword [0x538bc4], 1
je 0x45587b
xor esi, esi
xor edi, edi
cmp dword [0x2df3904], 0
je 0x455838
mov dword [0x2df390c], 1
cmp dword [0x538bc4], 1
je 0x455820
push dword [0x2df3900]
mov dword [0x2df3908], 0
call dword [sym.imp.KERNEL32.dll_TlsGetValue]
mov edx, eax
test edx, edx
je 0x4557a5
mov eax, dword [ebp + 8]
mov dword [eax], edx
xor eax, eax
lea esp, [ebp - 8]
pop edi
pop esi
pop ebp
ret
mov dword [ebp - 0x10], edx
lea eax, [ebp - 0x10]
push eax
push 0
push 0x74
call fcn.004875a0
add esp, 0xc
test eax, eax
je 0x4557cc
mov edx, dword [ebp + 8]
mov dword [edx], 0
lea esp, [ebp - 8]
pop edi
pop esi
pop ebp
ret
mov edx, dword [ebp - 0x10]
mov eax, dword [0x538b90]
mov dword [edx + 0x70], eax
mov eax, 0x70
mov ecx, dword [eax + 0x538b1c]
mov dword [edx + eax - 4], ecx
mov esi, dword [eax + 0x538b18]
mov dword [edx + eax - 8], esi
mov edi, dword [eax + 0x538b14]
mov dword [edx + eax - 0xc], edi
mov ecx, dword [eax + 0x538b10]
mov dword [edx + eax - 0x10], ecx
sub eax, 0x10
jne 0x4557dc
push dword [ebp - 0x10]
push dword [0x2df3900]
call dword [sym.imp.KERNEL32.dll_TlsSetValue]
mov edx, dword [ebp - 0x10]
jmp 0x455797
push edi
push 2
call fcn.004d58d2
push esi
push 0x16
call fcn.004d58d2
add esp, 0x10
jmp 0x45577b
mov dword [0x2df3904], 1
call dword [sym.imp.KERNEL32.dll_TlsAlloc]
mov dword [0x2df3900], eax
cmp eax, 0xffffffff
jne 0x45585f
push 8
call dword [sym.imp.KERNEL32.dll_SetLastError]
jmp 0x455764
push 0x4556a0
call fcn.004cfba5
push 0x455660
call fcn.004cfba5
add esp, 8
jmp 0x455764
push 1
push 2
call fcn.004d58d2
mov edi, eax
push 1
push 0x16
call fcn.004d58d2
mov esi, eax
add esp, 0x10
jmp 0x455757
Function at 0x4558a0
Capabilities:
Allocate thread local storage
Get thread local storage value
Set thread local storage value

Disassembly:
push ebp
mov ebp, esp
push esi
push edi
sub esp, 0xc
mov edi, 1
mov dword [ebp - 0x10], 0
xor esi, esi
mov edx, 0x2df3908
mov eax, 1
xchg dword [edx], eax
mov dword [ebp - 0xc], eax
mov eax, dword [ebp - 0xc]
test eax, eax
je 0x4558f3
mov eax, 0x66666667
imul edi
sar edx, 2
lea ecx, [edx + edx*4]
add ecx, ecx
cmp ecx, edi
jne 0x4558f3
cmp edi, 0x2710
jle 0x4558ec
mov esi, 1
push esi
call dword [sym.imp.KERNEL32.dll_Sleep]
mov eax, dword [ebp - 0xc]
test eax, eax
je 0x455903
inc edi
cmp edi, 0x7ffffff
jl 0x4558b6
mov eax, dword [ebp - 0xc]
test eax, eax
je 0x45591d
mov dword [ebp - 0x14], 0x98
lea eax, [ebp - 0x14]
push eax
call fcn.0046ba30
add esp, 4
mov eax, dword [0x2df390c]
test eax, eax
jne 0x45595b
cmp dword [0x538bc4], 1
je 0x455a81
xor esi, esi
xor edi, edi
cmp dword [0x2df3904], 0
je 0x455a3e
mov dword [0x2df390c], 1
cmp dword [0x538bc4], 1
je 0x455a26
push dword [0x2df3900]
mov dword [0x2df3908], 0
call dword [sym.imp.KERNEL32.dll_TlsGetValue]
mov esi, eax
mov dword [ebp - 0x10], esi
test esi, esi
je 0x4559ae
mov eax, dword [ebp + 8]
mov dword [eax], esi
cmp dword [0x538bc4], 1
je 0x455991
xor eax, eax
lea esp, [ebp - 8]
pop edi
pop esi
pop ebp
ret
push 1
push 2
call fcn.004d58d2
push 1
push 0x16
mov dword [esi + 0x64], eax
call fcn.004d58d2
add esp, 0x10
mov dword [esi + 0x68], eax
jmp 0x455988
lea eax, [ebp - 0x10]
push eax
push 0
push 0x74
call fcn.004875a0
add esp, 0xc
test eax, eax
je 0x4559d2
mov edx, dword [ebp + 8]
mov dword [edx], 0
lea esp, [ebp - 8]
pop edi
pop esi
pop ebp
ret
mov edx, dword [ebp - 0x10]
mov eax, dword [0x538b90]
mov dword [edx + 0x70], eax
mov eax, 0x70
mov ecx, dword [eax + 0x538b1c]
mov dword [edx + eax - 4], ecx
mov esi, dword [eax + 0x538b18]
mov dword [edx + eax - 8], esi
mov edi, dword [eax + 0x538b14]
mov dword [edx + eax - 0xc], edi
mov ecx, dword [eax + 0x538b10]
mov dword [edx + eax - 0x10], ecx
sub eax, 0x10
jne 0x4559e2
push dword [ebp - 0x10]
push dword [0x2df3900]
call dword [sym.imp.KERNEL32.dll_TlsSetValue]
mov esi, dword [ebp - 0x10]
jmp 0x45597a
push edi
push 2
call fcn.004d58d2
push esi
push 0x16
call fcn.004d58d2
add esp, 0x10
jmp 0x45595b
mov dword [0x2df3904], 1
call dword [sym.imp.KERNEL32.dll_TlsAlloc]
mov dword [0x2df3900], eax
cmp eax, 0xffffffff
jne 0x455a65
push 8
call dword [sym.imp.KERNEL32.dll_SetLastError]
jmp 0x455944
push 0x4556a0
call fcn.004cfba5
push 0x455660
call fcn.004cfba5
add esp, 8
jmp 0x455944
push 1
push 2
call fcn.004d58d2
mov edi, eax
push 1
push 0x16
call fcn.004d58d2
mov esi, eax
add esp, 0x10
jmp 0x455937
Function at 0x4826d0
Capabilities:
Query environment variable

Disassembly:
push ebp
mov ebp, esp
push edi
push esi
push 0x2dfa29c
call fcn.00455af0
add esp, 4
mov eax, dword [0x2dfa2a0]
test eax, eax
jne 0x482758
mov dword [0x2dfa2a0], 1
lea eax, [ebp - 8]
push eax
push 0
push 0x1001
call fcn.004875a0
add esp, 0xc
push 0x105
mov edi, dword [ebp - 8]
push edi
push str.FORT0
call dword [sym.imp.KERNEL32.dll_GetEnvironmentVariableA]
test eax, eax
jbe 0x482727
cmp eax, 0x105
jb 0x48272e
test edi, edi
je 0x48272e
mov byte [edi], 0
mov edi, dword [ebp - 8]
cmp byte [edi], 0
je 0x48274f
push 2
call fcn.004dc144
push eax
push 0x50849c
push edi
call fcn.004dc314
add esp, 0x10
mov edi, dword [ebp - 8]
push edi
call fcn.00487660
add esp, 4
mov dword [0x2dfa29c], 0
lea esp, [ebp - 4]
pop edi
pop ebp
ret
Function at 0x482910
Capabilities:
Clear file content

Disassembly:
push ebp
mov ebp, esp
push esi
push edi
push ebx
sub esp, 0x1c
mov esi, dword [ebp + 8]
mov edx, dword [esi + 0x54]
mov ebx, dword [esi + 0x50]
test edx, edx
je 0x48292a
sub ebx, edx
jmp 0x48292f
mov edx, dword [esi + 0x4c]
sub ebx, edx
lea edx, [ebx + 4]
cmp edx, dword [esi + 0x10c]
ja 0x482daf
movzx edx, word [esi + 0x18a]
test edx, edx
jg 0x482b64
movsx edx, byte [esi + 0x18c]
cmp edx, 8
ja 0x482afa
movzx eax, word [edx*2 + 0x508510]
add eax, 0x48296c
jmp eax
push 0x37f
push str.for_put.c
push 2
push 8
call fcn.00480060
add esp, 0x10
mov edx, dword [esi + 0x54]
test edx, edx
je 0x482d8d
mov eax, esi
mov ecx, ebx
call fcn.00482e6c
and byte [esi + 0x1a4], 0xbf
cmp eax, 0xffffffff
je 0x482d74
test byte [esi + 0x1a5], 8
je 0x482b81
push dword [esi + 0x104]
call dword [sym.imp.KERNEL32.dll_SetEndOfFile]
test eax, eax
je 0x482d5e
xor eax, eax
and byte [esi + 0x1a5], 0xf7
test eax, eax
jne 0x482e3e
jmp 0x482b81
mov edx, dword [esi + 0x54]
test edx, edx
je 0x482d9e
mov eax, esi
mov ecx, ebx
call fcn.00482e6c
cmp eax, 0xffffffff
je 0x482d74
xor eax, eax
lea esp, [ebp - 0xc]
pop ebx
pop edi
pop esi
pop ebp
ret
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov dword [esi + 0x108], eax
mov eax, 0x26
jmp 0x482b53
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov dword [esi + 0x108], eax
mov eax, 0x26
lea esp, [ebp - 0xc]
pop ebx
pop edi
pop esi
pop ebp
ret
mov eax, esi
mov ecx, ebx
mov edx, dword [esi + 0x4c]
call fcn.00482e6c
jmp 0x482b24
mov eax, esi
mov ecx, ebx
mov edx, dword [esi + 0x4c]
call fcn.00482e6c
jmp 0x482b78
push 0x200
push 4
push esi
call fcn.00486f50
add esp, 0xc
test eax, eax
je 0x48293e
cmp ebx, dword [esi + 0x10c]
ja 0x482ddc
cmp byte [esi + 0x18c], 1
je 0x48293e
mov edx, dword [esi + 0x20]
test edx, edx
je 0x482e46
test byte [edx + 0x44], 2
je 0x482e13
mov ecx, 0x42
mov dword [edx + 0x38], ecx
mov edx, dword [esi + 0x20]
mov dword [edx + 0x3c], ecx
mov edx, dword [esi + 0x7c]
test edx, edx
je 0x482e06
xor ecx, ecx
mov dword [edx + 4], ecx
mov dword [esi + 0x7c], ecx
mov eax, 0x42
lea esp, [ebp - 0xc]
pop ebx
pop edi
pop esi
pop ebp
ret
movzx ecx, byte [esi + 0x1ae]
mov edx, 0x42
and ecx, 0x10
movzx ebx, byte [esi + 0x1a4]
push edx
shr ecx, 1
and ebx, 7
push edx
or ebx, ecx
push ebx
push 0xffffffffffffffff
push esi
call fcn.004865b0
add esp, 0x14
lea esp, [ebp - 0xc]
pop ebx
pop edi
pop esi
pop ebp
ret
push esi
mov eax, 0x42
push eax
push eax
push 1
call fcn.0047ead0
add esp, 0x10
lea esp, [ebp - 0xc]
pop ebx
pop edi
pop esi
pop ebp
ret

Function at 0x482e60
Capabilities:
Write file on windows

Disassembly:
mov eax, dword [esp + 4]
mov edx, dword [esp + 8]
mov ecx, dword [esp + 0xc]
Function at 0x487460
Capabilities:
Query environment variable

Disassembly:
push ebp
mov ebp, esp
push esi
push edi
push ebx
sub esp, 0x11c
mov eax, dword [0x543b10]
mov edx, dword [ebp + 8]
xor eax, ebp
mov dword [ebp - 0x10], eax
test edx, edx
je 0x48757f
push 0x105
lea ebx, [ebp - 0x118]
push ebx
push edx
call dword [sym.imp.KERNEL32.dll_GetEnvironmentVariableA]
test eax, eax
jbe 0x4874a2
cmp eax, 0x105
jae 0x4874a2
inc eax
jmp 0x4874a9
mov byte [ebp - 0x118], 0
test eax, eax
jne 0x4874b4
xor eax, eax
jmp 0x48755e
movsx esi, byte [ebp - 0x118]
cmp esi, 0x54
je 0x487559
cmp esi, 0x59
je 0x487559
cmp esi, 0x74
je 0x487559
cmp esi, 0x79
je 0x487559
test esi, esi
je 0x4874ad
mov eax, esi
and eax, 0xff
lea edi, [ebp - 0x117]
push eax
call fcn.004e1d90
add esp, 4
test eax, eax
je 0x487511
movsx esi, byte [edi]
inc edi
mov eax, esi
and eax, 0xff
push eax
call fcn.004e1d90
add esp, 4
test eax, eax
jne 0x4874f9
test esi, esi
jne 0x4874ad
xor esi, esi
lea eax, [ebp - 0x11c]
mov dword [eax], esi
mov esi, 0x508ae0
mov dword [eax - 0xc], esi
mov dword [eax - 8], eax
call fcn.00485850
mov ecx, eax
lea eax, [ebp - 0x124]
push eax
xor edx, edx
push edx
push esi
push 0xffffffffffffffff
push ebx
push dword [ecx + 4]
push dword [ecx]
call fcn.004e1d0c
add esp, 0x1c
cmp dword [ebp - 0x11c], 0
je 0x4874ad
mov eax, 1
mov ecx, dword [ebp - 0x10]
mov dword [ebp - 0x10], 0
xor ecx, ebp
cmp ecx, dword [0x543b10]
jne 0x48757a
lea esp, [ebp - 0xc]
pop ebx
pop edi
pop esi
pop ebp
ret
call fcn.004cf95b
mov ecx, dword [ebp - 0x10]
mov dword [ebp - 0x10], 0
xor ecx, ebp
cmp ecx, dword [0x543b10]
jne 0x48757a
xor eax, eax
lea esp, [ebp - 0xc]
pop ebx
pop edi
pop esi
pop ebp
ret
Function at 0x4a9b40
Capabilities:
Query environment variable

Disassembly:
push ebp
mov ebp, esp
push edi
sub esp, 0x10c
mov edx, dword [0x2dfe8f4]
or edx, dword [0x2dfe8f8]
or edx, dword [0x2dfe8ec]
mov eax, dword [0x543b10]
xor eax, ebp
mov dword [ebp - 8], eax
or edx, dword [0x2dfe8f0]
jne 0x4a9d5a
push 0x104
lea edi, [ebp - 0x10c]
push edi
push str.FORT_BLOCKSIZE
call dword [sym.imp.KERNEL32.dll_GetEnvironmentVariableA]
mov edx, eax
test edx, edx
je 0x4a9ba5
cmp edx, 0x104
jae 0x4a9b9c
inc edx
je 0x4a9bae
jmp 0x4a9bba
mov byte [ebp - 0x10c], 0
jmp 0x4a9bba
mov byte [ebp - 0x10c], 0
jne 0x4a9bba
mov dword [0x2dfe8f4], 0xffffffff
jmp 0x4a9bfa
dec edx
lea eax, [ebp - 0x110]
push eax
push 2
push edx
push edi
call fcn.004a86e0
add esp, 0x10
test eax, eax
jne 0x4a9bdf
mov eax, dword [ebp - 0x110]
cmp eax, 0x7fffc000
jbe 0x4a9beb
mov dword [0x2dfe8f4], 0xfffffffe
jmp 0x4a9bfa
add eax, 0x1ff
and eax, 0xfffffe00
mov dword [0x2dfe8f4], eax
push 0x104
push edi
push str.FORT_BUFFERCOUNT
call dword [sym.imp.KERNEL32.dll_GetEnvironmentVariableA]
mov edx, eax
test edx, edx
je 0x4a9c27
cmp edx, 0x104
jae 0x4a9c1e
inc edx
je 0x4a9c30
jmp 0x4a9c3c
mov byte [ebp - 0x10c], 0
jmp 0x4a9c3c
mov byte [ebp - 0x10c], 0
jne 0x4a9c3c
mov dword [0x2dfe8f8], 0xffffffff
jmp 0x4a9c70
dec edx
lea eax, [ebp - 0x110]
push eax
push 2
push edx
push edi
call fcn.004a86e0
add esp, 0x10
test eax, eax
jne 0x4a9c5f
mov eax, dword [ebp - 0x110]
cmp eax, 0x7f
jbe 0x4a9c6b
mov dword [0x2dfe8f8], 0xfffffffe
jmp 0x4a9c70
mov dword [0x2dfe8f8], eax
push 0x104
push edi
push str.FORT_FMT_RECL
call dword [sym.imp.KERNEL32.dll_GetEnvironmentVariableA]
mov edx, eax
test edx, edx
je 0x4a9c9d
cmp edx, 0x104
jae 0x4a9c94
inc edx
je 0x4a9ca6
jmp 0x4a9cb2
mov byte [ebp - 0x10c], 0
jmp 0x4a9cb2
mov byte [ebp - 0x10c], 0
jne 0x4a9cb2
mov dword [0x2dfe8ec], 0xffffffff
jmp 0x4a9ce5
dec edx
lea eax, [ebp - 0x110]
push eax
push 2
push edx
push edi
call fcn.004a86e0
add esp, 0x10
test eax, eax
jne 0x4a9cdb
mov eax, dword [ebp - 0x110]
test eax, eax
jl 0x4a9cdb
mov dword [0x2dfe8ec], eax
jmp 0x4a9ce5
mov dword [0x2dfe8ec], 0xfffffffe
push 0x104
push edi
push str.FORT_UFMT_RECL
call dword [sym.imp.KERNEL32.dll_GetEnvironmentVariableA]
mov edx, eax
test edx, edx
je 0x4a9d12
cmp edx, 0x104
jae 0x4a9d09
inc edx
je 0x4a9d1b
jmp 0x4a9d27
mov byte [ebp - 0x10c], 0
jmp 0x4a9d27
mov byte [ebp - 0x10c], 0
jne 0x4a9d27
mov dword [0x2dfe8f0], 0xffffffff
jmp 0x4a9d5a
dec edx
lea eax, [ebp - 0x110]
push eax
push 2
push edx
push edi
call fcn.004a86e0
add esp, 0x10
test eax, eax
jne 0x4a9d50
mov eax, dword [ebp - 0x110]
test eax, eax
jl 0x4a9d50
mov dword [0x2dfe8f0], eax
jmp 0x4a9d5a
mov dword [0x2dfe8f0], 0xfffffffe
mov ecx, dword [ebp - 8]
mov dword [ebp - 8], 0
xor ecx, ebp
cmp ecx, dword [0x543b10]
jne 0x4a9d74
lea esp, [ebp - 4]
pop edi
pop ebp
ret
call fcn.004cf95b
lea esi, [esi]
Function at 0x4ca420
Capabilities:
Inspect section memory permissions

Disassembly:
push edi
sub esp, 0xc
xor eax, eax
mov edx, dword [esp + 0x18]
mov ecx, dword [esp + 0x1c]
mov edi, dword [esp + 0x14]
mov dword [esp + 4], edx
mov dword [esp + 8], ecx
call fcn.004ca4a4
push 6
push 0x2dffcd8
call fcn.004cb0d0
add esp, 8
cmp eax, 1
je 0x4ca485
test eax, eax
jl 0x4ca45c
add esp, 0xc
pop edi
ret
xor ebx, ebx
push ebx
push ebx
push 1
call fcn.004cd2f0
push 0
push 0x3a
push 1
call fcn.004cd2f0
push ebx
push ebx
push 1
call fcn.004cd2f0
add esp, 0x24
push 1
call fcn.004dc066
mov dword [esp + 0x18], edi
mov dword [esp + 0x14], 0
add esp, 0xc
pop edi
jmp fcn.004cd5b0