joyce8/EMBER2024-capa huggingface dataset:
Function at 0x4027f7
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0xa8
mov eax, dword [0x424040]
xor eax, ebp
mov dword [ebp - 8], eax
mov eax, dword [ebp + 8]
push ebx
push esi
mov esi, edx
mov dword [ebp - 0x98], eax
push edi
mov edi, ecx
cmp esi, 0xd
jae 0x402827
or eax, 0xffffffff
jmp 0x4029cd
lea eax, [ebp - 0x90]
mov dword [ebp - 0x90], 0x4027db
push eax
xor ebx, ebx
mov dword [ebp - 0x8c], 0x4027e9
push ecx
mov edx, edi
mov dword [ebp - 0x68], ebx
lea ecx, [ebp - 0x7c]
mov dword [ebp - 0x6c], ebx
call fcn.004069b7
mov ecx, dword [edi + 5]
xor eax, eax
inc eax
mov dword [ebp - 0x58], ebx
mov dword [ebp - 0x30], eax
sub esi, 0xd
mov dword [ebp - 0x2c], eax
mov eax, dword [edi + 9]
add edi, 0xd
push ecx
mov dword [ebp - 0x34], ebx
mov dword [ebp - 0x24], ebx
mov dword [ebp - 0x50], ebx
mov dword [ebp - 0x4c], ebx
mov dword [ebp - 0xa0], eax
mov dword [ebp - 0x80], ecx
mov dword [ebp - 0x84], esi
call fcn.0041906b
add esp, 0xc
mov dword [ebp - 0x88], ebx
mov esi, eax
lea eax, [ebp - 0x88]
mov edx, esi
mov dword [ebp - 0xa0], esi
push eax
push ecx
lea eax, [ebp - 0x84]
push eax
lea eax, [ebp - 0x80]
push edi
push eax
lea ecx, [ebp - 0x7c]
call fcn.00406838
mov ecx, dword [ebp - 0x8c]
add esp, 0x14
mov edi, eax
push dword [ebp - 0x6c]
cmp ecx, 0x4027e9
jne 0x4028da
call fcn.00418fb1
jmp 0x4028e4
lea eax, [ebp - 0x90]
push eax
call ecx
pop ecx
mov eax, dword [ebp - 0x8c]
mov dword [ebp - 0x6c], ebx
pop ecx
push dword [ebp - 0x68]
cmp eax, 0x4027e9
jne 0x4028ff
call fcn.00418fb1
jmp 0x402909
lea ecx, [ebp - 0x90]
push ecx
call eax
pop ecx
mov dword [ebp - 0x68], ebx
pop ecx
test edi, edi
je 0x402919
or esi, 0xffffffff
jmp 0x4029bf
mov edx, dword [esi]
lea ecx, [esi + 4]
mov eax, dword [ecx]
push 4
mov dword [ebp - 0x94], eax
pop eax
add ecx, eax
mov dword [ebp - 0x84], edx
push edx
mov ebx, dword [ecx]
add ecx, eax
mov edi, dword [ecx]
add ecx, eax
mov esi, dword [ecx]
add ecx, eax
mov dword [ebp - 0x80], ecx
call fcn.0041906b
pop ecx
push dword [ebp - 0x84]
mov ecx, dword [ebp - 0x94]
mov edx, ecx
push eax
push esi
mov dword [ebp - 0x88], eax
lea esi, [edi + ebx]
mov eax, dword [ebp - 0x80]
add esi, ecx
add esi, eax
push esi
lea esi, [ebx + ecx]
push edi
add esi, eax
add eax, ecx
mov ecx, dword [ebp - 0x80]
push esi
push ebx
push eax
call fcn.00406a32
mov edi, dword [ebp - 0x88]
add esp, 0x20
xor esi, esi
test eax, eax
je 0x40298d
inc esi
jmp 0x4029b8
mov ebx, dword [ebp - 0x84]
lea eax, [ebp - 0x9c]
push esi
push eax
push ebx
push edi
push dword [ebp - 0x98]
call dword [sym.imp.KERNEL32.dll_WriteFile]
test eax, eax
je 0x4029b5
cmp dword [ebp - 0x9c], ebx
je 0x4029b8
or esi, 0xffffffff
push edi
call fcn.00418fb1
pop ecx
push dword [ebp - 0xa0]
call fcn.00418fb1
pop ecx
mov eax, esi
mov ecx, dword [ebp - 8]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.0040785e
leave
ret
Function at 0x402a92
Capabilities:
Set registry value

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x218
mov eax, dword [0x424040]
xor eax, ebp
mov dword [ebp - 4], eax
push esi
push edi
push ecx
lea ecx, [ebp - 0x214]
call fcn.0040306d
lea ecx, [ebp - 0x214]
mov eax, dword [eax]
mov esi, dword [eax - 0xc]
call fcn.00403487
test esi, esi
jne 0x402b67
push 0x208
lea eax, [ebp - 0x20c]
push esi
push eax
call fcn.00407e40
add esp, 0xc
lea eax, [ebp - 0x20c]
mov edi, 0x104
push edi
push eax
push esi
call dword [sym.imp.KERNEL32.dll_GetModuleFileNameW]
test eax, eax
je 0x402b67
cmp eax, edi
jae 0x402b67
lea eax, [ebp - 0x218]
push eax
lea eax, [ebp - 0x210]
push eax
push esi
push 0x20006
push esi
push esi
push esi
push str.SoftwareBraveSoftwarePromo
push 0x80000001
call dword [sym.imp.ADVAPI32.dll_RegCreateKeyExW]
test eax, eax
jne 0x402b67
lea eax, [ebp - 0x20c]
push eax
call dword [sym.imp.KERNEL32.dll_lstrlenW]
lea eax, [eax*2 + 2]
push eax
lea eax, [ebp - 0x20c]
push eax
push 1
push esi
push str.StubInstallerPath
push dword [ebp - 0x210]
call dword [sym.imp.ADVAPI32.dll_RegSetValueExW]
test eax, eax
jne 0x402b67
push dword [ebp - 0x210]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov ecx, dword [ebp - 4]
xor eax, eax
pop edi
xor ecx, ebp
pop esi
call fcn.0040785e
leave
ret

