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

Disassembly:
sub esp, 0x41c
push ebx
mov ebx, dword [esp + 0x42c]
push ebp
xor ebp, ebp
push esi
cmp ebx, ebp
push edi
mov dword [esp + 0x10], ebp
mov dword [esp + 0x20], ebp
jne 0x100212bc
xor eax, eax
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x41c
ret
mov ecx, dword [esp + 0x430]
mov eax, ecx
sar eax, 5
lea edi, [eax*4 + 0x1003c680]
mov eax, ecx
and eax, 0x1f
mov dword [esp + 0x24], edi
mov edx, dword [edi]
lea esi, [eax + eax*8]
shl esi, 2
mov dword [esp + 0x14], esi
test byte [esi + edx + 4], 0x20
je 0x100212f7
push 2
push ebp
push ecx
call fcn.10021c70
add esp, 0xc
mov eax, dword [edi]
add eax, esi
test byte [eax + 4], 0x80
je 0x10021459
mov ebp, dword [esp + 0x434]
mov dword [esp + 0x18], 0
test ebx, ebx
mov edi, ebp
jbe 0x100213a1
lea eax, [esp + 0x28]
mov ecx, edi
sub ecx, ebp
cmp ecx, ebx
jae 0x10021352
mov cl, byte [edi]
inc edi
cmp cl, 0xa
jne 0x1002133f
mov esi, dword [esp + 0x20]
mov byte [eax], 0xd
inc esi
inc eax
mov dword [esp + 0x20], esi
mov byte [eax], cl
inc eax
mov edx, eax
lea ecx, [esp + 0x28]
sub edx, ecx
cmp edx, 0x400
jl 0x10021322
mov esi, eax
lea edx, [esp + 0x28]
lea eax, [esp + 0x1c]
sub esi, edx
mov edx, dword [esp + 0x24]
push 0
push eax
lea ecx, [esp + 0x30]
mov eax, dword [edx]
push esi
push ecx
mov ecx, dword [esp + 0x24]
mov edx, dword [ecx + eax]
push edx
call dword [sym.imp.KERNEL32.dll_WriteFile]
test eax, eax
je 0x1002144a
mov eax, dword [esp + 0x1c]
mov edx, dword [esp + 0x10]
add edx, eax
cmp eax, esi
mov dword [esp + 0x10], edx
jl 0x1002139d
mov eax, edi
sub eax, ebp
cmp eax, ebx
jb 0x1002131e
mov esi, dword [esp + 0x14]
mov eax, dword [esp + 0x10]
test eax, eax
jne 0x10021439
mov eax, dword [esp + 0x18]
test eax, eax
je 0x100213f5
cmp eax, 5
jne 0x100213de
call fcn.10021bd0
mov dword [eax], 9
call fcn.10021be0
mov dword [eax], 5
or eax, 0xffffffff
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x41c
ret
push eax
call fcn.10021b50
add esp, 4
or eax, 0xffffffff
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x41c
ret
mov ecx, dword [esp + 0x24]
mov edx, dword [ecx]
test byte [esi + edx + 4], 0x40
je 0x10021415
cmp byte [ebp], 0x1a
jne 0x10021415
xor eax, eax
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x41c
ret
call fcn.10021bd0
mov dword [eax], 0x1c
call fcn.10021be0
mov dword [eax], 0
or eax, 0xffffffff
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x41c
ret
mov ecx, dword [esp + 0x20]
pop edi
pop esi
pop ebp
sub eax, ecx
pop ebx
add esp, 0x41c
ret
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov dword [esp + 0x18], eax
jmp 0x1002139d
mov edx, dword [eax]
lea ecx, [esp + 0x1c]
push ebp
mov ebp, dword [esp + 0x438]
push ecx
push ebx
push ebp
push edx
call dword [sym.imp.KERNEL32.dll_WriteFile]
test eax, eax
je 0x1002148a
mov eax, dword [esp + 0x1c]
mov dword [esp + 0x18], 0
mov dword [esp + 0x10], eax
jmp 0x100213a1
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov dword [esp + 0x18], eax
jmp 0x100213a1
Function at 0x10021ea0
Capabilities:
Allocate thread local storage
Set thread local storage value

