joyce8/EMBER2024-capa huggingface dataset:
Function at 0x416b80
Capabilities:
Encode data using xor
Encrypt data using rc4 prga

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x50
push ebx
mov dword [ebp - 8], ecx
push esi
xor ebx, ebx
xor eax, eax
push edi
mov dword [ebp - 4], edx
xor ecx, ecx
mov byte [ebp + eax - 0x50], bl
add eax, 1
adc ecx, ebx
jne 0x416ba5
cmp eax, 0x40
jb 0x416b95
xor edi, edi
cmp dword [ebp + 0xc], ebx
mov dword [ebp - 0xc], ebx
jb 0x416c36
ja 0x416bba
cmp dword [ebp + 8], ebx
jbe 0x416c36
mov esi, dword [ebp + 0x14]
mov edx, dword [ebp + 0x18]
cmp edx, ebx
je 0x416bdc
mov eax, edi
xor ecx, ecx
and eax, 0xff
or eax, ecx
jne 0x416bdc
mov eax, dword [edx]
mov ecx, edx
call dword [eax + 8]
cmp eax, ebx
jne 0x416c38
mov eax, dword [esi]
push esi
call dword [eax + 0xc]
mov eax, dword [esi]
push dword [ebp - 4]
push dword [ebp - 8]
push esi
call dword [eax + 0x10]
mov eax, dword [esi]
lea ecx, [ebp - 0x50]
push ecx
push esi
call dword [eax + 0x14]
mov eax, dword [esi]
push esi
call dword [eax + 0x18]
cmp eax, 0x40
ja 0x416c3f
xor ecx, ecx
xor edx, edx
cmp eax, ebx
jbe 0x416c16
xor ecx, dword [ebp + edx - 0x50]
add edx, 4
cmp edx, eax
jb 0x416c0b
mov eax, dword [ebp + 0x10]
cmp eax, ebx
je 0x416c21
cmp ecx, dword [eax]
jne 0x416c3f
add edi, 1
adc dword [ebp - 0xc], ebx
mov eax, dword [ebp - 0xc]
cmp eax, dword [ebp + 0xc]
jb 0x416bbd
ja 0x416c36
cmp edi, dword [ebp + 8]
jb 0x416bbd
xor eax, eax
pop edi
pop esi
pop ebx
leave
ret 0x14
push 1
pop eax
jmp 0x416c38

Function at 0x4174d4
Capabilities:
Access peb ldr_data
Get kernel32 base address

Disassembly:
mov eax, 0x435be2
call fcn.00433e80
push ecx
push ebx
push esi
mov esi, ecx
xor ebx, ebx
mov dword [ebp - 0x10], esi
mov dword [esi], ebx
mov dword [esi + 4], ebx
mov dword [esi + 8], ebx
mov dword [ebp - 4], ebx
mov dword [esi + 0xc], ebx
mov dword [esi + 0x10], ebx
mov dword [esi + 0x14], ebx
mov dword [esi + 0x18], ebx
mov dword [esi + 0x1c], ebx
mov dword [esi + 0x20], ebx
mov dword [esi + 0x24], ebx
mov dword [esi + 0x28], ebx
mov dword [esi + 0x2c], ebx
mov byte [esi + 0x30], bl
mov byte [esi + 0x31], bl
mov dword [esi + 0x38], ebx
mov dword [esi + 0x40], ebx
mov dword [esi + 0x48], ebx
mov dword [esi + 0x50], ebx
mov dword [esi + 0x58], ebx
mov dword [esi + 0x60], ebx
lea ecx, [esi + 0x68]
mov byte [ebp - 4], 3
mov dword [esi + 0x3c], ebx
mov dword [esi + 0x44], ebx
mov dword [esi + 0x4c], ebx
mov dword [esi + 0x54], ebx
mov dword [esi + 0x5c], ebx
mov dword [esi + 0x64], ebx
call fcn.0041757a
lea eax, [esi + 0x8c]
mov dword [eax], ebx
mov dword [eax + 4], ebx
mov byte [ebp - 4], 5
mov byte [esi + 0x95], bl
mov dword [esi + 0x98], ebx
call fcn.0040d5d1
mov ecx, dword [ebp - 0xc]
mov byte [esi + 0x94], al
mov eax, esi
pop esi
pop ebx
mov dword fs:[0], ecx
leave
ret
Function at 0x419ab3
Capabilities:
Access peb ldr_data
Get ntdll base address

