joyce8/EMBER2024-capa huggingface dataset:
Function at 0x4296cc
Capabilities:
Capture screenshot

Disassembly:
push ebp
mov ebp, esp
add esp, 0xffffff94
push ebx
push esi
push edi
mov esi, edx
mov ebx, eax
cmp byte [ebx + 0x1e8], 0
je 0x4296e8
cmp dword [esi + 4], 0
je 0x429715
test byte [ebx + 0x45], 1
jne 0x429707
mov eax, ebx
call fcn.00428744
test eax, eax
jne 0x429707
mov edx, esi
mov eax, ebx
mov ecx, dword [eax]
call dword [ecx - 0x10]
jmp 0x429825
mov edx, esi
mov eax, ebx
call fcn.00429344
jmp 0x429825
push 0
call sub.USER32.DLL_GetDC
mov edi, eax
lea edx, [ebp - 0x5c]
mov eax, ebx
mov ecx, dword [eax]
call dword [ecx + 0x44]
mov eax, dword [ebp - 0x50]
push eax
lea edx, [ebp - 0x6c]
mov eax, ebx
mov ecx, dword [eax]
call dword [ecx + 0x44]
mov eax, dword [ebp - 0x64]
push eax
push edi
call sub.GDI32.DLL_CreateCompatibleBitmap
mov dword [ebp - 8], eax
push edi
push 0
call sub.USER32.DLL_ReleaseDC
push 0
call sub.GDI32.DLL_CreateCompatibleDC
mov dword [ebp - 4], eax
mov eax, dword [ebp - 8]
push eax
mov eax, dword [ebp - 4]
push eax
call sub.GDI32.DLL_SelectObject
mov dword [ebp - 0xc], eax
xor eax, eax
push ebp
push 0x42981e
push dword fs:[eax]
mov dword fs:[eax], esp
lea eax, [ebp - 0x4c]
push eax
mov eax, ebx
call fcn.0042b5b8
push eax
call sub.USER32.DLL_BeginPaint
mov edi, eax
mov eax, dword [ebp - 4]
push eax
mov ecx, dword [ebp - 4]
mov edx, 0x14
mov eax, ebx
call fcn.00426898
mov eax, dword [ebp - 4]
mov dword [esi + 4], eax
mov edx, esi
mov eax, ebx
call fcn.004296cc
xor eax, eax
mov dword [esi + 4], eax
push 0xcc0020
push 0
push 0
mov eax, dword [ebp - 4]
push eax
lea edx, [ebp - 0x5c]
mov eax, ebx
mov ecx, dword [eax]
call dword [ecx + 0x44]
mov eax, dword [ebp - 0x50]
push eax
lea edx, [ebp - 0x6c]
mov eax, ebx
mov ecx, dword [eax]
call dword [ecx + 0x44]
mov eax, dword [ebp - 0x64]
push eax
push 0
push 0
push edi
call sub.GDI32.DLL_BitBlt
lea eax, [ebp - 0x4c]
push eax
mov eax, ebx
call fcn.0042b5b8
push eax
call sub.USER32.DLL_EndPaint
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x429825
mov eax, dword [ebp - 0xc]
push eax
mov eax, dword [ebp - 4]
push eax
call sub.GDI32.DLL_SelectObject
mov eax, dword [ebp - 4]
push eax
call sub.GDI32.DLL_DeleteDC
mov eax, dword [ebp - 8]
push eax
call sub.GDI32.DLL_DeleteObject
ret
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret

Function at 0x43ae78
Capabilities:
Get geographical location

Disassembly:
push ebp
mov ebp, esp
add esp, 0xffffff00
push ebx
push esi
mov esi, ecx
mov ebx, dword [ebp + 8]
push 0x100
lea ecx, [ebp - 0x100]
push ecx
push edx
push eax
call sub.KERNEL32.DLL_GetLocaleInfoA
test eax, eax
jle 0x43aeb1
mov ecx, eax
dec ecx
lea edx, [ebp - 0x100]
mov eax, ebx
call fcn.004400d4
jmp 0x43aeba
mov eax, ebx
mov edx, esi
call fcn.00440088
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 4

Function at 0x43aec4
Capabilities:
Get geographical location