Disassembly:
push esi
call fcn.1001f180
call dword [sym.imp.KERNEL32.dll_TlsAlloc]
cmp eax, 0xffffffff
mov dword [0x10036580], eax
je 0x10021ef8
push 0x74
push 1
call fcn.10024fd0
mov esi, eax
add esp, 8
test esi, esi
je 0x10021ef8
mov eax, dword [0x10036580]
push esi
push eax
call dword [sym.imp.KERNEL32.dll_TlsSetValue]
test eax, eax
je 0x10021ef8
push esi
call fcn.10021f30
add esp, 4
call dword [sym.imp.KERNEL32.dll_GetCurrentThreadId]
mov dword [esi], eax
mov dword [esi + 4], 0xffffffff
mov eax, 1
pop esi
ret
xor eax, eax
pop esi
ret

Function at 0x10021f50
Capabilities:
Get thread local storage value
Set thread local storage value

Disassembly:
push esi
push edi
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov edi, eax
mov eax, dword [0x10036580]
push eax
call dword [sym.imp.KERNEL32.dll_TlsGetValue]
mov esi, eax
test esi, esi
jne 0x10021fbe
push 0x74
push 1
call fcn.10024fd0
mov esi, eax
add esp, 8
test esi, esi
je 0x10021fb4
mov ecx, dword [0x10036580]
push esi
push ecx
call dword [sym.imp.KERNEL32.dll_TlsSetValue]
test eax, eax
je 0x10021fb4
push esi
call fcn.10021f30
add esp, 4
call dword [sym.imp.KERNEL32.dll_GetCurrentThreadId]
push edi
mov dword [esi], eax
mov dword [esi + 4], 0xffffffff
call dword [sym.imp.KERNEL32.dll_SetLastError]
mov eax, esi
pop edi
pop esi
ret
push 0x10
call fcn.1001e7c0
add esp, 4
push edi
call dword [sym.imp.KERNEL32.dll_SetLastError]
mov eax, esi
pop edi
pop esi
ret

Function at 0x10021fd0
Capabilities:
Get thread local storage value
Set thread local storage value

Disassembly:
mov eax, dword [0x10036580]
cmp eax, 0xffffffff
je 0x1002207f
push esi
mov esi, dword [esp + 8]
test esi, esi
jne 0x10021ff4
push eax
call dword [sym.imp.KERNEL32.dll_TlsGetValue]
mov esi, eax
test esi, esi
je 0x10022070
mov eax, dword [esi + 0x24]
test eax, eax
je 0x10022004
push eax
call fcn.1001c3b0
add esp, 4
mov eax, dword [esi + 0x28]
test eax, eax
je 0x10022014
push eax
call fcn.1001c3b0
add esp, 4
mov eax, dword [esi + 0x30]
test eax, eax
je 0x10022024
push eax
call fcn.1001c3b0
add esp, 4
mov eax, dword [esi + 0x38]
test eax, eax
je 0x10022034
push eax
call fcn.1001c3b0
add esp, 4
mov eax, dword [esi + 0x40]
test eax, eax
je 0x10022044
push eax
call fcn.1001c3b0
add esp, 4
mov eax, dword [esi + 0x44]
test eax, eax
je 0x10022054
push eax
call fcn.1001c3b0
add esp, 4
mov eax, dword [esi + 0x50]
cmp eax, 0x10036e80
je 0x10022067
push eax
call fcn.1001c3b0
add esp, 4
push esi
call fcn.1001c3b0
add esp, 4
mov eax, dword [0x10036580]
push 0
push eax
call dword [sym.imp.KERNEL32.dll_TlsSetValue]
pop esi
ret
Function at 0x10023240
Capabilities:
Clear file content

