joyce8/EMBER2024-capa huggingface dataset:
Function at 0x401fe3
Capabilities:
Encrypt data using aes
Reference aes constants

Disassembly:
push ebp
mov ebp, esp
push ecx
push ebx
push esi
push edi
mov edi, dword [ebp + 8]
mov esi, ecx
shr edi, 2
xor ebx, ebx
mov eax, edi
mov dword [ebp - 4], 1
shr eax, 1
mov ecx, ebx
add eax, 3
mov dword [esi], eax
add esi, 0x10
test edi, edi
je 0x40201a
mov eax, dword [edx]
lea edx, [edx + 4]
mov dword [esi + ecx*4], eax
inc ecx
cmp ecx, edi
jb 0x40200d
mov edx, dword [esi + edi*4 - 4]
imul eax, edi, 0xc
add eax, 0x70
add eax, esi
mov dword [ebp + 8], eax
test ebx, ebx
jne 0x402088
movzx eax, dl
mov ebx, dword [ebp - 4]
push 0x1b
movzx ecx, byte [eax + str.cw]
mov eax, edx
shr eax, 0x18
shl ecx, 8
movzx eax, byte [eax + str.cw]
or ecx, eax
mov eax, edx
shr eax, 0x10
movzx eax, al
shr edx, 8
shl ecx, 8
movzx eax, byte [eax + str.cw]
or ecx, eax
movzx eax, dl
shl ecx, 8
movzx edx, byte [eax + str.cw]
xor edx, ebx
add ebx, ebx
or edx, ecx
test ebx, 0x100
pop eax
cmovne ebx, eax
mov dword [ebp - 4], ebx
mov ebx, edi
jmp 0x4020d5
cmp ebx, 4
jne 0x4020d8
cmp edi, 6
jbe 0x4020d8
mov eax, edx
shr eax, 0x10
movzx eax, al
movzx ecx, byte [eax + str.cw]
mov eax, edx
shr eax, 0x18
movzx eax, byte [eax + str.cw]
shl eax, 8
or ecx, eax
mov eax, edx
shr eax, 8
movzx eax, al
shl ecx, 8
movzx eax, byte [eax + str.cw]
or ecx, eax
movzx eax, dl
shl ecx, 8
movzx edx, byte [eax + str.cw]
or edx, ecx
mov eax, dword [ebp + 8]
xor edx, dword [esi]
dec ebx
mov dword [esi + edi*4], edx
add esi, 4
cmp esi, eax
jne 0x402029
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 4

Function at 0x402db1
Capabilities:
Check os version
Get common file path

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x2d4
mov eax, dword [0x452094]
xor eax, ebp
mov dword [ebp - 4], eax
call dword [sym.imp.KERNEL32.dll_GetVersion]
cmp ax, 6
je 0x402dfa
push str.SetDefaultDllDirectories
push str.kernel32.dll
call dword [sym.imp.KERNEL32.dll_GetModuleHandleA]
push eax
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
test eax, eax
je 0x402dfa
push 0xc00
call eax
test eax, eax
jne 0x402e95
push 0x106
lea eax, [ebp - 0x2d4]
push eax
call dword [sym.imp.KERNEL32.dll_GetSystemDirectoryW]
test eax, eax
je 0x402e95
cmp eax, 0x104
ja 0x402e95
push 0x5c
pop ecx
cmp word [ebp + eax*2 - 0x2d6], cx
je 0x402e31
mov word [ebp + eax*2 - 0x2d4], cx
inc eax
cmp byte [str.userenv], 0
push esi
mov esi, str.userenv
je 0x402e94
push ebx
push edi
lea edi, [ebp - 0x2d4]
push 0x6c
lea edi, [edi + eax*2]
pop ebx
mov ecx, edi
jmp 0x402e5b
movzx eax, al
mov word [ecx], ax
add ecx, 2
mov al, byte [esi]
inc esi
test al, al
jne 0x402e52
push 0x2e
pop eax
push 0x64
mov word [ecx], ax
pop eax
mov word [ecx + 2], ax
xor eax, eax
push 8
push eax
mov word [ecx + 8], ax
lea eax, [ebp - 0x2d4]
push eax
mov word [ecx + 4], bx
mov word [ecx + 6], bx
call dword [sym.imp.KERNEL32.dll_LoadLibraryExW]
cmp byte [esi], 0
jne 0x402e4e
pop edi
pop ebx
pop esi
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.00435196
mov esp, ebp
pop ebp
ret
Function at 0x4079d0
Capabilities:
Create thread

