joyce8/EMBER2024-capa huggingface dataset:
Function at 0x419ac0
Capabilities:
Get graphical window text

Disassembly:
push ebp
mov ebp, esp
push ebx
push edi
push esi
mov eax, 0x9c54
call fcn.0041d2d0
mov dword [ebp - 0x9c60], edx
mov edi, ecx
mov eax, dword [0x430014]
xor eax, ebp
mov dword [ebp - 0x10], eax
lea eax, [ebp - 0x4e32]
push 0x2711
push eax
push ecx
call dword [sym.imp.USER32.dll_GetWindowTextW]
lea esi, [ebp - 0x9c5c]
lea ebx, [ebp - 0x9c58]
push esi
push ebx
push 0xb0
push edi
call dword [sym.imp.USER32.dll_SendMessageW]
mov eax, dword [esi]
mov ecx, dword [ebx]
mov edi, 0xfffffffe
sub eax, ecx
je 0x419b80
lea ecx, [ecx*2 - 0x4e32]
add ecx, ebp
lea edi, [ebp - 0x9c54]
push eax
push ecx
push 0x2711
push edi
call dword [sym.imp.api_ms_win_crt_string_l1_1_0.dll_wcsncpy_s]
add esp, 0x10
mov eax, dword [ebp - 0x9c5c]
sub eax, dword [ebp - 0x9c58]
mov word [ebp + eax*2 - 0x9c54], 0
sub esp, 0x20
xor eax, eax
mov dword [esp + 0x1c], eax
movaps xmm0, xmmword [0x42a140]
movups xmmword [esp + 0xc], xmm0
mov dword [esp + 8], edi
mov dword [esp + 4], eax
mov dword [esp], 0xfde9
call dword [sym.imp.KERNEL32.dll_WideCharToMultiByte]
mov edi, eax
not edi
sub esp, 0x20
xor esi, esi
mov dword [esp + 0x1c], esi
movaps xmm0, xmmword [0x42a140]
movups xmmword [esp + 0xc], xmm0
lea eax, [ebp - 0x4e32]
mov dword [esp + 8], eax
mov dword [esp + 4], esi
mov eax, 0xfde9
mov dword [esp], eax
mov ebx, dword [sym.imp.KERNEL32.dll_WideCharToMultiByte]
call ebx
mov ecx, ebx
mov ebx, eax
sub esp, 0x20
mov dword [esp + 0x1c], esi
movaps xmm0, xmmword [0x42a140]
movups xmmword [esp + 0xc], xmm0
mov eax, dword [ebp - 0x9c60]
mov dword [esp + 8], eax
mov dword [esp + 4], esi
mov eax, 0xfde9
mov dword [esp], eax
call ecx
mov esi, eax
add ebx, edi
add esi, ebx
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.0041cd60
mov eax, esi
add esp, 0x9c54
pop esi
pop edi
pop ebx
pop ebp
ret

