joyce8/EMBER2024-capa huggingface dataset:
Function at 0x401b98
Capabilities:
Query or enumerate registry key

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffec8
mov eax, 0x4b2438
call fcn.00498c30
mov word [ebp - 0x18], 0xc
lea edx, [ebp - 4]
push edx
call fcn.00401b18
pop ecx
inc dword [ebp - 0xc]
mov word [ebp - 0x18], 0x18
push 0x2001f
push dword [ebp + 0xc]
mov ecx, dword [ebp + 8]
push dword [ecx]
lea eax, [ebp - 4]
push eax
call fcn.0040222c
add esp, 0x10
mov dword [ebp - 0x2c], eax
cmp dword [ebp - 0x2c], 0
je 0x401c0b
mov eax, dword [ebp - 0x2c]
push eax
dec dword [ebp - 0xc]
push 2
lea edx, [ebp - 4]
push edx
call fcn.00401b48
add esp, 8
pop eax
mov edx, dword [ebp - 0x28]
mov dword fs:[0], edx
jmp 0x401cb1
mov dword [ebp - 0x38], 0x100
jmp 0x401c59
lea ecx, [ebp - 0x138]
push ecx
lea eax, [ebp - 4]
push eax
call fcn.00401b98
add esp, 8
mov dword [ebp - 0x2c], eax
cmp dword [ebp - 0x2c], 0
je 0x401c52
mov eax, dword [ebp - 0x2c]
push eax
dec dword [ebp - 0xc]
push 2
lea edx, [ebp - 4]
push edx
call fcn.00401b48
add esp, 8
pop eax
mov edx, dword [ebp - 0x28]
mov dword fs:[0], edx
jmp 0x401cb1
mov dword [ebp - 0x38], 0x100
lea ecx, [ebp - 0x34]
push ecx
push 0
push 0
push 0
lea eax, [ebp - 0x38]
push eax
lea edx, [ebp - 0x138]
push edx
push 0
push dword [ebp - 4]
call sub.ADVAPI32.DLL_RegEnumKeyExA
test eax, eax
je 0x401c14
lea ecx, [ebp - 4]
push ecx
call fcn.00402200
pop ecx
push dword [ebp + 0xc]
push dword [ebp + 8]
call fcn.004022ac
add esp, 8
push eax
dec dword [ebp - 0xc]
push 2
lea eax, [ebp - 4]
push eax
call fcn.00401b48
add esp, 8
pop eax
mov edx, dword [ebp - 0x28]
mov dword fs:[0], edx
mov esp, ebp
pop ebp
ret

Function at 0x401d80
Capabilities:
Set registry value

Disassembly:
push ebp
mov ebp, esp
cmp dword [ebp + 0xc], 0
jne 0x401da0
push 0x1359
push 0x4b20f2
push 0x4b20e3
call fcn.004a0cc4
add esp, 0xc
mov eax, dword [ebp + 8]
cmp dword [eax], 0
jne 0x401dbf
push 0x135a
push 0x4b2143
push 0x4b2137
call fcn.004a0cc4
add esp, 0xc
push dword [ebp + 0xc]
call sub.KERNEL32.DLL_lstrlenA
inc eax
push eax
push dword [ebp + 0xc]
push 1
push 0
push dword [ebp + 0x10]
mov edx, dword [ebp + 8]
push dword [edx]
call sub.ADVAPI32.DLL_RegSetValueExA
pop ebp
ret

Function at 0x4022ac
Capabilities:
Delete registry key

Disassembly:
push ebp
mov ebp, esp
mov eax, dword [ebp + 8]
cmp dword [eax], 0
jne 0x4022ce
push 0x12f0
push 0x4b223c
push 0x4b2230
call fcn.004a0cc4
add esp, 0xc
push dword [ebp + 0xc]
mov edx, dword [ebp + 8]
push dword [edx]
call sub.ADVAPI32.DLL_RegDeleteKeyA
pop ebp
ret

Function at 0x4057ec
Capabilities:
Check for peb beingdebugged flag