Disassembly:
push ebp
mov ebp, esp
push ecx
push esi
lea eax, [ebp - 4]
xor esi, esi
push eax
push esi
push dword [ebp + 0x10]
push dword [ebp + 0xc]
push esi
push esi
call fcn.0043b5ee
mov ecx, dword [ebp + 8]
add esp, 0x18
mov dword [ecx], eax
test eax, eax
jne 0x4079fc
call fcn.004078e2
mov esi, eax
mov eax, esi
pop esi
mov esp, ebp
pop ebp
ret 0xc

Function at 0x409b5c
Capabilities:
Create directory

Disassembly:
push 0x44
mov eax, 0x44364d
call fcn.0043544f
cmp byte [0x458910], 0
mov edi, dword [ebp + 8]
jne 0x409b9c
push edi
lea eax, [ebp - 0x18]
push eax
call fcn.00408acf
xor ebx, ebx
push ebx
push dword [eax]
call dword [sym.imp.KERNEL32.dll_CreateDirectoryA]
push dword [ebp - 0x18]
mov esi, eax
call fcn.00435405
pop ecx
test esi, esi
je 0x409baa
mov al, 1
jmp 0x409bf0
xor ebx, ebx
push ebx
push edi
call dword [sym.imp.KERNEL32.dll_CreateDirectoryW]
test eax, eax
jmp 0x409b96
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0xb7
je 0x409bbb
xor al, al
jmp 0x409bf0
lea ecx, [ebp - 0x50]
call fcn.0040a404
lea ecx, [ebp - 0x28]
call fcn.00407e5b
push ebx
push edi
lea ecx, [ebp - 0x50]
mov dword [ebp - 4], ebx
call fcn.0040a620
test al, al
je 0x409be5
mov ebx, dword [ebp - 0x30]
shr ebx, 4
and bl, 1
push dword [ebp - 0x28]
call fcn.00435405
pop ecx
mov al, bl
call fcn.00435418
ret 4

Function at 0x409bf8
Capabilities:
Create directory

Disassembly:
push ebp
mov ebp, esp
sub esp, 0xc
cmp byte [0x458910], 0
jne 0x409c32
push esi
push dword [ebp + 8]
lea eax, [ebp - 0xc]
push eax
call fcn.00408acf
push 0
push dword [eax]
call dword [sym.imp.KERNEL32.dll_CreateDirectoryA]
push dword [ebp - 0xc]
mov esi, eax
call fcn.00435405
pop ecx
test esi, esi
pop esi
je 0x409c41
mov al, 1
jmp 0x409c43
push 0
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.dll_CreateDirectoryW]
test eax, eax
jmp 0x409c2c
xor al, al
mov esp, ebp
pop ebp
ret 4

Function at 0x409dd3
Capabilities:
Delete file

Disassembly:
push ebp
mov ebp, esp
sub esp, 0xc
push esi
mov esi, dword [ebp + 8]
push esi
call fcn.0040ac3f
cmp eax, 0xffffffff
je 0x409e00
mov ecx, eax
and cl, 0x11
cmp cl, 1
jne 0x409e00
and eax, 0xfffffffe
push eax
push esi
call fcn.0040a374
test al, al
je 0x409e38
cmp byte [0x458910], 0
push esi
jne 0x409e2e
lea eax, [ebp - 0xc]
push eax
call fcn.00408acf
push dword [eax]
call dword [sym.imp.KERNEL32.dll_DeleteFileA]
push dword [ebp - 0xc]
mov esi, eax
call fcn.00435405
pop ecx
test esi, esi
je 0x409e38
mov al, 1
jmp 0x409e3a
call dword [sym.imp.KERNEL32.dll_DeleteFileW]
test eax, eax
jmp 0x409e28
xor al, al
pop esi
mov esp, ebp
pop ebp
ret 4