Disassembly:
push ebx
push esi
push edi
push ecx
mov ebx, ecx
mov esi, edx
mov edi, eax
push 2
lea eax, [esp + 4]
push eax
push esi
push edi
call sub.KERNEL32.DLL_GetLocaleInfoA
test eax, eax
jle 0x43aee5
mov al, byte [esp]
jmp 0x43aee7
mov eax, ebx
pop edx
pop edi
pop esi
pop ebx
ret
Function at 0x43f4d8
Capabilities:
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffff4
movzx eax, word [0x451988]
mov dword [ebp - 8], eax
lea eax, [ebp - 4]
push eax
push 1
push 0
push 0x43f570
push 0x80000002
call sub.ADVAPI32.DLL_RegOpenKeyExA
test eax, eax
jne 0x43f550
xor eax, eax
push ebp
push 0x43f549
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 0x43f58c
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 0x43f550
mov eax, dword [ebp - 4]
push eax
call sub.ADVAPI32.DLL_RegCloseKey
ret
mov ax, word [0x451988]
and ax, 0xffc0
mov dx, word [ebp - 8]
and dx, 0x3f
or ax, dx
mov word [0x451988], ax
mov esp, ebp
pop ebp
ret
Function at 0x441318
Capabilities:
Get geographical location
Query or enumerate registry value

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 0xf003f
push 0
push 0x4414d0
push 0x80000001
call sub.ADVAPI32.DLL_RegOpenKeyExA
test eax, eax
je 0x441379
lea eax, [ebp - 8]
push eax
push 0xf003f
push 0
push 0x4414ec
push 0x80000001
call sub.ADVAPI32.DLL_RegOpenKeyExA
test eax, eax
jne 0x4413e6
xor eax, eax
push ebp
push 0x4413df
push dword fs:[eax]
mov dword fs:[eax], esp
mov dword [ebp - 0x18], 5
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 0x4413c8
lea eax, [ebp - 0x18]
push eax
lea eax, [ebp - 0x12]
push eax
push 0
push 0
push 0x44150c
mov eax, dword [ebp - 8]
push eax
call sub.ADVAPI32.DLL_RegQueryValueExA
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x4413e6
mov eax, dword [ebp - 8]
push eax
call sub.ADVAPI32.DLL_RegCloseKey
ret
mov eax, dword [ebp - 4]
push eax
lea eax, [ebp - 0x11d]
push eax
call sub.KERNEL32.DLL_lstrcpyA
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 0x4414c7
cmp byte [ebp - 0xd], 0
jne 0x441428
cmp byte [ebp - 0x12], 0
je 0x4414c7
lea eax, [ebp - 0x11d]
push eax
call sub.KERNEL32.DLL_lstrlenA
mov ebx, eax
lea eax, [ebp - 0x11d]
add ebx, eax
jmp 0x441441
dec ebx
cmp byte [ebx], 0x2e
je 0x441450
lea eax, [ebp - 0x11d]
cmp ebx, eax
jne 0x441440
lea eax, [ebp - 0x11d]
cmp ebx, eax
je 0x4414c7
inc ebx
cmp byte [ebp - 0x12], 0
je 0x44147d
lea eax, [ebp - 0x12]
push eax
push ebx
call sub.KERNEL32.DLL_lstrcpyA
push 2
push 0
lea eax, [ebp - 0x11d]
push eax
call sub.KERNEL32.DLL_LoadLibraryExA
mov esi, eax
test esi, esi
jne 0x4414c7
cmp byte [ebp - 0xd], 0
je 0x4414c7
lea eax, [ebp - 0xd]
push eax
push ebx
call sub.KERNEL32.DLL_lstrcpyA
push 2
push 0
lea eax, [ebp - 0x11d]
push eax
call sub.KERNEL32.DLL_LoadLibraryExA
mov esi, eax
test esi, esi
jne 0x4414c7
mov byte [ebp - 0xb], 0
lea eax, [ebp - 0xd]
push eax
push ebx
call sub.KERNEL32.DLL_lstrcpyA
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
Function at 0x441890
Capabilities:
Accept command line arguments

