joyce8/EMBER2024-capa huggingface dataset:
Function at 0x405613
Capabilities:
Enumerate internet cache

Disassembly:
push ebp
mov ebp, esp
mov eax, 0x1f4c
call fcn.004079e4
push ebx
push esi
push edi
mov ebx, dword [ebp + 8]
mov edi, 0x3ed7785
mov eax, edi
add eax, edi
mov edi, eax
add edi, 0x408e
mov dword [ebp - 0x1f44], 0x1f40
lea eax, [ebp - 0x1f44]
push eax
lea eax, [ebp - 0x1f40]
push eax
push 0x42c87a
call sub.WININET.DLL_FindFirstUrlCacheEntryA
mov esi, eax
or eax, eax
je 0x405707
mov eax, 0x6241
mul edi
mov dword [ebp - 0x1f48], eax
mov edi, eax
push ebx
push dword [ebp - 0x1f3c]
call sub.CRTDLL.DLL__stricmp
add esp, 8
or eax, eax
jne 0x4056a7
push dword [ebp - 0x1f38]
push dword [ebp + 0xc]
call fcn.00407a04
mov eax, 0x288d
mul edi
mov dword [ebp - 0x1f4c], eax
mov edi, eax
xor eax, eax
inc eax
jmp 0x405707
mov dword [ebp - 0x1f44], 0x1f40
lea eax, [ebp - 0x1f44]
push eax
lea eax, [ebp - 0x1f40]
push eax
push esi
call sub.WININET.DLL_FindNextUrlCacheEntryA
or eax, eax
je 0x4056fd
mov eax, edi
xor eax, edi
mov edi, eax
push ebx
push dword [ebp - 0x1f3c]
call sub.CRTDLL.DLL__stricmp
add esp, 8
or eax, eax
jne 0x4056fb
push dword [ebp - 0x1f38]
push dword [ebp + 0xc]
call fcn.00407a04
mov eax, edi
xor eax, edi
mov edi, eax
xor eax, eax
inc eax
jmp 0x405707
jmp 0x4056a7
xor eax, eax
jmp 0x405707
pop edi
pop esi
pop ebx
leave
ret
Function at 0x405f5b
Capabilities:
Create thread

Disassembly:
push ebp
mov ebp, esp
sub esp, 0xc
push ebx
push esi
push edi
mov ebx, dword [ebp + 8]
mov edi, 0x536c6b18
mov eax, edi
add eax, edi
mov edi, eax
push ebx
call sub.KERNEL32.DLL_lstrlenA
mov dword [ebp - 8], eax
push dword [ebp + 0xc]
call sub.KERNEL32.DLL_lstrlenA
mov edx, dword [ebp - 8]
lea edx, [edx + eax + 0x10]
push edx
push 0x40
call sub.KERNEL32.DLL_LocalAlloc
mov esi, eax
push ebx
push esi
call fcn.00407a04
mov eax, edi
xor eax, edi
mov edi, eax
push ebx
call sub.KERNEL32.DLL_lstrlenA
push dword [ebp + 0xc]
lea edx, [esi + eax + 1]
push edx
call fcn.00407a04
push ebx
call sub.WININET.DLL_DeleteUrlCacheEntry
lea eax, [ebp - 4]
push eax
push 0
push esi
push 0x405c09
push 0
push 0
call sub.KERNEL32.DLL_CreateThread
mov esi, eax
mov eax, edi
mul edi
mov dword [ebp - 0xc], eax
mov edi, eax
push 0xffffffffffffffff
push esi
call sub.KERNEL32.DLL_WaitForSingleObject
lea eax, [ebp - 4]
push eax
push esi
call sub.KERNEL32.DLL_GetExitCodeThread
push esi
call sub.KERNEL32.DLL_CloseHandle
mov eax, dword [ebp - 4]
pop edi
pop esi
pop ebx
leave
ret
Function at 0x406753
Capabilities:
Get file size

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x1c
push ebx
push esi
push edi
mov edi, 0x717b0efe
mov eax, edi
mul edi
mov dword [ebp - 0x14], eax
mov edi, eax
push 0
push pe_nt_image_headers32
push 3
push 0
push 3
push 0x80000000
push dword [ebp + 8]
call sub.KERNEL32.DLL_CreateFileA
mov esi, eax
cmp esi, 0xffffffff
je 0x406826
mov eax, 0x498b
mul edi
mov dword [ebp - 0x18], eax
mov edi, eax
push 0
push esi
call sub.KERNEL32.DLL_GetFileSize
mov ebx, eax
push esi
call sub.KERNEL32.DLL_CloseHandle
and dword [ebp - 4], 0
mov dword [ebp - 0xc], 4
lea eax, [ebp - 0x10]
push eax
lea eax, [ebp - 0xc]
push eax
lea eax, [ebp - 4]
push eax
push dword [ebp + 0x10]
push str.SoftwareMicrosoft
push 0x80000001
call fcn.004013cc
add esp, 0x18
cmp dword [ebp - 4], ebx
jae 0x406826
push 0
push dword [ebp - 4]
push 0x42c6bb
push 0x42c6bd
push dword [ebp + 0xc]
push dword [ebp + 8]
call fcn.004054d7
add esp, 0x18
mov dword [ebp - 8], eax
or eax, eax
je 0x406826
push 4
push 4
lea eax, [ebp - 8]
push eax
push dword [ebp + 0x10]
push str.SoftwareMicrosoft
push 0x80000001
call fcn.00401348
add esp, 0x18
mov eax, edi
mul edi
mov dword [ebp - 0x1c], eax
mov edi, eax
pop edi
pop esi
pop ebx
leave
ret
Function at 0x407980
Capabilities:
Accept command line arguments