Disassembly:
push ebp
mov ebp, esp
add esp, 0xffffffdc
mov eax, 0x4b3024
call fcn.00498c30
mov word [ebp - 0x14], 0xc
push dword [ebp + 8]
call fcn.004072d0
pop ecx
add dword [ebp - 8], 2
mov edx, dword [ebp + 8]
add edx, 0x30
push edx
call fcn.00407324
pop ecx
add dword [ebp - 8], 2
mov ecx, dword [ebp - 0x24]
mov dword fs:[0], ecx
mov eax, dword [ebp + 8]
mov esp, ebp
pop ebp
ret
Function at 0x413674
Capabilities:
Print debug messages

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffdf8
test dword [ebp + 8], 0xffffffff
je 0x4136e5
cmp dword [ebp + 0xc], 0
ja 0x4136e5
lea eax, [ebp + 0x14]
mov dword [ebp - 4], eax
push dword [ebp - 4]
push dword [ebp + 0x10]
push pe_nt_image_headers32
lea edx, [ebp - 0x208]
push edx
call fcn.0049b440
add esp, 0x10
mov dword [ebp - 8], eax
cmp dword [ebp - 8], 0x200
jb 0x4136cf
push 0x161
push 0x4b4c0c
push 0x4b4bf4
call fcn.004a0cc4
add esp, 0xc
push 0x4b4c51
call sub.KERNEL32.DLL_OutputDebugStringA
lea ecx, [ebp - 0x208]
push ecx
call sub.KERNEL32.DLL_OutputDebugStringA
mov esp, ebp
pop ebp
ret
Function at 0x4161e4
Capabilities:
Get user security identifier

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffecc
push esi
push edi
mov eax, 0x4b8b68
call fcn.00498c30
xor edx, edx
mov dword [ebp - 0x28], edx
mov esi, 0x4b8958
lea edi, [ebp - 0x134]
mov ecx, 0x40
rep movsd dword es:[edi], dword [esi]
mov word [ebp - 0x14], 0xc
xor eax, eax
mov dword [ebp - 0x2c], eax
xor edx, edx
mov dword [ebp - 0x30], edx
xor ecx, ecx
mov dword [ebp - 0x28], ecx
mov dword [ebp - 0x2c], 0xff
push dword [ebp + 0xc]
push dword [ebp + 8]
call fcn.00415fac
add esp, 8
test eax, eax
je 0x41624f
xor eax, eax
mov edx, dword [ebp - 0x24]
mov dword fs:[0], edx
jmp 0x4162f7
lea ecx, [ebp - 0x34]
push ecx
lea eax, [ebp - 0x2c]
push eax
lea edx, [ebp - 0x134]
push edx
lea ecx, [ebp - 0x28]
push ecx
mov eax, dword [ebp + 0xc]
push dword [eax]
push dword [ebp + 8]
push 0
call sub.ADVAPI32.DLL_LookupAccountNameA
call sub.KERNEL32.DLL_GetLastError
mov dword [ebp - 0x30], eax
cmp dword [ebp - 0x30], 0x7a
je 0x416287
mov word [ebp - 0x14], 0xc
jmp 0x4162ea
xor edx, edx
mov dword [ebp - 0x30], edx
push dword [ebp - 0x28]
call fcn.00497c68
pop ecx
mov ecx, dword [ebp + 0xc]
mov dword [ecx], eax
cmp dword [ebp + 0xc], 0
jne 0x4162af
mov dword [ebp - 0x30], 0xe
mov word [ebp - 0x14], 0xc
jmp 0x4162ea
mov dword [ebp - 0x2c], 0xff
lea eax, [ebp - 0x34]
push eax
lea edx, [ebp - 0x2c]
push edx
lea ecx, [ebp - 0x134]
push ecx
lea eax, [ebp - 0x28]
push eax
mov edx, dword [ebp + 0xc]
push dword [edx]
push dword [ebp + 8]
push 0
call sub.ADVAPI32.DLL_LookupAccountNameA
test eax, eax
jne 0x4162ea
call sub.KERNEL32.DLL_GetLastError
mov dword [ebp - 0x30], eax
mov word [ebp - 0x14], 0xc
mov eax, dword [ebp - 0x30]
mov edx, dword [ebp - 0x24]
mov dword fs:[0], edx
pop edi
pop esi
mov esp, ebp
pop ebp
ret

Function at 0x416300
Capabilities:
Check os version

