joyce8/EMBER2024-capa huggingface dataset:
Function at 0x404a7c
Capabilities:
Accept command line arguments

Disassembly:
push ebx
push esi
push edi
add esp, 0xfffffdf4
mov ebx, edx
mov esi, eax
mov eax, ebx
call fcn.0040662c
test esi, esi
jne 0x404ab2
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.00406798
jmp 0x404ad0
call sub.kernel32.dll_GetCommandLineW
mov edi, eax
mov edx, ebx
mov eax, edi
call fcn.00404960
mov edi, eax
test esi, esi
je 0x404ad0
cmp dword [ebx], 0
je 0x404ad0
dec esi
jmp 0x404ab9
add esp, 0x20c
pop edi
pop esi
pop ebx
ret

Function at 0x404b04
Capabilities:
Generate random numbers using the delphi lcg

Disassembly:
push ebx
xor ebx, ebx
imul edx, dword [ebx + 0x5e7008], 0x8088405
inc edx
mov dword [ebx + 0x5e7008], edx
mul edx
mov eax, edx
pop ebx
ret

Function at 0x405594
Capabilities:
Check for time delay via gettickcount

Disassembly:
push ebx
push esi
push edi
push ebp
add esp, 0xfffffff4
mov edi, edx
mov esi, eax
mov ebp, dword [esi + 0x10]
mov eax, esi
call fcn.00405844
mov byte [esp], al
cmp byte [esp], 0
jne 0x405720
test edi, edi
je 0x405720
mov byte [esp + 1], 0
test ebp, ebp
jle 0x405657
call sub.kernel32.dll_GetTickCount
mov dword [esp + 4], eax
test ebp, ebp
jle 0x405632
cmp edi, 0xffffffff
je 0x4055f3
call sub.kernel32.dll_GetTickCount
sub eax, dword [esp + 4]
cmp edi, eax
ja 0x4055f3
mov byte [esp], 0
jmp 0x405720
mov ebx, dword [esi]
cmp ebx, 1
jg 0x405632
test ebx, ebx
jne 0x405628
mov eax, esi
xor ecx, ecx
mov edx, 1
call fcn.004026dc
test eax, eax
jne 0x405628
call sub.kernel32.dll_GetCurrentThreadId
mov dword [esi + 8], eax
mov dword [esi + 4], 1
mov byte [esp], 1
jmp 0x405720
call 0x405888
dec ebp
test ebp, ebp
jg 0x4055d8
cmp edi, 0xffffffff
je 0x405657
call sub.kernel32.dll_GetTickCount
mov dword [esp + 8], eax
mov eax, dword [esp + 8]
sub eax, dword [esp + 4]
cmp edi, eax
ja 0x405655
mov byte [esp], 0
jmp 0x405720
sub edi, eax
mov ebx, dword [esi]
test ebx, ebx
je 0x4055a2
lea edx, [ebx + 2]
mov eax, esi
mov ecx, ebx
call fcn.004026dc
cmp ebx, eax
jne 0x405657
call sub.kernel32.dll_GetTickCount
mov dword [esp + 4], eax
mov eax, esi
call fcn.00405790
mov edx, eax
mov ebx, dword [0x5ed8f4]
mov ecx, edi
xor eax, eax
call dword [ebx + 0x10]
test eax, eax
sete byte [esp]
cmp edi, 0xffffffff
je 0x4056be
call sub.kernel32.dll_GetTickCount
mov dword [esp + 8], eax
mov eax, dword [esp + 8]
sub eax, dword [esp + 4]
cmp edi, eax
jbe 0x4056bc
mov eax, dword [esp + 8]
sub eax, dword [esp + 4]
sub edi, eax
jmp 0x4056be
xor edi, edi
cmp byte [esp], 0
je 0x4056e7
mov ebx, dword [esi]
test bl, 1
jne 0x405700
mov edx, ebx
sub edx, 2
or edx, 1
mov eax, esi
mov ecx, ebx
call fcn.004026dc
cmp ebx, eax
jne 0x4056c4
mov byte [esp + 1], 1
jmp 0x405700
mov ebx, dword [esi]
mov edx, ebx
sub edx, 2
mov eax, esi
mov ecx, ebx
call fcn.004026dc
cmp ebx, eax
jne 0x4056e7
mov byte [esp + 1], 1
cmp byte [esp + 1], 0
je 0x405671
cmp byte [esp], 0
je 0x405720
call sub.kernel32.dll_GetCurrentThreadId
mov dword [esi + 8], eax
mov dword [esi + 4], 1
movzx eax, byte [esp]
add esp, 0xc
pop ebp
pop edi
pop esi
pop ebx
ret
Function at 0x406288
Capabilities:
Write file on windows

