joyce8/EMBER2024-capa huggingface dataset:
Function at 0x405a80
Capabilities:
Terminate process

Disassembly:
cmp ecx, dword [0x804568]
jne 0x405a8a
repz ret
jmp fcn.00407a6b

Function at 0x4064db
Capabilities:
Link many functions at runtime

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x24
mov eax, dword [0x804568]
xor eax, ebp
mov dword [ebp - 4], eax
mov eax, dword [ebp + 8]
push ebx
mov dword [ebp - 0x20], eax
mov eax, dword [ebp + 0xc]
push esi
push edi
mov dword [ebp - 0x1c], eax
call fcn.00404844
and dword [ebp - 0x14], 0
cmp dword [0x806570], 0
mov dword [ebp - 0x18], eax
jne 0x40658e
push 0x401e08
call dword [sym.imp.KERNEL32.dll_LoadLibraryW]
mov ebx, eax
test ebx, ebx
je 0x406636
mov edi, dword [sym.imp.KERNEL32.dll_GetProcAddress]
push 0x401dfc
push ebx
call edi
test eax, eax
je 0x406636
mov esi, dword [sym.imp.KERNEL32.dll_EncodePointer]
push eax
call esi
push 0x401dec
push ebx
mov dword [0x806570], eax
call edi
push eax
call esi
push 0x401dd8
push ebx
mov dword [0x806574], eax
call edi
push eax
call esi
push 0x401dbc
push ebx
mov dword [0x806578], eax
call edi
push eax
call esi
mov dword [0x806580], eax
test eax, eax
je 0x40658e
push 0x401da4
push ebx
call edi
push eax
call esi
mov dword [0x80657c], eax
mov eax, dword [0x80657c]
mov ecx, dword [ebp - 0x18]
mov esi, dword [sym.imp.KERNEL32.dll_DecodePointer]
cmp eax, ecx
je 0x4065e7
cmp dword [0x806580], ecx
je 0x4065e7
push eax
call esi
push dword [0x806580]
mov edi, eax
call esi
mov ebx, eax
test edi, edi
je 0x4065e7
test ebx, ebx
je 0x4065e7
call edi
test eax, eax
je 0x4065de
lea ecx, [ebp - 0x24]
push ecx
push 0xc
lea ecx, [ebp - 0x10]
push ecx
push 1
push eax
call ebx
test eax, eax
je 0x4065de
test byte [ebp - 8], 1
jne 0x4065e7
or dword [ebp + 0x10], 0x200000
jmp 0x40661a
mov eax, dword [0x806574]
cmp eax, dword [ebp - 0x18]
je 0x40661a
push eax
call esi
test eax, eax
je 0x40661a
call eax
mov dword [ebp - 0x14], eax
test eax, eax
je 0x40661a
mov eax, dword [0x806578]
cmp eax, dword [ebp - 0x18]
je 0x40661a
push eax
call esi
test eax, eax
je 0x40661a
push dword [ebp - 0x14]
call eax
mov dword [ebp - 0x14], eax
push dword [0x806570]
call esi
test eax, eax
je 0x406636
push dword [ebp + 0x10]
push dword [ebp - 0x1c]
push dword [ebp - 0x20]
push dword [ebp - 0x14]
call eax
jmp 0x406638
xor eax, eax
mov ecx, dword [ebp - 4]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.00405a80
leave
ret
Function at 0x800160
Capabilities:
Delete directory
Get common file path
Manipulate console buffer

