joyce8/EMBER2024-capa huggingface dataset:
Function at 0x46a38b
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 0x46a3b9
push dword [esi]
call dword [sym.imp.KERNEL32.dll_TlsGetValue]
test eax, eax
je 0x46a3d7
push dword [esp + 0xc]
mov ecx, esi
push eax
call fcn.0046a2f5
jmp 0x46a3d7
mov eax, dword [esi + 0x14]
test eax, eax
je 0x46a3d7
push edi
push dword [esp + 0x10]
mov edi, dword [eax + 4]
push eax
mov ecx, esi
call fcn.0046a2f5
test edi, edi
mov eax, edi
jne 0x46a3c1
pop edi
push ebx
call dword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
pop esi
pop ebx
ret 8
mov ecx, dword [0x4e49bc]
test ecx, ecx
je 0x46a49a
jmp 0x46a38a
ret 8

Function at 0x46b9de
Capabilities:
Inspect section memory permissions

Disassembly:
mov edi, dword [ebp - 0x88]
mov eax, dword [ebp + 0xc]
cmp ax, word [edi + 6]
jne 0x46b9a5
mov edx, dword [ebp - 0xb4]
xor ecx, ecx
mov edi, 0x60000000
jmp 0x46b9c3
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]
invalid
ja 0x46ba21
mov esp, 0xd78b4077
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 0x46ba08
or byte [eax + ecx], 1
cmp dword [ebp + 8], ebx
je 0x46ba11
or byte [eax + ecx], 2
cmp dword [ebp + 0x10], ebx
je 0x46ba1b
add ecx, eax
or byte [ecx], 4
inc eax
cmp eax, dword [ebp - 0x44]
jbe 0x46b9fd
inc dword [ebp + 0xc]
mov eax, dword [ebp - 0x88]
mov cx, word [ebp + 0xc]
cmp cx, word [eax + 6]
jbe 0x46b987
mov dword [ebp + 8], esi
xor edi, edi

Function at 0x46bae7
Capabilities:
Contain obfuscated stackstrings

Disassembly:
add byte [eax - 0x3525b], al
inc dword [eax]
mov byte [ebp - 0x352], 0xda
and byte [ebp - 0x351], 0
mov byte [ebp - 0x350], 0x62
mov byte [ebp - 0x34f], 0x40
mov byte [ebp - 0x34e], 0x51
mov byte [ebp - 0x34d], 0x75
mov byte [ebp - 0x34c], 0x57
mov byte [ebp - 0x34b], 0x4a

Function at 0x46bb27
Capabilities:
Contain obfuscated stackstrings

Disassembly:
mov byte [ebp - 0x34a], 0x46
mov byte [ebp - 0x349], 0x40
mov byte [ebp - 0x348], 0x56
mov byte [ebp - 0x347], 0x56
mov byte [ebp - 0x346], 0x6d
invalid
invalid
invalid
cld
Function at 0x46cc21
Capabilities:
Contain obfuscated stackstrings

Disassembly:
cli
mov byte [ebp - 0x6ea], 0xd5
mov byte [ebp - 0x6e9], 0xd0
mov byte [ebp - 0x6e8], 0xd9
mov byte [ebp - 0x6e7], 0xbc
call fcn.0046b2ce
cmp ebx, esp
push ebx
push esp
lea eax, [ebp - 0x6f4]
push eax
call fcn.0046b2de
pop ecx
push eax
push dword [ebp + 0x18]
push dword [ebp + 0x14]
call fcn.0046b293
add esp, 0xc
mov dword [ebp - 0x730], eax
and dword [ebp - 0x6fc], 0
push 1
pop eax
test eax, eax
je 0x46d374
lea eax, [ebp - 0x230]
mov dword [ebp - 0x3a0], eax
cmp dword [ebp - 0x6fc], 0
jne 0x46ce49
and byte [ebp - 0x77c], 0
and byte [ebp - 0x77b], 0
mov byte [ebp - 0x77a], 4
and byte [ebp - 0x779], 0
mov byte [ebp - 0x778], 0xb8
mov byte [ebp - 0x777], 0xc1
mov byte [ebp - 0x776], 0xa7
mov byte [ebp - 0x775], 0xab
mov byte [ebp - 0x774], 0x89
mov byte [ebp - 0x773], 0x94
mov byte [ebp - 0x772], 0x9c
mov byte [ebp - 0x771], 0x89
clc
invalid
dec dword [ecx - 0x76f7a3a]
invalid
call [edx - 0x76e7a3a]
invalid
call dword [esi - 0x76d7a3a]
invalid

