joyce8/EMBER2024-capa huggingface dataset:
Function at 0x40c817
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 0x40c947
mov ecx, dword [esi + 0x8c]
cmp eax, ecx
je 0x40c947
cmp dword [esi + 0xb4], edi
jne 0x40c851
xor edx, edx
cmp eax, ecx
setle dl
inc edx
mov dword [esi + 0xb4], edx
cmp dword [0x421768], edi
je 0x40c861
cmp dword [0x42176c], edi
jne 0x40c880
cmp dword [0x421778], edi
je 0x40c947
mov edx, dword [0x423bb4]
test byte [edx + 0x129], 1
jne 0x40c947
mov ebp, dword [esi + 0xd8]
cmp ebp, edi
mov edx, dword [esi + 0xb4]
je 0x40c8b3
mov ecx, dword [esi + 0xb0]
xor edi, edi
inc edi
cmp edx, edi
jne 0x40c8a5
add dword [esi + 0xdc], ecx
jmp 0x40c8ab
sub dword [esi + 0xdc], ecx
mov ecx, dword [esi + 0xdc]
jmp 0x40c8d0
xor edi, edi
inc edi
cmp edx, edi
jne 0x40c8ca
mov ebx, dword [esi + 0xb0]
add ebx, ecx
mov dword [esi + 0x8c], ebx
jmp 0x40c8d6
sub ecx, dword [esi + 0xb0]
mov dword [esi + 0x8c], ecx
cmp edx, edi
jne 0x40c8e4
cmp dword [esi + 0x8c], eax
jl 0x40c8fe
jmp 0x40c8ec
cmp dword [esi + 0x8c], eax
jg 0x40c8fe
mov dword [esi + 0x8c], eax
mov dword [esi + 0xdc], eax
mov dword [esi + 0xb4], edi
test ebp, ebp
je 0x40c947
mov edx, dword [esi + 0x8c]
cmp edx, eax
je 0x40c947
mov ecx, 0x100000
xor ebx, ebx
sub ecx, edx
mov edx, dword [esi + 0x84]
mov edi, ecx
mov ecx, ebx
call fcn.0040a8e2
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 0x40c915
add dword [esi + 0x8c], edi
pop edi
pop esi
pop ebp
pop ebx
ret

Function at 0x415310
Capabilities:
Encode data using xor

Disassembly:
push esi
push edi
push ebx
mov edi, edx
mov esi, eax
xor ebx, ebx
mov eax, 0xffffffff
mov ecx, edi
shr ecx, 2
jecxz 0x415367
mov edx, dword [esi]
mov bl, al
xor bl, dl
shr eax, 8
xor eax, dword [ebx*4 + 0x4268fc]
mov bl, al
xor bl, dh
shr eax, 8
xor eax, dword [ebx*4 + 0x4268fc]
shr edx, 0x10
mov bl, al
xor bl, dl
shr eax, 8
xor eax, dword [ebx*4 + 0x4268fc]
mov bl, al
xor bl, dh
shr eax, 8
xor eax, dword [ebx*4 + 0x4268fc]
add esi, 4
loop 0x415325
mov ecx, edi
and ecx, 3
jecxz 0x41537f
mov bl, al
xor bl, byte [esi]
shr eax, 8
inc esi
xor eax, dword [ebx*4 + 0x4268fc]
loop 0x41536e
xor eax, 0xffffffff
pop ebx
pop edi
pop esi
ret
Function at 0x415668
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 0x4157b5
push dword fs:[eax]
mov dword fs:[eax], esp
mov eax, ebx
call fcn.00402bd0
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 0x41579f
xor edx, edx
push ebp
push 0x415798
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 0x415765
push 0
mov eax, esi
call fcn.00402e24
push eax
mov eax, esi
call fcn.0040301c
push eax
mov eax, dword [ebp - 8]
push eax
call sub.advapi32.dll_CryptHashData
test eax, eax
je 0x415765
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 0x415765
mov eax, dword [ebp - 0x14]
call fcn.00401250
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 0x415765
mov esi, dword [ebp - 0x14]
test esi, esi
jbe 0x415765
lea ecx, [ebp - 0x18]
mov eax, dword [ebp - 0x10]
movzx eax, byte [eax]
mov edx, 2
call fcn.00415640
mov edx, dword [ebp - 0x18]
mov eax, ebx
call fcn.00402e2c
inc dword [ebp - 0x10]
dec esi
jne 0x415742
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x41579f
cmp dword [ebp - 0xc], 0
je 0x415783
mov edx, dword [ebp - 0x14]
mov eax, dword [ebp - 0xc]
call fcn.00401268
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 0x4157bc
lea eax, [ebp - 0x18]
call fcn.00402bd0
ret
Function at 0x41653c
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.0040300c
xor eax, eax
push ebp
push 0x41662f
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.0040301c
push eax
call sub.kernel32.dll_CreateFileA_1
mov esi, eax
cmp esi, 0xffffffff
je 0x416619
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 0x416619
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 0x416619
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 0x416636
lea eax, [ebp - 4]
call fcn.00402bd0
ret

Function at 0x416640
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.0040300c
xor eax, eax
push ebp
push 0x41671d
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.0040301c
push eax
call sub.kernel32.dll_CreateFileA_1
mov ebx, eax
cmp ebx, 0xffffffff
je 0x416707
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 0x416707
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 0x416701
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 0x4166f8
mov byte [ebp - 6], 0
cmp byte [ebp - 5], 1
jne 0x4166f8
mov edx, dword [ebp - 0x14]
mov eax, dword [ebp - 4]
call fcn.0041653c
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 0x416724
lea eax, [ebp - 4]
call fcn.00402bd0
ret
Function at 0x4179c0
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.004044cc
lea eax, [esp + 0xc]
push eax
mov eax, ebp
call fcn.0040301c
push eax
call sub.version.dll_GetFileVersionInfoSizeA
mov ebx, eax
test ebx, ebx
jbe 0x417a9e
mov eax, ebx
call fcn.00401250
mov esi, eax
push esi
push ebx
push 0
mov eax, ebp
call fcn.0040301c
push eax
call sub.version.dll_GetFileVersionInfoA
test eax, eax
je 0x417a95
lea eax, [esp + 4]
push eax
lea eax, [esp + 0xc]
push eax
push 0x417aac
push esi
call sub.version.dll_VerQueryValueA
test eax, eax
je 0x417a95
mov ebp, dword [esp + 8]
mov byte [esp + 1], 1
cmp byte [esp], 0
je 0x417a6e
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 0x417a95
mov ax, word [ebp + 8]
mov word [edi], ax
mov eax, dword [ebp + 8]
call fcn.004044c0
mov word [edi + 2], ax
mov ax, word [ebp + 0xc]
mov word [edi + 4], ax
mov eax, dword [ebp + 0xc]
call fcn.004044c0
mov word [edi + 6], ax
mov edx, ebx
mov eax, esi
call fcn.00401268
mov al, byte [esp + 1]
add esp, 0x10
pop ebp
pop edi
pop esi
pop ebx
ret

Function at 0x417fdc
Capabilities:
Terminate process

Disassembly:
push ebx
push esi
push edi
push ebp
push ecx
mov ebp, eax
xor ebx, ebx
xor eax, eax
mov dword [esp], eax
mov eax, ebp
call fcn.00403b1c
mov esi, eax
test esi, esi
jl 0x418021
inc esi
xor edi, edi
push 0
mov eax, dword [ebp + edi*4]
push eax
push 0
push 1
call sub.kernel32.dll_OpenProcess
push eax
call sub.kernel32.dll_TerminateProcess
cmp eax, 1
sbb ebx, ebx
inc ebx
test bl, bl
je 0x41801d
inc dword [esp]
inc edi
dec esi
jne 0x417ffa
mov eax, ebp
call fcn.00403b14
test eax, eax
jle 0x418039
mov eax, ebp
call fcn.00403b14
cmp eax, dword [esp]
sete bl
mov eax, ebx
pop edx
pop ebp
pop edi
pop esi
pop ebx
ret
Function at 0x4184f4
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 [0x414af8]
call fcn.00414ef8
mov dword [ebp - 8], eax
xor edx, edx
push ebp
push 0x418607
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 0x4185f1
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 0x4185f1
mov byte [ebp - 1], 1
mov ax, word [ebp - 0x128]
sub ax, 0x10b
je 0x4185a7
sub ax, 0x100
je 0x4185ca
jmp 0x4185ed
mov byte [ebx + 1], 1
mov ax, word [ebp - 0x12a]
test ah, 0x20
je 0x4185bc
mov byte [ebx], 2
jmp 0x4185f1
test al, 2
je 0x4185c5
mov byte [ebx], 1
jmp 0x4185f1
mov byte [ebx], 0
jmp 0x4185f1
mov byte [ebx + 1], 2
mov ax, word [ebp - 0x232]
test ah, 0x20
je 0x4185df
mov byte [ebx], 2
jmp 0x4185f1
test al, 2
je 0x4185e8
mov byte [ebx], 1
jmp 0x4185f1
mov byte [ebx], 0
jmp 0x4185f1
mov byte [ebx + 1], 0
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x41860e
mov eax, dword [ebp - 8]
call fcn.004025a0
ret
Function at 0x41977c
Capabilities:
Extract resource via kernel32 functions

Disassembly:
push ebx
push esi
push edi
push ebp
push ecx
mov ebx, eax
push 0xa
push 0x4198dc
mov eax, dword [0x426674]
push eax
call sub.kernel32.dll_FindResourceA
push eax
mov eax, dword [0x426674]
push eax
call sub.kernel32.dll_LoadResource
mov ebp, eax
test ebp, ebp
je 0x4198d5
push ebp
call sub.kernel32.dll_LockResource
mov dword [esp], eax
mov eax, ebx
mov ecx, 4
mov edx, dword [esp]
call fcn.004044c4
add dword [esp], 4
mov eax, dword [ebx]
push eax
lea eax, [ebx + 4]
mov ecx, 1
mov edx, dword [0x405c94]
call fcn.00403cd0
add esp, 4
mov eax, dword [ebx]
push eax
lea eax, [ebx + 8]
mov ecx, 1
mov edx, dword [0x405cc0]
call fcn.00403cd0
add esp, 4
mov eax, dword [ebx]
push eax
lea eax, [ebx + 0xc]
mov ecx, 1
mov edx, dword [0x405cec]
call fcn.00403cd0
add esp, 4
mov eax, dword [ebx]
push eax
lea eax, [ebx + 0x10]
mov ecx, 1
mov edx, dword [0x405d18]
call fcn.00403cd0
add esp, 4
mov eax, dword [ebx]
test eax, eax
jbe 0x4198c8
mov ecx, eax
mov eax, dword [ebx + 4]
mov edx, dword [esp]
call fcn.004044c4
mov eax, dword [ebx]
add dword [esp], eax
mov edi, dword [ebx]
dec edi
test edi, edi
jl 0x419872
inc edi
xor esi, esi
mov eax, dword [ebx + 8]
lea eax, [eax + esi*4]
mov edx, dword [esp]
call fcn.00402dbc
mov eax, dword [ebx + 8]
mov eax, dword [eax + esi*4]
call fcn.00402e24
inc eax
add dword [esp], eax
inc esi
dec edi
jne 0x419851
mov edi, dword [ebx]
dec edi
test edi, edi
jl 0x41989d
inc edi
xor esi, esi
mov eax, dword [ebx + 0xc]
lea eax, [eax + esi*4]
mov edx, dword [esp]
call fcn.00402dbc
mov eax, dword [ebx + 0xc]
mov eax, dword [eax + esi*4]
call fcn.00402e24
inc eax
add dword [esp], eax
inc esi
dec edi
jne 0x41987c
mov edi, dword [ebx]
dec edi
test edi, edi
jl 0x4198c8
inc edi
xor esi, esi
mov eax, dword [ebx + 0x10]
lea eax, [eax + esi*4]
mov edx, dword [esp]
call fcn.00402dbc
mov eax, dword [ebx + 0x10]
mov eax, dword [eax + esi*4]
call fcn.00402e24
inc eax
add dword [esp], eax
inc esi
dec edi
jne 0x4198a7
mov eax, ebp
call fcn.004044d4
push ebp
call sub.kernel32.dll_FreeResource
pop edx
pop ebp
pop edi
pop esi
pop ebx
ret
Function at 0x419be8
Capabilities:
Extract resource via kernel32 functions

Disassembly:
push ebp
mov ebp, esp
add esp, 0xffffffe8
push ebx
lea eax, [ebp - 0x17]
mov edx, dword [0x405c74]
call fcn.00403428
xor eax, eax
push ebp
push 0x419d7d
push dword fs:[eax]
mov dword fs:[eax], esp
push 0xa
push 0x419d8c
mov eax, dword [0x426674]
push eax
call sub.kernel32.dll_FindResourceA
push eax
mov eax, dword [0x426674]
push eax
call sub.kernel32.dll_LoadResource
mov ebx, eax
test ebx, ebx
je 0x419d61
mov eax, dword [0x425190]
cmp byte [eax], 0
je 0x419c4f
mov edx, dword [0x425190]
mov dl, byte [edx]
mov eax, 0x419d98
call fcn.00417be8
push ebx
call sub.kernel32.dll_LockResource
mov dword [ebp - 8], eax
lea eax, [ebp - 0x17]
mov edx, 0xf
call fcn.004044cc
lea eax, [ebp - 0x17]
mov ecx, 1
mov edx, dword [ebp - 8]
call fcn.004044c4
inc dword [ebp - 8]
lea eax, [ebp - 0x16]
mov ecx, 1
mov edx, dword [ebp - 8]
call fcn.004044c4
inc dword [ebp - 8]
lea eax, [ebp - 0x15]
mov ecx, 1
mov edx, dword [ebp - 8]
call fcn.004044c4
inc dword [ebp - 8]
lea eax, [ebp - 0x14]
mov ecx, 4
mov edx, dword [ebp - 8]
call fcn.004044c4
add dword [ebp - 8], 4
lea eax, [ebp - 0x10]
mov ecx, 4
mov edx, dword [ebp - 8]
call fcn.004044c4
add dword [ebp - 8], 4
lea eax, [ebp - 0xc]
mov edx, dword [ebp - 8]
call fcn.00402dbc
mov eax, dword [ebp - 0xc]
call fcn.00402e24
inc eax
add dword [ebp - 8], eax
call fcn.00415868
mov word [ebp - 2], ax
mov al, byte [ebp - 0x16]
sub al, 1
jb 0x419cf5
je 0x419cff
dec al
je 0x419d09
jmp 0x419d13
mov al, byte [ebp - 2]
cmp al, byte [ebp - 0x17]
je 0x419d13
jmp 0x419d26
mov al, byte [ebp - 2]
cmp al, byte [ebp - 0x17]
jae 0x419d13
jmp 0x419d26
mov al, byte [ebp - 2]
cmp al, byte [ebp - 0x17]
ja 0x419d13
jmp 0x419d26
mov al, byte [ebp - 0x15]
mov edx, eax
sub dl, 2
jb 0x419d21
je 0x419d61
jmp 0x419d26
cmp al, byte [ebp - 1]
je 0x419d61
mov eax, dword [ebp - 0x14]
add eax, dword [ebp - 0x10]
push eax
mov eax, dword [ebp - 0xc]
call fcn.0040301c
mov edx, eax
mov ecx, 0x419da8
mov eax, dword [0x42519c]
mov eax, dword [eax]
call fcn.00417c28
cmp eax, 6
je 0x419d61
push 0
call sub.kernel32.dll_ExitProcess_1
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x419d84
lea eax, [ebp - 0x17]
mov edx, dword [0x405c74]
call fcn.004034ec
ret
Function at 0x41ab48
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.0040300c
xor eax, eax
push ebp
push 0x41abcc
push dword fs:[eax]
mov dword fs:[eax], esp
lea eax, [ebp - 8]
mov edx, 0x104
call fcn.00403148
push 0x104
mov eax, dword [ebp - 8]
call fcn.0040301c
push eax
mov eax, dword [ebp - 4]
call fcn.0040301c
push eax
call sub.kernel32.dll_ExpandEnvironmentStringsA
test eax, eax
jle 0x41aba7
mov edx, eax
dec edx
lea eax, [ebp - 8]
call fcn.00403148
mov eax, ebx
mov edx, dword [ebp - 8]
call fcn.00402c24
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x41abd3
lea eax, [ebp - 8]
mov edx, 2
call fcn.00402bf4
ret
Function at 0x41d4d0
Capabilities:
Extract resource via kernel32 functions

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffff4
push ebx
push esi
push edi
xor ecx, ecx
mov dword [ebp - 0xc], ecx
xor ecx, ecx
push ebp
push 0x41d594
push dword fs:[ecx]
mov dword fs:[ecx], esp
xor ecx, ecx
mov dword [ebp - 4], ecx
push edx
push eax
mov eax, dword [0x426674]
push eax
call sub.kernel32.dll_FindResourceA
mov ebx, eax
push ebx
mov eax, dword [0x426674]
push eax
call sub.kernel32.dll_SizeofResource
mov esi, eax
test esi, esi
jbe 0x41d578
push ebx
mov eax, dword [0x426674]
push eax
call sub.kernel32.dll_LoadResource
mov edi, eax
test edi, edi
jbe 0x41d572
push edi
call sub.kernel32.dll_LockResource
mov dword [ebp - 8], eax
cmp dword [ebp - 8], 0
je 0x41d56b
push esi
lea eax, [ebp - 0xc]
mov ecx, 1
mov edx, dword [0x41d4b4]
call fcn.00403cd0
add esp, 4
mov eax, dword [ebp - 0xc]
mov ecx, esi
mov edx, dword [ebp - 8]
call fcn.004044c4
push 0x30000
push 0
push esi
mov eax, dword [ebp - 8]
push eax
call sub.user32.dll_CreateIconFromResource
mov dword [ebp - 4], eax
mov eax, edi
call fcn.004044d4
push ebx
call sub.kernel32.dll_FreeResource
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x41d59b
lea eax, [ebp - 0xc]
mov edx, dword [0x41d4b4]
call fcn.00403cdc
ret

Function at 0x41dcdc
Capabilities:
Extract resource via kernel32 functions

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffff8
push ebx
push esi
mov ebx, edx
mov dword [ebp - 4], eax
mov eax, dword [ebp - 4]
call fcn.0040300c
xor eax, eax
push ebp
push 0x41dd60
push dword fs:[eax]
mov dword fs:[eax], esp
push ebx
mov eax, dword [ebp - 4]
call fcn.0040301c
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.004044d4
push ebx
call sub.kernel32.dll_FreeResource
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x41dd67
lea eax, [ebp - 4]
call fcn.00402bd0
ret
Function at 0x401090
Capabilities:
Get common file path

Disassembly:
sub esp, 0x20c
mov eax, dword [section..data]
xor eax, esp
mov dword [esp + 0x208], eax
push esi
lea eax, [esp + 4]
mov esi, ecx
push eax
push 0
push 0
push edx
push 0
call dword [sym.imp.SHELL32.dll_SHGetFolderPathW]
test eax, eax
je 0x4010d5
xor al, al
pop esi
mov ecx, dword [esp + 0x208]
xor ecx, esp
call fcn.00401e16
add esp, 0x20c
ret
cmp word [esi], 0
mov ecx, dword [esp + 0x214]
je 0x4010ec
add esi, 2
dec ecx
cmp word [esi], 0
jne 0x4010e2
cmp word [esp + 4], 0
je 0x401117
lea edx, [esp + 4]
sub edx, esi
nop word [eax + eax]
cmp ecx, 1
jb 0x401134
mov ax, word [edx + esi]
dec ecx
mov word [esi], ax
add esi, 2
cmp word [edx + esi], 0
jne 0x401100
mov ecx, dword [esp + 0x20c]
xor eax, eax
mov word [esi], ax
mov al, 1
pop esi
xor ecx, esp
call fcn.00401e16
add esp, 0x20c
ret
call fcn.00404fe5
int3
Function at 0x401640
Capabilities:
Create directory

Disassembly:
mov eax, 0x200c
call fcn.00414800
mov eax, dword [section..data]
xor eax, esp
mov dword [esp + 0x2004], eax
push ebx
push ebp
push esi
push edi
mov edi, dword [0x41e470]
mov ebp, ecx
test edi, edi
jne 0x4016a7
push 0x1000
mov edx, str._HOME_
lea ecx, [esp + 0x14]
call fcn.00401140
add esp, 4
test al, al
je 0x401784
lea eax, [esp + 0x10]
push eax
call fcn.00408d15
mov edi, dword [0x41e470]
add esp, 4
mov dword [edi*4 + 0x423480], eax
inc edi
mov dword [0x41e470], edi
xor esi, esi
test edi, edi
jle 0x4016f4
nop dword [eax]
mov eax, dword [esi*4 + 0x423480]
mov ecx, ebp
nop dword [eax]
mov dx, word [ecx]
cmp dx, word [eax]
jne 0x4016e6
test dx, dx
je 0x4016e2
mov dx, word [ecx + 2]
cmp dx, word [eax + 2]
jne 0x4016e6
add ecx, 4
add eax, 4
test dx, dx
jne 0x4016c0
xor eax, eax
jmp 0x4016eb
sbb eax, eax
or eax, 1
test eax, eax
je 0x40171b
inc esi
cmp esi, edi
jl 0x4016b0
mov ecx, ebp
lea edx, [ecx + 2]
nop dword [eax]
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x401700
sub ecx, edx
sar ecx, 1
cmp ecx, 2
jne 0x40171f
cmp word [ebp + 2], 0x3a
jne 0x40171f
mov al, 1
jmp 0x40176b
push 0
push ebp
call dword [sym.imp.KERNEL32.dll_CreateDirectoryW]
test eax, eax
setne bl
test eax, eax
jne 0x401740
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0xb7
jne 0x401769
mov bl, 1
cmp dword [0x41e470], 0x400
jge 0x401769
push ebp
call fcn.00408d15
mov ecx, dword [0x41e470]
add esp, 4
mov dword [ecx*4 + 0x423480], eax
inc ecx
mov dword [0x41e470], ecx
mov al, bl
mov ecx, dword [esp + 0x2014]
pop edi
pop esi
pop ebp
pop ebx
xor ecx, esp
call fcn.00401e16
add esp, 0x200c
ret
mov ecx, str._HOME_
call fcn.00401620
int3

Function at 0x401890
Capabilities:
Check if file exists
Delete file
Get file attributes
Terminate process

Disassembly:
mov eax, dword [0x41e474]
sub esp, 0x20
test eax, eax
je 0x4018c6
push 0x1388
push eax
call dword [sym.imp.KERNEL32.dll_WaitForSingleObject]
test eax, eax
je 0x4018ba
push 0
push dword [0x41e474]
call dword [sym.imp.KERNEL32.dll_TerminateProcess]
push dword [0x41e474]
call dword [sym.imp.KERNEL32.dll_CloseHandle]
cmp byte [0x41e478], 0
je 0x40199b
push ebx
push ebp
push esi
mov eax, 0x414
mov dword [esp + 0xc], 0
push edi
mov edi, dword [sym.imp.SHELL32.dll_SHFileOperationW]
mov word [esp + 0x20], ax
lea eax, [esp + 0x10]
push eax
mov dword [esp + 0x18], 3
mov dword [esp + 0x1c], 0x420c80
mov dword [esp + 0x20], 0x41ac00
mov dword [esp + 0x26], 0
mov dword [esp + 0x2a], 0
mov dword [esp + 0x2e], 0x41ac00
call edi
mov ebx, dword [sym.imp.KERNEL32.dll_Sleep]
xor esi, esi
mov ebp, dword [sym.imp.KERNEL32.dll_GetFileAttributesW]
push 0x420c80
call ebp
cmp eax, 0xffffffff
je 0x401997
test al, 0x10
je 0x401997
push 0x64
call ebx
mov eax, 0x414
mov dword [esp + 0x10], 0
mov word [esp + 0x20], ax
lea eax, [esp + 0x10]
push eax
mov dword [esp + 0x18], 3
mov dword [esp + 0x1c], 0x420c80
mov dword [esp + 0x20], 0x41ac00
mov dword [esp + 0x26], 0
mov dword [esp + 0x2a], 0
mov dword [esp + 0x2e], 0x41ac00
call edi
inc esi
cmp esi, 0x14
jl 0x401934
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x20
ret
Function at 0x402615
Capabilities:
Parse pe header

Disassembly:
push 0
call dword [sym.imp.KERNEL32.dll_GetModuleHandleW]
test eax, eax
je 0x402654
mov ecx, 0x5a4d
cmp word [eax], cx
jne 0x402654
mov ecx, dword [eax + 0x3c]
add ecx, eax
cmp dword [ecx], 0x4550
jne 0x402654
mov eax, 0x10b
cmp word [ecx + 0x18], ax
jne 0x402654
cmp dword [ecx + 0x74], 0xe
jbe 0x402654
cmp dword [ecx + 0xe8], 0
setne al
ret
xor al, al
ret

Function at 0x40a2ed
Capabilities:
Allocate thread local storage

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push esi
push 0x416a8c
push 0x416a84
push 0x415c24
push 0x1e
call fcn.0040a1cd
mov esi, eax
add esp, 0x10
test esi, esi
je 0x40a321
push dword [ebp + 8]
mov ecx, esi
call dword [0x415154]
call esi
jmp 0x40a327
call dword [sym.imp.KERNEL32.dll_TlsAlloc]
pop esi
pop ebp
ret 4

Function at 0x40a36b
Capabilities:
Get thread local storage value

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push esi
push 0x416a9c
push 0x416a94
push 0x415c48
push 0x20
call fcn.0040a1cd
mov esi, eax
add esp, 0x10
test esi, esi
je 0x40a3a2
push dword [ebp + 8]
mov ecx, esi
call dword [0x415154]
call esi
pop esi
pop ebp
ret 4
pop esi
pop ebp
jmp dword [sym.imp.KERNEL32.dll_TlsGetValue]