joyce8/EMBER2024-capa huggingface dataset:
Function at 0x40c511
Capabilities:
Set registry value

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x808
push ebx
xor ebx, ebx
cmp byte [0x421a10], bl
je 0x40c591
cmp word [0x41b0d8], bx
je 0x40c591
push esi
push 0x41b0d8
lea esi, [ebp - 0x808]
call fcn.0040c4d6
lea eax, [ebp - 8]
push eax
lea eax, [ebp - 4]
push eax
push ebx
push 0x20006
push ebx
push ebx
push ebx
push str.SoftwareWinRAR_SFX
push 0x80000001
call dword [sym.imp.ADVAPI32.dll_RegCreateKeyExW]
pop esi
test eax, eax
jne 0x40c591
push dword [ebp + 8]
call fcn.0040af5b
lea eax, [eax + eax + 2]
push eax
push dword [ebp + 8]
lea eax, [ebp - 0x808]
push 1
push ebx
push eax
push dword [ebp - 4]
call dword [sym.imp.ADVAPI32.dll_RegSetValueExW]
push dword [ebp - 4]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
pop ebx
leave
ret 4

Function at 0x40c596
Capabilities:
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
mov eax, 0x100c
call fcn.00401200
cmp byte [0x421a10], 0
je 0x40c63d
push esi
push dword [ebp + 8]
lea esi, [ebp - 0x100c]
call fcn.0040c4d6
lea eax, [ebp - 8]
push eax
push 1
push 0
push str.SoftwareWinRAR_SFX
push 0x80000001
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
pop esi
test eax, eax
jne 0x40c63d
lea eax, [ebp - 4]
push eax
lea eax, [ebp - 0x80c]
push eax
lea eax, [ebp - 0xc]
push eax
push 0
lea eax, [ebp - 0x100c]
push eax
push dword [ebp - 8]
mov dword [ebp - 4], 0x800
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
test eax, eax
jne 0x40c634
shr dword [ebp - 4], 1
mov eax, 0x3ff
cmp dword [ebp - 4], eax
jae 0x40c618
mov eax, dword [ebp - 4]
push dword [ebp + 0xc]
xor ecx, ecx
mov word [ebp + eax*2 - 0x80c], cx
lea eax, [ebp - 0x80c]
push eax
push dword [ebp + 8]
call fcn.0040ea1c
push dword [ebp - 8]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
leave
ret 8

Function at 0x40c765
Capabilities:
Set file attributes