Disassembly:
mov eax, 0x1004
call fcn.1001e070
push ebx
mov ebx, dword [esp + 0x100c]
push ebp
push esi
push edi
xor ebp, ebp
push 1
push ebp
push ebx
call fcn.10021c70
mov edi, eax
add esp, 0xc
cmp edi, 0xffffffff
mov dword [esp + 0x10], edi
je 0x10023380
push 2
push ebp
push ebx
call fcn.10021c70
add esp, 0xc
cmp eax, 0xffffffff
je 0x10023380
mov ecx, dword [esp + 0x101c]
mov esi, ecx
sub esi, eax
test esi, esi
jle 0x10023321
mov ecx, 0x400
xor eax, eax
lea edi, [esp + 0x14]
push 0x8000
rep stosd dword es:[edi], eax
push ebx
call fcn.100255a0
add esp, 8
mov edi, eax
cmp esi, 0x1000
mov eax, 0x1000
jge 0x100232c6
mov eax, esi
push eax
lea eax, [esp + 0x18]
push eax
push ebx
call fcn.10021290
add esp, 0xc
cmp eax, 0xffffffff
je 0x100232e2
sub esi, eax
test esi, esi
jle 0x100232fa
jmp 0x100232b7
call fcn.10021be0
cmp dword [eax], 5
jne 0x100232f7
call fcn.10021bd0
mov dword [eax], 0xd
or ebp, 0xffffffff
push edi
push ebx
call fcn.100255a0
mov edi, dword [esp + 0x18]
add esp, 8
push 0
push edi
push ebx
call fcn.10021c70
add esp, 0xc
mov eax, ebp
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x1004
ret
jge 0x10023367
push 0
push ecx
push ebx
call fcn.10021c70
add esp, 0xc
push ebx
call fcn.10022ee0
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 0x10023367
call fcn.10021bd0
mov dword [eax], 0xd
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov esi, eax
call fcn.10021be0
mov dword [eax], esi
push 0
push edi
push ebx
call fcn.10021c70
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 0x10023960
Capabilities:
Query environment variable

Disassembly:
mov eax, dword [0x100387c8]
push ebx
push ebp
mov ebp, dword [sym.imp.KERNEL32.dll_GetEnvironmentStrings]
push esi
xor esi, esi
xor ebx, ebx
push edi
mov edi, dword [sym.imp.KERNEL32.dll_GetEnvironmentStringsW]
test eax, eax
jne 0x100239a2
call edi
mov esi, eax
test esi, esi
je 0x1002398c
mov eax, 1
jmp 0x1002399d
call ebp
mov ebx, eax
test ebx, ebx
je 0x10023aaf
mov eax, 2
mov dword [0x100387c8], eax
cmp eax, 1
jne 0x10023a42
test esi, esi
jne 0x100239bb
call edi
mov esi, eax
test esi, esi
je 0x10023aaf
cmp word [esi], 0
mov eax, esi
je 0x100239d5
add eax, 2
cmp word [eax], 0
jne 0x100239c3
add eax, 2
cmp word [eax], 0
jne 0x100239c3
sub eax, esi
push 0
sar eax, 1
inc eax
push 0
mov ebp, eax
push 0
push 0
push ebp
push esi
push 0
push 0
call dword [sym.imp.KERNEL32.dll_WideCharToMultiByte]
mov edi, eax
test edi, edi
je 0x10023a34
push edi
call fcn.1001c420
mov ebx, eax
add esp, 4
test ebx, ebx
je 0x10023a34
push 0
push 0
push edi
push ebx
push ebp
push esi
push 0
push 0
call dword [sym.imp.KERNEL32.dll_WideCharToMultiByte]
test eax, eax
jne 0x10023a26
push ebx
call fcn.1001c3b0
add esp, 4
xor ebx, ebx
push esi
call dword [sym.imp.KERNEL32.dll_FreeEnvironmentStringsW]
mov eax, ebx
pop edi
pop esi
pop ebp
pop ebx
ret
push esi
call dword [sym.imp.KERNEL32.dll_FreeEnvironmentStringsW]
xor eax, eax
pop edi
pop esi
pop ebp
pop ebx
ret
cmp eax, 2
jne 0x10023aaf
test ebx, ebx
jne 0x10023a53
call ebp
mov ebx, eax
test ebx, ebx
je 0x10023aaf
mov cl, byte [ebx]
mov eax, ebx
test cl, cl
je 0x10023a6b
mov cl, byte [eax + 1]
inc eax
test cl, cl
jne 0x10023a5b
mov cl, byte [eax + 1]
inc eax
test cl, cl
jne 0x10023a5b
sub eax, ebx
inc eax
mov esi, eax
push esi
call fcn.1001c420
mov ebp, eax
add esp, 4
test ebp, ebp
jne 0x10023a8d
push ebx
call dword [sym.imp.KERNEL32.dll_FreeEnvironmentStringsA]
xor eax, eax
pop edi
pop esi
pop ebp
pop ebx
ret
mov ecx, esi
mov esi, ebx
mov eax, ecx
mov edi, ebp
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, eax
push ebx
and ecx, 3
rep movsb byte es:[edi], byte [esi]
call dword [sym.imp.KERNEL32.dll_FreeEnvironmentStringsA]
mov eax, ebp
pop edi
pop esi
pop ebp
pop ebx
ret
pop edi
pop esi
pop ebp
xor eax, eax
pop ebx
ret
Function at 0x10023b00
Capabilities:
Write file on windows

Disassembly:
mov ecx, dword [esp + 4]
sub esp, 0x1a8
mov eax, 0x100365d0
push ebx
push ebp
push esi
push edi
xor ebp, ebp
cmp ecx, dword [eax]
je 0x10023b24
add eax, 8
inc ebp
cmp eax, 0x10036660
jb 0x10023b15
cmp ecx, dword [ebp*8 + 0x100365d0]
jne 0x10023ccb
mov eax, dword [0x100382f8]
cmp eax, 1
je 0x10023c8d
test eax, eax
jne 0x10023b50
cmp dword [0x100382fc], 1
je 0x10023c8d
cmp ecx, 0xfc
je 0x10023ccb
lea eax, [esp + 0xb4]
push 0x104
push eax
push 0
call dword [sym.imp.KERNEL32.dll_GetModuleFileNameA]
test eax, eax
jne 0x10023b8b
mov ecx, 5
mov esi, str._program_name_unknown_
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 0x10023bd4
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 0x1002b630
add ebx, ecx
push ebx
call fcn.1001c2b0
add esp, 0xc
mov ecx, 6
mov esi, str.Runtime_Error__n_nProgram:
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, 0x1002b610
or ecx, 0xffffffff
repne scasb al, byte es:[edi]
not ecx
sub edi, ecx
push str.Microsoft_Visual_C_Runtime_Library
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 + 0x100365d4]
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.10025610
add esp, 0xc
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x1a8
ret
mov eax, dword [0x1003c680]
test eax, eax
je 0x10023c9e
mov esi, dword [eax + 0x48]
cmp esi, 0xffffffff
jne 0x10023ca8
push 0xfffffffffffffff4
call dword [sym.imp.KERNEL32.dll_GetStdHandle]
mov esi, eax
mov edx, dword [ebp*8 + 0x100365d4]
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 0x10025e20
Capabilities:
Get geographical location

Disassembly:
mov eax, dword [0x10038878]
push ebx
push ebp
push esi
mov esi, dword [sym.imp.KERNEL32.dll_GetLocaleInfoW]
push edi
test eax, eax
jne 0x10025e68
push 0
push 0
push 1
push 0
call esi
test eax, eax
je 0x10025e48
mov eax, 1
jmp 0x10025e63
push 0
push 0
push 1
push 0
call dword [sym.imp.KERNEL32.dll_GetLocaleInfoA]
test eax, eax
je 0x10025f39
mov eax, 2
mov dword [0x10038878], eax
cmp eax, 1
jne 0x10025e88
mov eax, dword [esp + 0x20]
mov ecx, dword [esp + 0x1c]
mov edx, dword [esp + 0x18]
push eax
mov eax, dword [esp + 0x18]
push ecx
push edx
push eax
call esi
pop edi
pop esi
pop ebp
pop ebx
ret
cmp eax, 2
jne 0x10025f4b
mov eax, dword [esp + 0x24]
test eax, eax
jne 0x10025ea3
mov ecx, dword [0x100385b8]
mov dword [esp + 0x24], ecx
mov ebx, dword [esp + 0x18]
mov ebp, dword [esp + 0x14]
push 0
push 0
push ebx
push ebp
call dword [sym.imp.KERNEL32.dll_GetLocaleInfoA]
mov esi, eax
test esi, esi
jne 0x10025ec2
pop edi
pop esi
pop ebp
pop ebx
ret
push esi
call fcn.1001c420
mov edi, eax
add esp, 4
test edi, edi
jne 0x10025ed6
pop edi
pop esi
pop ebp
pop ebx
ret
push esi
push edi
push ebx
push ebp
call dword [sym.imp.KERNEL32.dll_GetLocaleInfoA]
test eax, eax
je 0x10025f30
mov eax, dword [esp + 0x20]
test eax, eax
jne 0x10025f14
mov edx, dword [esp + 0x24]
push eax
push eax
push 0xffffffffffffffff
push edi
push 1
push edx
call dword [sym.imp.KERNEL32.dll_MultiByteToWideChar]
mov esi, eax
test esi, esi
je 0x10025f30
push edi
call fcn.1001c3b0
add esp, 4
mov eax, esi
pop edi
pop esi
pop ebp
pop ebx
ret
mov ecx, dword [esp + 0x24]
push eax
mov eax, dword [esp + 0x20]
push eax
push 0xffffffffffffffff
push edi
push 1
push ecx
call dword [sym.imp.KERNEL32.dll_MultiByteToWideChar]
mov esi, eax
test esi, esi
jne 0x10025f40
push edi
call fcn.1001c3b0
add esp, 4
xor eax, eax
pop edi
pop esi
pop ebp
pop ebx
ret
push edi
call fcn.1001c3b0
add esp, 4
mov eax, esi
pop edi
pop esi
pop ebp
pop ebx
ret
Function at 0x10025f50
Capabilities:
Get geographical location

Disassembly:
mov eax, dword [0x1003887c]
push ebx
push ebp
push esi
mov esi, dword [sym.imp.KERNEL32.dll_GetLocaleInfoA]
push edi
test eax, eax
jne 0x10025f98
push 0
push 0
push 1
push 0
call dword [sym.imp.KERNEL32.dll_GetLocaleInfoW]
test eax, eax
je 0x10025f7c
mov eax, 1
jmp 0x10025f93
push 0
push 0
push 1
push 0
call esi
test eax, eax
je 0x10026078
mov eax, 2
mov dword [0x1003887c], eax
cmp eax, 2
jne 0x10025fb8
mov eax, dword [esp + 0x20]
mov ecx, dword [esp + 0x1c]
mov edx, dword [esp + 0x18]
push eax
mov eax, dword [esp + 0x18]
push ecx
push edx
push eax
call esi
pop edi
pop esi
pop ebp
pop ebx
ret
cmp eax, 1
jne 0x1002608a
mov eax, dword [esp + 0x24]
test eax, eax
jne 0x10025fd3
mov ecx, dword [0x100385b8]
mov dword [esp + 0x24], ecx
mov ebx, dword [esp + 0x18]
mov ebp, dword [esp + 0x14]
push 0
push 0
push ebx
push ebp
call dword [sym.imp.KERNEL32.dll_GetLocaleInfoW]
mov edi, eax
test edi, edi
jne 0x10025ff2
pop edi
pop esi
pop ebp
pop ebx
ret
lea edx, [edi + edi]
push edx
call fcn.1001c420
mov esi, eax
add esp, 4
test esi, esi
jne 0x10026009
pop edi
pop esi
pop ebp
pop ebx
ret
push edi
push esi
push ebx
push ebp
call dword [sym.imp.KERNEL32.dll_GetLocaleInfoW]
test eax, eax
je 0x1002606f
mov eax, dword [esp + 0x20]
push 0
test eax, eax
push 0
jne 0x10026050
mov eax, dword [esp + 0x2c]
push 0
push 0
push 0xffffffffffffffff
push esi
push 0x220
push eax
call dword [sym.imp.KERNEL32.dll_WideCharToMultiByte]
mov edi, eax
test edi, edi
je 0x1002606f
push esi
call fcn.1001c3b0
add esp, 4
mov eax, edi
pop edi
pop esi
pop ebp
pop ebx
ret
mov ecx, dword [esp + 0x24]
mov edx, dword [esp + 0x2c]
push eax
push ecx
push 0xffffffffffffffff
push esi
push 0x220
push edx
call dword [sym.imp.KERNEL32.dll_WideCharToMultiByte]
mov edi, eax
test edi, edi
jne 0x1002607f
push esi
call fcn.1001c3b0
add esp, 4
xor eax, eax
pop edi
pop esi
pop ebp
pop ebx
ret
push esi
call fcn.1001c3b0
add esp, 4
mov eax, edi
pop edi
pop esi
pop ebp
pop ebx
ret
Function at 0x10026390
Capabilities:
Set environment variable

