joyce8/EMBER2024-capa huggingface dataset:
Function at 0x453197
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 0x453234
push ebx
push esi
call fcn.00453153
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.00453090
add esp, 0x24
mov dword [ebp - 4], eax
test eax, eax
jne 0x4531e1
push esi
call dword [sym.imp.KERNEL32.dll_FreeEnvironmentStringsW]
xor eax, eax
jmp 0x453233
push edi
push eax
call fcn.00447c69
mov edi, eax
pop ecx
push ebx
test edi, edi
jne 0x453201
call fcn.00447c2f
pop ecx
push esi
call dword [sym.imp.KERNEL32.dll_FreeEnvironmentStringsW]
xor eax, eax
jmp 0x453232
push ebx
push dword [ebp - 4]
push edi
push dword [ebp - 8]
push esi
push ebx
push ebx
call fcn.00453090
add esp, 0x20
test eax, eax
jne 0x453220
push edi
call fcn.00447c2f
jmp 0x453228
push ebx
call fcn.00447c2f
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 0x453237
Capabilities:
Query environment variable

Disassembly:
mov edi, edi
push esi
call dword [sym.imp.KERNEL32.dll_GetEnvironmentStringsW]
mov esi, eax
test esi, esi
jne 0x453248
pop esi
ret
push ebx
push edi
push esi
call fcn.00453153
mov ebx, eax
sub ebx, esi
and ebx, 0xfffffffe
push ebx
call fcn.00447c69
mov edi, eax
pop ecx
pop ecx
test edi, edi
je 0x453270
push ebx
push esi
push edi
call fcn.00421e80
add esp, 0xc
push 0
call fcn.00447c2f
pop ecx
push esi
call dword [sym.imp.KERNEL32.dll_FreeEnvironmentStringsW]
mov eax, edi
pop edi
pop ebx
pop esi
ret

Function at 0x453b5f
Capabilities:
Set environment variable

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
pop ebp
jmp fcn.004534e5

