joyce8/EMBER2024-capa huggingface dataset:
Function at 0x41f909
Capabilities:
Get thread local storage value
Set thread local storage value

Disassembly:
push ebp
mov ebp, esp
push ecx
push ebx
push esi
push edi
mov edi, ecx
lea esi, [edi + 0x1c]
push esi
mov dword [ebp - 4], esi
call dword [sym.imp.KERNEL32.dll_EnterCriticalSection]
mov eax, dword [ebp + 8]
xor ebx, ebx
cmp eax, ebx
jle 0x41fa02
cmp eax, dword [edi + 0xc]
jge 0x41fa02
push dword [edi]
call dword [sym.imp.KERNEL32.dll_TlsGetValue]
mov esi, eax
cmp esi, ebx
je 0x41f95a
mov ecx, dword [ebp + 8]
cmp ecx, dword [esi + 8]
jl 0x41f9eb
cmp dword [ebp + 0xc], ebx
je 0x41f9eb
jmp 0x41f984
push 0x10
call fcn.0041f5f5
cmp eax, ebx
je 0x41f970
mov ecx, eax
call fcn.0041f85b
mov esi, eax
jmp 0x41f972
xor esi, esi
mov dword [esi + 8], ebx
mov dword [esi + 0xc], ebx
mov ecx, dword [edi + 0x14]
mov eax, dword [edi + 0x18]
mov dword [esi + eax], ecx
mov dword [edi + 0x14], esi
mov eax, dword [esi + 0xc]
cmp eax, ebx
jne 0x41f99b
mov eax, dword [edi + 0xc]
shl eax, 2
push eax
push ebx
call dword [sym.imp.KERNEL32.dll_LocalAlloc]
jmp 0x41f9ab
mov ecx, dword [edi + 0xc]
push 2
shl ecx, 2
push ecx
push eax
call dword [sym.imp.KERNEL32.dll_LocalReAlloc]
cmp eax, ebx
jne 0x41f9bd
push dword [ebp - 4]
call dword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
call fcn.004154b7
mov ecx, dword [esi + 8]
mov dword [esi + 0xc], eax
mov edx, dword [edi + 0xc]
sub edx, ecx
shl edx, 2
push edx
lea eax, [eax + ecx*4]
push ebx
push eax
call fcn.0040c090
mov eax, dword [edi + 0xc]
add esp, 0xc
push esi
mov dword [esi + 8], eax
push dword [edi]
call dword [sym.imp.KERNEL32.dll_TlsSetValue]
mov ecx, dword [ebp + 8]
mov eax, dword [esi + 0xc]
cmp eax, ebx
je 0x41f9fd
cmp ecx, dword [esi + 8]
jge 0x41f9fd
mov edx, dword [ebp + 0xc]
mov dword [eax + ecx*4], edx
push dword [ebp - 4]
jmp 0x41fa03
push esi
call dword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
pop edi
pop esi
pop ebx
leave
ret 8

Function at 0x41fac1
Capabilities:
Get thread local storage value

Disassembly:
push ebx
push esi
mov esi, ecx
lea ebx, [esi + 0x1c]
push ebx
call dword [sym.imp.KERNEL32.dll_EnterCriticalSection]
cmp dword [esp + 0x10], 0
jne 0x41faef
push dword [esi]
call dword [sym.imp.KERNEL32.dll_TlsGetValue]
test eax, eax
je 0x41fb0d
push dword [esp + 0xc]
mov ecx, esi
push eax
call fcn.0041fa2b
jmp 0x41fb0d
mov eax, dword [esi + 0x14]
test eax, eax
je 0x41fb0d
push edi
push dword [esp + 0x10]
mov edi, dword [eax + 4]
push eax
mov ecx, esi
call fcn.0041fa2b
test edi, edi
mov eax, edi
jne 0x41faf7
pop edi
push ebx
call dword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
pop esi
pop ebx
ret 8
mov ecx, dword [0x42f274]
test ecx, ecx
je 0x41fbc0
jmp 0x41fac0
ret 8
Function at 0x4010cc
Capabilities:
Accept command line arguments
Query environment variable