Disassembly:
push ecx
cmp byte [0x5ed054], 0
je 0x4062ef
cmp word [0x5ed340], 0xd7b2
jne 0x4062b1
cmp dword [0x5ed348], 0
jbe 0x4062b1
mov eax, 0x5ed33c
call dword [0x5ed358]
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
mov eax, 0x40631c
call fcn.00406f80
push eax
push 0xfffffffffffffff5
call sub.kernel32.dll_GetStdHandle
push eax
call sub.kernel32.dll_WriteFile
pop edx
ret
cmp byte [0x5e7032], 0
jne 0x40630b
push 0
push 0x5e79c2
push str.Runtime_error_____at_00000000
push 0
call sub.user32.dll_MessageBoxA
pop edx
ret

Function at 0x4064e8
Capabilities:
Create thread

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffff8
push ebx
push esi
push edi
mov esi, ecx
mov dword [ebp - 8], edx
mov dword [ebp - 4], eax
mov edi, dword [ebp + 0x10]
cmp dword [0x5e7034], 0
je 0x406513
mov edx, edi
mov eax, esi
call dword [0x5e7034]
mov ebx, eax
jmp 0x406524
mov eax, 8
call fcn.0040464c
mov ebx, eax
mov dword [ebx], esi
mov dword [ebx + 4], edi
mov byte [0x5ed055], 1
mov eax, dword [ebp + 8]
push eax
mov eax, dword [ebp + 0xc]
push eax
push ebx
mov eax, 0x4064b0
push eax
mov eax, dword [ebp - 8]
push eax
mov eax, dword [ebp - 4]
push eax
call sub.kernel32.dll_CreateThread
mov esi, eax
test esi, esi
jne 0x406559
mov edx, 8
mov eax, ebx
call fcn.00404668
mov eax, esi
pop edi
pop esi
pop ebx
pop ecx
pop ecx
pop ebp
ret 0xc
Function at 0x408a60
Capabilities:
Get geographical location

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffe98
push ebx
push esi
push edi
xor ecx, ecx
mov dword [ebp - 0x160], ecx
mov dword [ebp - 0x164], ecx
mov dword [ebp - 0x168], ecx
mov dword [ebp - 4], edx
mov esi, eax
xor eax, eax
push ebp
push 0x408bc5
push dword fs:[eax]
mov dword fs:[eax], esp
mov eax, dword [ebp - 4]
call fcn.0040662c
cmp si, word [0x5e7a00]
jb 0x408af8
cmp si, word [0x5e7c00]
ja 0x408af8
mov edi, 0x40
xor eax, eax
mov dword [ebp - 8], eax
cmp edi, dword [ebp - 8]
jb 0x408af8
mov ebx, edi
add ebx, dword [ebp - 8]
shr ebx, 1
cmp si, word [ebx*8 + 0x5e7a00]
jae 0x408ad2
mov edi, ebx
dec edi
jmp 0x408af3
cmp si, word [ebx*8 + 0x5e7a00]
jbe 0x408ae2
inc ebx
mov dword [ebp - 8], ebx
jmp 0x408af3
mov edx, dword [ebp - 4]
mov eax, dword [ebx*8 + 0x5e7a04]
call fcn.00408970
jmp 0x408af8
cmp edi, dword [ebp - 8]
jae 0x408abc
mov eax, dword [ebp - 4]
cmp dword [eax], 0
jne 0x408ba7
push 2
movzx eax, si
push eax
call sub.kernel32.dll_IsValidLocale
test eax, eax
je 0x408ba7
push 0x55
lea eax, [ebp - 0xb2]
push eax
push 0x59
movzx ebx, si
push ebx
call sub.kernel32.dll_GetLocaleInfoW
push 0x55
lea eax, [ebp - 0x15c]
push eax
push 0x5a
push ebx
call sub.kernel32.dll_GetLocaleInfoW
lea eax, [ebp - 0x160]
lea edx, [ebp - 0xb2]
mov ecx, 0x55
call fcn.004072dc
push dword [ebp - 0x160]
push 0x408be0
lea eax, [ebp - 0x164]
lea edx, [ebp - 0x15c]
mov ecx, 0x55
call fcn.004072dc
push dword [ebp - 0x164]
push 0x408bf0
lea eax, [ebp - 0x168]
lea edx, [ebp - 0xb2]
mov ecx, 0x55
call fcn.004072dc
push dword [ebp - 0x168]
mov eax, dword [ebp - 4]
mov edx, 5
call fcn.004074a8
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x408bcc
lea eax, [ebp - 0x168]
mov edx, 3
call fcn.0040668c
ret
Function at 0x408d78
Capabilities:
Identify system language via api

