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

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x414
push ebx
push esi
push edi
xor edi, edi
cmp dword [ebp + 0x10], edi
mov dword [ebp - 8], edi
mov dword [ebp - 0x10], edi
jne 0x40bce1
xor eax, eax
jmp 0x40be47
mov eax, dword [ebp + 8]
sar eax, 5
lea ebx, [eax*4 + 0x4215c8]
mov eax, dword [ebp + 8]
and eax, 0x1f
lea esi, [eax + eax*8]
mov eax, dword [ebx]
shl esi, 2
test byte [eax + esi + 4], 0x20
je 0x40bd11
push 2
push edi
push dword [ebp + 8]
call fcn.0040952d
add esp, 0xc
mov eax, dword [ebx]
add eax, esi
test byte [eax + 4], 0x80
je 0x40bde0
mov eax, dword [ebp + 0xc]
cmp dword [ebp + 0x10], edi
mov dword [ebp - 4], eax
mov dword [ebp + 8], edi
jbe 0x40be1b
lea eax, [ebp - 0x414]
mov ecx, dword [ebp - 4]
sub ecx, dword [ebp + 0xc]
cmp ecx, dword [ebp + 0x10]
jae 0x40bd6b
mov ecx, dword [ebp - 4]
inc dword [ebp - 4]
mov cl, byte [ecx]
cmp cl, 0xa
jne 0x40bd56
inc dword [ebp - 0x10]
mov byte [eax], 0xd
inc eax
mov byte [eax], cl
inc eax
mov ecx, eax
lea edx, [ebp - 0x414]
sub ecx, edx
cmp ecx, 0x400
jl 0x40bd37
mov edi, eax
lea eax, [ebp - 0x414]
sub edi, eax
lea eax, [ebp - 0xc]
push 0
push eax
lea eax, [ebp - 0x414]
push edi
push eax
mov eax, dword [ebx]
push dword [eax + esi]
call dword [sym.imp.kernel32.dll_WriteFile]
test eax, eax
je 0x40bdd5
mov eax, dword [ebp - 0xc]
add dword [ebp - 8], eax
cmp eax, edi
jl 0x40bda7
mov eax, dword [ebp - 4]
sub eax, dword [ebp + 0xc]
cmp eax, dword [ebp + 0x10]
jb 0x40bd31
xor edi, edi
mov eax, dword [ebp - 8]
cmp eax, edi
jne 0x40be44
cmp dword [ebp + 8], edi
je 0x40be1b
push 5
pop esi
cmp dword [ebp + 8], esi
jne 0x40be0d
call fcn.004091c9
mov dword [eax], 9
call fcn.004091d2
mov dword [eax], esi
jmp 0x40be16
call dword [sym.imp.kernel32.dll_GetLastError]
mov dword [ebp + 8], eax
jmp 0x40bda7
lea ecx, [ebp - 0xc]
push edi
push ecx
push dword [ebp + 0x10]
push dword [ebp + 0xc]
push dword [eax]
call dword [sym.imp.kernel32.dll_WriteFile]
test eax, eax
je 0x40be02
mov eax, dword [ebp - 0xc]
mov dword [ebp + 8], edi
mov dword [ebp - 8], eax
jmp 0x40bda9
call dword [sym.imp.kernel32.dll_GetLastError]
mov dword [ebp + 8], eax
jmp 0x40bda9
push dword [ebp + 8]
call fcn.00409156
pop ecx
or eax, 0xffffffff
jmp 0x40be47
mov eax, dword [ebx]
test byte [eax + esi + 4], 0x40
je 0x40be30
mov eax, dword [ebp + 0xc]
cmp byte [eax], 0x1a
je 0x40bcda
call fcn.004091c9
mov dword [eax], 0x1c
call fcn.004091d2
mov dword [eax], edi
jmp 0x40be16
sub eax, dword [ebp - 0x10]
pop edi
pop esi
pop ebx
leave
ret
Function at 0x40d8d3
Capabilities:
Set environment variable

