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

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x18
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 + 0x1002f900]
mov dword [ebp - 0xc], ecx
mov ecx, dword [edi + eax + 0x18]
mov dword [ebp - 0x14], ecx
mov ecx, dword [ebp + 0x10]
test ecx, ecx
je 0x10018b6b
cmp byte [ebx], 0xa
jne 0x10018b6b
or byte [edi + eax + 0x28], 4
jmp 0x10018b70
and byte [edi + eax + 0x28], 0xfb
add ecx, ebx
mov eax, ebx
mov dword [ebp - 0x10], ecx
mov esi, ebx
mov dword [ebp - 8], eax
cmp ebx, ecx
jae 0x10018c6f
mov dl, byte [eax]
cmp dl, 0x1a
je 0x10018c52
inc eax
cmp dl, 0xd
je 0x10018b9c
mov dword [ebp - 8], eax
mov byte [esi], dl
jmp 0x10018bc2
cmp eax, ecx
jae 0x10018bd0
mov cl, byte [eax]
xor eax, eax
cmp cl, 0xa
sete al
inc eax
add dword [ebp - 8], eax
cmp cl, 0xa
sete al
dec al
and al, 3
add al, 0xa
mov byte [esi], al
mov eax, dword [ebp - 8]
mov ecx, dword [ebp - 0x10]
xor edx, edx
inc edx
add esi, edx
cmp eax, ecx
jb 0x10018b84
jmp 0x10018c6f
push 0
lea eax, [ebp - 0x10]
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 0x10018c4d
cmp dword [ebp - 0x10], 0
je 0x10018c4d
mov ecx, dword [ebp - 0xc]
mov eax, dword [ecx*4 + 0x1002f900]
test byte [eax + edi + 0x28], 0x48
je 0x10018c27
mov dl, byte [ebp - 1]
lea eax, [esi + 1]
mov dword [ebp - 0x14], eax
cmp dl, 0xa
jne 0x10018c12
mov byte [esi], dl
jmp 0x10018c23
mov byte [esi], 0xd
mov eax, dword [ecx*4 + 0x1002f900]
mov byte [eax + edi + 0x2a], dl
mov eax, dword [ebp - 0x14]
mov esi, eax
jmp 0x10018c6f
cmp byte [ebp - 1], 0xa
jne 0x10018c36
cmp esi, ebx
jne 0x10018c36
mov byte [esi], 0xa
jmp 0x10018c6e
push 1
push 0xffffffffffffffff
push 0xffffffffffffffff
push dword [ebp + 8]
call fcn.100196b1
add esp, 0x10
cmp byte [ebp - 1], 0xa
je 0x10018c6f
mov byte [esi], 0xd
jmp 0x10018c6e
mov ecx, dword [ebp - 0xc]
mov ecx, dword [ecx*4 + 0x1002f900]
mov al, byte [ecx + edi + 0x28]
test al, 0x40
jne 0x10018c6c
or al, 2
mov byte [ecx + edi + 0x28], al
jmp 0x10018c6f
mov byte [esi], dl
inc esi
sub esi, ebx
pop edi
mov eax, esi
pop esi
pop ebx
leave
ret
Function at 0x10018c78
Capabilities:
Read file on windows

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x1c
mov eax, dword [ebp + 8]
mov ecx, eax
push ebx
mov ebx, dword [ebp + 0xc]
and eax, 0x3f
push esi
sar ecx, 6
push edi
imul edi, eax, 0x38
mov dword [ebp - 8], ecx
mov eax, dword [ecx*4 + 0x1002f900]
push 0xa
pop edx
mov dword [ebp - 0x18], edx
mov ecx, dword [eax + edi + 0x18]
mov dword [ebp - 0x1c], ecx
mov ecx, dword [ebp + 0x10]
test ecx, ecx
je 0x10018cbe
cmp word [ebx], dx
jne 0x10018cbe
or byte [eax + edi + 0x28], 4
jmp 0x10018cc3
and byte [eax + edi + 0x28], 0xfb
lea edx, [ebx + ecx*2]
mov eax, ebx
mov dword [ebp - 0xc], edx
mov esi, ebx
mov dword [ebp - 4], eax
cmp ebx, edx
jae 0x10018e26
mov dword [ebp - 0x10], 0xd
movzx ecx, word [eax]
mov edx, ecx
mov dword [ebp - 0x14], edx
mov edx, dword [ebp - 0xc]
cmp ecx, 0x1a
je 0x10018e06
add eax, 2
cmp cx, word [ebp - 0x10]
je 0x10018d04
mov dword [ebp - 4], eax
mov word [esi], cx
jmp 0x10018d3a
cmp eax, edx
jae 0x10018d48
movzx eax, word [eax]
xor ecx, ecx
cmp ax, word [ebp - 0x18]
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 - 0xc]
sete al
dec eax
and eax, 3
add eax, ecx
mov word [esi], ax
mov eax, dword [ebp - 4]
push 2
pop ecx
add esi, ecx
cmp eax, edx
jb 0x10018cdf
jmp 0x10018e26
push 0
lea eax, [ebp - 0x18]
push eax
push 2
lea eax, [ebp - 4]
push eax
push dword [ebp - 0x1c]
call dword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
je 0x10018e01
cmp dword [ebp - 0x18], 0
je 0x10018e01
mov edx, dword [ebp - 8]
push 0xa
mov eax, dword [edx*4 + 0x1002f900]
test byte [eax + edi + 0x28], 0x48
je 0x10018dd7
lea eax, [esi + 2]
mov dword [ebp - 0x1c], eax
mov ax, word [ebp - 4]
pop ecx
mov word [ebp - 2], ax
cmp ax, cx
jne 0x10018d9b
mov word [esi], cx
jmp 0x10018dd2
push 0xd
pop ecx
mov word [esi], cx
movzx ecx, ax
mov eax, dword [edx*4 + 0x1002f900]
mov dx, word [ebp - 2]
shr ecx, 8
push 0xa
mov byte [eax + edi + 0x2a], dl
mov edx, dword [ebp - 8]
mov eax, dword [edx*4 + 0x1002f900]
mov byte [eax + edi + 0x2b], cl
mov eax, dword [edx*4 + 0x1002f900]
pop ecx
mov byte [eax + edi + 0x2c], cl
mov esi, dword [ebp - 0x1c]
jmp 0x10018e26
pop eax
cmp word [ebp - 4], ax
jne 0x10018de7
cmp esi, ebx
jne 0x10018de7
mov word [esi], ax
jmp 0x10018e23
push 1
push 0xffffffffffffffff
push 0xfffffffffffffffe
push dword [ebp + 8]
call fcn.100196b1
add esp, 0x10
push 0xa
pop eax
cmp word [ebp - 4], ax
je 0x10018e26
push 0xd
pop eax
jmp 0x10018de2
mov edx, dword [ebp - 8]
mov edx, dword [edx*4 + 0x1002f900]
mov al, byte [edx + edi + 0x28]
test al, 0x40
jne 0x10018e20
or al, 2
mov byte [edx + edi + 0x28], al
jmp 0x10018e26
mov word [esi], cx
add esi, 2
sub esi, ebx
and esi, 0xfffffffe
pop edi
mov eax, esi
pop esi
pop ebx
leave
ret
Function at 0x1001af76
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 0x1001b013
push ebx
push esi
call fcn.1001af3f
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.10019d14
add esp, 0x24
mov dword [ebp - 4], eax
test eax, eax
jne 0x1001afc0
push esi
call dword [sym.imp.KERNEL32.dll_FreeEnvironmentStringsW]
xor eax, eax
jmp 0x1001b012
push edi
push eax
call fcn.10012d89
mov edi, eax
pop ecx
push ebx
test edi, edi
jne 0x1001afe0
call fcn.10012d4f
pop ecx
push esi
call dword [sym.imp.KERNEL32.dll_FreeEnvironmentStringsW]
xor eax, eax
jmp 0x1001b011
push ebx
push dword [ebp - 4]
push edi
push dword [ebp - 8]
push esi
push ebx
push ebx
call fcn.10019d14
add esp, 0x20
test eax, eax
jne 0x1001afff
push edi
call fcn.10012d4f
jmp 0x1001b007
push ebx
call fcn.10012d4f
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 0x1001eca7
Capabilities:
Get geographical location

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push ecx
push esi
push edi
call fcn.10014156
mov esi, dword [ebp + 8]
mov edi, eax
push 2
lea eax, [ebp - 4]
mov ecx, esi
push eax
and ecx, 0x3ff
push 0x20000001
or ecx, 0x400
push ecx
call dword [sym.imp.KERNEL32.dll_GetLocaleInfoW]
test eax, eax
je 0x1001ed16
cmp esi, dword [ebp - 4]
je 0x1001ed11
cmp dword [ebp + 0xc], 0
je 0x1001ed11
mov esi, dword [edi + 0x50]
lea ecx, [esi + 2]
mov ax, word [esi]
add esi, 2
test ax, ax
jne 0x1001ecee
push dword [edi + 0x50]
sub esi, ecx
sar esi, 1
call fcn.1001e7f9
pop ecx
xor ecx, ecx
cmp eax, esi
setne cl
mov eax, ecx
jmp 0x1001ed18
xor eax, eax
inc eax
jmp 0x1001ed18
xor eax, eax
pop edi
pop esi
leave
ret
Function at 0x1001ed7d
Capabilities:
Get geographical location

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x18
mov eax, dword [0x1002e040]
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.10014156
add eax, 0x50
lea edi, [ebp - 0x10]
mov dword [ebp - 0x14], eax
xor eax, eax
stosd dword es:[edi], eax
stosd dword es:[edi], eax
stosd dword es:[edi], eax
call fcn.10014156
lea ecx, [ebp - 0x10]
xor 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
test ecx, ecx
je 0x1001edf4
cmp word [ecx], dx
je 0x1001edf4
mov eax, dword [0x1002751c]
push edi
dec eax
push eax
push 0x10027408
call fcn.1001ed1c
mov eax, dword [ebp - 0x14]
add esp, 0xc
xor edx, edx
mov dword [ebp - 0x10], edx
mov eax, dword [eax]
test eax, eax
je 0x1001ee67
cmp word [eax], dx
je 0x1001ee67
mov eax, dword [edi]
test eax, eax
je 0x1001ee18
cmp word [eax], dx
je 0x1001ee18
lea eax, [ebp - 0x10]
push eax
call fcn.1001e6ff
jmp 0x1001ee21
lea eax, [ebp - 0x10]
push eax
call fcn.1001e79a
cmp dword [ebp - 0x10], 0
pop ecx
jne 0x1001ee91
mov eax, dword [0x10027404]
push dword [ebp - 0x14]
dec eax
push eax
push 0x100270f8
call fcn.1001ed1c
add esp, 0xc
test al, al
je 0x1001ee91
mov eax, dword [edi]
xor edi, edi
test eax, eax
je 0x1001ee5c
cmp word [eax], di
je 0x1001ee5c
lea eax, [ebp - 0x10]
push eax
call fcn.1001e6ff
pop ecx
jmp 0x1001ee93
lea eax, [ebp - 0x10]
push eax
call fcn.1001e79a
jmp 0x1001ee59
mov eax, dword [edi]
test eax, eax
je 0x1001ee7e
cmp word [eax], dx
je 0x1001ee7e
lea eax, [ebp - 0x10]
push eax
call fcn.1001e6b4
pop ecx
jmp 0x1001ee91
mov dword [ebp - 0x10], 0x104
call dword [sym.imp.KERNEL32.dll_GetUserDefaultLCID]
mov dword [ebp - 8], eax
mov dword [ebp - 0xc], eax
xor edi, edi
cmp dword [ebp - 0x10], 0
je 0x1001ef5c
lea eax, [ebp - 0x10]
push eax
lea eax, [esi + 0x100]
neg esi
sbb esi, esi
and esi, eax
push esi
call fcn.1001eba1
mov esi, eax
pop ecx
pop ecx
test esi, esi
je 0x1001ef5c
movzx ecx, si
push ecx
call dword [sym.imp.KERNEL32.dll_IsValidCodePage]
test eax, eax
je 0x1001ef5c
push 1
push dword [ebp - 0xc]
call dword [sym.imp.KERNEL32.dll_IsValidLocale]
test eax, eax
je 0x1001ef5c
mov eax, dword [ebp - 0x18]
test eax, eax
je 0x1001eee9
mov dword [eax], esi
mov eax, dword [ebp - 0x14]
push edi
push 0x55
add eax, 0x250
push eax
push dword [ebp - 0xc]
call fcn.1001632f
test ebx, ebx
je 0x1001ef57
push edi
push 0x55
lea eax, [ebx + 0x120]
push eax
push dword [ebp - 0xc]
call fcn.1001632f
push 0x40
push ebx
push 0x1001
push dword [ebp - 0xc]
call dword [sym.imp.KERNEL32.dll_GetLocaleInfoW]
test eax, eax
je 0x1001ef5c
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 0x1001ef5c
push 0xa
push 0x10
lea ecx, [ebx + 0x100]
push ecx
push esi
call fcn.10020812
add esp, 0x10
xor eax, eax
inc eax
jmp 0x1001ef5e
xor eax, eax
mov ecx, dword [ebp - 4]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.10007425
leave
ret
Function at 0x10022100
Capabilities:
Parse pe header

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

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

