joyce8/EMBER2024-capa huggingface dataset:
Function at 0x406602
Capabilities:
Get common file path
Print debug messages

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x37c
cmp byte [0x40ec00], 0
mov eax, dword [0x40e044]
mov dword [ebp - 4], eax
mov eax, dword [ebp + 8]
push esi
push edi
mov dword [ebp - 0x37c], eax
mov esi, 0x40ec00
jne 0x406679
mov edi, 0x104
push edi
lea eax, [ebp - 0x120]
push eax
call dword [sym.imp.KERNEL32.dll_GetWindowsDirectoryA]
test eax, eax
jne 0x40664c
push 0x403768
jmp 0x406691
push 0
push 0x40375c
push 0x401d34
lea eax, [ebp - 0x120]
push eax
push 0x403750
push edi
push esi
call fcn.00406d0c
add esp, 0x1c
test eax, eax
jge 0x406679
push 0x40372c
jmp 0x406691
push 0x403728
push esi
call fcn.00407147
mov esi, eax
test esi, esi
pop ecx
pop ecx
jne 0x40669c
push 0x4036fc
call dword [sym.imp.KERNEL32.dll_OutputDebugStringA]
jmp 0x40673a
lea eax, [ebp - 0x10]
push eax
call fcn.0040706f
lea eax, [ebp - 0x1c]
push eax
call fcn.00407001
cmp dword [ebp - 0x37c], 0
pop ecx
pop ecx
lea eax, [ebp - 0x1c]
je 0x406701
push 0
push dword [ebp - 0x37c]
push 0x4036f4
push eax
lea eax, [ebp - 0x10]
push eax
push 0x4036e0
lea eax, [ebp - 0x378]
push 0x258
push eax
call fcn.00406d0c
add esp, 0x20
test eax, eax
jge 0x406724
push 2
push 0x4036dc
lea eax, [ebp - 0x122]
push eax
call dword [sym.imp.KERNEL32.dll_lstrcpynA]
jmp 0x406724
push 0x4036f4
push eax
lea eax, [ebp - 0x10]
push eax
push 0x4036c8
lea eax, [ebp - 0x378]
push 0x258
push eax
call fcn.00406d0c
add esp, 0x18
lea eax, [ebp - 0x378]
push esi
push eax
call fcn.00406f85
push esi
call fcn.00406f2f
add esp, 0xc
mov ecx, dword [ebp - 4]
pop edi
pop esi
call fcn.00406819
leave
ret 4

Function at 0x40807f
Capabilities:
Contain obfuscated stackstrings

Disassembly:
inc ebp
fimul word [ecx - 0x3a]
inc ebp
fistp word [ecx - 0x3a]
inc ebp
loopne 0x4080d4
mov byte [ebp - 0x1f], 0x59
mov byte [ebp - 0x1e], 0x52
mov byte [ebp - 0x1d], 0x6a
mov byte [ebp - 0x1c], 0x2b
call fcn.00407c49
push eax
push esi
push dword [ebp + 8]
call fcn.00407bfe
add esp, 0x30
mov dword [ebp - 0xb8], eax
call fcn.00407c39
push ecx
ret 0x1d46
inc esi
inc ebp
adc byte [ecx - 0x3a], 0x45
xor dword [ebx - 0x3a], 0xc6628245
inc ebp
sbb dword [ebx - 0x3a], 0x45
test byte [ecx - 0x3a], bh
inc ebp
test dword [edx - 0x3a], esi
inc ebp
xchg byte [ebx - 0x3a], ah
inc ebp
xchg dword [edx - 0x3a], edi
inc ebp
mov byte [ebx - 0x3a], dh
inc ebp
mov dword [esi - 0x3a], ebx
inc ebp
mov dh, byte [edi - 0x3a]
inc ebp
mov edi, dword [eax - 0x3a]
inc ebp
invalid
mov byte [ebp - 0x80], 0x51
mov byte [ebp - 0x7f], 0x73
mov byte [ebp - 0x7e], 0x62
mov byte [ebp - 0x7d], 0x5b
mov byte [ebp - 0x7c], 0x79
mov byte [ebp - 0x7b], 0x72
mov byte [ebp - 0x7a], 0x63
mov byte [ebp - 0x79], 0x7a
mov byte [ebp - 0x78], 0x73
mov byte [ebp - 0x77], 0x5e
mov byte [ebp - 0x76], 0x77
mov byte [ebp - 0x75], 0x78
mov byte [ebp - 0x74], 0x72
mov byte [ebp - 0x73], 0x7a
mov byte [ebp - 0x72], 0x73
inc ebp
invalid
jae 0x4080d7
inc ebp
invalid
push edi
mov byte [ebp - 0x70], 0x16
call fcn.00407c39
jnp 0x40810b
jp 0x4080d3
sbb eax, 0x7c858d46
invalid
Function at 0x408169
Capabilities:
Inspect section memory permissions

