joyce8/EMBER2024-capa huggingface dataset:
Function at 0x41c197
Capabilities:
Read file on windows

Disassembly:
sub esp, 0x318
mov eax, dword [0x5107c0]
xor eax, esp
mov dword [esp + 0x314], eax
mov eax, dword [esp + 0x328]
push ebx
push ebp
mov ebp, dword [esp + 0x328]
xor ebx, ebx
push esi
push edi
push ebx
push 0x80
push 3
push ebx
xor esi, esi
mov dword [esp + 0x24], eax
mov eax, dword [esp + 0x350]
inc esi
push esi
push 0x80000000
push eax
call dword [sym.imp.KERNEL32.dll_CreateFileW]
mov edi, eax
cmp edi, 0xffffffff
je 0x41c320
push 0x103
lea eax, [esp + 0x1d]
mov byte [esp + 0x1c], bl
push ebx
push eax
call fcn.004b6030
add esp, 0xc
lea eax, [esp + 0x10]
push ebx
push eax
push 0x100
lea eax, [esp + 0x24]
push eax
push edi
call dword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
je 0x41c22a
cmp dword [esp + 0x10], 0x100
je 0x41c22c
mov esi, ebx
push edi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
test esi, esi
je 0x41c320
xor eax, eax
lea edi, [esp + 0x18]
push 0x206
mov word [esp + 0x120], ax
lea eax, [esp + 0x122]
push ebx
push eax
call fcn.004b6030
mov cl, byte [esp + 0x24]
add esp, 0xc
mov al, byte [esp + 0x19]
cmp cl, 0xff
jne 0x41c270
cmp al, 0xfe
je 0x41c2a9
cmp cl, 0xfe
jne 0x41c280
cmp al, 0xff
jne 0x41c280
xor eax, eax
jmp 0x41c322
mov ecx, dword [esp + 0x10]
lea eax, [ecx + 1]
push eax
lea eax, [esp + 0x120]
push eax
push ecx
lea eax, [esp + 0x24]
push eax
push ebx
push 0xfde9
call dword [sym.imp.KERNEL32.dll_MultiByteToWideChar]
lea edi, [esp + 0x11c]
mov esi, ebp
lea ecx, [esi + 2]
mov ax, word [esi]
add esi, 2
cmp ax, bx
jne 0x41c2ae
sub esi, ecx
push ebp
push edi
sar esi, 1
call fcn.004b547b
pop ecx
pop ecx
test eax, eax
je 0x41c320
add esi, esi
add eax, esi
cmp word [eax], 0x3d
je 0x41c2e6
add eax, 2
push ebp
push eax
call fcn.004b547b
pop ecx
pop ecx
test eax, eax
jne 0x41c2cc
jmp 0x41c320
add eax, 2
push 0xd
mov edx, eax
pop esi
jmp 0x41c300
movzx ecx, word [eax]
cmp ecx, 0xa
je 0x41c305
test cx, cx
je 0x41c305
add eax, 2
cmp word [eax], si
jne 0x41c2f0
push dword [esp + 0x33c]
xor ecx, ecx
push edx
push dword [esp + 0x1c]
mov word [eax], cx
call fcn.0041cb24
add esp, 0xc
mov ebx, eax
mov eax, ebx
mov ecx, dword [esp + 0x324]
pop edi
pop esi
pop ebp
pop ebx
xor ecx, esp
call fcn.004b35e5
add esp, 0x318
ret
Function at 0x41c364
Capabilities:
Enumerate files on windows
Identify system language via api

Disassembly:
sub esp, 0x490
mov eax, dword [0x5107c0]
xor eax, esp
mov dword [esp + 0x48c], eax
push esi
lea eax, [esp + 0x278]
xor esi, esi
push eax
call fcn.00415c33
pop ecx
cmp word [esp + 0x278], si
je 0x41c39b
xor eax, eax
inc eax
jmp 0x41c59e
call dword [sym.imp.KERNEL32.dll_GetUserDefaultLangID]
movzx eax, ax
mov ecx, 0x409
mov dword [esp + 0xc], eax
cmp ax, cx
jne 0x41c3b9
xor eax, eax
jmp 0x41c59e
push ebx
push ebp
mov ebp, eax
mov dword [esp + 0x26a], esi
xor eax, eax
mov word [esp + 0x26e], si
mov word [esp + 0x268], ax
and ebp, 0x3ff
lea eax, [esp + 0x290]
push eax
call fcn.0041bd2b
push dword [0x5218cc]
mov ebx, eax
push str._s___.ini
push ebx
mov dword [esp + 0x20], ebx
call dword [sym.imp.USER32.dll_wsprintfW]
mov ecx, dword [0x5218cc]
add esp, 0x10
lea edx, [ecx + 2]
mov ax, word [ecx]
add ecx, 2
cmp ax, si
jne 0x41c40d
sub ecx, edx
mov dword [esp + 0x18], esi
sar ecx, 1
lea eax, [esp + 0x1c]
push 0x24c
push esi
push eax
lea ebx, [ebx + ecx*2]
call fcn.004b6030
add esp, 0xc
lea eax, [esp + 0x18]
push eax
lea eax, [esp + 0x294]
push eax
call dword [sym.imp.KERNEL32.dll_FindFirstFileW]
mov dword [esp + 0xc], eax
cmp eax, 0xffffffff
je 0x41c578
push edi
test byte [esp + 0x1c], 0x10
jne 0x41c540
xor eax, eax
lea edi, [esp + 0x276]
mov word [esp + 0x274], ax
stosd dword es:[edi], eax
stosd dword es:[edi], eax
stosd dword es:[edi], eax
stosw word es:[edi], ax
lea eax, [esp + 0x48]
push eax
push dword [esp + 0x18]
call dword [sym.imp.KERNEL32.dll_lstrcpyW]
lea eax, [esp + 0x294]
push eax
push 8
lea eax, [esp + 0x27c]
push eax
push 0x4e8cf8
push 0x4d06f8
push str.INFO
call fcn.0041c197
add esp, 0x18
test eax, eax
je 0x41c53c
cmp word [esp + 0x274], 0x30
jne 0x41c4e4
cmp word [esp + 0x276], 0x78
je 0x41c4d9
cmp word [esp + 0x276], 0x58
jne 0x41c4e4
push 0x10
lea eax, [esp + 0x27c]
jmp 0x41c4ed
push 0xa
lea eax, [esp + 0x278]
push esi
push eax
call fcn.004b9a09
mov ecx, eax
add esp, 0xc
mov eax, dword [esp + 0x18]
movzx eax, ax
cmp ecx, eax
je 0x41c559
cmp word [esp + 0x26c], si
jne 0x41c53c
and ecx, 0x3ff
cmp cx, bp
jne 0x41c53c
mov ax, word [ebx]
mov word [esp + 0x26c], ax
mov ax, word [ebx + 2]
mov word [esp + 0x26e], ax
mov ax, word [ebx + 4]
mov word [esp + 0x270], ax
mov eax, dword [esp + 0x10]
lea ecx, [esp + 0x1c]
push ecx
push eax
call dword [sym.imp.KERNEL32.dll_FindNextFileW]
test eax, eax
je 0x41c569
mov eax, dword [esp + 0x10]
jmp 0x41c457
xor eax, eax
push ebx
mov word [ebx + 6], ax
call fcn.00415d03
xor esi, esi
pop ecx
inc esi
push dword [esp + 0x10]
call dword [sym.imp.KERNEL32.dll_FindClose]
pop edi
test esi, esi
jne 0x41c59a
cmp word [esp + 0x268], 0
je 0x41c59a
cmp bp, 9
je 0x41c59a
lea eax, [esp + 0x268]
push eax
call fcn.00415d03
xor esi, esi
pop ecx
inc esi
pop ebp
mov eax, esi
pop ebx
mov ecx, dword [esp + 0x490]
pop esi
xor ecx, esp
call fcn.004b35e5
add esp, 0x490
ret
Function at 0x41d4f7
Capabilities:
Connect to http server
Create http request
Send data
Send http request

Disassembly:
sub esp, 0x34
push ebx
push ebp
push esi
xor ebp, ebp
mov esi, 0x4200000
push ebp
push ebp
push ebp
push ebp
push 0x4d0878
call dword [sym.imp.WININET.dll_InternetOpenA]
mov ebx, eax
test ebx, ebx
je 0x41d624
push edi
mov edi, dword [esp + 0x48]
push ebp
push ebp
push 3
movzx eax, word [edi + 0x2c]
push ebp
push ebp
push eax
push dword [edi + 0x24]
push ebx
call dword [sym.imp.WININET.dll_InternetConnectA]
mov dword [esp + 0x18], eax
test eax, eax
je 0x41d623
cmp dword [edi + 0x2c], 0x1bb
mov ecx, 0x4a00000
push ebp
cmove esi, ecx
push esi
push section..data
push ebp
push ebp
push dword [edi + 0x28]
push str.POST
push eax
call dword [sym.imp.WININET.dll_HttpOpenRequestA]
mov ebp, dword [sym.imp.WININET.dll_InternetCloseHandle]
mov esi, eax
test esi, esi
je 0x41d617
push 4
lea eax, [esp + 0x14]
mov dword [esp + 0x14], 0x493e0
push eax
push 6
push esi
call dword [sym.imp.WININET.dll_InternetSetOptionA]
push dword [esp + 0x50]
xor eax, eax
push eax
push edi
push eax
call fcn.0041d7d1
xor ecx, ecx
mov dword [esp + 0x24], eax
add esp, 0x10
mov dword [esp + 0x38], eax
lea eax, [esp + 0x1c]
mov dword [esp + 0x1c], 0x28
mov dword [esp + 0x20], ecx
mov dword [esp + 0x24], str.Content_type:_multipart_form_data__boundaryAaBbCc
push ecx
push ecx
push ecx
push eax
push esi
mov dword [esp + 0x3c], 0x32
mov dword [esp + 0x40], ecx
mov dword [esp + 0x44], ecx
mov dword [esp + 0x48], ecx
mov dword [esp + 0x50], ecx
mov dword [esp + 0x54], ecx
call dword [sym.imp.WININET.dll_HttpSendRequestExA]
test eax, eax
je 0x41d614
push dword [esp + 0x50]
push dword [esp + 0x50]
push edi
push esi
call fcn.0041d7d1
add esp, 0x10
cmp eax, dword [esp + 0x14]
jne 0x41d614
xor eax, eax
push eax
push eax
push eax
push esi
call dword [sym.imp.WININET.dll_HttpEndRequestA]
push esi
call ebp
push dword [esp + 0x18]
call ebp
push ebx
call ebp
xor eax, eax
inc eax
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x34
ret
Function at 0x41d7d1
Capabilities:
Send data

Disassembly:
sub esp, 0x414
mov eax, dword [0x5107c0]
xor eax, esp
mov dword [esp + 0x410], eax
mov eax, dword [esp + 0x420]
push ebx
mov ebx, dword [esp + 0x420]
push ebp
mov ebp, dword [esp + 0x420]
push esi
push edi
xor edi, edi
mov dword [esp + 0x1c], eax
push edi
lea eax, [esp + 0x24]
mov dword [esp + 0x18], ebp
push eax
push ebx
mov dword [esp + 0x1c], edi
call fcn.0041cf8c
add esp, 0xc
test ebp, ebp
jne 0x41d868
lea esi, [esp + 0x20]
lea ecx, [esi + 1]
mov al, byte [esi]
inc esi
test al, al
jne 0x41d826
sub esi, ecx
add esi, 0x38
cmp dword [esp + 0x434], edi
jbe 0x41d860
mov eax, 0x4d0870
push eax
push eax
lea eax, [esp + 0x28]
push str.__AaBbCc_r_nContent_disposition:_form_data__name__s___filename__s__r_nContent_Type:_octet_stream_r_nContent_Transfer_Encoding:_binary_r_n_r_n
push eax
call fcn.004b4a31
add eax, 2
add esp, 0x10
add eax, dword [esp + 0x434]
add esi, eax
add esi, 0xc
jmp 0x41d975
push 0x4d0874
lea eax, [esp + 0x24]
push str.__AaBbCc_r_nContent_disposition:_form_data__name__s__r_n_r_n
push eax
call fcn.004b4a31
lea esi, [esp + 0x2c]
add esi, eax
push 1
push esi
push ebx
call fcn.0041cf8c
add esi, eax
add esp, 0x18
lea eax, [esp + 0x20]
mov byte [esi], 0xd
inc esi
mov byte [esi], 0xa
sub esi, eax
lea eax, [esp + 0x10]
inc esi
push eax
push esi
lea eax, [esp + 0x28]
push eax
push ebp
call dword [sym.imp.WININET.dll_InternetWriteFile]
test eax, eax
je 0x41d977
mov ebx, dword [esp + 0x434]
test ebx, ebx
je 0x41d938
mov eax, 0x4d0870
push eax
push eax
lea eax, [esp + 0x28]
push str.__AaBbCc_r_nContent_disposition:_form_data__name__s___filename__s__r_nContent_Type:_octet_stream_r_nContent_Transfer_Encoding:_binary_r_n_r_n
push eax
call fcn.004b4a31
add esp, 0x10
mov dword [esp + 0x18], eax
lea ecx, [esp + 0x10]
push ecx
push eax
lea eax, [esp + 0x28]
push eax
push ebp
call dword [sym.imp.WININET.dll_InternetWriteFile]
test eax, eax
je 0x41d975
add esi, dword [esp + 0x18]
mov ebp, 0x400
lea eax, [esp + 0x10]
push eax
mov eax, dword [esp + 0x20]
cmp ebx, ebp
cmovb ebp, ebx
add eax, edi
push ebp
push eax
push dword [esp + 0x20]
call dword [sym.imp.WININET.dll_InternetWriteFile]
test eax, eax
je 0x41d975
add esi, ebp
add edi, ebp
sub ebx, ebp
jne 0x41d8fa
mov ebp, dword [esp + 0x14]
lea edx, [esp + 0x22]
mov word [esp + 0x20], 0xa0d
jmp 0x41d93c
lea edx, [esp + 0x20]
mov ecx, str.__AaBbCc___r_n
sub edx, ecx
mov al, byte [ecx]
mov byte [edx + ecx], al
inc ecx
test al, al
jne 0x41d943
lea edi, [esp + 0x20]
lea ecx, [edi + 1]
mov al, byte [edi]
inc edi
test al, al
jne 0x41d954
lea eax, [esp + 0x10]
sub edi, ecx
push eax
push edi
lea eax, [esp + 0x28]
push eax
push ebp
call dword [sym.imp.WININET.dll_InternetWriteFile]
test eax, eax
je 0x41d975
add esi, edi
mov eax, esi
mov ecx, dword [esp + 0x420]
pop edi
pop esi
pop ebp
pop ebx
xor ecx, esp
call fcn.004b35e5
add esp, 0x414
ret
Function at 0x41da2e
Capabilities:
Encode data using xor

Disassembly:
push ecx
push ebp
mov ebp, dword [esp + 0xc]
lea eax, [esp + 4]
push esi
push eax
mov ecx, dword [ebp + 0xa4]
call fcn.0041ad3d
mov esi, eax
test esi, esi
je 0x41daa8
mov edx, dword [esp + 8]
mov ecx, esi
push ebx
shl eax, 8
mov ebx, edx
add eax, edx
shr ebx, 2
mov dword [esp + 0x14], eax
push edi
mov edi, edx
test ebx, ebx
je 0x41da75
mov edx, ebx
xor dword [ecx], eax
add ecx, 4
dec edx
jne 0x41da69
mov edx, dword [esp + 0x10]
mov eax, ebx
shl eax, 2
sub edi, eax
test edi, edi
jle 0x41da95
lea edx, [esp + 0x18]
sub edx, ecx
mov al, byte [edx + ecx]
dec edi
xor byte [ecx], al
inc ecx
test edi, edi
jg 0x41da86
mov edx, dword [esp + 0x10]
push edx
push esi
push ebp
call fcn.0041d4f7
push esi
call fcn.0040746c
add esp, 0x10
pop edi
pop ebx
pop esi
pop ebp
pop ecx
ret
Function at 0x41e6c4
Capabilities:
Create thread
Hide graphical window

Disassembly:
push ebx
push ebp
mov ebp, dword [esp + 0xc]
push esi
push edi
mov edi, dword [sym.imp.USER32.dll_GetDlgItem]
mov ebx, dword [ebp + 0xb0]
push 0
push 8
push ebx
call edi
push eax
call dword [sym.imp.USER32.dll_EnableWindow]
push 0
push 7
push ebx
call edi
mov esi, dword [sym.imp.USER32.dll_ShowWindow]
push eax
call esi
push 0
push 6
push ebx
call edi
push eax
call esi
push 1
push 9
push ebx
call edi
push eax
call esi
push 1
push 0x34
push ebx
call edi
push eax
call esi
lea eax, [esp + 0x14]
push eax
xor eax, eax
push eax
push ebp
push 0x41e8f2
push eax
push eax
call dword [sym.imp.KERNEL32.dll_CreateThread]
push eax
call dword [sym.imp.KERNEL32.dll_CloseHandle]
pop edi
pop esi
pop ebp
pop ebx
ret

Function at 0x41e82f
Capabilities:
Check os version
Create process on windows

Disassembly:
sub esp, 0x154
mov eax, dword [0x5107c0]
xor eax, esp
mov dword [esp + 0x150], eax
push ebx
mov ebx, dword [esp + 0x164]
lea eax, [esp + 0x48]
push ebp
push esi
mov esi, dword [esp + 0x164]
xor ebp, ebp
push edi
mov edi, dword [esp + 0x16c]
push 0x10c
push ebp
push eax
mov dword [esp + 0x58], 0x114
mov dword [esp + 0x5c], ebp
call fcn.004b6030
add esp, 0xc
lea eax, [esp + 0x4c]
push eax
call dword [sym.imp.KERNEL32.dll_GetVersionExW]
push 0x38
lea eax, [esp + 0x18]
push ebp
push eax
call fcn.004b6030
add esp, 0xc
mov dword [esp + 0x10], 0x3c
cmp dword [esp + 0x50], 6
mov ecx, str.open
mov eax, str.runas
mov dword [esp + 0x14], ebp
cmovb eax, ecx
mov dword [esp + 0x20], esi
mov dword [esp + 0x1c], eax
lea eax, [esp + 0x10]
push eax
mov dword [esp + 0x28], edi
mov dword [esp + 0x2c], ebx
mov dword [esp + 0x30], 1
call dword [sym.imp.SHELL32.dll_ShellExecuteExW]
mov ecx, dword [esp + 0x160]
pop edi
pop esi
pop ebp
pop ebx
xor ecx, esp
call fcn.004b35e5
add esp, 0x154
ret

Function at 0x41e9c4
Capabilities:
Check http status code
Create http request
Read data from internet
Receive data

Disassembly:
push ebp
mov ebp, esp
push ecx
push ecx
mov eax, dword [ebp + 0x18]
xor ecx, ecx
push ebx
push ecx
push ecx
push ecx
push ecx
push dword [ebp + 0x14]
mov dword [ebp - 8], ecx
mov dword [eax], ecx
call dword [sym.imp.WININET.dll_InternetOpenA]
mov ebx, eax
test ebx, ebx
je 0x41ea54
push edi
xor eax, eax
push eax
push 0x4080300
push eax
push eax
push dword [ebp + 8]
push ebx
call dword [sym.imp.WININET.dll_InternetOpenUrlA]
mov edi, eax
test edi, edi
je 0x41ea4c
lea eax, [ebp - 8]
push eax
push 0x13
push edi
call fcn.0041e2fa
add esp, 0xc
test eax, eax
je 0x41ea45
cmp dword [ebp - 8], 0xc8
jne 0x41ea45
and dword [ebp - 4], 0
lea eax, [ebp - 4]
push esi
mov esi, dword [ebp + 0xc]
push eax
push dword [ebp + 0x10]
push esi
push edi
call dword [sym.imp.WININET.dll_InternetReadFile]
mov eax, dword [ebp - 4]
mov ecx, dword [ebp + 0x18]
mov byte [eax + esi], 0
mov eax, dword [ebp - 4]
mov dword [ecx], eax
pop esi
push edi
call dword [sym.imp.WININET.dll_InternetCloseHandle]
push ebx
call dword [sym.imp.WININET.dll_InternetCloseHandle]
pop edi
mov eax, dword [ebp - 8]
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x41f658
Capabilities:
Encode data using xor

Disassembly:
mov ecx, dword [esp + 4]
mov eax, dword [esp + 8]
push ebx
push ebp
push esi
lea ebp, [ecx + eax]
and eax, 0xfffffffc
add eax, ecx
mov edx, eax
sub edx, ecx
push edi
xor edi, edi
add edx, 3
mov ebx, edi
shr edx, 2
and dword [esp + 0x14], ebx
mov esi, edi
cmp ecx, eax
cmova edx, dword [esp + 0x14]
test edx, edx
je 0x41f698
xor esi, dword [ecx]
add ecx, 4
rol esi, 3
inc ebx
cmp ebx, edx
jb 0x41f68b
mov edx, ebp
xor eax, eax
sub edx, ecx
cmp ecx, ebp
cmova edx, eax
test edx, edx
je 0x41f6b5
movzx eax, byte [ecx]
xor esi, eax
rol esi, 3
inc ecx
inc edi
cmp edi, edx
jb 0x41f6a7
pop edi
mov eax, esi
pop esi
pop ebp
pop ebx
ret

Function at 0x420149
Capabilities:
Create directory
Delete file
Get common file path

Disassembly:
push ebp
lea ebp, [esp - 0x190]
sub esp, 0x210
mov eax, dword [0x5107c0]
xor eax, ebp
mov dword [ebp + 0x18c], eax
push esi
lea eax, [ebp - 0x7c]
push eax
push 0x104
call dword [sym.imp.KERNEL32.dll_GetTempPathW]
push 0xfadd9ea6
push 0x206ba278
push 0xdf905820
mov esi, eax
call fcn.004017db
add esp, 0xc
push eax
lea eax, [ebp - 0x7c]
lea eax, [eax + esi*2]
push eax
call dword [sym.imp.KERNEL32.dll_lstrcpyW]
xor esi, esi
lea eax, [ebp - 0x7c]
push esi
push eax
call dword [sym.imp.KERNEL32.dll_CreateDirectoryW]
lea eax, [ebp - 0x7c]
push eax
call dword [sym.imp.KERNEL32.dll_lstrlenW]
lea ecx, [ebp - 0x7c]
lea ecx, [ecx + eax*2]
mov eax, dword [ebp + 0x198]
movzx eax, al
mov word [ecx], ax
xor eax, eax
mov word [ecx + 2], ax
mov eax, dword [ebp + 0x19c]
sub eax, esi
je 0x4201fb
dec eax
je 0x4201e9
dec eax
jne 0x4201e4
lea eax, [ebp - 0x7c]
push eax
call dword [sym.imp.KERNEL32.dll_DeleteFileW]
mov eax, dword [ebp - 0x80]
jmp 0x420212
push esi
push 0x4000000
push 3
push esi
push 5
push 0x80000000
jmp 0x420208
push esi
push 2
push 2
push esi
push 3
push 0xc0000000
lea eax, [ebp - 0x7c]
push eax
call dword [sym.imp.KERNEL32.dll_CreateFileW]
mov ecx, dword [ebp + 0x18c]
xor ecx, ebp
pop esi
call fcn.004b35e5
lea esp, [ebp + 0x190]
pop ebp
ret
Function at 0x4209de
Capabilities:
Encode data using xor

Disassembly:
sub esp, 0x118
mov eax, dword [0x5107c0]
xor eax, esp
mov dword [esp + 0x114], eax
push ebx
push ebp
push esi
mov esi, dword [esp + 0x128]
xor ebx, ebx
push edi
push 0x3000
push ebx
mov ebp, ecx
mov byte [esp + 0x1b], bl
call dword [sym.imp.KERNEL32.dll_GetProcessHeap]
push eax
call dword [sym.imp.KERNEL32.dll_HeapAlloc]
mov edi, eax
mov dword [esp + 0x14], edi
test edi, edi
jne 0x420a29
xor al, al
jmp 0x420b77
mov ecx, dword [ebp + 0x5c]
lea eax, [esp + 0x20]
push eax
push 0x1800
push edi
push ebx
push ebx
push esi
call fcn.004439e2
test al, al
je 0x420b6e
cmp byte [ebp + 0x81], bl
je 0x420a61
push 3
lea eax, [ebp + 0x1dc]
push edi
push eax
call fcn.0042461b
add esp, 0xc
mov ecx, 0x4f31e0
mov al, bl
mov dword [esp + 0x1c], ecx
movzx esi, byte [ecx]
xor esi, 0x4b
je 0x420b68
mov eax, esi
lea edi, [ecx + 1]
shl eax, 4
push eax
mov dword [esp + 0x1c], eax
lea eax, [esp + 0x28]
push edi
push eax
call fcn.004b91d0
mov eax, dword [esp + 0x24]
add esp, 0xc
test eax, eax
jle 0x420ab9
lea ecx, [eax - 1]
lea edx, [esp + 0x24]
shr ecx, 1
sub edx, edi
inc ecx
mov eax, 0x552
xor ax, word [edi]
mov word [edx + edi], ax
lea edi, [edi + 2]
dec ecx
jne 0x420aa7
mov edi, ebx
test esi, esi
jle 0x420b4d
mov ecx, dword [esp + 0x14]
mov eax, ebx
lea edx, [ecx + 0x1800]
add eax, eax
push ebx
lea eax, [esp + eax*8 + 0x28]
push eax
push 0x1800
push edx
push ecx
mov ecx, ebp
call fcn.0042499e
cmp eax, 0x1f
je 0x420afe
mov ecx, dword [esp + 0x14]
inc edi
movzx eax, di
lea edx, [ecx + 0x1800]
cmp eax, esi
jl 0x420acf
jmp 0x420b4d
movzx eax, si
shl eax, 4
push eax
mov word [ebp + 0x1ec], si
call fcn.00407458
mov dword [ebp + 0x1d8], eax
mov edx, ebx
xor eax, eax
pop ecx
cmp ax, word [ebp + 0x1ec]
jae 0x420b48
mov ecx, ebx
mov edi, dword [ebp + 0x1d8]
lea esi, [esp + 0x24]
add esi, ecx
add edi, ecx
inc edx
add ecx, 0x10
movsd dword es:[edi], dword [esi]
movsd dword es:[edi], dword [esi]
movsd dword es:[edi], dword [esi]
movsd dword es:[edi], dword [esi]
movzx eax, word [ebp + 0x1ec]
cmp edx, eax
jb 0x420b27
mov byte [esp + 0x13], 1
mov ecx, dword [esp + 0x1c]
mov eax, dword [esp + 0x18]
inc ecx
add ecx, eax
mov al, byte [esp + 0x13]
mov dword [esp + 0x1c], ecx
test al, al
je 0x420a6c
mov edi, dword [esp + 0x14]
mov bl, al
push edi
call fcn.0040746c
pop ecx
mov al, bl
mov ecx, dword [esp + 0x124]
pop edi
pop esi
pop ebp
pop ebx
xor ecx, esp
call fcn.004b35e5
add esp, 0x118
ret 4
Function at 0x420ec3
Capabilities:
Encode data using xor

Disassembly:
sub esp, 0x278
mov eax, dword [0x5107c0]
xor eax, esp
mov dword [esp + 0x274], eax
mov eax, dword [esp + 0x27c]
push ebx
push esi
push edi
mov edi, dword [esp + 0x28c]
mov ebx, ecx
push edi
mov dword [esp + 0x18], eax
call fcn.00424b90
mov esi, eax
mov eax, 0x100
movzx edx, byte [edi + esi]
movzx ecx, byte [edi + esi + 1]
imul dx, ax
add dx, cx
movzx eax, dx
shl eax, 4
push eax
mov word [ebx + 0x1ec], dx
call fcn.00407458
mov dword [ebx + 0x1d8], eax
pop ecx
pop ecx
test eax, eax
jne 0x420f31
xor al, al
jmp 0x421099
xor eax, eax
add esi, 0x10
push ebp
cmp ax, word [ebx + 0x1ec]
jae 0x421096
and dword [esp + 0x10], eax
xor ebp, ebp
inc ebp
lea eax, [edi + esi]
push dword [esp + 0x18]
lea esi, [eax + 0x20]
add eax, 0x30
lea edi, [esp + 0x228]
mov dword [esp + 0x18], eax
movsd dword es:[edi], dword [esi]
lea eax, [esp + 0x24]
push eax
movsd dword es:[edi], dword [esi]
movsd dword es:[edi], dword [esi]
movsd dword es:[edi], dword [esi]
call fcn.0042ec38
mov eax, dword [ebx + 0x1d8]
mov edi, dword [esp + 0x18]
add eax, edi
push eax
lea eax, [esp + 0x230]
push eax
lea eax, [esp + 0x30]
push eax
call fcn.0042d0bb
mov eax, dword [ebx + 0x70]
add esp, 0x14
cmp eax, 0x16
je 0x420fae
cmp eax, 0x15
je 0x420fa9
cmp eax, 0xb
jne 0x421073
cmp eax, 0x16
jne 0x420fc0
push ebp
push 0xfe9a685a
push 0x242c5490
push 0xdbd7aeb4
jmp 0x420fec
cmp eax, 0x15
jne 0x420fd7
push ebp
push 0x3cb74529
push 0xe60179e6
push 0x19fa83e2
jmp 0x420fec
cmp eax, 0xb
jne 0x421005
push ebp
push 0x6121d2a2
push 0xbb97ee55
push 0x446c142b
call fcn.004017ae
add esp, 0xc
push eax
lea eax, [esp + 0x24c]
push eax
call fcn.004b4a31
add esp, 0xc
mov ecx, dword [ebx + 0x5c]
lea eax, [esp + 0x244]
push 0
push eax
call fcn.00442453
test eax, eax
je 0x421073
lea ecx, [esp + 0x1c]
push ecx
mov ecx, dword [ebx + 0x5c]
push eax
call fcn.00443c4e
mov esi, eax
test esi, esi
je 0x421092
mov ecx, dword [esp + 0x1c]
test ecx, ecx
je 0x421092
lea eax, [esp + 0x234]
push eax
xor eax, eax
shld eax, ecx, 3
push eax
shl ecx, 3
push ecx
push esi
call fcn.00424d27
push esi
call fcn.0040746c
add esp, 0x14
xor edx, edx
mov ecx, dword [ebx + 0x1d8]
mov al, byte [esp + edx + 0x234]
add ecx, edi
xor byte [ecx + edx], al
inc edx
cmp edx, 0x10
jl 0x42105b
movzx eax, word [ebx + 0x1ec]
inc ebp
add edi, 0x10
mov dword [esp + 0x10], edi
lea ecx, [ebp - 1]
cmp ecx, eax
jae 0x421096
mov eax, dword [esp + 0x14]
jmp 0x420f4e
xor al, al
jmp 0x421098
mov al, 1
pop ebp
mov ecx, dword [esp + 0x280]
pop edi
pop esi
pop ebx
xor ecx, esp
call fcn.004b35e5
add esp, 0x278
ret 8
Function at 0x4210b3
Capabilities:
Create directory
Get common file path

Disassembly:
push ebx
push ebp
push esi
push edi
mov edi, dword [esp + 0x14]
mov ebp, ecx
push edi
push 0x104
call dword [sym.imp.KERNEL32.dll_GetTempPathW]
push 0x24af5ada
push 0xfe196604
push 0x1e29ba2
mov esi, eax
call fcn.004017db
add esp, 0xc
push eax
lea eax, [edi + esi*2]
push eax
call dword [sym.imp.KERNEL32.dll_lstrcpyW]
xor ebx, ebx
push ebx
push edi
call dword [sym.imp.KERNEL32.dll_CreateDirectoryW]
push edi
call dword [sym.imp.KERNEL32.dll_lstrlenW]
lea esi, [edi + eax*2]
movzx eax, byte [ebx + ebp + 0x21c]
push eax
push 0x517b1d40
push 0x8bcd2192
push 0x7436dc00
call fcn.004017db
add esp, 0xc
push eax
push esi
call dword [sym.imp.USER32.dll_wsprintfW]
add esp, 0xc
add esi, 4
inc ebx
cmp ebx, 8
jl 0x421101
push 0x2e
pop eax
push 0x74
pop ecx
mov word [esi], ax
push 0x78
pop eax
mov word [esi + 2], cx
mov word [esi + 4], ax
xor eax, eax
pop edi
mov word [esi + 6], cx
mov word [esi + 8], ax
mov al, 1
pop esi
pop ebp
pop ebx
ret 4