joyce8/EMBER2024-capa huggingface dataset:
Function at 0x2e433da
Capabilities:
Contain obfuscated stackstrings
Delete file

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x424
push ebx
push esi
push edi
push 0
mov eax, dword [ebp + 0xc]
push eax
call dword [sym.imp.kernel32.dll__lcreat]
mov dword [ebp - 0x18], eax
cmp dword [ebp - 0x18], 0xffffffff
jne 0x2e43400
jmp 0x2e43516
push 0
mov eax, dword [ebp + 8]
push eax
call dword [sym.imp.kernel32.dll__lopen]
mov dword [ebp - 0x424], eax
cmp dword [ebp - 0x424], 0xffffffff
jne 0x2e43420
jmp 0x2e43516
lea eax, [ebp - 0x10]
push eax
call dword [sym.imp.kernel32.dll_GetLocalTime]
mov al, byte [ebp - 4]
mov byte [ebp - 0x1c], al
mov eax, dword [ebp - 0x1c]
push eax
call fcn.02e4794d
add esp, 4
mov dword [0x2e4f098], 0
mov dword [ebp - 0x420], 0x646c6f47
mov dword [ebp - 0x41c], 0x6f736e65
mov byte [ebp - 0x418], 0x66
mov dword [ebp - 0x20], 0
jmp 0x2e4346d
inc dword [ebp - 0x20]
cmp dword [ebp - 0x20], 9
jge 0x2e4348d
mov eax, dword [ebp - 0x20]
movsx eax, byte [eax + ebp - 0x420]
xor al, byte [ebp - 0x1c]
mov ecx, dword [ebp - 0x20]
mov byte [ecx + ebp - 0x420], al
jmp 0x2e4346a
mov al, byte [ebp - 0x1c]
mov byte [ebp - 0x417], al
push 0xa
lea eax, [ebp - 0x420]
push eax
mov eax, dword [ebp - 0x18]
push eax
call dword [sym.imp.kernel32.dll__lwrite]
push 0x400
lea eax, [ebp - 0x420]
push eax
mov eax, dword [ebp - 0x424]
push eax
call dword [sym.imp.kernel32.dll__lread]
mov dword [ebp - 0x14], eax
cmp dword [ebp - 0x14], 0
je 0x2e434f5
mov eax, dword [ebp - 0x14]
push eax
lea eax, [ebp - 0x420]
push eax
call fcn.02e474f0
add esp, 8
mov eax, dword [ebp - 0x14]
push eax
lea eax, [ebp - 0x420]
push eax
mov eax, dword [ebp - 0x18]
push eax
call dword [sym.imp.kernel32.dll__lwrite]
jmp 0x2e434a9
mov eax, dword [ebp - 0x18]
push eax
call dword [sym.imp.kernel32.dll__lclose]
mov eax, dword [ebp - 0x424]
push eax
call dword [sym.imp.kernel32.dll__lclose]
mov eax, dword [ebp + 8]
push eax
call dword [sym.imp.kernel32.dll_DeleteFileA]
pop edi
pop esi
pop ebx
leave
ret

