joyce8/EMBER2024-capa huggingface dataset:
Function at 0x100a90d0
Capabilities:
Resume thread

Disassembly:
push ebp
mov ebp, esp
push ebx
mov ebx, dword [ebp + 8]
mov eax, dword [ebx]
test eax, eax
je 0x100a9122
push esi
xor esi, esi
cmp dword [ebx + 8], esi
jbe 0x100a9112
push edi
mov eax, dword [ebx]
push dword [eax + esi*4]
push 0
push 0x5a
call dword [sym.imp.KERNEL32.dll_OpenThread]
mov edi, eax
test edi, edi
je 0x100a9109
push edi
call dword [sym.imp.KERNEL32.dll_ResumeThread]
push edi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
inc esi
cmp esi, dword [ebx + 8]
jb 0x100a90e6
mov eax, dword [ebx]
pop edi
push eax
push 0
push dword [0x10266764]
call dword [sym.imp.KERNEL32.dll_HeapFree]
pop esi
pop ebx
pop ebp
ret

Function at 0x100a9130
Capabilities:
Allocate or change rwx memory

Disassembly:
mov eax, dword [0x11d35754]
test eax, eax
je 0x100a914c
nop dword [eax]
cmp dword [eax + 4], 0
jne 0x100a91b2
mov eax, dword [eax]
test eax, eax
jne 0x100a9140
push 0x40
push 0x3000
push 0x1000
push 0
call dword [sym.imp.KERNEL32.dll_VirtualAlloc]
test eax, eax
je 0x100a91b6
push esi
lea edx, [eax + 0x20]
mov dword [eax + 4], 0
mov dword [eax + 8], 0
mov esi, 0x20
nop dword [eax + eax]
mov ecx, dword [eax + 4]
add esi, 0x20
mov dword [edx], ecx
mov dword [eax + 4], edx
add edx, 0x20
cmp esi, 0xfe0
jbe 0x100a9180
mov ecx, dword [0x11d35754]
mov dword [eax], ecx
mov dword [0x11d35754], eax
pop esi
mov edx, dword [eax + 4]
mov ecx, dword [edx]
inc dword [eax + 8]
mov dword [eax + 4], ecx
mov eax, edx
ret
test eax, eax
jne 0x100a91a4
xor eax, eax
ret
Function at 0x100d0ec7
Capabilities:
Get disk information

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x210
mov eax, dword [0x1012c208]
xor eax, ebp
mov dword [ebp - 4], eax
push esi
mov esi, dword [ebp + 8]
push 0x10102828
push esi
call fcn.100df0b5
pop ecx
pop ecx
test eax, eax
jne 0x100d0ef5
xor al, al
jmp 0x100d0f72
push ebx
lea eax, [ebp - 0x210]
xor ebx, ebx
push eax
push 0x104
lea eax, [ebp - 0x20c]
mov dword [ebp - 0x210], ebx
push esi
push eax
call fcn.100d0c0a
mov edx, eax
add esp, 0x10
test edx, edx
jne 0x100d0f2f
push dword [ebp - 0x210]
call fcn.100d22ae
xor al, al
jmp 0x100d0f70
mov ecx, edx
push edi
lea edi, [ecx + 2]
mov ax, word [ecx]
add ecx, 2
cmp ax, bx
jne 0x100d0f35
sub ecx, edi
sar ecx, 1
pop edi
cmp ecx, 3
je 0x100d0f55
push edx
call fcn.100d0dfd
pop ecx
test al, al
je 0x100d0f20
push esi
call dword [sym.imp.KERNEL32.dll_GetDriveTypeW]
cmp eax, 1
jbe 0x100d0f63
mov bl, 1
push dword [ebp - 0x210]
call fcn.100d22ae
mov al, bl
pop ecx
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
pop esi
call fcn.100bfded
leave
ret

Function at 0x100dcc39
Capabilities:
Print debug messages

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
pop ebp
jmp fcn.100dcbbb
Function at 0x100ded54
Capabilities:
Read file on windows

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
pop ebp
jmp fcn.100de9f6

