joyce8/EMBER2024-capa huggingface dataset:
Function at 0x401000
Capabilities:
Encrypt data using rc4 via winapi
Encrypt or decrypt via wincrypt
Hash data via wincrypt
Hash data with md5
Initialize hashing via wincrypt

Disassembly:
sub esp, 0xc
push esi
mov esi, dword [esp + 0x18]
push 0xf0000000
push 1
push 0
lea eax, [esp + 0x10]
push 0
push eax
mov dword [esp + 0x20], esi
call dword [sym.imp.ADVAPI32.dll_CryptAcquireContextA]
test eax, eax
jne 0x40102d
xor al, al
pop esi
add esp, 0xc
ret
mov edx, dword [esp + 4]
lea ecx, [esp + 0x18]
push ecx
push 0
push 0
push 0x8003
push edx
call dword [sym.imp.ADVAPI32.dll_CryptCreateHash]
test eax, eax
jne 0x401051
xor al, al
pop esi
add esp, 0xc
ret
mov eax, dword [esp + 0x20]
mov ecx, dword [esp + 0x1c]
mov edx, dword [esp + 0x18]
push 0
push eax
push ecx
push edx
call dword [sym.imp.ADVAPI32.dll_CryptHashData]
test eax, eax
jne 0x401073
xor al, al
pop esi
add esp, 0xc
ret
mov ecx, dword [esp + 0x18]
mov edx, dword [esp + 4]
lea eax, [esp + 8]
push eax
push 0x800000
push ecx
push 0x6801
push edx
call dword [sym.imp.ADVAPI32.dll_CryptDeriveKey]
test eax, eax
jne 0x40109d
xor al, al
pop esi
add esp, 0xc
ret
mov ecx, dword [esp + 0x14]
mov edx, dword [esp + 8]
lea eax, [esp + 0xc]
push esi
push eax
push ecx
push 0
push 1
push 0
push edx
call dword [sym.imp.ADVAPI32.dll_CryptEncrypt]
mov eax, dword [esp + 8]
push eax
call dword [sym.imp.ADVAPI32.dll_CryptDestroyKey]
mov ecx, dword [esp + 0x18]
push ecx
call dword [sym.imp.ADVAPI32.dll_CryptDestroyHash]
mov edx, dword [esp + 4]
push 0
push edx
call dword [sym.imp.ADVAPI32.dll_CryptReleaseContext]
mov al, 1
pop esi
add esp, 0xc
ret

Function at 0x4010f0
Capabilities:
Encode data using xor
Encrypt data using tea

Disassembly:
push ecx
push ebx
push ebp
mov ebx, dword [sym.imp.WSOCK32.dll_ntohl]
push esi
push edi
mov edi, dword [esp + 0x18]
mov eax, dword [edi]
push eax
call ebx
mov ecx, dword [edi + 4]
mov esi, eax
push ecx
call ebx
mov ebp, dword [esp + 0x1c]
mov edi, eax
mov edx, dword [ebp]
push edx
call ebx
mov dword [esp + 0x1c], eax
mov eax, dword [ebp + 4]
push eax
call ebx
mov ecx, dword [ebp + 8]
mov dword [esp + 0x18], eax
push ecx
call ebx
mov edx, dword [ebp + 0xc]
mov dword [esp + 0x10], eax
push edx
call ebx
xor ecx, ecx
mov edx, 0x10
mov ebp, dword [esp + 0x18]
mov ebx, edi
shr ebx, 5
add ebx, ebp
mov ebp, edi
shl ebp, 4
add ebp, dword [esp + 0x1c]
sub ecx, 0x61c88647
xor ebx, ebp
lea ebp, [ecx + edi]
xor ebx, ebp
add esi, ebx
mov ebp, esi
mov ebx, esi
shl ebp, 4
add ebp, dword [esp + 0x10]
shr ebx, 5
add ebx, eax
xor ebx, ebp
lea ebp, [ecx + esi]
xor ebx, ebp
add edi, ebx
dec edx
jne 0x40113d
push esi
mov esi, dword [sym.imp.WSOCK32.dll_htonl]
call esi
mov ebx, dword [esp + 0x20]
push edi
mov dword [ebx], eax
call esi
pop edi
pop esi
mov dword [ebx + 4], eax
pop ebp
pop ebx
pop ecx
ret
Function at 0x4011a0
Capabilities:
Encode data using xor
Encrypt data using tea

