joyce8/EMBER2024-capa huggingface dataset:
Function at 0x411a20
Capabilities:
Get user security identifier

Disassembly:
push 0x74
mov eax, 0x444450
call fcn.0041f670
mov esi, ecx
lea ecx, [ebp - 0x80]
mov dword [ebp - 0x5c], 0x44
call fcn.00403851
and dword [ebp - 4], 0
and dword [ebp - 0x58], 0
xor bl, bl
lea eax, [ebp - 0x60]
push eax
lea eax, [ebp - 0x58]
push eax
push dword [ebp - 0x80]
lea eax, [ebp - 0x5c]
push eax
lea eax, [ebp - 0x54]
push eax
push dword [esi]
push 0
call dword [sym.imp.ADVAPI32.dll_LookupAccountNameW]
test eax, eax
jne 0x411a9d
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0x7a
jne 0x411a94
mov eax, dword [ebp - 0x58]
test eax, eax
je 0x411a86
push 0
dec eax
lea ecx, [ebp - 0x80]
push eax
call fcn.00404ffb
inc bl
cmp bl, 5
jb 0x411a47
mov esi, 0x80000051
jmp 0x411aac
mov ecx, eax
call fcn.00405534
jmp 0x411aaa
lea edx, [ebp - 0x54]
mov ecx, 0x45f5e8
call fcn.004119ab
mov esi, eax
push 0
lea ecx, [ebp - 0x80]
call fcn.00403990
lea ecx, [ebp - 0x74]
call fcn.00403890
mov eax, esi
call fcn.0041f61a
ret
Function at 0x412459
Capabilities:
Acquire debug privileges

Disassembly:
push 0x4c
mov eax, 0x4446ca
call fcn.0041f670
lea eax, [ebp - 0x38]
xor ebx, ebx
push eax
push 0x28
mov dword [ebp - 0x38], ebx
call dword [sym.imp.KERNEL32.dll_GetCurrentProcess]
push eax
call dword [sym.imp.ADVAPI32.dll_OpenProcessToken]
test eax, eax
je 0x41259e
mov esi, dword [ebp - 0x38]
test esi, esi
je 0x41259e
mov dword [ebp - 0x14], esi
mov dword [ebp - 4], ebx
lea edi, [ebp - 0x34]
xor eax, eax
stosd dword es:[edi], eax
stosd dword es:[edi], eax
stosd dword es:[edi], eax
stosd dword es:[edi], eax
lea eax, [ebp - 0x30]
push eax
push str.SeDebugPrivilege
push ebx
mov dword [ebp - 0x34], 1
call dword [sym.imp.ADVAPI32.dll_LookupPrivilegeValueW]
test eax, eax
jne 0x4124f3
call dword [sym.imp.KERNEL32.dll_GetLastError]
push 0x12c
push dword [0x45f650]
lea ecx, [ebp - 0x24]
mov esi, eax
call fcn.00401c41
test eax, eax
je 0x412592
lea eax, [ebp - 0x24]
mov dword [ebp - 0x18], esi
push eax
lea ecx, [ebp - 0x58]
call fcn.00401ac7
mov edx, str.SetDebugPrivilege:_Couldnt_lookup_SeDebugPrivilege_name__code
jmp 0x412541
push ebx
push ebx
push 0x10
lea eax, [ebp - 0x34]
mov dword [ebp - 0x28], 2
push eax
push ebx
push esi
call dword [sym.imp.ADVAPI32.dll_AdjustTokenPrivileges]
test eax, eax
jne 0x41255c
call dword [sym.imp.KERNEL32.dll_GetLastError]
push 0x12c
push dword [0x45f650]
lea ecx, [ebp - 0x24]
mov esi, eax
call fcn.00401c41
test eax, eax
je 0x412592
lea eax, [ebp - 0x24]
mov dword [ebp - 0x18], esi
push eax
lea ecx, [ebp - 0x58]
call fcn.00401ac7
mov edx, str.SetDebugPrivilege:_Couldnt_add_the_debug_privilege__code
lea ecx, [ebp - 0x58]
call fcn.00401c16
lea edx, [ebp - 0x18]
mov ecx, eax
call fcn.00409d54
mov ecx, eax
call fcn.00401afb
jmp 0x412592
push 0x2bc
push dword [0x45f650]
lea ecx, [ebp - 0x24]
call fcn.00401c41
test eax, eax
je 0x412590
lea eax, [ebp - 0x24]
push eax
lea ecx, [ebp - 0x58]
call fcn.00401ac7
mov edx, str.SetDebugPrivilege:_Debug_privilege_acquired
call fcn.00401c16
mov ecx, eax
call fcn.00401afb
mov bl, 1
lea ecx, [ebp - 0x14]
call fcn.004072f6
mov al, bl
jmp 0x4125e9
call dword [sym.imp.KERNEL32.dll_GetLastError]
push 0x12c
push dword [0x45f650]
lea ecx, [ebp - 0x1c]
mov esi, eax
call fcn.00401c41
test eax, eax
je 0x4125e7
lea eax, [ebp - 0x1c]
mov dword [ebp - 0x14], esi
push eax
lea ecx, [ebp - 0x58]
call fcn.00401ac7
mov edx, str.SetDebugPrivilege:_Couldnt_get_the_process_token__code
call fcn.00401c16
lea edx, [ebp - 0x14]
mov ecx, eax
call fcn.00409d54
mov ecx, eax
call fcn.00401afb
xor al, al
call fcn.0041f61a
ret
Function at 0x412cbf
Capabilities:
Check if file exists
Get file attributes