Function at 0x403914
Capabilities:
Read file via mapping

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x1c
push esi
push edi
mov esi, ecx
call fcn.004039ac
xor edi, edi
push edi
push 0x80
push 3
push edi
push 1
push 0x80000000
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.dll_CreateFileW]
mov dword [esi + 4], eax
cmp eax, 0xffffffff
je 0x4039a4
push edi
push edi
push edi
push 2
push edi
push eax
call dword [sym.imp.KERNEL32.dll_CreateFileMappingW]
mov dword [esi + 8], eax
test eax, eax
je 0x40399d
push edi
push edi
push edi
push 4
push eax
call dword [sym.imp.KERNEL32.dll_MapViewOfFile]
mov edx, eax
mov dword [esi + 0xc], edx
test edx, edx
je 0x403994
push 7
pop ecx
xor eax, eax
lea edi, [ebp - 0x1c]
rep stosd dword es:[edi], eax
push 0x1c
lea ecx, [ebp - 0x1c]
push ecx
push edx
call dword [sym.imp.KERNEL32.dll_VirtualQuery]
test eax, eax
je 0x403994
mov ecx, dword [ebp - 0x10]
mov al, 1
mov dword [esi + 0x10], ecx
jmp 0x4039a6
push dword [esi + 8]
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov ecx, esi
call fcn.004039ac
xor al, al
pop edi
pop esi
leave
ret 4

Function at 0x4039ea
Capabilities:
Delete file

