joyce8/EMBER2024-capa huggingface dataset:
Function at 0x10065c0
Capabilities:
Accept command line arguments

Disassembly:
mov eax, dword fs:[0]
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x1001548
push 0x1007a84
push eax
mov dword fs:[0], esp
sub esp, 0x60
push ebx
push esi
push edi
mov dword [ebp - 0x18], esp
call dword [sym.imp.KERNEL32.dll_GetVersion]
mov dword [0x10122ac], eax
xor eax, eax
mov al, byte [0x10122ad]
mov dword [0x10122b8], eax
mov eax, dword [0x10122ac]
shr dword [0x10122ac], 0x10
and eax, 0xff
mov dword [0x10122b4], eax
shl eax, 8
add eax, dword [0x10122b8]
mov dword [0x10122b0], eax
call fcn.01007a40
test eax, eax
jne 0x1006634
push 0x1c
call fcn.01006770
add esp, 4
call fcn.01007950
test eax, eax
jne 0x1006647
push 0x10
call fcn.01006770
add esp, 4
mov dword [ebp - 4], 0
call fcn.01007770
call fcn.01007760
call dword [sym.imp.KERNEL32.dll_GetCommandLineA]
mov dword [0x1019020], eax
call fcn.010072c0
mov dword [0x1012070], eax
test eax, eax
je 0x100667a
cmp dword [0x1019020], 0
jne 0x1006684
push 0xffffffffffffffff
call fcn.01006b50
add esp, 4
call fcn.01007050
call fcn.01006f60
call fcn.01006b20
mov esi, dword [0x1019020]
mov al, byte [esi]
cmp al, 0x22
je 0x10066ab
cmp al, 0x20
jbe 0x10066d8
inc esi
cmp byte [esi], 0x20
ja 0x10066a3
jmp 0x10066d8
inc esi
cmp byte [esi], 0x22
je 0x10066d7
mov bl, byte [ebp - 0x28]
mov bl, byte [esi]
test bl, bl
je 0x10066d2
xor eax, eax
mov al, bl
push eax
call fcn.01006f00
add esp, 4
test eax, eax
je 0x10066cc
inc esi
inc esi
cmp byte [esi], 0x22
jne 0x10066b4
cmp byte [esi], 0x22
jne 0x10066d8
inc esi
cmp byte [esi], 0
je 0x10066e8
cmp byte [esi], 0x20
ja 0x10066e8
inc esi
cmp byte [esi], 0
jne 0x10066dd
mov dword [ebp - 0x44], 0
lea eax, [ebp - 0x70]
push eax
call dword [sym.imp.KERNEL32.dll_GetStartupInfoA]
test byte [ebp - 0x44], 1
mov eax, 0xa
je 0x100670c
mov eax, dword [ebp - 0x40]
and eax, 0xffff
push eax
push esi
push 0
push 0
call dword [sym.imp.KERNEL32.dll_GetModuleHandleA]
push eax
call main
push eax
call fcn.01006b50
jmp 0x100674d
add esp, 4
mov dword [ebp - 4], 0xffffffff
mov eax, dword [ebp - 0x10]
pop edi
mov dword fs:[0], eax
pop esi
pop ebx
mov esp, ebp
pop ebp
ret

Function at 0x1006b90
Capabilities:
Terminate process

Disassembly:
push ebx
push esi
push edi
call fcn.01006c50
cmp dword [0x10122e8], 1
mov esi, dword [esp + 0x10]
jne 0x1006bb3
push esi
call dword [sym.imp.KERNEL32.dll_GetCurrentProcess]
push eax
call dword [sym.imp.KERNEL32.dll_TerminateProcess]
mov dword [0x10122e4], 1
cmp dword [esp + 0x14], 0
mov ebx, dword [esp + 0x18]
mov byte [0x10122e0], bl
jne 0x1006c0d
cmp dword [0x1019018], 0
je 0x1006bfb
mov edi, dword [0x1019014]
sub edi, 4
cmp edi, dword [0x1019018]
jb 0x1006bfb
mov eax, dword [edi]
test eax, eax
je 0x1006bf0
call eax
sub edi, 4
cmp edi, dword [0x1019018]
jae 0x1006be8
push 0x101101c
push 0x1011014
call fcn.01006c70
add esp, 8
push 0x1011024
push 0x1011020
call fcn.01006c70
add esp, 8
test ebx, ebx
je 0x1006c2c
call fcn.01006c60
pop edi
pop esi
pop ebx
ret
mov dword [0x10122e8], 1
push esi
call dword [sym.imp.KERNEL32.dll_ExitProcess]
Function at 0x10072c0
Capabilities:
Query environment variable