Disassembly:
push ecx
push ebx
push ebp
push esi
push edi
mov edi, dword [esp + 0x18]
test edi, edi
je 0x1002654e
push 0x3d
push edi
call fcn.1001ce20
mov esi, eax
add esp, 8
test esi, esi
je 0x1002654e
cmp edi, esi
je 0x1002654e
mov dl, byte [esi + 1]
mov ecx, dword [0x100382ac]
xor eax, eax
test dl, dl
sete al
mov ebp, eax
mov eax, dword [0x100382a8]
cmp eax, ecx
jne 0x100263e7
push eax
call fcn.10026620
add esp, 4
mov dword [0x100382a8], eax
test eax, eax
jne 0x10026462
mov eax, dword [esp + 0x1c]
test eax, eax
je 0x1002640e
mov eax, dword [0x100382b0]
test eax, eax
je 0x1002640e
call fcn.10025b50
test eax, eax
je 0x1002645d
or eax, 0xffffffff
pop edi
pop esi
pop ebp
pop ebx
pop ecx
ret
test ebp, ebp
je 0x1002641a
xor eax, eax
pop edi
pop esi
pop ebp
pop ebx
pop ecx
ret
push 4
call fcn.1001c420
add esp, 4
mov dword [0x100382a8], eax
test eax, eax
je 0x1002654e
mov dword [eax], 0
mov eax, dword [0x100382b0]
test eax, eax
jne 0x1002645d
push 4
call fcn.1001c420
add esp, 4
mov dword [0x100382b0], eax
test eax, eax
je 0x1002654e
mov dword [eax], 0
mov eax, dword [0x100382a8]
mov ebx, eax
mov eax, esi
sub eax, edi
push eax
push edi
mov dword [esp + 0x18], eax
call fcn.100265a0
mov esi, eax
add esp, 8
test esi, esi
jl 0x1002655f
cmp dword [ebx], 0
je 0x1002655f
test ebp, ebp
je 0x10026557
mov ecx, dword [ebx + esi*4]
lea edi, [ebx + esi*4]
push ecx
call fcn.1001c3b0
mov eax, dword [edi]
add esp, 4
test eax, eax
je 0x100264b9
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 0x100264a8
lea eax, [esi*4]
push eax
push ebx
call fcn.1001ec30
add esp, 8
test eax, eax
je 0x100264d3
mov dword [0x100382a8], eax
mov edi, dword [esp + 0x18]
mov eax, dword [esp + 0x1c]
test eax, eax
je 0x10026546
or ecx, 0xffffffff
xor eax, eax
repne scasb al, byte es:[edi]
not ecx
inc ecx
push ecx
call fcn.1001c420
mov ebx, eax
add esp, 4
test ebx, ebx
je 0x10026546
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.1001c3b0
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 0x100264d7
test ebp, ebp
jne 0x10026546
test esi, esi
jge 0x10026569
neg esi
lea ecx, [esi*4 + 8]
push ecx
push ebx
call fcn.1001ec30
add esp, 8
test eax, eax
je 0x1002654e
mov dword [eax + esi*4], edi
mov dword [eax + esi*4 + 4], 0
mov dword [0x100382a8], eax
jmp 0x100264d7
Function at 0x1002757c
Capabilities:
Check mutex on windows
Create thread

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x344
push ebx
push esi
push edi
lea eax, [ebp - 0x230]
push str.RxFileMap
push eax
call fcn.10028330
push dword [0x10038b40]
lea eax, [ebp - 0x230]
push eax
call fcn.10028340
add esp, 0x10
lea eax, [ebp - 0x230]
xor edi, edi
push eax
push edi
push 4
call dword [sym.imp.KERNEL32.dll_OpenFileMappingA]
cmp eax, edi
je 0x100275ca
push eax
jmp 0x10027760
lea eax, [ebp - 0x11c]
push str.EntryEvent
push eax
call fcn.10028330
push dword [0x10038b40]
lea eax, [ebp - 0x11c]
push eax
call fcn.10028340
mov ebx, dword [sym.imp.KERNEL32.dll_CreateEventA]
add esp, 0x10
lea eax, [ebp - 0x11c]
mov esi, 0x10037028
push eax
push edi
push edi
push esi
call ebx
cmp eax, edi
mov dword [0x10038b48], eax
je 0x1002774d
lea eax, [ebp - 0x11c]
push str.ExitEvent
push eax
call fcn.10028330
push dword [0x10038b40]
lea eax, [ebp - 0x11c]
push eax
call fcn.10028340
add esp, 0x10
lea eax, [ebp - 0x11c]
push eax
push edi
push edi
push esi
call ebx
cmp eax, edi
mov dword [0x10038b4c], eax
je 0x1002774d
lea eax, [ebp - 0x230]
push eax
push 0x10000
push edi
push 4
push esi
push 0xffffffffffffffff
call dword [sym.imp.KERNEL32.dll_CreateFileMappingA]
cmp eax, edi
mov dword [0x10038b50], eax
je 0x1002774d
push edi
push edi
push edi
push 0xf001f
push eax
call dword [sym.imp.KERNEL32.dll_MapViewOfFile]
cmp eax, edi
mov dword [0x10038b60], eax
je 0x1002774d
cmp word [ebp + 8], di
je 0x10027766
push edi
push edi
push edi
push esi
call ebx
cmp eax, edi
mov dword [ebp + 8], eax
je 0x1002774d
lea eax, [ebp - 0x344]
push str.ASCMutex
push eax
call fcn.10028330
push dword [0x10038b40]
lea eax, [ebp - 0x344]
push eax
call fcn.10028340
add esp, 0x10
lea eax, [ebp - 0x344]
push eax
push edi
push esi
call dword [sym.imp.KERNEL32.dll_CreateMutexA]
cmp eax, edi
mov dword [0x10038b5c], eax
je 0x1002774d
lea eax, [ebp - 0x11c]
push str.ExitThreadEvent
push eax
call fcn.10028330
push dword [0x10038b40]
lea eax, [ebp - 0x11c]
push eax
call fcn.10028340
add esp, 0x10
lea eax, [ebp - 0x11c]
push eax
push edi
push edi
push esi
call ebx
cmp eax, edi
mov dword [0x10038b54], eax
je 0x1002774d
mov esi, dword [ebp + 8]
lea eax, [ebp - 8]
push eax
lea eax, [ebp - 4]
push edi
push eax
push 0x10027be7
push edi
push edi
mov dword [ebp - 4], esi
call dword [sym.imp.KERNEL32.dll_CreateThread]
cmp eax, edi
mov dword [0x10038b44], eax
jne 0x10027752
xor ax, ax
jmp 0x1002776a
push dword [0x10037024]
push esi
call dword [sym.imp.KERNEL32.dll_WaitForSingleObject]
push esi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov ax, 1
pop edi
pop esi
pop ebx
leave
ret
Function at 0x10027994
Capabilities:
Check mutex on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x114
push esi
push 1
pop esi
lea eax, [ebp - 0x114]
push str.ASCMutex
push eax
call fcn.10028330
push dword [ebp + 8]
lea eax, [ebp - 0x114]
push eax
call fcn.10028340
add esp, 0x10
lea eax, [ebp - 0x114]
push eax
push esi
push 0x1f0001
call dword [sym.imp.KERNEL32.dll_OpenMutexA]
test eax, eax
mov dword [0x10038b58], eax
je 0x100279ed
push 0xffffffffffffffff
push eax
call dword [sym.imp.KERNEL32.dll_WaitForSingleObject]
test eax, eax
je 0x100279ef
xor esi, esi
mov ax, si
pop esi
leave
ret