Disassembly:
push ebp
mov ebp, esp
add esp, 0xffffff3c
push esi
push edi
mov eax, 0x4b8b80
call fcn.00498c30
xor edx, edx
mov dword [ebp - 0x28], edx
mov esi, 0x4b8a58
lea edi, [ebp - 0xc4]
mov ecx, 0x27
rep movsd dword es:[edi], dword [esi]
mov word [ebp - 0x14], 0xc
lea eax, [ebp - 0xc4]
push eax
call sub.KERNEL32.DLL_GetVersionExA
test eax, eax
je 0x4163a1
cmp dword [ebp - 0xc0], 5
jne 0x416391
cmp dword [ebp - 0xbc], 1
jae 0x41635d
mov dword [ebp - 0x28], 1
jmp 0x4163a1
cmp dword [ebp - 0xbc], 1
jne 0x416378
movzx edx, word [ebp - 0x30]
cmp edx, 2
jge 0x4163a1
mov dword [ebp - 0x28], 1
jmp 0x4163a1
cmp dword [ebp - 0xbc], 2
jne 0x4163a1
movzx ecx, word [ebp - 0x30]
dec ecx
jge 0x4163a1
mov dword [ebp - 0x28], 1
jmp 0x4163a1
cmp dword [ebp - 0xc0], 5
jae 0x4163a1
mov dword [ebp - 0x28], 1
mov eax, dword [ebp - 0x28]
mov edx, dword [ebp - 0x24]
mov dword fs:[0], edx
pop edi
pop esi
mov esp, ebp
pop ebp
ret
Function at 0x416dc8
Capabilities:
Set registry value

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffff4
xor eax, eax
mov dword [ebp - 4], eax
xor edx, edx
mov dword [ebp - 8], edx
xor ecx, ecx
mov dword [ebp - 0xc], ecx
lea eax, [ebp - 8]
push eax
lea edx, [ebp - 0xc]
push edx
push 0
push 0xf003f
push 0
push 0x4b95a2
push 0
push dword [ebp + 0xc]
push dword [ebp + 8]
call sub.ADVAPI32.DLL_RegCreateKeyExA
mov dword [ebp - 4], eax
cmp dword [ebp - 4], 0
je 0x416e0b
jmp 0x416e2f
push dword [ebp + 0x14]
call sub.ADVAPI32.DLL_GetSecurityDescriptorLength
push eax
push dword [ebp + 0x14]
push 3
push 0
push dword [ebp + 0x10]
push dword [ebp - 0xc]
call sub.ADVAPI32.DLL_RegSetValueExA
mov dword [ebp - 4], eax
cmp dword [ebp - 4], 0
je 0x416e2f
cmp dword [ebp - 0xc], 0
je 0x416e3d
push dword [ebp - 0xc]
call sub.ADVAPI32.DLL_RegCloseKey
mov eax, dword [ebp - 4]
mov esp, ebp
pop ebp
ret

Function at 0x416e44
Capabilities:
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffff0
xor eax, eax
mov dword [ebp - 4], eax
xor edx, edx
mov dword [ebp - 8], edx
xor ecx, ecx
mov dword [ebp - 0xc], ecx
xor eax, eax
mov dword [ebp - 0x10], eax
cmp dword [ebp + 0x14], 0
jne 0x416e6e
mov eax, 0xa0
jmp 0x416f56
cmp dword [ebp + 0x18], 0
je 0x416e7b
mov edx, dword [ebp + 0x18]
xor ecx, ecx
mov dword [edx], ecx
mov eax, dword [ebp + 0x14]
xor edx, edx
mov dword [eax], edx
lea ecx, [ebp - 8]
push ecx
push 0xf003f
push 0
push dword [ebp + 0xc]
push dword [ebp + 8]
call sub.ADVAPI32.DLL_RegOpenKeyExA
mov dword [ebp - 4], eax
cmp dword [ebp - 4], 0
je 0x416eb1
cmp dword [ebp - 4], 2
jne 0x416ea9
jmp 0x416f04
mov eax, dword [ebp - 4]
jmp 0x416f56
lea edx, [ebp - 0x10]
push edx
push 0
lea ecx, [ebp - 0xc]
push ecx
push 0
push dword [ebp + 0x10]
push dword [ebp - 8]
call sub.ADVAPI32.DLL_RegQueryValueExA
mov dword [ebp - 4], eax
cmp dword [ebp - 4], 0
je 0x416ed9
cmp dword [ebp - 4], 0x7a
je 0x416ed9
jmp 0x416f04
push dword [ebp - 0x10]
call fcn.00497c68
pop ecx
mov edx, dword [ebp + 0x14]
mov dword [edx], eax
lea eax, [ebp - 0x10]
push eax
mov ecx, dword [ebp + 0x14]
push dword [ecx]
lea eax, [ebp - 0xc]
push eax
push 0
push dword [ebp + 0x10]
push dword [ebp - 8]
call sub.ADVAPI32.DLL_RegQueryValueExA
mov dword [ebp - 4], eax
cmp dword [ebp - 4], 0
je 0x416f45
mov edx, dword [ebp + 0x14]
cmp dword [edx], 0
je 0x416f1d
mov ecx, dword [ebp + 0x14]
push dword [ecx]
call fcn.00497c78
pop ecx
mov eax, dword [ebp + 0x14]
xor edx, edx
mov dword [eax], edx
cmp dword [ebp + 0x18], 0
je 0x416f45
push dword [ebp + 0x14]
call fcn.00416664
pop ecx
mov dword [ebp - 4], eax
cmp dword [ebp - 4], 0
jne 0x416f45
mov ecx, dword [ebp + 0x18]
mov dword [ecx], 1
cmp dword [ebp - 8], 0
je 0x416f53
push dword [ebp - 8]
call sub.ADVAPI32.DLL_RegCloseKey
mov eax, dword [ebp - 4]
mov esp, ebp
pop ebp
ret
Function at 0x417ed4
Capabilities:
Extract resource via kernel32 functions