Disassembly:
sub esp, 4
push ebx
push esi
push edi
xor ebx, ebx
push ebp
xor edi, edi
mov esi, dword [sym.imp.KERNEL32.dll_GetEnvironmentStringsW]
cmp dword [0x101238c], ebx
jne 0x100730f
call esi
cmp eax, ebx
mov edi, eax
je 0x10072ed
mov dword [0x101238c], 1
jmp 0x100730f
call dword [sym.imp.KERNEL32.dll_GetEnvironmentStrings]
mov ebx, eax
test ebx, ebx
je 0x1007305
mov dword [0x101238c], 2
jmp 0x100730f
xor eax, eax
pop ebp
pop edi
pop esi
pop ebx
add esp, 4
ret
cmp dword [0x101238c], 1
jne 0x10073be
test edi, edi
jne 0x1007332
call esi
mov edi, eax
test edi, edi
jne 0x1007332
xor eax, eax
pop ebp
pop edi
pop esi
pop ebx
add esp, 4
ret
cmp word [edi], 0
mov esi, edi
je 0x100734c
add esi, 2
cmp word [esi], 0
jne 0x100733a
add esi, 2
cmp word [esi], 0
jne 0x100733a
sub esi, edi
push 0
sar esi, 1
push 0
inc esi
push 0
push 0
push esi
push edi
push 0
push 0
call dword [sym.imp.KERNEL32.dll_WideCharToMultiByte]
mov ebp, eax
test ebp, ebp
je 0x10073ad
push ebp
call fcn.01008600
add esp, 4
mov ebx, eax
test ebx, ebx
je 0x10073ad
push 0
push 0
push ebp
push ebx
push esi
push edi
push 0
push 0
call dword [sym.imp.KERNEL32.dll_WideCharToMultiByte]
test eax, eax
jne 0x100739c
push ebx
call fcn.01008590
add esp, 4
xor ebx, ebx
push edi
call dword [sym.imp.KERNEL32.dll_FreeEnvironmentStringsW]
mov eax, ebx
pop ebp
pop edi
pop esi
pop ebx
add esp, 4
ret
push edi
call dword [sym.imp.KERNEL32.dll_FreeEnvironmentStringsW]
xor eax, eax
pop ebp
pop edi
pop esi
pop ebx
add esp, 4
ret
cmp dword [0x101238c], 2
jne 0x1007442
test ebx, ebx
jne 0x10073e1
call dword [sym.imp.KERNEL32.dll_GetEnvironmentStrings]
mov ebx, eax
test ebx, ebx
jne 0x10073e1
xor eax, eax
pop ebp
pop edi
pop esi
pop ebx
add esp, 4
ret
mov ebp, ebx
cmp byte [ebx], 0
je 0x10073f6
inc ebp
cmp byte [ebp], 0
jne 0x10073e8
inc ebp
cmp byte [ebp], 0
jne 0x10073e8
sub ebp, ebx
inc ebp
push ebp
call fcn.01008600
mov dword [esp + 0x14], eax
add esp, 4
test eax, eax
jne 0x100741b
push ebx
call dword [sym.imp.KERNEL32.dll_FreeEnvironmentStringsA]
xor eax, eax
pop ebp
pop edi
pop esi
pop ebx
add esp, 4
ret
mov edi, dword [esp + 0x10]
mov esi, ebx
mov ecx, ebp
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, ebp
push ebx
and ecx, 3
rep movsb byte es:[edi], byte [esi]
call dword [sym.imp.KERNEL32.dll_FreeEnvironmentStringsA]
mov eax, dword [esp + 0x10]
pop ebp
pop edi
pop esi
pop ebx
add esp, 4
ret
xor eax, eax
pop ebp
pop edi
pop esi
pop ebx
add esp, 4
ret

Function at 0x1007950
Capabilities:
Allocate thread local storage
Set thread local storage value