Disassembly:
push 0x30
mov eax, 0x4447bd
call fcn.0041f670
mov edi, edx
mov esi, ecx
xor ebx, ebx
push ebx
push 0x80
push 2
push ebx
push ebx
push 0x40000000
push esi
call dword [sym.imp.KERNEL32.dll_CreateFileW]
mov dword [edi], eax
cmp eax, 0xffffffff
jne 0x412d50
call dword [sym.imp.KERNEL32.dll_GetLastError]
push 0x12c
push dword [0x45f650]
lea ecx, [ebp - 0x18]
mov edi, eax
call fcn.00401c41
test eax, eax
je 0x412d4c
lea eax, [ebp - 0x18]
mov dword [ebp - 0x1c], edi
push eax
lea ecx, [ebp - 0x3c]
call fcn.00401ac7
mov edx, str.Failed_to_create_file
call fcn.00401c16
mov edx, esi
mov ecx, eax
call fcn.00411971
mov edx, str.__code
mov ecx, eax
call fcn.00401c16
lea edx, [ebp - 0x1c]
mov ecx, eax
call fcn.00409d54
mov ecx, eax
call fcn.00401afb
mov eax, edi
jmp 0x412db1
push esi
call dword [sym.imp.KERNEL32.dll_GetFileAttributesW]
mov dword [ebp - 0x1c], eax
cmp eax, 0xffffffff
jne 0x412d73
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov ecx, eax
call fcn.00405534
test eax, eax
jne 0x412d7b
mov eax, dword [ebp - 0x1c]
shr eax, 0xa
not al
and eax, 1
cmp eax, 1
je 0x412d8e
mov ecx, edi
call fcn.00413679
mov eax, 0x2a9
jmp 0x412db1
push esi
lea ecx, [ebp - 0x34]
call fcn.0040739d
mov edx, 0x130000
mov dword [ebp - 4], ebx
lea ecx, [ebp - 0x34]
call fcn.00412bed
lea ecx, [ebp - 0x34]
call fcn.00403b3f
xor eax, eax
call fcn.0041f61a
ret
Function at 0x418fbf
Capabilities:
Delete file

