joyce8/EMBER2024-capa huggingface dataset:
Function at 0x10015fe0
Capabilities:
Link many functions at runtime

Disassembly:
push ebp
mov ebp, esp
push 0xfffffffffffffffe
push 0x1003ebf0
push 0x10018a40
mov eax, dword fs:[0]
push eax
sub esp, 0x30
mov eax, dword [0x10040014]
xor dword [ebp - 8], eax
xor eax, ebp
mov dword [ebp - 0x1c], eax
push ebx
push esi
push edi
push eax
lea eax, [ebp - 0x10]
mov dword fs:[0], eax
mov eax, dword [ebp + 8]
mov dword [ebp - 0x34], eax
mov dword [ebp - 0x28], 0
xor esi, esi
mov dword [ebp - 0x3c], esi
mov dword [ebp - 0x2c], esi
xor ebx, ebx
mov dword [ebp - 0x38], ebx
mov dword [ebp - 0x24], ebx
mov word [ebp - 0x20], 0x100
mov eax, dword [ecx]
mov edi, dword [eax + 0x28]
mov dword [ebp - 0x40], edi
test edi, edi
jne 0x10016049
xor eax, eax
jmp 0x100161bf
mov dword [ebp - 4], ebx
push str.InitializeSecurityDescriptor
push edi
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
test eax, eax
je 0x1001618a
push 1
push dword [ebp - 0x34]
call eax
test eax, eax
je 0x1001618a
push str.AllocateAndInitializeSid
push edi
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
test eax, eax
je 0x1001618a
lea ecx, [ebp - 0x28]
push ecx
push 0
push 0
push 0
push 0
push 0
push 0
push 0
push 0
push 1
lea ecx, [ebp - 0x24]
push ecx
call eax
test eax, eax
je 0x1001618a
push str.GetLengthSid
push edi
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
test eax, eax
je 0x1001618a
push dword [ebp - 0x28]
call eax
add eax, 0x10
mov dword [ebp - 0x30], eax
push eax
push 8
call dword [sym.imp.KERNEL32.dll_GetProcessHeap]
push eax
call dword [sym.imp.KERNEL32.dll_HeapAlloc]
mov esi, eax
mov dword [ebp - 0x3c], esi
test esi, esi
je 0x1001618a
push str.InitializeAcl
push edi
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
test eax, eax
je 0x1001618a
push 2
push dword [ebp - 0x30]
push esi
call eax
test eax, eax
je 0x1001618a
push str.AddAccessAllowedAce
push edi
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
test eax, eax
je 0x1001618a
push dword [ebp - 0x28]
push 0x10000000
push 2
push esi
call eax
test eax, eax
je 0x1001618a
push str.SetSecurityDescriptorDacl
push edi
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
mov dword [ebp - 0x30], eax
test eax, eax
je 0x1001618a
mov ecx, dword [ebp - 0x2c]
test ecx, ecx
je 0x10016173
push 0
push ecx
push 1
push dword [ebp - 0x34]
call eax
test eax, eax
je 0x10016160
mov ebx, 1
mov dword [ebp - 0x38], ebx
cmp dword [ebp - 0x2c], 0
je 0x10016170
jmp 0x1001618a
push dword [ebp - 0x2c]
call dword [sym.imp.KERNEL32.dll_LocalFree]
mov dword [ebp - 0x2c], 0
mov eax, dword [ebp - 0x30]
push 0
push esi
push 1
push dword [ebp - 0x34]
call eax
mov ecx, 1
test eax, eax
cmovne ebx, ecx
mov dword [ebp - 0x38], ebx
mov dword [ebp - 4], 0xfffffffe
call fcn.100161e6
test ebx, ebx
jne 0x100161bd
test esi, esi
je 0x100161af
push esi
push ebx
call dword [sym.imp.KERNEL32.dll_GetProcessHeap]
push eax
call dword [sym.imp.KERNEL32.dll_HeapFree]
xor esi, esi
mov eax, dword [ebp - 0x2c]
test eax, eax
je 0x100161bd
push eax
call dword [sym.imp.KERNEL32.dll_LocalFree]
mov eax, esi
mov ecx, dword [ebp - 0x10]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 0x1c]
xor ecx, ebp
call fcn.100174a0
mov esp, ebp
pop ebp
ret 0xc
Function at 0x100163aa
Capabilities:
Hook routines via microsoft detours