Disassembly:
inc dword [ebx + 0x39660cc4]
pop edi
push es
mov dword [ebp + 0xc], ebx
jbe 0x4081a9
movzx eax, word [ebp + 0xc]
mov ecx, dword [ebp - 0x44]
lea eax, [eax + eax*4]
push dword [ecx + eax*8 + 0x10]
lea eax, [ecx + eax*8]
add al, 0xc1
mov ecx, dword [eax + 0x14]
mov eax, dword [eax + 0xc]
add ecx, dword [ebp + 0x10]
add eax, esi
push ecx
push eax
call fcn.00407baa
add esp, 0xc
inc dword [ebp + 0xc]
mov ax, word [ebp + 0xc]
cmp ax, word [edi + 6]
jb 0x408176
call fcn.00407c39
sub byte [esi], 0xac
or cl, byte [ebx - 0x1fcc382]
mov dword [ebp - 0x88], edi
mov eax, dword [edi + 0x80]
cmp eax, ebx
je 0x408428
add eax, esi
mov dword [ebp - 0x44], eax
cmp dword [eax + 4], ebx
jne 0x4081de
cmp dword [eax + 0xc], ebx
je 0x408281
mov edi, dword [eax + 0xc]
add edi, esi
push edi
call dword [ebp - 0xc0]
mov dword [ebp + 0xc], eax
call fcn.00407c39
lcall 0xc5d, 0x39001a80
jne 0x40820d
push edi
call dword [ebp - 0xb8]
cmp eax, ebx
mov dword [ebp + 0xc], eax
je 0x408428
add byte [eax], al
mov eax, dword [ebp - 0x44]
mov ecx, dword [eax + 0x10]
mov eax, dword [eax]
cmp eax, ebx
lea edi, [ecx + esi]
jne 0x408221
mov dword [ebp + 0x10], edi
jmp 0x408226
add eax, esi
mov dword [ebp + 0x10], eax
call fcn.00407c39
aaa
sahf
sub byte [ebx - 0x75], dl
inc ebp
adc byte [ebx + 0x74c33b00], cl
aaa
mov eax, dword [ebp + 0x10]
mov eax, dword [eax]
cmp eax, ebx
je 0x40826f
test eax, 0x80000000
lea ecx, [eax + esi]
je 0x40824a
and eax, 0xffff
push eax
jmp 0x40824e
add ecx, 2
push ecx
push dword [ebp + 0xc]
push dword [ebp + 8]
call fcn.00407bfe
add esp, 0xc
cmp edi, ebx
mov dword [edi], eax
je 0x408428
add edi, 4
add dword [ebp + 0x10], 4
jmp 0x40822f
add dword [ebp - 0x44], 0x14
mov edi, dword [ebp - 0x88]
mov eax, dword [ebp - 0x44]
jmp 0x4081d0
call fcn.00407c39
test al, 0x52
or al, 0xe4
mov eax, dword [edi + 0xa0]
cmp eax, ebx
je 0x4082ed
add eax, esi
Function at 0x408185
Capabilities:
Inspect section memory permissions

