joyce8/EMBER2024-capa huggingface dataset:
Function at 0x1000a080
Capabilities:
Inspect section memory permissions

Disassembly:
mov edi, dword [ebp - 0x88]
mov eax, dword [ebp + 0xc]
cmp ax, word [edi + 6]
jne 0x1000a038
mov edx, dword [ebp - 0xb4]
xor ecx, ecx
mov edi, 0x60000000
jmp 0x1000a056
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 0x1000a0b4
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 0x1000a09b
or byte [eax + ecx], 1
cmp dword [ebp + 8], ebx
je 0x1000a0a4
or byte [eax + ecx], 2
cmp dword [ebp + 0x10], ebx
je 0x1000a0ae
add ecx, eax
or byte [ecx], 4
inc eax
cmp eax, dword [ebp - 0x44]
jbe 0x1000a090
inc dword [ebp + 0xc]
mov eax, dword [ebp - 0x88]
mov cx, word [ebp + 0xc]
cmp cx, word [eax + 6]
jbe 0x1000a01a
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 0x1000a101
dec eax
je 0x1000a0f8
sub eax, 3
je 0x1000a0ef
mov dword [ebp - 4], 0x40
jmp 0x1000a11e
mov dword [ebp - 4], 4
jmp 0x1000a104
mov dword [ebp - 4], 0x20
jmp 0x1000a104
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 0x1000a150
mov eax, dword [ebp - 0xac]
add dword [ebp + 8], eax
inc edi
cmp edi, dword [ebp - 0x8c]
jbe 0x1000a0d0

Function at 0x1000a4a0
Capabilities:
Contain obfuscated stackstrings

Disassembly:
test dword [ebx - 0x77000007], esp
mov byte [ebp - 0x65c], 0xb9
mov byte [ebp - 0x65b], 0x94
mov byte [ebp - 0x65a], 0x94
mov byte [ebp - 0x659], 0x97
mov byte [ebp - 0x658], 0x9b
mov byte [ebp - 0x657], 0xf8
lea eax, [ebp - 0x664]
push eax
call fcn.10009971
pop ecx
push eax
push dword [ebp + 0x18]
push dword [ebp + 0x14]
call fcn.10009926
add esp, 0xc
mov dword [ebp - 0x67c], eax
and byte [ebp - 0x524], 0
and byte [ebp - 0x523], 0
mov byte [ebp - 0x522], 0x15
and byte [ebp - 0x521], 0
mov byte [ebp - 0x520], 0xa2
mov byte [ebp - 0x51f], 0x8f
mov byte [ebp - 0x51e], 0x8b
mov byte [ebp - 0x51d], 0x9a
mov byte [ebp - 0x51c], 0xac
mov byte [ebp - 0x51b], 0x98
mov byte [ebp - 0x51a], 0x8f
mov byte [ebp - 0x519], 0x8f
mov byte [ebp - 0x518], 0xea
lea eax, [ebp - 0x524]
push eax
call fcn.10009971
pop ecx
push eax
push dword [ebp + 0x18]
push dword [ebp + 0x14]
call fcn.10009926
add esp, 0xc
mov dword [ebp - 0x39c], eax
call fcn.10009961
and ebp, eax
sbb al, 0x3f
and byte [ebp - 0x514], 0
and byte [ebp - 0x513], 0
mov byte [ebp - 0x512], 0xe3
and byte [ebp - 0x511], 0
mov byte [ebp - 0x510], 0x5b
mov byte [ebp - 0x50f], 0x79
mov byte [ebp - 0x50e], 0x68
mov byte [ebp - 0x50d], 0x5a
Function at 0x10011fd0
Capabilities:
Get number of processors

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x100436a8
mov eax, dword fs:[0]
push eax
sub esp, 0x18
push ebx
push esi
push edi
mov eax, dword [0x100a2068]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov edi, ecx
mov eax, dword [edi + 0x30]
xor edx, edx
add eax, dword [edi + 0x28]
mov dword [edi + 0x10], eax
adc edx, dword [edi + 0x2c]
mov dword [edi + 0x14], edx
call fcn.10012420
test al, al
jne 0x100120e4
push dword [edi]
lea ecx, [ebp - 0x24]
call fcn.100145b0
mov dword [ebp - 4], 0
nop dword [eax]
mov esi, dword [edi + 0x30]
cmp esi, dword [edi + 0x20]
jae 0x100120a2
mov ecx, esi
nop word [eax + eax]
mov eax, dword [edi + 0x1c]
mov bl, byte [ecx + eax]
mov byte [ebp - 0x10], bl
cmp bl, 0x3a
jne 0x10012063
push dword [ebp + 8]
lea ecx, [ebp - 0x24]
call fcn.100147d0
lea ecx, [ebp - 0x24]
call fcn.10014700
jmp 0x10012094
push dword [ebp - 0x10]
call fcn.100132e0
add esp, 4
test al, al
je 0x100120a2
mov eax, dword [ebp - 0x14]
cmp eax, dword [ebp - 0x18]
jg 0x10012088
push 0x64
lea ecx, [ebp - 0x24]
call fcn.10014710
test al, al
je 0x10012094
mov eax, dword [ebp - 0x18]
mov ecx, dword [ebp - 0x1c]
mov byte [eax + ecx], bl
inc dword [ebp - 0x18]
mov esi, dword [edi + 0x30]
inc esi
mov ecx, esi
mov dword [edi + 0x30], esi
cmp ecx, dword [edi + 0x20]
jb 0x10012040
xor ecx, ecx
mov eax, esi
add eax, dword [edi + 0x28]
mov dword [edi + 0x10], eax
adc ecx, dword [edi + 0x2c]
mov dword [edi + 0x14], ecx
cmp esi, dword [edi + 0x20]
jb 0x100120d1
mov ecx, edi
call fcn.10012420
test al, al
jne 0x100120d1
mov ecx, edi
call fcn.10012c40
test al, al
jne 0x10012030
push dword [ebp + 0xc]
lea ecx, [ebp - 0x24]
call fcn.100147d0
lea ecx, [ebp - 0x24]
call fcn.100145e0
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 8