Disassembly:
push ebx
push esi
mov esi, 0x4c5894
push 0xa
push 0x417f68
mov eax, dword [0x4c4b04]
push eax
call sub.KERNEL32.DLL_FindResourceW
mov ebx, eax
test ebx, ebx
jne 0x417ef8
call fcn.00434480
push ebx
mov eax, dword [0x4c4b04]
push eax
call sub.KERNEL32.DLL_LoadResource
mov ebx, eax
test ebx, ebx
jne 0x417f0f
call fcn.00434480
push ebx
call sub.KERNEL32.DLL_LockResource
mov dword [esi], eax
cmp dword [esi], 0
jne 0x417f21
call fcn.00434480
mov eax, dword [esi]
mov edx, dword [esi]
mov ecx, edx
add ecx, dword [eax]
mov dword [0x4c5898], ecx
mov ecx, edx
add ecx, dword [eax + 4]
mov dword [0x4c589c], ecx
mov ecx, edx
add ecx, dword [eax + 8]
mov dword [0x4c58a0], ecx
mov ecx, edx
add ecx, dword [eax + 0xc]
mov dword [0x4c58a4], ecx
mov ecx, edx
add ecx, dword [eax + 0x10]
mov dword [0x4c58a8], ecx
add edx, dword [eax + 0x14]
mov dword [0x4c58ac], edx
pop esi
pop ebx
ret

Function at 0x4267fc
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 0x42684a
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.00426500
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
jmp 0x426863
pop edi
pop esi
pop ebx
pop ecx
pop ecx
pop ebp
ret

Function at 0x42686c
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.00426500
dec esi
jne 0x42688e
mov byte [ebx + 0xe], 0
pop esi
pop ebx
ret

Function at 0x428088
Capabilities:
Allocate or change rwx memory

Disassembly:
push ebp
mov ebp, esp
push ebx
push esi
push edi
mov edi, 0x4c5b98
cmp dword [edi], 0
jne 0x428104
push 0x40
push 0x1000
push 0x1000
push 0
call sub.KERNEL32.DLL_VirtualAlloc
mov esi, eax
mov eax, dword [0x4c5b94]
mov dword [esi], eax
lea edx, [esi + 4]
mov eax, 0x4b980c
mov ecx, 2
call fcn.0043f6b0
mov edx, 0x428060
lea eax, [esi + 5]
call fcn.00428080
mov dword [esi + 6], eax
lea ebx, [esi + 0xa]
mov byte [ebx], 0xe8
lea edx, [esi + 4]
mov eax, ebx
call fcn.00428080
mov dword [ebx + 1], eax
mov eax, dword [edi]
mov dword [ebx + 5], eax
mov dword [edi], ebx
add ebx, 0xd
mov eax, ebx
sub eax, esi
cmp eax, 0xffc
jl 0x4280d9
mov dword [0x4c5b94], esi
mov eax, dword [edi]
mov ebx, dword [edi]
mov edx, dword [ebx + 5]
mov dword [edi], edx
mov edx, dword [ebp + 8]
mov dword [ebx + 5], edx
mov edx, dword [ebp + 0xc]
mov dword [ebx + 9], edx
pop edi
pop esi
pop ebx
pop ebp
ret 8
Function at 0x4297f8
Capabilities:
Delete registry key
Query or enumerate registry key

