joyce8/EMBER2024-capa huggingface dataset:
Function at 0x82576c
Capabilities:
Execute anti-debugging instructions

Disassembly:
mov di, dx
xchg si, dx
sub esp, 0x1a
sub esp, 0xe
pushal
jmp 0x82578f
rcl dl, cl
cld
setp bl
push word [esp + 9]
jmp 0x825756
mov dword [esp + 0x10], ecx
mov ch, byte [esp + 0xd]
mov word [esp + 0x18], sp
rdtsc
jmp 0x825812
lea esp, [esp + 0x55]
xchg bp, ax
sub esp, 0x1d
pop word [esp + 6]
rcl ecx, cl
xchg cl, ah
jmp 0x825779
btc di, ax
pop dword [esp + 0x10]
mov ax, word [esp + 8]
sub esp, 5
rdtsc
push dword [esp + 0x11]
jmp 0x8257b7
mov bp, 0xd63f
cld
neg al
cpuid
xchg dword [esp + 0xf], esi
bsr bx, dx
jmp 0x8257cd

Function at 0x825e22
Capabilities:
Execute anti-debugging instructions

Disassembly:
push word [esp + 0x17]
not ch
xchg word [esp + 5], dx
bt ax, sp
pop word [esp + 0x1e]
cmc
jmp 0x825def
push dword [esp + 0x1b]
jmp 0x825e05

Function at 0x826056
Capabilities:
Access peb ldr_data

Disassembly:
push dword [esp]
mov dword [esp + 4], ebp
push ax
lea esp, [esp + 2]
mov dword [esp], esi
push edi
jmp 0x825ff2
pushfd
pop dword [esp]
jmp 0x82601e
Function at 0x40cb30
Capabilities:
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffff4
push ebx
push esi
push edi
mov edi, ecx
mov esi, edx
mov ebx, eax
xor eax, eax
mov dword [ebp - 4], eax
lea eax, [ebp + 0xc]
push eax
push edi
lea eax, [ebp - 4]
push eax
push 0
mov eax, esi
call fcn.0040380c
push eax
mov eax, dword [ebx + 4]
push eax
call sub.advapi32.dll_RegQueryValueExA_1
test eax, eax
je 0x40cb88
mov dword [ebp - 0xc], esi
mov byte [ebp - 8], 0xb
lea eax, [ebp - 0xc]
push eax
push 0
mov ecx, dword [0x40f530]
mov dl, 1
mov eax, dword [0x40c534]
call fcn.00407dec
call fcn.00402ecc
mov ebx, dword [ebp + 0xc]
mov eax, dword [ebp - 4]
call fcn.0040c66c
mov edx, dword [ebp + 8]
mov byte [edx], al
mov eax, ebx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 8

Function at 0x40d578
Capabilities:
Copy file

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffff4
mov dword [ebp - 8], edx
mov dword [ebp - 4], eax
push 0
mov eax, dword [ebp - 8]
call fcn.0040380c
push eax
mov eax, dword [ebp - 4]
call fcn.0040380c
push eax
call sub.KERNEL32.DLL_CopyFileA
neg eax
sbb eax, eax
neg eax
mov byte [ebp - 9], al
mov al, byte [ebp - 9]
mov esp, ebp
pop ebp
ret

Function at 0x40d5b0
Capabilities:
Get common file path

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffef8
xor edx, edx
mov dword [ebp - 0x108], edx
mov dword [ebp - 4], eax
xor eax, eax
push ebp
push 0x40d620
push dword fs:[eax]
mov dword fs:[eax], esp
push 0xff
lea eax, [ebp - 0x104]
push eax
call sub.KERNEL32.DLL_GetWindowsDirectoryA
lea edx, [ebp - 0x108]
lea eax, [ebp - 0x104]
call fcn.00406f70
mov edx, dword [ebp - 0x108]
mov eax, dword [ebp - 4]
mov ecx, 0x40d634
call fcn.004036a4
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x40d627
lea eax, [ebp - 0x108]
call fcn.004033fc
ret

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

