joyce8/EMBER2024-capa huggingface dataset:
Function at 0x403e77
Capabilities:
Packed with generic packer

Disassembly:
jmp 0x455c15
pushal
popal
push ebp
mov ebp, esp
push esi
push edi
mov edi, dword [ebp + 0x1c]
mov eax, dword [edi]
test eax, eax
jne 0x455c30
push edi
pop ecx
call fcn.00406410
or eax, eax
je 0x455c5a
mov esi, dword [eax + 0x35c]
or esi, esi
je 0x455c5a
push dword [ebp + 0x18]
push dword [ebp + 0x14]
push dword [ebp + 0x10]
push dword [ebp + 0xc]
push dword [ebp + 8]
mov ecx, esi
call dword [section..00cfg]
call esi
add esp, 0x14
pop edi
pop esi
pop ebp
ret
mov ecx, edi
call fcn.00401460
push dword [ebp + 0x18]
mov ecx, dword [0x4e11d0]
push dword [ebp + 0x14]
mov esi, dword [eax*4 + 0x4e41d4]
and ecx, 0x1f
push dword [ebp + 0x10]
xor esi, dword [0x4e11d0]
push dword [ebp + 0xc]
ror esi, cl
push dword [ebp + 8]
or esi, esi
jne 0x455c49
call fcn.004036cf
int3

Function at 0x4041fb
Capabilities:
Get thread local storage value

Disassembly:
jmp 0x4553da
push ebp
push esp
pop ebp
push esi
push 0x4c1154
push 0x4c114c
push str.FlsGetValue
push 2
call fcn.00455142
add esp, 0x10
mov esi, eax
push dword [ebp + 8]
test esi, esi
je 0x45540c
push esi
pop ecx
call dword [section..00cfg]
call esi
jmp 0x455412
call dword [sym.imp.KERNEL32.dll_TlsGetValue]
pop esi
pop ebp
ret

Function at 0x404e1c
Capabilities:
Packed with generic packer

Disassembly:
jmp 0x493e42
pushal
popal
push ebp
mov ebp, esp
sub esp, 0x10
mov eax, dword [0x4e11d0]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
push esi
push 0x4c41ac
push 0x4c41a4
push str.GetProcessWindowStation
push 8
call fcn.00493238
push eax
pop esi
add esp, 0x10
or esi, esi
je 0x493ed1
push 0x4c4224
push 0x4c421c
push str.GetUserObjectInformationW
push 0xc
call fcn.00493238
mov ebx, eax
add esp, 0x10
test ebx, ebx
je 0x493ed1
mov ecx, esi
call dword [section..00cfg]
call esi
mov ecx, eax
or ecx, ecx
je 0x493ecd
push edi
sub eax, eax
lea edi, [ebp - 0x10]
stosd dword es:[edi], eax
push 0
push 0xc
stosd dword es:[edi], eax
stosd dword es:[edi], eax
lea eax, [ebp - 0x10]
push eax
push 1
push ecx
push ebx
pop ecx
call dword [section..00cfg]
call ebx
pop edi
test eax, eax
je 0x493ecd
test byte [ebp - 8], 1
jne 0x493ed1
xor al, al
jmp 0x493ed3
mov al, 1
mov ecx, dword [ebp - 4]
pop esi
xor ecx, ebp
pop ebx
call fcn.00403102
leave
ret
Function at 0x40508d
Capabilities:
Get geographical location