Disassembly:
sub esp, 0xc0c
cmp dword [0xb8a614], 0x37
jne 0x800219
push 0
push 0
call dword [sym.imp.KERNEL32.dll_FatalAppExitA]
push 0
call dword [sym.imp.KERNEL32.dll_RemoveDirectoryW]
push 0
push 0
call dword [sym.imp.KERNEL32.dll_SetStdHandle]
mov eax, dword [esp]
push eax
push 0
call dword [sym.imp.KERNEL32.dll_SetSystemPowerState]
push 0
lea ecx, [esp + 0x10]
push ecx
push 0x4029bc
call dword [sym.imp.KERNEL32.dll_GetShortPathNameA]
push 0
lea edx, [esp + 0x410]
push edx
call dword [sym.imp.KERNEL32.dll_GetWindowsDirectoryA]
lea eax, [esp + 8]
push eax
push 0
push 0
push 0
call dword [sym.imp.KERNEL32.dll_WriteConsoleInputW]
lea ecx, [esp + 4]
push ecx
push 0x4029d0
call dword [sym.imp.KERNEL32.dll_GetCompressedFileSizeW]
push 0x402a04
push 0x402a10
call dword [sym.imp.KERNEL32.dll_WriteProfileSectionA]
push 0
lea edx, [esp + 0x810]
push edx
push 0
push 0x402a68
push 0
call dword [sym.imp.KERNEL32.dll_FoldStringA]
push 0
push 0
push 0
push 0
push 0
push 0
call dword [sym.imp.KERNEL32.dll_ReplaceFileW]
mov eax, dword [0xb8b608]
mov dword [esp], eax
mov eax, 0x5d1
add dword [esp], eax
mov ecx, dword [esp]
mov dl, byte [ecx + esi]
mov eax, dword [0x80b664]
mov byte [eax + esi], dl
add esp, 0xc0c
ret
Function at 0x8003a0
Capabilities:
Manipulate console buffer
Move file

Disassembly:
mov eax, dword [0xb8a614]
sub esp, 0x1cc
push ebx
push ebp
push esi
mov esi, dword [0x80b664]
shr eax, 3
push edi
test eax, eax
je 0x80053e
mov dword [esp + 0x18], esi
mov dword [esp + 0x20], eax
jmp 0x8003d4
mov esi, dword [esp + 0x18]
cmp dword [0xb8a614], 0x1c
jne 0x8003f1
lea eax, [esp + 0x38]
push eax
push 0
lea ecx, [esp + 0x44]
push ecx
push 0
call dword [sym.imp.KERNEL32.dll_WriteConsoleInputW]
mov edx, dword [0x804da0]
mov eax, dword [0x804da4]
mov ecx, dword [0x804da8]
mov edi, dword [esi]
mov ebx, dword [esi + 4]
mov dword [esp + 0x24], edx
mov edx, dword [0x804dac]
mov ebp, 0xc6ef3720
mov dword [esp + 0x2c], eax
mov dword [esp + 0x34], ecx
mov dword [esp + 0x28], edx
mov dword [esp + 0x1c], 0x20
mov eax, edi
shr eax, 5
add eax, dword [esp + 0x28]
mov ecx, edi
shl ecx, 4
add ecx, dword [esp + 0x34]
lea edx, [edi + ebp]
xor eax, ecx
xor eax, edx
sub ebx, eax
mov eax, ebx
shl eax, 4
mov dword [0xb8a584], 0
mov dword [esp + 0x14], eax
mov eax, dword [esp + 0x24]
add dword [esp + 0x14], eax
cmp dword [0xb8a614], 0x1be
jne 0x80047d
lea ecx, [esp + 0x30]
push ecx
push 0
push 0
push 0
call dword [sym.imp.KERNEL32.dll_WriteConsoleInputA]
mov esi, ebx
shr esi, 5
add esi, dword [esp + 0x2c]
cmp dword [0xb8a614], 0x979
mov dword [0xb8a588], 0xff6b3619
mov dword [0xb8a58c], 0xffffffff
jne 0x8004bd
mov edx, dword [esp + 0x30]
push edx
push 0
call dword [sym.imp.KERNEL32.dll_SetConsoleScreenBufferSize]
push 0
push 0
call dword [sym.imp.KERNEL32.dll_FindNextFileW]
lea eax, [ebx + ebp]
xor esi, eax
mov eax, dword [esp + 0x14]
xor eax, esi
sub edi, eax
add ebp, 0x61c88647
dec dword [esp + 0x1c]
mov dword [esp + 0x14], eax
jne 0x80042a
cmp dword [0xb8a614], 0x8d4
jne 0x8004f5
lea eax, [esp + 0x50]
push eax
call dword [sym.imp.KERNEL32.dll_GetStartupInfoW]
mov esi, dword [esp + 0x18]
mov dword [esi], edi
mov dword [esi + 4], ebx
cmp dword [0xb8a614], 0x17
jne 0x80052d
push 0
push 0
push 0
push 0x402990
push 0x4029b4
call dword [sym.imp.KERNEL32.dll_MoveFileWithProgressA]
lea ecx, [esp + 0x98]
push ecx
push 0
call dword [sym.imp.KERNEL32.dll_FindNextFileA]
add esi, 8
dec dword [esp + 0x20]
mov dword [esp + 0x18], esi
jne 0x8003d0
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x1cc
ret
Function at 0x432000
Capabilities:
Encode data using xor
Packed with generic packer