Disassembly:
pushal
nop
nop
nop
nop
nop
nop
mov eax, section..text
nop
mov ebx, 0x40c7d0
mov ecx, 0x6d400764
nop
test eax, eax
nop
nop
nop
nop
nop
nop
nop
je 0x43204e
nop
nop
nop
xor dword [eax], ecx
nop
nop
inc eax
nop
nop
nop
nop
nop
inc eax
nop
nop
nop
nop
nop
nop
nop
inc eax
nop
nop
nop
nop
nop
nop
nop
inc eax
nop
cmp eax, ebx
nop
nop
nop
nop
nop
nop
nop
nop
jne 0x432024
mov eax, section..data
nop
mov ebx, 0x42f314
nop
mov ecx, 0x36684af5
nop
nop
nop
nop
test eax, eax
nop
nop
nop
nop
je 0x432084
nop
nop
nop
nop
nop
xor dword [eax], ecx
nop
nop
add eax, 4
nop
cmp eax, ebx
nop
nop
nop
nop
nop
nop
jne 0x43206c
nop
nop
nop
popal
nop
nop
nop
nop
jmp 0x431219
Function at 0x430000
Capabilities:
Encode data using xor
Packed with generic packer

Disassembly:
pushal
nop
nop
nop
nop
nop
mov eax, section..data
nop
mov ebx, 0x408ecc
nop
mov ecx, 0x46f569e0
nop
nop
nop
test eax, eax
nop
nop
nop
nop
nop
nop
je 0x43004e
nop
xor dword [eax], ecx
nop
nop
nop
nop
nop
inc eax
nop
nop
nop
nop
nop
inc eax
nop
nop
nop
nop
nop
nop
inc eax
nop
nop
nop
nop
nop
nop
inc eax
nop
nop
nop
nop
nop
cmp eax, ebx
nop
nop
nop
jne 0x430024
nop
mov eax, section..text
nop
nop
mov ebx, 0x42e1d0
nop
mov ecx, 0x243a114a
test eax, eax
nop
nop
nop
nop
nop
nop
nop
nop
je 0x430084
nop
nop
xor dword [eax], ecx
nop
nop
nop
nop
nop
add eax, 4
nop
cmp eax, ebx
nop
nop
nop
nop
nop
nop
nop
jne 0x43006c
nop
nop
nop
nop
popal
nop
jmp 0x401219

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

Disassembly:
pushal
nop
mov eax, section..text
nop
mov ebx, 0x408e84
nop
nop
mov ecx, 0x359a7735
nop
nop
test eax, eax
nop
nop
nop
nop
je 0x43004e
nop
nop
xor dword [eax], ecx
nop
nop
nop
nop
nop
nop
nop
nop
nop
inc eax
inc eax
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
inc eax
inc eax
nop
nop
nop
nop
nop
nop
nop
nop
cmp eax, ebx
nop
nop
jne 0x430024
nop
nop
nop
nop
mov eax, section..data
nop
mov ebx, 0x42e1d0
mov ecx, 0x451e045f
nop
nop
test eax, eax
nop
nop
nop
nop
nop
nop
je 0x430084
nop
nop
xor dword [eax], ecx
nop
nop
nop
nop
nop
add eax, 4
nop
cmp eax, ebx
nop
nop
nop
nop
nop
jne 0x43006c
nop
nop
nop
popal
nop
nop
nop
nop
nop
jmp 0x401219
Function at 0x402083
Capabilities:
Parse pe header

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

Function at 0x447384
Capabilities:
Allocate thread local storage

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push esi
push 0x4f8e44
push 0x4f8e3c
push str.FlsAlloc
push 0x1e
call fcn.00447054
mov esi, eax
add esp, 0x10
test esi, esi
je 0x4473b8
push dword [ebp + 8]
mov ecx, esi
call dword [0x4f531c]
call esi
jmp 0x4473be
call dword [sym.imp.KERNEL32.dll_TlsAlloc]
pop esi
pop ebp
ret 4