Disassembly:
jmp 0x4a35d9
pushal
popal
push ebp
mov ebp, esp
sub esp, 0x18
mov eax, dword [0x4e11d0]
xor eax, ebp
mov dword [ebp - 4], eax
mov eax, dword [ebp + 0xc]
push ebx
mov ebx, dword [ebp + 0x10]
push esi
mov esi, dword [ebp + 8]
push edi
mov dword [ebp - 0x18], eax
call fcn.0040442b
add eax, 0x50
lea edi, [ebp - 0x10]
mov dword [ebp - 0x14], eax
sub eax, eax
stosd dword es:[edi], eax
stosd dword es:[edi], eax
stosd dword es:[edi], eax
call fcn.0040442b
lea ecx, [ebp - 0x10]
sub edx, edx
mov dword [eax + 0x34c], ecx
lea ecx, [esi + 0x80]
mov eax, dword [ebp - 0x14]
mov dword [eax], esi
lea edi, [eax + 4]
mov dword [edi], ecx
or ecx, ecx
je 0x4a3650
cmp word [ecx], dx
je 0x4a3650
mov eax, dword [0x4c4c74]
push edi
dec eax
push eax
push 0x4c4b28
call fcn.004a3560
mov eax, dword [ebp - 0x14]
add esp, 0xc
xor edx, edx
mov dword [ebp - 0x10], edx
mov eax, dword [eax]
or eax, eax
je 0x4a36c7
cmp word [eax], dx
je 0x4a36c7
mov eax, dword [edi]
or eax, eax
je 0x4a3674
cmp word [eax], dx
je 0x4a3674
lea eax, [ebp - 0x10]
push eax
call fcn.004a2dc8
jmp 0x4a367d
lea eax, [ebp - 0x10]
push eax
call 0x4a2e89
cmp dword [ebp - 0x10], 0
pop ecx
jne 0x4a370a
mov eax, dword [0x4c4b20]
push dword [ebp - 0x14]
dec eax
push eax
push 0x4c4778
call fcn.004a3560
add esp, 0xc
test al, al
je 0x4a36f1
mov eax, dword [edi]
xor edi, edi
test eax, eax
je 0x4a36bb
cmp word [eax], di
je 0x4a36bb
lea eax, [ebp - 0x10]
push eax
call fcn.004a2dc8
jmp 0x4a36c4
lea eax, [ebp - 0x10]
push eax
call 0x4a2e89
pop ecx
jmp 0x4a36f3
mov eax, dword [edi]
or eax, eax
je 0x4a36de
cmp word [eax], dx
je 0x4a36de
lea eax, [ebp - 0x10]
push eax
call 0x4a2d46
pop ecx
jmp 0x4a36f1
mov dword [ebp - 0x10], 0x104
call dword [sym.imp.KERNEL32.dll_GetUserDefaultLCID]
mov dword [ebp - 8], eax
mov dword [ebp - 0xc], eax
sub edi, edi
cmp dword [ebp - 0x10], 0
jne 0x4a370c
sub eax, eax
mov ecx, dword [ebp - 4]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.00403102
leave
ret
xor edi, edi
lea eax, [ebp - 0x10]
push eax
lea eax, [esi + 0x100]
neg esi
sbb esi, esi
and esi, eax
push esi
call fcn.004a3390
push eax
pop esi
pop ecx
pop ecx
test esi, esi
je 0x4a36f9
movzx ecx, si
push ecx
call dword [sym.imp.KERNEL32.dll_IsValidCodePage]
test eax, eax
je 0x4a36f9
push 1
push dword [ebp - 0xc]
call dword [sym.imp.KERNEL32.dll_IsValidLocale]
or eax, eax
je 0x4a36f9
mov eax, dword [ebp - 0x18]
test eax, eax
je 0x4a3750
mov dword [eax], esi
mov eax, dword [ebp - 0x14]
push edi
push 0x55
add eax, 0x250
push eax
push dword [ebp - 0xc]
call fcn.00405033
test ebx, ebx
je 0x4a37c6
push edi
push 0x55
lea eax, [ebx + 0x120]
push eax
push dword [ebp - 0xc]
call fcn.00405033
push 0x40
push ebx
push 0x1001
push dword [ebp - 0xc]
call dword [sym.imp.KERNEL32.dll_GetLocaleInfoW]
or eax, eax
je 0x4a36f9
push 0x40
lea eax, [ebx + 0x80]
push eax
push 0x1002
push dword [ebp - 8]
call dword [sym.imp.KERNEL32.dll_GetLocaleInfoW]
test eax, eax
je 0x4a36f9
push 0xa
push 0x10
lea ecx, [ebx + 0x100]
push ecx
push esi
call fcn.00404566
add esp, 0x10
sub eax, eax
inc eax
jmp 0x4a36fb
Function at 0x405484
Capabilities:
Set environment variable