Disassembly:
push 0x54
mov eax, 0x444ebb
call fcn.0041f670
mov edi, ecx
lea eax, [edi + 0x18]
xor ecx, ecx
mov dword [ebp - 0x3c], ecx
mov dword [ebp - 0x40], eax
mov eax, dword [eax]
mov eax, dword [eax]
mov esi, dword [eax]
add esi, 0x10
mov dword [ebp - 4], ecx
lea ebx, [esi + 0x10]
xor eax, eax
mov dword [ebp - 0x18], ecx
mov word [ebp - 0x28], ax
lea ecx, [ebp - 0x28]
lea eax, [edi + 0x10]
mov dword [ebp - 0x14], 7
mov dword [ebp - 0x2c], eax
mov eax, dword [eax]
add eax, dword [ebx]
push eax
mov dword [ebp - 0x3c], 1
call fcn.0040482f
cmp dword [edi + 0x14], 8
jb 0x419019
mov edi, dword [edi]
mov eax, dword [ebp - 0x2c]
lea ecx, [ebp - 0x28]
push dword [eax]
push edi
call fcn.004098da
push 8
pop edi
cmp dword [esi + 0x14], edi
jb 0x419031
mov esi, dword [esi]
push dword [ebx]
lea ecx, [ebp - 0x28]
push esi
call fcn.004098da
lea eax, [ebp - 0x28]
cmp dword [ebp - 0x14], edi
jb 0x419047
mov eax, dword [ebp - 0x28]
push eax
call dword [sym.imp.KERNEL32.dll_DeleteFileW]
test eax, eax
je 0x4190d1
push 0x2bc
push dword [0x45f650]
lea ecx, [ebp - 0x30]
call fcn.00401c41
test eax, eax
je 0x4190ae
lea eax, [ebp - 0x30]
push eax
lea ecx, [ebp - 0x60]
call fcn.00401ac7
mov edx, str.File
call fcn.00401c16
lea ecx, [ebp - 0x28]
mov esi, eax
cmp dword [ebp - 0x14], edi
jb 0x41908c
mov ecx, dword [ebp - 0x28]
push dword [ebp - 0x18]
push ecx
push ecx
mov ecx, esi
call fcn.00415cb8
add esp, 0xc
mov edx, str._has_been_deleted.
mov ecx, esi
call fcn.00401c16
mov ecx, eax
call fcn.00401afb
push 5
push str..stat
lea ecx, [ebp - 0x28]
call fcn.004098da
lea eax, [ebp - 0x28]
cmp dword [ebp - 0x14], edi
jb 0x4190c8
mov eax, dword [ebp - 0x28]
push eax
call dword [sym.imp.KERNEL32.dll_DeleteFileW]
jmp 0x419142
call dword [sym.imp.KERNEL32.dll_GetLastError]
push 0x12c
push dword [0x45f650]
lea ecx, [ebp - 0x38]
mov esi, eax
call fcn.00401c41
test eax, eax
je 0x419142
lea eax, [ebp - 0x38]
mov dword [ebp - 0x2c], esi
push eax
lea ecx, [ebp - 0x60]
call fcn.00401ac7
mov edx, str.Could_not_delete
call fcn.00401c16
lea ecx, [ebp - 0x28]
mov esi, eax
cmp dword [ebp - 0x14], edi
jb 0x419116
mov ecx, dword [ebp - 0x28]
push dword [ebp - 0x18]
push ecx
push ecx
mov ecx, esi
call fcn.00415cb8
add esp, 0xc
mov edx, str.__system_error:
mov ecx, esi
call fcn.00401c16
lea edx, [ebp - 0x2c]
mov ecx, eax
call fcn.00409d54
mov ecx, eax
call fcn.00401afb
mov edx, dword [ebp - 0x40]
mov edx, dword [edx]
mov eax, dword [edx]
mov esi, dword [eax]
mov ecx, dword [esi + 4]
mov eax, dword [esi]
mov dword [ecx], eax
mov ecx, dword [esi]
mov eax, dword [esi + 4]
mov dword [ecx + 4], eax
lea ecx, [esi + 0x10]
dec dword [edx + 4]
call fcn.00403b3f
push 0x30
push esi
call fcn.004041a1
pop ecx
pop ecx
lea ecx, [ebp - 0x28]
call fcn.00403b3f
call fcn.0041f61a
ret
Function at 0x41917d
Capabilities:
Get disk size

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
sub esp, 0x34
mov eax, dword [0x45d06c]
xor eax, esp
mov dword [esp + 0x30], eax
push ebx
push esi
mov esi, ecx
push edi
mov edi, dword [ebp + 8]
mov eax, esi
cmp dword [esi + 0x14], 8
jb 0x4191a3
mov eax, dword [esi]
push 0
push 0
push edi
push eax
call dword [sym.imp.KERNEL32.dll_GetDiskFreeSpaceExW]
test eax, eax
je 0x419244
push 0x2bc
push dword [0x45f650]
lea ecx, [esp + 0x3c]
call fcn.00401c41
test eax, eax
je 0x419240
lea eax, [esp + 0x34]
push eax
lea ecx, [esp + 0x18]
call fcn.00401ac7
mov edx, str.GetDiskFreeSpaceEx:_free_space_for_disk_with_
call fcn.00401c16
cmp dword [esi + 0x14], 8
mov ecx, dword [esi + 0x10]
mov dword [esp + 0x10], eax
jb 0x4191f6
mov esi, dword [esi]
push ecx
push esi
push ecx
mov ecx, eax
call fcn.00415cb8
mov ecx, dword [esp + 0x1c]
add esp, 0xc
mov ebx, dword [edi]
mov edx, str._folder_is
mov esi, dword [edi + 4]
call fcn.00401c16
push ecx
mov edi, eax
push ecx
mov ecx, edi
call fcn.00405c68
push esi
push ebx
mov dl, al
call fcn.00419827
add esp, 0x10
mov edx, str._bytes
mov ecx, edi
call fcn.00401c16
mov ecx, eax
call fcn.00401afb
mov al, 1
jmp 0x419294
call dword [sym.imp.KERNEL32.dll_GetLastError]
push 0x12c
push dword [0x45f650]
lea ecx, [esp + 0x3c]
mov esi, eax
call fcn.00401c41
test eax, eax
je 0x419292
lea eax, [esp + 0x34]
mov dword [esp + 0x10], esi
push eax
lea ecx, [esp + 0x18]
call fcn.00401ac7
mov edx, str.GetDiskFreeSpaceEx_failed__system_error
call fcn.00401c16
lea edx, [esp + 0x10]
mov ecx, eax
call fcn.00409d54
mov ecx, eax
call fcn.00401afb
xor al, al
mov ecx, dword [esp + 0x3c]
pop edi
pop esi
pop ebx
xor ecx, esp
call fcn.0041ebe0
mov esp, ebp
pop ebp
ret 4
Function at 0x41a138
Capabilities:
Get process image filename