Function at 0x456a50
Capabilities:
Get geographical location

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push ecx
push esi
push edi
call fcn.00447932
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 0x456abf
cmp esi, dword [ebp - 4]
je 0x456aba
cmp dword [ebp + 0xc], 0
je 0x456aba
mov esi, dword [edi + 0x50]
lea ecx, [esi + 2]
mov ax, word [esi]
add esi, 2
test ax, ax
jne 0x456a97
push dword [edi + 0x50]
sub esi, ecx
sar esi, 1
call fcn.004565a2
pop ecx
xor ecx, ecx
cmp eax, esi
setne cl
mov eax, ecx
jmp 0x456ac1
xor eax, eax
inc eax
jmp 0x456ac1
xor eax, eax
pop edi
pop esi
leave
ret
Function at 0x456b26
Capabilities:
Get geographical location

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x18
mov eax, dword [0x47b0c0]
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.00447932
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.00447932
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 0x456b9d
cmp word [ecx], dx
je 0x456b9d
mov eax, dword [0x470a04]
push edi
dec eax
push eax
push 0x4708f0
call fcn.00456ac5
mov eax, dword [ebp - 0x14]
add esp, 0xc
xor edx, edx
mov dword [ebp - 0x10], edx
mov eax, dword [eax]
test eax, eax
je 0x456c10
cmp word [eax], dx
je 0x456c10
mov eax, dword [edi]
test eax, eax
je 0x456bc1
cmp word [eax], dx
je 0x456bc1
lea eax, [ebp - 0x10]
push eax
call fcn.004564a8
jmp 0x456bca
lea eax, [ebp - 0x10]
push eax
call fcn.00456543
cmp dword [ebp - 0x10], 0
pop ecx
jne 0x456c3a
mov eax, dword [0x4708ec]
push dword [ebp - 0x14]
dec eax
push eax
push 0x4705e0
call fcn.00456ac5
add esp, 0xc
test al, al
je 0x456c3a
mov eax, dword [edi]
xor edi, edi
test eax, eax
je 0x456c05
cmp word [eax], di
je 0x456c05
lea eax, [ebp - 0x10]
push eax
call fcn.004564a8
pop ecx
jmp 0x456c3c
lea eax, [ebp - 0x10]
push eax
call fcn.00456543
jmp 0x456c02
mov eax, dword [edi]
test eax, eax
je 0x456c27
cmp word [eax], dx
je 0x456c27
lea eax, [ebp - 0x10]
push eax
call fcn.0045643f
pop ecx
jmp 0x456c3a
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 0x456d05
lea eax, [ebp - 0x10]
push eax
lea eax, [esi + 0x100]
neg esi
sbb esi, esi
and esi, eax
push esi
call fcn.0045694a
mov esi, eax
pop ecx
pop ecx
test esi, esi
je 0x456d05
movzx ecx, si
push ecx
call dword [sym.imp.KERNEL32.dll_IsValidCodePage]
test eax, eax
je 0x456d05
push 1
push dword [ebp - 0xc]
call dword [sym.imp.KERNEL32.dll_IsValidLocale]
test eax, eax
je 0x456d05
mov eax, dword [ebp - 0x18]
test eax, eax
je 0x456c92
mov dword [eax], esi
mov eax, dword [ebp - 0x14]
push edi
push 0x55
add eax, 0x250
push eax
push dword [ebp - 0xc]
call fcn.0044b0d9
test ebx, ebx
je 0x456d00
push edi
push 0x55
lea eax, [ebx + 0x120]
push eax
push dword [ebp - 0xc]
call fcn.0044b0d9
push 0x40
push ebx
push 0x1001
push dword [ebp - 0xc]
call dword [sym.imp.KERNEL32.dll_GetLocaleInfoW]
test eax, eax
je 0x456d05
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 0x456d05
push 0xa
push 0x10
lea ecx, [ebx + 0x100]
push ecx
push esi
call fcn.00461253
add esp, 0x10
xor eax, eax
inc eax
jmp 0x456d07
xor eax, eax
mov ecx, dword [ebp - 4]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.0041836a
leave
ret
Function at 0x462cf9
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]
mov edi, dword [ebp + 0x14]
push dword [ebp + 0xc]
push ebx
call fcn.00462b1d
mov eax, dword [ebp - 0x2c]
and eax, dword [ebp - 0x28]
cmp eax, 0xffffffff
je 0x462e68
mov eax, dword [ebp - 0x24]
and eax, dword [ebp - 0x20]
cmp eax, 0xffffffff
je 0x462e68
mov ecx, dword [ebp - 0x18]
mov eax, dword [ebp - 0x1c]
mov dword [ebp - 8], ecx
mov dword [ebp - 4], eax
test ecx, ecx
jl 0x462e1d
jg 0x462d55
test eax, eax
je 0x462e13
push 1
push 0x1000
call fcn.00450e2b
mov esi, eax
pop ecx
pop ecx
test esi, esi
jne 0x462d78
push 0xc
pop ebx
mov byte [edi + 0x1c], 1
mov dword [edi + 0x18], ebx
jmp 0x462e0a
push 0x8000
push ebx
call fcn.004420d2
pop ecx
pop ecx
mov ecx, dword [ebp - 0x1c]
mov dword [ebp - 0xc], eax
mov eax, dword [ebp - 0x18]
test eax, eax
jl 0x462da1
jg 0x462d9c
cmp ecx, 0x1000
jb 0x462da1
mov ecx, 0x1000
push edi
push ecx
push esi
push ebx
call fcn.0044e3ad
add esp, 0x10
cmp eax, 0xffffffff
je 0x462de6
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 0x462d9c
jl 0x462dcd
test ecx, ecx
jne 0x462d8e
push dword [ebp - 0xc]
push ebx
call fcn.004420d2
push esi
call fcn.00447c2f
add esp, 0xc
xor ebx, ebx
jmp 0x462e76
cmp byte [edi + 0x24], 0
je 0x462dfd
cmp dword [edi + 0x20], 5
jne 0x462dfd
mov byte [edi + 0x1c], 1
mov dword [edi + 0x18], 0xd
cmp byte [edi + 0x1c], 0
je 0x462e08
mov ebx, dword [edi + 0x18]
jmp 0x462e0a
xor ebx, ebx
push esi
call fcn.00447c2f
pop ecx
jmp 0x462e76
test ecx, ecx
jg 0x462ddf
jl 0x462e1d
test eax, eax
jae 0x462ddf
push 0
push dword [ebp + 0x10]
push dword [ebp + 0xc]
push ebx
call fcn.00450132
and eax, edx
add esp, 0x10
cmp eax, 0xffffffff
jne 0x462e3d
cmp byte [edi + 0x1c], 0
je 0x462ddf
jmp 0x462e6e
push ebx
call fcn.00453f91
pop ecx
push eax
call dword [sym.imp.KERNEL32.dll_SetEndOfFile]
test eax, eax
jne 0x462ddf
call dword [sym.imp.KERNEL32.dll_GetLastError]
push 0xd
mov byte [edi + 0x24], 1
mov dword [edi + 0x20], eax
pop ebx
mov byte [edi + 0x1c], 1
mov dword [edi + 0x18], ebx
jmp 0x462e76
cmp byte [edi + 0x1c], 0
je 0x462e73
mov ebx, dword [edi + 0x18]
jmp 0x462e76
push 0x16
pop ebx
push 0
push dword [ebp - 0x28]
push dword [ebp - 0x2c]
push dword [ebp - 0x14]
call fcn.00450132
add esp, 0x10
mov eax, ebx
pop edi
pop esi
pop ebx
leave
ret

