joyce8/EMBER2024-capa huggingface dataset:
Function at 0x40c66b
Capabilities:
Encode data using xor

Disassembly:
push ebx
push ebp
push esi
mov esi, ecx
mov eax, dword [esi + 0x90]
push edi
xor edi, edi
cmp eax, edi
je 0x40c79b
mov ecx, dword [esi + 0x8c]
cmp eax, ecx
je 0x40c79b
cmp dword [esi + 0xb4], edi
jne 0x40c6a5
xor edx, edx
cmp eax, ecx
setle dl
inc edx
mov dword [esi + 0xb4], edx
cmp dword [0x422768], edi
je 0x40c6b5
cmp dword [0x42276c], edi
jne 0x40c6d4
cmp dword [0x422778], edi
je 0x40c79b
mov edx, dword [0x424bb4]
test byte [edx + 0x129], 1
jne 0x40c79b
mov ebp, dword [esi + 0xd8]
cmp ebp, edi
mov edx, dword [esi + 0xb4]
je 0x40c707
mov ecx, dword [esi + 0xb0]
xor edi, edi
inc edi
cmp edx, edi
jne 0x40c6f9
add dword [esi + 0xdc], ecx
jmp 0x40c6ff
sub dword [esi + 0xdc], ecx
mov ecx, dword [esi + 0xdc]
jmp 0x40c724
xor edi, edi
inc edi
cmp edx, edi
jne 0x40c71e
mov ebx, dword [esi + 0xb0]
add ebx, ecx
mov dword [esi + 0x8c], ebx
jmp 0x40c72a
sub ecx, dword [esi + 0xb0]
mov dword [esi + 0x8c], ecx
cmp edx, edi
jne 0x40c738
cmp dword [esi + 0x8c], eax
jl 0x40c752
jmp 0x40c740
cmp dword [esi + 0x8c], eax
jg 0x40c752
mov dword [esi + 0x8c], eax
mov dword [esi + 0xdc], eax
mov dword [esi + 0xb4], edi
test ebp, ebp
je 0x40c79b
mov edx, dword [esi + 0x8c]
cmp edx, eax
je 0x40c79b
mov ecx, 0x100000
xor ebx, ebx
sub ecx, edx
mov edx, dword [esi + 0x84]
mov edi, ecx
mov ecx, ebx
call fcn.0040a736
mov ecx, eax
sub ecx, dword [esi + 0x8c]
inc ebx
mov eax, ecx
cdq
mov ebp, eax
xor ebp, edx
sub ebp, edx
mov eax, edi
cdq
xor eax, edx
sub eax, edx
cmp ebp, eax
jl 0x40c769
add dword [esi + 0x8c], edi
pop edi
pop esi
pop ebp
pop ebx
ret

Function at 0x4147d0
Capabilities:
Extract resource via kernel32 functions

Disassembly:
push ebp
mov ebp, esp
push ecx
push ebx
push esi
push edi
test dl, dl
je 0x4147e3
add esp, 0xfffffff0
call fcn.00402588
mov byte [ebp - 1], dl
mov edi, eax
xor edx, edx
mov eax, edi
call fcn.00402468
push 0xa
push 0x414878
mov eax, dword [0x42d67c]
push eax
call sub.kernel32.dll_FindResourceA
mov esi, eax
push esi
mov eax, dword [0x42d67c]
push eax
call sub.kernel32.dll_LoadResource
mov ebx, eax
test ebx, ebx
je 0x414859
call fcn.00407e68
push 0
push 0xac44
push 0
call fcn.004089ab
push 0x106
push 0
push esi
mov eax, dword [0x42d67c]
push eax
call sub.kernel32.dll_SizeofResource
push eax
push ebx
call sub.kernel32.dll_LockResource
push eax
push 0xffffffffffffffff
call fcn.00410678
mov eax, ebx
call fcn.0040460c
push ebx
call sub.kernel32.dll_FreeResource
mov eax, edi
cmp byte [ebp - 1], 0
je 0x414870
call fcn.004025e0
pop dword fs:[0]
add esp, 0xc
mov eax, edi
pop edi
pop esi
pop ebx
pop ecx
pop ebp
ret
Function at 0x414b68
Capabilities:
Extract resource via kernel32 functions