Disassembly:
push ebp
mov ebp, esp
push 0
push ebx
push esi
mov esi, edx
mov ebx, eax
xor eax, eax
push ebp
push 0x408e7b
push dword fs:[eax]
mov dword fs:[eax], esp
push 0x5efb84
call sub.kernel32.dll_EnterCriticalSection
cmp bx, word [0x5efb9c]
jne 0x408dc4
mov eax, esi
mov edx, 0x5efb9e
mov ecx, 0x55
call fcn.004072dc
push 0x5efb84
call sub.kernel32.dll_LeaveCriticalSection
jmp 0x408e65
push 0x5efb84
call sub.kernel32.dll_LeaveCriticalSection
mov eax, esi
call fcn.0040662c
push 2
movzx eax, bx
push eax
call sub.kernel32.dll_IsValidLocale
test eax, eax
je 0x408e33
cmp byte [0x5efb80], 0
je 0x408df8
mov edx, esi
mov eax, ebx
call fcn.00408c5c
jmp 0x408e33
mov edx, esi
mov eax, ebx
call fcn.00408a60
call sub.kernel32.dll_GetSystemDefaultUILanguage
cmp bx, ax
je 0x408e33
cmp dword [esi], 0
je 0x408e1c
mov eax, esi
mov edx, 0x408e94
call fcn.004073c8
call sub.kernel32.dll_GetSystemDefaultUILanguage
lea edx, [ebp - 4]
call fcn.00408a60
mov edx, dword [ebp - 4]
mov eax, esi
call fcn.004073c8
push 0x5efb84
call sub.kernel32.dll_EnterCriticalSection
mov word [0x5efb9c], bx
push 0xaa
mov eax, dword [esi]
call fcn.00407230
push eax
push 0x5efb9e
call sub.kernel32.dll_lstrcpynW
push 0x5efb84
call sub.kernel32.dll_LeaveCriticalSection
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x408e82
lea eax, [ebp - 4]
call fcn.0040662c
ret
Function at 0x4090b0
Capabilities:
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffde4
push ebx
mov ebx, edx
mov dword [ebp - 4], eax
mov eax, dword [ebp - 4]
call fcn.00406710
xor eax, eax
push ebp
push 0x4092d5
push dword fs:[eax]
mov dword fs:[eax], esp
cmp dword [ebp - 4], 0
jne 0x4090f0
push 0x105
lea eax, [ebp - 0x21a]
push eax
push 0
call sub.kernel32.dll_GetModuleFileNameW
jmp 0x40910a
push 0x105
mov eax, dword [ebp - 4]
call fcn.00407230
push eax
lea eax, [ebp - 0x21a]
push eax
call sub.kernel32.dll_lstrcpynW
cmp word [ebp - 0x21a], 0
je 0x4092bf
xor eax, eax
mov dword [ebp - 8], eax
lea eax, [ebp - 0xc]
push eax
push 0xf0019
push 0
push 0x4092e4
push 0x80000001
call sub.advapi32.dll_RegOpenKeyExW
test eax, eax
je 0x4091d9
lea eax, [ebp - 0xc]
push eax
push 0xf0019
push 0
push 0x4092e4
push 0x80000002
call sub.advapi32.dll_RegOpenKeyExW
test eax, eax
je 0x4091d9
lea eax, [ebp - 0xc]
push eax
push 0xf0019
push 0
push 0x409320
push 0x80000001
call sub.advapi32.dll_RegOpenKeyExW
test eax, eax
je 0x4091d9
lea eax, [ebp - 0xc]
push eax
push 0xf0019
push 0
push 0x409320
push 0x80000002
call sub.advapi32.dll_RegOpenKeyExW
test eax, eax
je 0x4091d9
lea eax, [ebp - 0xc]
push eax
push 0xf0019
push 0
push 0x409354
push 0x80000001
call sub.advapi32.dll_RegOpenKeyExW
test eax, eax
je 0x4091d9
lea eax, [ebp - 0xc]
push eax
push 0xf0019
push 0
push 0x409388
push 0x80000001
call sub.advapi32.dll_RegOpenKeyExW
test eax, eax
jne 0x4092bf
xor eax, eax
push ebp
push 0x4092b8
push dword fs:[eax]
mov dword fs:[eax], esp
lea eax, [ebp - 0x21a]
mov edx, 0x105
call fcn.00408ebc
lea eax, [ebp - 0x10]
push eax
push 0
push 0
push 0
lea eax, [ebp - 0x21a]
push eax
mov eax, dword [ebp - 0xc]
push eax
call sub.advapi32.dll_RegQueryValueExW
test eax, eax
jne 0x409248
mov eax, dword [ebp - 0x10]
call fcn.0040464c
mov dword [ebp - 8], eax
lea eax, [ebp - 0x10]
push eax
mov eax, dword [ebp - 8]
push eax
push 0
push 0
lea eax, [ebp - 0x21a]
push eax
mov eax, dword [ebp - 0xc]
push eax
call sub.advapi32.dll_RegQueryValueExW
mov eax, ebx
mov edx, dword [ebp - 8]
call fcn.00407288
jmp 0x409293
lea eax, [ebp - 0x10]
push eax
push 0
push 0
push 0
push 0x4093c8
mov eax, dword [ebp - 0xc]
push eax
call sub.advapi32.dll_RegQueryValueExW
test eax, eax
jne 0x409293
mov eax, dword [ebp - 0x10]
call fcn.0040464c
mov dword [ebp - 8], eax
lea eax, [ebp - 0x10]
push eax
mov eax, dword [ebp - 8]
push eax
push 0
push 0
push 0x4093c8
mov eax, dword [ebp - 0xc]
push eax
call sub.advapi32.dll_RegQueryValueExW
mov eax, ebx
mov edx, dword [ebp - 8]
call fcn.00407288
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x4092bf
cmp dword [ebp - 8], 0
je 0x4092ae
mov eax, dword [ebp - 8]
call fcn.00404668
mov eax, dword [ebp - 0xc]
push eax
call sub.advapi32.dll_RegCloseKey
ret
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x4092dc
lea eax, [ebp - 4]
call fcn.0040662c
ret
Function at 0x4095b8
Capabilities:
Get geographical location
Identify system language via api