Function at 0x464c10
Capabilities:
Parse pe header

Disassembly:
push ebp
mov ebp, esp
mov eax, dword [ebp + 8]
mov ecx, 0x5a4d
cmp word [eax], cx
jne 0x464c3d
mov ecx, dword [eax + 0x3c]
add ecx, eax
cmp dword [ecx], 0x4550
jne 0x464c3d
mov edx, 0x10b
xor eax, eax
cmp word [ecx + 0x18], dx
sete al
pop ebp
ret
xor eax, eax
pop ebp
ret
Function at 0x430000
Capabilities:
Encode data using xor
Packed with generic packer

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

Function at 0x103fc058
Capabilities:
Decompress data using aplib

Disassembly:
call fcn.103fc1a8
push ebx
mov ebx, esp
push ebx
mov esi, dword [ebx + 8]
mov edi, dword [ebx + 0x10]
cld
mov dl, 0x80
mov al, byte [esi]
inc esi
mov byte [edi], al
inc edi
mov ebx, 2
add dl, dl
jne 0x103fc07e
mov dl, byte [esi]
inc esi
adc dl, dl
jae 0x103fc06a
add dl, dl
jne 0x103fc089
mov dl, byte [esi]
inc esi
adc dl, dl
jae 0x103fc0dc
xor eax, eax
add dl, dl
jne 0x103fc096
mov dl, byte [esi]
inc esi
adc dl, dl
jae 0x103fc17d
add dl, dl
jne 0x103fc0a5
mov dl, byte [esi]
inc esi
adc dl, dl
adc eax, eax
add dl, dl
jne 0x103fc0b0
mov dl, byte [esi]
inc esi
adc dl, dl
adc eax, eax
add dl, dl
jne 0x103fc0bb
mov dl, byte [esi]
inc esi
adc dl, dl
adc eax, eax
add dl, dl
jne 0x103fc0c6
mov dl, byte [esi]
inc esi
adc dl, dl
adc eax, eax
je 0x103fc0d2
push edi
mov eax, eax
sub edi, eax
mov al, byte [edi]
pop edi
mov byte [edi], al
inc edi
mov ebx, 2
jmp 0x103fc075
mov eax, 1
add dl, dl
jne 0x103fc0ea
mov dl, byte [esi]
inc esi
adc dl, dl
adc eax, eax
add dl, dl
jne 0x103fc0f5
mov dl, byte [esi]
inc esi
adc dl, dl
jb 0x103fc0e1
sub eax, ebx
mov ebx, 1
jne 0x103fc128
mov ecx, 1
add dl, dl
jne 0x103fc10e
mov dl, byte [esi]
inc esi
adc dl, dl
adc ecx, ecx
add dl, dl
jne 0x103fc119
mov dl, byte [esi]
inc esi
adc dl, dl
jb 0x103fc105
push esi
mov esi, edi
sub esi, ebp
rep movsb byte es:[edi], byte [esi]
pop esi
jmp 0x103fc075
dec eax
shl eax, 8
mov al, byte [esi]
inc esi
mov ebp, eax
mov ecx, 1
add dl, dl
jne 0x103fc13f
mov dl, byte [esi]
inc esi
adc dl, dl
adc ecx, ecx
add dl, dl
jne 0x103fc14a
mov dl, byte [esi]
inc esi
adc dl, dl
jb 0x103fc136
cmp eax, 0x7d00
jae 0x103fc16d
cmp eax, 0x500
jb 0x103fc168
inc ecx
push esi
mov esi, edi
sub esi, eax
rep movsb byte es:[edi], byte [esi]
pop esi
jmp 0x103fc075
cmp eax, 0x7f
ja 0x103fc170
add ecx, 2
push esi
mov esi, edi
sub esi, eax
rep movsb byte es:[edi], byte [esi]
pop esi
jmp 0x103fc075
mov al, byte [esi]
inc esi
xor ecx, ecx
shr al, 1
je 0x103fc19e
adc ecx, 2
mov ebp, eax
push esi
mov esi, edi
sub esi, eax
rep movsb byte es:[edi], byte [esi]
pop esi
mov ebx, 1
jmp 0x103fc075
pop ebx
sub edi, dword [ebx + 0x10]
mov eax, edi
pop ebx
ret 0x10
Function at 0x401780
Capabilities:
Write file on windows

