joyce8/EMBER2024-capa huggingface dataset:
Function at 0x6fe35b
Capabilities:
Read file on windows

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x1c
mov eax, dword [ebp + 8]
mov ecx, eax
push ebx
mov ebx, dword [ebp + 0xc]
and eax, 0x3f
push esi
sar ecx, 6
push edi
imul edi, eax, 0x38
mov dword [ebp - 8], ecx
mov eax, dword [ecx*4 + 0x801678]
push 0xa
pop edx
mov dword [ebp - 0x18], edx
mov ecx, dword [eax + edi + 0x18]
mov dword [ebp - 0x1c], ecx
mov ecx, dword [ebp + 0x10]
test ecx, ecx
je 0x6fe3a1
cmp word [ebx], dx
jne 0x6fe3a1
or byte [eax + edi + 0x28], 4
jmp 0x6fe3a6
and byte [eax + edi + 0x28], 0xfb
lea edx, [ebx + ecx*2]
mov eax, ebx
mov dword [ebp - 0xc], edx
mov esi, ebx
mov dword [ebp - 4], eax
cmp ebx, edx
jae 0x6fe509
mov dword [ebp - 0x10], 0xd
movzx ecx, word [eax]
mov edx, ecx
mov dword [ebp - 0x14], edx
mov edx, dword [ebp - 0xc]
cmp ecx, 0x1a
je 0x6fe4e9
add eax, 2
cmp cx, word [ebp - 0x10]
je 0x6fe3e7
mov dword [ebp - 4], eax
mov word [esi], cx
jmp 0x6fe41d
cmp eax, edx
jae 0x6fe42b
movzx eax, word [eax]
xor ecx, ecx
cmp ax, word [ebp - 0x18]
mov edx, eax
push 0xa
sete cl
xor eax, eax
lea ecx, [ecx*2 + 2]
add dword [ebp - 4], ecx
pop ecx
cmp dx, cx
mov edx, dword [ebp - 0xc]
sete al
dec eax
and eax, 3
add eax, ecx
mov word [esi], ax
mov eax, dword [ebp - 4]
push 2
pop ecx
add esi, ecx
cmp eax, edx
jb 0x6fe3c2
jmp 0x6fe509
push 0
lea eax, [ebp - 0x18]
push eax
push 2
lea eax, [ebp - 4]
push eax
push dword [ebp - 0x1c]
call dword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
je 0x6fe4e4
cmp dword [ebp - 0x18], 0
je 0x6fe4e4
mov edx, dword [ebp - 8]
push 0xa
mov eax, dword [edx*4 + 0x801678]
test byte [eax + edi + 0x28], 0x48
je 0x6fe4ba
lea eax, [esi + 2]
mov dword [ebp - 0x1c], eax
mov ax, word [ebp - 4]
pop ecx
mov word [ebp - 2], ax
cmp ax, cx
jne 0x6fe47e
mov word [esi], cx
jmp 0x6fe4b5
push 0xd
pop ecx
mov word [esi], cx
movzx ecx, ax
mov eax, dword [edx*4 + 0x801678]
mov dx, word [ebp - 2]
shr ecx, 8
push 0xa
mov byte [eax + edi + 0x2a], dl
mov edx, dword [ebp - 8]
mov eax, dword [edx*4 + 0x801678]
mov byte [eax + edi + 0x2b], cl
mov eax, dword [edx*4 + 0x801678]
pop ecx
mov byte [eax + edi + 0x2c], cl
mov esi, dword [ebp - 0x1c]
jmp 0x6fe509
pop eax
cmp word [ebp - 4], ax
jne 0x6fe4ca
cmp esi, ebx
jne 0x6fe4ca
mov word [esi], ax
jmp 0x6fe506
push 1
push 0xffffffffffffffff
push 0xfffffffffffffffe
push dword [ebp + 8]
call fcn.006f8d80
add esp, 0x10
push 0xa
pop eax
cmp word [ebp - 4], ax
je 0x6fe509
push 0xd
pop eax
jmp 0x6fe4c5
mov edx, dword [ebp - 8]
mov edx, dword [edx*4 + 0x801678]
mov al, byte [edx + edi + 0x28]
test al, 0x40
jne 0x6fe503
or al, 2
mov byte [edx + edi + 0x28], al
jmp 0x6fe509
mov word [esi], cx
add esi, 2
sub esi, ebx
and esi, 0xfffffffe
pop edi
mov eax, esi
pop esi
pop ebx
leave
ret
Function at 0x7024a5
Capabilities:
Allocate thread local storage

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push esi
push 0x7be6c0
push 0x7be6b8
push str.FlsAlloc
push 0x1f
call fcn.007022d0
mov esi, eax
add esp, 0x10
test esi, esi
je 0x7024d9
push dword [ebp + 8]
mov ecx, esi
call dword [0x71a7c8]
call esi
jmp 0x7024df
call dword [sym.imp.KERNEL32.dll_TlsAlloc]
pop esi
pop ebp
ret 4