Disassembly:
push ebp
mov ebp, esp
add esp, 0xffffffec
push ebx
xor ecx, ecx
mov dword [ebp - 0x14], ecx
mov dword [ebp - 0x10], ecx
mov ebx, edx
mov dword [ebp - 4], eax
mov eax, dword [ebp - 4]
call fcn.00406710
xor eax, eax
push ebp
push 0x409678
push dword fs:[eax]
mov dword fs:[eax], esp
push 4
lea eax, [ebp - 0xc]
push eax
push 3
call sub.kernel32.dll_GetUserDefaultUILanguage
movzx eax, ax
push eax
call sub.kernel32.dll_GetLocaleInfoW
lea eax, [ebp - 0x10]
lea edx, [ebp - 0xc]
mov ecx, 4
call fcn.004072dc
mov ecx, dword [ebp - 0x10]
mov eax, ebx
mov edx, dword [ebp - 4]
call fcn.00407420
mov eax, dword [ebx]
call fcn.00409480
test al, al
jne 0x409655
mov word [ebp - 8], 0
lea eax, [ebp - 0x14]
lea edx, [ebp - 0xc]
mov ecx, 4
call fcn.004072dc
mov ecx, dword [ebp - 0x14]
mov eax, ebx
mov edx, dword [ebp - 4]
call fcn.00407420
mov eax, dword [ebx]
call fcn.00409480
test al, al
jne 0x409655
mov eax, ebx
call fcn.0040662c
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x40967f
lea eax, [ebp - 0x14]
mov edx, 2
call fcn.0040668c
lea eax, [ebp - 4]
call fcn.0040662c
ret

