joyce8/EMBER2024-capa huggingface dataset:
Function at 0x41d8f0
Capabilities:
Write file on windows

Disassembly:
push ebx
sub esp, 0x18
mov dword [esp], 2
lea ebx, [esp + 0x24]
call fcn.0041e680
mov dword [esp + 8], 0x1b
mov dword [esp + 0xc], eax
mov dword [esp + 4], 1
mov dword [esp], str.Mingw_w64_runtime_failure:_n
call sub.msvcrt.dll_fwrite
mov dword [esp], 2
call fcn.0041e680
mov edx, dword [esp + 0x20]
mov dword [esp + 8], ebx
mov dword [esp], eax
mov dword [esp + 4], edx
call sub.msvcrt.dll_vfprintf
call sub.msvcrt.dll_abort
lea esi, [esi]

Function at 0x41d950
Capabilities:
Allocate or change rwx memory

Disassembly:
push edi
push esi
push ebx
mov ebx, eax
sub esp, 0x30
mov esi, dword [0x42739c]
test esi, esi
jle 0x41da50
mov eax, dword [0x4273a0]
xor ecx, ecx
add eax, 0xc
mov edx, dword [eax]
cmp edx, ebx
ja 0x41d980
mov edi, dword [eax + 4]
add edx, dword [edi + 8]
cmp ebx, edx
jb 0x41d9ff
add ecx, 1
add eax, 0x14
cmp ecx, esi
jne 0x41d970
mov dword [esp], ebx
call fcn.0041e2c0
mov edi, eax
test eax, eax
je 0x41da77
mov eax, dword [0x4273a0]
lea ebx, [esi + esi*4]
shl ebx, 2
add eax, ebx
mov dword [eax + 0x10], edi
mov dword [eax], 0
call fcn.0041e3d0
mov edx, dword [0x4273a0]
add eax, dword [edi + 0xc]
mov dword [edx + ebx + 0xc], eax
lea edx, [esp + 0x14]
mov dword [esp + 8], 0x1c
mov dword [esp + 4], edx
mov dword [esp], eax
call dword [sym.imp.KERNEL32.dll_VirtualQuery]
sub esp, 0xc
test eax, eax
je 0x41da57
mov eax, dword [esp + 0x28]
lea edx, [eax - 0x40]
and edx, 0xffffffbf
je 0x41d9f8
sub eax, 4
and eax, 0xfffffffb
jne 0x41da06
add dword [0x42739c], 1
add esp, 0x30
pop ebx
pop esi
pop edi
ret
mov eax, dword [esp + 0x14]
mov edx, dword [esp + 0x20]
add ebx, dword [0x4273a0]
mov dword [ebx + 4], eax
mov dword [ebx + 8], edx
mov dword [esp + 0xc], ebx
mov dword [esp + 8], 0x40
mov dword [esp + 4], edx
mov dword [esp], eax
call dword [sym.imp.KERNEL32.dll_VirtualProtect]
sub esp, 0x10
test eax, eax
jne 0x41d9f8
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov dword [esp], str.__VirtualProtect_failed_with_code_0x_x
mov dword [esp + 4], eax
call fcn.0041d8f0
xor esi, esi
jmp 0x41d98a
mov eax, dword [0x4273a0]
mov eax, dword [eax + ebx + 0xc]
mov dword [esp + 8], eax
mov eax, dword [edi + 8]
mov dword [esp], str.__VirtualQuery_failed_for__d_bytes_at_address__p
mov dword [esp + 4], eax
call fcn.0041d8f0
mov dword [esp + 4], ebx
mov dword [esp], str.Address__p_has_no_image_section
call fcn.0041d8f0
lea esi, [esi]
nop
Function at 0x41df30
Capabilities:
Get thread local storage value

