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

Disassembly:
push ebp
mov ebp, esp
push 0
push 0x503598
push 0xc
push 0x403059
push dword [0x503588]
call sub.KERNEL32.dll_WriteFile
mov esi, 0x403184
xor ecx, ecx
lodsb al, byte [esi]
test al, al
je 0x40137a
inc ecx
jmp 0x401372
push 0
push 0x503598
push ecx
push 0x403184
push dword [0x503588]
call sub.KERNEL32.dll_WriteFile
push 0
push 0x503598
push 2
push 0x403065
push dword [0x503588]
call sub.KERNEL32.dll_WriteFile
push 0
push 0x80
push 2
push 0
push 0
push 0x40000000
push 0x403184
call sub.KERNEL32.dll_CreateFileA
cmp eax, 0xffffffff
je 0x401431
mov ebx, eax
mov ecx, dword [0x5036b0]
mov eax, 0x100000
cmp ecx, eax
jb 0x4013df
jmp 0x4013e1
mov eax, ecx
push ecx
push 0
push 0x503594
push eax
push 0x403584
push dword [0x503584]
call sub.KERNEL32.dll_ReadFile
test eax, eax
je 0x401430
push 0
push 0x503598
push dword [0x503594]
push 0x403584
push ebx
call sub.KERNEL32.dll_WriteFile
test eax, eax
je 0x401430
pop ecx
sub ecx, dword [0x503594]
jne 0x4013d4
push ebx
call sub.KERNEL32.dll_CloseHandle
mov eax, 1
jmp 0x40143d
pop ecx
test ebx, ebx
je 0x40143d
push ebx
call sub.KERNEL32.dll_CloseHandle
xor eax, eax
mov esp, ebp
pop ebp
ret

Function at 0x4015ba
Capabilities:
Read file on windows
Write file on windows

Disassembly:
push ebp
mov ebp, esp
push 0
push 0x503598
push 0xc
push 0x403059
push dword [0x503588]
call sub.KERNEL32.dll_WriteFile
mov esi, 0x403184
call fcn.00401192
push 0
push 0x503598
push eax
push 0x403184
push dword [0x503588]
call sub.KERNEL32.dll_WriteFile
push 0
push 0x503598
push 2
push 0x403065
push dword [0x503588]
call sub.KERNEL32.dll_WriteFile
push 0
push 0x80
push 2
push 0
push 0
push 0x40000000
push 0x403184
call sub.KERNEL32.dll_CreateFileA
cmp eax, 0xffffffff
je 0x401697
mov ebx, eax
mov ecx, dword [0x5036b8]
mov eax, 0x100000
cmp ecx, eax
jb 0x401645
jmp 0x401647
mov eax, ecx
push ecx
push 0
push 0x503594
push eax
push 0x403584
push dword [0x503584]
call sub.KERNEL32.dll_ReadFile
test eax, eax
je 0x401696
push 0
push 0x503598
push dword [0x503594]
push 0x403584
push ebx
call sub.KERNEL32.dll_WriteFile
test eax, eax
je 0x401696
pop ecx
sub ecx, dword [0x503594]
jne 0x40163a
push ebx
call sub.KERNEL32.dll_CloseHandle
mov eax, 1
jmp 0x4016a3
pop ecx
test ebx, ebx
je 0x4016a3
push ebx
call sub.KERNEL32.dll_CloseHandle
xor eax, eax
mov esp, ebp
pop ebp
ret
Function at 0x4018ca
Capabilities:
Read file on windows
Write file on windows