Disassembly:
push ecx
push ebx
mov ebx, dword [sym.imp.WSOCK32.dll_ntohl]
push ebp
push esi
mov esi, dword [esp + 0x14]
push edi
mov eax, dword [esi]
push eax
call ebx
mov ecx, dword [esi + 4]
mov edi, eax
push ecx
call ebx
mov ebp, dword [esp + 0x1c]
mov esi, eax
mov edx, dword [ebp]
push edx
call ebx
mov dword [esp + 0x10], eax
mov eax, dword [ebp + 4]
push eax
call ebx
mov ecx, dword [ebp + 8]
mov dword [esp + 0x1c], eax
push ecx
call ebx
mov edx, dword [ebp + 0xc]
mov dword [esp + 0x18], eax
push edx
call ebx
mov ecx, 0xe3779b90
mov edx, 0x10
mov ebp, edi
mov ebx, edi
shl ebp, 4
add ebp, dword [esp + 0x18]
shr ebx, 5
add ebx, eax
xor ebx, ebp
lea ebp, [ecx + edi]
xor ebx, ebp
mov ebp, dword [esp + 0x1c]
sub esi, ebx
mov ebx, esi
shr ebx, 5
add ebx, ebp
mov ebp, esi
shl ebp, 4
add ebp, dword [esp + 0x10]
xor ebx, ebp
lea ebp, [ecx + esi]
xor ebx, ebp
add ecx, 0x61c88647
sub edi, ebx
dec edx
jne 0x4011f0
push edi
mov edi, dword [sym.imp.WSOCK32.dll_htonl]
call edi
mov ebx, dword [esp + 0x20]
push esi
mov dword [ebx], eax
call edi
pop edi
pop esi
mov dword [ebx + 4], eax
pop ebp
pop ebx
pop ecx
ret

Function at 0x402bb0
Capabilities:
Encode data using xor

Disassembly:
sub esp, 0x10
push ebx
push esi
mov esi, dword [esp + 0x20]
push edi
mov edi, dword [esp + 0x20]
mov ecx, esi
push 0xf
lea eax, [edi + 2]
mov edx, dword [edi + 2]
mov dword [ecx], edx
mov edx, dword [eax + 4]
mov dword [ecx + 4], edx
mov edx, dword [eax + 8]
mov dword [ecx + 8], edx
mov eax, dword [eax + 0xc]
mov dword [ecx + 0xc], eax
mov ecx, dword [str.___InitWorkArea]
push ecx
push 0x10
push esi
call fcn.00401000
push 0x10
push esi
call fcn.004041a0
add esp, 0x18
xor ecx, ecx
sub eax, 0x4060b8
mov dl, byte [eax + ecx + 0x4060b8]
mov bl, byte [ecx + 0x4060b8]
xor dl, bl
mov byte [esp + ecx + 0xc], dl
inc ecx
cmp ecx, 0x10
jl 0x402bfd
add edi, 0x12
mov ecx, 0x10
lea esi, [esp + 0xc]
xor eax, eax
repe cmpsb byte [esi], byte es:[edi]
pop edi
pop esi
pop ebx
je 0x402c30
sbb eax, eax
sbb eax, 0xffffffff
neg eax
sbb eax, eax
and al, 0xf0
add eax, 0x10
add esp, 0x10
ret
Function at 0x402e20
Capabilities:
Encode data using xor

Disassembly:
mov ax, word [0x4060dc]
mov ecx, dword [esp + 4]
push ebx
push ebp
push esi
mov esi, dword [esp + 0x14]
push edi
push 0
mov word [esi], ax
mov dx, word [ecx]
lea ebp, [esi + 2]
mov word [ebp], dx
call dword [sym.imp.MSVCRT.dll_time]
push eax
call dword [sym.imp.MSVCRT.dll_srand]
mov ebx, dword [sym.imp.MSVCRT.dll_rand]
add esp, 8
xor edi, edi
call ebx
mov ecx, dword [esp + 0x14]
inc edi
cmp edi, 0x10
mov byte [ecx + edi + 1], al
jl 0x402e59
mov ebx, ecx
lea edx, [esi + 4]
push 0x12
push ebp
mov eax, dword [ebx + 2]
mov dword [edx], eax
mov ecx, dword [ebx + 6]
mov dword [edx + 4], ecx
mov eax, dword [ebx + 0xa]
mov dword [edx + 8], eax
mov ecx, dword [ebx + 0xe]
mov dword [edx + 0xc], ecx
mov eax, dword [str.ABCDEF]
lea edx, [esi + 0x14]
mov dword [esi + 0x14], eax
mov cx, word [0x410dc8]
mov word [edx + 4], cx
call fcn.004041a0
mov edi, 0x4060c8
add esp, 8
xor ecx, ecx
sub edi, eax
or dl, 0xff
sub dl, byte [edi + eax]
xor dl, byte [eax]
inc ecx
inc eax
cmp ecx, 0x10
mov byte [esi + ecx + 0x19], dl
jl 0x402eaf
add ebx, 0x16
push ebx
push 0x18
push ebp
push 0x18
push ebp
call fcn.00401250
add esp, 0x14
mov eax, 0x2a
pop edi
pop esi
pop ebp
pop ebx
ret

Function at 0x402ee0
Capabilities:
Encode data using xor

Disassembly:
sub esp, 0x30
push ebx
push ebp
push esi
push edi
mov edi, dword [esp + 0x44]
mov ecx, 0xfffffffe
mov word [esp + 0x10], 0
sub ecx, edi
lea esi, [edi + 2]
mov eax, esi
mov dl, byte [eax + 8]
mov bl, byte [eax]
xor bl, dl
mov byte [eax], bl
inc eax
lea edx, [ecx + eax]
cmp edx, 8
jl 0x402efe
mov eax, dword [str.___InitWorkArea]
push 0xf
push eax
push 8
push esi
call fcn.00401000
mov ebp, dword [0x4112d4]
mov dx, word [esi]
add esp, 0x10
test ebp, ebp
je 0x402f7f
mov ax, word [ebp + 8]
lea ecx, [ebp + 8]
mov word [esp + 0x10], ax
xor eax, eax
mov bl, byte [ecx + eax + 2]
mov byte [esp + eax + 0x12], bl
inc eax
cmp eax, 0x14
jb 0x402f3e
mov esi, ecx
lea edi, [esp + 0x10]
sub esi, edi
lea eax, [esp + 0x26]
mov edi, 0x14
mov bl, byte [esi + eax]
mov byte [eax], bl
inc eax
dec edi
jne 0x402f5d
mov ecx, dword [ecx + 0x2c]
cmp word [esp + 0x10], dx
mov dword [esp + 0x3c], ecx
je 0x402f7b
mov ebp, dword [ebp]
test ebp, ebp
jne 0x402f30
mov edi, dword [esp + 0x44]
cmp word [esp + 0x10], 0
je 0x402fbb
cmp byte [edi + 8], 0x41
jne 0x402fbb
cmp byte [edi + 9], 0x42
jne 0x402fbb
mov edx, dword [esp + 0x48]
lea ecx, [edi + 0xa]
lea eax, [edx - 0xa]
lea edx, [esp + 0x12]
push edx
push eax
push ecx
push eax
push ecx
call fcn.004012a0
mov ax, word [esp + 0x24]
add esp, 0x14
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x30
ret
pop edi
pop esi
pop ebp
xor ax, ax
pop ebx
add esp, 0x30
ret
Function at 0x402fd0
Capabilities:
Encode data using xor

Disassembly:
sub esp, 0x30
push ebx
push ebp
mov ebp, dword [0x4112d4]
push esi
test ebp, ebp
push edi
je 0x403032
mov edx, dword [esp + 0x4c]
mov ax, word [ebp + 8]
lea ecx, [ebp + 8]
mov word [esp + 0x10], ax
xor eax, eax
mov bl, byte [ecx + eax + 2]
mov byte [esp + eax + 0x12], bl
inc eax
cmp eax, 0x14
jb 0x402ff3
mov esi, ecx
lea edi, [esp + 0x10]
sub esi, edi
lea eax, [esp + 0x26]
mov edi, 0x14
mov bl, byte [esi + eax]
mov byte [eax], bl
inc eax
dec edi
jne 0x403012
movsx eax, word [esp + 0x10]
mov ecx, dword [ecx + 0x2c]
cmp eax, edx
mov dword [esp + 0x3c], ecx
je 0x403032
mov ebp, dword [ebp]
test ebp, ebp
jne 0x402fe5
mov ecx, dword [esp + 0x44]
mov edx, dword [0x4112ec]
xor eax, eax
lea esi, [ecx + 0xa]
mov ecx, edx
mov di, word [esi]
cmp di, word [ecx]
je 0x403063
inc eax
add ecx, 0x44c
cmp eax, 0xfa
jl 0x403043
pop edi
pop esi
pop ebp
xor eax, eax
pop ebx
add esp, 0x30
ret
lea ecx, [eax + eax*4]
mov ebx, dword [esp + 0x48]
mov edi, ebx
lea eax, [eax + ecx*2]
lea eax, [eax + eax*4]
lea eax, [eax + eax*4]
movsx ecx, word [edx + eax*4 + 2]
lea ebp, [edx + eax*4]
add ecx, 0xa
mov edx, ecx
mov ax, word [esp + 0x10]
lea esi, [ebp + 4]
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, edx
lea edx, [esp + 0x12]
and ecx, 3
push edx
rep movsb byte es:[edi], byte [esi]
mov word [ebx + 6], ax
lea ecx, [ebx + 0xa]
movsx eax, word [ebp + 2]
push eax
push ecx
push eax
push ecx
call fcn.00401250
mov eax, dword [str.___InitWorkArea]
push 0xf
lea esi, [ebx + 2]
push eax
push 8
push esi
call fcn.00401000
mov ecx, 0xfffffffe
add esp, 0x24
mov eax, esi
sub ecx, ebx
mov dl, byte [eax + 8]
mov bl, byte [eax]
xor bl, dl
mov byte [eax], bl
inc eax
lea edx, [ecx + eax]
cmp edx, 8
jl 0x4030ce
movsx eax, word [ebp + 2]
pop edi
pop esi
pop ebp
add eax, 0xa
pop ebx
add esp, 0x30
ret

Function at 0x403610
Capabilities:
Hash data with md5

Disassembly:
mov eax, dword [esp + 4]
xor ecx, ecx
mov dword [eax + 0x14], ecx
mov dword [eax + 0x10], ecx
mov dword [eax], 0x67452301
mov dword [eax + 4], 0xefcdab89
mov dword [eax + 8], 0x98badcfe
mov dword [eax + 0xc], 0x10325476
ret
Function at 0x401180
Capabilities:
Extract resource via kernel32 functions

Disassembly:
push ebp
mov ebp, dword [esp + 8]
push edi
push ebx
push ebp
mov edi, eax
call dword [sym.imp.KERNEL32.dll_LoadResource]
test eax, eax
jne 0x401197
pop edi
pop ebp
ret
push esi
push eax
call dword [sym.imp.KERNEL32.dll_LockResource]
mov esi, eax
test esi, esi
je 0x4011c8
push ebx
push ebp
call dword [sym.imp.KERNEL32.dll_SizeofResource]
add eax, esi
and edi, 0xf
jbe 0x4011c4
cmp esi, eax
jae 0x4011c8
sub edi, 1
movzx ecx, word [esi]
lea esi, [esi + ecx*2 + 2]
jne 0x4011b4
cmp esi, eax
jb 0x4011ce
pop esi
pop edi
xor eax, eax
pop ebp
ret
mov ax, word [esi]
neg ax
sbb eax, eax
and eax, esi
pop esi
pop edi
pop ebp
ret

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

Disassembly:
sub esp, 0x400
xor ecx, ecx
mov eax, ecx
shr eax, 1
test cl, 1
je 0x4014c6
xor eax, 0xedb88320
test al, 1
je 0x4014d3
shr eax, 1
xor eax, 0xedb88320
jmp 0x4014d5
shr eax, 1
test al, 1
je 0x4014e2
shr eax, 1
xor eax, 0xedb88320
jmp 0x4014e4
shr eax, 1
test al, 1
je 0x4014f1
shr eax, 1
xor eax, 0xedb88320
jmp 0x4014f3
shr eax, 1
test al, 1
je 0x401500
shr eax, 1
xor eax, 0xedb88320
jmp 0x401502
shr eax, 1
test al, 1
je 0x40150f
shr eax, 1
xor eax, 0xedb88320
jmp 0x401511
shr eax, 1
test al, 1
je 0x40151e
shr eax, 1
xor eax, 0xedb88320
jmp 0x401520
shr eax, 1
test al, 1
je 0x40152d
shr eax, 1
xor eax, 0xedb88320
jmp 0x40152f
shr eax, 1
mov dword [esp + ecx*4], eax
add ecx, 1
cmp ecx, 0x100
jl 0x4014b8
or eax, 0xffffffff
xor ecx, ecx
test edx, edx
jbe 0x40156e
push ebx
push edi
lea esp, [esp]
movzx edi, byte [ecx + esi]
mov ebx, eax
and ebx, 0xff
xor edi, ebx
shr eax, 8
xor eax, dword [esp + edi*4 + 8]
add ecx, 1
cmp ecx, edx
jb 0x401550
pop edi
pop ebx
not eax
add esp, 0x400
ret
Function at 0x401750
Capabilities:
Get file size
Read file via mapping

Disassembly:
sub esp, 0x210
mov eax, dword [0x40701c]
xor eax, esp
mov dword [esp + 0x20c], eax
push ebp
xor ebp, ebp
cmp dword [ebx + 0x468], ebp
mov eax, 0x40538c
jne 0x40179d
mov eax, dword [ebx + 0x480]
push eax
call dword [sym.imp.KERNEL32.dll_SetLastError]
mov eax, dword [ebx + 0x480]
pop ebp
mov ecx, dword [esp + 0x20c]
xor ecx, esp
call fcn.00403682
add esp, 0x210
ret
cmp dword [ebx + 4], ebp
je 0x4017b9
push 0x40538c
lea ecx, [ebx + 0x152]
push ecx
lea edx, [esp + 0x10]
push edx
call dword [sym.imp.SHLWAPI.dll_PathCombineW]
push esi
push edi
push 0
push 0x80
push 3
push 0
push 3
push 0x80000000
push eax
call dword [sym.imp.KERNEL32.dll_CreateFileW]
mov esi, eax
cmp esi, 0xffffffff
mov dword [esp + 0xc], esi
jne 0x4017ea
call dword [sym.imp.KERNEL32.dll_GetLastError]
jmp 0x40186d
push 0
push esi
call dword [sym.imp.KERNEL32.dll_GetFileSize]
mov edi, eax
cmp edi, 0xffffffff
jne 0x401802
call dword [sym.imp.KERNEL32.dll_GetLastError]
jmp 0x40186d
push 0
push edi
push 0
push 2
push 0
push esi
call dword [sym.imp.KERNEL32.dll_CreateFileMappingW]
mov ebp, eax
test ebp, ebp
jne 0x401820
call dword [sym.imp.KERNEL32.dll_GetLastError]
jmp 0x40186d
push edi
push 0
push 0
push 4
push ebp
call dword [sym.imp.KERNEL32.dll_MapViewOfFile]
mov esi, eax
lea edx, [edi - 4]
mov dword [ebx + 0x470], esi
call fcn.004014b0
cmp eax, dword [esi + edi - 4]
je 0x40184e
push 0xd
call dword [sym.imp.KERNEL32.dll_SetLastError]
jmp 0x401869
push ebx
call fcn.00401e20
test eax, eax
je 0x401863
mov eax, ebx
call fcn.004018c0
test eax, eax
jne 0x401869
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov esi, dword [esp + 0xc]
mov eax, dword [ebx + 0x470]
test eax, eax
je 0x401888
push eax
call dword [sym.imp.KERNEL32.dll_UnmapViewOfFile]
mov dword [ebx + 0x470], 0
test ebp, ebp
mov edi, dword [sym.imp.KERNEL32.dll_CloseHandle]
je 0x401895
push ebp
call edi
cmp esi, 0xffffffff
je 0x40189d
push esi
call edi
mov ecx, dword [esp + 0x218]
pop edi
pop esi
pop ebp
xor ecx, esp
xor eax, eax
call fcn.00403682
add esp, 0x210
ret
Function at 0x401920
Capabilities:
Read file on windows

Disassembly:
sub esp, 8
push 0
push 0x50000080
push 3
push 0
push 3
push 0x80000000
push eax
call dword [sym.imp.KERNEL32.dll_CreateFileA]
cmp eax, 0xffffffff
mov dword [esp + 4], eax
je 0x401a38
mov edx, dword [esi + 0x464]
push ebx
push ebp
push edi
mov edi, dword [esp + 0x18]
mov ecx, dword [edi + 0x290]
push edx
mov dword [esi + 0x460], ecx
call dword [sym.imp.KERNEL32.dll_ResetEvent]
mov ebx, dword [sym.imp.KERNEL32.dll_ReadFileEx]
mov ebp, dword [sym.imp.KERNEL32.dll_HeapAlloc]
mov dword [esp + 0xc], 0
add edi, 0x29c
mov eax, dword [esi + 0x468]
push 0x14
push 9
push eax
call ebp
mov ecx, dword [edi - 4]
mov dword [eax + 8], ecx
add dword [esi], 1
mov ecx, dword [esp + 0x10]
push 0x401fa0
push eax
mov dword [eax + 0x10], esi
mov edx, dword [edi]
mov eax, dword [esi + 0x47c]
push edx
push eax
push ecx
call ebx
test eax, eax
jne 0x4019d3
add dword [esi], 0xffffffff
jne 0x4019cc
mov eax, esi
call fcn.00401680
push esi
call sub.MSVCR80.dll_void___cdecl_operator_delete_void__
add esp, 4
add dword [esi + 0x460], 0xffffffff
mov eax, dword [esp + 0xc]
mov edx, dword [esp + 0x18]
add eax, 1
add edi, 0xc
cmp eax, dword [edx + 0x290]
mov dword [esp + 0xc], eax
jbe 0x401983
cmp dword [esi + 0x460], 0
jle 0x401a24
mov edi, dword [sym.imp.KERNEL32.dll_WaitForSingleObjectEx]
lea esp, [esp]
mov eax, dword [esi + 0x464]
push 1
push 0x1388
push eax
call edi
test eax, eax
je 0x401a24
cmp eax, 0x102
je 0x401a24
cmp dword [esi + 0x460], 0
jg 0x401a00
mov ecx, dword [esp + 0x10]
pop edi
pop ebp
pop ebx
add esp, 8
mov dword [esp + 4], ecx
jmp dword [sym.imp.KERNEL32.dll_CloseHandle]
add esp, 8
ret 4
Function at 0x401ff0
Capabilities:
Get common file path

Disassembly:
push 0xffffffffffffffff
push 0x404076
mov eax, dword fs:[0]
push eax
sub esp, 0x214
mov eax, dword [0x40701c]
xor eax, esp
mov dword [esp + 0x210], eax
push ebx
mov eax, dword [0x40701c]
xor eax, esp
push eax
lea eax, [esp + 0x21c]
mov dword fs:[0], eax
push 0x206
lea eax, [esp + 0x16]
push 0
mov dword [esp + 0x10], 0
push eax
mov word [esp + 0x1c], 0
call sub.MSVCR80.dll_memset
add esp, 0xc
push 1
push 0x1a
lea ecx, [esp + 0x18]
push ecx
push 0
call dword [sym.imp.SHELL32.dll_SHGetSpecialFolderPathW]
test eax, eax
jne 0x402070
push esi
mov ecx, 0x405364
call fcn.00402730
jmp 0x402103
lea edx, [esp + 8]
push edx
lea ecx, [esp + 0x14]
call fcn.00402730
push eax
lea eax, [esp + 0x10]
push eax
mov ebx, 0x4053e0
mov dword [esp + 0x22c], 0
call fcn.00402850
push eax
push esi
mov ebx, 0x4053d0
mov byte [esp + 0x234], 1
call fcn.00402850
mov byte [esp + 0x234], 0
mov eax, dword [esp + 0x1c]
add eax, 0xfffffff0
add esp, 0x10
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x4020d8
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov dword [esp + 0x224], 0xffffffff
mov eax, dword [esp + 8]
add eax, 0xfffffff0
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x402103
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov eax, esi
mov ecx, dword [esp + 0x21c]
mov dword fs:[0], ecx
pop ecx
pop ebx
mov ecx, dword [esp + 0x210]
xor ecx, esp
call fcn.00403682
add esp, 0x220
ret
Function at 0x4032a7
Capabilities:
Check os version

Disassembly:
push ebp
lea ebp, [esp - 0x78]
sub esp, 0x98
mov eax, dword [0x40701c]
xor eax, ebp
mov dword [ebp + 0x74], eax
push esi
mov esi, ecx
call fcn.004031e6
mov eax, 0x400000
push 0x94
mov dword [esi + 8], eax
mov dword [esi + 4], eax
lea eax, [ebp - 0x20]
push 0
push eax
mov dword [esi], 0x3c
mov byte [esi + 0xc], 0
call sub.MSVCR80.dll_memset
add esp, 0xc
lea eax, [ebp - 0x20]
push eax
mov dword [ebp - 0x20], 0x94
call dword [sym.imp.KERNEL32.dll_GetVersionExA]
cmp dword [ebp - 0x10], 2
jne 0x4032f6
cmp dword [ebp - 0x1c], 5
jb 0x40330e
jmp 0x40330a
cmp dword [ebp - 0x10], 1
jne 0x40330e
cmp dword [ebp - 0x1c], 4
ja 0x40330a
jne 0x40330e
cmp dword [ebp - 0x18], 0
jbe 0x40330e
mov byte [esi + 0xc], 1
lea ecx, [esi + 0x18]
mov dword [esi + 0x10], 0x800
mov dword [esi + 0x14], 0x40525c
call fcn.00401100
test eax, eax
jge 0x40332f
mov byte [0x407560], 1
mov ecx, dword [ebp + 0x74]
mov eax, esi
xor ecx, ebp
pop esi
call fcn.00403682
add ebp, 0x78
leave
ret

Function at 0x403682
Capabilities:
Terminate process

Disassembly:
cmp ecx, dword [0x40701c]
jne 0x40368c
repz ret
jmp fcn.00403b2c
Function at 0x14e4745
Capabilities:
Write file on windows

Disassembly:
sub esp, 0x11c
cmp dword [esp + 0x128], 0
je 0x14e490a
push ebp
push esi
mov esi, dword [esp + 0x12c]
xor ebp, ebp
mov dword [esp + 0x14], ebp
mov ecx, dword [esi + 0xc]
test ecx, ecx
je 0x14e4908
push ebx
mov edx, esi
push edi
mov eax, dword [edx]
mov ebx, dword [esp + 0x130]
add eax, ebx
mov dword [esp + 0x18], eax
mov eax, dword [edx + 0x10]
add eax, ebx
lea edi, [ecx + ebx]
mov dword [esp + 0x20], eax
push edi
call dword [sym.imp.KERNEL32.dll_GetModuleHandleA]
mov ebx, eax
mov dword [esp + 0x10], ebx
test ebx, ebx
jne 0x14e47b0
push edi
call dword [sym.imp.KERNEL32.dll_LoadLibraryA]
mov ebx, eax
mov dword [esp + 0x10], eax
push 0x104
lea eax, [esp + 0x2c]
push 0
push eax
call fcn.014dcf12
add esp, 0xc
test ebx, ebx
je 0x14e48b0
mov eax, dword [esp + 0x18]
and dword [esp + 0x14], 0
mov eax, dword [eax]
test eax, eax
je 0x14e4899
mov esi, dword [esp + 0x10]
xor edi, edi
mov ebp, dword [esp + 0x130]
test eax, eax
jns 0x14e47f5
movzx ebx, ax
jmp 0x14e47fa
lea ebx, [ebp + 2]
add ebx, eax
push ebx
push esi
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
mov ecx, dword [esp + 0x20]
mov dword [edi + ecx], eax
test eax, eax
jne 0x14e4871
cmp dword [0x14eb5f0], 1
jne 0x14e4871
push 0x104
push eax
lea eax, [esp + 0x30]
push eax
call fcn.014dcf12
lea eax, [esp + 0x34]
push eax
call fcn.014e49ee
lea eax, [esp + 0x38]
push 0x14dbfa4
push eax
call fcn.014dcf40
lea eax, [esp + 0x40]
push ebx
push eax
call fcn.014dcf40
add esp, 0x20
lea eax, [esp + 0x24]
push 0
push eax
lea eax, [esp + 0x30]
push eax
call fcn.014dcf67
pop ecx
push eax
lea eax, [esp + 0x34]
push eax
push dword [0x14eb590]
call dword [sym.imp.KERNEL32.dll_WriteFile]
mov ecx, dword [esp + 0x14]
mov eax, dword [esp + 0x18]
inc ecx
mov edi, ecx
mov dword [esp + 0x14], ecx
shl edi, 2
mov eax, dword [edi + eax]
test eax, eax
jne 0x14e47ee
mov esi, dword [esp + 0x134]
mov ebp, dword [esp + 0x1c]
inc ebp
imul edx, ebp, 0x14
mov dword [esp + 0x1c], ebp
add edx, esi
mov ecx, dword [edx + 0xc]
test ecx, ecx
jne 0x14e4777
jmp 0x14e4906
lea eax, [esp + 0x28]
push eax
call fcn.014e49ee
lea eax, [esp + 0x2c]
mov dword [esp], 0x14dbf88
push eax
call fcn.014dcf40
lea eax, [esp + 0x30]
push edi
push eax
call fcn.014dcf40
add esp, 0x10
cmp dword [0x14eb5f0], 1
jne 0x14e4906
push 0
lea eax, [esp + 0x28]
push eax
lea eax, [esp + 0x30]
push eax
call fcn.014dcf67
pop ecx
push eax
lea eax, [esp + 0x34]
push eax
push dword [0x14eb590]
call dword [sym.imp.KERNEL32.dll_WriteFile]
pop edi
pop ebx
pop esi
pop ebp
xor eax, eax
add esp, 0x11c
ret
Function at 0x14e4940
Capabilities:
Read file via mapping

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x410
push 0x208
lea eax, [ebp - 0x410]
push eax
call fcn.014e49bc
push eax
call dword [sym.imp.KERNEL32.dll_GetModuleFileNameW]
push 0
push pe_nt_image_headers32
push 3
push 0
push 1
push 0x80000000
lea eax, [ebp - 0x410]
push eax
call dword [sym.imp.KERNEL32.dll_CreateFileW]
mov dword [0x14eb460], eax
push 0
push 0
push 0
push 2
push 0
push dword [0x14eb460]
call dword [sym.imp.KERNEL32.dll_CreateFileMappingW]
mov dword [0x14eb464], eax
push 0
push 0
push 0
push 4
push dword [0x14eb464]
call dword [sym.imp.KERNEL32.dll_MapViewOfFile]
add eax, dword [0x14eb5f8]
leave
ret