Function at 0x447402
Capabilities:
Get thread local storage value

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push esi
push 0x4f8e54
push 0x4f8e4c
push str.FlsGetValue
push 0x20
call fcn.00447054
mov esi, eax
add esp, 0x10
test esi, esi
je 0x447439
push dword [ebp + 8]
mov ecx, esi
call dword [0x4f531c]
call esi
pop esi
pop ebp
ret 4
pop esi
pop ebp
jmp dword [sym.imp.KERNEL32.dll_TlsGetValue]
Function at 0x449236
Capabilities:
Read file on windows

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
mov eax, 0x101c
call fcn.00461100
mov eax, dword [0x50c004]
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.0044314e
pop ecx
mov ecx, dword [ebp + 8]
mov ebx, eax
cmp dword [ecx + 8], 0
jne 0x449278
mov eax, dword [ebp + 0xc]
mov edx, dword [ebp + 0x10]
jmp 0x4493d4
mov eax, dword [ecx]
sub eax, dword [ecx + 4]
push esi
push edi
push 0
cdq
push 2
push edx
push eax
call fcn.00460e70
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 + 0x599fd8]
push dword [edi + eax + 0x24]
push dword [edi + eax + 0x20]
push ebx
call fcn.00448ca2
mov ecx, dword [esi*4 + 0x599fd8]
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 0x4493cd
cmp eax, dword [edi + ecx + 0x24]
jne 0x4493cd
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 0x4493cd
push dword [ebp - 0x100c]
push 0
push dword [ebp + 0x10]
push dword [ebp + 0xc]
push ebx
call fcn.00448ca2
add esp, 0x14
test edx, edx
jl 0x4493cd
jg 0x449343
test eax, eax
jb 0x4493cd
mov ebx, dword [ebp - 0x1018]
mov eax, dword [ebp - 0x1014]
test ebx, ebx
jg 0x4493cd
jl 0x44935d
cmp dword [ebp - 0x1008], eax
ja 0x4493cd
lea edi, [ebp - 0x1004]
xor edx, edx
add edi, eax
lea ecx, [ebp - 0x1004]
xor esi, esi
cmp dword [ebp - 0x1008], edx
jne 0x44937b
test ebx, ebx
je 0x4493b4
cmp ecx, edi
jae 0x4493b4
mov al, byte [ecx]
cmp al, 0xd
jne 0x449395
lea eax, [edi - 1]
cmp ecx, eax
jae 0x4493a1
cmp byte [ecx + 1], 0xa
jne 0x4493a1
inc ecx
jmp 0x4493a1
movzx eax, al
movsx eax, byte [eax + 0x50c938]
add ecx, eax
add esi, 1
adc edx, 0
inc ecx
cmp esi, dword [ebp - 0x1008]
jne 0x44937b
cmp edx, ebx
jne 0x44937b
lea eax, [ebp - 0x1004]
sub ecx, eax
mov eax, ecx
cdq
add eax, dword [ebp - 0x1010]
adc edx, dword [ebp - 0x101c]
jmp 0x4493d2
or edx, 0xffffffff
mov eax, edx
pop edi
pop esi
mov ecx, dword [ebp - 4]
xor ecx, ebp
pop ebx
call fcn.004014c7
leave
ret

