joyce8/EMBER2024-capa huggingface dataset:
Function at 0x4cbe20
Capabilities:
Access peb ldr_data
Get ntdll base address

Disassembly:
push 0xffffffffffffffff
push 0x517248
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x2c
mov eax, dword [esp + 0x40]
push ebx
push esi
lea ecx, [esp + 8]
push eax
push ecx
mov ecx, dword [esp + 0x4c]
call fcn.004cc130
mov esi, eax
lea edx, [esp + 0x48]
xor ebx, ebx
push edx
lea ecx, [esp + 0x1c]
mov dword [esp + 0x40], ebx
mov dword [esp + 0x4c], 0x57ff84
call fcn.004e7c32
mov ecx, dword [0x528dc4]
mov al, byte [esi]
push ecx
push ebx
push esi
lea ecx, [esp + 0x30]
mov byte [esp + 0x48], 1
mov byte [esp + 0x30], al
mov dword [esp + 0x34], ebx
mov dword [esp + 0x38], ebx
mov dword [esp + 0x3c], ebx
call fcn.004c7690
mov esi, 0x528e00
mov dword [esp + 0x18], esi
mov eax, dword [esp + 0xc]
mov byte [esp + 0x3c], 3
cmp eax, ebx
je 0x4cbec7
lea ecx, [eax - 1]
mov al, byte [eax - 1]
cmp al, bl
je 0x4cbebe
cmp al, 0xff
je 0x4cbebe
dec al
mov byte [ecx], al
jmp 0x4cbec7
push ecx
call fcn.0050857f
add esp, 4
lea ecx, [esp + 0x18]
mov dword [esp + 0xc], ebx
mov dword [esp + 0x10], ebx
mov dword [esp + 0x14], ebx
call fcn.005044f0
mov eax, dword [esp + 0x28]
mov dword [esp + 0x3c], 0xffffffff
cmp eax, ebx
mov dword [esp + 0x18], esi
je 0x4cbf0d
lea ecx, [eax - 1]
mov al, byte [eax - 1]
cmp al, bl
je 0x4cbf04
cmp al, 0xff
je 0x4cbf04
dec al
mov byte [ecx], al
jmp 0x4cbf0d
push ecx
call fcn.0050857f
add esp, 4
lea ecx, [esp + 0x18]
mov dword [esp + 0x28], ebx
mov dword [esp + 0x2c], ebx
mov dword [esp + 0x30], ebx
call fcn.004e7cb9
mov ecx, dword [esp + 0x34]
pop esi
pop ebx
mov dword fs:[0], ecx
add esp, 0x38
ret

Function at 0x4cfeb0
Capabilities:
Encrypt data using rc4 ksa

