joyce8/EMBER2024-capa huggingface dataset:
Function at 0x660f1cdb
Capabilities:
Write file on windows

Disassembly:
mov ecx, dword [esp + 4]
sub esp, 0x1a8
mov eax, 0x661110c0
push ebx
push ebp
push esi
push edi
xor ebp, ebp
cmp ecx, dword [eax]
je 0x660f1cff
add eax, 8
inc ebp
cmp eax, 0x66111150
jb 0x660f1cf0
cmp ecx, dword [ebp*8 + 0x661110c0]
jne 0x660f1ea6
mov eax, dword [0x66111e40]
cmp eax, 1
je 0x660f1e68
test eax, eax
jne 0x660f1d2b
cmp dword [0x6610b00c], 1
je 0x660f1e68
cmp ecx, 0xfc
je 0x660f1ea6
lea eax, [esp + 0xb4]
push 0x104
push eax
push 0
call dword [sym.imp.KERNEL32.dll_GetModuleFileNameA]
test eax, eax
jne 0x660f1d66
mov ecx, 5
mov esi, 0x66055f88
lea edi, [esp + 0xb4]
rep movsd dword es:[edi], dword [esi]
movsw word es:[edi], word [esi]
movsb byte es:[edi], byte [esi]
lea edi, [esp + 0xb4]
or ecx, 0xffffffff
xor eax, eax
lea ebx, [esp + 0xb4]
repne scasb al, byte es:[edi]
not ecx
cmp ecx, 0x3c
jbe 0x660f1daf
lea edi, [esp + 0xb4]
or ecx, 0xffffffff
repne scasb al, byte es:[edi]
not ecx
dec ecx
push 3
mov ebx, ecx
lea ecx, [esp + 0xb8]
sub ecx, 0x3b
push 0x66055f84
add ebx, ecx
push ebx
call fcn.660163ec
add esp, 0xc
mov ecx, 6
mov esi, 0x66055f68
lea edi, [esp + 0x14]
xor eax, eax
rep movsd dword es:[edi], dword [esi]
movsw word es:[edi], word [esi]
or ecx, 0xffffffff
mov edi, ebx
repne scasb al, byte es:[edi]
not ecx
sub edi, ecx
lea edx, [esp + 0x14]
mov ebx, ecx
mov esi, edi
or ecx, 0xffffffff
mov edi, edx
repne scasb al, byte es:[edi]
mov ecx, ebx
dec edi
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, ebx
lea edx, [esp + 0x14]
and ecx, 3
push 0x12010
rep movsb byte es:[edi], byte [esi]
mov edi, 0x66055f62
or ecx, 0xffffffff
repne scasb al, byte es:[edi]
not ecx
sub edi, ecx
push 0x66055f3c
mov esi, edi
mov ebx, ecx
mov edi, edx
or ecx, 0xffffffff
repne scasb al, byte es:[edi]
mov ecx, ebx
dec edi
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, ebx
lea edx, [esp + 0x1c]
and ecx, 3
rep movsb byte es:[edi], byte [esi]
mov edi, dword [ebp*8 + 0x661110c4]
or ecx, 0xffffffff
repne scasb al, byte es:[edi]
not ecx
sub edi, ecx
mov esi, edi
mov ebx, ecx
mov edi, edx
or ecx, 0xffffffff
repne scasb al, byte es:[edi]
mov ecx, ebx
dec edi
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, ebx
lea eax, [esp + 0x1c]
and ecx, 3
push eax
rep movsb byte es:[edi], byte [esi]
call fcn.660f4b6a
add esp, 0xc
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x1a8
ret
mov eax, dword [0x6610d200]
test eax, eax
je 0x660f1e79
mov esi, dword [eax + 0x48]
cmp esi, 0xffffffff
jne 0x660f1e83
push 0xfffffffffffffff4
call dword [sym.imp.KERNEL32.dll_GetStdHandle]
mov esi, eax
mov edx, dword [ebp*8 + 0x661110c4]
lea ecx, [esp + 0x10]
push 0
push ecx
mov edi, edx
or ecx, 0xffffffff
xor eax, eax
repne scasb al, byte es:[edi]
not ecx
dec ecx
push ecx
push edx
push esi
call dword [sym.imp.KERNEL32.dll_WriteFile]
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x1a8
ret
Function at 0x660f36ac
Capabilities:
Clear file content