Disassembly:
pushal
nop
nop
nop
call 0x43000c
nop
nop
nop
pop eax
nop
nop
add eax, 0x403d6f
nop
nop
sub eax, 0x403d15
mov ebx, dword [eax]
nop
nop
nop
nop
nop
nop
nop
mov ecx, dword [eax + 4]
mov edx, dword [eax + 8]
nop
nop
nop
xor dword [ebx], edx
nop
nop
nop
nop
nop
nop
nop
add ebx, 4
nop
nop
cmp ebx, ecx
nop
nop
nop
nop
nop
nop
jl 0x430030
nop
nop
add eax, 0xc
nop
nop
cmp dword [eax], 0
nop
nop
nop
jne 0x43001e
nop
nop
nop
nop
nop
nop
nop
nop
popal
jmp fcn.00401219

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

Disassembly:
pushal
nop
nop
nop
nop
nop
call 0x43300c
pop eax
nop
nop
nop
nop
nop
nop
add eax, 0x40a063
nop
sub eax, 0x40a009
mov ebx, dword [eax]
nop
nop
nop
nop
nop
nop
nop
mov ecx, dword [eax + 4]
nop
nop
mov edx, dword [eax + 8]
nop
nop
nop
nop
xor dword [ebx], edx
nop
add ebx, 4
nop
nop
nop
nop
nop
nop
nop
cmp ebx, ecx
jl 0x433030
nop
nop
nop
nop
nop
nop
add eax, 0xc
nop
nop
cmp dword [eax], 0
nop
nop
nop
nop
nop
jne 0x43301e
nop
nop
nop
nop
popal
nop
nop
jmp 0x431219
Function at 0x4041ce
Capabilities:
Encrypt data using rc4 prga

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x10
push esi
mov eax, dword [ebp + 8]
mov dword [ebp - 0xc], eax
mov ecx, dword [ebp + 0xc]
mov dword [ebp - 4], ecx
mov edx, dword [ebp + 0x10]
mov dword [ebp - 0x10], edx
mov al, byte [ebp + 0x14]
mov byte [ebp - 5], al
mov ecx, dword [ebp - 0x10]
mov edx, dword [ebp - 0x10]
sub edx, 1
mov dword [ebp - 0x10], edx
test ecx, ecx
je 0x40422e
mov eax, dword [ebp - 4]
xor ecx, ecx
mov cl, byte [eax]
mov edx, dword [ebp - 5]
and edx, 0xff
xor edx, ecx
mov byte [ebp - 5], dl
mov eax, dword [ebp - 4]
add eax, 1
mov dword [ebp - 4], eax
mov ecx, dword [ebp - 0xc]
mov dl, byte [ebp - 5]
mov byte [ecx], dl
mov eax, dword [ebp - 0xc]
add eax, 1
mov dword [ebp - 0xc], eax
jmp 0x4041ed
mov ecx, dword [ebp + 8]
mov dword [ebp - 0xc], ecx
mov edx, dword [ebp + 0x10]
mov dword [ebp - 0x10], edx
mov eax, dword [ebp + 0x14]
and eax, 0xff
sar eax, 3
and eax, 7
mov byte [ebp - 5], al
mov ecx, dword [ebp - 0x10]
mov edx, dword [ebp - 0x10]
sub edx, 1
mov dword [ebp - 0x10], edx
test ecx, ecx
je 0x4042bb
mov eax, dword [ebp - 0xc]
xor ecx, ecx
mov cl, byte [eax]
mov edx, ecx
mov ecx, dword [ebp - 5]
and ecx, 0xff
sar edx, cl
mov eax, dword [ebp - 0xc]
xor ecx, ecx
mov cl, byte [eax]
mov eax, ecx
mov ecx, dword [ebp - 5]
and ecx, 0xff
mov esi, 8
sub esi, ecx
mov ecx, esi
shl eax, cl
or edx, eax
mov byte [ebp - 5], dl
mov edx, dword [ebp - 0xc]
mov al, byte [ebp - 5]
mov byte [edx], al
mov ecx, dword [ebp - 0xc]
add ecx, 1
mov dword [ebp - 0xc], ecx
mov dl, byte [ebp - 5]
shr dl, 3
mov byte [ebp - 5], dl
mov eax, dword [ebp - 5]
and eax, 0xff
and eax, 7
mov byte [ebp - 5], al
jmp 0x40424b
pop esi
mov esp, ebp
pop ebp
ret
Function at 0x4042c0
Capabilities:
Encrypt data using rc4 prga

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x14
mov eax, dword [ebp + 0xc]
mov dword [ebp - 4], eax
mov ecx, dword [ebp + 8]
mov dword [ebp - 0xc], ecx
mov edx, dword [ebp + 0x10]
mov dword [ebp - 0x10], edx
mov eax, dword [ebp + 0x14]
and eax, 0xff
sar eax, 3
and eax, 7
mov byte [ebp - 5], al
mov ecx, dword [ebp - 0x10]
mov edx, dword [ebp - 0x10]
sub edx, 1
mov dword [ebp - 0x10], edx
test ecx, ecx
je 0x404366
mov eax, dword [ebp - 4]
mov cl, byte [eax]
mov byte [ebp - 0x11], cl
mov edx, dword [ebp - 4]
xor eax, eax
mov al, byte [edx]
mov ecx, dword [ebp - 5]
and ecx, 0xff
mov edx, 8
sub edx, ecx
mov ecx, edx
sar eax, cl
mov ecx, dword [ebp - 4]
xor edx, edx
mov dl, byte [ecx]
mov ecx, dword [ebp - 5]
and ecx, 0xff
shl edx, cl
or eax, edx
mov ecx, dword [ebp - 0xc]
mov byte [ecx], al
mov edx, dword [ebp - 0xc]
add edx, 1
mov dword [ebp - 0xc], edx
mov eax, dword [ebp - 4]
add eax, 1
mov dword [ebp - 4], eax
mov cl, byte [ebp - 0x11]
mov byte [ebp - 5], cl
mov dl, byte [ebp - 5]
shr dl, 3
mov byte [ebp - 5], dl
mov eax, dword [ebp - 5]
and eax, 0xff
and eax, 7
mov byte [ebp - 5], al
jmp 0x4042e9
mov ecx, dword [ebp + 8]
mov dword [ebp - 0xc], ecx
mov edx, dword [ebp + 0x10]
mov dword [ebp - 0x10], edx
mov al, byte [ebp + 0x14]
mov byte [ebp - 5], al
mov ecx, dword [ebp - 0x10]
mov edx, dword [ebp - 0x10]
sub edx, 1
mov dword [ebp - 0x10], edx
test ecx, ecx
je 0x4043b8
mov eax, dword [ebp - 0xc]
mov cl, byte [eax]
mov byte [ebp - 0x12], cl
mov edx, dword [ebp - 5]
and edx, 0xff
mov eax, dword [ebp - 0xc]
xor ecx, ecx
mov cl, byte [eax]
xor ecx, edx
mov edx, dword [ebp - 0xc]
mov byte [edx], cl
mov eax, dword [ebp - 0xc]
add eax, 1
mov dword [ebp - 0xc], eax
mov cl, byte [ebp - 0x12]
mov byte [ebp - 5], cl
jmp 0x404378
mov esp, ebp
pop ebp
ret