Disassembly:
push ebp
mov ebp, esp
push ecx
push edi
call sub.KERNEL32.DLL_GetCommandLineA
mov edi, eax
cmp byte [edi], 0x22
jne 0x4079b4
push 0x22
mov eax, edi
inc eax
push eax
call sub.CRTDLL.DLL_strchr
add esp, 8
mov dword [ebp - 4], eax
or eax, eax
je 0x4079cf
mov edi, eax
inc edi
jmp 0x4079ac
inc edi
cmp byte [edi], 0x20
je 0x4079ab
jmp 0x4079cf
inc edi
movsx eax, byte [edi]
or eax, eax
je 0x4079c0
cmp eax, 0x20
jne 0x4079b3
jmp 0x4079c3
inc edi
movsx eax, byte [edi]
or eax, eax
je 0x4079cf
cmp eax, 0x20
je 0x4079c2
push 0
call sub.KERNEL32.DLL_GetModuleHandleA
push 1
push edi
push 0
push eax
call fcn.00406c29
pop edi
leave
ret
Function at 0x4145b0
Capabilities:
Query environment variable

Disassembly:
mov eax, 0x10054
call fcn.00438e70
mov eax, dword [0x449004]
xor eax, esp
mov dword [esp + 0x10050], eax
xor eax, eax
push ecx
lea ecx, [esp + 4]
mov word [esp + 0x54], ax
mov word [esp + 4], ax
call fcn.004148c0
add esp, 4
lea eax, [esp + 0x50]
push 0x10000
push eax
lea eax, [esp + 8]
push eax
call dword [sym.imp.KERNEL32.dll_GetEnvironmentVariableW]
test eax, eax
je 0x414623
cmp eax, 0x10000
ja 0x414623
lea eax, [esp + 0x50]
push eax
call fcn.0042cf87
add esp, 4
mov ecx, dword [esp + 0x10050]
xor ecx, esp
call fcn.0041efcd
add esp, 0x10054
ret
mov ecx, dword [esp + 0x10050]
xor eax, eax
xor ecx, esp
call fcn.0041efcd
add esp, 0x10054
ret

Function at 0x414640
Capabilities:
Set environment variable

