joyce8/EMBER2024-capa huggingface dataset:
Function at 0x4c3db0
Capabilities:
Query environment variable

Disassembly:
sub esp, 0x108
mov eax, dword [0x5557a0]
xor eax, esp
mov dword [esp + 0x104], eax
mov eax, dword [esp + 0x10c]
push eax
call fcn.004df2b2
add esp, 4
mov byte [esp], 0
test eax, eax
je 0x4c3e15
push 0x104
lea ecx, [esp + 4]
push ecx
push eax
call dword [sym.imp.KERNEL32.dll_ExpandEnvironmentStringsA]
cmp byte [esp], 0
je 0x4c3e15
lea eax, [esp]
push eax
call dword [0x555304]
add esp, 4
mov ecx, dword [esp + 0x104]
xor ecx, esp
call fcn.004d1326
add esp, 0x108
ret
mov ecx, dword [esp + 0x104]
xor eax, eax
xor ecx, esp
call fcn.004d1326
add esp, 0x108
ret
Function at 0x4c74b0
Capabilities:
Read file on windows

Disassembly:
push esi
mov esi, dword [esp + 8]
push edi
mov eax, dword [esi]
cmp dword [eax + 4], 3
jne 0x4c74db
mov ecx, dword [esi + 0xc]
test ecx, ecx
jne 0x4c74ca
pop edi
xor eax, eax
pop esi
ret
push dword [eax + 8]
push dword [esp + 0x18]
push 1
push dword [esp + 0x1c]
call ecx
jmp 0x4c7510
cmp dword [esi + 8], 0
jne 0x4c74fe
push 0x51f0f4
push dword [eax + 8]
call fcn.004dce2d
add esp, 8
mov dword [esi + 8], eax
test eax, eax
jne 0x4c74fe
pop edi
or eax, 0xffffffff
pop esi
ret
push dword [esi + 8]
push dword [esp + 0x18]
push 1
push dword [esp + 0x1c]
call fcn.004ddaf5
mov edi, eax
add esp, 0x10
test edi, edi
jne 0x4c7532
mov eax, dword [esi + 8]
test eax, eax
je 0x4c752c
push eax
call fcn.004d8a8f
add esp, 4
mov dword [esi + 8], edi
mov eax, dword [esi]
mov eax, dword [eax]
mov dword [esi], eax
mov eax, edi
pop edi
pop esi
ret

Function at 0x4cabd0
Capabilities:
Hash data using md4
Hash data via wincrypt
Initialize hashing via wincrypt

Disassembly:
sub esp, 0xc
push ebx
mov ebx, dword [esp + 0x18]
push ebp
push esi
mov esi, ebx
push edi
lea ecx, [esi + 1]
mov al, byte [esi]
inc esi
test al, al
jne 0x4cabe0
sub esi, ecx
lea ebp, [esi + esi]
push ebp
call dword [0x5552f8]
mov edi, eax
add esp, 4
test edi, edi
jne 0x4cac07
lea eax, [edi + 0x1b]
pop edi
pop esi
pop ebp
pop ebx
add esp, 0xc
ret
xor ecx, ecx
test esi, esi
je 0x4cac20
lea ecx, [ecx]
mov al, byte [ecx + ebx]
mov byte [edi + ecx*2], al
mov byte [edi + ecx*2 + 1], 0
inc ecx
cmp ecx, esi
jb 0x4cac10
push 0xf0000000
push 1
push 0
push 0
lea eax, [esp + 0x24]
push eax
call dword [sym.imp.ADVAPI32.dll_CryptAcquireContextA]
mov esi, dword [esp + 0x28]
test eax, eax
je 0x4cac9a
lea eax, [esp + 0x10]
push eax
push 0
push 0
push 0x8002
push dword [esp + 0x24]
call dword [sym.imp.ADVAPI32.dll_CryptCreateHash]
test eax, eax
je 0x4cac8e
push 0
push ebp
push edi
push dword [esp + 0x1c]
mov dword [esp + 0x28], 0x10
call dword [sym.imp.ADVAPI32.dll_CryptHashData]
push 0
lea eax, [esp + 0x1c]
push eax
push esi
push 2
push dword [esp + 0x20]
call dword [sym.imp.ADVAPI32.dll_CryptGetHashParam]
push dword [esp + 0x10]
call dword [sym.imp.ADVAPI32.dll_CryptDestroyHash]
push 0
push dword [esp + 0x18]
call dword [sym.imp.ADVAPI32.dll_CryptReleaseContext]
mov dword [esi + 0x10], 0
push edi
mov byte [esi + 0x14], 0
call dword [0x5552fc]
add esp, 4
xor eax, eax
pop edi
pop esi
pop ebp
pop ebx
add esp, 0xc
ret
Function at 0x4cacc0
Capabilities:
Create new key via cryptacquirecontext
Encrypt data using des via winapi
Encrypt or decrypt via wincrypt