Function at 0x702523
Capabilities:
Get thread local storage value

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push esi
push 0x7be6d0
push 0x7be6c8
push str.FlsGetValue
push 0x21
call fcn.007022d0
mov esi, eax
add esp, 0x10
test esi, esi
je 0x70255a
push dword [ebp + 8]
mov ecx, esi
call dword [0x71a7c8]
call esi
pop esi
pop ebp
ret 4
pop esi
pop ebp
jmp dword [sym.imp.KERNEL32.dll_TlsGetValue]

Function at 0x702562
Capabilities:
Set thread local storage value

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push esi
push 0x7be6d8
push 0x7be6d0
push str.FlsSetValue
push 0x22
call fcn.007022d0
mov esi, eax
add esp, 0x10
test esi, esi
je 0x70259c
push dword [ebp + 0xc]
mov ecx, esi
push dword [ebp + 8]
call dword [0x71a7c8]
call esi
pop esi
pop ebp
ret 8
pop esi
pop ebp
jmp dword [sym.imp.KERNEL32.dll_TlsSetValue]
Function at 0x704d80
Capabilities:
Clear file content

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x2c
push ebx
mov ebx, dword [ebp + 8]
lea ecx, [ebp - 0x2c]
push esi
push edi
push dword [ebp + 0x10]
mov edi, dword [ebp + 0x14]
push dword [ebp + 0xc]
push ebx
call fcn.00704cfc
mov eax, dword [ebp - 0x2c]
and eax, dword [ebp - 0x28]
cmp eax, 0xffffffff
je 0x704eef
mov eax, dword [ebp - 0x24]
and eax, dword [ebp - 0x20]
cmp eax, 0xffffffff
je 0x704eef
mov ecx, dword [ebp - 0x18]
mov eax, dword [ebp - 0x1c]
mov dword [ebp - 8], ecx
mov dword [ebp - 4], eax
test ecx, ecx
jl 0x704ea4
jg 0x704ddc
test eax, eax
je 0x704e9a
push 1
push 0x1000
call fcn.007018ae
mov esi, eax
pop ecx
pop ecx
test esi, esi
jne 0x704dff
push 0xc
pop ebx
mov byte [edi + 0x1c], 1
mov dword [edi + 0x18], ebx
jmp 0x704e91
push 0x8000
push ebx
call fcn.006f91e7
pop ecx
pop ecx
mov ecx, dword [ebp - 0x1c]
mov dword [ebp - 0xc], eax
mov eax, dword [ebp - 0x18]
test eax, eax
jl 0x704e28
jg 0x704e23
cmp ecx, 0x1000
jb 0x704e28
mov ecx, 0x1000
push edi
push ecx
push esi
push ebx
call fcn.006ff478
add esp, 0x10
cmp eax, 0xffffffff
je 0x704e6d
mov ecx, dword [ebp - 4]
cdq
sub ecx, eax
mov eax, dword [ebp - 8]
mov dword [ebp - 4], ecx
sbb eax, edx
mov dword [ebp - 8], eax
test eax, eax
jg 0x704e23
jl 0x704e54
test ecx, ecx
jne 0x704e15
push dword [ebp - 0xc]
push ebx
call fcn.006f91e7
push esi
call fcn.0070060e
add esp, 0xc
xor ebx, ebx
jmp 0x704efd
cmp byte [edi + 0x24], 0
je 0x704e84
cmp dword [edi + 0x20], 5
jne 0x704e84
mov byte [edi + 0x1c], 1
mov dword [edi + 0x18], 0xd
cmp byte [edi + 0x1c], 0
je 0x704e8f
mov ebx, dword [edi + 0x18]
jmp 0x704e91
xor ebx, ebx
push esi
call fcn.0070060e
pop ecx
jmp 0x704efd
test ecx, ecx
jg 0x704e66
jl 0x704ea4
test eax, eax
jae 0x704e66
push 0
push dword [ebp + 0x10]
push dword [ebp + 0xc]
push ebx
call fcn.006f8d80
and eax, edx
add esp, 0x10
cmp eax, 0xffffffff
jne 0x704ec4
cmp byte [edi + 0x1c], 0
je 0x704e66
jmp 0x704ef5
push ebx
call fcn.00704c92
pop ecx
push eax
call dword [sym.imp.KERNEL32.dll_SetEndOfFile]
test eax, eax
jne 0x704e66
call dword [sym.imp.KERNEL32.dll_GetLastError]
push 0xd
mov byte [edi + 0x24], 1
mov dword [edi + 0x20], eax
pop ebx
mov byte [edi + 0x1c], 1
mov dword [edi + 0x18], ebx
jmp 0x704efd
cmp byte [edi + 0x1c], 0
je 0x704efa
mov ebx, dword [edi + 0x18]
jmp 0x704efd
push 0x16
pop ebx
push 0
push dword [ebp - 0x28]
push dword [ebp - 0x2c]
push dword [ebp - 0x14]
call fcn.006f8d80
add esp, 0x10
mov eax, ebx
pop edi
pop esi
pop ebx
leave
ret
Function at 0x705e8e
Capabilities:
Enumerate files on windows

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x264
mov eax, dword [0x7f9c40]
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 0x705ed9
movzx eax, word [edx]
lea ecx, [ebp - 0x255]
push eax
call fcn.00706029
test al, al
jne 0x705ed3
sub edx, 2
cmp edx, edi
jne 0x705eb9
mov ecx, dword [ebp - 0x25c]
movzx esi, word [edx]
cmp esi, 0x3a
jne 0x705efb
lea eax, [edi + 2]
cmp edx, eax
je 0x705efb
push ecx
xor ebx, ebx
push ebx
push ebx
push edi
call fcn.00705dda
add esp, 0x10
jmp 0x705ff5
push esi
lea ecx, [ebp - 0x255]
call fcn.00706029
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 0x705f3e
push dword [ebp - 0x25c]
jmp 0x705eeb
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 0x705f7b
cmp word [ebp - 0x226], 0
je 0x705f9c
cmp word [ebp - 0x226], ax
jne 0x705f7b
cmp word [ebp - 0x224], 0
je 0x705f9c
push ebx
push dword [ebp - 0x260]
lea eax, [ebp - 0x228]
push edi
push eax
call fcn.00705dda
add esp, 0x10
mov dword [ebp - 0x264], eax
test eax, eax
jne 0x705fe8
lea eax, [ebp - 0x254]
push eax
push esi
call dword [sym.imp.KERNEL32.dll_FindNextFileW]
push 0x2e
test eax, eax
pop eax
jne 0x705f55
mov eax, dword [ebx + 4]
mov edx, dword [ebx]
sub eax, edx
mov ecx, dword [ebp - 0x25c]
sar eax, 2
cmp ecx, eax
jne 0x705fd0
push esi
call dword [sym.imp.KERNEL32.dll_FindClose]
xor eax, eax
jmp 0x705ff5
push 0x705c0a
sub eax, ecx
push 4
push eax
lea eax, [edx + ecx*4]
push eax
call fcn.006f6650
add esp, 0x10
jmp 0x705fc5
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.006def69
leave
ret
Function at 0x70690b
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 0x7069a8
push ebx
push esi
call fcn.007068d4
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.007056e9
add esp, 0x24
mov dword [ebp - 4], eax
test eax, eax
jne 0x706955
push esi
call dword [sym.imp.KERNEL32.dll_FreeEnvironmentStringsW]
xor eax, eax
jmp 0x7069a7
push edi
push eax
call fcn.00700648
mov edi, eax
pop ecx
push ebx
test edi, edi
jne 0x706975
call fcn.0070060e
pop ecx
push esi
call dword [sym.imp.KERNEL32.dll_FreeEnvironmentStringsW]
xor eax, eax
jmp 0x7069a6
push ebx
push dword [ebp - 4]
push edi
push dword [ebp - 8]
push esi
push ebx
push ebx
call fcn.007056e9
add esp, 0x20
test eax, eax
jne 0x706994
push edi
call fcn.0070060e
jmp 0x70699c
push ebx
call fcn.0070060e
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 0x7069ab
Capabilities:
Query environment variable