Disassembly:
push ebp
mov ebp, esp
xor eax, eax
push ebp
push 0x441978
push dword fs:[eax]
mov dword fs:[eax], esp
sub dword [0x455854], 1
jae 0x44196a
xor eax, eax
mov dword [0x455460], eax
xor eax, eax
mov dword [0x455468], eax
xor eax, eax
mov dword [0x45546c], eax
mov byte [0x455472], 2
mov byte [0x455473], 2
mov byte [0x455474], 3
mov word [0x45581c], 0
mov word [0x45582c], 1
mov word [0x45583c], 0xa
mov dword [0x455844], 0x80020004
mov dword [0x455810], 0x440c6c
mov dword [0x455814], 0x440c64
mov dword [0x455818], 0x440c6c
call fcn.0043f4a8
test al, al
je 0x441929
call fcn.0043f4d8
call fcn.0043f59c
mov eax, 0x455478
mov edx, 0x441984
call fcn.0043cdbe
mov eax, 0x455644
mov edx, 0x441984
call fcn.0043cdbe
call sub.KERNEL32.DLL_GetCommandLineA
mov dword [0x455458], eax
call fcn.0043dd24
mov dword [0x455454], eax
call sub.KERNEL32.DLL_GetCurrentThreadId
mov dword [0x45544c], eax
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x44197f
ret

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

Disassembly:
push ebp
mov ebp, esp
push ebx
mov eax, dword [ebp + 8]
push eax
call sub.KERNEL32.DLL_GetFileAttributesA
mov ebx, eax
cmp eax, 0xffffffff
jne 0x443660
call fcn.00444824
pop ebx
pop ebp
ret
test byte [ebp + 0xc], 2
je 0x44367c
test bl, 1
je 0x44367c
call fcn.00449f18
mov dword [eax], 5
or eax, 0xffffffff
pop ebx
pop ebp
ret
xor eax, eax
pop ebx
pop ebp
ret
Function at 0x443848
Capabilities:
Check if file exists
Get file attributes