Disassembly:
mov eax, 0x1004
call fcn.660300d8
push ebx
mov ebx, dword [esp + 0x100c]
push ebp
push esi
push edi
xor ebp, ebp
push 1
push ebp
push ebx
call fcn.66025e03
mov edi, eax
add esp, 0xc
cmp edi, 0xffffffff
mov dword [esp + 0x10], edi
je 0x660f37ec
push 2
push ebp
push ebx
call fcn.66025e03
add esp, 0xc
cmp eax, 0xffffffff
je 0x660f37ec
mov ecx, dword [esp + 0x101c]
mov esi, ecx
sub esi, eax
test esi, esi
jle 0x660f378d
mov ecx, 0x400
xor eax, eax
lea edi, [esp + 0x14]
push 0x8000
rep stosd dword es:[edi], eax
push ebx
call fcn.660f4d37
add esp, 8
mov edi, eax
cmp esi, 0x1000
mov eax, 0x1000
jge 0x660f3732
mov eax, esi
push eax
lea eax, [esp + 0x18]
push eax
push ebx
call fcn.660263c0
add esp, 0xc
cmp eax, 0xffffffff
je 0x660f3773
sub esi, eax
test esi, esi
jg 0x660f3723
push edi
push ebx
call fcn.660f4d37
mov edi, dword [esp + 0x18]
add esp, 8
push 0
push edi
push ebx
call fcn.66025e03
add esp, 0xc
mov eax, ebp
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x1004
ret
call fcn.6601687f
cmp dword [eax], 5
jne 0x660f3788
call fcn.660168b4
mov dword [eax], 0xd
or ebp, 0xffffffff
jmp 0x660f374c
jge 0x660f37d3
push 0
push ecx
push ebx
call fcn.66025e03
add esp, 0xc
push ebx
call fcn.66025e67
add esp, 4
push eax
call dword [sym.imp.KERNEL32.dll_SetEndOfFile]
mov ebp, eax
neg ebp
sbb ebp, ebp
neg ebp
dec ebp
cmp ebp, 0xffffffff
jne 0x660f37d3
call fcn.660168b4
mov dword [eax], 0xd
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov esi, eax
call fcn.6601687f
mov dword [eax], esi
push 0
push edi
push ebx
call fcn.66025e03
add esp, 0xc
mov eax, ebp
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x1004
ret
pop edi
pop esi
pop ebp
or eax, 0xffffffff
pop ebx
add esp, 0x1004
ret
Function at 0x660f4884
Capabilities:
Set environment variable