Function at 0x41f700
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
push ebx
push edi
push esi
sub esp, 0x2c
mov eax, dword [0x430014]
xor eax, ebp
mov dword [ebp - 0x10], eax
mov bl, 1
cmp dword [ecx + 0x38], 0
je 0x41f7a2
mov esi, ecx
cmp byte [ecx + 0x3d], 0
je 0x41f7a2
mov eax, dword [esi]
mov edi, dword [eax + 0xc]
mov ecx, edi
call dword [section..00cfg]
mov ecx, esi
push 0xffffffffffffffff
call edi
cmp eax, 0xffffffff
je 0x41f7a0
mov ebx, dword [esi + 0x38]
lea eax, [esi + 0x40]
mov dword [ebp - 0x38], eax
mov eax, dword [ebx]
mov edi, dword [eax + 0x20]
mov ecx, edi
call dword [section..00cfg]
lea eax, [ebp - 0x34]
lea edx, [ebp - 0x30]
mov ecx, ebx
mov ebx, edx
push eax
lea eax, [ebp - 0x10]
push eax
push edx
push dword [ebp - 0x38]
call edi
cmp eax, 3
je 0x41f7b6
cmp eax, 1
je 0x41f77c
test eax, eax
jne 0x41f7a0
mov byte [esi + 0x3d], 0
mov edi, dword [ebp - 0x34]
sub edi, ebx
je 0x41f797
push dword [esi + 0x4c]
push edi
push 1
push ebx
call dword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll_fwrite]
add esp, 0x10
cmp edi, eax
jne 0x41f7a0
cmp byte [esi + 0x3d], 0
sete bl
jmp 0x41f7a2
xor ebx, ebx
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.0041cd60
mov eax, ebx
add esp, 0x2c
pop esi
pop edi
pop ebx
pop ebp
ret
mov byte [esi + 0x3d], 0
mov bl, 1
jmp 0x41f7a2
Function at 0x642fc0
Capabilities:
Allocate or change rwx memory
Execute shellcode via indirect call

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x20
push 0x3c
call fcn.00643180
add esp, 4
mov dword [ebp - 4], eax
cmp dword [ebp - 4], 0
je 0x64302b
push 0x3c
mov ecx, dword [ebp - 4]
call fcn.00642180
push 0x52302
sub esp, 0xc
mov ecx, esp
mov dword [ebp - 0x18], esp
push 0x657968
call fcn.006411d0
sub esp, 0xc
mov ecx, esp
mov dword [ebp - 0x1c], esp
push 0x65798c
call fcn.006411d0
sub esp, 0xc
mov ecx, esp
mov dword [ebp - 0x20], esp
push 0x657980
call fcn.006411d0
mov ecx, dword [ebp - 4]
call fcn.00641380
mov dword [ebp - 8], eax
jmp 0x643032
mov dword [ebp - 8], 0
mov eax, dword [ebp - 8]
mov dword [ebp - 0x14], eax
mov ecx, dword [ebp - 0x14]
mov dword [ebp - 0xc], ecx
mov ecx, dword [ebp - 0xc]
call fcn.00642760
push 0x40
push 0x1000
push 0x52302
push 0
call dword [sym.imp.KERNEL32.dll_VirtualAlloc]
mov dword [ebp - 0x10], eax
push 0x52302
mov edx, dword [ebp - 0xc]
mov eax, dword [edx + 0x38]
push eax
mov ecx, dword [ebp - 0x10]
push ecx
call fcn.00643de0
add esp, 0xc
call dword [ebp - 0x10]
xor eax, eax
mov esp, ebp
pop ebp
ret 0x10
Function at 0x10037240
Capabilities:
Encode data using xor

Disassembly:
push ebx
push edi
push esi
sub esp, 0x30
mov eax, dword [esp + 0x44]
mov dword [esp + 0x24], eax
mov ecx, dword [esp + 0x40]
mov dword [esp + 0x28], ecx
add eax, 0x1b
mov dword [esp + 0x2c], eax
mov eax, dword [0x1005f300]
mov dword [esp + 0x20], eax
mov eax, dword [esp + 0x20]
add eax, 0xd7d9f8be
mov dword [esp + 0x1c], eax
mov eax, dword [esp + 0x1c]
mov eax, dword [eax]
mov dword [esp + 0x18], eax
mov eax, dword [esp + 0x18]
cmp eax, 1
sete al
mov byte [esp + 0x17], al
mov cl, byte [esp + 0x17]
xor eax, eax
test cl, 1
mov dword [esp + 0x10], eax
jne 0x10037324
jmp 0x100372a3
mov eax, dword [esp + 0x10]
mov ecx, dword [esp + 0x28]
mov esi, dword [esp + 0x24]
mov edx, dword [esp + 0x2c]
mov dword [esp + 8], eax
mov dl, byte [edx + eax]
mov byte [esp + 0xf], dl
mov edi, 0x1b
xor edx, edx
div edi
mov eax, dword [esp + 8]
mov edi, edx
mov dh, byte [esp + 0xf]
mov bl, byte [esi + edi]
mov bh, dh
xor bh, 0xff
mov dl, bl
and dl, bh
xor bl, 0xff
and dh, bl
or dl, dh
mov byte [ecx + eax], dl
add eax, 0x7a0c913a
add eax, 1
sub eax, 0x7a0c913a
cmp eax, 0xa
mov dword [esp + 0x10], eax
jne 0x100372a3
mov eax, dword [0x1005f300]
mov dword [esp + 4], eax
mov eax, dword [esp + 4]
add eax, 0xd7d9f8be
mov dword [esp], eax
mov eax, dword [esp]
mov dword [eax], 1
jmp 0x10037324
add esp, 0x30
pop esi
pop edi
pop ebx
ret
Function at 0x1003b2f0
Capabilities:
Encode data using xor