Disassembly:
push ebp
push edi
push esi
push ebx
sub esp, 0x1c
mov dword [esp], 0x4273b8
call dword [sym.imp.KERNEL32.dll_EnterCriticalSection]
mov ebx, dword [0x4273b0]
sub esp, 4
test ebx, ebx
je 0x41df85
mov ebp, dword [sym.imp.KERNEL32.dll_TlsGetValue]
mov edi, dword [sym.imp.KERNEL32.dll_GetLastError]
lea esi, [esi]
mov eax, dword [ebx]
mov dword [esp], eax
call ebp
sub esp, 4
mov esi, eax
call edi
test eax, eax
jne 0x41df7e
test esi, esi
je 0x41df7e
mov eax, dword [ebx + 4]
mov dword [esp], esi
call eax
mov ebx, dword [ebx + 8]
test ebx, ebx
jne 0x41df60
mov dword [esp], 0x4273b8
call dword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
sub esp, 4
add esp, 0x1c
pop ebx
pop esi
pop edi
pop ebp
ret
Function at 0x407be4
Capabilities:
Encode data using xor

Disassembly:
call 0x407ad9
mov ecx, 0x1e7
call 0x407be4
rcr dword [esi + 0x30], 0x4c
push cs
pop es
xor byte [esi + ecx + 7], cl
loop 0x407be7
mov esp, 0x9023c75b
invalid
Function at 0x401000
Capabilities:
Terminate process

Disassembly:
cmp ecx, dword [0x425004]
jne 0x40100a
repz ret
jmp fcn.004016e1

Function at 0x405bdb
Capabilities:
Link many functions at runtime

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x24
mov eax, dword [0x425004]
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.00403229
and dword [ebp - 0x14], 0
cmp dword [0x4273e0], 0
mov dword [ebp - 0x18], eax
jne 0x405c8e
push str.USER32.DLL
call dword [sym.imp.KERNEL32.dll_LoadLibraryW]
mov ebx, eax
test ebx, ebx
je 0x405d36
mov edi, dword [sym.imp.KERNEL32.dll_GetProcAddress]
push str.MessageBoxW
push ebx
call edi
test eax, eax
je 0x405d36
mov esi, dword [sym.imp.KERNEL32.dll_EncodePointer]
push eax
call esi
push str.GetActiveWindow
push ebx
mov dword [0x4273e0], eax
call edi
push eax
call esi
push str.GetLastActivePopup
push ebx
mov dword [0x4273e4], eax
call edi
push eax
call esi
push str.GetUserObjectInformationW
push ebx
mov dword [0x4273e8], eax
call edi
push eax
call esi
mov dword [0x4273f0], eax
test eax, eax
je 0x405c8e
push str.GetProcessWindowStation
push ebx
call edi
push eax
call esi
mov dword [0x4273ec], eax
mov eax, dword [0x4273ec]
mov ecx, dword [ebp - 0x18]
mov esi, dword [sym.imp.KERNEL32.dll_DecodePointer]
cmp eax, ecx
je 0x405ce7
cmp dword [0x4273f0], ecx
je 0x405ce7
push eax
call esi
push dword [0x4273f0]
mov edi, eax
call esi
mov ebx, eax
test edi, edi
je 0x405ce7
test ebx, ebx
je 0x405ce7
call edi
test eax, eax
je 0x405cde
lea ecx, [ebp - 0x24]
push ecx
push 0xc
lea ecx, [ebp - 0x10]
push ecx
push 1
push eax
call ebx
test eax, eax
je 0x405cde
test byte [ebp - 8], 1
jne 0x405ce7
or dword [ebp + 0x10], 0x200000
jmp 0x405d1a
mov eax, dword [0x4273e4]
cmp eax, dword [ebp - 0x18]
je 0x405d1a
push eax
call esi
test eax, eax
je 0x405d1a
call eax
mov dword [ebp - 0x14], eax
test eax, eax
je 0x405d1a
mov eax, dword [0x4273e8]
cmp eax, dword [ebp - 0x18]
je 0x405d1a
push eax
call esi
test eax, eax
je 0x405d1a
push dword [ebp - 0x14]
call eax
mov dword [ebp - 0x14], eax
push dword [0x4273e0]
call esi
test eax, eax
je 0x405d36
push dword [ebp + 0x10]
push dword [ebp - 0x1c]
push dword [ebp - 0x20]
push dword [ebp - 0x14]
call eax
jmp 0x405d38
xor eax, eax
mov ecx, dword [ebp - 4]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.00401000
leave
ret
Function at 0x4218b0
Capabilities:
Get hostname

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x830
mov eax, dword [0x425004]
xor eax, ebp
mov dword [ebp - 4], eax
mov eax, dword [ebp + 8]
push esi
mov esi, dword [ebp + 0xc]
mov dword [ebp - 0x824], eax
cmp esi, 0x182
jne 0x4218e9
lea ecx, [ebp - 0x820]
push ecx
push 0
call dword [sym.imp.KERNEL32.dll_BuildCommDCBA]
jmp 0x421907
cmp esi, 0x19f
jne 0x421907
push 0
push 0
push 0
push 0
call dword [sym.imp.KERNEL32.dll_WritePrivateProfileStringA]
push 0
call dword [sym.imp.KERNEL32.dll_FreeEnvironmentStringsA]
mov dword [ebp - 0x828], 0
test esi, esi
jle 0x4219d9
push ebx
mov ebx, dword [ebp - 0x824]
push edi
mov edi, dword [ebp - 0x824]
jmp 0x421930
lea esi, [ebp - 0x82c]
mov dword [ebp - 0x82c], 0
call fcn.004218a0
mov dl, byte [ebp - 0x82c]
mov eax, dword [ebp - 0x824]
mov esi, dword [ebp - 0x828]
xor byte [eax + esi], dl
cmp dword [ebp + 0xc], 0xf
jne 0x4219c4
push 0
push ebx
call dword [sym.imp.KERNEL32.dll_GetNumaProcessorNode]
lea eax, [ebp - 0x830]
push eax
lea ecx, [ebp - 0x804]
push ecx
call dword [sym.imp.KERNEL32.dll_GetComputerNameA]
push str.pakatexurelinihucarizomowodive
push 0
push 0
push 0
call dword [sym.imp.KERNEL32.dll_SetCalendarInfoA]
push str.defifujanotejetozititisiha
push 0
push 0
call dword [sym.imp.KERNEL32.dll_OpenJobObjectA]
push 0
lea edx, [ebp - 0x404]
push edx
push 0
call dword [sym.imp.KERNEL32.dll_GetShortPathNameA]
push edi
push str.murezuhubihozumifekunicil
push 0
call dword [sym.imp.ADVAPI32.dll_RegCreateKeyA]
push 0
call dword [sym.imp.KERNEL32.dll_Sleep]
inc esi
mov dword [ebp - 0x828], esi
cmp esi, dword [ebp + 0xc]
jl 0x421930
mov esi, dword [ebp + 0xc]
pop edi
pop ebx
cmp esi, 0x2d
pop esi
jne 0x4219f3
mov dword [0x2772100], 0xa62e7790
mov dword [0x2772104], 0xffffffff
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.00401000
mov esp, ebp
pop ebp
ret