Disassembly:
mov eax, 0x435f5e
call fcn.00433e80
push ecx
push esi
mov esi, ecx
xor eax, eax
mov dword [ebp - 0x10], esi
mov dword [esi], eax
mov dword [esi + 4], eax
mov dword [esi + 8], eax
mov dword [ebp - 4], eax
mov dword [esi + 0xc], eax
mov dword [esi + 0x10], eax
mov dword [esi + 0x14], eax
mov dword [esi + 0x18], eax
lea ecx, [esi + 0x24]
mov byte [ebp - 4], 1
mov dword [esi + 0x1c], eax
mov byte [esi + 0x20], al
mov byte [esi + 0x21], al
call fcn.00402980
lea ecx, [esi + 0x30]
mov byte [ebp - 4], 2
call fcn.00419b0d
mov ecx, dword [ebp - 0xc]
mov eax, esi
pop esi
mov dword fs:[0], ecx
leave
ret

Function at 0x419b5f
Capabilities:
Access peb ldr_data

Disassembly:
mov eax, 0x435fa9
call fcn.00433e80
push ecx
push esi
mov esi, ecx
mov dword [ebp - 0x10], esi
mov dword [ebp - 4], 3
call fcn.004224db
lea ecx, [esi + 0x30]
mov byte [ebp - 4], 2
call fcn.0042e4c1
push dword [esi + 0x24]
call fcn.00401b54
and byte [ebp - 4], 0
pop ecx
lea ecx, [esi + 0xc]
call fcn.0040155c
or dword [ebp - 4], 0xffffffff
mov ecx, esi
call fcn.0041a0db
mov ecx, dword [ebp - 0xc]
pop esi
mov dword fs:[0], ecx
leave
ret

Function at 0x41b17b
Capabilities:
Access peb ldr_data
Get kernel32 base address

Disassembly:
mov eax, 0x4361aa
call fcn.00433e80
push ecx
push esi
mov esi, ecx
push edi
xor edi, edi
mov dword [esi], 0x43a888
mov dword [ebp - 0x10], esi
mov dword [esi + 4], edi
mov dword [esi + 8], edi
mov dword [esi + 0xc], edi
lea ecx, [esi + 0x48]
mov dword [ebp - 4], edi
call fcn.00402980
lea ecx, [esi + 0x54]
mov byte [ebp - 4], 1
call fcn.00402980
mov ecx, dword [ebp - 0xc]
mov dword [esi + 0x38], edi
mov dword [esi + 0x30], edi
mov dword [esi + 0x28], edi
mov dword [esi + 0x20], edi
mov dword [esi + 0x18], edi
mov dword [esi + 0x10], edi
mov dword [esi + 0x3c], edi
mov dword [esi + 0x34], edi
mov dword [esi + 0x2c], edi
mov dword [esi + 0x24], edi
mov dword [esi + 0x1c], edi
mov dword [esi + 0x14], edi
mov dword [esi], fcn.0041aa4a
mov eax, esi
pop edi
pop esi
mov dword fs:[0], ecx
leave
ret
Function at 0x41b690
Capabilities:
Link many functions at runtime

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x64
push ebx
push esi
push edi
mov edi, ecx
mov esi, dword [sym.imp.KERNEL32.dll_GetProcAddress]
push str.CreateDecoder
mov eax, dword [edi + 0x10]
mov ecx, dword [edi + 0xc]
mov dword [ebp - 8], edi
mov ebx, dword [ecx + eax*4 - 4]
push dword [ebx]
call esi
push str.CreateEncoder
mov dword [ebx + 0x18], eax
push dword [ebx]
call esi
push str.GetMethodProperty
mov dword [ebx + 0x1c], eax
push dword [ebx]
call esi
test eax, eax
mov dword [ebx + 0x14], eax
je 0x41b79c
push str.GetNumberOfMethods
mov dword [ebp - 0xc], 1
push dword [ebx]
call esi
test eax, eax
je 0x41b6fc
lea ecx, [ebp - 0xc]
push ecx
call eax
test eax, eax
jne 0x41b7f5
and dword [ebp - 4], 0
cmp dword [ebp - 0xc], 0
jbe 0x41b79c
jmp 0x41b70f
mov edi, dword [ebp - 8]
mov eax, dword [edi + 0x10]
mov edx, dword [ebp - 4]
dec eax
mov ecx, dword [ebx + 0x14]
mov dword [ebp - 0x38], eax
lea eax, [ebp - 0x30]
push eax
lea eax, [ebp - 0x2c]
push eax
push 3
mov dword [ebp - 0x34], edx
call fcn.0041b7fa
test eax, eax
jne 0x41b7f5
mov edx, dword [ebp - 4]
mov ecx, dword [ebx + 0x14]
lea eax, [ebp - 0x2f]
push eax
lea eax, [ebp - 0x1c]
push eax
push 2
call fcn.0041b7fa
test eax, eax
jne 0x41b7f5
mov eax, dword [ebp - 8]
push 0xb
pop ecx
lea esi, [ebp - 0x38]
lea edi, [ebp - 0x64]
rep movsd dword es:[edi], dword [esi]
lea esi, [eax + 0x34]
mov ecx, esi
call fcn.0041d02a
mov edi, dword [esi + 4]
mov eax, dword [ebp - 8]
imul edi, edi, 0x2c
add edi, dword [esi]
push 0xb
pop ecx
lea esi, [ebp - 0x64]
add eax, 0x34
rep movsd dword es:[edi], dword [esi]
inc dword [eax + 4]
inc dword [ebp - 4]
mov eax, dword [ebp - 4]
cmp eax, dword [ebp - 0xc]
jb 0x41b70c
mov esi, dword [sym.imp.KERNEL32.dll_GetProcAddress]
mov edi, dword [ebp - 8]
push str.GetHashers
push dword [ebx]
call esi
test eax, eax
je 0x41b7f3
add ebx, 0x24
push ebx
call eax
test eax, eax
jne 0x41b7f5
mov ebx, dword [ebx]
test ebx, ebx
je 0x41b7f3
mov eax, dword [ebx]
push ebx
call dword [eax + 0xc]
and dword [ebp - 0xc], 0
mov dword [ebp - 8], eax
test eax, eax
jbe 0x41b7f3
lea esi, [edi + 0x40]
mov ebx, dword [edi + 0x10]
mov ecx, esi
dec ebx
call fcn.0041d07e
mov ecx, dword [esi + 4]
mov edx, dword [esi]
mov eax, dword [ebp - 0xc]
mov dword [edx + ecx*8], ebx
mov dword [edx + ecx*8 + 4], eax
inc dword [esi + 4]
inc eax
cmp eax, dword [ebp - 8]
mov dword [ebp - 0xc], eax
jb 0x41b7cd
xor eax, eax
pop edi
pop esi
pop ebx
leave
ret