Function at 0x10016300
Capabilities:
Hash data using sha256

Disassembly:
push ebp
mov ebp, esp
mov eax, dword [ebp + 8]
mov dword [eax], 0
mov dword [eax + 4], 0
mov dword [eax + 8], 0x6a09e667
mov dword [eax + 0xc], 0xbb67ae85
mov dword [eax + 0x10], 0x3c6ef372
mov dword [eax + 0x14], 0xa54ff53a
mov dword [eax + 0x18], 0x510e527f
mov dword [eax + 0x1c], 0x9b05688c
mov dword [eax + 0x20], 0x1f83d9ab
mov dword [eax + 0x24], 0x5be0cd19
pop ebp
ret
Function at 0x10016660
Capabilities:
Hash data using sha1

Disassembly:
push ebp
mov ebp, esp
mov eax, dword [ebp + 8]
mov dword [eax], 0x67452301
mov dword [eax + 4], 0xefcdab89
mov dword [eax + 8], 0x98badcfe
mov dword [eax + 0xc], 0x10325476
mov dword [eax + 0x10], 0xc3d2e1f0
pop ebp
ret
Function at 0x10018c80
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x44
mov eax, dword [0x100a2068]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
push esi
mov esi, dword [ebp + 8]
push edi
mov edi, dword [ebp + 0x14]
push 0x10
mov dword [ebp - 0x40], edi
lea eax, [edi + 0x3c8]
push eax
mov dword [ebp - 0x44], eax
lea eax, [ebp - 0x34]
push eax
call fcn.10013ba0
mov ebx, dword [ebp + 0x10]
add esp, 0xc
test ebx, ebx
jle 0x10018de4
mov edx, dword [ebp + 0xc]
dec ebx
add edx, 2
shr ebx, 4
add esi, 2
mov dword [ebp - 0x38], edx
inc ebx
mov dword [ebp - 0x3c], ebx
movzx ecx, byte [edx - 2]
movzx eax, byte [edx - 1]
shl ecx, 8
or ecx, eax
movzx eax, byte [edx]
shl ecx, 8
or ecx, eax
movzx eax, byte [edx + 1]
shl ecx, 8
or ecx, eax
movzx eax, byte [edx + 3]
mov dword [ebp - 0x24], ecx
mov dword [ebp - 0x14], ecx
movzx ecx, byte [edx + 2]
shl ecx, 8
or ecx, eax
movzx eax, byte [edx + 4]
shl ecx, 8
or ecx, eax
movzx eax, byte [edx + 5]
shl ecx, 8
or ecx, eax
movzx eax, byte [edx + 7]
mov dword [ebp - 0x20], ecx
mov dword [ebp - 0x10], ecx
movzx ecx, byte [edx + 6]
shl ecx, 8
or ecx, eax
movzx eax, byte [edx + 8]
shl ecx, 8
or ecx, eax
movzx eax, byte [edx + 9]
shl ecx, 8
or ecx, eax
movzx eax, byte [edx + 0xb]
mov dword [ebp - 0x1c], ecx
mov dword [ebp - 0xc], ecx
movzx ecx, byte [edx + 0xa]
shl ecx, 8
or ecx, eax
movzx eax, byte [edx + 0xc]
shl ecx, 8
or ecx, eax
movzx eax, byte [edx + 0xd]
shl ecx, 8
or ecx, eax
lea eax, [ebp - 0x14]
push eax
push edi
mov dword [ebp - 0x18], ecx
mov dword [ebp - 8], ecx
call fcn.10018c60
add esp, 8
xor edi, edi
nop word [eax + eax]
mov al, byte [ebp + edi - 0x34]
xor al, byte [ebp + edi - 0x14]
mov edx, dword [ebp + edi - 0x34]
mov ebx, dword [ebp + edi - 0x14]
mov ecx, ebx
mov byte [esi + 1], al
mov eax, edx
shr ecx, 8
shr eax, 8
xor cl, al
mov eax, edx
mov byte [esi], cl
mov ecx, ebx
shr eax, 0x10
shr ecx, 0x10
xor cl, al
shr ebx, 0x18
mov eax, dword [ebp + edi - 0x24]
shr edx, 0x18
xor bl, dl
mov dword [ebp + edi - 0x34], eax
mov byte [esi - 1], cl
add edi, 4
mov byte [esi - 2], bl
add esi, 4
cmp edi, 0x10
jl 0x10018d80
mov edx, dword [ebp - 0x38]
mov edi, dword [ebp - 0x40]
add edx, 0x10
sub dword [ebp - 0x3c], 1
mov dword [ebp - 0x38], edx
jne 0x10018cd3
push 0x10
lea eax, [ebp - 0x34]
push eax
push dword [ebp - 0x44]
call fcn.10013ba0
mov ecx, dword [ebp - 4]
add esp, 0xc
xor ecx, ebp
pop edi
pop esi
pop ebx
call fcn.1000de54
mov esp, ebp
pop ebp
ret
Function at 0x10019a90
Capabilities:
Encode data using add xor sub operations
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x1c
mov eax, dword [0x100a2068]
xor eax, ebp
mov dword [ebp - 4], eax
mov eax, dword [ebp + 0x14]
push ebx
push esi
mov esi, dword [ebp + 8]
mov dword [ebp - 0x1c], eax
add eax, 0x3c8
push 0x10
push eax
lea eax, [ebp - 0x14]
mov dword [ebp - 0x18], esi
push eax
call fcn.10013ba0
mov ebx, dword [ebp + 0x10]
add esp, 0xc
test ebx, ebx
jle 0x10019c12
mov eax, dword [ebp + 0xc]
dec ebx
mov edx, dword [ebp - 8]
add esi, 2
push edi
shr ebx, 4
lea edi, [eax + 2]
sub eax, dword [ebp - 0x18]
add eax, 0xfffffffe
inc ebx
mov dword [ebp - 0x18], eax
nop dword [eax + eax]
movzx ecx, byte [esi + eax]
movzx eax, byte [edi - 1]
shl ecx, 8
or ecx, eax
movzx eax, byte [edi]
shl ecx, 8
or ecx, eax
movzx eax, byte [edi + 1]
shl ecx, 8
or ecx, eax
movzx eax, byte [edi + 3]
xor dword [ebp - 0x14], ecx
movzx ecx, byte [edi + 2]
shl ecx, 8
or ecx, eax
movzx eax, byte [edi + 4]
shl ecx, 8
or ecx, eax
movzx eax, byte [edi + 5]
shl ecx, 8
or ecx, eax
movzx eax, byte [edi + 7]
xor dword [ebp - 0x10], ecx
movzx ecx, byte [edi + 6]
shl ecx, 8
or ecx, eax
movzx eax, byte [edi + 8]
shl ecx, 8
or ecx, eax
movzx eax, byte [edi + 9]
shl ecx, 8
or ecx, eax
movzx eax, byte [edi + 0xb]
xor dword [ebp - 0xc], ecx
movzx ecx, byte [edi + 0xa]
shl ecx, 8
or ecx, eax
movzx eax, byte [edi + 0xc]
shl ecx, 8
or ecx, eax
movzx eax, byte [edi + 0xd]
shl ecx, 8
or ecx, eax
lea eax, [ebp - 0x14]
push eax
push dword [ebp - 0x1c]
xor edx, ecx
mov dword [ebp - 8], edx
call fcn.10019a70
mov ecx, dword [ebp - 0x14]
add esp, 8
mov eax, ecx
mov byte [esi + 1], cl
shr eax, 8
mov byte [esi], al
mov eax, ecx
shr eax, 0x10
mov byte [esi - 1], al
mov eax, ecx
mov ecx, dword [ebp - 0x10]
shr eax, 0x18
mov byte [esi - 2], al
mov eax, ecx
shr eax, 8
mov byte [esi + 4], al
mov eax, ecx
shr eax, 0x10
mov byte [esi + 3], al
mov eax, ecx
shr eax, 0x18
mov byte [esi + 2], al
mov byte [esi + 5], cl
mov ecx, dword [ebp - 0xc]
mov eax, ecx
shr eax, 8
mov byte [esi + 8], al
mov eax, ecx
shr eax, 0x10
mov byte [esi + 7], al
mov eax, ecx
mov byte [esi + 9], cl
mov edx, dword [ebp - 8]
lea edi, [edi + 0x10]
shr eax, 0x18
lea esi, [esi + 0x10]
mov byte [esi - 0xa], al
mov eax, edx
shr eax, 8
mov byte [esi - 4], al
mov eax, edx
shr eax, 0x10
mov byte [esi - 5], al
mov eax, edx
shr eax, 0x18
mov byte [esi - 6], al
mov eax, dword [ebp - 0x18]
mov byte [esi - 3], dl
sub ebx, 1
jne 0x10019af0
pop edi
push 0x10
lea eax, [ebp - 0x14]
push eax
mov eax, dword [ebp - 0x1c]
add eax, 0x3c8
push eax
call fcn.10013ba0
mov ecx, dword [ebp - 4]
add esp, 0xc
xor ecx, ebp
pop esi
pop ebx
call fcn.1000de54
mov esp, ebp
pop ebp
ret
Function at 0x100238af
Capabilities:
Allocate thread local storage