Function at 0x421a10
Capabilities:
Get disk information

Disassembly:
mov eax, dword [0x27720f4]
push esi
push edi
mov edi, dword [0x2771e14]
mov esi, eax
cmp eax, 0x5dd
jne 0x421a32
push 0
push 0
push 0
call dword [sym.imp.KERNEL32.dll_QueryDosDeviceA]
mov eax, dword [0x425ea8]
call fcn.00421870
cmp dword [0x27720f4], 0x2f
jne 0x421a4d
push 0
call dword [sym.imp.KERNEL32.dll_FreeEnvironmentStringsA]
push esi
push edi
call fcn.004218b0
add esp, 8
cmp dword [0x27720f4], 0x568
pop edi
pop esi
jne 0x421a77
push 0
call dword [sym.imp.KERNEL32.dll_HeapDestroy]
push 0
push 0
call dword [sym.imp.KERNEL32.dll_GetNumaNodeProcessorMask]
ret
Function at 0x403930
Capabilities:
Check os version

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x42255d
mov eax, dword fs:[0]
push eax
push esi
push edi
mov eax, dword [0x433040]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov edi, ecx
mov eax, dword fs:[0x2c]
mov esi, dword [eax]
mov eax, dword [0x4ccad8]
cmp eax, dword [esi + 4]
jle 0x403a31
push 0x4ccad8
call fcn.0041082f
add esp, 4
cmp dword [0x4ccad8], 0xffffffff
jne 0x403a31
mov dword [ebp - 4], 0
mov eax, dword [0x4ccae0]
cmp eax, dword [esi + 4]
jle 0x4039d9
push 0x4ccae0
call fcn.0041082f
add esp, 4
cmp dword [0x4ccae0], 0xffffffff
jne 0x4039d9
mov byte [ebp - 4], 1
mov eax, dword fs:[0x18]
mov eax, dword [eax + 0x18]
mov eax, dword [eax + 0x30]
mov dword [0x4ccad4], eax
mov byte [ebp - 4], 0
push 0x4ccae0
call fcn.004107de
add esp, 4
mov eax, dword [0x4ccad4]
test eax, eax
jne 0x4039e6
or al, 0xff
jmp 0x403a18
mov ecx, dword [eax + 0xa4]
cmp ecx, 6
je 0x403a03
cmp ecx, 0xa
mov eax, 3
mov edx, 0xff
cmovne eax, edx
jmp 0x403a18
mov eax, dword [eax + 0xa8]
cmp eax, 3
jne 0x403a12
mov al, 2
jmp 0x403a18
cmp eax, 2
sete al
mov byte [0x4ccadc], al
mov dword [ebp - 4], 0xffffffff
push 0x4ccad8
call fcn.004107de
add esp, 4
movzx eax, byte [0x4ccadc]
add eax, edi
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
mov esp, ebp
pop ebp
ret
Function at 0x4047d0
Capabilities:
Hash data with crc32

