joyce8/EMBER2024-capa huggingface dataset:
Function at 0x1000128c
Capabilities:
Enumerate pe sections

Disassembly:
mov ecx, dword [esp + 8]
push esi
push edi
xor edi, edi
movzx eax, word [ecx + 0x14]
movzx esi, word [ecx + 6]
test esi, esi
lea eax, [eax + ecx + 0x18]
jbe 0x100012c7
mov ecx, dword [eax + 8]
test ecx, ecx
jne 0x100012ae
mov ecx, dword [eax + 0x10]
mov edx, dword [eax + 0xc]
cmp dword [esp + 0xc], edx
jb 0x100012bf
add edx, ecx
cmp dword [esp + 0xc], edx
jb 0x100012c9
inc edi
add eax, 0x28
cmp edi, esi
jb 0x100012a4
xor eax, eax
pop edi
pop esi
ret

Function at 0x10001540
Capabilities:
Contain obfuscated stackstrings

Disassembly:
dec dword [ecx + 0x5d880c4d]
ror byte [eax + 0x45c6c15d], 0xc2
in al, dx
mov byte [ebp - 0x3d], bl
mov byte [ebp - 0x3c], 0x45
mov byte [ebp - 0x3b], 0x7a
mov byte [ebp - 0x3a], 0x61
mov byte [ebp - 0x39], 0x67
mov byte [ebp - 0x38], 0x66
mov byte [ebp - 0x37], 0x72
mov byte [ebp - 0x36], 0x7f
mov byte [ebp - 0x35], 0x52
mov byte [ebp - 0x34], 0x7f
mov byte [ebp - 0x33], 0x7f
mov byte [ebp - 0x32], 0x7c
mov byte [ebp - 0x31], 0x70
mov byte [ebp - 0x30], 0x13
call fcn.1000124c
invalid

Function at 0x10001630
Capabilities:
Contain obfuscated stackstrings

Disassembly:
inc ebp
sahf
sub eax, 0x119f45c6
mov byte [ebp - 0x60], 0x33
mov byte [ebp - 0x5f], 0x2e
mov byte [ebp - 0x5e], 0x35
mov byte [ebp - 0x5d], 0x24
mov byte [ebp - 0x5c], 0x22
mov byte [ebp - 0x5b], 0x35
mov byte [ebp - 0x5a], 0x41
call fcn.1000125c
push eax
push esi
push dword [ebp + 8]
call fcn.10001211
mov dword [ebp - 0xbc], eax
lea eax, [ebp - 0x2c]
mov byte [ebp - 0x2c], bl
push eax
mov byte [ebp - 0x2b], bl
mov byte [ebp - 0x2a], 0xd4
mov byte [ebp - 0x29], bl
mov byte [ebp - 0x28], 0x67
mov byte [ebp - 0x27], 0x44
mov byte [ebp - 0x26], 0x4a
mov byte [ebp - 0x25], 0x4f
mov byte [ebp - 0x24], 0x67
mov byte [ebp - 0x23], 0x42
mov byte [ebp - 0x22], 0x49
mov byte [ebp - 0x21], 0x59
mov byte [ebp - 0x20], 0x4a
mov byte [ebp - 0x1f], 0x59
mov byte [ebp - 0x1e], 0x52
mov byte [ebp - 0x1d], 0x6a
mov byte [ebp - 0x1c], 0x2b
call fcn.1000125c
push eax
push esi
push dword [ebp + 8]
call fcn.10001211
add esp, 0x30
mov dword [ebp - 0xb8], eax
call fcn.1000124c
cmp eax, 0x8817c747
popfd

Function at 0x10001780
Capabilities:
Inspect section memory permissions