Function at 0x44eaf5
Capabilities:
Print debug messages

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
pop ebp
jmp fcn.0044e9c9
Function at 0x44f24f
Capabilities:
Enumerate files on windows

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x264
mov eax, dword [0x50c004]
xor eax, ebp
mov dword [ebp - 4], eax
mov edx, dword [ebp + 0xc]
mov ecx, dword [ebp + 0x10]
push ebx
push esi
push edi
mov edi, dword [ebp + 8]
mov dword [ebp - 0x25c], ecx
cmp edx, edi
je 0x44f29a
movzx eax, word [edx]
lea ecx, [ebp - 0x255]
push eax
call fcn.0044f5ca
test al, al
jne 0x44f294
sub edx, 2
cmp edx, edi
jne 0x44f27a
mov ecx, dword [ebp - 0x25c]
movzx esi, word [edx]
cmp esi, 0x3a
jne 0x44f2bc
lea eax, [edi + 2]
cmp edx, eax
je 0x44f2bc
push ecx
xor ebx, ebx
push ebx
push ebx
push edi
call fcn.0044ef16
add esp, 0x10
jmp 0x44f3b6
push esi
lea ecx, [ebp - 0x255]
call fcn.0044f5ca
sub edx, edi
movzx eax, al
sar edx, 1
inc edx
neg eax
sbb eax, eax
xor ebx, ebx
push ebx
push ebx
and eax, edx
push ebx
mov dword [ebp - 0x260], eax
lea eax, [ebp - 0x254]
push eax
push ebx
push edi
call dword [sym.imp.KERNEL32.dll_FindFirstFileExW]
mov esi, eax
cmp esi, 0xffffffff
jne 0x44f2ff
push dword [ebp - 0x25c]
jmp 0x44f2ac
mov ebx, dword [ebp - 0x25c]
push 0x2e
mov eax, dword [ebx + 4]
sub eax, dword [ebx]
sar eax, 2
mov dword [ebp - 0x25c], eax
pop eax
cmp word [ebp - 0x228], ax
jne 0x44f33c
cmp word [ebp - 0x226], 0
je 0x44f35d
cmp word [ebp - 0x226], ax
jne 0x44f33c
cmp word [ebp - 0x224], 0
je 0x44f35d
push ebx
push dword [ebp - 0x260]
lea eax, [ebp - 0x228]
push edi
push eax
call fcn.0044ef16
add esp, 0x10
mov dword [ebp - 0x264], eax
test eax, eax
jne 0x44f3a9
lea eax, [ebp - 0x254]
push eax
push esi
call dword [sym.imp.KERNEL32.dll_FindNextFileW]
push 0x2e
test eax, eax
pop eax
jne 0x44f316
mov eax, dword [ebx + 4]
mov edx, dword [ebx]
sub eax, edx
mov ecx, dword [ebp - 0x25c]
sar eax, 2
cmp ecx, eax
jne 0x44f391
push esi
call dword [sym.imp.KERNEL32.dll_FindClose]
xor eax, eax
jmp 0x44f3b6
push 0x44eb18
sub eax, ecx
push 4
push eax
lea eax, [edx + ecx*4]
push eax
call fcn.0045c040
add esp, 0x10
jmp 0x44f386
push esi
call dword [sym.imp.KERNEL32.dll_FindClose]
mov eax, dword [ebp - 0x264]
mov ecx, dword [ebp - 4]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.004014c7
leave
ret
Function at 0x4503c2
Capabilities:
Query environment variable

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push ecx
push ecx
push esi
call dword [sym.imp.KERNEL32.dll_GetEnvironmentStringsW]
mov esi, eax
test esi, esi
je 0x45045f
push ebx
push esi
call fcn.0045037e
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.0044966a
add esp, 0x24
mov dword [ebp - 4], eax
test eax, eax
jne 0x45040c
push esi
call dword [sym.imp.KERNEL32.dll_FreeEnvironmentStringsW]
xor eax, eax
jmp 0x45045e
push edi
push eax
call fcn.0044220a
mov edi, eax
pop ecx
push ebx
test edi, edi
jne 0x45042c
call fcn.004421d0
pop ecx
push esi
call dword [sym.imp.KERNEL32.dll_FreeEnvironmentStringsW]
xor eax, eax
jmp 0x45045d
push ebx
push dword [ebp - 4]
push edi
push dword [ebp - 8]
push esi
push ebx
push ebx
call fcn.0044966a
add esp, 0x20
test eax, eax
jne 0x45044b
push edi
call fcn.004421d0
jmp 0x450453
push ebx
call fcn.004421d0
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 0x450462
Capabilities:
Query environment variable

Disassembly:
mov edi, edi
push esi
call dword [sym.imp.KERNEL32.dll_GetEnvironmentStringsW]
mov esi, eax
test esi, esi
jne 0x450473
pop esi
ret
push ebx
push edi
push esi
call fcn.0045037e
mov ebx, eax
sub ebx, esi
and ebx, 0xfffffffe
push ebx
call fcn.0044220a
mov edi, eax
pop ecx
pop ecx
test edi, edi
je 0x45049b
push ebx
push esi
push edi
call fcn.00402b10
add esp, 0xc
push 0
call fcn.004421d0
pop ecx
push esi
call dword [sym.imp.KERNEL32.dll_FreeEnvironmentStringsW]
mov eax, edi
pop edi
pop ebx
pop esi
ret