Disassembly:
push ebx
push edi
push esi
sub esp, 0x5c
mov eax, dword [esp + 0x70]
mov dword [esp + 0x50], eax
mov ecx, dword [esp + 0x6c]
mov dword [esp + 0x54], ecx
add eax, 0x1a
mov dword [esp + 0x58], eax
mov eax, dword [0x1005f324]
mov dword [esp + 0x4c], eax
mov eax, dword [esp + 0x4c]
add eax, 0xe80b59c6
mov dword [esp + 0x48], eax
mov eax, dword [esp + 0x48]
mov eax, dword [eax]
mov dword [esp + 0x44], eax
mov eax, dword [esp + 0x44]
cmp eax, 1
sete al
mov byte [esp + 0x43], al
mov cl, byte [esp + 0x43]
xor eax, eax
test cl, 1
mov dword [esp + 0x3c], eax
jne 0x1003b4a5
jmp 0x1003b353
mov eax, dword [esp + 0x3c]
mov ecx, dword [esp + 0x54]
mov esi, dword [esp + 0x50]
mov edx, dword [esp + 0x58]
mov dword [esp + 0x34], eax
mov dl, byte [edx + eax]
mov byte [esp + 0x3b], dl
mov edi, 0x1a
xor edx, edx
div edi
mov eax, dword [esp + 0x34]
mov edi, edx
mov dh, byte [esp + 0x3b]
mov bl, byte [esi + edi]
mov bh, dh
xor bh, 0xff
mov dl, bl
and dl, bh
xor bl, 0xff
and dh, bl
or dl, dh
mov byte [ecx + eax], dl
xor ecx, ecx
sub ecx, 1
sub eax, ecx
cmp eax, 0xd
mov dword [esp + 0x3c], eax
jne 0x1003b353
mov eax, dword [0x10060cd0]
mov dword [esp + 0x30], eax
mov eax, dword [esp + 0x30]
mov ecx, dword [0x10060ccc]
mov dword [esp + 0x28], ecx
add eax, 0x1055b612
mov dword [esp + 0x2c], eax
mov eax, dword [esp + 0x30]
mov ecx, dword [esp + 0x2c]
sub ecx, 1
sub ecx, 0x1055b612
imul eax, ecx
mov dword [esp + 0x24], eax
mov eax, dword [esp + 0x24]
and eax, 1
mov dword [esp + 0x20], eax
mov eax, dword [esp + 0x28]
mov ecx, dword [esp + 0x20]
cmp ecx, 0
sete cl
mov byte [esp + 0x1e], cl
cmp eax, 0xa
setl al
mov byte [esp + 0x1f], al
mov dl, byte [esp + 0x1f]
mov cl, byte [esp + 0x1e]
mov al, cl
and al, dl
xor cl, dl
or al, cl
test al, 1
jne 0x1003b427
jmp 0x1003b4ac
mov eax, dword [0x1005f324]
mov dword [eax - 0x17f4a63a], 1
mov eax, dword [0x10060cd0]
mov dword [esp + 0x18], eax
mov eax, dword [0x10060ccc]
mov dword [esp + 0x14], eax
mov eax, dword [esp + 0x18]
sub eax, 0x44f4a52d
sub eax, 1
mov dword [esp + 0x10], eax
mov eax, dword [esp + 0x10]
add eax, 0x44f4a52d
mov dword [esp + 0xc], eax
mov ecx, dword [esp + 0xc]
mov eax, dword [esp + 0x18]
imul eax, ecx
and eax, 1
mov dword [esp + 8], eax
mov eax, dword [esp + 0x14]
mov ecx, dword [esp + 8]
cmp ecx, 0
sete cl
cmp eax, 0xa
setl dl
mov al, cl
and al, dl
xor cl, dl
or al, cl
test al, 1
jne 0x1003b4a0
jmp 0x1003b4ac
jmp 0x1003b4a5
add esp, 0x5c
pop esi
pop edi
pop ebx
ret
mov eax, dword [0x1005f324]
mov dword [esp + 4], eax
mov eax, dword [esp + 4]
add eax, 0xe80b59c6
mov dword [esp], eax
mov eax, dword [esp]
mov dword [eax], 1
jmp 0x1003b427
Function at 0x1003fb60
Capabilities:
Encode data using xor

Disassembly:
push ebx
push esi
sub esp, 0x2c
mov eax, dword [esp + 0x3c]
mov dword [esp + 0x20], eax
mov ecx, dword [esp + 0x38]
mov dword [esp + 0x24], ecx
add eax, 0x1b
mov dword [esp + 0x28], eax
mov eax, dword [0x1005f34c]
mov dword [esp + 0x1c], eax
mov eax, dword [esp + 0x1c]
add eax, 0xa6d973c7
mov dword [esp + 0x18], eax
mov eax, dword [esp + 0x18]
mov eax, dword [eax]
mov dword [esp + 0x14], eax
mov eax, dword [esp + 0x14]
cmp eax, 1
sete al
mov byte [esp + 0x13], al
mov cl, byte [esp + 0x13]
xor eax, eax
test cl, 1
mov dword [esp + 0xc], eax
jne 0x1003fc48
jmp 0x1003fbc2
mov eax, dword [esp + 0xc]
mov ecx, dword [esp + 0x20]
mov edx, dword [esp + 0x28]
mov dword [esp + 8], eax
mov bh, byte [edx + eax]
mov esi, 0x1b
xor edx, edx
div esi
mov eax, dword [esp + 8]
mov bl, byte [ecx + edx]
mov dl, bh
xor dl, 0xff
and dl, 0x28
mov cl, 0xff
xor cl, 0x28
and bh, cl
mov dh, bl
xor dh, 0xff
and dh, 0x28
and bl, cl
mov ecx, dword [esp + 0x24]
or dl, bh
or dh, bl
xor dl, dh
mov byte [ecx + eax], dl
add eax, 0x4f007fd5
add eax, 1
sub eax, 0x4f007fd5
cmp eax, 0xc
mov dword [esp + 0xc], eax
jne 0x1003fbc2
mov eax, dword [0x1005f34c]
mov dword [esp + 4], eax
mov eax, dword [esp + 4]
add eax, 0xa6d973c7
mov dword [esp], eax
mov eax, dword [esp]
mov dword [eax], 1
jmp 0x1003fc48
add esp, 0x2c
pop esi
pop ebx
ret
Function at 0x10042c60
Capabilities:
Encode data using xor

Disassembly:
push ebx
sub esp, 0x28
mov eax, dword [esp + 0x34]
mov dword [esp + 0x1c], eax
mov ecx, dword [esp + 0x30]
mov dword [esp + 0x20], ecx
add eax, 0x10
mov dword [esp + 0x24], eax
mov eax, dword [0x1005f35c]
mov dword [esp + 0x18], eax
mov eax, dword [esp + 0x18]
add eax, 0xa661286b
mov dword [esp + 0x14], eax
mov eax, dword [esp + 0x14]
mov eax, dword [eax]
mov dword [esp + 0x10], eax
mov eax, dword [esp + 0x10]
cmp eax, 1
sete al
mov byte [esp + 0xf], al
mov cl, byte [esp + 0xf]
xor eax, eax
test cl, 1
mov dword [esp + 8], eax
jne 0x10042d3b
jmp 0x10042cc1
mov eax, dword [esp + 8]
mov ecx, dword [esp + 0x1c]
mov edx, dword [esp + 0x24]
mov bh, byte [edx + eax]
mov edx, eax
and edx, 0xf
mov bl, byte [ecx + edx]
mov dl, bh
xor dl, 0xff
and dl, 0xad
mov cl, 0xff
xor cl, 0xad
and bh, cl
mov dh, bl
xor dh, 0xff
and dh, 0xad
and bl, cl
mov ecx, dword [esp + 0x20]
or dl, bh
or dh, bl
xor dl, dh
mov byte [ecx + eax], dl
sub eax, 0xe05b640b
add eax, 1
add eax, 0xe05b640b
cmp eax, 0xc
mov dword [esp + 8], eax
jne 0x10042cc1
mov eax, dword [0x1005f35c]
mov dword [esp + 4], eax
mov eax, dword [esp + 4]
add eax, 0xa661286b
mov dword [esp], eax
mov eax, dword [esp]
mov dword [eax], 1
jmp 0x10042d3b
add esp, 0x28
pop ebx
ret
Function at 0x10044160
Capabilities:
Encode data using xor

Disassembly:
push ebx
push edi
push esi
sub esp, 0x30
mov eax, dword [esp + 0x44]
mov dword [esp + 0x24], eax
mov ecx, dword [esp + 0x40]
mov dword [esp + 0x28], ecx
add eax, 0x17
mov dword [esp + 0x2c], eax
mov eax, dword [0x1005f370]
mov dword [esp + 0x20], eax
mov eax, dword [esp + 0x20]
add eax, 0xcca35618
mov dword [esp + 0x1c], eax
mov eax, dword [esp + 0x1c]
mov eax, dword [eax]
mov dword [esp + 0x18], eax
mov eax, dword [esp + 0x18]
cmp eax, 1
sete al
mov byte [esp + 0x17], al
mov cl, byte [esp + 0x17]
xor eax, eax
test cl, 1
mov dword [esp + 0x10], eax
jne 0x1004423e
jmp 0x100441c3
mov eax, dword [esp + 0x10]
mov ecx, dword [esp + 0x28]
mov esi, dword [esp + 0x24]
mov edx, dword [esp + 0x2c]
mov dword [esp + 8], eax
mov dl, byte [edx + eax]
mov byte [esp + 0xf], dl
mov edi, 0x17
xor edx, edx
div edi
mov eax, dword [esp + 8]
mov edi, edx
mov dh, byte [esp + 0xf]
mov bl, byte [esi + edi]
mov bh, dh
xor bh, 0xff
mov dl, bl
and dl, bh
xor bl, 0xff
and dh, bl
or dl, dh
mov byte [ecx + eax], dl
xor ecx, ecx
sub ecx, 1
sub eax, ecx
cmp eax, 4
mov dword [esp + 0x10], eax
jne 0x100441c3
mov eax, dword [0x1005f370]
mov dword [esp + 4], eax
mov eax, dword [esp + 4]
add eax, 0xcca35618
mov dword [esp], eax
mov eax, dword [esp]
mov dword [eax], 1
jmp 0x1004423e
add esp, 0x30
pop esi
pop edi
pop ebx
ret
Function at 0x10044250
Capabilities:
Encode data using xor

Disassembly:
push ebx
push esi
sub esp, 0x48
mov eax, dword [esp + 0x58]
mov dword [esp + 0x3c], eax
mov eax, dword [esp + 0x54]
mov dword [esp + 0x40], eax
mov eax, dword [0x10060c48]
mov dword [esp + 0x44], eax
mov eax, dword [0x10060c44]
mov dword [esp + 0x38], eax
mov ecx, dword [esp + 0x38]
mov eax, dword [esp + 0x44]
mov edx, eax
sub edx, 0xbfa7871a
sub edx, 1
add edx, 0xbfa7871a
imul eax, edx
and eax, 1
cmp eax, 0
sete al
mov byte [esp + 0x35], al
cmp ecx, 0xa
setl cl
mov byte [esp + 0x36], cl
xor al, 0xff
mov byte [esp + 0x37], al
mov cl, byte [esp + 0x36]
mov ah, byte [esp + 0x35]
mov dl, byte [esp + 0x37]
mov al, cl
xor al, 0xff
mov byte [esp + 0x31], al
mov ch, 1
xor ch, 0
mov byte [esp + 0x32], ch
and dl, 0
and ah, ch
and al, 0
and cl, ch
or dl, ah
mov byte [esp + 0x33], dl
or al, cl
mov byte [esp + 0x34], al
mov cl, byte [esp + 0x32]
mov dl, byte [esp + 0x31]
mov al, byte [esp + 0x37]
mov ch, byte [esp + 0x34]
mov ah, byte [esp + 0x33]
xor ah, ch
mov byte [esp + 0x2f], ah
or al, dl
xor al, 0xff
or cl, 0
and al, cl
mov byte [esp + 0x30], al
mov cl, byte [esp + 0x30]
mov al, byte [esp + 0x2f]
or al, cl
test al, 1
jne 0x10044320
jmp 0x10044449
mov eax, dword [esp + 0x3c]
add eax, 0x11
mov dword [esp + 0x28], eax
mov eax, dword [0x1005f374]
mov dword [esp + 0x24], eax
mov eax, dword [esp + 0x24]
cmp dword [eax + 0x1e78897a], 1
sete al
mov byte [esp + 0x1b], al
mov eax, dword [0x10060c48]
mov ecx, dword [0x10060c44]
mov dword [esp + 0x1c], ecx
xor edx, edx
sub edx, 1
mov ecx, eax
add ecx, edx
imul eax, ecx
mov dword [esp + 0x20], eax
mov ecx, dword [esp + 0x1c]
mov eax, dword [esp + 0x20]
and eax, 1
cmp eax, 0
sete al
cmp ecx, 0xa
setl cl
mov dl, al
and dl, cl
mov byte [esp + 0x19], dl
xor al, cl
mov byte [esp + 0x1a], al
mov cl, byte [esp + 0x1a]
mov al, byte [esp + 0x19]
or al, cl
mov byte [esp + 0x18], al
mov al, byte [esp + 0x18]
test al, 1
jne 0x100443a9
jmp 0x10044449
mov cl, byte [esp + 0x1b]
xor eax, eax
test cl, 1
mov dword [esp + 0x14], eax
jne 0x10044443
jmp 0x100443c1
mov eax, dword [esp + 0x14]
mov ecx, dword [esp + 0x3c]
mov edx, dword [esp + 0x28]
mov dword [esp + 0x10], eax
mov bh, byte [edx + eax]
mov esi, 0x11
xor edx, edx
div esi
mov eax, dword [esp + 0x10]
mov bl, byte [ecx + edx]
mov dl, bh
xor dl, 0xff
and dl, 0x83
mov cl, 0xff
xor cl, 0x83
and bh, cl
mov dh, bl
xor dh, 0xff
and dh, 0x83
and bl, cl
mov ecx, dword [esp + 0x40]
or dl, bh
or dh, bl
xor dl, dh
mov byte [ecx + eax], dl
xor ecx, ecx
sub ecx, 1
sub eax, ecx
cmp eax, 2
mov dword [esp + 0x14], eax
jne 0x100443c1
mov eax, dword [0x1005f374]
mov dword [esp + 0xc], eax
mov eax, dword [esp + 0xc]
add eax, 0x1e78897a
mov dword [esp + 8], eax
mov eax, dword [esp + 8]
mov dword [eax], 1
jmp 0x10044443
add esp, 0x48
pop esi
pop ebx
ret
mov eax, dword [0x1005f374]
mov dword [esp + 4], eax
mov eax, dword [esp + 4]
add eax, 0x1e78897a
mov dword [esp], eax
mov eax, dword [esp]
mov eax, dword [eax]
jmp 0x10044320
Function at 0x10049ee0
Capabilities:
Encode data using xor
Encrypt data using rc4 ksa

Disassembly:
push ebx
push edi
push esi
sub esp, 0x5c
mov eax, dword [esp + 0x70]
mov dword [esp + 0x50], eax
mov ecx, dword [esp + 0x6c]
mov dword [esp + 0x54], ecx
add eax, 0x1a
mov dword [esp + 0x58], eax
mov eax, dword [0x1005f3a8]
mov dword [esp + 0x4c], eax
mov eax, dword [esp + 0x4c]
add eax, 0xcd41d1c4
mov dword [esp + 0x48], eax
mov eax, dword [esp + 0x48]
mov eax, dword [eax]
mov dword [esp + 0x44], eax
mov eax, dword [esp + 0x44]
cmp eax, 1
sete al
mov byte [esp + 0x43], al
mov cl, byte [esp + 0x43]
xor eax, eax
test cl, 1
mov dword [esp + 0x3c], eax
jne 0x1004a0d8
jmp 0x10049f43
mov eax, dword [esp + 0x3c]
mov ecx, dword [esp + 0x54]
mov esi, dword [esp + 0x50]
mov edx, dword [esp + 0x58]
mov dword [esp + 0x34], eax
mov dl, byte [edx + eax]
mov byte [esp + 0x3b], dl
mov edi, 0x1a
xor edx, edx
div edi
mov eax, dword [esp + 0x34]
mov edi, edx
mov dh, byte [esp + 0x3b]
mov bl, byte [esi + edi]
mov bh, dh
xor bh, 0xff
mov dl, bl
and dl, bh
xor bl, 0xff
and dh, bl
or dl, dh
mov byte [ecx + eax], dl
add eax, 0xdcb15ceb
add eax, 1
sub eax, 0xdcb15ceb
cmp eax, 0xa
mov dword [esp + 0x3c], eax
jne 0x10049f43
mov eax, dword [0x10060be0]
mov dword [esp + 0x30], eax
mov eax, dword [esp + 0x30]
mov ecx, dword [0x10060bdc]
mov dword [esp + 0x28], ecx
xor edx, edx
sub edx, 1
mov ecx, eax
add ecx, edx
imul eax, ecx
and eax, 1
cmp eax, 0
sete al
mov byte [esp + 0x2f], al
mov cl, byte [esp + 0x2f]
mov eax, dword [esp + 0x28]
cmp eax, 0xa
setl al
mov byte [esp + 0x25], al
xor cl, 0xff
mov byte [esp + 0x26], cl
xor al, 0xff
mov byte [esp + 0x27], al
mov cl, byte [esp + 0x27]
mov al, byte [esp + 0x26]
mov ch, byte [esp + 0x25]
mov dh, byte [esp + 0x2f]
mov bl, 1
xor bl, 1
mov byte [esp + 0x22], bl
mov dl, al
and dl, 0xff
and dh, bl
mov ah, cl
and ah, 0xff
and ch, bl
or dl, dh
or ah, ch
xor dl, ah
mov byte [esp + 0x23], dl
or al, cl
xor al, 0xff
mov byte [esp + 0x24], al
mov al, byte [esp + 0x22]
or al, 1
mov byte [esp + 0x21], al
mov al, byte [esp + 0x23]
mov dl, byte [esp + 0x21]
mov cl, byte [esp + 0x24]
and cl, dl
or al, cl
test al, 1
jne 0x1004a050
jmp 0x1004a0df
mov eax, dword [0x1005f3a8]
mov dword [esp + 0x1c], eax
mov eax, dword [esp + 0x1c]
mov dword [eax - 0x32be2e3c], 1
mov eax, dword [0x10060be0]
mov dword [esp + 0x18], eax
mov eax, dword [esp + 0x18]
mov ecx, dword [0x10060bdc]
mov dword [esp + 0x10], ecx
sub eax, 0xe183b083
sub eax, 1
mov dword [esp + 0x14], eax
mov eax, dword [esp + 0x18]
mov ecx, dword [esp + 0x14]
add ecx, 0xe183b083
imul eax, ecx
mov dword [esp + 0xc], eax
mov eax, dword [esp + 0x10]
mov ecx, dword [esp + 0xc]
and ecx, 1
cmp ecx, 0
sete cl
cmp eax, 0xa
setl dl
mov al, cl
and al, dl
xor cl, dl
or al, cl
mov byte [esp + 0xb], al
mov al, byte [esp + 0xb]
test al, 1
jne 0x1004a0d3
jmp 0x1004a0df
jmp 0x1004a0d8
add esp, 0x5c
pop esi
pop edi
pop ebx
ret
mov eax, dword [0x1005f3a8]
mov dword [esp + 4], eax
mov eax, dword [esp + 4]
add eax, 0xcd41d1c4
mov dword [esp], eax
mov eax, dword [esp]
mov dword [eax], 1
jmp 0x1004a050
Function at 0x1004f4ad
Capabilities:
Parse pe header