Disassembly:
sub esp, 0x54
mov eax, dword [0x449004]
xor eax, esp
mov dword [esp + 0x50], eax
xor eax, eax
push ecx
lea ecx, [esp + 4]
mov word [esp + 4], ax
call fcn.004148c0
add esp, 4
lea eax, [esp]
push 0
push eax
call dword [sym.imp.KERNEL32.dll_SetEnvironmentVariableW]
mov ecx, dword [esp + 0x50]
xor ecx, esp
call fcn.0041efcd
add esp, 0x54
ret
Function at 0x41c540
Capabilities:
Extract resource via kernel32 functions

Disassembly:
push ecx
cmp byte [0x44bbad], 0
push ebp
push esi
mov ebp, edx
mov dword [esp + 8], ecx
jne 0x41c5a0
push 0xa
push 3
push 0
call dword [sym.imp.KERNEL32.dll_FindResourceA]
push eax
push 0
call dword [sym.imp.KERNEL32.dll_LoadResource]
push eax
call dword [sym.imp.KERNEL32.dll_LockResource]
mov dword [0x44b83c], eax
mov esi, dword [eax]
add eax, 4
mov dword [0x44b83c], eax
mov ecx, dword [eax]
lea edx, [eax + 4]
push ecx
mov dword [0x44b83c], edx
call fcn.0041ae80
add esp, 4
cmp eax, esi
jne 0x41c701
mov byte [0x44bbad], 1
push ebx
mov ebx, dword [esp + 0x14]
mov ecx, 0x4402d8
push edi
mov eax, ebx
nop dword [eax]
mov dl, byte [eax]
cmp dl, byte [ecx]
jne 0x41c5d0
test dl, dl
je 0x41c5cc
mov dl, byte [eax + 1]
cmp dl, byte [ecx + 1]
jne 0x41c5d0
add eax, 2
add ecx, 2
test dl, dl
jne 0x41c5b0
xor eax, eax
jmp 0x41c5d5
sbb eax, eax
or eax, 1
test eax, eax
je 0x41c64d
cmp byte [0x44bbae], 1
je 0x41c64d
mov esi, dword [sym.imp.python36.dll_PyDict_New]
call esi
mov dword [0x44be18], eax
call esi
mov dword [0x44c078], eax
call esi
mov dword [0x44bbb0], eax
call esi
mov dword [0x44bb68], eax
call esi
mov dword [0x44c0a8], eax
call esi
mov dword [0x44bbf4], eax
call esi
mov dword [0x44c07c], eax
call esi
mov edi, dword [sym.imp.python36.dll_PyLong_FromLong]
mov esi, 0xfffffffb
mov dword [0x44c088], eax
nop dword [eax + eax]
push esi
call edi
mov dword [esi*4 + 0x44c0f4], eax
add esp, 4
inc esi
cmp esi, 0x101
jl 0x41c630
mov byte [0x44bbae], 1
mov esi, dword [0x44b83c]
mov eax, ebx
mov ecx, esi
mov dl, byte [eax]
cmp dl, byte [ecx]
jne 0x41c677
test dl, dl
je 0x41c673
mov dl, byte [eax + 1]
cmp dl, byte [ecx + 1]
jne 0x41c677
add eax, 2
add ecx, 2
test dl, dl
jne 0x41c657
xor edx, edx
jmp 0x41c67c
sbb edx, edx
or edx, 1
mov ecx, esi
lea edi, [ecx + 1]
mov al, byte [ecx]
inc ecx
test al, al
jne 0x41c681
sub ecx, edi
add esi, ecx
mov eax, dword [esi + 1]
add esi, 5
test edx, edx
je 0x41c6e5
add esi, eax
mov ecx, ebx
mov eax, esi
nop dword [eax]
mov dl, byte [ecx]
cmp dl, byte [eax]
jne 0x41c6c0
test dl, dl
je 0x41c6bc
mov dl, byte [ecx + 1]
cmp dl, byte [eax + 1]
jne 0x41c6c0
add ecx, 2
add eax, 2
test dl, dl
jne 0x41c6a0
xor edx, edx
jmp 0x41c6c5
sbb edx, edx
or edx, 1
mov ecx, esi
lea edi, [ecx + 1]
nop word [eax + eax]
mov al, byte [ecx]
inc ecx
test al, al
jne 0x41c6d0
sub ecx, edi
add esi, ecx
mov eax, dword [esi + 1]
add esi, 5
test edx, edx
jne 0x41c696
movzx eax, word [esi]
mov edx, ebp
mov ecx, dword [esp + 0x10]
push eax
lea eax, [esi + 2]
push eax
call fcn.0041b880
add esp, 8
pop edi
pop ebx
pop esi
pop ebp
pop ecx
ret
push str.Error__corrupted_constants_object
call fcn.0042bb80
add esp, 4
call fcn.00422160
int3