Function at 0x450d72
Capabilities:
Set environment variable

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
pop ebp
jmp fcn.0045070e
Function at 0x45a0b3
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 + 0x599fd8]
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 0x45a0f3
cmp byte [ebx], 0xa
jne 0x45a0f3
or byte [eax + edi + 0x28], 4
jmp 0x45a0f8
and byte [eax + edi + 0x28], 0xfb
add ecx, ebx
mov edx, ebx
mov dword [ebp - 0xc], ecx
mov esi, ebx
cmp ebx, ecx
jae 0x45a1f6
mov al, byte [edx]
cmp al, 0x1a
je 0x45a1d8
lea ecx, [edx + 1]
mov dword [ebp - 8], ecx
mov ecx, dword [ebp - 0xc]
cmp al, 0xd
je 0x45a127
mov edx, dword [ebp - 8]
mov byte [esi], al
jmp 0x45a14c
mov eax, dword [ebp - 8]
cmp eax, ecx
jae 0x45a156
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 0x45a109
jmp 0x45a1f6
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 0x45a1d3
cmp dword [ebp - 0xc], 0
je 0x45a1d3
mov ecx, dword [ebp - 0x10]
mov eax, dword [ecx*4 + 0x599fd8]
test byte [eax + edi + 0x28], 0x48
je 0x45a1ad
mov dl, byte [ebp - 1]
lea eax, [esi + 1]
mov dword [ebp - 0x14], eax
cmp dl, 0xa
jne 0x45a198
mov byte [esi], dl
jmp 0x45a1a9
mov byte [esi], 0xd
mov eax, dword [ecx*4 + 0x599fd8]
mov byte [eax + edi + 0x2a], dl
mov eax, dword [ebp - 0x14]
mov esi, eax
jmp 0x45a1f6
cmp byte [ebp - 1], 0xa
jne 0x45a1bc
cmp esi, ebx
jne 0x45a1bc
mov byte [esi], 0xa
jmp 0x45a1f5
push 1
push 0xffffffffffffffff
push 0xffffffffffffffff
push dword [ebp + 8]
call fcn.00448cc0
add esp, 0x10
cmp byte [ebp - 1], 0xa
je 0x45a1f6
mov byte [esi], 0xd
jmp 0x45a1f5
mov ecx, dword [ebp - 0x10]
mov ecx, dword [ecx*4 + 0x599fd8]
mov al, byte [ecx + edi + 0x28]
test al, 0x40
jne 0x45a1f2
or al, 2
mov byte [ecx + edi + 0x28], al
jmp 0x45a1f6
mov byte [esi], 0x1a
inc esi
sub esi, ebx
pop edi
mov eax, esi
pop esi
pop ebx
leave
ret
Function at 0x45a1ff
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 + 0x599fd8]
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 0x45a242
cmp word [esi], dx
jne 0x45a242
or byte [edi + eax + 0x28], 4
jmp 0x45a247
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 0x45a39a
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 0x45a37a
add eax, 2
cmp cx, word [ebp - 0xc]
je 0x45a289
mov dword [ebp - 4], eax
mov word [esi], cx
jmp 0x45a2bf
cmp eax, edx
jae 0x45a2cb
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 0x45a261
jmp 0x45a39a
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 0x45a376
cmp dword [ebp - 0x14], 0
je 0x45a376
mov eax, dword [ebx*4 + 0x599fd8]
push 0xa
test byte [edi + eax + 0x28], 0x48
je 0x45a34e
mov dx, word [ebp - 4]
lea eax, [esi + 2]
pop ecx
mov dword [ebp - 0x18], eax
cmp dx, cx
jne 0x45a317
mov word [esi], cx
jmp 0x45a34a
push 0xd
pop eax
mov word [esi], ax
mov eax, dword [ebx*4 + 0x599fd8]
movzx ecx, dx
shr ecx, 8
push 0xa
mov byte [edi + eax + 0x2a], dl
mov eax, dword [ebx*4 + 0x599fd8]
mov byte [edi + eax + 0x2b], cl
mov eax, dword [ebx*4 + 0x599fd8]
pop ecx
mov byte [edi + eax + 0x2c], cl
mov eax, dword [ebp - 0x18]
mov esi, eax
jmp 0x45a39a
pop ebx
cmp word [ebp - 4], bx
jne 0x45a35f
cmp esi, dword [ebp + 0xc]
jne 0x45a35f
mov word [esi], bx
jmp 0x45a397
push 1
push 0xffffffffffffffff
push 0xfffffffffffffffe
push dword [ebp + 8]
call fcn.00448cc0
add esp, 0x10
cmp word [ebp - 4], bx
je 0x45a39a
push 0xd
jmp 0x45a393
mov ecx, dword [ebx*4 + 0x599fd8]
mov al, byte [ecx + edi + 0x28]
test al, 0x40
jne 0x45a391
or al, 2
mov byte [ecx + edi + 0x28], al
jmp 0x45a39a
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 0x45afe5
Capabilities:
Read file on windows

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
pop ebp
jmp fcn.0045abcc

Function at 0x45aff0
Capabilities:
Read file on windows

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
pop ebp
jmp fcn.0045ad5b