Disassembly:
sub esp, 0x24
mov eax, dword [0x5557a0]
xor eax, esp
mov dword [esp + 0x20], eax
push esi
mov esi, dword [esp + 0x30]
lea eax, [esp + 4]
push edi
mov edi, dword [esp + 0x38]
push 0xf0000000
push 1
push 0
push 0
push eax
mov dword [esp + 0x20], 8
call dword [sym.imp.ADVAPI32.dll_CryptAcquireContextA]
test eax, eax
je 0x4cad65
lea eax, [esp + 0x20]
mov dword [esp + 0x24], 0
push eax
xorps xmm0, xmm0
movdqu xmmword [esp + 0x18], xmm0
push edi
mov word [esp + 0x1c], 0x208
mov dword [esp + 0x20], 0x6601
mov dword [esp + 0x24], 8
call fcn.004cadd0
lea eax, [esp + 0x28]
push 8
push eax
call fcn.004ce1a0
add esp, 0x10
lea eax, [esp + 0x10]
push eax
push 0
push 0
push 0x14
lea eax, [esp + 0x24]
push eax
push dword [esp + 0x1c]
call dword [sym.imp.ADVAPI32.dll_CryptImportKey]
test eax, eax
jne 0x4cad78
push eax
push dword [esp + 0xc]
call dword [sym.imp.ADVAPI32.dll_CryptReleaseContext]
pop edi
xor al, al
pop esi
mov ecx, dword [esp + 0x20]
xor ecx, esp
call fcn.004d1326
add esp, 0x24
ret
mov ecx, dword [esp + 0x30]
push dword [esp + 0xc]
mov eax, dword [ecx]
mov dword [esi], eax
mov eax, dword [ecx + 4]
mov dword [esi + 4], eax
lea eax, [esp + 0x10]
push eax
push esi
push 0
push 0
push 0
push dword [esp + 0x28]
call dword [sym.imp.ADVAPI32.dll_CryptEncrypt]
push dword [esp + 0x10]
call dword [sym.imp.ADVAPI32.dll_CryptDestroyKey]
push 0
push dword [esp + 0xc]
call dword [sym.imp.ADVAPI32.dll_CryptReleaseContext]
mov ecx, dword [esp + 0x28]
mov al, 1
pop edi
pop esi
xor ecx, esp
call fcn.004d1326
add esp, 0x24
ret
Function at 0x4cf8b0
Capabilities:
Authenticate hmac
Encode data using xor

Disassembly:
push ecx
push esi
mov esi, dword [esp + 0xc]
push edi
mov ecx, dword [esi + 0xc]
mov eax, dword [esi + 0x14]
lea eax, [eax + ecx*2]
add eax, 0xc
push eax
call dword [0x5552f8]
mov edi, eax
add esp, 4
test edi, edi
jne 0x4cf8d7
pop edi
pop esi
pop ecx
ret
lea ecx, [edi + 0xc]
mov dword [edi], esi
mov dword [edi + 4], ecx
mov eax, dword [esi + 0xc]
add eax, ecx
push ebx
mov ebx, dword [esp + 0x1c]
mov dword [edi + 8], eax
push ebp
cmp ebx, dword [esi + 0x10]
jbe 0x4cf91f
mov eax, dword [esi]
push ecx
call eax
mov eax, dword [esi + 4]
push ebx
push dword [esp + 0x24]
push dword [edi + 4]
call eax
mov ebp, dword [edi + 8]
push dword [edi + 4]
add ebp, dword [esi + 0xc]
mov eax, dword [esi + 8]
push ebp
call eax
mov ebx, dword [esi + 0x14]
add esp, 0x18
mov dword [esp + 0x20], ebx
jmp 0x4cf923
mov ebp, dword [esp + 0x1c]
push dword [edi + 4]
mov eax, dword [esi]
call eax
push dword [edi + 8]
mov eax, dword [esi]
call eax
mov eax, dword [esp + 0x28]
add esp, 8
xor ebx, ebx
test eax, eax
je 0x4cf983
mov dword [esp + 0x10], eax
mov ebx, eax
movzx eax, byte [ebp]
xor al, 0x36
mov byte [esp + 0x18], al
lea eax, [esp + 0x18]
push 1
push eax
push dword [edi + 4]
mov eax, dword [esi + 4]
call eax
movzx eax, byte [ebp]
lea ebp, [ebp + 1]
xor al, 0x5c
mov byte [esp + 0x24], al
lea eax, [esp + 0x24]
push 1
push eax
push dword [edi + 8]
mov eax, dword [esi + 4]
call eax
add esp, 0x18
dec ebx
jne 0x4cf944
mov ebx, dword [esp + 0x10]
cmp ebx, dword [esi + 0x10]
jae 0x4cf9b7
jmp 0x4cf990
mov eax, dword [esi + 4]
push 1
push 0x52796e
push dword [edi + 4]
call eax
mov eax, dword [esi + 4]
push 1
push 0x52796f
push dword [edi + 8]
call eax
inc ebx
add esp, 0x18
cmp ebx, dword [esi + 0x10]
jb 0x4cf990
pop ebp
pop ebx
mov eax, edi
pop edi
pop esi
pop ecx
ret

Function at 0x4d6fdf
Capabilities:
Create thread

Disassembly:
push ebp
mov ebp, esp
push dword [ebp + 0x1c]
push dword [ebp + 0x18]
push dword [ebp + 0x14]
push dword [ebp + 0x10]
push dword [ebp + 0xc]
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.dll_CreateThread]
pop ebp
ret
Function at 0x4fdc9e
Capabilities:
Link many functions at runtime
Print debug messages

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x24
mov eax, dword [0x5557a0]
xor eax, ebp
mov dword [ebp - 4], eax
mov eax, dword [ebp + 8]
push ebx
mov ebx, dword [sym.imp.KERNEL32.dll_EncodePointer]
push esi
push edi
mov dword [ebp - 0x1c], eax
xor esi, esi
mov eax, dword [ebp + 0xc]
push esi
mov dword [ebp - 0x20], eax
call ebx
mov edi, eax
mov dword [ebp - 0x18], edi
call fcn.004e0d1e
mov dword [ebp - 0x14], eax
cmp dword [0x560fa8], esi
jne 0x4fdd91
push 0x800
push esi
push str.USER32.DLL
call dword [sym.imp.KERNEL32.dll_LoadLibraryExW]
mov edi, eax
test edi, edi
jne 0x4fdd1e
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0x57
jne 0x4fde71
push esi
push esi
push str.USER32.DLL
call dword [sym.imp.KERNEL32.dll_LoadLibraryExW]
mov edi, eax
test edi, edi
je 0x4fde71
push 0x531f30
push edi
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
test eax, eax
je 0x4fde71
push eax
call ebx
push 0x531f3c
push edi
mov dword [0x560fa8], eax
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
push eax
call ebx
push str.GetLastActivePopup
push edi
mov dword [0x560fac], eax
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
push eax
call ebx
push str.GetUserObjectInformationW
push edi
mov dword [0x560fb0], eax
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
push eax
call ebx
mov dword [0x560fb8], eax
test eax, eax
je 0x4fdd8e
push str.GetProcessWindowStation
push edi
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
push eax
call ebx
mov dword [0x560fb4], eax
mov edi, dword [ebp - 0x18]
call dword [sym.imp.KERNEL32.dll_IsDebuggerPresent]
test eax, eax
je 0x4fddb6
mov eax, dword [ebp - 0x1c]
test eax, eax
je 0x4fdda9
push eax
call dword [sym.imp.KERNEL32.dll_OutputDebugStringW]
cmp dword [ebp - 0x14], esi
je 0x4fddcb
push 4
pop eax
jmp 0x4fde73
cmp dword [ebp - 0x14], esi
je 0x4fddcb
push dword [0x560fa8]
call dword [sym.imp.KERNEL32.dll_DecodePointer]
push 3
jmp 0x4fddb0
mov eax, dword [0x560fb4]
mov ebx, dword [sym.imp.KERNEL32.dll_DecodePointer]
cmp eax, edi
je 0x4fde29
cmp dword [0x560fb8], edi
je 0x4fde29
push eax
call ebx
push dword [0x560fb8]
mov dword [ebp - 0x14], eax
call ebx
mov ecx, dword [ebp - 0x14]
mov dword [ebp - 0x18], eax
test ecx, ecx
je 0x4fde29
test eax, eax
je 0x4fde29
call ecx
test eax, eax
je 0x4fde1e
lea ecx, [ebp - 0x24]
push ecx
push 0xc
lea ecx, [ebp - 0x10]
push ecx
push 1
push eax
call dword [ebp - 0x18]
test eax, eax
je 0x4fde1e
test byte [ebp - 8], 1
jne 0x4fde29
mov edi, dword [ebp + 0x10]
or edi, 0x200000
jmp 0x4fde59
mov eax, dword [0x560fac]
cmp eax, edi
je 0x4fde56
push eax
call ebx
test eax, eax
je 0x4fde56
call eax
mov esi, eax
test esi, esi
je 0x4fde56
mov eax, dword [0x560fb0]
cmp eax, edi
je 0x4fde56
push eax
call ebx
test eax, eax
je 0x4fde56
push esi
call eax
mov esi, eax
mov edi, dword [ebp + 0x10]
push dword [0x560fa8]
call ebx
test eax, eax
je 0x4fde71
push edi
push dword [ebp - 0x20]
push dword [ebp - 0x1c]
push esi
call eax
jmp 0x4fde73
xor eax, eax
mov ecx, dword [ebp - 4]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.004d1326
mov esp, ebp
pop ebp
ret
Function at 0x401225
Capabilities:
Terminate process