Function at 0x41be93
Capabilities:
Access peb ldr_data

Disassembly:
mov eax, 0x4362fe
call fcn.00433e80
push ecx
push esi
mov esi, ecx
mov dword [ebp - 0x10], esi
lea ecx, [esi + 0x30]
mov dword [ebp - 4], 1
call fcn.0040155c
and byte [ebp - 4], 0
lea ecx, [esi + 0x18]
call fcn.0041cc1b
push dword [esi + 0xc]
call fcn.00401b54
pop ecx
pop esi
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
leave
ret
Function at 0x41ce04
Capabilities:
Access peb ldr_data
Get kernel32 base address
Get process heap flags
Get process heap force flags

Disassembly:
mov eax, 0x436506
call fcn.00433e80
push ecx
push ebx
push esi
mov esi, dword [ebp + 8]
mov ebx, ecx
push edi
mov dword [ebp - 0x10], ebx
mov eax, dword [esi]
lea ecx, [ebx + 0xc]
mov dword [ebx], eax
mov eax, dword [esi + 4]
mov dword [ebx + 4], eax
mov eax, dword [esi + 8]
mov dword [ebx + 8], eax
lea eax, [esi + 0xc]
push eax
call fcn.00402a53
and dword [ebp - 4], 0
lea eax, [esi + 0x18]
push eax
lea ecx, [ebx + 0x18]
call fcn.0041ced9
mov eax, dword [esi + 0x24]
lea ecx, [ebx + 0x30]
mov dword [ebx + 0x24], eax
mov al, byte [esi + 0x28]
mov byte [ebx + 0x28], al
mov al, byte [esi + 0x29]
mov byte [ebx + 0x29], al
mov eax, dword [esi + 0x2c]
mov dword [ebx + 0x2c], eax
lea eax, [esi + 0x30]
push eax
mov byte [ebp - 4], 1
call fcn.0041cf92
mov eax, dword [esi + 0x3c]
add esi, 0x44
mov dword [ebx + 0x3c], eax
mov eax, dword [esi - 4]
lea edi, [ebx + 0x44]
mov dword [ebx + 0x40], eax
movsd dword es:[edi], dword [esi]
movsd dword es:[edi], dword [esi]
mov ecx, dword [ebp - 0xc]
mov eax, ebx
movsd dword es:[edi], dword [esi]
movsd dword es:[edi], dword [esi]
pop edi
pop esi
pop ebx
mov dword fs:[0], ecx
leave
ret 4

