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

Disassembly:
push ebp
mov ebp, esp
push esi
mov esi, ecx
mov eax, dword [esi + 0x50]
push edi
mov edi, dword [ebp + 8]
cmp eax, edi
je 0x2e01df22
test eax, eax
je 0x2e01de91
add eax, 0xc
mov ecx, dword [eax]
push eax
call dword [ecx + 0x10]
test eax, eax
je 0x2e01de91
mov eax, dword [esi + 0x50]
add eax, 0xc
mov ecx, dword [eax]
push eax
call dword [ecx + 0x10]
mov ecx, dword [eax]
push eax
call dword [ecx + 0x20]
test edi, edi
je 0x2e01de9a
lea edx, [edi + 0xc]
jmp 0x2e01de9c
xor edx, edx
mov eax, dword [esi + 0x50]
test eax, eax
je 0x2e01dea8
lea ecx, [eax + 0xc]
jmp 0x2e01deaa
xor ecx, ecx
mov eax, dword [esi + 0x54]
push ebx
mov ebx, dword [eax]
push edx
push ecx
push eax
call dword [ebx + 0x3c]
mov eax, dword [esi]
mov dword [esi + 0x50], edi
push dword [edi + 4]
push esi
call dword [eax + 0x14]
push eax
call dword [sym.imp.MSO.dll_Ordinal_6275]
pop ebx
test eax, eax
jne 0x2e01ded5
push 2
call fcn.2e03121d
mov eax, dword [esi + 0x50]
push dword [eax + 4]
call dword [sym.imp.MSO.dll_Ordinal_2832]
mov ecx, dword [esi + 0x194]
test ecx, ecx
je 0x2e01defc
mov eax, dword [esi + 0x50]
push 0
push dword [eax + 4]
push 0
push 1
call fcn.2e02239b
mov eax, dword [esi + 0x50]
test eax, eax
je 0x2e01df22
add eax, 0xc
mov ecx, dword [eax]
push eax
call dword [ecx + 0x10]
test eax, eax
je 0x2e01df22
mov eax, dword [esi + 0x50]
add eax, 0xc
mov ecx, dword [eax]
push eax
call dword [ecx + 0x10]
mov ecx, dword [eax]
push eax
call dword [ecx + 0x24]
mov eax, dword [esi + 0x68]
mov ecx, dword [eax]
push eax
call dword [ecx + 0x18]
push 0
push dword [esi + 8]
call dword [sym.imp.USER32.dll_ShowWindow]
pop edi
pop esi
pop ebp
ret 4
Function at 0x2e01f805
Capabilities:
Hide graphical window

Disassembly:
push ebp
mov ebp, esp
push esi
mov esi, dword [ebp + 8]
mov eax, dword [esi + 0x3c]
test eax, eax
je 0x2e01f827
push 0
push eax
call dword [sym.imp.USER32.dll_ShowWindow]
push 0
push dword [esi + 0x3c]
call dword [sym.imp.USER32.dll_SetParent]
mov eax, dword [esi + 0x3c]
and dword [esi + 0x3c], 0
pop esi
pop ebp
ret 4

Function at 0x2e02239b
Capabilities:
Check mutex on windows
Read file via mapping

Disassembly:
push ebp
mov ebp, esp
push ecx
push ebx
push esi
push edi
mov edi, dword [ebp + 0x14]
xor ebx, ebx
mov esi, ecx
cmp edi, ebx
je 0x2e0223af
mov dword [edi], ebx
cmp dword [esi], ebx
jne 0x2e0223b7
xor al, al
jmp 0x2e022428
push dword [esi + 8]
mov byte [ebp + 0x17], bl
push ebx
push ebx
call dword [sym.imp.KERNEL32.dll_CreateMutexW]
mov dword [ebp - 4], eax
cmp eax, ebx
je 0x2e022425
push 0x1f4
push eax
call dword [sym.imp.KERNEL32.dll_WaitForSingleObject]
test eax, eax
jne 0x2e022413
push ebx
push ebx
push ebx
push 6
push dword [esi]
call dword [sym.imp.KERNEL32.dll_MapViewOfFile]
cmp eax, ebx
je 0x2e022413
cmp edi, ebx
je 0x2e0223f5
mov ecx, dword [eax]
mov dword [edi], ecx
cmp byte [ebp + 8], bl
jne 0x2e022403
cmp byte [ebp + 0xc], bl
je 0x2e022408
cmp dword [eax], ebx
jne 0x2e022408
mov ecx, dword [ebp + 0x10]
mov dword [eax], ecx
push eax
call dword [sym.imp.KERNEL32.dll_UnmapViewOfFile]
mov byte [ebp + 0x17], 1
push dword [ebp - 4]
call dword [sym.imp.KERNEL32.dll_ReleaseMutex]
push dword [ebp - 4]
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov al, byte [ebp + 0x17]
pop edi
pop esi
pop ebx
leave
ret 0x10

