joyce8/EMBER2024-capa huggingface dataset:
Function at 0x73cfc0
Capabilities:
Resolve function by parsing pe exports

Disassembly:
push ebx
mov ebx, dword [esp + 8]
push ebp
push esi
lea eax, [ebx + 0x134]
push edi
lea esi, [ebx + 0x34]
mov dword [esp + 0x14], eax
xor edi, edi
mov ecx, dword [ebx + 0x1c]
mov ebp, edi
and ebp, 0xff
mov al, byte [ecx + ebp + 1]
test al, 3
je 0x73cff0
mov byte [edi + esi], 2
jmp 0x73d027
test al, 4
je 0x73cffa
mov byte [edi + esi], 0xd
jmp 0x73d027
mov edx, dword [ebx + 0x240]
push edi
push ebx
call dword [edx + 4]
add esp, 8
cmp eax, 1
jle 0x73d013
mov byte [edi + esi], 2
jmp 0x73d027
mov eax, dword [ebx + 0x1c]
test byte [eax + ebp + 1], 0x17
jne 0x73d023
mov byte [edi + esi], 0x19
jmp 0x73d027
mov byte [edi + esi], 1
inc edi
cmp edi, 0x100
jb 0x73cfd7
mov ecx, dword [esp + 0x14]
mov al, 7
mov byte [esi + 0x21], al
mov byte [esi + 0x3d], al
mov byte [esi + 0x3e], al
mov al, 0x10
mov byte [esi + 0x7c], al
mov byte [esi + 0x26], al
mov byte [esi + 0x24], 2
mov byte [esi + 0x5f], 2
mov byte [esi + 0x27], 9
mov byte [esi + 0x2e], 0xf
mov byte [esi + 0x3c], 8
mov byte [esi + 0x23], 0xa
mov byte [esi + 0x3b], 0x15
mov byte [esi + 0x3a], 0x16
mov byte [esi], 0x11
mov byte [esi + 0x5c], 0x12
mov byte [esi + 0x2f], 0x13
mov byte [esi + 0x2a], 0x14
mov byte [esi + 0x40], 0x17
mov byte [esi + 0x60], 0x1a
mov byte [esi + 0x22], 0x20
mov eax, esi
sub ecx, esi
mov edi, 0x100
mov dl, byte [eax]
cmp dl, 2
je 0x73d09b
cmp dl, 0xd
je 0x73d09b
xor edx, edx
jmp 0x73d0a0
mov edx, 1
mov byte [ecx + eax], dl
inc eax
dec edi
jne 0x73d08b
mov al, 0x1d
mov byte [esi + 0x58], al
mov byte [esi + 0x78], al
mov al, 0x1f
pop edi
mov byte [esi + 0x62], 0x1e
mov byte [esi + 0x4e], al
mov byte [esi + 0x6e], al
pop esi
pop ebp
pop ebx
ret

Function at 0x73d0c0
Capabilities:
Read file on windows

Disassembly:
push ebx
mov ebx, dword [esp + 0xc]
push esi
push edi
push ebx
push 0x4000
call fcn.0073b980
mov esi, eax
add esp, 8
test esi, esi
jne 0x73d0e1
pop edi
pop esi
xor al, al
pop ebx
ret
mov eax, dword [esp + 0x10]
push ebx
push 0
push eax
call fcn.0073e720
mov edi, eax
add esp, 0xc
test edi, edi
jge 0x73d106
push esi
call fcn.0073ba10
add esp, 4
pop edi
pop esi
mov al, 1
pop ebx
ret
push ebp
push 0x4000
push esi
push edi
call fcn.0075dd5c
push ebx
push edi
mov ebp, eax
call fcn.0073e790
push 0x73d140
push ebp
push esi
call fcn.0073fac0
push esi
call fcn.0073ba10
add esp, 0x24
pop ebp
pop edi
pop esi
xor al, al
pop ebx
ret
Function at 0x73e450
Capabilities:
Get thread local storage value
Set thread local storage value