Disassembly:
push 0x30
mov eax, 0x444fd5
call fcn.0041f670
mov dword [ebp - 0x34], ecx
push 5
pop ebx
lea ecx, [ebp - 0x30]
mov edi, 0x104
call fcn.0041a1e0
and dword [ebp - 4], 0
mov edx, edi
lea ecx, [ebp - 0x30]
call fcn.0041a2f4
mov esi, eax
test esi, esi
js 0x41a1c6
push edi
push dword [ebp - 0x30]
push dword [ebp + 8]
call dword [sym.imp.PSAPI.DLL_GetProcessImageFileNameW]
test eax, eax
je 0x41a1b7
cmp eax, edi
jbe 0x41a189
mov edi, eax
sub ebx, 1
jne 0x41a15b
jmp 0x41a1c6
mov edx, eax
lea ecx, [ebp - 0x30]
call fcn.0041a2f4
mov esi, eax
test esi, esi
js 0x41a1c6
mov ecx, dword [ebp - 0x30]
mov eax, dword [ebp - 0x2c]
mov edx, dword [ebp - 0x34]
mov dword [ebp - 0x3c], ecx
push ecx
lea eax, [ecx + eax*2]
lea ecx, [ebp - 0x3c]
mov dword [ebp - 0x38], eax
call fcn.0041026b
pop ecx
jmp 0x41a1c4
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov ecx, eax
call fcn.00405534
mov esi, eax
push 0
lea ecx, [ebp - 0x30]
call fcn.00403990
lea ecx, [ebp - 0x24]
call fcn.00403890
mov eax, esi
call fcn.0041f61a
ret
Function at 0x434cdd
Capabilities:
Read file on windows

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
pop ebp
jmp fcn.00434b53
Function at 0x430000
Capabilities:
Encode data using xor
Packed with generic packer