Disassembly:
push ebp
mov ebp, esp
push esi
mov esi, dword [sym.imp.USER32.dll_DialogBoxParamW]
cmp byte [0x4218e6], 0
mov eax, dword [ebp + 0xc]
mov dword [0x4218e8], eax
mov eax, dword [ebp + 0x10]
mov dword [0x4218ec], eax
mov eax, dword [ebp + 0x14]
mov dword [0x4218e0], eax
je 0x40c795
xor eax, eax
inc eax
jmp 0x40c7be
cmp byte [0x4218e7], 0
je 0x40c7a3
push 2
pop eax
jmp 0x40c7be
push dword [ebp + 8]
push 0x40b9ef
push dword [0x421a00]
push str.REPLACEFILEDLG
push dword [0x415e74]
call esi
dec eax
je 0x40c810
dec eax
je 0x40c822
dec eax
je 0x40c809
dec eax
jne 0x40c7ed
push dword [ebp + 8]
push 0x40bd3b
push dword [0x421a00]
push str.RENAMEDLG
push dword [0x415e74]
call esi
test eax, eax
je 0x40c76f
mov al, 0x52
jmp 0x40c81d
dec eax
je 0x40c7fe
dec eax
mov al, 0x4e
jne 0x40c81d
mov byte [0x4218e7], 1
jmp 0x40c81d
mov byte [0x4219f2], 1
mov al, 0x43
jmp 0x40c81d
mov byte [0x4218e6], 1
push 0
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.dll_SetFileAttributesW]
mov al, 0x59
pop esi
pop ebp
ret 0x10
mov al, 0x4e
jmp 0x40c81d
Function at 0x40e1b4
Capabilities:
Accept command line arguments
Read file via mapping
Set environment variable
Terminate process

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x5c
push ebx
push esi
push edi
push 1
call fcn.0040ee2b
xor ebx, ebx
push ebx
call dword [sym.imp.ole32.dll_OleInitialize]
mov ecx, 0x42a4c8
call fcn.0040f551
mov esi, 0x5800
push esi
push ebx
mov edi, 0x41c0e0
push edi
call fcn.0040abda
call dword [sym.imp.KERNEL32.dll_GetCommandLineW]
mov dword [ebp - 8], eax
cmp eax, ebx
je 0x40e262
push eax
call fcn.0040c0ab
cmp byte [0x421a11], bl
je 0x40e254
push str.winrarsfxmappingfile.tmp
push ebx
push 4
call dword [sym.imp.KERNEL32.dll_OpenFileMappingW]
mov dword [ebp - 8], eax
cmp eax, ebx
je 0x40e249
push esi
push ebx
push ebx
push 4
push eax
call dword [sym.imp.KERNEL32.dll_MapViewOfFile]
mov dword [ebp - 4], eax
cmp eax, ebx
je 0x40e240
push esi
push eax
push edi
call fcn.0040ac07
push edi
push str.sfxcmd
call dword [sym.imp.KERNEL32.dll_SetEnvironmentVariableW]
push dword [ebp - 4]
call dword [sym.imp.KERNEL32.dll_UnmapViewOfFile]
push dword [ebp - 8]
call dword [sym.imp.KERNEL32.dll_CloseHandle]
jmp 0x40e262
push dword [ebp - 8]
push str.sfxcmd
call dword [sym.imp.KERNEL32.dll_SetEnvironmentVariableW]
push 0x400
mov esi, 0x41b8e0
push esi
push ebx
call dword [sym.imp.KERNEL32.dll_GetModuleFileNameW]
push esi
push str.sfxname
call dword [sym.imp.KERNEL32.dll_SetEnvironmentVariableW]
push ebx
call dword [sym.imp.KERNEL32.dll_GetModuleHandleW]
mov edi, eax
push 0x64
push edi
mov dword [0x415e74], edi
mov dword [0x415e78], edi
call dword [sym.imp.USER32.dll_LoadIconW]
push 0x65
push dword [0x415e78]
mov dword [0x41b8dc], eax
call dword [sym.imp.USER32.dll_LoadBitmapW]
lea ecx, [ebp - 0xc]
mov dword [0x41b8d8], eax
call fcn.00412983
push esi
mov ecx, 0x415e88
call fcn.0040a22e
lea ecx, [ebp - 0x5c]
call fcn.00406a41
lea ecx, [ebp - 0x34]
call fcn.00406a41
push 0x64
call fcn.0040b71f
push 0x64
mov dword [ebp - 0x40], eax
call fcn.0040b71f
push ebx
push 0x40d994
mov dword [ebp - 0x18], eax
push ebx
lea eax, [ebp - 0x5c]
mov dword [0x41b0d4], eax
push str.STARTDLG
lea eax, [ebp - 0x34]
push edi
mov dword [0x41b0d0], eax
call dword [sym.imp.USER32.dll_DialogBoxParamW]
lea ecx, [ebp - 0x34]
mov dword [0x41b0d0], ebx
mov dword [0x41b0d4], ebx
call fcn.00406a63
lea ecx, [ebp - 0x5c]
call fcn.00406a63
lea ecx, [ebp - 0xc]
call fcn.004129dd
cmp byte [0x421a08], bl
je 0x40e341
call fcn.0040c2e5
push 0x100
push ebx
push 0x4218f0
call fcn.0040abda
cmp dword [0x422b24], ebx
jbe 0x40e364
push dword [0x422b18]
call fcn.0040ab56
push dword [0x41b8dc]
mov esi, dword [sym.imp.GDI32.dll_DeleteObject]
call esi
mov eax, dword [0x41b8d8]
cmp eax, ebx
je 0x40e37e
push eax
call esi
cmp dword [0x415e7c], ebx
jne 0x40e39d
cmp byte [0x4219f2], bl
je 0x40e39d
push 0xff
mov ecx, 0x415e7c
call fcn.0040341b
mov eax, dword [0x422b30]
mov byte [0x4219f2], 1
cmp eax, ebx
je 0x40e3b3
push eax
call fcn.0040c2a6
call dword [sym.imp.ole32.dll_OleUninitialize]
mov eax, dword [0x422b2c]
cmp eax, ebx
ja 0x40e3c7
mov eax, dword [0x415e7c]
push eax
call dword [sym.imp.KERNEL32.dll_ExitProcess]
Function at 0x40e72c
Capabilities:
Hash data using sha1