Disassembly:
push ecx
mov eax, dword [0x580098]
xor edx, edx
cmp eax, edx
jne 0x4cfed6
xor eax, eax
mov byte [eax + 0x57ff98], al
inc eax
cmp eax, 0x100
jl 0x4cfebe
mov dword [0x580098], 1
mov eax, dword [esp + 0xc]
push ebx
mov ebx, dword [esp + 0x14]
push esi
push edi
mov ecx, 0x40
mov esi, 0x57ff98
mov edi, ebx
rep movsd dword es:[edi], dword [esi]
cmp eax, edx
mov byte [ebx + 0x100], dl
mov byte [ebx + 0x101], dl
jle 0x4cff67
xor esi, esi
push ebp
mov byte [esp + 0x20], dl
xor ecx, ecx
mov edi, dword [esp + 0x20]
mov ebp, dword [esp + 0x18]
mov al, byte [esi + ebx]
and edi, 0xff
xor edx, edx
mov dl, byte [edi + ebp]
mov ebp, eax
and ebp, 0xff
add ecx, edx
add ecx, ebp
and ecx, 0x800000ff
jns 0x4cff3a
dec ecx
or ecx, 0xffffff00
inc ecx
mov byte [esp + 0x10], cl
mov ecx, dword [esp + 0x10]
and ecx, 0xff
mov dl, byte [ecx + ebx]
mov byte [esi + ebx], dl
mov byte [ecx + ebx], al
lea eax, [edi + 1]
cdq
idiv dword [esp + 0x1c]
inc esi
cmp esi, 0x100
mov byte [esp + 0x20], dl
jl 0x4cff08
pop ebp
pop edi
pop esi
pop ebx
pop ecx
ret
Function at 0x4cff70
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
sub esp, 8
mov eax, dword [ebp + 0x10]
push ebx
push esi
push edi
mov cl, byte [eax + 0x100]
mov dl, byte [eax + 0x101]
mov dword [ebp - 8], eax
mov byte [ebp - 1], cl
mov byte [ebp - 2], dl
xor ebx, ebx
mov bl, byte [ebp - 1]
xor edx, edx
mov dl, byte [ebp - 2]
mov esi, dword [ebp - 8]
mov edi, dword [ebp + 8]
xor eax, eax
mov ecx, dword [ebp + 0xc]
test ecx, ecx
jle 0x4cffc3
inc bl
mov al, byte [esi + ebx]
add dl, al
xchg byte [esi + edx], al
mov byte [esi + ebx], al
add al, byte [esi + edx]
mov al, byte [esi + eax]
xor byte [edi], al
inc edi
dec ecx
jne 0x4cffaa
mov byte [ebp - 1], bl
mov byte [ebp - 2], dl
mov eax, dword [ebp + 0x10]
mov cl, byte [ebp - 1]
mov dl, byte [ebp - 2]
pop edi
pop esi
mov byte [eax + 0x100], cl
mov byte [eax + 0x101], dl
pop ebx
mov esp, ebp
pop ebp
ret

Function at 0x4d6940
Capabilities:
Access peb ldr_data

Disassembly:
push 0xffffffffffffffff
push 0x5174ee
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
push ecx
mov eax, dword [esp + 0x18]
push esi
push edi
mov edi, ecx
mov ecx, dword [esp + 0x1c]
push eax
push ecx
mov ecx, edi
mov dword [esp + 0x10], edi
call fcn.004d7260
push 0x10
mov dword [esp + 0x18], 0
mov dword [edi], 0x52902c
call fcn.00508556
mov esi, eax
add esp, 4
mov dword [esp + 0x20], esi
mov al, 1
test esi, esi
mov byte [esp + 0x14], al
je 0x4d69d3
push 4
mov byte [esi + 8], al
mov dword [esi], 0
mov dword [esi + 4], 0
call fcn.00508556
add esp, 4
mov dword [esp + 0x1c], eax
test eax, eax
mov byte [esp + 0x14], 2
je 0x4d69cc
push 0
mov ecx, eax
call fcn.004cdaf0
mov dword [esi + 0xc], eax
jmp 0x4d69d5
xor eax, eax
mov dword [esi + 0xc], eax
jmp 0x4d69d5
xor esi, esi
mov ecx, dword [esp + 0xc]
mov dword [edi + 0x30], esi
mov dword [edi + 0x34], 0
mov eax, edi
pop edi
pop esi
mov dword fs:[0], ecx
add esp, 0x10
ret 8
Function at 0x4fe9c0
Capabilities:
Access peb ldr_data
Get kernel32 base address

