joyce8/EMBER2024-capa huggingface dataset:
Function at 0x41755f
Capabilities:
Enumerate files on windows

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x264
mov eax, dword [0x428040]
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 0x4175aa
movzx eax, word [edx]
lea ecx, [ebp - 0x255]
push eax
call fcn.004176fe
test al, al
jne 0x4175a4
sub edx, 2
cmp edx, edi
jne 0x41758a
mov ecx, dword [ebp - 0x25c]
movzx esi, word [edx]
cmp esi, 0x3a
jne 0x4175cc
lea eax, [edi + 2]
cmp edx, eax
je 0x4175cc
push ecx
xor ebx, ebx
push ebx
push ebx
push edi
call fcn.004174ab
add esp, 0x10
jmp 0x4176c6
push esi
lea ecx, [ebp - 0x255]
call fcn.004176fe
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 0x41760f
push dword [ebp - 0x25c]
jmp 0x4175bc
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 0x41764c
cmp word [ebp - 0x226], 0
je 0x41766d
cmp word [ebp - 0x226], ax
jne 0x41764c
cmp word [ebp - 0x224], 0
je 0x41766d
push ebx
push dword [ebp - 0x260]
lea eax, [ebp - 0x228]
push edi
push eax
call fcn.004174ab
add esp, 0x10
mov dword [ebp - 0x264], eax
test eax, eax
jne 0x4176b9
lea eax, [ebp - 0x254]
push eax
push esi
call dword [sym.imp.KERNEL32.dll_FindNextFileW]
push 0x2e
test eax, eax
pop eax
jne 0x417626
mov eax, dword [ebx + 4]
mov edx, dword [ebx]
sub eax, edx
mov ecx, dword [ebp - 0x25c]
sar eax, 2
cmp ecx, eax
jne 0x4176a1
push esi
call dword [sym.imp.KERNEL32.dll_FindClose]
xor eax, eax
jmp 0x4176c6
push 0x4172db
sub eax, ecx
push 4
push eax
lea eax, [edx + ecx*4]
push eax
call fcn.0041b3c0
add esp, 0x10
jmp 0x417696
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.00406c93
leave
ret

Function at 0x41d220
Capabilities:
Parse pe header

Disassembly:
push ebp
mov ebp, esp
mov eax, dword [ebp + 8]
mov ecx, 0x5a4d
cmp word [eax], cx
jne 0x41d24d
mov ecx, dword [eax + 0x3c]
add ecx, eax
cmp dword [ecx], 0x4550
jne 0x41d24d
mov edx, 0x10b
xor eax, eax
cmp word [ecx + 0x18], dx
sete al
pop ebp
ret
xor eax, eax
pop ebp
ret
Function at 0x405854
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.00405c40
mov byte [esp], al
cmp byte [esp], 0
jne 0x4059e0
test edi, edi
je 0x4059e0
mov byte [esp + 1], 0
test ebp, ebp
jle 0x405917
call sub.kernel32.dll_GetTickCount
mov dword [esp + 4], eax
test ebp, ebp
jle 0x4058f2
cmp edi, 0xffffffff
je 0x4058b3
call sub.kernel32.dll_GetTickCount
sub eax, dword [esp + 4]
cmp edi, eax
ja 0x4058b3
mov byte [esp], 0
jmp 0x4059e0
mov ebx, dword [esi]
cmp ebx, 1
jg 0x4058f2
test ebx, ebx
jne 0x4058e8
mov eax, esi
xor ecx, ecx
mov edx, 1
call fcn.0040276c
test eax, eax
jne 0x4058e8
call sub.kernel32.dll_GetCurrentThreadId
mov dword [esi + 8], eax
mov dword [esi + 4], 1
mov byte [esp], 1
jmp 0x4059e0
call 0x405d64
dec ebp
test ebp, ebp
jg 0x405898
cmp edi, 0xffffffff
je 0x405917
call sub.kernel32.dll_GetTickCount
mov dword [esp + 8], eax
mov eax, dword [esp + 8]
sub eax, dword [esp + 4]
cmp edi, eax
ja 0x405915
mov byte [esp], 0
jmp 0x4059e0
sub edi, eax
mov ebx, dword [esi]
test ebx, ebx
je 0x405862
lea edx, [ebx + 2]
mov eax, esi
mov ecx, ebx
call fcn.0040276c
cmp ebx, eax
jne 0x405917
call sub.kernel32.dll_GetTickCount
mov dword [esp + 4], eax
mov eax, esi
call fcn.00405a50
mov edx, eax
mov ebx, dword [reloc.advapi32.dll_RegQueryValueExW]
mov ecx, edi
xor eax, eax
call dword [ebx + 0x10]
test eax, eax
sete byte [esp]
cmp edi, 0xffffffff
je 0x40597e
call sub.kernel32.dll_GetTickCount
mov dword [esp + 8], eax
mov eax, dword [esp + 8]
sub eax, dword [esp + 4]
cmp edi, eax
jbe 0x40597c
mov eax, dword [esp + 8]
sub eax, dword [esp + 4]
sub edi, eax
jmp 0x40597e
xor edi, edi
cmp byte [esp], 0
je 0x4059a7
mov ebx, dword [esi]
test bl, 1
jne 0x4059c0
mov edx, ebx
sub edx, 2
or edx, 1
mov eax, esi
mov ecx, ebx
call fcn.0040276c
cmp ebx, eax
jne 0x405984
mov byte [esp + 1], 1
jmp 0x4059c0
mov ebx, dword [esi]
mov edx, ebx
sub edx, 2
mov eax, esi
mov ecx, ebx
call fcn.0040276c
cmp ebx, eax
jne 0x4059a7
mov byte [esp + 1], 1
cmp byte [esp + 1], 0
je 0x405931
cmp byte [esp], 0
je 0x4059e0
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 0x406764
Capabilities:
Write file on windows

