joyce8/EMBER2024-capa huggingface dataset:
Function at 0x411fff
Capabilities:
Query or enumerate registry value
Read .ini file

Disassembly:
push ebp
mov ebp, esp
sub esp, 0xc
push esi
xor esi, esi
push edi
cmp dword [ecx + 0x58], esi
je 0x412052
push esi
push dword [ebp + 8]
call fcn.004121e5
mov edi, eax
test edi, edi
je 0x41204d
lea eax, [ebp - 4]
mov dword [ebp - 4], 4
push eax
lea eax, [ebp - 8]
push eax
lea eax, [ebp - 0xc]
push eax
push esi
push dword [ebp + 0xc]
push edi
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
push edi
mov esi, eax
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
test esi, esi
jne 0x41204d
mov eax, dword [ebp - 8]
jmp 0x412064
mov eax, dword [ebp + 0x10]
jmp 0x412064
push dword [ecx + 0x6c]
push dword [ebp + 0x10]
push dword [ebp + 0xc]
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.dll_GetPrivateProfileIntA]
pop edi
pop esi
leave
ret 0xc

Function at 0x414b89
Capabilities:
Get graphical window text

Disassembly:
push 4
mov eax, 0x56a7cc
call fcn.005479b8
mov edi, ecx
xor ebx, ebx
cmp dword [edi + 0x74], ebx
jne 0x414baf
push dword [ebp + 0xc]
push dword [ebp + 8]
push dword [edi + 0x20]
call dword [sym.imp.USER32.dll_GetWindowTextA]
jmp 0x414c09
lea ecx, [ebp - 0x10]
call fcn.00405c30
mov edi, dword [edi + 0x74]
lea ecx, [ebp - 0x10]
push ecx
mov dword [ebp - 4], ebx
mov eax, dword [edi]
mov esi, dword [eax + 0x8c]
mov ecx, esi
call dword [0x579a14]
mov ecx, edi
call esi
mov esi, dword [ebp + 8]
push 0xffffffffffffffff
push dword [ebp - 0x10]
push dword [ebp + 0xc]
push esi
call fcn.00550353
push eax
call fcn.00407f80
add esp, 0x14
test esi, esi
je 0x414bfc
push esi
call fcn.005503e0
pop ecx
mov ebx, eax
mov ecx, dword [ebp - 0x10]
add ecx, 0xfffffff0
call fcn.0040cf92
mov eax, ebx
call fcn.00547986
ret 8

Function at 0x417002
Capabilities:
Extract resource via kernel32 functions

Disassembly:
push ebp
mov ebp, esp
push ebx
push esi
xor esi, esi
mov ebx, ecx
push edi
cmp dword [ebp + 8], esi
je 0x417041
call fcn.0040f478
push 0xf0
push dword [ebp + 8]
mov edi, dword [eax + 0xc]
push edi
call dword [sym.imp.KERNEL32.dll_FindResourceA]
test eax, eax
je 0x417041
push eax
push edi
call dword [sym.imp.KERNEL32.dll_LoadResource]
test eax, eax
je 0x417049
push eax
call dword [sym.imp.KERNEL32.dll_LockResource]
mov esi, eax
push esi
mov ecx, ebx
call fcn.0041470b
pop edi
pop esi
pop ebx
pop ebp
ret 4
Function at 0x417a49
Capabilities:
Extract resource via kernel32 functions

Disassembly:
push ebp
mov ebp, esp
push ecx
push ecx
push ebx
push esi
mov esi, ecx
push edi
test esi, esi
je 0x417ad5
cmp dword [esi + 0x20], 0
je 0x417ad5
push dword [esi + 0x20]
call dword [sym.imp.USER32.dll_IsWindow]
test eax, eax
je 0x417ad5
cmp dword [ebp + 8], 0
je 0x417ad5
xor edi, edi
mov ebx, edi
call fcn.0040f478
push 0x580f30
push dword [ebp + 8]
mov eax, dword [eax + 0xc]
push eax
mov dword [ebp - 4], eax
call dword [sym.imp.KERNEL32.dll_FindResourceA]
mov dword [ebp - 8], eax
test eax, eax
je 0x417ab9
mov ebx, dword [ebp - 4]
push eax
push ebx
call dword [sym.imp.KERNEL32.dll_SizeofResource]
push dword [ebp - 8]
mov edi, eax
push ebx
call dword [sym.imp.KERNEL32.dll_LoadResource]
test eax, eax
je 0x417ad5
push eax
call dword [sym.imp.KERNEL32.dll_LockResource]
mov ebx, eax
push edi
push ebx
push esi
call fcn.0042b484
mov edi, eax
add esp, 0xc
test edi, edi
je 0x417ad1
mov ecx, esi
call fcn.004177e7
mov eax, edi
jmp 0x417ad7
xor eax, eax
pop edi
pop esi
pop ebx
leave
ret 4

Function at 0x41c0b5
Capabilities:
Extract resource via kernel32 functions

Disassembly:
push ebp
mov ebp, esp
push ebx
mov ebx, dword [ebp + 8]
push esi
push edi
mov edi, ecx
mov dword [edi + 0x84], ebx
test ebx, 0xffff0000
jne 0x41c0e0
cmp dword [edi + 0x80], 0
jne 0x41c0e0
movzx eax, bx
mov dword [edi + 0x80], eax
call fcn.0040f478
push 5
push ebx
mov esi, dword [eax + 0xc]
push esi
call dword [sym.imp.KERNEL32.dll_FindResourceA]
push eax
push esi
call dword [sym.imp.KERNEL32.dll_LoadResource]
push esi
push dword [ebp + 0xc]
mov ecx, edi
push eax
call fcn.0041c34e
pop edi
pop esi
pop ebx
pop ebp
ret 8

Function at 0x41c10d
Capabilities:
Extract resource via kernel32 functions

Disassembly:
push ebp
mov ebp, esp
push ebx
push esi
push edi
mov ebx, ecx
xor esi, esi
call fcn.0040f478
push 5
push dword [ebp + 8]
mov edi, dword [eax + 0xc]
push edi
call dword [sym.imp.KERNEL32.dll_FindResourceA]
push eax
push edi
call dword [sym.imp.KERNEL32.dll_LoadResource]
test eax, eax
je 0x41c140
push eax
call dword [sym.imp.KERNEL32.dll_LockResource]
mov esi, eax
push edi
push dword [ebp + 0xc]
mov ecx, ebx
push esi
call fcn.0041c153
pop edi
pop esi
pop ebx
pop ebp
ret 8
Function at 0x41f039
Capabilities:
Connect to http server

Disassembly:
push 4
mov eax, 0x56af7a
call fcn.005479b8
mov esi, ecx
mov dword [ebp - 0x10], esi
push dword [ebp + 0x20]
mov edi, dword [ebp + 0xc]
push dword [ebp + 0x14]
mov ebx, dword [ebp + 8]
push edi
push ebx
call fcn.0041f124
and dword [ebp - 4], 0
lea ecx, [esi + 0x18]
mov dword [esi], vtable.CHttpConnection.0
call fcn.00405c30
mov byte [ebp - 4], 1
test edi, edi
jne 0x41f07b
xor eax, eax
jmp 0x41f082
push edi
call fcn.005503e0
pop ecx
push eax
push edi
lea ecx, [esi + 0x18]
call fcn.004062f0
push dword [esi + 8]
push dword [ebp + 0x10]
push 3
push dword [ebp + 0x1c]
push dword [ebp + 0x18]
push dword [ebp + 0x14]
push edi
push dword [ebx + 8]
call dword [sym.imp.WININET.dll_InternetConnectA]
mov dword [esi + 4], eax
test eax, eax
je 0x41f0c6
push dword [esi + 0xc]
mov ecx, 0x5d2fe4
push eax
call fcn.0042030a
mov eax, esi
call fcn.00547986
ret 0x1c
push 0
push dword [esi + 8]
call fcn.0041f87b
int3

Function at 0x41f23d
Capabilities:
Create http request

Disassembly:
push ebp
mov ebp, esp
mov eax, dword [ebp + 0xc]
push esi
mov esi, ecx
and dword [esi + 0x10], 0
and dword [esi + 0xc], 0
mov dword [esi + 4], eax
mov eax, dword [ebp + 8]
mov dword [esi], vtable.CInternetSession.0
test eax, eax
jne 0x41f266
call fcn.0040f478
mov eax, dword [eax + 0x10]
push dword [ebp + 0x1c]
push dword [ebp + 0x18]
push dword [ebp + 0x14]
push dword [ebp + 0x10]
push eax
call dword [sym.imp.WININET.dll_InternetOpenA]
mov dword [esi + 8], eax
test eax, eax
je 0x41f293
push esi
push eax
mov ecx, 0x5d2fe4
call fcn.0042030a
mov eax, esi
pop esi
pop ebp
ret 0x18
push 0
push dword [esi + 4]
call fcn.0041f87b
int3

Function at 0x429d39
Capabilities:
Get graphical window text

Disassembly:
push ebp
mov ebp, esp
push ecx
push esi
mov esi, dword [ebp + 8]
lea eax, [ebp - 4]
push eax
push dword [ebp + 0xc]
mov ecx, dword [esi + 4]
call fcn.00414ab2
push 0xfffffffffffffff0
push dword [ebp - 4]
call dword [sym.imp.USER32.dll_GetWindowLongA]
push dword [ebp + 0xc]
and eax, 3
mov ecx, esi
cmp al, 3
je 0x429d75
call fcn.00429f56
mov dword [esi + 0xc], 1
jmp 0x429d7a
call fcn.00429f56
cmp dword [esi], 0
je 0x429dc5
push edi
push dword [ebp - 4]
call dword [sym.imp.USER32.dll_GetWindowTextLengthA]
mov esi, dword [ebp + 0x10]
mov edi, eax
mov ecx, esi
test edi, edi
jle 0x429da0
push edi
call fcn.0040dd21
lea ecx, [edi + 1]
push ecx
jmp 0x429daf
push 0xff
call fcn.0040ce82
push 0x100
push eax
push dword [ebp - 4]
call dword [sym.imp.USER32.dll_GetWindowTextA]
push 0xffffffffffffffff
mov ecx, esi
call fcn.0040dd44
pop edi
jmp 0x429de9
mov esi, dword [ebp + 0x10]
push dword [esi]
push 0xffffffffffffffff
push 0x14d
push dword [ebp - 4]
call dword [sym.imp.USER32.dll_SendMessageA]
cmp eax, 0xffffffff
jne 0x429de9
push dword [esi]
push dword [ebp - 4]
call fcn.004242be
pop esi
leave
ret 0xc
Function at 0x429ead
Capabilities:
Get graphical window text

Disassembly:
push ebp
mov ebp, esp
push esi
mov esi, dword [ebp + 8]
mov ecx, esi
push edi
push dword [ebp + 0xc]
call fcn.00429f56
cmp dword [esi], 0
mov edi, eax
mov dword [esi + 0xc], 1
je 0x429ef5
push edi
call dword [sym.imp.USER32.dll_GetWindowTextLengthA]
lea ecx, [eax + 1]
push ecx
mov ecx, dword [ebp + 0x10]
push eax
call fcn.0040dd21
push eax
push edi
call dword [sym.imp.USER32.dll_GetWindowTextA]
mov ecx, dword [ebp + 0x10]
push 0xffffffffffffffff
call fcn.0040dd44
jmp 0x429f00
mov eax, dword [ebp + 0x10]
push dword [eax]
push edi
call fcn.004242be
pop edi
pop esi
pop ebp
ret 0xc

Function at 0x42cfd3
Capabilities:
Extract resource via kernel32 functions

Disassembly:
push ebp
mov ebp, esp
push ecx
push ebx
push esi
mov esi, dword [ebp + 8]
mov ebx, ecx
push edi
mov dword [ebp - 4], ebx
test byte [esi + 4], 1
mov edi, dword [esi + 0xc]
jne 0x42d029
push 5
push edi
push dword [esi + 8]
call dword [sym.imp.KERNEL32.dll_FindResourceA]
mov edi, eax
test edi, edi
jne 0x42d002
call fcn.00413a04
push edi
push dword [esi + 8]
call dword [sym.imp.KERNEL32.dll_LoadResource]
mov edi, eax
test edi, edi
jne 0x42d017
call fcn.00413a04
push edi
call dword [sym.imp.KERNEL32.dll_LockResource]
mov edi, eax
test edi, edi
jne 0x42d029
call fcn.00413a04
call fcn.0040f478
cmp dword [eax + 0x3c], 0
je 0x42d03e
push edi
mov ecx, ebx
call fcn.0042c6f6
mov edi, eax
push dword [ebp + 0xc]
push edi
call fcn.0042d224
mov ebx, eax
mov eax, dword [ebp - 4]
mov ecx, dword [eax + 0x88]
test ecx, ecx
je 0x42d067
push ecx
call dword [sym.imp.KERNEL32.dll_GlobalFree]
mov eax, dword [ebp - 4]
and dword [eax + 0x88], 0
test ebx, ebx
je 0x42d073
mov edi, ebx
mov dword [eax + 0x88], ebx
or dword [esi + 4], 1
mov dword [esi + 0xc], edi
pop edi
pop esi
pop ebx
leave
ret 8

Function at 0x46253d
Capabilities:
Extract resource via kernel32 functions

Disassembly:
push ebp
mov ebp, esp
push ecx
push ebx
push esi
mov esi, dword [ebp + 0xc]
mov dword [ebp - 4], ecx
push edi
test esi, esi
jne 0x462556
call fcn.0040f478
mov esi, dword [eax + 0xc]
push 0x58b21c
push dword [ebp + 8]
push esi
call dword [sym.imp.KERNEL32.dll_FindResourceA]
mov edi, eax
test edi, edi
je 0x462598
push edi
push esi
call dword [sym.imp.KERNEL32.dll_LoadResource]
test eax, eax
je 0x462598
push eax
call dword [sym.imp.KERNEL32.dll_LockResource]
mov ebx, eax
test ebx, ebx
je 0x462598
push edi
push esi
call dword [sym.imp.KERNEL32.dll_SizeofResource]
mov ecx, dword [ebp - 4]
push eax
push ebx
call fcn.004625a1
jmp 0x46259a
xor eax, eax
pop edi
pop esi
pop ebx
leave
ret 8
Function at 0x482269
Capabilities:
Get file system object information

Disassembly:
push 0x274
mov eax, 0x56f5a7
call fcn.005479eb
mov ebx, ecx
mov eax, dword [ebx + 0x14]
sub eax, 0x10
push eax
call fcn.004027a0
pop ecx
lea esi, [eax + 0x10]
mov dword [ebp - 0x278], esi
and dword [ebp - 4], 0
lea ecx, [ebp - 0x278]
push 0
push 0x57ffc8
call fcn.004111de
cmp eax, 0xffffffff
jne 0x482344
push 0
push 0x58b1d8
lea ecx, [ebp - 0x278]
call fcn.004111de
cmp eax, 0xffffffff
jne 0x482344
push 0
push 0x57ff34
lea ecx, [ebp - 0x278]
call fcn.004111de
cmp eax, 0xffffffff
jne 0x482344
mov eax, dword [ebx + 0x14]
sub eax, 0x10
push eax
call fcn.004027a0
add eax, 0x10
pop ecx
mov dword [ebp - 0x280], eax
xor edx, edx
mov byte [ebp - 4], 1
push edx
lea ecx, [ebp - 0x114]
push ecx
push 0x104
push edx
push eax
lea edi, [eax - 0x10]
push edx
mov dword [ebp - 0x27c], edi
call dword [sym.imp.KERNEL32.dll_SearchPathA]
test eax, eax
jne 0x482313
mov eax, dword [ebx]
mov edi, dword [eax + 0x14]
mov ecx, edi
call dword [0x579a14]
mov ecx, ebx
call edi
mov ecx, dword [ebp - 0x27c]
mov edi, eax
call fcn.0040cf92
jmp 0x48237d
lea eax, [ebp - 0x114]
push eax
call fcn.005503e0
pop ecx
push eax
lea eax, [ebp - 0x114]
push eax
lea ecx, [ebp - 0x278]
call fcn.004062f0
mov ecx, edi
mov byte [ebp - 4], 0
call fcn.0040cf92
mov esi, dword [ebp - 0x278]
push 0x105
push 0x160
lea eax, [ebp - 0x274]
push eax
push 0
push esi
call dword [sym.imp.SHELL32.dll_SHGetFileInfoA]
test eax, eax
je 0x48236a
mov edi, dword [ebp - 0x274]
jmp 0x48237d
mov eax, dword [ebx]
mov edi, dword [eax + 0x14]
mov ecx, edi
call dword [0x579a14]
mov ecx, ebx
call edi
mov edi, eax
lea ecx, [esi - 0x10]
call fcn.0040cf92
mov eax, edi
call fcn.0054799a
ret

Function at 0x5040e6
Capabilities:
Check if file exists
Get common file path
Get file attributes

Disassembly:
push ebp
mov ebp, esp
push ecx
and dword [ebp - 4], 0
lea eax, [ebp - 4]
push eax
call fcn.0055910e
pop ecx
test eax, eax
jne 0x504128
push dword [ebp - 4]
push dword [ebp + 0xc]
push dword [ebp + 8]
push str._s_s_X.tmp
push dword [ebp + 0x14]
push dword [ebp + 0x10]
call fcn.0040f0a8
add esp, 0x18
push dword [ebp + 0x10]
call dword [sym.imp.KERNEL32.dll_GetFileAttributesA]
cmp eax, 0xffffffff
jne 0x5040ee
leave
ret
push dword [ebp + 0x10]
push 0
push dword [ebp + 0xc]
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.dll_GetTempFileNameA]
leave
ret

Function at 0x560927
Capabilities:
Read file on windows

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
pop ebp
jmp fcn.0056079d

Function at 0x433006
Capabilities:
Encode data using xor

Disassembly:
call 0x43300c
nop
nop
nop
nop
pop eax
nop
add eax, 0x40a063
nop
nop
sub eax, 0x40a009
nop
nop
nop
mov ebx, dword [eax]
nop
nop
nop
nop
mov ecx, dword [eax + 4]
nop
nop
mov edx, dword [eax + 8]
nop
nop
nop
xor dword [ebx], edx
nop
nop
nop
nop
add ebx, 4
nop
nop
nop
nop
nop
cmp ebx, ecx
nop
nop
nop
jl 0x433030
nop
nop
nop
add eax, 0xc
nop
nop
cmp dword [eax], 0
nop
nop
nop
nop
nop
nop
jne 0x43301e
nop
nop
nop
popal
nop
nop
jmp 0x431219
Function at 0x40e960
Capabilities:
Accept command line arguments
Allocate thread local storage
Query environment variable
Terminate process

Disassembly:
push ebp
mov ebp, esp
push ebx
push esi
push edi
mov ebx, section..data
test word cs:[0x40efee], 4
jne 0x40ea56
push 0
call dword [sym.imp.OLE32.DLL_CoInitialize]
call fcn.0040ec24
mov dword [ebx + 0x108], 1
lea eax, [ebx + 0x294]
push eax
call dword [sym.imp.KERNEL32.DLL_GetVersionExA]
sub esp, 0x44
mov dword [esp], 0x44
mov dword [esp + 0x2c], 0
push esp
call dword [sym.imp.KERNEL32.DLL_GetStartupInfoA]
mov eax, 0xa
test dword [esp + 0x2c], 1
je 0x40e9cc
movzx eax, word [esp + 0x30]
add esp, 0x44
mov dword [ebx + 0xfe], eax
call dword [sym.imp.KERNEL32.DLL_GetCommandLineA]
call fcn.0040ee01
mov dword [ebx + 0xf4], eax
call dword [sym.imp.KERNEL32.DLL_GetEnvironmentStringsA]
mov dword [ebx + 0xf0], eax
push 0
call dword [sym.imp.KERNEL32.DLL_GetModuleHandleA]
mov dword [ebx + 0x104], eax
call fcn.0040eb0c
mov eax, 0xff
jb 0x40ea42
call fcn.0040ec6f
call fcn.0040ee51
mov eax, 0xff
jb 0x40ea24
push ebx
call fcn.0040eb7a
pop ebx
push eax
call fcn.0040eb7f
call fcn.0040eb66
push dword [ebx + 0xf0]
call dword [sym.imp.KERNEL32.DLL_FreeEnvironmentStringsA]
dec dword [ebx + 0x1c]
dec dword [ebx + 0x10]
pop eax
push eax
call dword [sym.imp.OLE32.DLL_CoUninitialize]
pop eax
pop edi
pop esi
pop ebx
pop ebp
push eax
call dword [sym.imp.KERNEL32.DLL_ExitProcess]
cmp dword [ebp + 0xc], 1
jne 0x40eab7
call fcn.0040ec24
lea eax, [ebx + 0x294]
push eax
call dword [sym.imp.KERNEL32.DLL_GetVersionExA]
call dword [sym.imp.KERNEL32.DLL_GetCommandLineA]
call fcn.0040ee01
mov dword [ebx + 0xf4], eax
call dword [sym.imp.KERNEL32.DLL_GetEnvironmentStringsA]
mov dword [ebx + 0xf0], eax
mov eax, dword [ebp + 8]
mov dword [ebx + 0x104], eax
mov eax, dword [ebp + 0x10]
mov dword [ebx + 0x10c], eax
call fcn.0040ec6f
call fcn.0040ee51
jb 0x40eaf2
call fcn.0040eb0c
jb 0x40eaf2
inc word [ebx + 0x102]
mov eax, dword [ebp + 0xc]
mov dword [ebx + 0x108], eax
cmp eax, 2
jne 0x40eaca
call fcn.0040eeb9
push ebx
call fcn.0040eb7a
pop ebx
cmp dword [ebx + 0x108], 3
jne 0x40eadf
call fcn.0040eef3
cmp dword [ebx + 0x108], 0
jne 0x40eafe
call fcn.0040eb7f
call fcn.0040eb66
push dword [ebx + 0xf0]
call dword [sym.imp.KERNEL32.DLL_FreeEnvironmentStringsA]
movzx eax, word [ebx + 0x102]
pop edi
pop esi
pop ebx
pop ebp
ret 0xc

Function at 0x40eb0c
Capabilities:
Allocate thread local storage

Disassembly:
call dword [sym.imp.KERNEL32.DLL_TlsAlloc]
cmp eax, 0xffffffff
stc
je 0x40eb65
mov dword [ebx + 0xe4], eax
mov dword [ebx + 0xec], 0
mov dword [ebx + 0xe8], 0
call fcn.0040eeb9
jb 0x40eb65
mov dword [ebx + 0xe8], eax
mov dword [eax + 0x4c], 8
call 0x40eb59
dec ebp
push ebx
and byte [ebx + 0x61], dl
outsb dx, byte [esi]
jae 0x40eb73
push ebx
jb 0x40ebc0
add byte [esi - 4], bl
mov ecx, 0xe
lea edi, [eax + 0x2c]
rep movsb byte es:[edi], byte [esi]
ret
call dword [sym.imp.KERNEL32.DLL_TlsFree]
ret
mov edi, 0x8d02e6c1
dec esp
xor eax, 0x15ff5100
nop
je 0x40ec0f
add bl, ch
scasd eax, dword es:[edi]
add byte [edx], cl
add byte [esi], cl
add byte [eax + eax - 0x1f], ah
call [edi - 0x75]
pop edi
mov esp, ebp
pop ebp
Function at 0x40ec6f
Capabilities:
Get system information on windows

Disassembly:
mov word [ebx + 0xf8], 0
mov ah, byte [ebx + 0x298]
mov al, byte [ebx + 0x29c]
mov word [ebx + 0xfa], ax
mov eax, dword [ebx + 0x2a4]
test al, 1
jne 0x40ec9f
test al, 2
je 0x40ecc7
mov ax, 0x400
jmp 0x40ecc0
mov dx, word [ebx + 0x2a0]
cmp dx, 0x3b6
mov ax, pe_nt_image_headers32
je 0x40ecc0
cmp dx, 0x457
mov ax, 0x100
je 0x40ecc0
mov ax, 0x200
or word [ebx + 0xf8], ax
sub esp, 0x24
push esp
cld
call dword [sym.imp.KERNEL32.DLL_GetSystemInfo]
mov byte [ebx + 0xfc], 3
test word [ebx + 0xf8], 0x380
jne 0x40ed06
test word [ebx + 0xf8], 0x400
je 0x40ed3f
cmp word [esp], 0
jne 0x40ed3f
mov al, byte [esp + 0x20]
cmp al, 3
jb 0x40ed3f
cmp al, 5
jbe 0x40ed1c
mov al, 5
jmp 0x40ed1c
mov eax, dword [esp + 0x18]
cmp eax, 0x182
jbe 0x40ed3f
cmp eax, 0x24a
mov al, 5
jae 0x40ed1c
mov al, 4
mov byte [ebx + 0xfc], al
cmp al, 5
jb 0x40ed3f
mov eax, 1
push ebx
cpuid
pop ebx
test edx, 0x800000
je 0x40ed3f
or word [ebx + 0xf8], 0x40
add esp, 0x24
push esp
push esp
push 0x20019
push 0
call 0x40ed83
dec eax
inc ecx
push edx
inc esp
push edi
inc ecx
push edx
inc ebp
pop esp
inc esp
inc ebp
push ebx
inc ebx
push edx
dec ecx
push eax
push esp
dec ecx
dec edi
dec esi
pop esp
push ebx
jns 0x40eddb
je 0x40edcf
insd dword es:[edi], dx
pop esp
inc esi
insb byte es:[edi], dx
outsd dx, dword [esi]
popal
je 0x40eddb
outsb dx, byte [esi]
push eax
outsd dx, dword [esi]
imul ebp, dword [esi + 0x74], 0x636f7250
jae 0x40edf3
outsd dx, dword [esi]
jb 0x40ed83
push 0x80000002
call dword [sym.imp.ADVAPI32.DLL_RegOpenKeyExA]
test eax, eax
pop edx
jne 0x40eda5
mov ax, 2
or word [0x4140f8], ax
push edx
call dword [sym.imp.ADVAPI32.DLL_RegCloseKey]
ret
add byte [ebx], dh
sar byte [ecx + 0xcc], 0x8d
jnp 0x40edea
stosb byte es:[edi], al
Function at 0x4068fb
Capabilities:
Get common file path

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x23c
push esi
mov esi, 0x104
lea eax, [ebp - 0x23c]
push esi
push eax
call dword [sym.imp.KERNEL32.dll_GetSystemDirectoryW]
cmp eax, esi
pop esi
jbe 0x40691f
xor eax, eax
test eax, eax
je 0x406932
cmp word [ebp + eax*2 - 0x23e], 0x5c
je 0x406932
xor ecx, ecx
jmp 0x406935
xor ecx, ecx
inc ecx
push dword [ebp + 8]
lea ecx, [ecx*2 + 0x40a014]
lea eax, [ebp + eax*2 - 0x23c]
push ecx
push str._s_S.dll
push eax
call dword [sym.imp.USER32.dll_wsprintfW]
add esp, 0x10
lea eax, [ebp - 0x23c]
push 8
push 0
push eax
call dword [sym.imp.KERNEL32.dll_LoadLibraryExW]
leave
ret 4

Function at 0x406a58
Capabilities:
Encode data using xor
Hash data with crc32

Disassembly:
cmp dword [0x43110c], 0
push esi
jne 0x406a8f
xor ecx, ecx
push 8
mov eax, ecx
pop esi
mov edx, eax
and dl, 1
neg dl
sbb edx, edx
and edx, 0xedb88320
shr eax, 1
xor eax, edx
dec esi
jne 0x406a69
mov dword [ecx*4 + 0x431108], eax
inc ecx
cmp ecx, 0x100
jl 0x406a64
mov edx, dword [esp + 0x10]
mov eax, dword [esp + 8]
test edx, edx
not eax
jbe 0x406ac0
mov ecx, dword [esp + 0xc]
push edi
movzx edi, byte [ecx]
mov esi, eax
and esi, 0xff
xor esi, edi
shr eax, 8
mov esi, dword [esi*4 + 0x431108]
xor eax, esi
inc ecx
dec edx
jne 0x406aa2
pop edi
not eax
pop esi
ret 0xc

Function at 0x432000
Capabilities:
Authenticate hmac
Encode data using xor
Packed with generic packer

Disassembly:
pushal
nop
nop
nop
nop
nop
nop
mov eax, section..text
mov ebx, 0x40c7d0
nop
mov ecx, 0x5cb56714
nop
nop
test eax, eax
nop
nop
nop
nop
nop
nop
je 0x43204e
nop
nop
xor dword [eax], ecx
nop
nop
nop
nop
nop
nop
nop
nop
inc eax
nop
nop
nop
inc eax
nop
nop
nop
nop
nop
nop
inc eax
nop
nop
inc eax
nop
nop
nop
nop
nop
nop
nop
nop
cmp eax, ebx
nop
nop
jne 0x432024
nop
nop
mov eax, section..data
nop
mov ebx, 0x42f314
nop
mov ecx, 0x2d41104e
nop
nop
nop
nop
test eax, eax
nop
nop
nop
nop
nop
je 0x432084
nop
xor dword [eax], ecx
nop
nop
nop
add eax, 4
nop
nop
nop
cmp eax, ebx
nop
nop
nop
nop
nop
nop
nop
jne 0x43206c
nop
nop
popal
nop
nop
nop
nop
jmp 0x431219
Function at 0x4301a0
Capabilities:
Packed with generic packer

Disassembly:
pushal
mov esi, section.UPX1
lea edi, [esi - 0x24000]
push edi
or ebp, 0xffffffff
jmp 0x4301c2
mov al, byte [esi]
inc esi
mov byte [edi], al
inc edi
add ebx, ebx
jne 0x4301c9
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
jb 0x4301b8
mov eax, 1
add ebx, ebx
jne 0x4301db
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc eax, eax
add ebx, ebx
jae 0x4301d0
jne 0x4301ec
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
jae 0x4301d0
xor ecx, ecx
sub eax, 3
jb 0x430200
shl eax, 8
mov al, byte [esi]
inc esi
xor eax, 0xffffffff
je 0x430272
mov ebp, eax
add ebx, ebx
jne 0x43020b
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc ecx, ecx
add ebx, ebx
jne 0x430218
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc ecx, ecx
jne 0x43023c
inc ecx
add ebx, ebx
jne 0x430228
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc ecx, ecx
add ebx, ebx
jae 0x43021d
jne 0x430239
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
jae 0x43021d
add ecx, 2
cmp ebp, 0xfffff300
adc ecx, 1
lea edx, [edi + ebp]
cmp ebp, 0xfffffffc
jbe 0x43025c
mov al, byte [edx]
inc edx
mov byte [edi], al
inc edi
dec ecx
jne 0x43024d
jmp 0x4301be
mov eax, dword [edx]
add edx, 4
mov dword [edi], eax
add edi, 4
sub ecx, 4
ja 0x43025c
add edi, ecx
jmp 0x4301be
pop esi
mov edi, esi
mov ecx, 0xfcc
mov al, byte [edi]
inc edi
sub al, 0xe8
cmp al, 1
ja 0x43027a
cmp byte [edi], 0x11
jne 0x43027a
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 0x43027f
lea edi, [esi + 0x29000]
mov eax, dword [edi]
or eax, eax
je 0x4302ee
mov ebx, dword [edi + 4]
lea eax, [eax + esi + 0x30db4]
add ebx, esi
push eax
add edi, 8
call dword [esi + 0x30e68]
xchg ebp, eax
mov al, byte [edi]
inc edi
or al, al
je 0x4302ac
mov ecx, edi
push edi
dec eax
repne scasb al, byte es:[edi]
push ebp
call dword [esi + 0x30e6c]
or eax, eax
je 0x4302e8
mov dword [ebx], eax
add ebx, 4
jmp 0x4302c9
call dword [esi + 0x30e70]
popal
jmp 0x41b24c