Function at 0x100ded5f
Capabilities:
Read file on windows

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
pop ebp
jmp fcn.100deb85

Function at 0x100df667
Capabilities:
Allocate thread local storage

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push esi
push 0x10104050
push 0x10104048
push str.FlsAlloc
push 0x1e
call fcn.100df454
mov esi, eax
add esp, 0x10
test esi, esi
je 0x100df69b
push dword [ebp + 8]
mov ecx, esi
call dword [0x100fc294]
call esi
jmp 0x100df6a1
call dword [sym.imp.KERNEL32.dll_TlsAlloc]
pop esi
pop ebp
ret 4

Function at 0x100df6e5
Capabilities:
Get thread local storage value

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push esi
push 0x10104060
push 0x10104058
push str.FlsGetValue
push 0x20
call fcn.100df454
mov esi, eax
add esp, 0x10
test esi, esi
je 0x100df71c
push dword [ebp + 8]
mov ecx, esi
call dword [0x100fc294]
call esi
pop esi
pop ebp
ret 4
pop esi
pop ebp
jmp dword [sym.imp.KERNEL32.dll_TlsGetValue]
Function at 0x100e069b
Capabilities:
Read file on windows

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
mov eax, 0x101c
call fcn.100c1120
mov eax, dword [0x1012c208]
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.100da1e2
pop ecx
mov ecx, dword [ebp + 8]
mov ebx, eax
cmp dword [ecx + 8], 0
jne 0x100e06dd
mov eax, dword [ebp + 0xc]
mov edx, dword [ebp + 0x10]
jmp 0x100e0839
mov eax, dword [ecx]
sub eax, dword [ecx + 4]
push esi
push edi
push 0
cdq
push 2
push edx
push eax
call fcn.100eccf0
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 + 0x10267638]
push dword [edi + eax + 0x24]
push dword [edi + eax + 0x20]
push ebx
call fcn.100e1496
mov ecx, dword [esi*4 + 0x10267638]
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 0x100e0832
cmp eax, dword [edi + ecx + 0x24]
jne 0x100e0832
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 0x100e0832
push dword [ebp - 0x100c]
push 0
push dword [ebp + 0x10]
push dword [ebp + 0xc]
push ebx
call fcn.100e1496
add esp, 0x14
test edx, edx
jl 0x100e0832
jg 0x100e07a8
test eax, eax
jb 0x100e0832
mov ebx, dword [ebp - 0x1018]
mov eax, dword [ebp - 0x1014]
test ebx, ebx
jg 0x100e0832
jl 0x100e07c2
cmp dword [ebp - 0x1008], eax
ja 0x100e0832
lea edi, [ebp - 0x1004]
xor edx, edx
add edi, eax
lea ecx, [ebp - 0x1004]
xor esi, esi
cmp dword [ebp - 0x1008], edx
jne 0x100e07e0
test ebx, ebx
je 0x100e0819
cmp ecx, edi
jae 0x100e0819
mov al, byte [ecx]
cmp al, 0xd
jne 0x100e07fa
lea eax, [edi - 1]
cmp ecx, eax
jae 0x100e0806
cmp byte [ecx + 1], 0xa
jne 0x100e0806
inc ecx
jmp 0x100e0806
movzx eax, al
movsx eax, byte [eax + 0x1012c488]
add ecx, eax
add esi, 1
adc edx, 0
inc ecx
cmp esi, dword [ebp - 0x1008]
jne 0x100e07e0
cmp edx, ebx
jne 0x100e07e0
lea eax, [ebp - 0x1004]
sub ecx, eax
mov eax, ecx
cdq
add eax, dword [ebp - 0x1010]
adc edx, dword [ebp - 0x101c]
jmp 0x100e0837
or edx, 0xffffffff
mov eax, edx
pop edi
pop esi
mov ecx, dword [ebp - 4]
xor ecx, ebp
pop ebx
call fcn.100bfded
leave
ret
Function at 0x100e0934
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 + 0x10267638]
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 0x100e0974
cmp byte [ebx], 0xa
jne 0x100e0974
or byte [eax + edi + 0x28], 4
jmp 0x100e0979
and byte [eax + edi + 0x28], 0xfb
add ecx, ebx
mov edx, ebx
mov dword [ebp - 0xc], ecx
mov esi, ebx
cmp ebx, ecx
jae 0x100e0a77
mov al, byte [edx]
cmp al, 0x1a
je 0x100e0a59
lea ecx, [edx + 1]
mov dword [ebp - 8], ecx
mov ecx, dword [ebp - 0xc]
cmp al, 0xd
je 0x100e09a8
mov edx, dword [ebp - 8]
mov byte [esi], al
jmp 0x100e09cd
mov eax, dword [ebp - 8]
cmp eax, ecx
jae 0x100e09d7
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 0x100e098a
jmp 0x100e0a77
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 0x100e0a54
cmp dword [ebp - 0xc], 0
je 0x100e0a54
mov ecx, dword [ebp - 0x10]
mov eax, dword [ecx*4 + 0x10267638]
test byte [eax + edi + 0x28], 0x48
je 0x100e0a2e
mov dl, byte [ebp - 1]
lea eax, [esi + 1]
mov dword [ebp - 0x14], eax
cmp dl, 0xa
jne 0x100e0a19
mov byte [esi], dl
jmp 0x100e0a2a
mov byte [esi], 0xd
mov eax, dword [ecx*4 + 0x10267638]
mov byte [eax + edi + 0x2a], dl
mov eax, dword [ebp - 0x14]
mov esi, eax
jmp 0x100e0a77
cmp byte [ebp - 1], 0xa
jne 0x100e0a3d
cmp esi, ebx
jne 0x100e0a3d
mov byte [esi], 0xa
jmp 0x100e0a76
push 1
push 0xffffffffffffffff
push 0xffffffffffffffff
push dword [ebp + 8]
call fcn.100e14b4
add esp, 0x10
cmp byte [ebp - 1], 0xa
je 0x100e0a77
mov byte [esi], 0xd
jmp 0x100e0a76
mov ecx, dword [ebp - 0x10]
mov ecx, dword [ecx*4 + 0x10267638]
mov al, byte [ecx + edi + 0x28]
test al, 0x40
jne 0x100e0a73
or al, 2
mov byte [ecx + edi + 0x28], al
jmp 0x100e0a77
mov byte [esi], 0x1a
inc esi
sub esi, ebx
pop edi
mov eax, esi
pop esi
pop ebx
leave
ret
Function at 0x100e0a80
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 + 0x10267638]
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 0x100e0ac3
cmp word [esi], dx
jne 0x100e0ac3
or byte [edi + eax + 0x28], 4
jmp 0x100e0ac8
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 0x100e0c1b
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 0x100e0bfb
add eax, 2
cmp cx, word [ebp - 0xc]
je 0x100e0b0a
mov dword [ebp - 4], eax
mov word [esi], cx
jmp 0x100e0b40
cmp eax, edx
jae 0x100e0b4c
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 0x100e0ae2
jmp 0x100e0c1b
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 0x100e0bf7
cmp dword [ebp - 0x14], 0
je 0x100e0bf7
mov eax, dword [ebx*4 + 0x10267638]
push 0xa
test byte [edi + eax + 0x28], 0x48
je 0x100e0bcf
mov dx, word [ebp - 4]
lea eax, [esi + 2]
pop ecx
mov dword [ebp - 0x18], eax
cmp dx, cx
jne 0x100e0b98
mov word [esi], cx
jmp 0x100e0bcb
push 0xd
pop eax
mov word [esi], ax
mov eax, dword [ebx*4 + 0x10267638]
movzx ecx, dx
shr ecx, 8
push 0xa
mov byte [edi + eax + 0x2a], dl
mov eax, dword [ebx*4 + 0x10267638]
mov byte [edi + eax + 0x2b], cl
mov eax, dword [ebx*4 + 0x10267638]
pop ecx
mov byte [edi + eax + 0x2c], cl
mov eax, dword [ebp - 0x18]
mov esi, eax
jmp 0x100e0c1b
pop ebx
cmp word [ebp - 4], bx
jne 0x100e0be0
cmp esi, dword [ebp + 0xc]
jne 0x100e0be0
mov word [esi], bx
jmp 0x100e0c18
push 1
push 0xffffffffffffffff
push 0xfffffffffffffffe
push dword [ebp + 8]
call fcn.100e14b4
add esp, 0x10
cmp word [ebp - 4], bx
je 0x100e0c1b
push 0xd
jmp 0x100e0c14
mov ecx, dword [ebx*4 + 0x10267638]
mov al, byte [ecx + edi + 0x28]
test al, 0x40
jne 0x100e0c12
or al, 2
mov byte [ecx + edi + 0x28], al
jmp 0x100e0c1b
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 0x100e5496
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 0x100e5533
push ebx
push esi
call fcn.100e545f
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.100e3300
add esp, 0x24
mov dword [ebp - 4], eax
test eax, eax
jne 0x100e54e0
push esi
call dword [sym.imp.KERNEL32.dll_FreeEnvironmentStringsW]
xor eax, eax
jmp 0x100e5532
push edi
push eax
call fcn.100dbacc
mov edi, eax
pop ecx
push ebx
test edi, edi
jne 0x100e5500
call fcn.100d9751
pop ecx
push esi
call dword [sym.imp.KERNEL32.dll_FreeEnvironmentStringsW]
xor eax, eax
jmp 0x100e5531
push ebx
push dword [ebp - 4]
push edi
push dword [ebp - 8]
push esi
push ebx
push ebx
call fcn.100e3300
add esp, 0x20
test eax, eax
jne 0x100e551f
push edi
call fcn.100d9751
jmp 0x100e5527
push ebx
call fcn.100d9751
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 0x100e5536
Capabilities:
Query environment variable