Disassembly:
inc dword [ebx + 0x39660cc4]
pop edi
push es
mov dword [ebp + 0xc], ebx
jbe 0x4081a9
movzx eax, word [ebp + 0xc]
mov ecx, dword [ebp - 0x44]
lea eax, [eax + eax*4]
push dword [ecx + eax*8 + 0x10]
lea eax, [ecx + eax*8]
add al, 0xc1
mov ecx, dword [eax + 0x14]
mov eax, dword [eax + 0xc]
add ecx, dword [ebp + 0x10]
add eax, esi
push ecx
push eax
call fcn.00407baa
add esp, 0xc
inc dword [ebp + 0xc]
mov ax, word [ebp + 0xc]
cmp ax, word [edi + 6]
jb 0x408176
call fcn.00407c39
sub byte [esi], 0xac
or cl, byte [ebx - 0x1fcc382]
mov dword [ebp - 0x88], edi
mov eax, dword [edi + 0x80]
cmp eax, ebx
je 0x408428
add eax, esi
mov dword [ebp - 0x44], eax
cmp dword [eax + 4], ebx
jne 0x4081de
cmp dword [eax + 0xc], ebx
je 0x408281
mov edi, dword [eax + 0xc]
add edi, esi
push edi
call dword [ebp - 0xc0]
mov dword [ebp + 0xc], eax
call fcn.00407c39
lcall 0xc5d, 0x39001a80
jne 0x40820d
push edi
call dword [ebp - 0xb8]
cmp eax, ebx
mov dword [ebp + 0xc], eax
je 0x408428
add byte [eax], al
mov eax, dword [ebp - 0x44]
mov ecx, dword [eax + 0x10]
mov eax, dword [eax]
cmp eax, ebx
lea edi, [ecx + esi]
jne 0x408221
mov dword [ebp + 0x10], edi
jmp 0x408226
add eax, esi
mov dword [ebp + 0x10], eax
call fcn.00407c39
aaa
sahf
sub byte [ebx - 0x75], dl
inc ebp
adc byte [ebx + 0x74c33b00], cl
aaa
mov eax, dword [ebp + 0x10]
mov eax, dword [eax]
cmp eax, ebx
je 0x40826f
test eax, 0x80000000
lea ecx, [eax + esi]
je 0x40824a
and eax, 0xffff
push eax
jmp 0x40824e
add ecx, 2
push ecx
push dword [ebp + 0xc]
push dword [ebp + 8]
call fcn.00407bfe
add esp, 0xc
cmp edi, ebx
mov dword [edi], eax
je 0x408428
add edi, 4
add dword [ebp + 0x10], 4
jmp 0x40822f
add dword [ebp - 0x44], 0x14
mov edi, dword [ebp - 0x88]
mov eax, dword [ebp - 0x44]
jmp 0x4081d0
call fcn.00407c39
test al, 0x52
or al, 0xe4
mov eax, dword [edi + 0xa0]
cmp eax, ebx
je 0x4082ed
add eax, esi
Function at 0x408296
Capabilities:
Inspect section memory permissions

Disassembly:
cmp dword [eax], ebx
je 0x4082ed
mov edx, dword [eax + 4]
lea ecx, [eax + 8]
add edx, eax
mov dword [ebp + 8], ecx
cmp ecx, edx
jae 0x4082e8
mov ecx, dword [ebp + 8]
movzx ecx, word [ecx]
mov edx, ecx
and edx, 0xf000
cmp edx, 0x3000
jne 0x4082d2
and ecx, 0xfff
mov edx, esi
sub edx, dword [edi + 0x34]
add ecx, esi
into
add ecx, dword [eax]
add dword [ecx], edx
jmp 0x4082da
cmp edx, ebx
jne 0x408428
mov ecx, dword [eax + 4]
add dword [ebp + 8], 2
add ecx, eax
cmp dword [ebp + 8], ecx
jb 0x4082a9
add eax, dword [eax + 4]
jmp fcn.00408296
mov dword [ebp + 0xc], ebx
jmp 0x4082f8
mov edi, dword [ebp - 0x88]
mov eax, dword [ebp + 0xc]
cmp ax, word [edi + 6]
jne 0x408310
mov edx, dword [ebp - 0xb4]
xor ecx, ecx
mov edi, 0x60000000
jmp 0x40832e
movzx eax, ax
lea eax, [eax + eax*4]
mov ecx, dword [edi + eax*8 + 0x104]
mov edx, dword [edi + eax*8 + 0x108]
lea eax, [edi + eax*8 + 0xf8]
mov edi, dword [eax + 0x24]
lea eax, [edx + ecx - 1]
xor edx, edx
div dword [ebp - 0xac]
xor edx, edx
mov dword [ebp - 0x44], eax
mov eax, ecx
div dword [ebp - 0xac]
cmp eax, dword [ebp - 0x44]
ja 0x40838c
mov edx, edi
mov dword [ebp + 8], edi
and dword [ebp + 8], 0x40000000
mov dword [ebp + 0x10], edi
and edx, 0x20000000
and dword [ebp + 0x10], 0x80000000
mov ecx, dword [ebp + 0x18]
cmp edx, ebx
je 0x408373
or byte [eax + ecx], 1
cmp dword [ebp + 8], ebx
je 0x40837c
or byte [eax + ecx], 2
cmp dword [ebp + 0x10], ebx
je 0x408386
add ecx, eax
or byte [ecx], 4
inc eax
cmp eax, dword [ebp - 0x44]
jbe 0x408368
inc dword [ebp + 0xc]
mov eax, dword [ebp - 0x88]
mov cx, word [ebp + 0xc]
cmp cx, word [eax + 6]
jbe 0x4082f2
mov dword [ebp + 8], esi
xor edi, edi
mov eax, dword [ebp + 0x18]
push 2
pop ecx
movzx eax, byte [edi + eax]
sub eax, ecx
je 0x4083d9
dec eax
je 0x4083d0
sub eax, 3
je 0x4083c7
mov dword [ebp - 4], 0x40
jmp 0x4083f6
mov dword [ebp - 4], 4
jmp 0x4083dc
mov dword [ebp - 4], 0x20
jmp 0x4083dc
mov dword [ebp - 4], ecx
lea eax, [ebp - 4]
push eax
push dword [ebp - 4]
push dword [ebp - 0xac]
push dword [ebp + 8]
call dword [ebp - 0xbc]
test eax, eax
je 0x408428
mov eax, dword [ebp - 0xac]
add dword [ebp + 8], eax
inc edi
cmp edi, dword [ebp - 0x8c]
jbe 0x4083a8
mov eax, dword [ebp - 0x88]
mov edi, dword [eax + 0x28]
add edi, esi
call fcn.00407c39
sbb byte [esi + 0x75ff5c13], al
adc al, 0x6a
add dword [esi - 1], edx
xlatb
mov eax, esi
jmp 0x408434
push 0x8000
push ebx
push esi
call dword [ebp - 8]
xor eax, eax
pop edi
pop esi
pop ebx
leave
ret
Function at 0x408af3
Capabilities:
Contain obfuscated stackstrings

Disassembly:
jne 0x408b38
xchg esp, eax
cdq
and byte [ebp - 0x230], 0
push 0x40
pop ecx
xor eax, eax
lea edi, [ebp - 0x22f]
rep stosd dword es:[edi], eax
stosw word es:[edi], ax
stosb byte es:[edi], al
and byte [ebp - 0x12c], 0
push 0x40
pop ecx
xor eax, eax
lea edi, [ebp - 0x12b]
rep stosd dword es:[edi], eax
stosw word es:[edi], ax
stosb byte es:[edi], al
and byte [ebp - 0x654], 0
push 0x40
pop ecx
xor eax, eax
lea edi, [ebp - 0x653]
rep stosd dword es:[edi], eax
stosd dword es:[edi], eax
stosw word es:[edi], ax
stosb byte es:[edi], al
and byte [ebp - 0x504], 0
push 0x40
pop ecx
xor eax, eax
lea edi, [ebp - 0x503]
rep stosd dword es:[edi], eax
stosw word es:[edi], ax
stosb byte es:[edi], al
call fcn.00407c17
or byte [eax + 0x2ff845c6], ah
mov byte [ebp - 0x24], 0x34
and byte [ebp - 0x36c], 0
and byte [ebp - 0x36b], 0
mov byte [ebp - 0x36a], 0xaa
and byte [ebp - 0x369], 0
mov byte [ebp - 0x368], 0x12
mov byte [ebp - 0x367], 0x30
mov byte [ebp - 0x366], 0x21
mov byte [ebp - 0x365], 6
mov byte [ebp - 0x364], 0x2c
mov byte [ebp - 0x363], 0x26
mov byte [ebp - 0x362], 0x21
mov byte [ebp - 0x361], 0x30
mov byte [ebp - 0x360], 0x38
mov byte [ebp - 0x35f], 0x11
mov byte [ebp - 0x35e], 0x3c
mov byte [ebp - 0x35d], 0x27
mov byte [ebp - 0x35c], 0x30
mov byte [ebp - 0x35b], 0x36
mov byte [ebp - 0x35a], 0x21
mov byte [ebp - 0x359], 0x3a
mov byte [ebp - 0x358], 0x27
mov byte [ebp - 0x357], 0x2c
mov byte [ebp - 0x356], 0x14
mov byte [ebp - 0x355], 0x55
lea eax, [ebp - 0x36c]
push eax
invalid
Function at 0x40b383
Capabilities:
Write file on windows

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x424
mov eax, dword [0x40e044]
xor ecx, ecx
cmp dword [ebp + 0x10], ecx
push edi
mov edi, dword [ebp + 0xc]
mov dword [ebp - 4], eax
mov dword [ebp - 0x420], edi
mov dword [ebp - 0x418], ecx
mov dword [ebp - 0x41c], ecx
jne 0x40b3ba
xor eax, eax
jmp 0x40b56d
mov eax, dword [ebp + 8]
push ebx
mov ebx, dword [ebp + 8]
and eax, 0x1f
sar ebx, 5
push esi
lea esi, [eax + eax*8]
lea ebx, [ebx*4 + 0x410440]
mov eax, dword [ebx]
shl esi, 2
test byte [eax + esi + 4], 0x20
je 0x40b3ef
push 2
push ecx
push ecx
push dword [ebp + 8]
call fcn.0040c941
add esp, 0x10
xor ecx, ecx
mov eax, dword [ebx]
add eax, esi
test byte [eax + 4], 0x80
je 0x40b4bd
cmp dword [ebp + 0x10], ecx
mov dword [ebp - 0x414], edi
mov dword [ebp - 0x40c], ecx
jbe 0x40b53b
jmp 0x40b416
xor ecx, ecx
mov dword [ebp - 0x410], ecx
mov ecx, dword [ebp - 0x414]
sub ecx, dword [ebp - 0x420]
lea eax, [ebp - 0x408]
cmp ecx, dword [ebp + 0x10]
jae 0x40b46c
mov edx, dword [ebp - 0x414]
inc dword [ebp - 0x414]
mov dl, byte [edx]
inc ecx
cmp dl, 0xa
jne 0x40b457
inc dword [ebp - 0x41c]
mov byte [eax], 0xd
inc eax
inc dword [ebp - 0x410]
mov byte [eax], dl
inc eax
inc dword [ebp - 0x410]
cmp dword [ebp - 0x410], 0x400
jl 0x40b42e
mov edi, eax
lea eax, [ebp - 0x408]
sub edi, eax
push 0
lea eax, [ebp - 0x424]
push eax
push edi
lea eax, [ebp - 0x408]
push eax
mov eax, dword [ebx]
push dword [eax + esi]
call dword [sym.imp.KERNEL32.dll_WriteFile]
test eax, eax
je 0x40b4ea
mov eax, dword [ebp - 0x424]
add dword [ebp - 0x418], eax
cmp eax, edi
jl 0x40b4f6
mov eax, dword [ebp - 0x414]
sub eax, dword [ebp - 0x420]
cmp eax, dword [ebp + 0x10]
jb 0x40b414
jmp 0x40b4f6
push ecx
lea ecx, [ebp - 0x424]
push ecx
push dword [ebp + 0x10]
push edi
push dword [eax]
call dword [sym.imp.KERNEL32.dll_WriteFile]
test eax, eax
je 0x40b4ea
mov eax, dword [ebp - 0x424]
and dword [ebp - 0x40c], 0
mov dword [ebp - 0x418], eax
jmp 0x40b4f6
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov dword [ebp - 0x40c], eax
mov eax, dword [ebp - 0x418]
test eax, eax
jne 0x40b565
cmp dword [ebp - 0x40c], eax
je 0x40b535
push 5
pop esi
cmp dword [ebp - 0x40c], esi
jne 0x40b527
call fcn.0040a239
mov dword [eax], 9
call fcn.0040a247
mov dword [eax], esi
jmp 0x40b560
push dword [ebp - 0x40c]
call fcn.0040a255
pop ecx
jmp 0x40b560
mov edi, dword [ebp - 0x420]
mov eax, dword [ebx]
test byte [eax + esi + 4], 0x40
je 0x40b54d
cmp byte [edi], 0x1a
jne 0x40b54d
xor eax, eax
jmp 0x40b56b
call fcn.0040a239
mov dword [eax], 0x1c
call fcn.0040a247
and dword [eax], 0
or eax, 0xffffffff
jmp 0x40b56b
sub eax, dword [ebp - 0x41c]
pop esi
pop ebx
mov ecx, dword [ebp - 4]
pop edi
call fcn.00406819
leave
ret
Function at 0x40cc12
Capabilities:
Get system information on windows

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x44
push ebx
push esi
push edi
push 4
pop eax
call fcn.00407e50
mov ebx, esp
push 0x1c
lea eax, [ebp - 0x20]
push eax
push ebx
call dword [sym.imp.KERNEL32.dll_VirtualQuery]
test eax, eax
je 0x40cc78
mov edi, dword [ebp - 0x1c]
lea eax, [ebp - 0x44]
push eax
call dword [sym.imp.KERNEL32.dll_GetSystemInfo]
mov eax, dword [0x40ed1c]
mov esi, dword [ebp - 0x40]
mov ecx, eax
dec ecx
neg ecx
sbb ecx, ecx
lea edx, [esi - 1]
and ecx, 0x103
not edx
and edx, ebx
inc ecx
sub edx, esi
dec eax
neg eax
sbb eax, eax
and eax, 0xfffffff1
add eax, 0x11
imul eax, esi
add eax, edi
cmp edx, eax
jae 0x40cc7c
xor eax, eax
jmp 0x40cc89
lea eax, [ebp - 4]
push eax
push ecx
push esi
push edx
call dword [sym.imp.KERNEL32.dll_VirtualProtect]
lea esp, [ebp - 0x50]
pop edi
pop esi
pop ebx
leave
ret