Function at 0x2e02271d
Capabilities:
Log keystrokes via polling

Disassembly:
push ebp
mov ebp, esp
push ebx
push esi
mov esi, dword [sym.imp.USER32.dll_GetKeyState]
push edi
push 0x11
mov ebx, ecx
call esi
mov cl, byte [ebx + 0x6c]
mov edi, dword [ebp + 8]
shr eax, 0xc
and eax, 8
mov word [edi], ax
test cl, 1
je 0x2e02274e
test ax, ax
jne 0x2e02274e
and cl, 0xfe
mov byte [ebx + 0x6c], cl
push 0x12
call esi
mov ecx, 0x8000
test cx, ax
je 0x2e022760
or word [edi], 0x10
push 0x10
call esi
mov ecx, 0x8000
test cx, ax
je 0x2e022772
or word [edi], 4
push 0xa2
call esi
test ax, ax
jge 0x2e02278f
push 0xa5
call esi
test ax, ax
jge 0x2e02278f
and dword [edi], 0
jmp 0x2e0227b0
mov eax, dword [ebp + 0xc]
movzx eax, word [eax + 8]
mov word [edi + 2], ax
cmp ax, 0x11
jne 0x2e0227a6
or byte [ebx + 0x6c], 1
jmp 0x2e0227b0
cmp ax, 0x10
jne 0x2e0227b0
or byte [ebx + 0x6c], 2
mov eax, edi
pop edi
pop esi
pop ebx
pop ebp
ret 8
Function at 0x2e0227b9
Capabilities:
Log keystrokes via polling

Disassembly:
push ebp
mov ebp, esp
push ebx
push esi
push edi
mov edi, dword [sym.imp.USER32.dll_GetKeyState]
push 0x12
mov ebx, ecx
call edi
mov esi, dword [ebp + 8]
xor ecx, ecx
mov word [esi + 2], cx
mov ecx, dword [ebp + 0xc]
movzx ecx, word [ecx + 8]
shr eax, 0xb
and eax, 0x10
sub ecx, 0x10
mov word [esi], ax
je 0x2e022826
dec ecx
jne 0x2e022857
mov cl, byte [ebx + 0x6c]
test cl, 1
je 0x2e022857
and cl, 0xfe
mov byte [ebx + 0x6c], cl
or eax, 8
mov ebx, 0xa0
push ebx
mov word [esi], ax
call edi
mov ecx, 0x8000
test cx, ax
jne 0x2e022820
inc ebx
push ebx
call edi
mov ecx, 0x8000
test cx, ax
je 0x2e022857
mov word [esi + 2], bx
jmp 0x2e022857
mov al, byte [ebx + 0x6c]
test al, 2
je 0x2e022857
and al, 0xfd
push 0x11
mov byte [ebx + 0x6c], al
call edi
mov ecx, 0x8000
test cx, ax
je 0x2e022857
mov eax, dword [ebp + 0xc]
or word [esi], 8
cmp byte [eax + 0xe], 0x36
mov eax, 0xa1
je 0x2e022853
dec eax
mov word [esi + 2], ax
pop edi
mov eax, esi
pop esi
pop ebx
pop ebp
ret 8