Disassembly:
mov edi, edi
push esi
call dword [sym.imp.KERNEL32.dll_GetEnvironmentStringsW]
mov esi, eax
test esi, esi
jne 0x100e5547
pop esi
ret
push ebx
push edi
push esi
call fcn.100e545f
mov ebx, eax
sub ebx, esi
and ebx, 0xfffffffe
push ebx
call fcn.100dbacc
mov edi, eax
pop ecx
pop ecx
test edi, edi
je 0x100e556f
push ebx
push esi
push edi
call fcn.100c2e00
add esp, 0xc
push 0
call fcn.100d9751
pop ecx
push esi
call dword [sym.imp.KERNEL32.dll_FreeEnvironmentStringsW]
mov eax, edi
pop edi
pop ebx
pop esi
ret

Function at 0x100e5933
Capabilities:
Set environment variable

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
pop ebp
jmp fcn.100e5584
Function at 0x100ec021
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.100ebf9d
mov eax, dword [ebp - 0x2c]
and eax, dword [ebp - 0x28]
cmp eax, 0xffffffff
je 0x100ec199
mov eax, dword [ebp - 0x24]
and eax, dword [ebp - 0x20]
cmp eax, 0xffffffff
je 0x100ec199
mov ecx, dword [ebp - 0x18]
mov eax, dword [ebp - 0x1c]
mov dword [ebp - 8], ecx
mov dword [ebp - 4], eax
test ecx, ecx
jl 0x100ec148
jg 0x100ec07a
test eax, eax
je 0x100ec13e
push 1
push 0x1000
call fcn.100d96f4
mov esi, eax
pop ecx
pop ecx
test esi, esi
jne 0x100ec0a0
mov eax, dword [ebp + 0x14]
push 0xc
pop edi
mov byte [eax + 0x1c], 1
mov dword [eax + 0x18], edi
jmp 0x100ec135
push 0x8000
push ebx
call fcn.100ebece
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 0x100ec0cc
jg 0x100ec0c7
cmp ecx, 0x1000
jb 0x100ec0cc
mov ecx, 0x1000
push edi
push ecx
push esi
push ebx
call fcn.100de5b2
add esp, 0x10
cmp eax, 0xffffffff
je 0x100ec111
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 0x100ec0c7
jl 0x100ec0f8
test ecx, ecx
jne 0x100ec0b9
push dword [ebp - 0xc]
push ebx
call fcn.100ebece
push esi
call fcn.100d9751
add esp, 0xc
xor edi, edi
jmp 0x100ec1aa
cmp byte [edi + 0x24], 0
je 0x100ec128
cmp dword [edi + 0x20], 5
jne 0x100ec128
mov byte [edi + 0x1c], 1
mov dword [edi + 0x18], 0xd
cmp byte [edi + 0x1c], 0
je 0x100ec133
mov edi, dword [edi + 0x18]
jmp 0x100ec135
xor edi, edi
push esi
call fcn.100d9751
pop ecx
jmp 0x100ec1aa
test ecx, ecx
jg 0x100ec10a
jl 0x100ec148
test eax, eax
jae 0x100ec10a
push 0
push dword [ebp + 0x10]
push dword [ebp + 0xc]
push ebx
call fcn.100e14b4
and eax, edx
add esp, 0x10
cmp eax, 0xffffffff
jne 0x100ec16b
mov edi, dword [ebp + 0x14]
cmp byte [edi + 0x1c], 0
je 0x100ec10a
jmp 0x100ec1a2
push ebx
call fcn.100dff83
pop ecx
push eax
call dword [sym.imp.KERNEL32.dll_SetEndOfFile]
test eax, eax
jne 0x100ec10a
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 0x100ec1aa
mov edi, dword [ebp + 0x14]
cmp byte [edi + 0x1c], 0
je 0x100ec1a7
mov edi, dword [edi + 0x18]
jmp 0x100ec1aa
push 0x16
pop edi
push 0
push dword [ebp - 0x28]
push dword [ebp - 0x2c]
push dword [ebp - 0x14]
call fcn.100e14b4
add esp, 0x10
mov eax, edi
pop edi
pop esi
pop ebx
leave
ret
Function at 0x40333c
Capabilities:
Accept command line arguments
Parse pe header