Function at 0x41f8a7
Capabilities:
Parse pe header

Disassembly:
push 0
call dword [sym.imp.KERNEL32.dll_GetModuleHandleW]
test eax, eax
je 0x41f8e6
mov ecx, 0x5a4d
cmp word [eax], cx
jne 0x41f8e6
mov ecx, dword [eax + 0x3c]
add ecx, eax
cmp dword [ecx], 0x4550
jne 0x41f8e6
mov eax, 0x10b
cmp word [ecx + 0x18], ax
jne 0x41f8e6
cmp dword [ecx + 0x74], 0xe
jbe 0x41f8e6
cmp dword [ecx + 0xe8], 0
setne al
ret
xor al, al
ret
Function at 0x42d994
Capabilities:
Allocate thread local storage

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push esi
push 0x43c4f0
push 0x43c4e8
push str.FlsAlloc
push 0x1e
call fcn.0042d855
mov esi, eax
add esp, 0x10
test esi, esi
je 0x42d9c8
push dword [ebp + 8]
mov ecx, esi
call dword [0x43a478]
call esi
jmp 0x42d9ce
call dword [sym.imp.KERNEL32.dll_TlsAlloc]
pop esi
pop ebp
ret 4

Function at 0x42da12
Capabilities:
Get thread local storage value

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push esi
push 0x43c500
push 0x43c4f8
push str.FlsGetValue
push 0x20
call fcn.0042d855
mov esi, eax
add esp, 0x10
test esi, esi
je 0x42da49
push dword [ebp + 8]
mov ecx, esi
call dword [0x43a478]
call esi
pop esi
pop ebp
ret 4
pop esi
pop ebp
jmp dword [sym.imp.KERNEL32.dll_TlsGetValue]