Disassembly:
push 0xffffffffffffffff
push 0x5184d0
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x2c
mov al, byte [esp + 0x3c]
push ebx
xor ebx, ebx
push esi
mov esi, ecx
mov byte [esp + 0x10], al
mov dword [esp + 0x14], ebx
mov dword [esp + 0x18], ebx
mov dword [esp + 0x1c], ebx
mov ecx, dword [esp + 0x44]
push ebx
mov dword [esp + 0x40], ebx
mov byte [esp + 0x28], al
mov edx, dword [ecx]
lea ecx, [esp + 0x28]
mov dword [esp + 0x24], edx
call fcn.004f3a08
mov eax, dword [0x52c838]
lea ecx, [esp + 0x10]
push eax
push ebx
push ecx
lea ecx, [esp + 0x30]
call fcn.004f393a
lea edx, [esp + 0x20]
lea eax, [esp + 8]
push edx
push eax
mov ecx, esi
mov byte [esp + 0x44], 1
call fcn.004ff4a0
mov esi, dword [eax]
mov ecx, dword [eax + 4]
mov eax, dword [esp + 0x28]
cmp eax, ebx
mov dword [esp + 0xc], ecx
je 0x4fea67
lea ecx, [eax - 1]
mov al, byte [eax - 1]
cmp al, bl
je 0x4fea5e
cmp al, 0xff
je 0x4fea5e
dec al
mov byte [ecx], al
jmp 0x4fea67
push ecx
call fcn.0050857f
add esp, 4
mov eax, dword [esp + 0x14]
mov dword [esp + 0x28], ebx
cmp eax, ebx
mov dword [esp + 0x2c], ebx
mov dword [esp + 0x30], ebx
je 0x4fea98
lea ecx, [eax - 1]
mov al, byte [eax - 1]
cmp al, bl
je 0x4fea8f
cmp al, 0xff
je 0x4fea8f
dec al
mov byte [ecx], al
jmp 0x4fea98
push ecx
call fcn.0050857f
add esp, 4
mov ecx, dword [esp + 0x34]
lea eax, [esi + 0x10]
pop esi
pop ebx
mov dword fs:[0], ecx
add esp, 0x38
ret 4
Function at 0x50abe6
Capabilities:
Get graphical window text

Disassembly:
push esi
mov esi, ecx
mov ecx, dword [esi + 0x38]
test ecx, ecx
jne 0x50ac1e
push dword [esi + 0x1c]
call dword [sym.imp.USER32.dll_GetWindowTextLengthA]
lea ecx, [eax + 1]
push ecx
mov ecx, dword [esp + 0xc]
push eax
call fcn.00508c70
push eax
push dword [esi + 0x1c]
call dword [sym.imp.USER32.dll_GetWindowTextA]
mov ecx, dword [esp + 8]
push 0xffffffffffffffff
call fcn.00508c48
jmp 0x50ac2a
mov eax, dword [ecx]
push dword [esp + 8]
call dword [eax + 0x88]
pop esi
ret 4

Function at 0x50c2d8
Capabilities:
Extract resource via kernel32 functions

Disassembly:
push ebx
push esi
push edi
xor edi, edi
cmp dword [esp + 0x10], edi
mov ebx, ecx
je 0x50c31a
call fcn.00511d8d
mov esi, dword [eax + 0xc]
push 0xf0
push dword [esp + 0x14]
push esi
call dword [sym.imp.KERNEL32.dll_FindResourceA]
cmp eax, edi
je 0x50c31a
push eax
push esi
call dword [sym.imp.KERNEL32.dll_LoadResource]
cmp eax, edi
jne 0x50c311
xor eax, eax
jmp 0x50c322
push eax
call dword [sym.imp.KERNEL32.dll_LockResource]
mov edi, eax
push edi
mov ecx, ebx
call fcn.0050c328
pop edi
pop esi
pop ebx
ret 4

Function at 0x5122bd
Capabilities:
Get thread local storage value

Disassembly:
push ebx
push esi
mov esi, ecx
lea ebx, [esi + 0x1c]
push ebx
call dword [sym.imp.KERNEL32.dll_EnterCriticalSection]
cmp dword [esp + 0x10], 0
jne 0x5122eb
push dword [esi]
call dword [sym.imp.KERNEL32.dll_TlsGetValue]
test eax, eax
je 0x512309
push dword [esp + 0xc]
mov ecx, esi
push eax
call fcn.00512223
jmp 0x512309
mov eax, dword [esi + 0x14]
test eax, eax
je 0x512309
push edi
push dword [esp + 0x10]
mov edi, dword [eax + 4]
mov ecx, esi
push eax
call fcn.00512223
test edi, edi
mov eax, edi
jne 0x5122f3
pop edi
push ebx
call dword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
pop esi
pop ebx
ret 8
Function at 0x79d888
Capabilities:
Encode data using xor