Disassembly:
push ebx
push esi
push edi
mov edi, ecx
xor esi, esi
cmp dword [edi + 0x10], esi
je 0x403a11
test esi, esi
js 0x403a23
cmp esi, dword [edi + 0x10]
jge 0x403a23
mov eax, dword [edi + 0xc]
push dword [eax + esi*4]
call dword [sym.imp.KERNEL32.dll_DeleteFileW]
inc esi
cmp esi, dword [edi + 0x10]
jne 0x4039f6
lea ecx, [edi + 0xc]
call fcn.00402d45
mov ecx, edi
pop edi
pop esi
pop ebx
jmp fcn.00403487
push 0x8000000b
call fcn.004010b7
int3
Function at 0x403a2e
Capabilities:
Read file on windows
Write file on windows

Disassembly:
push ebp
mov ebp, esp
mov eax, 0x40228
call fcn.00418ef0
mov eax, dword [0x424040]
xor eax, ebp
mov dword [ebp - 8], eax
push ebx
push esi
push edi
mov edi, dword [ebp + 8]
lea eax, [ebp - 0x40218]
xor ebx, ebx
mov dword [ebp - 0x40214], 1
push ebx
push eax
mov esi, ecx
lea eax, [ebp - 0x4020c]
push 0x200
push eax
push dword [esi + 4]
call dword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
je 0x403c41
cmp dword [ebp - 0x40218], 0x200
jne 0x403c41
push 4
lea eax, [ebp - 0x4010b]
push 0x420de0
push eax
call fcn.00419144
add esp, 0xc
test eax, eax
jne 0x403ab0
inc eax
mov byte [edi], al
jmp 0x403c43
push 5
lea eax, [ebp - 0x4010b]
push str.ustar
push eax
call fcn.00419144
add esp, 0xc
test eax, eax
jne 0x403c41
mov ecx, dword [esi]
sub ecx, 0x10
call fcn.004034a2
add eax, 0x10
lea ecx, [ebp - 0x40210]
push 0x420e14
mov dword [ebp - 0x40210], eax
call fcn.00403c54
lea eax, [ebp - 0x4020c]
push eax
lea ecx, [ebp - 0x40210]
call fcn.00403c54
push ebx
push 0x100
push 2
push ebx
push ebx
push 0x40000000
push dword [ebp - 0x40210]
call dword [sym.imp.KERNEL32.dll_CreateFileW]
mov dword [ebp - 0x40224], eax
cmp eax, 0xffffffff
je 0x403c32
push 8
lea eax, [ebp - 0x40190]
push ebx
push eax
call fcn.0041ab24
add esp, 0xc
mov dword [ebp - 0x40220], eax
push 1
push ebx
push ebx
push dword [esi + 4]
call dword [sym.imp.KERNEL32.dll_SetFilePointer]
mov ecx, dword [ebp - 0x40220]
mov edi, ecx
neg edi
add eax, ecx
and edi, 0x1ff
add edi, eax
test ecx, ecx
je 0x403bdf
mov eax, 0x40000
mov dword [ebp - 0x4021c], eax
cmp ecx, eax
jae 0x403b81
mov eax, ecx
mov dword [ebp - 0x4021c], ecx
push ebx
lea ecx, [ebp - 0x40218]
push ecx
push eax
lea eax, [ebp - 0x4000c]
push eax
push dword [esi + 4]
call dword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
je 0x403bd9
push ebx
lea eax, [ebp - 0x40218]
push eax
push dword [ebp - 0x4021c]
lea eax, [ebp - 0x4000c]
push eax
push dword [ebp - 0x40224]
call dword [sym.imp.KERNEL32.dll_WriteFile]
test eax, eax
je 0x403bd9
mov ecx, dword [ebp - 0x40220]
sub ecx, dword [ebp - 0x4021c]
mov dword [ebp - 0x40220], ecx
jne 0x403b6a
jmp 0x403bdf
mov byte [ebp - 0x40214], bl
push dword [ebp - 0x40224]
call dword [sym.imp.KERNEL32.dll_CloseHandle]
cmp byte [ebp - 0x40214], bl
je 0x403c1b
cmp byte [esi + 8], bl
je 0x403c07
lea eax, [ebp - 0x40210]
push eax
lea ecx, [esi + 0xc]
call fcn.00402d7d
mov eax, dword [esi + 0x18]
test eax, eax
je 0x403c1b
push dword [ebp - 0x40210]
push dword [esi + 0x1c]
call eax
pop ecx
pop ecx
cmp edi, 0xffffffff
je 0x403c2c
push ebx
push ebx
push edi
push dword [esi + 4]
call dword [sym.imp.KERNEL32.dll_SetFilePointer]
mov bl, byte [ebp - 0x40214]
lea ecx, [ebp - 0x40210]
call fcn.00403487
mov al, bl
jmp 0x403c43
xor al, al
mov ecx, dword [ebp - 8]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.0040785e
leave
ret 4
Function at 0x403cbb
Capabilities:
Create process on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x5c
mov ecx, dword [ecx]
push ebx
push esi
push edi
sub ecx, 0x10
mov dword [ebp - 8], edx
call fcn.004034a2
push 0x44
xor ebx, ebx
push ebx
lea esi, [eax + 0x10]
lea eax, [ebp - 0x5c]
mov dword [ebp - 4], esi
push eax
call fcn.00407e40
xor eax, eax
lea edi, [ebp - 0x18]
stosd dword es:[edi], eax
add esp, 0xc
stosd dword es:[edi], eax
stosd dword es:[edi], eax
stosd dword es:[edi], eax
lea eax, [ebp - 0x5c]
push eax
call dword [sym.imp.KERNEL32.dll_GetStartupInfoW]
or dword [ebp - 0x30], 0x81
xor eax, eax
inc eax
mov word [ebp - 0x2c], ax
cmp dword [esi - 4], eax
jle 0x403d1c
push dword [esi - 0xc]
lea ecx, [ebp - 4]
call fcn.00403591
mov esi, dword [ebp - 4]
lea eax, [ebp - 0x18]
push eax
lea eax, [ebp - 0x5c]
push eax
push ebx
push ebx
push 0x400
push ebx
push ebx
push ebx
push esi
push ebx
call dword [sym.imp.KERNEL32.dll_CreateProcessW]
test eax, eax
jne 0x403d47
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov ecx, dword [ebp - 8]
mov dword [ecx], eax
jmp 0x403d7d
push 0xffffffffffffffff
push dword [ebp - 0x18]
call dword [sym.imp.KERNEL32.dll_WaitForSingleObject]
mov eax, dword [ebp - 8]
test eax, eax
je 0x403d6a
push eax
push dword [ebp - 0x18]
call dword [sym.imp.KERNEL32.dll_GetExitCodeProcess]
test eax, eax
setne bl
jmp 0x403d6d
xor ebx, ebx
inc ebx
push dword [ebp - 0x18]
mov esi, dword [sym.imp.KERNEL32.dll_CloseHandle]
call esi
push dword [ebp - 0x14]
call esi
lea ecx, [ebp - 4]
call fcn.00403487
pop edi
pop esi
mov al, bl
pop ebx
leave
ret