Function at 0x42375f
Capabilities:
Access peb ldr_data

Disassembly:
mov eax, 0x436c41
call fcn.00433e80
push ecx
push esi
push edi
mov edi, dword [ebp + 8]
mov esi, ecx
mov dword [ebp - 0x10], esi
mov eax, dword [edi]
lea ecx, [esi + 0x10]
mov dword [esi], eax
mov eax, dword [edi + 4]
mov dword [esi + 4], eax
mov eax, dword [edi + 8]
mov dword [esi + 8], eax
mov eax, dword [edi + 0xc]
mov dword [esi + 0xc], eax
lea eax, [edi + 0x10]
push eax
call fcn.00402a53
and dword [ebp - 4], 0
lea eax, [edi + 0x1c]
push eax
lea ecx, [esi + 0x1c]
call fcn.00402a53
mov eax, dword [edi + 0x28]
lea ecx, [esi + 0x30]
mov dword [esi + 0x28], eax
mov eax, dword [edi + 0x2c]
mov dword [esi + 0x2c], eax
lea eax, [edi + 0x30]
push eax
mov byte [ebp - 4], 1
call fcn.00402a53
lea eax, [edi + 0x3c]
lea ecx, [esi + 0x3c]
push eax
mov byte [ebp - 4], 2
call fcn.00402a53
mov al, byte [edi + 0x48]
mov ecx, dword [ebp - 0xc]
mov byte [esi + 0x48], al
mov al, byte [edi + 0x49]
mov byte [esi + 0x49], al
mov al, byte [edi + 0x4a]
mov byte [esi + 0x4a], al
mov al, byte [edi + 0x4b]
mov byte [esi + 0x4b], al
mov al, byte [edi + 0x4c]
mov byte [esi + 0x4c], al
mov al, byte [edi + 0x4d]
mov byte [esi + 0x4d], al
mov eax, dword [edi + 0x50]
mov dword [esi + 0x50], eax
mov eax, dword [edi + 0x54]
mov dword [esi + 0x54], eax
mov eax, dword [edi + 0x58]
mov dword [esi + 0x58], eax
mov eax, dword [edi + 0x5c]
mov dword [esi + 0x5c], eax
mov eax, dword [edi + 0x60]
mov dword [esi + 0x60], eax
mov eax, dword [edi + 0x64]
mov dword [esi + 0x64], eax
mov eax, dword [edi + 0x68]
mov dword [esi + 0x68], eax
mov al, byte [edi + 0x6c]
mov byte [esi + 0x6c], al
mov eax, esi
pop edi
pop esi
mov dword fs:[0], ecx
leave
ret 4
Function at 0x428548
Capabilities:
Access peb ldr_data
Get kernel32 base address
Get number of processors

Disassembly:
mov eax, 0x43729f
call fcn.00433e80
push ecx
push ebx
push esi
mov esi, ecx
xor ebx, ebx
mov dword [ebp - 0x10], esi
mov dword [esi], 0x43b910
mov dword [esi + 4], 0x43b8fc
mov dword [esi + 8], 0x439e78
mov dword [esi + 0xc], 0x43b8e0
mov dword [esi + 0x10], 0x43b8cc
mov dword [esi + 0x14], 0x43b8bc
mov dword [esi + 0x18], 0x439e68
mov dword [esi + 0x1c], 0x439e58
mov dword [esi + 0x20], 0x43b8b4
mov dword [esi + 0x24], ebx
mov dword [ebp - 4], ebx
mov dword [esi + 0x2c], ebx
mov dword [esi + 0x30], ebx
mov dword [esi + 0x34], ebx
or dword [esi + 0x38], 0xffffffff
mov dword [esi + 0x40], ebx
mov dword [esi + 0x44], ebx
mov dword [esi + 0x48], ebx
mov dword [esi + 0x4c], ebx
mov dword [esi + 0x50], ebx
mov dword [esi + 0x54], ebx
mov dword [esi + 0x58], ebx
mov dword [esi + 0x5c], ebx
mov dword [esi + 0x60], ebx
lea ecx, [esi + 0x64]
mov byte [ebp - 4], 4
call fcn.00402980
lea ecx, [esi + 0x70]
mov byte [ebp - 4], 5
call fcn.00402980
mov dword [esi + 0x7c], ebx
mov dword [esi + 0x80], ebx
mov dword [esi + 0x84], ebx
mov dword [esi + 0x88], ebx
mov dword [esi + 0x8c], ebx
or dword [esi + 0x9c], 0xffffffff
mov byte [ebp - 4], 7
mov dword [esi + 0x90], ebx
mov dword [esi + 0x94], ebx
mov dword [esi + 0x98], ebx
mov dword [esi + 0xa0], ebx
mov byte [esi + 0xa4], bl
mov byte [esi + 0xa5], bl
mov byte [esi + 0xa6], bl
mov byte [esi + 0xa7], bl
mov byte [esi + 0xa8], bl
mov byte [esi + 0xa9], bl
mov byte [esi + 0xaa], bl
mov dword [esi + 0xac], ebx
mov dword [esi], 0x43b888
mov dword [esi + 4], 0x43b874
mov dword [esi + 8], 0x43b85c
mov dword [esi + 0xc], 0x43b840
mov dword [esi + 0x10], 0x43b82c
mov dword [esi + 0x14], 0x43b81c
mov dword [esi + 0x18], 0x43b80c
mov dword [esi + 0x1c], 0x43b7fc
mov dword [esi + 0x20], 0x43b7f4
call fcn.0040d5d1
mov ecx, dword [ebp - 0xc]
mov byte [esi + 0x28], al
mov eax, esi
pop esi
pop ebx
mov dword fs:[0], ecx
leave
ret
Function at 0x42fede
Capabilities:
Access peb ldr_data
Get kernel32 base address

Disassembly:
mov eax, 0x437a36
call fcn.00433e80
push ecx
push ebx
push esi
mov esi, ecx
xor ebx, ebx
mov dword [ebp - 0x10], esi
mov dword [esi], 0x43d758
mov dword [esi + 4], 0x43d740
mov dword [esi + 8], ebx
mov dword [ebp - 4], ebx
mov dword [esi + 0xc], ebx
mov dword [esi + 0x10], ebx
mov dword [esi + 0x14], ebx
lea ecx, [esi + 0x18]
mov byte [ebp - 4], 1
call fcn.00402980
mov ecx, dword [ebp - 0xc]
mov byte [esi + 0x24], 1
mov dword [esi + 0x28], ebx
mov dword [esi + 0x2c], ebx
mov dword [esi + 0x30], ebx
mov dword [esi + 0x34], ebx
mov dword [esi + 0x38], ebx
mov dword [esi + 0x3c], ebx
mov dword [esi + 0x40], ebx
mov dword [esi + 0x44], ebx
mov dword [esi + 0x48], ebx
mov byte [esi + 0x4c], bl
mov byte [esi + 0x4d], bl
mov dword [esi], 0x43d724
mov dword [esi + 4], 0x43d70c
mov eax, esi
pop esi
pop ebx
mov dword fs:[0], ecx
leave
ret
Function at 0x433b60
Capabilities:
Create thread

Disassembly:
push esi
lea eax, [esp + 8]
push eax
push 0
mov esi, ecx
mov ecx, dword [esp + 0x10]
push ecx
push edx
push 0
push 0
call dword [sym.imp.MSVCRT.dll__beginthreadex]
add esp, 0x18
mov dword [esi], eax
pop esi
test eax, eax
je 0x433b89
xor eax, eax
ret 4
call dword [sym.imp.KERNEL32.dll_GetLastError]
test eax, eax
jne 0x433b98
mov eax, 1
ret 4

Function at 0x433e10
Capabilities:
Check os version

Disassembly:
sub esp, 0x114
lea eax, [esp]
push esi
mov esi, dword [sym.imp.KERNEL32.dll_GetVersionExW]
push eax
mov dword [esp + 8], 0x114
call esi
lea ecx, [esp + 4]
push ecx
call esi
test eax, eax
pop esi
je 0x433e47
cmp dword [esp + 4], 6
jne 0x433e47
mov eax, dword [esp + 8]
test eax, eax
je 0x433e69
push str.SetDefaultDllDirectories
push 0x4392cc
call dword [sym.imp.KERNEL32.dll_GetModuleHandleW]
push eax
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
test eax, eax
je 0x433e69
push 0xc00
call eax
add esp, 0x114
ret
Function at 0x10014223
Capabilities:
Parse pe header