Disassembly:
push ebp
mov ebp, esp
push ecx
push ecx
push ebx
push esi
push edi
xor edi, edi
cmp dword [ebp + 8], edi
je 0x40d937
push 0x3d
push dword [ebp + 8]
call fcn.0040de8f
mov esi, eax
pop ecx
cmp esi, edi
pop ecx
mov dword [ebp - 8], esi
je 0x40d937
cmp dword [ebp + 8], esi
je 0x40d937
mov eax, dword [0x4200dc]
xor ebx, ebx
cmp byte [esi + 1], bl
sete bl
cmp eax, dword [0x4200e0]
jne 0x40d91d
push eax
call fcn.0040dab2
pop ecx
mov dword [0x4200dc], eax
cmp eax, edi
jne 0x40d975
cmp dword [ebp + 0xc], edi
je 0x40d93f
cmp dword [0x4200e4], edi
je 0x40d93f
call fcn.0040d3a0
test eax, eax
je 0x40d975
or eax, 0xffffffff
pop edi
pop esi
pop ebx
leave
ret
cmp ebx, edi
jne 0x40da53
push 4
call fcn.00408406
cmp eax, edi
pop ecx
mov dword [0x4200dc], eax
je 0x40d937
mov dword [eax], edi
cmp dword [0x4200e4], edi
jne 0x40d975
push 4
call fcn.00408406
cmp eax, edi
pop ecx
mov dword [0x4200e4], eax
je 0x40d937
mov dword [eax], edi
sub esi, dword [ebp + 8]
mov edi, dword [0x4200dc]
mov dword [ebp - 4], edi
push esi
push dword [ebp + 8]
call fcn.0040da5a
mov esi, eax
pop ecx
test esi, esi
pop ecx
jl 0x40d9d5
cmp dword [edi], 0
je 0x40d9d5
test ebx, ebx
je 0x40d9cd
push dword [edi + esi*4]
lea edi, [edi + esi*4]
call fcn.00408778
pop ecx
cmp dword [edi], 0
je 0x40d9b7
mov eax, dword [edi + 4]
inc esi
mov dword [edi], eax
add edi, 4
jmp 0x40d9a7
mov eax, esi
shl eax, 2
push eax
push dword [ebp - 4]
call fcn.0040db60
pop ecx
test eax, eax
pop ecx
je 0x40da07
jmp 0x40da02
mov eax, dword [ebp + 8]
mov dword [edi + esi*4], eax
jmp 0x40da07
test ebx, ebx
jne 0x40da53
test esi, esi
jge 0x40d9df
neg esi
lea eax, [esi*4 + 8]
push eax
push edi
call fcn.0040db60
pop ecx
test eax, eax
pop ecx
je 0x40d937
mov ecx, dword [ebp + 8]
mov dword [eax + esi*4], ecx
and dword [eax + esi*4 + 4], 0
mov dword [0x4200dc], eax
cmp dword [ebp + 0xc], 0
je 0x40da53
push dword [ebp + 8]
call fcn.0040982a
inc eax
inc eax
push eax
call fcn.00408406
mov esi, eax
pop ecx
test esi, esi
pop ecx
je 0x40da53
push dword [ebp + 8]
push esi
call fcn.0040ba6f
mov eax, esi
pop ecx
sub eax, dword [ebp + 8]
pop ecx
add eax, dword [ebp - 8]
and byte [eax], 0
inc eax
neg ebx
sbb ebx, ebx
not ebx
and ebx, eax
push ebx
push esi
call dword [sym.imp.kernel32.dll_SetEnvironmentVariableA]
push esi
call fcn.00408778
pop ecx
xor eax, eax
jmp 0x40d93a
Function at 0x100053c2
Capabilities:
Terminate process

Disassembly:
push 0x10
mov eax, 0x1001ac1b
call fcn.1001a456
mov ebx, dword [ebp + 8]
cmp dword [ebx + 0x10], 1
ja 0x100053ea
mov ecx, dword [0x10029d48]
call fcn.100043a3
test al, al
jne 0x100053ea
xor cl, cl
jmp 0x100053ec
mov cl, 1
mov edx, dword [ebp + 0xc]
mov byte [ebp - 0x10], cl
test edx, edx
jne 0x1000542c
mov eax, dword [ebx + 0xc]
mov esi, dword [eax]
cmp esi, eax
je 0x10005550
cmp dword [esi + 8], 0
je 0x1000541d
movzx eax, cl
mov ecx, dword [esi + 8]
push eax
push dword [ebp + 0x10]
push 0x402
call fcn.10009b11
mov esi, dword [esi]
mov cl, byte [ebp - 0x10]
cmp esi, dword [ebx + 0xc]
jne 0x10005403
jmp 0x10005550
mov edi, dword [ebx + 0xc]
xor cl, cl
mov esi, dword [edi]
jmp 0x1000543f
mov eax, dword [esi + 8]
cmp edx, dword [eax + 0x10]
je 0x10005445
mov esi, dword [esi]
cmp esi, edi
jne 0x10005435
jmp 0x10005492
mov ecx, dword [eax + 0x50]
mov edx, dword [eax + 0x54]
mov eax, ecx
or eax, edx
mov byte [ebp + 0xb], 1
mov dword [ebp - 0x14], ecx
mov dword [ebp - 0x18], edx
je 0x10005477
call dword [sym.imp.kernel32.dll_GetTickCount64]
sub eax, dword [ebp - 0x14]
sbb edx, dword [ebp - 0x18]
mov dword [ebp - 0x18], edx
jne 0x10005473
cmp eax, 0x1388
jbe 0x10005477
mov edi, esi
jmp 0x1000548c
movzx eax, byte [ebp - 0x10]
mov ecx, dword [esi + 8]
push eax
push dword [ebp + 0x10]
push 0x402
call fcn.10009b11
mov cl, byte [ebp + 0xb]
mov edx, dword [ebp + 0xc]
mov eax, dword [ebx + 0xc]
cmp edi, eax
jne 0x100054c7
test cl, cl
jne 0x10005550
mov esi, dword [eax]
cmp esi, eax
je 0x10005550
mov ecx, dword [esi + 8]
push 1
push dword [ebp - 0x10]
push dword [ebp + 0x10]
call fcn.10009b11
mov esi, dword [esi]
cmp esi, dword [ebx + 0xc]
jne 0x100054ab
jmp 0x10005550
mov esi, dword [eax]
cmp esi, eax
je 0x100054ec
mov ecx, dword [esi + 8]
cmp edx, dword [ecx + 0x10]
je 0x100054e5
push 1
push dword [ebp - 0x10]
push dword [ebp + 0x10]
call fcn.10009b11
mov edx, dword [ebp + 0xc]
mov esi, dword [esi]
cmp esi, dword [ebx + 0xc]
jne 0x100054cd
mov ecx, dword [edi + 8]
push 1
push dword [ebp - 0x10]
push 0x80043074
call fcn.10009b11
push 0
lea ecx, [ebx + 0x3c]
call fcn.10009b11
mov esi, 0x10029eb0
push esi
call dword [sym.imp.kernel32.dll_EnterCriticalSection]
mov eax, dword [0x10029d58]
test eax, eax
je 0x1000552b
push eax
call dword [sym.imp.USER32.dll_UnhookWindowsHookEx]
and dword [0x10029d58], 0
push esi
call dword [sym.imp.kernel32.dll_LeaveCriticalSection]
call dword [sym.imp.kernel32.dll_GetCurrentProcess]
mov esi, eax
push 1
push esi
call dword [sym.imp.kernel32.dll_TerminateProcess]
test eax, eax
je 0x10005550
push 0xffffffffffffffff
push esi
call dword [sym.imp.kernel32.dll_WaitForSingleObject]
xor eax, eax
call fcn.1001a427
ret 0xc
Function at 0x10009b11
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x18
pushal
call 0x10009b20
pop dword [ebp - 8]
mov eax, 0x10009b20
sub dword [ebp - 8], eax
mov dword [ebp - 0x18], 0xf462f0e2
sub dword [ebp - 0x18], 0xa610ab97
mov dword [ebp - 0x14], 0x77a009ed
add dword [ebp - 0x14], 0xba934258
mov dword [ebp - 0x10], 0x1cfcc717
add dword [ebp - 0x10], 0x2f4f7d17
mov dword [ebp - 0xc], 0xa7329867
sub dword [ebp - 0xc], 0xa7329867
lea eax, [ebp - 0x18]
push eax
mov eax, 0x5528629e
add eax, 0xbad96d6a
add eax, dword [ebp - 8]
call dword [eax]
mov dword [ebp - 0x18], 0x45afe9c8
add dword [ebp - 0x18], 0x2ec27f8e
mov dword [ebp - 0x14], 0x22f31b
sub dword [ebp - 0x14], 0xbeb691a6
mov dword [ebp - 0x10], 0x44d52660
add dword [ebp - 0x10], 0x1e9a460c
mov dword [ebp - 0xc], 0xda2676c0
sub dword [ebp - 0xc], 0xda2676c0
lea ebx, [ebp - 0x18]
push ebx
push eax
mov eax, 0xefe6740a
add eax, 0x201b5c22
add eax, dword [ebp - 8]
call dword [eax]
push 0x40
push 0x1000
push 0x3eee3
push 0
call eax
mov ecx, 0x48dc5ca2
add ecx, 0xb723fd40
xor ebx, ebx
add ebx, eax
mov edi, 0xc82facd5
add edi, 0x47d3332b
add edi, dword [ebp - 8]
mov edx, 0xa4361a0b
add edx, 0xb36bcfac
xor dword [ebp - 4], edx
mov esi, dword [edi]
xor dword [ebp - 4], 0xcacc7528
sub esi, edx
mov dword [ebp - 4], 0xa1344253
mov dword [ebx], esi
add dword [ebp - 4], 0xe783414d
add ebx, 0x6d018ac0
add ebx, 0x92fe7544
add edi, 0xd51f3949
add edi, 0x2ae0c6bb
loop 0x10009c3f
add eax, 0xc3f09553
sub eax, 0xc3ef3af8
xor ebx, ebx
add ebx, eax
add eax, 0xe2a36f68
sub eax, 0xe2a36f63
mov ecx, 0x4c3aeed5
add ecx, 0xc3c5112b
add ecx, dword [ebp - 8]
call ebx
leave
ret
Function at 0x1000ddaa
Capabilities:
Log keystrokes via polling

Disassembly:
push 0xc
mov eax, 0x1001b43b
call fcn.1001a456
and dword [ebp - 0x14], 0
xor ecx, ecx
and dword [ebp - 0x18], 0
inc ecx
mov edi, dword [ebp + 0xc]
mov byte [ebp - 0xd], cl
test edi, edi
jne 0x1000ddd5
mov esi, 0x80070057
jmp 0x1000df49
mov ebx, dword [ebp + 8]
xor esi, esi
cmp dword [edi + 8], 0x1b
jne 0x1000de05
lea eax, [ebp + 0xf]
mov byte [ebp + 0xf], 0
lea ecx, [ebx - 0x14]
push eax
call fcn.10009b11
mov esi, eax
test esi, esi
js 0x1000de02
cmp byte [ebp + 0xf], 0
je 0x1000de02
mov byte [ebp - 0xd], 0
jmp 0x1000de64
xor ecx, ecx
inc ecx
mov eax, dword [edi + 4]
sub eax, 0x100
je 0x1000de33
sub eax, 1
je 0x1000de2c
sub eax, 3
je 0x1000de25
sub eax, 1
jne 0x1000de64
mov eax, dword [0x10029d28]
jmp 0x1000de38
mov eax, dword [0x10029d30]
jmp 0x1000de38
mov eax, dword [0x10029d24]
jmp 0x1000de38
mov eax, dword [0x10029d2c]
test eax, eax
je 0x1000de64
cmp dword [ebx + 0xc4], 0
jne 0x1000de4d
cmp dword [ebx + 0x18], 0
jne 0x1000de4d
xor cl, cl
push ecx
push dword [edi + 0xc]
lea ecx, [ebx - 0x14]
push dword [edi + 8]
push eax
call fcn.1000d1e8
mov dword [ebp - 0x14], eax
test eax, eax
jne 0x1000dee1
cmp dword [ebx + 0xc4], 4
jne 0x1000de7a
call dword [sym.imp.kernel32.dll_GetLastError]
cmp eax, 0x5b4
je 0x1000dee1
cmp dword [edi + 4], 0x100
je 0x1000de8c
cmp dword [edi + 4], 0x101
jne 0x1000dea7
cmp dword [edi + 8], 0x1b
jne 0x1000dea7
cmp dword [ebx + 0xc4], 0
jne 0x1000dea7
cmp dword [ebx + 0x18], 0
jne 0x1000dea7
cmp byte [ebp - 0xd], 0
jne 0x1000dee1
mov ecx, dword [ebx + 0x34]
xor esi, esi
test ecx, ecx
je 0x1000dec0
mov eax, dword [ecx]
lea edx, [ebp - 0x18]
push edx
push 0x1001d700
push ecx
call dword [eax]
mov esi, eax
test esi, esi
js 0x1000df49
cmp dword [ebp - 0x18], 0
jne 0x1000ded5
mov esi, 0x8000ffff
jmp 0x1000df49
mov eax, dword [ebp - 0x18]
push edi
push eax
mov ecx, dword [eax]
call dword [ecx + 0x14]
mov esi, eax
cmp esi, 1
jne 0x1000df3e
cmp dword [edi + 4], 0x100
jne 0x1000df0c
cmp dword [edi + 8], 9
jne 0x1000df3e
push 0
push dword [edi + 0xc]
lea ecx, [ebx - 0x14]
push 9
push dword [0x10029d40]
call fcn.1000d1e8
jmp 0x1000df41
cmp dword [edi + 4], 0x104
jne 0x1000df3e
cmp dword [edi + 8], 0x79
jne 0x1000df3e
mov edi, dword [sym.imp.USER32.dll_GetKeyState]
push 0x11
call edi
mov ebx, 0x8000
test bx, ax
je 0x1000df3e
push 0x10
call edi
test bx, ax
je 0x1000df3e
xor eax, eax
xor esi, esi
jmp 0x1000df41
mov eax, dword [ebp - 0x14]
test eax, eax
push 1
pop eax
cmovne esi, eax
and dword [ebp - 4], 0
mov eax, dword [ebp - 0x18]
test eax, eax
je 0x1000df5a
mov ecx, dword [eax]
push eax
call dword [ecx + 8]
mov eax, esi
call fcn.1001a427
ret 8
Function at 0x1001715e
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x34
mov eax, dword [0x10028108]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
mov ebx, dword [ebp + 8]
push esi
push edi
or edi, 0xffffffff
mov esi, ecx
cmp ebx, edi
jne 0x10017184
xor eax, eax
jmp 0x10017243
mov eax, dword [esi + 0x20]
cmp dword [eax], 0
je 0x100171a6
mov edx, dword [esi + 0x30]
mov edx, dword [edx]
add edx, dword [eax]
cmp dword [eax], edx
jae 0x100171a6
call dword [sym.imp.MSVCP140.dll_protected:_char____thiscall_std::basic_streambuf_char__struct_std::char_traits_char__::_Pninc_void_]
mov byte [eax], bl
mov eax, ebx
jmp 0x10017243
cmp dword [esi + 0x4c], 0
je 0x10017241
call fcn.100173d8
mov ecx, dword [esi + 0x38]
test ecx, ecx
jne 0x100171d2
push dword [esi + 0x4c]
movsx eax, bl
push eax
call dword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll_fputc]
cmp eax, edi
pop ecx
pop ecx
cmovne edi, ebx
jmp 0x10017241
lea eax, [ebp - 0x2c]
mov byte [ebp - 0x25], bl
push eax
lea eax, [ebp - 4]
push eax
lea eax, [ebp - 0x24]
push eax
lea eax, [ebp - 0x34]
push eax
lea eax, [ebp - 0x24]
push eax
lea eax, [ebp - 0x25]
push eax
lea eax, [esi + 0x40]
push eax
call dword [sym.imp.MSVCP140.dll_public:_int___thiscall_std::codecvt_char__char__struct__Mbstatet_::out_struct__Mbstatet___char_const___char_const___char_const____char___char___char___const]
test eax, eax
js 0x10017241
cmp eax, 1
jle 0x1001720f
cmp eax, 3
jne 0x10017241
push dword [esi + 0x4c]
movsx ecx, byte [ebp - 0x25]
push ecx
jmp 0x100171c3
mov eax, dword [ebp - 0x2c]
lea ecx, [ebp - 0x24]
sub eax, ecx
mov dword [ebp - 0x30], eax
je 0x10017233
push dword [esi + 0x4c]
push eax
mov eax, ecx
push 1
push eax
call dword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll_fwrite]
add esp, 0x10
cmp dword [ebp - 0x30], eax
jne 0x10017241
lea eax, [ebp - 0x25]
mov byte [esi + 0x3d], 1
cmp dword [ebp - 0x34], eax
mov eax, ebx
jne 0x10017243
mov eax, edi
mov ecx, dword [ebp - 4]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.10018d7d
leave
ret 4

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

Disassembly:
pushal
nop
nop
mov eax, section..rsrc
nop
push 4
nop
nop
nop
nop
pop edi
nop
nop
nop
nop
nop
nop
nop
nop
cmp eax, 0
nop
nop
je 0x432072
nop
nop
mov ebx, 0x40c7d0
nop
nop
nop
mov ecx, ebx
nop
nop
nop
nop
sub ecx, eax
nop
nop
nop
nop
xor edx, edx
nop
nop
nop
push eax
nop
nop
nop
nop
nop
nop
nop
mov eax, ecx
nop
nop
nop
nop
div edi
nop
nop
nop
nop
xchg ecx, eax
nop
nop
nop
nop
nop
nop
pop eax
nop
mov esi, 0x3f8a75b8
nop
nop
nop
nop
xor dword [eax], esi
nop
nop
nop
nop
add eax, edi
nop
nop
loop 0x432060
nop
nop
nop
nop
mov eax, section..data
nop
nop
cmp eax, 0
nop
nop
je 0x4320d2
nop
nop
nop
mov ebx, 0x42f314
nop
nop
nop
mov ecx, ebx
nop
nop
nop
nop
sub ecx, eax
nop
nop
nop
nop
xor edx, edx
nop
nop
push eax
nop
nop
nop
nop
nop
nop
nop
nop
mov eax, ecx
nop
nop
nop
div edi
nop
nop
nop
nop
nop
nop
xchg ecx, eax
nop
nop
nop
nop
nop
nop
pop eax
mov esi, 0x76330205
nop
nop
xor dword [eax], esi
nop
nop
nop
nop
nop
nop
nop
add eax, edi
nop
nop
loop 0x4320c0
nop
nop
nop
nop
nop
nop
popal
nop
jmp 0x431219
Function at 0xda9a84
Capabilities:
Encode data using xor

Disassembly:
jmp 0xda9a8e
pushal
call 0xda9a94
pop ebp
sub ebp, 0x10
sub ebp, 0x9a9a84
jmp 0xda9aaa
mov eax, 0x9a9a84
add eax, ebp
add eax, 0x4c
mov ecx, 0x5bb
mov edx, 0x5f6d33ef
xor byte [eax], dl
inc eax
dec ecx
jne 0xda9ac1
jmp 0xda9ad4
and ah, byte fs:[esi - 0x2d]
out dx, eax
out dx, eax
out dx, eax
outsb dx, byte [esi]
pop ss
out dx, eax
out dx, eax
out dx, eax
in al, dx
and dl, byte [edi - 0x15]
out dx, eax
out dx, eax
out dx, eax
push ebp
invalid
Function at 0x4014f4
Capabilities:
Create process on windows
Set current directory

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x244
push ebx
push esi
push edi
mov esi, dword [ebp + 8]
xor ebx, ebx
or esi, esi
je 0x4015d5
mov dword [ebp - 0x40], esi
mov ecx, esi
or eax, 0xffffffff
inc eax
cmp byte [ecx + eax], 0
jne 0x401515
lea edi, [eax + esi - 1]
jmp 0x401523
dec edi
cmp edi, esi
jbe 0x40152c
cmp byte [edi], 0x5c
jne 0x401522
cmp edi, esi
jbe 0x401562
mov byte [edi], 0
push esi
lea eax, [ebp - 0x240]
push eax
call fcn.00401680
push 0x40308e
lea eax, [ebp - 0x240]
push eax
call sub.CRTDLL.DLL_strcat
add esp, 8
lea eax, [ebp - 0x240]
mov dword [ebp - 0x40], eax
mov byte [edi], 0x5c
jmp 0x401566
and dword [ebp - 0x40], 0
mov eax, dword [ebp + 0x10]
or eax, eax
je 0x401575
cmp byte [eax], 0
je 0x401575
mov dword [ebp - 0x40], eax
xor edi, edi
inc edi
test byte [ebp + 0x14], 2
je 0x401580
xor edi, edi
mov dword [ebp - 0x3c], 0x3c
mov dword [ebp - 0x38], 0x40
mov dword [ebp - 0x20], edi
lea eax, str.Open
mov dword [ebp - 0x30], eax
mov eax, dword [ebp - 0x40]
mov dword [ebp - 0x24], eax
mov dword [ebp - 0x2c], esi
mov eax, dword [ebp + 0xc]
mov dword [ebp - 0x28], eax
push 0x40200c
call sub.KERNEL32.DLL_SetCurrentDirectoryA
lea eax, [ebp - 0x3c]
push eax
call sub.SHELL32.DLL_ShellExecuteExA
mov ebx, eax
or ebx, ebx
je 0x4015d5
test byte [ebp + 0x14], 1
je 0x4015d2
push 0xffffffffffffffff
push dword [ebp - 4]
call sub.KERNEL32.DLL_WaitForSingleObject
mov ebx, dword [ebp - 4]
mov eax, ebx
pop edi
pop esi
pop ebx
leave
ret 0x10

Function at 0x40161c
Capabilities:
Accept command line arguments

Disassembly:
push ebp
mov ebp, esp
push ecx
push edi
call sub.KERNEL32.DLL_GetCommandLineA
mov edi, eax
cmp byte [edi], 0x22
jne 0x401650
push 0x22
mov eax, edi
inc eax
push eax
call sub.CRTDLL.DLL_strchr
add esp, 8
mov dword [ebp - 4], eax
or eax, eax
je 0x40166b
mov edi, eax
inc edi
jmp 0x401648
inc edi
cmp byte [edi], 0x20
je 0x401647
jmp 0x40166b
inc edi
movsx eax, byte [edi]
or eax, eax
je 0x40165c
cmp eax, 0x20
jne 0x40164f
jmp 0x40165f
inc edi
movsx eax, byte [edi]
or eax, eax
je 0x40166b
cmp eax, 0x20
je 0x40165e
push 0
call sub.KERNEL32.DLL_GetModuleHandleA
push 1
push edi
push 0
push eax
call fcn.0040123c
pop edi
leave
ret
Function at 0x401000
Capabilities:
Check for trap flag exception

Disassembly:
push ebp
mov ebp, esp
push ebx
push edi
push esi
sub esp, 0x28
mov eax, esp
mov dword [ebp - 0x24], eax
mov dword [ebp - 0x10], 0xffffffff
mov dword [ebp - 0x14], 0x413354
lea eax, [ebp - 0x1c]
mov dword [ebp - 0x18], 0x401cc0
mov ecx, dword fs:[0]
mov dword [ebp - 0x1c], ecx
mov dword fs:[0], eax
pushfd
or dword [esp], 0x100
popfd
mov dword [ebp - 0x10], 0
mov eax, esp
mov dword [eax + 0xc], 0
mov dword [eax + 8], 0x40e160
mov dword [eax + 4], str.yes_debugger
mov dword [eax], 0
mov eax, dword [sym.imp.USER32.dll_MessageBoxA]
call eax
sub esp, 0x10
jmp 0x401072
mov dword [ebp - 0x10], 0xffffffff
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret

Function at 0x401840
Capabilities:
Parse pe header

Disassembly:
push 0
call dword [sym.imp.KERNEL32.dll_GetModuleHandleW]
test eax, eax
je 0x40187f
mov ecx, 0x5a4d
cmp word [eax], cx
jne 0x40187f
mov ecx, dword [eax + 0x3c]
add ecx, eax
cmp dword [ecx], 0x4550
jne 0x40187f
mov eax, 0x10b
cmp word [ecx + 0x18], ax
jne 0x40187f
cmp dword [ecx + 0x74], 0xe
jbe 0x40187f
cmp dword [ecx + 0xe8], 0
setne al
ret
xor al, al
ret
Function at 0x407a6d
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 0x407b0a
push ebx
push esi
call fcn.00407a36
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.004079ca
add esp, 0x24
mov dword [ebp - 4], eax
test eax, eax
jne 0x407ab7
push esi
call dword [sym.imp.KERNEL32.dll_FreeEnvironmentStringsW]
xor eax, eax
jmp 0x407b09
push edi
push eax
call fcn.00408300
mov edi, eax
pop ecx
push ebx
test edi, edi
jne 0x407ad7
call fcn.00406511
pop ecx
push esi
call dword [sym.imp.KERNEL32.dll_FreeEnvironmentStringsW]
xor eax, eax
jmp 0x407b08
push ebx
push dword [ebp - 4]
push edi
push dword [ebp - 8]
push esi
push ebx
push ebx
call fcn.004079ca
add esp, 0x20
test eax, eax
jne 0x407af6
push edi
call fcn.00406511
jmp 0x407afe
push ebx
call fcn.00406511
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 0x408a06
Capabilities:
Allocate thread local storage

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push esi
push 0x40ffd8
push 0x40ffd0
push str.FlsAlloc
push 0x1f
call fcn.00408922
mov esi, eax
add esp, 0x10
test esi, esi
je 0x408a3a
push dword [ebp + 8]
mov ecx, esi
call dword [0x40e110]
call esi
jmp 0x408a40
call dword [sym.imp.KERNEL32.dll_TlsAlloc]
pop esi
pop ebp
ret 4

Function at 0x408a84
Capabilities:
Get thread local storage value

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push esi
push 0x40ffe8
push 0x40ffe0
push str.FlsGetValue
push 0x21
call fcn.00408922
mov esi, eax
add esp, 0x10
test esi, esi
je 0x408abb
push dword [ebp + 8]
mov ecx, esi
call dword [0x40e110]
call esi
pop esi
pop ebp
ret 4
pop esi
pop ebp
jmp dword [sym.imp.KERNEL32.dll_TlsGetValue]

Function at 0x408ac3
Capabilities:
Set thread local storage value

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push esi
push 0x40fff0
push 0x40ffe8
push str.FlsSetValue
push 0x22
call fcn.00408922
mov esi, eax
add esp, 0x10
test esi, esi
je 0x408afd
push dword [ebp + 0xc]
mov ecx, esi
push dword [ebp + 8]
call dword [0x40e110]
call esi
pop esi
pop ebp
ret 8
pop esi
pop ebp
jmp dword [sym.imp.KERNEL32.dll_TlsSetValue]
Function at 0x40d9b0
Capabilities:
Parse pe header

Disassembly:
push ebp
mov ebp, esp
mov eax, dword [ebp + 8]
mov ecx, 0x5a4d
cmp word [eax], cx
jne 0x40d9dd
mov ecx, dword [eax + 0x3c]
add ecx, eax
cmp dword [ecx], 0x4550
jne 0x40d9dd
mov edx, 0x10b
xor eax, eax
cmp word [ecx + 0x18], dx
sete al
pop ebp
ret
xor eax, eax
pop ebp
ret

Function at 0x29a04ef9
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x30
pushal
call 0x29a04f08
pop dword [ebp - 0x20]
mov eax, 0x29a04f08
sub dword [ebp - 0x20], eax
mov dword [ebp - 0x30], 0x550b3a94
add dword [ebp - 0x30], 0xf9470ab7
mov dword [ebp - 0x2c], 0xa2b70a5e
sub dword [ebp - 0x2c], 0x7083be19
mov dword [ebp - 0x28], 0x8ed8c14a
sub dword [ebp - 0x28], 0x428c7d1c
mov dword [ebp - 0x24], 0xcbf6bc05
sub dword [ebp - 0x24], 0xcbf6bc05
lea eax, [ebp - 0x30]
push eax
mov eax, 0xa8d65fde
sub eax, 0x7f351f52
add eax, dword [ebp - 0x20]
call dword [eax]
mov dword [ebp - 0x30], 0x1d7087ff
sub dword [ebp - 0x30], 0xa8fe1ea9
mov dword [ebp - 0x2c], 0x8f306b5f
sub dword [ebp - 0x2c], 0x4dc409ea
mov dword [ebp - 0x28], 0x702cbaef
add dword [ebp - 0x28], 0xf342b17d
mov dword [ebp - 0x24], 0x19d2a658
sub dword [ebp - 0x24], 0x19d2a658
lea ebx, [ebp - 0x30]
push ebx
push eax
mov eax, 0x6c65bfbd
sub eax, 0x42c47f79
add eax, dword [ebp - 0x20]
call dword [eax]
push 0x40
push 0x1000
push 0x3aec1
push 0
call eax
mov ecx, 0x6723bc88
sub ecx, 0x672371ac
mov edx, eax
mov ebx, 0xd3819672
add ebx, 0x5620998e
add ebx, dword [ebp - 0x20]
mov esi, 0x90335be1
add esi, 0xd1ceca2c
xor dword [ebp - 0xc], ecx
mov edi, dword [ebx]
sub dword [ebp - 0x18], edi
add edi, esi
sub dword [ebp - 0x14], 0x7a82ab93
mov dword [edx], edi
xor dword [ebp - 0x18], 0x3855680b
add edx, 0xa4429876
add edx, 0x5bbd678e
add ebx, 4
loop 0x29a05025
add eax, 0x11e43
xor ebx, ebx
add ebx, eax
add eax, 0x48882f0f
sub eax, 0x48882f0a
mov ecx, 0x29a00000
add ecx, dword [ebp - 0x20]
call ebx
leave
ret