Function at 0x4073cd
Capabilities:
Parse pe header

Disassembly:
push 0
call dword [sym.imp.KERNEL32.dll_GetModuleHandleW]
test eax, eax
je 0x40740c
mov ecx, 0x5a4d
cmp word [eax], cx
jne 0x40740c
mov ecx, dword [eax + 0x3c]
add ecx, eax
cmp dword [ecx], 0x4550
jne 0x40740c
mov eax, 0x10b
cmp word [ecx + 0x18], ax
jne 0x40740c
cmp dword [ecx + 0x74], 0xe
jbe 0x40740c
cmp dword [ecx + 0xe8], 0
setne al
ret
xor al, al
ret
Function at 0x40f9e9
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 0x40fa86
push ebx
push esi
call fcn.0040f9b2
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.0040f946
add esp, 0x24
mov dword [ebp - 4], eax
test eax, eax
jne 0x40fa33
push esi
call dword [sym.imp.KERNEL32.dll_FreeEnvironmentStringsW]
xor eax, eax
jmp 0x40fa85
push edi
push eax
call fcn.004102a0
mov edi, eax
pop ecx
push ebx
test edi, edi
jne 0x40fa53
call fcn.0040e48e
pop ecx
push esi
call dword [sym.imp.KERNEL32.dll_FreeEnvironmentStringsW]
xor eax, eax
jmp 0x40fa84
push ebx
push dword [ebp - 4]
push edi
push dword [ebp - 8]
push esi
push ebx
push ebx
call fcn.0040f946
add esp, 0x20
test eax, eax
jne 0x40fa72
push edi
call fcn.0040e48e
jmp 0x40fa7a
push ebx
call fcn.0040e48e
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 0x410c7e
Capabilities:
Allocate thread local storage

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push esi
push 0x41d278
push 0x41d270
push str.FlsAlloc
push 0x1f
call fcn.00410b9a
mov esi, eax
add esp, 0x10
test esi, esi
je 0x410cb2
push dword [ebp + 8]
mov ecx, esi
call dword [0x41b1e0]
call esi
jmp 0x410cb8
call dword [sym.imp.KERNEL32.dll_TlsAlloc]
pop esi
pop ebp
ret 4