Disassembly:
push ebp
mov ebp, esp
sub esp, 8
push ebx
mov ebx, ecx
push edi
mov edi, edx
cmp ebx, 0xffffffff
jne 0x4047e9
pop edi
or eax, ecx
pop ebx
mov esp, ebp
pop ebp
ret
push esi
lea ecx, [ebx - 1]
call fcn.004047d0
mov bl, byte [ebx + edi]
mov esi, eax
call fcn.004047b0
mov byte [ebp - 1], al
mov al, bl
mov dword [ebp - 8], 0
mov dword [ebp - 8], 0xc0a089d
mov edx, dword [ebp - 8]
mov cl, byte [ebp - 1]
xor edx, 0xf49
sub al, cl
xor dl, 0xce
movsx ecx, byte [ebp - 1]
cmp al, dl
sbb al, al
add ecx, 0xbe
and al, 0x20
or bl, al
movsx eax, bl
xor eax, esi
shr esi, 8
and ecx, eax
xor esi, dword [ecx*4 + 0x42ffc8]
mov eax, esi
pop esi
pop edi
pop ebx
mov esp, ebp
pop ebp
ret

Function at 0x404850
Capabilities:
Hash data with crc32

Disassembly:
push ebp
mov ebp, esp
sub esp, 0xc
push ebx
push esi
mov esi, ecx
mov ebx, edx
cmp esi, 0xffffffff
jne 0x404869
pop esi
or eax, ecx
pop ebx
mov esp, ebp
pop ebp
ret
push edi
lea ecx, [esi - 1]
call fcn.00404850
movzx ecx, word [ebx + esi*2]
mov edi, eax
mov dword [ebp - 0xc], ecx
call fcn.004047b0
mov si, word [ebp - 0xc]
mov byte [ebp - 1], al
mov cx, si
mov dword [ebp - 8], 0
mov dword [ebp - 8], 0x4fa1104f
mov edx, dword [ebp - 8]
movsx ax, byte [ebp - 1]
xor edx, 0xf49
xor dl, 0x1c
sub cx, ax
movzx eax, dl
cmp cx, ax
movsx ecx, byte [ebp - 1]
sbb eax, eax
add ecx, 0xbe
and eax, 0x20
or si, ax
movzx eax, si
xor eax, edi
shr edi, 8
and ecx, eax
xor edi, dword [ecx*4 + 0x42ffc8]
mov eax, edi
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret

Function at 0x4048e0
Capabilities:
Hash data with crc32