Disassembly:
jmp 0x4010de
mov eax, dword [0x40f08b]
shl eax, 2
mov dword [0x40f08f], eax
push edx
push 0
call sub.KERNEL32.DLL_GetModuleHandleA
mov edx, eax
call fcn.004058d0
pop edx
call fcn.00404c6c
call fcn.004058d4
push 0
call fcn.00406bc0
pop ecx
push 0x40f034
push 0
call sub.KERNEL32.DLL_GetModuleHandleA
mov dword [0x40f093], eax
push 0
jmp fcn.0040a994

Function at 0x401430
Capabilities:
Get file size
Read file on windows

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffddc
mov eax, dword [0x44f37c]
mov edx, dword [0x44f384]
lea ecx, [ebp - 0x224]
push ebx
push esi
push edi
mov esi, dword [ebp + 8]
mov dword [ebp - 0xc], eax
mov eax, dword [0x44f380]
mov dword [ebp - 8], eax
mov dword [ebp - 0x1c], edx
mov edx, dword [0x44f388]
mov dword [0x4536c0], 1
mov dword [ebp - 0x18], edx
push 0x208
push ecx
push 0
call sub.KERNEL32.DLL_GetModuleFileNameA
push 0
push 0
push 3
push 0
push 3
push 0x80000000
lea eax, [ebp - 0x224]
push eax
call sub.KERNEL32.DLL_CreateFileA
mov ebx, eax
cmp ebx, 0xffffffff
je 0x401574
push 0
push ebx
call sub.KERNEL32.DLL_GetFileSize
mov edi, eax
push 2
push 0
push 0xfffffffffffffff8
push ebx
call sub.KERNEL32.DLL_SetFilePointer
lea eax, [ebp - 4]
push 0
push eax
lea edx, [ebp - 0x14]
push 8
push edx
push ebx
call sub.KERNEL32.DLL_ReadFile
test eax, eax
jne 0x4014df
push ebx
call sub.KERNEL32.DLL_CloseHandle
xor eax, eax
jmp 0x401576
push 8
lea edx, [ebp - 0x14]
push edx
lea ecx, [ebp - 0xc]
push ecx
call fcn.00405d88
add esp, 0xc
test eax, eax
je 0x4014f9
xor eax, eax
jmp 0x401576
push 2
push 0
push 0xfffffffffffffff4
push ebx
call sub.KERNEL32.DLL_SetFilePointer
push 0
lea edx, [ebp - 4]
push edx
push 4
push esi
push ebx
call sub.KERNEL32.DLL_ReadFile
test eax, eax
jne 0x401522
push ebx
call sub.KERNEL32.DLL_CloseHandle
xor eax, eax
jmp 0x401576
push 4
push 0x1000
mov edx, dword [esi]
push edx
push 0
call sub.KERNEL32.DLL_VirtualAlloc
mov dword [0x44f378], eax
mov eax, edi
sub eax, dword [esi]
sub eax, 0xc
push 0
push 0
push eax
push ebx
call sub.KERNEL32.DLL_SetFilePointer
lea edx, [ebp - 4]
push 0
push edx
mov eax, dword [0x44f378]
mov ecx, dword [esi]
push ecx
push eax
push ebx
call sub.KERNEL32.DLL_ReadFile
test eax, eax
jne 0x40156d
push ebx
call sub.KERNEL32.DLL_CloseHandle
xor eax, eax
jmp 0x401576
mov eax, 1
jmp 0x401576
xor eax, eax
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x401580
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffdf0
mov ax, word [0x44f38c]
lea edx, [ebp - 0x210]
push ebx
push esi
mov esi, dword [ebp + 0xc]
mov word [ebp - 6], ax
push 0x208
push edx
push 0
call sub.KERNEL32.DLL_GetModuleFileNameA
push 0x2e
lea ecx, [ebp - 0x210]
push ecx
call fcn.00405d81
add esp, 8
mov byte [eax], 0
push str._useid_
lea eax, [ebp - 0x210]
push eax
call fcn.00405c74
add esp, 8
push esi
lea edx, [ebp - 0x210]
push edx
call fcn.00405c74
add esp, 8
push str..txt
lea ecx, [ebp - 0x210]
push ecx
call fcn.00405c74
add esp, 8
lea eax, [ebp - 0x210]
push 0
push 0
push 2
push 0
push 3
push 0x40000000
push eax
call sub.KERNEL32.DLL_CreateFileA
mov ebx, eax
cmp ebx, 0xffffffff
je 0x40168d
push 0
lea eax, [ebp - 4]
push eax
push 0x44f483
call sub.KERNEL32.DLL_lstrlenA
push eax
push 0x44f47a
push ebx
call sub.KERNEL32.DLL_WriteFile
push 0
lea edx, [ebp - 4]
push edx
push esi
call sub.KERNEL32.DLL_lstrlenA
push eax
push esi
push ebx
call sub.KERNEL32.DLL_WriteFile
lea ecx, [ebp - 4]
push 0
push ecx
lea eax, [ebp - 6]
push 2
push eax
push ebx
call sub.KERNEL32.DLL_WriteFile
push 0
lea edx, [ebp - 4]
push edx
mov ecx, dword [ebp + 8]
push ecx
call sub.KERNEL32.DLL_lstrlenA
push eax
mov eax, dword [ebp + 8]
push eax
push ebx
call sub.KERNEL32.DLL_WriteFile
lea edx, [ebp - 4]
push 0
push edx
lea ecx, [ebp - 6]
Function at 0x403494
Capabilities:
Enumerate pe sections

Disassembly:
push ebp
mov ebp, esp
push ebx
push esi
mov ebx, dword [ebp + 8]
mov eax, dword [ebp + 0xc]
movzx eax, word [eax + 0x14]
add eax, dword [ebp + 0xc]
add eax, 0x18
xor ecx, ecx
jmp 0x4034c8
mov edx, dword [eax + 8]
test edx, edx
jne 0x4034b7
mov edx, dword [eax + 0x10]
mov esi, dword [eax + 0xc]
cmp ebx, esi
jb 0x4034c4
add edx, esi
cmp ebx, edx
jb 0x4034d5
inc ecx
add eax, 0x28
mov edx, dword [ebp + 0xc]
movzx edx, word [edx + 6]
cmp ecx, edx
jb 0x4034ad
xor eax, eax
pop esi
pop ebx
pop ebp
ret
Function at 0x403510
Capabilities:
Parse pe header
Resolve function by parsing pe exports

Disassembly:
push ebp
mov ebp, esp
add esp, 0xffffffd8
push ebx
push esi
push edi
mov edi, dword [ebp + 8]
cmp word [edi], 0x5a4d
je 0x40352a
xor eax, eax
jmp 0x4036aa
mov ebx, dword [edi + 0x3c]
add ebx, edi
cmp dword [ebx], 0x4550
je 0x40353e
xor eax, eax
jmp 0x4036aa
cmp word [ebx + 0x14], 0xe0
jne 0x40354e
cmp word [ebx + 0x18], 0x10b
je 0x403555
xor eax, eax
jmp 0x4036aa
mov dword [0x4534c0], edi
mov ebx, dword [edi + 0x3c]
mov esi, edi
add ebx, esi
mov eax, dword [ebx + 0x78]
mov dword [ebp - 0x18], eax
push ebx
mov edx, dword [ebp - 0x18]
push edx
call fcn.00403494
add esp, 8
test eax, eax
jne 0x403580
xor eax, eax
jmp 0x4036aa
mov edx, dword [0x4534c0]
push edx
push ebx
mov ecx, dword [ebp - 0x18]
push ecx
call fcn.004034dc
add esp, 0xc
mov ebx, dword [ebx + 0x78]
test ebx, ebx
jne 0x4035b2
push 0x10
push 0
push str.Error_in_GetProcAddressDirectly__
push 0
call sub.USER32.DLL_MessageBoxA
xor eax, eax
jmp 0x4036aa
add ebx, esi
mov edx, dword [ebx + 0x24]
add edx, esi
mov dword [ebp - 4], edx
mov ecx, dword [ebx + 0x20]
add ecx, esi
mov dword [ebp - 0xc], ecx
mov eax, dword [ebx + 0x1c]
add eax, esi
mov dword [ebp - 8], eax
mov edx, dword [ebp + 0xc]
mov ecx, edx
shr ecx, 0x10
test cx, cx
je 0x40367c
xor esi, esi
mov eax, dword [ebp - 8]
mov edx, eax
mov dword [ebp - 0x28], edx
jmp 0x40366e
mov ecx, dword [ebp - 8]
mov eax, dword [ecx]
test eax, eax
je 0x403669
xor edx, edx
mov dword [ebp - 0x14], edx
mov ecx, dword [ebp - 0x28]
mov eax, ecx
mov dword [ebp - 0x24], eax
mov edx, dword [ebp - 0xc]
mov ecx, edx
mov dword [ebp - 0x20], ecx
mov eax, dword [ebp - 4]
mov edx, eax
mov dword [ebp - 0x1c], edx
jmp 0x403660
mov ecx, dword [ebp - 0x1c]
movzx eax, word [ecx]
cmp esi, eax
jne 0x403655
mov edx, dword [ebp - 0x20]
mov ecx, dword [edx]
add ecx, edi
mov dword [ebp - 0x10], ecx
mov eax, dword [ebp - 0x10]
mov edx, dword [ebp + 0xc]
mov cl, byte [eax]
cmp cl, byte [edx]
jne 0x403655
test cl, cl
je 0x40364a
mov cl, byte [eax + 1]
cmp cl, byte [edx + 1]
jne 0x403655
add eax, 2
add edx, 2
test cl, cl
jne 0x40362e
jne 0x403655
mov eax, dword [ebp - 0x24]
mov eax, dword [eax]
add eax, edi
jmp 0x4036aa
inc dword [ebp - 0x14]
add dword [ebp - 0x20], 4
add dword [ebp - 0x1c], 2
mov edx, dword [ebx + 0x18]
dec edx
cmp edx, dword [ebp - 0x14]
jae 0x403614
inc esi
add dword [ebp - 0x28], 4
mov ecx, dword [ebx + 0x14]
dec ecx
cmp esi, ecx
jbe 0x4035ec
jmp 0x4036a8
xor esi, esi
mov eax, dword [ebp - 8]
jmp 0x4036a0
mov ecx, dword [ebx + 0x10]
add ecx, esi
cmp edx, ecx
jne 0x40369c
cmp dword [eax], 0
je 0x40369c
mov edx, dword [eax]
shl edx, 6
add edi, edx
mov eax, edi
jmp 0x4036aa
inc esi
add eax, 4
mov ecx, dword [ebx + 0x14]
dec ecx
cmp esi, ecx
jbe 0x403683
xor eax, eax
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x4037bc
Capabilities:
Query service status

Disassembly:
push ebx
add esp, 0xffffffe4
push 0xf003f
push str.ServicesActive
push 0
call sub.ADVAPI32.DLL_OpenSCManagerA
test eax, eax
jne 0x4037d9
xor eax, eax
jmp 0x403816
push 0xf01ff
push str.NTice
push eax
call sub.ADVAPI32.DLL_OpenServiceA
mov ebx, eax
push esp
push ebx
call sub.ADVAPI32.DLL_QueryServiceStatus
test eax, eax
jne 0x403800
push ebx
call sub.ADVAPI32.DLL_CloseServiceHandle
xor eax, eax
jmp 0x403816
cmp dword [esp + 4], 4
jne 0x403814
push ebx
call sub.ADVAPI32.DLL_CloseServiceHandle
mov eax, 1
jmp 0x403816
xor eax, eax
add esp, 0x1c
pop ebx
ret

Function at 0x403878
Capabilities:
Check for peb beingdebugged flag

Disassembly:
push ebp
mov ebp, esp
mov eax, dword fs:[0x30]
movzx eax, byte [eax + 2]
or al, al
je 0x403891
mov eax, 1
pop ebp
ret
xor eax, eax
pop ebp
ret

Function at 0x403898
Capabilities:
Terminate process

Disassembly:
push ebp
mov ebp, esp
call sub.KERNEL32.DLL_GetCurrentProcessId
push eax
push 1
push 0x1f0fff
call sub.KERNEL32.DLL_OpenProcess
push 0
push eax
call sub.KERNEL32.DLL_TerminateProcess
pop ebp
ret
Function at 0x403b6c
Capabilities:
Terminate process

Disassembly:
push ebp
mov ebp, esp
push ebx
push esi
push edi
mov esi, dword [ebp + 0x14]
mov edi, dword [ebp + 8]
je 0x403b7d
jne 0x403b7d
jmp 0x403b01
cmp esi, 8
jb 0x403bbb
xor ebx, ebx
jmp 0x403bb2
mov eax, dword [ebp + 0x10]
mov edx, ebx
add edx, edi
push eax
push edx
call fcn.00403bc0
add esp, 8
movsx ecx, word [ebp + 0xc]
mov eax, 0x64
sub eax, ecx
imul esi
mov ecx, 0x64
xor edx, edx
div ecx
add ebx, eax
add ebx, 8
mov eax, esi
sub eax, 8
cmp ebx, eax
jbe 0x403b86
pop edi
pop esi
pop ebx
pop ebp
ret

Function at 0x403bc0
Capabilities:
Check for software breakpoints
Encrypt data using tea

Disassembly:
push ebp
mov ebp, esp
add esp, 0xffffffe4
push ebx
push esi
push edi
mov eax, fcn.004019fc
mov dword [ebp - 4], eax
mov esi, dword [ebp - 4]
mov al, byte [esi]
cmp al, 0xcc
je 0x403c73
mov eax, fcn.00401694
mov dword [ebp - 8], eax
mov esi, dword [ebp - 8]
mov al, byte [esi]
cmp al, 0xcc
je 0x403c73
mov eax, fcn.00403e1c
mov dword [ebp - 0xc], eax
mov esi, dword [ebp - 0xc]
mov al, byte [esi]
cmp al, 0xcc
je 0x403c73
mov eax, dword [ebp + 8]
mov edx, dword [ebp + 8]
xor ebx, ebx
mov edi, 0x20
mov ecx, dword [eax + 4]
mov eax, dword [ebp + 0xc]
mov edx, dword [edx]
mov eax, dword [eax]
mov dword [ebp - 0x10], eax
mov eax, dword [ebp + 0xc]
mov eax, dword [eax + 4]
mov dword [ebp - 0x14], eax
mov eax, dword [ebp + 0xc]
mov eax, dword [eax + 8]
mov dword [ebp - 0x18], eax
mov eax, dword [ebp + 0xc]
mov eax, dword [eax + 0xc]
mov dword [ebp - 0x1c], eax
jmp 0x403c73
add ebx, 0x9e3779b9
mov eax, ecx
shl eax, 4
add eax, dword [ebp - 0x10]
lea esi, [ebx + ecx]
xor eax, esi
mov esi, ecx
shr esi, 5
add esi, dword [ebp - 0x14]
xor eax, esi
add edx, eax
mov eax, edx
shl eax, 4
add eax, dword [ebp - 0x18]
lea esi, [ebx + edx]
xor eax, esi
mov esi, edx
shr esi, 5
add esi, dword [ebp - 0x1c]
xor eax, esi
add ecx, eax
mov eax, edi
add edi, 0xffffffff
test eax, eax
jg 0x403c3b
mov eax, dword [ebp + 8]
mov dword [eax], edx
mov edx, dword [ebp + 8]
mov dword [edx + 4], ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x403c90
Capabilities:
Check for software breakpoints
Decrypt data using tea

Disassembly:
push ebp
mov ebp, esp
add esp, 0xffffffe4
push ebx
push esi
push edi
mov eax, fcn.004019fc
mov dword [ebp - 4], eax
mov esi, dword [ebp - 4]
mov al, byte [esi]
cmp al, 0xcc
je 0x403d46
mov eax, fcn.00401694
mov dword [ebp - 8], eax
mov esi, dword [ebp - 8]
mov al, byte [esi]
cmp al, 0xcc
je 0x403d46
mov eax, fcn.00403c90
mov dword [ebp - 0xc], eax
mov esi, dword [ebp - 0xc]
mov al, byte [esi]
cmp al, 0xcc
je 0x403d46
mov edx, dword [ebp + 8]
mov eax, dword [ebp + 8]
mov ebx, 0xc6ef3720
mov edi, 0x20
mov ecx, dword [edx]
mov edx, dword [eax + 4]
mov eax, dword [ebp + 0xc]
mov eax, dword [eax]
mov dword [ebp - 0x10], eax
mov eax, dword [ebp + 0xc]
mov eax, dword [eax + 4]
mov dword [ebp - 0x14], eax
mov eax, dword [ebp + 0xc]
mov eax, dword [eax + 8]
mov dword [ebp - 0x18], eax
mov eax, dword [ebp + 0xc]
mov eax, dword [eax + 0xc]
mov dword [ebp - 0x1c], eax
jmp 0x403d46
mov eax, ecx
shl eax, 4
add eax, dword [ebp - 0x18]
lea esi, [ebx + ecx]
xor eax, esi
mov esi, ecx
shr esi, 5
add esi, dword [ebp - 0x1c]
xor eax, esi
sub edx, eax
mov eax, edx
shl eax, 4
add eax, dword [ebp - 0x10]
lea esi, [ebx + edx]
xor eax, esi
mov esi, edx
shr esi, 5
add esi, dword [ebp - 0x14]
xor eax, esi
sub ecx, eax
sub ebx, 0x9e3779b9
mov eax, edi
add edi, 0xffffffff
test eax, eax
jg 0x403d0e
mov eax, dword [ebp + 8]
mov dword [eax], ecx
mov ecx, dword [ebp + 8]
mov dword [ecx + 4], edx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret

Function at 0x403e6c
Capabilities:
Check for software breakpoints
Decrypt data using tea

Disassembly:
push ebp
mov ebp, esp
add esp, 0xffffffe4
push ebx
push esi
push edi
mov eax, fcn.004019fc
mov dword [ebp - 4], eax
mov esi, dword [ebp - 4]
mov al, byte [esi]
cmp al, 0xcc
je 0x403f22
mov eax, fcn.00401694
mov dword [ebp - 8], eax
mov esi, dword [ebp - 8]
mov al, byte [esi]
cmp al, 0xcc
je 0x403f22
mov eax, fcn.00403e1c
mov dword [ebp - 0xc], eax
mov esi, dword [ebp - 0xc]
mov al, byte [esi]
cmp al, 0xcc
je 0x403f22
mov edx, dword [ebp + 8]
mov eax, dword [ebp + 8]
mov ebx, 0xc6ef3720
mov edi, 0x20
mov ecx, dword [edx]
mov edx, dword [eax + 4]
mov eax, dword [ebp + 0xc]
mov eax, dword [eax]
mov dword [ebp - 0x10], eax
mov eax, dword [ebp + 0xc]
mov eax, dword [eax + 4]
mov dword [ebp - 0x14], eax
mov eax, dword [ebp + 0xc]
mov eax, dword [eax + 8]
mov dword [ebp - 0x18], eax
mov eax, dword [ebp + 0xc]
mov eax, dword [eax + 0xc]
mov dword [ebp - 0x1c], eax
jmp 0x403f22
mov eax, ecx
shl eax, 4
add eax, dword [ebp - 0x18]
lea esi, [ebx + ecx]
xor eax, esi
mov esi, ecx
shr esi, 5
add esi, dword [ebp - 0x1c]
xor eax, esi
sub edx, eax
mov eax, edx
shl eax, 4
add eax, dword [ebp - 0x10]
lea esi, [ebx + edx]
xor eax, esi
mov esi, edx
shr esi, 5
add esi, dword [ebp - 0x14]
xor eax, esi
sub ecx, eax
sub ebx, 0x9e3779b9
mov eax, edi
add edi, 0xffffffff
test eax, eax
jg 0x403eea
mov eax, dword [ebp + 8]
mov dword [eax], ecx
mov ecx, dword [ebp + 8]
mov dword [ecx + 4], edx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x4055c4
Capabilities:
Get memory capacity

Disassembly:
add esp, 0xffffffe0
mov dword [esp], 0x20
push esp
call sub.KERNEL32.DLL_GlobalMemoryStatus
mov eax, dword [esp + 0xc]
add esp, 0x20
ret

Function at 0x4099c0
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
push ecx
push ebx
push esi
push edi
mov edi, dword [ebp + 0xc]
push 0
push 0x80
push 2
push 0
push 0
push 0xc0000000
mov eax, dword [ebp + 8]
push eax
call sub.KERNEL32.DLL_CreateFileA
mov ebx, eax
test eax, eax
je 0x409a22
call fcn.00409970
mov esi, eax
lea eax, [ebp - 4]
push 0
push eax
push esi
call fcn.00405cb0
pop ecx
push eax
push esi
push ebx
call sub.KERNEL32.DLL_WriteFile
push 0
lea edx, [ebp - 4]
push edx
push edi
call fcn.00405cb0
pop ecx
push eax
push edi
push ebx
call sub.KERNEL32.DLL_WriteFile
push ebx
call sub.KERNEL32.DLL_CloseHandle
pop edi
pop esi
pop ebx
pop ecx
pop ebp
ret

Function at 0x409a80
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
add esp, 0xffffff7c
cmp dword [0x4519ec], 0
push ebx
push esi
mov esi, dword [ebp + 8]
jne 0x409b5a
cmp dword [0x4519e8], 0
jne 0x409b5a
cmp dword [0x451bdc], 0
je 0x409b14
push 0x80
lea eax, [ebp - 0x84]
push eax
push 0
call sub.KERNEL32.DLL_GetModuleFileNameA
push 0x5c
lea edx, [ebp - 0x84]
push edx
call fcn.00409870
add esp, 8
mov ebx, eax
test eax, eax
jne 0x409afa
push 0x3a
lea edx, [ebp - 0x84]
push edx
call fcn.00409870
add esp, 8
mov ebx, eax
test eax, eax
jne 0x409afa
lea ebx, [ebp - 0x84]
jmp 0x409afb
inc ebx
call fcn.00409a3c
or eax, 0x10010
push eax
push ebx
push esi
push 0
call sub.USER32.DLL_MessageBoxA
jmp 0x409b95
push 0xfffffffffffffff4
call sub.KERNEL32.DLL_GetStdHandle
mov ebx, eax
lea eax, [ebp - 4]
push 0
push eax
push 2
push 0x4519f0
push ebx
call sub.KERNEL32.DLL_WriteFile
push 0
lea edx, [ebp - 4]
push edx
push esi
call fcn.00405cb0
pop ecx
push eax
push esi
push ebx
call sub.KERNEL32.DLL_WriteFile
push 0
lea ecx, [ebp - 4]
push ecx
push 2
push 0x4519f3
push ebx
call sub.KERNEL32.DLL_WriteFile
jmp 0x409b95
cmp dword [0x4519e8], 0
je 0x409b74
cmp dword [0x4519e8], 0xffffffff
je 0x409b95
push esi
call dword [0x4519e8]
pop ecx
mov eax, dword [0x4519ec]
test eax, eax
je 0x409b95
cmp dword [0x4519ec], 0xffffffff
je 0x409b95
cmp byte [eax], 0
je 0x409b95
push esi
push eax
call fcn.004099c0
add esp, 8
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x40a3d8
Capabilities:
Query environment variable

Disassembly:
push ebx
push esi
push edi
push ebp
push ecx
cmp dword [0x453f48], 0
jne 0x40a459
cmp dword [0x453f68], 0
jne 0x40a408
call sub.KERNEL32.DLL_GetEnvironmentStrings
mov dword [0x453f68], eax
test eax, eax
jne 0x40a408
push str.GetEnvironmentStrings_failed
call fcn.00409bac
pop ecx
xor ebp, ebp
xor esi, esi
mov ebx, dword [0x453f68]
jmp 0x40a41c
lea eax, [edi + 1]
inc esi
add ebp, eax
add ebx, eax
push ebx
call fcn.00405cb0
pop ecx
mov edi, eax
test eax, eax
jne 0x40a414
lea edi, [ebp + 1]
push edi
call fcn.00404b7c
pop ecx
mov ebx, eax
mov dword [0x453f4c], ebx
test ebx, ebx
jne 0x40a446
xor eax, eax
jmp 0x40a51c
push edi
mov edx, dword [0x453f68]
push edx
push ebx
call fcn.00405b60
add esp, 0xc
jmp 0x40a479
xor esi, esi
mov ebx, dword [0x453f48]
jmp 0x40a473
push eax
call fcn.00405cb0
pop ecx
test eax, eax
jne 0x40a46f
dec esi
inc esi
add ebx, 4
mov eax, dword [ebx]
test eax, eax
jne 0x40a463
lea ebx, [esi + 4]
push 4
mov dword [0x453f50], ebx
inc ebx
push ebx
call fcn.004046e0
add esp, 8
test eax, eax
mov dword [esp], eax
jne 0x40a49c
xor eax, eax
jmp 0x40a51c
cmp dword [0x453f48], 0
jne 0x40a4cd
xor esi, esi
mov ebx, dword [0x453f4c]
mov eax, dword [esp]
mov ebp, eax
jmp 0x40a4be
mov dword [ebp], ebx
add ebp, 4
inc esi
inc edi
add ebx, edi
push ebx
call fcn.00405cb0
pop ecx
mov edi, eax
test eax, eax
jne 0x40a4b4
jmp 0x40a4fe
xor esi, esi
mov ebx, dword [0x453f48]
mov eax, dword [esp]
mov edi, eax
jmp 0x40a4f8
push eax
call fcn.00405cb0
pop ecx
test eax, eax
je 0x40a4ed
mov eax, dword [ebx]
mov dword [edi], eax
jmp 0x40a4f1
dec esi
add edi, 0xfffffffc
add edi, 4
inc esi
add ebx, 4
mov eax, dword [ebx]
test eax, eax
jne 0x40a4dc
mov eax, dword [0x453f48]
test eax, eax
je 0x40a50e
push eax
call fcn.00404b8c
pop ecx
mov edx, dword [esp]
mov eax, 1
mov dword [0x453f48], edx
pop edx
pop ebp
pop edi
pop esi
pop ebx
ret

Function at 0x40cc9c
Capabilities:
Encode data using xor
Hash data with crc32

Disassembly:
pushal
mov esi, dword [esp + 0x24]
mov ecx, dword [esp + 0x28]
mov edi, 0x45264c
sub eax, eax
test esi, esi
je 0x40cd7c
sub eax, 1
test ecx, ecx
je 0x40cd7a
test esi, 3
je 0x40ccda
xor al, byte [esi]
inc esi
mov ebx, 0xff
and ebx, eax
shr eax, 8
xor eax, dword [edi + ebx*4]
dec ecx
jne 0x40ccbf
mov edx, ecx
and edx, 7
shr ecx, 3
je 0x40cd61
xor eax, dword [esi]
add esi, 4
mov ebx, 0xff
and ebx, eax
shr eax, 8
xor eax, dword [edi + ebx*4]
mov ebx, 0xff
and ebx, eax
shr eax, 8
xor eax, dword [edi + ebx*4]
mov ebx, 0xff
and ebx, eax
shr eax, 8
xor eax, dword [edi + ebx*4]
mov ebx, 0xff
and ebx, eax
shr eax, 8
xor eax, dword [edi + ebx*4]
xor eax, dword [esi]
add esi, 4
mov ebx, 0xff
and ebx, eax
shr eax, 8
xor eax, dword [edi + ebx*4]
mov ebx, 0xff
and ebx, eax
shr eax, 8
xor eax, dword [edi + ebx*4]
mov ebx, 0xff
and ebx, eax
shr eax, 8
xor eax, dword [edi + ebx*4]
mov ebx, 0xff
and ebx, eax
shr eax, 8
xor eax, dword [edi + ebx*4]
dec ecx
jne 0x40cce8
mov ecx, edx
test ecx, ecx
je 0x40cd7a
xor al, byte [esi]
inc esi
mov ebx, 0xff
and ebx, eax
shr eax, 8
xor eax, dword [edi + ebx*4]
dec ecx
jne 0x40cd67
not eax
mov dword [esp + 0x1c], eax
popal
ret