Function at 0x410cfc
Capabilities:
Get thread local storage value

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push esi
push 0x41d288
push 0x41d280
push str.FlsGetValue
push 0x21
call fcn.00410b9a
mov esi, eax
add esp, 0x10
test esi, esi
je 0x410d33
push dword [ebp + 8]
mov ecx, esi
call dword [0x41b1e0]
call esi
pop esi
pop ebp
ret 4
pop esi
pop ebp
jmp dword [sym.imp.KERNEL32.dll_TlsGetValue]

Function at 0x410d3b
Capabilities:
Set thread local storage value

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push esi
push 0x41d290
push 0x41d288
push str.FlsSetValue
push 0x22
call fcn.00410b9a
mov esi, eax
add esp, 0x10
test esi, esi
je 0x410d75
push dword [ebp + 0xc]
mov ecx, esi
push dword [ebp + 8]
call dword [0x41b1e0]
call esi
pop esi
pop ebp
ret 8
pop esi
pop ebp
jmp dword [sym.imp.KERNEL32.dll_TlsSetValue]
Function at 0x418ae0
Capabilities:
Parse pe header

Disassembly:
push ebp
mov ebp, esp
mov eax, dword [ebp + 8]
mov ecx, 0x5a4d
cmp word [eax], cx
jne 0x418b0d
mov ecx, dword [eax + 0x3c]
add ecx, eax
cmp dword [ecx], 0x4550
jne 0x418b0d
mov edx, 0x10b
xor eax, eax
cmp word [ecx + 0x18], dx
sete al
pop ebp
ret
xor eax, eax
pop ebp
ret
Function at 0x403314
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.00404f64
test esi, esi
jne 0x40334a
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.00405054
jmp 0x403368
call sub.kernel32.dll_GetCommandLineA
mov edi, eax
mov edx, ebx
mov eax, edi
call fcn.004031b8
mov edi, eax
test esi, esi
je 0x403368
cmp dword [ebx], 0
je 0x403368
dec esi
jmp 0x403351
add esp, 0x108
pop edi
pop esi
pop ebx
ret

Function at 0x403e74
Capabilities:
Query or enumerate registry value

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

Function at 0x404d10
Capabilities:
Write file on windows