Disassembly:
push ecx
cmp byte [0x55c058], 0
je 0x4067cb
cmp word [0x55c344], 0xd7b2
jne 0x40678d
cmp dword [reloc.user32.dll_ShowOwnedPopups], 0
jbe 0x40678d
mov eax, 0x55c340
call dword [0x55c35c]
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, 0x4067f8
call fcn.00407350
push eax
push 0xfffffffffffffff5
call sub.kernel32.dll_GetStdHandle
push eax
call sub.kernel32.dll_WriteFile
pop edx
ret
cmp byte [0x554034], 0
jne 0x4067e7
push 0
push 0x5549ca
push str.Runtime_error_____at_00000000
push 0
call sub.user32.dll_MessageBoxA
pop edx
ret
Function at 0x406988
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 [0x554038], 0
je 0x4069b3
mov edx, edi
mov eax, esi
call dword [0x554038]
mov ebx, eax
jmp 0x4069c4
mov eax, 8
call fcn.004044f0
mov ebx, eax
mov dword [ebx], esi
mov dword [ebx + 4], edi
mov byte [0x55c059], 1
mov eax, dword [ebp + 8]
push eax
mov eax, dword [ebp + 0xc]
push eax
push ebx
mov eax, 0x406950
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 0x4069f9
mov edx, 8
mov eax, ebx
call fcn.0040450c
mov eax, esi
pop edi
pop esi
pop ebx
pop ecx
pop ecx
pop ebp
ret 0xc