Disassembly:
mov eax, dword fs:[0]
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x40b01c
push 0x40109a
push eax
mov dword fs:[0], esp
sub esp, 0x10
push ebx
push esi
push edi
mov dword [ebp - 0x18], esp
mov dword [0x40b020], 0x401219
mov dword [ebp - 4], 0
lea eax, [ebp - 4]
mov dword [0x40b038], eax
push eax
fnstcw word [esp]
or word [esp], 0x300
fldcw word [esp]
add esp, 4
lea eax, [0x4093c0]
fnstenv [eax]
push 0
push 0x40b030
push 0x40b02c
push 0x40b028
call sub.CRTDLL.DLL___GetMainArgs
mov ecx, 0x4093dc
mov edx, dword [ecx]
or edx, edx
je 0x40129f
call ecx
push dword [0x40b030]
push dword [0x40b02c]
push dword [0x40b028]
mov dword [0x40b014], esp
call fcn.00401f76
add esp, 0x18
xor ecx, ecx
mov dword [ebp - 4], ecx
push eax
call sub.CRTDLL.DLL_exit
leave
ret

Function at 0x401549
Capabilities:
Terminate process

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x10
push ebx
push esi
push edi
fld qword [ebp + 0x18]
fimul dword [ebp + 0x10]
sub esp, 8
fstp qword [esp]
cvttsd2si esi, qword [esp]
add esp, 8
mov eax, dword [ebp + 0x14]
or eax, eax
je 0x401574
cmp eax, 1
je 0x401587
jmp 0x4015a6
mov eax, dword [ebp + 0xc]
dec eax
push eax
fild dword [esp]
add esp, 4
fidivr dword [ebp + 8]
fstp qword [ebp - 0x10]
jmp 0x4015c6
call sub.CRTDLL.DLL_rand
mov ecx, 0x7fff
cdq
idiv ecx
push edx
fild dword [esp]
add esp, 4
fdiv qword [0x40b1a8]
fstp qword [ebp - 0x10]
jmp 0x4015c6
push dword [ebp + 0x14]
push str.Undefined_sampling_method__d_n
mov eax, dword [sym.imp.CRTDLL.DLL__iob]
add eax, 0x40
push eax
call fcn.00408059
push 1
call sub.CRTDLL.DLL_exit
add esp, 0x10
push esi
fild dword [esp]
add esp, 4
mov edi, dword [ebp + 0x10]
sub edi, esi
push edi
fild dword [esp]
add esp, 4
fmul qword [ebp - 0x10]
faddp st(1)
sub esp, 8
fstp qword [esp]
cvttsd2si edi, qword [esp]
add esp, 8
mov dword [ebp - 4], edi
imul eax, dword [ebp - 4], 1
pop edi
pop esi
pop ebx
leave
ret
Function at 0x401976
Capabilities:
Terminate process

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x74
push ebx
push esi
push edi
mov esi, dword [ebp + 0x10]
mov ebx, dword [ebp + 0x14]
lea eax, [ebp - 0x20]
push eax
push esi
push dword [ebp + 0xc]
push dword [ebp + 8]
call fcn.00401834
add esp, 0x10
push esi
fild dword [esp]
add esp, 4
fstp qword [ebp - 0x48]
fld qword [ebp - 0x20]
fstp qword [ebp - 0x50]
fld qword [ebp - 0x48]
fmul qword [ebp - 8]
fld qword [ebp - 0x18]
fmul qword [ebp - 0x20]
fsubp st(1)
fld qword [ebp - 0x48]
fmul qword [ebp - 0x10]
fld qword [ebp - 0x50]
fmul qword [ebp - 0x50]
fsubp st(1)
fdivp st(1)
fstp qword [ebp - 0x28]
fld qword [ebp - 0x20]
fstp qword [ebp - 0x58]
fld qword [ebp - 0x18]
fmul qword [ebp - 0x10]
fld qword [ebp - 0x20]
fmul qword [ebp - 8]
fsubp st(1)
push esi
fild dword [esp]
add esp, 4
fmul qword [ebp - 0x10]
fld qword [ebp - 0x58]
fmul qword [ebp - 0x58]
fsubp st(1)
fdivp st(1)
fstp qword [ebp - 0x30]
fldz
fst qword [ebp - 0x60]
fstp qword [ebp - 0x40]
fld qword [ebp - 0x60]
fstp qword [ebp - 0x38]
xor edi, edi
jmp 0x401a97
fld qword [ebp - 0x30]
sub esp, 8
fstp qword [esp]
fld qword [ebp - 0x28]
sub esp, 8
fstp qword [esp]
mov edx, dword [ebp + 0xc]
fld qword [edx + edi*8]
sub esp, 8
fstp qword [esp]
mov edx, dword [ebp + 8]
fld qword [edx + edi*8]
sub esp, 8
fstp qword [esp]
call fcn.00401938
add esp, 0x20
fstp qword [ebp - 0x68]
mov eax, ebx
or eax, eax
je 0x401a4b
cmp eax, 1
je 0x401a60
jmp 0x401a78
fld qword [ebp - 0x68]
fadd qword [ebp - 0x38]
fstp qword [ebp - 0x38]
fld qword [ebp - 0x40]
fld1
faddp st(1)
fstp qword [ebp - 0x40]
jmp 0x401a96
fld qword [ebp - 0x68]
fcomp qword [ebp - 0x38]
fnstsw ax
sahf
jbe 0x401a71
fld qword [ebp - 0x68]
fstp qword [ebp - 0x38]
fld1
fstp qword [ebp - 0x40]
jmp 0x401a96
push ebx
push 0x40b1c0
mov eax, dword [sym.imp.CRTDLL.DLL__iob]
add eax, 0x40
push eax
call fcn.00408059
push 1
call sub.CRTDLL.DLL_exit
add esp, 0x10
inc edi
cmp edi, esi
jl 0x401a09
fld qword [ebp - 0x38]
fdiv qword [ebp - 0x40]
pop edi
pop esi
pop ebx
leave
ret