Disassembly:
pushal
call 0x79d88e
pop ebp
sub ebp, 6
sub ebp, 0x39d888
jmp 0x79d8ec
jmp 0x79d8f5
mov eax, 0x39d888
add eax, ebp
add eax, 0x93
mov ecx, 0x638
mov edx, 0x31d85b9b
xor byte [eax], dl
inc eax
dec ecx
jne 0x79d90c
jmp 0x79d91f
int1
fcomi st(3)
wait
mov ebx, dword [ebx + 0x579bf39b]
mov bh, 0x9b
sbb ch, byte [ebx - 0x11]
test eax, 0x6b1a59d1
out dx, eax
test eax, 0x5ba859d1
retf

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 0x4a21d0
Capabilities:
Packed with generic packer

Disassembly:
pushal
mov esi, section.UPX1
lea edi, [esi - 0x72000]
push edi
or ebp, 0xffffffff
jmp 0x4a21f2
mov al, byte [esi]
inc esi
mov byte [edi], al
inc edi
add ebx, ebx
jne 0x4a21f9
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
jb 0x4a21e8
mov eax, 1
add ebx, ebx
jne 0x4a220b
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc eax, eax
add ebx, ebx
jae 0x4a221c
jne 0x4a222c
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
jb 0x4a222c
dec eax
add ebx, ebx
jne 0x4a2228
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc eax, eax
jmp 0x4a2200
xor ecx, ecx
sub eax, 3
jb 0x4a2244
shl eax, 8
mov al, byte [esi]
inc esi
xor eax, 0xffffffff
je 0x4a22b6
sar eax, 1
mov ebp, eax
jmp 0x4a224f
add ebx, ebx
jne 0x4a224f
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc ecx, ecx
add ebx, ebx
jne 0x4a225c
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc ecx, ecx
jne 0x4a2280
inc ecx
add ebx, ebx
jne 0x4a226c
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc ecx, ecx
add ebx, ebx
jae 0x4a2261
jne 0x4a227d
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
jae 0x4a2261
add ecx, 2
cmp ebp, 0xfffffb00
adc ecx, 1
lea edx, [edi + ebp]
cmp ebp, 0xfffffffc
jbe 0x4a22a0
mov al, byte [edx]
inc edx
mov byte [edi], al
inc edi
dec ecx
jne 0x4a2291
jmp 0x4a21ee
mov eax, dword [edx]
add edx, 4
mov dword [edi], eax
add edi, 4
sub ecx, 4
ja 0x4a22a0
add edi, ecx
jmp 0x4a21ee
pop esi
mov edi, esi
mov ecx, 0xdc2
mov al, byte [edi]
inc edi
sub al, 0xe8
cmp al, 1
ja 0x4a22be
cmp byte [edi], 6
jne 0x4a22be
mov eax, dword [edi]
mov bl, byte [edi + 4]
shr ax, 8
rol eax, 0x10
xchg ah, al
sub eax, edi
sub bl, 0xe8
add eax, esi
mov dword [edi], eax
add edi, 5
mov eax, ebx
loop 0x4a22c3
lea edi, [esi + 0xa0000]
mov eax, dword [edi]
or eax, eax
je 0x4a2332
mov ebx, dword [edi + 4]
lea eax, [eax + esi + 0xa2218]
add ebx, esi
push eax
add edi, 8
call dword [esi + 0xa227c]
xchg ebp, eax
mov al, byte [edi]
inc edi
or al, al
je 0x4a22f0
mov ecx, edi
push edi
dec eax
repne scasb al, byte es:[edi]
push ebp
call dword [esi + 0xa2280]
or eax, eax
je 0x4a232c
mov dword [ebx], eax
add ebx, 4
jmp 0x4a230d
call dword [esi + 0xa2284]
popal
jmp 0x41b0b8
Function at 0x10019638
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x1c
pushal
call 0x10019647
pop dword [ebp - 0xc]
mov eax, 0x10019647
sub dword [ebp - 0xc], eax
mov dword [ebp - 0x1c], 0x4c784189
sub dword [ebp - 0x1c], 0xfe25fc3e
mov dword [ebp - 0x18], 0xb12f7c16
sub dword [ebp - 0x18], 0x7efc2fd1
mov dword [ebp - 0x14], 0xbc5b6bdc
sub dword [ebp - 0x14], 0x700f27ae
mov dword [ebp - 0x10], 0xa6e9dd01
sub dword [ebp - 0x10], 0xa6e9dd01
lea eax, [ebp - 0x1c]
push eax
mov eax, sym.imp.kernel32.dll_GetModuleHandleA
add eax, dword [ebp - 0xc]
call dword [eax]
mov dword [ebp - 0x1c], 0xfefc34df
sub dword [ebp - 0x1c], 0x8a89cb89
mov dword [ebp - 0x18], 0x2b673ee5
add dword [ebp - 0x18], 0x16052290
mov dword [ebp - 0x14], 0x93030028
add dword [ebp - 0x14], 0xd06c6c44
mov dword [ebp - 0x10], 0xaaa55bf3
add dword [ebp - 0x10], 0x555aa40d
lea ebx, [ebp - 0x1c]
push ebx
push eax
mov eax, 0x712e1525
add eax, 0x9ed40b57
add eax, dword [ebp - 0xc]
call dword [eax]
push 0x40
push 0x1000
push 0x3bbea
push 0
call eax
mov ecx, 0xea4e860b
add ecx, 0x15b1c642
mov edx, eax
mov edi, 0xc1c98d2f
add edi, 0x4e393ad1
add edi, dword [ebp - 0xc]
mov esi, 0x78cf87ca
sub esi, 0x8a0d01ba
mov ebx, dword [edi]
xor dword [ebp - 8], 0x53f810e1
sub ebx, esi
xor dword [ebp - 4], 0x94394b35
mov dword [edx], ebx
add edx, 0xeb24082d
add edx, 0x14dbf7d7
add edi, 4
loop 0x1001975f
add eax, 0x12407
xor ebx, ebx
add ebx, eax
add eax, 0x37091abf
sub eax, 0x37091aba
mov ecx, 0xfb8ad09e
add ecx, 0x14752f62
add ecx, dword [ebp - 0xc]
call ebx
leave
ret

Function at 0x1001ac6c
Capabilities:
Read file on windows

Disassembly:
push ebp
mov ebp, esp
push esi
mov esi, dword [ebp + 8]
cmp byte [esi + 0x2d], 0
jne 0x1001acef
push ebx
mov ebx, dword [ebp + 0x10]
lea eax, [ebp + 8]
push edi
push 0
push eax
push ebx
push dword [ebp + 0xc]
push dword [esi + 0x30]
call dword [sym.imp.kernel32.dll_ReadFile]
mov edi, dword [ebp + 8]
cmp edi, ebx
je 0x1001acb9
mov byte [esi + 0x2d], 0xff
test edi, edi
je 0x1001acb9
cmp edi, ebx
jge 0x1001acb9
mov eax, ebx
sub eax, edi
push eax
mov eax, dword [ebp + 0xc]
add eax, edi
push 0
push eax
call sub.MSVCR120.dll_memset
add esp, 0xc
cmp dword [esi + 0x18], 0
je 0x1001ace9
add dword [esi + 0x1c], ebx
cmp dword [esi + 0x1c], 0xffff
jle 0x1001ace9
xor eax, eax
mov word [esi + 0x1e], ax
mov eax, dword [esi]
push esi
call dword [eax + 0x2c]
mov ecx, dword [esi + 0x18]
push 1
push dword [esi + 0x20]
mov edx, dword [ecx]
push eax
push ecx
call dword [edx + 0xc]
mov edi, dword [ebp + 8]
mov eax, edi
pop edi
pop ebx
jmp 0x1001ad01
push dword [ebp + 0x10]
push 0
push dword [ebp + 0xc]
call sub.MSVCR120.dll_memset
add esp, 0xc
xor eax, eax
pop esi
pop ebp
ret 0xc
Function at 0x1001aedb
Capabilities:
Delete file

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x108
mov eax, dword [0x100296f0]
xor eax, ebp
mov dword [ebp - 4], eax
cmp byte [0x100299a8], 0
mov eax, dword [ebp + 8]
je 0x1001af03
push eax
call dword [sym.imp.kernel32.dll_DeleteFileW]
jmp 0x1001af1d
lea ecx, [ebp - 0x108]
push ecx
push eax
call sym.drvSOFT.x3d_public:_enum_E3RESULT___stdcall_FILETYPE::QueryFormatInfo_class_e3_XMLNODE____unsigned_int_
lea eax, [ebp - 0x108]
push eax
call dword [sym.imp.kernel32.dll_DeleteFileA]
mov ecx, dword [ebp - 4]
test eax, eax
setne al
xor ecx, ebp
call fcn.100204a4
mov esp, ebp
pop ebp
ret 4

Function at 0x1001b0c4
Capabilities:
Get common file path

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x310
mov eax, dword [0x100296f0]
xor eax, ebp
mov dword [ebp - 4], eax
cmp byte [0x100299a8], 0
push ebx
mov ebx, dword [ebp + 0x14]
push esi
mov esi, dword [ebp + 8]
push edi
mov edi, dword [ebp + 0xc]
je 0x1001b0fa
push ebx
push dword [ebp + 0x10]
push edi
push esi
call dword [sym.imp.kernel32.dll_GetTempFileNameW]
jmp 0x1001b160
push 0x103
lea eax, [ebp - 0x107]
mov byte [ebp - 0x108], 0
push 0
push eax
call sub.MSVCR120.dll_memset
add esp, 0xc
lea eax, [ebp - 0x310]
push eax
push esi
call sym.drvSOFT.x3d_public:_enum_E3RESULT___stdcall_FILETYPE::QueryFormatInfo_class_e3_XMLNODE____unsigned_int_
lea eax, [ebp - 0x20c]
push eax
push edi
call sym.drvSOFT.x3d_public:_enum_E3RESULT___stdcall_FILETYPE::QueryFormatInfo_class_e3_XMLNODE____unsigned_int_
lea eax, [ebp - 0x108]
push eax
push dword [ebp + 0x10]
lea eax, [ebp - 0x20c]
push eax
lea eax, [ebp - 0x310]
push eax
call dword [sym.imp.kernel32.dll_GetTempFileNameA]
mov esi, eax
lea eax, [ebp - 0x108]
push ebx
push eax
call sym.drvSOFT.x3d_public:_enum_E3RESULT___stdcall_FILETYPE::QueryFormatInfo_class_e3_XMLNODE____unsigned_int_
mov eax, esi
mov ecx, dword [ebp - 4]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.100204a4
mov esp, ebp
pop ebp
ret 0x10

Function at 0x1001b173
Capabilities:
Get common file path

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x108
mov eax, dword [0x100296f0]
xor eax, ebp
mov dword [ebp - 4], eax
cmp byte [0x100299a8], 0
push esi
mov esi, dword [ebp + 0xc]
je 0x1001b19f
push esi
push dword [ebp + 8]
call dword [sym.imp.kernel32.dll_GetTempPathW]
jmp 0x1001b1d0
lea eax, [ebp - 0x108]
push eax
push 0x104
call dword [sym.imp.kernel32.dll_GetTempPathA]
test eax, eax
je 0x1001b1ce
push dword [ebp + 8]
lea eax, [ebp - 0x108]
push esi
push eax
call sym.drvSOFT.x3d_public:_enum_E3RESULT___stdcall_FILETYPE::QueryFormatInfo_class_e3_XMLNODE____unsigned_int_
push esi
call dword [sym.imp.kernel32.dll_lstrlenW]
jmp 0x1001b1d0
xor eax, eax
mov ecx, dword [ebp - 4]
xor ecx, ebp
pop esi
call fcn.100204a4
mov esp, ebp
pop ebp
ret 8
Function at 0x4056c0
Capabilities:
Extract resource via kernel32 functions

Disassembly:
push 0x424
mov eax, 0x40becd
call fcn.0040954e
mov edx, dword [ebp + 0x10]
mov eax, dword [ebp + 8]
mov esi, dword [ebp + 0xc]
xor ebx, ebx
mov dword [ebp - 0x41c], edx
mov dword [ebp - 0x428], ebx
mov dword [ebp - 4], ebx
mov dword [ebp - 0x42c], ecx
mov dword [ebp - 0x430], ebx
mov dword [ebp - 0x418], ebx
push 2
push ebx
push eax
mov byte [ebp - 4], 1
call dword [sym.imp.kernel32.dll_LoadLibraryExW]
mov edi, eax
mov dword [ebp - 0x424], edi
test edi, edi
jne 0x405721
call fcn.00402660
mov esi, eax
jmp 0x4057f9
push dword [ebp - 0x41c]
push esi
push edi
call dword [sym.imp.kernel32.dll_FindResourceW]
mov esi, eax
test esi, esi
jne 0x40573f
call fcn.00402660
jmp 0x4057f0
push esi
push edi
call dword [sym.imp.kernel32.dll_LoadResource]
mov dword [ebp - 0x420], eax
test eax, eax
je 0x405735
push esi
push edi
call dword [sym.imp.kernel32.dll_SizeofResource]
mov esi, eax
lea eax, [esi + 1]
mov dword [ebp - 0x41c], esi
cmp eax, esi
jae 0x405772
mov esi, 0x8007000e
jmp 0x4057f2
push eax
lea ecx, [ebp - 0x418]
mov byte [ebp - 4], 2
call main
mov dword [ebp - 4], 1
jmp 0x4057a6
cmp dword [ebp - 0x418], 0
je 0x405768
push esi
push dword [ebp - 0x418]
push esi
push dword [ebp - 0x420]
push ebx
push 3
call dword [sym.imp.kernel32.dll_MultiByteToWideChar]
mov ecx, eax
test ecx, ecx
je 0x405735
mov eax, dword [ebp - 0x418]
push dword [ebp + 0x14]
xor edx, edx
mov word [eax + ecx*2], dx
push dword [ebp - 0x418]
lea ecx, [ebp - 0x430]
call main
mov esi, eax
push edi
call dword [sym.imp.kernel32.dll_FreeLibrary]
lea eax, [ebp - 0x414]
cmp dword [ebp - 0x418], eax
je 0x405812
lea ecx, [ebp - 0x418]
call fcn.004058ff
lea ecx, [ebp - 0x428]
call fcn.004025ac
mov eax, esi
call fcn.004095a7
ret 0x10
Function at 0x40879f
Capabilities:
Terminate process

Disassembly:
cmp ecx, dword [0x401c38]
jne 0x4093a3
ret
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x328
mov dword [0x40f438], eax
mov dword [0x40f434], ecx
mov dword [0x40f430], edx
mov dword [0x40f42c], ebx
mov dword [0x40f428], esi
mov dword [0x40f424], edi
mov word [0x40f450], ss
mov word [0x40f444], cs
mov word [0x40f420], ds
mov word [0x40f41c], es
mov word [0x40f418], fs
mov word [0x40f414], gs
pushfd
pop dword [0x40f448]
mov eax, dword [ebp]
mov dword [0x40f43c], eax
mov eax, dword [ebp + 4]
mov dword [0x40f440], eax
lea eax, [ebp + 8]
mov dword [0x40f44c], eax
mov eax, dword [ebp - 0x320]
mov dword [0x40f388], 0x10001
mov eax, dword [0x40f440]
mov dword [0x40f33c], eax
mov dword [0x40f330], 0xc0000409
mov dword [0x40f334], 1
mov eax, dword [0x401c38]
mov dword [ebp - 0x328], eax
mov eax, dword [0x40f114]
mov dword [ebp - 0x324], eax
call dword [sym.imp.kernel32.dll_IsDebuggerPresent]
mov dword [0x40f380], eax
push 1
call sub.msvcr100.dll__crt_debugger_hook
pop ecx
push 0
call dword [sym.imp.kernel32.dll_SetUnhandledExceptionFilter]
push 0x401e28
call dword [sym.imp.kernel32.dll_UnhandledExceptionFilter]
cmp dword [0x40f380], 0
jne 0x40948f
push 1
call sub.msvcr100.dll__crt_debugger_hook
pop ecx
push 0xc0000409
call dword [sym.imp.kernel32.dll_GetCurrentProcess]
push eax
call dword [sym.imp.kernel32.dll_TerminateProcess]
leave
ret
Function at 0x409220
Capabilities:
Terminate process

Disassembly:
push 0x5c
push 0x40d448
call fcn.0040981f
xor ebx, ebx
mov dword [ebp - 0x1c], ebx
lea eax, [ebp - 0x6c]
push eax
call dword [sym.imp.kernel32.dll_GetStartupInfoW]
cmp dword [0x40f758], ebx
jne 0x408fc3
push ebx
push ebx
push 1
push ebx
call dword [sym.imp.kernel32.dll_HeapSetInformation]
mov dword [ebp - 4], ebx
mov eax, dword fs:[0x18]
mov esi, dword [eax + 4]
mov dword [ebp - 0x20], ebx
mov edi, 0x40f74c
push ebx
push esi
push edi
call dword [sym.imp.kernel32.dll_InterlockedCompareExchange]
cmp eax, ebx
je 0x408ffd
cmp eax, esi
jne 0x408ff0
xor esi, esi
inc esi
mov dword [ebp - 0x20], esi
jmp 0x409000
push 0x3e8
call dword [sym.imp.kernel32.dll_Sleep]
jmp 0x408fd7
xor esi, esi
inc esi
mov eax, dword [0x40f748]
cmp eax, esi
jne 0x409013
push 0x1f
call sub.msvcr100.dll__amsg_exit
pop ecx
jmp 0x40904e
mov eax, dword [0x40f748]
test eax, eax
jne 0x409048
mov dword [0x40f748], esi
push 0x40125c
push 0x401250
call sub.msvcr100.dll__initterm_e
pop ecx
pop ecx
test eax, eax
je 0x40904e
mov dword [ebp - 4], 0xfffffffe
mov eax, 0xff
jmp 0x409160
mov dword [0x40f32c], esi
mov eax, dword [0x40f748]
cmp eax, esi
jne 0x409072
push 0x40124c
push 0x401220
call sub.msvcr100.dll__initterm
pop ecx
pop ecx
mov dword [0x40f748], 2
cmp dword [ebp - 0x20], ebx
jne 0x40907f
push ebx
push edi
call dword [sym.imp.kernel32.dll_InterlockedExchange]
cmp dword [0x40f75c], ebx
je 0x4090a0
push 0x40f75c
call main
pop ecx
test eax, eax
je 0x4090a0
push ebx
push 2
push ebx
call dword [0x40f75c]
mov eax, dword [sym.imp.msvcr100.dll__wcmdln]
mov eax, dword [eax]
mov dword [ebp - 0x24], eax
movzx ecx, word [eax]
cmp ecx, 0x20
ja 0x409101
cmp cx, bx
je 0x4090bc
cmp dword [ebp - 0x1c], ebx
jne 0x409101
movzx ecx, word [eax]
cmp cx, bx
je 0x4090d1
cmp ecx, 0x20
ja 0x4090d1
add eax, 2
mov dword [ebp - 0x24], eax
jmp 0x4090bc
test byte [ebp - 0x40], 1
je 0x4090dd
movzx ecx, word [ebp - 0x3c]
jmp 0x4090e0
push 0xa
pop ecx
push ecx
push eax
push ebx
push 0x400000
call main
mov dword [0x40f328], eax
cmp dword [0x40f31c], ebx
jne 0x409146
push eax
call dword [sym.imp.msvcr100.dll_exit]
cmp ecx, 0x22
jne 0x409111
xor ecx, ecx
cmp dword [ebp - 0x1c], ebx
sete cl
mov dword [ebp - 0x1c], ecx
add eax, 2
jmp 0x4090a7
cmp dword [0x40f32c], ebx
jne 0x409154
call dword [sym.imp.msvcr100.dll__cexit]
mov dword [ebp - 4], 0xfffffffe
mov eax, dword [0x40f328]
call fcn.00409864
ret
call main
jmp 0x408f95