Function at 0x408e10
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 0x408f75
push dword fs:[eax]
mov dword fs:[eax], esp
mov eax, dword [ebp - 4]
call fcn.00406acc
cmp si, word [0x554a08]
jb 0x408ea8
cmp si, word [0x554c08]
ja 0x408ea8
mov edi, 0x40
xor eax, eax
mov dword [ebp - 8], eax
cmp edi, dword [ebp - 8]
jb 0x408ea8
mov ebx, edi
add ebx, dword [ebp - 8]
shr ebx, 1
cmp si, word [ebx*8 + 0x554a08]
jae 0x408e82
mov edi, ebx
dec edi
jmp 0x408ea3
cmp si, word [ebx*8 + 0x554a08]
jbe 0x408e92
inc ebx
mov dword [ebp - 8], ebx
jmp 0x408ea3
mov edx, dword [ebp - 4]
mov eax, dword [ebx*8 + 0x554a0c]
call fcn.00408d20
jmp 0x408ea8
cmp edi, dword [ebp - 8]
jae 0x408e6c
mov eax, dword [ebp - 4]
cmp dword [eax], 0
jne 0x408f57
push 2
movzx eax, si
push eax
call sub.kernel32.dll_IsValidLocale
test eax, eax
je 0x408f57
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.00407728
push dword [ebp - 0x160]
push 0x408f90
lea eax, [ebp - 0x164]
lea edx, [ebp - 0x15c]
mov ecx, 0x55
call fcn.00407728
push dword [ebp - 0x164]
push 0x408fa0
lea eax, [ebp - 0x168]
lea edx, [ebp - 0xb2]
mov ecx, 0x55
call fcn.00407728
push dword [ebp - 0x168]
mov eax, dword [ebp - 4]
mov edx, 5
call fcn.00407960
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x408f7c
lea eax, [ebp - 0x168]
mov edx, 3
call fcn.00406b2c
ret
Function at 0x409128
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 0x40922b
push dword fs:[eax]
mov dword fs:[eax], esp
push 0x55eb88
call sub.kernel32.dll_EnterCriticalSection
cmp bx, word [0x55eba0]
jne 0x409174
mov eax, esi
mov edx, 0x55eba2
mov ecx, 0x55
call fcn.00407728
push 0x55eb88
call sub.kernel32.dll_LeaveCriticalSection
jmp 0x409215
push 0x55eb88
call sub.kernel32.dll_LeaveCriticalSection
mov eax, esi
call fcn.00406acc
push 2
movzx eax, bx
push eax
call sub.kernel32.dll_IsValidLocale
test eax, eax
je 0x4091e3
cmp byte [0x55eb84], 0
je 0x4091a8
mov edx, esi
mov eax, ebx
call fcn.0040900c
jmp 0x4091e3
mov edx, esi
mov eax, ebx
call fcn.00408e10
call sub.kernel32.dll_GetSystemDefaultUILanguage
cmp bx, ax
je 0x4091e3
cmp dword [esi], 0
je 0x4091cc
mov eax, esi
mov edx, 0x409244
call fcn.00407880
call sub.kernel32.dll_GetSystemDefaultUILanguage
lea edx, [ebp - 4]
call fcn.00408e10
mov edx, dword [ebp - 4]
mov eax, esi
call fcn.00407880
push 0x55eb88
call sub.kernel32.dll_EnterCriticalSection
mov word [0x55eba0], bx
push 0xaa
mov eax, dword [esi]
call fcn.0040767c
push eax
push 0x55eba2
call sub.kernel32.dll_lstrcpynW
push 0x55eb88
call sub.kernel32.dll_LeaveCriticalSection
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x409232
lea eax, [ebp - 4]
call fcn.00406acc
ret
Function at 0x409460
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.00406bb0
xor eax, eax
push ebp
push 0x409685
push dword fs:[eax]
mov dword fs:[eax], esp
cmp dword [ebp - 4], 0
jne 0x4094a0
push 0x105
lea eax, [ebp - 0x21a]
push eax
push 0
call sub.kernel32.dll_GetModuleFileNameW
jmp 0x4094ba
push 0x105
mov eax, dword [ebp - 4]
call fcn.0040767c
push eax
lea eax, [ebp - 0x21a]
push eax
call sub.kernel32.dll_lstrcpynW
cmp word [ebp - 0x21a], 0
je 0x40966f
xor eax, eax
mov dword [ebp - 8], eax
lea eax, [ebp - 0xc]
push eax
push 0xf0019
push 0
push 0x409694
push 0x80000001
call sub.advapi32.dll_RegOpenKeyExW
test eax, eax
je 0x409589
lea eax, [ebp - 0xc]
push eax
push 0xf0019
push 0
push 0x409694
push 0x80000002
call sub.advapi32.dll_RegOpenKeyExW
test eax, eax
je 0x409589
lea eax, [ebp - 0xc]
push eax
push 0xf0019
push 0
push 0x4096d0
push 0x80000001
call sub.advapi32.dll_RegOpenKeyExW
test eax, eax
je 0x409589
lea eax, [ebp - 0xc]
push eax
push 0xf0019
push 0
push 0x4096d0
push 0x80000002
call sub.advapi32.dll_RegOpenKeyExW
test eax, eax
je 0x409589
lea eax, [ebp - 0xc]
push eax
push 0xf0019
push 0
push 0x409704
push 0x80000001
call sub.advapi32.dll_RegOpenKeyExW
test eax, eax
je 0x409589
lea eax, [ebp - 0xc]
push eax
push 0xf0019
push 0
push 0x409738
push 0x80000001
call sub.advapi32.dll_RegOpenKeyExW
test eax, eax
jne 0x40966f
xor eax, eax
push ebp
push 0x409668
push dword fs:[eax]
mov dword fs:[eax], esp
lea eax, [ebp - 0x21a]
mov edx, 0x105
call fcn.0040926c
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 0x4095f8
mov eax, dword [ebp - 0x10]
call fcn.004044f0
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.004076d4
jmp 0x409643
lea eax, [ebp - 0x10]
push eax
push 0
push 0
push 0
push 0x409778
mov eax, dword [ebp - 0xc]
push eax
call sub.advapi32.dll_RegQueryValueExW
test eax, eax
jne 0x409643
mov eax, dword [ebp - 0x10]
call fcn.004044f0
mov dword [ebp - 8], eax
lea eax, [ebp - 0x10]
push eax
mov eax, dword [ebp - 8]
push eax
push 0
push 0
push 0x409778
mov eax, dword [ebp - 0xc]
push eax
call sub.advapi32.dll_RegQueryValueExW
mov eax, ebx
mov edx, dword [ebp - 8]
call fcn.004076d4
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x40966f
cmp dword [ebp - 8], 0
je 0x40965e
mov eax, dword [ebp - 8]
call fcn.0040450c
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 0x40968c
lea eax, [ebp - 4]
call fcn.00406acc
ret
Function at 0x40996c
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.00406bb0
xor eax, eax
push ebp
push 0x409a2c
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.00407728
mov ecx, dword [ebp - 0x10]
mov eax, ebx
mov edx, dword [ebp - 4]
call fcn.004078d8
mov eax, dword [ebx]
call fcn.00409834
test al, al
jne 0x409a09
mov word [ebp - 8], 0
lea eax, [ebp - 0x14]
lea edx, [ebp - 0xc]
mov ecx, 4
call fcn.00407728
mov ecx, dword [ebp - 0x14]
mov eax, ebx
mov edx, dword [ebp - 4]
call fcn.004078d8
mov eax, dword [ebx]
call fcn.00409834
test al, al
jne 0x409a09
mov eax, ebx
call fcn.00406acc
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x409a33
lea eax, [ebp - 0x14]
mov edx, 2
call fcn.00406b2c
lea eax, [ebp - 4]
call fcn.00406acc
ret