Disassembly:
push ebx
sub esp, 0x18
mov dword [esp], 2
lea ebx, [esp + 0x24]
call fcn.00407850
mov dword [esp + 8], 0x1b
mov dword [esp + 0xc], eax
mov dword [esp + 4], 1
mov dword [esp], str.Mingw_w64_runtime_failure:_n
call sub.msvcrt.dll_fwrite
mov dword [esp], 2
call fcn.00407850
mov edx, dword [esp + 0x20]
mov dword [esp + 8], ebx
mov dword [esp], eax
mov dword [esp + 4], edx
call sub.msvcrt.dll_vfprintf
call sub.msvcrt.dll_abort
lea esi, [esi]

Function at 0x4017e0
Capabilities:
Allocate or change rwx memory

Disassembly:
push edi
push esi
push ebx
mov ebx, eax
sub esp, 0x30
mov esi, dword [0x40d068]
test esi, esi
jle 0x401900
mov eax, dword [0x40d06c]
xor ecx, ecx
add eax, 0xc
mov edx, dword [eax]
cmp ebx, edx
jb 0x401814
mov edi, dword [eax + 4]
add edx, dword [edi + 8]
cmp ebx, edx
jb 0x401897
add ecx, 1
add eax, 0x14
cmp ecx, esi
jne 0x401800
mov dword [esp], ebx
call fcn.004021d0
mov edi, eax
test eax, eax
je 0x401927
mov eax, dword [0x40d06c]
lea ebx, [esi + esi*4]
shl ebx, 2
add eax, ebx
mov dword [eax + 0x10], edi
mov dword [eax], 0
call fcn.00402310
mov edx, dword [0x40d06c]
add eax, dword [edi + 0xc]
mov dword [edx + ebx + 0xc], eax
lea edx, [esp + 0x14]
mov dword [esp + 8], 0x1c
mov dword [esp + 4], edx
mov dword [esp], eax
call dword [sym.imp.KERNEL32.dll_VirtualQuery]
sub esp, 0xc
test eax, eax
je 0x401907
mov eax, dword [esp + 0x28]
lea edx, [eax - 0x40]
and edx, 0xffffffbf
je 0x401890
lea edx, [eax - 4]
and edx, 0xfffffffb
jne 0x4018a0
add dword [0x40d068], 1
add esp, 0x30
pop ebx
pop esi
pop edi
ret
cmp eax, 2
mov edx, 4
mov eax, 0x40
mov ecx, dword [esp + 0x20]
cmove eax, edx
mov edx, dword [esp + 0x14]
add ebx, dword [0x40d06c]
mov dword [ebx + 8], ecx
mov dword [ebx + 4], edx
mov dword [esp + 0xc], ebx
mov dword [esp + 8], eax
mov dword [esp + 4], ecx
mov dword [esp], edx
call dword [sym.imp.KERNEL32.dll_VirtualProtect]
sub esp, 0x10
test eax, eax
jne 0x401890
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov dword [esp], str.__VirtualProtect_failed_with_code_0x_x
mov dword [esp + 4], eax
call fcn.00401780
lea esi, [esi]
lea esi, [esi]
xor esi, esi
jmp 0x40181e
mov eax, dword [0x40d06c]
mov eax, dword [eax + ebx + 0xc]
mov dword [esp + 8], eax
mov eax, dword [edi + 8]
mov dword [esp], str.__VirtualQuery_failed_for__d_bytes_at_address__p
mov dword [esp + 4], eax
call fcn.00401780
mov dword [esp + 4], ebx
mov dword [esp], str.Address__p_has_no_image_section
call fcn.00401780
lea esi, [esi]
nop
Function at 0x401e40
Capabilities:
Get thread local storage value

