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

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x234
mov eax, dword [0x45b170]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
push esi
push edi
lea eax, [ebp - 0x224]
push eax
push 0x20019
xor ebx, ebx
push ebx
push str.HardwareDeviceMapSerialComm
push 0x80000002
mov edi, ecx
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
test eax, eax
jne 0x42c973
mov eax, dword [edi]
mov dword [edi + 4], eax
mov eax, 0x100
mov dword [ebp - 0x22c], eax
mov dword [ebp - 0x228], eax
lea eax, [ebp - 0x22c]
push eax
lea eax, [ebp - 0x208]
push eax
push ebx
push ebx
lea eax, [ebp - 0x228]
push eax
lea eax, [ebp - 0x108]
push eax
mov dword [ebp - 0x230], ebx
push ebx
jmp 0x42c950
lea eax, [ebp - 0x108]
push eax
lea ecx, [ebp - 0x220]
call fcn.004294c9
push str.Nmserial
mov esi, eax
call fcn.0042a4ca
pop ecx
push eax
push ebx
push str.Nmserial
mov ecx, esi
call fcn.004298db
cmp eax, 0xffffffff
lea ecx, [ebp - 0x220]
setne bl
call fcn.004294f8
test bl, bl
jne 0x42c911
lea eax, [ebp - 0x205]
push eax
call fcn.00436859
pop ecx
mov dword [ebp - 0x234], eax
lea eax, [ebp - 0x234]
push eax
mov ecx, edi
call fcn.0042ccb0
mov eax, dword [ebp - 0x230]
mov ecx, 0x100
mov dword [ebp - 0x22c], ecx
mov dword [ebp - 0x228], ecx
lea ecx, [ebp - 0x22c]
push ecx
inc eax
lea ecx, [ebp - 0x208]
push ecx
xor ebx, ebx
push ebx
push ebx
lea ecx, [ebp - 0x228]
push ecx
lea ecx, [ebp - 0x108]
push ecx
mov dword [ebp - 0x230], eax
push eax
push dword [ebp - 0x224]
call dword [sym.imp.ADVAPI32.dll_RegEnumValueA]
cmp eax, 0x103
jne 0x42c8ae
push dword [ebp - 0x224]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov ecx, dword [ebp - 4]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.004363cf
leave
ret

Function at 0x42d1ea
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
push ecx
push ebx
push esi
mov esi, ecx
push edi
push dword [esi + 0x28]
xor ebx, ebx
mov dword [ebp - 4], ebx
call dword [sym.imp.KERNEL32.dll_ResetEvent]
lea edi, [esi + 0xc]
push edi
call dword [sym.imp.KERNEL32.dll_EnterCriticalSection]
push 0xf
push dword [esi + 0x90]
mov dword [esi + 0x44], ebx
mov dword [esi + 0x48], ebx
call dword [sym.imp.KERNEL32.dll_PurgeComm]
lea ebx, [esi + 0x3c]
push ebx
lea eax, [ebp - 4]
push eax
push dword [esi + 0x8c]
push dword [esi + 0x80]
push dword [esi + 0x90]
call dword [sym.imp.KERNEL32.dll_WriteFile]
test eax, eax
jne 0x42d267
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0x3e5
jne 0x42d26e
and dword [ebp - 4], 0
push 1
lea eax, [ebp - 4]
push eax
push ebx
push dword [esi + 0x90]
call dword [sym.imp.KERNEL32.dll_GetOverlappedResult]
push edi
call dword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
pop edi
pop esi
pop ebx
leave
ret
Function at 0x42d273
Capabilities:
Read file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x1c
mov eax, dword [0x45b170]
xor eax, ebp
mov dword [ebp - 4], eax
and dword [ebp - 0x14], 0
push ebx
push esi
push edi
lea esi, [ebp + 8]
lea edi, [ebp - 0x10]
movsd dword es:[edi], dword [esi]
movsd dword es:[edi], dword [esi]
movsd dword es:[edi], dword [esi]
xor esi, esi
mov ebx, ecx
inc esi
and dword [ebp - 0x18], 0
lea edi, [ebx + 0xc]
jmp 0x42d312
push edi
call dword [sym.imp.KERNEL32.dll_EnterCriticalSection]
test esi, esi
je 0x42d2e5
lea eax, [ebx + 0x3c]
push eax
lea eax, [ebp - 0x18]
push eax
push 1
lea eax, [ebp - 0x1c]
push eax
push dword [ebx + 0x90]
call dword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
jne 0x42d2de
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov dword [ebp - 0x14], eax
cmp eax, 0x3e5
jne 0x42d2e1
xor esi, esi
jmp 0x42d2e1
xor esi, esi
inc esi
test esi, esi
jne 0x42d2fd
xor esi, esi
inc esi
push esi
lea eax, [ebp - 0x18]
push eax
lea eax, [ebx + 0x3c]
push eax
push dword [ebx + 0x90]
call dword [sym.imp.KERNEL32.dll_GetOverlappedResult]
push edi
call dword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
push dword [ebp - 0x1c]
mov ecx, dword [ebx + 0x94]
call fcn.0042cdf1
push edi
call dword [sym.imp.KERNEL32.dll_EnterCriticalSection]
lea eax, [ebp - 0x10]
push eax
lea eax, [ebp - 0x14]
push eax
push dword [ebx + 0x90]
call dword [sym.imp.KERNEL32.dll_ClearCommError]
push edi
call dword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
cmp dword [ebp - 0xc], 0
jne 0x42d2a1
mov ecx, dword [ebp - 4]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.004363cf
leave
ret