Disassembly:
push 0
call dword [sym.imp.KERNEL32.dll_GetModuleHandleW]
test eax, eax
je 0x10014262
mov ecx, 0x5a4d
cmp word [eax], cx
jne 0x10014262
mov ecx, dword [eax + 0x3c]
add ecx, eax
cmp dword [ecx], 0x4550
jne 0x10014262
mov eax, 0x10b
cmp word [ecx + 0x18], ax
jne 0x10014262
cmp dword [ecx + 0x74], 0xe
jbe 0x10014262
cmp dword [ecx + 0xe8], 0
setne al
ret
xor al, al
ret
Function at 0x10016edf
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 0x10016f7c
push ebx
push esi
call fcn.10016ea8
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.10016e3c
add esp, 0x24
mov dword [ebp - 4], eax
test eax, eax
jne 0x10016f29
push esi
call dword [sym.imp.KERNEL32.dll_FreeEnvironmentStringsW]
xor eax, eax
jmp 0x10016f7b
push edi
push eax
call fcn.10017e9a
mov edi, eax
pop ecx
push ebx
test edi, edi
jne 0x10016f49
call fcn.10015984
pop ecx
push esi
call dword [sym.imp.KERNEL32.dll_FreeEnvironmentStringsW]
xor eax, eax
jmp 0x10016f7a
push ebx
push dword [ebp - 4]
push edi
push dword [ebp - 8]
push esi
push ebx
push ebx
call fcn.10016e3c
add esp, 0x20
test eax, eax
jne 0x10016f68
push edi
call fcn.10015984
jmp 0x10016f70
push ebx
call fcn.10015984
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 0x100171e9
Capabilities:
Allocate thread local storage

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push esi
push 0x1001e678
push 0x1001e670
push str.FlsAlloc
push 0x1f
call fcn.10017105
mov esi, eax
add esp, 0x10
test esi, esi
je 0x1001721d
push dword [ebp + 8]
mov ecx, esi
call dword [0x1001d158]
call esi
jmp 0x10017223
call dword [sym.imp.KERNEL32.dll_TlsAlloc]
pop esi
pop ebp
ret 4

Function at 0x10017267
Capabilities:
Get thread local storage value

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push esi
push 0x1001e688
push 0x1001e680
push str.FlsGetValue
push 0x21
call fcn.10017105
mov esi, eax
add esp, 0x10
test esi, esi
je 0x1001729e
push dword [ebp + 8]
mov ecx, esi
call dword [0x1001d158]
call esi
pop esi
pop ebp
ret 4
pop esi
pop ebp
jmp dword [sym.imp.KERNEL32.dll_TlsGetValue]

Function at 0x100172a6
Capabilities:
Set thread local storage value

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push esi
push 0x1001e690
push 0x1001e688
push str.FlsSetValue
push 0x22
call fcn.10017105
mov esi, eax
add esp, 0x10
test esi, esi
je 0x100172e0
push dword [ebp + 0xc]
mov ecx, esi
push dword [ebp + 8]
call dword [0x1001d158]
call esi
pop esi
pop ebp
ret 8
pop esi
pop ebp
jmp dword [sym.imp.KERNEL32.dll_TlsSetValue]
Function at 0x1001c960
Capabilities:
Parse pe header