Function at 0x475cba
Capabilities:
Terminate process

Disassembly:
cmp ecx, dword [0x4cb598]
jne 0x475cc4
repz ret
jmp fcn.0047fafc
Function at 0x479b21
Capabilities:
Read file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x10
mov ecx, dword [ebp + 8]
push ebx
mov ebx, dword [ebp + 0xc]
push esi
push edi
xor edi, edi
cmp dword [ebp + 0x10], edi
mov dword [ebp - 8], ecx
mov dword [ebp - 4], ebx
je 0x479b5e
cmp dword [ebp + 0x14], edi
je 0x479b5e
cmp ecx, edi
jne 0x479b65
call fcn.0047c2b6
push edi
push edi
push edi
push edi
mov dword [eax], 0x16
push edi
call fcn.004781dd
add esp, 0x14
xor eax, eax
pop edi
pop esi
pop ebx
leave
ret
mov esi, dword [ebp + 0x18]
cmp esi, edi
je 0x479b79
or eax, 0xffffffff
xor edx, edx
div dword [ebp + 0x10]
cmp dword [ebp + 0x14], eax
jbe 0x479b9a
cmp ebx, 0xffffffff
je 0x479b89
push ebx
push edi
push ecx
call fcn.004762a0
add esp, 0xc
cmp esi, edi
je 0x479b46
or eax, 0xffffffff
xor edx, edx
div dword [ebp + 0x10]
cmp dword [ebp + 0x14], eax
ja 0x479b46
mov edi, dword [ebp + 0x10]
imul edi, dword [ebp + 0x14]
test word [esi + 0xc], 0x10c
mov dword [ebp - 0x10], edi
mov ebx, edi
je 0x479bb6
mov eax, dword [esi + 0x18]
mov dword [ebp - 0xc], eax
jmp 0x479bbd
mov dword [ebp - 0xc], 0x1000
test edi, edi
je 0x479cae
test word [esi + 0xc], 0x10c
je 0x479c11
mov eax, dword [esi + 4]
test eax, eax
je 0x479c11
jl 0x479d0f
cmp ebx, eax
mov edi, ebx
jb 0x479be2
mov edi, eax
cmp edi, dword [ebp - 4]
ja 0x479cb6
push edi
push dword [esi]
push dword [ebp - 4]
push dword [ebp - 8]
call fcn.00475526
sub dword [esi + 4], edi
add dword [esi], edi
add dword [ebp - 8], edi
sub ebx, edi
add esp, 0x10
sub dword [ebp - 4], edi
mov edi, dword [ebp - 0x10]
jmp 0x479ca6
cmp ebx, dword [ebp - 0xc]
jb 0x479c7e
cmp dword [ebp - 0xc], 0
je 0x479c3b
mov ecx, 0x7fffffff
xor edx, edx
cmp ebx, ecx
jbe 0x479c30
mov eax, ecx
div dword [ebp - 0xc]
mov eax, ecx
jmp 0x479c37
mov eax, ebx
div dword [ebp - 0xc]
mov eax, ebx
sub eax, edx
jmp 0x479c46
mov eax, 0x7fffffff
cmp ebx, eax
ja 0x479c46
mov eax, ebx
cmp eax, dword [ebp - 4]
ja 0x479ce2
push eax
push dword [ebp - 8]
push esi
call fcn.004789a3
pop ecx
push eax
call fcn.00486dc0
add esp, 0xc
test eax, eax
je 0x479d21
cmp eax, 0xffffffff
je 0x479d0f
add dword [ebp - 8], eax
sub ebx, eax
sub dword [ebp - 4], eax
jmp 0x479ca6
push esi
call fcn.004866df
cmp eax, 0xffffffff
pop ecx
je 0x479d13
cmp dword [ebp - 4], 0
je 0x479ce2
mov ecx, dword [ebp - 8]
inc dword [ebp - 8]
mov byte [ecx], al
mov eax, dword [esi + 0x18]
dec ebx
dec dword [ebp - 4]
mov dword [ebp - 0xc], eax
test ebx, ebx
jne 0x479bc5
mov eax, dword [ebp + 0x14]
jmp 0x479b60
xor esi, esi
cmp dword [ebp + 0xc], 0xffffffff
je 0x479ccd
push dword [ebp + 0xc]
push esi
push dword [ebp + 8]
call fcn.004762a0
add esp, 0xc
call fcn.0047c2b6
push esi
push esi
push esi
push esi
mov dword [eax], 0x22
push esi
jmp 0x479b56
cmp dword [ebp + 0xc], 0xffffffff
je 0x479cf8
push dword [ebp + 0xc]
push 0
push dword [ebp + 8]
call fcn.004762a0
add esp, 0xc
call fcn.0047c2b6
mov dword [eax], 0x22
xor eax, eax
push eax
push eax
push eax
push eax
push eax
jmp 0x479b56
or dword [esi + 0xc], 0x20
mov eax, edi
sub eax, ebx
xor edx, edx
div dword [ebp + 0x10]
jmp 0x479b60
or dword [esi + 0xc], 0x10
jmp 0x479d13
Function at 0x47ceba
Capabilities:
Write file on windows