Disassembly:
push ebp
mov ebp, esp
push esi
push 0x10090df4
push 0x10090dec
push str.FlsAlloc
push 0
call fcn.10023828
mov esi, eax
add esp, 0x10
test esi, esi
je 0x100238e1
push dword [ebp + 8]
mov ecx, esi
call fcn.1000e8c2
call esi
pop esi
pop ebp
ret
pop esi
pop ebp
jmp dword [sym.imp.KERNEL32.dll_TlsAlloc]

Function at 0x10023923
Capabilities:
Get thread local storage value

Disassembly:
push ebp
mov ebp, esp
push esi
push 0x10090e04
push 0x10090dfc
push str.FlsGetValue
push 2
call fcn.10023828
add esp, 0x10
mov esi, eax
push dword [ebp + 8]
test esi, esi
je 0x10023954
mov ecx, esi
call fcn.1000e8c2
call esi
jmp 0x1002395a
call dword [sym.imp.KERNEL32.dll_TlsGetValue]
pop esi
pop ebp
ret

Function at 0x1002395d
Capabilities:
Set thread local storage value

Disassembly:
push ebp
mov ebp, esp
push esi
push 0x10090e0c
push 0x10090e04
push str.FlsSetValue
push 3
call fcn.10023828
add esp, 0x10
mov esi, eax
push dword [ebp + 0xc]
push dword [ebp + 8]
test esi, esi
je 0x10023991
mov ecx, esi
call fcn.1000e8c2
call esi
jmp 0x10023997
call dword [sym.imp.KERNEL32.dll_TlsSetValue]
pop esi
pop ebp
ret