Disassembly:
pushal
nop
nop
nop
nop
nop
call 0x43000c
nop
pop eax
nop
nop
nop
nop
nop
add eax, 0x403daa
sub eax, 0x403d50
nop
nop
nop
nop
mov ebx, dword [eax]
nop
nop
nop
nop
mov ecx, dword [eax + 4]
nop
nop
mov edx, dword [eax + 8]
nop
xor dword [ebx], edx
nop
nop
nop
nop
nop
nop
add ebx, 4
nop
cmp ebx, ecx
nop
nop
nop
nop
nop
nop
nop
jl 0x430030
nop
add eax, 0xc
nop
nop
nop
cmp dword [eax], 0
nop
nop
nop
nop
nop
nop
nop
jne 0x43001e
nop
popal
nop
nop
nop
nop
jmp loc.00401219
Function at 0x421a5e
Capabilities:
Read file on windows

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
mov eax, 0x101c
call fcn.00428cb0
mov eax, dword [0x5252c0]
xor eax, ebp
mov dword [ebp - 4], eax
mov eax, dword [ebp + 0x14]
push ebx
push dword [ebp + 8]
mov dword [ebp - 0x100c], eax
call fcn.0041b83b
pop ecx
mov ecx, dword [ebp + 8]
mov ebx, eax
cmp dword [ecx + 8], 0
jne 0x421aa0
mov eax, dword [ebp + 0xc]
mov edx, dword [ebp + 0x10]
jmp 0x421bfc
mov eax, dword [ecx]
sub eax, dword [ecx + 4]
push esi
push edi
push 0
cdq
push 2
push edx
push eax
call fcn.00428ce0
push dword [ebp - 0x100c]
mov ecx, ebx
mov dword [ebp - 0x1008], eax
mov esi, ebx
mov dword [ebp - 0x1018], edx
and ecx, 0x3f
sar esi, 6
imul edi, ecx, 0x38
push 0
mov eax, dword [esi*4 + 0x526e00]
push dword [edi + eax + 0x24]
push dword [edi + eax + 0x20]
push ebx
call fcn.00421e84
mov ecx, dword [esi*4 + 0x526e00]
add esp, 0x14
mov dword [ebp - 0x1010], eax
mov eax, edx
mov edx, dword [ebp - 0x1010]
mov dword [ebp - 0x101c], eax
cmp edx, dword [edi + ecx + 0x20]
jne 0x421bf5
cmp eax, dword [edi + ecx + 0x24]
jne 0x421bf5
push 0
lea eax, [ebp - 0x1014]
push eax
push 0x1000
lea eax, [ebp - 0x1004]
push eax
push dword [edi + ecx + 0x18]
call dword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
je 0x421bf5
push dword [ebp - 0x100c]
push 0
push dword [ebp + 0x10]
push dword [ebp + 0xc]
push ebx
call fcn.00421e84
add esp, 0x14
test edx, edx
jl 0x421bf5
jg 0x421b6b
test eax, eax
jb 0x421bf5
mov ebx, dword [ebp - 0x1018]
mov eax, dword [ebp - 0x1014]
test ebx, ebx
jg 0x421bf5
jl 0x421b85
cmp dword [ebp - 0x1008], eax
ja 0x421bf5
lea edi, [ebp - 0x1004]
xor edx, edx
add edi, eax
lea ecx, [ebp - 0x1004]
xor esi, esi
cmp dword [ebp - 0x1008], edx
jne 0x421ba3
test ebx, ebx
je 0x421bdc
cmp ecx, edi
jae 0x421bdc
mov al, byte [ecx]
cmp al, 0xd
jne 0x421bbd
lea eax, [edi - 1]
cmp ecx, eax
jae 0x421bc9
cmp byte [ecx + 1], 0xa
jne 0x421bc9
inc ecx
jmp 0x421bc9
movzx eax, al
movsx eax, byte [eax + 0x525d60]
add ecx, eax
add esi, 1
adc edx, 0
inc ecx
cmp esi, dword [ebp - 0x1008]
jne 0x421ba3
cmp edx, ebx
jne 0x421ba3
lea eax, [ebp - 0x1004]
sub ecx, eax
mov eax, ecx
cdq
add eax, dword [ebp - 0x1010]
adc edx, dword [ebp - 0x101c]
jmp 0x421bfa
or edx, 0xffffffff
mov eax, edx
pop edi
pop esi
mov ecx, dword [ebp - 4]
xor ecx, ebp
pop ebx
call fcn.0040a729
leave
ret
Function at 0x425c62
Capabilities:
Read file on windows

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x14
mov eax, dword [ebp + 8]
mov ecx, eax
push ebx
mov ebx, dword [ebp + 0xc]
and eax, 0x3f
sar ecx, 6
push esi
push edi
imul edi, eax, 0x38
mov eax, dword [ecx*4 + 0x526e00]
mov dword [ebp - 0x10], ecx
mov ecx, dword [eax + edi + 0x18]
mov dword [ebp - 0x14], ecx
mov ecx, dword [ebp + 0x10]
test ecx, ecx
je 0x425ca2
cmp byte [ebx], 0xa
jne 0x425ca2
or byte [eax + edi + 0x28], 4
jmp 0x425ca7
and byte [eax + edi + 0x28], 0xfb
add ecx, ebx
mov edx, ebx
mov dword [ebp - 0xc], ecx
mov esi, ebx
cmp ebx, ecx
jae 0x425da5
mov al, byte [edx]
cmp al, 0x1a
je 0x425d87
lea ecx, [edx + 1]
mov dword [ebp - 8], ecx
mov ecx, dword [ebp - 0xc]
cmp al, 0xd
je 0x425cd6
mov edx, dword [ebp - 8]
mov byte [esi], al
jmp 0x425cfb
mov eax, dword [ebp - 8]
cmp eax, ecx
jae 0x425d05
mov cl, byte [eax]
xor eax, eax
cmp cl, 0xa
sete al
inc eax
add edx, eax
cmp cl, 0xa
sete al
dec al
and al, 3
add al, 0xa
mov byte [esi], al
mov ecx, dword [ebp - 0xc]
inc esi
cmp edx, ecx
jb 0x425cb8
jmp 0x425da5
push 0
lea eax, [ebp - 0xc]
push eax
push 1
lea eax, [ebp - 1]
push eax
push dword [ebp - 0x14]
call dword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
je 0x425d82
cmp dword [ebp - 0xc], 0
je 0x425d82
mov ecx, dword [ebp - 0x10]
mov eax, dword [ecx*4 + 0x526e00]
test byte [eax + edi + 0x28], 0x48
je 0x425d5c
mov dl, byte [ebp - 1]
lea eax, [esi + 1]
mov dword [ebp - 0x14], eax
cmp dl, 0xa
jne 0x425d47
mov byte [esi], dl
jmp 0x425d58
mov byte [esi], 0xd
mov eax, dword [ecx*4 + 0x526e00]
mov byte [eax + edi + 0x2a], dl
mov eax, dword [ebp - 0x14]
mov esi, eax
jmp 0x425da5
cmp byte [ebp - 1], 0xa
jne 0x425d6b
cmp esi, ebx
jne 0x425d6b
mov byte [esi], 0xa
jmp 0x425da4
push 1
push 0xffffffffffffffff
push 0xffffffffffffffff
push dword [ebp + 8]
call fcn.00421ea2
add esp, 0x10
cmp byte [ebp - 1], 0xa
je 0x425da5
mov byte [esi], 0xd
jmp 0x425da4
mov ecx, dword [ebp - 0x10]
mov ecx, dword [ecx*4 + 0x526e00]
mov al, byte [ecx + edi + 0x28]
test al, 0x40
jne 0x425da1
or al, 2
mov byte [ecx + edi + 0x28], al
jmp 0x425da5
mov byte [esi], 0x1a
inc esi
sub esi, ebx
pop edi
mov eax, esi
pop esi
pop ebx
leave
ret
Function at 0x425dae
Capabilities:
Read file on windows

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x18
mov eax, dword [ebp + 8]
push ebx
push esi
mov esi, dword [ebp + 0xc]
mov ebx, eax
and eax, 0x3f
sar ebx, 6
push edi
imul edi, eax, 0x38
push 0xa
mov eax, dword [ebx*4 + 0x526e00]
pop edx
mov dword [ebp - 0x14], edx
mov ecx, dword [edi + eax + 0x18]
mov dword [ebp - 0x18], ecx
mov ecx, dword [ebp + 0x10]
test ecx, ecx
je 0x425df1
cmp word [esi], dx
jne 0x425df1
or byte [edi + eax + 0x28], 4
jmp 0x425df6
and byte [edi + eax + 0x28], 0xfb
lea edx, [esi + ecx*2]
mov eax, esi
mov dword [ebp - 8], edx
mov dword [ebp - 4], eax
cmp eax, edx
jae 0x425f49
mov dword [ebp - 0xc], 0xd
movzx ecx, word [eax]
mov edx, ecx
mov dword [ebp - 0x10], edx
push 0x1a
pop edx
cmp cx, dx
mov edx, dword [ebp - 8]
je 0x425f29
add eax, 2
cmp cx, word [ebp - 0xc]
je 0x425e38
mov dword [ebp - 4], eax
mov word [esi], cx
jmp 0x425e6e
cmp eax, edx
jae 0x425e7a
movzx eax, word [eax]
xor ecx, ecx
cmp ax, word [ebp - 0x14]
mov edx, eax
push 0xa
sete cl
xor eax, eax
lea ecx, [ecx*2 + 2]
add dword [ebp - 4], ecx
pop ecx
cmp dx, cx
mov edx, dword [ebp - 8]
sete al
dec eax
and eax, 3
add eax, ecx
mov word [esi], ax
mov eax, dword [ebp - 4]
add esi, 2
cmp eax, edx
jb 0x425e10
jmp 0x425f49
push 0
lea eax, [ebp - 0x14]
push eax
push 2
lea eax, [ebp - 4]
push eax
push dword [ebp - 0x18]
call dword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
je 0x425f25
cmp dword [ebp - 0x14], 0
je 0x425f25
mov eax, dword [ebx*4 + 0x526e00]
push 0xa
test byte [edi + eax + 0x28], 0x48
je 0x425efd
mov dx, word [ebp - 4]
lea eax, [esi + 2]
pop ecx
mov dword [ebp - 0x18], eax
cmp dx, cx
jne 0x425ec6
mov word [esi], cx
jmp 0x425ef9
push 0xd
pop eax
mov word [esi], ax
mov eax, dword [ebx*4 + 0x526e00]
movzx ecx, dx
shr ecx, 8
push 0xa
mov byte [edi + eax + 0x2a], dl
mov eax, dword [ebx*4 + 0x526e00]
mov byte [edi + eax + 0x2b], cl
mov eax, dword [ebx*4 + 0x526e00]
pop ecx
mov byte [edi + eax + 0x2c], cl
mov eax, dword [ebp - 0x18]
mov esi, eax
jmp 0x425f49
pop ebx
cmp word [ebp - 4], bx
jne 0x425f0e
cmp esi, dword [ebp + 0xc]
jne 0x425f0e
mov word [esi], bx
jmp 0x425f46
push 1
push 0xffffffffffffffff
push 0xfffffffffffffffe
push dword [ebp + 8]
call fcn.00421ea2
add esp, 0x10
cmp word [ebp - 4], bx
je 0x425f49
push 0xd
jmp 0x425f42
mov ecx, dword [ebx*4 + 0x526e00]
mov al, byte [ecx + edi + 0x28]
test al, 0x40
jne 0x425f40
or al, 2
mov byte [ecx + edi + 0x28], al
jmp 0x425f49
push 0x1a
pop eax
mov word [esi], ax
add esi, 2
sub esi, dword [ebp + 0xc]
and esi, 0xfffffffe
pop edi
mov eax, esi
pop esi
pop ebx
leave
ret
Function at 0x402dfb
Capabilities:
Resolve function by parsing pe exports