Disassembly:
push ebp
mov ebp, esp
push 0
push 0x503598
push 0xc
push 0x403059
push dword [0x503588]
call sub.KERNEL32.dll_WriteFile
mov esi, 0x403184
call fcn.00401192
push 0
push 0x503598
push eax
push 0x403184
push dword [0x503588]
call sub.KERNEL32.dll_WriteFile
push 0
push 0x503598
push 2
push 0x403065
push dword [0x503588]
call sub.KERNEL32.dll_WriteFile
push 0
push 0x80
push 2
push 0
push 0
push 0x40000000
push 0x403184
call sub.KERNEL32.dll_CreateFileA
cmp eax, 0xffffffff
je 0x4019b6
mov ebx, eax
mov ecx, dword [0x50374a]
mov dword [0x50374e], ecx
mov eax, 0x100000
cmp dword [0x50374e], eax
jb 0x40195f
jmp 0x401964
mov eax, dword [0x50374e]
push 0
push 0x503594
push eax
push 0x403584
push dword [0x503584]
call sub.KERNEL32.dll_ReadFile
test eax, eax
je 0x4019b6
push 0
push 0x503598
push dword [0x503594]
push 0x403584
push ebx
call sub.KERNEL32.dll_WriteFile
test eax, eax
je 0x4019b6
mov eax, dword [0x503594]
sub dword [0x50374e], eax
jne 0x401950
push ebx
call sub.KERNEL32.dll_CloseHandle
mov eax, 1
jmp 0x4019be
push ebx
call sub.KERNEL32.dll_CloseHandle
xor eax, eax
mov esp, ebp
pop ebp
ret

Function at 0x401b46
Capabilities:
Read file on windows
Write file on windows

Disassembly:
push ebp
mov ebp, esp
push 0
push 0x503598
push 0xc
push 0x403059
push dword [0x503588]
call sub.KERNEL32.dll_WriteFile
mov esi, 0x403184
call fcn.00401192
push 0
push 0x503598
push eax
push 0x403184
push dword [0x503588]
call sub.KERNEL32.dll_WriteFile
push 0
push 0x503598
push 2
push 0x403065
push dword [0x503588]
call sub.KERNEL32.dll_WriteFile
push 0
push 0x80
push 2
push 0
push 0
push 0x40000000
push 0x403184
call sub.KERNEL32.dll_CreateFileA
cmp eax, 0xffffffff
je 0x401c23
mov ebx, eax
mov ecx, dword [0x503a6a]
mov eax, 0x100000
cmp ecx, eax
jb 0x401bd1
jmp 0x401bd3
mov eax, ecx
push ecx
push 0
push 0x503594
push eax
push 0x403584
push dword [0x503584]
call sub.KERNEL32.dll_ReadFile
test eax, eax
je 0x401c22
push 0
push 0x503598
push dword [0x503594]
push 0x403584
push ebx
call sub.KERNEL32.dll_WriteFile
test eax, eax
je 0x401c22
pop ecx
sub ecx, dword [0x503594]
jne 0x401bc6
push ebx
call sub.KERNEL32.dll_CloseHandle
mov eax, 1
jmp 0x401c2f
pop ecx
test ebx, ebx
je 0x401c2f
push ebx
call sub.KERNEL32.dll_CloseHandle
xor eax, eax
mov esp, ebp
pop ebp
ret
Function at 0x407010
Capabilities:
Enumerate pe sections

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
mov eax, dword [ebp + 8]
xor edx, edx
push ebx
push esi
push edi
mov ecx, dword [eax + 0x3c]
add ecx, eax
movzx eax, word [ecx + 0x14]
movzx ebx, word [ecx + 6]
add eax, 0x18
add eax, ecx
test ebx, ebx
je 0x40704e
mov edi, dword [ebp + 0xc]
mov esi, dword [eax + 0xc]
cmp edi, esi
jb 0x407046
mov ecx, dword [eax + 8]
add ecx, esi
cmp edi, ecx
jb 0x407050
inc edx
add eax, 0x28
cmp edx, ebx
jb 0x407036
xor eax, eax
pop edi
pop esi
pop ebx
pop ebp
ret

Function at 0x407120
Capabilities:
Parse pe header

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
mov ecx, dword [ebp + 8]
mov eax, 0x5a4d
cmp word [ecx], ax
jne 0x407151
mov eax, dword [ecx + 0x3c]
add eax, ecx
cmp dword [eax], 0x4550
jne 0x407151
mov ecx, 0x10b
cmp word [eax + 0x18], cx
jne 0x407151
mov eax, 1
pop ebp
ret
xor eax, eax
pop ebp
ret

Function at 0x42e000
Capabilities:
Encode data using xor
Packed with generic packer