Disassembly:
push ebp
mov ebp, esp
mov eax, dword [ebp + 8]
mov ecx, 0x5a4d
cmp word [eax], cx
jne 0x1001c98d
mov ecx, dword [eax + 0x3c]
add ecx, eax
cmp dword [ecx], 0x4550
jne 0x1001c98d
mov edx, 0x10b
xor eax, eax
cmp word [ecx + 0x18], dx
sete al
pop ebp
ret
xor eax, eax
pop ebp
ret
Function at 0x402570
Capabilities:
Enumerate pe sections

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x401b20
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x18
push ebx
push esi
push edi
mov edi, dword [sym.imp.KERNEL32.dll_LoadLibraryA]
mov dword [ebp - 0x10], esp
push str.VirtualAlloc
push str.kernel32.dll
call edi
mov ebx, dword [sym.imp.KERNEL32.dll_GetProcAddress]
push eax
call ebx
mov esi, dword [sym.imp.KERNEL32.dll_Sleep]
push 0
call esi
push 0
call esi
push 0
call esi
mov ecx, dword [ebp + 0x10]
xor edx, edx
mov dword [ebp - 0x14], 0
mov eax, dword [ecx + 4]
mov dword [ebp - 0x1c], eax
mov eax, dword [ecx]
mov dx, word [eax + 0x14]
lea esi, [edx + eax + 0x18]
mov dword [ebp - 0x18], esi
mov eax, dword [ecx]
xor ecx, ecx
mov cx, word [eax + 6]
mov eax, dword [ebp - 0x14]
cmp eax, ecx
jge 0x4026d2
mov eax, dword [esi + 0x10]
push str.VirtualAlloc
test eax, eax
push str.KERNEL32.dll
jne 0x402642
call edi
push eax
call ebx
mov edx, dword [ebp + 0xc]
mov edi, dword [edx + 0x38]
test edi, edi
jle 0x4026b7
mov ecx, dword [esi + 0xc]
mov edx, dword [ebp - 0x1c]
push 4
push 0x1000
add ecx, edx
push edi
push ecx
call eax
mov edx, eax
mov ecx, edi
mov dword [esi + 8], edx
mov edi, edx
mov edx, ecx
xor eax, eax
shr ecx, 2
rep stosd dword es:[edi], eax
mov ecx, edx
and ecx, 3
rep stosb byte es:[edi], al
jmp 0x4026b7
call edi
push eax
call ebx
mov edx, dword [esi + 0xc]
mov edi, dword [ebp - 0x1c]
mov ecx, dword [esi + 0x10]
push 4
push 0x1000
add edx, edi
push ecx
push edx
call eax
mov dword [ebp - 0x20], eax
lea eax, [ebp - 0x24]
push 0x404a38
push eax
mov dword [ebp - 4], 0
mov dword [ebp - 0x24], 0x55
call sub.MSVCRT.dll__CxxThrowException
mov eax, dword [ebp - 0x18]
mov edi, dword [ebp - 0x20]
mov ecx, dword [eax + 0x10]
mov esi, dword [eax + 0x14]
mov eax, dword [ebp + 8]
mov edx, ecx
add esi, eax
mov eax, 0x4026a1
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, edx
and ecx, 3
rep movsb byte es:[edi], byte [esi]
ret
mov ecx, dword [ebp - 0x14]
mov edi, dword [sym.imp.KERNEL32.dll_LoadLibraryA]
inc ecx
add esi, 0x28
mov dword [ebp - 0x14], ecx
mov ecx, dword [ebp + 0x10]
mov dword [ebp - 0x18], esi
jmp 0x4025dd
mov ecx, dword [ebp - 0xc]
pop edi
pop esi
mov dword fs:[0], ecx
pop ebx
mov esp, ebp
pop ebp
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, 0x49ad73f9
nop
nop
nop
nop
test eax, eax
nop
nop
nop
nop
je 0x43304e
nop
nop
xor dword [eax], ecx
nop
nop
nop
nop
nop
inc eax
nop
nop
nop
nop
inc eax
nop
nop
nop
nop
nop
nop
inc eax
nop
nop
nop
nop
nop
nop
nop
inc eax
nop
nop
nop
nop
nop
cmp eax, ebx
nop
nop
nop
jne 0x433024
nop
nop
mov eax, section..data
nop
mov ebx, 0x4304d8
nop
mov ecx, 0x5b897a07
nop
nop
nop
nop
test eax, eax
nop
je 0x433084
nop
nop
nop
xor dword [eax], ecx
nop
nop
nop
nop
nop
nop
add eax, 4
nop
nop
nop
nop
cmp eax, ebx
nop
nop
nop
jne 0x43306c
nop
nop
nop
nop
nop
nop
popal
nop
jmp 0x431219
Function at 0x41b3a2
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
push ecx
and dword [ebp - 4], 0
cmp dword [ebp + 8], 0
je 0x41b411
mov eax, dword [ebp + 8]
test eax, 3
je 0x41b3d3
cmp word [eax], 0
je 0x41b3cc
lea eax, [eax + 2]
test eax, 3
je 0x41b3d3
jmp 0x41b3ba
sub eax, dword [ebp + 8]
shr eax, 1
jmp 0x41b40e
mov edx, dword [eax]
lea eax, [eax + 4]
mov ecx, edx
sub edx, 0x10001
xor edx, ecx
and edx, 0x80008000
je 0x41b3d3
sub eax, dword [ebp + 8]
shr eax, 1
test cx, cx
lea eax, [eax - 2]
je 0x41b40e
test ecx, 0xffff0000
lea eax, [eax + 1]
je 0x41b40e
lea eax, [eax*2 + 2]
add eax, dword [ebp + 8]
jmp 0x41b3d3
mov dword [ebp - 4], eax
mov eax, dword [ebp - 4]
leave
ret 4
Function at 0x4015ac
Capabilities:
Accept command line arguments