Function at 0x2e02acf1
Capabilities:
Check os version

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x120
mov eax, dword [0x2e0030d4]
xor eax, ebp
mov dword [ebp - 4], eax
mov eax, dword [ebp + 8]
push ebx
push esi
push edi
xor ebx, ebx
push 2
mov dword [ebp - 0x120], eax
pop edi
cmp dword [0x2e045d34], ebx
jne 0x2e02adbd
mov esi, 0x114
push esi
lea eax, [ebp - 0x118]
push ebx
push eax
call sub.MSVCR90.dll_memset
add esp, 0xc
lea eax, [ebp - 0x118]
push eax
mov dword [ebp - 0x118], esi
call dword [sym.imp.KERNEL32.dll_GetVersionExW]
cmp dword [ebp - 0x114], 6
jbe 0x2e02ad70
mov dword [0x2e045d34], 1
xor eax, eax
mov ecx, dword [ebp - 4]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.2e01c5d1
leave
ret 4
jne 0x2e02adb7
xor esi, esi
inc esi
cmp dword [ebp - 0x110], esi
jb 0x2e02ada3
lea eax, [ebp - 0x11c]
push eax
mov dword [ebp - 0x11c], ebx
call dword [sym.imp.KERNEL32.dll_GetCurrentProcess]
push eax
call dword [sym.imp.KERNEL32.dll_IsWow64Process]
test eax, eax
je 0x2e02adaf
cmp dword [ebp - 0x11c], ebx
je 0x2e02adaf
mov dword [0x2e045d34], 2
jmp 0x2e02adc5
mov dword [0x2e045d34], esi
jmp 0x2e02ad5d
mov dword [0x2e045d34], edi
cmp dword [0x2e045d34], edi
jne 0x2e02ad5d
mov esi, dword [sym.imp.KERNEL32.dll_SetUnhandledExceptionFilter]
push ebx
call esi
mov edi, eax
push edi
call esi
xor eax, eax
cmp edi, ebx
je 0x2e02adee
push dword [ebp - 0x120]
call edi
cmp eax, ebx
je 0x2e02adee
cmp eax, 1
jne 0x2e02ad5f
mov dword [0], 1
jmp 0x2e02ad5f

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

Disassembly:
push esi
push dword [0x2e045d3c]
call dword [sym.imp.KERNEL32.dll_TlsGetValue]
mov esi, eax
test esi, esi
jne 0x2e02b151
push 1
push 8
call fcn.2e01b879
test eax, eax
je 0x2e02b135
and dword [eax], esi
and dword [eax + 4], esi
jmp 0x2e02b137
xor eax, eax
push eax
push dword [0x2e045d3c]
mov esi, eax
call dword [sym.imp.KERNEL32.dll_TlsSetValue]
test eax, eax
jne 0x2e02b151
push 2
call fcn.2e03121d
mov eax, esi
pop esi
ret
Function at 0x2e033abc
Capabilities:
Parse pe header

Disassembly:
push 0xc
push 0x2e03ae78
call fcn.2e034e4e
and dword [ebp - 4], 0
mov eax, dword [ebp + 8]
movzx edx, word [eax]
mov ecx, 0x5a4d
cmp dx, cx
jne 0x2e033afa
mov ecx, dword [eax + 0x3c]
add ecx, eax
mov esi, 0xe0
cmp word [ecx + 0x14], si
jne 0x2e033afa
add esi, 0x2b
cmp word [ecx + 0x18], si
jne 0x2e033afa
mov eax, dword [ecx + 0x50]
jmp 0x2e033b1b
mov ecx, 0x4550
cmp dx, cx
jne 0x2e033b27
mov ecx, 0xe0
cmp word [eax + 0x14], cx
jne 0x2e033b27
add ecx, 0x2b
cmp word [eax + 0x18], cx
jne 0x2e033b27
mov eax, dword [eax + 0x50]
mov dword [ebp - 0x1c], eax
jmp 0x2e033b2b
and dword [ebp - 0x1c], 0
mov dword [ebp - 4], 0xfffffffe
mov eax, dword [ebp - 0x1c]
call fcn.2e034e93
ret 4
Function at 0x2e033f56
Capabilities:
Link many functions at runtime
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x214
mov eax, dword [0x2e0030d4]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
mov ebx, dword [ebp + 0xc]
push esi
push edi
mov edi, dword [ebp + 8]
xor eax, eax
push 0x206
mov word [ebp - 0x20c], ax
xor esi, esi
lea eax, [ebp - 0x20a]
push esi
push eax
mov dword [ebp - 0x214], 1
call sub.MSVCR90.dll_memset
mov eax, 0x2e045e34
add esp, 0xc
mov dword [ebp - 0x210], 0x208
mov ecx, eax
cmp dword [ecx], 0
je 0x2e033fc3
add ecx, 0x14
inc esi
cmp ecx, 0x2e045e5c
jl 0x2e033fad
jmp 0x2e034116
imul esi, esi, 0x14
add esi, eax
je 0x2e034116
lea eax, [ebp - 0x210]
push eax
lea eax, [ebp - 0x20c]
push eax
lea eax, [ebp - 0x214]
push eax
push 0
push ebx
push edi
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
test eax, eax
jne 0x2e0340f8
cmp dword [ebp - 0x214], 1
jne 0x2e0340f8
xor ebx, ebx
cmp word [ebp - 0x20c], bx
je 0x2e0340fa
cmp dword [ebp - 0x210], ebx
je 0x2e0340fa
shr dword [ebp - 0x210], 1
cmp dword [ebp - 0x210], 0x104
jae 0x2e03403f
mov ecx, dword [ebp - 0x210]
mov word [ebp + ecx*2 - 0x20c], ax
jmp 0x2e034043
mov word [ebp - 6], ax
lea eax, [ebp - 0x20c]
push eax
call dword [sym.imp.KERNEL32.dll_LoadLibraryW]
mov dword [esi], eax
cmp eax, ebx
je 0x2e0340fa
mov edi, dword [sym.imp.KERNEL32.dll_GetProcAddress]
push 0x2e0069d4
push eax
call edi
cmp eax, ebx
jne 0x2e034071
mov eax, dword [ebp + 0x10]
jmp 0x2e034073
call eax
mov dword [esi + 4], eax
cmp eax, 1
jne 0x2e034097
push 0x2e0069c8
push dword [esi]
call edi
push 0x2e0069b4
push dword [esi]
mov dword [esi + 8], eax
call edi
push 0x2e0069a4
jmp 0x2e0340cb
cmp eax, 2
jne 0x2e0340ac
push 0x2e0069c8
push dword [esi]
call edi
push 0x2e006990
jmp 0x2e034089
cmp eax, 3
jne 0x2e0340d5
push 0x2e006980
push dword [esi]
call edi
push 0x2e006968
push dword [esi]
mov dword [esi + 8], eax
call edi
push 0x2e006954
push dword [esi]
mov dword [esi + 0x10], eax
call edi
mov dword [esi + 0xc], eax
cmp dword [esi + 8], ebx
je 0x2e0340fa
cmp dword [esi + 0x10], ebx
je 0x2e0340fa
cmp dword [esi + 0xc], ebx
je 0x2e0340fa
push dword [0x2e045e5c]
push esi
call fcn.2e033d33
test eax, eax
jl 0x2e0340fa
xor esi, esi
jmp 0x2e0340fa
xor ebx, ebx
cmp esi, ebx
je 0x2e034116
mov eax, dword [esi]
cmp eax, ebx
je 0x2e03410b
push eax
call dword [sym.imp.KERNEL32.dll_FreeLibrary]
mov dword [esi], ebx
mov dword [esi + 8], ebx
mov dword [esi + 0xc], ebx
mov dword [esi + 0x10], ebx
mov ecx, dword [ebp - 4]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.2e01c5d1
leave
ret 0xc
Function at 0x2e0348e5
Capabilities:
Terminate process