Disassembly:
push ebp
push edi
push esi
push ebx
sub esp, 0x1c
mov dword [esp], 0x40d084
call dword [sym.imp.KERNEL32.dll_EnterCriticalSection]
mov ebx, dword [0x40d07c]
sub esp, 4
test ebx, ebx
je 0x401e95
mov ebp, dword [sym.imp.KERNEL32.dll_TlsGetValue]
mov edi, dword [sym.imp.KERNEL32.dll_GetLastError]
lea esi, [esi]
mov eax, dword [ebx]
mov dword [esp], eax
call ebp
sub esp, 4
mov esi, eax
call edi
test eax, eax
jne 0x401e8e
test esi, esi
je 0x401e8e
mov eax, dword [ebx + 4]
mov dword [esp], esi
call eax
mov ebx, dword [ebx + 8]
test ebx, ebx
jne 0x401e70
mov dword [esp], 0x40d084
call dword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
sub esp, 4
add esp, 0x1c
pop ebx
pop esi
pop edi
pop ebp
ret

Function at 0x4021d0
Capabilities:
Parse pe header

Disassembly:
xor eax, eax
cmp word [0x400000], 0x5a4d
jne 0x4021f5
mov ecx, dword [0x40003c]
cmp dword [ecx + 0x400000], 0x4550
lea edx, [ecx + 0x400000]
je 0x402200
ret
cmp word [ecx + 0x400018], 0x10b
jne 0x4021f5
push esi
movzx eax, word [ecx + 0x400014]
push ebx
movzx esi, word [ecx + 0x400006]
mov ebx, dword [esp + 0xc]
lea eax, [edx + eax + 0x18]
sub ebx, 0x400000
test si, si
je 0x402248
xor ecx, ecx
mov edx, dword [eax + 0xc]
cmp ebx, edx
jb 0x40223e
add edx, dword [eax + 8]
cmp ebx, edx
jb 0x40224a
add ecx, 1
add eax, 0x28
cmp ecx, esi
jne 0x402230
xor eax, eax
pop ebx
pop esi
ret
Function at 0x41e2c0
Capabilities:
Packed with generic packer