Disassembly:
push ebp
mov ebp, esp
add esp, 0xffffffec
push ebx
push esi
push edi
call fcn.004443f8
test byte [ebp + 0xd], 0xc0
jne 0x44386c
mov eax, dword [0x4526fc]
mov edx, dword [eax]
and edx, 0xc000
or dword [ebp + 0xc], edx
test byte [ebp + 0xd], 0x80
jne 0x443879
or dword [ebp + 0xc], 0x4000
mov ecx, dword [ebp + 0xc]
and ecx, 0x700
cmp ecx, 0x500
jg 0x4438a6
je 0x4438b8
sub ecx, 0x100
je 0x4438c6
sub ecx, 0x100
je 0x4438cd
sub ecx, 0x100
je 0x4438bf
jmp 0x4438d4
sub ecx, 0x600
je 0x4438cd
sub ecx, 0x100
je 0x4438b8
jmp 0x4438d4
mov edi, 1
jmp 0x4438d9
mov edi, 2
jmp 0x4438d9
mov edi, 4
jmp 0x4438d9
mov edi, 5
jmp 0x4438d9
mov edi, 3
test byte [ebp + 0xd], 1
je 0x443900
lea eax, [ebp + 0x10]
add eax, 4
mov eax, dword [eax - 4]
and eax, dword [0x452178]
test al, 0x80
je 0x4438f9
mov ebx, 0x80
jmp 0x443912
mov ebx, 1
jmp 0x443912
mov eax, dword [ebp + 8]
push eax
call sub.KERNEL32.DLL_GetFileAttributesA
mov ebx, eax
cmp eax, 0xffffffff
jne 0x443912
xor ebx, ebx
mov eax, dword [ebp + 0xc]
and eax, 3
sub eax, 1
jb 0x443924
je 0x44392d
dec eax
je 0x443936
jmp 0x44393f
mov dword [ebp - 4], 0x80000000
jmp 0x44394e
mov dword [ebp - 4], 0x40000000
jmp 0x44394e
mov dword [ebp - 4], 0xc0000000
jmp 0x44394e
push 1
call fcn.004447b8
pop ecx
mov ebx, eax
jmp 0x443a3a
mov eax, dword [ebp + 0xc]
and eax, 0x70
sub eax, 0x10
je 0x44396a
sub eax, 0x10
je 0x443971
sub eax, 0x10
je 0x44397a
sub eax, 0x10
je 0x443983
jmp 0x443983
xor edx, edx
mov dword [ebp - 8], edx
jmp 0x44398a
mov dword [ebp - 8], 1
jmp 0x44398a
mov dword [ebp - 8], 2
jmp 0x44398a
mov dword [ebp - 8], 3
mov dword [ebp - 0x14], 0xc
xor ecx, ecx
mov dword [ebp - 0x10], ecx
lea ecx, [ebp - 0x14]
mov eax, dword [ebp + 0xc]
and eax, 0x80
cmp eax, 1
sbb edx, edx
neg edx
mov dword [ebp - 0xc], edx
push 0
push ebx
push edi
push ecx
mov eax, dword [ebp - 8]
push eax
mov edx, dword [ebp - 4]
push edx
mov ecx, dword [ebp + 8]
push ecx
call sub.KERNEL32.DLL_CreateFileA
mov esi, eax
cmp eax, 0xffffffff
jne 0x4439f3
call sub.KERNEL32.DLL_GetLastError
mov ebx, eax
and ebx, 0xffff
cmp ebx, 0x6e
jne 0x4439e8
test byte [ebp + 0xd], 1
mov ebx, 0x50
jne 0x4439e8
add ebx, 0xffffffb2
push ebx
call fcn.004447b8
pop ecx
mov ebx, eax
jmp 0x443a3a
mov edi, esi
push edi
call fcn.004437ac
pop ecx
test eax, eax
je 0x443a07
or dword [ebp + 0xc], 0x2000
test bl, 1
jne 0x443a13
or dword [ebp + 0xc], 0x100
and dword [ebp + 0xc], 0xfffff8ff
mov eax, dword [ebp + 0xc]
push eax
push edi
call fcn.004444f8
add esp, 8
mov ebx, eax
inc eax
jne 0x443a3a
push 4
call fcn.004447b8
pop ecx
push esi
call sub.KERNEL32.DLL_CloseHandle
call fcn.0044442c
mov eax, ebx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x446d40
Capabilities:
Get geographical location

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffe00
push ebx
push esi
push edi
mov esi, dword [ebp + 0xc]
mov ebx, dword [ebp + 8]
push pe_nt_image_headers32
lea eax, [ebp - 0x200]
push eax
push 0x1001
mov edx, dword [ebx + 4]
push edx
call sub.KERNEL32.DLL_GetLocaleInfoA
push str._._n
lea ecx, [ebp - 0x200]
push ecx
call fcn.004423c4
add esp, 8
lea eax, [ebp - 0x200]
push eax
call fcn.00442454
pop ecx
mov edx, pe_nt_image_headers32
sub edx, eax
push edx
lea ecx, [ebp - 0x200]
push ecx
call fcn.00442454
pop ecx
lea edx, [ebp - 0x200]
add eax, edx
push eax
push 0x1002
mov eax, dword [ebx + 4]
push eax
call sub.KERNEL32.DLL_GetLocaleInfoA
push 0x453181
lea ecx, [ebp - 0x200]
push ecx
call fcn.004423c4
add esp, 8
push 0xa
lea eax, [ebp - 0x200]
push eax
call fcn.00442454
pop ecx
lea edx, [ebp - 0x200]
add eax, edx
push eax
mov ecx, dword [ebx]
push ecx
call fcn.00447ed4
add esp, 0xc
cmp dword [ebx + 0x24], 0
jne 0x446e51
push esi
call fcn.00442454
pop ecx
mov edi, eax
lea eax, [ebp - 0x200]
push eax
call fcn.00442454
pop ecx
add edi, eax
add edi, 3
push edi
call fcn.00441e48
pop ecx
mov edi, eax
mov dword [ebx + 0x24], edi
test edi, edi
jne 0x446e28
xor eax, eax
jmp 0x446ed8
push esi
call fcn.00442454
pop ecx
push eax
lea edx, [ebp - 0x200]
push edx
call fcn.00442454
pop ecx
pop ecx
add ecx, eax
add ecx, 3
push ecx
push 0
push edi
call fcn.00442320
add esp, 0xc
jmp 0x446e91
mov edi, dword [ebx + 0x24]
push edi
call fcn.00442454
pop ecx
push eax
push esi
call fcn.00442454
pop ecx
pop edx
add edx, eax
push edx
lea eax, [ebp - 0x200]
push eax
call fcn.00442454
pop ecx
pop ecx
add ecx, eax
add ecx, 3
push ecx
push edi
call fcn.00441e68
add esp, 8
mov dword [ebx + 0x24], eax
cmp dword [ebx + 0x24], 0
jne 0x446e91
xor eax, eax
jmp 0x446ed8
push esi
mov edx, dword [ebx + 0x24]
push edx
call fcn.004423c4
add esp, 8
push 0x453183
mov ecx, dword [ebx + 0x24]
push ecx
call fcn.004423c4
add esp, 8
lea eax, [ebp - 0x200]
push eax
mov edx, dword [ebx + 0x24]
push edx
call fcn.004423c4
add esp, 8
push 0x453185
mov ecx, dword [ebx + 0x24]
push ecx
call fcn.004423c4
add esp, 8
mov eax, 1
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x449cb0
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
add esp, 0xffffffac
cmp dword [0x453744], 0
push ebx
push esi
mov esi, dword [ebp + 8]
jne 0x449d68
cmp byte [0x4502a7], 0
je 0x449d22
push 0x50
lea eax, [ebp - 0x54]
push eax
push 0
call sub.KERNEL32.DLL_GetModuleFileNameA
push 0x5c
lea edx, [ebp - 0x54]
push edx
call fcn.00449bfc
add esp, 8
mov ebx, eax
test eax, eax
jne 0x449d0b
push 0x3a
lea edx, [ebp - 0x54]
push edx
call fcn.00449bfc
add esp, 8
mov ebx, eax
test eax, eax
jne 0x449d0b
lea ebx, [ebp - 0x54]
jmp 0x449d0c
inc ebx
call fcn.00449c68
or eax, 0x10010
push eax
push ebx
push esi
push 0
call sub.USER32.DLL_MessageBoxA
jmp 0x449d89
push 0xfffffffffffffff4
call sub.KERNEL32.DLL_GetStdHandle
mov ebx, eax
lea eax, [ebp - 4]
push 0
push eax
push 2
push 0x453748
push ebx
call sub.KERNEL32.DLL_WriteFile
push 0
lea edx, [ebp - 4]
push edx
push esi
call fcn.00442454
pop ecx
push eax
push esi
push ebx
call sub.KERNEL32.DLL_WriteFile
push 0
lea ecx, [ebp - 4]
push ecx
push 2
push 0x45374b
push ebx
call sub.KERNEL32.DLL_WriteFile
jmp 0x449d89
cmp dword [0x453744], 0xffffffff
je 0x449d89
mov eax, dword [0x453744]
test eax, eax
je 0x449d89
cmp byte [eax], 0
je 0x449d89
push esi
push eax
call fcn.00449e08
add esp, 8
pop esi
pop ebx
mov esp, ebp
pop ebp
ret