Function at 0x4310db
Capabilities:
Enumerate files on windows

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x264
mov eax, dword [0x449004]
xor eax, ebp
mov dword [ebp - 4], eax
mov edx, dword [ebp + 0xc]
mov ecx, dword [ebp + 0x10]
push ebx
push esi
push edi
mov edi, dword [ebp + 8]
mov dword [ebp - 0x25c], ecx
cmp edx, edi
je 0x431126
movzx eax, word [edx]
lea ecx, [ebp - 0x255]
push eax
call fcn.0043127a
test al, al
jne 0x431120
sub edx, 2
cmp edx, edi
jne 0x431106
mov ecx, dword [ebp - 0x25c]
movzx esi, word [edx]
cmp esi, 0x3a
jne 0x431148
lea eax, [edi + 2]
cmp edx, eax
je 0x431148
push ecx
xor ebx, ebx
push ebx
push ebx
push edi
call fcn.00431027
add esp, 0x10
jmp 0x431242
push esi
lea ecx, [ebp - 0x255]
call fcn.0043127a
sub edx, edi
movzx eax, al
sar edx, 1
inc edx
neg eax
sbb eax, eax
xor ebx, ebx
push ebx
push ebx
and eax, edx
push ebx
mov dword [ebp - 0x260], eax
lea eax, [ebp - 0x254]
push eax
push ebx
push edi
call dword [sym.imp.KERNEL32.dll_FindFirstFileExW]
mov esi, eax
cmp esi, 0xffffffff
jne 0x43118b
push dword [ebp - 0x25c]
jmp 0x431138
mov ebx, dword [ebp - 0x25c]
push 0x2e
mov eax, dword [ebx + 4]
sub eax, dword [ebx]
sar eax, 2
mov dword [ebp - 0x25c], eax
pop eax
cmp word [ebp - 0x228], ax
jne 0x4311c8
cmp word [ebp - 0x226], 0
je 0x4311e9
cmp word [ebp - 0x226], ax
jne 0x4311c8
cmp word [ebp - 0x224], 0
je 0x4311e9
push ebx
push dword [ebp - 0x260]
lea eax, [ebp - 0x228]
push edi
push eax
call fcn.00431027
add esp, 0x10
mov dword [ebp - 0x264], eax
test eax, eax
jne 0x431235
lea eax, [ebp - 0x254]
push eax
push esi
call dword [sym.imp.KERNEL32.dll_FindNextFileW]
push 0x2e
test eax, eax
pop eax
jne 0x4311a2
mov eax, dword [ebx + 4]
mov edx, dword [ebx]
sub eax, edx
mov ecx, dword [ebp - 0x25c]
sar eax, 2
cmp ecx, eax
jne 0x43121d
push esi
call dword [sym.imp.KERNEL32.dll_FindClose]
xor eax, eax
jmp 0x431242
push 0x430d88
sub eax, ecx
push 4
push eax
lea eax, [edx + ecx*4]
push eax
call fcn.00436a40
add esp, 0x10
jmp 0x431212
push esi
call dword [sym.imp.KERNEL32.dll_FindClose]
mov eax, dword [ebp - 0x264]
mov ecx, dword [ebp - 4]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.0041efcd
leave
ret
Function at 0x431cbb
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 0x431d58
push ebx
push esi
call fcn.00431c84
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.00431bcd
add esp, 0x24
mov dword [ebp - 4], eax
test eax, eax
jne 0x431d05
push esi
call dword [sym.imp.KERNEL32.dll_FreeEnvironmentStringsW]
xor eax, eax
jmp 0x431d57
push edi
push eax
call fcn.0042efad
mov edi, eax
pop ecx
push ebx
test edi, edi
jne 0x431d25
call fcn.0042d6e8
pop ecx
push esi
call dword [sym.imp.KERNEL32.dll_FreeEnvironmentStringsW]
xor eax, eax
jmp 0x431d56
push ebx
push dword [ebp - 4]
push edi
push dword [ebp - 8]
push esi
push ebx
push ebx
call fcn.00431bcd
add esp, 0x20
test eax, eax
jne 0x431d44
push edi
call fcn.0042d6e8
jmp 0x431d4c
push ebx
call fcn.0042d6e8
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 0x431d5b
Capabilities:
Query environment variable

Disassembly:
mov edi, edi
push esi
call dword [sym.imp.KERNEL32.dll_GetEnvironmentStringsW]
mov esi, eax
test esi, esi
jne 0x431d6c
pop esi
ret
push ebx
push edi
push esi
call fcn.00431c84
mov ebx, eax
sub ebx, esi
and ebx, 0xfffffffe
push ebx
call fcn.0042efad
mov edi, eax
pop ecx
pop ecx
test edi, edi
je 0x431d94
push ebx
push esi
push edi
call fcn.00420ca0
add esp, 0xc
push 0
call fcn.0042d6e8
pop ecx
push esi
call dword [sym.imp.KERNEL32.dll_FreeEnvironmentStringsW]
mov eax, edi
pop edi
pop ebx
pop esi
ret

Function at 0x4324e0
Capabilities:
Set environment variable

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
pop ebp
jmp fcn.00432007
Function at 0x438ae0
Capabilities:
Parse pe header

Disassembly:
push ebp
mov ebp, esp
mov eax, dword [ebp + 8]
mov ecx, 0x5a4d
cmp word [eax], cx
jne 0x438b0d
mov ecx, dword [eax + 0x3c]
add ecx, eax
cmp dword [ecx], 0x4550
jne 0x438b0d
mov edx, 0x10b
xor eax, eax
cmp word [ecx + 0x18], dx
sete al
pop ebp
ret
xor eax, eax
pop ebp
ret
Function at 0x4157d0
Capabilities:
Get geographical location