Disassembly:
push ebp
mov ebp, esp
add esp, 0xffffffc4
push ebx
xor ecx, ecx
mov dword [ebp - 0x3c], ecx
mov dword [ebp - 4], ecx
mov dword [ebp - 8], ecx
mov ebx, edx
mov dword [ebp - 0xc], eax
xor eax, eax
push ebp
push 0x429962
push dword fs:[eax]
mov dword fs:[eax], esp
lea eax, [ebp - 4]
mov edx, ebx
call fcn.00441d48
mov eax, dword [ebp - 4]
call fcn.00429328
mov byte [ebp - 0x11], al
cmp byte [ebp - 0x11], 0
jne 0x42984a
lea eax, [ebp - 4]
mov ecx, 1
mov edx, 1
call fcn.00442558
mov eax, dword [ebp - 0xc]
mov eax, dword [eax + 4]
mov dword [ebp - 0x18], eax
mov edx, ebx
mov eax, dword [ebp - 0xc]
call fcn.00429c38
mov dword [ebp - 0x1c], eax
cmp dword [ebp - 0x1c], 0
je 0x42991f
xor eax, eax
push ebp
push 0x429918
push dword fs:[eax]
mov dword fs:[eax], esp
mov edx, dword [ebp - 0x1c]
mov eax, dword [ebp - 0xc]
call fcn.004294f8
lea edx, [ebp - 0x38]
mov eax, dword [ebp - 0xc]
call fcn.00429970
test al, al
je 0x4298f6
mov ecx, dword [ebp - 0x34]
inc ecx
lea eax, [ebp - 8]
xor edx, edx
call fcn.00441e30
mov ebx, dword [ebp - 0x38]
dec ebx
cmp ebx, 0
jl 0x4298f6
mov eax, dword [ebp - 0x34]
inc eax
mov dword [ebp - 0x10], eax
push 0
push 0
push 0
push 0
lea eax, [ebp - 0x10]
push eax
mov eax, dword [ebp - 8]
call fcn.00441d80
push eax
push ebx
mov eax, dword [ebp - 0x1c]
push eax
call sub.ADVAPI32.DLL_RegEnumKeyExW
test eax, eax
jne 0x4298f0
mov eax, dword [ebp - 8]
call fcn.00441d80
mov edx, eax
lea eax, [ebp - 0x3c]
call fcn.00441ea0
mov edx, dword [ebp - 0x3c]
mov eax, dword [ebp - 0xc]
call fcn.004297f8
dec ebx
cmp ebx, 0xffffffff
jne 0x4298a9
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x42991f
mov edx, dword [ebp - 0x18]
mov eax, dword [ebp - 0xc]
call fcn.004294f8
mov eax, dword [ebp - 0x1c]
push eax
call sub.ADVAPI32.DLL_RegCloseKey
ret
mov eax, dword [ebp - 4]
call fcn.00441d80
push eax
movzx edx, byte [ebp - 0x11]
mov eax, dword [ebp - 0xc]
call fcn.004294e4
push eax
call sub.ADVAPI32.DLL_RegDeleteKeyW
test eax, eax
sete bl
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x429969
lea eax, [ebp - 0x3c]
call fcn.00441ce4
lea eax, [ebp - 8]
mov edx, 2
call fcn.00441cec
ret