Disassembly:
pushal
nop
nop
nop
nop
nop
nop
mov eax, section..text
nop
mov ebx, 0x407ef8
mov ecx, 0x5e9641d
nop
test eax, eax
nop
nop
nop
nop
nop
nop
je 0x42e04e
nop
nop
nop
nop
xor dword [eax], ecx
nop
nop
nop
nop
nop
nop
inc eax
nop
inc eax
nop
nop
nop
nop
nop
nop
nop
nop
nop
inc eax
nop
nop
nop
nop
nop
inc eax
nop
nop
nop
cmp eax, ebx
nop
nop
nop
nop
jne 0x42e024
nop
nop
mov eax, section..data
nop
mov ebx, 0x42cd70
nop
mov ecx, 0x4ce012f9
nop
nop
nop
nop
nop
test eax, eax
nop
nop
nop
je 0x42e084
nop
nop
nop
nop
nop
xor dword [eax], ecx
nop
add eax, 4
nop
nop
nop
nop
cmp eax, ebx
nop
nop
nop
jne 0x42e06c
nop
nop
nop
nop
nop
popal
nop
nop
nop
jmp 0x401219
Function at 0x402e7a
Capabilities:
Resolve function by parsing pe exports

Disassembly:
sub esp, 0x2c
mov eax, dword [0x432180]
xor eax, esp
mov dword [esp + 0x24], eax
push ebx
push ebp
push esi
mov esi, dword [0x481c94]
xor ebx, ebx
push edi
mov dword [esp + 0x14], edx
mov eax, dword [esi + 0x3c]
mov ebp, dword [eax + esi + 0x78]
add ebp, esi
mov edi, dword [ebp + 0x20]
mov eax, dword [ebp + 0x18]
add edi, esi
mov dword [esp + 0x18], eax
test eax, eax
je 0x402ee1
mov eax, dword [edi]
lea ecx, [esp + 0x1c]
add eax, esi
push eax
call fcn.004035de
lea ecx, [esp + 0x1c]
call fcn.00402a0f
cmp eax, dword [esp + 0x14]
je 0x402ef9
lea ecx, [esp + 0x1c]
add edi, 4
call fcn.00404017
inc ebx
cmp ebx, dword [esp + 0x18]
jb 0x402eb1
xor edi, edi
mov ecx, dword [esp + 0x34]
lea eax, [esi + edi]
pop edi
pop esi
pop ebp
pop ebx
xor ecx, esp
call fcn.00409367
add esp, 0x2c
ret
mov eax, dword [ebp + 0x24]
lea eax, [eax + ebx*2]
movzx ecx, word [eax + esi]
mov eax, dword [ebp + 0x1c]
lea eax, [eax + ecx*4]
mov edi, dword [eax + esi]
lea ecx, [esp + 0x1c]
call fcn.00404017
jmp 0x402ee3

Function at 0x402f7c
Capabilities:
Access peb ldr_data
Get kernel32 base address

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
sub esp, 0x10
push esi
push edi
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 [0x481c94], eax
push 0x27
mov esi, 0x47f860
mov edx, 0x547
push 0x432c30
mov ecx, esi
call fcn.00402805
pop ecx
pop ecx
mov edx, 0x8aafdc01
call fcn.00402e7a
lea ecx, [esp + 0xc]
push ecx
push 0x40
push 0x4e4
push esi
call eax
test eax, eax
je 0x403007
lea ecx, [esp + 0x10]
call fcn.004049da
mov ecx, dword [esp + 0x10]
mov dword [esp + 0x10], ecx
mov byte [esp + 0x14], 1
test ecx, ecx
je 0x403011
cmp byte [ecx + 0x6c], 0
jne 0x403011
mov eax, dword [ecx]
push 1
call dword [eax + 8]
lea ecx, [esp + 0x10]
call fcn.0040315a
pop edi
xor eax, eax
pop esi
mov esp, ebp
pop ebp
ret 0x10
push 4
pop ecx
call fcn.0040277a
int3
Function at 0x41a9f5
Capabilities:
Read file on windows

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
pop ebp
jmp fcn.0041a866