Function at 0x2e4351b
Capabilities:
Move file

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x18
push ebx
push esi
push edi
nop
leave
add esp, 4
pop edi
pop esi
pop edx
pop ecx
pop ebx
pop eax
leave
add esp, 4
push ebp
mov ebp, esp
sub esp, 0x20
push edi
push esi
push edx
push ecx
push ebx
mov eax, dword [ebp + 8]
mov dword [ebp - 4], eax
mov eax, dword [ebp + 0xc]
mov dword [ebp - 8], eax
mov eax, dword [ebp - 8]
push eax
call fcn.02e472a5
add esp, 4
mov dword [ebp - 0x18], eax
mov eax, dword [ebp - 0x18]
push eax
call fcn.02e4732d
add esp, 4
mov dword [ebp - 0x10], eax
mov eax, dword [ebp - 8]
push eax
call fcn.02e47b77
add esp, 4
mov dword [ebp - 0xc], eax
cmp dword [ebp - 0x10], 2
jne 0x2e4359e
cmp dword [0x2e4f2ca], 1
jne 0x2e4359e
cmp dword [ebp - 0xc], 0
je 0x2e4359e
mov eax, dword [ebp - 8]
push eax
mov eax, dword [ebp - 4]
push eax
call fcn.02e433da
add esp, 8
jmp 0x2e435ad
push dword [ebp + 0xc]
push dword [ebp + 8]
call dword [sym.imp.kernel32.dll_MoveFileA]
mov dword [ebp - 0x14], eax
pop ebx
pop ecx
pop edx
pop esi
pop edi
mov eax, dword [ebp - 0x14]
leave
ret 8
Function at 0x2e4377c
Capabilities:
Read file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x14
push ebx
push esi
push edi
nop
nop
leave
add esp, 4
pop edi
pop esi
pop edx
pop ecx
pop ebx
pop eax
leave
add esp, 4
push ebp
mov ebp, esp
sub esp, 0x20
push edi
push esi
push edx
push ecx
push ebx
mov eax, dword [ebp + 0x14]
mov dword [ebp - 8], eax
mov eax, dword [ebp + 0xc]
mov dword [ebp - 4], eax
mov eax, dword [ebp + 8]
mov dword [ebp - 0xc], eax
push dword [ebp + 0x18]
push dword [ebp + 0x14]
push dword [ebp + 0x10]
push dword [ebp + 0xc]
push dword [ebp + 8]
call dword [sym.imp.kernel32.dll_ReadFile]
mov dword [ebp - 0x10], eax
cmp dword [ebp - 0x10], 1
jne 0x2e43855
mov dword [ebp - 0x14], 0
jmp 0x2e437e0
inc dword [ebp - 0x14]
cmp dword [ebp - 0x14], 0x1e
jge 0x2e43855
mov eax, dword [ebp - 0x14]
mov ecx, dword [ebp - 0xc]
cmp dword [eax*4 + 0x2e4f09c], ecx
jne 0x2e43853
mov eax, dword [ebp - 0x14]
mov ecx, dword [ebp - 0x14]
mov ecx, dword [ecx*4 + 0x2e4f1aa]
cmp dword [eax*4 + 0x2e4f132], ecx
jb 0x2e43842
mov eax, dword [ebp - 0xc]
cmp dword [0x2e4f098], eax
je 0x2e43830
mov eax, dword [ebp - 0x14]
mov al, byte [eax + 0x2e4f114]
push eax
call fcn.02e4794d
add esp, 4
mov eax, dword [ebp - 0xc]
mov dword [0x2e4f098], eax
mov eax, dword [ebp - 8]
mov eax, dword [eax]
push eax
mov eax, dword [ebp - 4]
push eax
call fcn.02e474a4
add esp, 8
mov eax, dword [ebp - 8]
mov eax, dword [eax]
mov ecx, dword [ebp - 0x14]
add dword [ecx*4 + 0x2e4f132], eax
jmp 0x2e43855
jmp 0x2e437dd
pop ebx
pop ecx
pop edx
pop esi
pop edi
mov eax, dword [ebp - 0x10]
leave
ret 0x14

Function at 0x2e43866
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x18
push ebx
push esi
push edi
nop
leave
add esp, 4
pop edi
pop esi
pop edx
pop ecx
pop ebx
pop eax
leave
add esp, 4
push ebp
mov ebp, esp
sub esp, 0x20
push edi
push esi
push edx
push ecx
push ebx
mov eax, dword [ebp + 0x10]
mov dword [ebp - 0x18], eax
mov eax, dword [ebp + 0xc]
mov dword [ebp - 4], eax
mov eax, dword [ebp + 8]
mov dword [ebp - 8], eax
mov dword [ebp - 0xc], 0
mov dword [ebp - 0x14], 0
jmp 0x2e438ae
inc dword [ebp - 0x14]
cmp dword [ebp - 0x14], 0x1e
jge 0x2e43903
mov eax, dword [ebp - 0x14]
mov ecx, dword [ebp - 8]
cmp dword [eax*4 + 0x2e4f09c], ecx
jne 0x2e43901
mov eax, dword [ebp - 8]
cmp dword [0x2e4f098], eax
je 0x2e438e8
mov eax, dword [ebp - 0x14]
mov al, byte [eax + 0x2e4f114]
push eax
call fcn.02e4794d
add esp, 4
mov eax, dword [ebp - 8]
mov dword [0x2e4f098], eax
mov eax, dword [ebp - 0x18]
push eax
mov eax, dword [ebp - 4]
push eax
call fcn.02e474f0
add esp, 8
mov dword [ebp - 0xc], 1
jmp 0x2e43903
jmp 0x2e438ab
push dword [ebp + 0x18]
push dword [ebp + 0x14]
push dword [ebp + 0x10]
push dword [ebp + 0xc]
push dword [ebp + 8]
call dword [sym.imp.kernel32.dll_WriteFile]
mov dword [ebp - 0x10], eax
cmp dword [ebp - 0xc], 0
je 0x2e43931
mov eax, dword [ebp - 0x18]
push eax
mov eax, dword [ebp - 4]
push eax
call fcn.02e474a4
add esp, 8
pop ebx
pop ecx
pop edx
pop esi
pop edi
mov eax, dword [ebp - 0x10]
leave
ret 0x14
Function at 0x2e47584
Capabilities:
Read file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x20
push ebx
push esi
push edi
mov dword [ebp - 8], 0xffffffff
push 1
push 0
push 0
mov eax, dword [ebp + 8]
push eax
call dword [sym.imp.kernel32.dll_SetFilePointer]
mov dword [ebp - 4], eax
push 0
push 0
push 0x1e
mov eax, dword [ebp + 8]
push eax
call dword [sym.imp.kernel32.dll_SetFilePointer]
mov dword [ebp - 0xc], 0
jmp 0x2e475c3
inc dword [ebp - 0xc]
cmp dword [ebp - 0xc], 3
jge 0x2e47699
push 0
lea eax, [ebp - 0x14]
push eax
push 0xa
lea eax, [ebp - 0x20]
push eax
mov eax, dword [ebp + 8]
push eax
call dword [sym.imp.kernel32.dll_ReadFile]
xor eax, eax
mov al, byte [ebp - 0x20]
cmp eax, 0x54
jne 0x2e47694
xor eax, eax
mov al, byte [ebp - 0x1f]
cmp eax, 0x44
je 0x2e47613
xor eax, eax
mov al, byte [ebp - 0x1f]
cmp eax, 0x64
je 0x2e47613
xor eax, eax
mov al, byte [ebp - 0x1f]
cmp eax, 0x53
jne 0x2e47694
mov al, byte [ebp - 0x17]
mov ecx, dword [ebp + 0x10]
mov byte [ecx], al
mov eax, dword [ebp + 0x10]
mov al, byte [eax]
push eax
call fcn.02e4794d
add esp, 4
xor eax, eax
mov al, byte [ebp - 0x1f]
cmp eax, 0x64
jne 0x2e47666
mov dword [0x2e4f2ca], 1
mov dword [ebp - 0x10], 0
jmp 0x2e47649
inc dword [ebp - 0x10]
cmp dword [ebp - 0x10], 7
jge 0x2e47664
mov eax, dword [ebp - 0x10]
xor ecx, ecx
mov cl, byte [eax + ebp - 0x1e]
xor cl, byte [ebp - 0x17]
mov eax, dword [ebp - 0x10]
mov byte [eax + ebp - 0x1e], cl
jmp 0x2e47646
jmp 0x2e47670
mov dword [0x2e4f2ca], 0
mov eax, dword [ebp - 0x1e]
xor eax, 0x19611225
mov ecx, dword [ebp + 0xc]
mov dword [ecx], eax
mov eax, dword [ebp - 0x1a]
xor eax, 0x198931
and eax, 0xffffff
mov ecx, dword [ebp + 0xc]
add eax, dword [ecx]
mov dword [ebp - 8], eax
jmp 0x2e47699
jmp 0x2e475c0
push 0
push 0
mov eax, dword [ebp - 4]
push eax
mov eax, dword [ebp + 8]
push eax
call dword [sym.imp.kernel32.dll_SetFilePointer]
mov eax, dword [ebp - 8]
jmp 0x2e476b0
pop edi
pop esi
pop ebx
leave
ret

Function at 0x2e477da
Capabilities:
Read file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x18
push ebx
push esi
push edi
mov dword [ebp - 4], 0xffffffff
push 0
lea eax, [ebp - 0xc]
push eax
push 0xa
lea eax, [ebp - 0x18]
push eax
mov eax, dword [ebp + 8]
push eax
call dword [sym.imp.kernel32.dll_ReadFile]
mov dword [ebp - 8], 0
jmp 0x2e4780c
inc dword [ebp - 8]
cmp dword [ebp - 8], 9
jge 0x2e47827
mov eax, dword [ebp - 8]
xor ecx, ecx
mov cl, byte [eax + ebp - 0x18]
xor cl, byte [ebp - 0xf]
mov eax, dword [ebp - 8]
mov byte [eax + ebp - 0x18], cl
jmp 0x2e47809
cmp dword [ebp - 0x18], 0x646c6f47
jne 0x2e47871
cmp dword [ebp - 0x14], 0x6f736e65
jne 0x2e47871
xor eax, eax
mov al, byte [ebp - 0x10]
cmp eax, 0x66
jne 0x2e47871
mov al, byte [ebp - 0xf]
mov ecx, dword [ebp + 0x10]
mov byte [ecx], al
mov eax, dword [ebp + 0x10]
mov al, byte [eax]
push eax
call fcn.02e4794d
add esp, 4
cmp dword [ebp + 0xc], 0
je 0x2e47868
mov eax, dword [ebp + 0xc]
mov dword [eax], 0
mov dword [ebp - 4], 0xa
jmp 0x2e47881
push 0
push 0
push 0
mov eax, dword [ebp + 8]
push eax
call dword [sym.imp.kernel32.dll_SetFilePointer]
mov eax, dword [ebp - 4]
jmp 0x2e47886
pop edi
pop esi
pop ebx
leave
ret
Function at 0x2e47bd3
Capabilities:
Delete file

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x18
push ebx
push esi
push edi
nop
leave
add esp, 4
pop edi
pop esi
pop edx
pop ecx
pop ebx
pop eax
leave
add esp, 4
push ebp
mov ebp, esp
sub esp, 0x20
push edi
push esi
push edx
push ecx
push ebx
mov eax, dword [ebp + 8]
mov dword [ebp - 4], eax
mov eax, dword [ebp - 4]
push eax
call fcn.02e472a5
add esp, 4
mov dword [ebp - 0x18], eax
mov eax, dword [ebp - 0x18]
push eax
call fcn.02e4732d
add esp, 4
mov dword [ebp - 0xc], eax
lea eax, [ebp - 0x10]
push eax
mov eax, dword [ebp - 4]
push eax
call fcn.02e47e05
add esp, 8
cmp eax, 0xffffffff
je 0x2e47c38
mov dword [ebp - 0x14], 1
jmp 0x2e47c3f
mov dword [ebp - 0x14], 0
mov eax, dword [ebp - 4]
push eax
call dword [sym.imp.kernel32.dll_DeleteFileA]
mov dword [ebp - 8], eax
cmp dword [ebp - 0xc], 2
jne 0x2e47c6f
cmp dword [ebp - 8], 0
je 0x2e47c6f
cmp dword [ebp - 0x14], 0
je 0x2e47c6f
push 0x2e4f630
mov eax, dword [ebp - 4]
push eax
call fcn.02e47c80
add esp, 8
pop ebx
pop ecx
pop edx
pop esi
pop edi
mov eax, dword [ebp - 8]
leave
ret 4

Function at 0x2e47e53
Capabilities:
Contain obfuscated stackstrings
Write file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x41c
push ebx
push esi
push edi
push 1
push 0
push 0
mov eax, dword [ebp + 8]
push eax
call dword [sym.imp.kernel32.dll_SetFilePointer]
mov dword [ebp - 4], eax
push 2
push 0
push 0
mov eax, dword [ebp + 8]
push eax
call dword [sym.imp.kernel32.dll_SetFilePointer]
mov dword [ebp - 8], eax
cmp dword [ebp - 4], 0
jne 0x2e47f28
cmp dword [ebp - 8], 0
jne 0x2e47f28
lea eax, [ebp - 0x18]
push eax
call dword [sym.imp.kernel32.dll_GetLocalTime]
mov al, byte [ebp - 0xc]
mov ecx, dword [ebp + 0xc]
mov byte [ecx], al
mov eax, dword [ebp + 0xc]
mov al, byte [eax]
push eax
call fcn.02e4794d
add esp, 4
mov dword [ebp - 0x41c], 0x646c6f47
mov dword [ebp - 0x418], 0x6f736e65
mov byte [ebp - 0x414], 0x66
mov dword [ebp - 0x1c], 0
jmp 0x2e47ee0
inc dword [ebp - 0x1c]
cmp dword [ebp - 0x1c], 9
jge 0x2e47f02
mov eax, dword [ebp - 0x1c]
movsx eax, byte [eax + ebp - 0x41c]
mov ecx, dword [ebp + 0xc]
xor al, byte [ecx]
mov ecx, dword [ebp - 0x1c]
mov byte [ecx + ebp - 0x41c], al
jmp 0x2e47edd
mov eax, dword [ebp + 0xc]
mov al, byte [eax]
mov byte [ebp - 0x413], al
push 0
lea eax, [ebp - 0x1c]
push eax
push 0xa
lea eax, [ebp - 0x41c]
push eax
mov eax, dword [ebp + 8]
push eax
call dword [sym.imp.kernel32.dll_WriteFile]
jmp 0x2e47f3a
push 0
push 0
mov eax, dword [ebp - 4]
push eax
mov eax, dword [ebp + 8]
push eax
call dword [sym.imp.kernel32.dll_SetFilePointer]
pop edi
pop esi
pop ebx
leave
ret
Function at 0x2e4e5f6
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
mov eax, dword [ebp + 8]
push ebx
push esi
push edi
mov ecx, dword [eax + 8]
push 0xfffffffffffffff0
add ecx, 0x646c6f47
pop esi
xor word [eax + 0xc], cx
xor word [eax + 0xe], cx
xor dword [eax + 0x110], ecx
xor byte [eax + 0x114], cl
mov dword [ebp + 8], ecx
lea ecx, [eax + 0x10]
sub esi, eax
mov edi, 0x100
lea eax, [ecx + esi]
push 4
cdq
pop ebx
idiv ebx
mov al, byte [edx + ebp + 8]
xor byte [ecx], al
inc ecx
dec edi
jne 0x2e4e62c
pop edi
pop esi
pop ebx
pop ebp
ret

Function at 0x2e4e644
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
mov eax, dword [ebp + 0x10]
push ebx
push esi
push edi
mov eax, dword [eax + 8]
mov edi, 0x100
add eax, 0x646c6f47
xor esi, esi
mov dword [ebp + 0x10], eax
mov eax, dword [ebp + 0xc]
lea ecx, [eax + 7]
mov eax, esi
push 4
cdq
pop ebx
idiv ebx
mov eax, dword [ebp + 8]
mov eax, dword [eax + 4]
mov dl, byte [edx + ebp + 0x10]
xor dl, byte [eax + esi]
inc esi
mov byte [ecx], dl
inc ecx
dec edi
jne 0x2e4e665
pop edi
pop esi
pop ebx
pop ebp
ret

Function at 0x2e4e6cc
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
push esi
mov esi, dword [ebp + 0xc]
push edi
mov edi, dword [ebp + 8]
mov byte [esi], 0x4d
mov byte [esi + 1], 0x48
mov eax, dword [edi]
mov al, byte [eax]
mov byte [esi + 2], al
mov eax, dword [edi]
mov al, byte [eax + 1]
mov byte [esi + 3], al
mov eax, dword [edi + 4]
mov eax, dword [eax]
mov dword [esi + 4], eax
call fcn.02e4e779
mov dword [esi + 8], eax
mov ecx, dword [edi]
add eax, 0x646c6f47
and dword [ebp + 0xc], 0
mov cx, word [ecx + 2]
mov dword [ebp + 8], eax
xor cx, ax
mov word [esi + 0xc], cx
mov ecx, dword [edi]
mov ecx, dword [ecx + 0x12]
mov ecx, dword [ecx]
xor ecx, eax
mov dword [esi + 0x110], ecx
mov ecx, dword [edi]
mov cx, word [ecx + 8]
xor cx, ax
mov word [esi + 0xe], cx
mov ecx, dword [edi]
mov cl, byte [ecx + 0x16]
xor cl, al
mov byte [esi + 0x114], cl
mov ecx, dword [edi]
cmp word [ecx + 4], 0
jbe 0x2e4e775
push ebx
movzx eax, word [ebp + 0xc]
push 4
mov ecx, dword [ecx + 0xe]
cdq
pop ebx
idiv ebx
movzx eax, word [ebp + 0xc]
mov cl, byte [eax + ecx]
xor cl, byte [edx + ebp + 8]
inc dword [ebp + 0xc]
mov byte [esi + eax + 0x10], cl
mov ecx, dword [edi]
mov ax, word [ebp + 0xc]
cmp ax, word [ecx + 4]
jb 0x2e4e749
pop ebx
pop edi
pop esi
pop ebp
ret

Function at 0x2e4e820
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
mov eax, dword [ebp + 8]
add dword [ebp + 0x10], 0x646c6f47
push edi
xor edi, edi
mov ecx, dword [eax]
cmp word [ecx + 6], di
jbe 0x2e4e864
push ebx
push esi
movzx esi, di
mov eax, esi
push 4
cdq
pop ebx
mov ecx, dword [ecx + 0xa]
idiv ebx
mov al, byte [edx + ebp + 0x10]
mov edx, dword [ebp + 0xc]
xor al, byte [edx + esi + 7]
inc edi
mov byte [esi + ecx], al
mov eax, dword [ebp + 8]
mov ecx, dword [eax]
cmp di, word [ecx + 6]
jb 0x2e4e83a
pop esi
pop ebx
pop edi
pop ebp
ret
Function at 0x2e4ed2a
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
push ecx
push ebx
push esi
push edi
push es
mov ax, 0x101f
mov es, ax
xor eax, eax
mov esi, eax
mov ecx, 0x8000
xor al, byte es:[esi]
inc esi
loop 0x2e4ed42
pop es
mov byte [ebp - 4], al
movzx eax, byte [ebp - 4]
test eax, eax
jne 0x2e4ed58
mov byte [ebp - 4], 0x55
mov eax, dword [ebp + 8]
mov cl, byte [ebp - 4]
mov byte [eax], cl
xor al, al
pop edi
pop esi
pop ebx
leave
ret

Function at 0x41ad50
Capabilities:
Packed with generic packer

Disassembly:
pushal
mov esi, 0x411015
lea edi, [esi - 0x10015]
push edi
or ebp, 0xffffffff
jmp 0x41ad72
mov al, byte [esi]
inc esi
mov byte [edi], al
inc edi
add ebx, ebx
jne 0x41ad79
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
jb 0x41ad68
mov eax, 1
add ebx, ebx
jne 0x41ad8b
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc eax, eax
add ebx, ebx
jae 0x41ad80
jne 0x41ad9c
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
jae 0x41ad80
xor ecx, ecx
sub eax, 3
jb 0x41adb0
shl eax, 8
mov al, byte [esi]
inc esi
xor eax, 0xffffffff
je 0x41ae22
mov ebp, eax
add ebx, ebx
jne 0x41adbb
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc ecx, ecx
add ebx, ebx
jne 0x41adc8
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc ecx, ecx
jne 0x41adec
inc ecx
add ebx, ebx
jne 0x41add8
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc ecx, ecx
add ebx, ebx
jae 0x41adcd
jne 0x41ade9
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
jae 0x41adcd
add ecx, 2
cmp ebp, 0xfffff300
adc ecx, 1
lea edx, [edi + ebp]
cmp ebp, 0xfffffffc
jbe 0x41ae0c
mov al, byte [edx]
inc edx
mov byte [edi], al
inc edi
dec ecx
jne 0x41adfd
jmp 0x41ad6e
mov eax, dword [edx]
add edx, 4
mov dword [edi], eax
add edi, 4
sub ecx, 4
ja 0x41ae0c
add edi, ecx
jmp 0x41ad6e
pop esi
mov edi, esi
mov ecx, 0x2b3
mov al, byte [edi]
inc edi
sub al, 0xe8
cmp al, 1
ja 0x41ae2a
cmp byte [edi], 5
jne 0x41ae2a
mov eax, dword [edi]
mov bl, byte [edi + 4]
shr ax, 8
rol eax, 0x10
xchg ah, al
sub eax, edi
sub bl, 0xe8
add eax, esi
mov dword [edi], eax
add edi, 5
mov al, bl
loop 0x41ae2f
lea edi, [esi + 0x18000]
mov eax, dword [edi]
or eax, eax
je 0x41aea7
mov ebx, dword [edi + 4]
lea eax, [eax + esi + 0x1a000]
add ebx, esi
push eax
add edi, 8
call dword [esi + 0x1a094]
xchg ebp, eax
mov al, byte [edi]
inc edi
or al, al
je 0x41ae5c
mov ecx, edi
jns 0x41ae8b
movzx eax, word [edi]
inc edi
push eax
inc edi
mov ecx, 0xaef24857
push edi
dec eax
repne scasb al, byte es:[edi]
push ebp
call dword [esi + 0x1a09c]
or eax, eax
je 0x41aea1
mov dword [ebx], eax
add ebx, 4
jmp 0x41ae79
call dword [esi + 0x1a098]
mov ebp, dword [esi + 0x1a0a0]
lea edi, [esi - 0x1000]
mov ebx, 0x1000
push eax
push esp
push 4
push ebx
push edi
call ebp
lea eax, [edi + 0x19f]
and byte [eax], 0x7f
and byte [eax + 0x28], 0x7f
pop eax
push eax
push esp
push eax
push ebx
push edi
call ebp
pop eax
popal
lea eax, [esp - 0x80]
push 0
cmp esp, eax
jne 0x41aedb
sub esp, 0xffffff80
jmp 0x404c20
Function at 0x401df0
Capabilities:
Query environment variable

Disassembly:
sub esp, 0x20
mov ecx, 8
xor eax, eax
push edi
lea edi, [esp + 4]
rep stosd dword es:[edi], eax
lea eax, [esp + 4]
push 0x20
push eax
push str.KSLIBCREATOR_POINTER
call dword [sym.imp.KERNEL32.dll_GetEnvironmentVariableA]
lea ecx, [esp + 4]
push ecx
call fcn.00404172
add esp, 4
mov dword [0x410d64], eax
pop edi
add esp, 0x20
ret

Function at 0x401e30
Capabilities:
Query environment variable

Disassembly:
mov eax, dword [0x410d64]
sub esp, 0x20
test eax, eax
jne 0x401e71
push edi
mov ecx, 8
lea edi, [esp + 4]
push 0x20
rep stosd dword es:[edi], eax
lea eax, [esp + 8]
push eax
push str.KSLIBCREATOR_POINTER
call dword [sym.imp.KERNEL32.dll_GetEnvironmentVariableA]
lea ecx, [esp + 4]
push ecx
call fcn.00404172
add esp, 4
mov dword [0x410d64], eax
test eax, eax
pop edi
je 0x401e7f
mov ecx, dword [esp + 0x24]
mov edx, dword [eax]
push ecx
push eax
call dword [edx]
add esp, 0x20
ret
xor eax, eax
add esp, 0x20
ret
Function at 0x408e45
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x1a4
mov edx, dword [ebp + 8]
xor ecx, ecx
mov eax, 0x410870
cmp edx, dword [eax]
je 0x408e67
add eax, 8
inc ecx
cmp eax, 0x410900
jl 0x408e58
push esi
mov esi, ecx
shl esi, 3
cmp edx, dword [esi + 0x410870]
jne 0x408f95
mov eax, dword [0x410e90]
cmp eax, 1
je 0x408f6f
test eax, eax
jne 0x408e98
cmp dword [0x40e1e4], 1
je 0x408f6f
cmp edx, 0xfc
je 0x408f95
lea eax, [ebp - 0x1a4]
push 0x104
push eax
push 0
call dword [sym.imp.KERNEL32.dll_GetModuleFileNameA]
test eax, eax
jne 0x408ecf
lea eax, [ebp - 0x1a4]
push str._program_name_unknown_
push eax
call fcn.0040aed0
pop ecx
pop ecx
lea eax, [ebp - 0x1a4]
push edi
push eax
lea edi, [ebp - 0x1a4]
call fcn.00405be0
inc eax
pop ecx
cmp eax, 0x3c
jbe 0x408f12
lea eax, [ebp - 0x1a4]
push eax
call fcn.00405be0
mov edi, eax
lea eax, [ebp - 0x1a4]
sub eax, 0x3b
push 3
add edi, eax
push 0x40d66c
push edi
call fcn.00409b30
add esp, 0x10
lea eax, [ebp - 0xa0]
push str.Runtime_Error__n_nProgram:
push eax
call fcn.0040aed0
lea eax, [ebp - 0xa0]
push edi
push eax
call fcn.0040aee0
lea eax, [ebp - 0xa0]
push 0x40d64c
push eax
call fcn.0040aee0
push dword [esi + 0x410874]
lea eax, [ebp - 0xa0]
push eax
call fcn.0040aee0
push 0x12010
lea eax, [ebp - 0xa0]
push str.Microsoft_Visual_C_Runtime_Library
push eax
call fcn.0040b19c
add esp, 0x2c
pop edi
jmp 0x408f95
lea eax, [ebp + 8]
lea esi, [esi + 0x410874]
push 0
push eax
push dword [esi]
call fcn.00405be0
pop ecx
push eax
push dword [esi]
push 0xfffffffffffffff4
call dword [sym.imp.KERNEL32.dll_GetStdHandle]
push eax
call dword [sym.imp.KERNEL32.dll_WriteFile]
pop esi
leave
ret
Function at 0x401000
Capabilities:
Accept command line arguments
Query environment variable

Disassembly:
jmp 0x401012
mov eax, dword [0x49f1a7]
shl eax, 2
mov dword [0x49f1ab], eax
push edx
push 0
call sub.KERNEL32.DLL_GetModuleHandleA
mov edx, eax
call fcn.00494540
pop edx
call fcn.00493848
call fcn.00494544
push 0
call fcn.004957d8
pop ecx
push 0x49f150
push 0
call sub.KERNEL32.DLL_GetModuleHandleA
mov dword [0x49f1af], eax
push 0
jmp fcn.0049c5fc
Function at 0x406b18
Capabilities:
Encode data using xor

Disassembly:
mov edx, dword [eax]
cmp edx, 0x11
jle 0x406b38
mov ecx, dword [eax + edx*4]
xor dword [eax + edx*4 - 0x44], ecx
mov ecx, dword [eax + edx*4]
xor dword [eax + edx*4 - 0x38], ecx
xor ecx, ecx
mov dword [eax + edx*4], ecx
dec edx
cmp edx, 0x11
jg 0x406b1f
cmp dword [eax], 0x11
jbe 0x406b53
mov dword [eax], 0x11
jmp 0x406b47
dec dword [eax]
mov edx, dword [eax]
test edx, edx
je 0x406b53
cmp dword [eax + edx*4], 0
je 0x406b45
ret

Function at 0x40738c
Capabilities:
Encode data using xor

Disassembly:
push ebx
push esi
push edi
mov esi, ecx
mov ebx, edx
mov edi, eax
mov eax, dword [esi]
cmp eax, dword [ebx]
jae 0x4073d3
mov eax, 1
jmp 0x4073ac
mov edx, dword [esi + eax*4]
xor edx, dword [ebx + eax*4]
mov dword [edi + eax*4], edx
inc eax
cmp eax, dword [esi]
jbe 0x4073a2
mov ecx, dword [ebx]
mov edx, eax
sub ecx, dword [esi]
shl ecx, 2
shl edx, 2
push ecx
mov ecx, edx
add ecx, ebx
add edx, edi
push ecx
push edx
call fcn.004947d8
add esp, 0xc
mov eax, dword [ebx]
mov dword [edi], eax
jmp 0x407438
mov eax, dword [esi]
cmp eax, dword [ebx]
jbe 0x407411
mov eax, 1
jmp 0x4073ea
mov edx, dword [esi + eax*4]
xor edx, dword [ebx + eax*4]
mov dword [edi + eax*4], edx
inc eax
cmp eax, dword [ebx]
jbe 0x4073e0
mov ecx, dword [esi]
mov edx, eax
sub ecx, dword [ebx]
shl ecx, 2
shl edx, 2
push ecx
mov ecx, edx
add ecx, esi
add edx, edi
push ecx
push edx
call fcn.004947d8
add esp, 0xc
mov eax, dword [esi]
mov dword [edi], eax
jmp 0x407438
mov eax, dword [ebx]
test eax, eax
jbe 0x407424
mov edx, dword [esi + eax*4]
xor edx, dword [ebx + eax*4]
jne 0x407424
dec eax
test eax, eax
ja 0x407417
mov dword [edi], eax
test eax, eax
jbe 0x407438
mov ecx, dword [esi + eax*4]
xor ecx, dword [ebx + eax*4]
mov dword [edi + eax*4], ecx
dec eax
test eax, eax
ja 0x40742a
pop edi
pop esi
pop ebx
ret