Disassembly:
sub esp, 0x20
mov eax, dword [0x480440]
xor eax, esp
mov dword [esp + 0x1c], eax
push ebx
push ebp
push esi
mov esi, dword [esp + 0x30]
xor ebp, ebp
push edi
mov eax, dword [esi + 0x3c]
mov ebx, dword [eax + esi + 0x78]
add ebx, esi
mov edi, dword [ebx + 0x20]
mov eax, dword [ebx + 0x18]
add edi, esi
mov dword [esp + 0x10], eax
test eax, eax
je 0x402e64
mov eax, dword [edi]
lea ecx, [esp + 0x14]
add eax, esi
push eax
call fcn.004021d2
lea eax, [esp + 0x14]
push 0x235
push eax
call fcn.00404a64
pop ecx
pop ecx
cmp eax, dword [esp + 0x38]
je 0x402e7c
lea ecx, [esp + 0x14]
add edi, 4
call fcn.00403cdf
inc ebp
cmp ebp, dword [esp + 0x10]
jb 0x402e2c
xor edi, edi
mov ecx, dword [esp + 0x2c]
lea eax, [esi + edi]
pop edi
pop esi
pop ebp
pop ebx
xor ecx, esp
call fcn.004067c8
add esp, 0x20
ret
mov eax, dword [ebx + 0x24]
lea eax, [eax + ebp*2]
movzx ecx, word [eax + esi]
mov eax, dword [ebx + 0x1c]
lea eax, [eax + ecx*4]
mov edi, dword [eax + esi]
lea ecx, [esp + 0x14]
call fcn.00403cdf
jmp 0x402e66