Disassembly:
push 0x14
push 0x410aa0
call fcn.00406024
mov eax, 0x5a4d
cmp word [0x400000], ax
jne 0x40323d
mov eax, dword [0x40003c]
cmp dword [eax + 0x400000], 0x4550
jne 0x40323d
mov ecx, 0x10b
cmp word [eax + 0x400018], cx
jne 0x40323d
cmp dword [eax + 0x400074], 0xe
jbe 0x40323d
xor ecx, ecx
cmp dword [eax + 0x4000e8], ecx
setne cl
mov dword [ebp - 0x1c], ecx
jmp 0x403241
and dword [ebp - 0x1c], 0
push 1
call main
pop ecx
test eax, eax
jne 0x403255
push 0x1c
call main
pop ecx
call fcn.00407199
test eax, eax
jne 0x403266
push 0x10
call main
pop ecx
call fcn.00406d3d
and dword [ebp - 4], 0
call fcn.00403bed
test eax, eax
jge 0x403280
push 0x1b
call main
pop ecx
call sub.kernel32.dll_GetCommandLineW
mov dword [0x413d00], eax
call fcn.00406ce0
mov dword [0x412ff8], eax
call main
test eax, eax
jge 0x4032a5
push 8
call main
pop ecx
call fcn.00406a03
test eax, eax
jge 0x4032b6
push 9
call main
pop ecx
push 1
call main
pop ecx
test eax, eax
je 0x4032c9
push eax
call main
pop ecx
mov eax, dword [0x413340]
mov dword [0x413344], eax
push eax
push dword [0x413334]
push dword [0x41332c]
call main
add esp, 0xc
mov dword [ebp - 0x20], eax
cmp dword [ebp - 0x1c], 0
jne 0x4032f7
push eax
call main
call fcn.0040428b
jmp 0x40332c
mov dword [ebp - 4], 0xfffffffe
mov eax, dword [ebp - 0x20]
call fcn.00406069
ret
call main
jmp 0x4031eb