Function at 0x404422
Capabilities:
Hash data using crc32b

Disassembly:
push ebp
mov ebp, esp
sub esp, 0xc
mov dword [ebp - 4], 0
jmp 0x40443a
mov eax, dword [ebp - 4]
add eax, 1
mov dword [ebp - 4], eax
cmp dword [ebp - 4], 0x100
jge 0x40449e
mov ecx, dword [ebp - 4]
shl ecx, 0x18
mov dword [ebp - 8], ecx
mov dword [ebp - 0xc], 0
jmp 0x40445e
mov edx, dword [ebp - 0xc]
add edx, 1
mov dword [ebp - 0xc], edx
cmp dword [ebp - 0xc], 8
jge 0x404490
mov eax, dword [ebp - 8]
and eax, 0x80000000
test eax, eax
je 0x404486
mov ecx, dword [ebp - 8]
shl ecx, 1
mov dword [ebp - 8], ecx
mov edx, dword [ebp - 8]
xor edx, 0x4c11db7
mov dword [ebp - 8], edx
jmp 0x40448e
mov eax, dword [ebp - 8]
shl eax, 1
mov dword [ebp - 8], eax
jmp 0x404455
mov ecx, dword [ebp - 4]
mov edx, dword [ebp + 8]
mov eax, dword [ebp - 8]
mov dword [edx + ecx*4], eax
jmp 0x404431
mov esp, ebp
pop ebp
ret
Function at 0x405bb5
Capabilities:
Read file on windows