Disassembly:
push ecx
push ebx
push ebp
push esi
push edi
mov edi, dword [esp + 0x18]
test edi, edi
je 0x660f4a42
push 0x3d
push edi
call fcn.660e3183
mov esi, eax
add esp, 8
test esi, esi
je 0x660f4a42
cmp edi, esi
je 0x660f4a42
mov dl, byte [esi + 1]
mov ecx, dword [0x66111e44]
xor eax, eax
test dl, dl
sete al
mov ebp, eax
mov eax, dword [0x6610d62c]
cmp eax, ecx
jne 0x660f48db
push eax
call fcn.660f4afb
add esp, 4
mov dword [0x6610d62c], eax
test eax, eax
jne 0x660f4956
mov eax, dword [esp + 0x1c]
test eax, eax
je 0x660f4902
mov eax, dword [0x66111e48]
test eax, eax
je 0x660f4902
call fcn.660f1b89
test eax, eax
je 0x660f4951
or eax, 0xffffffff
pop edi
pop esi
pop ebp
pop ebx
pop ecx
ret
test ebp, ebp
je 0x660f490e
xor eax, eax
pop edi
pop esi
pop ebp
pop ebx
pop ecx
ret
push 4
call fcn.6600212c
add esp, 4
mov dword [0x6610d62c], eax
test eax, eax
je 0x660f4a42
mov dword [eax], 0
mov eax, dword [0x66111e48]
test eax, eax
jne 0x660f4951
push 4
call fcn.6600212c
add esp, 4
mov dword [0x66111e48], eax
test eax, eax
je 0x660f4a42
mov dword [eax], 0
mov eax, dword [0x6610d62c]
mov ebx, eax
mov eax, esi
sub eax, edi
push eax
push edi
mov dword [esp + 0x18], eax
call fcn.660f4a87
mov esi, eax
add esp, 8
test esi, esi
jl 0x660f4a53
cmp dword [ebx], 0
je 0x660f4a53
test ebp, ebp
je 0x660f4a4b
mov ecx, dword [ebx + esi*4]
lea edi, [ebx + esi*4]
push ecx
call fcn.660026ff
mov eax, dword [edi]
add esp, 4
test eax, eax
je 0x660f49ad
mov eax, edi
mov edx, dword [eax + 4]
add eax, 4
mov dword [edi], edx
inc esi
mov ecx, dword [eax]
mov edi, eax
test ecx, ecx
jne 0x660f499c
lea eax, [esi*4]
push eax
push ebx
call fcn.660f0f74
add esp, 8
test eax, eax
je 0x660f49c7
mov dword [0x6610d62c], eax
mov edi, dword [esp + 0x18]
mov eax, dword [esp + 0x1c]
test eax, eax
je 0x660f4a3a
or ecx, 0xffffffff
xor eax, eax
repne scasb al, byte es:[edi]
not ecx
inc ecx
push ecx
call fcn.6600212c
mov ebx, eax
add esp, 4
test ebx, ebx
je 0x660f4a3a
mov edi, dword [esp + 0x18]
or ecx, 0xffffffff
xor eax, eax
repne scasb al, byte es:[edi]
not ecx
sub edi, ecx
mov eax, dword [esp + 0x10]
mov edx, ecx
mov esi, edi
mov edi, ebx
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, edx
and ecx, 3
neg ebp
rep movsb byte es:[edi], byte [esi]
sbb ebp, ebp
mov byte [ebx + eax], 0
lea eax, [ebx + eax + 1]
not ebp
and ebp, eax
push ebp
push ebx
call dword [sym.imp.KERNEL32.dll_SetEnvironmentVariableA]
push ebx
call fcn.660026ff
add esp, 4
xor eax, eax
pop edi
pop esi
pop ebp
pop ebx
pop ecx
ret
xor eax, eax
pop edi
pop esi
pop ebp
pop ebx
pop ecx
ret
pop edi
pop esi
pop ebp
or eax, 0xffffffff
pop ebx
pop ecx
ret
mov dword [ebx + esi*4], edi
jmp 0x660f49cb
test ebp, ebp
jne 0x660f4a3a
test esi, esi
jge 0x660f4a5d
neg esi
lea ecx, [esi*4 + 8]
push ecx
push ebx
call fcn.660f0f74
add esp, 8
test eax, eax
je 0x660f4a42
mov dword [eax + esi*4], edi
mov dword [eax + esi*4 + 4], 0
mov dword [0x6610d62c], eax
jmp 0x660f49cb
Function at 0x660f6e67
Capabilities:
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
push ecx
push ecx
lea eax, [ebp - 4]
push esi
xor esi, esi
push eax
push 0x20019
push esi
push 0x66030320
push SysReAllocStringLen
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
test eax, eax
jne 0x660f6ec2
lea eax, [ebp - 8]
mov dword [ebp - 8], 0x104
push eax
push dword [ebp + 8]
push esi
push esi
push 0x6601a650
push dword [ebp - 4]
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
test eax, eax
jne 0x660f6eb2
push 1
pop esi
push dword [ebp - 4]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov eax, esi
pop esi
leave
ret 4
xor eax, eax
jmp 0x660f6ebd
Function at 0x660f8a8a
Capabilities:
Query or enumerate registry key

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x1a4
push ebx
push esi
lea eax, [ebp - 4]
push edi
push eax
push dword [ebp + 0xc]
push dword [ebp + 8]
call fcn.660e62c3
xor esi, esi
cmp eax, esi
jne 0x660f8b82
lea eax, [ebp - 0x28]
mov dword [ebp - 0x14], 0x104
push eax
lea eax, [ebp - 8]
push eax
lea eax, [ebp - 8]
push eax
lea eax, [ebp - 0xc]
push eax
lea eax, [ebp - 8]
push eax
lea eax, [ebp - 8]
push eax
lea eax, [ebp - 8]
push eax
lea eax, [ebp - 8]
push eax
lea eax, [ebp - 0x14]
push esi
push eax
lea eax, [ebp - 0x1a4]
push eax
push dword [ebp - 4]
call dword [sym.imp.ADVAPI32.dll_RegQueryInfoKeyA]
mov edi, eax
push 1
lea eax, [ebp - 0xa0]
push esi
push eax
mov eax, dword [ebp - 0xc]
lea ecx, [ebp - 0x20]
lea eax, [eax + eax + 2]
push eax
push esi
push 0x78
call fcn.660daf6c
mov ebx, dword [ebp - 0x1c]
cmp edi, esi
jne 0x660f8b62
cmp ebx, esi
jne 0x660f8b38
push 7
pop edi
push dword [ebp - 4]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
test eax, eax
je 0x660f8b2c
cmp edi, esi
jne 0x660f8b2c
push 5
pop edi
lea ecx, [ebp - 0x20]
call fcn.66029f67
mov eax, edi
jmp 0x660f8b85
mov eax, dword [ebp - 0xc]
push esi
inc eax
push esi
mov dword [ebp - 0x10], eax
push esi
lea eax, [ebp - 0x10]
push esi
push eax
push ebx
push esi
push dword [ebp - 4]
call fcn.660e64b0
cmp eax, esi
jne 0x660f8b66
push ebx
push dword [ebp - 4]
call fcn.660e6380
cmp eax, esi
je 0x660f8b38
push 5
jmp 0x660f8b17
cmp eax, 0x103
jne 0x660f8b62
push dword [ebp - 4]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
test eax, eax
je 0x660f8b8c
lea ecx, [ebp - 0x20]
call fcn.66029f67
push 5
pop eax
pop edi
pop esi
pop ebx
leave
ret 8
push dword [ebp + 0xc]
push dword [ebp + 8]
call fcn.660e6322
test eax, eax
lea ecx, [ebp - 0x20]
jne 0x660f8b7d
call fcn.66029f67
xor eax, eax
jmp 0x660f8b85
Function at 0x660fe05d
Capabilities:
Packed with generic packer

Disassembly:
mov eax, dword [edx]
pop ecx
mov eax, dword [eax + 0x18]
push dword [eax + 0x10]
push ecx
mov ecx, 0x660fe53e
cmp byte [0x661101a4], 0
jne 0x661028ba
pushal
push esp
push edx
call 0x660d8c04
popal
jmp fcn.660fe079

Function at 0x66100017
Capabilities:
Get thread local storage value

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x38
mov edx, dword [ebp + 0x10]
mov ecx, dword [ebp + 0xc]
push ebx
push esi
mov si, word [ecx]
push edi
mov di, word [edx]
mov eax, 0x7fff
and edi, eax
and esi, eax
cmp di, 9
je 0x66107812
cmp si, 9
je 0x66107812
movzx eax, word [ebp + 8]
push 0x30001
push eax
push ecx
push edx
call dword [0x6610fe60]
mov dword [ebp + 8], eax
Function at 0x6610043c
Capabilities:
Get thread local storage value

Disassembly:
push ecx
mov eax, dword [0x6610feb0]
push ebx
push ebp
push esi
push edi
mov ebx, edx
mov esi, ecx
push eax
call dword [sym.imp.KERNEL32.dll_TlsGetValue]
mov bp, word [ebx]
lea edi, [eax + 0x50]
mov ax, word [esi]
cmp bp, 8
jb 0x6610746c
mov ecx, ebp
and ecx, 0xffff
cmp ecx, 0x11
ja case.0x6610047d.6
xor edx, edx
mov dl, byte [ecx + 0x66102840]
jmp dword [edx*4 + 0x66102818]
cmp ebx, esi
je 0x661004be
mov ecx, esi
call sym.MSVBVM60.DLL___vbaFreeVar
mov ebx, dword [ebx + 8]
mov word [esi], 8
test ebx, ebx
mov dword [esi + 8], 0
je 0x661004be
je 0x661074f3
mov eax, dword [ebx - 4]
push eax
push ebx
call dword [sym.imp.OLEAUT32.dll_DllRegisterServer]
test eax, eax
mov dword [esi + 8], eax
je 0x661074fa
mov eax, esi
pop edi
pop esi
pop ebp
pop ebx
pop ecx
ret
cmp ax, 8
jae 0x66100464
mov edx, dword [ebx]
mov eax, dword [ebx + 4]
mov ecx, esi
mov dword [ecx], edx
mov edx, dword [ebx + 8]
mov dword [ecx + 4], eax
mov eax, dword [ebx + 0xc]
mov dword [ecx + 8], edx
mov dword [ecx + 0xc], eax
mov eax, esi
pop edi
pop esi
pop ebp
pop ebx
pop ecx
ret
and eax, 0xffff
cmp eax, 0x11
ja case.0x661074a8.7
xor ecx, ecx
mov cl, byte [eax + 0x661075ec]
jmp dword [ecx*4 + 0x661075cc]
mov eax, dword [esi + 8]
test eax, eax
je case.0x661074a8.0
push eax
call dword [sym.imp.OLEAUT32.dll_SysStringLen]
mov ecx, dword [ebx]
mov edx, dword [ebx + 4]
mov eax, esi
mov dword [eax], ecx
mov ecx, dword [ebx + 8]
mov dword [eax + 4], edx
mov edx, dword [ebx + 0xc]
mov dword [eax + 8], ecx
mov dword [eax + 0xc], edx
pop edi
pop esi
pop ebp
pop ebx
pop ecx
ret
mov eax, dword [esi + 8]
test eax, eax
je case.0x661074a8.0
mov edx, dword [eax]
push eax
call dword [edx + 8]
jmp case.0x661074a8.0
mov ecx, esi
call sym.MSVBVM60.DLL___vbaFreeVar
jmp case.0x661074a8.0
xor eax, eax
jmp 0x661004ab
push 7
call fcn.66025592
mov eax, dword [ebx + 8]
push edi
push 3
push 0
push 0
push 0
push 0
push eax
call fcn.660df16b
mov ecx, esi
call sym.MSVBVM60.DLL___vbaFreeVar
mov ecx, edi
mov edx, esi
mov eax, dword [ecx]
mov dword [edx], eax
mov eax, dword [ecx + 4]
mov dword [edx + 4], eax
mov eax, dword [ecx + 8]
mov dword [edx + 8], eax
mov eax, esi
mov ecx, dword [ecx + 0xc]
mov dword [edi], 0
mov dword [edx + 0xc], ecx
pop edi
pop esi
pop ebp
pop ebx
pop ecx
ret
test ebp, 0x2000
je 0x6610758d
lea edx, [esp + 0x10]
push edx
push ebx
call fcn.66108aa3
test eax, eax
je 0x66107561
push eax
call fcn.66025592
mov word [edi], bp
mov eax, dword [esp + 0x10]
mov ecx, esi
mov dword [edi + 8], eax
call sym.MSVBVM60.DLL___vbaFreeVar
mov ecx, dword [esp + 0x10]
mov dx, word [edi]
mov dword [esi + 8], ecx
mov word [esi], dx
mov dword [edi], 0
mov eax, esi
pop edi
pop esi
pop ebp
pop ebx
pop ecx
ret
push ebx
push edi
call dword [sym.imp.OLEAUT32.dll_VariantCopyInd]
push 0
push eax
call fcn.6601d62b
mov ecx, esi
call sym.MSVBVM60.DLL___vbaFreeVar
mov eax, edi
mov ecx, esi
mov edx, dword [eax]
mov dword [ecx], edx
mov edx, dword [eax + 4]
mov dword [ecx + 4], edx
mov edx, dword [eax + 8]
mov dword [ecx + 8], edx
mov eax, dword [eax + 0xc]
mov dword [edi], 0
mov dword [ecx + 0xc], eax
jmp 0x661004be
Function at 0x6610050c
Capabilities:
Resolve function by parsing pe exports

Disassembly:
push ebp
mov ebp, esp
push ebx
push esi
mov esi, dword [ebp + 8]
push edi
mov edi, dword [esi + 0x18]
test byte [esi + 0x15], 8
lea eax, [edi + 0x78]
mov dword [ebp + 8], eax
jne 0x6610798b
mov ebx, dword [esi + 0xc]
mov ax, word [ebx + 0xa]
test ax, ax
je 0x66100545
movsx eax, ax
mov ecx, ebx
add ecx, eax
lea eax, [esi + 0x5c]
push ecx
push eax
call fcn.66029235
mov eax, dword [ebp + 8]
cmp dword [eax + 0x1c], 0x800a9c68
je 0x6610799a
cmp dword [edi + 0x10], 0
je 0x6610799a
mov ecx, esi
call fcn.66029319
push eax
push ebx
call fcn.661005ab
cmp dword [esi + 0x20], 0
movzx eax, ax
mov dword [edi + 0x98], eax
mov eax, dword [esi + 0x1c]
jne 0x661079ad
nop
test eax, eax
je 0x661079ad
and dword [edi + 0x10], 0
cmp eax, 0xffffffff
jne 0x661079a1
mov eax, dword [esi + 0x48]
push ebx
dec eax
push eax
call fcn.661005c4
pop edi
pop esi
pop ebx
pop ebp
ret 4
xor ax, ax
pop esi
ret 8
lea eax, [esi + 0x34]
push eax
call fcn.660fe9ff
mov eax, dword [esi + 0x54]
mov dword [edi + 0x14], eax
xor eax, eax
jmp 0x661005a4
mov ecx, dword [esi + 0x48]
dec ecx
mov dword [esi + 0x20], ecx
jmp 0x661005a4
mov edx, 0x661059ec
cmp dword [esi + 0x3c], edx
je 0x661079e0
mov esi, dword [esi]
mov eax, dword [edi + 0x14]
mov eax, dword [eax + 0x20]
test esi, esi
je 0x661079e6
lea ecx, [esi + 0x34]
cmp eax, ecx
jne 0x661079e6
cmp dword [esi + 0x20], 0
mov ecx, dword [esi + 0x1c]
jne 0x661079d7
test ecx, ecx
jne 0x6610799a
cmp dword [esi + 0x3c], edx
je 0x661079e0
mov esi, dword [esi]
jmp 0x661079bc
test byte [esi + 0x15], 0x20
je 0x6610799a
call fcn.66024f2d
push edi
call fcn.66014520
push eax
call fcn.6602daac
push eax
push 0x13
call fcn.66015452
push dword [ebp + 8]
call fcn.6602e73d
push 0x9c68
call fcn.66025592
movsx ecx, cx
mov si, word [esp + 0xc]
add eax, ecx
mov cx, word [eax]
add eax, 2
dec cx
cmp si, word [eax]
jb 0x661005bd
movzx edx, cx
cmp si, word [eax + edx*4]
lea edx, [eax + edx*4]
jb 0x66107a41
mov ax, word [edx + 2]
jmp 0x661005c0
push 1
pop edx
cmp cx, dx
jne 0x66107a52
mov ax, word [eax + 2]
jmp 0x661005c0
add eax, 4
cmp cx, dx
jbe 0x66107a68
cmp si, word [eax]
jb 0x66107a68
inc edx
add eax, 4
cmp dx, cx
jb 0x66107a5a
mov ax, word [eax - 2]
jmp 0x661005c0

Function at 0x661005ee
Capabilities:
Packed with generic packer

Disassembly:
sub dword [esp + 4], eax
mov ecx, 0x661059ec
jmp 0x660fe06c
Function at 0x661005fc
Capabilities:
Get thread local storage value

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x20
cmp byte [0x661101a4], 0
push esi
push edi
jne 0x6610733a
mov esi, dword [ebp + 0x10]
lea eax, [ebp - 0x20]
push eax
push esi
push dword [ebp + 0xc]
push dword [ebp + 8]
call fcn.6610065b
push dword [0x6610feb0]
mov edi, eax
call dword [sym.imp.KERNEL32.dll_TlsGetValue]
test byte [eax + 0x76], 2
jne 0x66107346
lea eax, [ebp - 0x20]
push eax
push edi
call fcn.6601d62b
cmp byte [0x661101a4], 0
jne 0x6610735e
mov eax, dword [esi]
pop edi
pop esi
leave
ret 0xc
push 0xffffffffffffffed
call fcn.660d8bb7
jmp 0x66100611
mov eax, dword [esi]
test eax, eax
je 0x6610063c
mov ecx, dword [eax]
and dword [esi], 0
push eax
call dword [ecx + 8]
jmp 0x6610063c
call fcn.660d9200
jmp 0x66100653

Function at 0x661083c4
Capabilities:
Get thread local storage value

Disassembly:
push ecx
push ebx
push esi
push edi
mov edi, dword [esp + 0x14]
xor ebx, ebx
mov eax, dword [edi + 0x10]
lea esi, [edi + 0x10]
cmp eax, ebx
mov dword [esp + 0xc], ebx
jne 0x6610842b
lea eax, [esp + 0xc]
push eax
push 1
call dword [sym.imp.OLEAUT32.dll_SafeArrayAllocData]
test eax, eax
jge 0x661083f4
push 7
call fcn.66025592
mov ecx, dword [esp + 0xc]
mov dx, word [edi + 2]
mov dword [ecx + 4], 0x10
mov eax, dword [esp + 0xc]
mov word [eax + 2], dx
mov ecx, dword [esp + 0xc]
mov dword [ecx + 0x14], ebx
mov edx, dword [esp + 0xc]
mov dword [edx + 0x10], ebx
mov eax, dword [esp + 0xc]
mov dword [eax + 0xc], ebx
mov eax, dword [esp + 0xc]
pop edi
pop esi
pop ebx
pop ecx
ret 4
mov ecx, dword [0x6610feb0]
push ebp
push ecx
call dword [sym.imp.KERNEL32.dll_TlsGetValue]
push esi
push 1
push 0xc
mov ebp, eax
call dword [sym.imp.OLEAUT32.dll_SafeArrayDestroy]
cmp eax, ebx
mov dword [esp + 0x10], eax
jne 0x66108455
push 7
call fcn.66025592
mov ecx, dword [eax + 0x10]
mov edi, dword [edi + 0xc]
mov esi, dword [eax + 0xc]
mov edx, ecx
dec ecx
mov dword [ebp + 0x68], eax
test edx, edx
mov word [ebp + 0x60], 0x200c
je 0x66108485
lea ebx, [ecx + 1]
mov edx, edi
mov ecx, esi
add esi, 0x10
add edi, 0x10
call sym.MSVBVM60.DLL___vbaVarDup
dec ebx
jne 0x66108471
xor ebx, ebx
mov dword [ebp + 0x60], ebx
mov eax, dword [esp + 0x10]
pop ebp
pop edi
pop esi
pop ebx
pop ecx
ret 4
Function at 0x6610a3d9
Capabilities:
Get thread local storage value

Disassembly:
push ebp
mov ebp, esp
push ecx
push ebx
push esi
push edi
push dword [0x6610feb0]
call dword [sym.imp.KERNEL32.dll_TlsGetValue]
mov edi, dword [ebp + 0x18]
add eax, 0x50
mov dword [ebp - 4], eax
mov ax, word [edi]
test ah, 0x40
je 0x6610a471
and eax, 0xbfff
mov esi, eax
cmp si, 0x11
jbe 0x6610a425
test si, 0x2000
jne 0x6610a421
cmp si, 0x24
je 0x6610a421
push 0x1ca
call fcn.66025592
push 0xd
jmp 0x6610a41c
movzx eax, si
lea eax, [eax + eax*8]
movzx ax, byte [eax*2 + 0x66055768]
cmp si, ax
jne 0x6610a43f
cmp si, 0xa
jne 0x6610a446
push 0xd
call fcn.66025592
push 0
push edi
push dword [ebp + 0x1c]
call fcn.66108494
mov ebx, dword [ebp + 0x14]
push esi
push dword [ebp + 0x10]
push dword [ebp + 8]
call fcn.660e58fd
push esi
push ebx
push dword [ebp + 0xc]
call fcn.660e58fd
pop edi
pop esi
pop ebx
leave
ret 0x18
mov eax, dword [ebp + 0x10]
cmp word [eax], 9
jne 0x6610a504
mov edi, dword [ebp + 8]
xor esi, esi
push edi
push 3
push esi
push esi
push esi
push esi
push dword [eax + 8]
call fcn.660df16b
mov dword [ebp + 0x10], edi
mov ebx, dword [ebp + 0x14]
cmp word [ebx], 9
jne 0x6610a4b2
push dword [ebp + 0xc]
push 3
push esi
push esi
push esi
push esi
push dword [ebx + 8]
call fcn.660df16b
mov ebx, dword [ebp + 0xc]
mov edi, dword [ebp + 0x1c]
cmp word [edi], 9
jne 0x6610a4cf
push dword [ebp - 4]
push 3
push esi
push esi
push esi
push esi
push dword [edi + 8]
call fcn.660df16b
mov edi, dword [ebp - 4]
mov cx, word [edi]
mov esi, dword [ebp + 0x10]
cmp cx, 0x11
ja 0x6610a4e7
cmp word [esi], 0x11
ja 0x6610a4e7
cmp word [ebx], 0x11
jbe 0x6610a50c
mov ax, word [ebx]
or ax, word [esi]
or eax, ecx
test ah, 0x20
jne 0x6610a508
cmp ax, 0x24
je 0x6610a508
push 0x1ca
call fcn.66025592
xor esi, esi
jmp 0x6610a495
push 0xd
jmp 0x6610a4ff
movzx eax, word [edi]
movzx ecx, word [esi]
lea eax, [eax + eax*8]
movzx eax, byte [ecx + eax*2 + 0x66055768]
movzx ecx, word [ebx]
lea eax, [eax + eax*8]
movzx si, byte [ecx + eax*2 + 0x66055768]
cmp si, 1
jne 0x6610a539
push 0x5e
call fcn.66025592
cmp si, 0xa
jne 0x6610a546
push 0xd
call fcn.66025592
push esi
push edi
push dword [ebp + 0x18]
call fcn.660e58fd
mov edi, dword [ebp - 4]
cmp word [edi], 8
jne 0x6610a454
push dword [edi + 8]
call dword [sym.imp.OLEAUT32.dll_SysStringLen]
and word [edi], 0
jmp 0x6610a454
Function at 0x401120
Capabilities:
Extract resource via kernel32 functions