Disassembly:
push ebp
mov ebp, esp
sub esp, 8
push ebx
push esi
push edi
mov edi, ecx
mov eax, edi
lea edx, [eax + 1]
mov cl, byte [eax]
inc eax
test cl, cl
jne 0x4048f0
sub eax, edx
lea ebx, [eax - 1]
cmp ebx, 0xffffffff
jne 0x40490e
or esi, ebx
not esi
pop edi
mov eax, esi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
lea ecx, [ebx - 1]
mov edx, edi
call fcn.004047d0
mov bl, byte [ebx + edi]
mov esi, eax
call fcn.004047b0
mov byte [ebp - 1], al
mov al, bl
mov dword [ebp - 8], 0
mov dword [ebp - 8], 0xc0a089d
mov edx, dword [ebp - 8]
mov cl, byte [ebp - 1]
xor edx, 0xf49
sub al, cl
xor dl, 0xce
movsx ecx, byte [ebp - 1]
cmp al, dl
pop edi
sbb al, al
add ecx, 0xbe
and al, 0x20
or bl, al
movsx eax, bl
xor eax, esi
shr esi, 8
and ecx, eax
xor esi, dword [ecx*4 + 0x42ffc8]
not esi
mov eax, esi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x407090
Capabilities:
Parse pe header

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
sub esp, 0x2c
mov eax, dword [0x433040]
xor eax, esp
mov dword [esp + 0x28], eax
mov eax, dword fs:[0x18]
mov dword [esp + 0x18], 0
mov dword [esp + 0x20], 0
mov dword [esp + 0x24], 0
mov dword [esp + 0x1c], 4
mov eax, dword [eax + 0x18]
push ebx
push esi
push edi
mov eax, dword [eax + 0x30]
mov dword [esp + 0x10], eax
test eax, eax
je 0x40720b
mov eax, dword [eax + 8]
mov ecx, 0x5a4d
mov dword [esp + 0x20], eax
cmp word [eax], cx
jne 0x40720b
mov ebx, dword [eax + 0x3c]
cmp dword [ebx + eax], 0x4550
jne 0x40720b
mov ebx, dword [ebx + eax + 0x80]
add ebx, eax
mov dword [esp + 0x14], ebx
cmp dword [ebx], 0
je 0x40720b
nop word [eax + eax]
mov ecx, dword [ebx + 0xc]
add ecx, eax
call fcn.0040e020
mov dword [esp + 0x18], eax
test eax, eax
je 0x40720b
mov edx, dword [esp + 0x10]
mov edi, dword [ebx]
mov esi, dword [ebx + 0x10]
add edi, dword [edx + 8]
add esi, dword [edx + 8]
mov eax, dword [edi]
test eax, eax
js 0x4071f7
je 0x4071f3
mov ecx, dword [edx + 8]
add ecx, eax
mov dword [esp + 0x24], esi
mov eax, dword [esi]
add ecx, 2
mov dword [esp + 0x1c], eax
call fcn.004048e0
mov ecx, dword [esp + 0x18]
mov edx, eax
call fcn.0040e100
mov ebx, eax
mov eax, dword [esp + 0x1c]
test eax, eax
je 0x4071d7
test ebx, ebx
je 0x4071d7
cmp eax, ebx
je 0x4071d7
lea eax, [esp + 0x2c]
mov dword [esp + 0x28], 4
push eax
push 4
lea eax, [esp + 0x30]
push eax
lea eax, [esp + 0x30]
push eax
push 0xffffffffffffffff
call fcn.004105e6
add esp, 0x14
test eax, eax
js 0x4071d7
lea eax, [esp + 0x30]
mov dword [esi], ebx
push eax
push dword [esp + 0x30]
lea eax, [esp + 0x30]
mov dword [esp + 0x30], 4
push eax
lea eax, [esp + 0x30]
push eax
push 0xffffffffffffffff
call fcn.004105e6
add esp, 0x14
mov edx, dword [esp + 0x10]
add edi, 4
mov dword [esp + 0x24], 0
add esi, 4
mov eax, dword [edi]
test eax, eax
jns 0x40714f
mov ebx, dword [esp + 0x14]
mov eax, dword [esp + 0x20]
add ebx, 0x14
mov dword [esp + 0x14], ebx
cmp dword [ebx], 0
jne 0x407120
mov ecx, dword [esp + 0x34]
pop edi
pop esi
pop ebx
xor ecx, esp
call fcn.004107a0
mov esp, ebp
pop ebp
ret
Function at 0x40dbb0
Capabilities:
Hash data with crc32

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
sub esp, 0x10
mov eax, dword [0x433040]
xor eax, esp
mov dword [esp + 0xc], eax
push esi
mov esi, ecx
mov edx, esi
push edi
lea ecx, [edx + 2]
nop dword [eax]
mov ax, word [edx]
add edx, 2
test ax, ax
jne 0x40dbd0
sub edx, ecx
sar edx, 1
lea edi, [edx - 1]
cmp edi, 0xffffffff
jne 0x40dbeb
mov eax, edi
jmp 0x40dc08
lea ecx, [edi - 1]
mov edx, esi
call fcn.00404780
movzx ecx, word [esi + edi*2]
xor ecx, eax
shr eax, 8
movzx ecx, cl
xor eax, dword [ecx*4 + 0x42ffc8]
not eax
xor edx, edx
mov ecx, eax
call fcn.0040ddf0
test eax, eax
jne 0x40dcac
mov ecx, esi
call fcn.0040d990
test eax, eax
jne 0x40dcac
mov eax, dword [0x4cca24]
test eax, eax
jne 0x40dc67
xor edx, edx
mov ecx, 0x84c05e40
call fcn.0040ddf0
mov edx, 0xfa2a9aa9
mov ecx, eax
call fcn.0040e100
mov dword [0x4cca24], eax
test eax, eax
jne 0x40dc67
xor eax, eax
pop edi
pop esi
mov ecx, dword [esp + 0xc]
xor ecx, esp
call fcn.004107a0
mov esp, ebp
pop ebp
ret
push esi
lea edx, [esp + 0x10]
push edx
call eax
mov eax, dword [0x4cca28]
test eax, eax
jne 0x40dc90
mov edx, 0xa09b055e
mov ecx, 0x84c05e40
call fcn.0040e3d0
mov dword [0x4cca28], eax
test eax, eax
je 0x40dc54
lea ecx, [esp + 8]
mov dword [esp + 8], 0
push ecx
lea ecx, [esp + 0x10]
push ecx
push 0
push 0
call eax
mov eax, dword [esp + 8]
mov ecx, dword [esp + 0x14]
pop edi
pop esi
xor ecx, esp
call fcn.004107a0
mov esp, ebp
pop ebp
ret
Function at 0x40e3d0
Capabilities:
Parse pe header
Resolve function by parsing pe exports