Disassembly:
push ebp
mov ebp, esp
push ecx
cmp dword [ebp + 8], 0
je 0x405c33
cmp dword [ebp + 8], 0x10
jge 0x405c33
mov eax, dword [ebp + 8]
cmp dword [eax*4 + 0x49f788], 0
je 0x405c2f
mov ecx, dword [ebp + 8]
imul ecx, ecx, 0xc
mov edx, dword [ebp + 8]
mov eax, dword [edx*4 + 0x49f748]
cmp eax, dword [ecx + 0x481580]
jb 0x405bee
xor eax, eax
jmp 0x405c56
mov ecx, dword [ebp + 0x10]
push ecx
mov edx, dword [ebp + 8]
mov eax, dword [edx*4 + 0x49f788]
mov ecx, dword [ebp + 8]
add eax, dword [ecx*4 + 0x49f748]
push eax
mov edx, dword [ebp + 0xc]
push edx
call fcn.00420a00
add esp, 0xc
mov eax, dword [ebp + 8]
mov ecx, dword [eax*4 + 0x49f748]
add ecx, dword [ebp + 0x10]
mov edx, dword [ebp + 8]
mov dword [edx*4 + 0x49f748], ecx
mov eax, dword [ebp + 0x10]
jmp 0x405c56
xor eax, eax
jmp 0x405c56
push 0
lea eax, [ebp - 4]
push eax
mov ecx, dword [ebp + 0x10]
push ecx
mov edx, dword [ebp + 0xc]
push edx
mov eax, dword [ebp + 8]
push eax
call dword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
jne 0x405c53
xor eax, eax
jmp 0x405c56
mov eax, dword [ebp - 4]
mov esp, ebp
pop ebp
ret