Function at 0x43057c
Capabilities:
Encrypt data using rc4 prga

Disassembly:
push ebp
mov ebp, esp
push ecx
push esi
mov esi, ecx
push edi
mov edi, dword [esi + 8]
and edi, 7
je 0x43059e
cmp dword [esi + 8], edi
jge 0x430596
call fcn.0042fef4
mov ecx, edi
shr dword [esi + 0xc], cl
sub dword [esi + 8], edi
mov ecx, dword [esi + 8]
xor edx, edx
test ecx, ecx
jle 0x4305c4
mov edi, dword [esi + 0xc]
mov al, byte [esi + 0xc]
mov byte [ebp + edx - 4], al
shr edi, 8
sub ecx, 8
inc edx
mov dword [esi + 0xc], edi
test ecx, ecx
jg 0x4305aa
mov dword [esi + 8], ecx
jmp 0x4305dc
mov eax, dword [esi]
cmp eax, dword [esi + 4]
jb 0x4305cf
xor eax, eax
jmp 0x4305d7
mov cl, byte [eax]
inc eax
mov dword [esi], eax
movzx eax, cl
mov byte [ebp + edx - 4], al
inc edx
cmp edx, 4
jl 0x4305c4
mov eax, dword [ebp - 4]
movzx ecx, byte [ebp - 1]
movzx edi, ah
movzx eax, al
shl edi, 8
add edi, eax
movzx eax, byte [ebp - 2]
shl ecx, 8
add ecx, eax
mov eax, edi
xor eax, 0xffff
cmp ecx, eax
je 0x430615
mov dword [0x45e708], str.zlib_corrupt
xor eax, eax
jmp 0x430657
mov eax, dword [esi]
add eax, edi
cmp eax, dword [esi + 4]
jbe 0x43062a
mov dword [0x45e708], str.read_past_buffer
jmp 0x430611
mov eax, dword [esi + 0x10]
add eax, edi
cmp eax, dword [esi + 0x18]
jbe 0x430641
mov edx, edi
mov ecx, esi
call fcn.0042ff28
test eax, eax
je 0x430611
push edi
push dword [esi]
push dword [esi + 0x10]
call fcn.004392c0
add dword [esi], edi
add dword [esi + 0x10], edi
xor eax, eax
add esp, 0xc
inc eax
pop edi
pop esi
leave
ret
Function at 0x4433d5
Capabilities:
Link many functions at runtime
Print debug messages

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x24
mov eax, dword [0x45b170]
xor eax, ebp
mov dword [ebp - 4], eax
mov eax, dword [ebp + 8]
push ebx
mov ebx, dword [sym.imp.KERNEL32.dll_EncodePointer]
push esi
push edi
mov dword [ebp - 0x1c], eax
mov eax, dword [ebp + 0xc]
xor edi, edi
push edi
mov dword [ebp - 0x20], eax
call ebx
mov esi, eax
mov dword [ebp - 0x18], esi
call fcn.0043e0ca
mov dword [ebp - 0x14], eax
cmp dword [0x45e544], edi
jne 0x4434c6
push 0x800
push edi
push str.USER32.DLL
call dword [sym.imp.KERNEL32.dll_LoadLibraryExW]
mov esi, eax
test esi, esi
jne 0x443453
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0x57
jne 0x4435a6
push str.USER32.DLL
call dword [sym.imp.KERNEL32.dll_LoadLibraryW]
mov esi, eax
test esi, esi
je 0x4435a6
push str.MessageBoxW
push esi
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
test eax, eax
je 0x4435a6
push eax
call ebx
push str.GetActiveWindow
push esi
mov dword [0x45e544], eax
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
push eax
call ebx
push str.GetLastActivePopup
push esi
mov dword [0x45e548], eax
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
push eax
call ebx
push str.GetUserObjectInformationW
push esi
mov dword [0x45e54c], eax
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
push eax
call ebx
mov dword [0x45e554], eax
test eax, eax
je 0x4434c3
push str.GetProcessWindowStation
push esi
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
push eax
call ebx
mov dword [0x45e550], eax
mov esi, dword [ebp - 0x18]
call dword [sym.imp.KERNEL32.dll_IsDebuggerPresent]
test eax, eax
je 0x4434eb
mov eax, dword [ebp - 0x1c]
test eax, eax
je 0x4434de
push eax
call dword [sym.imp.KERNEL32.dll_OutputDebugStringW]
cmp dword [ebp - 0x14], edi
je 0x443500
push 4
pop eax
jmp 0x4435a8
cmp dword [ebp - 0x14], edi
je 0x443500
push dword [0x45e544]
call dword [sym.imp.KERNEL32.dll_DecodePointer]
push 3
jmp 0x4434e5
mov eax, dword [0x45e550]
mov ebx, dword [sym.imp.KERNEL32.dll_DecodePointer]
cmp eax, esi
je 0x44355e
cmp dword [0x45e554], esi
je 0x44355e
push eax
call ebx
push dword [0x45e554]
mov dword [ebp - 0x14], eax
call ebx
mov ecx, dword [ebp - 0x14]
mov dword [ebp - 0x18], eax
test ecx, ecx
je 0x44355e
test eax, eax
je 0x44355e
call ecx
test eax, eax
je 0x443553
lea ecx, [ebp - 0x24]
push ecx
push 0xc
lea ecx, [ebp - 0x10]
push ecx
push 1
push eax
call dword [ebp - 0x18]
test eax, eax
je 0x443553
test byte [ebp - 8], 1
jne 0x44355e
mov esi, dword [ebp + 0x10]
or esi, 0x200000
jmp 0x44358e
mov eax, dword [0x45e548]
cmp eax, esi
je 0x44358b
push eax
call ebx
test eax, eax
je 0x44358b
call eax
mov edi, eax
test edi, edi
je 0x44358b
mov eax, dword [0x45e54c]
cmp eax, esi
je 0x44358b
push eax
call ebx
test eax, eax
je 0x44358b
push edi
call eax
mov edi, eax
mov esi, dword [ebp + 0x10]
push dword [0x45e544]
call ebx
test eax, eax
je 0x4435a6
push esi
push dword [ebp - 0x20]
push dword [ebp - 0x1c]
push edi
call eax
jmp 0x4435a8
xor eax, eax
mov ecx, dword [ebp - 4]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.004363cf
leave
ret
Function at 0x88f4d0
Capabilities:
Packed with generic packer

Disassembly:
pushal
mov esi, section.UPX1
lea edi, [esi - 0x435000]
push edi
or ebp, 0xffffffff
jmp 0x88f4f2
mov al, byte [esi]
inc esi
mov byte [edi], al
inc edi
add ebx, ebx
jne 0x88f4f9
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
jb 0x88f4e8
mov eax, 1
add ebx, ebx
jne 0x88f50b
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc eax, eax
add ebx, ebx
jae 0x88f500
jne 0x88f51c
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
jae 0x88f500
xor ecx, ecx
sub eax, 3
jb 0x88f530
shl eax, 8
mov al, byte [esi]
inc esi
xor eax, 0xffffffff
je 0x88f5a2
mov ebp, eax
add ebx, ebx
jne 0x88f53b
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc ecx, ecx
add ebx, ebx
jne 0x88f548
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc ecx, ecx
jne 0x88f56c
inc ecx
add ebx, ebx
jne 0x88f558
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
invalid
adc ecx, ecx
add ebx, ebx
jae 0x88f54d
jne 0x88f569
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
jae 0x88f54d
add ecx, 2
cmp ebp, 0xfffff300
adc ecx, 1
lea edx, [edi + ebp]
cmp ebp, 0xfffffffc
jbe 0x88f58c
mov al, byte [edx]
inc edx
mov byte [edi], al
inc edi
dec ecx
jne 0x88f57d
jmp 0x88f4ee
mov eax, dword [edx]
add edx, 4
mov dword [edi], eax
add edi, 4
sub ecx, 4
ja 0x88f58c
add edi, ecx
jmp 0x88f4ee
pop esi
mov edi, esi
mov ecx, 0x5d
mov al, byte [edi]
inc edi
sub al, 0xe8
cmp al, 1
ja 0x88f5aa
cmp byte [edi], 7
jne 0x88f5aa
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 0x88f5af
lea edi, [esi + 0x48c000]
mov eax, dword [edi]
or eax, eax
je 0x88f627
mov ebx, dword [edi + 4]
lea eax, [eax + esi + 0x490068]
add ebx, esi
push eax
add edi, 8
call dword [esi + 0x49012c]
xchg ebp, eax
mov al, byte [edi]
inc edi
or al, al
je 0x88f5dc
mov ecx, edi
jns 0x88f60b
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 + 0x490134]
or eax, eax
je 0x88f621
mov dword [ebx], eax
add ebx, 4
jmp 0x88f5f9
call dword [esi + 0x490130]
mov ebp, dword [esi + 0x490138]
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 0x88f65b
sub esp, 0xffffff80
jmp 0x43c398
Function at 0x40380b
Capabilities:
Accept command line arguments
Terminate process

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x44
push esi
call dword [sym.imp.KERNEL32.dll_GetCommandLineA]
mov esi, eax
mov al, byte [esi]
cmp al, 0x22
jne 0x403834
cmp al, 0x22
je 0x40382c
mov al, byte [esi + 1]
inc esi
test al, al
jne 0x403820
cmp byte [esi], 0x22
jne 0x40383e
inc esi
jmp 0x40383e
cmp al, 0x20
jle 0x40383e
inc esi
cmp byte [esi], 0x20
jg 0x403838
mov al, byte [esi]
test al, al
je 0x403848
cmp al, 0x20
jle 0x403831
and dword [ebp - 0x18], 0
lea eax, [ebp - 0x44]
push eax
call dword [sym.imp.KERNEL32.dll_GetStartupInfoA]
call fcn.004038b6
push 0x405004
push section..data
call fcn.0040389c
test byte [ebp - 0x18], 1
pop ecx
pop ecx
je 0x403878
movzx eax, word [ebp - 0x14]
jmp 0x40387b
push 0xa
pop eax
push eax
push esi
push 0
push 0
call dword [sym.imp.KERNEL32.dll_GetModuleHandleA]
push eax
jmp 0x41bc4c

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 0x432000
Capabilities:
Encode data using xor
Packed with generic packer

Disassembly:
pushal
nop
nop
nop
nop
nop
mov eax, section..text
nop
mov ebx, 0x40c7d0
nop
mov ecx, 0x277a12cf
nop
nop
test eax, eax
nop
nop
nop
nop
je 0x43204e
nop
nop
nop
nop
nop
xor dword [eax], ecx
nop
nop
nop
nop
inc eax
nop
nop
nop
nop
nop
nop
inc eax
nop
nop
nop
inc eax
nop
nop
nop
nop
nop
nop
nop
nop
inc eax
nop
nop
nop
nop
nop
cmp eax, ebx
nop
nop
nop
nop
jne 0x432024
mov eax, section..data
nop
nop
mov ebx, 0x42f314
nop
mov ecx, 0x9be69a8
nop
test eax, eax
nop
nop
nop
nop
nop
nop
nop
je 0x432084
nop
xor dword [eax], ecx
nop
nop
nop
nop
nop
add eax, 4
nop
nop
nop
nop
cmp eax, ebx
nop
nop
nop
nop
nop
jne 0x43206c
nop
popal
nop
nop
nop
nop
jmp 0x431219
Function at 0x405062
Capabilities:
Move file

Disassembly:
push ebp
mov ebp, esp
mov eax, 0x30c0
call fcn.00401200
push ebx
push esi
push edi
lea ecx, [ebp - 0x30c0]
call fcn.0040387e
xor edi, edi
push edi
lea eax, [ebp - 0x30c0]
push eax
push dword [ebp + 8]
push edi
call fcn.00406651
test al, al
je 0x405207
cmp word [ebp - 0x2440], di
je 0x405207
lea eax, [ebp - 0x2440]
push eax
lea eax, [ebp - 0x2cc0]
push eax
call fcn.00407a09
push eax
call fcn.0040f397
test eax, eax
je 0x405207
lea eax, [ebp - 0x2440]
push eax
push dword [ebp + 8]
call fcn.00407a09
push eax
call fcn.0040f397
test eax, eax
jne 0x405207
mov word [ebp - 0x800], ax
xor ebx, ebx
mov esi, 0x400
cmp word [ebp - 0x800], di
jne 0x405158
push esi
push dword [ebp + 8]
lea eax, [ebp - 0x800]
push eax
call fcn.0040ea1c
push ebx
push str.rtmp_d
push esi
lea eax, [ebp - 0x800]
push eax
call fcn.00407a09
push eax
call fcn.0040b1f9
add esp, 0x10
lea eax, [ebp - 0x800]
push eax
push edi
call fcn.00405d8d
test al, al
je 0x405140
xor eax, eax
mov word [ebp - 0x800], ax
add ebx, 0x7b
cmp ebx, 0x2710
jl 0x4050f1
cmp word [ebp - 0x800], di
je 0x405207
push esi
push dword [ebp + 8]
lea eax, [ebp - 0x1000]
push eax
call fcn.0040ea1c
lea eax, [ebp - 0x2cc0]
push eax
call fcn.00407a09
push eax
lea eax, [ebp - 0x1000]
push eax
call fcn.00407a09
push eax
call fcn.0040af85
mov esi, dword [sym.imp.KERNEL32.dll_MoveFileW]
lea eax, [ebp - 0x800]
push eax
lea eax, [ebp - 0x1000]
push eax
call esi
test eax, eax
je 0x405207
lea ecx, [ebp - 0x1c20]
call fcn.00405473
push dword [ebp + 8]
xor bl, bl
push edi
call fcn.00405d8d
test al, al
jne 0x4051ce
push 1
push dword [ebp + 8]
lea ecx, [ebp - 0x1c20]
push edi
call fcn.004057d6
mov bl, al
lea eax, [ebp - 0x1000]
push eax
lea eax, [ebp - 0x800]
push eax
call esi
test bl, bl
je 0x4051f8
lea ecx, [ebp - 0x1c20]
call fcn.004054de
lea ecx, [ebp - 0x1c20]
call fcn.00405563
lea ecx, [ebp - 0x1c20]
call fcn.00405658
mov al, 1
jmp 0x405209
xor al, al
pop edi
pop esi
pop ebx
leave
ret 4
Function at 0x40567b
Capabilities:
Check if file exists

Disassembly:
push ebp
mov ebp, esp
push ecx
push ebx
push esi
mov esi, ecx
xor ebx, ebx
push edi
mov dword [esi + 0xc18], ebx
cmp byte [esi + 0x16], bl
je 0x405695
mov byte [ebp + 0x10], 1
mov dword [ebp - 4], 0x80000000
cmp byte [ebp + 0x14], bl
je 0x4056a8
mov dword [ebp - 4], 0xc0000000
mov dword [ebp + 0x14], 1
cmp byte [ebp + 0x10], bl
je 0x4056bb
mov dword [ebp + 0x14], 3
xor eax, eax
cmp byte [esi + 0x15], bl
setne al
dec eax
and eax, 0x8000000
mov edi, eax
call fcn.00407266
test eax, eax
je 0x4056f4
mov eax, dword [ebp + 0xc]
cmp eax, ebx
je 0x4056f4
cmp word [eax], bx
je 0x4056f4
push ebx
push edi
push 3
push ebx
push dword [ebp + 0x14]
push dword [ebp - 4]
push eax
call dword [sym.imp.KERNEL32.dll_CreateFileW]
jmp 0x405708
push ebx
push edi
push 3
push ebx
push dword [ebp + 0x14]
push dword [ebp - 4]
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.dll_CreateFileA]
mov edi, eax
cmp edi, 0xffffffff
jne 0x405724
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 2
jne 0x405724
mov dword [esi + 0xc18], 1
cmp edi, 0xffffffff
setne byte [ebp + 0x13]
mov byte [esi + 0x12], bl
mov dword [esi + 0xc], ebx
mov byte [esi + 0x10], bl
cmp byte [ebp + 0x13], bl
je 0x40579c
mov dword [esi + 4], edi
mov edi, dword [ebp + 0xc]
cmp edi, ebx
je 0x40575d
push edi
call fcn.0040af5b
lea eax, [eax + eax + 2]
push eax
push edi
lea eax, [esi + 0x418]
push eax
call fcn.0040ac8a
jmp 0x405766
xor eax, eax
mov word [esi + 0x418], ax
cmp dword [ebp + 8], ebx
je 0x405783
push dword [ebp + 8]
call fcn.0040acd5
inc eax
push eax
push dword [ebp + 8]
lea eax, [esi + 0x17]
push eax
call fcn.0040ac8a
jmp 0x405792
push 0x1000000
lea eax, [esi + 0x17]
push eax
push edi
call fcn.0040f15f
push dword [esi + 4]
mov ecx, esi
call fcn.004054b7
mov al, byte [ebp + 0x13]
pop edi
pop esi
pop ebx
leave
ret 0x10