Function at 0x401b43
Capabilities:
Terminate process

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x18
push edi
fldz
fstp qword [ebp - 8]
push dword [0x40905c]
push 3
push 0x4093f0
call fcn.004012d4
add esp, 0xc
mov edi, eax
cmp dword [0x409004], edi
je 0x401b8f
push edi
push dword [0x409004]
push dword [0x40905c]
push 0x40b4a0
call fcn.00407fdc
push 0
call sub.CRTDLL.DLL_exit
add esp, 0x14
xor edi, edi
push 3
push 0x401d44
call fcn.004014c0
add esp, 8
fst qword [ebp - 0x10]
fadd qword [ebp - 8]
fstp qword [ebp - 8]
inc edi
cmp edi, 0x64
jl 0x401b91
fld qword [ebp - 8]
fdiv qword [0x40b498]
fst qword [ebp - 8]
sub esp, 8
fstp qword [esp]
push 0x40b478
call fcn.00407fdc
fld qword [0x40b200]
sub esp, 8
fstp qword [esp]
fld qword [0x40b1f8]
sub esp, 8
fstp qword [esp]
fld qword [ebp - 8]
sub esp, 8
fstp qword [esp]
call fcn.00401e7a
fst qword [ebp - 0x18]
sub esp, 8
fstp qword [esp]
push 0x40b446
call fcn.00407fdc
add esp, 0x30
pop edi
leave
ret
Function at 0x4028b4
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x80
push ebx
push esi
push edi
mov edi, dword [ebp + 8]
cmp edi, 1
je 0x402942
cmp edi, 4
jne 0x402937
mov eax, dword [sym.imp.CRTDLL.DLL__iob]
add eax, 0x40
push eax
push 1
push 7
push str.signal
call sub.CRTDLL.DLL_fwrite
push 0xa
lea eax, [ebp - 0x80]
push eax
push dword [ebp + 0xc]
cmp edi, 3
Function at 0xbf6058
Capabilities:
Decompress data using aplib

Disassembly:
call fcn.00bf61a8
push ebx
mov ebx, esp
push ebx
mov esi, dword [ebx + 8]
mov edi, dword [ebx + 0x10]
cld
mov dl, pe_nt_image_headers32
mov al, byte [esi]
inc esi
mov byte [edi], al
inc edi
mov ebx, 2
add dl, dl
jne 0xbf607e
mov dl, byte [esi]
inc esi
adc dl, dl
jae 0xbf606a
add dl, dl
jne 0xbf6089
mov dl, byte [esi]
inc esi
adc dl, dl
jae 0xbf60dc
xor eax, eax
add dl, dl
jne 0xbf6096
mov dl, byte [esi]
inc esi
adc dl, dl
jae 0xbf617d
add dl, dl
jne 0xbf60a5
mov dl, byte [esi]
inc esi
adc dl, dl
adc eax, eax
add dl, dl
jne 0xbf60b0
mov dl, byte [esi]
inc esi
adc dl, dl
adc eax, eax
add dl, dl
jne 0xbf60bb
mov dl, byte [esi]
inc esi
adc dl, dl
adc eax, eax
add dl, dl
jne 0xbf60c6
mov dl, byte [esi]
inc esi
adc dl, dl
adc eax, eax
je 0xbf60d2
push edi
mov eax, eax
sub edi, eax
mov al, byte [edi]
pop edi
mov byte [edi], al
inc edi
mov ebx, 2
jmp 0xbf6075
mov eax, 1
add dl, dl
jne 0xbf60ea
mov dl, byte [esi]
inc esi
adc dl, dl
adc eax, eax
add dl, dl
jne 0xbf60f5
mov dl, byte [esi]
inc esi
adc dl, dl
jb 0xbf60e1
sub eax, ebx
mov ebx, 1
jne 0xbf6128
mov ecx, 1
add dl, dl
jne 0xbf610e
mov dl, byte [esi]
inc esi
adc dl, dl
adc ecx, ecx
add dl, dl
jne 0xbf6119
mov dl, byte [esi]
inc esi
adc dl, dl
jb 0xbf6105
push esi
mov esi, edi
sub esi, ebp
rep movsb byte es:[edi], byte [esi]
pop esi
jmp 0xbf6075
dec eax
shl eax, 8
mov al, byte [esi]
inc esi
mov ebp, eax
mov ecx, 1
add dl, dl
jne 0xbf613f
mov dl, byte [esi]
inc esi
adc dl, dl
adc ecx, ecx
add dl, dl
jne 0xbf614a
mov dl, byte [esi]
inc esi
adc dl, dl
jb 0xbf6136
cmp eax, 0x7d00
jae 0xbf616d
cmp eax, 0x500
jb 0xbf6168
inc ecx
push esi
mov esi, edi
sub esi, eax
rep movsb byte es:[edi], byte [esi]
pop esi
jmp 0xbf6075
cmp eax, 0x7f
ja 0xbf6170
add ecx, 2
push esi
mov esi, edi
sub esi, eax
rep movsb byte es:[edi], byte [esi]
pop esi
jmp 0xbf6075
mov al, byte [esi]
inc esi
xor ecx, ecx
shr al, 1
je 0xbf619e
adc ecx, 2
mov ebp, eax
push esi
mov esi, edi
sub esi, eax
rep movsb byte es:[edi], byte [esi]
pop esi
mov ebx, 1
jmp 0xbf6075
pop ebx
sub edi, dword [ebx + 0x10]
mov eax, edi
pop ebx
ret 0x10
Function at 0x4031bc
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.00404d74
test esi, esi
jne 0x4031f2
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.00404e64
jmp 0x403210
call sub.kernel32.dll_GetCommandLineA
mov edi, eax
mov edx, ebx
mov eax, edi
call fcn.00403060
mov edi, eax
test esi, esi
je 0x403210
cmp dword [ebx], 0
je 0x403210
dec esi
jmp 0x4031f9
add esp, 0x108
pop edi
pop esi
pop ebx
ret

Function at 0x403d0c
Capabilities:
Query or enumerate registry value

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

Function at 0x404bd4
Capabilities:
Write file on windows

Disassembly:
push ecx
cmp byte [0x47c04c], 0
je 0x404c35
cmp word [0x47c220], 0xd7b2
jne 0x404bfd
cmp dword [0x47c228], 0
jbe 0x404bfd
mov eax, 0x47c21c
call dword [0x47c238]
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 0x404c5c
push 0xfffffffffffffff5
call sub.kernel32.dll_GetStdHandle
push eax
call sub.kernel32.dll_WriteFile
pop edx
ret
cmp byte [0x47902c], 0
jne 0x404c51
push 0
push str.Error
push str.Runtime_error_____at_00000000
push 0
call sub.user32.dll_MessageBoxA
pop edx
ret
Function at 0x406638
Capabilities:
Get geographical location

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 0x40675c
push 0x80000001
call sub.advapi32.dll_RegOpenKeyExA
test eax, eax
je 0x4065af
lea eax, [ebp - 8]
push eax
push 0xf0019
push 0
push 0x40675c
push 0x80000002
call sub.advapi32.dll_RegOpenKeyExA
test eax, eax
je 0x4065af
lea eax, [ebp - 8]
push eax
push 0xf0019
push 0
push 0x406778
push 0x80000001
call sub.advapi32.dll_RegOpenKeyExA
test eax, eax
jne 0x406638
xor eax, eax
push ebp
push 0x406631
push dword fs:[eax]
mov dword fs:[eax], esp
mov dword [ebp - 0x18], 5
lea eax, [ebp - 0x11d]
mov edx, 0x105
call fcn.00406368
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 0x406616
lea eax, [ebp - 0x18]
push eax
lea eax, [ebp - 0x12]
push eax
push 0
push 0
push 0x406798
mov eax, dword [ebp - 8]
push eax
call sub.advapi32.dll_RegQueryValueExA
test eax, eax
je 0x406616
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 0x406638
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 0x406752
cmp byte [ebp - 0xd], 0
jne 0x40667f
cmp byte [ebp - 0x12], 0
je 0x406752
lea eax, [ebp - 0x11d]
push eax
call sub.kernel32.dll_lstrlenA
mov ebx, eax
lea eax, [ebp - 0x11d]
add ebx, eax
jmp 0x406698
dec ebx
cmp byte [ebx], 0x2e
je 0x4066a7
lea eax, [ebp - 0x11d]
cmp ebx, eax
jne 0x406697
lea eax, [ebp - 0x11d]
cmp ebx, eax
je 0x406752
inc ebx
cmp byte [ebp - 0x12], 0
je 0x4066e4
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 0x406752
cmp byte [ebp - 0xd], 0
je 0x406752
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 0x406752
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