Function at 0x405c5a
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
push ecx
cmp dword [ebp + 8], 0
je 0x405cd8
cmp dword [ebp + 8], 0x10
jge 0x405cd8
mov eax, dword [ebp + 8]
cmp dword [eax*4 + 0x49f788], 0
je 0x405cd4
mov ecx, dword [ebp + 8]
imul ecx, ecx, 0xc
mov edx, dword [ebp + 8]
mov eax, dword [edx*4 + 0x49f748]
cmp eax, dword [ecx + 0x481580]
jb 0x405c93
xor eax, eax
jmp 0x405cfb
mov ecx, dword [ebp + 0x10]
push ecx
mov edx, dword [ebp + 0xc]
push edx
mov eax, dword [ebp + 8]
mov ecx, dword [eax*4 + 0x49f788]
mov edx, dword [ebp + 8]
add ecx, dword [edx*4 + 0x49f748]
push ecx
call fcn.00420a00
add esp, 0xc
mov eax, dword [ebp + 8]
mov ecx, dword [eax*4 + 0x49f748]
add ecx, dword [ebp + 0x10]
mov edx, dword [ebp + 8]
mov dword [edx*4 + 0x49f748], ecx
mov eax, dword [ebp + 0x10]
jmp 0x405cfb
xor eax, eax
jmp 0x405cfb
push 0
lea eax, [ebp - 4]
push eax
mov ecx, dword [ebp + 0x10]
push ecx
mov edx, dword [ebp + 0xc]
push edx
mov eax, dword [ebp + 8]
push eax
call dword [sym.imp.KERNEL32.dll_WriteFile]
test eax, eax
jne 0x405cf8
xor eax, eax
jmp 0x405cfb
mov eax, dword [ebp - 4]
mov esp, ebp
pop ebp
ret