Disassembly:
push ebp
mov ebp, esp
mov edx, dword [0x10040b74]
push ebx
push esi
mov esi, dword [ebp + 8]
mov ebx, 0x10000
cmp esi, 0x7ff80000
push edi
mov edi, 0xfff80000
lea eax, [esi - 0x7ff80000]
cmova ebx, eax
cmp esi, 0x80000000
lea eax, [esi + 0x7ff80000]
cmovb edi, eax
mov eax, dword [0x10040b70]
test edx, edx
jne 0x100163f6
test eax, eax
je 0x10016409
mov edx, eax
mov dword [0x10040b74], edx
mov ecx, dword [edx + 8]
test ecx, ecx
je 0x10016409
cmp ecx, ebx
jb 0x10016409
cmp ecx, edi
jbe 0x100164f2
mov edx, eax
test eax, eax
jmp 0x1001642b
test edx, edx
je 0x10016426
mov eax, dword [edx + 8]
test eax, eax
je 0x10016426
cmp eax, ebx
jb 0x10016426
cmp eax, edi
jbe 0x100164f2
mov edx, dword [edx + 4]
test edx, edx
mov dword [0x10040b74], edx
jne 0x1001640f
movzx eax, si
sub esi, eax
cmp esi, 0x40000000
jbe 0x10016470
lea eax, [esi - 0x40000000]
push esi
push eax
call fcn.100162f3
mov edx, eax
pop ecx
pop ecx
test edx, edx
jne 0x100164ba
lea eax, [esi - 0x40000000]
push eax
push ebx
call fcn.1001625c
mov edx, eax
pop ecx
pop ecx
test edx, edx
jne 0x100164ba
cmp esi, 0x40000000
jae 0x1001649c
lea eax, [esi + 0x40000000]
push eax
push esi
call fcn.1001625c
mov edx, eax
pop ecx
pop ecx
test edx, edx
jne 0x100164ba
lea eax, [esi + 0x40000000]
push edi
push eax
call fcn.100162f3
mov edx, eax
pop ecx
pop ecx
test edx, edx
jne 0x100164ba
push esi
push ebx
call fcn.1001625c
mov edx, eax
pop ecx
pop ecx
test edx, edx
jne 0x100164ba
push edi
push esi
call fcn.100162f3
mov edx, eax
pop ecx
pop ecx
test edx, edx
je 0x10016517
xor ecx, ecx
mov dword [edx], 0x52727464
mov dword [edx + 8], ecx
mov esi, 0x38b
mov eax, dword [0x10040b70]
mov dword [edx + 4], eax
lea eax, [edx + 0xffa8]
mov dword [0x10040b74], edx
mov dword [0x10040b70], edx
mov dword [eax + 0x40], ecx
mov ecx, eax
sub eax, 0x48
dec esi
jne 0x100164e4
mov dword [edx + 8], ecx
mov esi, dword [edx + 8]
cmp esi, ebx
jb 0x10016517
cmp esi, edi
ja 0x10016517
mov ecx, dword [esi + 0x40]
push 0x48
push 0xcc
push esi
mov dword [edx + 8], ecx
call fcn.10019120
add esp, 0xc
mov eax, esi
jmp 0x10016519
xor eax, eax
pop edi
pop esi
pop ebx
pop ebp
ret

Function at 0x10016607
Capabilities:
Parse pe header