Disassembly:
pushal
mov esi, 0x41d015
lea edi, [esi - 0x1c015]
push edi
jmp 0x41e2da
mov al, byte [esi]
inc esi
mov byte [edi], al
inc edi
add ebx, ebx
jne 0x41e2e1
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
jb 0x41e2d0
mov eax, 1
add ebx, ebx
jne 0x41e2f3
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc eax, eax
add ebx, ebx
jae 0x41e2e8
jne 0x41e304
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
jae 0x41e2e8
xor ecx, ecx
sub eax, 3
jb 0x41e318
shl eax, 8
mov al, byte [esi]
inc esi
xor eax, 0xffffffff
je 0x41e38a
mov ebp, eax
add ebx, ebx
jne 0x41e323
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc ecx, ecx
add ebx, ebx
jne 0x41e330
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc ecx, ecx
jne 0x41e354
inc ecx
add ebx, ebx
jne 0x41e340
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc ecx, ecx
add ebx, ebx
jae 0x41e335
jne 0x41e351
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
jae 0x41e335
add ecx, 2
cmp ebp, 0xfffff300
adc ecx, 1
lea edx, [edi + ebp]
cmp ebp, 0xfffffffc
jbe 0x41e374
mov al, byte [edx]
inc edx
mov byte [edi], al
inc edi
dec ecx
jne 0x41e365
jmp 0x41e2d6
mov eax, dword [edx]
add edx, 4
mov dword [edi], eax
add edi, 4
sub ecx, 4
ja 0x41e374
add edi, ecx
jmp 0x41e2d6
pop esi
mov edi, esi
mov ecx, 0x61
mov al, byte [edi]
inc edi
sub al, 0xe8
cmp al, 1
ja 0x41e392
cmp byte [edi], 1
jne 0x41e392
mov eax, dword [edi]
mov bl, byte [edi + 4]
shr ax, 8
rol eax, 0x10
xchg ah, al
sub eax, edi
sub bl, 0xe8
add eax, esi
mov dword [edi], eax
add edi, 5
mov al, bl
loop 0x41e397
lea edi, [esi + 0x1c000]
mov eax, dword [edi]
or eax, eax
je 0x41e406
mov ebx, dword [edi + 4]
lea eax, [eax + esi + 0x332c8]
add ebx, esi
push eax
add edi, 8
call dword [esi + 0x33304]
xchg ebp, eax
mov al, byte [edi]
inc edi
or al, al
je 0x41e3c4
mov ecx, edi
push edi
dec eax
repne scasb al, byte es:[edi]
push ebp
call dword [esi + 0x33308]
or eax, eax
je 0x41e400
mov dword [ebx], eax
add ebx, 4
jmp 0x41e3e1
call dword [esi + 0x33318]
mov ebp, dword [esi + 0x3330c]
lea edi, [esi - 0x1000]
mov ebx, 0x1000
push eax
push esp
push 4
push ebx
push edi
call ebp
lea eax, [edi + 0x19f]
and byte [eax], 0x7f
and byte [eax + 0x28], 0x7f
pop eax
push eax
push esp
push eax
push ebx
push edi
call ebp
pop eax
popal
lea eax, [esp - 0x80]
push 0
cmp esp, eax
jne 0x41e43a
sub esp, 0xffffff80
jmp 0x401240
Function at 0x10003ebb
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x24
push ebx
push esi
mov esi, ecx
xor ebx, ebx
push edi
cmp dword [esi + 0x38], ebx
je 0x10003f08
cmp byte [esi + 0x3d], bl
je 0x10003f08
mov eax, dword [esi]
push 0xffffffffffffffff
call dword [eax + 0xc]
cmp eax, 0xffffffff
je 0x10003f37
mov ecx, dword [esi + 0x38]
lea eax, [ebp - 4]
push eax
lea eax, [ebp - 4]
push eax
mov edx, dword [ecx]
lea eax, [ebp - 0x24]
push eax
lea eax, [esi + 0x40]
push eax
call dword [edx + 0x20]
sub eax, ebx
je 0x10003f0f
sub eax, 1
je 0x10003f12
dec eax
sub eax, 1
jne 0x10003f37
mov byte [esi + 0x3d], bl
mov al, 1
pop edi
pop esi
pop ebx
leave
ret
mov byte [esi + 0x3d], bl
mov edi, dword [ebp - 4]
lea eax, [ebp - 0x24]
sub edi, eax
je 0x10003f2f
push dword [esi + 0x4c]
push edi
push 1
push eax
call fcn.100652fc
add esp, 0x10
cmp edi, eax
jne 0x10003f37
cmp byte [esi + 0x3d], bl
sete al
jmp 0x10003f0a
xor al, al
jmp 0x10003f0a

Function at 0x10005b5b
Capabilities:
Write file on windows

Disassembly:
sub esp, 0x28
push ebx
mov ebx, dword [esp + 0x30]
push esi
push edi
or edi, 0xffffffff
mov esi, ecx
cmp ebx, edi
jne 0x10005b75
xor eax, eax
jmp 0x10005c45
mov eax, dword [esi + 0x20]
push ebp
mov ecx, dword [eax]
test ecx, ecx
je 0x10005ba3
mov edx, dword [esi + 0x30]
mov ebp, dword [edx]
lea eax, [ecx + ebp]
cmp ecx, eax
jae 0x10005ba3
lea ecx, [ebp - 1]
mov eax, ebx
mov dword [edx], ecx
mov edx, dword [esi + 0x20]
mov esi, dword [edx]
lea ecx, [esi + 1]
mov dword [edx], ecx
mov byte [esi], bl
jmp 0x10005c44
cmp dword [esi + 0x4c], 0
je 0x10005c42
mov ecx, esi
call fcn.100044dc
mov ecx, dword [esi + 0x38]
mov al, bl
test ecx, ecx
jne 0x10005bcf
push dword [esi + 0x4c]
push eax
call fcn.10001d8c
test al, al
pop ecx
pop ecx
cmovne edi, ebx
jmp 0x10005c42
mov byte [esp + 0x10], al
lea eax, [esp + 0x3c]
mov edx, dword [ecx]
push eax
lea eax, [esp + 0x3c]
push eax
lea eax, [esp + 0x20]
push eax
lea eax, [esp + 0x20]
push eax
lea eax, [esp + 0x21]
push eax
lea eax, [esp + 0x24]
push eax
lea eax, [esi + 0x40]
push eax
call dword [edx + 0x1c]
sub eax, 0
je 0x10005c13
sub eax, 1
je 0x10005c13
dec eax
sub eax, 1
jne 0x10005c42
push dword [esi + 0x4c]
push dword [esp + 0x14]
jmp 0x10005bc1
mov ebp, dword [esp + 0x3c]
lea eax, [esp + 0x18]
sub ebp, eax
je 0x10005c32
push dword [esi + 0x4c]
push ebp
push 1
push eax
call fcn.100652fc
add esp, 0x10
cmp ebp, eax
jne 0x10005c42
lea eax, [esp + 0x10]
mov byte [esi + 0x3d], 1
cmp dword [esp + 0x14], eax
mov eax, ebx
jne 0x10005c44
mov eax, edi
pop ebp
pop edi
pop esi
pop ebx
add esp, 0x28
ret 4
Function at 0x10007079
Capabilities:
Read file on windows