Disassembly:
push 0x58
push 0x2e03ae98
call fcn.2e034e4e
xor ebx, ebx
mov dword [ebp - 0x1c], ebx
mov dword [ebp - 4], ebx
lea eax, [ebp - 0x68]
push eax
call dword [sym.imp.KERNEL32.dll_GetStartupInfoA]
mov dword [ebp - 4], 0xfffffffe
mov dword [ebp - 4], 1
mov eax, dword fs:[0x18]
mov esi, dword [eax + 4]
mov edi, 0x2e0461dc
push 0
push esi
push edi
call dword [sym.imp.KERNEL32.dll_InterlockedCompareExchange]
test eax, eax
je 0x2e034685
cmp eax, esi
jne 0x2e034678
xor esi, esi
inc esi
mov ebx, esi
jmp 0x2e034688
push 0x3e8
call dword [sym.imp.KERNEL32.dll_Sleep]
jmp 0x2e03465f
xor esi, esi
inc esi
mov eax, dword [0x2e0461d8]
cmp eax, esi
jne 0x2e03469b
push 0x1f
call sub.MSVCR90.dll__amsg_exit
pop ecx
jmp 0x2e0346ca
mov eax, dword [0x2e0461d8]
test eax, eax
jne 0x2e0346c4
mov dword [0x2e0461d8], esi
push 0x2e001354
push 0x2e001344
call sub.MSVCR90.dll__initterm_e
pop ecx
pop ecx
test eax, eax
je 0x2e0346ca
jmp 0x2e0347f2
mov dword [0x2e045e88], esi
mov eax, dword [0x2e0461d8]
cmp eax, esi
jne 0x2e0346ee
push 0x2e001340
push 0x2e00131c
call sub.MSVCR90.dll__initterm
pop ecx
pop ecx
mov dword [0x2e0461d8], 2
test ebx, ebx
jne 0x2e0346fa
push ebx
push edi
call dword [sym.imp.KERNEL32.dll_InterlockedExchange]
cmp dword [0x2e0461e8], 0
je 0x2e03471e
push 0x2e0461e8
call fcn.2e034fed
pop ecx
test eax, eax
je 0x2e03471e
push 0
push 2
push 0
call dword [0x2e0461e8]
mov eax, dword [sym.imp.MSVCR90.dll__acmdln]
mov esi, dword [eax]
mov dword [ebp - 0x20], esi
mov al, byte [esi]
cmp al, 0x20
ja 0x2e03477a
test al, al
je 0x2e034738
cmp dword [ebp - 0x1c], 0
jne 0x2e03477a
mov al, byte [esi]
test al, al
je 0x2e034748
cmp al, 0x20
ja 0x2e034748
inc esi
mov dword [ebp - 0x20], esi
jmp 0x2e034738
test byte [ebp - 0x3c], 1
je 0x2e034754
movzx eax, word [ebp - 0x38]
jmp 0x2e034757
push 0xa
pop eax
push eax
push esi
push 0
push 0x2e000000
call main
mov dword [0x2e045e84], eax
cmp dword [0x2e045e78], 0
jne 0x2e0347ce
push eax
call dword [sym.imp.MSVCR90.dll_exit]
cmp al, 0x22
jne 0x2e034789
xor ecx, ecx
cmp dword [ebp - 0x1c], ecx
sete cl
mov dword [ebp - 0x1c], ecx
movzx eax, al
push eax
call dword [sym.imp.MSVCR90.dll__ismbblead]
pop ecx
test eax, eax
je 0x2e03479c
inc esi
mov dword [ebp - 0x20], esi
inc esi
jmp 0x2e034725
cmp dword [0x2e045e88], 0
jne 0x2e0347dd
call dword [sym.imp.MSVCR90.dll__cexit]
mov dword [ebp - 4], 0xfffffffe
mov eax, dword [0x2e045e84]
jmp 0x2e0347fe
mov dword [ebp - 4], 0xfffffffe
mov eax, 0xff
call fcn.2e034e93
ret
call fcn.2e01c51d
jmp 0x2e034625
Function at 0x405ef4
Capabilities:
Encode data using xor
Hash data with crc32