Disassembly:
push ecx
push ebx
mov ebx, dword [esp + 0xc]
push esi
push edi
xor esi, esi
xor edi, edi
cmp ebx, dword [edi*8 + 0x4cb9c0]
je 0x47ced5
inc edi
cmp edi, 0x17
jb 0x47cec6
cmp edi, 0x17
jae 0x47d055
push ebp
push 3
call fcn.0048aa83
cmp eax, 1
pop ecx
je 0x47d021
push 3
call fcn.0048aa83
test eax, eax
pop ecx
jne 0x47cf09
cmp dword [0x4cb578], 1
je 0x47d021
cmp ebx, 0xfc
je 0x47d054
push str.Runtime_Error__n_nProgram:
mov ebx, 0x314
push ebx
mov ebp, 0x4e4d10
push ebp
call fcn.00481332
add esp, 0xc
test eax, eax
je 0x47cf3f
push esi
push esi
push esi
push esi
push esi
call fcn.004780e1
add esp, 0x14
push 0x104
mov esi, 0x4e4d29
push esi
push 0
mov byte [0x4e4e2d], 0
call dword [sym.imp.KERNEL32.dll_GetModuleFileNameA]
test eax, eax
jne 0x47cf83
push str._program_name_unknown_
push 0x2fb
push esi
call fcn.00481332
add esp, 0xc
test eax, eax
je 0x47cf83
xor eax, eax
push eax
push eax
push eax
push eax
push eax
call fcn.004780e1
add esp, 0x14
push esi
call fcn.00476450
inc eax
cmp eax, 0x3c
pop ecx
jbe 0x47cfc8
push esi
call fcn.00476450
sub esi, 0x3b
add eax, esi
push 3
mov ecx, 0x4e5024
push 0x4b8424
sub ecx, eax
push ecx
push eax
call fcn.0048a9d0
add esp, 0x14
test eax, eax
je 0x47cfc8
xor esi, esi
push esi
push esi
push esi
push esi
push esi
call fcn.004780e1
add esp, 0x14
jmp 0x47cfca
xor esi, esi
push 0x4b8420
push ebx
push ebp
call fcn.0048a95f
add esp, 0xc
test eax, eax
je 0x47cfea
push esi
push esi
push esi
push esi
push esi
call fcn.004780e1
add esp, 0x14
push dword [edi*8 + 0x4cb9c4]
push ebx
push ebp
call fcn.0048a95f
add esp, 0xc
test eax, eax
je 0x47d00c
push esi
push esi
push esi
push esi
push esi
call fcn.004780e1
add esp, 0x14
push 0x12010
push str.Microsoft_Visual_C_Runtime_Library
push ebp
call fcn.0048a7a2
add esp, 0xc
jmp 0x47d054
push 0xfffffffffffffff4
call dword [sym.imp.KERNEL32.dll_GetStdHandle]
mov ebp, eax
cmp ebp, esi
je 0x47d054
cmp ebp, 0xffffffff
je 0x47d054
push 0
lea eax, [esp + 0x14]
push eax
lea esi, [edi*8 + 0x4cb9c4]
push dword [esi]
call fcn.00476450
pop ecx
push eax
push dword [esi]
push ebp
call dword [sym.imp.KERNEL32.dll_WriteFile]
pop ebp
pop edi
pop esi
pop ebx
pop ecx
ret
Function at 0x48a7a2
Capabilities:
Link many functions at runtime

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x20
push ebx
push esi
push edi
call fcn.0047da6a
xor ebx, ebx
cmp dword [0x4e5810], ebx
mov dword [ebp - 8], eax
mov dword [ebp - 4], ebx
mov dword [ebp - 0xc], ebx
mov dword [ebp - 0x10], ebx
jne 0x48a878
push str.USER32.DLL
call dword [sym.imp.KERNEL32.dll_LoadLibraryA]
mov edi, eax
cmp edi, ebx
je 0x48a958
mov esi, dword [sym.imp.KERNEL32.dll_GetProcAddress]
push str.MessageBoxA
push edi
call esi
cmp eax, ebx
je 0x48a958
push eax
call fcn.0047d9fc
mov dword [esp], 0x4b872c
push edi
mov dword [0x4e5810], eax
call esi
push eax
call fcn.0047d9fc
mov dword [esp], 0x4b8718
push edi
mov dword [0x4e5814], eax
call esi
push eax
call fcn.0047d9fc
mov dword [0x4e5818], eax
lea eax, [ebp - 0xc]
push eax
call fcn.0047a1e5
test eax, eax
pop ecx
pop ecx
je 0x48a846
push ebx
push ebx
push ebx
push ebx
push ebx
call fcn.004780e1
add esp, 0x14
cmp dword [ebp - 0xc], 2
jne 0x48a878
push str.GetUserObjectInformationA
push edi
call esi
push eax
call fcn.0047d9fc
cmp eax, ebx
pop ecx
mov dword [0x4e5820], eax
je 0x48a878
push str.GetProcessWindowStation
push edi
call esi
push eax
call fcn.0047d9fc
pop ecx
mov dword [0x4e581c], eax
mov eax, dword [0x4e581c]
mov ecx, dword [ebp - 8]
cmp eax, ecx
je 0x48a8fd
cmp dword [0x4e5820], ecx
je 0x48a8fd
push eax
call fcn.0047da73
push dword [0x4e5820]
mov esi, eax
call fcn.0047da73
cmp esi, ebx
pop ecx
pop ecx
mov edi, eax
je 0x48a8fd
cmp edi, ebx
je 0x48a8fd
call esi
cmp eax, ebx
je 0x48a8ca
lea ecx, [ebp - 0x14]
push ecx
push 0xc
lea ecx, [ebp - 0x20]
push ecx
push 1
push eax
call edi
test eax, eax
je 0x48a8ca
test byte [ebp - 0x18], 1
jne 0x48a8fd
lea eax, [ebp - 0x10]
push eax
call fcn.0047a21c
test eax, eax
pop ecx
je 0x48a8e5
push ebx
push ebx
push ebx
push ebx
push ebx
call fcn.004780e1
add esp, 0x14
cmp dword [ebp - 0x10], 4
jb 0x48a8f4
or dword [ebp + 0x10], 0x200000
jmp 0x48a938
or dword [ebp + 0x10], 0x40000
jmp 0x48a938
mov eax, dword [0x4e5814]
cmp eax, dword [ebp - 8]
je 0x48a938
push eax
call fcn.0047da73
cmp eax, ebx
pop ecx
je 0x48a938
call eax
cmp eax, ebx
mov dword [ebp - 4], eax
je 0x48a938
mov eax, dword [0x4e5818]
cmp eax, dword [ebp - 8]
je 0x48a938
push eax
call fcn.0047da73
cmp eax, ebx
pop ecx
je 0x48a938
push dword [ebp - 4]
call eax
mov dword [ebp - 4], eax
push dword [0x4e5810]
call fcn.0047da73
cmp eax, ebx
pop ecx
je 0x48a958
push dword [ebp + 0x10]
push dword [ebp + 0xc]
push dword [ebp + 8]
push dword [ebp - 4]
call eax
jmp 0x48a95a
xor eax, eax
pop edi
pop esi
pop ebx
leave
ret
Function at 0x490a40
Capabilities:
Check os version