Function at 0x405d24
Capabilities:
Get file attributes

Disassembly:
push ebp
mov ebp, esp
push ecx
mov dword [ebp - 4], 1
mov eax, dword [ebp - 4]
imul eax, eax, 0xc
cmp dword [eax + 0x48157c], 0
je 0x405d6b
mov ecx, dword [ebp - 4]
imul ecx, ecx, 0xc
mov edx, dword [ecx + 0x481578]
push edx
mov eax, dword [ebp + 8]
push eax
call fcn.0042b7e0
add esp, 8
test eax, eax
jne 0x405d60
xor ax, ax
jmp 0x405d75
mov ecx, dword [ebp - 4]
add ecx, 1
mov dword [ebp - 4], ecx
jmp 0x405d2f
mov edx, dword [ebp + 8]
push edx
call dword [sym.imp.KERNEL32.dll_GetFileAttributesA]
mov esp, ebp
pop ebp
ret
Function at 0x409b9e
Capabilities:
Hide graphical window

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x64
cmp dword [0x49fc5c], 0
je 0x409bef
push 5
mov eax, dword [0x49fc5c]
push eax
call dword [sym.imp.USER32.dll_ShowWindow]
push 0
push 0
push 5
mov ecx, dword [0x49fc5c]
push ecx
call dword [sym.imp.USER32.dll_SendMessageA]
lea edx, [ebp - 0x24]
push edx
mov eax, dword [0x49fc5c]
push eax
call dword [sym.imp.USER32.dll_GetWindowRect]
mov ecx, dword [ebp - 0x18]
sub ecx, dword [ebp - 0x20]
mov dword [0x49fc60], ecx
jmp 0x409d1f
push 1
mov edx, dword [0x4dc420]
push edx
push 0
push 0x40000003
call dword [sym.imp.COMCTL32.dll_CreateStatusWindowA]
mov dword [0x49fc5c], eax
push 5
mov eax, dword [0x49fc5c]
push eax
call dword [sym.imp.USER32.dll_ShowWindow]
push 0
push 0
push 5
mov ecx, dword [0x49fc5c]
push ecx
call dword [sym.imp.USER32.dll_SendMessageA]
lea edx, [ebp - 0x24]
push edx
mov eax, dword [0x49fc5c]
push eax
call dword [sym.imp.USER32.dll_GetWindowRect]
mov ecx, dword [ebp - 0x18]
sub ecx, dword [ebp - 0x20]
mov dword [0x49fc60], ecx
mov edx, dword [0x49fc5c]
push edx
call dword [sym.imp.USER32.dll_GetDC]
mov dword [ebp - 0x64], eax
lea eax, [ebp - 0x5c]
push eax
mov ecx, dword [ebp - 0x64]
push ecx
call dword [sym.imp.GDI32.dll_GetTextMetricsA]
mov edx, dword [ebp - 0x64]
push edx
mov eax, dword [0x49fc5c]
push eax
call dword [sym.imp.USER32.dll_ReleaseDC]
mov ecx, dword [ebp - 0x48]
mov dword [ebp - 0x60], ecx
lea edx, [ebp - 0x24]
push edx
mov eax, dword [0x4dc420]
push eax
call dword [sym.imp.USER32.dll_GetWindowRect]
mov ecx, dword [ebp - 0x1c]
sub ecx, dword [ebp - 0x24]
mov dword [ebp - 4], ecx
mov edx, dword [ebp - 0x60]
lea eax, [edx*4 + 0x16]
mov ecx, dword [ebp - 4]
sub ecx, eax
mov dword [ebp - 8], ecx
mov edx, dword [ebp - 0x60]
lea eax, [edx*4 + 0x16]
mov ecx, dword [ebp - 8]
sub ecx, eax
mov dword [ebp - 0xc], ecx
mov edx, dword [ebp - 0x60]
lea eax, [edx*4 + 0x24]
mov ecx, dword [ebp - 0xc]
sub ecx, eax
mov dword [ebp - 0x10], ecx
mov edx, dword [ebp - 0x60]
lea eax, [edx*4 + 0x24]
mov ecx, dword [ebp - 0x10]
sub ecx, eax
mov dword [ebp - 0x14], ecx
lea edx, [ebp - 0x14]
push edx
push 5
push 0x404
mov eax, dword [0x49fc5c]
push eax
call dword [sym.imp.USER32.dll_SendMessageA]
mov dword [0x57ede4], 0xffffffff
mov ecx, dword [0x57ede4]
mov dword [0x57ede0], ecx
mov edx, dword [0x57ede0]
mov dword [0x57ede8], edx
mov eax, dword [0x57ede8]
mov dword [0x57edec], eax
mov esp, ebp
pop ebp
ret