Disassembly:
cmp dword [0x422a34], 0
push esi
jne 0x405f2b
xor ecx, ecx
push 8
mov eax, ecx
pop esi
mov edx, eax
and dl, 1
neg dl
sbb edx, edx
and edx, 0xedb88320
shr eax, 1
xor eax, edx
dec esi
jne 0x405f05
mov dword [ecx*4 + 0x422a30], eax
inc ecx
cmp ecx, 0x100
jl 0x405f00
mov edx, dword [esp + 0x10]
mov eax, dword [esp + 8]
test edx, edx
not eax
jbe 0x405f5c
mov ecx, dword [esp + 0xc]
push edi
movzx edi, byte [ecx]
mov esi, eax
and esi, 0xff
xor esi, edi
shr eax, 8
mov esi, dword [esi*4 + 0x422a30]
xor eax, esi
inc ecx
dec edx
jne 0x405f3e
pop edi
not eax
pop esi
ret 0xc

Function at 0x438cb4
Capabilities:
Encode data using xor

Disassembly:
mov ecx, 0x438a14
add ebx, 0xcf96cdd2
call fcn.00438cdc
add ebx, ebx
xor dword [edx], ecx
dec ebx
inc edx
inc esi
sub esi, ebx
or ebx, esi
cmp edx, edi
jne fcn.00438cb4
and ebx, esi
add ebx, ebx
push ebx
pop esi
ret

Function at 0x42e000
Capabilities:
Encode data using xor
Packed with generic packer

Disassembly:
pushal
nop
nop
nop
nop
nop
call 0x42e00c
nop
pop eax
nop
nop
nop
nop
add eax, 0x403ac5
nop
sub eax, 0x403a6b
nop
mov ebx, dword [eax]
nop
nop
nop
nop
nop
nop
nop
mov ecx, dword [eax + 4]
nop
mov edx, dword [eax + 8]
nop
nop
nop
nop
nop
xor dword [ebx], edx
nop
nop
nop
add ebx, 4
nop
cmp ebx, ecx
nop
nop
nop
nop
nop
nop
nop
jl 0x42e030
nop
add eax, 0xc
nop
nop
nop
nop
cmp dword [eax], 0
nop
nop
nop
nop
nop
jne 0x42e01e
nop
nop
nop
nop
nop
nop
popal
jmp int.00401219
Function at 0x402000
Capabilities:
Get thread local storage value

Disassembly:
push esi
push ebx
sub esp, 0x14
mov dword [esp], 0x408044
call sub.KERNEL32.dll_EnterCriticalSection
mov ebx, dword [0x40803c]
sub esp, 4
test ebx, ebx
je 0x40204b
nop
mov eax, dword [ebx]
mov dword [esp], eax
call sub.KERNEL32.dll_TlsGetValue
sub esp, 4
mov esi, eax
call sub.KERNEL32.dll_GetLastError
test eax, eax
jne 0x402044
test esi, esi
je 0x402044
mov eax, dword [ebx + 4]
mov dword [esp], esi
call eax
mov ebx, dword [ebx + 8]
test ebx, ebx
jne 0x402020
mov dword [esp], 0x408044
call sub.KERNEL32.dll_LeaveCriticalSection
sub esp, 4
add esp, 0x14
pop ebx
pop esi
ret

Function at 0x402230
Capabilities:
Write file on windows

Disassembly:
push esi
push ebx
sub esp, 0x14
mov eax, dword [sym.imp.msvcrt.dll__iob]
mov dword [esp + 8], 0x17
mov dword [esp + 4], 1
lea esi, [esp + 0x24]
mov dword [esp], str.Mingw_runtime_failure:_n
lea ebx, [eax + 0x40]
mov dword [esp + 0xc], ebx
call sub.msvcrt.dll_fwrite
mov eax, dword [esp + 0x20]
mov dword [esp + 8], esi
mov dword [esp], ebx
mov dword [esp + 4], eax
call sub.msvcrt.dll_vfprintf
call sub.msvcrt.dll_abort
lea esi, [esi]

Function at 0x402280
Capabilities:
Allocate or change rwx memory

Disassembly:
push ebp
push edi
mov edi, ecx
push esi
push ebx
mov ebx, eax
mov esi, edx
sub esp, 0x4c
lea eax, [esp + 0x24]
mov dword [esp + 8], 0x1c
mov dword [esp], ebx
mov dword [esp + 4], eax
call sub.KERNEL32.dll_VirtualQuery
sub esp, 0xc
test eax, eax
je 0x402358
mov eax, dword [esp + 0x38]
cmp eax, 0x40
je 0x4022be
cmp eax, 4
jne 0x4022e0
mov dword [esp + 8], edi
mov dword [esp + 4], esi
mov dword [esp], ebx
call sub.msvcrt.dll_memcpy
add esp, 0x4c
pop ebx
pop esi
pop edi
pop ebp
ret
mov eax, dword [esp + 0x30]
lea ebp, [esp + 0x20]
mov dword [esp + 8], 0x40
mov dword [esp + 0xc], ebp
mov dword [esp + 4], eax
mov eax, dword [esp + 0x24]
mov dword [esp], eax
call sub.KERNEL32.dll_VirtualProtect
sub esp, 0x10
mov edx, dword [esp + 0x38]
mov dword [esp + 8], edi
mov dword [esp + 4], esi
mov dword [esp], ebx
mov dword [esp + 0x1c], edx
call sub.msvcrt.dll_memcpy
mov edx, dword [esp + 0x1c]
cmp edx, 0x40
je 0x4022ce
cmp edx, 4
je 0x4022ce
mov eax, dword [esp + 0x20]
mov dword [esp + 0xc], ebp
mov dword [esp + 8], eax
mov eax, dword [esp + 0x30]
mov dword [esp + 4], eax
mov eax, dword [esp + 0x24]
mov dword [esp], eax
call sub.KERNEL32.dll_VirtualProtect
sub esp, 0x10
add esp, 0x4c
pop ebx
pop esi
pop edi
pop ebp
ret
mov dword [esp + 8], ebx
mov dword [esp + 4], 0x1c
mov dword [esp], str.__VirtualQuery_failed_for__d_bytes_at_address__p
call fcn.00402230
Function at 0x404f00
Capabilities:
Read .ini file
Terminate process

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
push 0xffffffffffffffff
push 0x4442f9
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x514
push ebx
push ebp
push esi
push edi
mov ebp, ecx
or esi, 0xffffffff
mov dword [esp + 0x14], ebp
mov dword [ebp + 4], esi
xor ebx, ebx
mov dword [ebp], 0x447520
mov dword [esp + 0x52c], ebx
mov dword [ebp + 0x20], esi
push ebx
push ebx
push ebx
push ebx
push 1
push ebx
lea ecx, [ebp + 0x28]
mov byte [esp + 0x544], 1
call fcn.0043f078
mov dword [ebp + 0x60], esi
push ebx
push ebx
push 1
push ebx
mov byte [ebp + 0x40], bl
mov byte [ebp + 0x41], bl
mov byte [ebp + 0x25], bl
mov dword [ebp + 0x3c], ebx
mov dword [ebp + 0x50], ebx
mov dword [ebp + 0x54], ebx
mov dword [ebp + 0x58], ebx
mov dword [ebp + 0x10], ebx
mov dword [ebp + 0x14], ebx
mov dword [ebp + 0x18], ebx
mov dword [ebp + 0x1c], ebx
mov byte [ebp + 0x866], bl
mov dword [ebp + 0xc], ebx
mov byte [ebp + 0x864], bl
mov byte [ebp + 0x865], bl
mov byte [ebp + 0x24], bl
call dword [sym.imp.KERNEL32.dll_CreateEventA]
mov dword [ebp + 0x20], eax
push str..CONFIG.ini
mov byte [ebp + 0x874], bl
mov ecx, 7
mov esi, str.sh_bastille.com
mov edi, 0x45b9c0
rep movsd dword es:[edi], dword [esi]
xor eax, eax
push 0x104
mov ecx, 0x41
lea edi, [esp + 0x20]
rep stosd dword es:[edi], eax
lea eax, [esp + 0x20]
push eax
push 0x447078
push str.TEST_IP
push str.LOGIN
call dword [sym.imp.KERNEL32.dll_GetPrivateProfileStringA]
test eax, eax
je 0x4050db
mov edi, str.GERMANY
lea esi, [esp + 0x18]
mov ecx, 8
xor edx, edx
repe cmpsb byte [esi], byte es:[edi]
je 0x405035
mov edi, str.FRANCE
lea esi, [esp + 0x18]
mov ecx, 7
xor eax, eax
repe cmpsb byte [esi], byte es:[edi]
je 0x405035
mov edi, str.POLAND
lea esi, [esp + 0x18]
mov ecx, 7
xor edx, edx
repe cmpsb byte [esi], byte es:[edi]
jne 0x4050db
push 0x44741c
push str.UpdaterURL.txt
call fcn.00420efc
mov esi, eax
add esp, 8
cmp esi, ebx
jne 0x405065
push ebx
push str.Error
push str.Cant_Find_UpdaterURL.txt
push ebx
call dword [sym.imp.USER32.dll_MessageBoxA]
push ebx
call fcn.00420ceb
xor eax, eax
mov ecx, 0x80
lea edi, [esp + 0x120]
rep stosd dword es:[edi], eax
lea eax, [esp + 0x120]
push eax
push 0x4470bc
push esi
call fcn.00420f0f
lea eax, [esp + 0x12c]
add esp, 0xc
lea edx, [eax + 1]
mov cl, byte [eax]
inc eax
cmp cl, bl
jne 0x405095
sub eax, edx
cmp eax, 1
jae 0x4050bb
push ebx
push str.Error
push str.Cant_Read_UpdaterURL.txt
push ebx
call dword [sym.imp.USER32.dll_MessageBoxA]
push ebx
call fcn.00420ceb
xor eax, eax
lea ecx, [ecx]
mov cl, byte [esp + eax + 0x120]
mov byte [eax + 0x45b9c0], cl
inc eax
cmp cl, bl
jne 0x4050c0
push esi
call fcn.00420e4f
add esp, 4
mov ecx, dword [esp + 0x524]
pop edi
mov eax, ebp
mov dword fs:[0], ecx
pop esi
pop ebp
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x441a4c
Capabilities:
Get thread local storage value

Disassembly:
push ebx
push esi
mov esi, ecx
lea ebx, [esi + 0x1c]
push ebx
call dword [sym.imp.KERNEL32.dll_EnterCriticalSection]
cmp dword [esp + 0x10], 0
jne 0x441a7a
push dword [esi]
call dword [sym.imp.KERNEL32.dll_TlsGetValue]
test eax, eax
je 0x441a98
push dword [esp + 0xc]
mov ecx, esi
push eax
call fcn.004419b6
jmp 0x441a98
mov eax, dword [esi + 0x14]
test eax, eax
je 0x441a98
push edi
push dword [esp + 0x10]
mov edi, dword [eax + 4]
push eax
mov ecx, esi
call fcn.004419b6
test edi, edi
mov eax, edi
jne 0x441a82
pop edi
push ebx
call dword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
pop esi
pop ebx
ret 8
mov ecx, dword [0x460778]
test ecx, ecx
je 0x441b4b
jmp 0x441a4b
ret 8

Function at 0x430000
Capabilities:
Encode data using xor
Packed with generic packer

Disassembly:
pushal
nop
nop
nop
nop
nop
call 0x43000c
pop eax
nop
nop
nop
nop
nop
nop
add eax, 0x403d6f
sub eax, 0x403d15
nop
nop
nop
mov ebx, dword [eax]
nop
nop
mov ecx, dword [eax + 4]
nop
nop
nop
nop
mov edx, dword [eax + 8]
nop
nop
xor dword [ebx], edx
nop
nop
nop
nop
nop
nop
nop
add ebx, 4
nop
nop
nop
cmp ebx, ecx
nop
nop
nop
nop
nop
jl 0x430030
nop
nop
add eax, 0xc
nop
nop
nop
nop
cmp dword [eax], 0
nop
nop
jne 0x43001e
nop
nop
nop
popal
nop
nop
nop
nop
jmp loc.00401219
Function at 0x41023d
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x44
push ebx
mov ebx, dword [ebp + 0xc]
push esi
push edi
push 0x10
pop ecx
xor eax, eax
push 0x100
push eax
mov byte [ebp - 0x44], 0
lea edi, [ebp - 0x43]
push ebx
rep stosd dword es:[edi], eax
call fcn.0041f980
lea eax, [ebp - 0x44]
push eax
push dword [ebp + 8]
call fcn.004188ce
lea eax, [ebp - 0x44]
push ebx
push eax
call fcn.00415651
push 0x40
lea eax, [ebp - 0x44]
push eax
lea eax, [ebx + 0x20]
push eax
call fcn.0041f640
add esp, 0x28
push 0x40
lea edi, [ebx + 0x60]
lea esi, [ebx + 0x5a]
pop ecx
rep movsb byte es:[edi], byte [esi]
xor eax, eax
mov cl, byte [eax + ebx + 0x9f]
xor cl, byte [eax + ebx]
inc eax
cmp eax, 0x20
mov byte [eax + ebx + 0x9f], cl
jl 0x410298
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.dll_lstrlenA]
mov esi, eax
xor ecx, ecx
test esi, esi
jle 0x4102d6
mov al, byte [ecx + ebx + 0xbd]
xor al, byte [ecx + ebx]
inc ecx
cmp ecx, esi
mov byte [ecx + ebx + 0xbf], al
jl 0x4102c0
pop edi
pop esi
mov eax, ebx
pop ebx
leave
ret

Function at 0x411bc8
Capabilities:
Encode data using xor

Disassembly:
push esi
push edi
mov esi, 0x451e10
xor edi, edi
push esi
inc edi
call dword [sym.imp.KERNEL32.dll_lstrlenA]
test al, al
jbe 0x411bf2
mov ecx, esi
movzx edx, al
movzx eax, byte [ecx]
mov esi, eax
imul esi, edi
xor esi, eax
inc ecx
dec edx
mov edi, esi
jne 0x411be2
mov eax, edi
pop edi
pop esi
ret

Function at 0x41828e
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
push ecx
push ecx
mov eax, dword [ebp + 8]
and dword [ebp + 8], 0
push ebx
push esi
push edi
mov edi, 0x10000
mov edx, dword [ebp + 8]
mov ecx, dword [ebp + 0xc]
mov ecx, dword [ecx + edx*4]
mov edx, ecx
and ecx, 0xffff
shr edx, 0x10
mov esi, ecx
mov dword [ebp - 8], ecx
mov ecx, edx
imul ecx, edx
mov dword [eax + 4], ecx
mov ecx, esi
imul ecx, esi
mov dword [eax], ecx
mov ebx, edx
sub ebx, esi
sub esi, edx
mov ecx, esi
imul ecx, ebx
xor esi, ebx
mov ebx, dword [eax + 4]
and esi, edi
neg esi
mov dword [ebp - 4], edx
mov edx, ecx
neg edx
sbb edx, edx
and edx, esi
add ecx, ebx
cmp ecx, ebx
sbb esi, esi
and esi, edi
add edx, esi
mov esi, dword [eax]
add ecx, esi
cmp ecx, esi
sbb esi, esi
and esi, edi
add edx, esi
mov esi, ecx
shl esi, 0x10
add dword [eax], esi
cmp dword [eax], esi
sbb esi, esi
neg esi
shr ecx, 0x10
add esi, ebx
add ecx, esi
add ecx, edx
mov dword [eax + 4], ecx
add eax, 8
inc dword [ebp + 8]
mov ecx, dword [ebp + 8]
cmp ecx, dword [ebp + 0x10]
jl 0x4182a2
pop edi
pop esi
pop ebx
leave
ret