Function at 0x449e08
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
push ecx
push ebx
push esi
push edi
mov edi, dword [ebp + 0xc]
push 0
push 0x80
push 2
push 0
push 0
push 0xc0000000
mov eax, dword [ebp + 8]
push eax
call sub.KERNEL32.DLL_CreateFileA
mov ebx, eax
test eax, eax
je 0x449e6a
call fcn.00449db8
mov esi, eax
lea eax, [ebp - 4]
push 0
push eax
push esi
call fcn.00442454
pop ecx
push eax
push esi
push ebx
call sub.KERNEL32.DLL_WriteFile
push 0
lea edx, [ebp - 4]
push edx
push edi
call fcn.00442454
pop ecx
push eax
push edi
push ebx
call sub.KERNEL32.DLL_WriteFile
push ebx
call sub.KERNEL32.DLL_CloseHandle
pop edi
pop esi
pop ebx
pop ecx
pop ebp
ret

Function at 0x403d61
Capabilities:
Encode data using xor

Disassembly:
push eax
push ebx
mov eax, 0x499
mov ecx, 0x404498
mov bl, byte [ecx]
sub bl, 0xf2
rol bl, 2
sub bl, cl
ror bl, 1
mov byte [ecx], bl
dec ecx
dec eax
jne 0x403d6d
mov eax, 0x261d
mov ecx, 0x403764
mov bl, byte [ecx]
rol bl, 7
ror bl, 2
sub bl, cl
xor bl, 0x91
mov byte [ecx], bl
dec ecx
dec eax
jne 0x403d8a
pop ebx
pop eax
add ecx, 0x2c1a
jmp ecx