Disassembly:
push ebp
lea ebp, [esp - 0x78]
sub esp, 0x98
mov eax, dword [0x4cb598]
xor eax, ebp
mov dword [ebp + 0x74], eax
push esi
mov esi, ecx
call fcn.004909d5
mov eax, 0x400000
push 0x94
mov dword [esi + 8], eax
mov dword [esi + 4], eax
lea eax, [ebp - 0x20]
push 0
push eax
mov dword [esi], 0x3c
mov byte [esi + 0xc], 0
call fcn.004762a0
add esp, 0xc
lea eax, [ebp - 0x20]
push eax
mov dword [ebp - 0x20], 0x94
call dword [sym.imp.KERNEL32.dll_GetVersionExA]
cmp dword [ebp - 0x10], 2
jne 0x490a8f
cmp dword [ebp - 0x1c], 5
jb 0x490aa7
jmp 0x490aa3
cmp dword [ebp - 0x10], 1
jne 0x490aa7
cmp dword [ebp - 0x1c], 4
ja 0x490aa3
jne 0x490aa7
cmp dword [ebp - 0x18], 0
jbe 0x490aa7
mov byte [esi + 0xc], 1
lea ecx, [esi + 0x18]
mov dword [esi + 0x10], 0x800
mov dword [esi + 0x14], 0x4b98cc
call fcn.004908c6
test eax, eax
jge 0x490ac8
mov byte [0x4cca00], 1
mov ecx, dword [ebp + 0x74]
mov eax, esi
xor ecx, ebp
pop esi
call fcn.00475cba
add ebp, 0x78
leave
ret
Function at 0x499180
Capabilities:
Encode data using xor