Function at 0x45d7ed
Capabilities:
Clear file content

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x2c
push ebx
mov ebx, dword [ebp + 8]
lea ecx, [ebp - 0x2c]
push esi
push edi
push dword [ebp + 0x10]
push dword [ebp + 0xc]
push ebx
call fcn.0045d60d
mov eax, dword [ebp - 0x2c]
and eax, dword [ebp - 0x28]
cmp eax, 0xffffffff
je 0x45d965
mov eax, dword [ebp - 0x24]
and eax, dword [ebp - 0x20]
cmp eax, 0xffffffff
je 0x45d965
mov ecx, dword [ebp - 0x18]
mov eax, dword [ebp - 0x1c]
mov dword [ebp - 8], ecx
mov dword [ebp - 4], eax
test ecx, ecx
jl 0x45d914
jg 0x45d846
test eax, eax
je 0x45d90a
push 1
push 0x1000
call fcn.0044c773
mov esi, eax
pop ecx
pop ecx
test esi, esi
jne 0x45d86c
mov eax, dword [ebp + 0x14]
push 0xc
pop edi
mov byte [eax + 0x1c], 1
mov dword [eax + 0x18], edi
jmp 0x45d901
push 0x8000
push ebx
call fcn.0043f863
mov edi, dword [ebp + 0x14]
pop ecx
pop ecx
mov ecx, dword [ebp - 0x1c]
mov dword [ebp - 0xc], eax
mov eax, dword [ebp - 0x18]
test eax, eax
jl 0x45d898
jg 0x45d893
cmp ecx, 0x1000
jb 0x45d898
mov ecx, 0x1000
push edi
push ecx
push esi
push ebx
call fcn.00448606
add esp, 0x10
cmp eax, 0xffffffff
je 0x45d8dd
mov ecx, dword [ebp - 4]
cdq
sub ecx, eax
mov eax, dword [ebp - 8]
mov dword [ebp - 4], ecx
sbb eax, edx
mov dword [ebp - 8], eax
test eax, eax
jg 0x45d893
jl 0x45d8c4
test ecx, ecx
jne 0x45d885
push dword [ebp - 0xc]
push ebx
call fcn.0043f863
push esi
call fcn.004421d0
add esp, 0xc
xor edi, edi
jmp 0x45d976
cmp byte [edi + 0x24], 0
je 0x45d8f4
cmp dword [edi + 0x20], 5
jne 0x45d8f4
mov byte [edi + 0x1c], 1
mov dword [edi + 0x18], 0xd
cmp byte [edi + 0x1c], 0
je 0x45d8ff
mov edi, dword [edi + 0x18]
jmp 0x45d901
xor edi, edi
push esi
call fcn.004421d0
pop ecx
jmp 0x45d976
test ecx, ecx
jg 0x45d8d6
jl 0x45d914
test eax, eax
jae 0x45d8d6
push 0
push dword [ebp + 0x10]
push dword [ebp + 0xc]
push ebx
call fcn.00448cc0
and eax, edx
add esp, 0x10
cmp eax, 0xffffffff
jne 0x45d937
mov edi, dword [ebp + 0x14]
cmp byte [edi + 0x1c], 0
je 0x45d8d6
jmp 0x45d96e
push ebx
call fcn.004511a4
pop ecx
push eax
call dword [sym.imp.KERNEL32.dll_SetEndOfFile]
test eax, eax
jne 0x45d8d6
mov esi, dword [ebp + 0x14]
call dword [sym.imp.KERNEL32.dll_GetLastError]
push 0xd
mov byte [esi + 0x24], 1
mov dword [esi + 0x20], eax
pop edi
mov byte [esi + 0x1c], 1
mov dword [esi + 0x18], edi
jmp 0x45d976
mov edi, dword [ebp + 0x14]
cmp byte [edi + 0x1c], 0
je 0x45d973
mov edi, dword [edi + 0x18]
jmp 0x45d976
push 0x16
pop edi
push 0
push dword [ebp - 0x28]
push dword [ebp - 0x2c]
push dword [ebp - 0x14]
call fcn.00448cc0
add esp, 0x10
mov eax, edi
pop edi
pop esi
pop ebx
leave
ret
Function at 0x460b60
Capabilities:
Parse pe header

Disassembly:
push ebp
mov ebp, esp
mov eax, dword [ebp + 8]
mov ecx, 0x5a4d
cmp word [eax], cx
jne 0x460b8d
mov ecx, dword [eax + 0x3c]
add ecx, eax
cmp dword [ecx], 0x4550
jne 0x460b8d
mov edx, 0x10b
xor eax, eax
cmp word [ecx + 0x18], dx
sete al
pop ebp
ret
xor eax, eax
pop ebp
ret