Function at 0x409d23
Capabilities:
Hide graphical window

Disassembly:
push ebp
mov ebp, esp
mov eax, dword [0x49fc5c]
push eax
call dword [sym.imp.USER32.dll_IsWindowVisible]
test eax, eax
jne 0x409d38
jmp 0x409d51
push 0
mov ecx, dword [0x49fc5c]
push ecx
call dword [sym.imp.USER32.dll_ShowWindow]
mov dword [0x49fc60], 0
pop ebp
ret
Function at 0x40bfe0
Capabilities:
Check if file exists

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x14
mov dword [ebp - 0x10], ecx
mov ecx, dword [ebp - 0x10]
call fcn.0040c26e
push 0x104
mov eax, dword [ebp + 8]
push eax
mov ecx, dword [ebp - 0x10]
add ecx, 0x14
push ecx
call fcn.00420900
add esp, 0xc
mov edx, dword [ebp + 0xc]
and edx, 2
neg edx
sbb edx, edx
and edx, 0xc0000000
add edx, 0x40000000
or edx, 0x80000000
mov dword [ebp - 4], edx
mov eax, dword [ebp + 0xc]
and eax, 2
neg eax
sbb eax, eax
neg eax
mov dword [ebp - 0xc], eax
mov ecx, dword [ebp + 0xc]
and ecx, 4
neg ecx
sbb ecx, ecx
add ecx, 3
mov dword [ebp - 8], ecx
push 0
push 0
mov edx, dword [ebp - 8]
push edx
push 0
mov eax, dword [ebp - 0xc]
push eax
mov ecx, dword [ebp - 4]
push ecx
mov edx, dword [ebp + 8]
push edx
call dword [sym.imp.KERNEL32.dll_CreateFileA]
mov ecx, dword [ebp - 0x10]
mov dword [ecx + 4], eax
mov edx, dword [ebp + 0xc]
and edx, 2
mov eax, dword [ebp - 0x10]
xor ecx, ecx
cmp dword [eax + 4], 0xffffffff
setne cl
or edx, ecx
mov eax, dword [ebp - 0x10]
mov dword [eax + 8], edx
mov ecx, dword [ebp - 0x10]
mov edx, dword [ecx + 8]
and edx, 1
test edx, edx
jne 0x40c0c9
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov dword [ebp - 0x14], eax
cmp dword [ebp - 0x14], 2
je 0x40c0a7
cmp dword [ebp - 0x14], 0x20
je 0x40c0b3
jmp 0x40c0bf
mov eax, dword [ebp - 0x10]
mov dword [eax + 0x10], 1
jmp 0x40c0c9
mov ecx, dword [ebp - 0x10]
mov dword [ecx + 0x10], 2
jmp 0x40c0c9
mov edx, dword [ebp - 0x10]
mov dword [edx + 0x10], 0xffffffff
push 0
mov ecx, dword [ebp - 0x10]
call fcn.0040e8c0
mov eax, dword [ebp - 0x10]
mov eax, dword [eax + 8]
and eax, 1
neg eax
sbb eax, eax
neg eax
mov esp, ebp
pop ebp
ret 8