Disassembly:
push esi
call fcn.01007ea0
call dword [sym.imp.KERNEL32.dll_TlsAlloc]
mov dword [0x10125cc], eax
cmp eax, 0xffffffff
jne 0x100796a
xor eax, eax
pop esi
ret
push 0x74
push 1
call fcn.010086d0
add esp, 8
mov esi, eax
test esi, esi
je 0x10079ac
push esi
mov eax, dword [0x10125cc]
push eax
call dword [sym.imp.KERNEL32.dll_TlsSetValue]
test eax, eax
je 0x10079ac
push esi
call fcn.010079b0
add esp, 4
call dword [sym.imp.KERNEL32.dll_GetCurrentThreadId]
mov dword [esi], eax
mov eax, 1
mov dword [esi + 4], 0xffffffff
pop esi
ret
xor eax, eax
pop esi
ret
Function at 0x10079d0
Capabilities:
Get thread local storage value
Set thread local storage value

Disassembly:
push esi
push edi
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov esi, eax
mov eax, dword [0x10125cc]
push eax
call dword [sym.imp.KERNEL32.dll_TlsGetValue]
mov edi, eax
test edi, edi
jne 0x1007a33
push 0x74
push 1
call fcn.010086d0
add esp, 8
mov edi, eax
test edi, edi
je 0x1007a29
push edi
mov eax, dword [0x10125cc]
push eax
call dword [sym.imp.KERNEL32.dll_TlsSetValue]
test eax, eax
je 0x1007a29
push edi
call fcn.010079b0
add esp, 4
call dword [sym.imp.KERNEL32.dll_GetCurrentThreadId]
mov dword [edi], eax
mov dword [edi + 4], 0xffffffff
jmp 0x1007a33
push 0x10
call fcn.01006770
add esp, 4
push esi
call dword [sym.imp.KERNEL32.dll_SetLastError]
mov eax, edi
pop edi
pop esi
ret
Function at 0x1007ba0
Capabilities:
Write file on windows

Disassembly:
sub esp, 0x1a8
xor ecx, ecx
mov eax, 0x10125d8
push ebx
mov edx, dword [esp + 0x1b0]
push esi
push edi
push ebp
cmp dword [eax], edx
je 0x1007bc7
add eax, 8
inc ecx
cmp eax, 0x1012668
jb 0x1007bb8
cmp dword [ecx*8 + 0x10125d8], edx
lea ebx, [ecx*8]
jne 0x1007d8b
cmp dword [0x101207c], 1
je 0x1007d47
cmp dword [0x101207c], 0
jne 0x1007bfe
cmp dword [0x1012080], 1
je 0x1007d47
cmp edx, 0xfc
je 0x1007d8b
lea eax, [esp + 0xb4]
push 0x104
push eax
mov ebp, dword [sym.imp.KERNEL32.dll_GetModuleFileNameA]
push 0
call ebp
test eax, eax
jne 0x1007c3b
mov esi, 0x100182c
lea edi, [esp + 0xb4]
mov ecx, 5
rep movsd dword es:[edi], dword [esi]
movsw word es:[edi], word [esi]
movsb byte es:[edi], byte [esi]
lea ebp, [esp + 0xb4]
lea edi, [esp + 0xb4]
mov ecx, 0xffffffff
sub eax, eax
repne scasb al, byte es:[edi]
not ecx
cmp ecx, 0x3c
jbe 0x1007c7f
lea edi, [esp + 0xb4]
mov ecx, 0xffffffff
sub eax, eax
push 3
repne scasb al, byte es:[edi]
not ecx
lea ebp, [esp + ecx + 0x7c]
push 0x1001828
push ebp
call fcn.01008f80
add esp, 0xc
mov esi, 0x100180c
lea edi, [esp + 0x14]
mov ecx, 6
rep movsd dword es:[edi], dword [esi]
movsw word es:[edi], word [esi]
mov edi, ebp
mov ecx, 0xffffffff
sub eax, eax
repne scasb al, byte es:[edi]
not ecx
sub edi, ecx
mov edx, ecx
mov esi, edi
mov ecx, 0xffffffff
lea edi, [esp + 0x14]
sub eax, eax
repne scasb al, byte es:[edi]
dec edi
mov ecx, edx
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, edx
and ecx, 3
rep movsb byte es:[edi], byte [esi]
mov edi, 0x1001808
mov ecx, 0xffffffff
sub eax, eax
repne scasb al, byte es:[edi]
not ecx
sub edi, ecx
mov edx, ecx
mov esi, edi
mov ecx, 0xffffffff
lea edi, [esp + 0x14]
sub eax, eax
repne scasb al, byte es:[edi]
dec edi
mov ecx, edx
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, edx
and ecx, 3
rep movsb byte es:[edi], byte [esi]
mov edi, dword [ebx + 0x10125dc]
mov ecx, 0xffffffff
sub eax, eax
repne scasb al, byte es:[edi]
not ecx
sub edi, ecx
mov esi, edi
mov edx, ecx
lea edi, [esp + 0x14]
mov ecx, 0xffffffff
sub eax, eax
repne scasb al, byte es:[edi]
dec edi
mov ecx, edx
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, edx
push 0x12010
and ecx, 3
push 0x10017e0
rep movsb byte es:[edi], byte [esi]
lea eax, [esp + 0x1c]
push eax
call fcn.01008ee0
add esp, 0xc
pop ebp
pop edi
pop esi
pop ebx
add esp, 0x1a8
ret
cmp dword [0x1018f10], 0
je 0x1007d5d
mov eax, dword [0x1018f10]
mov esi, dword [eax + 0x48]
cmp esi, 0xffffffff
jne 0x1007d67
push 0xfffffffffffffff4
call dword [sym.imp.KERNEL32.dll_GetStdHandle]
mov esi, eax
mov edx, dword [ebx + 0x10125dc]
push 0
lea eax, [esp + 0x14]
mov edi, edx
push eax
mov ecx, 0xffffffff
sub 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 ebp
pop edi
pop esi
pop ebx
add esp, 0x1a8
ret
Function at 0x100a520
Capabilities:
Get geographical location