Disassembly:
sub esp, 0x804
mov eax, dword [0x427004]
xor eax, esp
mov dword [esp + 0x800], eax
push esi
xor esi, esi
test edi, edi
jle 0x41583b
push ebp
mov ebp, dword [sym.imp.KERNEL32.dll_EndUpdateResourceA]
cmp edi, 0x2d
jne 0x415817
push 0
push 0
call ebp
push str.ruwikusifonemudijimitomireje_lidakabokuvejigatomerufumajam_sexomugunafivokuju_cizonajay_naxih
push str.gabururijucosodemiyarofokux_sed_silecefozukirahuyabe_foteve_vumunekicuborusepihorepe
push str.pahenetadezu
push str.tayuxekuhobamotagijobora
call dword [sym.imp.KERNEL32.dll_WritePrivateProfileStringA]
call fcn.00415750
xor byte [ebx + esi], al
cmp edi, 0xf
jne 0x415835
push 0
lea eax, [esp + 0xc]
push eax
push 0
push 0
call dword [sym.imp.KERNEL32.dll_GetLocaleInfoW]
inc esi
cmp esi, edi
jl 0x4157f2
pop ebp
pop esi
cmp edi, 0x2d
jne 0x415855
mov dword [0x42a7e0], 0xa62e7790
mov dword [0x42a7e4], 0xffffffff
mov ecx, dword [esp + 0x800]
xor ecx, esp
call fcn.004010f0
add esp, 0x804
ret
Function at 0x415c80
Capabilities:
Read file on windows
Set file attributes

Disassembly:
sub esp, 0x41c
mov eax, dword [0x427004]
xor eax, esp
mov dword [esp + 0x418], eax
mov eax, dword [0x42a7d4]
push ebx
push ebp
push esi
mov esi, dword [sym.imp.KERNEL32.dll_SetFileAttributesW]
push edi
mov edi, dword [sym.imp.KERNEL32.dll_IsProcessorFeaturePresent]
mov ebp, 0x1519a5
mov ebx, 0x8e46a7b8
mov dword [0x42a43c], ebx
cmp eax, 0x3dc
jne 0x415cd2
push 0
push 0x424bb8
call esi
push 0
call edi
mov eax, dword [0x42a7d4]
dec ebp
jne 0x415cb3
mov edi, dword [sym.imp.KERNEL32.dll_ReadFile]
mov ebx, dword [sym.imp.KERNEL32.dll_CancelIo]
xor esi, esi
cmp eax, 0x997
jne 0x415d1b
xor eax, eax
mov dword [esp + 0x14], eax
mov dword [esp + 0x18], eax
mov dword [esp + 0x1c], eax
mov dword [esp + 0x20], eax
lea eax, [esp + 0x10]
push eax
lea ecx, [esp + 0x28]
push ecx
push ebp
lea edx, [esp + 0x34]
push edx
push ebp
mov dword [esp + 0x24], ebp
call edi
push ebp
call ebx
mov eax, dword [0x42a7d4]
cmp esi, 0x845f8b
jne 0x415d32
mov eax, dword [0x428940]
add eax, 0xa231
mov dword [0x42a7d4], eax
cmp eax, 0x141
jne 0x415d4d
mov dword [0x42a010], 0xec58acac
mov dword [0x42a014], 0xffffffff
inc esi
cmp esi, 0x12cca12
jl 0x415ce3
call fcn.004158b0
mov ecx, dword [esp + 0x428]
pop edi
pop esi
pop ebp
pop ebx
xor ecx, esp
xor eax, eax
call fcn.004010f0
add esp, 0x41c
ret 0x10
Function at 0x40322c
Capabilities:
Accept command line arguments

Disassembly:
push ebx
push esi
push edi
add esp, 0xfffffdf4
mov ebx, edx
mov esi, eax
mov eax, ebx
xor edx, edx
call fcn.00404cf8
test esi, esi
jne 0x403264
push 0x105
lea eax, [esp + 4]
push eax
push 0
call sub.kernel32.dll_GetModuleFileNameW
mov ecx, eax
mov edx, esp
mov eax, ebx
call fcn.00404e34
jmp 0x403282
call sub.kernel32.dll_GetCommandLineW
mov edi, eax
mov edx, ebx
mov eax, edi
call fcn.00403170
mov edi, eax
test esi, esi
je 0x403282
cmp dword [ebx], 0
je 0x403282
dec esi
jmp 0x40326b
add esp, 0x20c
pop edi
pop esi
pop ebx
ret

Function at 0x4037f8
Capabilities:
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffff4
movzx eax, word [0x419020]
mov dword [ebp - 8], eax
lea eax, [ebp - 4]
push eax
push 1
push 0
push 0x403890
push 0x80000002
call sub.advapi32.dll_RegOpenKeyExW
test eax, eax
jne 0x403870
xor eax, eax
push ebp
push 0x403869
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 0x4038c8
mov eax, dword [ebp - 4]
push eax
call sub.advapi32.dll_RegQueryValueExW
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x403870
mov eax, dword [ebp - 4]
push eax
call sub.advapi32.dll_RegCloseKey
ret
movzx eax, word [0x419020]
and ax, 0xffc0
movzx edx, word [ebp - 8]
and dx, 0x3f
or ax, dx
mov word [0x419020], ax
mov esp, ebp
pop ebp
ret

Function at 0x404560
Capabilities:
Write file on windows

Disassembly:
push ecx
cmp byte [0x41d04c], 0
je 0x4045c1
cmp word [0x41d328], 0xd7b2
jne 0x404589
cmp dword [0x41d330], 0
jbe 0x404589
mov eax, 0x41d324
call dword [0x41d340]
push 0
lea eax, [esp + 4]
push eax
push 0x1d
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 0x4045ec
push 0xfffffffffffffff5
call sub.kernel32.dll_GetStdHandle
push eax
call sub.kernel32.dll_WriteFile
pop edx
ret
cmp byte [0x41902c], 0
jne 0x4045dd
push 0
push str.Error
push str.Runtime_error_____at_00000000
push 0
call sub.user32.dll_MessageBoxA
pop edx
ret
Function at 0x406458
Capabilities:
Get system information on windows

Disassembly:
add esp, 0xffffffdc
push esp
call sub.kernel32.dll_GetSystemInfo
mov eax, dword [esp + 0x14]
add esp, 0x24
ret

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

Disassembly:
push ebx
push esi
mov esi, eax
mov eax, esi
call fcn.00404d84
push eax
call sub.kernel32.dll_GetFileAttributesW
cmp eax, 0xffffffff
je 0x408796
test al, 0x10
sete al
pop esi
pop ebx
ret
call sub.kernel32.dll_GetLastError
mov ebx, eax
cmp ebx, 2
je 0x4087b7
cmp ebx, 3
je 0x4087b7
cmp ebx, 0x7b
je 0x4087b7
mov eax, esi
call fcn.00408738
test al, al
jne 0x4087bb
xor eax, eax
jmp 0x4087bd
mov al, 1
pop esi
pop ebx
ret

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

Disassembly:
push ebx
mov ebx, eax
mov eax, ebx
call fcn.00404d84
push eax
call sub.kernel32.dll_GetFileAttributesW
cmp eax, 0xffffffff
je 0x4087d9
test al, 0x10
jne 0x4087dd
xor eax, eax
pop ebx
ret
mov al, 1
pop ebx
ret

Function at 0x40bb8c
Capabilities:
Get geographical location

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffe00
push ebx
push esi
mov esi, ecx
mov ebx, dword [ebp + 8]
push pe_nt_image_headers32
lea ecx, [ebp - 0x200]
push ecx
push edx
push eax
call sub.kernel32.dll_GetLocaleInfoW_1
test eax, eax
jle 0x40bbc5
mov ecx, eax
dec ecx
lea edx, [ebp - 0x200]
mov eax, ebx
call fcn.00404e34
jmp 0x40bbce
mov eax, ebx
mov edx, esi
call fcn.00404cf8
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 4