Disassembly:
jmp 0x4ad693
push edi
pop edi
push ebp
mov ebp, esp
sub esp, 0x30
push ebx
sub ebx, ebx
push esi
push ebx
pop esi
mov dword [ebp - 0x30], ebx
mov dword [ebp - 0x2c], ebx
mov dword [ebp - 0x28], ebx
mov dword [ebp - 0x24], ebx
mov dword [ebp - 0x20], ebx
mov byte [ebp - 0x1c], bl
mov dword [ebp - 0x18], ebx
mov dword [ebp - 0x14], ebx
mov dword [ebp - 0x10], esi
mov dword [ebp - 0xc], ebx
mov dword [ebp - 8], ebx
mov byte [ebp - 4], bl
call fcn.00403bc5
push eax
lea eax, [ebp - 0x30]
push eax
push dword [ebp + 8]
call fcn.00404f66
add esp, 0xc
test eax, eax
jne 0x4ad706
call fcn.00403bc5
push eax
lea eax, [ebp - 0x18]
push eax
push dword [ebp + 0xc]
call fcn.00404f66
mov esi, dword [ebp - 0x10]
add esp, 0xc
test eax, eax
jne 0x4ad706
push esi
push dword [ebp - 0x28]
call dword [sym.imp.KERNEL32.dll_SetEnvironmentVariableW]
mov ebx, eax
cmp byte [ebp - 4], 0
je 0x4ad713
push esi
call fcn.00406456
pop ecx
cmp byte [ebp - 0x1c], 0
je 0x4ad722
push dword [ebp - 0x28]
call fcn.00406456
pop ecx
pop esi
push ebx
pop eax
pop ebx
leave
ret

Function at 0x405975
Capabilities:
Parse pe header

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

Function at 0x4059cf
Capabilities:
Query environment variable

Disassembly:
jmp 0x49f6ca
pushal
popal
push ebp
mov ebp, esp
push ecx
push ecx
push esi
call dword [sym.imp.KERNEL32.dll_GetEnvironmentStringsW]
mov esi, eax
or esi, esi
je 0x49f767
push ebx
push esi
call fcn.0049f679
xor ebx, ebx
sub eax, esi
push ebx
push ebx
push ebx
push ebx
sar eax, 1
push eax
push esi
push ebx
push ebx
mov dword [ebp - 8], eax
call fcn.004066b8
add esp, 0x24
mov dword [ebp - 4], eax
test eax, eax
jne 0x49f714
push esi
call dword [sym.imp.KERNEL32.dll_FreeEnvironmentStringsW]
sub eax, eax
jmp 0x49f766
push edi
push eax
call fcn.004040f2
push eax
pop edi
pop ecx
push ebx
test edi, edi
jne 0x49f734
call fcn.00406456
pop ecx
push esi
call dword [sym.imp.KERNEL32.dll_FreeEnvironmentStringsW]
xor eax, eax
jmp 0x49f765
push ebx
push dword [ebp - 4]
push edi
push dword [ebp - 8]
push esi
push ebx
push ebx
call fcn.004066b8
add esp, 0x20
or eax, eax
jne 0x49f753
push edi
call fcn.00406456
jmp 0x49f75b
push ebx
call fcn.00406456
mov ebx, edi
pop ecx
push esi
call dword [sym.imp.KERNEL32.dll_FreeEnvironmentStringsW]
mov eax, ebx
pop edi
pop ebx
pop esi
leave
ret

Function at 0x406203
Capabilities:
Packed with generic packer

Disassembly:
jmp 0x48995b
pushal
popal
push ebp
push esp
pop ebp
push esi
mov esi, dword [ebp + 8]
cmp esi, dword [ebp + 0xc]
je 0x489983
push edi
mov edi, dword [esi]
test edi, edi
je 0x48997a
mov ecx, edi
call dword [section..00cfg]
call edi
add esi, 4
cmp esi, dword [ebp + 0xc]
jne 0x48996a
pop edi
pop esi
pop ebp
ret
Function at 0x406532
Capabilities:
Allocate thread local storage

Disassembly:
jmp 0x493630
push esi
pop esi
push ebp
push esp
pop ebp
push esi
push 0x4c448c
push 0x4c4484
push str.FlsAlloc
push 0x1e
call fcn.00493238
mov esi, eax
add esp, 0x10
test esi, esi
je 0x493664
push dword [ebp + 8]
mov ecx, esi
call dword [section..00cfg]
call esi
jmp 0x49366a
call dword [sym.imp.KERNEL32.dll_TlsAlloc]
pop esi
pop ebp
ret 4
Function at 0x40688e
Capabilities:
Create thread

Disassembly:
jmp 0x47670c
push esi
pop esi
push ebp
push esp
pop ebp
push ecx
push ecx
cmp dword [ebp + 0x10], 0
jne 0x47672d
call fcn.00403a76
mov dword [eax], 0x16
call fcn.00403828
sub eax, eax
leave
ret
push esi
push dword [ebp + 0x14]
push dword [ebp + 0x10]
call fcn.00476587
mov dword [ebp - 4], eax
pop ecx
pop ecx
test eax, eax
je 0x47676e
lea ecx, [ebp - 8]
push ecx
push dword [ebp + 0x18]
push eax
push 0x4763b1
push dword [ebp + 0xc]
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.dll_CreateThread]
mov esi, eax
test esi, esi
jne 0x47677d
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
call fcn.00404bdd
pop ecx
sub esi, esi
lea ecx, [ebp - 4]
call fcn.0047648c
mov eax, esi
pop esi
leave
ret
mov ecx, dword [ebp + 0x1c]
or ecx, ecx
je 0x476789
mov eax, dword [ebp - 8]
mov dword [ecx], eax
and dword [ebp - 4], 0
jmp 0x476770
Function at 0x415290
Capabilities:
Resolve function by parsing pe exports

Disassembly:
jmp 0x4151d0
sub esp, 0x6c
mov eax, dword [0x4e11d0]
xor eax, esp
mov dword [esp + 0x68], eax
push ebx
push ebp
push esi
push edi
mov esi, ecx
call fcn.00401352
mov ebx, eax
lea eax, [esp + 0x20]
push eax
mov dword [esp + 0x18], ebx
call fcn.0040273e
add esp, 4
mov edi, 0x4bd14e
cmp byte [esp + 0x84], 0
movups xmm0, xmmword [eax]
movups xmmword [esp + 0x4c], xmm0
movups xmm0, xmmword [eax + 0x10]
movups xmmword [esp + 0x5c], xmm0
movq xmm0, qword [eax + 0x20]
movq qword [esp + 0x6c], xmm0
mov eax, dword [eax + 0x28]
mov dword [esp + 0x74], eax
mov dword [esi + 8], 0
mov dword [esi + 0x10], 0
mov dword [esi + 0x14], 0
jne 0x415246
mov edi, dword [ebx + 8]
lea eax, [esp + 0x20]
push eax
call fcn.0040273e
push edi
pop ecx
add esp, 4
lea edx, [ecx + 1]
mov al, byte [ecx]
inc ecx
test al, al
jne 0x415258
sub ecx, edx
push 1
lea ebx, [ecx + 1]
push ebx
call fcn.00403422
push eax
pop ebp
add esp, 8
test ebp, ebp
je 0x415362
or ebx, ebx
je 0x415288
push ebx
push edi
push ebp
call fcn.004058a8
add esp, 0xc
lea eax, [esp + 0x4c]
mov dword [esi + 8], ebp
push eax
push 0
push str.false
call fcn.00403233
mov dword [esi + 0x10], eax
lea eax, [esp + 0x58]
push eax
push 0
push str.true
call fcn.00403233
add esp, 0x18
mov dword [esi + 0x14], eax
cmp byte [esp + 0x84], 0
je 0x415335
lea eax, [esp + 0x4c]
mov byte [esp + 0x10], 0x2e
push eax
lea eax, [esp + 0x1c]
mov dword [esp + 0x18], 0
push eax
push 1
lea eax, [esp + 0x1c]
xorps xmm0, xmm0
push eax
lea eax, [esp + 0x24]
movlpd qword [esp + 0x28], xmm0
push eax
call fcn.00403d96
movzx eax, word [esp + 0x28]
xorps xmm0, xmm0
mov word [esi + 0xc], ax
lea eax, [esp + 0x60]
push eax
lea eax, [esp + 0x30]
mov byte [esp + 0x28], 0x2c
push eax
push 1
lea eax, [esp + 0x30]
mov dword [esp + 0x34], 0
push eax
lea eax, [esp + 0x38]
movlpd qword [esp + 0x3c], xmm0
push eax
call fcn.00403d96
movzx eax, word [esp + 0x3c]
add esp, 0x28
jmp 0x415349
mov ecx, dword [esp + 0x14]
mov eax, dword [ecx + 0x30]
movzx eax, word [eax]
mov word [esi + 0xc], ax
mov eax, dword [ecx + 0x34]
movzx eax, word [eax]
mov ecx, dword [esp + 0x78]
pop edi
mov word [esi + 0xe], ax
pop esi
pop ebp
pop ebx
xor ecx, esp
call fcn.00403102
add esp, 0x6c
ret 8
call fcn.004010af
int3