Disassembly:
sub esp, 0x10
mov eax, dword [ecx]
push ebx
mov edx, eax
push ebp
shr edx, 2
push esi
mov ebx, dword [esp + 0x20]
mov edx, dword [edx*4 + 0x4eafd8]
push edi
mov dword [esp + 0x14], edx
mov edx, 0x800
sub edx, eax
shr edx, 2
mov eax, dword [edx*4 + 0x4eafd8]
mov edx, dword [ecx + 4]
mov esi, edx
shr esi, 2
mov esi, dword [esi*4 + 0x4eafd8]
add esi, eax
mov dword [esp + 0x18], esi
mov esi, 0x800
sub esi, edx
shr esi, 2
mov edx, dword [esi*4 + 0x4eafd8]
add edx, eax
mov eax, dword [esp + 0x2c]
mov dword [esp + 0x1c], edx
xor esi, esi
mov dword [esp + 0x10], eax
cmp esi, dword [esp + 0x28]
jae 0x499306
mov edx, esi
xor edi, edi
or edx, 8
cmp edx, 1
je 0x499225
mov eax, edx
shr edx, 1
and eax, 1
lea ebp, [edx + ebx*8]
mov ebp, dword [ecx + ebp*4 + 8]
sub ebp, eax
neg eax
xor ebp, eax
shr ebp, 2
and ebp, 0x1ff
mov eax, dword [ebp*4 + 0x4eafd8]
add edi, eax
cmp edx, 1
jne 0x4991fa
mov edx, dword [esp + 0x14]
mov eax, dword [esp + 0x10]
add edi, edx
inc esi
mov dword [eax], edi
add eax, 4
cmp esi, 8
mov dword [esp + 0x10], eax
jb 0x4991e4
cmp esi, 0x10
jae 0x4992ac
mov eax, dword [esp + 0x2c]
lea edx, [eax + esi*4]
mov dword [esp + 0x24], edx
cmp esi, dword [esp + 0x28]
jae 0x499306
lea edx, [esi - 8]
xor edi, edi
or edx, 8
cmp edx, 1
je 0x499293
mov eax, edx
shr edx, 1
and eax, 1
lea ebp, [edx + ebx*8]
mov ebp, dword [ecx + ebp*4 + 0x208]
sub ebp, eax
neg eax
xor ebp, eax
shr ebp, 2
and ebp, 0x1ff
mov eax, dword [ebp*4 + 0x4eafd8]
add edi, eax
cmp edx, 1
jne 0x499265
mov eax, dword [esp + 0x18]
add edi, eax
mov eax, dword [esp + 0x24]
inc esi
mov dword [eax], edi
add eax, 4
cmp esi, 0x10
mov dword [esp + 0x24], eax
jb 0x49924e
cmp esi, dword [esp + 0x28]
jae 0x499306
mov edx, dword [esp + 0x2c]
lea ebx, [edx + esi*4]
lea edx, [esi - 0x10]
xor edi, edi
or dh, 1
cmp edx, 1
je 0x4992f1
mov eax, edx
shr edx, 1
and eax, 1
mov ebp, dword [ecx + edx*4 + 0x408]
sub ebp, eax
neg eax
xor ebp, eax
shr ebp, 2
and ebp, 0x1ff
mov eax, dword [ebp*4 + 0x4eafd8]
add edi, eax
cmp edx, 1
jne 0x4992c6
mov eax, dword [esp + 0x1c]
add ebx, 4
add edi, eax
mov eax, dword [esp + 0x28]
mov dword [ebx - 4], edi
inc esi
cmp esi, eax
jb 0x4992b9
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x10
ret 0xc
Function at 0x49ce40
Capabilities:
Encode data using xor