Function at 0x40a030
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 0x40d000
Capabilities:
Get common file path
Write file on windows

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffff3e0
push ebx
push esi
push edi
mov dword [ebp - 4], edx
mov edi, eax
push 0
push 0x80
push 4
push 0
push 0
push 0xc0000000
push 0x5f2e24
call sub.kernel32.dll_CreateFileA
mov esi, eax
cmp esi, 0xffffffff
jne 0x40d0ba
lea eax, [ebp - 0xc10]
push eax
push 0
push 0
push 0x8005
push 0
call sub.SHFolder.dll_SHGetFolderPathA
test eax, eax
jne 0x40d0ba
lea eax, [ebp - 0xc10]
call fcn.0040bed0
mov ebx, eax
test ebx, ebx
je 0x40d06e
cmp byte [ebp + ebx - 0xc11], 0x5c
je 0x40d077
mov byte [ebp + ebx - 0xc10], 0x5c
inc ebx
lea ecx, [ebp - 0xc]
lea edx, [ebp - 0x10]
mov eax, 0x5f2e24
call fcn.0040cfe0
mov ecx, dword [ebp - 0xc]
inc ecx
lea edx, [ebp + ebx - 0xc10]
mov eax, dword [ebp - 0x10]
call fcn.00404860
push 0
push 0x80
push 4
push 0
push 0
push 0xc0000000
lea eax, [ebp - 0xc10]
push eax
call sub.kernel32.dll_CreateFileA
mov esi, eax
cmp esi, 0xffffffff
je 0x40d1ee
push 2
push 0
push 0
push esi
call sub.kernel32.dll_SetFilePointer
lea edx, [ebp - 0x410]
mov eax, 0x40d1f8
mov ecx, 2
call fcn.0040c230
mov ebx, eax
mov eax, 0x40d1fc
mov ecx, 0x20
mov edx, ebx
call fcn.0040c230
mov ebx, eax
lea eax, [ebp - 0xc20]
push eax
call sub.kernel32.dll_GetLocalTime
movzx eax, word [ebp - 0xc20]
mov edx, ebx
call fcn.0040c170
mov ebx, eax
mov byte [ebx], 0x2f
inc ebx
movzx eax, word [ebp - 0xc1e]
mov edx, ebx
call fcn.0040c170
mov ebx, eax
mov byte [ebx], 0x2f
inc ebx
movzx eax, word [ebp - 0xc1a]
mov edx, ebx
call fcn.0040c170
mov ebx, eax
mov byte [ebx], 0x20
inc ebx
movzx eax, word [ebp - 0xc18]
mov edx, ebx
call fcn.0040c170
mov ebx, eax
mov byte [ebx], 0x3a
inc ebx
cmp word [ebp - 0xc16], 0xa
jae 0x40d163
mov byte [ebx], 0x30
inc ebx
movzx eax, word [ebp - 0xc16]
mov edx, ebx
call fcn.0040c170
mov ebx, eax
mov byte [ebx], 0x3a
inc ebx
cmp word [ebp - 0xc14], 0xa
jae 0x40d185
mov byte [ebx], 0x30
inc ebx
movzx eax, word [ebp - 0xc14]
mov edx, ebx
call fcn.0040c170
mov ebx, eax
mov eax, 0x40d1fc
mov ecx, 0x20
mov edx, ebx
call fcn.0040c230
mov ebx, eax
mov eax, 0x40d1f8
mov ecx, 2
mov edx, ebx
call fcn.0040c230
mov ebx, eax
push 0
lea eax, [ebp - 8]
push eax
lea eax, [ebp - 0x410]
sub ebx, eax
push ebx
lea eax, [ebp - 0x410]
push eax
push esi
call sub.kernel32.dll_WriteFile_1
push 0
lea eax, [ebp - 8]
push eax
mov eax, dword [ebp - 4]
push eax
push edi
push esi
call sub.kernel32.dll_WriteFile_1
push esi
call sub.kernel32.dll_CloseHandle_1
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x40d240
Capabilities:
Query environment variable

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffff7f8
push ebx
mov eax, 0x5f2e24
call fcn.0040bf00
mov ebx, eax
test ebx, ebx
jbe 0x40d2e2
mov eax, dword [0x5e8404]
call fcn.0040bed0
mov ecx, eax
inc ecx
lea edx, [ebx + 0x5f2e20]
mov eax, dword [0x5e8404]
call fcn.00404860
push 0x3ff
lea eax, [ebp - 0x808]
push eax
push 0x40d2e8
call sub.kernel32.dll_GetEnvironmentVariableA
mov ebx, eax
test ebx, ebx
jbe 0x40d2e2
cmp byte [ebp + ebx - 0x809], 0x5c
je 0x40d2aa
mov byte [ebp + ebx - 0x808], 0x5c
inc ebx
lea ecx, [ebp - 8]
lea edx, [ebp - 4]
mov eax, 0x5f2e24
call fcn.0040cfe0
mov ecx, dword [ebp - 8]
inc ecx
lea edx, [ebp + ebx - 0x808]
mov eax, dword [ebp - 4]
call fcn.00404860
mov edx, 0x5f2e24
lea eax, [ebp - 0x808]
mov ecx, 0x3ff
call fcn.00404860
pop ebx
mov esp, ebp
pop ebp
ret