Function at 0x405401
Capabilities:
Read file on windows

Disassembly:
push ebx
mov ebx, dword [esp + 0xc]
push ebp
push esi
mov esi, dword [esp + 0x18]
mov ebp, ecx
test esi, esi
jg 0x405421
jl 0x405418
test ebx, ebx
jne 0x405421
xor eax, eax
xor edx, edx
jmp 0x4054e4
cmp dword [ebp + 0x38], 0
je 0x405437
push esi
push ebx
push dword [esp + 0x18]
call fcn.004054ea
jmp 0x4054e4
mov eax, dword [ebp + 0x1c]
push edi
mov edi, ebx
mov ecx, dword [eax]
test ecx, ecx
je 0x40547b
mov eax, dword [ebp + 0x2c]
cmp dword [eax], 0
jbe 0x40547b
cmp dword [eax], ebx
mov esi, ebx
mov edi, dword [esp + 0x14]
cmovb esi, dword [eax]
push esi
push ecx
push edi
call fcn.00403f4c
mov eax, dword [ebp + 0x2c]
add edi, esi
mov dword [esp + 0x20], edi
add esp, 0xc
mov edi, ebx
sub edi, esi
sub dword [eax], esi
mov eax, dword [ebp + 0x1c]
add dword [eax], esi
mov esi, dword [esp + 0x1c]
jmp 0x405483
mov eax, dword [esp + 0x14]
mov dword [esp + 0x14], eax
cmp dword [ebp + 0x4c], 0
je 0x4054da
mov ecx, ebp
call fcn.00403bb6
mov ecx, dword [esp + 0x14]
mov edx, edi
mov eax, 0xfff
cmp edi, eax
jbe 0x4054c5
push dword [ebp + 0x4c]
push eax
push 1
push ecx
call fcn.0040c0ec
mov ecx, dword [esp + 0x24]
sub edi, eax
add ecx, eax
add esp, 0x10
mov dword [esp + 0x14], ecx
mov edx, edi
cmp eax, 0xfff
jne 0x4054da
jmp 0x405496
test edx, edx
je 0x4054da
push dword [ebp + 0x4c]
push edi
push 1
push ecx
call fcn.0040c0ec
add esp, 0x10
sub edi, eax
sub ebx, edi
mov eax, ebx
sbb esi, 0
mov edx, esi
pop edi
pop esi
pop ebp
pop ebx
ret 0xc
Function at 0x4057b4
Capabilities:
Access peb ldr_data
Delete file
Get kernel32 base address
Get number of processors