Function at 0x41adef
Capabilities:
Read file on windows

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
mov eax, 0x101c
call fcn.0040a430
mov eax, dword [0x432180]
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.00418914
pop ecx
mov ecx, dword [ebp + 8]
mov ebx, eax
cmp dword [ecx + 8], 0
jne 0x41ae31
mov eax, dword [ebp + 0xc]
mov edx, dword [ebp + 0x10]
jmp 0x41af8d
mov eax, dword [ecx]
sub eax, dword [ecx + 4]
push esi
push edi
push 0
cdq
push 2
push edx
push eax
call fcn.00424d30
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 + 0x481958]
push dword [edi + eax + 0x24]
push dword [edi + eax + 0x20]
push ebx
call fcn.0041bde6
mov ecx, dword [esi*4 + 0x481958]
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 0x41af86
cmp eax, dword [edi + ecx + 0x24]
jne 0x41af86
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 0x41af86
push dword [ebp - 0x100c]
push 0
push dword [ebp + 0x10]
push dword [ebp + 0xc]
push ebx
call fcn.0041bde6
add esp, 0x14
test edx, edx
jl 0x41af86
jg 0x41aefc
test eax, eax
jb 0x41af86
mov ebx, dword [ebp - 0x1018]
mov eax, dword [ebp - 0x1014]
test ebx, ebx
jg 0x41af86
jl 0x41af16
cmp dword [ebp - 0x1008], eax
ja 0x41af86
lea edi, [ebp - 0x1004]
xor edx, edx
add edi, eax
lea ecx, [ebp - 0x1004]
xor esi, esi
cmp dword [ebp - 0x1008], edx
jne 0x41af34
test ebx, ebx
je 0x41af6d
cmp ecx, edi
jae 0x41af6d
mov al, byte [ecx]
cmp al, 0xd
jne 0x41af4e
lea eax, [edi - 1]
cmp ecx, eax
jae 0x41af5a
cmp byte [ecx + 1], 0xa
jne 0x41af5a
inc ecx
jmp 0x41af5a
movzx eax, al
movsx eax, byte [eax + 0x432460]
add ecx, eax
add esi, 1
adc edx, 0
inc ecx
cmp esi, dword [ebp - 0x1008]
jne 0x41af34
cmp edx, ebx
jne 0x41af34
lea eax, [ebp - 0x1004]
sub ecx, eax
mov eax, ecx
cdq
add eax, dword [ebp - 0x1010]
adc edx, dword [ebp - 0x101c]
jmp 0x41af8b
or edx, 0xffffffff
mov eax, edx
pop edi
pop esi
mov ecx, dword [ebp - 4]
xor ecx, ebp
pop ebx
call fcn.00409367
leave
ret
Function at 0x41b284
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 + 0x481958]
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 0x41b2c4
cmp byte [ebx], 0xa
jne 0x41b2c4
or byte [eax + edi + 0x28], 4
jmp 0x41b2c9
and byte [eax + edi + 0x28], 0xfb
add ecx, ebx
mov edx, ebx
mov dword [ebp - 0xc], ecx
mov esi, ebx
cmp ebx, ecx
jae 0x41b3c7
mov al, byte [edx]
cmp al, 0x1a
je 0x41b3a9
lea ecx, [edx + 1]
mov dword [ebp - 8], ecx
mov ecx, dword [ebp - 0xc]
cmp al, 0xd
je 0x41b2f8
mov edx, dword [ebp - 8]
mov byte [esi], al
jmp 0x41b31d
mov eax, dword [ebp - 8]
cmp eax, ecx
jae 0x41b327
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 0x41b2da
jmp 0x41b3c7
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 0x41b3a4
cmp dword [ebp - 0xc], 0
je 0x41b3a4
mov ecx, dword [ebp - 0x10]
mov eax, dword [ecx*4 + 0x481958]
test byte [eax + edi + 0x28], 0x48
je 0x41b37e
mov dl, byte [ebp - 1]
lea eax, [esi + 1]
mov dword [ebp - 0x14], eax
cmp dl, 0xa
jne 0x41b369
mov byte [esi], dl
jmp 0x41b37a
mov byte [esi], 0xd
mov eax, dword [ecx*4 + 0x481958]
mov byte [eax + edi + 0x2a], dl
mov eax, dword [ebp - 0x14]
mov esi, eax
jmp 0x41b3c7
cmp byte [ebp - 1], 0xa
jne 0x41b38d
cmp esi, ebx
jne 0x41b38d
mov byte [esi], 0xa
jmp 0x41b3c6
push 1
push 0xffffffffffffffff
push 0xffffffffffffffff
push dword [ebp + 8]
call fcn.0041be04
add esp, 0x10
cmp byte [ebp - 1], 0xa
je 0x41b3c7
mov byte [esi], 0xd
jmp 0x41b3c6
mov ecx, dword [ebp - 0x10]
mov ecx, dword [ecx*4 + 0x481958]
mov al, byte [ecx + edi + 0x28]
test al, 0x40
jne 0x41b3c3
or al, 2
mov byte [ecx + edi + 0x28], al
jmp 0x41b3c7
mov byte [esi], 0x1a
inc esi
sub esi, ebx
pop edi
mov eax, esi
pop esi
pop ebx
leave
ret
Function at 0x41b3d0
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 + 0x481958]
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 0x41b413
cmp word [esi], dx
jne 0x41b413
or byte [edi + eax + 0x28], 4
jmp 0x41b418
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 0x41b56b
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 0x41b54b
add eax, 2
cmp cx, word [ebp - 0xc]
je 0x41b45a
mov dword [ebp - 4], eax
mov word [esi], cx
jmp 0x41b490
cmp eax, edx
jae 0x41b49c
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 0x41b432
jmp 0x41b56b
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 0x41b547
cmp dword [ebp - 0x14], 0
je 0x41b547
mov eax, dword [ebx*4 + 0x481958]
push 0xa
test byte [edi + eax + 0x28], 0x48
je 0x41b51f
mov dx, word [ebp - 4]
lea eax, [esi + 2]
pop ecx
mov dword [ebp - 0x18], eax
cmp dx, cx
jne 0x41b4e8
mov word [esi], cx
jmp 0x41b51b
push 0xd
pop eax
mov word [esi], ax
mov eax, dword [ebx*4 + 0x481958]
movzx ecx, dx
shr ecx, 8
push 0xa
mov byte [edi + eax + 0x2a], dl
mov eax, dword [ebx*4 + 0x481958]
mov byte [edi + eax + 0x2b], cl
mov eax, dword [ebx*4 + 0x481958]
pop ecx
mov byte [edi + eax + 0x2c], cl
mov eax, dword [ebp - 0x18]
mov esi, eax
jmp 0x41b56b
pop ebx
cmp word [ebp - 4], bx
jne 0x41b530
cmp esi, dword [ebp + 0xc]
jne 0x41b530
mov word [esi], bx
jmp 0x41b568
push 1
push 0xffffffffffffffff
push 0xfffffffffffffffe
push dword [ebp + 8]
call fcn.0041be04
add esp, 0x10
cmp word [ebp - 4], bx
je 0x41b56b
push 0xd
jmp 0x41b564
mov ecx, dword [ebx*4 + 0x481958]
mov al, byte [ecx + edi + 0x28]
test al, 0x40
jne 0x41b562
or al, 2
mov byte [ecx + edi + 0x28], al
jmp 0x41b56b
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 0x44b32f
Capabilities:
Generate random numbers using a mersenne twister