Function at 0x40a05b
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x38
pushal
call 0x40a06a
pop dword [ebp - 0x28]
mov eax, 0x40a06a
sub dword [ebp - 0x28], eax
push 0x40
push 0x1000
push 0x3dc48
push 0
mov eax, 0x9a8a6cdd
add eax, 0x65b67443
add eax, dword [ebp - 0x28]
call dword [eax]
mov ecx, 0xda9fa165
sub ecx, 0xda9f47f1
xor edx, edx
add edx, eax
mov ebx, 0x5986192
sub ebx, 0x556e992
add ebx, dword [ebp - 0x28]
mov edi, 0x7803d721
add dword [ebp - 0x10], ebx
mov esi, dword [ebx]
add esi, edi
xor dword [ebp - 0x14], 0x225eeb60
mov dword [edx], esi
xor dword [ebp - 0xc], esi
add edx, 0xcf0e6daa
add edx, 0x30f1925a
add ebx, 4
loop 0x40a0c0
add eax, 0x605286fa
sub eax, 0x60512e57
mov ebx, eax
add eax, 5
mov ecx, 0xe3186df4
sub ecx, 0xe2d86df4
add ecx, dword [ebp - 0x28]
call ebx
leave
ret
Function at 0x402f5c
Capabilities:
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffff4
movzx eax, word [0x459020]
mov dword [ebp - 8], eax
lea eax, [ebp - 4]
push eax
push 1
push 0
push 0x402ff4
push 0x80000002
call sub.advapi32.dll_RegOpenKeyExA
test eax, eax
jne 0x402fd4
xor eax, eax
push ebp
push 0x402fcd
push dword fs:[eax]
mov dword fs:[eax], esp
mov dword [ebp - 0xc], 4
lea eax, [ebp - 0xc]
push eax
lea eax, [ebp - 8]
push eax
push 0
push 0
push 0x403010
mov eax, dword [ebp - 4]
push eax
call sub.advapi32.dll_RegQueryValueExA
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x402fd4
mov eax, dword [ebp - 4]
push eax
call sub.advapi32.dll_RegCloseKey
ret
mov ax, word [0x459020]
and ax, 0xffc0
mov dx, word [ebp - 8]
and dx, 0x3f
or ax, dx
mov word [0x459020], ax
mov esp, ebp
pop ebp
ret