Disassembly:
push esi
mov esi, edx
xor edx, edx
call fcn.0040ddf0
mov edx, esi
mov ecx, eax
pop esi
jmp fcn.0040e100

Function at 0x40e9e0
Capabilities:
Enumerate pe sections
Parse pe header

Disassembly:
push ebp
mov ebp, esp
sub esp, 0xc
push ebx
mov eax, ecx
mov dword [ebp - 8], edx
mov dword [ebp - 4], eax
push esi
push edi
test eax, eax
je 0x40ea48
mov ecx, 0x5a4d
cmp word [eax], cx
jne 0x40ea48
mov esi, dword [eax + 0x3c]
add esi, eax
cmp dword [esi], 0x4550
jne 0x40ea48
xor eax, eax
xor edi, edi
cmp ax, word [esi + 6]
jae 0x40ea48
xor ebx, ebx
nop dword [eax + eax]
movzx eax, word [esi + 0x14]
add eax, 0x18
add eax, ebx
add eax, esi
mov ecx, eax
mov dword [ebp - 0xc], eax
call fcn.004048e0
cmp eax, 0xa21c1ea3
je 0x40ea51
movzx eax, word [esi + 6]
inc edi
add ebx, 0x28
cmp edi, eax
jb 0x40ea20
pop edi
pop esi
xor eax, eax
pop ebx
mov esp, ebp
pop ebp
ret
mov ebx, dword [ebp - 8]
mov edx, dword [ebp - 0xc]
mov ecx, dword [ebp - 4]
pop edi
mov dword [ebx], ecx
mov eax, dword [edx + 0xc]
add eax, ecx
mov dword [ebx + 4], eax
mov eax, dword [edx + 0x10]
mov dword [ebx + 8], eax
mov eax, dword [edx + 0xc]
sub eax, dword [edx + 0x14]
mov dword [ebx + 0xc], eax
mov eax, 1
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x4104d4
Capabilities:
Check os version