Disassembly:
sub esp, 0xc
push ebx
push ebp
push esi
push edi
mov dword [esp + 0x18], ecx
xor edi, edi
add ecx, 0x33a94
mov dword [esp + 0x10], edi
mov dword [esp + 0x14], ecx
xor esi, esi
mov edx, 1
mov ebx, 4
mov ecx, dword [esp + 0x18]
mov eax, edi
and eax, 1
mov ecx, dword [ecx + edx*4 + 0x28cf8]
mov ebp, eax
sub ecx, eax
add edx, edx
neg ebp
xor ecx, ebp
or edx, eax
shr ecx, 2
and ecx, 0x1ff
shr edi, 1
mov ebp, dword [ecx*4 + 0x4eafd8]
add esi, ebp
dec ebx
jne 0x49ce67
mov eax, dword [esp + 0x14]
mov edi, dword [esp + 0x10]
inc edi
mov dword [eax], esi
add eax, 4
cmp edi, 0x10
mov dword [esp + 0x10], edi
mov dword [esp + 0x14], eax
jb 0x49ce5b
mov edx, dword [esp + 0x18]
pop edi
pop esi
pop ebp
mov dword [edx + 0x33ad4], 0
pop ebx
add esp, 0xc
ret
Function at 0x402aa4
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.00404048
test esi, esi
jne 0x402ada
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.00404138
jmp 0x402af8
call sub.kernel32.dll_GetCommandLineA
mov edi, eax
mov edx, ebx
mov eax, edi
call fcn.00402958
mov edi, eax
test esi, esi
je 0x402af8
cmp dword [ebx], 0
je 0x402af8
dec esi
jmp 0x402ae1
add esp, 0x108
pop edi
pop esi
pop ebx
ret

Function at 0x403168
Capabilities:
Query or enumerate registry value

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

Function at 0x403ecc
Capabilities:
Write file on windows

Disassembly:
push ecx
cmp byte [0x46004c], 0
je 0x403f2d
cmp word [0x460220], 0xd7b2
jne 0x403ef5
cmp dword [0x460228], 0
jbe 0x403ef5
mov eax, 0x46021c
call dword [0x460238]
push 0
lea eax, [esp + 4]
push eax
push 0x1e
push 0x45e06c
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 0x403f54
push 0xfffffffffffffff5
call sub.kernel32.dll_GetStdHandle
push eax
call sub.kernel32.dll_WriteFile
pop edx
ret
cmp byte [0x45e030], 0
jne 0x403f49
push 0
push 0x45e064
push 0x45e06c
push 0
call sub.user32.dll_MessageBoxA
pop edx
ret
Function at 0x405e54
Capabilities:
Get geographical location

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffff0
push ebx
xor edx, edx
mov dword [ebp - 0x10], edx
xor edx, edx
push ebp
push 0x405eba
push dword fs:[edx]
mov dword fs:[edx], esp
push 7
lea edx, [ebp - 0xb]
push edx
push 0x1004
push eax
call sub.kernel32.dll_GetLocaleInfoA
lea eax, [ebp - 0x10]
lea edx, [ebp - 0xb]
mov ecx, 7
call fcn.004042b8
mov eax, dword [ebp - 0x10]
lea edx, [ebp - 4]
call fcn.00402d2c
mov ebx, eax
cmp dword [ebp - 4], 0
je 0x405ea4
xor ebx, ebx
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x405ec1
lea eax, [ebp - 0x10]
call fcn.00404048
ret