Disassembly:
push ecx
cmp byte [0x441044], 0
je 0x404d71
cmp word [0x441218], 0xd7b2
jne 0x404d39
cmp dword [0x441220], 0
jbe 0x404d39
mov eax, 0x441214
call dword [0x441230]
push 0
lea eax, [esp + 4]
push eax
push 0x1e
push str.Runtime_error_____at_00000000
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 0x404d98
push 0xfffffffffffffff5
call sub.kernel32.dll_GetStdHandle
push eax
call sub.kernel32.dll_WriteFile
pop edx
ret
cmp byte [0x43f02c], 0
jne 0x404d8d
push 0
push str.Error
push str.Runtime_error_____at_00000000
push 0
call sub.user32.dll_MessageBoxA
pop edx
ret

Function at 0x404ee8
Capabilities:
Create thread

Disassembly:
push ebp
mov ebp, esp
push ecx
push ebx
push esi
push edi
mov ebx, ecx
mov dword [ebp - 4], edx
mov edi, eax
mov esi, dword [ebp + 0x10]
cmp dword [0x43f034], 0
je 0x404f0e
mov edx, esi
mov eax, ebx
call dword [0x43f034]
jmp 0x404f1d
mov eax, 8
call fcn.00402ebc
mov dword [eax], ebx
mov dword [eax + 4], esi
mov byte [0x441045], 1
mov edx, dword [ebp + 8]
push edx
mov edx, dword [ebp + 0xc]
push edx
push eax
mov eax, 0x404eb0
push eax
mov eax, dword [ebp - 4]
push eax
push edi
call sub.kernel32.dll_CreateThread
pop edi
pop esi
pop ebx
pop ecx
pop ebp
ret 0xc
Function at 0x4064f0
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 0x406720
push 0x80000001
call sub.advapi32.dll_RegOpenKeyExA
test eax, eax
je 0x406573
lea eax, [ebp - 8]
push eax
push 0xf0019
push 0
push 0x406720
push 0x80000002
call sub.advapi32.dll_RegOpenKeyExA
test eax, eax
je 0x406573
lea eax, [ebp - 8]
push eax
push 0xf0019
push 0
push 0x40673c
push 0x80000001
call sub.advapi32.dll_RegOpenKeyExA
test eax, eax
jne 0x4065fc
xor eax, eax
push ebp
push 0x4065f5
push dword fs:[eax]
mov dword fs:[eax], esp
mov dword [ebp - 0x18], 5
lea eax, [ebp - 0x11d]
mov edx, 0x105
call fcn.0040632c
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 0x4065da
lea eax, [ebp - 0x18]
push eax
lea eax, [ebp - 0x12]
push eax
push 0
push 0
push 0x40675c
mov eax, dword [ebp - 8]
push eax
call sub.advapi32.dll_RegQueryValueExA
test eax, eax
je 0x4065da
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 0x4065fc
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 0x406716
cmp byte [ebp - 0xd], 0
jne 0x406643
cmp byte [ebp - 0x12], 0
je 0x406716
lea eax, [ebp - 0x11d]
push eax
call sub.kernel32.dll_lstrlenA
mov ebx, eax
lea eax, [ebp - 0x11d]
add ebx, eax
jmp 0x40665c
dec ebx
cmp byte [ebx], 0x2e
je 0x40666b
lea eax, [ebp - 0x11d]
cmp ebx, eax
jne 0x40665b
lea eax, [ebp - 0x11d]
cmp ebx, eax
je 0x406716
inc ebx
cmp byte [ebp - 0x12], 0
je 0x4066a8
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 0x406716
cmp byte [ebp - 0xd], 0
je 0x406716
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 0x406716
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
Function at 0x4082f4
Capabilities:
Encrypt data using rc4 prga

Disassembly:
cmp eax, edx
je 0x408346
test eax, edx
je 0x408349
movzx ecx, byte [edx]
cmp cl, byte [eax]
je 0x408309
movzx eax, byte [eax]
sub eax, ecx
ret
push ebx
mov ebx, dword [eax - 4]
xor ecx, ecx
sub ebx, dword [edx - 4]
push ebx
adc ecx, 0xffffffff
and ecx, ebx
sub ecx, dword [eax - 4]
sub eax, ecx
sub edx, ecx
mov ebx, dword [ecx + eax]
xor ebx, dword [ecx + edx]
jne 0x40832f
add ecx, 4
js 0x40831f
pop eax
pop ebx
ret
bsf ebx, ebx
shr ebx, 3
add ecx, ebx
jns 0x40832c
movzx eax, byte [ecx + eax]
movzx edx, byte [ecx + edx]
sub eax, edx
pop ebx
pop ebx
ret
xor eax, eax
ret
test eax, eax
je 0x408355
test edx, edx
jne 0x4082fc
mov eax, dword [eax - 4]
ret
sub eax, dword [edx - 4]
ret

Function at 0x408c2c
Capabilities:
Check if file exists
Get file attributes

Disassembly:
push ebx
push esi
mov esi, eax
mov eax, esi
call fcn.00405404
push eax
call sub.kernel32.dll_GetFileAttributesA
cmp eax, 0xffffffff
je 0x408c4a
test al, 0x10
sete al
pop esi
pop ebx
ret
call sub.kernel32.dll_GetLastError_1
mov ebx, eax
cmp ebx, 2
je 0x408c6b
cmp ebx, 3
je 0x408c6b
cmp ebx, 0x7b
je 0x408c6b
mov eax, esi
call fcn.00408bec
test al, al
jne 0x408c6f
xor eax, eax
jmp 0x408c71
mov al, 1
pop esi
pop ebx
ret

Function at 0x408c74
Capabilities:
Check if file exists
Get file attributes

Disassembly:
push ebx
mov ebx, eax
mov eax, ebx
call fcn.00405404
push eax
call sub.kernel32.dll_GetFileAttributesA
cmp eax, 0xffffffff
je 0x408c8d
test al, 0x10
jne 0x408c91
xor eax, eax
pop ebx
ret
mov al, 1
pop ebx
ret

Function at 0x40bfe4
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 0x40c01d
mov ecx, eax
dec ecx
lea edx, [ebp - 0x100]
mov eax, ebx
call fcn.00405054
jmp 0x40c026
mov eax, ebx
mov edx, esi
call fcn.00404fb8
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 4

Function at 0x40c030
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 0x40c052
movzx eax, byte [esp]
jmp 0x40c054
mov eax, ebx
pop edx
pop edi
pop esi
pop ebx
ret
Function at 0x40c6e4
Capabilities:
Write file on windows

Disassembly:
add esp, 0xfffffbbc
push 0x400
lea ecx, [esp + 0x48]
call 0x40c55c
mov eax, dword [0x440250]
cmp byte [eax], 0
je 0x40c760
mov eax, dword [0x440010]
call fcn.00403744
call fcn.00403018
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.00408f64
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 0x40c7a8
push 0xfffffffffffffff4
call sub.kernel32.dll_GetStdHandle_1
push eax
call sub.kernel32.dll_WriteFile_1
jmp 0x40c796
push 0x40
lea eax, [esp + 8]
push eax
mov eax, dword [0x43ffc8]
mov eax, dword [eax + 4]
push eax
mov eax, dword [0x4437f0]
call fcn.004062d4
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 0x41a94c
Capabilities:
Resume thread

Disassembly:
push ebx
push esi
mov ebx, eax
mov eax, dword [ebx + 4]
push eax
call sub.kernel32.dll_ResumeThread
mov esi, eax
test esi, esi
setge dl
mov eax, ebx
call fcn.0041a688
dec esi
jne 0x41a96e
mov byte [ebx + 0xe], 0
pop esi
pop ebx
ret