Function at 0x403d28
Capabilities:
Write file on windows

Disassembly:
push ecx
cmp byte [0x45b044], 0
je 0x403d89
cmp word [0x45b218], 0xd7b2
jne 0x403d51
cmp dword [0x45b220], 0
jbe 0x403d51
mov eax, 0x45b214
call dword [0x45b230]
push 0
lea eax, [esp + 4]
push eax
push 0x1e
push 0x45906c
push 0xfffffffffffffff5
call sub.KERNEL32.DLL_GetStdHandle
push eax
call sub.KERNEL32.DLL_WriteFile
push 0
lea eax, [esp + 4]
push eax
push 2
push 0x403db0
push 0xfffffffffffffff5
call sub.KERNEL32.DLL_GetStdHandle
push eax
call sub.KERNEL32.DLL_WriteFile
pop edx
ret
cmp byte [0x459030], 0
jne 0x403da5
push 0
push 0x459064
push 0x45906c
push 0
call sub.user32.dll_MessageBoxA_1
pop edx
ret
Function at 0x405104
Capabilities:
Get geographical location
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffee0
push ebx
push esi
mov dword [ebp - 4], eax
push 0x105
lea eax, [ebp - 0x11d]
push eax
push 0
call sub.KERNEL32.DLL_GetModuleFileNameA
mov byte [ebp - 0x12], 0
lea eax, [ebp - 8]
push eax
push 0xf0019
push 0
push 0x405334
push 0x80000001
call sub.advapi32.dll_RegOpenKeyExA
test eax, eax
je 0x405187
lea eax, [ebp - 8]
push eax
push 0xf0019
push 0
push 0x405334
push 0x80000002
call sub.advapi32.dll_RegOpenKeyExA
test eax, eax
je 0x405187
lea eax, [ebp - 8]
push eax
push 0xf0019
push 0
push 0x405350
push 0x80000001
call sub.advapi32.dll_RegOpenKeyExA
test eax, eax
jne 0x405210
xor eax, eax
push ebp
push 0x405209
push dword fs:[eax]
mov dword fs:[eax], esp
mov dword [ebp - 0x18], 5
lea eax, [ebp - 0x11d]
mov edx, 0x105
call fcn.00404f4c
lea eax, [ebp - 0x18]
push eax
lea eax, [ebp - 0x12]
push eax
push 0
push 0
lea eax, [ebp - 0x11d]
push eax
mov eax, dword [ebp - 8]
push eax
call sub.advapi32.dll_RegQueryValueExA
test eax, eax
je 0x4051ee
lea eax, [ebp - 0x18]
push eax
lea eax, [ebp - 0x12]
push eax
push 0
push 0
push 0x405370
mov eax, dword [ebp - 8]
push eax
call sub.advapi32.dll_RegQueryValueExA
test eax, eax
je 0x4051ee
mov byte [ebp - 0x12], 0
mov byte [ebp - 0xe], 0
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x405210
mov eax, dword [ebp - 8]
push eax
call sub.advapi32.dll_RegCloseKey
ret
push 0x105
mov eax, dword [ebp - 4]
push eax
lea eax, [ebp - 0x11d]
push eax
call sub.KERNEL32.DLL_lstrcpynA
push 5
lea eax, [ebp - 0xd]
push eax
push 3
call sub.KERNEL32.DLL_GetThreadLocale
push eax
call sub.KERNEL32.DLL_GetLocaleInfoA
xor esi, esi
cmp byte [ebp - 0x11d], 0
je 0x40532a
cmp byte [ebp - 0xd], 0
jne 0x405257
cmp byte [ebp - 0x12], 0
je 0x40532a
lea eax, [ebp - 0x11d]
push eax
call sub.KERNEL32.DLL_lstrlenA
mov ebx, eax
lea eax, [ebp - 0x11d]
add ebx, eax
jmp 0x405270
dec ebx
cmp byte [ebx], 0x2e
je 0x40527f
lea eax, [ebp - 0x11d]
cmp ebx, eax
jne 0x40526f
lea eax, [ebp - 0x11d]
cmp ebx, eax
je 0x40532a
inc ebx
cmp byte [ebp - 0x12], 0
je 0x4052bc
mov edx, ebx
sub edx, eax
mov eax, 0x105
sub eax, edx
push eax
lea eax, [ebp - 0x12]
push eax
push ebx
call sub.KERNEL32.DLL_lstrcpynA
push 2
push 0
lea eax, [ebp - 0x11d]
push eax
call sub.KERNEL32.DLL_LoadLibraryExA
mov esi, eax
test esi, esi
jne 0x40532a
cmp byte [ebp - 0xd], 0
je 0x40532a
lea eax, [ebp - 0x11d]
mov edx, ebx
sub edx, eax
mov eax, 0x105
sub eax, edx
push eax
lea eax, [ebp - 0xd]
push eax
push ebx
call sub.KERNEL32.DLL_lstrcpynA
push 2
push 0
lea eax, [ebp - 0x11d]
push eax
call sub.KERNEL32.DLL_LoadLibraryExA
mov esi, eax
test esi, esi
jne 0x40532a
mov byte [ebp - 0xb], 0
lea eax, [ebp - 0x11d]
mov edx, ebx
sub edx, eax
mov eax, 0x105
sub eax, edx
push eax
lea eax, [ebp - 0xd]
push eax
push ebx
call sub.KERNEL32.DLL_lstrcpynA
push 2
push 0
lea eax, [ebp - 0x11d]
push eax
call sub.KERNEL32.DLL_LoadLibraryExA
mov esi, eax
mov eax, esi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret