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

Disassembly:
push ebp
mov ebp, esp
push ecx
push ebx
push esi
mov esi, dword [ebp + 0x14]
mov ebx, ecx
push edi
mov edi, dword [ebp + 0xc]
cmp edi, esi
jne 0x41026a
push 0x126
push str.RegistryEx.cpp
push str.pszValue___pszDefaultValue
call fcn.0050d700
add esp, 0xc
cmp dword [ebp + 8], 0
mov dword [ebp + 0xc], 0
je 0x41037a
test edi, edi
je 0x41037a
mov edx, dword [ebp + 0x10]
test edx, edx
je 0x41037a
mov eax, dword [ebx + 8]
test eax, eax
je 0x410388
mov ebx, dword [ebp + 0x18]
mov ecx, dword [edx]
mov dword [ebp + 0x14], eax
mov dword [ebp + 0xc], ecx
test ebx, ebx
je 0x4102c9
lea ecx, [ebp + 0x14]
push ecx
push 0x20019
push 0
push ebx
push eax
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
mov edx, dword [ebp + 0x10]
test eax, eax
jne 0x410388
mov eax, dword [ebp + 0x14]
push edx
push edi
lea ecx, [ebp - 4]
push ecx
push 0
push dword [ebp + 8]
push eax
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
mov dword [ebp + 8], eax
test ebx, ebx
je 0x4102eb
push dword [ebp + 0x14]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov ecx, dword [ebp - 4]
cmp ecx, 2
jne 0x410365
mov eax, dword [ebp + 0xc]
xor ecx, ecx
mov edx, 2
mul edx
seto cl
neg ecx
or ecx, eax
push ecx
call fcn.00411018
mov ebx, eax
add esp, 4
test ebx, ebx
je 0x410362
push dword [ebp + 0xc]
push ebx
push edi
call dword [sym.imp.KERNEL32.dll_ExpandEnvironmentStringsW]
mov edx, edi
mov ecx, ebx
sub edx, ebx
jmp 0x410330
movzx eax, word [ecx]
lea ecx, [ecx + 2]
mov word [edx + ecx - 2], ax
test ax, ax
jne 0x410330
mov ecx, edi
lea edx, [ecx + 2]
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x410345
mov eax, dword [ebp + 0x10]
sub ecx, edx
sar ecx, 1
push ebx
mov dword [eax], ecx
call fcn.00411021
add esp, 4
mov ecx, dword [ebp - 4]
cmp dword [ebp + 8], 0
jne 0x410385
cmp ecx, 1
je 0x4103c2
cmp ecx, 7
je 0x4103c2
cmp ecx, 2
je 0x4103c2
pop edi
pop esi
xor eax, eax
pop ebx
mov esp, ebp
pop ebp
ret 0x14
mov edx, dword [ebp + 0x10]
test esi, esi
je 0x41037a
mov ecx, esi
lea ebx, [ecx + 2]
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x410391
sub ecx, ebx
sar ecx, 1
lea ecx, [ecx*2 + 2]
cmp ecx, dword [ebp + 0xc]
ja 0x41037a
sub edi, esi
mov edi, edi
movzx eax, word [esi]
lea esi, [esi + 2]
mov word [edi + esi - 2], ax
test ax, ax
jne 0x4103b0
mov dword [edx], ecx
pop edi
pop esi
mov eax, 1
pop ebx
mov esp, ebp
pop ebp
ret 0x14

Function at 0x4133e9
Capabilities:
Extract resource via kernel32 functions

Disassembly:
push ebp
mov ebp, esp
push ecx
push ebx
push esi
push edi
mov dword [ebp - 4], ecx
xor esi, esi
call fcn.004178a1
push 5
push dword [ebp + 8]
mov ebx, dword [eax + 0xc]
push ebx
call dword [sym.imp.KERNEL32.dll_FindResourceW]
push eax
push ebx
call dword [sym.imp.KERNEL32.dll_LoadResource]
mov edi, eax
test edi, edi
je 0x413420
push edi
call dword [sym.imp.KERNEL32.dll_LockResource]
mov esi, eax
mov ecx, dword [ebp - 4]
push ebx
push dword [ebp + 0xc]
push esi
call fcn.00413441
push edi
mov esi, eax
call dword [sym.imp.KERNEL32.dll_FreeResource]
pop edi
mov eax, esi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 8
Function at 0x41acbf
Capabilities:
Extract resource via kernel32 functions

Disassembly:
push ebp
mov ebp, esp
push ecx
push ebx
push esi
push edi
xor edi, edi
mov dword [ebp - 4], ecx
mov esi, edi
cmp dword [ebp + 8], esi
je 0x41ad04
call fcn.004178a1
push 0xf0
push dword [ebp + 8]
mov ebx, dword [eax + 0xc]
push ebx
call dword [sym.imp.KERNEL32.dll_FindResourceW]
test eax, eax
je 0x41ad04
push eax
push ebx
call dword [sym.imp.KERNEL32.dll_LoadResource]
mov esi, eax
test esi, esi
je 0x41ad20
push esi
call dword [sym.imp.KERNEL32.dll_LockResource]
mov edi, eax
mov ecx, dword [ebp - 4]
push edi
call fcn.0042107d
mov ebx, eax
test edi, edi
je 0x41ad1e
test esi, esi
je 0x41ad1e
push esi
call dword [sym.imp.KERNEL32.dll_FreeResource]
mov eax, ebx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 4

Function at 0x42911e
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.0041f469
push 0xfffffffffffffff0
push dword [ebp - 4]
call dword [sym.imp.USER32.dll_GetWindowLongW]
push dword [ebp + 0xc]
and eax, 3
mov ecx, esi
cmp al, 3
je 0x42915a
call fcn.0042933d
mov dword [esi + 0xc], 1
jmp 0x42915f
call fcn.0042933d
cmp dword [esi], 0
je 0x4291a8
push dword [ebp - 4]
call dword [sym.imp.USER32.dll_GetWindowTextLengthW]
mov esi, dword [ebp + 0x10]
test eax, eax
jle 0x429182
lea ecx, [eax + 1]
push ecx
push eax
mov ecx, esi
call fcn.00411b29
jmp 0x429193
push 0xff
mov ecx, esi
call fcn.004078d0
push pe_nt_image_headers32
push eax
push dword [ebp - 4]
call dword [sym.imp.USER32.dll_GetWindowTextW]
push 0xffffffffffffffff
mov ecx, esi
call fcn.00411d5a
jmp 0x4291cc
mov esi, dword [ebp + 0x10]
push dword [esi]
push 0xffffffffffffffff
push 0x14d
push dword [ebp - 4]
call dword [sym.imp.USER32.dll_SendMessageW]
cmp eax, 0xffffffff
jne 0x4291cc
push dword [esi]
push dword [ebp - 4]
call fcn.004207d3
pop esi
mov esp, ebp
pop ebp
ret 0xc

Function at 0x429292
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.0042933d
cmp dword [esi], 0
mov edi, eax
mov dword [esi + 0xc], 1
je 0x4292da
push edi
call dword [sym.imp.USER32.dll_GetWindowTextLengthW]
lea ecx, [eax + 1]
push ecx
mov ecx, dword [ebp + 0x10]
push eax
call fcn.00411b29
push eax
push edi
call dword [sym.imp.USER32.dll_GetWindowTextW]
mov ecx, dword [ebp + 0x10]
push 0xffffffffffffffff
call fcn.00411d5a
jmp 0x4292e5
mov eax, dword [ebp + 0x10]
push dword [eax]
push edi
call fcn.004207d3
pop edi
pop esi
pop ebp
ret 0xc
Function at 0x4cd856
Capabilities:
Get file system object information

Disassembly:
push 0x4c8
mov eax, 0x551021
call fcn.00530fe4
mov ebx, ecx
mov eax, dword [ebx + 0x14]
sub eax, 0x10
push eax
call fcn.00411899
pop ecx
lea esi, [eax + 0x10]
mov dword [ebp - 0x4d0], esi
and dword [ebp - 4], 0
lea ecx, [ebp - 0x4d0]
push 0
push 0x5588d0
call fcn.00414fe0
cmp eax, 0xffffffff
jne 0x4cd90a
push 0
push 0x558c8c
lea ecx, [ebp - 0x4d0]
call fcn.00414fe0
cmp eax, 0xffffffff
jne 0x4cd90a
push 0
push 0x559f8c
lea ecx, [ebp - 0x4d0]
call fcn.00414fe0
cmp eax, 0xffffffff
jne 0x4cd90a
mov eax, dword [ebx + 0x14]
sub eax, 0x10
push eax
call fcn.00411899
pop ecx
lea edi, [eax + 0x10]
mov dword [ebp - 0x4d4], edi
xor ecx, ecx
mov byte [ebp - 4], 1
push ecx
lea eax, [ebp - 0x218]
push eax
push 0x104
push ecx
push edi
push ecx
call dword [sym.imp.KERNEL32.dll_SearchPathW]
test eax, eax
jne 0x4cd8e6
mov eax, dword [ebx]
mov ecx, ebx
call dword [eax + 0x14]
lea ecx, [edi - 0x10]
mov ebx, eax
call fcn.00407a20
jmp 0x4cd939
lea eax, [ebp - 0x218]
push eax
lea ecx, [ebp - 0x4d0]
call fcn.00411d86
lea ecx, [edi - 0x10]
mov byte [ebp - 4], 0
call fcn.00407a20
mov esi, dword [ebp - 0x4d0]
push 0x105
push 0x2b4
lea eax, [ebp - 0x4cc]
push eax
push 0
push esi
call dword [sym.imp.SHELL32.dll_SHGetFileInfoW]
test eax, eax
je 0x4cd930
mov ebx, dword [ebp - 0x4cc]
jmp 0x4cd939
mov eax, dword [ebx]
mov ecx, ebx
call dword [eax + 0x14]
mov ebx, eax
lea ecx, [esi - 0x10]
call fcn.00407a20
mov eax, ebx
call fcn.00530f93
ret
Function at 0x540c38
Capabilities:
Link many functions at runtime
Print debug messages

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x24
mov eax, dword [0x5a92d0]
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
xor esi, esi
mov eax, dword [ebp + 0xc]
push esi
mov dword [ebp - 0x20], eax
call ebx
mov edi, eax
mov dword [ebp - 0x18], edi
call fcn.00534ad3
mov dword [ebp - 0x14], eax
cmp dword [0x5c8354], esi
jne 0x540d2b
push 0x800
push esi
push 0x589410
call dword [sym.imp.KERNEL32.dll_LoadLibraryExW]
mov edi, eax
test edi, edi
jne 0x540cb8
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0x57
jne 0x540e0b
push esi
push esi
push 0x589410
call dword [sym.imp.KERNEL32.dll_LoadLibraryExW]
mov edi, eax
test edi, edi
je 0x540e0b
push 0x589428
push edi
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
test eax, eax
je 0x540e0b
push eax
call ebx
push 0x589434
push edi
mov dword [0x5c8354], eax
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
push eax
call ebx
push 0x589444
push edi
mov dword [0x5c8358], eax
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
push eax
call ebx
push str.GetUserObjectInformationW
push edi
mov dword [0x5c835c], eax
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
push eax
call ebx
mov dword [0x5c8364], eax
test eax, eax
je 0x540d28
push str.GetProcessWindowStation
push edi
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
push eax
call ebx
mov dword [0x5c8360], eax
mov edi, dword [ebp - 0x18]
call dword [sym.imp.KERNEL32.dll_IsDebuggerPresent]
test eax, eax
je 0x540d50
mov eax, dword [ebp - 0x1c]
test eax, eax
je 0x540d43
push eax
call dword [sym.imp.KERNEL32.dll_OutputDebugStringW]
cmp dword [ebp - 0x14], esi
je 0x540d65
push 4
pop eax
jmp 0x540e0d
cmp dword [ebp - 0x14], esi
je 0x540d65
push dword [0x5c8354]
call dword [sym.imp.KERNEL32.dll_DecodePointer]
push 3
jmp 0x540d4a
mov eax, dword [0x5c8360]
mov ebx, dword [sym.imp.KERNEL32.dll_DecodePointer]
cmp eax, edi
je 0x540dc3
cmp dword [0x5c8364], edi
je 0x540dc3
push eax
call ebx
push dword [0x5c8364]
mov dword [ebp - 0x14], eax
call ebx
mov ecx, dword [ebp - 0x14]
mov dword [ebp - 0x18], eax
test ecx, ecx
je 0x540dc3
test eax, eax
je 0x540dc3
call ecx
test eax, eax
je 0x540db8
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 0x540db8
test byte [ebp - 8], 1
jne 0x540dc3
mov edi, dword [ebp + 0x10]
or edi, 0x200000
jmp 0x540df3
mov eax, dword [0x5c8358]
cmp eax, edi
je 0x540df0
push eax
call ebx
test eax, eax
je 0x540df0
call eax
mov esi, eax
test esi, esi
je 0x540df0
mov eax, dword [0x5c835c]
cmp eax, edi
je 0x540df0
push eax
call ebx
test eax, eax
je 0x540df0
push esi
call eax
mov esi, eax
mov edi, dword [ebp + 0x10]
push dword [0x5c8354]
call ebx
test eax, eax
je 0x540e0b
push edi
push dword [ebp - 0x20]
push dword [ebp - 0x1c]
push esi
call eax
jmp 0x540e0d
xor eax, eax
mov ecx, dword [ebp - 4]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.0052d5fc
mov esp, ebp
pop ebp
ret
Function at 0x403d40
Capabilities:
Get common file path
Get disk information

Disassembly:
push ebp
mov ebp, esp
and esp, 0xffffffc0
sub esp, 0x834
cmp dword [0x5e8438], 0x400
push ebx
push esi
push edi
jne 0x403df5
push 0
lea eax, [esp + 0x44]
push eax
push 0x403694
call dword [sym.imp.KERNEL32.dll_QueryDosDeviceW]
push 0
call fcn.00403ff9
add esp, 4
push 0
push 0
call fcn.004044fc
push 0
push 0
call fcn.00404033
push 0
push 0
call fcn.004042ac
push 0
call fcn.0040471c
add esp, 0x1c
push 0
push 0
push 0
call fcn.00404633
fldz
push ecx
fst qword [esp + 8]
fstp qword [esp]
call fcn.00403e90
add esp, 8
fstp st(0)
mov eax, esp
mov dword [eax], 0
mov dword [eax + 4], 0
call fcn.00403ed0
fstp st(0)
mov eax, esp
mov dword [eax], 0
mov dword [eax + 4], 0
call fcn.004041c0
fstp st(0)
push 0
call fcn.00404790
add esp, 0xc
mov edi, dword [sym.imp.KERNEL32.dll_SetFilePointer]
xor esi, esi
lea ecx, [ecx]
push 0
push 0
push 0
push 0
call edi
cmp esi, 0x4f4d1f2
jg 0x403e1b
inc esi
cmp esi, 0x33b4f19
jl 0x403e00
mov edi, dword [sym.imp.KERNEL32.dll_GetTickCount]
mov ebx, dword [sym.imp.KERNEL32.dll_GetLastError]
xor esi, esi
lea esp, [esp]
call edi
call ebx
cmp esi, 0x12e8236
jg 0x403e45
inc esi
cmp esi, 0x2ff8b
jl 0x403e30
mov ecx, dword [0x444c5c]
mov dword [0x5e8438], ecx
call fcn.00403a20
mov esi, dword [sym.imp.KERNEL32.dll_GetCurrentDirectoryA]
mov edi, 0x2ec37
mov ebx, 0x51f
cmp dword [0x5e8438], ebx
jne 0x403e77
lea edx, [esp + 0x40]
push edx
push 0
call esi
dec edi
jne 0x403e66
pop edi
pop esi
xor eax, eax
pop ebx
mov esp, ebp
pop ebp
ret 0x10

Function at 0x40940f
Capabilities:
Terminate process

Disassembly:
cmp ecx, dword [0x441420]
jne 0x409419
repz ret
jmp fcn.0040e00f
Function at 0x40d610
Capabilities:
Link many functions at runtime

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x24
mov eax, dword [0x441420]
xor eax, ebp
mov dword [ebp - 4], eax
mov eax, dword [ebp + 8]
push ebx
mov dword [ebp - 0x20], eax
mov eax, dword [ebp + 0xc]
push esi
push edi
mov dword [ebp - 0x1c], eax
call fcn.00407b0d
and dword [ebp - 0x14], 0
cmp dword [0x4593c8], 0
mov dword [ebp - 0x18], eax
jne 0x40d6c3
push 0x40350c
call dword [sym.imp.KERNEL32.dll_LoadLibraryW]
mov ebx, eax
test ebx, ebx
je 0x40d76b
mov edi, dword [sym.imp.KERNEL32.dll_GetProcAddress]
push 0x403500
push ebx
call edi
test eax, eax
je 0x40d76b
mov esi, dword [sym.imp.KERNEL32.dll_EncodePointer]
push eax
call esi
push 0x4034f0
push ebx
mov dword [0x4593c8], eax
call edi
push eax
call esi
push 0x4034dc
push ebx
mov dword [0x4593cc], eax
call edi
push eax
call esi
push 0x4034c0
push ebx
mov dword [0x4593d0], eax
call edi
push eax
call esi
mov dword [0x4593d8], eax
test eax, eax
je 0x40d6c3
push 0x4034a8
push ebx
call edi
push eax
call esi
mov dword [0x4593d4], eax
mov eax, dword [0x4593d4]
mov ecx, dword [ebp - 0x18]
mov esi, dword [sym.imp.KERNEL32.dll_DecodePointer]
cmp eax, ecx
je 0x40d71c
cmp dword [0x4593d8], ecx
je 0x40d71c
push eax
call esi
push dword [0x4593d8]
mov edi, eax
call esi
mov ebx, eax
test edi, edi
je 0x40d71c
test ebx, ebx
je 0x40d71c
call edi
test eax, eax
je 0x40d713
lea ecx, [ebp - 0x24]
push ecx
push 0xc
lea ecx, [ebp - 0x10]
push ecx
push 1
push eax
call ebx
test eax, eax
je 0x40d713
test byte [ebp - 8], 1
jne 0x40d71c
or dword [ebp + 0x10], 0x200000
jmp 0x40d74f
mov eax, dword [0x4593cc]
cmp eax, dword [ebp - 0x18]
je 0x40d74f
push eax
call esi
test eax, eax
je 0x40d74f
call eax
mov dword [ebp - 0x14], eax
test eax, eax
je 0x40d74f
mov eax, dword [0x4593d0]
cmp eax, dword [ebp - 0x18]
je 0x40d74f
push eax
call esi
test eax, eax
je 0x40d74f
push dword [ebp - 0x14]
call eax
mov dword [ebp - 0x14], eax
push dword [0x4593c8]
call esi
test eax, eax
je 0x40d76b
push dword [ebp + 0x10]
push dword [ebp - 0x1c]
push dword [ebp - 0x20]
push dword [ebp - 0x14]
call eax
jmp 0x40d76d
xor eax, eax
mov ecx, dword [ebp - 4]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.0040940f
leave
ret

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

Disassembly:
pushal
nop
nop
nop
nop
nop
nop
mov eax, section..text
nop
mov ebx, 0x40de38
mov ecx, 0x458267b
nop
nop
nop
nop
test eax, eax
nop
nop
je 0x43304e
nop
nop
nop
nop
nop
xor dword [eax], ecx
nop
nop
nop
nop
inc eax
nop
nop
nop
nop
nop
nop
nop
inc eax
nop
nop
nop
nop
nop
inc eax
nop
nop
nop
nop
nop
nop
inc eax
nop
nop
nop
nop
cmp eax, ebx
jne 0x433024
nop
nop
nop
nop
nop
mov eax, section..data
mov ebx, 0x4304d8
nop
nop
mov ecx, 0x16574f87
nop
nop
nop
test eax, eax
nop
nop
nop
nop
je 0x433084
nop
nop
nop
nop
xor dword [eax], ecx
nop
nop
nop
add eax, 4
nop
nop
nop
nop
nop
cmp eax, ebx
nop
nop
nop
jne 0x43306c
nop
nop
popal
nop
nop
nop
nop
jmp 0x431219
Function at 0x41c500
Capabilities:
Query environment variable

Disassembly:
push ebx
push esi
push edi
push ebp
push ecx
cmp dword [0x427850], 0
jne 0x41c581
cmp dword [0x427870], 0
jne 0x41c530
call sub.KERNEL32.DLL_GetEnvironmentStrings
mov dword [0x427870], eax
test eax, eax
jne 0x41c530
push str.GetEnvironmentStrings_failed
call fcn.0041bd1c
pop ecx
xor ebp, ebp
xor esi, esi
mov ebx, dword [0x427870]
jmp 0x41c544
lea eax, [edi + 1]
inc esi
add ebp, eax
add ebx, eax
push ebx
call fcn.004168a4
pop ecx
mov edi, eax
test eax, eax
jne 0x41c53c
lea edi, [ebp + 1]
push edi
call fcn.004161a8
pop ecx
mov ebx, eax
mov dword [0x427854], ebx
test ebx, ebx
jne 0x41c56e
xor eax, eax
jmp 0x41c644
push edi
mov edx, dword [0x427870]
push edx
push ebx
call fcn.00416754
add esp, 0xc
jmp 0x41c5a1
xor esi, esi
mov ebx, dword [0x427850]
jmp 0x41c59b
push eax
call fcn.004168a4
pop ecx
test eax, eax
jne 0x41c597
dec esi
inc esi
add ebx, 4
mov eax, dword [ebx]
test eax, eax
jne 0x41c58b
lea ebx, [esi + 4]
push 4
mov dword [0x427858], ebx
inc ebx
push ebx
call fcn.00415c80
add esp, 8
test eax, eax
mov dword [esp], eax
jne 0x41c5c4
xor eax, eax
jmp 0x41c644
cmp dword [0x427850], 0
jne 0x41c5f5
xor esi, esi
mov ebx, dword [0x427854]
mov eax, dword [esp]
mov ebp, eax
jmp 0x41c5e6
mov dword [ebp], ebx
add ebp, 4
inc esi
inc edi
add ebx, edi
push ebx
call fcn.004168a4
pop ecx
mov edi, eax
test eax, eax
jne 0x41c5dc
jmp 0x41c626
xor esi, esi
mov ebx, dword [0x427850]
mov eax, dword [esp]
mov edi, eax
jmp 0x41c620
push eax
call fcn.004168a4
pop ecx
test eax, eax
je 0x41c615
mov eax, dword [ebx]
mov dword [edi], eax
jmp 0x41c619
dec esi
add edi, 0xfffffffc
add edi, 4
inc esi
add ebx, 4
mov eax, dword [ebx]
test eax, eax
jne 0x41c604
mov eax, dword [0x427850]
test eax, eax
je 0x41c636
push eax
call fcn.004161b8
pop ecx
mov edx, dword [esp]
mov eax, 1
mov dword [0x427850], edx
pop edx
pop ebp
pop edi
pop esi
pop ebx
ret

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

Disassembly:
pushal
nop
nop
nop
nop
nop
mov eax, section..text
mov ebx, 0x40915c
nop
mov ecx, 0x31290264
nop
test eax, eax
nop
nop
nop
nop
je 0x43104e
nop
nop
nop
nop
xor dword [eax], ecx
nop
nop
nop
nop
nop
nop
nop
nop
inc eax
nop
nop
inc eax
nop
nop
nop
nop
inc eax
nop
nop
nop
nop
nop
nop
nop
nop
nop
inc eax
nop
nop
nop
nop
cmp eax, ebx
nop
nop
jne 0x431024
nop
nop
nop
nop
mov eax, section..data
nop
mov ebx, 0x42f3f8
nop
mov ecx, 0x67767373
test eax, eax
nop
nop
nop
nop
nop
je 0x431084
nop
nop
nop
xor dword [eax], ecx
nop
nop
nop
nop
nop
add eax, 4
nop
nop
cmp eax, ebx
nop
nop
nop
nop
nop
nop
nop
jne 0x43106c
nop
nop
nop
nop
nop
nop
popal
jmp 0x401219
Function at 0x44b610
Capabilities:
Accept command line arguments

Disassembly:
mov ecx, dword [sym.imp.KERNEL32.dll_RaiseException]
mov al, 2
mov byte [0x663200], al
mov byte [0xa656e4], al
mov eax, 0xd7b0
push esi
mov dword [0x663218], ecx
mov word [0xa6573c], ax
mov word [0xa6573e], ax
mov word [0x663614], ax
call dword [sym.imp.KERNEL32.dll_GetCommandLineA]
mov esi, dword [sym.imp.KERNEL32.dll_GetVersion]
mov dword [0x663248], eax
call esi
and eax, 0x80000000
cmp eax, 0x80000000
je 0x44b665
call esi
cmp al, 4
ja 0x44b66b
call dword [sym.imp.KERNEL32.dll_GetThreadLocale]
call dword [sym.imp.KERNEL32.dll_GetCurrentThreadId]
mov dword [0x663244], eax
pop esi
ret

Function at 0x433006
Capabilities:
Encode data using xor

Disassembly:
call 0x43300c
nop
nop
nop
nop
nop
pop eax
add eax, 0x40a063
nop
sub eax, 0x40a009
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
xor dword [ebx], edx
nop
nop
nop
nop
nop
add ebx, 4
nop
nop
cmp ebx, ecx
nop
nop
nop
nop
jl 0x433030
nop
nop
nop
add eax, 0xc
nop
nop
nop
nop
nop
cmp dword [eax], 0
nop
nop
nop
nop
nop
jne 0x43301e
nop
nop
nop
nop
popal
nop
jmp 0x431219
Function at 0x10019cd0
Capabilities:
Parse pe header

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

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push ecx
push ecx
push esi
call dword [sym.imp.KERNEL32.dll_GetEnvironmentStringsW]
mov esi, eax
test esi, esi
je 0x1001ca6a
push ebx
push esi
call fcn.1001c996
xor ebx, ebx
sub eax, esi
push ebx
push ebx
push ebx
push ebx
sar eax, 1
push eax
push esi
push ebx
push ebx
mov dword [ebp - 8], eax
call fcn.1001c92a
add esp, 0x24
mov dword [ebp - 4], eax
test eax, eax
jne 0x1001ca17
push esi
call dword [sym.imp.KERNEL32.dll_FreeEnvironmentStringsW]
xor eax, eax
jmp 0x1001ca69
push edi
push eax
call fcn.1001aa0d
mov edi, eax
pop ecx
push ebx
test edi, edi
jne 0x1001ca37
call fcn.1001b472
pop ecx
push esi
call dword [sym.imp.KERNEL32.dll_FreeEnvironmentStringsW]
xor eax, eax
jmp 0x1001ca68
push ebx
push dword [ebp - 4]
push edi
push dword [ebp - 8]
push esi
push ebx
push ebx
call fcn.1001c92a
add esp, 0x20
test eax, eax
jne 0x1001ca56
push edi
call fcn.1001b472
jmp 0x1001ca5e
push ebx
call fcn.1001b472
mov ebx, edi
pop ecx
push esi
call dword [sym.imp.KERNEL32.dll_FreeEnvironmentStringsW]
mov eax, ebx
pop edi
pop ebx
pop esi
leave
ret

Function at 0x1001ccd7
Capabilities:
Allocate thread local storage

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push esi
push 0x10024d10
push 0x10024d08
push str.FlsAlloc
push 0x1f
call fcn.1001cbf3
mov esi, eax
add esp, 0x10
test esi, esi
je 0x1001cd0b
push dword [ebp + 8]
mov ecx, esi
call dword [0x1002314c]
call esi
jmp 0x1001cd11
call dword [sym.imp.KERNEL32.dll_TlsAlloc]
pop esi
pop ebp
ret 4

Function at 0x1001cd55
Capabilities:
Get thread local storage value

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push esi
push 0x10024d20
push 0x10024d18
push str.FlsGetValue
push 0x21
call fcn.1001cbf3
mov esi, eax
add esp, 0x10
test esi, esi
je 0x1001cd8c
push dword [ebp + 8]
mov ecx, esi
call dword [0x1002314c]
call esi
pop esi
pop ebp
ret 4
pop esi
pop ebp
jmp dword [sym.imp.KERNEL32.dll_TlsGetValue]

Function at 0x1001cd94
Capabilities:
Set thread local storage value

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push esi
push 0x10024d28
push 0x10024d20
push str.FlsSetValue
push 0x22
call fcn.1001cbf3
mov esi, eax
add esp, 0x10
test esi, esi
je 0x1001cdce
push dword [ebp + 0xc]
mov ecx, esi
push dword [ebp + 8]
call dword [0x1002314c]
call esi
pop esi
pop ebp
ret 8
pop esi
pop ebp
jmp dword [sym.imp.KERNEL32.dll_TlsSetValue]
Function at 0x10022370
Capabilities:
Parse pe header

Disassembly:
push ebp
mov ebp, esp
mov eax, dword [ebp + 8]
mov ecx, 0x5a4d
cmp word [eax], cx
jne 0x1002239d
mov ecx, dword [eax + 0x3c]
add ecx, eax
cmp dword [ecx], 0x4550
jne 0x1002239d
mov edx, 0x10b
xor eax, eax
cmp word [ecx + 0x18], dx
sete al
pop ebp
ret
xor eax, eax
pop ebp
ret
Function at 0x433000
Capabilities:
Encode data using xor
Packed with generic packer

Disassembly:
pushal
nop
nop
nop
nop
nop
call 0x43300c
pop eax
nop
nop
nop
nop
nop
add eax, 0x40a063
nop
sub eax, 0x40a009
nop
nop
mov ebx, dword [eax]
nop
nop
nop
mov ecx, dword [eax + 4]
nop
nop
nop
nop
nop
mov edx, dword [eax + 8]
nop
nop
nop
xor dword [ebx], edx
nop
nop
add ebx, 4
nop
nop
nop
cmp ebx, ecx
nop
nop
nop
nop
nop
jl 0x433030
nop
nop
nop
nop
nop
add eax, 0xc
nop
nop
cmp dword [eax], 0
nop
nop
nop
nop
nop
jne 0x43301e
nop
popal
nop
nop
nop
nop
nop
jmp 0x431219
Function at 0x401390
Capabilities:
Encode data using xor

Disassembly:
push esi
push edi
mov esi, dword [esp + 0xc]
mov edi, dword [esp + 0x10]
mov ecx, dword [esp + 0x14]
xor eax, eax
xor edx, edx
cmp ecx, 0
je 0x4013c3
mov dl, byte [esi]
lea esi, [esi + 1]
xor dl, byte [edi]
lea edi, [edi + 1]
or al, dl
dec ecx
jne 0x4013ab
neg eax
shr eax, 0x1f
pop edi
pop esi
ret
Function at 0x44708e
Capabilities:
Resolve function by parsing pe exports

Disassembly:
push edx
sub edx, 0x5385
call 0x447074
add byte [ebx + 0x39], al
dec eax
dec edx
dec eax
cmp al, byte ds:[ebx + 0x6eb04c4]
dec ebp
inc eax
xor cl, byte [ecx + 0x49]
dec esi
call 0x44708e
add byte [ebp + 0x44], cl
cmp byte [esi], dh
cmp ecx, dword [ebx + 0x3f]
dec ecx
add esp, 4
pop edx
mov eax, dword [ebp - 0x754]
mov ecx, dword [eax + 0x18]
mov dword [ebp - 0x320], ecx
mov dword [ebp - 0x764], 0
mov edx, dword [ebp - 0x320]
mov dword [ebp - 0x15f8], edx
cmp dword [ebp - 0x15f8], 0
jne 0x4470d1
mov eax, dword [ebp - 0x764]
mov dword [ebp - 0x3f8], eax
jmp 0x4473c2
mov ecx, dword [ebp - 0x15f8]
mov edx, dword [ebp - 0x320]
add edx, dword [ecx + 0x3c]
mov dword [ebp - 0x15fc], edx
jne 0x4470f9
mov eax, dword [ebp - 0x764]
mov dword [ebp - 0x3f8], eax
jmp 0x4473c2
mov ecx, 8
imul edx, ecx, 0
mov eax, dword [ebp - 0x15fc]
mov ecx, dword [eax + edx + 0x78]
mov dword [ebp - 0x1600], ecx
cmp dword [ebp - 0x1600], 0
jne 0x44712b
mov edx, dword [ebp - 0x764]
mov eax, dword [ebp - 0x320]
add eax, dword [ebp - 0x1600]
mov dword [ebp - 0x758], eax
jne 0x447150
invalid