Disassembly:
pop ecx
xor al, 0x5a
push ebp
mov ebp, esp
mov ecx, dword fs:[0x30]
cmp word [ecx + 0xa4], 0xa
je 0x410520
cmp word [ecx + 0xa4], 6
jne 0x410553
cmp word [ecx + 0xa8], 3
je 0x410521
cmp word [ecx + 0xa8], 2
je 0x410522
cmp word [ecx + 0xa8], 1
jne 0x410553
cmp word [ecx + 0xac], 0x1db1
je 0x410523
jmp 0x410553
inc eax
inc eax
inc eax
mov ecx, 0x10
dec ecx
push dword [ebp + ecx*4 + 8]
jne 0x410528
push 0x410553
cmp dword [0x4cc834], 0
jne 0x410546
call dword fs:[0xc0]
jmp 0x410553
mov edx, dword fs:[0xc0]
jmp dword [0x4cc834]
mov esp, ebp
pop ebp
ret

Function at 0x411302
Capabilities:
Parse pe header

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

Function at 0x411650
Capabilities:
Compute adler32 checksum

Disassembly:
push ebp
mov ebp, esp
pop ebp
jmp fcn.00411660

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

Disassembly:
push ebp
mov ebp, esp
mov eax, dword [ebp + 0xc]
test eax, eax
jne 0x4118ec
pop ebp
ret
mov dword [ebp + 0xc], eax
pop ebp
jmp fcn.00411900

Function at 0x41aafc
Capabilities:
Allocate thread local storage

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push esi
push 0x429758
push 0x429750
push str.FlsAlloc
push 0x1e
call fcn.0041aa1a
mov esi, eax
add esp, 0x10
test esi, esi
je 0x41ab30
push dword [ebp + 8]
mov ecx, esi
call dword [0x423124]
call esi
jmp 0x41ab36
call dword [sym.imp.KERNEL32.dll_TlsAlloc]
pop esi
pop ebp
ret 4

Function at 0x41ab7a
Capabilities:
Get thread local storage value

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push esi
push 0x429768
push 0x429760
push str.FlsGetValue
push 0x20
call fcn.0041aa1a
mov esi, eax
add esp, 0x10
test esi, esi
je 0x41abb1
push dword [ebp + 8]
mov ecx, esi
call dword [0x423124]
call esi
pop esi
pop ebp
ret 4
pop esi
pop ebp
jmp dword [sym.imp.KERNEL32.dll_TlsGetValue]
Function at 0x41c08b
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 0x41c128
push ebx
push esi
call fcn.0041c054
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.0041bf9d
add esp, 0x24
mov dword [ebp - 4], eax
test eax, eax
jne 0x41c0d5
push esi
call dword [sym.imp.KERNEL32.dll_FreeEnvironmentStringsW]
xor eax, eax
jmp 0x41c127
push edi
push eax
call fcn.0041a567
mov edi, eax
pop ecx
push ebx
test edi, edi
jne 0x41c0f5
call fcn.0041a52d
pop ecx
push esi
call dword [sym.imp.KERNEL32.dll_FreeEnvironmentStringsW]
xor eax, eax
jmp 0x41c126
push ebx
push dword [ebp - 4]
push edi
push dword [ebp - 8]
push esi
push ebx
push ebx
call fcn.0041bf9d
add esp, 0x20
test eax, eax
jne 0x41c114
push edi
call fcn.0041a52d
jmp 0x41c11c
push ebx
call fcn.0041a52d
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 0x421f30
Capabilities:
Parse pe header