Function at 0x40bbd8
Capabilities:
Get geographical location

Disassembly:
push ebx
push esi
push edi
push ecx
mov edi, ecx
mov esi, edx
mov ebx, eax
push 2
lea eax, [esp + 4]
push eax
push esi
push ebx
call sub.kernel32.dll_GetLocaleInfoW_1
test eax, eax
jle 0x40bbfa
movzx eax, word [esp]
jmp 0x40bbfc
mov eax, edi
pop edx
pop edi
pop esi
pop ebx
ret

Function at 0x40c360
Capabilities:
Write file on windows

Disassembly:
add esp, 0xfffff004
push eax
add esp, 0xffffff7c
push 0x800
lea ecx, [esp + 0x88]
call fcn.0040c198
mov eax, dword [0x41c858]
cmp byte [eax], 0
je 0x40c3f2
mov eax, dword [0x41c764]
call fcn.004032f0
call fcn.00403020
lea eax, [esp + 0x884]
push eax
lea eax, [esp + 0x88]
push eax
call sub.user32.dll_CharToOemW
push 0
lea eax, [esp + 4]
push eax
lea eax, [esp + 0x88c]
call fcn.00408b34
push eax
lea eax, [esp + 0x890]
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 0x40c440
push 0xfffffffffffffff4
call sub.kernel32.dll_GetStdHandle_1
push eax
call sub.kernel32.dll_WriteFile_1
jmp 0x40c42b
push 0x40
lea eax, [esp + 8]
push eax
mov eax, dword [0x41c744]
mov eax, dword [eax + 4]
push eax
mov eax, dword [0x41fb18]
call fcn.00405af0
push eax
call sub.user32.dll_LoadStringW_1
push 0x2010
lea eax, [esp + 8]
push eax
lea eax, [esp + 0x8c]
push eax
push 0
call sub.user32.dll_MessageBoxW
add esp, 0x1084
ret
Function at 0x40df74
Capabilities:
Encode data using xor

Disassembly:
push ebx
push esi
push edi
push ebp
add esp, 0xfffffdf8
mov ebx, eax
mov eax, ebx
call fcn.0040494c
mov ebp, eax
push 0
push 0
push ebp
push ebx
push 0
push 0xfde9
call sub.kernel32.dll_MultiByteToWideChar_1
mov edi, eax
cmp edi, 0x104
jbe 0x40df1e
mov eax, edi
add eax, eax
call fcn.00402eb8
mov esi, eax
jmp 0x40df20
mov esi, esp
push edi
push esi
push ebp
push ebx
push 0
push 0xfde9
call sub.kernel32.dll_MultiByteToWideChar_1
push edi
push esi
call sub.user32.dll_CharUpperBuffW
xor ebx, ebx
mov eax, edi
dec eax
test eax, eax
jl 0x40df59
inc eax
xor edx, edx
mov ecx, ebx
shl ecx, 5
shr ebx, 0x1b
or ecx, ebx
mov ebx, ecx
movzx ecx, word [esi + edx*2]
xor ebx, ecx
inc edx
dec eax
jne 0x40df43
mov eax, esp
cmp esi, eax
je 0x40df66
mov eax, esi
call fcn.00402ed4
mov eax, ebx
add esp, 0x208
pop ebp
pop edi
pop esi
pop ebx
ret
push esi
push ebx
mov esi, eax
xor eax, eax
push esi
rol eax, 5
mov bl, byte [esi]
test bl, 0x80
jne 0x40dfa0
cmp bl, 0
je 0x40df9c
cmp bl, 0x41
jl 0x40df97
cmp bl, 0x5a
jg 0x40df97
or bl, 0x20
xor al, bl
inc esi
jmp 0x40df7b
pop ecx
pop ebx
pop esi
ret
pop eax
pop ebx
pop esi
jmp 0x40dee0