Function at 0x40ccef
Capabilities:
Clear file content

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0xc
push ebx
push esi
push 1
xor esi, esi
push esi
push dword [ebp + 8]
call fcn.0040b257
or ebx, 0xffffffff
add esp, 0xc
cmp eax, ebx
mov dword [ebp - 0xc], eax
je 0x40ce36
push 2
push esi
push dword [ebp + 8]
call fcn.0040b257
add esp, 0xc
cmp eax, ebx
je 0x40ce36
push edi
mov edi, dword [ebp + 0xc]
sub edi, eax
test edi, edi
jle 0x40cdd9
mov ebx, 0x1000
push ebx
push 8
call dword [sym.imp.KERNEL32.dll_GetProcessHeap]
push eax
call dword [sym.imp.KERNEL32.dll_HeapAlloc]
test eax, eax
mov dword [ebp - 4], eax
jne 0x40cd6a
call fcn.0040a239
mov dword [eax], 0xc
or esi, 0xffffffff
jmp 0x40ce21
push 0x8000
push dword [ebp + 8]
call fcn.0040d090
pop ecx
pop ecx
mov dword [ebp - 8], eax
cmp edi, ebx
mov eax, ebx
jge 0x40cd84
mov eax, edi
push eax
push dword [ebp - 4]
push dword [ebp + 8]
call fcn.0040b383
add esp, 0xc
cmp eax, 0xffffffff
je 0x40cda0
sub edi, eax
test edi, edi
jg 0x40cd7c
jmp 0x40cdb8
call fcn.0040a247
cmp dword [eax], 5
jne 0x40cdb5
call fcn.0040a239
mov dword [eax], 0xd
or esi, 0xffffffff
push dword [ebp - 8]
push dword [ebp + 8]
call fcn.0040d090
pop ecx
pop ecx
push dword [ebp - 4]
push 0
call dword [sym.imp.KERNEL32.dll_GetProcessHeap]
push eax
call dword [sym.imp.KERNEL32.dll_HeapFree]
jmp 0x40ce21
jge 0x40ce21
push 0
push dword [ebp + 0xc]
push dword [ebp + 8]
call fcn.0040b257
push dword [ebp + 8]
call fcn.0040be7d
add esp, 0x10
push eax
call dword [sym.imp.KERNEL32.dll_SetEndOfFile]
mov esi, eax
neg esi
sbb esi, esi
neg esi
dec esi
cmp esi, ebx
jne 0x40ce21
call fcn.0040a239
mov dword [eax], 0xd
call fcn.0040a247
mov edi, eax
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov dword [edi], eax
push 0
push dword [ebp - 0xc]
push dword [ebp + 8]
call fcn.0040b257
add esp, 0xc
mov eax, esi
pop edi
jmp 0x40ce38
mov eax, ebx
pop esi
pop ebx
leave
ret
Function at 0x40ce41
Capabilities:
Read file on windows

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0xc
and dword [ebp - 8], 0
cmp dword [ebp + 0x10], 0
push ebx
mov ebx, dword [ebp + 0xc]
push esi
push edi
mov edx, ebx
je 0x40d017
mov eax, dword [ebp + 8]
mov ecx, eax
and eax, 0x1f
sar ecx, 5
lea esi, [eax + eax*8]
lea edi, [ecx*4 + 0x410440]
mov eax, dword [edi]
shl esi, 2
add eax, esi
mov cl, byte [eax + 4]
test cl, 2
jne 0x40d017
test cl, 0x48
je 0x40ceae
cmp byte [eax + 5], 0xa
je 0x40ceae
mov eax, dword [edi]
mov al, byte [eax + esi + 5]
dec dword [ebp + 0x10]
mov byte [ebx], al
mov eax, dword [edi]
lea edx, [ebx + 1]
mov dword [ebp - 8], 1
mov byte [eax + esi + 5], 0xa
push 0
lea eax, [ebp - 0xc]
push eax
push dword [ebp + 0x10]
mov eax, dword [edi]
push edx
push dword [eax + esi]
call dword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
jne 0x40cf00
call dword [sym.imp.KERNEL32.dll_GetLastError]
push 5
pop esi
cmp eax, esi
jne 0x40cee8
call fcn.0040a239
mov dword [eax], 9
call fcn.0040a247
mov dword [eax], esi
jmp 0x40cef8
cmp eax, 0x6d
je 0x40d017
push eax
call fcn.0040a255
pop ecx
or eax, 0xffffffff
jmp 0x40d019
mov eax, dword [ebp - 0xc]
mov ecx, dword [edi]
add dword [ebp - 8], eax
test byte [ecx + esi + 4], 0x80
je 0x40d012
test eax, eax
je 0x40cf27
cmp byte [ebx], 0xa
jne 0x40cf27
mov eax, ecx
lea eax, [eax + esi + 4]
or byte [eax], 4
jmp 0x40cf30
mov eax, dword [edi]
lea eax, [eax + esi + 4]
and byte [eax], 0xfb
mov eax, dword [ebp + 0xc]
mov ecx, dword [ebp - 8]
add ecx, eax
cmp eax, ecx
mov dword [ebp + 0x10], eax
mov dword [ebp - 8], ecx
jae 0x40d00c
mov eax, dword [ebp + 0x10]
mov al, byte [eax]
cmp al, 0x1a
je 0x40cffc
cmp al, 0xd
je 0x40cf62
mov byte [ebx], al
inc ebx
inc dword [ebp + 0x10]
jmp 0x40cfee
dec ecx
cmp dword [ebp + 0x10], ecx
jae 0x40cf7c
mov eax, dword [ebp + 0x10]
inc eax
cmp byte [eax], 0xa
jne 0x40cf77
add dword [ebp + 0x10], 2
jmp 0x40cfd0
mov dword [ebp + 0x10], eax
jmp 0x40cfea
inc dword [ebp + 0x10]
push 0
lea eax, [ebp - 0xc]
push eax
push 1
lea eax, [ebp - 1]
push eax
mov eax, dword [edi]
push dword [eax + esi]
call dword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
jne 0x40cfa4
call dword [sym.imp.KERNEL32.dll_GetLastError]
test eax, eax
jne 0x40cfea
cmp dword [ebp - 0xc], 0
je 0x40cfea
mov eax, dword [edi]
test byte [eax + esi + 4], 0x48
je 0x40cfc5
mov al, byte [ebp - 1]
cmp al, 0xa
je 0x40cfd0
mov byte [ebx], 0xd
mov ecx, dword [edi]
mov byte [ecx + esi + 5], al
jmp 0x40cfed
cmp ebx, dword [ebp + 0xc]
jne 0x40cfd5
cmp byte [ebp - 1], 0xa
jne 0x40cfd5
mov byte [ebx], 0xa
jmp 0x40cfed
push 1
push 0xffffffffffffffff
push dword [ebp + 8]
call fcn.0040b257
add esp, 0xc
cmp byte [ebp - 1], 0xa
je 0x40cfee
mov byte [ebx], 0xd
inc ebx
mov ecx, dword [ebp - 8]
cmp dword [ebp + 0x10], ecx
jb 0x40cf46
jmp 0x40d00c
mov eax, dword [edi]
test byte [eax + esi + 4], 0x40
jne 0x40d00c
lea esi, [eax + esi + 4]
or byte [esi], 2
sub ebx, dword [ebp + 0xc]
mov dword [ebp - 8], ebx
mov eax, dword [ebp - 8]
jmp 0x40d019
xor eax, eax
pop edi
pop esi
pop ebx
leave
ret
Function at 0x401000
Capabilities:
Terminate process

Disassembly:
cmp ecx, dword [0x456004]
jne 0x40100a
repz ret
jmp fcn.004012fe

Function at 0x4046cb
Capabilities:
Link many functions at runtime

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x24
mov eax, dword [0x456004]
xor eax, ebp
mov dword [ebp - 4], eax
mov eax, dword [ebp + 8]
push ebx
mov dword [ebp - 0x20], eax
mov eax, dword [ebp + 0xc]
push esi
push edi
mov dword [ebp - 0x1c], eax
call fcn.00403a60
and dword [ebp - 0x14], 0
cmp dword [0x458a38], 0
mov dword [ebp - 0x18], eax
jne 0x40477e
push str.USER32.DLL
call dword [sym.imp.KERNEL32.dll_LoadLibraryW]
mov ebx, eax
test ebx, ebx
je 0x404826
mov edi, dword [sym.imp.KERNEL32.dll_GetProcAddress]
push str.MessageBoxW
push ebx
call edi
test eax, eax
je 0x404826
mov esi, dword [sym.imp.KERNEL32.dll_EncodePointer]
push eax
call esi
push str.GetActiveWindow
push ebx
mov dword [0x458a38], eax
call edi
push eax
call esi
push str.GetLastActivePopup
push ebx
mov dword [0x458a3c], eax
call edi
push eax
call esi
push str.GetUserObjectInformationW
push ebx
mov dword [0x458a40], eax
call edi
push eax
call esi
mov dword [0x458a48], eax
test eax, eax
je 0x40477e
push str.GetProcessWindowStation
push ebx
call edi
push eax
call esi
mov dword [0x458a44], eax
mov eax, dword [0x458a44]
mov ecx, dword [ebp - 0x18]
mov esi, dword [sym.imp.KERNEL32.dll_DecodePointer]
cmp eax, ecx
je 0x4047d7
cmp dword [0x458a48], ecx
je 0x4047d7
push eax
call esi
push dword [0x458a48]
mov edi, eax
call esi
mov ebx, eax
test edi, edi
je 0x4047d7
test ebx, ebx
je 0x4047d7
call edi
test eax, eax
je 0x4047ce
lea ecx, [ebp - 0x24]
push ecx
push 0xc
lea ecx, [ebp - 0x10]
push ecx
push 1
push eax
call ebx
test eax, eax
je 0x4047ce
test byte [ebp - 8], 1
jne 0x4047d7
or dword [ebp + 0x10], 0x200000
jmp 0x40480a
mov eax, dword [0x458a3c]
cmp eax, dword [ebp - 0x18]
je 0x40480a
push eax
call esi
test eax, eax
je 0x40480a
call eax
mov dword [ebp - 0x14], eax
test eax, eax
je 0x40480a
mov eax, dword [0x458a40]
cmp eax, dword [ebp - 0x18]
je 0x40480a
push eax
call esi
test eax, eax
je 0x40480a
push dword [ebp - 0x14]
call eax
mov dword [ebp - 0x14], eax
push dword [0x458a38]
call esi
test eax, eax
je 0x404826
push dword [ebp + 0x10]
push dword [ebp - 0x1c]
push dword [ebp - 0x20]
push dword [ebp - 0x14]
call eax
jmp 0x404828
xor eax, eax
mov ecx, dword [ebp - 4]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.00401000
leave
ret
Function at 0x10032b90
Capabilities:
Get geographical location

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x60
mov eax, dword [0x101fac9c]
xor eax, ebp
mov dword [ebp - 4], eax
mov eax, dword [0x101fe4b0]
mov dword [ebp - 0x60], 0
test eax, eax
jne 0x10032c7f
push 0x55
push 0x101fe4b8
push 0x5c
push eax
call dword [sym.imp.kernel32.dll_GetLocaleInfoEx]
test eax, eax
jle 0x10032c68
push esi
push 0x55
lea eax, [ebp - 0x5c]
push 0
push eax
call fcn.10108310
add esp, 0xc
mov esi, 0x2d
xor edx, edx
nop dword [eax]
nop dword [eax + eax]
movzx eax, word [edx*2 + 0x101fe4b8]
cmp eax, 0x5f
movzx ecx, al
cmove ecx, esi
mov byte [ebp + edx - 0x5c], cl
test cl, cl
je 0x10032c13
inc edx
cmp edx, 0x55
jl 0x10032bf0
mov byte [ebp - 8], 0
push 0x41
call fcn.10120289
mov esi, eax
add esp, 4
test esi, esi
je 0x10032c67
lea eax, [ebp - 0x60]
push eax
push 0x40
lea eax, [ebp - 0x5c]
push esi
push eax
call fcn.10120289
add esp, 0x10
cmp dword [ebp - 0x60], 0
jg 0x10032c5e
push 0x10032340
push 0x15
mov byte [eax + esi], 0
mov dword [0x101fe4b0], esi
mov byte [0x101fe4b4], 1
call fcn.10120289
add esp, 8
jmp 0x10032c67
push esi
call fcn.10120289
add esp, 4
pop esi
mov eax, dword [0x101fe4b0]
mov ecx, 0x10166518
test eax, eax
cmovne ecx, eax
mov dword [0x101fe4b0], ecx
mov eax, ecx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.100e580b
mov esp, ebp
pop ebp
ret