Function at 0x1002a420
Capabilities:
Encode data using xor

Disassembly:
mov ecx, dword [esp + 8]
push esi
mov esi, dword [esp + 8]
push edi
mov al, byte [ecx]
xor edi, edi
mov byte [esi], al
mov al, byte [ecx]
test al, al
je 0x1002a45a
mov edx, esi
push ebx
sub edx, ecx
mov al, byte [ecx + 1]
mov bl, byte [edx + ecx]
inc edi
inc ecx
dec al
xor al, bl
mov byte [edx + ecx], al
mov al, byte [ecx]
test al, al
jne 0x1002a43b
mov byte [edi + esi], 0
pop ebx
mov eax, esi
pop edi
pop esi
ret
mov byte [edi + esi], 0
mov eax, esi
pop edi
pop esi
ret

Function at 0x1002a5a9
Capabilities:
Parse pe header

Disassembly:
push ebp
mov ebp, esp
push ebx
push esi
mov esi, dword [ebp + 0xc]
push edi
push esi
push 0x40
push 0
push dword [ebp + 8]
call fcn.1001c053
add esp, 0x10
test ax, ax
jne 0x1002a5e8
mov edi, 0xff
push 0x40
push edi
push esi
call fcn.1001ebd0
push 0xf8
push edi
push dword [ebp + 0x10]
call fcn.1001ebd0
add esp, 0x18
jmp 0x1002a628
cmp word [esi], 0x5a4d
mov ebx, dword [ebp + 0x10]
mov edi, 0xf8
jne 0x1002a619
push ebx
push edi
push dword [esi + 0x3c]
push dword [ebp + 8]
call fcn.1001c053
add esp, 0x10
test ax, ax
je 0x1002a619
xor eax, eax
cmp dword [ebx], 0x4550
sete al
jmp 0x1002a62b
push edi
push 0xff
push ebx
call fcn.1001ebd0
add esp, 0xc
xor ax, ax
pop edi
pop esi
pop ebx
pop ebp
ret