Disassembly:
pushal
nop
nop
nop
nop
nop
call 0x43200c
nop
nop
nop
nop
nop
pop eax
add eax, 0x40729f
nop
nop
sub eax, 0x407245
mov ebx, dword [eax]
nop
nop
nop
nop
mov ecx, dword [eax + 4]
nop
nop
nop
mov edx, dword [eax + 8]
nop
nop
nop
nop
nop
nop
nop
xor dword [ebx], edx
nop
add ebx, 4
nop
nop
cmp ebx, ecx
nop
nop
nop
nop
nop
nop
nop
nop
jl 0x432030
add eax, 0xc
nop
nop
nop
nop
nop
nop
cmp dword [eax], 0
nop
nop
nop
nop
jne 0x43201e
nop
nop
popal
nop
nop
nop
jmp 0x431219
Function at 0x402230
Capabilities:
Extract resource via kernel32 functions

Disassembly:
push ebp
mov ebp, esp
push ebx
mov ebx, dword [ebp + 8]
push edi
mov edi, dword [ebp + 0xc]
mov eax, edi
shr eax, 4
inc eax
push 6
movzx eax, ax
push eax
push ebx
call dword [sym.imp.KERNEL32.dll_FindResourceW]
mov dword [ebp + 0xc], eax
test eax, eax
jne 0x402259
pop edi
pop ebx
pop ebp
ret
push esi
push eax
push ebx
call dword [sym.imp.KERNEL32.dll_LoadResource]
test eax, eax
jne 0x40226f
xor esi, esi
mov eax, esi
pop esi
pop edi
pop ebx
pop ebp
ret
push eax
call dword [sym.imp.KERNEL32.dll_LockResource]
mov esi, eax
test esi, esi
je 0x402266
push dword [ebp + 0xc]
push ebx
call dword [sym.imp.KERNEL32.dll_SizeofResource]
lea ecx, [esi + eax]
and edi, 0xf
jbe 0x4022a2
nop
cmp esi, ecx
jae 0x402266
movzx eax, word [esi]
lea esi, [esi + eax*2]
add esi, 2
sub edi, 1
jne 0x402290
cmp esi, ecx
jae 0x402266
xor eax, eax
cmp word [esi], ax
cmove esi, eax
mov eax, esi
pop esi
pop edi
pop ebx
pop ebp
ret

Function at 0x402630
Capabilities:
Act as tcp client
Connect socket
Connect tcp socket
Connect udp socket
Create tcp socket
Create udp socket
Initialize winsock library

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
sub esp, 0x19c
mov eax, dword [0x5f4e24]
xor eax, esp
mov dword [esp + 0x198], eax
push ebx
push esi
push edi
lea eax, [esp + 0x10]
mov ebx, ecx
push eax
push 0x202
call dword [sym.imp.WS2_32.dll_WSAStartup]
test eax, eax
jne 0x402766
mov eax, dword [esp + 0x10]
cmp al, 2
jne 0x402760
shr eax, 8
cmp al, 2
jne 0x402760
push 0
push 1
push 2
call dword [sym.imp.WS2_32.dll_socket]
mov dword [0x5fe554], eax
cmp eax, 0xffffffff
je 0x402760
push ecx
mov esi, esp
mov dword [esp + 0x10], esi
mov eax, dword [0x5fe78c]
add eax, 0xfffffff0
push eax
call fcn.004040b0
add esp, 4
lea ecx, [esp + 0x10]
add eax, 0x10
mov dword [esi], eax
call fcn.004022e0
add esp, 4
push dword [eax]
call dword [sym.imp.WS2_32.dll_inet_addr]
mov edx, dword [esp + 0xc]
mov dword [0x5fe55c], eax
add edx, 0xfffffff0
or eax, 0xffffffff
lock xadd dword [edx + 0xc], eax
dec eax
test eax, eax
jg 0x4026ea
mov ecx, dword [edx]
push edx
mov eax, dword [ecx]
call dword [eax + 4]
mov eax, 2
mov word [0x5fe558], ax
movzx eax, word [ebx]
push eax
call dword [sym.imp.WS2_32.dll_htons]
mov esi, dword [sym.imp.WS2_32.dll_connect]
push 0x10
push 0x5fe558
push dword [0x5fe554]
mov word [0x5fe55a], ax
call esi
cmp eax, 0xffffffff
jne 0x402740
mov edi, dword [sym.imp.KERNEL32.dll_Sleep]
push 0x3e8
call edi
push 0x10
push 0x5fe558
push dword [0x5fe554]
call esi
cmp eax, 0xffffffff
je 0x402725
mov ecx, ebx
call fcn.00403340
xor eax, eax
pop edi
pop esi
pop ebx
mov ecx, dword [esp + 0x198]
xor ecx, esp
call fcn.005638db
mov esp, ebp
pop ebp
ret 4
call dword [sym.imp.WS2_32.dll_WSACleanup]
mov ecx, dword [esp + 0x1a4]
or eax, 0xffffffff
pop edi
pop esi
pop ebx
xor ecx, esp
call fcn.005638db
mov esp, ebp
pop ebp
ret 4
Function at 0x403ad0
Capabilities:
Extract resource via kernel32 functions