Function at 0x40a0b5
Capabilities:
Delete directory

Disassembly:
push ebp
mov ebp, esp
sub esp, 0xc
cmp byte [0x458910], 0
jne 0x40a0ed
push esi
push dword [ebp + 8]
lea eax, [ebp - 0xc]
push eax
call fcn.00408acf
push dword [eax]
call dword [sym.imp.KERNEL32.dll_RemoveDirectoryA]
push dword [ebp - 0xc]
mov esi, eax
call fcn.00435405
pop ecx
test esi, esi
pop esi
je 0x40a0fa
mov al, 1
jmp 0x40a0fc
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.dll_RemoveDirectoryW]
test eax, eax
jmp 0x40a0e7
xor al, al
mov esp, ebp
pop ebp
ret 4
Function at 0x40a2c8
Capabilities:
Set current directory

Disassembly:
push ebp
mov ebp, esp
sub esp, 0xc
cmp byte [0x458910], 0
jne 0x40a2ff
push esi
push dword [ebp + 8]
lea eax, [ebp - 0xc]
push eax
call fcn.00408acf
push dword [eax]
call dword [sym.imp.KERNEL32.dll_SetCurrentDirectoryA]
push dword [ebp - 0xc]
mov esi, eax
call fcn.00435405
test esi, esi
pop ecx
setne al
pop esi
jmp 0x40a30e
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.dll_SetCurrentDirectoryW]
neg eax
sbb eax, eax
neg eax
mov esp, ebp
pop ebp
ret 4

Function at 0x40a374
Capabilities:
Set file attributes

Disassembly:
push ebp
mov ebp, esp
sub esp, 0xc
cmp byte [0x458910], 0
jne 0x40a3af
push esi
push dword [ebp + 8]
lea eax, [ebp - 0xc]
push eax
call fcn.00408acf
push dword [ebp + 0xc]
push dword [eax]
call dword [sym.imp.KERNEL32.dll_SetFileAttributesA]
push dword [ebp - 0xc]
mov esi, eax
call fcn.00435405
pop ecx
test esi, esi
pop esi
je 0x40a3bf
mov al, 1
jmp 0x40a3c1
push dword [ebp + 0xc]
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.dll_SetFileAttributesW]
test eax, eax
jmp 0x40a3a9
xor al, al
mov esp, ebp
pop ebp
ret 8

Function at 0x40ac3f
Capabilities:
Get file attributes

Disassembly:
push ebp
mov ebp, esp
sub esp, 0xc
cmp byte [0x458910], 0
jne 0x40ac73
push esi
push dword [ebp + 8]
lea eax, [ebp - 0xc]
push eax
call fcn.00408acf
push dword [eax]
call dword [sym.imp.KERNEL32.dll_GetFileAttributesA]
push dword [ebp - 0xc]
mov esi, eax
call fcn.00435405
pop ecx
mov eax, esi
pop esi
jmp 0x40ac86
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.dll_GetFileAttributesW]
or ecx, 0xffffffff
cmp eax, ecx
cmovne ecx, eax
mov eax, ecx
mov esp, ebp
pop ebp
ret 4

Function at 0x40ae71
Capabilities:
Get file size

Disassembly:
push ebp
mov ebp, esp
push ecx
and dword [ebp - 4], 0
lea eax, [ebp - 4]
push esi
push eax
push dword [ecx]
call dword [sym.imp.KERNEL32.dll_GetFileSize]
mov esi, eax
cmp esi, 0xffffffff
jne 0x40ae9b
call dword [sym.imp.KERNEL32.dll_GetLastError]
test eax, eax
je 0x40ae9b
xor al, al
jmp 0x40aeaf
mov eax, dword [ebp + 8]
xor ecx, ecx
mov edx, dword [ebp - 4]
add ecx, esi
adc edx, 0
mov dword [eax], ecx
mov dword [eax + 4], edx
mov al, 1
pop esi
mov esp, ebp
pop ebp
ret 4
Function at 0x41859f
Capabilities:
Access peb ldr_data

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x444585
mov eax, dword fs:[0]
push eax
push esi
mov eax, dword [0x452094]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov esi, ecx
lea ecx, [esi + 0xa8]
call fcn.0041864e
lea ecx, [esi + 0x78]
call fcn.0041864e
push dword [esi + 0x30]
call fcn.00435405
push dword [esi + 0x24]
call fcn.00435405
push dword [esi + 0x18]
call fcn.00435405
add esp, 0xc
and dword [ebp - 4], 0
mov ecx, dword [esi + 0xc]
test ecx, ecx
je 0x418603
mov eax, dword [ecx]
push ecx
call dword [eax + 8]
mov ecx, dword [esi + 8]
mov dword [ebp - 4], 1
test ecx, ecx
je 0x418617
mov eax, dword [ecx]
push ecx
call dword [eax + 8]
mov ecx, dword [esi + 4]
mov dword [ebp - 4], 2
test ecx, ecx
je 0x41862b
mov eax, dword [ecx]
push ecx
call dword [eax + 8]
mov ecx, dword [esi]
mov dword [ebp - 4], 3
test ecx, ecx
je 0x41863e
mov eax, dword [ecx]
push ecx
call dword [eax + 8]
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop esi
mov esp, ebp
pop ebp
ret
Function at 0x41ae78
Capabilities:
Access peb ldr_data

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x443e9f
mov eax, dword fs:[0]
push eax
push esi
mov eax, dword [0x452094]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov esi, ecx
call fcn.00419ff2
lea ecx, [esi + 0x30]
call fcn.0041864e
push dword [esi + 0x24]
call fcn.00435405
pop ecx
lea ecx, [esi + 0xc]
call fcn.00407a27
mov ecx, esi
call fcn.0041ae3e
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop esi
mov esp, ebp
pop ebp
ret

Function at 0x41b502
Capabilities:
Hide graphical window

Disassembly:
push 0xc
mov eax, 0x443757
call fcn.0043544f
mov esi, ecx
push 0
push dword [ebp + 0xc]
lea ecx, [esi + 0x68]
push dword [ebp + 8]
call fcn.0041b071
push 0xce4
lea eax, [ebp - 0x18]
push eax
call fcn.0041a0fe
push dword [eax]
and dword [ebp - 4], 0
push dword [esi + 0x6c]
call fcn.0040bece
push dword [ebp - 0x18]
call fcn.00435405
pop ecx
push 1
push dword [esi + 0x6c]
call dword [sym.imp.USER32.dll_ShowWindow]
xor eax, eax
call fcn.00435418
ret 8
Function at 0x4341c8
Capabilities:
Read file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x210
mov eax, dword [0x452094]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
mov ebx, dword [ebp + 8]
lea eax, [ebp - 0x20c]
push esi
push edi
mov edi, dword [ebp + 0xc]
xor esi, esi
push 0x208
push esi
push eax
call fcn.00436cf0
add esp, 0xc
lea eax, [ebp - 0x20c]
push 0x104
push eax
push esi
call dword [sym.imp.KERNEL32.dll_GetModuleFileNameW]
push esi
push 0x80
push 3
push esi
push 1
push SysReAllocStringLen
lea eax, [ebp - 0x20c]
push eax
call dword [sym.imp.KERNEL32.dll_CreateFileW]
mov esi, eax
cmp esi, 0xffffffff
je 0x434264
push edi
push esi
call fcn.0043451b
push dword [edi]
and dword [ebp - 0x210], 0
call fcn.004353fc
pop ecx
push 0
lea ecx, [ebp - 0x210]
mov dword [ebx], eax
push ecx
push dword [edi]
push eax
push esi
call dword [sym.imp.KERNEL32.dll_ReadFile]
push esi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov ecx, dword [ebp - 4]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.00435196
mov esp, ebp
pop ebp
ret 8

Function at 0x43451b
Capabilities:
Get file size

Disassembly:
push ebp
mov ebp, esp
push ecx
and dword [ebp - 4], 0
lea eax, [ebp - 4]
push esi
push eax
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.dll_GetFileSize]
mov esi, eax
cmp esi, 0xffffffff
jne 0x434546
call dword [sym.imp.KERNEL32.dll_GetLastError]
test eax, eax
je 0x434546
xor al, al
jmp 0x43455a
mov eax, dword [ebp + 0xc]
xor ecx, ecx
mov edx, dword [ebp - 4]
add ecx, esi
adc edx, 0
mov dword [eax], ecx
mov dword [eax + 4], edx
mov al, 1
pop esi
mov esp, ebp
pop ebp
ret 8
Function at 0x40c118
Capabilities:
Get common file path
Set current directory

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x410
movzx eax, byte [ebp + 8]
test eax, eax
sete byte [ebp - 5]
mov al, byte [ebp - 5]
test al, al
jne 0x40c1dd
movzx eax, byte [ebp + 8]
add eax, 0x40
mov byte [0x40e1ac], al
lea eax, [ebp - 0x210]
push eax
push 0x104
call sub.kernel32.dll_GetCurrentDirectoryA
lea eax, [0x40e1ac]
push eax
call sub.kernel32.dll_SetCurrentDirectoryA
test eax, eax
jne 0x40c1dd
call sub.kernel32.dll_GetLastError
and eax, 0xffff
mov dword [0x40f390], eax
call fcn.004088c8
mov eax, dword [ebp + 0xc]
movzx edx, byte [ebp + 8]
add edx, 0x40
mov edi, edx
shl edi, 8
or edi, 1
mov word [ebp - 0x310], di
lea edi, [ebp - 0x410]
push edi
lea edi, [ebp - 0x310]
push edi
push 0xff
call fcn.00402408
push eax
lea edi, [ebp - 0x410]
push edi
push 0x40e33e
call fcn.00402448
mov eax, dword [esp]
lea edi, [ebp - 0x410]
push edi
push dword [ebp + 0x10]
call fcn.00402408
lea eax, [ebp - 0x210]
push eax
call sub.kernel32.dll_SetCurrentDirectoryA
jmp 0x40c256
lea eax, [ebp - 0x10c]
push eax
push 0x104
call sub.kernel32.dll_GetCurrentDirectoryA
mov al, byte [ebp - 5]
test al, al
jne 0x40c201
lea eax, [ebp - 0x210]
push eax
call sub.kernel32.dll_SetCurrentDirectoryA
mov eax, dword [ebp + 0xc]
push eax
lea eax, [ebp - 0x10c]
push eax
lea edi, [ebp - 0x310]
push edi
call fcn.004024f8
mov eax, dword [esp]
lea edi, [ebp - 0x310]
push edi
push dword [ebp + 0x10]
call fcn.00402408
mov al, byte [0x40e0cc]
test al, al
jne 0x40c256
mov eax, dword [ebp + 0xc]
push eax
push eax
lea edi, [ebp - 0x310]
push edi
call fcn.00404318
mov eax, dword [esp]
lea edi, [ebp - 0x310]
push edi
push dword [ebp + 0x10]
call fcn.00402408
leave
ret 0xc
Function at 0x40cef8
Capabilities:
Encrypt data using rc4 prga

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x408
lea edi, [ebp - 0x100]
push edi
mov edi, dword [ebp + 0xc]
push edi
push 0xff
call fcn.00402408
mov byte [ebp - 0x204], 0
mov word [ebp - 0x102], 0
movsx eax, word [ebp - 0x102]
add eax, 1
jno 0x40cf37
call fcn.00407268
mov ecx, eax
mov edi, 0x40e398
call fcn.00402728
mov word [ebp - 0x102], ax
movsx eax, word [ebp - 0x102]
mov dl, byte [ebp + eax - 0x100]
mov byte [ebp - 0x103], dl
mov al, byte [ebp - 0x103]
cmp al, 0x30
setb al
mov dl, byte [ebp - 0x103]
cmp dl, 0x39
seta dl
xor dl, al
or dl, dl
jne 0x40cf7d
jmp 0x40cf26
mov word [ebp - 0x102], 0
movsx eax, word [ebp - 0x102]
add eax, 1
jno 0x40cf97
call fcn.00407268
mov ecx, eax
mov edi, 0x40e398
call fcn.00402728
mov word [ebp - 0x102], ax
movsx eax, word [ebp - 0x102]
mov al, byte [ebp + eax - 0x100]
cmp al, byte [ebp - 0x103]
je 0x40cfc5
jmp 0x40d045
movzx ax, byte [ebp - 0x100]
mov word [ebp - 0x208], ax
mov word [ebp - 0x102], 1
mov ax, word [ebp - 0x102]
cmp ax, word [ebp - 0x208]
jg 0x40d045
nop
nop
nop
movsx eax, word [ebp - 0x102]
mov al, byte [ebp + eax - 0x100]
cmp al, 0x30
jae 0x40d004
jmp 0x40d02c
movsx eax, word [ebp - 0x102]
mov al, byte [ebp + eax - 0x100]
cmp al, 0x39
jbe 0x40d018
jmp 0x40d02c
movsx eax, word [ebp - 0x102]
mov dl, byte [ebp - 0x103]
mov byte [ebp + eax - 0x100], dl
mov ax, word [ebp - 0x102]
cmp ax, word [ebp - 0x208]
jge 0x40d045
inc word [ebp - 0x102]
jmp 0x40cff0
movsx eax, word [ebp - 0x102]
mov al, byte [ebp + eax - 0x100]
cmp al, byte [ebp - 0x103]
je 0x40d074
jmp 0x40d05d
movsx eax, word [ebp - 0x102]
movzx edx, byte [ebp - 0x100]
cmp edx, eax
je 0x40d074
jmp 0x40cf86
movzx ax, byte [ebp - 0x100]
mov word [ebp - 0x208], ax
mov word [ebp - 0x102], 1
mov ax, word [ebp - 0x102]
cmp ax, word [ebp - 0x208]
jg 0x40d118
lea edi, [ebp - 0x308]
push edi
lea edi, [ebp - 0x204]
push edi
push 0xff
call fcn.00402408
movsx eax, word [ebp - 0x102]
movzx edi, byte [ebp + eax - 0x100]
shl edi, 8
or edi, 1
mov word [ebp - 0x408], di
lea edi, [ebp - 0x308]
push edi
lea edi, [ebp - 0x408]
push edi
call fcn.00402448
lea edi, [ebp - 0x204]
push edi
lea edi, [ebp - 0x308]
push edi
push 0xff
call fcn.00402408
mov ax, word [ebp - 0x102]
cmp ax, word [ebp - 0x208]
jge 0x40d118
inc word [ebp - 0x102]
jmp 0x40d0a0
mov eax, dword [ebp + 8]
push eax
lea edi, [ebp - 0x204]
push edi
push 0xff
call fcn.00402408
leave
ret 8
Function at 0x483560
Capabilities:
Packed with generic packer

Disassembly:
pushal
mov esi, section.UPX1
lea edi, [esi - 0x4b000]
push edi
or ebp, 0xffffffff
jmp 0x483582
mov al, byte [esi]
inc esi
mov byte [edi], al
inc edi
add ebx, ebx
jne 0x483589
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
jb 0x483578
mov eax, 1
add ebx, ebx
jne 0x48359b
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc eax, eax
add ebx, ebx
jae 0x4835ac
jne 0x4835cb
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
jb 0x4835cb
dec eax
add ebx, ebx
jne 0x4835b8
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc eax, eax
jmp 0x483590
add ebx, ebx
jne 0x4835c7
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc ecx, ecx
jmp 0x48361d
xor ecx, ecx
sub eax, 3
jb 0x4835e3
shl eax, 8
mov al, byte [esi]
inc esi
xor eax, 0xffffffff
je 0x483652
sar eax, 1
mov ebp, eax
jmp 0x4835ee
add ebx, ebx
jne 0x4835ee
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
jb 0x4835bc
inc ecx
add ebx, ebx
jne 0x4835fc
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
jb 0x4835bc
add ebx, ebx
jne 0x483609
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc ecx, ecx
add ebx, ebx
jae 0x4835fe
jne 0x48361a
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
jae 0x4835fe
add ecx, 2
cmp ebp, 0xfffffb00
adc ecx, 2
lea edx, [edi + ebp]
cmp ebp, 0xfffffffc
jbe 0x48363c
mov al, byte [edx]
inc edx
mov byte [edi], al
inc edi
dec ecx
jne 0x48362e
jmp 0x48357e
mov eax, dword [edx]
add edx, 4
mov dword [edi], eax
add edi, 4
sub ecx, 4
ja 0x48363c
add edi, ecx
jmp 0x48357e
pop esi
mov edi, esi
mov ecx, 0x1d57
mov al, byte [edi]
inc edi
sub al, 0xe8
cmp al, 1
ja 0x48365a
cmp byte [edi], 0x11
jne 0x48365a
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 0x48365f
lea edi, [esi + 0x7e000]
mov eax, dword [edi]
or eax, eax
je 0x4836d7
mov ebx, dword [edi + 4]
lea eax, [eax + esi + 0x831e4]
add ebx, esi
push eax
add edi, 8
call dword [esi + 0x83404]
xchg ebp, eax
mov al, byte [edi]
inc edi
or al, al
je 0x48368c
mov ecx, edi
jns 0x4836bb
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 + 0x8340c]
or eax, eax
je 0x4836d1
mov dword [ebx], eax
add ebx, 4
jmp 0x4836a9
call dword [esi + 0x83408]
add edi, 4
lea ebx, [esi - 4]
xor eax, eax
mov al, byte [edi]
inc edi
or eax, eax
je 0x483708
cmp al, 0xef
ja 0x4836fb
add ebx, eax
mov eax, dword [ebx]
xchg ah, al
rol eax, 0x10
xchg ah, al
add eax, esi
mov dword [ebx], eax
jmp 0x4836dd
and al, 0xf
shl eax, 0x10
mov ax, word [edi]
add edi, 2
jmp 0x4836ea
mov ebp, dword [esi + 0x83410]
lea edi, [esi - 0x1000]
mov ebx, 0x1000
push eax
push esp
push 4
push ebx
push edi
call ebp
lea eax, [edi + 0x22f]
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 0x48373c
sub esp, 0xffffff80
jmp 0x40db30
Function at 0x4011d0
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
push ecx
push edi
push 0
push 0x80
push 4
push 0
push 2
push 0xc0000000
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.dll_CreateFileA]
mov edi, eax
cmp edi, 0xffffffff
jne 0x4011fe
xor eax, eax
pop edi
mov esp, ebp
pop ebp
ret
push esi
push 2
push 0
push 0
push edi
call dword [sym.imp.KERNEL32.dll_SetFilePointer]
mov esi, dword [ebp + 0xc]
push esi
call dword [sym.imp.KERNEL32.dll_lstrlenA]
push 0
lea ecx, [ebp - 4]
push ecx
push eax
push esi
push edi
call dword [sym.imp.KERNEL32.dll_WriteFile]
push edi
mov esi, eax
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov eax, esi
pop esi
pop edi
mov esp, ebp
pop ebp
ret
Function at 0x403699
Capabilities:
Terminate process

Disassembly:
push 0x14
push 0x4194d0
call fcn.00403d50
push 1
call fcn.0040385c
pop ecx
test al, al
jne 0x40354a
push 7
call fcn.00403b75
xor bl, bl
mov byte [ebp - 0x19], bl
and dword [ebp - 4], 0
call fcn.00403827
mov byte [ebp - 0x24], al
mov eax, dword [0x41bb84]
xor ecx, ecx
inc ecx
cmp eax, ecx
je 0x403543
test eax, eax
jne 0x4035b4
mov dword [0x41bb84], ecx
push 0x4131dc
push 0x4131c4
call fcn.00406e78
pop ecx
pop ecx
test eax, eax
je 0x403597
mov dword [ebp - 4], 0xfffffffe
mov eax, 0xff
jmp 0x403693
push 0x4131c0
push 0x4131b8
call fcn.00406e1c
pop ecx
pop ecx
mov dword [0x41bb84], 2
jmp 0x4035b9
mov bl, cl
mov byte [ebp - 0x19], bl
push dword [ebp - 0x24]
call fcn.004039c9
pop ecx
call fcn.00403b69
mov esi, eax
xor edi, edi
cmp dword [esi], edi
je 0x4035e9
push esi
call fcn.0040393f
pop ecx
test al, al
je 0x4035e9
push edi
push 2
push edi
mov esi, dword [esi]
mov ecx, esi
call fcn.00403d3c
call esi
call fcn.00403b6f
mov esi, eax
cmp dword [esi], edi
je 0x403607
push esi
call fcn.0040393f
pop ecx
test al, al
je 0x403607
push dword [esi]
call fcn.0040711b
pop ecx
call fcn.004071c5
mov edi, dword [eax]
call fcn.004071bf
mov esi, eax
call fcn.00406e03
push eax
push edi
push dword [esi]
call main
add esp, 0xc
mov esi, eax
call fcn.0040702a
test al, al
jne 0x403637
push esi
call fcn.00407153
test bl, bl
jne 0x403640
call fcn.004070f6
push 0
push 1
call fcn.004039e6
pop ecx
pop ecx
mov dword [ebp - 4], 0xfffffffe
mov eax, esi
jmp 0x403693
call fcn.00403d96
ret
call fcn.00403aad
jmp 0x40352b

Function at 0x404a3f
Capabilities:
Allocate thread local storage

Disassembly:
push ebp
mov ebp, esp
push esi
push str.FlsAlloc
push 0x413efc
push str.FlsAlloc
push 0
call fcn.004049bf
mov esi, eax
add esp, 0x10
test esi, esi
je 0x404a71
push dword [ebp + 8]
mov ecx, esi
call fcn.00403d3c
call esi
pop esi
pop ebp
ret
pop esi
pop ebp
jmp dword [sym.imp.KERNEL32.dll_TlsAlloc]

Function at 0x404ab3
Capabilities:
Set thread local storage value

Disassembly:
push ebp
mov ebp, esp
push esi
push str.FlsSetValue
push 0x413f2c
push str.FlsSetValue
push 3
call fcn.004049bf
add esp, 0x10
mov esi, eax
push dword [ebp + 0xc]
push dword [ebp + 8]
test esi, esi
je 0x404ae7
mov ecx, esi
call fcn.00403d3c
call esi
jmp 0x404aed
call dword [sym.imp.KERNEL32.dll_TlsSetValue]
pop esi
pop ebp
ret

Function at 0x40b09d
Capabilities:
Set environment variable

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
pop ebp
jmp fcn.0040ad5d