Function at 0x466a50
Capabilities:
Initialize winsock library

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x19c
mov eax, dword [0x50c004]
xor eax, ebp
mov dword [ebp - 4], eax
mov eax, dword [ebp + 0xc]
mov dword [ebp - 0x198], eax
cmp dword [ebp - 0x198], 0
je 0x466ad6
cmp dword [ebp - 0x198], 1
je 0x466a80
jmp 0x466ae6
mov ecx, dword [ebp + 8]
xor edx, edx
mov dword [0x50fb78], ecx
mov dword [0x50fb7c], edx
call fcn.004644b0
call fcn.004919e0
lea eax, [ebp - 0x194]
push eax
push 0x202
call dword [sym.imp.WSOCK32.dll_WSAStartup]
mov dword [ebp - 0x19c], eax
cmp dword [ebp - 0x19c], 0
je 0x466ad4
lea ecx, [ebp - 0x194]
push ecx
push 0x101
call dword [sym.imp.WSOCK32.dll_WSAStartup]
mov dword [ebp - 0x19c], eax
jmp 0x466ae6
call fcn.00464490
call fcn.00491a20
call dword [sym.imp.WSOCK32.dll_WSACleanup]
mov eax, 1
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.004014c7
mov esp, ebp
pop ebp
ret
Function at 0x475750
Capabilities:
Hide graphical window

Disassembly:
push ebp
mov ebp, esp
push 0
push 0x27a8
mov eax, dword [ebp + 8]
push eax
call dword [sym.imp.USER32.dll_GetDlgItem]
push eax
call dword [sym.imp.USER32.dll_EnableWindow]
push 0
push 0x27a9
mov ecx, dword [ebp + 8]
push ecx
call dword [sym.imp.USER32.dll_GetDlgItem]
push eax
call dword [sym.imp.USER32.dll_EnableWindow]
push 0
push 0x27aa
mov edx, dword [ebp + 8]
push edx
call dword [sym.imp.USER32.dll_GetDlgItem]
push eax
call dword [sym.imp.USER32.dll_EnableWindow]
push 0
push 0x27a8
mov eax, dword [ebp + 8]
push eax
call dword [sym.imp.USER32.dll_GetDlgItem]
push eax
call dword [sym.imp.USER32.dll_ShowWindow]
push 0
push 0x27a9
mov ecx, dword [ebp + 8]
push ecx
call dword [sym.imp.USER32.dll_GetDlgItem]
push eax
call dword [sym.imp.USER32.dll_ShowWindow]
push 0
push 0x27aa
mov edx, dword [ebp + 8]
push edx
call dword [sym.imp.USER32.dll_GetDlgItem]
push eax
call dword [sym.imp.USER32.dll_ShowWindow]
pop ebp
ret

Function at 0x4757f0
Capabilities:
Hide graphical window

Disassembly:
push ebp
mov ebp, esp
push 0
push 0x27c0
mov eax, dword [ebp + 8]
push eax
call dword [sym.imp.USER32.dll_GetDlgItem]
push eax
call dword [sym.imp.USER32.dll_EnableWindow]
push 0
push 0x27c0
mov ecx, dword [ebp + 8]
push ecx
call dword [sym.imp.USER32.dll_GetDlgItem]
push eax
call dword [sym.imp.USER32.dll_ShowWindow]
pop ebp
ret

Function at 0x475cb0
Capabilities:
Hide graphical window

Disassembly:
push ebp
mov ebp, esp
mov dword [0x5a0124], 0
movzx eax, byte [0x50fba8]
push eax
push 0x18f
call fcn.004a0d20
add esp, 8
push eax
push 0x27bf
mov ecx, dword [ebp + 8]
push ecx
call dword [sym.imp.USER32.dll_SetDlgItemTextA]
push 1
push 0x27c0
mov edx, dword [ebp + 8]
push edx
call dword [sym.imp.USER32.dll_GetDlgItem]
push eax
call dword [sym.imp.USER32.dll_EnableWindow]
push 5
push 0x27c0
mov eax, dword [ebp + 8]
push eax
call dword [sym.imp.USER32.dll_GetDlgItem]
push eax
call dword [sym.imp.USER32.dll_ShowWindow]
pop ebp
ret