Disassembly:
push ebx
push esi
push 0x9c3120
xor bl, bl
call dword [sym.imp.KERNEL32.dll_EnterCriticalSection]
mov eax, dword [0x9c3040]
push eax
call dword [sym.imp.KERNEL32.dll_TlsGetValue]
test eax, eax
jne 0x73e4cb
push 0x4c
push 1
call fcn.007530c5
mov esi, eax
add esp, 8
test esi, esi
jne 0x73e493
push 0x9c3120
mov bl, 1
call dword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
pop esi
mov al, bl
pop ebx
ret
mov ecx, dword [0x9c3040]
push esi
push ecx
call dword [sym.imp.KERNEL32.dll_TlsSetValue]
mov eax, dword [0x9b492c]
inc eax
lea edx, [esi + 0xc]
mov dword [0x9b492c], eax
push edx
mov dword [esi + 0x30], eax
call dword [sym.imp.KERNEL32.dll_InitializeCriticalSection]
lea eax, [esi + 4]
push 0
push eax
call fcn.00741f90
add esp, 8
mov byte [esi + 0x3c], 1
push 0x9c3120
call dword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
pop esi
mov al, bl
pop ebx
ret

Function at 0x73e950
Capabilities:
Read file on windows

Disassembly:
push ebx
push ebp
push esi
push edi
mov edi, dword [esp + 0x1c]
mov dword [esp + 0x1c], edi
call fcn.00752c9d
mov ebx, dword [esp + 0x14]
mov dword [eax], 0
mov eax, dword [esp + 0x18]
push edi
push eax
push ebx
call fcn.0075dd5c
mov esi, eax
add esp, 0xc
cmp esi, edi
je 0x73ea4a
call fcn.00752c9d
cmp dword [eax], 0
je 0x73e997
call fcn.00752c9d
mov ebp, dword [eax]
jmp 0x73e99a
or ebp, 0xffffffff
call fcn.0073e4e0
test esi, esi
mov dword [eax], ebp
jne 0x73e9af
call fcn.00752c9d
cmp dword [eax], 4
je 0x73e9ff
mov eax, dword [esp + 0x20]
test al, 0x1a
je 0x73e9e2
cmp esi, 0xffffffff
je 0x73ea24
test al, 6
je 0x73e9e2
call fcn.0073e4e0
mov ecx, dword [eax]
push ecx
push ebx
call fcn.00741fc0
add esp, 4
push eax
push 0x24
push 9
call fcn.0073ed30
mov eax, dword [esp + 0x30]
add esp, 0x10
cmp esi, 0xffffffff
je 0x73ea42
test al, 6
je 0x73e9f0
test ah, 2
je 0x73ea42
test esi, esi
jbe 0x73ea4e
test ah, 2
je 0x73ea4e
add dword [esp + 0x18], esi
sub edi, esi
call fcn.00752c9d
mov edx, dword [esp + 0x18]
push edi
push edx
push ebx
mov dword [eax], 0
call fcn.0075dd5c
mov esi, eax
add esp, 0xc
cmp esi, edi
je 0x73ea4a
jmp 0x73e984
call fcn.0073e4e0
mov eax, dword [eax]
push eax
push ebx
call fcn.00741fc0
add esp, 4
push eax
push 0x24
push 2
call fcn.0073ed30
add esp, 0x10
pop edi
pop esi
pop ebp
or eax, 0xffffffff
pop ebx
ret
mov eax, dword [esp + 0x20]
test al, 6
je 0x73ea5b
xor esi, esi
pop edi
mov eax, esi
pop esi
pop ebp
pop ebx
ret
test ah, 2
je 0x73ea64
mov esi, dword [esp + 0x1c]
pop edi
mov eax, esi
pop esi
pop ebp
pop ebx
ret

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

Disassembly:
push dword [esp + 4]
call dword [sym.imp.KERNEL32.dll_GetFileAttributesA]
cmp eax, 0xffffffff
jne 0x75594a
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
call fcn.00752c2a
pop ecx
or eax, 0xffffffff
ret
test al, 1
je 0x75596d
test byte [esp + 8], 2
je 0x75596d
call fcn.00752c9d
mov dword [eax], 0xd
call fcn.00752ca6
mov dword [eax], 5
jmp 0x755946
xor eax, eax
ret
Function at 0x769738
Capabilities:
Get graphical window text

Disassembly:
push esi
mov esi, ecx
mov ecx, dword [esi + 0x38]
test ecx, ecx
jne 0x769770
push dword [esi + 0x1c]
call dword [sym.imp.USER32.dll_GetWindowTextLengthA]
lea ecx, [eax + 1]
push ecx
mov ecx, dword [esp + 0xc]
push eax
call fcn.007677dd
push eax
push dword [esi + 0x1c]
call dword [sym.imp.USER32.dll_GetWindowTextA]
mov ecx, dword [esp + 8]
push 0xffffffffffffffff
call fcn.007677b5
jmp 0x76977c
mov eax, dword [ecx]
push dword [esp + 8]
call dword [eax + 0x88]
pop esi
ret 4

Function at 0x76af38
Capabilities:
Extract resource via kernel32 functions

Disassembly:
push ebx
push esi
push edi
xor edi, edi
cmp dword [esp + 0x10], edi
mov ebx, ecx
je 0x76af7a
call fcn.0077159b
mov esi, dword [eax + 0xc]
push 0xf0
push dword [esp + 0x14]
push esi
call dword [sym.imp.KERNEL32.dll_FindResourceA]
cmp eax, edi
je 0x76af7a
push eax
push esi
call dword [sym.imp.KERNEL32.dll_LoadResource]
cmp eax, edi
jne 0x76af71
xor eax, eax
jmp 0x76af82
push eax
call dword [sym.imp.KERNEL32.dll_LockResource]
mov edi, eax
push edi
mov ecx, ebx
call fcn.0076af88
pop edi
pop esi
pop ebx
ret 4

Function at 0x771acb
Capabilities:
Get thread local storage value

Disassembly:
push ebx
push esi
mov esi, ecx
lea ebx, [esi + 0x1c]
push ebx
call dword [sym.imp.KERNEL32.dll_EnterCriticalSection]
cmp dword [esp + 0x10], 0
jne 0x771af9
push dword [esi]
call dword [sym.imp.KERNEL32.dll_TlsGetValue]
test eax, eax
je 0x771b17
push dword [esp + 0xc]
mov ecx, esi
push eax
call fcn.00771a31
jmp 0x771b17
mov eax, dword [esi + 0x14]
test eax, eax
je 0x771b17
push edi
push dword [esp + 0x10]
mov edi, dword [eax + 4]
mov ecx, esi
push eax
call fcn.00771a31
test edi, edi
mov eax, edi
jne 0x771b01
pop edi
push ebx
call dword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
pop esi
pop ebx
ret 8
Function at 0x401000
Capabilities:
Terminate process

Disassembly:
cmp ecx, dword [0x428008]
jne 0x40100a
repz ret
jmp fcn.00401b90

Function at 0x4068ab
Capabilities:
Link many functions at runtime

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x14
push ebx
push esi
push edi
call fcn.0040454d
and dword [ebp - 4], 0
cmp dword [0x42a25c], 0
mov ebx, eax
jne 0x40695c
push str.USER32.DLL
call dword [sym.imp.KERNEL32.dll_LoadLibraryA]
mov edi, eax
test edi, edi
je 0x406a0d
mov esi, dword [sym.imp.KERNEL32.dll_GetProcAddress]
push str.MessageBoxA
push edi
call esi
test eax, eax
je 0x406a0d
push eax
call fcn.004044db
mov dword [esp], str.GetActiveWindow
push edi
mov dword [0x42a25c], eax
call esi
push eax
call fcn.004044db
mov dword [esp], str.GetLastActivePopup
push edi
mov dword [0x42a260], eax
call esi
push eax
call fcn.004044db
mov dword [esp], 0x42598c
push edi
mov dword [0x42a264], eax
call esi
push eax
call fcn.004044db
pop ecx
mov dword [0x42a26c], eax
test eax, eax
je 0x40695c
push str.GetProcessWindowStation
push edi
call esi
push eax
call fcn.004044db
pop ecx
mov dword [0x42a268], eax
mov eax, dword [0x42a268]
cmp eax, ebx
je 0x4069b4
cmp dword [0x42a26c], ebx
je 0x4069b4
push eax
call fcn.00404556
push dword [0x42a26c]
mov esi, eax
call fcn.00404556
pop ecx
pop ecx
mov edi, eax
test esi, esi
je 0x4069b4
test edi, edi
je 0x4069b4
call esi
test eax, eax
je 0x4069ab
lea ecx, [ebp - 8]
push ecx
push 0xc
lea ecx, [ebp - 0x14]
push ecx
push 1
push eax
call edi
test eax, eax
je 0x4069ab
test byte [ebp - 0xc], 1
jne 0x4069b4
or dword [ebp + 0x10], 0x200000
jmp 0x4069ed
mov eax, dword [0x42a260]
cmp eax, ebx
je 0x4069ed
push eax
call fcn.00404556
pop ecx
test eax, eax
je 0x4069ed
call eax
mov dword [ebp - 4], eax
test eax, eax
je 0x4069ed
mov eax, dword [0x42a264]
cmp eax, ebx
je 0x4069ed
push eax
call fcn.00404556
pop ecx
test eax, eax
je 0x4069ed
push dword [ebp - 4]
call eax
mov dword [ebp - 4], eax
push dword [0x42a25c]
call fcn.00404556
pop ecx
test eax, eax
je 0x406a0d
push dword [ebp + 0x10]
push dword [ebp + 0xc]
push dword [ebp + 8]
push dword [ebp - 4]
call eax
jmp 0x406a0f
xor eax, eax
pop edi
pop esi
pop ebx
leave
ret
Function at 0x424620
Capabilities:
Get hostname

Disassembly:
push ebp
mov ebp, esp
sub esp, 0xc2c
mov eax, dword [0x428008]
xor eax, ebp
mov dword [ebp - 4], eax
mov eax, dword [ebp + 8]
push esi
mov esi, dword [ebp + 0xc]
push edi
mov dword [ebp - 0xc08], eax
cmp esi, 0x182
jne 0x42465a
lea ecx, [ebp - 0xc2c]
push ecx
push 0
call dword [sym.imp.KERNEL32.dll_BuildCommDCBW]
jmp 0x424678
cmp esi, 0x19f
jne 0x424678
push 0
push 0
push 0
push 0
call dword [sym.imp.KERNEL32.dll_WritePrivateProfileStringW]
push 0
call dword [sym.imp.KERNEL32.dll_FreeEnvironmentStringsA]
xor edi, edi
test esi, esi
jle 0x424721
push ebx
mov ebx, dword [ebp - 0xc08]
lea esp, [esp]
lea esi, [ebp - 0xc0c]
mov dword [ebp - 0xc0c], 0
call fcn.00424610
mov dl, byte [ebp - 0xc0c]
mov eax, dword [ebp - 0xc08]
mov esi, dword [ebp + 0xc]
xor byte [eax + edi], dl
cmp esi, 0xf
jne 0x424717
lea eax, [ebp - 0xc10]
push eax
lea ecx, [ebp - 0x404]
push ecx
call dword [sym.imp.KERNEL32.dll_GetComputerNameA]
push str.wepetejef
push 0
push 0
push 0
call dword [sym.imp.KERNEL32.dll_SetCalendarInfoA]
push str.wujokinozalucawisuhej
push 0
push 0
call dword [sym.imp.KERNEL32.dll_OpenJobObjectA]
push 0
lea edx, [ebp - 0xc04]
push edx
push 0
call dword [sym.imp.KERNEL32.dll_GetShortPathNameW]
push ebx
push str.naxoj
push 0
call dword [sym.imp.ADVAPI32.dll_RegCreateKeyA]
push 0
call dword [sym.imp.KERNEL32.dll_Sleep]
inc edi
cmp edi, esi
jl 0x424690
pop ebx
pop edi
cmp esi, 0x2d
pop esi
jne 0x42473c
mov dword [0x51ff40], 0xa62e7790
mov dword [0x51ff44], 0xffffffff
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.00401000
mov esp, ebp
pop ebp
ret

Function at 0x424750
Capabilities:
Get disk information

Disassembly:
mov eax, dword [0x51fe0c]
push esi
push edi
mov edi, dword [0x51fc54]
mov esi, eax
cmp eax, 0x5dd
jne 0x424772
push 0
push 0
push 0
call dword [sym.imp.KERNEL32.dll_QueryDosDeviceA]
mov eax, dword [0x429000]
call fcn.004245e0
cmp dword [0x51fe0c], 0x2f
jne 0x42478d
push 0
call dword [sym.imp.KERNEL32.dll_FreeEnvironmentStringsA]
push esi
push edi
call fcn.00424620
add esp, 8
cmp dword [0x51fe0c], 0x568
pop edi
pop esi
jne 0x4247b7
push 0
call dword [sym.imp.KERNEL32.dll_HeapDestroy]
push 0
push 0
call dword [sym.imp.KERNEL32.dll_GetNumaProcessorNode]
ret
Function at 0x417b80
Capabilities:
Packed with generic packer

Disassembly:
pushal
mov esi, section.UPX1
lea edi, [esi - 0xc000]
push edi
or ebp, 0xffffffff
jmp 0x417ba2
mov al, byte [esi]
inc esi
mov byte [edi], al
inc edi
add ebx, ebx
jne 0x417ba9
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
jb 0x417b98
mov eax, 1
add ebx, ebx
jne 0x417bbb
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc eax, eax
add ebx, ebx
jae 0x417bb0
jne 0x417bcc
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
jae 0x417bb0
xor ecx, ecx
sub eax, 3
jb 0x417be0
shl eax, 8
mov al, byte [esi]
inc esi
xor eax, 0xffffffff
je 0x417c52
mov ebp, eax
add ebx, ebx
jne 0x417beb
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc ecx, ecx
add ebx, ebx
jne 0x417bf8
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc ecx, ecx
jne 0x417c1c
inc ecx
add ebx, ebx
jne 0x417c08
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc ecx, ecx
add ebx, ebx
jae 0x417bfd
jne 0x417c19
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
jae 0x417bfd
add ecx, 2
cmp ebp, 0xfffff300
adc ecx, 1
lea edx, [edi + ebp]
cmp ebp, 0xfffffffc
jbe 0x417c3c
mov al, byte [edx]
inc edx
mov byte [edi], al
inc edi
dec ecx
jne 0x417c2d
jmp 0x417b9e
mov eax, dword [edx]
add edx, 4
mov dword [edi], eax
add edi, 4
sub ecx, 4
ja 0x417c3c
add edi, ecx
jmp 0x417b9e
pop esi
mov edi, esi
mov ecx, 0xee
mov al, byte [edi]
inc edi
sub al, 0xe8
cmp al, 1
ja 0x417c5a
cmp byte [edi], 0xb
jne 0x417c5a
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 al, bl
loop 0x417c5f
lea edi, [esi + 0x15000]
mov eax, dword [edi]
or eax, eax
je 0x417cd7
mov ebx, dword [edi + 4]
lea eax, [eax + esi + 0x177c4]
add ebx, esi
push eax
add edi, 8
call dword [esi + 0x17844]
xchg ebp, eax
mov al, byte [edi]
inc edi
or al, al
je 0x417c8c
mov ecx, edi
jns 0x417cbb
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 + 0x1784c]
or eax, eax
je 0x417cd1
mov dword [ebx], eax
add ebx, 4
jmp 0x417ca9
call dword [esi + 0x17848]
mov ebp, dword [esi + 0x17850]
lea edi, [esi - 0x1000]
mov ebx, 0x1000
push eax
push esp
push 4
push ebx
push edi
call ebp
lea eax, [edi + 0x207]
and byte [eax], 0x7f
and byte [eax + 0x28], 0x7f
pop eax
push eax
push esp
push eax
push ebx
push edi
call ebp
pop eax
popal
lea eax, [esp - 0x80]
push 0
cmp esp, eax
jne 0x417d0b
sub esp, 0xffffff80
jmp 0x40747d
Function at 0x402a20
Capabilities:
Accept command line arguments