Disassembly:
mov edi, edi
push esi
call dword [sym.imp.KERNEL32.dll_GetEnvironmentStringsW]
mov esi, eax
test esi, esi
jne 0x7069bc
pop esi
ret
push ebx
push edi
push esi
call fcn.007068d4
mov ebx, eax
sub ebx, esi
and ebx, 0xfffffffe
push ebx
call fcn.00700648
mov edi, eax
pop ecx
pop ecx
test edi, edi
je 0x7069e4
push ebx
push esi
push edi
call fcn.006e0e90
add esp, 0xc
push 0
call fcn.0070060e
pop ecx
push esi
call dword [sym.imp.KERNEL32.dll_FreeEnvironmentStringsW]
mov eax, edi
pop edi
pop ebx
pop esi
ret

Function at 0x70713e
Capabilities:
Set environment variable

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
pop ebp
jmp fcn.00706c59

Function at 0x7092a6
Capabilities:
Get geographical location

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push ecx
push esi
push edi
call fcn.00700323
mov esi, dword [ebp + 8]
mov edi, eax
push 2
lea eax, [ebp - 4]
mov ecx, esi
push eax
and ecx, 0x3ff
push 0x20000001
or ecx, 0x400
push ecx
call dword [sym.imp.KERNEL32.dll_GetLocaleInfoW]
test eax, eax
je 0x709315
cmp esi, dword [ebp - 4]
je 0x709310
cmp dword [ebp + 0xc], 0
je 0x709310
mov esi, dword [edi + 0x50]
lea ecx, [esi + 2]
mov ax, word [esi]
add esi, 2
test ax, ax
jne 0x7092ed
push dword [edi + 0x50]
sub esi, ecx
sar esi, 1
call fcn.00708df8
pop ecx
xor ecx, ecx
cmp eax, esi
setne cl
mov eax, ecx
jmp 0x709317
xor eax, eax
inc eax
jmp 0x709317
xor eax, eax
pop edi
pop esi
leave
ret
Function at 0x70937c
Capabilities:
Get geographical location

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x18
mov eax, dword [0x7f9c40]
xor eax, ebp
mov dword [ebp - 4], eax
mov eax, dword [ebp + 0xc]
push ebx
mov ebx, dword [ebp + 0x10]
push esi
mov esi, dword [ebp + 8]
push edi
mov dword [ebp - 0x18], eax
call fcn.00700323
add eax, 0x50
lea edi, [ebp - 0x10]
mov dword [ebp - 0x14], eax
xor eax, eax
stosd dword es:[edi], eax
stosd dword es:[edi], eax
stosd dword es:[edi], eax
call fcn.00700323
lea ecx, [ebp - 0x10]
xor edx, edx
mov dword [eax + 0x34c], ecx
lea ecx, [esi + 0x80]
mov eax, dword [ebp - 0x14]
mov dword [eax], esi
lea edi, [eax + 4]
mov dword [edi], ecx
test ecx, ecx
je 0x7093f3
cmp word [ecx], dx
je 0x7093f3
mov eax, dword [0x7c2474]
push edi
dec eax
push eax
push 0x7c2360
call fcn.0070931b
mov eax, dword [ebp - 0x14]
add esp, 0xc
xor edx, edx
mov dword [ebp - 0x10], edx
mov eax, dword [eax]
test eax, eax
je 0x709466
cmp word [eax], dx
je 0x709466
mov eax, dword [edi]
test eax, eax
je 0x709417
cmp word [eax], dx
je 0x709417
lea eax, [ebp - 0x10]
push eax
call fcn.00708cfe
jmp 0x709420
lea eax, [ebp - 0x10]
push eax
call fcn.00708d99
cmp dword [ebp - 0x10], 0
pop ecx
jne 0x709490
mov eax, dword [0x7c235c]
push dword [ebp - 0x14]
dec eax
push eax
push 0x7c2050
call fcn.0070931b
add esp, 0xc
test al, al
je 0x709490
mov eax, dword [edi]
xor edi, edi
test eax, eax
je 0x70945b
cmp word [eax], di
je 0x70945b
lea eax, [ebp - 0x10]
push eax
call fcn.00708cfe
pop ecx
jmp 0x709492
lea eax, [ebp - 0x10]
push eax
call fcn.00708d99
jmp 0x709458
mov eax, dword [edi]
test eax, eax
je 0x70947d
cmp word [eax], dx
je 0x70947d
lea eax, [ebp - 0x10]
push eax
call fcn.00708cb3
pop ecx
jmp 0x709490
mov dword [ebp - 0x10], 0x104
call dword [sym.imp.KERNEL32.dll_GetUserDefaultLCID]
mov dword [ebp - 8], eax
mov dword [ebp - 0xc], eax
xor edi, edi
cmp dword [ebp - 0x10], 0
je 0x70955b
lea eax, [ebp - 0x10]
push eax
lea eax, [esi + 0x100]
neg esi
sbb esi, esi
and esi, eax
push esi
call fcn.007091a0
mov esi, eax
pop ecx
pop ecx
test esi, esi
je 0x70955b
movzx ecx, si
push ecx
call dword [sym.imp.KERNEL32.dll_IsValidCodePage]
test eax, eax
je 0x70955b
push 1
push dword [ebp - 0xc]
call dword [sym.imp.KERNEL32.dll_IsValidLocale]
test eax, eax
je 0x70955b
mov eax, dword [ebp - 0x18]
test eax, eax
je 0x7094e8
mov dword [eax], esi
mov eax, dword [ebp - 0x14]
push edi
push 0x55
add eax, 0x250
push eax
push dword [ebp - 0xc]
call fcn.0070273e
test ebx, ebx
je 0x709556
push edi
push 0x55
lea eax, [ebx + 0x120]
push eax
push dword [ebp - 0xc]
call fcn.0070273e
push 0x40
push ebx
push 0x1001
push dword [ebp - 0xc]
call dword [sym.imp.KERNEL32.dll_GetLocaleInfoW]
test eax, eax
je 0x70955b
push 0x40
lea eax, [ebx + 0x80]
push eax
push 0x1002
push dword [ebp - 8]
call dword [sym.imp.KERNEL32.dll_GetLocaleInfoW]
test eax, eax
je 0x70955b
push 0xa
push 0x10
lea ecx, [ebx + 0x100]
push ecx
push esi
call fcn.006eba0f
add esp, 0x10
xor eax, eax
inc eax
jmp 0x70955d
xor eax, eax
mov ecx, dword [ebp - 4]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.006def69
leave
ret
Function at 0x70d6e8
Capabilities:
Get disk information

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0xc
mov eax, dword [0x7f9c40]
xor eax, ebp
mov dword [ebp - 4], eax
mov eax, dword [ebp + 8]
cmp eax, 0x1a
jbe 0x70d72b
call fcn.006f5db6
mov dword [eax], 0xf
call fcn.006f5dc9
mov dword [eax], 0xd
call fcn.006e51bf
xor eax, eax
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.006def69
leave
ret
test eax, eax
jne 0x70d732
inc eax
jmp 0x70d71f
add eax, 0x40
push 0x3a
mov word [ebp - 0xc], ax
pop eax
mov word [ebp - 0xa], ax
push 0x5c
pop eax
mov word [ebp - 8], ax
xor eax, eax
mov word [ebp - 6], ax
lea eax, [ebp - 0xc]
push eax
call dword [sym.imp.KERNEL32.dll_GetDriveTypeW]
mov ecx, eax
test ecx, ecx
je 0x70d71d
xor eax, eax
cmp ecx, 1
setne al
jmp 0x70d71f

Function at 0x70e300
Capabilities:
Parse pe header

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

Disassembly:
push 0x5c
push 0x1001918
call fcn.01001624
xor ebx, ebx
mov dword [ebp - 0x1c], ebx
mov dword [ebp - 4], ebx
lea eax, [ebp - 0x6c]
push eax
call dword [sym.imp.KERNEL32.dll_GetStartupInfoW]
mov dword [ebp - 4], 0xfffffffe
mov dword [ebp - 4], 1
mov eax, dword fs:[0x18]
mov esi, dword [eax + 4]
mov dword [ebp - 0x20], ebx
mov edi, 0x1002370
push ebx
push esi
push edi
call dword [sym.imp.KERNEL32.dll_InterlockedCompareExchange]
cmp eax, ebx
je 0x1001250
cmp eax, esi
jne 0x1001243
xor esi, esi
inc esi
mov dword [ebp - 0x20], esi
jmp 0x1001253
push 0x3e8
call dword [sym.imp.KERNEL32.dll_Sleep]
jmp 0x100122a
xor esi, esi
inc esi
mov eax, dword [0x100236c]
cmp eax, esi
jne 0x1001266
push 0x1f
call sub.msvcrt.dll__amsg_exit
pop ecx
jmp 0x1001295
mov eax, dword [0x100236c]
test eax, eax
jne 0x100128f
mov dword [0x100236c], esi
push 0x10010a0
push 0x1001094
call fcn.0100118c
pop ecx
pop ecx
test eax, eax
je 0x1001295
jmp 0x10013b9
mov dword [0x1002034], esi
mov eax, dword [0x100236c]
cmp eax, esi
jne 0x10012b9
push 0x1001090
push 0x1001088
call sub.msvcrt.dll__initterm
pop ecx
pop ecx
mov dword [0x100236c], 2
cmp dword [ebp - 0x20], ebx
jne 0x10012c6
push ebx
push edi
call dword [sym.imp.KERNEL32.dll_InterlockedExchange]
cmp dword [0x1002374], ebx
je 0x10012e7
push 0x1002374
call fcn.01001599
pop ecx
test eax, eax
je 0x10012e7
push ebx
push 2
push ebx
call dword [0x1002374]
mov eax, dword [sym.imp.msvcrt.dll__wcmdln]
cmp dword [eax], ebx
je 0x10013b9
mov eax, dword [eax]
mov dword [ebp - 0x24], eax
movzx ecx, word [eax]
cmp cx, 0x20
ja 0x1001351
cmp cx, bx
je 0x100130c
cmp dword [ebp - 0x1c], ebx
jne 0x1001351
movzx ecx, word [eax]
cmp cx, bx
je 0x1001321
cmp cx, 0x20
ja 0x1001321
inc eax
inc eax
mov dword [ebp - 0x24], eax
jmp 0x100130c
test byte [ebp - 0x40], 1
je 0x100132d
movzx ecx, word [ebp - 0x3c]
jmp 0x1001330
push 0xa
pop ecx
push ecx
push eax
push ebx
push 0x1000000
call main
mov dword [0x1002030], eax
cmp dword [0x1002024], ebx
jne 0x1001396
push eax
call dword [sym.imp.msvcrt.dll_exit]
cmp cx, 0x22
jne 0x1001362
xor ecx, ecx
cmp dword [ebp - 0x1c], ebx
sete cl
mov dword [ebp - 0x1c], ecx
inc eax
inc eax
jmp 0x10012f6
cmp dword [0x1002034], ebx
jne 0x10013a4
call dword [sym.imp.msvcrt.dll__cexit]
mov dword [ebp - 4], 0xfffffffe
mov eax, dword [0x1002030]
jmp 0x10013c5
mov dword [ebp - 4], 0xfffffffe
mov eax, 0xff
call fcn.01001669
ret
call fcn.01001771
jmp 0x10011ed
Function at 0x41acf0
Capabilities:
Access peb ldr_data

Disassembly:
push 0xffffffffffffffff
push 0x4aae4f
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x14
push esi
push edi
mov edi, ecx
mov dword [esp + 8], 0
lea eax, [esp + 0xc]
mov dword [esp + 0x24], 1
push eax
call dword [sym.imp.OLEAUT32.dll_VariantClear]
mov esi, dword [esp + 0x30]
test esi, esi
je 0x41ad33
mov eax, dword [esi]
jmp 0x41ad35
xor eax, eax
mov ecx, dword [edi]
lea edx, [esp + 0xc]
push edx
push eax
push edi
call dword [ecx + 0x3c]
test eax, eax
jge 0x41ad51
push 0x4da520
push edi
push eax
call fcn.004a7979
mov edi, dword [esp + 0x2c]
mov ecx, dword [esp + 0xc]
mov edx, dword [esp + 0x10]
mov eax, edi
mov word [esp + 0xc], 0
mov dword [esp + 8], 1
mov dword [eax], ecx
mov ecx, dword [esp + 0x14]
mov dword [eax + 4], edx
mov edx, dword [esp + 0x18]
mov dword [eax + 8], ecx
mov dword [eax + 0xc], edx
test esi, esi
mov byte [esp + 0x24], 0
je 0x41adbe
lea eax, [esi + 8]
push eax
call dword [sym.imp.KERNEL32.dll_InterlockedDecrement]
test eax, eax
jne 0x41adbe
mov eax, dword [esi]
test eax, eax
je 0x41ada5
push eax
call dword [sym.imp.OLEAUT32.dll_SysStringLen]
mov eax, dword [esi + 4]
test eax, eax
je 0x41adb5
push eax
call sub.MFC42.DLL_operatordelete
add esp, 4
push esi
call sub.MFC42.DLL_operatordelete
add esp, 4
mov ecx, dword [esp + 0x1c]
mov eax, edi
pop edi
pop esi
mov dword fs:[0], ecx
add esp, 0x20
ret 8

Function at 0x41ade0
Capabilities:
Access peb ldr_data

Disassembly:
push 0xffffffffffffffff
push 0x4aae7f
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x14
push esi
push edi
mov edi, ecx
mov dword [esp + 8], 0
lea eax, [esp + 0xc]
mov dword [esp + 0x24], 1
push eax
call dword [sym.imp.OLEAUT32.dll_VariantClear]
mov esi, dword [esp + 0x30]
test esi, esi
je 0x41ae23
mov eax, dword [esi]
jmp 0x41ae25
xor eax, eax
mov ecx, dword [edi]
lea edx, [esp + 0xc]
push edx
push eax
push edi
call dword [ecx + 0x40]
test eax, eax
jge 0x41ae41
push 0x4da520
push edi
push eax
call fcn.004a7979
mov edi, dword [esp + 0x2c]
mov ecx, dword [esp + 0xc]
mov edx, dword [esp + 0x10]
mov eax, edi
mov word [esp + 0xc], 0
mov dword [esp + 8], 1
mov dword [eax], ecx
mov ecx, dword [esp + 0x14]
mov dword [eax + 4], edx
mov edx, dword [esp + 0x18]
mov dword [eax + 8], ecx
mov dword [eax + 0xc], edx
test esi, esi
mov byte [esp + 0x24], 0
je 0x41aeae
lea eax, [esi + 8]
push eax
call dword [sym.imp.KERNEL32.dll_InterlockedDecrement]
test eax, eax
jne 0x41aeae
mov eax, dword [esi]
test eax, eax
je 0x41ae95
push eax
call dword [sym.imp.OLEAUT32.dll_SysStringLen]
mov eax, dword [esi + 4]
test eax, eax
je 0x41aea5
push eax
call sub.MFC42.DLL_operatordelete
add esp, 4
push esi
call sub.MFC42.DLL_operatordelete
add esp, 4
mov ecx, dword [esp + 0x1c]
mov eax, edi
pop edi
pop esi
mov dword fs:[0], ecx
add esp, 0x20
ret 8
Function at 0x41b0e0
Capabilities:
Access peb ldr_data

Disassembly:
push 0xffffffffffffffff
push 0x4aaecf
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x14
push esi
push edi
mov edi, ecx
mov dword [esp + 8], 0
lea eax, [esp + 0xc]
mov dword [esp + 0x24], 1
push eax
call dword [sym.imp.OLEAUT32.dll_VariantClear]
mov esi, dword [esp + 0x30]
test esi, esi
je 0x41b123
mov eax, dword [esi]
jmp 0x41b125
xor eax, eax
mov ecx, dword [edi]
lea edx, [esp + 0xc]
push edx
push eax
push edi
call dword [ecx + 0x1c]
test eax, eax
jge 0x41b141
push 0x4da3f0
push edi
push eax
call fcn.004a7979
mov edi, dword [esp + 0x2c]
mov ecx, dword [esp + 0xc]
mov edx, dword [esp + 0x10]
mov eax, edi
mov word [esp + 0xc], 0
mov dword [esp + 8], 1
mov dword [eax], ecx
mov ecx, dword [esp + 0x14]
mov dword [eax + 4], edx
mov edx, dword [esp + 0x18]
mov dword [eax + 8], ecx
mov dword [eax + 0xc], edx
test esi, esi
mov byte [esp + 0x24], 0
je 0x41b1ae
lea eax, [esi + 8]
push eax
call dword [sym.imp.KERNEL32.dll_InterlockedDecrement]
test eax, eax
jne 0x41b1ae
mov eax, dword [esi]
test eax, eax
je 0x41b195
push eax
call dword [sym.imp.OLEAUT32.dll_SysStringLen]
mov eax, dword [esi + 4]
test eax, eax
je 0x41b1a5
push eax
call sub.MFC42.DLL_operatordelete
add esp, 4
push esi
call sub.MFC42.DLL_operatordelete
add esp, 4
mov ecx, dword [esp + 0x1c]
mov eax, edi
pop edi
pop esi
mov dword fs:[0], ecx
add esp, 0x20
ret 8

Function at 0x41b1d0
Capabilities:
Access peb ldr_data

Disassembly:
push 0xffffffffffffffff
push 0x4aaeff
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x14
push esi
push edi
mov edi, ecx
mov dword [esp + 8], 0
lea eax, [esp + 0xc]
mov dword [esp + 0x24], 1
push eax
call dword [sym.imp.OLEAUT32.dll_VariantClear]
mov esi, dword [esp + 0x30]
test esi, esi
je 0x41b213
mov eax, dword [esi]
jmp 0x41b215
xor eax, eax
mov ecx, dword [edi]
lea edx, [esp + 0xc]
push edx
push eax
push edi
call dword [ecx + 0x20]
test eax, eax
jge 0x41b231
push 0x4da3f0
push edi
push eax
call fcn.004a7979
mov edi, dword [esp + 0x2c]
mov ecx, dword [esp + 0xc]
mov edx, dword [esp + 0x10]
mov eax, edi
mov word [esp + 0xc], 0
mov dword [esp + 8], 1
mov dword [eax], ecx
mov ecx, dword [esp + 0x14]
mov dword [eax + 4], edx
mov edx, dword [esp + 0x18]
mov dword [eax + 8], ecx
mov dword [eax + 0xc], edx
test esi, esi
mov byte [esp + 0x24], 0
je 0x41b29e
lea eax, [esi + 8]
push eax
call dword [sym.imp.KERNEL32.dll_InterlockedDecrement]
test eax, eax
jne 0x41b29e
mov eax, dword [esi]
test eax, eax
je 0x41b285
push eax
call dword [sym.imp.OLEAUT32.dll_SysStringLen]
mov eax, dword [esi + 4]
test eax, eax
je 0x41b295
push eax
call sub.MFC42.DLL_operatordelete
add esp, 4
push esi
call sub.MFC42.DLL_operatordelete
add esp, 4
mov ecx, dword [esp + 0x1c]
mov eax, edi
pop edi
pop esi
mov dword fs:[0], ecx
add esp, 0x20
ret 8