Function at 0x40b0b0
Capabilities:
Get geographical location

Disassembly:
push ebp
mov ebp, esp
add esp, 0xffffff00
push ebx
push esi
mov esi, ecx
mov ebx, dword [ebp + 8]
push pe_nt_image_headers32
lea ecx, [ebp - 0x100]
push ecx
push edx
push eax
call sub.kernel32.dll_GetLocaleInfoA_1
test eax, eax
jle 0x40b0e9
mov ecx, eax
dec ecx
lea edx, [ebp - 0x100]
mov eax, ebx
call fcn.00404138
jmp 0x40b0f2
mov eax, ebx
mov edx, esi
call fcn.0040409c
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 4

Function at 0x40b0fc
Capabilities:
Get geographical location

Disassembly:
push ebx
push esi
push edi
push ecx
mov ebx, ecx
mov esi, edx
mov edi, eax
push 2
lea eax, [esp + 4]
push eax
push esi
push edi
call sub.kernel32.dll_GetLocaleInfoA_1
test eax, eax
jle 0x40b11d
mov al, byte [esp]
jmp 0x40b11f
mov eax, ebx
pop edx
pop edi
pop esi
pop ebx
ret

Function at 0x40b7a4
Capabilities:
Write file on windows

Disassembly:
add esp, 0xfffffbbc
push 0x400
lea ecx, [esp + 0x48]
call 0x40b61c
mov eax, dword [0x45f150]
cmp byte [eax], 0
je 0x40b820
mov eax, dword [0x45ef48]
call fcn.00402b98
call fcn.00402884
lea eax, [esp + 0x44]
push eax
lea eax, [esp + 0x48]
push eax
call sub.user32.dll_CharToOemA
push 0
lea eax, [esp + 4]
push eax
lea eax, [esp + 0x4c]
call fcn.004088f0
push eax
lea eax, [esp + 0x50]
push eax
push 0xfffffffffffffff4
call sub.kernel32.dll_GetStdHandle_1
push eax
call sub.kernel32.dll_WriteFile_1
push 0
lea eax, [esp + 4]
push eax
push 2
push 0x40b868
push 0xfffffffffffffff4
call sub.kernel32.dll_GetStdHandle_1
push eax
call sub.kernel32.dll_WriteFile_1
jmp 0x40b856
push 0x40
lea eax, [esp + 8]
push eax
mov eax, dword [0x45eef4]
mov eax, dword [eax + 4]
push eax
mov eax, dword [0x460668]
call fcn.00405368
push eax
call sub.user32.dll_LoadStringA_1
push 0x2010
lea eax, [esp + 8]
push eax
lea eax, [esp + 0x4c]
push eax
push 0
call sub.user32.dll_MessageBoxA_1
add esp, 0x444
ret
Function at 0x40c110
Capabilities:
Get file version info

Disassembly:
push ebp
mov ebp, esp
add esp, 0xffffffe8
push ebx
xor edx, edx
mov dword [ebp - 8], edx
mov ebx, eax
xor eax, eax
push ebp
push 0x40c1e6
push dword fs:[eax]
mov dword fs:[eax], esp
mov dword [ebp - 4], 0xffffffff
lea eax, [ebp - 8]
mov edx, ebx
call fcn.004040e0
lea eax, [ebp - 8]
call fcn.00404558
lea eax, [ebp - 0xc]
push eax
mov eax, dword [ebp - 8]
call fcn.00404508
push eax
call sub.version.dll_GetFileVersionInfoSizeA
mov ebx, eax
test ebx, ebx
je 0x40c1d0
mov eax, ebx
call fcn.0040271c
mov dword [ebp - 0x10], eax
xor eax, eax
push ebp
push 0x40c1c9
push dword fs:[eax]
mov dword fs:[eax], esp
mov eax, dword [ebp - 0x10]
push eax
push ebx
mov eax, dword [ebp - 0xc]
push eax
mov eax, dword [ebp - 8]
call fcn.00404508
push eax
call sub.version.dll_GetFileVersionInfoA
test eax, eax
je 0x40c1b3
lea eax, [ebp - 0x18]
push eax
lea eax, [ebp - 0x14]
push eax
push 0x40c1f8
mov eax, dword [ebp - 0x10]
push eax
call sub.version.dll_VerQueryValueA
test eax, eax
je 0x40c1b3
mov eax, dword [ebp - 0x14]
mov eax, dword [eax + 8]
mov dword [ebp - 4], eax
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x40c1d0
mov eax, dword [ebp - 0x10]
call fcn.0040273c
ret
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x40c1ed
lea eax, [ebp - 8]
call fcn.00404048
ret