Function at 0x41c8fc
Capabilities:
Encrypt data using rc4 prga

Disassembly:
cmp eax, edx
je 0x41c955
test eax, edx
je 0x41c958
movzx ecx, word [edx]
cmp cx, word [eax]
je 0x41c913
movzx eax, word [eax]
sub eax, ecx
jmp 0x41c93a
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 0x41c93b
add ecx, 4
js 0x41c92b
pop eax
pop ebx
ret
bsf ebx, ebx
shr ebx, 4
add ebx, ebx
add ecx, ebx
jns 0x41c938
movzx eax, word [ecx + eax]
movzx edx, word [ecx + edx]
sub eax, edx
pop ebx
pop ebx
jmp 0x41c93a
xor eax, eax
ret
test eax, eax
je 0x41c964
test edx, edx
jne 0x41c904
mov eax, dword [eax - 4]
ret
sub eax, dword [edx - 4]
ret

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

Disassembly:
push ebx
push esi
push edi
mov ebx, edx
mov esi, eax
mov eax, esi
call fcn.0040767c
mov edi, eax
push edi
call sub.kernel32.dll_GetFileAttributesW
cmp eax, 0xffffffff
je 0x41daa2
test ah, 4
je 0x41da9b
test bl, bl
jne 0x41da60
mov al, 1
jmp 0x41dac9
test al, 0x10
je 0x41da68
xor eax, eax
jmp 0x41dac9
push 0
push 0
push 3
push 0
push 1
push 0x80000000
push edi
call sub.kernel32.dll_CreateFileW
cmp eax, 0xffffffff
je 0x41da8c
push eax
call sub.kernel32.dll_CloseHandle_1
mov al, 1
jmp 0x41dac9
call sub.kernel32.dll_GetLastError_2
mov ebx, eax
cmp ebx, 0x20
sete al
jmp 0x41dac9
test al, 0x10
sete al
jmp 0x41dac9
call sub.kernel32.dll_GetLastError_2
mov ebx, eax
cmp ebx, 2
je 0x41dac3
cmp ebx, 3
je 0x41dac3
cmp ebx, 0x7b
je 0x41dac3
mov eax, esi
call fcn.0041d9f8
test al, al
jne 0x41dac7
xor eax, eax
jmp 0x41dac9
mov al, 1
pop edi
pop esi
pop ebx
ret
Function at 0x41dad0
Capabilities:
Check if file exists
Get file attributes

Disassembly:
push ebx
push esi
push edi
push ebp
push ecx
mov byte [esp], dl
mov edi, eax
xor ebx, ebx
mov eax, edi
call fcn.0040767c
mov ebp, eax
push ebp
call sub.kernel32.dll_GetFileAttributesW
mov esi, eax
cmp esi, 0xffffffff
je 0x41db77
test esi, 0x400
jne 0x41db0c
test esi, 0x10
setne bl
jmp 0x41db96
cmp byte [esp], 0
je 0x41db40
push 0
push 0x2000000
push 3
push 0
push 1
push 0x80000000
push ebp
call sub.kernel32.dll_CreateFileW
cmp eax, 0xffffffff
je 0x41db96
push eax
call sub.kernel32.dll_CloseHandle_1
test esi, 0x10
setne bl
jmp 0x41db96
test esi, 0x10
je 0x41db4c
mov bl, 1
jmp 0x41db96
push 0
push 0x2000000
push 3
push 0
push 1
push 0x80000000
push ebp
call sub.kernel32.dll_CreateFileW
cmp eax, 0xffffffff
je 0x41db73
push eax
call sub.kernel32.dll_CloseHandle_1
xor ebx, ebx
jmp 0x41db96
mov bl, 1
jmp 0x41db96
call sub.kernel32.dll_GetLastError_2
cmp eax, 2
je 0x41db90
cmp eax, 3
je 0x41db90
cmp eax, 0x7b
je 0x41db90
cmp eax, 0x35
jne 0x41db94
xor ebx, ebx
jmp 0x41db96
mov bl, 1
mov eax, ebx
pop edx
pop ebp
pop edi
pop esi
pop ebx
ret

Function at 0x41dba0
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.0040767c
mov ebp, eax
push ebp
call sub.kernel32.dll_DeleteFileW
cmp eax, 1
sbb ebx, ebx
inc ebx
test bl, bl
jne 0x41dbf5
call sub.kernel32.dll_GetLastError_2
mov edi, eax
push ebp
call sub.kernel32.dll_GetFileAttributesW
cmp eax, 0xffffffff
je 0x41dbef
test ah, 4
je 0x41dbef
test al, 0x10
je 0x41dbef
mov eax, esi
call fcn.0040767c
push eax
call sub.kernel32.dll_RemoveDirectoryW
cmp eax, 1
sbb ebx, ebx
inc ebx
jmp 0x41dbf5
push edi
call sub.kernel32.dll_SetLastError
mov eax, ebx
pop ebp
pop edi
pop esi
pop ebx
ret

Function at 0x421cec
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 0x421d25
mov ecx, eax
dec ecx
lea edx, [ebp - 0x200]
mov eax, ebx
call fcn.00406c24
jmp 0x421d2e
mov eax, ebx
mov edx, esi
call fcn.00406e7c
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 4

Function at 0x421d38
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 0x421d5a
movzx eax, word [esp]
jmp 0x421d5c
mov eax, edi
pop edx
pop edi
pop esi
pop ebx
ret
Function at 0x422a20
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 0x422b45
push dword fs:[ecx]
mov dword fs:[ecx], esp
push 0x400
lea ecx, [ebp - 0x888]
call fcn.00422828
mov esi, eax
mov eax, dword [0x55b614]
cmp byte [eax], 0
je 0x422aed
mov eax, dword [0x55b2a0]
call fcn.00404a5c
call fcn.00404664
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 [0x4229f0]
call fcn.00408748
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 0x422b60
push 0xfffffffffffffff4
call sub.kernel32.dll_GetStdHandle_1
push eax
call sub.kernel32.dll_WriteFile_1
jmp 0x422b29
push 0x40
lea eax, [ebp - 0x88]
push eax
mov eax, dword [0x55b20c]
mov eax, dword [eax + 4]
push eax
mov eax, dword [0x55ec50]
call fcn.00408954
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 0x422b4c
lea eax, [ebp - 4]
mov edx, dword [0x4229f0]
call fcn.0040886c
ret

Function at 0x4237e4
Capabilities:
Get file version info

Disassembly:
push ebp
mov ebp, esp
add esp, 0xffffffe8
push ebx
xor edx, edx
mov dword [ebp - 4], edx
mov ebx, eax
xor eax, eax
push ebp
push 0x4238ba
push dword fs:[eax]
mov dword fs:[eax], esp
mov dword [ebp - 8], 0xffffffff
lea eax, [ebp - 4]
mov edx, ebx
call fcn.00406ec4
lea eax, [ebp - 4]
call fcn.0040702c
lea eax, [ebp - 0xc]
push eax
mov eax, dword [ebp - 4]
call fcn.0040767c
push eax
call sub.version.dll_GetFileVersionInfoSizeW
mov ebx, eax
test ebx, ebx
je 0x4238a4
mov eax, ebx
call fcn.004044f0
mov dword [ebp - 0x10], eax
xor eax, eax
push ebp
push 0x42389d
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 - 4]
call fcn.0040767c
push eax
call sub.version.dll_GetFileVersionInfoW
test eax, eax
je 0x423887
lea eax, [ebp - 0x18]
push eax
lea eax, [ebp - 0x14]
push eax
push 0x4238cc
mov eax, dword [ebp - 0x10]
push eax
call sub.version.dll_VerQueryValueW
test eax, eax
je 0x423887
mov eax, dword [ebp - 0x14]
mov eax, dword [eax + 8]
mov dword [ebp - 8], eax
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x4238a4
mov eax, dword [ebp - 0x10]
call fcn.0040450c
ret
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x4238c1
lea eax, [ebp - 4]
call fcn.00406acc
ret
Function at 0x424ba4
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.00407728
add esp, 0x800
pop ebx
ret

Function at 0x424eec
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.00406acc
push 0x400
lea eax, [esp + 4]
push eax
mov eax, edi
call fcn.0040767c
mov ebp, eax
push ebp
call sub.kernel32.dll_GetEnvironmentVariableW
mov ebx, eax
cmp ebx, 0x400
jge 0x424f31
mov edx, esp
mov eax, esi
mov ecx, ebx
call fcn.00406c24
jmp 0x424f4a
mov edx, ebx
dec edx
mov eax, esi
call fcn.00407800
push ebx
mov eax, dword [esi]
call fcn.0040767c
push eax
push ebp
call sub.kernel32.dll_GetEnvironmentVariableW
add esp, 0x800
pop ebp
pop edi
pop esi
pop ebx
ret

Function at 0x44a948
Capabilities:
Resume thread

Disassembly:
push ebp
mov ebp, esp
push 0
push 0
push ebx
mov ebx, eax
xor eax, eax
push ebp
push 0x44a9e6
push dword fs:[eax]
mov dword fs:[eax], esp
or dl, byte [ebx + 0xc]
je 0x44a9aa
cmp byte [ebx + 0x10], 0
jne 0x44a9aa
cmp byte [ebx + 0x3c], 0
jne 0x44a9aa
mov byte [ebx + 0xe], 0
mov byte [ebx + 0xc], 0
mov eax, dword [ebx + 4]
push eax
call sub.kernel32.dll_ResumeThread
cmp eax, 1
je 0x44a9cb
lea edx, [ebp - 4]
mov eax, dword [0x55b58c]
call fcn.0040a2e0
mov ecx, dword [ebp - 4]
mov dl, 1
mov eax, dword [0x43aac8]
call fcn.00422b70
call fcn.00406200
jmp 0x44a9cb
lea edx, [ebp - 8]
mov eax, dword [0x55b58c]
call fcn.0040a2e0
mov ecx, dword [ebp - 8]
mov dl, 1
mov eax, dword [0x43aac8]
call fcn.00422b70
call fcn.00406200
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x44a9ed
lea eax, [ebp - 8]
mov edx, 2
call fcn.00406b2c
ret

Function at 0x44ad0c
Capabilities:
Suspend thread

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffff8
push ebx
push esi
push edi
mov dword [ebp - 4], eax
mov eax, dword [ebp - 4]
movzx eax, byte [eax + 0xe]
mov byte [ebp - 5], al
xor eax, eax
push ebp
push 0x44ad5a
push dword fs:[eax]
mov dword fs:[eax], esp
mov eax, dword [ebp - 4]
mov byte [eax + 0xe], 1
mov eax, dword [ebp - 4]
mov eax, dword [eax + 4]
push eax
call sub.kernel32.dll_SuspendThread
test eax, eax
setge dl
mov eax, dword [ebp - 4]
call fcn.0044a88c
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
jmp 0x44ad73
pop edi
pop esi
pop ebx
pop ecx
pop ecx
pop ebp
ret

Function at 0x44ad7c
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.0044a88c
dec esi
jne 0x44ad9e
mov byte [ebx + 0xe], 0
pop esi
pop ebx
ret