Function at 0x403d61
Capabilities:
Encode data using xor

Disassembly:
push eax
push ebx
mov eax, 0x499
mov ecx, 0x404498
mov bl, byte [ecx]
sub bl, 0xf2
rol bl, 2
sub bl, cl
ror bl, 1
mov byte [ecx], bl
dec ecx
dec eax
jne 0x403d6d
mov eax, 0x261d
mov ecx, 0x403764
mov bl, byte [ecx]
rol bl, 7
ror bl, 2
sub bl, cl
xor bl, 0x91
mov byte [ecx], bl
dec ecx
dec eax
jne 0x403d8a
pop ebx
pop eax
add ecx, 0x2c1a
jmp ecx
Function at 0x404a28
Capabilities:
Parse pe header

Disassembly:
push 0
call dword [sym.imp.KERNEL32.dll_GetModuleHandleW]
test eax, eax
je 0x404a67
mov ecx, 0x5a4d
cmp word [eax], cx
jne 0x404a67
mov ecx, dword [eax + 0x3c]
add ecx, eax
cmp dword [ecx], 0x4550
jne 0x404a67
mov eax, 0x10b
cmp word [ecx + 0x18], ax
jne 0x404a67
cmp dword [ecx + 0x74], 0xe
jbe 0x404a67
cmp dword [ecx + 0xe8], 0
setne al
ret
xor al, al
ret
Function at 0x401ca0
Capabilities:
Query or enumerate registry value

Disassembly:
push ecx
mov ecx, dword [esp + 0xc]
mov edx, dword [esp + 8]
lea eax, [esp]
mov dword [esp], 0
push eax
push 0x20019
push 0
push ecx
push edx
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
test eax, eax
jne 0x401cea
mov eax, dword [esp + 0x1c]
mov ecx, dword [esp + 0x14]
mov edx, dword [esp + 0x18]
push eax
mov eax, dword [esp + 0x14]
push ecx
mov ecx, dword [esp + 8]
push edx
push 0
push eax
push ecx
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
mov eax, dword [esp]
test eax, eax
je 0x401cf9
push eax
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
pop ecx
ret

Function at 0x401d00
Capabilities:
Set file attributes