Disassembly:
push ebx
mov ebx, dword [esp + 8]
push edi
mov edi, dword [esp + 0x10]
push edi
push ebx
call dword [sym.imp.KERNEL32.dll_LoadResource]
test eax, eax
jne 0x401139
pop edi
pop ebx
ret
push esi
push eax
call dword [sym.imp.KERNEL32.dll_LockResource]
mov esi, eax
test esi, esi
je 0x401174
push edi
push ebx
call dword [sym.imp.KERNEL32.dll_SizeofResource]
mov ecx, dword [esp + 0x18]
add eax, esi
and ecx, 0xf
jbe 0x401170
lea ebx, [ebx]
cmp esi, eax
jae 0x401174
sub ecx, 1
movzx edx, word [esi]
lea esi, [esi + edx*2 + 2]
jne 0x401160
cmp esi, eax
jb 0x40117a
pop esi
pop edi
xor eax, eax
pop ebx
ret
mov ax, word [esi]
neg ax
sbb eax, eax
and eax, esi
pop esi
pop edi
pop ebx
ret

Function at 0x4035b0
Capabilities:
Access peb ldr_data

Disassembly:
push 0xffffffffffffffff
push 0x4351c8
mov eax, dword fs:[0]
push eax
sub esp, 8
push esi
push edi
mov eax, dword [0x44673c]
xor eax, esp
push eax
lea eax, [esp + 0x14]
mov dword fs:[0], eax
mov esi, dword [esp + 0x38]
push ecx
mov dword [esp + 0x10], esp
add esi, 0xfffffff0
mov edi, esp
push esi
mov dword [esp + 0x24], 0
call fcn.00401710
mov ecx, dword [esp + 0x38]
mov edx, dword [esp + 0x34]
add eax, 0x10
add esp, 4
mov dword [edi], eax
mov eax, dword [esp + 0x38]
push eax
mov eax, dword [esp + 0x30]
push ecx
push edx
push eax
lea ecx, [esp + 0x20]
push ecx
call fcn.00403410
mov edx, dword [eax]
mov edi, dword [esp + 0x3c]
mov eax, dword [eax + 4]
mov dword [edi], edx
add esp, 0x18
mov dword [edi + 4], eax
mov dword [esp + 0x1c], 0xffffffff
lea ecx, [esi + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x403649
mov ecx, dword [esi]
mov eax, dword [ecx]
mov edx, dword [eax + 4]
push esi
call edx
mov eax, edi
mov ecx, dword [esp + 0x14]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
add esp, 0x14
ret

Function at 0x405bc3
Capabilities:
Get geographical location

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x230
mov eax, dword [0x44673c]
xor eax, ebp
mov dword [ebp - 4], eax
cmp dword [ebp + 8], 0x800
push ebx
push esi
mov esi, ecx
mov ebx, edx
lea eax, [ebp - 0xc]
jne 0x405c00
push 0x437e58
push 4
push eax
call fcn.004215e5
push eax
call fcn.00401070
add esp, 0x10
jmp 0x405c12
push 4
push eax
push 3
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.dll_GetLocaleInfoW]
test eax, eax
je 0x405c7d
push edi
call fcn.004216c7
mov edi, dword [eax]
call fcn.004216c7
and dword [eax], 0
lea eax, [ebp - 0xc]
push eax
push ebx
push esi
push 0x111
mov esi, 0x112
lea eax, [ebp - 0x230]
push esi
push eax
call fcn.0042166d
add esp, 0x18
mov ebx, eax
call fcn.004216c7
cmp dword [eax], 0
je 0x405c5d
call fcn.004216c7
push dword [eax]
call fcn.00405597
pop ecx
jmp 0x405c64
call fcn.004216c7
mov dword [eax], edi
cmp ebx, 0xffffffff
pop edi
je 0x405c7d
cmp ebx, esi
jae 0x405c7d
lea eax, [ebp - 0x230]
push eax
call dword [sym.imp.KERNEL32.dll_LoadLibraryW]
jmp 0x405c7f
xor eax, eax
mov ecx, dword [ebp - 4]
pop esi
xor ecx, ebp
pop ebx
call fcn.00420ff2
leave
ret