Disassembly:
push ebx
mov eax, dword [0x1013ccc]
push esi
test eax, eax
push edi
push ebp
jne 0x100a568
push 0
mov esi, dword [sym.imp.KERNEL32.dll_GetLocaleInfoW]
push 0
push 1
push 0
call esi
test eax, eax
je 0x100a548
mov eax, 1
jmp 0x100a56e
push 0
push 0
push 1
push 0
call dword [sym.imp.KERNEL32.dll_GetLocaleInfoA]
test eax, eax
je 0x100a561
mov eax, 2
jmp 0x100a56e
xor eax, eax
pop ebp
pop edi
pop esi
pop ebx
ret
mov esi, dword [sym.imp.KERNEL32.dll_GetLocaleInfoW]
mov dword [0x1013ccc], eax
cmp eax, 1
jne 0x100a593
mov eax, dword [esp + 0x20]
mov ecx, dword [esp + 0x1c]
mov edx, dword [esp + 0x18]
push eax
mov ebx, dword [esp + 0x18]
push ecx
push edx
push ebx
call esi
pop ebp
pop edi
pop esi
pop ebx
ret
mov dword [0x1013ccc], eax
cmp eax, 2
jne 0x100a621
mov edi, dword [esp + 0x24]
test edi, edi
jne 0x100a5af
mov edi, dword [0x10128b8]
mov eax, dword [esp + 0x18]
push 0
mov ebx, dword [esp + 0x18]
push 0
push eax
push ebx
call dword [sym.imp.KERNEL32.dll_GetLocaleInfoA]
mov ebp, eax
test ebp, ebp
jne 0x100a5d0
xor eax, eax
pop ebp
pop edi
pop esi
pop ebx
ret
push ebp
call fcn.01008600
add esp, 4
mov esi, eax
test esi, esi
jne 0x100a5e6
xor eax, eax
pop ebp
pop edi
pop esi
pop ebx
ret
mov eax, dword [esp + 0x18]
push ebp
push esi
push eax
push ebx
call dword [sym.imp.KERNEL32.dll_GetLocaleInfoA]
test eax, eax
je 0x100a616
mov eax, dword [esp + 0x20]
test eax, eax
jne 0x100a626
push 0
push 0
push 0xffffffffffffffff
push esi
push 1
push edi
call dword [sym.imp.KERNEL32.dll_MultiByteToWideChar]
mov edi, eax
test edi, edi
jne 0x100a63e
push esi
call fcn.01008590
add esp, 4
xor eax, eax
pop ebp
pop edi
pop esi
pop ebx
ret
push eax
mov eax, dword [esp + 0x20]
push eax
push 0xffffffffffffffff
push esi
push 1
push edi
call dword [sym.imp.KERNEL32.dll_MultiByteToWideChar]
mov edi, eax
test edi, edi
je 0x100a616
push esi
call fcn.01008590
add esp, 4
mov eax, edi
pop ebp
pop edi
pop esi
pop ebx
ret
Function at 0x100a650
Capabilities:
Get geographical location

Disassembly:
push ebx
mov eax, dword [0x1013cd0]
push esi
test eax, eax
push edi
push ebp
jne 0x100a698
push 0
mov esi, dword [sym.imp.KERNEL32.dll_GetLocaleInfoA]
push 0
push 1
push 0
call esi
test eax, eax
je 0x100a678
mov eax, 2
jmp 0x100a69e
push 0
push 0
push 1
push 0
call dword [sym.imp.KERNEL32.dll_GetLocaleInfoW]
test eax, eax
je 0x100a691
mov eax, 1
jmp 0x100a69e
xor eax, eax
pop ebp
pop edi
pop esi
pop ebx
ret
mov esi, dword [sym.imp.KERNEL32.dll_GetLocaleInfoA]
mov dword [0x1013cd0], eax
cmp eax, 2
jne 0x100a6c3
mov eax, dword [esp + 0x20]
mov ecx, dword [esp + 0x1c]
mov edx, dword [esp + 0x18]
push eax
mov ebx, dword [esp + 0x18]
push ecx
push edx
push ebx
call esi
pop ebp
pop edi
pop esi
pop ebx
ret
mov dword [0x1013cd0], eax
cmp eax, 1
jne 0x100a75f
mov edi, dword [esp + 0x24]
test edi, edi
jne 0x100a6df
mov edi, dword [0x10128b8]
mov eax, dword [esp + 0x18]
push 0
mov ebx, dword [esp + 0x18]
push 0
push eax
push ebx
call dword [sym.imp.KERNEL32.dll_GetLocaleInfoW]
mov ebp, eax
test ebp, ebp
jne 0x100a700
xor eax, eax
pop ebp
pop edi
pop esi
pop ebx
ret
lea eax, [ebp*2]
push eax
call fcn.01008600
add esp, 4
mov esi, eax
test esi, esi
jne 0x100a71d
xor eax, eax
pop ebp
pop edi
pop esi
pop ebx
ret
mov eax, dword [esp + 0x18]
push ebp
push esi
push eax
push ebx
call dword [sym.imp.KERNEL32.dll_GetLocaleInfoW]
test eax, eax
je 0x100a754
mov eax, dword [esp + 0x20]
push 0
push 0
test eax, eax
jne 0x100a764
push 0
push 0
push 0xffffffffffffffff
push esi
push 0x220
push edi
call dword [sym.imp.KERNEL32.dll_WideCharToMultiByte]
mov edi, eax
test edi, edi
jne 0x100a77f
push esi
call fcn.01008590
add esp, 4
xor eax, eax
pop ebp
pop edi
pop esi
pop ebx
ret
push eax
mov eax, dword [esp + 0x28]
push eax
push 0xffffffffffffffff
push esi
push 0x220
push edi
call dword [sym.imp.KERNEL32.dll_WideCharToMultiByte]
mov edi, eax
test edi, edi
je 0x100a754
push esi
call fcn.01008590
add esp, 4
mov eax, edi
pop ebp
pop edi
pop esi
pop ebx
ret
Function at 0x100ae30
Capabilities:
Write file on windows

Disassembly:
sub esp, 0x418
push ebx
push esi
push edi
push ebp
xor edi, edi
mov ebp, dword [esp + 0x434]
mov dword [esp + 0x20], edi
cmp ebp, edi
jne 0x100ae58
xor eax, eax
pop ebp
pop edi
pop esi
pop ebx
add esp, 0x418
ret
mov edx, dword [esp + 0x42c]
mov eax, edx
and eax, 0xffffffe7
sar eax, 3
add eax, 0x1018f10
mov dword [esp + 0x18], eax
mov eax, edx
and eax, 0x1f
mov ebx, dword [esp + 0x18]
shl eax, 2
lea ecx, [eax + eax*8]
mov eax, dword [ebx]
mov dword [esp + 0x1c], ecx
test byte [eax + ecx + 4], 0x20
je 0x100ae99
push 2
push 0
push edx
call fcn.0100b300
add esp, 0xc
mov eax, dword [esp + 0x18]
mov ecx, dword [esp + 0x1c]
add ecx, dword [eax]
test byte [ecx + 4], 0x80
je 0x100af35
mov dword [esp + 0x10], 0
mov ebx, dword [esp + 0x430]
mov eax, ebx
sub eax, dword [esp + 0x430]
cmp eax, ebp
jae 0x100af6e
lea esi, [esp + 0x24]
mov eax, ebx
sub eax, dword [esp + 0x430]
cmp eax, ebp
jae 0x100aefc
mov al, byte [ebx]
inc ebx
cmp al, 0xa
jne 0x100aeea
mov byte [esi], 0xd
inc edi
inc esi
mov byte [esi], al
inc esi
mov eax, esi
lea ecx, [esp + 0x24]
sub eax, ecx
cmp eax, 0x400
jl 0x100aed1
lea eax, [esp + 0x24]
push 0
sub esi, eax
lea ecx, [esp + 0x28]
lea eax, [esp + 0x18]
mov edx, dword [esp + 0x1c]
push eax
push esi
push ecx
mov eax, dword [edx]
mov ecx, dword [esp + 0x2c]
mov edx, dword [eax + ecx]
push edx
call dword [sym.imp.KERNEL32.dll_WriteFile]
test eax, eax
je 0x100af64
mov eax, dword [esp + 0x14]
add dword [esp + 0x20], eax
cmp eax, esi
jge 0x100aebc
jmp 0x100af6e
lea eax, [esp + 0x14]
push 0
mov edx, dword [esp + 0x434]
push eax
push ebp
mov ecx, dword [ecx]
push edx
push ecx
call dword [sym.imp.KERNEL32.dll_WriteFile]
test eax, eax
je 0x100af64
mov dword [esp + 0x10], 0
mov eax, dword [esp + 0x14]
mov dword [esp + 0x20], eax
jmp 0x100af6e
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov dword [esp + 0x10], eax
cmp dword [esp + 0x20], 0
jne 0x100b01a
cmp dword [esp + 0x10], 0
je 0x100afca
cmp dword [esp + 0x10], 5
jne 0x100afad
call fcn.0100ab10
mov dword [eax], 9
call fcn.0100ab20
mov ecx, dword [esp + 0x10]
pop ebp
pop edi
mov dword [eax], ecx
mov eax, 0xffffffff
pop esi
pop ebx
add esp, 0x418
ret
mov ecx, dword [esp + 0x10]
push ecx
call fcn.0100aa90
add esp, 4
mov eax, 0xffffffff
pop ebp
pop edi
pop esi
pop ebx
add esp, 0x418
ret
mov eax, dword [esp + 0x18]
mov ecx, dword [esp + 0x1c]
mov edx, dword [eax]
test byte [edx + ecx + 4], 0x40
je 0x100aff4
mov eax, dword [esp + 0x430]
cmp byte [eax], 0x1a
jne 0x100aff4
xor eax, eax
pop ebp
pop edi
pop esi
pop ebx
add esp, 0x418
ret
call fcn.0100ab10
mov dword [eax], 0x1c
call fcn.0100ab20
pop ebp
mov dword [eax], 0
mov eax, 0xffffffff
pop edi
pop esi
pop ebx
add esp, 0x418
ret
mov eax, dword [esp + 0x20]
pop ebp
sub eax, edi
pop edi
pop esi
pop ebx
add esp, 0x418
ret
Function at 0x100cbd0
Capabilities:
Encode data using xor

Disassembly:
mov eax, dword [esp + 0xc]
push ebx
push esi
push edi
mov edi, dword [esp + 0x14]
mov esi, dword [esp + 0x10]
mov ecx, edi
shr ecx, 2
mov edx, ecx
dec ecx
test edx, edx
jle 0x100cc1b
xor edx, edx
inc esi
xor ebx, ebx
inc esi
inc esi
mov dl, byte [esi - 3]
mov bl, byte [esi - 2]
inc esi
shl ebx, 8
or edx, ebx
xor ebx, ebx
mov bl, byte [esi - 2]
shl ebx, 0x10
or edx, ebx
xor ebx, ebx
mov bl, byte [esi - 1]
shl ebx, 0x18
or edx, ebx
xor eax, edx
mov edx, ecx
dec ecx
test edx, edx
jg 0x100cbeb
xor ecx, ecx
and edi, 3
cmp edi, 1
je 0x100cc3f
cmp edi, 2
je 0x100cc35
cmp edi, 3
jne 0x100cc45
mov cl, byte [esi]
inc esi
shl ecx, 0x10
xor edx, edx
mov dl, byte [esi]
inc esi
shl edx, 8
or ecx, edx
xor edx, edx
mov dl, byte [esi]
or ecx, edx
xor eax, ecx
pop edi
pop esi
pop ebx
ret
Function at 0x40e62f
Capabilities:
Hash data using sha1

Disassembly:
mov eax, dword [esp + 4]
and dword [eax + 0x18], 0
and dword [eax + 0x14], 0
mov dword [eax], 0x67452301
mov dword [eax + 4], 0xefcdab89
mov dword [eax + 8], 0x98badcfe
mov dword [eax + 0xc], 0x10325476
mov dword [eax + 0x10], 0xc3d2e1f0
ret 4

Function at 0x412603
Capabilities:
Get common file path

Disassembly:
push dword [esp + 4]
push dword [esp + 0xc]
call dword [sym.imp.KERNEL32.dll_GetCurrentDirectoryW]
neg eax
sbb eax, eax
neg eax
ret 8
Function at 0x415bc0
Capabilities:
Enumerate files on windows

Disassembly:
push 0xffffffffffffffff
push 0x481bdb
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x180
push ebx
push ebp
mov ebp, ecx
lea ecx, [esp + 8]
lea eax, [ebp + 0x40]
push eax
call fcn.0047669b
mov ecx, dword [esp + 8]
mov dword [esp + 0x190], 0
mov eax, dword [ecx - 8]
test eax, eax
je 0x415c42
lea edx, [esp + 0x10]
push 1
push edx
lea ecx, [esp + 0x10]
call fcn.004745ea
mov eax, dword [eax]
push 0x4a5234
push eax
call fcn.004669b4
add esp, 8
lea ecx, [esp + 0x10]
test eax, eax
setne bl
call fcn.00476926
test bl, bl
je 0x415c42
push 0x4a5234
lea ecx, [esp + 0xc]
call fcn.00476cb6
push 0x4a8da0
lea ecx, [esp + 0xc]
call fcn.00476cb6
mov ecx, dword [esp + 8]
lea eax, [esp + 0x48]
push eax
push ecx
call dword [sym.imp.KERNEL32.dll_FindFirstFileA]
cmp eax, 0xffffffff
mov dword [esp + 0xc], eax
jne 0x415c7e
lea ecx, [esp + 8]
mov dword [esp + 0x190], eax
call fcn.00476926
jmp 0x415d49
push esi
mov esi, dword [esp + 0x19c]
push edi
mov edi, dword [sym.imp.USER32.dll_SendMessageA]
mov ebx, 0x23
test byte [esp + 0x50], 0x10
je 0x415d02
lea edx, [esp + 0x7c]
push 0x4a8d9c
push edx
call fcn.004669b4
add esp, 8
test eax, eax
je 0x415d02
lea eax, [esp + 0x7c]
push 0x4a8d98
push eax
call fcn.004669b4
add esp, 8
test eax, eax
je 0x415d02
mov eax, dword [ebp + 0x1c]
lea edx, [esp + 0x1c]
push edx
push 0
lea ecx, [esp + 0x84]
push 0x1100
push eax
mov dword [esp + 0x2c], esi
mov dword [esp + 0x30], 0xffff0003
mov dword [esp + 0x4c], 0
mov dword [esp + 0x50], 1
mov dword [esp + 0x44], ecx
mov dword [esp + 0x34], ebx
call edi
mov edx, dword [esp + 0x14]
lea ecx, [esp + 0x50]
push ecx
push edx
call dword [sym.imp.KERNEL32.dll_FindNextFileA]
test eax, eax
jne 0x415c92
mov eax, dword [esp + 0x14]
push eax
call dword [sym.imp.KERNEL32.dll_FindClose]
mov ecx, dword [ebp + 0x1c]
push esi
push 2
push 0x1102
push ecx
call edi
lea ecx, [esp + 0x10]
mov dword [esp + 0x198], 0xffffffff
call fcn.00476926
pop edi
pop esi
mov ecx, dword [esp + 0x188]
pop ebp
pop ebx
mov dword fs:[0], ecx
add esp, 0x18c
ret 4

Function at 0x416540
Capabilities:
Query or enumerate registry value

Disassembly:
mov ecx, dword [esp + 8]
mov edx, dword [esp + 4]
sub esp, 0x10c
lea eax, [esp]
push esi
push eax
push 1
push 0
push ecx
push edx
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
mov esi, eax
test esi, esi
jne 0x4165a2
mov edx, dword [esp + 4]
lea eax, [esp + 8]
lea ecx, [esp + 0xc]
push eax
push ecx
push esi
push edx
mov dword [esp + 0x18], 0x104
call dword [sym.imp.ADVAPI32.dll_RegQueryValueA]
mov ecx, dword [esp + 0x11c]
lea eax, [esp + 0xc]
push eax
push ecx
call dword [sym.imp.KERNEL32.dll_lstrcpyA]
mov edx, dword [esp + 4]
push edx
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov eax, esi
pop esi
add esp, 0x10c
ret 0xc
Function at 0x4165b0
Capabilities:
Create process on windows

Disassembly:
push 0xffffffffffffffff
push 0x481c5b
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x20c
mov eax, dword [0x4b5d94]
push esi
push edi
mov edi, ecx
mov dword [esp + 8], eax
mov eax, dword [edi + 0x44]
mov dword [esp + 0x21c], 0
test eax, eax
jne 0x4166e8
mov ecx, dword [edi + 0x48]
lea esi, [edi + 0x48]
mov eax, dword [ecx - 8]
test eax, eax
jne 0x416616
lea ecx, [esp + 8]
mov dword [esp + 0x21c], 0xffffffff
call fcn.00476926
xor eax, eax
jmp 0x41675f
push str.mailto:
lea ecx, [esp + 0xc]
call fcn.00476a63
push esi
lea ecx, [esp + 0xc]
call fcn.00476cf2
mov ecx, dword [esp + 8]
push ebx
push ebp
mov ebp, dword [esp + 0x22c]
push ebp
push 0
push 0
push ecx
push 0x4a8dd8
push 0
call dword [sym.imp.SHELL32.dll_ShellExecuteA]
mov esi, eax
cmp esi, 0x20
ja 0x41673d
lea edx, [esp + 0x14]
mov ecx, edi
push edx
push str..htm
push closesocket
call fcn.00416540
test eax, eax
jne 0x41673d
mov ebx, dword [sym.imp.KERNEL32.dll_lstrcatA]
lea eax, [esp + 0x14]
push str._shellopencommand
push eax
call ebx
lea ecx, [esp + 0x14]
lea edx, [esp + 0x14]
push ecx
push edx
push closesocket
mov ecx, edi
call fcn.00416540
test eax, eax
jne 0x41673d
lea eax, [esp + 0x14]
push 0x4a8db4
push eax
call fcn.00467b50
mov esi, eax
add esp, 8
test esi, esi
jne 0x41671c
lea ecx, [esp + 0x14]
push 0x4a8db0
push ecx
call fcn.00467ad0
mov esi, eax
add esp, 8
test esi, esi
jne 0x41671c
lea edx, [esp + 0x14]
push edx
call dword [sym.imp.KERNEL32.dll_lstrlenA]
lea esi, [esp + eax + 0x13]
jmp 0x41671f
lea edx, [edi + 0x4c]
lea ecx, [esp + 8]
push edx
call fcn.00476a13
mov eax, dword [esp + 8]
mov ecx, dword [eax - 8]
test ecx, ecx
jne 0x41662e
lea ecx, [esp + 8]
mov dword [esp + 0x21c], 0xffffffff
call fcn.00476926
xor eax, eax
jmp 0x41675f
mov byte [esi], 0
push 0x4a8dac
push esi
call ebx
mov eax, dword [esp + 0x10]
push eax
push esi
call ebx
lea ecx, [esp + 0x14]
push ebp
push ecx
call dword [sym.imp.KERNEL32.dll_WinExec]
mov esi, eax
xor edx, edx
cmp esi, 0x20
setg dl
lea ecx, [esp + 0x10]
mov esi, edx
mov dword [esp + 0x224], 0xffffffff
call fcn.00476926
pop ebp
mov eax, esi
pop ebx
mov ecx, dword [esp + 0x214]
pop edi
pop esi
mov dword fs:[0], ecx
add esp, 0x218
ret 4