Disassembly:
push 0x24
push 0x1003ec10
call fcn.10017eb0
push 0x1c
lea eax, [ebp - 0x34]
push eax
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.dll_VirtualQuery]
and dword [ebp - 4], 0
mov eax, 0x5a4d
mov ecx, dword [ebp - 0x30]
cmp word [ecx], ax
jne 0x10016670
mov edx, dword [ecx + 0x3c]
cmp dword [edx + ecx], 0x4550
jne 0x10016670
mov esi, dword [edx + ecx + 0xd8]
lea eax, [esi + ecx]
cmp dword [ebp + 0xc], eax
jb 0x10016670
mov eax, dword [edx + ecx + 0xdc]
add eax, esi
add eax, ecx
cmp dword [ebp + 0xc], eax
jae 0x10016670
mov dword [ebp - 4], 0xfffffffe
mov al, 1
jmp 0x10016679
mov dword [ebp - 4], 0xfffffffe
xor al, al
call fcn.10017ef6
ret
Function at 0x2983656f
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x58
pushal
call 0x2983657e
pop dword [ebp - 0x48]
mov eax, 0xaad85b68
sub eax, 0x8154f5ea
sub dword [ebp - 0x48], eax
mov dword [ebp - 0x58], 0x6ce4158d
sub dword [ebp - 0x58], 0x1e91d042
mov dword [ebp - 0x54], 0x648e9116
sub dword [ebp - 0x54], 0x325b44d1
mov dword [ebp - 0x50], 0xd3913953
sub dword [ebp - 0x50], 0x8744f525
mov dword [ebp - 0x4c], 0xda8a08c6
add dword [ebp - 0x4c], 0x2575f73a
lea eax, [ebp - 0x58]
push eax
mov eax, 0xbef1e7b8
sub eax, 0x956da6c0
add eax, dword [ebp - 0x48]
call dword [eax]
mov dword [ebp - 0x58], 0xdc0bc505
sub dword [ebp - 0x58], 0x67995baf
mov dword [ebp - 0x54], 0xdbfd8a2e
sub dword [ebp - 0x54], 0x9a9128b9
mov dword [ebp - 0x50], 0x78fecddc
add dword [ebp - 0x50], 0xea709e90
mov dword [ebp - 0x4c], 0x47f20116
add dword [ebp - 0x4c], 0xb80dfeea
lea ebx, [ebp - 0x58]
push ebx
push eax
mov eax, 0xda568dc
sub eax, 0xe42127ec
add eax, dword [ebp - 0x48]
call dword [eax]
push 0x40
push 0x1000
push 0x44a54
push 0
call eax
mov ecx, 0x6c15609
sub ecx, 0x6c10cd6
mov ebx, eax
mov esi, 0x2987c000
add esi, dword [ebp - 0x48]
mov edx, 0x35b8f8b6
add edx, 0x897dead7
sub dword [ebp - 0x14], 0xe0ae82e7
mov edi, dword [esi]
sub dword [ebp - 8], 0xbb41e4b0
xor edi, edx
add dword [ebp - 0x30], 0x3cd96908
mov dword [ebx], edi
sub dword [ebp - 0x40], ebx
add ebx, 4
add esi, 4
loop 0x2983669a
add eax, 0xbc1d3369
sub eax, 0xbc1c1bca
xor ebx, ebx
add ebx, eax
add eax, 0x7e8912e4
add eax, 0x8176ed21
mov ecx, 0xc59adb2f
sub ecx, 0x9c1adb2f
add ecx, dword [ebp - 0x48]
call ebx
leave
ret
Function at 0x407180
Capabilities:
Enumerate pe sections

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
mov eax, dword [ebp + 8]
xor edx, edx
push ebx
push esi
push edi
mov ecx, dword [eax + 0x3c]
add ecx, eax
movzx eax, word [ecx + 0x14]
movzx ebx, word [ecx + 6]
add eax, 0x18
add eax, ecx
test ebx, ebx
je 0x4071be
mov edi, dword [ebp + 0xc]
mov esi, dword [eax + 0xc]
cmp edi, esi
jb 0x4071b6
mov ecx, dword [eax + 8]
add ecx, esi
cmp edi, ecx
jb 0x4071c0
inc edx
add eax, 0x28
cmp edx, ebx
jb 0x4071a6
xor eax, eax
pop edi
pop esi
pop ebx
pop ebp
ret

Function at 0x4072a0
Capabilities:
Parse pe header

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

Function at 0x1000276e
Capabilities:
Allocate or change rwx memory

Disassembly:
push esi
mov esi, dword [esp + 8]
cmp dword [esi + 0x80c], 0
jne 0x100027c4
inc dword [0x10004040]
mov eax, dword [0x10004040]
or dword [esi + 0x810], 2
push 0x40
push 0x1000
push 0xa
push 0
mov dword [esi + 0x1498], eax
call dword [sym.imp.KERNEL32.dll_VirtualAlloc]
mov dword [esi + 0x80c], eax
mov byte [eax], 0xb8
inc eax
mov ecx, 0x100013e7
mov dword [eax], esi
add eax, 4
mov byte [eax], 0xe9
inc eax
sub ecx, eax
sub ecx, 4
mov dword [eax], ecx
mov eax, dword [esi + 0x80c]
pop esi
ret

Function at 0x10002930
Capabilities:
Allocate or change rwx memory

Disassembly:
mov eax, dword [esp + 4]
cmp dword [esp + 8], 1
mov dword [0x10004038], eax
jne 0x1000297b
push 0x1000403c
push 0x40
push 4
push 0x1000404c
call dword [sym.imp.KERNEL32.dll_VirtualProtect]
xor eax, eax
mov byte [0x1000404c], 0xc2
mov dword [0x1000403c], eax
mov dword [0x10004044], eax
mov dword [0x10004054], eax
mov dword [0x10004048], eax
mov dword [0x10004040], eax
mov byte [0x1000404e], al
xor eax, eax
inc eax
ret 0xc
Function at 0x409ee2
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 0x409f7f
push ebx
push esi
call fcn.00409eab
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.00409e3f
add esp, 0x24
mov dword [ebp - 4], eax
test eax, eax
jne 0x409f2c
push esi
call dword [sym.imp.KERNEL32.dll_FreeEnvironmentStringsW]
xor eax, eax
jmp 0x409f7e
push edi
push eax
call fcn.00408922
mov edi, eax
pop ecx
push ebx
test edi, edi
jne 0x409f4c
call fcn.00408148
pop ecx
push esi
call dword [sym.imp.KERNEL32.dll_FreeEnvironmentStringsW]
xor eax, eax
jmp 0x409f7d
push ebx
push dword [ebp - 4]
push edi
push dword [ebp - 8]
push esi
push ebx
push ebx
call fcn.00409e3f
add esp, 0x20
test eax, eax
jne 0x409f6b
push edi
call fcn.00408148
jmp 0x409f73
push ebx
call fcn.00408148
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 0x40a5ed
Capabilities:
Allocate thread local storage

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push esi
push 0x413cd0
push 0x413cc8
push str.FlsAlloc
push 0x1f
call fcn.0040a4ac
mov esi, eax
add esp, 0x10
test esi, esi
je 0x40a621
push dword [ebp + 8]
mov ecx, esi
call dword [0x411144]
call esi
jmp 0x40a627
call dword [sym.imp.KERNEL32.dll_TlsAlloc]
pop esi
pop ebp
ret 4

Function at 0x40a66b
Capabilities:
Get thread local storage value

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push esi
push 0x413ce0
push 0x413cd8
push str.FlsGetValue
push 0x21
call fcn.0040a4ac
mov esi, eax
add esp, 0x10
test esi, esi
je 0x40a6a2
push dword [ebp + 8]
mov ecx, esi
call dword [0x411144]
call esi
pop esi
pop ebp
ret 4
pop esi
pop ebp
jmp dword [sym.imp.KERNEL32.dll_TlsGetValue]

Function at 0x40a6aa
Capabilities:
Set thread local storage value

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push esi
push 0x413ce8
push 0x413ce0
push str.FlsSetValue
push 0x22
call fcn.0040a4ac
mov esi, eax
add esp, 0x10
test esi, esi
je 0x40a6e4
push dword [ebp + 0xc]
mov ecx, esi
push dword [ebp + 8]
call dword [0x411144]
call esi
pop esi
pop ebp
ret 8
pop esi
pop ebp
jmp dword [sym.imp.KERNEL32.dll_TlsSetValue]
Function at 0x40fee0
Capabilities:
Parse pe header

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

Function at 0x401160
Capabilities:
Extract resource via kernel32 functions

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x14
push 0
call dword [sym.imp.KERNEL32.dll_GetModuleHandleW]
mov dword [ebp - 4], eax
push 0x100
push 0x65
mov eax, dword [ebp - 4]
push eax
call dword [sym.imp.KERNEL32.dll_FindResourceW]
mov dword [ebp - 8], eax
mov ecx, dword [ebp - 8]
push ecx
mov edx, dword [ebp - 4]
push edx
call dword [sym.imp.KERNEL32.dll_LoadResource]
mov dword [ebp - 0xc], eax
mov eax, dword [ebp - 0xc]
push eax
call dword [sym.imp.KERNEL32.dll_LockResource]
mov dword [ebp - 0x10], eax
mov ecx, dword [ebp - 8]
push ecx
mov edx, dword [ebp - 4]
push edx
call dword [sym.imp.KERNEL32.dll_SizeofResource]
mov dword [ebp - 0x14], eax
call fcn.004011e0
mov eax, dword [ebp - 0x10]
push eax
mov ecx, dword [ebp - 0x14]
push ecx
call fcn.004012d0
add esp, 8
call fcn.00401280
xor eax, eax
mov esp, ebp
pop ebp
ret

Function at 0x401280
Capabilities:
Create process on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x54
push 0x44
push 0
lea eax, [ebp - 0x54]
push eax
call sub.VCRUNTIME140.dll_memset
add esp, 0xc
mov dword [ebp - 0x54], 0x44
xor ecx, ecx
mov dword [ebp - 0x10], ecx
mov dword [ebp - 0xc], ecx
mov dword [ebp - 8], ecx
mov dword [ebp - 4], ecx
lea edx, [ebp - 0x10]
push edx
lea eax, [ebp - 0x54]
push eax
push 0
push 0
push 0
push 0
push 0
push 0
push 0
push 0x405448
call dword [sym.imp.KERNEL32.dll_CreateProcessA]
mov esp, ebp
pop ebp
ret

Function at 0x401cbe
Capabilities:
Parse pe header

Disassembly:
push 0
call dword [sym.imp.KERNEL32.dll_GetModuleHandleW]
test eax, eax
je 0x401cfd
mov ecx, 0x5a4d
cmp word [eax], cx
jne 0x401cfd
mov ecx, dword [eax + 0x3c]
add ecx, eax
cmp dword [ecx], 0x4550
jne 0x401cfd
mov eax, 0x10b
cmp word [ecx + 0x18], ax
jne 0x401cfd
cmp dword [ecx + 0x74], 0xe
jbe 0x401cfd
cmp dword [ecx + 0xe8], 0
setne al
ret
xor al, al
ret
Function at 0x412290
Capabilities:
Packed with generic packer

Disassembly:
pushal
mov esi, 0x40f015
lea edi, [esi - 0xe015]
push edi
jmp 0x4122aa
mov al, byte [esi]
inc esi
mov byte [edi], al
inc edi
add ebx, ebx
jne 0x4122b1
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
jb 0x4122a0
mov eax, 1
add ebx, ebx
jne 0x4122c3
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc eax, eax
add ebx, ebx
jae 0x4122d4
jne 0x4122f3
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
jb 0x4122f3
dec eax
add ebx, ebx
jne 0x4122e0
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc eax, eax
jmp 0x4122b8
add ebx, ebx
jne 0x4122ef
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc ecx, ecx
jmp 0x412345
xor ecx, ecx
sub eax, 3
jb 0x41230b
shl eax, 8
mov al, byte [esi]
inc esi
xor eax, 0xffffffff
je 0x41237a
sar eax, 1
mov ebp, eax
jmp 0x412316
add ebx, ebx
jne 0x412316
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
jb 0x4122e4
inc ecx
add ebx, ebx
jne 0x412324
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
jb 0x4122e4
add ebx, ebx
jne 0x412331
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc ecx, ecx
add ebx, ebx
jae 0x412326
jne 0x412342
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
jae 0x412326
add ecx, 2
cmp ebp, 0xfffffb00
adc ecx, 2
lea edx, [edi + ebp]
cmp ebp, 0xfffffffc
jbe 0x412364
mov al, byte [edx]
inc edx
mov byte [edi], al
inc edi
dec ecx
jne 0x412356
jmp 0x4122a6
mov eax, dword [edx]
add edx, 4
mov dword [edi], eax
add edi, 4
sub ecx, 4
ja 0x412364
add edi, ecx
jmp 0x4122a6
pop esi
mov edi, esi
mov ecx, 0x2e00
jmp 0x4123b5
mov al, byte [edi]
inc edi
cmp al, 0x80
jb 0x412395
cmp al, 0x8f
ja 0x412395
cmp byte [edi - 2], 0xf
je 0x41239b
sub al, 0xe8
cmp al, 1
ja 0x4123bf
cmp ecx, 4
jb 0x4123c4
mov eax, dword [edi]
sub al, 3
jne 0x4123bf
xchg ah, al
rol eax, 0x10
xchg ah, al
sub eax, edi
add eax, esi
sub ecx, 4
stosd dword es:[edi], eax
sub ecx, 1
jb 0x4123c4
mov al, byte [edi]
inc edi
jmp 0x412395
sub ecx, 1
jae 0x412384
lea edi, [esi + 0x10000]
mov eax, dword [edi]
or eax, eax
je 0x41240c
mov ebx, dword [edi + 4]
lea eax, [eax + esi + 0x12000]
add ebx, esi
push eax
add edi, 8
call dword [esi + 0x12064]
xchg ebp, eax
mov al, byte [edi]
inc edi
or al, al
je 0x4123ca
mov ecx, edi
push edi
dec eax
repne scasb al, byte es:[edi]
push ebp
call dword [esi + 0x1206c]
or eax, eax
je 0x412406
mov dword [ebx], eax
add ebx, 4
jmp 0x4123e7
call dword [esi + 0x12068]
mov ebp, dword [esi + 0x12070]
lea edi, [esi - 0x1000]
mov ebx, 0x1000
push eax
push esp
push 4
push ebx
push edi
call ebp
lea eax, [edi + 0x19f]
and byte [eax], 0x7f
and byte [eax + 0x28], 0x7f
pop eax
push eax
push esp
push eax
push ebx
push edi
call ebp
pop eax
lea ebx, [esi - 0x1000]
lea edi, [ebx + 0x12467]
push edi
xor eax, eax
stosb byte es:[edi], al
pop ecx
dec ecx
push eax
push 1
push ebx
call ecx
popal
lea eax, [esp - 0x80]
push 0
cmp esp, eax
jne 0x412458
sub esp, 0xffffff80
jmp 0x4012e0
Function at 0x403d61
Capabilities:
Encode data using xor

Disassembly:
push eax
push ebx
mov eax, 0x499
mov ecx, 0x404498
mov bl, byte [ecx]
sub bl, 0xf2
rol bl, 2
sub bl, cl
ror bl, 1
mov byte [ecx], bl
dec ecx
dec eax
jne 0x403d6d
mov eax, 0x261d
mov ecx, 0x403764
mov bl, byte [ecx]
rol bl, 7
ror bl, 2
sub bl, cl
xor bl, 0x91
mov byte [ecx], bl
dec ecx
dec eax
jne 0x403d8a
pop ebx
pop eax
add ecx, 0x2c1a
jmp ecx

Function at 0x403d61
Capabilities:
Encode data using xor

Disassembly:
push eax
push ebx
mov eax, 0x499
mov ecx, 0x404498
mov bl, byte [ecx]
sub bl, 0xf2
rol bl, 2
sub bl, cl
ror bl, 1
mov byte [ecx], bl
dec ecx
dec eax
jne 0x403d6d
mov eax, 0x261d
mov ecx, 0x403764
mov bl, byte [ecx]
rol bl, 7
ror bl, 2
sub bl, cl
xor bl, 0x91
mov byte [ecx], bl
dec ecx
dec eax
jne 0x403d8a
pop ebx
pop eax
add ecx, 0x2c1a
jmp ecx

Function at 0x1001121
Capabilities:
Parse pe header
Terminate process

Disassembly:
push 0x28
push 0x1001080
call fcn.010012d8
xor edi, edi
push edi
call dword [sym.imp.KERNEL32.dll_GetModuleHandleA]
cmp word [eax], 0x5a4d
jne 0x100115c
mov ecx, dword [eax + 0x3c]
add ecx, eax
cmp dword [ecx], 0x4550
jne 0x100115c
movzx eax, word [ecx + 0x18]
cmp eax, 0x10b
je 0x1001174
cmp eax, 0x20b
je 0x1001161
mov dword [ebp - 0x1c], edi
jmp 0x1001188
cmp dword [ecx + 0x84], 0xe
jbe 0x100115c
xor eax, eax
cmp dword [ecx + 0xf8], edi
jmp 0x1001182
cmp dword [ecx + 0x74], 0xe
jbe 0x100115c
xor eax, eax
cmp dword [ecx + 0xe8], edi
setne al
mov dword [ebp - 0x1c], eax
mov dword [ebp - 4], edi
push 1
call dword [sym.imp.msvcrt.dll___set_app_type]
pop ecx
or dword [0x100201c], 0xffffffff
or dword [0x1002020], 0xffffffff
call dword [sym.imp.msvcrt.dll___p__fmode]
mov ecx, dword [0x1002014]
mov dword [eax], ecx
call dword [sym.imp.msvcrt.dll___p__commode]
mov ecx, dword [0x1002010]
mov dword [eax], ecx
mov eax, dword [sym.imp.msvcrt.dll__adjust_fdiv]
mov eax, dword [eax]
mov dword [0x1002024], eax
call fcn.010012ce
cmp dword [section..data], edi
jne 0x10011e3
push fcn.010012ce
call dword [sym.imp.msvcrt.dll___setusermatherr]
pop ecx
call fcn.010012b7
push 0x100105c
push 0x1001058
call sub.msvcrt.dll__initterm
mov eax, dword [0x100200c]
mov dword [ebp - 0x24], eax
lea eax, [ebp - 0x24]
push eax
push dword [0x1002008]
lea eax, [ebp - 0x20]
push eax
lea eax, [ebp - 0x28]
push eax
lea eax, [ebp - 0x2c]
push eax
call dword [sym.imp.msvcrt.dll___wgetmainargs]
mov dword [ebp - 0x34], eax
push 0x1001054
push 0x1001050
call sub.msvcrt.dll__initterm
mov eax, dword [ebp - 0x20]
mov ecx, dword [sym.imp.msvcrt.dll___winitenv]
mov dword [ecx], eax
push dword [ebp - 0x20]
push dword [ebp - 0x28]
push dword [ebp - 0x2c]
call fcn.01001109
add esp, 0x30
mov esi, eax
mov dword [ebp - 0x38], esi
cmp dword [ebp - 0x1c], edi
jne 0x100125a
push esi
call dword [sym.imp.msvcrt.dll_exit]
call dword [sym.imp.msvcrt.dll__cexit]
jmp 0x100128f
or dword [ebp - 4], 0xffffffff
mov eax, esi
call fcn.01001313
ret
Function at 0x407295
Capabilities:
Encode data using xor
Hash data with crc32

Disassembly:
push ebp
mov ebp, esp
cmp dword [0x46bbfc], 0
jne 0x4072d3
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 0x4072a9
mov dword [ecx*4 + 0x46bbf8], eax
inc ecx
cmp ecx, 0x100
jl 0x4072a4
pop esi
cmp dword [ebp + 0x10], 0
mov eax, dword [ebp + 8]
not eax
jbe 0x407300
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 + 0x46bbf8]
inc ecx
cmp dword [ebp + 0x10], 0
ja 0x4072e1
not eax
pop ebp
ret 0xc
Function at 0x418bb0
Capabilities:
Send data
Send data on socket

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x448
mov eax, dword [0x442288]
xor eax, ebp
mov dword [ebp - 8], eax
mov eax, dword [ebp + 8]
push ebx
push esi
mov esi, dword [sym.imp.WS2_32.dll_htons]
mov ebx, edx
push edi
push 3
mov edi, ecx
mov dword [ebp - 0x448], eax
call esi
push 0
mov word [ebp - 0x434], ax
call esi
mov word [ebp - 0x432], ax
xor ecx, ecx
cmp ecx, 0x3ff
je 0x418c1a
mov al, byte [ecx + str.WTware_TFTP_v.6.2.20.]
mov byte [ebp + ecx - 0x430], al
inc ecx
cmp byte [ecx + str.WTware_TFTP_v.6.2.20.], 0
jne 0x418bf1
mov byte [ebp + ecx - 0x430], 0
jmp 0x418c1e
mov byte [ebp - 0x31], 0
lea ecx, [ebp - 0x430]
lea edx, [ecx + 1]
mov al, byte [ecx]
inc ecx
test al, al
jne 0x418c27
sub ecx, edx
movzx edx, bl
lea esi, [ecx + 4]
lea ecx, [ebp - 0x444]
call fcn.004015f0
xor ecx, ecx
cmp byte [ebp + ecx - 0x444], 0
je 0x418c80
cmp byte [ebp + ecx - 0x443], 0
je 0x418c7f
cmp byte [ebp + ecx - 0x442], 0
je 0x418c7a
cmp byte [ebp + ecx - 0x441], 0
je 0x418c75
add ecx, 4
cmp ecx, 0x10
jb 0x418c43
jmp 0x418c80
add ecx, 3
jmp 0x418c80
add ecx, 2
jmp 0x418c80
inc ecx
lea eax, [ecx + 2]
cmp eax, 0x10
ja 0x418c92
mov word [ebp + ecx - 0x444], 0x2e
mov edx, ebx
lea ecx, [ebp - 0x28]
shr edx, 8
and edx, 0xff
call fcn.004015f0
lea edx, [ebp - 0x28]
lea ecx, [ebp - 0x444]
call fcn.004016c0
xor ecx, ecx
cmp byte [ebp + ecx - 0x444], 0
je 0x418cf2
cmp byte [ebp + ecx - 0x443], 0
je 0x418cf1
cmp byte [ebp + ecx - 0x442], 0
je 0x418cec
cmp byte [ebp + ecx - 0x441], 0
je 0x418ce7
add ecx, 4
cmp ecx, 0x10
jb 0x418cb5
jmp 0x418cf2
add ecx, 3
jmp 0x418cf2
add ecx, 2
jmp 0x418cf2
inc ecx
lea eax, [ecx + 2]
cmp eax, 0x10
ja 0x418d04
mov word [ebp + ecx - 0x444], 0x2e
mov edx, ebx
lea ecx, [ebp - 0x28]
shr edx, 0x10
and edx, 0xff
call fcn.004015f0
lea edx, [ebp - 0x28]
lea ecx, [ebp - 0x444]
call fcn.004016c0
xor ecx, ecx
jmp 0x418d30
cmp byte [ebp + ecx - 0x444], 0
je 0x418d6d
cmp byte [ebp + ecx - 0x443], 0
je 0x418d6c
cmp byte [ebp + ecx - 0x442], 0
je 0x418d67
cmp byte [ebp + ecx - 0x441], 0
je 0x418d62
add ecx, 4
cmp ecx, 0x10
jb 0x418d30
jmp 0x418d6d
add ecx, 3
jmp 0x418d6d
add ecx, 2
jmp 0x418d6d
inc ecx
lea eax, [ecx + 2]
cmp eax, 0x10
ja 0x418d7f
mov word [ebp + ecx - 0x444], 0x2e
shr ebx, 0x18
lea ecx, [ebp - 0x28]
mov edx, ebx
call fcn.004015f0
lea edx, [ebp - 0x28]
lea ecx, [ebp - 0x444]
call fcn.004016c0
lea eax, [ebp - 0x444]
push eax
push str.__s__Sending_WTware_TFTP_version.
call fcn.00416900
add esp, 8
lea eax, [ebp - 0x434]
push 0x10
push dword [ebp - 0x448]
push 0
push esi
push eax
push edi
call dword [sym.imp.WS2_32.dll_sendto]
cmp eax, esi
je 0x418ddf
call dword [sym.imp.WS2_32.dll_WSAGetLastError]
push eax
push str.sendto___failed:__d
call fcn.004168b0
add esp, 8
mov ecx, dword [ebp - 8]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.0041e406
mov esp, ebp
pop ebp
ret