Disassembly:
mov eax, dword [esp + 4]
and dword [eax + 0x18], 0
and dword [eax + 0x14], 0
mov dword [eax], 0x67452301
mov dword [eax + 4], 0xefcdab89
mov dword [eax + 8], 0x98badcfe
mov dword [eax + 0xc], 0x10325476
mov dword [eax + 0x10], 0xc3d2e1f0
ret 4

Function at 0x412828
Capabilities:
Create shortcut via ishelllink

Disassembly:
push ebp
mov ebp, esp
push ecx
push ecx
push ebx
lea eax, [ebp - 4]
push eax
push 0x413b5c
push 1
xor ebx, ebx
push ebx
push 0x413c0c
call dword [sym.imp.ole32.dll_CoCreateInstance]
test eax, eax
jl 0x4128f9
mov eax, dword [ebp - 4]
mov ecx, dword [eax]
lea edx, [ebp - 8]
push edx
push 0x413bfc
push eax
call dword [ecx]
test eax, eax
jl 0x4128f0
cmp byte [ebp + 8], bl
je 0x41287b
mov eax, dword [ebp - 8]
mov ecx, dword [eax]
push 2
push dword [ebp + 0x10]
push eax
call dword [ecx + 0x14]
mov eax, dword [ebp - 4]
push dword [ebp + 0xc]
mov ecx, dword [eax]
push eax
call dword [ecx + 0x50]
cmp dword [ebp + 0x18], ebx
je 0x412898
mov eax, dword [ebp - 4]
push dword [ebp + 0x18]
mov ecx, dword [eax]
push eax
call dword [ecx + 0x1c]
mov eax, dword [ebp - 4]
mov ecx, dword [eax]
push ebx
cmp dword [ebp + 0x1c], ebx
jne 0x4128aa
push 0x413704
jmp 0x4128ad
push dword [ebp + 0x1c]
push eax
call dword [ecx + 0x44]
cmp dword [ebp + 0x20], ebx
je 0x4128c2
mov eax, dword [ebp - 4]
push dword [ebp + 0x20]
mov ecx, dword [eax]
push eax
call dword [ecx + 0x2c]
cmp dword [ebp + 0x14], ebx
je 0x4128d3
mov eax, dword [ebp - 4]
push dword [ebp + 0x14]
mov ecx, dword [eax]
push eax
call dword [ecx + 0x24]
mov eax, dword [ebp - 8]
mov ecx, dword [eax]
push 1
push dword [ebp + 0x10]
push eax
call dword [ecx + 0x18]
test eax, eax
jl 0x4128e7
mov bl, 1
mov eax, dword [ebp - 8]
mov ecx, dword [eax]
push eax
call dword [ecx + 8]
mov eax, dword [ebp - 4]
mov ecx, dword [eax]
push eax
call dword [ecx + 8]
mov al, bl
pop ebx
leave
ret 0x1c

Function at 0x412913
Capabilities:
Get common file path

Disassembly:
push dword [esp + 4]
push dword [esp + 0xc]
call dword [sym.imp.KERNEL32.dll_GetCurrentDirectoryW]
neg eax
sbb eax, eax
neg eax
ret 8
Function at 0x40ee89
Capabilities:
Allocate thread local storage

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push esi
push 0x41f248
push 0x41f240
push str.FlsAlloc
push 0x1e
call fcn.0040ecf6
mov esi, eax
add esp, 0x10
test esi, esi
je 0x40eebd
push dword [ebp + 8]
mov ecx, esi
call dword [0x41c130]
call esi
jmp 0x40eec3
call dword [sym.imp.KERNEL32.dll_TlsAlloc]
pop esi
pop ebp
ret 4

Function at 0x40ef07
Capabilities:
Get thread local storage value

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push esi
push 0x41f258
push 0x41f250
push str.FlsGetValue
push 0x20
call fcn.0040ecf6
mov esi, eax
add esp, 0x10
test esi, esi
je 0x40ef3e
push dword [ebp + 8]
mov ecx, esi
call dword [0x41c130]
call esi
pop esi
pop ebp
ret 4
pop esi
pop ebp
jmp dword [sym.imp.KERNEL32.dll_TlsGetValue]
Function at 0x4104b3
Capabilities:
Read file on windows

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

Function at 0x4108ad
Capabilities:
Read file on windows

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
mov eax, 0x101c
call fcn.00405500
mov eax, dword [0x429014]
xor eax, ebp
mov dword [ebp - 4], eax
mov eax, dword [ebp + 0x14]
push ebx
push dword [ebp + 8]
mov dword [ebp - 0x100c], eax
call fcn.0040f519
pop ecx
mov ecx, dword [ebp + 8]
mov ebx, eax
cmp dword [ecx + 8], 0
jne 0x4108ef
mov eax, dword [ebp + 0xc]
mov edx, dword [ebp + 0x10]
jmp 0x410a4b
mov eax, dword [ecx]
sub eax, dword [ecx + 4]
push esi
push edi
push 0
cdq
push 2
push edx
push eax
call fcn.0041b460
push dword [ebp - 0x100c]
mov ecx, ebx
mov dword [ebp - 0x1008], eax
mov esi, ebx
mov dword [ebp - 0x1018], edx
and ecx, 0x3f
sar esi, 6
imul edi, ecx, 0x38
push 0
mov eax, dword [esi*4 + 0x42a908]
push dword [edi + eax + 0x24]
push dword [edi + eax + 0x20]
push ebx
call fcn.004118a4
mov ecx, dword [esi*4 + 0x42a908]
add esp, 0x14
mov dword [ebp - 0x1010], eax
mov eax, edx
mov edx, dword [ebp - 0x1010]
mov dword [ebp - 0x101c], eax
cmp edx, dword [edi + ecx + 0x20]
jne 0x410a44
cmp eax, dword [edi + ecx + 0x24]
jne 0x410a44
push 0
lea eax, [ebp - 0x1014]
push eax
push 0x1000
lea eax, [ebp - 0x1004]
push eax
push dword [edi + ecx + 0x18]
call dword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
je 0x410a44
push dword [ebp - 0x100c]
push 0
push dword [ebp + 0x10]
push dword [ebp + 0xc]
push ebx
call fcn.004118a4
add esp, 0x14
test edx, edx
jl 0x410a44
jg 0x4109ba
test eax, eax
jb 0x410a44
mov ebx, dword [ebp - 0x1018]
mov eax, dword [ebp - 0x1014]
test ebx, ebx
jg 0x410a44
jl 0x4109d4
cmp dword [ebp - 0x1008], eax
ja 0x410a44
lea edi, [ebp - 0x1004]
xor edx, edx
add edi, eax
lea ecx, [ebp - 0x1004]
xor esi, esi
cmp dword [ebp - 0x1008], edx
jne 0x4109f2
test ebx, ebx
je 0x410a2b
cmp ecx, edi
jae 0x410a2b
mov al, byte [ecx]
cmp al, 0xd
jne 0x410a0c
lea eax, [edi - 1]
cmp ecx, eax
jae 0x410a18
cmp byte [ecx + 1], 0xa
jne 0x410a18
inc ecx
jmp 0x410a18
movzx eax, al
movsx eax, byte [eax + 0x429298]
add ecx, eax
add esi, 1
adc edx, 0
inc ecx
cmp esi, dword [ebp - 0x1008]
jne 0x4109f2
cmp edx, ebx
jne 0x4109f2
lea eax, [ebp - 0x1004]
sub ecx, eax
mov eax, ecx
cdq
add eax, dword [ebp - 0x1010]
adc edx, dword [ebp - 0x101c]
jmp 0x410a49
or edx, 0xffffffff
mov eax, edx
pop edi
pop esi
mov ecx, dword [ebp - 4]
xor ecx, ebp
pop ebx
call fcn.00404c89
leave
ret
Function at 0x410d42
Capabilities:
Read file on windows

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x14
mov eax, dword [ebp + 8]
mov ecx, eax
push ebx
mov ebx, dword [ebp + 0xc]
and eax, 0x3f
sar ecx, 6
push esi
push edi
imul edi, eax, 0x38
mov eax, dword [ecx*4 + 0x42a908]
mov dword [ebp - 0x10], ecx
mov ecx, dword [eax + edi + 0x18]
mov dword [ebp - 0x14], ecx
mov ecx, dword [ebp + 0x10]
test ecx, ecx
je 0x410d82
cmp byte [ebx], 0xa
jne 0x410d82
or byte [eax + edi + 0x28], 4
jmp 0x410d87
and byte [eax + edi + 0x28], 0xfb
add ecx, ebx
mov edx, ebx
mov dword [ebp - 0xc], ecx
mov esi, ebx
cmp ebx, ecx
jae 0x410e85
mov al, byte [edx]
cmp al, 0x1a
je 0x410e67
lea ecx, [edx + 1]
mov dword [ebp - 8], ecx
mov ecx, dword [ebp - 0xc]
cmp al, 0xd
je 0x410db6
mov edx, dword [ebp - 8]
mov byte [esi], al
jmp 0x410ddb
mov eax, dword [ebp - 8]
cmp eax, ecx
jae 0x410de5
mov cl, byte [eax]
xor eax, eax
cmp cl, 0xa
sete al
inc eax
add edx, eax
cmp cl, 0xa
sete al
dec al
and al, 3
add al, 0xa
mov byte [esi], al
mov ecx, dword [ebp - 0xc]
inc esi
cmp edx, ecx
jb 0x410d98
jmp 0x410e85
push 0
lea eax, [ebp - 0xc]
push eax
push 1
lea eax, [ebp - 1]
push eax
push dword [ebp - 0x14]
call dword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
je 0x410e62
cmp dword [ebp - 0xc], 0
je 0x410e62
mov ecx, dword [ebp - 0x10]
mov eax, dword [ecx*4 + 0x42a908]
test byte [eax + edi + 0x28], 0x48
je 0x410e3c
mov dl, byte [ebp - 1]
lea eax, [esi + 1]
mov dword [ebp - 0x14], eax
cmp dl, 0xa
jne 0x410e27
mov byte [esi], dl
jmp 0x410e38
mov byte [esi], 0xd
mov eax, dword [ecx*4 + 0x42a908]
mov byte [eax + edi + 0x2a], dl
mov eax, dword [ebp - 0x14]
mov esi, eax
jmp 0x410e85
cmp byte [ebp - 1], 0xa
jne 0x410e4b
cmp esi, ebx
jne 0x410e4b
mov byte [esi], 0xa
jmp 0x410e84
push 1
push 0xffffffffffffffff
push 0xffffffffffffffff
push dword [ebp + 8]
call fcn.004118c2
add esp, 0x10
cmp byte [ebp - 1], 0xa
je 0x410e85
mov byte [esi], 0xd
jmp 0x410e84
mov ecx, dword [ebp - 0x10]
mov ecx, dword [ecx*4 + 0x42a908]
mov al, byte [ecx + edi + 0x28]
test al, 0x40
jne 0x410e81
or al, 2
mov byte [ecx + edi + 0x28], al
jmp 0x410e85
mov byte [esi], 0x1a
inc esi
sub esi, ebx
pop edi
mov eax, esi
pop esi
pop ebx
leave
ret
Function at 0x410e8e
Capabilities:
Read file on windows

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x18
mov eax, dword [ebp + 8]
push ebx
push esi
mov esi, dword [ebp + 0xc]
mov ebx, eax
and eax, 0x3f
sar ebx, 6
push edi
imul edi, eax, 0x38
push 0xa
mov eax, dword [ebx*4 + 0x42a908]
pop edx
mov dword [ebp - 0x14], edx
mov ecx, dword [edi + eax + 0x18]
mov dword [ebp - 0x18], ecx
mov ecx, dword [ebp + 0x10]
test ecx, ecx
je 0x410ed1
cmp word [esi], dx
jne 0x410ed1
or byte [edi + eax + 0x28], 4
jmp 0x410ed6
and byte [edi + eax + 0x28], 0xfb
lea edx, [esi + ecx*2]
mov eax, esi
mov dword [ebp - 8], edx
mov dword [ebp - 4], eax
cmp eax, edx
jae 0x411029
mov dword [ebp - 0xc], 0xd
movzx ecx, word [eax]
mov edx, ecx
mov dword [ebp - 0x10], edx
push 0x1a
pop edx
cmp cx, dx
mov edx, dword [ebp - 8]
je 0x411009
add eax, 2
cmp cx, word [ebp - 0xc]
je 0x410f18
mov dword [ebp - 4], eax
mov word [esi], cx
jmp 0x410f4e
cmp eax, edx
jae 0x410f5a
movzx eax, word [eax]
xor ecx, ecx
cmp ax, word [ebp - 0x14]
mov edx, eax
push 0xa
sete cl
xor eax, eax
lea ecx, [ecx*2 + 2]
add dword [ebp - 4], ecx
pop ecx
cmp dx, cx
mov edx, dword [ebp - 8]
sete al
dec eax
and eax, 3
add eax, ecx
mov word [esi], ax
mov eax, dword [ebp - 4]
add esi, 2
cmp eax, edx
jb 0x410ef0
jmp 0x411029
push 0
lea eax, [ebp - 0x14]
push eax
push 2
lea eax, [ebp - 4]
push eax
push dword [ebp - 0x18]
call dword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
je 0x411005
cmp dword [ebp - 0x14], 0
je 0x411005
mov eax, dword [ebx*4 + 0x42a908]
push 0xa
test byte [edi + eax + 0x28], 0x48
je 0x410fdd
mov dx, word [ebp - 4]
lea eax, [esi + 2]
pop ecx
mov dword [ebp - 0x18], eax
cmp dx, cx
jne 0x410fa6
mov word [esi], cx
jmp 0x410fd9
push 0xd
pop eax
mov word [esi], ax
mov eax, dword [ebx*4 + 0x42a908]
movzx ecx, dx
shr ecx, 8
push 0xa
mov byte [edi + eax + 0x2a], dl
mov eax, dword [ebx*4 + 0x42a908]
mov byte [edi + eax + 0x2b], cl
mov eax, dword [ebx*4 + 0x42a908]
pop ecx
mov byte [edi + eax + 0x2c], cl
mov eax, dword [ebp - 0x18]
mov esi, eax
jmp 0x411029
pop ebx
cmp word [ebp - 4], bx
jne 0x410fee
cmp esi, dword [ebp + 0xc]
jne 0x410fee
mov word [esi], bx
jmp 0x411026
push 1
push 0xffffffffffffffff
push 0xfffffffffffffffe
push dword [ebp + 8]
call fcn.004118c2
add esp, 0x10
cmp word [ebp - 4], bx
je 0x411029
push 0xd
jmp 0x411022
mov ecx, dword [ebx*4 + 0x42a908]
mov al, byte [ecx + edi + 0x28]
test al, 0x40
jne 0x411020
or al, 2
mov byte [ecx + edi + 0x28], al
jmp 0x411029
push 0x1a
pop eax
mov word [esi], ax
add esi, 2
sub esi, dword [ebp + 0xc]
and esi, 0xfffffffe
pop edi
mov eax, esi
pop esi
pop ebx
leave
ret
Function at 0x41604d
Capabilities:
Query environment variable

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push ecx
push ecx
push esi
call dword [sym.imp.KERNEL32.dll_GetEnvironmentStringsW]
mov esi, eax
test esi, esi
je 0x4160ea
push ebx
push esi
call fcn.00416016
xor ebx, ebx
sub eax, esi
push ebx
push ebx
push ebx
push ebx
sar eax, 1
push eax
push esi
push ebx
push ebx
mov dword [ebp - 8], eax
call fcn.00414c9b
add esp, 0x24
mov dword [ebp - 4], eax
test eax, eax
jne 0x416097
push esi
call dword [sym.imp.KERNEL32.dll_FreeEnvironmentStringsW]
xor eax, eax
jmp 0x4160e9
push edi
push eax
call fcn.00411aa1
mov edi, eax
pop ecx
push ebx
test edi, edi
jne 0x4160b7
call fcn.0040e3f2
pop ecx
push esi
call dword [sym.imp.KERNEL32.dll_FreeEnvironmentStringsW]
xor eax, eax
jmp 0x4160e8
push ebx
push dword [ebp - 4]
push edi
push dword [ebp - 8]
push esi
push ebx
push ebx
call fcn.00414c9b
add esp, 0x20
test eax, eax
jne 0x4160d6
push edi
call fcn.0040e3f2
jmp 0x4160de
push ebx
call fcn.0040e3f2
mov ebx, edi
pop ecx
push esi
call dword [sym.imp.KERNEL32.dll_FreeEnvironmentStringsW]
mov eax, ebx
pop edi
pop ebx
pop esi
leave
ret
Function at 0x4011c0
Capabilities:
Extract resource via kernel32 functions

Disassembly:
push ebx
mov ebx, dword [esp + 8]
push edi
mov edi, dword [esp + 0x10]
push edi
push ebx
call dword [sym.imp.KERNEL32.dll_LoadResource]
test eax, eax
jne 0x4011d9
pop edi
pop ebx
ret
push esi
push eax
call dword [sym.imp.KERNEL32.dll_LockResource]
mov esi, eax
test esi, esi
je 0x401214
push edi
push ebx
call dword [sym.imp.KERNEL32.dll_SizeofResource]
mov ecx, dword [esp + 0x18]
add eax, esi
and ecx, 0xf
jbe 0x401210
lea ebx, [ebx]
cmp esi, eax
jae 0x401214
sub ecx, 1
movzx edx, word [esi]
lea esi, [esi + edx*2 + 2]
jne 0x401200
cmp esi, eax
jb 0x40121a
pop esi
pop edi
xor eax, eax
pop ebx
ret
mov ax, word [esi]
neg ax
sbb eax, eax
and eax, esi
pop esi
pop edi
pop ebx
ret

Function at 0x405e70
Capabilities:
Hash data with md5

Disassembly:
sub esp, 0x68
mov eax, dword [0x4854a0]
xor eax, esp
mov dword [esp + 0x64], eax
push ebx
push ebp
mov ebp, dword [esp + 0x74]
xor eax, eax
push esi
mov ebx, ecx
cmp ebx, 0x400
push edi
mov edi, edx
mov byte [ebp + 0x20], 0
mov dword [esp + 0x10], 0x67452301
mov dword [esp + 0x14], 0xefcdab89
mov dword [esp + 0x18], 0x98badcfe
mov dword [esp + 0x1c], 0x10325476
mov dword [esp + 0x20], eax
mov dword [esp + 0x24], eax
jb 0x405ef2
mov eax, ebx
shr eax, 0xa
mov dword [esp + 0x6c], eax
push edi
mov eax, 0x400
lea esi, [esp + 0x14]
call fcn.00405dd0
add esp, 4
sub ebx, 0x400
add edi, 0x400
sub dword [esp + 0x6c], 1
jne 0x405ec9
mov eax, dword [esp + 0x20]
test ebx, ebx
jbe 0x405f09
push edi
mov eax, ebx
lea esi, [esp + 0x14]
call fcn.00405dd0
mov eax, dword [esp + 0x24]
add esp, 4
mov ecx, dword [esp + 0x24]
mov dword [esp + 0x6c], eax
shr eax, 3
and eax, 0x3f
cmp eax, 0x38
mov dword [esp + 0x70], ecx
mov ecx, 0x38
jb 0x405f2a
mov ecx, 0x78
sub ecx, eax
push 0x4776e0
mov eax, ecx
lea esi, [esp + 0x14]
call fcn.00405dd0
lea edx, [esp + 0x70]
add esp, 4
push edx
mov eax, 8
call fcn.00405dd0
add esp, 4
mov edi, esi
xor esi, esi
movzx eax, byte [edi]
push eax
lea eax, [esi + ebp]
push str._02x
push eax
call fcn.00437104
add esi, 2
add esp, 0xc
add edi, 1
cmp esi, 0x20
jl 0x405f55
mov ecx, dword [esp + 0x74]
pop edi
pop esi
pop ebp
pop ebx
xor ecx, esp
call fcn.00436f5b
add esp, 0x68
ret

Function at 0x406010
Capabilities:
Encode data using xor
Encrypt data using rc4 prga

Disassembly:
push esi
mov esi, eax
mov dl, byte [esi]
test dl, dl
mov eax, 0xdeadc0de
mov ecx, 0x7fed7fed
je 0x406050
push ebx
movsx edx, dl
lea ebx, [edx + edi]
and ebx, 0xff
add eax, ecx
xor eax, dword [ebx*4 + 0x4879b8]
mov ebx, ecx
shl ebx, 5
add esi, 1
add ebx, edx
mov dl, byte [esi]
add ebx, ecx
test dl, dl
lea ecx, [ebx + eax + 3]
jne 0x406024
pop ebx
pop esi
ret
Function at 0x4060a0
Capabilities:
Encode data using xor

Disassembly:
xor eax, eax
cmp edi, eax
je 0x4060fb
mov ecx, edi
push ebx
lea ebx, [ecx + 1]
lea esp, [esp]
mov dl, byte [ecx]
add ecx, 1
cmp dl, al
jne 0x4060b0
sub ecx, ebx
mov dword [esi + 0x13c], ecx
pop ebx
je 0x4060fb
mov edx, ecx
shr edx, 1
mov dl, byte [edx + edi]
xor dl, 0xa4
cmp ecx, eax
jbe 0x4060e6
mov cl, byte [eax + edi]
xor cl, dl
mov byte [esi + eax + 0x3c], cl
add eax, 1
cmp eax, dword [esi + 0x13c]
jb 0x4060d2
mov edx, dword [esi + 0x13c]
mov cl, byte [esi + 0x3c]
lea eax, [edx + esi + 0x3b]
mov dl, byte [eax]
mov byte [esi + 0x3c], dl
mov byte [eax], cl
ret
mov dword [esi + 0x13c], eax
mov byte [esi + 0x3c], al
ret
Function at 0x4075f0
Capabilities:
Get file size
Read file on windows
Write file on windows

Disassembly:
push 0xffffffffffffffff
push 0x46b600
mov eax, dword fs:[0]
push eax
sub esp, 0x68
mov eax, dword [0x4854a0]
xor eax, esp
mov dword [esp + 0x64], eax
push ebx
push ebp
push esi
mov eax, dword [0x4854a0]
xor eax, esp
push eax
lea eax, [esp + 0x78]
mov dword fs:[0], eax
mov eax, dword [edi]
mov ecx, dword [eax + 0x10]
mov edx, dword [edi + 0x30]
push 0
push 0
push ecx
push edx
call dword [sym.imp.KERNEL32.dll_SetFilePointer]
mov eax, dword [edi + 0x30]
push 0
push eax
call dword [sym.imp.KERNEL32.dll_GetFileSize]
mov ecx, dword [edi]
mov esi, eax
sub esi, dword [ecx + 0x10]
mov dword [esp + 0x14], esi
je 0x407797
push esi
call fcn.0041bf8c
mov ebp, eax
add esp, 4
mov dword [esp + 0x1c], ebp
push 0
lea edx, [esp + 0x1c]
push edx
push esi
mov dword [esp + 0x8c], 0
mov eax, dword [edi + 0x30]
push ebp
push eax
call dword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
je 0x40778e
cmp dword [esp + 0x18], esi
jne 0x40778e
push str..bak
lea ecx, [esp + 0x40]
call fcn.00402480
mov ebx, eax
mov byte [esp + 0x80], 1
mov eax, dword [edi + 0x28]
add eax, 0xfffffffc
push eax
lea edx, [edi + 0x14]
xor ecx, ecx
lea esi, [esp + 0x24]
call fcn.00402520
push ebx
push eax
lea esi, [esp + 0x60]
mov byte [esp + 0x88], 2
call fcn.004053a0
add esp, 8
mov ebx, 0x10
cmp dword [esp + 0x38], ebx
jb 0x4076ec
mov ecx, dword [esp + 0x24]
push ecx
call fcn.0041bf87
add esp, 4
mov esi, 0xf
mov dword [esp + 0x38], esi
mov dword [esp + 0x34], 0
mov byte [esp + 0x24], 0
mov byte [esp + 0x80], 5
cmp dword [esp + 0x54], ebx
jb 0x40771d
mov edx, dword [esp + 0x40]
push edx
call fcn.0041bf87
add esp, 4
cmp dword [esp + 0x70], ebx
mov eax, dword [esp + 0x5c]
mov dword [esp + 0x54], esi
mov dword [esp + 0x50], 0
mov byte [esp + 0x40], 0
jae 0x40773c
lea eax, [esp + 0x5c]
push 0
push 0x80
push 2
push 0
push 0
push 0x40000000
push eax
call dword [sym.imp.KERNEL32.dll_CreateFileA]
mov esi, eax
cmp esi, 0xffffffff
je 0x407785
mov ecx, dword [edi]
push 0
lea eax, [esp + 0x14]
push eax
push 4
add ecx, ebx
mov ebx, dword [sym.imp.KERNEL32.dll_WriteFile]
push ecx
push esi
call ebx
test eax, eax
jne 0x40779b
push esi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov ecx, edi
call fcn.00407b10
lea ecx, [esp + 0x58]
call fcn.004024c0
push ebp
call fcn.0041bf87
add esp, 4
xor eax, eax
jmp 0x4077de
cmp dword [esp + 0x10], 4
jne 0x407777
mov eax, dword [esp + 0x14]
push 0
lea edx, [esp + 0x14]
push edx
push eax
push ebp
push esi
call ebx
test eax, eax
je 0x407777
mov ecx, dword [esp + 0x14]
cmp dword [esp + 0x10], ecx
push esi
jne 0x407778
call dword [sym.imp.KERNEL32.dll_CloseHandle]
lea ecx, [esp + 0x58]
call fcn.004024c0
push ebp
call fcn.0041bf87
add esp, 4
mov eax, 1
mov ecx, dword [esp + 0x78]
mov dword fs:[0], ecx
pop ecx
pop esi
pop ebp
pop ebx
mov ecx, dword [esp + 0x64]
xor ecx, esp
call fcn.00436f5b
add esp, 0x74
ret