Disassembly:
push ebp
mov ebp, esp
push ecx
push ebx
push esi
push edi
push 2
call dword [sym.imp.KERNEL32.dll_WerSetFlags]
xor ebx, ebx
push ebx
push ebx
push 0x401630
call dword [sym.imp.KERNEL32.dll_LoadLibraryExW]
push 0x401644
push eax
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
test eax, eax
je 0x4015e1
push ebx
push ebx
push 1
push ebx
call eax
call fcn.00402b96
call dword [sym.imp.KERNEL32.dll_GetCommandLineW]
lea edx, [ebp - 4]
mov ecx, eax
call fcn.00401cde
mov esi, dword [ebp - 4]
mov edi, eax
dec esi
je 0x4037f6
cmp esi, 1
je 0x4037de
lea eax, [ebp - 4]
push eax
lea edx, [edi + 4]
mov ecx, esi
mov dword [ebp - 4], ebx
call fcn.004013e4
test al, al
je 0x403805
mov eax, dword [ebp - 4]
pop edi
pop esi
pop ebx
leave
ret 0x10
push 0x404020
push dword [edi + 4]
call dword [sym.imp.MSVCR110_CLR0400.dll__wcsicmp]
pop ecx
pop ecx
test eax, eax
jne 0x40160b
test esi, esi
setg cl
call fcn.00407080
jmp 0x40160b
lea edx, [edi + 4]
mov ecx, esi
call fcn.004053c0
jmp 0x401627

Function at 0x40298e
Capabilities:
Query environment variable

Disassembly:
xor ecx, ecx
push 2
pop edx
mul edx
seto cl
neg ecx
or ecx, eax
push ecx
push 0
call dword [0x414068]
mov esi, eax
test esi, esi
je 0x40297c
push edi
push esi
lea eax, [ebp - 0x84]
push eax
call ebx
mov eax, esi
jmp 0x402a25
xor eax, eax
mov word [ebp - 0x84], ax
jmp 0x4029f5
push ebp
mov ebp, esp
sub esp, 0x8c
mov eax, dword [0x41400c]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
push esi
push edi
mov edi, ecx
mov esi, edi
xor ebx, ebx
lea ecx, [esi + 2]
mov ax, word [esi]
add esi, 2
cmp ax, bx
jne 0x4029ad
sub esi, ecx
sar esi, 1
mov ecx, edx
neg ecx
sbb ecx, ecx
push 0x3f
and ecx, 8
pop eax
sub eax, ecx
cmp esi, eax
ja 0x402a23
test edx, edx
je 0x402983
cmp dword [0x4140e0], ebx
jne 0x4038fe
push 0x402a34
lea eax, [ebp - 0x84]
push 0x40
push eax
call dword [sym.imp.MSVCR110_CLR0400.dll_wcscpy_s]
add esp, 0xc
push edi
lea eax, [ebp - 0x84]
push 0x40
push eax
call dword [sym.imp.MSVCR110_CLR0400.dll_wcscat_s]
add esp, 0xc
lea eax, [ebp - 0x84]
push ebx
push ebx
mov ebx, dword [sym.imp.KERNEL32.dll_GetEnvironmentVariableW]
push eax
call ebx
mov edi, eax
test edi, edi
jne 0x402954
xor eax, eax
mov ecx, dword [ebp - 4]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.004010aa
leave
ret
lea eax, [ebp - 0x8c]
push eax
lea eax, [ebp - 0x88]
push eax
push ecx
push edi
call fcn.0040cb2f
mov eax, dword [ebp - 0x88]
mov ecx, dword [ebp - 0x8c]
test dword [eax*4 + 0x414920], ecx
jne 0x4029de
jmp 0x402a23