Function at 0x41cab0
Capabilities:
Encrypt data using rc4 prga

Disassembly:
cmp eax, edx
je 0x41cb09
test eax, edx
je 0x41cb0c
movzx ecx, word [edx]
cmp cx, word [eax]
je 0x41cac7
movzx eax, word [eax]
sub eax, ecx
jmp 0x41caee
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]
shl ecx, 1
sub eax, ecx
sub edx, ecx
mov ebx, dword [ecx + eax]
xor ebx, dword [ecx + edx]
jne 0x41caef
add ecx, 4
js 0x41cadf
pop eax
pop ebx
ret
bsf ebx, ebx
shr ebx, 4
add ebx, ebx
add ecx, ebx
jns 0x41caec
movzx eax, word [ecx + eax]
movzx edx, word [ecx + edx]
sub eax, edx
pop ebx
pop ebx
jmp 0x41caee
xor eax, eax
ret
test eax, eax
je 0x41cb18
test edx, edx
jne 0x41cab8
mov eax, dword [eax - 4]
ret
sub eax, dword [edx - 4]
ret

Function at 0x41d7fc
Capabilities:
Check if file exists
Delete directory
Delete file
Get file attributes

Disassembly:
push ebx
push esi
push edi
push ebp
mov esi, eax
mov eax, esi
call fcn.00407230
mov ebp, eax
push ebp
call sub.kernel32.dll_DeleteFileW
cmp eax, 1
sbb ebx, ebx
inc ebx
test bl, bl
jne 0x41d851
call sub.kernel32.dll_GetLastError_2
mov edi, eax
push ebp
call sub.kernel32.dll_GetFileAttributesW
cmp eax, 0xffffffff
je 0x41d84b
test ah, 4
je 0x41d84b
test al, 0x10
je 0x41d84b
mov eax, esi
call fcn.00407230
push eax
call sub.kernel32.dll_RemoveDirectoryW
cmp eax, 1
sbb ebx, ebx
inc ebx
jmp 0x41d851
push edi
call sub.kernel32.dll_SetLastError
mov eax, ebx
pop ebp
pop edi
pop esi
pop ebx
ret