Disassembly:
dec edx
add byte [ebx + 0x4c18301], cl
mov dword [0x4a753c], ecx
mov ecx, eax
shr ecx, 0xb
xor eax, ecx
mov edx, eax
and edx, 0xff3a58ad
shl edx, 7
xor eax, edx
mov ecx, eax
and ecx, 0xffffdf8c
shl ecx, 0xf
xor eax, ecx
mov edx, eax
shr edx, 0x12
xor edx, eax
mov dword [ebp - 4], edx
fild dword [ebp - 4]
jns 0x44b372
fadd qword [0x48cd18]
fmul qword [0x48cd20]
or ch, ah
pop ebp
ret

Function at 0x42e003
Capabilities:
Encode data using xor
Packed with generic packer

Disassembly:
pushal
nop
nop
call 0x42e00c
pop eax
nop
nop
nop
nop
nop
add eax, 0x403ac5
nop
nop
sub eax, 0x403a6b
nop
nop
nop
mov ebx, dword [eax]
nop
nop
nop
nop
mov ecx, dword [eax + 4]
nop
nop
mov edx, dword [eax + 8]
nop
nop
nop
nop
nop
xor dword [ebx], edx
nop
nop
nop
add ebx, 4
cmp ebx, ecx
nop
nop
nop
nop
nop
nop
nop
nop
jl 0x42e030
nop
nop
add eax, 0xc
nop
cmp dword [eax], 0
nop
nop
nop
nop
nop
nop
nop
jne 0x42e01e
nop
nop
nop
nop
nop
popal
jmp loc.00401219
Function at 0x43534b
Capabilities:
Get geographical location