Function at 0x443c1c
Capabilities:
Enumerate pe sections

Disassembly:
push ebp
push esp
pop ebp
mov eax, dword [ebp + 8]
push esi
mov ecx, dword [eax + 0x3c]
add ecx, eax
movzx eax, word [ecx + 0x14]
lea edx, [ecx + 0x18]
add edx, eax
movzx eax, word [ecx + 6]
imul esi, eax, 0x28
add esi, edx
cmp edx, esi
je 0x443c57
mov ecx, dword [ebp + 0xc]
cmp ecx, dword [edx + 0xc]
jb 0x443c50
mov eax, dword [edx + 8]
add eax, dword [edx + 0xc]
cmp ecx, eax
jb 0x443c5c
add edx, 0x28
cmp edx, esi
jne 0x443c41
sub eax, eax
pop esi
pop ebp
ret
push edx
pop eax
jmp 0x443c59
Function at 0x489dfe
Capabilities:
Parse pe header

Disassembly:
push 0
call dword [sym.imp.KERNEL32.dll_GetModuleHandleW]
or eax, eax
je 0x489e3e
mov ecx, 0x5a4d
cmp word [eax], cx
jne 0x489e3e
mov ecx, dword [eax + 0x3c]
add ecx, eax
cmp dword [ecx], 0x4550
jne 0x489e3e
mov eax, 0x10b
cmp word [ecx + 0x18], ax
jne 0x489e3e
cmp dword [ecx + 0x74], 0xe
jbe 0x489e3e
cmp dword [ecx + 0xe8], 0
je 0x489e3e
mov al, 1
ret
xor al, al
ret
Function at 0x496f12
Capabilities:
Write file on windows

Disassembly:
push edi
pop edi
push ebp
mov ebp, esp
mov eax, 0x140c
call fcn.00401dde
mov eax, dword [0x4e11d0]
xor eax, ebp
mov dword [ebp - 4], eax
mov ecx, dword [ebp + 0xc]
mov eax, ecx
mov edx, dword [ebp + 0x14]
and ecx, 0x3f
sar eax, 6
imul ecx, ecx, 0x38
push ebx
mov ebx, dword [ebp + 8]
mov eax, dword [eax*4 + 0x4e4f30]
push esi
push edi
push ebx
pop edi
mov eax, dword [eax + ecx + 0x18]
mov ecx, dword [ebp + 0x10]
add edx, ecx
mov dword [ebp - 0x1408], eax
xor eax, eax
stosd dword es:[edi], eax
mov dword [ebp - 0x140c], edx
stosd dword es:[edi], eax
stosd dword es:[edi], eax
cmp ecx, edx
jae 0x496fdc
mov edi, dword [ebp - 0x1408]
lea esi, [ebp - 0x1404]
cmp ecx, edx
jae 0x496f91
mov al, byte [ecx]
inc ecx
cmp al, 0xa
jne 0x496f87
inc dword [ebx + 8]
mov byte [esi], 0xd
inc esi
mov byte [esi], al
inc esi
lea eax, [ebp - 5]
cmp esi, eax
jb 0x496f75
lea eax, [ebp - 0x1404]
mov dword [ebp + 0x10], ecx
sub esi, eax
lea eax, [ebp - 0x1408]
push 0
push eax
push esi
lea eax, [ebp - 0x1404]
push eax
push edi
call dword [sym.imp.KERNEL32.dll_WriteFile]
or eax, eax
je 0x496fd4
mov eax, dword [ebp - 0x1408]
add dword [ebx + 4], eax
cmp eax, esi
jb 0x496fdc
mov ecx, dword [ebp + 0x10]
mov edx, dword [ebp - 0x140c]
cmp ecx, edx
jb 0x496f6f
jmp 0x496fdc
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov dword [ebx], eax
mov ecx, dword [ebp - 4]
mov eax, ebx
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.00403102
leave
ret