Disassembly:
push ebx
push esi
push edi
push ebp
push ecx
mov edi, eax
xor ebx, ebx
xor eax, eax
mov dword [esp], eax
push 8
mov eax, edi
call fcn.004030f0
push eax
mov eax, dword [0x42d67c]
push eax
call sub.kernel32.dll_FindResourceA
mov ebp, eax
test ebp, ebp
je 0x414bcf
push ebp
mov eax, dword [0x42d67c]
push eax
call sub.kernel32.dll_LoadResource
mov esi, eax
test esi, esi
je 0x414bcf
push esp
push 0
push ebp
mov eax, dword [0x42d67c]
push eax
call sub.kernel32.dll_SizeofResource
push eax
push esi
call sub.kernel32.dll_LockResource
push eax
call sub.gdi32.dll_AddFontMemResourceEx
mov dword [0x42dee4], eax
cmp dword [0x42dee4], 0
jbe 0x414bcf
mov bl, 1
mov eax, dword [0x42c3d0]
cmp byte [eax + 0x3a], 0
je 0x414be0
mov di, 0x2bc
jmp 0x414be2
xor edi, edi
mov eax, dword [0x42c3d0]
mov eax, dword [eax + 0x35]
call fcn.004030f0
push eax
push 0
push 4
push 0
push 0
push 1
mov eax, dword [0x42c3d0]
movzx eax, byte [eax + 0x3d]
push eax
mov eax, dword [0x42c3d0]
movzx eax, byte [eax + 0x3c]
push eax
mov eax, dword [0x42c3d0]
movzx eax, byte [eax + 0x3b]
push eax
movzx eax, di
push eax
push 0
push 0
push 0
mov edx, dword [0x42c3d0]
movzx edx, byte [edx + 0x39]
mov eax, dword [0x42c44c]
mov eax, dword [eax]
call fcn.00406cc0
neg eax
push eax
call sub.gdi32.dll_CreateFontA
mov dword [0x42dee8], eax
test esi, esi
jbe 0x414c56
mov eax, esi
call fcn.0040460c
push ebp
call sub.kernel32.dll_FreeResource
mov eax, ebx
pop edx
pop ebp
pop edi
pop esi
pop ebx
ret

Function at 0x415480
Capabilities:
Extract resource via kernel32 functions

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffff8
push ebx
push esi
mov ebx, ecx
mov dword [ebp - 4], edx
mov eax, dword [ebp - 4]
call fcn.004030e0
xor eax, eax
push ebp
push 0x415504
push dword fs:[eax]
mov dword fs:[eax], esp
push ebx
mov eax, dword [ebp - 4]
call fcn.004030f0
push eax
push 0
call sub.kernel32.dll_FindResourceA
mov ebx, eax
push ebx
push 0
call sub.kernel32.dll_SizeofResource
mov esi, eax
push ebx
push 0
call sub.kernel32.dll_LoadResource
mov ebx, eax
push ebx
call sub.kernel32.dll_LockResource
mov dword [ebp - 8], eax
mov eax, dword [ebp - 8]
push eax
push esi
push 0
call sub.gdi32.dll_ExtCreateRegion
mov esi, eax
mov eax, ebx
call fcn.0040460c
push ebx
call sub.kernel32.dll_FreeResource
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x41550b
lea eax, [ebp - 4]
call fcn.00402ca4
ret
Function at 0x417878
Capabilities:
Hash data via wincrypt
Hash data with md5
Initialize hashing via wincrypt

Disassembly:
push ebp
mov ebp, esp
add esp, 0xffffffe8
push ebx
push esi
xor ecx, ecx
mov dword [ebp - 0x18], ecx
mov ebx, edx
mov esi, eax
xor eax, eax
push ebp
push 0x4179c5
push dword fs:[eax]
mov dword fs:[eax], esp
mov eax, ebx
call fcn.00402ca4
xor eax, eax
mov dword [ebp - 0xc], eax
push 0xf0000000
push 1
push 0
push 0
lea eax, [ebp - 4]
push eax
call sub.advapi32.dll_CryptAcquireContextA
test eax, eax
je 0x4179af
xor edx, edx
push ebp
push 0x4179a8
push dword fs:[edx]
mov dword fs:[edx], esp
lea eax, [ebp - 8]
push eax
push 0
push 0
push 0x8003
mov eax, dword [ebp - 4]
push eax
call sub.advapi32.dll_CryptCreateHash
test eax, eax
je 0x417975
push 0
mov eax, esi
call fcn.00402ef8
push eax
mov eax, esi
call fcn.004030f0
push eax
mov eax, dword [ebp - 8]
push eax
call sub.advapi32.dll_CryptHashData
test eax, eax
je 0x417975
push 0
lea eax, [ebp - 0x14]
push eax
push 0
push 2
mov eax, dword [ebp - 8]
push eax
call sub.advapi32.dll_CryptGetHashParam
test eax, eax
je 0x417975
mov eax, dword [ebp - 0x14]
call fcn.0040126c
mov dword [ebp - 0xc], eax
mov eax, dword [ebp - 0xc]
mov dword [ebp - 0x10], eax
push 0
lea eax, [ebp - 0x14]
push eax
mov eax, dword [ebp - 0xc]
push eax
push 2
mov eax, dword [ebp - 8]
push eax
call sub.advapi32.dll_CryptGetHashParam
test eax, eax
je 0x417975
mov esi, dword [ebp - 0x14]
test esi, esi
jbe 0x417975
lea ecx, [ebp - 0x18]
mov eax, dword [ebp - 0x10]
movzx eax, byte [eax]
mov edx, 2
call fcn.00417850
mov edx, dword [ebp - 0x18]
mov eax, ebx
call fcn.00402f00
inc dword [ebp - 0x10]
dec esi
jne 0x417952
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x4179af
cmp dword [ebp - 0xc], 0
je 0x417993
mov edx, dword [ebp - 0x14]
mov eax, dword [ebp - 0xc]
call fcn.00401284
mov eax, dword [ebp - 8]
push eax
call sub.advapi32.dll_CryptDestroyHash
push 0
mov eax, dword [ebp - 4]
push eax
call sub.advapi32.dll_CryptReleaseContext
ret
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x4179cc
lea eax, [ebp - 0x18]
call fcn.00402ca4
ret
Function at 0x417ec0
Capabilities:
Parse pe header
Read file on windows
Write file on windows

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffec0
push ebx
push esi
push edi
mov edi, edx
mov dword [ebp - 4], eax
mov eax, dword [ebp - 4]
call fcn.004030e0
xor eax, eax
push ebp
push 0x417fb3
push dword fs:[eax]
mov dword fs:[eax], esp
xor ebx, ebx
push 0
push 0
push 3
push 0
push 3
push 0xc0000000
mov eax, dword [ebp - 4]
call fcn.004030f0
push eax
call sub.kernel32.dll_CreateFileA_1
mov esi, eax
cmp esi, 0xffffffff
je 0x417f9d
push 0
push 0
push 0
push esi
call sub.kernel32.dll_SetFilePointer_1
push 0
lea eax, [ebp - 8]
push eax
push 0x40
lea eax, [ebp - 0x48]
push eax
push esi
call sub.kernel32.dll_ReadFile_1
cmp word [ebp - 0x48], 0x5a4d
jne 0x417f9d
push 0
push 0
mov eax, dword [ebp - 0xc]
push eax
push esi
call sub.kernel32.dll_SetFilePointer_1
push 0
lea eax, [ebp - 8]
push eax
push 0xf8
lea eax, [ebp - 0x140]
push eax
push esi
call sub.kernel32.dll_ReadFile_1
cmp dword [ebp - 0x140], 0x4550
jne 0x417f9d
mov dword [ebp - 0xe8], edi
push 0
push 0
mov eax, dword [ebp - 0xc]
push eax
push esi
call sub.kernel32.dll_SetFilePointer_1
push 0
lea eax, [ebp - 8]
push eax
push 0xf8
lea eax, [ebp - 0x140]
push eax
push esi
call sub.kernel32.dll_WriteFile_1
push esi
call sub.kernel32.dll_CloseHandle_1
mov bl, 1
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x417fba
lea eax, [ebp - 4]
call fcn.00402ca4
ret

Function at 0x417fc4
Capabilities:
Get file size
Read file via mapping

Disassembly:
push ebp
mov ebp, esp
add esp, 0xffffffec
push ebx
push esi
push edi
mov byte [ebp - 5], dl
mov dword [ebp - 4], eax
mov eax, dword [ebp - 4]
call fcn.004030e0
xor eax, eax
push ebp
push 0x4180a1
push dword fs:[eax]
mov dword fs:[eax], esp
mov byte [ebp - 6], 1
push 0
push 0
push 3
push 0
push 1
push 0x80000000
mov eax, dword [ebp - 4]
call fcn.004030f0
push eax
call sub.kernel32.dll_CreateFileA_1
mov ebx, eax
cmp ebx, 0xffffffff
je 0x41808b
push 0
push ebx
call sub.kernel32.dll_GetFileSize_1
mov edi, eax
push 0
push edi
push 0
push 2
push 0
push ebx
call sub.kernel32.dll_CreateFileMappingA
mov esi, eax
test esi, esi
je 0x41808b
push 0
push 0
push 0
push 4
push esi
call sub.kernel32.dll_MapViewOfFile
mov dword [ebp - 0xc], eax
cmp dword [ebp - 0xc], 0
je 0x418085
lea eax, [ebp - 0x14]
push eax
lea eax, [ebp - 0x10]
push eax
push edi
mov eax, dword [ebp - 0xc]
push eax
call sub.IMAGEHLP.DLL_CheckSumMappedFile
push ebx
call sub.kernel32.dll_CloseHandle_1
mov eax, dword [ebp - 0x10]
cmp eax, dword [ebp - 0x14]
je 0x41807c
mov byte [ebp - 6], 0
cmp byte [ebp - 5], 1
jne 0x41807c
mov edx, dword [ebp - 0x14]
mov eax, dword [ebp - 4]
call fcn.00417ec0
mov eax, dword [ebp - 0xc]
push eax
call sub.kernel32.dll_UnmapViewOfFile
push esi
call sub.kernel32.dll_CloseHandle_1
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x4180a8
lea eax, [ebp - 4]
call fcn.00402ca4
ret
Function at 0x419344
Capabilities:
Get file version info

Disassembly:
push ebx
push esi
push edi
push ebp
add esp, 0xfffffff0
mov byte [esp], cl
mov edi, edx
mov ebp, eax
mov byte [esp + 1], 0
mov eax, edi
mov edx, 8
call fcn.00404604
lea eax, [esp + 0xc]
push eax
mov eax, ebp
call fcn.004030f0
push eax
call sub.version.dll_GetFileVersionInfoSizeA
mov ebx, eax
test ebx, ebx
jbe 0x419422
mov eax, ebx
call fcn.0040126c
mov esi, eax
push esi
push ebx
push 0
mov eax, ebp
call fcn.004030f0
push eax
call sub.version.dll_GetFileVersionInfoA
test eax, eax
je 0x419419
lea eax, [esp + 4]
push eax
lea eax, [esp + 0xc]
push eax
push 0x419430
push esi
call sub.version.dll_VerQueryValueA
test eax, eax
je 0x419419
mov ebp, dword [esp + 8]
mov byte [esp + 1], 1
cmp byte [esp], 0
je 0x4193f2
mov eax, dword [ebp + 8]
shr eax, 0x10
mov word [edi], ax
mov ax, word [ebp + 8]
and ax, 0xffff
mov word [edi + 2], ax
mov eax, dword [ebp + 0xc]
shr eax, 0x10
mov word [edi + 4], ax
mov ax, word [ebp + 0xc]
and ax, 0xffff
mov word [edi + 6], ax
jmp 0x419419
mov ax, word [ebp + 8]
mov word [edi], ax
mov eax, dword [ebp + 8]
call fcn.004045f8
mov word [edi + 2], ax
mov ax, word [ebp + 0xc]
mov word [edi + 4], ax
mov eax, dword [ebp + 0xc]
call fcn.004045f8
mov word [edi + 6], ax
mov edx, ebx
mov eax, esi
call fcn.00401284
mov al, byte [esp + 1]
add esp, 0x10
pop ebp
pop edi
pop esi
pop ebx
ret

Function at 0x419b1c
Capabilities:
Parse pe header

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffdb8
push ebx
push esi
mov ebx, edx
mov byte [ebp - 1], 0
push 0x40
mov ecx, eax
mov dl, 1
mov eax, dword [0x416904]
call fcn.00416d04
mov dword [ebp - 8], eax
xor edx, edx
push ebp
push 0x419c2f
push dword fs:[edx]
mov dword fs:[edx], esp
lea edx, [ebp - 0x48]
mov ecx, 0x40
mov eax, dword [ebp - 8]
mov esi, dword [eax]
call dword [esi + 8]
cmp word [ebp - 0x48], 0x5a4d
jne 0x419c19
xor ecx, ecx
mov edx, dword [ebp - 0xc]
mov eax, dword [ebp - 8]
mov esi, dword [eax]
call dword [esi + 0x10]
lea edx, [ebp - 0x140]
mov ecx, 0xf8
mov eax, dword [ebp - 8]
mov esi, dword [eax]
call dword [esi + 8]
xor ecx, ecx
mov edx, dword [ebp - 0xc]
mov eax, dword [ebp - 8]
mov esi, dword [eax]
call dword [esi + 0x10]
lea edx, [ebp - 0x248]
mov ecx, 0x108
mov eax, dword [ebp - 8]
mov esi, dword [eax]
call dword [esi + 8]
cmp dword [ebp - 0x140], 0x4550
jne 0x419c19
mov byte [ebp - 1], 1
mov ax, word [ebp - 0x128]
sub ax, 0x10b
je 0x419bcf
sub ax, 0x100
je 0x419bf2
jmp 0x419c15
mov byte [ebx + 1], 1
mov ax, word [ebp - 0x12a]
test ah, 0x20
je 0x419be4
mov byte [ebx], 2
jmp 0x419c19
test al, 2
je 0x419bed
mov byte [ebx], 1
jmp 0x419c19
mov byte [ebx], 0
jmp 0x419c19
mov byte [ebx + 1], 2
mov ax, word [ebp - 0x232]
test ah, 0x20
je 0x419c07
mov byte [ebx], 2
jmp 0x419c19
test al, 2
je 0x419c10
mov byte [ebx], 1
jmp 0x419c19
mov byte [ebx], 0
jmp 0x419c19
mov byte [ebx + 1], 0
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x419c36
mov eax, dword [ebp - 8]
call fcn.00402498
ret
Function at 0x41ab78
Capabilities:
Extract resource via kernel32 functions

Disassembly:
push ebx
push esi
push edi
push ebp
push ecx
mov ebx, edx
push 0xa
push 0x41adbc
mov eax, dword [0x42d67c]
push eax
call sub.kernel32.dll_FindResourceA
push eax
mov eax, dword [0x42d67c]
push eax
call sub.kernel32.dll_LoadResource
mov ebp, eax
test ebp, ebp
je 0x41adb3
push ebp
call sub.kernel32.dll_LockResource
mov dword [esp], eax
mov eax, ebx
mov edx, dword [esp]
call fcn.00402e90
mov eax, dword [ebx]
call fcn.00402ef8
inc eax
add dword [esp], eax
lea eax, [ebx + 4]
mov ecx, 4
mov edx, dword [esp]
call fcn.004045fc
add dword [esp], 4
mov eax, dword [ebx + 4]
push eax
lea eax, [ebx + 8]
mov ecx, 1
mov edx, dword [0x405e48]
call fcn.00403f68
add esp, 4
mov edi, dword [ebx + 4]
dec edi
test edi, edi
jl 0x41ac1f
inc edi
xor esi, esi
mov eax, dword [ebx + 8]
lea eax, [eax + esi*4]
mov edx, dword [esp]
call fcn.00402e90
mov eax, dword [ebx + 8]
mov eax, dword [eax + esi*4]
call fcn.00402ef8
inc eax
add dword [esp], eax
inc esi
dec edi
jne 0x41abfe
lea eax, [ebx + 0xc]
mov edx, dword [esp]
call fcn.00402e90
mov eax, dword [ebx + 0xc]
call fcn.00402ef8
inc eax
add dword [esp], eax
lea eax, [ebx + 0x10]
mov edx, dword [esp]
call fcn.00402e90
mov eax, dword [ebx + 0x10]
call fcn.00402ef8
inc eax
add dword [esp], eax
lea eax, [ebx + 0x14]
mov edx, dword [esp]
call fcn.00402e90
mov eax, dword [ebx + 0x14]
call fcn.00402ef8
inc eax
add dword [esp], eax
lea eax, [ebx + 0x18]
mov edx, dword [esp]
call fcn.00402e90
mov eax, dword [ebx + 0x18]
call fcn.00402ef8
inc eax
add dword [esp], eax
lea eax, [ebx + 0x1c]
mov ecx, 1
mov edx, dword [esp]
call fcn.004045fc
inc dword [esp]
lea eax, [ebx + 0x25]
mov ecx, 4
mov edx, dword [esp]
call fcn.004045fc
add dword [esp], 4
lea eax, [ebx + 0x29]
mov ecx, 4
mov edx, dword [esp]
call fcn.004045fc
add dword [esp], 4
lea eax, [ebx + 0x2d]
mov edx, dword [esp]
call fcn.00402e90
mov eax, dword [ebx + 0x2d]
call fcn.00402ef8
inc eax
add dword [esp], eax
lea eax, [ebx + 0x31]
mov edx, dword [esp]
call fcn.00402e90
mov eax, dword [ebx + 0x31]
call fcn.00402ef8
inc eax
add dword [esp], eax
lea eax, [ebx + 0x35]
mov edx, dword [esp]
call fcn.00402e90
mov eax, dword [ebx + 0x35]
call fcn.00402ef8
inc eax
add dword [esp], eax
lea eax, [ebx + 0x39]
mov ecx, 1
mov edx, dword [esp]
call fcn.004045fc
inc dword [esp]
lea eax, [ebx + 0x3a]
mov ecx, 1
mov edx, dword [esp]
call fcn.004045fc
inc dword [esp]
lea eax, [ebx + 0x3b]
mov ecx, 1
mov edx, dword [esp]
call fcn.004045fc
inc dword [esp]
lea eax, [ebx + 0x3c]
mov ecx, 1
mov edx, dword [esp]
call fcn.004045fc
inc dword [esp]
lea eax, [ebx + 0x3d]
mov ecx, 1
mov edx, dword [esp]
call fcn.004045fc
inc dword [esp]
lea eax, [ebx + 0x3e]
mov ecx, 1
mov edx, dword [esp]
call fcn.004045fc
inc dword [esp]
lea eax, [ebx + 0x3f]
mov ecx, 1
mov edx, dword [esp]
call fcn.004045fc
inc dword [esp]
lea eax, [ebx + 0x40]
mov ecx, 1
mov edx, dword [esp]
call fcn.004045fc
inc dword [esp]
lea eax, [ebx + 0x42]
mov ecx, 1
mov edx, dword [esp]
call fcn.004045fc
inc dword [esp]
mov eax, ebp
call fcn.0040460c
push ebp
call sub.kernel32.dll_FreeResource
pop edx
pop ebp
pop edi
pop esi
pop ebx
ret
Function at 0x41b5f4
Capabilities:
Query environment variable

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffff8
push ebx
xor ecx, ecx
mov dword [ebp - 8], ecx
mov ebx, edx
mov dword [ebp - 4], eax
mov eax, dword [ebp - 4]
call fcn.004030e0
xor eax, eax
push ebp
push 0x41b678
push dword fs:[eax]
mov dword fs:[eax], esp
lea eax, [ebp - 8]
mov edx, 0x104
call fcn.0040321c
push 0x104
mov eax, dword [ebp - 8]
call fcn.004030f0
push eax
mov eax, dword [ebp - 4]
call fcn.004030f0
push eax
call sub.kernel32.dll_ExpandEnvironmentStringsA
test eax, eax
jle 0x41b653
mov edx, eax
dec edx
lea eax, [ebp - 8]
call fcn.0040321c
mov eax, ebx
mov edx, dword [ebp - 8]
call fcn.00402cf8
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x41b67f
lea eax, [ebp - 8]
mov edx, 2
call fcn.00402cc8
ret
Function at 0x41f0dc
Capabilities:
Extract resource via kernel32 functions

Disassembly:
push ebx
push esi
push edi
push ebp
push ecx
mov ebx, eax
push 0xa
push 0x41f23c
mov eax, dword [0x42d67c]
push eax
call sub.kernel32.dll_FindResourceA
push eax
mov eax, dword [0x42d67c]
push eax
call sub.kernel32.dll_LoadResource
mov ebp, eax
test ebp, ebp
je 0x41f235
push ebp
call sub.kernel32.dll_LockResource
mov dword [esp], eax
mov eax, ebx
mov ecx, 4
mov edx, dword [esp]
call fcn.004045fc
add dword [esp], 4
mov eax, dword [ebx]
push eax
lea eax, [ebx + 4]
mov ecx, 1
mov edx, dword [0x4063a8]
call fcn.00403f68
add esp, 4
mov eax, dword [ebx]
push eax
lea eax, [ebx + 8]
mov ecx, 1
mov edx, dword [0x4063d4]
call fcn.00403f68
add esp, 4
mov eax, dword [ebx]
push eax
lea eax, [ebx + 0xc]
mov ecx, 1
mov edx, dword [0x406400]
call fcn.00403f68
add esp, 4
mov eax, dword [ebx]
push eax
lea eax, [ebx + 0x10]
mov ecx, 1
mov edx, dword [0x40642c]
call fcn.00403f68
add esp, 4
mov eax, dword [ebx]
test eax, eax
jbe 0x41f228
mov ecx, eax
mov eax, dword [ebx + 4]
mov edx, dword [esp]
call fcn.004045fc
mov eax, dword [ebx]
add dword [esp], eax
mov edi, dword [ebx]
dec edi
test edi, edi
jl 0x41f1d2
inc edi
xor esi, esi
mov eax, dword [ebx + 8]
lea eax, [eax + esi*4]
mov edx, dword [esp]
call fcn.00402e90
mov eax, dword [ebx + 8]
mov eax, dword [eax + esi*4]
call fcn.00402ef8
inc eax
add dword [esp], eax
inc esi
dec edi
jne 0x41f1b1
mov edi, dword [ebx]
dec edi
test edi, edi
jl 0x41f1fd
inc edi
xor esi, esi
mov eax, dword [ebx + 0xc]
lea eax, [eax + esi*4]
mov edx, dword [esp]
call fcn.00402e90
mov eax, dword [ebx + 0xc]
mov eax, dword [eax + esi*4]
call fcn.00402ef8
inc eax
add dword [esp], eax
inc esi
dec edi
jne 0x41f1dc
mov edi, dword [ebx]
dec edi
test edi, edi
jl 0x41f228
inc edi
xor esi, esi
mov eax, dword [ebx + 0x10]
lea eax, [eax + esi*4]
mov edx, dword [esp]
call fcn.00402e90
mov eax, dword [ebx + 0x10]
mov eax, dword [eax + esi*4]
call fcn.00402ef8
inc eax
add dword [esp], eax
inc esi
dec edi
jne 0x41f207
mov eax, ebp
call fcn.0040460c
push ebp
call sub.kernel32.dll_FreeResource
pop edx
pop ebp
pop edi
pop esi
pop ebx
ret
Function at 0x41f548
Capabilities:
Extract resource via kernel32 functions

Disassembly:
push ebp
mov ebp, esp
add esp, 0xffffffe8
push ebx
lea eax, [ebp - 0x17]
mov edx, dword [0x406388]
call fcn.0040352c
xor eax, eax
push ebp
push 0x41f6c1
push dword fs:[eax]
mov dword fs:[eax], esp
push 0xa
push 0x41f6d0
mov eax, dword [0x42d67c]
push eax
call sub.kernel32.dll_FindResourceA
push eax
mov eax, dword [0x42d67c]
push eax
call sub.kernel32.dll_LoadResource
mov ebx, eax
test ebx, ebx
je 0x41f6a5
push ebx
call sub.kernel32.dll_LockResource
mov dword [ebp - 8], eax
lea eax, [ebp - 0x17]
mov edx, 0xf
call fcn.00404604
lea eax, [ebp - 0x17]
mov ecx, 1
mov edx, dword [ebp - 8]
call fcn.004045fc
inc dword [ebp - 8]
lea eax, [ebp - 0x16]
mov ecx, 1
mov edx, dword [ebp - 8]
call fcn.004045fc
inc dword [ebp - 8]
lea eax, [ebp - 0x15]
mov ecx, 1
mov edx, dword [ebp - 8]
call fcn.004045fc
inc dword [ebp - 8]
lea eax, [ebp - 0x14]
mov ecx, 4
mov edx, dword [ebp - 8]
call fcn.004045fc
add dword [ebp - 8], 4
lea eax, [ebp - 0x10]
mov ecx, 4
mov edx, dword [ebp - 8]
call fcn.004045fc
add dword [ebp - 8], 4
lea eax, [ebp - 0xc]
mov edx, dword [ebp - 8]
call fcn.00402e90
mov eax, dword [ebp - 0xc]
call fcn.00402ef8
inc eax
add dword [ebp - 8], eax
call fcn.00417a78
mov word [ebp - 2], ax
mov al, byte [ebp - 0x16]
sub al, 1
jb 0x41f639
je 0x41f643
dec al
je 0x41f64d
jmp 0x41f657
mov al, byte [ebp - 2]
cmp al, byte [ebp - 0x17]
je 0x41f657
jmp 0x41f66a
mov al, byte [ebp - 2]
cmp al, byte [ebp - 0x17]
jae 0x41f657
jmp 0x41f66a
mov al, byte [ebp - 2]
cmp al, byte [ebp - 0x17]
ja 0x41f657
jmp 0x41f66a
mov al, byte [ebp - 0x15]
mov edx, eax
sub dl, 2
jb 0x41f665
je 0x41f6a5
jmp 0x41f66a
cmp al, byte [ebp - 1]
je 0x41f6a5
mov eax, dword [ebp - 0x14]
add eax, dword [ebp - 0x10]
push eax
mov eax, dword [ebp - 0xc]
call fcn.004030f0
mov edx, eax
mov ecx, 0x41f6d4
mov eax, dword [0x42c44c]
mov eax, dword [eax]
call fcn.004194f4
cmp eax, 6
je 0x41f6a5
push 0
call sub.kernel32.dll_ExitProcess_1
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x41f6c8
lea eax, [ebp - 0x17]
mov edx, dword [0x406388]
call fcn.004035f0
ret
Function at 0x401790
Capabilities:
Encode data using xor
Encrypt data using rc4 prga

Disassembly:
mov edx, dword [esp + 4]
mov ecx, dword [esp + 8]
cmp cl, 1
mov al, byte [edx]
jbe 0x4017b1
and ecx, 0xff
inc edx
push ebx
dec ecx
mov bl, byte [edx]
xor al, bl
inc edx
dec ecx
jne 0x4017a8
pop ebx
ret
Function at 0x403710
Capabilities:
Write file on windows

Disassembly:
sub esp, 0x18
push ebx
xor eax, eax
push esi
mov esi, ecx
mov dword [esp + 0x10], eax
push edi
mov dword [esp + 0x18], eax
lea ebx, [esi + 0x10]
xor edi, edi
mov dword [esp + 0x1c], eax
push ebx
mov dword [esp + 0x14], edi
mov dword [esp + 0x24], eax
call dword [sym.imp.KERNEL32.dll_EnterCriticalSection]
mov eax, dword [esp + 0x2c]
lea ecx, [esp + 0x10]
lea edx, [esp + 0xc]
push ecx
mov ecx, dword [esp + 0x2c]
push edx
mov edx, dword [esi + 4]
push eax
push ecx
push edx
call dword [sym.imp.KERNEL32.dll_WriteFile]
test eax, eax
jne 0x403783
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0x3e5
jne 0x403788
mov edx, dword [esi + 4]
lea eax, [esp + 0xc]
push 1
lea ecx, [esp + 0x14]
push eax
push ecx
push edx
call dword [sym.imp.KERNEL32.dll_GetOverlappedResult]
test eax, eax
je 0x403788
mov edi, 1
push ebx
call dword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
mov eax, dword [esi + 4]
push 4
push eax
call dword [sym.imp.KERNEL32.dll_PurgeComm]
mov eax, edi
pop edi
pop esi
pop ebx
add esp, 0x18
ret 8

Function at 0x403716
Capabilities:
Write file on windows

Disassembly:
sub esp, 0x18
push ebx
xor eax, eax
push esi
mov esi, ecx
mov dword [esp + 0x10], eax
push edi
mov dword [esp + 0x18], eax
lea ebx, [esi + 0x10]
xor edi, edi
mov dword [esp + 0x1c], eax
push ebx
mov dword [esp + 0x14], edi
mov dword [esp + 0x24], eax
call dword [sym.imp.KERNEL32.dll_EnterCriticalSection]
mov eax, dword [esp + 0x2c]
lea ecx, [esp + 0x10]
lea edx, [esp + 0xc]
push ecx
mov ecx, dword [esp + 0x2c]
push edx
mov edx, dword [esi + 4]
push eax
push ecx
push edx
call dword [sym.imp.KERNEL32.dll_WriteFile]
test eax, eax
jne 0x403783
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0x3e5
jne 0x403788
mov edx, dword [esi + 4]
lea eax, [esp + 0xc]
push 1
lea ecx, [esp + 0x14]
push eax
push ecx
push edx
call dword [sym.imp.KERNEL32.dll_GetOverlappedResult]
test eax, eax
je 0x403788
mov edi, 1
push ebx
call dword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
mov eax, dword [esi + 4]
push 4
push eax
call dword [sym.imp.KERNEL32.dll_PurgeComm]
mov eax, edi
pop edi
pop esi
pop ebx
add esp, 0x18
ret 8