Disassembly:
push ebp
mov ebp, esp
push ecx
push esi
push edi
call fcn.0042708b
mov esi, dword [ebp + 8]
push 2
mov edi, eax
lea eax, [ebp - 4]
push eax
mov ecx, esi
and ecx, 0x3ff
push 0x20000001
or ecx, 0x400
push ecx
call dword [sym.imp.KERNEL32.dll_GetLocaleInfoW]
test eax, eax
jne 0x435383
xor eax, eax
jmp 0x4353af
cmp esi, dword [ebp - 4]
je 0x4353ac
cmp dword [ebp + 0xc], 0
je 0x4353ac
push dword [edi + 0x9c]
call fcn.00434f59
push dword [edi + 0x9c]
mov esi, eax
call fcn.00424fcd
pop ecx
pop ecx
cmp esi, eax
je 0x43537f
xor eax, eax
inc eax
pop edi
pop esi
leave
ret

Function at 0x5e6b58
Capabilities:
Parse pe header

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x2bc
push esi
mov esi, dword [ebp + 8]
test esi, esi
je 0x5e6b73
add esi, 0x1000
lea eax, [ebp - 0x2bc]
push edx
push 0x1c
push eax
push esi
call dword [edx + 0x124abd98]
pop edx
test eax, eax
je 0x5e6c45
cmp dword [ebp - 0x2ac], 0x1000
jne 0x5e6c34
test dword [ebp - 0x2a8], 1
jne 0x5e6c34
and dword [ebp - 0x2a8], 0x100
jne 0x5e6c34
push esi
push edx
push 4
push esi
call dword [edx + 0x122d3882]
pop edx
pop esi
test eax, eax
je 0x5e6bd7
jmp 0x5e6c34
cmp word [esi], 0x5a4d
jne 0x5e6c34
mov eax, esi
push ebx
mov ebx, dword [esi + 0x3c]
add eax, ebx
pop ebx
cmp dword [eax], 0x4550
jne 0x5e6c34
lea eax, [ebp - 0x28c]
push edx
push 0x28a
push eax
push esi
call dword [edx + 0x122d38c6]
pop edx
test eax, eax
je 0x5e6c34
lea eax, [ebp - 0x28c]
push eax
call fcn.005e6ab4
test eax, eax
jne 0x5e6c2d
jmp 0x5e6c34
mov eax, esi
jmp 0x5e6c45
mov esi, dword [ebp - 0x2b0]
add esi, dword [ebp - 0x2bc]
jmp 0x5e6b73
pop esi
leave
ret 4
Function at 0x10004800
Capabilities:
Read file on windows

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x1009f4ed
mov eax, dword fs:[0]
push eax
sub esp, 0x10
push ebx
push esi
push edi
mov eax, dword [0x100c50e4]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov edi, ecx
mov eax, dword [ebp + 8]
lea ebx, [edi + 8]
test eax, eax
je 0x10004843
push eax
push 0x104
push ebx
call fcn.1008ad71
add esp, 0xc
push 0x100b6eb4
lea eax, [ebp + 8]
push ebx
push eax
call fcn.1008a958
add esp, 0xc
test eax, eax
jne 0x100049e9
push 2
push eax
push dword [ebp + 8]
call fcn.1008ad56
add esp, 0xc
push dword [ebp + 8]
call fcn.1008a698
add esp, 4
mov esi, eax
push 0
push 0
push dword [ebp + 8]
call fcn.1008ad56
add esp, 0xc
lea ecx, [esi + 1]
push ecx
call fcn.1008913f
add esp, 4
mov ebx, eax
push dword [ebp + 8]
push esi
push 1
push ebx
call fcn.1008b2c0
mov byte [eax + ebx], 0
push dword [ebp + 8]
call fcn.1008aa16
mov eax, dword [edi + 0x224]
add esp, 0x14
push 0
push 0
push 0x7d4
push dword [edi + 0x228]
call eax
mov eax, dword [edi + 0x224]
push 0
push 0xfde9
push 0x7f5
push dword [edi + 0x228]
call eax
add esp, 0x20
cmp byte [ebx], 0xef
jne 0x10004910
cmp byte [ebx + 1], 0xbb
jne 0x10004910
cmp byte [ebx + 2], 0xbf
jne 0x10004910
mov ecx, dword [edi + 0x224]
lea eax, [ebx + 3]
push eax
push 0
push 0x885
push dword [edi + 0x228]
call ecx
jmp 0x10004926
mov eax, dword [edi + 0x224]
push ebx
push 0
push 0x885
push dword [edi + 0x228]
call eax
add esp, 0x10
push ebx
call fcn.10089124
add esp, 4
mov dword [ebp - 0x18], 0x100ac924
mov dword [ebp - 0x14], 0x100ac924
mov dword [ebp - 0x10], 0x100ac924
lea esi, [edi + 8]
mov dword [ebp - 4], 0
push esi
lea eax, [ebp - 0x18]
push str.VirtualDub2_Script_Editor_____s_
push eax
call fcn.10003500
mov ebx, dword [ebp - 0x18]
add esp, 0xc
push ebx
push dword [edi]
call dword [sym.imp.USER32.dll_SetWindowTextW]
xor eax, eax
cmp byte [0x100c59ee], al
push 0
setne al
push eax
mov eax, dword [edi + 0x224]
push 0x8dc
push dword [edi + 0x228]
call eax
add esp, 0x10
mov ecx, edi
push dword [0x100c59f4]
push dword [0x100c59f0]
push 0xffffff
push 0
push 0x20
call fcn.100053a0
mov eax, dword [edi + 0x224]
push 0
push 0
push 0x802
push dword [edi + 0x228]
call eax
add esp, 0x10
mov ecx, esi
call fcn.10007600
push eax
mov ecx, edi
call fcn.10004a00
cmp ebx, 0x100ac924
je 0x100049e9
push ebx
call fcn.1008321e
add esp, 4
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 4
Function at 0x100050e0
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x1009f510
mov eax, dword fs:[0]
push eax
sub esp, 0x274
mov eax, dword [0x100c50e4]
xor eax, ebp
mov dword [ebp - 0x10], eax
push ebx
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov edi, ecx
cmp word [edi + 8], 0
lea ebx, [edi + 8]
jne 0x100051a9
xor eax, eax
push 0x58
push eax
mov word [ebp - 0x218], ax
lea eax, [ebp - 0x280]
push eax
call fcn.10085460
mov eax, dword [edi]
add esp, 0xc
mov dword [ebp - 0x27c], eax
lea eax, [ebp - 0x218]
mov dword [ebp - 0x264], eax
lea eax, [ebp - 0x280]
mov dword [ebp - 0x280], 0x58
push eax
mov dword [ebp - 0x274], str.All_files__._
mov dword [ebp - 0x268], 1
mov dword [ebp - 0x260], 0x104
mov dword [ebp - 0x24c], 0x880000
call dword [sym.imp.COMDLG32.dll_GetSaveFileNameW]
test eax, eax
je 0x10005244
lea eax, [ebp - 0x218]
push eax
push 0x104
push ebx
call fcn.1008ad71
add esp, 0xc
mov eax, dword [edi + 0x224]
push 0
push 0
push 0x859
push dword [edi + 0x228]
call eax
mov eax, dword [edi + 0x224]
push 0
push 0
push 0x887
push dword [edi + 0x228]
call eax
mov dword [ebp - 0x224], eax
lea esi, [eax + 1]
push esi
call fcn.1008913f
mov ecx, dword [edi + 0x224]
push eax
push esi
push 0x886
push dword [edi + 0x228]
mov dword [ebp - 0x220], eax
call ecx
push 0x100b6f4c
lea eax, [ebp - 0x21c]
push ebx
push eax
call fcn.1008a958
add esp, 0x40
test eax, eax
je 0x10005248
push dword [ebp - 0x21c]
mov esi, dword [ebp - 0x220]
push dword [ebp - 0x224]
push 1
push esi
call fcn.1008b077
push dword [ebp - 0x21c]
call fcn.1008aa16
add esp, 0x14
jmp 0x10005262
xor al, al
jmp 0x10005274
push 0
push str.Error
push str.The_file_cannot_be_opened_for_writing.
push dword [edi]
call dword [sym.imp.USER32.dll_MessageBoxA]
mov esi, dword [ebp - 0x220]
push esi
call fcn.10089124
add esp, 4
mov byte [edi + 0xa3a], 0
mov al, 1
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.10083210
mov esp, ebp
pop ebp
ret