Disassembly:
push ebx
push esi
push edi
add esp, 0xfffffef8
mov ebx, edx
mov esi, eax
mov eax, ebx
call fcn.00404bf4
test esi, esi
jne 0x402a56
push 0x105
lea eax, [esp + 4]
push eax
push 0
call sub.kernel32.dll_GetModuleFileNameA
mov ecx, eax
mov edx, esp
mov eax, ebx
call fcn.00404ce4
jmp 0x402a74
call sub.kernel32.dll_GetCommandLineA
mov edi, eax
mov edx, ebx
mov eax, edi
call fcn.004028d4
mov edi, eax
test esi, esi
je 0x402a74
cmp dword [ebx], 0
je 0x402a74
dec esi
jmp 0x402a5d
add esp, 0x108
pop edi
pop esi
pop ebx
ret

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

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

Function at 0x403234
Capabilities:
Read file on windows

Disassembly:
push ebx
xor ecx, ecx
mov ebx, eax
mov cx, word [eax + 4]
sub ecx, 0xd7b1
je 0x40324a
sub ecx, 2
jne 0x40326c
push 0
mov eax, esp
push 0
push eax
push dword [ebx + 8]
push edx
push dword [ebx]
call sub.kernel32.dll_ReadFile
pop edx
dec eax
jne 0x403273
cmp edx, dword [ebx + 8]
je 0x40327d
mov eax, 0x64
jmp 0x403278
mov eax, 0x67
jmp 0x403278
call sub.kernel32.dll_GetLastError
call fcn.0040277c
pop ebx
ret

Function at 0x4036b0
Capabilities:
Write file on windows

Disassembly:
push ebx
mov ebx, eax
movzx eax, word [eax + 4]
sub eax, 0xd7b2
cmp eax, 1
ja 0x4036e3
push 0
mov eax, esp
push 0
push eax
push dword [ebx + 8]
push edx
push dword [ebx]
call sub.kernel32.dll_WriteFile
pop edx
dec eax
jne 0x4036ea
cmp edx, dword [ebx + 8]
je 0x4036f4
mov eax, 0x65
jmp 0x4036ef
mov eax, 5
jmp 0x4036ef
call sub.kernel32.dll_GetLastError
call fcn.0040277c
mov eax, ebx
pop ebx
ret

Function at 0x403fd8
Capabilities:
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffff4
movzx eax, word [0x47a024]
mov dword [ebp - 8], eax
lea eax, [ebp - 4]
push eax
push 1
push 0
push 0x404070
push 0x80000002
call sub.advapi32.dll_RegOpenKeyExA
test eax, eax
jne 0x404050
xor eax, eax
push ebp
push 0x404049
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 0x40408c
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 0x404050
mov eax, dword [ebp - 4]
push eax
call sub.advapi32.dll_RegCloseKey
ret
mov ax, word [0x47a024]
and ax, 0xffc0
mov dx, word [ebp - 8]
and dx, 0x3f
or ax, dx
mov word [0x47a024], ax
mov esp, ebp
pop ebp
ret
Function at 0x404a78
Capabilities:
Write file on windows

Disassembly:
push ecx
cmp byte [0x47c048], 0
je 0x404ad9
cmp word [0x47c21c], 0xd7b2
jne 0x404aa1
cmp dword [0x47c224], 0
jbe 0x404aa1
mov eax, 0x47c218
call dword [0x47c234]
push 0
lea eax, [esp + 4]
push eax
push 0x1e
push 0x47a0c0
push 0xfffffffffffffff5
call sub.kernel32.dll_GetStdHandle
push eax
call sub.kernel32.dll_WriteFile
push 0
lea eax, [esp + 4]
push eax
push 2
push 0x404b00
push 0xfffffffffffffff5
call sub.kernel32.dll_GetStdHandle
push eax
call sub.kernel32.dll_WriteFile
pop edx
ret
cmp byte [0x47a034], 0
jne 0x404af5
push 0
push 0x47a0b8
push 0x47a0c0
push 0
call sub.user32.dll_MessageBoxA
pop edx
ret
Function at 0x4061d8
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 0xf0019
push 0
push 0x406408
push 0x80000001
call sub.advapi32.dll_RegOpenKeyExA
test eax, eax
je 0x40625b
lea eax, [ebp - 8]
push eax
push 0xf0019
push 0
push 0x406408
push 0x80000002
call sub.advapi32.dll_RegOpenKeyExA
test eax, eax
je 0x40625b
lea eax, [ebp - 8]
push eax
push 0xf0019
push 0
push 0x406424
push 0x80000001
call sub.advapi32.dll_RegOpenKeyExA
test eax, eax
jne 0x4062e4
xor eax, eax
push ebp
push 0x4062dd
push dword fs:[eax]
mov dword fs:[eax], esp
mov dword [ebp - 0x18], 5
lea eax, [ebp - 0x11d]
mov edx, 0x105
call fcn.00406020
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 0x4062c2
lea eax, [ebp - 0x18]
push eax
lea eax, [ebp - 0x12]
push eax
push 0
push 0
push 0x406444
mov eax, dword [ebp - 8]
push eax
call sub.advapi32.dll_RegQueryValueExA
test eax, eax
je 0x4062c2
mov byte [ebp - 0x12], 0
mov byte [ebp - 0xe], 0
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x4062e4
mov eax, dword [ebp - 8]
push eax
call sub.advapi32.dll_RegCloseKey
ret
push 0x105
mov eax, dword [ebp - 4]
push eax
lea eax, [ebp - 0x11d]
push eax
call sub.kernel32.dll_lstrcpynA
push 5
lea eax, [ebp - 0xd]
push eax
push 3
call sub.kernel32.dll_GetThreadLocale
push eax
call sub.kernel32.dll_GetLocaleInfoA
xor esi, esi
cmp byte [ebp - 0x11d], 0
je 0x4063fe
cmp byte [ebp - 0xd], 0
jne 0x40632b
cmp byte [ebp - 0x12], 0
je 0x4063fe
lea eax, [ebp - 0x11d]
push eax
call sub.kernel32.dll_lstrlenA
mov ebx, eax
lea eax, [ebp - 0x11d]
add ebx, eax
jmp 0x406344
dec ebx
cmp byte [ebx], 0x2e
je 0x406353
lea eax, [ebp - 0x11d]
cmp ebx, eax
jne 0x406343
lea eax, [ebp - 0x11d]
cmp ebx, eax
je 0x4063fe
inc ebx
cmp byte [ebp - 0x12], 0
je 0x406390
mov edx, ebx
sub edx, eax
mov eax, 0x105
sub eax, edx
push eax
lea eax, [ebp - 0x12]
push eax
push ebx
call sub.kernel32.dll_lstrcpynA
push 2
push 0
lea eax, [ebp - 0x11d]
push eax
call sub.kernel32.dll_LoadLibraryExA
mov esi, eax
test esi, esi
jne 0x4063fe
cmp byte [ebp - 0xd], 0
je 0x4063fe
lea eax, [ebp - 0x11d]
mov edx, ebx
sub edx, eax
mov eax, 0x105
sub eax, edx
push eax
lea eax, [ebp - 0xd]
push eax
push ebx
call sub.kernel32.dll_lstrcpynA
push 2
push 0
lea eax, [ebp - 0x11d]
push eax
call sub.kernel32.dll_LoadLibraryExA
mov esi, eax
test esi, esi
jne 0x4063fe
mov byte [ebp - 0xb], 0
lea eax, [ebp - 0x11d]
mov edx, ebx
sub edx, eax
mov eax, 0x105
sub eax, edx
push eax
lea eax, [ebp - 0xd]
push eax
push ebx
call sub.kernel32.dll_lstrcpynA
push 2
push 0
lea eax, [ebp - 0x11d]
push eax
call sub.kernel32.dll_LoadLibraryExA
mov esi, eax
mov eax, esi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x4062e4
Capabilities:
Get geographical location

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffee0
push ebx
push esi
mov dword [ebp - 4], eax
push 0x105
lea eax, [ebp - 0x11d]
push eax
push 0
call sub.kernel32.dll_GetModuleFileNameA
mov byte [ebp - 0x12], 0
lea eax, [ebp - 8]
push eax
push 0xf0019
push 0
push 0x406408
push 0x80000001
call sub.advapi32.dll_RegOpenKeyExA
test eax, eax
je 0x40625b
lea eax, [ebp - 8]
push eax
push 0xf0019
push 0
push 0x406408
push 0x80000002
call sub.advapi32.dll_RegOpenKeyExA
test eax, eax
je 0x40625b
lea eax, [ebp - 8]
push eax
push 0xf0019
push 0
push 0x406424
push 0x80000001
call sub.advapi32.dll_RegOpenKeyExA
test eax, eax
jne 0x4062e4
xor eax, eax
push ebp
push 0x4062dd
push dword fs:[eax]
mov dword fs:[eax], esp
mov dword [ebp - 0x18], 5
lea eax, [ebp - 0x11d]
mov edx, 0x105
call fcn.00406020
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 0x4062c2
lea eax, [ebp - 0x18]
push eax
lea eax, [ebp - 0x12]
push eax
push 0
push 0
push 0x406444
mov eax, dword [ebp - 8]
push eax
call sub.advapi32.dll_RegQueryValueExA
test eax, eax
je 0x4062c2
mov byte [ebp - 0x12], 0
mov byte [ebp - 0xe], 0
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x4062e4
mov eax, dword [ebp - 8]
push eax
call sub.advapi32.dll_RegCloseKey
ret
push 0x105
mov eax, dword [ebp - 4]
push eax
lea eax, [ebp - 0x11d]
push eax
call sub.kernel32.dll_lstrcpynA
push 5
lea eax, [ebp - 0xd]
push eax
push 3
call sub.kernel32.dll_GetThreadLocale
push eax
call sub.kernel32.dll_GetLocaleInfoA
xor esi, esi
cmp byte [ebp - 0x11d], 0
je 0x4063fe
cmp byte [ebp - 0xd], 0
jne 0x40632b
cmp byte [ebp - 0x12], 0
je 0x4063fe
lea eax, [ebp - 0x11d]
push eax
call sub.kernel32.dll_lstrlenA
mov ebx, eax
lea eax, [ebp - 0x11d]
add ebx, eax
jmp 0x406344
dec ebx
cmp byte [ebx], 0x2e
je 0x406353
lea eax, [ebp - 0x11d]
cmp ebx, eax
jne 0x406343
lea eax, [ebp - 0x11d]
cmp ebx, eax
je 0x4063fe
inc ebx
cmp byte [ebp - 0x12], 0
je 0x406390
mov edx, ebx
sub edx, eax
mov eax, 0x105
sub eax, edx
push eax
lea eax, [ebp - 0x12]
push eax
push ebx
call sub.kernel32.dll_lstrcpynA
push 2
push 0
lea eax, [ebp - 0x11d]
push eax
call sub.kernel32.dll_LoadLibraryExA
mov esi, eax
test esi, esi
jne 0x4063fe
cmp byte [ebp - 0xd], 0
je 0x4063fe
lea eax, [ebp - 0x11d]
mov edx, ebx
sub edx, eax
mov eax, 0x105
sub eax, edx
push eax
lea eax, [ebp - 0xd]
push eax
push ebx
call sub.kernel32.dll_lstrcpynA
push 2
push 0
lea eax, [ebp - 0x11d]
push eax
call sub.kernel32.dll_LoadLibraryExA
mov esi, eax
test esi, esi
jne 0x4063fe
mov byte [ebp - 0xb], 0
lea eax, [ebp - 0x11d]
mov edx, ebx
sub edx, eax
mov eax, 0x105
sub eax, edx
push eax
lea eax, [ebp - 0xd]
push eax
push ebx
call sub.kernel32.dll_lstrcpynA
push 2
push 0
lea eax, [ebp - 0x11d]
push eax
call sub.kernel32.dll_LoadLibraryExA
mov esi, eax
mov eax, esi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret