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

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x1c
mov eax, dword [ebp + 8]
mov ecx, eax
push ebx
mov ebx, dword [ebp + 0xc]
and eax, 0x3f
push esi
sar ecx, 6
push edi
imul edi, eax, 0x38
mov dword [ebp - 8], ecx
mov eax, dword [ecx*4 + 0x100b7308]
push 0xa
pop edx
mov dword [ebp - 0x18], edx
mov ecx, dword [eax + edi + 0x18]
mov dword [ebp - 0x1c], ecx
mov ecx, dword [ebp + 0x10]
test ecx, ecx
je 0x10050c82
cmp word [ebx], dx
jne 0x10050c82
or byte [eax + edi + 0x28], 4
jmp 0x10050c87
and byte [eax + edi + 0x28], 0xfb
lea edx, [ebx + ecx*2]
mov eax, ebx
mov dword [ebp - 0xc], edx
mov esi, ebx
mov dword [ebp - 4], eax
cmp ebx, edx
jae 0x10050dea
mov dword [ebp - 0x10], 0xd
movzx ecx, word [eax]
mov edx, ecx
mov dword [ebp - 0x14], edx
mov edx, dword [ebp - 0xc]
cmp ecx, 0x1a
je 0x10050dca
add eax, 2
cmp cx, word [ebp - 0x10]
je 0x10050cc8
mov dword [ebp - 4], eax
mov word [esi], cx
jmp 0x10050cfe
cmp eax, edx
jae 0x10050d0c
movzx eax, word [eax]
xor ecx, ecx
cmp ax, word [ebp - 0x18]
mov edx, eax
push 0xa
sete cl
xor eax, eax
lea ecx, [ecx*2 + 2]
add dword [ebp - 4], ecx
pop ecx
cmp dx, cx
mov edx, dword [ebp - 0xc]
sete al
dec eax
and eax, 3
add eax, ecx
mov word [esi], ax
mov eax, dword [ebp - 4]
push 2
pop ecx
add esi, ecx
cmp eax, edx
jb 0x10050ca3
jmp 0x10050dea
push 0
lea eax, [ebp - 0x18]
push eax
push 2
lea eax, [ebp - 4]
push eax
push dword [ebp - 0x1c]
call dword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
je 0x10050dc5
cmp dword [ebp - 0x18], 0
je 0x10050dc5
mov edx, dword [ebp - 8]
push 0xa
mov eax, dword [edx*4 + 0x100b7308]
test byte [eax + edi + 0x28], 0x48
je 0x10050d9b
lea eax, [esi + 2]
mov dword [ebp - 0x1c], eax
mov ax, word [ebp - 4]
pop ecx
mov word [ebp - 2], ax
cmp ax, cx
jne 0x10050d5f
mov word [esi], cx
jmp 0x10050d96
push 0xd
pop ecx
mov word [esi], cx
movzx ecx, ax
mov eax, dword [edx*4 + 0x100b7308]
mov dx, word [ebp - 2]
shr ecx, 8
push 0xa
mov byte [eax + edi + 0x2a], dl
mov edx, dword [ebp - 8]
mov eax, dword [edx*4 + 0x100b7308]
mov byte [eax + edi + 0x2b], cl
mov eax, dword [edx*4 + 0x100b7308]
pop ecx
mov byte [eax + edi + 0x2c], cl
mov esi, dword [ebp - 0x1c]
jmp 0x10050dea
pop eax
cmp word [ebp - 4], ax
jne 0x10050dab
cmp esi, ebx
jne 0x10050dab
mov word [esi], ax
jmp 0x10050de7
push 1
push 0xffffffffffffffff
push 0xfffffffffffffffe
push dword [ebp + 8]
call fcn.10050859
add esp, 0x10
push 0xa
pop eax
cmp word [ebp - 4], ax
je 0x10050dea
push 0xd
pop eax
jmp 0x10050da6
mov edx, dword [ebp - 8]
mov edx, dword [edx*4 + 0x100b7308]
mov al, byte [edx + edi + 0x28]
test al, 0x40
jne 0x10050de4
or al, 2
mov byte [edx + edi + 0x28], al
jmp 0x10050dea
mov word [esi], cx
add esi, 2
sub esi, ebx
and esi, 0xfffffffe
pop edi
mov eax, esi
pop esi
pop ebx
leave
ret
Function at 0x1005404e
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 0x100540eb
push ebx
push esi
call fcn.10054017
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.1004e7b4
add esp, 0x24
mov dword [ebp - 4], eax
test eax, eax
jne 0x10054098
push esi
call dword [sym.imp.KERNEL32.dll_FreeEnvironmentStringsW]
xor eax, eax
jmp 0x100540ea
push edi
push eax
call fcn.1004c63c
mov edi, eax
pop ecx
push ebx
test edi, edi
jne 0x100540b8
call fcn.1004c602
pop ecx
push esi
call dword [sym.imp.KERNEL32.dll_FreeEnvironmentStringsW]
xor eax, eax
jmp 0x100540e9
push ebx
push dword [ebp - 4]
push edi
push dword [ebp - 8]
push esi
push ebx
push ebx
call fcn.1004e7b4
add esp, 0x20
test eax, eax
jne 0x100540d7
push edi
call fcn.1004c602
jmp 0x100540df
push ebx
call fcn.1004c602
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 0x100540ee
Capabilities:
Query environment variable

Disassembly:
mov edi, edi
push esi
call dword [sym.imp.KERNEL32.dll_GetEnvironmentStringsW]
mov esi, eax
test esi, esi
jne 0x100540ff
pop esi
ret
push ebx
push edi
push esi
call fcn.10054017
mov ebx, eax
sub ebx, esi
and ebx, 0xfffffffe
push ebx
call fcn.1004c63c
mov edi, eax
pop ecx
pop ecx
test edi, edi
je 0x10054127
push ebx
push esi
push edi
call fcn.1003c0f0
add esp, 0xc
push 0
call fcn.1004c602
pop ecx
push esi
call dword [sym.imp.KERNEL32.dll_FreeEnvironmentStringsW]
mov eax, edi
pop edi
pop ebx
pop esi
ret

Function at 0x10054881
Capabilities:
Set environment variable

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
pop ebp
jmp fcn.1005439c

Function at 0x10056d25
Capabilities:
Get geographical location

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push ecx
push esi
push edi
call fcn.10049f3d
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 0x10056d94
cmp esi, dword [ebp - 4]
je 0x10056d8f
cmp dword [ebp + 0xc], 0
je 0x10056d8f
mov esi, dword [edi + 0x50]
lea ecx, [esi + 2]
mov ax, word [esi]
add esi, 2
test ax, ax
jne 0x10056d6c
push dword [edi + 0x50]
sub esi, ecx
sar esi, 1
call fcn.10056877
pop ecx
xor ecx, ecx
cmp eax, esi
setne cl
mov eax, ecx
jmp 0x10056d96
xor eax, eax
inc eax
jmp 0x10056d96
xor eax, eax
pop edi
pop esi
leave
ret
Function at 0x10056dfb
Capabilities:
Get geographical location

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x18
mov eax, dword [0x1005e080]
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.10049f3d
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.10049f3d
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 0x10056e72
cmp word [ecx], dx
je 0x10056e72
mov eax, dword [0x100be36c]
push edi
dec eax
push eax
push 0x100be258
call fcn.10056d9a
mov eax, dword [ebp - 0x14]
add esp, 0xc
xor edx, edx
mov dword [ebp - 0x10], edx
mov eax, dword [eax]
test eax, eax
je 0x10056ee5
cmp word [eax], dx
je 0x10056ee5
mov eax, dword [edi]
test eax, eax
je 0x10056e96
cmp word [eax], dx
je 0x10056e96
lea eax, [ebp - 0x10]
push eax
call fcn.1005677d
jmp 0x10056e9f
lea eax, [ebp - 0x10]
push eax
call fcn.10056818
cmp dword [ebp - 0x10], 0
pop ecx
jne 0x10056f0f
mov eax, dword [0x100be254]
push dword [ebp - 0x14]
dec eax
push eax
push 0x100bdf48
call fcn.10056d9a
add esp, 0xc
test al, al
je 0x10056f0f
mov eax, dword [edi]
xor edi, edi
test eax, eax
je 0x10056eda
cmp word [eax], di
je 0x10056eda
lea eax, [ebp - 0x10]
push eax
call fcn.1005677d
pop ecx
jmp 0x10056f11
lea eax, [ebp - 0x10]
push eax
call fcn.10056818
jmp 0x10056ed7
mov eax, dword [edi]
test eax, eax
je 0x10056efc
cmp word [eax], dx
je 0x10056efc
lea eax, [ebp - 0x10]
push eax
call fcn.10056732
pop ecx
jmp 0x10056f0f
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 0x10056fda
lea eax, [ebp - 0x10]
push eax
lea eax, [esi + 0x100]
neg esi
sbb esi, esi
and esi, eax
push esi
call fcn.10056c1f
mov esi, eax
pop ecx
pop ecx
test esi, esi
je 0x10056fda
movzx ecx, si
push ecx
call dword [sym.imp.KERNEL32.dll_IsValidCodePage]
test eax, eax
je 0x10056fda
push 1
push dword [ebp - 0xc]
call dword [sym.imp.KERNEL32.dll_IsValidLocale]
test eax, eax
je 0x10056fda
mov eax, dword [ebp - 0x18]
test eax, eax
je 0x10056f67
mov dword [eax], esi
mov eax, dword [ebp - 0x14]
push edi
push 0x55
add eax, 0x250
push eax
push dword [ebp - 0xc]
call fcn.1004cf3e
test ebx, ebx
je 0x10056fd5
push edi
push 0x55
lea eax, [ebx + 0x120]
push eax
push dword [ebp - 0xc]
call fcn.1004cf3e
push 0x40
push ebx
push 0x1001
push dword [ebp - 0xc]
call dword [sym.imp.KERNEL32.dll_GetLocaleInfoW]
test eax, eax
je 0x10056fda
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 0x10056fda
push 0xa
push 0x10
lea ecx, [ebx + 0x100]
push ecx
push esi
call fcn.100596d9
add esp, 0x10
xor eax, eax
inc eax
jmp 0x10056fdc
xor eax, eax
mov ecx, dword [ebp - 4]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.1003b07e
leave
ret
Function at 0x10059fc1
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.10059f3d
mov eax, dword [ebp - 0x2c]
and eax, dword [ebp - 0x28]
cmp eax, 0xffffffff
je 0x1005a130
mov eax, dword [ebp - 0x24]
and eax, dword [ebp - 0x20]
cmp eax, 0xffffffff
je 0x1005a130
mov ecx, dword [ebp - 0x18]
mov eax, dword [ebp - 0x1c]
mov dword [ebp - 8], ecx
mov dword [ebp - 4], eax
test ecx, ecx
jl 0x1005a0e5
jg 0x1005a01d
test eax, eax
je 0x1005a0db
push 1
push 0x1000
call fcn.10049a42
mov esi, eax
pop ecx
pop ecx
test esi, esi
jne 0x1005a040
push 0xc
pop ebx
mov byte [edi + 0x1c], 1
mov dword [edi + 0x18], ebx
jmp 0x1005a0d2
push 0x8000
push ebx
call fcn.10059e6e
pop ecx
pop ecx
mov ecx, dword [ebp - 0x1c]
mov dword [ebp - 0xc], eax
mov eax, dword [ebp - 0x18]
test eax, eax
jl 0x1005a069
jg 0x1005a064
cmp ecx, 0x1000
jb 0x1005a069
mov ecx, 0x1000
push edi
push ecx
push esi
push ebx
call fcn.1004c3e6
add esp, 0x10
cmp eax, 0xffffffff
je 0x1005a0ae
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 0x1005a064
jl 0x1005a095
test ecx, ecx
jne 0x1005a056
push dword [ebp - 0xc]
push ebx
call fcn.10059e6e
push esi
call fcn.1004c602
add esp, 0xc
xor ebx, ebx
jmp 0x1005a13e
cmp byte [edi + 0x24], 0
je 0x1005a0c5
cmp dword [edi + 0x20], 5
jne 0x1005a0c5
mov byte [edi + 0x1c], 1
mov dword [edi + 0x18], 0xd
cmp byte [edi + 0x1c], 0
je 0x1005a0d0
mov ebx, dword [edi + 0x18]
jmp 0x1005a0d2
xor ebx, ebx
push esi
call fcn.1004c602
pop ecx
jmp 0x1005a13e
test ecx, ecx
jg 0x1005a0a7
jl 0x1005a0e5
test eax, eax
jae 0x1005a0a7
push 0
push dword [ebp + 0x10]
push dword [ebp + 0xc]
push ebx
call fcn.10050859
and eax, edx
add esp, 0x10
cmp eax, 0xffffffff
jne 0x1005a105
cmp byte [edi + 0x1c], 0
je 0x1005a0a7
jmp 0x1005a136
push ebx
call fcn.100573b5
pop ecx
push eax
call dword [sym.imp.KERNEL32.dll_SetEndOfFile]
test eax, eax
jne 0x1005a0a7
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 0x1005a13e
cmp byte [edi + 0x1c], 0
je 0x1005a13b
mov ebx, dword [edi + 0x18]
jmp 0x1005a13e
push 0x16
pop ebx
push 0
push dword [ebp - 0x28]
push dword [ebp - 0x2c]
push dword [ebp - 0x14]
call fcn.10050859
add esp, 0x10
mov eax, ebx
pop edi
pop esi
pop ebx
leave
ret

Function at 0x1005b3d0
Capabilities:
Parse pe header

Disassembly:
push ebp
mov ebp, esp
mov eax, dword [ebp + 8]
mov ecx, 0x5a4d
cmp word [eax], cx
jne 0x1005b3fd
mov ecx, dword [eax + 0x3c]
add ecx, eax
cmp dword [ecx], 0x4550
jne 0x1005b3fd
mov edx, 0x10b
xor eax, eax
cmp word [ecx + 0x18], dx
sete al
pop ebp
ret
xor eax, eax
pop ebp
ret
Function at 0x491304
Capabilities:
Get thread local storage value

Disassembly:
push ebx
push esi
mov esi, ecx
lea ebx, [esi + 0x1c]
push ebx
call dword [sym.imp.KERNEL32.DLL_EnterCriticalSection]
cmp dword [esp + 0x10], 0
jne 0x491332
push dword [esi]
call dword [sym.imp.KERNEL32.DLL_TlsGetValue]
test eax, eax
je 0x491350
push dword [esp + 0xc]
mov ecx, esi
push eax
call fcn.0049126a
jmp 0x491350
mov eax, dword [esi + 0x14]
test eax, eax
je 0x491350
push edi
push dword [esp + 0x10]
mov edi, dword [eax + 4]
mov ecx, esi
push eax
call fcn.0049126a
test edi, edi
mov eax, edi
jne 0x49133a
pop edi
push ebx
call dword [sym.imp.KERNEL32.DLL_LeaveCriticalSection]
pop esi
pop ebx
ret 8

Function at 0x41f1a0
Capabilities:
Packed with generic packer

Disassembly:
pushal
mov esi, section.UPX1
lea edi, [esi - 0x16000]
push edi
or ebp, 0xffffffff
jmp 0x41f1c2
mov al, byte [esi]
inc esi
mov byte [edi], al
inc edi
add ebx, ebx
jne 0x41f1c9
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
jb 0x41f1b8
mov eax, 1
add ebx, ebx
jne 0x41f1db
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc eax, eax
add ebx, ebx
jae 0x41f1d0
jne 0x41f1ec
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
jae 0x41f1d0
xor ecx, ecx
sub eax, 3
jb 0x41f200
shl eax, 8
mov al, byte [esi]
inc esi
xor eax, 0xffffffff
je 0x41f272
mov ebp, eax
add ebx, ebx
jne 0x41f20b
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc ecx, ecx
add ebx, ebx
jne 0x41f218
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc ecx, ecx
jne 0x41f23c
inc ecx
add ebx, ebx
jne 0x41f228
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc ecx, ecx
add ebx, ebx
jae 0x41f21d
jne 0x41f239
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
jae 0x41f21d
add ecx, 2
cmp ebp, 0xfffff300
adc ecx, 1
lea edx, [edi + ebp]
cmp ebp, 0xfffffffc
jbe 0x41f25c
mov al, byte [edx]
inc edx
mov byte [edi], al
inc edi
dec ecx
jne 0x41f24d
jmp 0x41f1be
mov eax, dword [edx]
add edx, 4
mov dword [edi], eax
add edi, 4
sub ecx, 4
ja 0x41f25c
add edi, ecx
jmp 0x41f1be
pop esi
mov edi, esi
mov ecx, 0x202
mov al, byte [edi]
inc edi
sub al, 0xe8
cmp al, 1
ja 0x41f27a
cmp byte [edi], 6
jne 0x41f27a
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 eax, ebx
loop 0x41f27f
lea edi, [esi + 0x1d000]
mov eax, dword [edi]
or eax, eax
je 0x41f2f7
mov ebx, dword [edi + 4]
lea eax, [eax + esi + 0x1ffc4]
add ebx, esi
push eax
add edi, 8
call dword [esi + 0x20000]
xchg ebp, eax
mov al, byte [edi]
inc edi
or al, al
je 0x41f2ac
mov ecx, edi
jns 0x41f2db
movzx eax, word [edi]
inc edi
push eax
inc edi
mov ecx, 0xaef24857
push edi
dec eax
repne scasb al, byte es:[edi]
push ebp
call dword [esi + 0x20004]
or eax, eax
je 0x41f2f1
mov dword [ebx], eax
add ebx, 4
jmp 0x41f2c9
call dword [esi + 0x20008]
popal
jmp 0x40290c
Function at 0x1002aadf
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x44
pushal
call 0x1002aaee
pop dword [ebp - 0x34]
mov eax, 0xfe248314
sub eax, 0xee21d826
sub dword [ebp - 0x34], eax
mov dword [ebp - 0x44], 0x5ef4885f
sub dword [ebp - 0x44], 0x10a24314
mov dword [ebp - 0x40], 0xc2a2dffe
sub dword [ebp - 0x40], 0x906f93b9
mov dword [ebp - 0x3c], 0xf926257
sub dword [ebp - 0x3c], 0xc3461e29
mov dword [ebp - 0x38], 0x66224123
sub dword [ebp - 0x38], 0x66224123
lea eax, [ebp - 0x44]
push eax
mov eax, 0xf1a5ea62
sub eax, 0xe1a32a2a
add eax, dword [ebp - 0x34]
call dword [eax]
mov dword [ebp - 0x44], 0x8baa4647
sub dword [ebp - 0x44], 0x1737dcf1
mov dword [ebp - 0x40], 0xacbc7311
sub dword [ebp - 0x40], 0x6b50119c
mov dword [ebp - 0x3c], 0x6002c5ff
add dword [ebp - 0x3c], 0x36ca66d
mov dword [ebp - 0x38], 0x3bc31bbf
add dword [ebp - 0x38], 0xc43ce441
lea ebx, [ebp - 0x44]
push ebx
push eax
mov eax, 0xa1179956
sub eax, 0x9114d92e
add eax, dword [ebp - 0x34]
call dword [eax]
push 0x40
push 0x1000
push 0x365c0
push 0
call eax
mov ecx, 0x21eb7c0d
add ecx, 0xde14cb84
mov edi, eax
mov ebx, 0x6fa3ce79
add ebx, 0xa05fc787
add ebx, dword [ebp - 0x34]
mov esi, 0xbf54f85b
add esi, 0x67bb8bca
xor dword [ebp - 0x30], ebx
mov edx, dword [ebx]
sub dword [ebp - 0x20], edi
xor edx, esi
sub dword [ebp - 0x1c], 0x10a28826
mov dword [edi], edx
sub dword [ebp - 0x28], 0x2b8b436f
add edi, 0xa6dc88af
add edi, 0x59237755
add ebx, 0x43fa458d
sub ebx, 0x43fa4589
loop 0x1002ac10
add eax, 0xfa254fcd
add eax, 0x5dbc14a
mov ebx, eax
add eax, 0x86c9ae6a
sub eax, 0x86c9ae65
mov ecx, 0x72824355
sub ecx, 0x62824355
add ecx, dword [ebp - 0x34]
call ebx
leave
ret
Function at 0x40a240
Capabilities:
Packed with generic packer

Disassembly:
pushal
mov esi, section.UPX1
lea edi, [esi - 0x8000]
push edi
jmp 0x40a25a
mov al, byte [esi]
inc esi
mov byte [edi], al
inc edi
add ebx, ebx
jne 0x40a261
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
jb 0x40a250
mov eax, 1
add ebx, ebx
jne 0x40a273
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc eax, eax
add ebx, ebx
jae 0x40a268
jne 0x40a284
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
jae 0x40a268
xor ecx, ecx
sub eax, 3
jb 0x40a298
shl eax, 8
mov al, byte [esi]
inc esi
xor eax, 0xffffffff
je 0x40a30a
mov ebp, eax
add ebx, ebx
jne 0x40a2a3
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc ecx, ecx
add ebx, ebx
jne 0x40a2b0
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc ecx, ecx
jne 0x40a2d4
inc ecx
add ebx, ebx
jne 0x40a2c0
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc ecx, ecx
add ebx, ebx
jae 0x40a2b5
jne 0x40a2d1
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
jae 0x40a2b5
add ecx, 2
cmp ebp, 0xfffff300
adc ecx, 1
lea edx, [edi + ebp]
cmp ebp, 0xfffffffc
jbe 0x40a2f4
mov al, byte [edx]
inc edx
mov byte [edi], al
inc edi
dec ecx
jne 0x40a2e5
jmp 0x40a256
mov eax, dword [edx]
add edx, 4
mov dword [edi], eax
add edi, 4
sub ecx, 4
ja 0x40a2f4
add edi, ecx
jmp 0x40a256
pop esi
lea edi, [esi + 0x8000]
mov eax, dword [edi]
or eax, eax
je 0x40a353
mov ebx, dword [edi + 4]
lea eax, [eax + esi + 0xbb6c]
add ebx, esi
push eax
add edi, 8
call dword [esi + 0xbbc4]
xchg ebp, eax
mov al, byte [edi]
inc edi
or al, al
je 0x40a311
mov ecx, edi
push edi
dec eax
repne scasb al, byte es:[edi]
push ebp
call dword [esi + 0xbbcc]
or eax, eax
je 0x40a34d
mov dword [ebx], eax
add ebx, 4
jmp 0x40a32e
call dword [esi + 0xbbc8]
mov ebp, dword [esi + 0xbbd0]
lea edi, [esi - 0x1000]
mov ebx, 0x1000
push eax
push esp
push 4
push ebx
push edi
call ebp
lea eax, [edi + 0x1ff]
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 0x40a387
sub esp, 0xffffff80
jmp 0x4014c4

Function at 0x403d61
Capabilities:
Encode data using xor

Disassembly:
push eax
push ebx
mov eax, 0x499
mov ecx, 0x404498
mov bl, byte [ecx]
sub bl, 0xf2
rol bl, 2
sub bl, cl
ror bl, 1
mov byte [ecx], bl
dec ecx
dec eax
jne 0x403d6d
mov eax, 0x261d
mov ecx, 0x403764
mov bl, byte [ecx]
rol bl, 7
ror bl, 2
sub bl, cl
xor bl, 0x91
mov byte [ecx], bl
dec ecx
dec eax
jne 0x403d8a
pop ebx
pop eax
add ecx, 0x2c1a
jmp ecx
Function at 0x402ab8
Capabilities:
Accept command line arguments

Disassembly:
push ebx
push esi
push edi
add esp, 0xfffffef8
mov ebx, edx
mov esi, eax
mov eax, ebx
call fcn.00404830
test esi, esi
jne 0x402aee
push 0x105
lea eax, [esp + 4]
push eax
push 0
call sub.kernel32.dll_GetModuleFileNameA
mov ecx, eax
mov edx, esp
mov eax, ebx
call fcn.00404920
jmp 0x402b0c
call sub.kernel32.dll_GetCommandLineA
mov edi, eax
mov edx, ebx
mov eax, edi
call fcn.004029cc
mov edi, eax
test esi, esi
je 0x402b0c
cmp dword [ebx], 0
je 0x402b0c
dec esi
jmp 0x402af5
add esp, 0x108
pop edi
pop esi
pop ebx
ret

Function at 0x403934
Capabilities:
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffff4
movzx eax, word [0x4ad00c]
mov dword [ebp - 8], eax
lea eax, [ebp - 4]
push eax
push 1
push 0
push 0x4039cc
push 0x80000002
call sub.advapi32.dll_RegOpenKeyExA
test eax, eax
jne 0x4039ac
xor eax, eax
push ebp
push 0x4039a5
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 0x4039e8
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 0x4039ac
mov eax, dword [ebp - 4]
push eax
call sub.advapi32.dll_RegCloseKey
ret
mov ax, word [0x4ad00c]
and ax, 0xffc0
mov dx, word [ebp - 8]
and dx, 0x3f
or ax, dx
mov word [0x4ad00c], ax
mov esp, ebp
pop ebp
ret

Function at 0x4046b4
Capabilities:
Write file on windows

Disassembly:
push ecx
cmp byte [0x4af04c], 0
je 0x404715
cmp word [0x4af220], 0xd7b2
jne 0x4046dd
cmp dword [0x4af228], 0
jbe 0x4046dd
mov eax, 0x4af21c
call dword [0x4af238]
push 0
lea eax, [esp + 4]
push eax
push 0x1e
push 0x4ad054
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 0x40473c
push 0xfffffffffffffff5
call sub.kernel32.dll_GetStdHandle
push eax
call sub.kernel32.dll_WriteFile
pop edx
ret
cmp byte [0x4ad01c], 0
jne 0x404731
push 0
push 0x4ad074
push 0x4ad054
push 0
call sub.user32.dll_MessageBoxA
pop edx
ret
Function at 0x406300
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 0x406530
push 0x80000001
call sub.advapi32.dll_RegOpenKeyExA
test eax, eax
je 0x406383
lea eax, [ebp - 8]
push eax
push 0xf0019
push 0
push 0x406530
push 0x80000002
call sub.advapi32.dll_RegOpenKeyExA
test eax, eax
je 0x406383
lea eax, [ebp - 8]
push eax
push 0xf0019
push 0
push 0x40654c
push 0x80000001
call sub.advapi32.dll_RegOpenKeyExA
test eax, eax
jne 0x40640c
xor eax, eax
push ebp
push 0x406405
push dword fs:[eax]
mov dword fs:[eax], esp
mov dword [ebp - 0x18], 5
lea eax, [ebp - 0x11d]
mov edx, 0x105
call fcn.00406148
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 0x4063ea
lea eax, [ebp - 0x18]
push eax
lea eax, [ebp - 0x12]
push eax
push 0
push 0
push 0x40656c
mov eax, dword [ebp - 8]
push eax
call sub.advapi32.dll_RegQueryValueExA
test eax, eax
je 0x4063ea
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 0x40640c
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 0x406526
cmp byte [ebp - 0xd], 0
jne 0x406453
cmp byte [ebp - 0x12], 0
je 0x406526
lea eax, [ebp - 0x11d]
push eax
call sub.kernel32.dll_lstrlenA
mov ebx, eax
lea eax, [ebp - 0x11d]
add ebx, eax
jmp 0x40646c
dec ebx
cmp byte [ebx], 0x2e
je 0x40647b
lea eax, [ebp - 0x11d]
cmp ebx, eax
jne 0x40646b
lea eax, [ebp - 0x11d]
cmp ebx, eax
je 0x406526
inc ebx
cmp byte [ebp - 0x12], 0
je 0x4064b8
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 0x406526
cmp byte [ebp - 0xd], 0
je 0x406526
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 0x406526
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