Disassembly:
push ebp
push esi
mov esi, dword [esp + 0x14]
mov ebp, ecx
push edi
mov edi, dword [esp + 0x14]
test esi, esi
jg 0x10007099
jl 0x10007090
test edi, edi
jne 0x10007099
xor eax, eax
xor edx, edx
jmp 0x10007160
cmp dword [ebp + 0x38], 0
je 0x100070af
push esi
push edi
push dword [esp + 0x18]
call fcn.1000716a
jmp 0x10007160
mov eax, dword [ebp + 0x1c]
push ebx
mov ebx, edi
mov ecx, dword [eax]
test ecx, ecx
je 0x100070f3
mov eax, dword [ebp + 0x2c]
cmp dword [eax], 0
jbe 0x100070f3
cmp dword [eax], edi
mov esi, edi
mov ebx, dword [esp + 0x14]
cmovb esi, dword [eax]
push esi
push ecx
push ebx
call fcn.100600b0
mov eax, dword [ebp + 0x2c]
add ebx, esi
mov dword [esp + 0x20], ebx
add esp, 0xc
mov ebx, edi
sub ebx, esi
sub dword [eax], esi
mov eax, dword [ebp + 0x1c]
add dword [eax], esi
mov esi, dword [esp + 0x1c]
jmp 0x100070fb
mov eax, dword [esp + 0x14]
mov dword [esp + 0x14], eax
cmp dword [ebp + 0x4c], 0
mov ecx, ebx
je 0x10007156
mov ecx, ebp
call fcn.100044dc
mov edx, dword [esp + 0x14]
mov ecx, ebx
jmp 0x10007136
push dword [ebp + 0x4c]
push eax
push 1
push edx
call fcn.10064c75
mov edx, dword [esp + 0x24]
sub ebx, eax
add edx, eax
add esp, 0x10
mov dword [esp + 0x14], edx
mov ecx, ebx
cmp eax, 0xfff
jne 0x10007166
mov eax, 0xfff
cmp ebx, eax
ja 0x10007112
test ecx, ecx
je 0x10007156
push dword [ebp + 0x4c]
push ebx
push 1
push edx
call fcn.10064c75
mov ecx, ebx
add esp, 0x10
sub ecx, eax
sub edi, ecx
sbb esi, 0
mov eax, edi
mov edx, esi
pop ebx
pop edi
pop esi
pop ebp
ret 0xc
sub edi, ebx
jmp 0x10007158

Function at 0x1000723e
Capabilities:
Write file on windows

Disassembly:
push ecx
push ecx
push ebx
mov ebx, ecx
cmp dword [ebx + 0x38], 0
je 0x1000725f
push dword [esp + 0x18]
push dword [esp + 0x18]
push dword [esp + 0x18]
call fcn.10007314
jmp 0x1000730e
mov eax, dword [ebx + 0x20]
push ebp
push esi
mov esi, dword [esp + 0x1c]
mov ecx, dword [eax]
mov dword [esp + 0xc], esi
push edi
mov edi, dword [esp + 0x24]
mov dword [esp + 0x14], edi
test ecx, ecx
je 0x10007282
mov eax, dword [ebx + 0x30]
mov eax, dword [eax]
jmp 0x10007284
xor eax, eax
cdq
mov ebp, eax
mov eax, edx
mov dword [esp + 0x20], eax
test edi, edi
jl 0x100072ff
jg 0x10007297
test esi, esi
je 0x100072ff
test eax, eax
jl 0x100072e1
jg 0x100072a1
test ebp, ebp
je 0x100072e1
cmp edi, eax
jg 0x100072b1
jl 0x100072ab
cmp esi, ebp
jae 0x100072b1
mov ebp, esi
mov dword [esp + 0x20], edi
push ebp
push dword [esp + 0x20]
push ecx
call fcn.100600b0
mov eax, dword [ebx + 0x30]
add esp, 0xc
sub esi, ebp
sbb edi, dword [esp + 0x20]
sub dword [eax], ebp
mov eax, dword [ebx + 0x20]
add dword [eax], ebp
mov eax, dword [esp + 0x1c]
add eax, ebp
test edi, edi
jl 0x100072ff
jg 0x100072e5
test esi, esi
je 0x100072ff
jmp 0x100072e5
mov eax, dword [esp + 0x1c]
cmp dword [ebx + 0x4c], 0
je 0x100072ff
push dword [ebx + 0x4c]
push esi
push 1
push eax
call fcn.100652fc
add esp, 0x10
sub esi, eax
sbb edi, 0
mov eax, dword [esp + 0x10]
mov edx, dword [esp + 0x14]
sub eax, esi
sbb edx, edi
pop edi
pop esi
pop ebp
pop ebx
pop ecx
pop ecx
ret 0xc
Function at 0x10007ce9
Capabilities:
Check for time delay via gettickcount

Disassembly:
call dword [sym.imp.KERNEL32.dll_GetTickCount]
sub eax, 0xc8
cmp dword [0x100e7074], eax
jae 0x10007d07
call dword [sym.imp.KERNEL32.dll_GetTickCount]
mov dword [0x100e7074], eax
ret