Disassembly:
sub esp, 0xd0
mov eax, dword [0x480440]
xor eax, esp
mov dword [esp + 0xcc], eax
push ebx
push ebp
push esi
push edi
xor ebx, ebx
push 0x24
mov dword [esp + 0x14], ebx
call fcn.00406785
pop ecx
mov esi, eax
push 0x64
pop ebp
test esi, esi
je 0x40581a
push str.Window1
lea ecx, [esp + 0xc8]
call fcn.004021d2
lea eax, [esp + 0xc4]
push eax
push ebp
push ecx
push ecx
mov dword [esp + 4], 0x40000000
mov ecx, esi
mov dword [esp], 0x40400000
call fcn.0040222b
mov esi, eax
inc ebx
jmp 0x40581c
xor esi, esi
test bl, 1
je 0x40582d
lea ecx, [esp + 0xc4]
call fcn.00403cdf
test esi, esi
je 0x40584e
mov ecx, esi
call fcn.0040307d
test esi, esi
je 0x40584e
lea ecx, [esi + 0xc]
call fcn.00403cdf
push 0x24
push esi
call fcn.004067b5
pop ecx
pop ecx
mov edi, dword fs:[0x30]
mov edi, dword [edi + 0xc]
mov esi, dword [edi + 0xc]
mov eax, dword [esi]
mov eax, dword [eax]
mov eax, dword [eax + 0x18]
mov dword [0x4813b0], eax
push 0x27
push 0x47fe30
push 0x547
mov edi, 0x47fe58
push edi
call fcn.00402e9a
push 1
push 0x424458
call fcn.004059c0
push 0x8aafdc01
push dword [0x4813b0]
call fcn.00402dfb
add esp, 0x20
lea ecx, [esp + 0x14]
mov ebx, str.static.lib
mov esi, eax
push 1
push 0x40
push 2
push ebx
call fcn.0040201e
lea eax, [esp + 0x14]
push 0x424468
push eax
call fcn.004010ef
push eax
call fcn.00401dba
add esp, 0xc
sub ebp, 1
jne 0x4058b4
lea ecx, [esp + 0x14]
call fcn.00403f1c
push ebx
call dword [sym.imp.KERNEL32.dll_DeleteFileA]
lea eax, [esp + 0x10]
push eax
push 0x40
push 0x4e4
push edi
call esi
test eax, eax
je 0x405943
call fcn.00404efa
mov edi, dword [sym.imp.KERNEL32.dll_GetProcessHeap]
push 0x400
push 8
call edi
push eax
call dword [sym.imp.KERNEL32.dll_HeapAlloc]
mov esi, eax
test esi, esi
je 0x405943
push 0x42446c
push esi
call dword [sym.imp.USER32.dll_wsprintfA]
pop ecx
pop ecx
xor ebx, ebx
push ebx
push ebx
push eax
push esi
push 0xfffffffffffffff5
call dword [sym.imp.KERNEL32.dll_GetStdHandle]
push eax
call dword [sym.imp.KERNEL32.dll_WriteConsoleA]
push esi
push ebx
call edi
push eax
call dword [sym.imp.KERNEL32.dll_HeapFree]
lea ecx, [esp + 0x14]
call fcn.00402baa
mov ecx, dword [esp + 0xdc]
xor eax, eax
pop edi
pop esi
pop ebp
pop ebx
xor ecx, esp
call fcn.004067c8
add esp, 0xd0
ret 0x10

Function at 0x407516
Capabilities:
Parse pe header

Disassembly:
push 0
call dword [sym.imp.KERNEL32.dll_GetModuleHandleW]
test eax, eax
je 0x407555
mov ecx, 0x5a4d
cmp word [eax], cx
jne 0x407555
mov ecx, dword [eax + 0x3c]
add ecx, eax
cmp dword [ecx], 0x4550
jne 0x407555
mov eax, 0x10b
cmp word [ecx + 0x18], ax
jne 0x407555
cmp dword [ecx + 0x74], 0xe
jbe 0x407555
cmp dword [ecx + 0xe8], 0
setne al
ret
xor al, al
ret

Function at 0x415527
Capabilities:
Allocate thread local storage

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push esi
push 0x4282f8
push 0x4282f0
push str.FlsAlloc
push 0x1e
call fcn.004153f1
mov esi, eax
add esp, 0x10
test esi, esi
je 0x41555b
push dword [ebp + 8]
mov ecx, esi
call dword [0x424140]
call esi
jmp 0x415561
call dword [sym.imp.KERNEL32.dll_TlsAlloc]
pop esi
pop ebp
ret 4