Function at 0x10035216
Capabilities:
Read file on windows

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
pop ebp
jmp fcn.10035093
Function at 0x468b3c
Capabilities:
Get common file path
Set current directory

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
pop ebp
jmp fcn.004689b3

Function at 0x401024
Capabilities:
Get common file path

Disassembly:
push edi
sub esp, 0x200
push esp
pop edi
push 0x100
push edi
call sub.KERNEL32.dll_GetSystemDirectoryA
lea edx, [edi + 0x7c]
xor ecx, ecx
push ecx
push ecx
push ecx
push edx
push ecx
push edi
add edi, eax
mov eax, 0x69636d5c
stosd dword es:[edi], eax
mov eax, 0x65766177
stosd dword es:[edi], eax
mov eax, 0x6c6c642e
stosd dword es:[edi], eax
xor eax, eax
stosd dword es:[edi], eax
call sub.KERNEL32.dll_FindFirstFileExA
add esp, 0x200
pop edi
cmp eax, 1
jg 0x40106c
ret
pushal
jmp fcn.0040128c

Function at 0x401384
Capabilities:
Accept command line arguments

Disassembly:
mov edi, edi
push ebp
push eax
call sub.KERNEL32.dll_GetCommandLineA
pop eax
push eax
push ebx
push edx
call fcn.0040166c
pop eax
push eax
mov esi, 0x19
push esi
call sub.KERNEL32.dll_Sleep
pop eax
pop ebp
ret 0x10
Function at 0x401e64
Capabilities:
Get thread local storage value

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffff8
push ebx
push esi
push edi
mov ebx, eax
cmp byte [0x4965ac], 0
jne 0x401e81
call fcn.00401778
test al, al
je 0x401e89
cmp ebx, 0x7ffffff8
jle 0x401e93
xor eax, eax
mov dword [ebp - 4], eax
jmp 0x401fe7
xor ecx, ecx
push ebp
push 0x401fe0
push dword fs:[ecx]
mov dword fs:[ecx], esp
cmp byte [0x496035], 0
je 0x401eb4
push 0x4965b4
call sub.KERNEL32.DLL_LocalAlloc
add ebx, 7
and ebx, 0xfffffffc
cmp ebx, 0xc
jge 0x401ec4
mov ebx, 0xc
cmp ebx, 0x1000
jg 0x401f63
mov eax, ebx
test eax, eax
jns 0x401ed9
add eax, 3
sar eax, 2
mov edx, dword [0x49660c]
mov edx, dword [edx + eax*4 - 0xc]
test edx, edx
je 0x401f63
mov esi, edx
mov eax, esi
add eax, ebx
and dword [eax], 0xfffffffe
mov eax, dword [edx + 4]
cmp edx, eax
jne 0x401f14
mov eax, ebx
test eax, eax
jns 0x401f03
add eax, 3
sar eax, 2
mov ecx, dword [0x49660c]
xor edi, edi
mov dword [ecx + eax*4 - 0xc], edi
jmp 0x401f3a
mov ecx, ebx
test ecx, ecx
jns 0x401f1d
add ecx, 3
sar ecx, 2
mov edi, dword [0x49660c]
mov dword [edi + ecx*4 - 0xc], eax
mov ecx, dword [edx]
mov dword [ebp - 8], ecx
mov ecx, dword [ebp - 8]
mov dword [ecx + 4], eax
mov ecx, dword [ebp - 8]
mov dword [eax], ecx
mov eax, esi
mov edx, dword [edx + 8]
or edx, 2
mov dword [eax], edx
add eax, 4
mov dword [ebp - 4], eax
inc dword [0x49659c]
sub ebx, 4
add dword [0x4965a0], ebx
call fcn.00402a94
jmp 0x401fe7
cmp ebx, dword [0x496604]
jg 0x401fb5
sub dword [0x496604], ebx
cmp dword [0x496604], 0xc
jge 0x401f87
add ebx, dword [0x496604]
xor eax, eax
mov dword [0x496604], eax
mov eax, dword [0x496608]
add dword [0x496608], ebx
mov edx, ebx
or edx, 2
mov dword [eax], edx
add eax, 4
mov dword [ebp - 4], eax
inc dword [0x49659c]
sub ebx, 4
add dword [0x4965a0], ebx
call fcn.00402a94
jmp 0x401fe7
mov eax, ebx
call fcn.00401d70
mov dword [ebp - 4], eax
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x401fe7
cmp byte [0x496035], 0
je 0x401fdf
push 0x4965b4
call sub.KERNEL32.DLL_TlsGetValue
ret
mov eax, dword [ebp - 4]
pop edi
pop esi
pop ebx
pop ecx
pop ecx
pop ebp
ret
Function at 0x401ff4
Capabilities:
Get thread local storage value

Disassembly:
push ebp
mov ebp, esp
push ecx
push ebx
push esi
push edi
mov ebx, eax
xor eax, eax
mov dword [0x4965b0], eax
cmp byte [0x4965ac], 0
jne 0x40202c
call fcn.00401778
test al, al
jne 0x40202c
mov dword [0x4965b0], 8
mov dword [ebp - 4], 8
jmp 0x40218d
xor ecx, ecx
push ebp
push 0x402186
push dword fs:[ecx]
mov dword fs:[ecx], esp
cmp byte [0x496035], 0
je 0x40204d
push 0x4965b4
call sub.KERNEL32.DLL_LocalAlloc
mov esi, ebx
sub esi, 4
mov ebx, dword [esi]
test bl, 2
jne 0x402068
mov dword [0x4965b0], 9
jmp 0x40215d
dec dword [0x49659c]
mov eax, ebx
and eax, 0x7ffffffc
sub eax, 4
sub dword [0x4965a0], eax
test bl, 1
je 0x4020c8
mov eax, esi
sub eax, 0xc
mov edx, dword [eax + 8]
cmp edx, 0xc
jl 0x402098
test edx, 0x80000003
je 0x4020a7
mov dword [0x4965b0], 0xa
jmp 0x40215d
mov eax, esi
sub eax, edx
cmp edx, dword [eax + 8]
je 0x4020bf
mov dword [0x4965b0], 0xa
jmp 0x40215d
add ebx, edx
mov esi, eax
call fcn.0040191c
and ebx, 0x7ffffffc
mov eax, esi
add eax, ebx
mov edi, eax
cmp edi, dword [0x496608]
jne 0x402108
sub dword [0x496608], ebx
add dword [0x496604], ebx
cmp dword [0x496604], 0x3c00
jle 0x4020f9
call fcn.00401c0c
xor eax, eax
mov dword [ebp - 4], eax
call fcn.00402a94
jmp 0x40218d
mov edx, dword [eax]
test dl, 2
je 0x40212b
and edx, 0x7ffffffc
cmp edx, 4
jge 0x402126
mov dword [0x4965b0], 0xb
jmp 0x40215d
or dword [eax], 1
jmp 0x402154
mov eax, edi
cmp dword [eax + 4], 0
je 0x40213e
cmp dword [eax], 0
je 0x40213e
cmp dword [eax + 8], 0xc
jge 0x40214a
mov dword [0x4965b0], 0xb
jmp 0x40215d
mov edx, dword [eax + 8]
add ebx, edx
call fcn.0040191c
mov edx, ebx
mov eax, esi
call fcn.00401b84
mov eax, dword [0x4965b0]
mov dword [ebp - 4], eax
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x40218d
cmp byte [0x496035], 0
je 0x402185
push 0x4965b4
call sub.KERNEL32.DLL_TlsGetValue
ret
mov eax, dword [ebp - 4]
pop edi
pop esi
pop ebx
pop ecx
pop ebp
ret

Function at 0x4026e0
Capabilities:
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffff4
movzx eax, word [0x49300c]
mov dword [ebp - 8], eax
lea eax, [ebp - 4]
push eax
push 1
push 0
push 0x402778
push 0x80000002
call sub.advapi32.dll_RegOpenKeyExA
test eax, eax
jne 0x402758
xor eax, eax
push ebp
push 0x402751
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 0x402794
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 0x402758
mov eax, dword [ebp - 4]
push eax
call sub.advapi32.dll_RegCloseKey
ret
mov ax, word [0x49300c]
and ax, 0xffc0
mov dx, word [ebp - 8]
and dx, 0x3f
or ax, dx
mov word [0x49300c], ax
mov esp, ebp
pop ebp
ret
Function at 0x402dc0
Capabilities:
Accept command line arguments

Disassembly:
push ecx
cmp byte [0x496034], 0
je 0x402e21
cmp word [0x496208], 0xd7b2
jne 0x402de9
cmp dword [0x496210], 0
jbe 0x402de9
mov eax, 0x496204
call dword [0x496220]
push 0
lea eax, [esp + 4]
push eax
push 0x1e
push 0x493054
push 0xfffffffffffffff5
call sub.KERNEL32.DLL_UnhandledExceptionFilter
push eax
call sub.KERNEL32.DLL_GetCommandLineA
push 0
lea eax, [esp + 4]
push eax
push 2
push 0x402e48
push 0xfffffffffffffff5
call sub.KERNEL32.DLL_UnhandledExceptionFilter
push eax
call sub.KERNEL32.DLL_GetCommandLineA
pop edx
ret
cmp byte [0x493018], 0
jne 0x402e3d
push 0
push 0x49304c
push 0x493054
push 0
call sub.user32.dll_MessageBoxA
pop edx
ret

Function at 0x402e4c
Capabilities:
Get geographical location

Disassembly:
push ebx
push esi
push edi
push ebp
mov ebx, 0x496620
mov esi, section.DATA
mov edi, 0x496030
cmp byte [ebx + 0x28], 0
jne 0x402e7b
cmp dword [edi], 0
je 0x402e7b
mov edx, dword [edi]
mov eax, edx
xor edx, edx
mov dword [edi], edx
mov ebp, eax
call ebp
cmp dword [edi], 0
jne 0x402e6a
cmp dword [0x493004], 0
je 0x402e95
call fcn.00402d34
call fcn.00402dc0
xor eax, eax
mov dword [0x493004], eax
cmp byte [ebx + 0x28], 2
jne 0x402ea5
cmp dword [esi], 0
jne 0x402ea5
xor eax, eax
mov dword [ebx + 0xc], eax
call fcn.00402c34
cmp byte [ebx + 0x28], 1
jbe 0x402eb5
cmp dword [esi], 0
je 0x402ed6
mov eax, dword [ebx + 0x10]
test eax, eax
je 0x402ed6
call fcn.00403210
mov edx, dword [ebx + 0x10]
mov eax, dword [edx + 0x10]
cmp eax, dword [edx + 4]
je 0x402ed6
test eax, eax
je 0x402ed6
push eax
call sub.KERNEL32.DLL_GetStartupInfoA
call fcn.00402c0c
cmp byte [ebx + 0x28], 1
jne 0x402ee4
call dword [ebx + 0x24]
cmp byte [ebx + 0x28], 0
je 0x402eef
call fcn.00402d90
cmp dword [ebx], 0
jne 0x402f0b
cmp dword [0x496018], 0
je 0x402f03
call dword [0x496018]
mov eax, dword [esi]
push eax
call sub.KERNEL32.DLL_GetLocaleInfoA
mov eax, dword [ebx]
push esi
mov esi, eax
mov edi, ebx
mov ecx, 0xb
rep movsd dword es:[edi], dword [esi]
pop esi
jmp 0x402e95

Function at 0x40360c
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffff8
push ebx
push esi
push edi
mov dword [ebp - 8], ecx
mov edi, edx
mov dword [ebp - 4], eax
mov eax, dword [ebp - 4]
call fcn.004030dc
xor eax, eax
push ebp
push 0x403687
push dword fs:[eax]
mov dword fs:[eax], esp
mov eax, dword [ebp - 4]
call fcn.00403048
mov esi, eax
test esi, esi
jle 0x403666
mov ebx, 1
mov eax, dword [ebp - 4]
mov al, byte [eax + ebx - 1]
call fcn.00403604
xor eax, edi
push eax
lea eax, [ebp - 4]
call fcn.00403130
pop edx
mov byte [eax + ebx - 1], dl
inc ebx
dec esi
jne 0x403646
mov eax, dword [ebp - 8]
mov edx, dword [ebp - 4]
call fcn.00402f90
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x40368e
lea eax, [ebp - 4]
call fcn.00402f3c
ret

Function at 0x403698
Capabilities:
Encode data using xor

Disassembly:
inc edx
test edx, edx
jl 0x4036a4
inc edx
xor byte [eax], cl
inc eax
dec edx
jne 0x40369e
ret
Function at 0x401000
Capabilities:
Set file attributes
Timestomp file

Disassembly:
sub esp, 0x18
push esi
push edi
mov edi, dword [esp + 0x24]
push 0
push 0x2000000
push 3
push 0
push 3
push 0xc0000000
push edi
call dword [sym.imp.KERNEL32.dll_CreateFileA]
mov esi, eax
cmp esi, 0xffffffff
jne 0x401031
pop edi
xor eax, eax
pop esi
add esp, 0x18
ret
xor edx, edx
mov eax, 0x7da
mov word [esp + 0x10], ax
mov word [esp + 0x14], dx
mov eax, 0x15
mov ecx, 0xb
mov word [esp + 0x16], ax
mov edx, 7
mov word [esp + 0x12], cx
mov word [esp + 0x1a], dx
mov eax, 5
mov ecx, 0x12
lea edx, [esp + 8]
mov word [esp + 0x1c], ax
mov word [esp + 0x18], cx
push edx
lea eax, [esp + 0x14]
xor ecx, ecx
push eax
mov word [esp + 0x26], cx
call dword [sym.imp.KERNEL32.dll_SystemTimeToFileTime]
lea ecx, [esp + 8]
push ecx
mov edx, ecx
push edx
call dword [sym.imp.KERNEL32.dll_LocalFileTimeToFileTime]
lea eax, [esp + 8]
push eax
push 0
mov ecx, eax
push ecx
push esi
call dword [sym.imp.KERNEL32.dll_SetFileTime]
push esi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
push 2
push edi
call dword [sym.imp.KERNEL32.dll_SetFileAttributesA]
pop edi
mov eax, 1
pop esi
add esp, 0x18
ret

Function at 0x4010d0
Capabilities:
Get common file path

Disassembly:
push 0x104
push 0x403238
call dword [sym.imp.KERNEL32.dll_GetWindowsDirectoryA]
xor eax, eax
mov cl, byte [eax + 0x403238]
mov byte [eax + 0x403130], cl
inc eax
test cl, cl
jne 0x4010e2
push esi
push edi
mov edi, 0x403130
dec edi
jmp 0x401100
mov al, byte [edi + 1]
inc edi
test al, al
jne 0x401100
mov ax, word [0x402148]
mov word [edi], ax
mov eax, dword [section..data]
mov ecx, eax
mov dl, byte [eax]
inc eax
test dl, dl
jne 0x401118
mov edi, 0x403130
sub eax, ecx
mov esi, ecx
dec edi
lea esp, [esp]
mov cl, byte [edi + 1]
inc edi
test cl, cl
jne 0x401130
mov ecx, eax
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
push 1
mov ecx, eax
and ecx, 3
push 0x403130
push 0x67
rep movsb byte es:[edi], byte [esi]
call fcn.004014c0
add esp, 0xc
pop edi
pop esi
test eax, eax
je 0x401168
push 0x403130
call fcn.00401000
pop ecx
ret