Disassembly:
push 0
call dword [sym.imp.KERNEL32.dll_GetModuleHandleW]
test eax, eax
je 0x1004f4ec
mov ecx, 0x5a4d
cmp word [eax], cx
jne 0x1004f4ec
mov ecx, dword [eax + 0x3c]
add ecx, eax
cmp dword [ecx], 0x4550
jne 0x1004f4ec
mov eax, 0x10b
cmp word [ecx + 0x18], ax
jne 0x1004f4ec
cmp dword [ecx + 0x74], 0xe
jbe 0x1004f4ec
cmp dword [ecx + 0xe8], 0
setne al
ret
xor al, al
ret
Function at 0x1005219d
Capabilities:
Query environment variable

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push ecx
push ecx
push esi
call dword [sym.imp.KERNEL32.dll_GetEnvironmentStringsW]
mov esi, eax
test esi, esi
je 0x1005223a
push ebx
push esi
call fcn.10052166
xor ebx, ebx
sub eax, esi
push ebx
push ebx
push ebx
push ebx
sar eax, 1
push eax
push esi
push ebx
push ebx
mov dword [ebp - 8], eax
call fcn.100520fa
add esp, 0x24
mov dword [ebp - 4], eax
test eax, eax
jne 0x100521e7
push esi
call dword [sym.imp.KERNEL32.dll_FreeEnvironmentStringsW]
xor eax, eax
jmp 0x10052239
push edi
push eax
call fcn.10050177
mov edi, eax
pop ecx
push ebx
test edi, edi
jne 0x10052207
call fcn.1005013d
pop ecx
push esi
call dword [sym.imp.KERNEL32.dll_FreeEnvironmentStringsW]
xor eax, eax
jmp 0x10052238
push ebx
push dword [ebp - 4]
push edi
push dword [ebp - 8]
push esi
push ebx
push ebx
call fcn.100520fa
add esp, 0x20
test eax, eax
jne 0x10052226
push edi
call fcn.1005013d
jmp 0x1005222e
push ebx
call fcn.1005013d
mov ebx, edi
pop ecx
push esi
call dword [sym.imp.KERNEL32.dll_FreeEnvironmentStringsW]
mov eax, ebx
pop edi
pop ebx
pop esi
leave
ret

Function at 0x100524a7
Capabilities:
Allocate thread local storage

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push esi
push 0x1005a068
push 0x1005a060
push str.FlsAlloc
push 0x1f
call fcn.100523c3
mov esi, eax
add esp, 0x10
test esi, esi
je 0x100524db
push dword [ebp + 8]
mov ecx, esi
call dword [0x10058148]
call esi
jmp 0x100524e1
call dword [sym.imp.KERNEL32.dll_TlsAlloc]
pop esi
pop ebp
ret 4

Function at 0x10052525
Capabilities:
Get thread local storage value

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push esi
push 0x1005a078
push 0x1005a070
push str.FlsGetValue
push 0x21
call fcn.100523c3
mov esi, eax
add esp, 0x10
test esi, esi
je 0x1005255c
push dword [ebp + 8]
mov ecx, esi
call dword [0x10058148]
call esi
pop esi
pop ebp
ret 4
pop esi
pop ebp
jmp dword [sym.imp.KERNEL32.dll_TlsGetValue]

Function at 0x10052564
Capabilities:
Set thread local storage value

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push esi
push 0x1005a080
push 0x1005a078
push str.FlsSetValue
push 0x22
call fcn.100523c3
mov esi, eax
add esp, 0x10
test esi, esi
je 0x1005259e
push dword [ebp + 0xc]
mov ecx, esi
push dword [ebp + 8]
call dword [0x10058148]
call esi
pop esi
pop ebp
ret 8
pop esi
pop ebp
jmp dword [sym.imp.KERNEL32.dll_TlsSetValue]
Function at 0x10057bd0
Capabilities:
Parse pe header

Disassembly:
push ebp
mov ebp, esp
mov eax, dword [ebp + 8]
mov ecx, 0x5a4d
cmp word [eax], cx
jne 0x10057bfd
mov ecx, dword [eax + 0x3c]
add ecx, eax
cmp dword [ecx], 0x4550
jne 0x10057bfd
mov edx, 0x10b
xor eax, eax
cmp word [ecx + 0x18], dx
sete al
pop ebp
ret
xor eax, eax
pop ebp
ret
Function at 0x401e50
Capabilities:
Create process on windows

Disassembly:
sub esp, 0x54
push edi
mov ecx, 0x10
xor eax, eax
lea edi, [esp + 0x18]
rep stosd dword es:[edi], eax
lea eax, [esp + 4]
lea ecx, [esp + 0x14]
mov edx, dword [esp + 0x5c]
push eax
push ecx
push 0
push 0
push 0
push 0
push 0
push 0
push 0
push edx
mov dword [esp + 0x3c], 0x44
call dword [sym.imp.KERNEL32.DLL_CreateProcessA]
pop edi
add esp, 0x54
ret

Function at 0x402000
Capabilities:
Read file on windows

Disassembly:
mov edx, dword [esp + 8]
mov ecx, dword [ecx]
lea eax, [esp + 8]
push 0
push eax
mov eax, dword [esp + 0xc]
push edx
push eax
push ecx
call dword [sym.imp.KERNEL32.DLL_ReadFile]
mov eax, dword [esp + 8]
ret 8

Function at 0x402030
Capabilities:
Write file on windows

Disassembly:
mov edx, dword [esp + 8]
mov ecx, dword [ecx]
lea eax, [esp + 8]
push 0
push eax
mov eax, dword [esp + 0xc]
push edx
push eax
push ecx
call dword [sym.imp.KERNEL32.DLL_WriteFile]
ret 8

Function at 0x4018c0
Capabilities:
Hide graphical window

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffffc
push 0
call dword [sym.imp.KERNEL32.dll_GetModuleHandleA]
mov dword [0x403464], eax
mov edi, 0
mov ecx, 0xa
push edi
loop 0x4018dd
lea eax, [ebp - 0x2c]
push eax
mov edx, dword [0x403464]
mov dword [ebp - 0x1c], edx
lea ecx, str.contents
mov dword [ebp - 8], ecx
lea eax, section..text
mov dword [ebp - 0x28], eax
call dword [sym.imp.USER32.dll_RegisterClassA]
push 0x67
push dword [0x403464]
call dword [sym.imp.USER32.dll_LoadBitmapA]
push 0x66
push dword [0x403464]
call dword [sym.imp.USER32.dll_LoadBitmapA]
xor eax, eax
push eax
push dword [0x403464]
push eax
push eax
push 0x1f4
push 0x2f4
push 0x578
push 0xce4
push 0
mov ecx, str.frantically
push eax
push str.contents
push eax
call dword [sym.imp.USER32.dll_CreateWindowExA]
mov dword [0x403474], eax
push 0
push eax
call dword [sym.imp.USER32.dll_ShowWindow]
mov eax, dword [0x403474]
push eax
call dword [sym.imp.USER32.dll_UpdateWindow]
xor eax, eax
push eax
push eax
push eax
lea edx, [ebp - 0x1c]
push edx
call dword [sym.imp.USER32.dll_GetMessageA]
test eax, eax
je 0x4019a6
mov esi, dword [sym.imp.USER32.dll_TranslateMessage]
mov edi, dword [sym.imp.USER32.dll_DispatchMessageA]
lea ecx, [ebp - 0x1c]
push ecx
call edi
xor eax, eax
push eax
push eax
push eax
lea edx, [ebp - 0x1c]
push edx
call dword [sym.imp.USER32.dll_GetMessageA]
test eax, eax
jne 0x40198d
pop ebp
ret 0x10