Disassembly:
sub esp, 0x244
push ebx
push esi
push edi
mov edi, dword [esp + 0x254]
push edi
call fcn.00401b60
or ecx, 0xffffffff
xor eax, eax
add esp, 4
lea edx, [esp + 0xc]
repne scasb al, byte es:[edi]
not ecx
sub edi, ecx
mov eax, ecx
mov esi, edi
mov edi, edx
lea edx, [esp + 0xc]
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, eax
xor eax, eax
and ecx, 3
rep movsb byte es:[edi], byte [esi]
mov edi, dword [esp + 0x258]
or ecx, 0xffffffff
repne scasb al, byte es:[edi]
not ecx
sub edi, ecx
mov esi, edi
mov ebx, ecx
mov edi, edx
or ecx, 0xffffffff
repne scasb al, byte es:[edi]
mov ecx, ebx
dec edi
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, ebx
lea eax, [esp + 0x110]
and ecx, 3
push eax
rep movsb byte es:[edi], byte [esi]
lea ecx, [esp + 0x10]
push ecx
call dword [sym.imp.KERNEL32.dll_FindFirstFileA]
pop edi
pop esi
cmp eax, 0xffffffff
pop ebx
je 0x401dac
mov eax, dword [esp + 0x250]
test eax, eax
je 0x401da0
lea edx, [esp]
push 0x80
push edx
call dword [sym.imp.KERNEL32.dll_SetFileAttributesA]
mov eax, 1
add esp, 0x244
ret
push 0xffffffffffffffff
call dword [sym.imp.KERNEL32.dll_FindClose]
xor eax, eax
add esp, 0x244
ret
Function at 0x403255
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x1a4
mov edx, dword [ebp + 8]
xor ecx, ecx
mov eax, 0x4062f8
cmp edx, dword [eax]
je 0x403277
add eax, 8
inc ecx
cmp eax, 0x406388
jl 0x403268
push esi
mov esi, ecx
shl esi, 3
cmp edx, dword [esi + 0x4062f8]
jne 0x4033a5
mov eax, dword [0x407c48]
cmp eax, 1
je 0x40337f
test eax, eax
jne 0x4032a8
cmp dword [0x40614c], 1
je 0x40337f
cmp edx, 0xfc
je 0x4033a5
lea eax, [ebp - 0x1a4]
push 0x104
push eax
push 0
call dword [sym.imp.KERNEL32.dll_GetModuleFileNameA]
test eax, eax
jne 0x4032df
lea eax, [ebp - 0x1a4]
push str._program_name_unknown_
push eax
call fcn.004037c0
pop ecx
pop ecx
lea eax, [ebp - 0x1a4]
push edi
push eax
lea edi, [ebp - 0x1a4]
call fcn.00402110
inc eax
pop ecx
cmp eax, 0x3c
jbe 0x403322
lea eax, [ebp - 0x1a4]
push eax
call fcn.00402110
mov edi, eax
lea eax, [ebp - 0x1a4]
sub eax, 0x3b
push 3
add edi, eax
push 0x4053c8
push edi
call fcn.00404540
add esp, 0x10
lea eax, [ebp - 0xa0]
push str.Runtime_Error__n_nProgram:
push eax
call fcn.004037c0
lea eax, [ebp - 0xa0]
push edi
push eax
call fcn.004037d0
lea eax, [ebp - 0xa0]
push 0x4053a8
push eax
call fcn.004037d0
push dword [esi + 0x4062fc]
lea eax, [ebp - 0xa0]
push eax
call fcn.004037d0
push 0x12010
lea eax, [ebp - 0xa0]
push str.Microsoft_Visual_C_Runtime_Library
push eax
call fcn.004044ae
add esp, 0x2c
pop edi
jmp 0x4033a5
lea eax, [ebp + 8]
lea esi, [esi + 0x4062fc]
push 0
push eax
push dword [esi]
call fcn.00402110
pop ecx
push eax
push dword [esi]
push 0xfffffffffffffff4
call dword [sym.imp.KERNEL32.dll_GetStdHandle]
push eax
call dword [sym.imp.KERNEL32.dll_WriteFile]
pop esi
leave
ret
Function at 0x433002
Capabilities:
Encode data using xor

Disassembly:
pushal
nop
nop
nop
nop
mov eax, section..text
nop
mov ebx, 0x40de38
mov ecx, 0x7a092368
nop
nop
nop
nop
test eax, eax
nop
je 0x43304e
nop
nop
nop
nop
nop
xor dword [eax], ecx
nop
nop
nop
inc eax
nop
nop
nop
nop
nop
inc eax
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
inc eax
nop
nop
inc eax
nop
nop
nop
nop
cmp eax, ebx
nop
nop
nop
jne 0x433024
nop
nop
nop
nop
nop
mov eax, section..data
mov ebx, 0x4304d8
nop
nop
mov ecx, 0x71cb5f4a
nop
nop
nop
nop
test eax, eax
nop
nop
nop
nop
je 0x433084
xor dword [eax], ecx
nop
nop
nop
nop
nop
add eax, 4
nop
nop
nop
nop
cmp eax, ebx
nop
nop
nop
jne 0x43306c
nop
nop
nop
nop
nop
popal
nop
nop
nop
jmp 0x431219
Function at 0x438400
Capabilities:
Parse pe header

Disassembly:
push ebp
mov ebp, esp
mov eax, dword [ebp + 8]
mov ecx, 0x5a4d
cmp word [eax], cx
jne 0x43842d
mov ecx, dword [eax + 0x3c]
add ecx, eax
cmp dword [ecx], 0x4550
jne 0x43842d
mov edx, 0x10b
xor eax, eax
cmp word [ecx + 0x18], dx
sete al
pop ebp
ret
xor eax, eax
pop ebp
ret

Function at 0x438ca2
Capabilities:
Encode data using xor