Function at 0x497023
Capabilities:
Write file on windows

Disassembly:
push edi
pop edi
push ebp
push esp
pop ebp
mov eax, 0x1410
call fcn.00401dde
mov eax, dword [0x4e11d0]
xor eax, ebp
mov dword [ebp - 4], eax
mov ecx, dword [ebp + 0xc]
push ecx
pop eax
mov edx, dword [ebp + 0x14]
and ecx, 0x3f
sar eax, 6
imul ecx, ecx, 0x38
push ebx
mov ebx, dword [ebp + 8]
mov eax, dword [eax*4 + 0x4e4f30]
push esi
push edi
push ebx
pop edi
mov eax, dword [eax + ecx + 0x18]
mov ecx, dword [ebp + 0x10]
add edx, ecx
mov dword [ebp - 0x1408], eax
xor eax, eax
stosd dword es:[edi], eax
mov dword [ebp - 0x1410], edx
stosd dword es:[edi], eax
stosd dword es:[edi], eax
jmp 0x4970ed
lea esi, [ebp - 0x1404]
cmp ecx, edx
jae 0x4970a7
movzx eax, word [ecx]
add ecx, 2
cmp eax, 0xa
jne 0x49709a
add dword [ebx + 8], 2
push 0xd
pop edi
mov word [esi], di
add esi, 2
mov word [esi], ax
add esi, 2
lea eax, [ebp - 6]
cmp esi, eax
jb 0x49707e
mov edi, dword [ebp - 0x1408]
lea eax, [ebp - 0x1404]
sub esi, eax
mov dword [ebp + 0x10], ecx
push 0
lea eax, [ebp - 0x140c]
and esi, 0xfffffffe
push eax
push esi
lea eax, [ebp - 0x1404]
push eax
push edi
call dword [sym.imp.KERNEL32.dll_WriteFile]
or eax, eax
je 0x4970f3
mov eax, dword [ebp - 0x140c]
add dword [ebx + 4], eax
cmp eax, esi
jb 0x4970fb
mov ecx, dword [ebp + 0x10]
mov edx, dword [ebp - 0x1410]
cmp ecx, edx
jb 0x497078
jmp 0x4970fb
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov dword [ebx], eax
mov ecx, dword [ebp - 4]
push ebx
pop eax
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.00403102
leave
ret
Function at 0x497146
Capabilities:
Write file on windows

Disassembly:
mov edi, edi
push ebp
push esp
pop ebp
mov eax, 0x1418
call fcn.00401dde
mov eax, dword [0x4e11d0]
xor eax, ebp
mov dword [ebp - 4], eax
mov ecx, dword [ebp + 0xc]
push ecx
pop eax
mov edx, dword [ebp + 0x10]
and ecx, 0x3f
sar eax, 6
imul ecx, ecx, 0x38
push ebx
push esi
mov eax, dword [eax*4 + 0x4e4f30]
mov esi, dword [ebp + 8]
push edi
mov edi, esi
mov eax, dword [eax + ecx + 0x18]
mov ecx, dword [ebp + 0x14]
mov dword [ebp - 0x1410], eax
add ecx, edx
sub eax, eax
mov dword [ebp - 0x140c], ecx
stosd dword es:[edi], eax
stosd dword es:[edi], eax
stosd dword es:[edi], eax
push edx
pop edi
cmp edx, ecx
jae 0x497267
mov esi, dword [ebp - 0x140c]
lea eax, [ebp - 0x6b0]
cmp edi, esi
jae 0x4971d4
movzx ecx, word [edi]
add edi, 2
cmp ecx, 0xa
jne 0x4971c7
push 0xd
pop edx
mov word [eax], dx
add eax, 2
mov word [eax], cx
add eax, 2
lea ecx, [ebp - 8]
cmp eax, ecx
jb 0x4971af
push 0
push 0
push 0xd55
lea ecx, [ebp - 0x1408]
push ecx
lea ecx, [ebp - 0x6b0]
sub eax, ecx
sar eax, 1
push eax
mov eax, ecx
push eax
push 0
push 0xfde9
call fcn.004066b8
mov esi, dword [ebp + 8]
add esp, 0x20
mov dword [ebp - 0x1418], eax
test eax, eax
je 0x49725f
sub ebx, ebx
or eax, eax
je 0x497249
push 0
lea ecx, [ebp - 0x1414]
sub eax, ebx
push ecx
push eax
lea eax, [ebp - 0x1408]
add eax, ebx
push eax
push dword [ebp - 0x1410]
call dword [sym.imp.KERNEL32.dll_WriteFile]
test eax, eax
je 0x49725f
add ebx, dword [ebp - 0x1414]
mov eax, dword [ebp - 0x1418]
cmp ebx, eax
jb 0x497214
mov eax, edi
sub eax, dword [ebp + 0x10]
mov dword [esi + 4], eax
cmp edi, dword [ebp - 0x140c]
jb 0x4971a3
jmp 0x497267
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov dword [esi], eax
mov ecx, dword [ebp - 4]
push esi
pop eax
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.00403102
leave
ret
Function at 0x498277
Capabilities:
Read file on windows

Disassembly:
push edi
pop edi
push ebp
mov ebp, esp
mov eax, 0x101c
call fcn.00401dde
mov eax, dword [0x4e11d0]
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.00406050
pop ecx
mov ecx, dword [ebp + 8]
mov ebx, eax
cmp dword [ecx + 8], 0
jne 0x4982b9
mov eax, dword [ebp + 0xc]
mov edx, dword [ebp + 0x10]
jmp 0x498415
mov eax, dword [ecx]
sub eax, dword [ecx + 4]
push esi
push edi
push 0
cdq
push 2
push edx
push eax
call fcn.004061ae
push dword [ebp - 0x100c]
push ebx
pop ecx
mov dword [ebp - 0x1008], eax
push ebx
pop esi
mov dword [ebp - 0x1018], edx
and ecx, 0x3f
sar esi, 6
imul edi, ecx, 0x38
push 0
mov eax, dword [esi*4 + 0x4e4f30]
push dword [edi + eax + 0x24]
push dword [edi + eax + 0x20]
push ebx
call fcn.00403328
mov ecx, dword [esi*4 + 0x4e4f30]
add esp, 0x14
mov dword [ebp - 0x1010], eax
push edx
pop eax
mov edx, dword [ebp - 0x1010]
mov dword [ebp - 0x101c], eax
cmp edx, dword [edi + ecx + 0x20]
jne 0x49840e
cmp eax, dword [edi + ecx + 0x24]
jne 0x49840e
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]
or eax, eax
je 0x49840e
push dword [ebp - 0x100c]
push 0
push dword [ebp + 0x10]
push dword [ebp + 0xc]
push ebx
call fcn.00403328
add esp, 0x14
test edx, edx
jl 0x49840e
jg 0x498384
or eax, eax
jb 0x49840e
mov ebx, dword [ebp - 0x1018]
mov eax, dword [ebp - 0x1014]
test ebx, ebx
jg 0x49840e
jl 0x49839e
cmp dword [ebp - 0x1008], eax
ja 0x49840e
lea edi, [ebp - 0x1004]
xor edx, edx
add edi, eax
lea ecx, [ebp - 0x1004]
xor esi, esi
cmp dword [ebp - 0x1008], edx
jne 0x4983bc
test ebx, ebx
je 0x4983f5
cmp ecx, edi
jae 0x4983f5
mov al, byte [ecx]
cmp al, 0xd
jne 0x4983d6
lea eax, [edi - 1]
cmp ecx, eax
jae 0x4983e2
cmp byte [ecx + 1], 0xa
jne 0x4983e2
inc ecx
jmp 0x4983e2
movzx eax, al
movsx eax, byte [eax + 0x4e14f8]
add ecx, eax
add esi, 1
adc edx, 0
inc ecx
cmp esi, dword [ebp - 0x1008]
jne 0x4983bc
cmp edx, ebx
jne 0x4983bc
lea eax, [ebp - 0x1004]
sub ecx, eax
push ecx
pop eax
cdq
add eax, dword [ebp - 0x1010]
adc edx, dword [ebp - 0x101c]
jmp 0x498413
or edx, 0xffffffff
push edx
pop eax
pop edi
pop esi
mov ecx, dword [ebp - 4]
xor ecx, ebp
pop ebx
call fcn.00403102
leave
ret
Function at 0x498a94
Capabilities:
Get file size

Disassembly:
pushal
popal
push ebp
mov ebp, esp
mov eax, dword [ebp + 8]
sub esp, 0x10
mov eax, dword [eax + 0xc]
nop
shr eax, 3
test al, 1
je 0x498aae
mov al, 1
leave
ret
mov eax, dword [ebp + 8]
push ebx
push esi
mov eax, dword [eax + 0xc]
nop
test al, 0xc0
mov eax, dword [ebp + 8]
je 0x498ac5
mov ecx, dword [eax]
cmp ecx, dword [eax + 4]
je 0x498b13
mov eax, dword [eax + 0x10]
nop
push eax
call fcn.004045de
push eax
pop esi
pop ecx
cmp esi, 0xffffffff
je 0x498b13
sub ebx, ebx
lea eax, [ebp - 8]
inc ebx
push ebx
push eax
push 0
push 0
push esi
call dword [sym.imp.KERNEL32.dll_SetFilePointerEx]
test eax, eax
je 0x498b13
lea eax, [ebp - 0x10]
push eax
push esi
call dword [sym.imp.KERNEL32.dll_GetFileSizeEx]
or eax, eax
je 0x498b13
mov eax, dword [ebp - 8]
cmp eax, dword [ebp - 0x10]
jne 0x498b0d
mov eax, dword [ebp - 4]
cmp eax, dword [ebp - 0xc]
je 0x498b0f
xor bl, bl
mov al, bl
jmp 0x498b15
xor al, al
pop esi
pop ebx
leave
ret
Function at 0x498b54
Capabilities:
Read file on windows

Disassembly:
push edi
pop edi
push ebp
push esp
pop ebp
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 + 0x4e4f30]
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 0x498b94
cmp byte [ebx], 0xa
jne 0x498b94
or byte [eax + edi + 0x28], 4
jmp 0x498b99
and byte [eax + edi + 0x28], 0xfb
add ecx, ebx
mov edx, ebx
mov dword [ebp - 0xc], ecx
push ebx
pop esi
cmp ebx, ecx
jae 0x498c97
mov al, byte [edx]
cmp al, 0x1a
je 0x498c79
lea ecx, [edx + 1]
mov dword [ebp - 8], ecx
mov ecx, dword [ebp - 0xc]
cmp al, 0xd
je 0x498bc8
mov edx, dword [ebp - 8]
mov byte [esi], al
jmp 0x498bed
mov eax, dword [ebp - 8]
cmp eax, ecx
jae 0x498bf7
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 0x498baa
jmp 0x498c97
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]
or eax, eax
je 0x498c74
cmp dword [ebp - 0xc], 0
je 0x498c74
mov ecx, dword [ebp - 0x10]
mov eax, dword [ecx*4 + 0x4e4f30]
test byte [eax + edi + 0x28], 0x48
je 0x498c4e
mov dl, byte [ebp - 1]
lea eax, [esi + 1]
mov dword [ebp - 0x14], eax
cmp dl, 0xa
jne 0x498c39
mov byte [esi], dl
jmp 0x498c4a
mov byte [esi], 0xd
mov eax, dword [ecx*4 + 0x4e4f30]
mov byte [eax + edi + 0x2a], dl
mov eax, dword [ebp - 0x14]
push eax
pop esi
jmp 0x498c97
cmp byte [ebp - 1], 0xa
jne 0x498c5d
cmp esi, ebx
jne 0x498c5d
mov byte [esi], 0xa
jmp 0x498c96
push 1
push 0xffffffffffffffff
push 0xffffffffffffffff
push dword [ebp + 8]
call fcn.0040196a
add esp, 0x10
cmp byte [ebp - 1], 0xa
je 0x498c97
mov byte [esi], 0xd
jmp 0x498c96
mov ecx, dword [ebp - 0x10]
mov ecx, dword [ecx*4 + 0x4e4f30]
mov al, byte [ecx + edi + 0x28]
test al, 0x40
jne 0x498c93
or al, 2
mov byte [ecx + edi + 0x28], al
jmp 0x498c97
mov byte [esi], 0x1a
inc esi
sub esi, ebx
pop edi
mov eax, esi
pop esi
pop ebx
leave
ret