Function at 0x4058d3
Capabilities:
Read file on windows

Disassembly:
push ebp
mov ebp, esp
push ecx
push esi
push edi
mov edi, ecx
cmp dword [edi + 0xc], 1
mov esi, 0x4e20
jne 0x4058f9
cmp dword [ebp + 0xc], esi
jbe 0x4058ee
mov dword [ebp + 0xc], esi
push 0xfffffffffffffff6
call dword [sym.imp.KERNEL32.dll_GetStdHandle]
mov dword [edi + 4], eax
push 0
lea eax, [ebp - 4]
push eax
push dword [ebp + 0xc]
push dword [ebp + 8]
push dword [edi + 4]
call dword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
jne 0x405949
mov ecx, edi
call fcn.00405635
test al, al
je 0x40592f
cmp dword [ebp + 0xc], esi
jbe 0x40592f
push esi
push dword [ebp + 8]
mov ecx, edi
call fcn.004058d3
jmp 0x40594c
cmp dword [edi + 0xc], 1
jne 0x405944
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0x6d
jne 0x405944
xor eax, eax
jmp 0x40594c
or eax, 0xffffffff
jmp 0x40594c
mov eax, dword [ebp - 4]
pop edi
pop esi
leave
ret 8
Function at 0x40b455
Capabilities:
Get geographical location

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x12c
cmp dword [0x4150b0], 0
push ebx
push esi
push edi
mov edi, 0x400
jne 0x40b4a0
push 0x64
lea eax, [ebp - 0x12c]
push eax
push 0xf
push edi
call dword [sym.imp.KERNEL32.dll_GetLocaleInfoW]
mov ax, word [ebp - 0x12c]
mov word [0x427a50], ax
xor eax, eax
mov word [0x427a52], ax
mov dword [0x4150b0], 0x427a50
lea eax, [ebp - 0x64]
push eax
push dword [ebp + 0xc]
push dword [ebp + 8]
call fcn.0040ea9c
mov ebx, dword [ebp + 0x14]
mov esi, dword [ebp + 0x10]
push ebx
push esi
xor eax, eax
push 0x4150a0
mov word [esi], ax
lea eax, [ebp - 0x64]
push eax
push 0
push edi
call dword [sym.imp.KERNEL32.dll_GetNumberFormatW]
xor eax, eax
pop edi
mov word [esi + ebx*2 - 2], ax
pop esi
pop ebx
leave
ret 0x10

Function at 0x40b81f
Capabilities:
Hide graphical window

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x60
push ebx
push esi
push edi
push 0x68
push dword [0x421a00]
call dword [sym.imp.USER32.dll_GetDlgItem]
cmp byte [0x422b14], 0
mov esi, dword [sym.imp.USER32.dll_SendMessageW]
mov edi, eax
mov dword [ebp - 4], edi
mov ebx, 0xb1
jne 0x40b881
mov ecx, dword [0x41b0d4]
call fcn.00406a92
push 5
push edi
call dword [sym.imp.USER32.dll_ShowWindow]
push 0xffffffffffffffff
push 0
push ebx
push edi
call esi
push 0x413704
push 0
push 0xc2
push edi
call esi
mov byte [0x422b14], 1
mov edi, 0x5f5e100
push edi
push edi
push ebx
push dword [ebp - 4]
call esi
lea eax, [ebp - 0x60]
push eax
push 0
push 0x43a
push dword [ebp - 4]
mov dword [ebp - 0x60], 0x5c
call esi
xor eax, eax
inc eax
cmp byte [ebp + 8], 0
mov byte [ebp - 0x47], 0
mov dword [ebp - 0x5c], eax
je 0x40b8d1
mov ecx, dword [ebp - 0x58]
and ecx, 0xbfffffff
or ecx, eax
mov dword [ebp - 0x58], ecx
mov dword [ebp - 0x4c], 0xa0
mov dword [ebp - 0x5c], 0x40000001
lea ecx, [ebp - 0x60]
push ecx
push eax
push 0x444
push dword [ebp - 4]
call esi
push dword [ebp + 0xc]
push 0
push 0xc2
push dword [ebp - 4]
call esi
push edi
push edi
push ebx
push dword [ebp - 4]
call esi
cmp byte [ebp + 8], 0
je 0x40b91b
mov eax, dword [ebp - 0x58]
and eax, 0xfffffffe
or eax, 0x40000000
mov dword [ebp - 0x58], eax
lea eax, [ebp - 0x60]
push eax
push 1
push 0x444
push dword [ebp - 4]
call esi
push 0x413728
push 0
push 0xc2
push dword [ebp - 4]
call esi
pop edi
pop esi
pop ebx
leave
ret 8
Function at 0x40c1d0
Capabilities:
Query environment variable

Disassembly:
push ebp
mov ebp, esp
mov eax, 0x2000
call fcn.00401200
push ebx
mov ebx, ecx
push edi
mov edi, dword [ebp + 8]
test ebx, ebx
je 0x40c1eb
mov byte [ebx], 0
mov eax, dword [ebp + 0x10]
test eax, eax
je 0x40c1f5
mov byte [eax], 0
test edi, edi
je 0x40c29e
movzx eax, word [edi]
test ax, ax
je 0x40c29e
push esi
xor esi, esi
xor ecx, ecx
movzx eax, ax
inc edi
inc edi
cmp ax, 0x3d
jne 0x40c22e
cmp dword [ebp + 0xc], 0
je 0x40c23a
test esi, esi
jne 0x40c23a
test ebx, ebx
je 0x40c22a
mov byte [ebx], 1
mov esi, edx
jmp 0x40c249
cmp ax, 0xd
je 0x40c25c
cmp ax, 0xa
je 0x40c25e
mov word [edx], ax
mov eax, dword [ebp + 0x14]
inc edx
add eax, 0xfffffffe
inc edx
cmp ecx, eax
jg 0x40c254
movzx eax, word [edi]
inc ecx
test ax, ax
jne 0x40c20e
jmp 0x40c25e
mov eax, dword [ebp + 0x10]
mov byte [eax], 1
jmp 0x40c25e
inc edi
inc edi
mov ebx, dword [ebp + 0xc]
xor eax, eax
mov word [edx], ax
test ebx, ebx
je 0x40c299
mov word [ebx], ax
test esi, esi
je 0x40c299
push 0x1000
lea eax, [ebp - 0x2000]
push eax
push esi
call dword [sym.imp.KERNEL32.dll_ExpandEnvironmentStringsW]
push dword [ebp + 0x14]
lea eax, [ebp - 0x2000]
push eax
push ebx
call fcn.0040ea1c
xor eax, eax
mov word [esi], ax
mov eax, edi
pop esi
jmp 0x40c2a0
xor eax, eax
pop edi
pop ebx
leave
ret 0x10

Function at 0x40c2e5
Capabilities:
Delete file

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x820
push 0x400
lea eax, [ebp - 0x820]
push eax
call fcn.00412913
cmp byte [0x422b15], 0
jne 0x40c373
push 6
push dword [0x41509c]
lea eax, [ebp - 0x820]
push eax
call fcn.00407a09
push eax
call fcn.0040f454
test eax, eax
jne 0x40c373
push 0x4137bc
call fcn.00412900
lea eax, [ebp - 0x820]
push eax
call fcn.0040af5b
xor ecx, ecx
push 0x1e
mov word [ebp + eax*2 - 0x81e], cx
push ecx
lea eax, [ebp - 0x20]
push eax
call fcn.0040abda
push 0x14
pop eax
mov word [ebp - 0x10], ax
lea eax, [ebp - 0x820]
mov dword [ebp - 0x18], eax
lea eax, [ebp - 0x20]
push eax
mov dword [ebp - 0x1c], 3
call dword [sym.imp.SHELL32.dll_SHFileOperationW]
leave
ret

Function at 0x40c43e
Capabilities:
Delete file

Disassembly:
push ebx
xor ebx, ebx
mov byte [0x4219f1], 1
cmp dword [0x421a00], ebx
je 0x40c466
push 0x7d
call fcn.0040a245
push eax
push 2
push dword [0x421a00]
call dword [sym.imp.USER32.dll_SetDlgItemTextW]
mov eax, dword [0x421a00]
mov dword [0x4219f4], ebx
mov byte [0x4219f0], 1
cmp eax, ebx
je 0x40c4c7
push 1
push eax
call dword [sym.imp.USER32.dll_ShowWindow]
cmp dword [0x422b24], ebx
jne 0x40c495
cmp byte [0x422b14], bl
je 0x40c49d
cmp dword [0x4219f8], ebx
jne 0x40c4bf
push ebx
push 1
push 0x111
push dword [0x421a00]
call dword [sym.imp.USER32.dll_SendMessageW]
jmp 0x40c4bf
push ebx
call dword [sym.imp.KERNEL32.dll_Sleep]
call fcn.0040b416
cmp dword [0x421a00], ebx
jne 0x40c4b3
cmp byte [0x421a08], bl
pop ebx
je 0x40c4d5
jmp fcn.0040c2e5
ret