Function at 0x429b5c
Capabilities:
Set registry value

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffff4
push ebx
push esi
push edi
mov dword [ebp - 4], ecx
mov edi, edx
mov ebx, eax
movzx eax, byte [ebp + 8]
call fcn.0042939c
mov esi, eax
mov eax, dword [ebp + 0xc]
push eax
mov eax, dword [ebp - 4]
push eax
push esi
push 0
mov eax, edi
call fcn.00441d80
push eax
mov eax, dword [ebx + 4]
push eax
call sub.ADVAPI32.DLL_RegSetValueExW
test eax, eax
je 0x429bbb
mov dword [ebp - 0xc], edi
mov byte [ebp - 8], 0x11
lea eax, [ebp - 0xc]
push eax
push 0
mov ecx, dword [0x4c4674]
mov dl, 1
mov eax, dword [0x429214]
call fcn.004324bc
call fcn.00440bbc
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 8
Function at 0x429bc4
Capabilities:
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffff4
push ebx
push esi
push edi
mov edi, ecx
mov esi, edx
mov ebx, eax
xor eax, eax
mov dword [ebp - 4], eax
lea eax, [ebp + 0xc]
push eax
push edi
lea eax, [ebp - 4]
push eax
push 0
mov eax, esi
call fcn.00441d80
push eax
mov eax, dword [ebx + 4]
push eax
call sub.ADVAPI32.DLL_RegQueryValueExW
test eax, eax
je 0x429c1c
mov dword [ebp - 0xc], esi
mov byte [ebp - 8], 0x11
lea eax, [ebp - 0xc]
push eax
push 0
mov ecx, dword [0x4c4670]
mov dl, 1
mov eax, dword [0x429214]
call fcn.004324bc
call fcn.00440bbc
mov ebx, dword [ebp + 0xc]
mov eax, dword [ebp - 4]
call fcn.004293cc
mov edx, dword [ebp + 8]
mov byte [edx], al
mov eax, ebx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 8

Function at 0x42d618
Capabilities:
Encrypt data using rc4 prga

Disassembly:
cmp eax, edx
je 0x42d6c1
test eax, edx
je 0x42d6c4
push 0
push 0
cmp word [eax - 0xa], 2
je 0x42d641
push edx
mov edx, eax
mov eax, esp
call fcn.00441ef8
pop edx
mov eax, dword [esp]
cmp word [edx - 0xa], 2
je 0x42d657
push eax
lea eax, [esp + 8]
call fcn.00441ef8
pop eax
mov edx, dword [esp + 4]
movzx ecx, word [edx]
cmp cx, word [eax]
je 0x42d666
movzx eax, word [eax]
sub eax, ecx
jmp 0x42d68d
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 0x42d6a7
add ecx, 4
js 0x42d67e
pop eax
pop ebx
mov ecx, esp
mov edx, dword [ecx]
or edx, dword [ecx + 4]
je 0x42d6a4
push eax
mov eax, ecx
mov edx, 2
call fcn.00441318
pop eax
pop edx
pop edx
ret
bsf ebx, ebx
shr ebx, 4
add ebx, ebx
add ecx, ebx
jns 0x42d68b
movzx eax, word [ecx + eax]
movzx edx, word [ecx + edx]
sub eax, edx
pop ebx
pop ebx
jmp 0x42d68d
xor eax, eax
ret
test eax, eax
je 0x42d6d4
test edx, edx
jne 0x42d628
mov eax, dword [eax - 4]
ret
sub eax, dword [edx - 4]
ret

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

Disassembly:
push ebx
push esi
mov esi, eax
mov eax, esi
call fcn.00441d80
push eax
call sub.KERNEL32.DLL_GetFileAttributesW
cmp eax, 0xffffffff
je 0x42e572
test al, 0x10
sete al
pop esi
pop ebx
ret
call sub.KERNEL32.DLL_GetLastError
mov ebx, eax
cmp ebx, 2
je 0x42e593
cmp ebx, 3
je 0x42e593
cmp ebx, 0x7b
je 0x42e593
mov eax, esi
call fcn.0042e514
test al, al
jne 0x42e597
xor eax, eax
jmp 0x42e599
mov al, 1
pop esi
pop ebx
ret

Function at 0x431a88
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 0x100
lea ecx, [ebp - 0x200]
push ecx
push edx
push eax
call sub.KERNEL32.DLL_GetLocaleInfoW
test eax, eax
jle 0x431ac1
mov ecx, eax
dec ecx
lea edx, [ebp - 0x200]
mov eax, ebx
call fcn.00441e30
jmp 0x431aca
mov eax, ebx
mov edx, esi
call fcn.00441cf4
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 4
Function at 0x431ad4
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
test eax, eax
jle 0x431af6
movzx eax, word [esp]
jmp 0x431af8
mov eax, edi
pop edx
pop edi
pop esi
pop ebx
ret

Function at 0x432280
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 0x4323a5
push dword fs:[ecx]
mov dword fs:[ecx], esp
push 0x400
lea ecx, [ebp - 0x888]
call fcn.00432094
mov esi, eax
mov eax, dword [0x4c4898]
cmp byte [eax], 0
je 0x43234d
mov eax, dword [0x4c489c]
call fcn.0043f9d8
call fcn.0043f660
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
mov ebx, eax
push ebx
lea eax, [ebp - 4]
mov ecx, 1
mov edx, dword [0x43225c]
call fcn.004434cc
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
push 0
lea eax, [ebp - 8]
push eax
push ebx
mov eax, dword [ebp - 4]
push eax
push 0xfffffffffffffff4
call sub.KERNEL32.DLL_GetStdHandle
push eax
call sub.KERNEL32.DLL_WriteFile
push 0
lea eax, [ebp - 8]
push eax
push 2
push 0x4323c0
push 0xfffffffffffffff4
call sub.KERNEL32.DLL_GetStdHandle
push eax
call sub.KERNEL32.DLL_WriteFile
jmp 0x432389
push 0x40
lea eax, [ebp - 0x88]
push eax
mov eax, dword [0x4c471c]
mov eax, dword [eax + 4]
push eax
mov eax, dword [0x4c4b04]
call fcn.004435c0
push eax
call sub.USER32.DLL_LoadStringW
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 0x4323ac
lea eax, [ebp - 4]
mov edx, dword [0x43225c]
call fcn.004434d8
ret
Function at 0x432fd0
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 0x4330a6
push dword fs:[eax]
mov dword fs:[eax], esp
mov dword [ebp - 8], 0xffffffff
lea eax, [ebp - 4]
mov edx, ebx
call fcn.00441d48
lea eax, [ebp - 4]
call fcn.0044274c
lea eax, [ebp - 0xc]
push eax
mov eax, dword [ebp - 4]
call fcn.00441d80
push eax
call sub.VERSION.DLL_GetFileVersionInfoSizeW
mov ebx, eax
test ebx, ebx
je 0x433090
mov eax, ebx
call fcn.0043f470
mov dword [ebp - 0x10], eax
xor eax, eax
push ebp
push 0x433089
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.00441d80
push eax
call sub.VERSION.DLL_GetFileVersionInfoW
test eax, eax
je 0x433073
lea eax, [ebp - 0x18]
push eax
lea eax, [ebp - 0x14]
push eax
push 0x4330b8
mov eax, dword [ebp - 0x10]
push eax
call sub.VERSION.DLL_VerQueryValueW
test eax, eax
je 0x433073
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 0x433090
mov eax, dword [ebp - 0x10]
call fcn.0043f48c
ret
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x4330ad
lea eax, [ebp - 4]
call fcn.00441ce4
ret

Function at 0x434287
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.0044163c
mov ebp, eax
push 0
push 0
push ebp
push ebx
push 0
push 0xfde9
call sub.KERNEL32.DLL_MultiByteToWideChar
mov edi, eax
cmp edi, 0x104
jbe 0x4342aa
mov eax, edi
add eax, eax
call fcn.0043f470
mov esi, eax
jmp 0x4342ac
mov esi, esp
push edi
push esi
push ebp
push ebx
push 0
push 0xfde9
call sub.KERNEL32.DLL_MultiByteToWideChar
push edi
push esi
call sub.USER32.DLL_CharUpperBuffW
xor ebx, ebx
mov eax, edi
dec eax
test eax, eax
jl 0x4342e5
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 0x4342cf
mov eax, esp
cmp esi, eax
je 0x4342f2
mov eax, esi
call fcn.0043f48c
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 0x43432c
cmp bl, 0
je 0x434328
cmp bl, 0x41
jl 0x434323
cmp bl, 0x5a
jg 0x434323
or bl, 0x20
xor al, bl
inc esi
jmp 0x434307
pop ecx
pop ebx
pop esi
ret
pop eax
pop ebx
pop esi
jmp 0x43426c

Function at 0x43f8cc
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.00441cf4
test esi, esi
jne 0x43f904
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.00441e30
jmp 0x43f922
call sub.KERNEL32.DLL_GetCommandLineW
mov edi, eax
mov edx, ebx
mov eax, edi
call fcn.0043f7b0
mov edi, eax
test esi, esi
je 0x43f922
cmp dword [ebx], 0
je 0x43f922
dec esi
jmp 0x43f90b
add esp, 0x20c
pop edi
pop esi
pop ebx
ret