Function at 0x40c6f0
Capabilities:
Get geographical location

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffff4
push ebx
xor edx, edx
mov dword [ebp - 0xc], edx
xor edx, edx
push ebp
push 0x40c754
push dword fs:[edx]
mov dword fs:[edx], esp
push 7
lea edx, [ebp - 7]
push edx
push 0x1004
push eax
call sub.kernel32.dll_GetLocaleInfoA_1
lea eax, [ebp - 0xc]
lea edx, [ebp - 7]
mov ecx, 7
call fcn.004042b8
mov eax, dword [ebp - 0xc]
push eax
call sub.kernel32.dll_GetACP
mov edx, eax
pop eax
call fcn.00408418
mov ebx, eax
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x40c75b
lea eax, [ebp - 0xc]
call fcn.00404048
ret

Function at 0x41de70
Capabilities:
Allocate or change rwx memory

Disassembly:
push ebp
mov ebp, esp
push ebx
push esi
push edi
mov edi, 0x460888
cmp dword [edi], 0
jne 0x41deec
push 0x40
push 0x1000
push 0x1000
push 0
call sub.kernel32.dll_VirtualAlloc_1
mov esi, eax
mov eax, dword [0x460884]
mov dword [esi], eax
lea edx, [esi + 4]
mov eax, 0x45e3fc
mov ecx, 2
call fcn.00402918
mov edx, 0x41de48
lea eax, [esi + 5]
call fcn.0041de68
mov dword [esi + 6], eax
lea ebx, [esi + 0xa]
mov byte [ebx], 0xe8
lea edx, [esi + 4]
mov eax, ebx
call fcn.0041de68
mov dword [ebx + 1], eax
mov eax, dword [edi]
mov dword [ebx + 5], eax
mov dword [edi], ebx
add ebx, 0xd
mov eax, ebx
sub eax, esi
cmp eax, 0xffc
jl 0x41dec1
mov dword [0x460884], esi
mov eax, dword [edi]
mov ebx, dword [edi]
mov edx, dword [ebx + 5]
mov dword [edi], edx
mov edx, dword [ebp + 8]
mov dword [ebx + 5], edx
mov edx, dword [ebp + 0xc]
mov dword [ebx + 9], edx
pop edi
pop esi
pop ebx
pop ebp
ret 8

Function at 0x41f430
Capabilities:
Encode data using xor

Disassembly:
mov ecx, edx
mov edx, eax
xor eax, eax
rol ax, 5
xor al, byte [edx]
inc edx
dec ecx
jne 0x41f436
ret
Function at 0x421884
Capabilities:
Get system information on windows

Disassembly:
push ebp
mov ebp, esp
add esp, 0xffffffd4
mov dword [ebp - 8], edx
mov dword [ebp - 4], eax
lea eax, [ebp - 0x2c]
push eax
call sub.kernel32.dll_GetSystemInfo
mov edx, dword [ebp - 4]
mov ecx, dword [ebp - 8]
dec ecx
js 0x4218d5
lea eax, [ebp - 0x2c]
cmp word [eax + 0x20], 3
je 0x4218bc
mov eax, dword [edx + ecx*4]
bswap eax
shr eax, 8
mov dword [edx + ecx*4], eax
dec ecx
jns 0x4218ac
jmp 0x4218d5
push ebx
xor ebx, ebx
mov eax, dword [edx + ecx*4]
mov bh, al
mov bl, ah
shr eax, 0x10
shl ebx, 8
mov bl, al
mov dword [edx + ecx*4], ebx
dec ecx
jns 0x4218bd
pop ebx
mov esp, ebp
pop ebp
ret