Function at 0x421b30
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 0x421b69
mov ecx, eax
dec ecx
lea edx, [ebp - 0x200]
mov eax, ebx
call fcn.00406798
jmp 0x421b72
mov eax, ebx
mov edx, esi
call fcn.004069f0
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 4
Function at 0x421b7c
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 0x421b9e
movzx eax, word [esp]
jmp 0x421ba0
mov eax, edi
pop edx
pop edi
pop esi
pop ebx
ret

Function at 0x422864
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffff778
push ebx
push esi
xor ecx, ecx
mov dword [ebp - 4], ecx
xor ecx, ecx
push ebp
push 0x422989
push dword fs:[ecx]
mov dword fs:[ecx], esp
push 0x400
lea ecx, [ebp - 0x888]
call fcn.0042266c
mov esi, eax
mov eax, dword [0x5ec200]
cmp byte [eax], 0
je 0x422931
mov eax, dword [0x5ebc14]
call fcn.00404c54
call fcn.00404810
push 0
push 0
push 0
push 0
push esi
lea eax, [ebp - 0x888]
push eax
push 0
push 1
call sub.kernel32.dll_WideCharToMultiByte_1
mov ebx, eax
push ebx
lea eax, [ebp - 4]
mov ecx, 1
mov edx, dword [0x422834]
call fcn.004084e0
add esp, 4
push 0
push 0
push ebx
mov eax, dword [ebp - 4]
push eax
push esi
lea eax, [ebp - 0x888]
push eax
push 0
push 1
call sub.kernel32.dll_WideCharToMultiByte_1
push 0
lea eax, [ebp - 8]
push eax
push ebx
mov eax, dword [ebp - 4]
push eax
push 0xfffffffffffffff4
call sub.kernel32.dll_GetStdHandle_1
push eax
call sub.kernel32.dll_WriteFile_1
push 0
lea eax, [ebp - 8]
push eax
push 2
push 0x4229a4
push 0xfffffffffffffff4
call sub.kernel32.dll_GetStdHandle_1
push eax
call sub.kernel32.dll_WriteFile_1
jmp 0x42296d
push 0x40
lea eax, [ebp - 0x88]
push eax
mov eax, dword [0x5ebb68]
mov eax, dword [eax + 4]
push eax
mov eax, dword [0x5efc4c]
call fcn.004085a4
push eax
call sub.user32.dll_LoadStringW_1
push 0x2010
lea eax, [ebp - 0x88]
push eax
lea eax, [ebp - 0x888]
push eax
push 0
call sub.user32.dll_MessageBoxW
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x422990
lea eax, [ebp - 4]
mov edx, dword [0x422834]
call fcn.004084ec
ret