Disassembly:
mov esi, 0x438a14
and eax, eax
inc eax
call fcn.00438cdb
push eax
mov eax, dword [esp]
add esp, 4
xor dword [ebx], esi
or ecx, eax
or ecx, ecx
add ebx, 1
mov eax, ecx
sub ecx, 0x2556ee9e
inc ecx
cmp ebx, edi
jne fcn.00438ca2
add eax, 0x28f3449f
or eax, ecx
inc ecx
ret
Function at 0x43534b
Capabilities:
Get geographical location

Disassembly:
push ebp
mov ebp, esp
push ecx
push esi
push edi
call fcn.0042708b
mov esi, dword [ebp + 8]
push 2
mov edi, eax
lea eax, [ebp - 4]
push eax
mov ecx, esi
and ecx, 0x3ff
push 0x20000001
or ecx, 0x400
push ecx
call dword [sym.imp.KERNEL32.dll_GetLocaleInfoW]
test eax, eax
jne 0x435383
xor eax, eax
jmp 0x4353af
cmp esi, dword [ebp - 4]
je 0x4353ac
cmp dword [ebp + 0xc], 0
je 0x4353ac
push dword [edi + 0x9c]
call fcn.00434f59
push dword [edi + 0x9c]
mov esi, eax
call fcn.00424fcd
pop ecx
pop ecx
cmp esi, eax
je 0x43537f
xor eax, eax
inc eax
pop edi
pop esi
leave
ret

Function at 0x436250
Capabilities:
Packed with generic packer

Disassembly:
pushal
mov esi, section.UPX1
lea edi, [esi - 0x31000]
push edi
or ebp, 0xffffffff
jmp 0x436272
mov al, byte [esi]
inc esi
mov byte [edi], al
inc edi
add ebx, ebx
jne 0x436279
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
jb 0x436268
mov eax, 1
add ebx, ebx
jne 0x43628b
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc eax, eax
add ebx, ebx
jae 0x436280
jne 0x43629c
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
jae 0x436280
xor ecx, ecx
sub eax, 3
jb 0x4362b0
shl eax, 8
mov al, byte [esi]
inc esi
xor eax, 0xffffffff
je 0x436322
mov ebp, eax
add ebx, ebx
jne 0x4362bb
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc ecx, ecx
add ebx, ebx
jne 0x4362c8
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc ecx, ecx
jne 0x4362ec
inc ecx
add ebx, ebx
jne 0x4362d8
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc ecx, ecx
add ebx, ebx
jae 0x4362cd
jne 0x4362e9
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
jae 0x4362cd
add ecx, 2
cmp ebp, 0xfffff300
adc ecx, 1
lea edx, [edi + ebp]
cmp ebp, 0xfffffffc
jbe 0x43630c
mov al, byte [edx]
inc edx
mov byte [edi], al
inc edi
dec ecx
jne 0x4362fd
jmp 0x43626e
mov eax, dword [edx]
add edx, 4
mov dword [edi], eax
add edi, 4
sub ecx, 4
ja 0x43630c
add edi, ecx
jmp 0x43626e
pop esi
mov edi, esi
mov ecx, 0x245
mov al, byte [edi]
inc edi
sub al, 0xe8
cmp al, 1
ja 0x43632a
cmp byte [edi], 1
jne 0x43632a
mov eax, dword [edi]
mov bl, byte [edi + 4]
shr ax, 8
rol eax, 0x10
xchg ah, al
sub eax, edi
sub bl, 0xe8
add eax, esi
mov dword [edi], eax
add edi, 5
mov eax, ebx
loop 0x43632f
lea edi, [esi + 0x34000]
mov eax, dword [edi]
or eax, eax
je 0x4363a7
mov ebx, dword [edi + 4]
lea eax, [eax + esi + 0x3bff4]
add ebx, esi
push eax
add edi, 8
call dword [esi + 0x3c0a8]
xchg ebp, eax
mov al, byte [edi]
inc edi
or al, al
je 0x43635c
mov ecx, edi
jns 0x43638b
movzx eax, word [edi]
inc edi
push eax
inc edi
mov ecx, 0xaef24857
push edi
dec eax
repne scasb al, byte es:[edi]
push ebp
call dword [esi + 0x3c0ac]
or eax, eax
je 0x4363a1
mov dword [ebx], eax
add ebx, 4
jmp 0x436379
call dword [esi + 0x3c0b0]
popal
jmp 0x4030cb