Disassembly:
push ebp
mov ebp, esp
push ecx
push ebx
push edi
mov edi, dword [ebp + 8]
push edi
mov dword [ebp - 4], ecx
call fcn.00430c5d
mov ebx, eax
test ebx, ebx
jne 0x403af0
pop edi
pop ebx
mov esp, ebp
pop ebp
ret 4
mov eax, edi
shr eax, 4
push esi
inc eax
push 6
movzx eax, ax
push eax
push ebx
call dword [sym.imp.KERNEL32.dll_FindResourceW]
mov dword [ebp + 8], eax
test eax, eax
je 0x403bd7
push eax
push ebx
call dword [sym.imp.KERNEL32.dll_LoadResource]
test eax, eax
je 0x403bd7
push eax
call dword [sym.imp.KERNEL32.dll_LockResource]
mov esi, eax
test esi, esi
je 0x403bd7
push dword [ebp + 8]
push ebx
call dword [sym.imp.KERNEL32.dll_SizeofResource]
lea ecx, [esi + eax]
and edi, 0xf
jbe 0x403b58
cmp esi, ecx
jae 0x403bd7
movzx eax, word [esi]
lea esi, [esi + eax*2]
add esi, 2
sub edi, 1
jne 0x403b42
cmp esi, ecx
jae 0x403bd7
cmp word [esi], 0
je 0x403bd7
movzx eax, word [esi]
lea ecx, [esi + 2]
push 0
push 0
push 0
push 0
push eax
push ecx
push 0
push 3
call dword [sym.imp.KERNEL32.dll_WideCharToMultiByte]
mov edi, eax
test edi, edi
js 0x403be2
mov ebx, dword [ebp - 4]
mov edx, 1
mov ecx, dword [ebx]
sub edx, dword [ecx - 4]
mov ecx, dword [ecx - 8]
sub ecx, edi
or edx, ecx
jge 0x403ba0
push edi
mov ecx, ebx
call fcn.00404170
movzx eax, word [esi]
push 0
push 0
push edi
push dword [ebx]
push eax
lea eax, [esi + 2]
push eax
push 0
push 3
call dword [sym.imp.KERNEL32.dll_WideCharToMultiByte]
mov eax, dword [ebx]
cmp edi, dword [eax - 8]
jg 0x403be2
mov dword [eax - 0xc], edi
mov eax, dword [ebx]
pop esi
mov byte [edi + eax], 0
mov eax, 1
pop edi
pop ebx
mov esp, ebp
pop ebp
ret 4
pop esi
pop edi
xor eax, eax
pop ebx
mov esp, ebp
pop ebp
ret 4
push 0x80070057
call fcn.00402210
int3
Function at 0x403d70
Capabilities:
Extract resource via kernel32 functions