Function at 0x423f30
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.00406b18
mov ebp, eax
push ebp
push 0
push 0
mov ecx, ebx
xor edx, edx
mov eax, 0xfde9
call fcn.0040a010
mov edi, eax
cmp edi, 0x104
jbe 0x423ed7
mov eax, edi
add eax, eax
call fcn.0040464c
mov esi, eax
jmp 0x423ed9
mov esi, esp
push ebp
push esi
push edi
mov ecx, ebx
xor edx, edx
mov eax, 0xfde9
call fcn.0040a010
mov eax, esi
push eax
call sub.user32.dll_CharUpperW
xor ebx, ebx
mov eax, edi
dec eax
test eax, eax
jl 0x423f14
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 0x423efe
mov eax, esp
cmp esi, eax
je 0x423f21
mov eax, esi
call fcn.00404668
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 0x423f5c
cmp bl, 0
je 0x423f58
cmp bl, 0x41
jl 0x423f53
cmp bl, 0x5a
jg 0x423f53
or bl, 0x20
xor al, bl
inc esi
jmp 0x423f37
pop ecx
pop ebx
pop esi
ret
pop eax
pop ebx
pop esi
jmp 0x423e98
Function at 0x424230
Capabilities:
Get geographical location

Disassembly:
push ebx
add esp, 0xfffff800
mov ebx, ecx
mov word [esp], 0
push 0x400
lea ecx, [esp + 4]
push ecx
push edx
push eax
call sub.kernel32.dll_GetLocaleInfoW_1
mov eax, ebx
mov edx, esp
mov ecx, 0x400
call fcn.004072dc
add esp, 0x800
pop ebx
ret

Function at 0x424578
Capabilities:
Query environment variable

Disassembly:
push ebx
push esi
push edi
push ebp
add esp, 0xfffff800
mov esi, edx
mov edi, eax
mov eax, esi
call fcn.0040662c
push 0x400
lea eax, [esp + 4]
push eax
mov eax, edi
call fcn.00407230
mov ebp, eax
push ebp
call sub.kernel32.dll_GetEnvironmentVariableW
mov ebx, eax
cmp ebx, 0x400
jge 0x4245bd
mov edx, esp
mov eax, esi
mov ecx, ebx
call fcn.00406798
jmp 0x4245d6
mov edx, ebx
dec edx
mov eax, esi
call fcn.00407348
push ebx
mov eax, dword [esi]
call fcn.00407230
push eax
push ebp
call sub.kernel32.dll_GetEnvironmentVariableW
add esp, 0x800
pop ebp
pop edi
pop esi
pop ebx
ret

Function at 0x427ae0
Capabilities:
Query environment variable

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffff8
push ebx
mov ebx, eax
mov byte [ebp - 1], 0
call sub.kernel32.dll_GetEnvironmentStringsW
mov dword [ebp - 8], eax
cmp dword [ebp - 8], 0
je 0x427b35
xor eax, eax
push ebp
push 0x427b2e
push dword fs:[eax]
mov dword fs:[eax], esp
mov edx, dword [ebp - 8]
mov eax, ebx
call fcn.0042bba0
mov byte [ebp - 1], 1
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x427b35
mov eax, dword [ebp - 8]
push eax
call sub.kernel32.dll_FreeEnvironmentStringsW
ret
movzx eax, byte [ebp - 1]
pop ebx
pop ecx
pop ecx
pop ebp
ret

Function at 0x427bb0
Capabilities:
Accept command line arguments

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffdf4
push ebx
push esi
push edi
mov ebx, edx
mov esi, eax
mov eax, ebx
call fcn.0040662c
test esi, esi
jne 0x427bef
push 0x105
lea eax, [ebp - 0x20a]
push eax
push 0
call sub.kernel32.dll_GetModuleFileNameW_1
mov ecx, eax
lea edx, [ebp - 0x20a]
mov eax, ebx
call fcn.00406798
jmp 0x427c0d
call sub.kernel32.dll_GetCommandLineW_1
mov edi, eax
mov edx, ebx
mov eax, edi
call fcn.00427a20
mov edi, eax
test esi, esi
je 0x427c0d
cmp dword [ebx], 0
je 0x427c0d
dec esi
jmp 0x427bf6
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret