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

Disassembly:
push ebp
mov ebp, dword [esp + 8]
push esi
push edi
mov edi, dword [esp + 0x14]
xor esi, esi
push eax
mov dword [ecx + 0x100], esi
mov dword [ecx + 0x104], esi
call fcn.00415180
xor edi, edi
cmp ebx, esi
jbe 0x4152ac
jmp 0x415250
mov eax, dword [ecx + 0x100]
inc eax
and eax, 0xff
mov dword [ecx + 0x100], eax
movzx esi, byte [eax + ecx]
add esi, dword [ecx + 0x104]
inc edi
and esi, 0xff
mov dword [ecx + 0x104], esi
movzx eax, byte [eax + ecx]
mov dl, byte [esi + ecx]
mov byte [esi + ecx], al
mov eax, dword [ecx + 0x100]
mov byte [ecx + eax], dl
mov eax, dword [ecx + 0x104]
movzx eax, byte [eax + ecx]
movzx edx, dl
add eax, edx
and eax, 0xff
movzx eax, byte [eax + ecx]
xor byte [edi + ebp - 1], al
cmp edi, ebx
jb 0x415250
pop edi
pop esi
mov eax, 1
pop ebp
ret 8

Function at 0x4152c0
Capabilities:
Encrypt data using rc4 prga

Disassembly:
push ecx
push ebp
mov ebp, dword [esp + 0xc]
cmp dword [ebp + 0x14], 1
ja 0x4152e7
cmp dword [esp + 0x28], 0x10
jb 0x4152e0
mov eax, dword [esp + 0x14]
push eax
call fcn.004198d7
add esp, 4
xor eax, eax
pop ebp
pop ecx
ret 0x20
mov eax, dword [esp + 0x14]
push ebx
xor ebx, ebx
cmp dword [esp + 0x2c], 0x10
push edi
mov dword [esi + 0x100], ebx
mov dword [esi + 0x104], ebx
jae 0x415306
lea eax, [esp + 0x1c]
mov edi, dword [esp + 0x2c]
push eax
mov ecx, esi
call fcn.00415180
mov eax, dword [ebp + 0x14]
xor edi, edi
cmp eax, ebx
mov dword [esp + 0xc], eax
jle 0x4153c4
cmp edi, dword [ebp + 0x14]
jbe 0x41532d
call fcn.004198c7
cmp dword [ebp + 0x18], 0x10
jb 0x41533c
mov ecx, dword [ebp + 4]
mov dword [esp + 0x14], ecx
jmp 0x415343
lea eax, [ebp + 4]
mov dword [esp + 0x14], eax
mov eax, dword [esi + 0x100]
inc eax
and eax, 0xff
mov dword [esi + 0x100], eax
movzx ecx, byte [eax + esi]
add ecx, dword [esi + 0x104]
and ecx, 0xff
mov dword [esi + 0x104], ecx
mov dl, byte [ecx + esi]
mov al, byte [eax + esi]
mov byte [ecx + esi], al
mov ecx, dword [esi + 0x100]
mov byte [esi + ecx], dl
mov eax, dword [esi + 0x104]
movzx ecx, byte [esi + eax]
movzx edx, dl
add ecx, edx
and ecx, 0xff
mov bl, byte [ecx + esi]
cmp edi, dword [ebp + 0x14]
jbe 0x41539f
call fcn.004198c7
cmp dword [ebp + 0x18], 0x10
jb 0x4153aa
mov eax, dword [ebp + 4]
jmp 0x4153ad
lea eax, [ebp + 4]
mov ecx, dword [esp + 0x14]
mov dl, byte [ecx + edi]
xor dl, bl
mov byte [eax + edi], dl
inc edi
cmp edi, dword [esp + 0xc]
jl 0x415323
cmp dword [esp + 0x30], 0x10
pop edi
pop ebx
jb 0x4153da
mov eax, dword [esp + 0x14]
push eax
call fcn.004198d7
add esp, 4
mov eax, 1
pop ebp
pop ecx
ret 0x20
Function at 0x4153f0
Capabilities:
Encrypt data using rc4 prga

Disassembly:
push ecx
push ebp
mov ebp, dword [esp + 0xc]
cmp dword [ebp + 0x14], 1
ja 0x415417
cmp dword [esp + 0x28], 0x10
jb 0x415410
mov eax, dword [esp + 0x14]
push eax
call fcn.004198d7
add esp, 4
xor eax, eax
pop ebp
pop ecx
ret 0x20
xor eax, eax
cmp dword [esp + 0x28], 0x10
mov dword [esi + 0x100], eax
mov dword [esi + 0x104], eax
mov eax, dword [esp + 0x14]
jae 0x415434
lea eax, [esp + 0x14]
push ebx
push edi
mov edi, dword [esp + 0x2c]
push eax
mov ecx, esi
call fcn.00415180
mov eax, dword [esi + 0x100]
inc eax
and eax, 0xff
mov dword [esi + 0x100], eax
movzx ecx, byte [eax + esi]
add ecx, dword [esi + 0x104]
xor edi, edi
and ecx, 0xff
mov dword [esi + 0x104], ecx
movzx eax, byte [eax + esi]
mov dl, byte [ecx + esi]
mov byte [ecx + esi], al
mov ecx, dword [esi + 0x100]
mov byte [esi + ecx], dl
mov eax, dword [esi + 0x100]
inc eax
and eax, 0xff
mov dword [esi + 0x100], eax
movzx ecx, byte [eax + esi]
add ecx, dword [esi + 0x104]
and ecx, 0xff
mov dword [esi + 0x104], ecx
movzx eax, byte [eax + esi]
mov dl, byte [ecx + esi]
mov byte [ecx + esi], al
mov ecx, dword [esi + 0x100]
mov byte [esi + ecx], dl
mov eax, dword [esi + 0x100]
inc eax
and eax, 0xff
mov dword [esi + 0x100], eax
movzx ecx, byte [eax + esi]
add ecx, dword [esi + 0x104]
and ecx, 0xff
mov dword [esi + 0x104], ecx
movzx eax, byte [eax + esi]
mov dl, byte [ecx + esi]
mov byte [ecx + esi], al
mov ecx, dword [esi + 0x100]
mov byte [esi + ecx], dl
mov eax, dword [esi + 0x100]
inc eax
and eax, 0xff
mov dword [esi + 0x100], eax
movzx ecx, byte [eax + esi]
add ecx, dword [esi + 0x104]
and ecx, 0xff
mov dword [esi + 0x104], ecx
movzx eax, byte [eax + esi]
mov dl, byte [ecx + esi]
mov byte [ecx + esi], al
mov ecx, dword [esi + 0x100]
mov byte [esi + ecx], dl
mov ebx, dword [ebp + 0x14]
test ebx, ebx
jle 0x4155e8
jmp 0x415540
cmp edi, dword [ebp + 0x14]
jbe 0x41554a
call fcn.004198c7
cmp dword [ebp + 0x18], 0x10
jb 0x415559
mov edx, dword [ebp + 4]
mov dword [esp + 0xc], edx
jmp 0x415560
lea eax, [ebp + 4]
mov dword [esp + 0xc], eax
mov eax, dword [esi + 0x100]
inc eax
and eax, 0xff
mov dword [esi + 0x100], eax
movzx ecx, byte [eax + esi]
add ecx, dword [esi + 0x104]
and ecx, 0xff
mov dword [esi + 0x104], ecx
mov dl, byte [ecx + esi]
movzx eax, byte [eax + esi]
mov byte [ecx + esi], al
mov ecx, dword [esi + 0x100]
mov byte [esi + ecx], dl
mov eax, dword [esi + 0x104]
movzx ecx, byte [esi + eax]
movzx edx, dl
add ecx, edx
and ecx, 0xff
movzx eax, byte [ecx + esi]
mov byte [esp + 0x14], al
cmp edi, dword [ebp + 0x14]
jbe 0x4155c2
call fcn.004198c7
cmp dword [ebp + 0x18], 0x10
jb 0x4155cd
mov eax, dword [ebp + 4]
jmp 0x4155d0
lea eax, [ebp + 4]
mov ecx, dword [esp + 0xc]
mov dl, byte [ecx + edi]
xor dl, byte [esp + 0x14]
inc edi
cmp edi, ebx
mov byte [eax + edi - 1], dl
jl 0x415540
cmp dword [esp + 0x30], 0x10
pop edi
pop ebx
jb 0x4155fe
mov eax, dword [esp + 0x14]
push eax
call fcn.004198d7
add esp, 4
mov eax, 1
pop ebp
pop ecx
ret 0x20

Function at 0x41a1ed
Capabilities:
Terminate process

Disassembly:
cmp ecx, dword [0x4287d4]
jne 0x41a1f7
repz ret
jmp fcn.0041e21c
Function at 0x420462
Capabilities:
Link many functions at runtime

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x14
push ebx
push esi
push edi
call fcn.0041b2b3
and dword [ebp - 4], 0
cmp dword [0x42b5b4], 0
mov ebx, eax
jne 0x420513
push str.USER32.DLL
call dword [sym.imp.KERNEL32.DLL_LoadLibraryA]
mov edi, eax
test edi, edi
je 0x4205c4
mov esi, dword [sym.imp.KERNEL32.DLL_GetProcAddress]
push str.MessageBoxA
push edi
call esi
test eax, eax
je 0x4205c4
push eax
call fcn.0041b241
mov dword [esp], str.GetActiveWindow
push edi
mov dword [0x42b5b4], eax
call esi
push eax
call fcn.0041b241
mov dword [esp], str.GetLastActivePopup
push edi
mov dword [0x42b5b8], eax
call esi
push eax
call fcn.0041b241
mov dword [esp], str.GetUserObjectInformationA
push edi
mov dword [0x42b5bc], eax
call esi
push eax
call fcn.0041b241
pop ecx
mov dword [0x42b5c4], eax
test eax, eax
je 0x420513
push str.GetProcessWindowStation
push edi
call esi
push eax
call fcn.0041b241
pop ecx
mov dword [0x42b5c0], eax
mov eax, dword [0x42b5c0]
cmp eax, ebx
je 0x42056b
cmp dword [0x42b5c4], ebx
je 0x42056b
push eax
call fcn.0041b2bc
push dword [0x42b5c4]
mov esi, eax
call fcn.0041b2bc
pop ecx
pop ecx
mov edi, eax
test esi, esi
je 0x42056b
test edi, edi
je 0x42056b
call esi
test eax, eax
je 0x420562
lea ecx, [ebp - 8]
push ecx
push 0xc
lea ecx, [ebp - 0x14]
push ecx
push 1
push eax
call edi
test eax, eax
je 0x420562
test byte [ebp - 0xc], 1
jne 0x42056b
or dword [ebp + 0x10], 0x200000
jmp 0x4205a4
mov eax, dword [0x42b5b8]
cmp eax, ebx
je 0x4205a4
push eax
call fcn.0041b2bc
pop ecx
test eax, eax
je 0x4205a4
call eax
mov dword [ebp - 4], eax
test eax, eax
je 0x4205a4
mov eax, dword [0x42b5bc]
cmp eax, ebx
je 0x4205a4
push eax
call fcn.0041b2bc
pop ecx
test eax, eax
je 0x4205a4
push dword [ebp - 4]
call eax
mov dword [ebp - 4], eax
push dword [0x42b5b4]
call fcn.0041b2bc
pop ecx
test eax, eax
je 0x4205c4
push dword [ebp + 0x10]
push dword [ebp + 0xc]
push dword [ebp + 8]
push dword [ebp - 4]
call eax
jmp 0x4205c6
xor eax, eax
pop edi
pop esi
pop ebx
leave
ret
Function at 0x41a80c
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x60
pushal
call 0x41a81b
pop dword [ebp - 0x50]
mov eax, 0x41a81b
sub dword [ebp - 0x50], eax
mov dword [ebp - 0x60], 0x33a24d90
sub dword [ebp - 0x60], 0xe5500845
mov dword [ebp - 0x5c], 0x3b70787e
add dword [ebp - 0x5c], 0xf6c2d3c7
mov dword [ebp - 0x58], 0x8426dd
add dword [ebp - 0x58], 0x4bc81d51
mov dword [ebp - 0x54], 0xa9852a55
sub dword [ebp - 0x54], 0xa9852a55
lea eax, [ebp - 0x60]
push eax
mov eax, 0xad9bb23f
add eax, 0x52a9fe25
add eax, dword [ebp - 0x50]
call dword [eax]
mov dword [ebp - 0x60], 0xabcde7ad
sub dword [ebp - 0x60], 0x375b7e57
mov dword [ebp - 0x5c], 0xaeabced5
sub dword [ebp - 0x5c], 0x6d3f6d60
mov dword [ebp - 0x58], 0x88786bf3
sub dword [ebp - 0x58], 0x2508ff87
mov dword [ebp - 0x54], 0x93c7cdbb
sub dword [ebp - 0x54], 0x93c7cdbb
lea ebx, [ebp - 0x60]
push ebx
push eax
mov eax, 0x424df0ef
add eax, 0xbdf7bf91
add eax, dword [ebp - 0x50]
call dword [eax]
push 0x40
push 0x1000
push 0x4c345
push 0
call eax
mov ecx, 0x438a
mov edi, eax
mov edx, 0xb159a6a8
add edx, 0x4eedb958
add edx, dword [ebp - 0x50]
mov esi, 0x5073f1c2
mov ebx, dword [edx]
sub dword [ebp - 0x38], edx
xor ebx, esi
sub dword [ebp - 0x18], edx
mov dword [edi], ebx
add dword [ebp - 0x24], 0xc8da4b2b
add edi, 0x46970a83
sub edi, 0x46970a7f
add edx, 0xf52ee344
add edx, 0xad11cc0
loop 0x41a92c
add eax, 0xa9c52297
add eax, 0x563bde64
mov ebx, eax
add eax, 5
mov ecx, 0x400000
add ecx, dword [ebp - 0x50]
call ebx
leave
ret
Function at 0x40672b
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x58
pushal
call 0x40673a
pop dword [ebp - 0x48]
mov eax, 0xe4f309b0
add eax, 0x1b4d5d8a
sub dword [ebp - 0x48], eax
mov dword [ebp - 0x58], 0x7a94e135
add dword [ebp - 0x58], 0xd3bd6416
mov dword [ebp - 0x54], 0xee8c826c
sub dword [ebp - 0x54], 0xbc593627
mov dword [ebp - 0x50], 0x5b490379
sub dword [ebp - 0x50], 0xefcbf4b
mov dword [ebp - 0x4c], 0x73fd212
add dword [ebp - 0x4c], 0xf8c02dee
lea eax, [ebp - 0x58]
push eax
mov eax, 0x5bf7c7c0
add eax, 0xa448b944
add eax, dword [ebp - 0x48]
call dword [eax]
mov dword [ebp - 0x58], 0x97854ddd
sub dword [ebp - 0x58], 0x2312e487
mov dword [ebp - 0x54], 0x4536b6a9
sub dword [ebp - 0x54], 0x3ca5534
mov dword [ebp - 0x50], 0xe90a1e8d
add dword [ebp - 0x50], 0x7a654ddf
mov dword [ebp - 0x4c], 0xc0c4ff0f
sub dword [ebp - 0x4c], 0xc0c4ff0f
lea ebx, [ebp - 0x58]
push ebx
push eax
mov eax, sym.imp.kernel32.dll_GetProcAddress
add eax, dword [ebp - 0x48]
call dword [eax]
push 0x40
push 0x1000
push 0x3a949
push 0
call eax
mov ecx, 0xb3d67970
add ecx, 0x4c29dad2
xor edi, edi
add edi, eax
mov ebx, 0x6c787a4d
sub ebx, 0x6c31964d
add ebx, dword [ebp - 0x48]
mov esi, 0x9951b809
mov edx, dword [ebx]
add dword [ebp - 0x44], 0xf0c49d04
add edx, esi
xor dword [ebp - 0x2c], esi
mov dword [edi], edx
xor dword [ebp - 0xc], 0xa991bde0
add edi, 4
add ebx, 0x73dc8a01
sub ebx, 0x73dc89fd
loop 0x406853
add eax, 0x143db
mov ebx, eax
add eax, 0xfec093eb
add eax, 0x13f6c1a
mov ecx, 0x82f32687
sub ecx, 0x82b32687
add ecx, dword [ebp - 0x48]
call ebx
leave
ret
Function at 0x4ebfa0
Capabilities:
Hash data with md5

Disassembly:
mov eax, dword [esp + 4]
xor ecx, ecx
mov dword [eax], 0x67452301
mov dword [eax + 4], 0xefcdab89
mov dword [eax + 8], 0x98badcfe
mov dword [eax + 0xc], 0x10325476
mov dword [eax + 0x10], ecx
mov dword [eax + 0x14], ecx
mov dword [eax + 0x58], ecx
ret

Function at 0x9b2ba8
Capabilities:
Execute anti-debugging instructions

Disassembly:
jmp 0xd63092
push ebx
mov dword [esp], esp
push edx
mov edx, 4
add dword [esp + 4], edx
pop edx
push dword [esp]
jmp 0xd5c296
pop ebp
add esp, 4
jmp 0xd5c340
jmp 0xd68a24
jmp 0xd630e4
push 0x19dce328
mov dword [esp], ecx
mov dword [esp], ebp
push edx
mov edx, 0x1932584e
mov dword [esp + 4], edx
pop edx
mov dword [esp], ebp
jmp 0xd631b7
jmp 0xd5c228
jmp fcn.00d68a72
Function at 0x40490b
Capabilities:
Parse pe header

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

Function at 0x4061a9
Capabilities:
Enumerate files on windows

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x264
mov eax, dword [0x414004]
xor eax, ebp
mov dword [ebp - 4], eax
mov edx, dword [ebp + 0xc]
mov ecx, dword [ebp + 0x10]
push ebx
push esi
push edi
mov edi, dword [ebp + 8]
mov dword [ebp - 0x25c], ecx
cmp edx, edi
je 0x4061f4
movzx eax, word [edx]
lea ecx, [ebp - 0x255]
push eax
call fcn.004063c6
test al, al
jne 0x4061ee
sub edx, 2
cmp edx, edi
jne 0x4061d4
mov ecx, dword [ebp - 0x25c]
movzx esi, word [edx]
cmp esi, 0x3a
jne 0x406216
lea eax, [edi + 2]
cmp edx, eax
je 0x406216
push ecx
xor ebx, ebx
push ebx
push ebx
push edi
call fcn.004060f5
add esp, 0x10
jmp 0x406310
push esi
lea ecx, [ebp - 0x255]
call fcn.004063c6
sub edx, edi
movzx eax, al
sar edx, 1
inc edx
neg eax
sbb eax, eax
xor ebx, ebx
push ebx
push ebx
and eax, edx
push ebx
mov dword [ebp - 0x260], eax
lea eax, [ebp - 0x254]
push eax
push ebx
push edi
call dword [sym.imp.KERNEL32.dll_FindFirstFileExW]
mov esi, eax
cmp esi, 0xffffffff
jne 0x406259
push dword [ebp - 0x25c]
jmp 0x406206
mov ebx, dword [ebp - 0x25c]
push 0x2e
mov eax, dword [ebx + 4]
sub eax, dword [ebx]
sar eax, 2
mov dword [ebp - 0x25c], eax
pop eax
cmp word [ebp - 0x228], ax
jne 0x406296
cmp word [ebp - 0x226], 0
je 0x4062b7
cmp word [ebp - 0x226], ax
jne 0x406296
cmp word [ebp - 0x224], 0
je 0x4062b7
push ebx
push dword [ebp - 0x260]
lea eax, [ebp - 0x228]
push edi
push eax
call fcn.004060f5
add esp, 0x10
mov dword [ebp - 0x264], eax
test eax, eax
jne 0x406303
lea eax, [ebp - 0x254]
push eax
push esi
call dword [sym.imp.KERNEL32.dll_FindNextFileW]
push 0x2e
test eax, eax
pop eax
jne 0x406270
mov eax, dword [ebx + 4]
mov edx, dword [ebx]
sub eax, edx
mov ecx, dword [ebp - 0x25c]
sar eax, 2
cmp ecx, eax
jne 0x4062eb
push esi
call dword [sym.imp.KERNEL32.dll_FindClose]
xor eax, eax
jmp 0x406310
push 0x405f25
sub eax, ecx
push 4
push eax
lea eax, [edx + ecx*4]
push eax
call fcn.00408f70
add esp, 0x10
jmp 0x4062e0
push esi
call dword [sym.imp.KERNEL32.dll_FindClose]
mov eax, dword [ebp - 0x264]
mov ecx, dword [ebp - 4]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.0040108e
leave
ret

Function at 0x407e43
Capabilities:
Allocate thread local storage

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push esi
push 0x40efac
push 0x40efa4
push str.FlsAlloc
push 0x1f
call fcn.00407d7e
mov esi, eax
add esp, 0x10
test esi, esi
je 0x407e77
push dword [ebp + 8]
mov ecx, esi
call dword [0x40d120]
call esi
jmp 0x407e7d
call dword [sym.imp.KERNEL32.dll_TlsAlloc]
pop esi
pop ebp
ret 4
Function at 0x407ec1
Capabilities:
Get thread local storage value

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push esi
push 0x40efbc
push 0x40efb4
push str.FlsGetValue
push 0x21
call fcn.00407d7e
mov esi, eax
add esp, 0x10
test esi, esi
je 0x407ef8
push dword [ebp + 8]
mov ecx, esi
call dword [0x40d120]
call esi
pop esi
pop ebp
ret 4
pop esi
pop ebp
jmp dword [sym.imp.KERNEL32.dll_TlsGetValue]

Function at 0x407f00
Capabilities:
Set thread local storage value

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push esi
push 0x40efc4
push 0x40efbc
push str.FlsSetValue
push 0x22
call fcn.00407d7e
mov esi, eax
add esp, 0x10
test esi, esi
je 0x407f3a
push dword [ebp + 0xc]
mov ecx, esi
push dword [ebp + 8]
call dword [0x40d120]
call esi
pop esi
pop ebp
ret 8
pop esi
pop ebp
jmp dword [sym.imp.KERNEL32.dll_TlsSetValue]
Function at 0x4024e5
Capabilities:
Parse pe header

Disassembly:
push 0
call dword [sym.imp.KERNEL32.dll_GetModuleHandleW]
test eax, eax
je 0x402524
mov ecx, 0x5a4d
cmp word [eax], cx
jne 0x402524
mov ecx, dword [eax + 0x3c]
add ecx, eax
cmp dword [ecx], 0x4550
jne 0x402524
mov eax, 0x10b
cmp word [ecx + 0x18], ax
jne 0x402524
cmp dword [ecx + 0x74], 0xe
jbe 0x402524
cmp dword [ecx + 0xe8], 0
setne al
ret
xor al, al
ret
Function at 0x408103
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 0x4081a0
push ebx
push esi
call fcn.004080cc
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.00408060
add esp, 0x24
mov dword [ebp - 4], eax
test eax, eax
jne 0x40814d
push esi
call dword [sym.imp.KERNEL32.dll_FreeEnvironmentStringsW]
xor eax, eax
jmp 0x40819f
push edi
push eax
call fcn.00408d20
mov edi, eax
pop ecx
push ebx
test edi, edi
jne 0x40816d
call fcn.00406bc1
pop ecx
push esi
call dword [sym.imp.KERNEL32.dll_FreeEnvironmentStringsW]
xor eax, eax
jmp 0x40819e
push ebx
push dword [ebp - 4]
push edi
push dword [ebp - 8]
push esi
push ebx
push ebx
call fcn.00408060
add esp, 0x20
test eax, eax
jne 0x40818c
push edi
call fcn.00406bc1
jmp 0x408194
push ebx
call fcn.00406bc1
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 0x40949d
Capabilities:
Allocate thread local storage

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push esi
push 0x4142b8
push 0x4142b0
push str.FlsAlloc
push 0x1f
call fcn.0040935c
mov esi, eax
add esp, 0x10
test esi, esi
je 0x4094d1
push dword [ebp + 8]
mov ecx, esi
call dword [0x41212c]
call esi
jmp 0x4094d7
call dword [sym.imp.KERNEL32.dll_TlsAlloc]
pop esi
pop ebp
ret 4

Function at 0x40951b
Capabilities:
Get thread local storage value

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push esi
push 0x4142c8
push 0x4142c0
push str.FlsGetValue
push 0x21
call fcn.0040935c
mov esi, eax
add esp, 0x10
test esi, esi
je 0x409552
push dword [ebp + 8]
mov ecx, esi
call dword [0x41212c]
call esi
pop esi
pop ebp
ret 4
pop esi
pop ebp
jmp dword [sym.imp.KERNEL32.dll_TlsGetValue]

Function at 0x40955a
Capabilities:
Set thread local storage value

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push esi
push 0x4142d0
push 0x4142c8
push str.FlsSetValue
push 0x22
call fcn.0040935c
mov esi, eax
add esp, 0x10
test esi, esi
je 0x409594
push dword [ebp + 0xc]
mov ecx, esi
push dword [ebp + 8]
call dword [0x41212c]
call esi
pop esi
pop ebp
ret 8
pop esi
pop ebp
jmp dword [sym.imp.KERNEL32.dll_TlsSetValue]
Function at 0x40e9f0
Capabilities:
Parse pe header

Disassembly:
push ebp
mov ebp, esp
mov eax, dword [ebp + 8]
mov ecx, 0x5a4d
cmp word [eax], cx
jne 0x40ea1d
mov ecx, dword [eax + 0x3c]
add ecx, eax
cmp dword [ecx], 0x4550
jne 0x40ea1d
mov edx, 0x10b
xor eax, eax
cmp word [ecx + 0x18], dx
sete al
pop ebp
ret
xor eax, eax
pop ebp
ret
Function at 0x10002660
Capabilities:
Allocate or change rwx memory
Enumerate pe sections
Execute shellcode via indirect call
Read file via mapping

Disassembly:
sub esp, 8
mov eax, dword [esp + 0xc]
push ebx
push ebp
push esi
push edi
push 0
push 0
push 3
push 0
push 1
push 0x80000000
push eax
call dword [sym.imp.KERNEL32.dll_CreateFileA]
mov esi, eax
cmp esi, 0xffffffff
je 0x100027a6
push 0
push 0
push 0
push 2
push 0
push esi
call dword [sym.imp.KERNEL32.dll_CreateFileMappingA]
mov edi, eax
push esi
mov esi, dword [sym.imp.KERNEL32.dll_CloseHandle]
mov dword [esp + 0x20], edi
call esi
test edi, edi
je 0x100027a6
push 0
push 0
push 0
push 4
push edi
call dword [sym.imp.KERNEL32.dll_MapViewOfFile]
mov ebp, eax
test ebp, ebp
je 0x100027a3
push ebp
call fcn.10002620
add esp, 4
test eax, eax
je 0x100027a3
mov ebx, dword [ebp + 0x3c]
add ebx, ebp
mov esi, dword [ebx + 0x50]
push esi
push 8
call dword [sym.imp.KERNEL32.dll_GetProcessHeap]
push eax
call dword [sym.imp.KERNEL32.dll_HeapAlloc]
mov edi, eax
test edi, edi
mov dword [esp + 0x10], edi
jne 0x1000271c
push ebp
call dword [sym.imp.KERNEL32.dll_UnmapViewOfFile]
mov ecx, dword [esp + 0x1c]
push ecx
call dword [sym.imp.KERNEL32.dll_CloseHandle]
pop edi
pop esi
pop ebp
xor eax, eax
pop ebx
add esp, 8
ret
lea edx, [esp + 0x14]
push edx
push 0x40
push esi
push edi
call dword [sym.imp.KERNEL32.dll_VirtualProtect]
xor eax, eax
mov esi, ebp
mov ax, word [ebx + 0x14]
mov ecx, dword [eax + ebx + 0x28]
lea eax, [eax + ebx + 0x18]
mov edx, ecx
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, edx
and ecx, 3
rep movsb byte es:[edi], byte [esi]
xor ecx, ecx
mov cx, word [ebx + 6]
test ecx, ecx
jbe 0x10002785
add eax, 8
mov ebx, ecx
mov ecx, dword [eax + 8]
mov edx, dword [eax]
cmp ecx, edx
jbe 0x10002763
mov ecx, edx
mov edi, dword [eax + 4]
mov edx, dword [esp + 0x10]
mov esi, dword [eax + 0xc]
add edi, edx
mov edx, ecx
add esi, ebp
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, edx
add eax, 0x28
and ecx, 3
dec ebx
rep movsb byte es:[edi], byte [esi]
jne 0x10002758
push ebp
call dword [sym.imp.KERNEL32.dll_UnmapViewOfFile]
mov eax, dword [esp + 0x1c]
push eax
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov eax, dword [esp + 0x10]
pop edi
pop esi
pop ebp
pop ebx
add esp, 8
ret
push edi
call esi
pop edi
pop esi
pop ebp
xor eax, eax
pop ebx
add esp, 8
ret
Function at 0x10008580
Capabilities:
Enumerate pe sections

Disassembly:
sub esp, 0x10
mov al, byte [0x10014a60]
test al, al
push ebx
push ebp
push esi
mov esi, ecx
mov cx, word [esp + 0x24]
push edi
mov byte [esp + 0x13], al
mov word [esi + 0x12], cx
je 0x100085c5
movzx edx, word [esi + 0xa]
movzx eax, word [esi + 8]
movzx ecx, word [esi + 6]
push edx
movzx edx, word [esi + 4]
push eax
push ecx
push edx
push str.___Tile:_xstart_u__ystart_u__xend_u__yend_u
push 0x10014a60
call fcn.100010e0
add esp, 0x18
xor ecx, ecx
xor edx, edx
cmp word [esi + 0x12], cx
lea ebx, [esi + 0x14]
mov dword [esp + 0x18], edx
mov dword [esp + 0x14], ecx
jbe 0x100086cf
mov eax, dword [esp + 0x24]
mov dword [esp + 0x24], eax
lea ebp, [esi + 0x6e]
lea esp, [esp]
movzx eax, byte [ebp + 3]
cmp eax, edx
mov dword [esp + 0x1c], eax
jle 0x10008600
mov dword [esp + 0x18], eax
mov ecx, dword [esp + 0x24]
mov edx, dword [esi + 0x1d4]
push eax
push ebp
push ecx
lea eax, [esi + 4]
push eax
push edx
mov ecx, ebx
call fcn.10007f60
test al, al
je 0x1000877c
mov al, byte [esp + 0x13]
test al, al
je 0x10008653
movzx eax, word [ebx + 6]
movzx ecx, word [ebx + 4]
movzx edx, word [ebx + 2]
push eax
movzx eax, word [ebx]
push ecx
mov ecx, dword [esp + 0x1c]
push edx
push eax
push ecx
push str._____Component__d_:__u___u___u___u
push 0x10014a60
call fcn.100010e0
add esp, 0x1c
mov eax, dword [esp + 0x1c]
test eax, eax
mov edi, dword [ebx + 0x10]
mov byte [esp + 0x28], 0
jle 0x100086a3
xor eax, eax
mov dl, byte [eax + ebp + 0x46]
mov byte [edi + 0xc], dl
mov cl, byte [eax + ebp + 0x4f]
push eax
mov byte [edi + 0xd], cl
mov edx, dword [esi + 0x1d4]
push ebp
push edx
mov ecx, edi
call fcn.10007ad0
test eax, eax
jne 0x10008772
mov al, byte [esp + 0x28]
mov ecx, dword [esp + 0x1c]
inc al
mov byte [esp + 0x28], al
movsx eax, al
add edi, 0x28
cmp eax, ecx
jl 0x10008665
mov ecx, dword [esp + 0x24]
mov eax, dword [esp + 0x14]
mov edx, dword [esp + 0x18]
add ecx, 4
mov dword [esp + 0x24], ecx
movzx ecx, word [esi + 0x12]
inc eax
add ebp, 0x58
add ebx, 0x14
cmp eax, ecx
mov dword [esp + 0x14], eax
jl 0x100085f0
xor ecx, ecx
mov edi, dword [esi + 0x24]
movzx eax, word [edi + 0xa]
movzx edi, word [edi + 8]
mov bp, word [esi + 0x68]
imul eax, edi
mov di, word [esi + 0x12]
movzx ebx, byte [esi + 0x67]
mov dword [esi + 0x204], eax
lea eax, [esi + 0x1de]
mov byte [eax], bl
mov dword [esi + 0x1e8], eax
mov byte [esi + 0x1dc], 0
mov word [esi + 0x1ee], cx
mov word [esi + 0x1ec], cx
mov byte [esi + 0x1f3], 0
mov byte [esi + 0x1f2], 0
mov word [esi + 0x1f8], cx
mov word [esi + 0x1f6], cx
mov dword [esi + 0x200], ecx
mov dword [esi + 0x1fc], ecx
mov byte [esi + 0x1df], 0
mov byte [esi + 0x1f4], dl
mov byte [esi + 0x1e0], dl
mov word [esi + 0x1e2], cx
mov word [esi + 0x1fa], di
mov word [esi + 0x1e4], di
mov word [esi + 0x1f0], bp
mov word [esi + 0x1e6], bp
xor eax, eax
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x10
ret 8
pop edi
pop esi
pop ebp
mov eax, 2
pop ebx
add esp, 0x10
ret 8