Disassembly:
push ebp
mov ebp, esp
push ecx
mov eax, dword [ebp + 8]
xor dl, dl
mov dword [ebp - 4], ecx
test eax, eax
je 0x403e7f
test eax, 0xffff0000
jne 0x403e7f
push ebx
push edi
movzx edi, ax
push edi
call fcn.00430c5d
mov ebx, eax
test ebx, ebx
je 0x403e7b
mov eax, edi
shr eax, 4
push 6
inc eax
push eax
push ebx
call dword [sym.imp.KERNEL32.dll_FindResourceW]
mov dword [ebp + 8], eax
test eax, eax
je 0x403e7b
push eax
push ebx
call dword [sym.imp.KERNEL32.dll_LoadResource]
test eax, eax
je 0x403e7b
push esi
push eax
call dword [sym.imp.KERNEL32.dll_LockResource]
mov esi, eax
test esi, esi
je 0x403e7a
push dword [ebp + 8]
push ebx
call dword [sym.imp.KERNEL32.dll_SizeofResource]
lea ecx, [esi + eax]
and edi, 0xf
jbe 0x403e09
cmp esi, ecx
jae 0x403e7a
movzx eax, word [esi]
lea esi, [esi + eax*2]
add esi, 2
sub edi, 1
jne 0x403df3
cmp esi, ecx
jae 0x403e7a
cmp word [esi], 0
je 0x403e7a
movzx eax, word [esi]
lea ecx, [esi + 2]
push 0
push 0
push 0
push 0
push eax
push ecx
push 0
push 3
call dword [sym.imp.KERNEL32.dll_WideCharToMultiByte]
mov edi, eax
test edi, edi
js 0x403e87
mov ebx, dword [ebp - 4]
mov ecx, 1
mov eax, dword [ebx]
sub ecx, dword [eax - 4]
mov eax, dword [eax - 8]
sub eax, edi
or ecx, eax
jge 0x403e51
push edi
mov ecx, ebx
call fcn.00404170
movzx eax, word [esi]
push 0
push 0
push edi
push dword [ebx]
push eax
lea eax, [esi + 2]
push eax
push 0
push 3
call dword [sym.imp.KERNEL32.dll_WideCharToMultiByte]
mov eax, dword [ebx]
cmp edi, dword [eax - 8]
jg 0x403e87
mov dword [eax - 0xc], edi
mov eax, dword [ebx]
mov byte [edi + eax], 0
pop esi
pop edi
mov dl, 1
pop ebx
mov al, dl
mov esp, ebp
pop ebp
ret 4
push 0x80070057
call fcn.00402210
int3
Function at 0x4061f0
Capabilities:
Access peb ldr_data

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x58fef0
mov eax, dword fs:[0]
push eax
sub esp, 8
push ebx
push esi
push edi
mov eax, dword [0x5f4e24]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov ebx, ecx
mov dword [ebp - 0x10], ebx
push 8
mov dword [ebx], vtable.std::basic_streambuf_char__struct_std::char_traits_char__.0
call fcn.00430d11
mov esi, eax
add esp, 4
test esi, esi
je 0x406249
push 1
mov dword [ebp - 4], 0
call fcn.00417c57
add esp, 4
mov dword [esi + 4], eax
jmp 0x40624b
xor esi, esi
mov ecx, ebx
mov dword [ebx + 0x34], esi
call fcn.004063f0
mov eax, dword [ebp - 0x10]
lea ecx, [eax + 0x18]
lea edx, [eax + 0x24]
lea esi, [eax + 8]
lea ebx, [eax + 4]
mov dword [eax + 0x20], ecx
mov dword [eax + 0xc], ebx
lea edi, [eax + 0x14]
mov dword [eax + 0x2c], edx
mov dword [eax], vtable.std::basic_filebuf_char__struct_std::char_traits_char__.0
mov byte [eax + 0x48], 0
mov byte [eax + 0x3d], 0
mov dword [eax + 0x10], esi
mov dword [eax + 0x1c], edi
add eax, 0x28
mov dword [ebp - 0x14], ebx
mov ebx, dword [ebp - 0x10]
mov dword [ebx + 0x30], eax
mov ebx, dword [ebp - 0x14]
mov dword [esi], 0
mov dword [ecx], 0
mov ecx, dword [0x5fe7a0]
mov dword [eax], 0
mov eax, dword [0x5fe79c]
mov dword [ebx], 0
mov dword [edi], 0
mov dword [edx], 0
mov edx, dword [ebp - 0x10]
mov dword [edx + 0x40], eax
mov eax, edx
mov dword [edx + 0x4c], 0
mov dword [edx + 0x44], ecx
mov dword [edx + 0x38], 0
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret

Function at 0x408980
Capabilities:
Get hostname

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x5902b7
mov eax, dword fs:[0]
push eax
sub esp, 0xd8
mov eax, dword [0x5f4e24]
xor eax, ebp
mov dword [ebp - 0x10], eax
push esi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov esi, ecx
mov dword [ebp - 0xdc], esi
mov dword [ebp - 4], 0
mov dword [ebp - 0xe4], esi
mov dword [ebp - 0xe0], 0
mov dword [ebp - 0xdc], 0xc8
call fcn.0043096b
mov ecx, eax
test ecx, ecx
je 0x408a54
mov eax, dword [ecx]
call dword [eax + 0xc]
add eax, 0x10
mov dword [esi], eax
lea eax, [ebp - 0xdc]
mov dword [ebp - 4], 0
push eax
lea eax, [ebp - 0xd8]
mov dword [ebp - 0xe0], 1
push eax
call dword [sym.imp.KERNEL32.dll_GetComputerNameA]
test eax, eax
je 0x408a3a
lea ecx, [ebp - 0xd8]
lea edx, [ecx + 1]
nop dword [eax]
mov al, byte [ecx]
inc ecx
test al, al
jne 0x408a20
sub ecx, edx
lea eax, [ebp - 0xd8]
push ecx
push eax
mov ecx, esi
call fcn.004041d0
mov eax, esi
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop esi
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.005638db
mov esp, ebp
pop ebp
ret
push 0x80004005
call fcn.00402210
int3
Function at 0x40ef70
Capabilities:
Get common file path
Get startup folder

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x5908eb
mov eax, dword fs:[0]
push eax
sub esp, 0x22c
mov eax, dword [0x5f4e24]
xor eax, ebp
mov dword [ebp - 0x10], eax
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
push 0x104
lea eax, [ebp - 0x114]
push 0
push eax
call fcn.00565b20
add esp, 0xc
call fcn.00432334
push 0x104
lea ecx, [ebp - 0x114]
push ecx
mov eax, dword [eax + 8]
push eax
call dword [sym.imp.KERNEL32.dll_GetModuleFileNameA]
cmp dword [0x5f5934], 0x10
lea edx, [ebp - 0x114]
mov ecx, 0x5f5920
cmovae ecx, dword [0x5f5920]
sub edx, ecx
nop dword [eax]
mov al, byte [ecx]
lea ecx, [ecx + 1]
mov byte [edx + ecx - 1], al
test al, al
jne 0x40eff0
lea edi, [ebp - 0x114]
dec edi
mov al, byte [edi + 1]
lea edi, [edi + 1]
test al, al
jne 0x40f004
cmp dword [0x5f5904], 0x10
mov edx, 0x5f58f0
mov ax, word [0x5d5094]
cmovae edx, dword [0x5f58f0]
mov word [edi], ax
mov esi, edx
nop dword [eax]
mov al, byte [edx]
inc edx
test al, al
jne 0x40f030
lea edi, [ebp - 0x114]
sub edx, esi
dec edi
mov al, byte [edi + 1]
inc edi
test al, al
jne 0x40f040
mov ecx, edx
lea eax, [ebp - 0x218]
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
push eax
push 0
push 0
mov ecx, edx
and ecx, 3
push 0x18
rep movsb byte es:[edi], byte [esi]
push 0
call dword [sym.imp.SHELL32.dll_SHGetFolderPathA]
test eax, eax
js 0x40f104
call fcn.0043096b
mov ecx, eax
test ecx, ecx
je 0x40f11f
mov eax, dword [ecx]
call dword [eax + 0xc]
add eax, 0x10
mov dword [ebp - 0x21c], eax
push str.Excel
lea eax, [ebp - 0x218]
mov dword [ebp - 4], 0
push eax
lea eax, [ebp - 0x21c]
push str._s_s.lnk
push eax
call fcn.00412630
add esp, 0x10
lea ecx, [ebp - 0x238]
call fcn.0043243e
mov byte [ebp - 4], 1
lea ecx, [ebp - 0x238]
mov esi, dword [ebp - 0x21c]
push 0
push esi
call fcn.004326be
lea ecx, [ebp - 0x238]
call fcn.004325e6
mov dword [ebp - 4], 0xffffffff
add esi, 0xfffffff0
or eax, 0xffffffff
lock xadd dword [esi + 0xc], eax
dec eax
test eax, eax
jg 0x40f104
mov ecx, dword [esi]
push esi
mov eax, dword [ecx]
call dword [eax + 4]
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.005638db
mov esp, ebp
pop ebp
ret
push 0x80004005
call fcn.00402210
int3
Function at 0x4171e0
Capabilities:
Compute adler32 checksum

Disassembly:
push ebp
mov ebp, esp
pop ebp
jmp fcn.004171f0

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

Disassembly:
push ebp
mov ebp, esp
pop ebp
jmp fcn.00417480

Function at 0x4177a0
Capabilities:
Hash data with crc32

Disassembly:
push ebp
mov ebp, esp
mov edx, dword [ebp + 8]
movzx eax, dl
shr edx, 8
xor edx, dword [eax*4 + 0x5a28c0]
movzx eax, dl
shr edx, 8
xor edx, dword [eax*4 + 0x5a28c0]
movzx ecx, dl
shr edx, 8
xor edx, dword [ecx*4 + 0x5a28c0]
movzx ecx, dl
shr edx, 8
xor edx, dword [ecx*4 + 0x5a28c0]
mov eax, edx
pop ebp
ret

Function at 0x42ed3f
Capabilities:
Get geographical location

Disassembly:
push ebp
mov ebp, esp
push ecx
and dword [ebp - 4], 0
call fcn.0057283e
push 2
lea ecx, [ebp - 4]
push ecx
mov eax, dword [eax + 0x14]
push 0x22
push eax
call dword [sym.imp.KERNEL32.dll_GetLocaleInfoEx]
movzx eax, word [ebp - 4]
sub eax, 0x30
je 0x42ed7e
sub eax, 1
je 0x42ed79
sub eax, 1
je 0x42ed75
xor eax, eax
leave
ret
push 3
jmp 0x42ed80
xor eax, eax
inc eax
leave
ret
push 2
pop eax
leave
ret
Function at 0x431274
Capabilities:
Get file size

Disassembly:
push ebp
mov ebp, esp
push ecx
push ecx
push esi
mov esi, ecx
lea eax, [ebp - 4]
push eax
push dword [esi + 4]
call dword [sym.imp.KERNEL32.dll_GetFileSize]
mov dword [ebp - 8], eax
cmp eax, 0xffffffff
jne 0x43129e
call dword [sym.imp.KERNEL32.dll_GetLastError]
test eax, eax
jne 0x4312a4
mov eax, dword [ebp - 8]
mov edx, dword [ebp - 4]
pop esi
leave
ret
lea ecx, [esi + 0xc]
call fcn.00403d30
mov esi, eax
call dword [sym.imp.KERNEL32.dll_GetLastError]
push esi
push eax
call fcn.00435331
int3

Function at 0x43157f
Capabilities:
Read file on windows

Disassembly:
push ebp
mov ebp, esp
push ecx
cmp dword [ebp + 0xc], 0
push esi
mov esi, ecx
jne 0x431590
xor eax, eax
jmp 0x4315ac
push 0
lea eax, [ebp - 4]
push eax
push dword [ebp + 0xc]
push dword [ebp + 8]
push dword [esi + 4]
call dword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
je 0x4315b1
mov eax, dword [ebp - 4]
pop esi
leave
ret 8
lea ecx, [esi + 0xc]
call fcn.00403d30
mov esi, eax
call dword [sym.imp.KERNEL32.dll_GetLastError]
push esi
push eax
call fcn.00435331
int3

Function at 0x43164f
Capabilities:
Clear file content

Disassembly:
push ebp
mov ebp, esp
push esi
push edi
mov edi, ecx
push 0
push dword [ebp + 0xc]
mov eax, dword [edi]
push dword [ebp + 8]
mov esi, dword [eax + 0x2c]
mov ecx, esi
call dword [0x5a1a14]
mov ecx, edi
call esi
push dword [edi + 4]
call dword [sym.imp.KERNEL32.dll_SetEndOfFile]
test eax, eax
je 0x431682
pop edi
pop esi
pop ebp
ret 8
lea ecx, [edi + 0xc]
call fcn.00403d30
mov esi, eax
call dword [sym.imp.KERNEL32.dll_GetLastError]
push esi
push eax
call fcn.00435331
int3

Function at 0x431756
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
push ecx
push esi
mov esi, dword [ebp + 0xc]
push edi
mov edi, ecx
test esi, esi
je 0x431781
push 0
lea eax, [ebp - 4]
push eax
push esi
push dword [ebp + 8]
push dword [edi + 4]
call dword [sym.imp.KERNEL32.dll_WriteFile]
test eax, eax
je 0x431787
cmp dword [ebp - 4], esi
jne 0x43179e
pop edi
pop esi
leave
ret 8
lea ecx, [edi + 0xc]
call fcn.00403d30
mov esi, eax
call dword [sym.imp.KERNEL32.dll_GetLastError]
push esi
push eax
call fcn.00435331
lea ecx, [edi + 0xc]
call fcn.00403d30
push eax
push 0xffffffffffffffff
push 0xd
call fcn.00434f87
int3
Function at 0x433116
Capabilities:
Get thread local storage value
Set thread local storage value

Disassembly:
push 0x10
mov eax, 0x59247e
call fcn.00564103
mov ebx, ecx
mov dword [ebp - 0x18], ebx
lea eax, [ebx + 0x1c]
push eax
mov dword [ebp - 0x14], eax
call dword [sym.imp.KERNEL32.dll_EnterCriticalSection]
mov edi, dword [ebp + 8]
test edi, edi
jle 0x43320d
cmp edi, dword [ebx + 0xc]
jge 0x43320d
push dword [ebx]
call dword [sym.imp.KERNEL32.dll_TlsGetValue]
mov esi, eax
test esi, esi
je 0x43316d
cmp edi, dword [esi + 8]
jl 0x4331fb
cmp dword [ebp + 0xc], 0
je 0x4331fb
xor edi, edi
jmp 0x43319f
xor edi, edi
push 0x10
mov dword [ebp - 4], edi
call fcn.00432d4d
mov esi, eax
test esi, esi
je 0x433187
mov dword [esi], vtable.CThreadData.0
jmp 0x433189
mov esi, edi
or dword [ebp - 4], 0xffffffff
mov dword [esi + 8], edi
mov dword [esi + 0xc], edi
mov eax, dword [ebx + 0x18]
mov ecx, dword [ebx + 0x14]
mov dword [esi + eax], ecx
mov dword [ebx + 0x14], esi
push 4
push dword [ebx + 0xc]
call fcn.004307c2
cmp dword [esi + 0xc], 0
pop ecx
pop ecx
jne 0x4331bb
push eax
push edi
call dword [sym.imp.KERNEL32.dll_LocalAlloc]
jmp 0x4331c7
push 2
push eax
push dword [esi + 0xc]
call dword [sym.imp.KERNEL32.dll_LocalReAlloc]
mov edx, eax
test edx, edx
je 0x433234
mov ecx, dword [esi + 8]
mov dword [esi + 0xc], edx
mov eax, dword [ebx + 0xc]
sub eax, ecx
shl eax, 2
push eax
lea eax, [edx + ecx*4]
push edi
push eax
call fcn.00565b20
mov eax, dword [ebx + 0xc]
add esp, 0xc
mov dword [esi + 8], eax
push esi
push dword [ebx]
call dword [sym.imp.KERNEL32.dll_TlsSetValue]
mov edi, dword [ebp + 8]
mov ecx, dword [esi + 0xc]
test ecx, ecx
je 0x43320d
cmp edi, dword [esi + 8]
jge 0x43320d
mov eax, dword [ebp + 0xc]
mov dword [ecx + edi*4], eax
push dword [ebp - 0x14]
call dword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
call fcn.00564068
ret 8
push dword [ebp - 0x14]
call dword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
call fcn.0042f46c
int3