Disassembly:
push ebp
mov ebp, esp
mov eax, dword [ebp + 8]
mov ecx, 0x5a4d
cmp word [eax], cx
jne 0x421f5d
mov ecx, dword [eax + 0x3c]
add ecx, eax
cmp dword [ecx], 0x4550
jne 0x421f5d
mov edx, 0x10b
xor eax, eax
cmp word [ecx + 0x18], dx
sete al
pop ebp
ret
xor eax, eax
pop ebp
ret

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

Disassembly:
pushal
nop
nop
nop
nop
call 0x43000c
nop
pop eax
nop
nop
nop
nop
nop
add eax, 0x403d6f
sub eax, 0x403d15
nop
mov ebx, dword [eax]
nop
nop
nop
nop
mov ecx, dword [eax + 4]
nop
nop
nop
nop
nop
nop
mov edx, dword [eax + 8]
xor dword [ebx], edx
nop
nop
nop
nop
add ebx, 4
nop
nop
nop
nop
nop
nop
nop
cmp ebx, ecx
jl 0x430030
nop
nop
nop
nop
nop
add eax, 0xc
nop
nop
nop
cmp dword [eax], 0
nop
nop
nop
nop
jne 0x43001e
nop
nop
nop
nop
nop
popal
nop
nop
jmp loc.00401219
Function at 0x406c81
Capabilities:
Encode data using xor
Hash data with crc32

Disassembly:
push ebp
mov ebp, esp
cmp dword [0x460114], 0
jne 0x406cbf
xor ecx, ecx
push esi
push 8
mov eax, ecx
pop esi
mov edx, eax
and dl, 1
movzx edx, dl
neg edx
sbb edx, edx
and edx, 0xedb88320
shr eax, 1
xor eax, edx
dec esi
jne 0x406c95
mov dword [ecx*4 + 0x460110], eax
inc ecx
cmp ecx, 0x100
jl 0x406c90
pop esi
cmp dword [ebp + 0x10], 0
mov eax, dword [ebp + 8]
not eax
jbe 0x406cec
mov ecx, dword [ebp + 0xc]
movzx edx, byte [ecx]
dec dword [ebp + 0x10]
xor edx, eax
and edx, 0xff
shr eax, 8
xor eax, dword [edx*4 + 0x460110]
inc ecx
cmp dword [ebp + 0x10], 0
ja 0x406ccd
not eax
pop ebp
ret 0xc

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

Disassembly:
pushal
nop
nop
nop
nop
nop
nop
mov eax, section..text
nop
push 4
nop
nop
nop
nop
nop
nop
nop
nop
pop edi
cmp eax, 0
nop
nop
nop
nop
je 0x430072
nop
nop
nop
nop
mov ebx, 0x408ecc
mov ecx, ebx
nop
nop
nop
nop
nop
nop
nop
sub ecx, eax
nop
nop
nop
nop
xor edx, edx
nop
push eax
nop
nop
nop
nop
nop
nop
nop
nop
nop
mov eax, ecx
nop
nop
div edi
nop
nop
nop
xchg ecx, eax
nop
nop
nop
nop
nop
nop
pop eax
nop
nop
nop
nop
mov esi, 0x87b0db6
nop
nop
xor dword [eax], esi
nop
nop
nop
nop
add eax, edi
nop
nop
nop
nop
nop
nop
loop 0x430060
mov eax, section..rdata
nop
nop
nop
cmp eax, 0
nop
nop
je 0x4300d2
nop
nop
nop
nop
mov ebx, 0x42e1d0
nop
nop
nop
nop
mov ecx, ebx
nop
nop
sub ecx, eax
nop
nop
nop
nop
nop
nop
xor edx, edx
nop
push eax
nop
nop
nop
nop
nop
nop
nop
mov eax, ecx
nop
nop
div edi
nop
nop
nop
nop
nop
nop
xchg ecx, eax
nop
nop
nop
pop eax
nop
nop
nop
nop
mov esi, 0x581129ab
nop
nop
nop
xor dword [eax], esi
nop
nop
nop
nop
add eax, edi
nop
nop
nop
nop
nop
loop 0x4300c0
nop
nop
nop
nop
nop
popal
nop
jmp 0x401219