Disassembly:
invalid
cmp word [edi + 6], bx
mov dword [ebp + 0xc], ebx
jbe 0x100017bc
movzx eax, word [ebp + 0xc]
mov ecx, dword [ebp - 0x44]
lea eax, [eax + eax*4]
push dword [ecx + eax*8 + 0x10]
lea eax, [ecx + eax*8]
mov ecx, dword [eax + 0x14]
mov eax, dword [eax + 0xc]
add ecx, dword [ebp + 0x10]
add eax, esi
push ecx
push eax
call fcn.100011bd
add esp, 0xc
inc dword [ebp + 0xc]
mov ax, word [ebp + 0xc]
cmp ax, word [edi + 6]
jb 0x10001789
call fcn.1000124c
inc esp
sub bh, dh
jno 0x10001751
jle 0x10001804
add edi, esi
mov dword [ebp - 0x88], edi
mov eax, dword [edi + 0x80]
cmp eax, ebx
je 0x10001a3b
add eax, esi
mov dword [ebp - 0x44], eax
push dword [ebx + 0x22]
Function at 0x100019b0
Capabilities:
Inspect section memory permissions

Disassembly:
mov edi, dword [ebp - 0x88]
jbe 0x10001905
mov dword [ebp + 8], esi
xor edi, edi
mov eax, dword [ebp + 0x18]
push 2
pop ecx
movzx eax, byte [edi + eax]
sub eax, ecx
je 0x100019ec
dec eax
je 0x100019e3
sub eax, 3
je 0x100019da
mov dword [ebp - 4], 0x40
jmp 0x10001a09
mov dword [ebp - 4], 4
jmp 0x100019ef
mov dword [ebp - 4], 0x20
jmp 0x100019ef
mov dword [ebp - 4], ecx
lea eax, [ebp - 4]
push eax
push dword [ebp - 4]
push dword [ebp - 0xac]
push dword [ebp + 8]
call dword [ebp - 0xbc]
test eax, eax
je 0x10001a3b
mov eax, dword [ebp - 0xac]
add dword [ebp + 8], eax
inc edi
cmp edi, dword [ebp - 0x8c]
jbe 0x100019bb
mov eax, dword [ebp - 0x88]
mov edi, dword [eax + 0x28]
add edi, esi
call fcn.1000124c
or al, 2
cmpsb byte [esi], byte es:[edi]
wait
push dword [ebp + 0x14]
push 1
push esi
call edi
mov eax, esi
jmp 0x10001a47
pop edi
pop esi
pop ebx
leave
ret

Function at 0x10001ac0
Capabilities:
Contain obfuscated stackstrings

Disassembly:
push esi
mov byte [ebp - 0x346], 0x6d
mov byte [ebp - 0x345], 0x40
mov byte [ebp - 0x344], 0x44
mov byte [ebp - 0x343], 0x55
mov byte [ebp - 0x342], 0x25
lea eax, [ebp - 0x354]
push eax
call fcn.1000125c
pop ecx
push eax
push dword [ebp + 0x18]
push dword [ebp + 0x14]
call fcn.10001211
add esp, 0xc
mov dword [ebp - 0x68c], eax
call dword [ebp - 0x68c]
mov dword [ebp - 0x674], eax
mov dword [ebp - 0x384], 4
and byte [ebp - 0x334], 0
push 0x40
pop ecx
xor eax, eax
lea edi, [ebp - 0x333]
rep stosd dword es:[edi], eax
stosw word es:[edi], ax
stosb byte es:[edi], al
mov dword [ebp - 0x670], 4
and byte [ebp - 0x3c4], 0
and byte [ebp - 0x3c3], 0
invalid
test dword [esi], edi
cld
invalid
Function at 0x10003410
Capabilities:
Resolve function by parsing pe exports

Disassembly:
mov eax, dword [eax + 8]
push eax
call fcn.1000124c
les eax, [edx + 0x45]
pop ecx
mov edi, eax
mov eax, dword [edi + 0x3c]
mov edx, dword [edi + eax + 0x78]
add edx, edi
mov ecx, dword [edx + 0x18]
mov ebx, dword [edx + 0x20]
add ebx, edi
call fcn.1000124c
push eax
in eax, dx
dec esi
dec ecx
mov esi, dword [ebx + ecx*4]
add esi, edi
mov eax, 0x50746547
cmp dword [esi], eax
jne 0x10003439
mov eax, 0x41636f72
cmp dword [esi + 4], eax
jne 0x10003439
call fcn.1000124c
push 0x67
mov edi, 0x3245a8b
fbld tbyte [esi - 0x75]
or al, 0x4b
mov ebx, dword [edx + 0x1c]
add ebx, edi
mov eax, dword [ebx + ecx*4]
add eax, edi
push eax
call fcn.1000124c
push edi
push edx
int1
popfd
push dword [ebp + 8]
push dword [ebp + 4]
push dword [ebp]
call fcn.10001a4c
invalid

Function at 0x10005c1d
Capabilities:
Terminate process

Disassembly:
cmp ecx, dword [0x10009018]
jne 0x10005c27
repz ret
jmp fcn.10006015

Function at 0x403d61
Capabilities:
Encode data using xor

Disassembly:
push eax
push ebx
mov eax, 0x499
mov ecx, 0x404498
mov bl, byte [ecx]
sub bl, 0xf2
rol bl, 2
sub bl, cl
ror bl, 1
mov byte [ecx], bl
dec ecx
dec eax
jne 0x403d6d
mov eax, 0x261d
mov ecx, 0x403764
mov bl, byte [ecx]
rol bl, 7
ror bl, 2
sub bl, cl
xor bl, 0x91
mov byte [ecx], bl
dec ecx
dec eax
jne 0x403d8a
pop ebx
pop eax
add ecx, 0x2c1a
jmp ecx
Function at 0x42e000
Capabilities:
Encode data using xor
Packed with generic packer

Disassembly:
pushal
nop
nop
nop
nop
nop
call 0x42e00c
pop eax
nop
nop
nop
nop
nop
add eax, 0x403a69
nop
nop
sub eax, 0x403a0f
nop
nop
mov ebx, dword [eax]
nop
nop
nop
nop
nop
mov ecx, dword [eax + 4]
nop
nop
nop
mov edx, dword [eax + 8]
nop
nop
nop
xor dword [ebx], edx
nop
nop
nop
nop
add ebx, 4
nop
cmp ebx, ecx
nop
nop
nop
nop
nop
nop
jl 0x42e030
nop
nop
nop
add eax, 0xc
nop
nop
nop
cmp dword [eax], 0
nop
jne 0x42e01e
nop
nop
nop
nop
nop
nop
popal
nop
nop
nop
jmp int.00401219
Function at 0x4013f6
Capabilities:
Check os version

Disassembly:
push ebp
lea ebp, [esp - 0x98]
sub esp, 0x118
mov eax, dword [0x4af6f0]
xor eax, ebp
mov dword [ebp + 0x94], eax
push 0x110
lea eax, [ebp - 0x7c]
push 0
push eax
mov dword [ebp - 0x80], 0x114
call fcn.0046f6e0
add esp, 0xc
lea eax, [ebp - 0x80]
push eax
call dword [sym.imp.KERNEL32.dll_GetVersionExW]
cmp dword [ebp - 0x7c], 6
mov ecx, dword [ebp + 0x94]
sbb eax, eax
xor ecx, ebp
inc eax
call fcn.0046ebfa
add ebp, 0x98
leave
ret

Function at 0x401862
Capabilities:
Get file size
Write file on windows

Disassembly:
push ebp
lea ebp, [esp - 0x1f8c]
mov eax, 0x200c
call fcn.0046f060
mov eax, dword [0x4af6f0]
xor eax, ebp
mov dword [ebp + 0x1f88], eax
cmp dword [0x4d18ac], 1
mov eax, dword [ebp + 0x1f94]
mov dword [ebp - 0x7c], eax
jne 0x401946
push esi
xor esi, esi
cmp word [0x4d0e98], si
je 0x401934
push edi
xor eax, eax
push 0x1ffe
mov word [ebp - 0x78], ax
lea eax, [ebp - 0x76]
push esi
push eax
call fcn.0046f6e0
push str.SerialNumber.txt
push 0x104
mov edi, 0x4d0e98
push edi
mov dword [ebp - 0x80], esi
call fcn.0046e804
add esp, 0x18
push esi
push 2
push 4
push esi
push 1
push 0x40000000
push edi
call dword [sym.imp.KERNEL32.dll_CreateFileW]
mov edi, eax
cmp edi, 0xffffffff
je 0x401933
push esi
push edi
call dword [sym.imp.KERNEL32.dll_GetFileSize]
push esi
push esi
push eax
push edi
call dword [sym.imp.KERNEL32.dll_SetFilePointer]
push ebx
push dword [ebp - 0x7c]
lea eax, [ebp - 0x78]
push str._s___X__r_n
push eax
call dword [sym.imp.USER32.dll_wsprintfW]
add esp, 0x10
push esi
lea ecx, [ebp - 0x80]
push ecx
push eax
lea eax, [ebp - 0x78]
push eax
push edi
call dword [sym.imp.KERNEL32.dll_WriteFile]
push edi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
pop edi
push ebx
push dword [ebp - 0x7c]
push str._s___X_
call fcn.00403ec1
add esp, 0xc
pop esi
push dword [ebp - 0x7c]
push 0x400
push 0x4d10a8
call fcn.0046fd12
mov ecx, dword [ebp + 0x1f88]
xor ecx, ebp
add esp, 0xc
mov dword [0x4d10a0], ebx
call fcn.0046ebfa
add ebp, 0x1f8c
leave
ret
Function at 0x402a66
Capabilities:
Query or enumerate registry value

Disassembly:
push ebp
lea ebp, [esp - 0x1e8]
sub esp, 0x268
mov eax, dword [0x4af6f0]
xor eax, ebp
mov dword [ebp + 0x1e4], eax
push ebx
push esi
push edi
mov eax, dword [ebp + 0x200]
lea esi, [ebp + 0x1f0]
lea edi, [ebp - 0x2c]
movsd dword es:[edi], dword [esi]
movsd dword es:[edi], dword [esi]
movsd dword es:[edi], dword [esi]
movsd dword es:[edi], dword [esi]
sub esp, 0x10
lea esi, [ebp - 0x2c]
mov edi, esp
movsd dword es:[edi], dword [esi]
movsd dword es:[edi], dword [esi]
movsd dword es:[edi], dword [esi]
mov dword [ebp - 0x74], eax
mov eax, dword [ebp + 0x204]
lea ebx, [ebp - 0x1c]
mov dword [ebp - 0x7c], eax
movsd dword es:[edi], dword [esi]
call fcn.0040131d
add esp, 0x10
lea eax, [ebp - 0x80]
push eax
push 0x20019
xor edi, edi
push edi
mov eax, ebx
push eax
push closesocket
mov dword [ebp - 0x78], 0x44
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
mov esi, eax
cmp esi, edi
jne 0x402b42
cmp dword [ebp - 0x74], edi
jne 0x402aea
xor eax, eax
jmp 0x402b0a
push dword [ebp - 0x74]
call dword [sym.imp.KERNEL32.dll_lstrlenA]
mov esi, eax
inc esi
lea eax, [esi + esi]
call fcn.004704a0
mov eax, esp
push esi
push dword [ebp - 0x74]
push eax
call fcn.00401000
lea ecx, [ebp - 0x78]
push ecx
lea ecx, [ebp - 0x70]
push ecx
push edi
push edi
push eax
push dword [ebp - 0x80]
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
mov esi, eax
mov eax, dword [ebp - 0x78]
lea ecx, [ebp - 0x70]
call fcn.00401835
cmp esi, edi
jne 0x402b42
mov eax, dword [ebp - 0x7c]
cmp eax, edi
je 0x402b42
mov ecx, dword [ebp - 0x40]
mov dword [eax + 0x30], ecx
mov ecx, dword [ebp - 0x44]
mov dword [eax + 0x2c], ecx
mov eax, esi
lea esp, [ebp - 0x8c]
pop edi
pop esi
pop ebx
mov ecx, dword [ebp + 0x1e4]
xor ecx, ebp
call fcn.0046ebfa
add ebp, 0x1e8
leave
ret
Function at 0x402ed0
Capabilities:
Delete registry value
Set registry value

Disassembly:
push ebp
lea ebp, [esp - 0x224]
sub esp, 0x2a4
mov eax, dword [0x4af6f0]
xor eax, ebp
mov dword [ebp + 0x220], eax
push ebx
push esi
push edi
lea esi, [ebp + 0x22c]
lea edi, [ebp - 0x70]
movsd dword es:[edi], dword [esi]
movsd dword es:[edi], dword [esi]
movsd dword es:[edi], dword [esi]
push str._SerialNumber_SetMasterVersion
xor ebx, ebx
movsd dword es:[edi], dword [esi]
call fcn.00401862
sub esp, 0xc
lea esi, [ebp - 0x70]
mov edi, esp
movsd dword es:[edi], dword [esi]
movsd dword es:[edi], dword [esi]
movsd dword es:[edi], dword [esi]
lea ebx, [ebp - 0x60]
movsd dword es:[edi], dword [esi]
call fcn.0040125d
add esp, 0x10
lea eax, [ebp - 0x80]
push eax
lea eax, [ebp - 0x7c]
push eax
xor ebx, ebx
push ebx
push 0xf003f
push ebx
push ebx
push ebx
lea eax, [ebp - 0x60]
push eax
push closesocket
call dword [sym.imp.ADVAPI32.dll_RegCreateKeyExW]
mov esi, eax
cmp esi, ebx
jne 0x403078
sub esp, 0x10
lea esi, [ebp - 0x70]
mov edi, esp
movsd dword es:[edi], dword [esi]
movsd dword es:[edi], dword [esi]
movsd dword es:[edi], dword [esi]
lea ecx, [ebp + 0x1a0]
movsd dword es:[edi], dword [esi]
call fcn.0040114c
add esp, 0x10
lea eax, [ebp - 0x80]
push eax
lea eax, [ebp - 0x74]
push eax
push ebx
push 0xf003f
push ebx
push ebx
push ebx
lea eax, [ebp + 0x1a0]
push eax
push dword [ebp - 0x7c]
call dword [sym.imp.ADVAPI32.dll_RegCreateKeyExW]
mov esi, eax
cmp esi, ebx
jne 0x40306f
movzx eax, byte [ebp + 0x23c]
mov esi, dword [sym.imp.ADVAPI32.dll_RegSetValueExW]
push 4
mov dword [ebp - 0x78], eax
pop edi
cmp byte [ebp + 0x23c], bl
je 0x402fbd
push edi
lea eax, [ebp - 0x78]
push eax
push edi
push ebx
push 0x4a5e30
push dword [ebp - 0x74]
call esi
jmp 0x402fcb
push 0x4a5e30
push dword [ebp - 0x74]
call dword [sym.imp.ADVAPI32.dll_RegDeleteValueW]
movzx eax, byte [ebp + 0x240]
mov dword [ebp - 0x78], eax
cmp byte [ebp + 0x240], bl
je 0x402ff0
push edi
lea eax, [ebp - 0x78]
push eax
push edi
push ebx
push 0x4a5e34
push dword [ebp - 0x74]
call esi
jmp 0x402ffe
push 0x4a5e34
push dword [ebp - 0x74]
call dword [sym.imp.ADVAPI32.dll_RegDeleteValueW]
movzx eax, byte [ebp + 0x244]
mov dword [ebp - 0x78], eax
cmp byte [ebp + 0x244], bl
je 0x403023
push edi
lea eax, [ebp - 0x78]
push eax
push edi
push ebx
push 0x4928ec
push dword [ebp - 0x74]
call esi
jmp 0x403031
push 0x4928ec
push dword [ebp - 0x74]
call dword [sym.imp.ADVAPI32.dll_RegDeleteValueW]
movzx eax, byte [ebp + 0x248]
mov dword [ebp - 0x78], eax
cmp byte [ebp + 0x248], bl
je 0x403056
push edi
lea eax, [ebp - 0x78]
push eax
push edi
push ebx
push 0x4a5e2c
push dword [ebp - 0x74]
call esi
jmp 0x403064
push 0x4a5e2c
push dword [ebp - 0x74]
call dword [sym.imp.ADVAPI32.dll_RegDeleteValueW]
push dword [ebp - 0x74]
mov esi, eax
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
push dword [ebp - 0x7c]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
push 0x4a5e38
mov ebx, esi
call fcn.00401862
pop ecx
mov ecx, dword [ebp + 0x220]
pop edi
mov eax, esi
pop esi
xor ecx, ebp
pop ebx
call fcn.0046ebfa
add ebp, 0x224
leave
ret 0x20
Function at 0x4030a1
Capabilities:
Query or enumerate registry value

Disassembly:
push ebp
lea ebp, [esp - 0x26c]
sub esp, 0x2ec
mov eax, dword [0x4af6f0]
xor eax, ebp
mov dword [ebp + 0x268], eax
push ebx
push esi
push edi
lea esi, [ebp + 0x274]
lea edi, [ebp - 0x28]
movsd dword es:[edi], dword [esi]
movsd dword es:[edi], dword [esi]
movsd dword es:[edi], dword [esi]
movsd dword es:[edi], dword [esi]
mov esi, dword [ebp + 0x284]
push str._SerialNumber_GetCustomData
xor ebx, ebx
mov dword [ebp - 0x2c], esi
call fcn.00401862
pop ecx
push 4
push esi
call dword [sym.imp.KERNEL32.dll_IsBadWritePtr]
test eax, eax
je 0x4030fc
push str.SerialNumber_GetCustomData__ERROR_ACCESS_DENIED_lpdwData_
push 5
pop ebx
jmp 0x4031f9
or dword [esi], 0xffffffff
sub esp, 0x10
lea esi, [ebp - 0x28]
mov edi, esp
movsd dword es:[edi], dword [esi]
movsd dword es:[edi], dword [esi]
movsd dword es:[edi], dword [esi]
lea ebx, [ebp - 0x18]
movsd dword es:[edi], dword [esi]
call fcn.0040125d
add esp, 0x10
lea eax, [ebp - 0x34]
push eax
push 0x20019
push 0
mov eax, ebx
mov ebx, dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
push eax
push closesocket
call ebx
mov dword [ebp - 0x30], eax
test eax, eax
jne 0x4031f1
sub esp, 0x10
lea esi, [ebp - 0x28]
mov edi, esp
movsd dword es:[edi], dword [esi]
movsd dword es:[edi], dword [esi]
movsd dword es:[edi], dword [esi]
lea ecx, [ebp + 0x1e8]
movsd dword es:[edi], dword [esi]
call fcn.0040114c
add esp, 0x10
lea eax, [ebp - 0x38]
push eax
push 0x20019
xor esi, esi
push esi
lea eax, [ebp + 0x1e8]
push eax
push dword [ebp - 0x34]
call ebx
mov ebx, dword [sym.imp.ADVAPI32.dll_RegCloseKey]
test eax, eax
jne 0x4031e7
push 0x44
pop edi
push edi
lea eax, [ebp - 0x80]
push esi
push eax
mov dword [ebp - 0x3c], edi
call fcn.0046f6e0
add esp, 0xc
lea eax, [ebp - 0x3c]
push eax
lea eax, [ebp - 0x80]
push eax
push esi
push esi
push 0x4a5f20
push dword [ebp - 0x38]
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
mov dword [ebp - 0x30], eax
cmp eax, esi
jne 0x4031e0
cmp dword [ebp - 0x80], edi
ja 0x4031e0
mov eax, dword [ebp + 0x288]
dec eax
je 0x4031d2
sub eax, 6
je 0x4031c7
mov dword [ebp - 0x30], 0xa0
jmp 0x4031e0
mov eax, dword [ebp - 0x6c]
shr eax, 0xa
xor eax, dword [ebp - 0x60]
jmp 0x4031db
mov eax, dword [ebp - 0x6c]
shr eax, 0xa
xor eax, dword [ebp - 0x64]
mov ecx, dword [ebp - 0x2c]
mov dword [ecx], eax
push dword [ebp - 0x38]
call ebx
jmp 0x4031ec
mov eax, dword [ebp - 0x2c]
mov dword [eax], esi
push dword [ebp - 0x34]
call ebx
mov ebx, dword [ebp - 0x30]
push str._SerialNumber_GetCustomData_dwReturnCode
call fcn.00401862
pop ecx
mov ecx, dword [ebp + 0x268]
pop edi
pop esi
mov eax, ebx
xor ecx, ebp
pop ebx
call fcn.0046ebfa
add ebp, 0x26c
leave
ret 0x18
Function at 0x403ec1
Capabilities:
Write file on windows

Disassembly:
push ebp
lea ebp, [esp - 0x3fe8]
mov eax, 0x4068
call fcn.0046f060
mov eax, dword [0x4af6f0]
xor eax, ebp
mov dword [ebp + 0x3fe4], eax
push ebx
push esi
push edi
lea eax, [ebp + 0x3ff4]
push eax
push dword [ebp + 0x3ff0]
mov esi, 0x1000
lea eax, [ebp - 0x5c]
push esi
push eax
call fcn.00473222
add esp, 0x10
lea eax, [ebp - 0x7c]
push eax
call dword [sym.imp.KERNEL32.dll_GetLocalTime]
movzx eax, word [ebp - 0x6e]
push 0xa
pop ecx
cdq
idiv ecx
push eax
movzx eax, word [ebp - 0x70]
push eax
movzx eax, word [ebp - 0x72]
push eax
movzx eax, word [ebp - 0x74]
push eax
push str._02.2u:_02.2u:_02.2u__02.2u
lea eax, [ebp + 0x3fa4]
push 0x20
push eax
call fcn.0046ebde
add esp, 0x1c
lea eax, [ebp - 0x5c]
xor ebx, ebx
push eax
lea eax, [ebp + 0x3fa4]
cmp word [0x4d1ac8], bx
je 0x403f6e
push 0x4d1ac8
push eax
push str._s__s__s
lea eax, [ebp + 0x1fa4]
push esi
push eax
call fcn.0046ebde
add esp, 0x18
jmp 0x403f84
push eax
push 0x4a4eb8
lea eax, [ebp + 0x1fa4]
push esi
push eax
call fcn.0046ebde
add esp, 0x14
mov edi, dword [sym.imp.USER32.dll_SendMessageW]
mov dword [ebp - 0x60], eax
mov eax, dword [0x4d1ac4]
cmp eax, ebx
je 0x403fa6
lea ecx, [ebp + 0x1fa4]
push ecx
push ebx
push 0x180
push eax
call edi
mov eax, dword [0x4d1ac0]
cmp eax, ebx
je 0x403fd3
mov ecx, dword [ebp - 0x60]
lea ecx, [ecx + ecx + 2]
mov dword [ebp - 0x68], ecx
lea ecx, [ebp + 0x1fa4]
mov dword [ebp - 0x64], ecx
lea ecx, [ebp - 0x6c]
push ecx
push ebx
push 0x4a
push eax
mov dword [ebp - 0x6c], 1
call edi
cmp dword [0x4d1ab8], ebx
je 0x404045
push ebx
push 0x80
push 3
push ebx
push 3
push 0xc0000000
push 0x4d18b0
call dword [sym.imp.KERNEL32.dll_CreateFileW]
push 2
push ebx
push ebx
push eax
mov dword [ebp - 0x60], eax
call dword [sym.imp.KERNEL32.dll_SetFilePointer]
push 0x4930c8
lea eax, [ebp + 0x1fa4]
push esi
push eax
call fcn.0046e804
add esp, 0xc
push ebx
lea eax, [ebp - 0x80]
push eax
lea eax, [ebp + 0x1fa4]
push eax
call fcn.0047713a
pop ecx
push eax
lea eax, [ebp + 0x1fa4]
push eax
push dword [ebp - 0x60]
call dword [sym.imp.KERNEL32.dll_WriteFile]
push dword [ebp - 0x60]
call dword [sym.imp.KERNEL32.dll_CloseHandle]
cmp dword [0x4d1abc], ebx
je 0x4040a7
lea eax, [ebp - 0x5c]
push eax
lea eax, [ebp + 0x1fa4]
cmp word [0x4d1ac8], bx
je 0x404076
push 0x4d1ac8
push 0x4a4eb8
push esi
push eax
call fcn.0046ebde
add esp, 0x14
jmp 0x404085
push 0x48d54c
push esi
push eax
call fcn.0046ebde
add esp, 0x10
lea eax, [eax + eax + 2]
mov dword [ebp - 0x68], eax
lea eax, [ebp + 0x1fa4]
mov dword [ebp - 0x64], eax
lea eax, [ebp - 0x6c]
push eax
push ebx
push 0x4a
push dword [0x4d1abc]
mov dword [ebp - 0x6c], ebx
call edi
mov ecx, dword [ebp + 0x3fe4]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.0046ebfa
add ebp, 0x3fe8
leave
ret
Function at 0x405760
Capabilities:
Write file on windows

Disassembly:
push ebx
push ebp
push esi
mov esi, ecx
push edi
mov ecx, 0x4d2348
xor edi, edi
xor bl, bl
call fcn.00405650
mov ecx, dword [esp + 0x20]
mov ebp, dword [esp + 0x14]
mov dword [ecx], eax
imul eax, dword [0x4d2688]
add eax, dword [0x4d2684]
push 0
push 0
push eax
push ebp
call dword [sym.imp.KERNEL32.dll_SetFilePointer]
cmp eax, 0xffffffff
jne 0x4057c7
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov edi, eax
test edi, edi
je 0x4057c7
mov bl, 0x19
mov ecx, dword [esp + 0x20]
mov dword [ecx], 0xffffffff
mov eax, dword [esp + 0x2c]
test eax, eax
je 0x4057be
mov byte [eax], bl
mov eax, edi
pop edi
pop esi
pop ebp
pop ebx
ret 0x1c
mov eax, dword [0x4d2688]
mov ecx, dword [esp + 0x18]
push 0
lea edx, [esp + 0x18]
push edx
push eax
push ecx
push ebp
mov dword [esp + 0x28], 0
call dword [sym.imp.KERNEL32.dll_WriteFile]
test eax, eax
jne 0x4057f8
mov bl, 0x19
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov edi, eax
jmp 0x4057aa
mov edx, dword [0x4d2688]
cmp edx, dword [esp + 0x14]
je 0x405808
mov bl, 0x1a
jmp 0x4057aa
mov eax, dword [esi + 2]
cmp dword [0x4d234a], eax
jae 0x405818
mov dword [0x4d234a], eax
mov eax, dword [esi + 2]
mov ecx, dword [esp + 0x24]
mov edx, dword [esp + 0x1c]
mov dword [ecx], eax
movzx eax, byte [edx + 0xc]
mov ecx, dword [esp + 0x20]
movzx edx, word [ecx]
push eax
push edx
mov ecx, 0x4d2348
call fcn.004055f0
mov eax, dword [esp + 0x28]
push 0x17a
push esi
push 0x17a
push eax
call fcn.004735d4
add esp, 0x10
jmp 0x4057b4

Function at 0x407150
Capabilities:
Read file on windows

Disassembly:
sub esp, 8
push esi
xor esi, esi
cmp byte [0x4d2670], 0
push edi
mov edi, ecx
mov byte [esp + 0xb], 0
jne 0x40722f
push ebx
push ebp
mov ebp, dword [esp + 0x1c]
push esi
push esi
push esi
push ebp
call dword [sym.imp.KERNEL32.dll_SetFilePointer]
mov ebx, dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0xffffffff
jne 0x407198
call ebx
mov esi, eax
test esi, esi
je 0x407198
mov byte [esp + 0x13], 0x10
jmp 0x40722d
mov eax, dword [0x4d2684]
push 0
lea ecx, [esp + 0x18]
push ecx
mov byte [eax + 0x4d268c], 0
mov edx, dword [0x4d2684]
push edx
push 0x4d268c
push ebp
mov dword [esp + 0x28], 0
call dword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
je 0x407224
mov eax, dword [0x4d2684]
cmp eax, dword [esp + 0x14]
jne 0x40721d
push eax
push 0x4d268c
mov ecx, edi
call fcn.00407110
mov esi, eax
mov dword [esp + 0x1c], esi
test esi, esi
jne 0x407216
lea eax, [esp + 0x1c]
push eax
mov ecx, edi
call fcn.00406fb0
mov esi, dword [esp + 0x1c]
test eax, eax
jne 0x407207
mov byte [esp + 0x13], 8
jmp 0x40722d
mov byte [0x4d2670], 1
test esi, esi
je 0x40722d
xor esi, esi
jmp 0x40722d
mov byte [esp + 0x13], 0x12
jmp 0x40722d
mov byte [esp + 0x13], 0x11
jmp 0x40722d
mov byte [esp + 0x13], 0x10
call ebx
mov esi, eax
pop ebp
pop ebx
mov eax, dword [esp + 0x18]
test eax, eax
je 0x40723d
mov cl, byte [esp + 0xb]
mov byte [eax], cl
pop edi
mov eax, esi
pop esi
add esp, 8
ret 8