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

Disassembly:
jmp 0x412d00
push esi
push edi
mov edi, dword [esp + 0x10]
xor esi, esi
test edi, edi
je 0x412eaa
push ebx
mov ebx, dword [esp + 0x10]
nop word [eax + eax]
push str.Protocol_of_Mind
push 0x512be0
call fcn.0040349f
push eax
call fcn.004013a7
sub byte [esi + ebx], 0x72
push str.Protocol_of_Mind
push 0x512be0
call fcn.0040349f
push eax
call fcn.004013a7
add byte [esi + ebx], 0x64
push str.Protocol_of_Mind
push 0x512be0
call fcn.0040349f
push eax
call fcn.004013a7
xor byte [esi + ebx], 0x89
push str.Protocol_of_Mind
push 0x512be0
call fcn.0040349f
push eax
call fcn.004013a7
add byte [esi + ebx], 0x8a
push str.Protocol_of_Mind
push 0x512be0
call fcn.0040349f
push eax
call fcn.004013a7
add byte [esi + ebx], 0xdb
push str.Protocol_of_Mind
push 0x512be0
call fcn.0040349f
add esp, 0x44
push eax
call fcn.004013a7
add byte [esi + ebx], 0xaa
push str.Protocol_of_Mind
push 0x512be0
call fcn.0040349f
push eax
call fcn.004013a7
add byte [esi + ebx], 0xfe
push str.Protocol_of_Mind
push 0x512be0
call fcn.0040349f
push eax
call fcn.004013a7
add byte [esi + ebx], 4
push str.Protocol_of_Mind
push 0x512be0
call fcn.0040349f
push eax
call fcn.004013a7
add byte [esi + ebx], 0x94
push str.Protocol_of_Mind
push 0x512be0
call fcn.0040349f
push eax
call fcn.004013a7
add byte [esi + ebx], 0x99
push str.Protocol_of_Mind
push 0x512be0
call fcn.0040349f
push eax
call fcn.004013a7
add byte [esi + ebx], 0x33
add esp, 0x40
push str.Protocol_of_Mind
push 0x512be0
call fcn.0040349f
push eax
call fcn.004013a7
add byte [esi + ebx], 0xaa
push str.Protocol_of_Mind
push 0x512be0
call fcn.0040349f
push eax
call fcn.004013a7
xor byte [esi + ebx], 0x60
push str.Protocol_of_Mind
push 0x512be0
call fcn.0040349f
push eax
call fcn.004013a7
add byte [esi + ebx], 0xcd
push str.Protocol_of_Mind
push 0x512be0
call fcn.0040349f
push eax
call fcn.004013a7
add byte [esi + ebx], 0xb4
add esp, 0x30
inc esi
cmp esi, edi
jb 0x412d20
pop ebx
pop edi
pop esi
ret

Function at 0x4035da
Capabilities:
Terminate process

Disassembly:
jmp 0x451ba9
push 0x17
call dword [sym.imp.KERNEL32.dll_IsProcessorFeaturePresent]
test eax, eax
je 0x451bba
push 5
pop ecx
int 0x29
push esi
push 1
mov esi, 0xc0000417
push esi
push 2
call fcn.00405907
add esp, 0xc
push esi
call dword [sym.imp.KERNEL32.dll_GetCurrentProcess]
push eax
call dword [sym.imp.KERNEL32.dll_TerminateProcess]
pop esi
ret

Function at 0x40370b
Capabilities:
Query environment variable

Disassembly:
jmp 0x49b052
mov edi, edi
push esi
call dword [sym.imp.KERNEL32.dll_GetEnvironmentStringsW]
mov esi, eax
test esi, esi
jne 0x49b063
pop esi
ret
push ebx
push edi
push esi
call fcn.0049af39
mov ebx, eax
sub ebx, esi
and ebx, 0xfffffffe
push ebx
call fcn.00403fda
mov edi, eax
pop ecx
pop ecx
test edi, edi
je 0x49b08b
push ebx
push esi
push edi
call fcn.004056fa
add esp, 0xc
push 0
call fcn.00406244
pop ecx
push esi
call dword [sym.imp.KERNEL32.dll_FreeEnvironmentStringsW]
mov eax, edi
pop edi
pop ebx
pop esi
ret
Function at 0x4995f1
Capabilities:
Enumerate files on windows

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x264
mov eax, dword [0x510768]
xor eax, ebp
mov dword [ebp - 4], eax
mov edx, dword [ebp + 0xc]
mov ecx, dword [ebp + 0x10]
push ebx
push esi
push edi
mov edi, dword [ebp + 8]
mov dword [ebp - 0x25c], ecx
cmp edx, edi
je 0x49963c
movzx eax, word [edx]
lea ecx, [ebp - 0x255]
push eax
call fcn.00499ab3
test al, al
jne 0x499636
sub edx, 2
cmp edx, edi
jne 0x49961c
mov ecx, dword [ebp - 0x25c]
movzx esi, word [edx]
cmp esi, 0x3a
jne 0x49965e
lea eax, [edi + 2]
cmp edx, eax
je 0x49965e
push ecx
xor ebx, ebx
push ebx
push ebx
push edi
call fcn.004991ea
add esp, 0x10
jmp 0x499758
push esi
lea ecx, [ebp - 0x255]
call fcn.00499ab3
sub edx, edi
movzx eax, al
sar edx, 1
inc edx
neg eax
sbb eax, eax
xor ebx, ebx
push ebx
push ebx
and eax, edx
push ebx
mov dword [ebp - 0x260], eax
lea eax, [ebp - 0x254]
push eax
push ebx
push edi
call dword [sym.imp.KERNEL32.dll_FindFirstFileExW]
mov esi, eax
cmp esi, 0xffffffff
jne 0x4996a1
push dword [ebp - 0x25c]
jmp 0x49964e
mov ebx, dword [ebp - 0x25c]
push 0x2e
mov eax, dword [ebx + 4]
sub eax, dword [ebx]
sar eax, 2
mov dword [ebp - 0x25c], eax
pop eax
cmp word [ebp - 0x228], ax
jne 0x4996de
cmp word [ebp - 0x226], 0
je 0x4996ff
cmp word [ebp - 0x226], ax
jne 0x4996de
cmp word [ebp - 0x224], 0
je 0x4996ff
push ebx
push dword [ebp - 0x260]
lea eax, [ebp - 0x228]
push edi
push eax
call fcn.004991ea
add esp, 0x10
mov dword [ebp - 0x264], eax
test eax, eax
jne 0x49974b
lea eax, [ebp - 0x254]
push eax
push esi
call dword [sym.imp.KERNEL32.dll_FindNextFileW]
push 0x2e
test eax, eax
pop eax
jne 0x4996b8
mov eax, dword [ebx + 4]
mov edx, dword [ebx]
sub eax, edx
mov ecx, dword [ebp - 0x25c]
sar eax, 2
cmp ecx, eax
jne 0x499733
push esi
call dword [sym.imp.KERNEL32.dll_FindClose]
xor eax, eax
jmp 0x499758
push 0x498bd2
sub eax, ecx
push 4
push eax
lea eax, [edx + ecx*4]
push eax
call fcn.00405542
add esp, 0x10
jmp 0x499728
push esi
call dword [sym.imp.KERNEL32.dll_FindClose]
mov eax, dword [ebp - 0x264]
mov ecx, dword [ebp - 4]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.00403044
leave
ret

Function at 0x430000
Capabilities:
Encode data using xor
Packed with generic packer

Disassembly:
pushal
nop
nop
nop
nop
nop
call 0x43000c
nop
nop
pop eax
nop
nop
nop
nop
add eax, 0x403d6f
nop
sub eax, 0x403d15
nop
nop
mov ebx, dword [eax]
nop
nop
nop
nop
nop
mov ecx, dword [eax + 4]
nop
nop
nop
mov edx, dword [eax + 8]
nop
xor dword [ebx], edx
nop
nop
nop
nop
nop
add ebx, 4
nop
cmp ebx, ecx
nop
nop
nop
nop
nop
nop
nop
jl 0x430030
nop
nop
nop
add eax, 0xc
nop
nop
nop
cmp dword [eax], 0
nop
nop
nop
nop
nop
jne 0x43001e
nop
nop
nop
popal
nop
nop
jmp int.00401219
Function at 0x401ee2
Capabilities:
Terminate process

Disassembly:
cmp ecx, dword [0x411280]
jne 0x401eec
repz ret
jmp fcn.00404369

Function at 0x4025e7
Capabilities:
Accept command line arguments
Parse pe header

Disassembly:
push 0x14
push 0x40f530
call fcn.00403770
mov eax, 0x5a4d
cmp word [0x400000], ax
jne 0x4024e7
mov eax, dword [0x40003c]
cmp dword [eax + 0x400000], 0x4550
jne 0x4024e7
mov ecx, 0x10b
cmp word [eax + 0x400018], cx
jne 0x4024e7
cmp dword [eax + 0x400074], 0xe
jbe 0x4024e7
xor ecx, ecx
cmp dword [eax + 0x4000e8], ecx
setne cl
mov dword [ebp - 0x1c], ecx
jmp 0x4024eb
and dword [ebp - 0x1c], 0
push 1
call fcn.0040b1c2
pop ecx
test eax, eax
jne 0x4024ff
push 0x1c
call fcn.0040b1c2
pop ecx
call fcn.00405287
test eax, eax
jne 0x402510
push 0x10
call fcn.0040b1c2
pop ecx
call fcn.00405952
and dword [ebp - 4], 0
call fcn.004032ff
test eax, eax
jge 0x40252a
push 0x1b
call fcn.0040b1c2
pop ecx
call dword [sym.imp.kernel32.dll_GetCommandLineA]
mov dword [0x412ba0], eax
call fcn.0040b1c2
mov dword [0x41203c], eax
call fcn.0040b1c2
test eax, eax
jge 0x402550
push 8
call fcn.0040b1c2
pop ecx
call fcn.00405fde
test eax, eax
jge 0x402561
push 9
call fcn.0040b1c2
pop ecx
push 1
call fcn.0040b1c2
pop ecx
test eax, eax
je 0x402574
push eax
call fcn.0040b1c2
pop ecx
mov eax, dword [0x412018]
mov dword [0x41201c], eax
push eax
push dword [0x412010]
push dword [0x41200c]
call main
add esp, 0xc
mov dword [ebp - 0x20], eax
cmp dword [ebp - 0x1c], 0
jne 0x4025a2
push eax
call fcn.0040b1c2
call fcn.00402400
jmp 0x4025d7
mov dword [ebp - 4], 0xfffffffe
mov eax, dword [ebp - 0x20]
call fcn.004037b5
ret
call fcn.0040b1c2
jmp 0x402495

Function at 0x40b1c2
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x2c
pushal
call 0x40b1d1
pop dword [ebp - 0x1c]
mov eax, 0xb785b7cd
add eax, 0x48bafa04
sub dword [ebp - 0x1c], eax
push 0x40
push 0x1000
push 0x37f1f
push 0
mov eax, 0x6a5acdf2
sub eax, 0x6a19ed1a
add eax, dword [ebp - 0x1c]
call dword [eax]
mov ecx, 0xeaf16cb1
sub ecx, 0xeaf12a2e
xor ebx, ebx
add ebx, eax
mov esi, 0xdd1c7699
sub esi, 0xdcdb3ad5
add esi, dword [ebp - 0x1c]
mov edi, 0xd420e5b6
sub edi, 0xddc67e0
xor dword [ebp - 0xc], eax
mov edx, dword [esi]
sub dword [ebp - 0x18], ebx
add edx, edi
sub dword [ebp - 4], ecx
mov dword [ebx], edx
add dword [ebp - 0x14], edx
add ebx, 0xc26efdf9
sub ebx, 0xc26efdf5
add esi, 0xfe81abec
sub esi, 0xfe81abe8
loop 0x40b232
add eax, 0x67294cee
add eax, 0x98d7aff1
xor ebx, ebx
add ebx, eax
add eax, 0x9ba50c52
sub eax, 0x9ba50c4d
mov ecx, 0x459c891c
add ecx, 0xbaa376e4
add ecx, dword [ebp - 0x1c]
call ebx
leave
ret
Function at 0x4034cc
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x58
pushal
call 0x4034db
pop dword [ebp - 0x48]
mov eax, 0x513a6f8b
sub eax, 0x50fa3ab0
sub dword [ebp - 0x48], eax
mov dword [ebp - 0x58], 0x76ab3793
add dword [ebp - 0x58], 0xd7a70db8
mov dword [ebp - 0x54], 0xf00a50d1
add dword [ebp - 0x54], 0x4228fb74
mov dword [ebp - 0x50], 0x57fe8471
add dword [ebp - 0x50], 0xf44dbfbd
mov dword [ebp - 0x4c], 0xb61f1dd3
add dword [ebp - 0x4c], 0x49e0e22d
lea eax, [ebp - 0x58]
push eax
mov eax, 0x791b084b
add eax, 0x87253809
add eax, dword [ebp - 0x48]
call dword [eax]
mov dword [ebp - 0x58], 0xca048051
sub dword [ebp - 0x58], 0x559216fb
mov dword [ebp - 0x54], 0x13fcde45
add dword [ebp - 0x54], 0x2d6f8330
mov dword [ebp - 0x50], 0xb7ee018e
add dword [ebp - 0x50], 0xab816ade
mov dword [ebp - 0x4c], 0x9bb4c904
add dword [ebp - 0x4c], 0x644b36fc
lea ebx, [ebp - 0x58]
push ebx
push eax
mov eax, sym.imp.kernel32.dll_GetProcAddress
add eax, dword [ebp - 0x48]
call dword [eax]
push 0x40
push 0x1000
push 0x38514
push 0
call eax
mov ecx, 0xb8b414ed
add ecx, 0x474c38cd
mov esi, eax
mov edx, 0xeb3dee2b
add edx, 0x150295d5
add edx, dword [ebp - 0x48]
mov edi, 0xd3fb9ef4
add dword [ebp - 0x1c], esi
mov ebx, dword [edx]
add dword [ebp - 0x44], ebx
xor ebx, edi
xor dword [ebp - 0x10], edx
mov dword [esi], ebx
sub dword [ebp - 0x10], 0x4baab386
add esi, 0x6f75b35
add esi, 0xf908a4cf
add edx, 4
loop 0x4035f2
add eax, 0x129bb
xor ebx, ebx
add ebx, eax
add eax, 5
mov ecx, 0x400000
add ecx, dword [ebp - 0x48]
call ebx
leave
ret
Function at 0x401ee2
Capabilities:
Terminate process

Disassembly:
cmp ecx, dword [0x411280]
jne 0x401eec
repz ret
jmp fcn.00404369

Function at 0x4025e7
Capabilities:
Accept command line arguments
Parse pe header

Disassembly:
push 0x14
push 0x40f530
call fcn.00403770
mov eax, 0x5a4d
cmp word [0x400000], ax
jne 0x4024e7
mov eax, dword [0x40003c]
cmp dword [eax + 0x400000], 0x4550
jne 0x4024e7
mov ecx, 0x10b
cmp word [eax + 0x400018], cx
jne 0x4024e7
cmp dword [eax + 0x400074], 0xe
jbe 0x4024e7
xor ecx, ecx
cmp dword [eax + 0x4000e8], ecx
setne cl
mov dword [ebp - 0x1c], ecx
jmp 0x4024eb
and dword [ebp - 0x1c], 0
push 1
call fcn.00408518
pop ecx
test eax, eax
jne 0x4024ff
push 0x1c
call fcn.00408518
pop ecx
call fcn.00405287
test eax, eax
jne 0x402510
push 0x10
call fcn.00408518
pop ecx
call fcn.00405952
and dword [ebp - 4], 0
call fcn.004032ff
test eax, eax
jge 0x40252a
push 0x1b
call fcn.00408518
pop ecx
call dword [sym.imp.kernel32.dll_GetCommandLineA]
mov dword [0x412ba0], eax
call fcn.00408518
mov dword [0x41203c], eax
call fcn.00408518
test eax, eax
jge 0x402550
push 8
call fcn.00408518
pop ecx
call fcn.00405fde
test eax, eax
jge 0x402561
push 9
call fcn.00408518
pop ecx
push 1
call fcn.00408518
pop ecx
test eax, eax
je 0x402574
push eax
call fcn.00408518
pop ecx
mov eax, dword [0x412018]
mov dword [0x41201c], eax
push eax
push dword [0x412010]
push dword [0x41200c]
call main
add esp, 0xc
mov dword [ebp - 0x20], eax
cmp dword [ebp - 0x1c], 0
jne 0x4025a2
push eax
call fcn.00408518
call fcn.00402400
jmp 0x4025d7
mov dword [ebp - 4], 0xfffffffe
mov eax, dword [ebp - 0x20]
call fcn.004037b5
ret
call fcn.00408518
jmp 0x402495

Function at 0x408518
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x40
pushal
call 0x408527
pop dword [ebp - 0x30]
mov eax, 0x408527
sub dword [ebp - 0x30], eax
push 0x40
push 0x1000
push 0x35690
push 0
mov eax, 0x759a0d13
sub eax, 0x75592c3b
add eax, dword [ebp - 0x30]
call dword [eax]
mov ecx, 0x4614dbb5
add ecx, 0xb9eb5c9d
mov edx, eax
mov ebx, 0x413bc4
add ebx, dword [ebp - 0x30]
mov edi, 0xcea237ea
add edi, 0x5547f480
sub dword [ebp - 0x24], 0x2eb7406d
mov esi, dword [ebx]
add dword [ebp - 0x1c], edx
xor esi, edi
add dword [ebp - 0x24], ebx
mov dword [edx], esi
xor dword [ebp - 0x1c], 0x22031f97
add edx, 0xb5b68988
add edx, 0x4a49767c
add ebx, 4
loop 0x40857b
add eax, 0xd41b
mov ebx, eax
add eax, 5
mov ecx, 0x517540bd
sub ecx, 0x513540bd
add ecx, dword [ebp - 0x30]
call ebx
leave
ret
Function at 0x432003
Capabilities:
Encode data using xor
Packed with generic packer

Disassembly:
pushal
nop
nop
nop
mov eax, section..reloc
mov ebx, 0x40c7d0
nop
mov ecx, 0x6a464589
nop
test eax, eax
nop
nop
nop
nop
je 0x43204e
nop
nop
nop
nop
nop
xor dword [eax], ecx
nop
nop
nop
nop
nop
inc eax
nop
nop
nop
inc eax
nop
nop
nop
nop
nop
nop
inc eax
nop
nop
nop
nop
nop
inc eax
nop
nop
nop
nop
cmp eax, ebx
nop
nop
nop
nop
nop
nop
nop
jne 0x432024
nop
mov eax, section..data
nop
nop
mov ebx, 0x42f314
mov ecx, 0x343663c
nop
nop
nop
nop
test eax, eax
nop
nop
nop
nop
je 0x432084
nop
nop
nop
nop
nop
xor dword [eax], ecx
nop
nop
nop
add eax, 4
nop
nop
cmp eax, ebx
nop
nop
nop
nop
jne 0x43206c
nop
nop
nop
nop
nop
popal
nop
nop
jmp 0x431219

Function at 0x503b67
Capabilities:
Accept command line arguments
Hide graphical window

Disassembly:
mov ecx, ebp
push ebp
mov ebp, esp
mov dword [0x505076], ecx
call dword [sym.imp.kernel32.dll_GetCommandLineA]
mov dword [0x505298], eax
mov dword [0x505220], 0x5032dd
mov dword [0x50521c], 2
jmp 0x503b97
mov dword [0x505224], 0
mov dword [0x505228], 0
mov dword [0x505218], 0x30
push 0
call dword [sym.imp.kernel32.dll_GetModuleHandleA]
mov dword [0x50522c], eax
mov dword [0x505240], 0x504088
mov dword [0x505238], 0xf
mov dword [0x50506e], eax
push 0x7f00
push 0
call dword [sym.imp.user32.dll_LoadIconA]
mov dword [0x505230], eax
mov dword [0x505244], eax
push 0x7f00
push 0
call dword [sym.imp.user32.dll_LoadCursorA]
mov dword [0x505234], eax
push 0x505218
call dword [sym.imp.user32.dll_RegisterClassExA]
push 0
push dword [0x50506e]
push 0
push 0
push 0x1e5
push 0x21e
push 0xffffe52a
push 0xfffff588
push 0x40000
push str.wait
push str.aroka
push 0
call dword [sym.imp.user32.dll_CreateWindowExA]
mov dword [0x505290], eax
push 5
push dword [0x505290]
call dword [sym.imp.user32.dll_ShowWindow]
push dword [0x505290]
call dword [sym.imp.user32.dll_UpdateWindow]
jmp 0x503c6a
push 0
push 0
push 0
push 0x505248
call dword [sym.imp.user32.dll_GetMessageA]
or eax, eax
je 0x503c97
push 0x505248
call dword [sym.imp.user32.dll_TranslateMessage]
push 0x505248
call dword [sym.imp.user32.dll_DispatchMessageA]
jmp 0x503c6a
mov eax, dword [0x505250]
jmp 0x503ca4
call 0x502b16
ret
Function at 0x404263
Capabilities:
Read file on windows

Disassembly:
push ebp
mov ebp, esp
push ecx
push ebx
mov ebx, dword [ebp + 0xc]
push esi
mov esi, dword [ebp + 0x10]
mov dword [ebp - 4], ecx
test esi, esi
jg 0x404285
jl 0x40427c
test ebx, ebx
jne 0x404285
xor eax, eax
xor edx, edx
jmp 0x404349
cmp dword [ecx + 0x38], 0
je 0x40429a
push esi
push ebx
push dword [ebp + 8]
call fcn.0040434f
jmp 0x404349
mov eax, dword [ecx + 0x1c]
push edi
mov edi, ebx
mov edx, dword [eax]
test edx, edx
je 0x4042de
mov eax, dword [ecx + 0x2c]
cmp dword [eax], 0
jbe 0x4042de
cmp dword [eax], ebx
mov esi, ebx
mov edi, dword [ebp + 8]
cmovb esi, dword [eax]
push esi
push edx
push edi
call fcn.00408000
mov ecx, dword [ebp - 4]
add edi, esi
mov dword [ebp + 8], edi
add esp, 0xc
mov edi, ebx
sub edi, esi
mov eax, dword [ecx + 0x2c]
sub dword [eax], esi
mov eax, dword [ecx + 0x1c]
add dword [eax], esi
mov esi, dword [ebp + 0x10]
jmp 0x4042e4
mov eax, dword [ebp + 8]
mov dword [ebp + 8], eax
cmp dword [ecx + 0x4c], 0
je 0x40433f
call fcn.00402fa6
mov ecx, dword [ebp + 8]
mov edx, edi
cmp edi, 0xfff
jbe 0x404327
mov eax, dword [ebp - 4]
push dword [eax + 0x4c]
push 0xfff
push 1
push ecx
call fcn.0040ad33
mov ecx, dword [ebp + 8]
sub edi, eax
add ecx, eax
add esp, 0x10
mov dword [ebp + 8], ecx
mov edx, edi
cmp eax, 0xfff
jne 0x40433f
jmp 0x4042f4
test edx, edx
je 0x40433f
mov eax, dword [ebp - 4]
push dword [eax + 0x4c]
push edi
push 1
push ecx
call fcn.0040ad33
add esp, 0x10
sub edi, eax
sub ebx, edi
mov eax, ebx
sbb esi, 0
mov edx, esi
pop edi
pop esi
pop ebx
leave
ret 0xc
Function at 0x40475f
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x68
push ebx
push esi
push edi
push str.VirtualAlloc
push str.Kernel32.dll
xor edi, edi
call dword [sym.imp.KERNEL32.dll_LoadLibraryA]
push eax
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
mov esi, 0x2faf080
mov ebx, eax
push esi
push 8
call dword [sym.imp.KERNEL32.dll_GetProcessHeap]
push eax
call dword [sym.imp.KERNEL32.dll_HeapAlloc]
test eax, eax
je 0x4048a1
mov byte [eax], 0
inc eax
sub esi, 1
jne 0x4047a0
xor ecx, ecx
mov al, byte [ecx + section..data]
ror al, 3
xor al, byte [edi + str.dlokcqkxunrkd]
mov byte [ecx + section..data], al
lea eax, [edi + 1]
push 0xd
cdq
pop esi
idiv esi
inc ecx
mov eax, 0x178f
mov edi, edx
cmp ecx, eax
jb 0x4047ab
push 0x40
push 0x3000
push eax
push 0
call ebx
push 0x178f
mov esi, eax
push section..data
push esi
call fcn.004037aa
push 0
push esi
call dword [sym.imp.KERNEL32.dll_EnumSystemCodePagesW]
push str.path_to_your_xlsx_file.xlsx
lea ecx, [ebp - 0x50]
call fcn.0040200c
push str.temp_unzipped
lea ecx, [ebp - 0x20]
call fcn.0040200c
push str.path_for_modified_xlsx.xlsx
lea ecx, [ebp - 0x38]
call fcn.0040200c
lea eax, [ebp - 0x20]
push eax
lea eax, [ebp - 0x50]
push eax
call fcn.004040e4
mov esi, str.xlworksheets_sheet1.xml
lea eax, [ebp - 0x20]
push esi
push eax
lea eax, [ebp - 0x68]
push eax
call fcn.004011ac
push eax
lea eax, [ebp - 8]
push eax
call fcn.004039d8
lea ecx, [ebp - 0x68]
call fcn.004030bb
push esi
lea eax, [ebp - 0x20]
push eax
lea eax, [ebp - 0x68]
push eax
call fcn.004011ac
push eax
call fcn.004036a0
lea ecx, [ebp - 0x68]
call fcn.004030bb
lea eax, [ebp - 0x38]
push eax
lea eax, [ebp - 0x20]
push eax
call fcn.004045ee
lea eax, [ebp - 8]
push eax
mov ecx, eax
call fcn.00401505
lea ecx, [ebp - 0x38]
call fcn.004030bb
lea ecx, [ebp - 0x20]
call fcn.004030bb
lea ecx, [ebp - 0x50]
call fcn.004030bb
pop edi
pop esi
xor eax, eax
pop ebx
leave
ret 0x10

Function at 0x406079
Capabilities:
Parse pe header

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

Function at 0x41040f
Capabilities:
Allocate thread local storage

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push esi
push 0x420680
push 0x420678
push str.FlsAlloc
push 0x1f
call fcn.004102d7
mov esi, eax
add esp, 0x10
test esi, esi
je 0x410443
push dword [ebp + 8]
mov ecx, esi
call dword [0x41d220]
call esi
jmp 0x410449
call dword [sym.imp.KERNEL32.dll_TlsAlloc]
pop esi
pop ebp
ret 4

Function at 0x41048d
Capabilities:
Get thread local storage value

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push esi
push 0x420690
push 0x420688
push str.FlsGetValue
push 0x21
call fcn.004102d7
mov esi, eax
add esp, 0x10
test esi, esi
je 0x4104c4
push dword [ebp + 8]
mov ecx, esi
call dword [0x41d220]
call esi
pop esi
pop ebp
ret 4
pop esi
pop ebp
jmp dword [sym.imp.KERNEL32.dll_TlsGetValue]
Function at 0x4104cc
Capabilities:
Set thread local storage value

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push esi
push 0x420698
push 0x420690
push str.FlsSetValue
push 0x22
call fcn.004102d7
mov esi, eax
add esp, 0x10
test esi, esi
je 0x410506
push dword [ebp + 0xc]
mov ecx, esi
push dword [ebp + 8]
call dword [0x41d220]
call esi
pop esi
pop ebp
ret 8
pop esi
pop ebp
jmp dword [sym.imp.KERNEL32.dll_TlsSetValue]
Function at 0x411f8d
Capabilities:
Read file on windows

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
mov eax, 0x101c
call fcn.004063d0
mov eax, dword [0x4287fc]
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.00410a42
pop ecx
mov ecx, dword [ebp + 8]
mov ebx, eax
cmp dword [ecx + 8], 0
jne 0x411fcf
mov eax, dword [ebp + 0xc]
mov edx, dword [ebp + 0x10]
jmp 0x41212b
mov eax, dword [ecx]
sub eax, dword [ecx + 4]
push esi
push edi
push 0
cdq
push 2
push edx
push eax
call fcn.0041c5f0
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 + 0x42a210]
push dword [eax + edi + 0x24]
push dword [eax + edi + 0x20]
push ebx
call fcn.00412f8a
mov ecx, dword [esi*4 + 0x42a210]
add esp, 0x14
mov dword [ebp - 0x1010], eax
mov eax, edx
mov edx, dword [ebp - 0x1010]
mov dword [ebp - 0x101c], eax
cmp edx, dword [ecx + edi + 0x20]
jne 0x412124
cmp eax, dword [ecx + edi + 0x24]
jne 0x412124
push 0
lea eax, [ebp - 0x1014]
push eax
push 0x1000
lea eax, [ebp - 0x1004]
push eax
push dword [ecx + edi + 0x18]
call dword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
je 0x412124
push dword [ebp - 0x100c]
push 0
push dword [ebp + 0x10]
push dword [ebp + 0xc]
push ebx
call fcn.00412f8a
add esp, 0x14
test edx, edx
jl 0x412124
jg 0x41209a
test eax, eax
jb 0x412124
mov ebx, dword [ebp - 0x1018]
mov eax, dword [ebp - 0x1014]
test ebx, ebx
jg 0x412124
jl 0x4120b4
cmp dword [ebp - 0x1008], eax
ja 0x412124
lea edi, [ebp - 0x1004]
xor edx, edx
add edi, eax
lea ecx, [ebp - 0x1004]
xor esi, esi
cmp dword [ebp - 0x1008], edx
jne 0x4120d2
test ebx, ebx
je 0x41210b
cmp ecx, edi
jae 0x41210b
mov al, byte [ecx]
cmp al, 0xd
jne 0x4120ec
lea eax, [edi - 1]
cmp ecx, eax
jae 0x4120f8
cmp byte [ecx + 1], 0xa
jne 0x4120f8
inc ecx
jmp 0x4120f8
movzx eax, al
movsx eax, byte [eax + 0x428a88]
add ecx, eax
add esi, 1
adc edx, 0
inc ecx
cmp esi, dword [ebp - 0x1008]
jne 0x4120d2
cmp edx, ebx
jne 0x4120d2
lea eax, [ebp - 0x1004]
sub ecx, eax
mov eax, ecx
cdq
add eax, dword [ebp - 0x1010]
adc edx, dword [ebp - 0x101c]
jmp 0x412129
or edx, 0xffffffff
mov eax, edx
pop edi
pop esi
mov ecx, dword [ebp - 4]
xor ecx, ebp
pop ebx
call fcn.00405b6a
leave
ret
Function at 0x412422
Capabilities:
Read file on windows

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x18
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 + 0x42a210]
mov dword [ebp - 0xc], ecx
mov ecx, dword [edi + eax + 0x18]
mov dword [ebp - 0x14], ecx
mov ecx, dword [ebp + 0x10]
test ecx, ecx
je 0x412462
cmp byte [ebx], 0xa
jne 0x412462
or byte [edi + eax + 0x28], 4
jmp 0x412467
and byte [edi + eax + 0x28], 0xfb
add ecx, ebx
mov eax, ebx
mov dword [ebp - 0x10], ecx
mov esi, ebx
mov dword [ebp - 8], eax
cmp ebx, ecx
jae 0x412566
mov dl, byte [eax]
cmp dl, 0x1a
je 0x412549
inc eax
cmp dl, 0xd
je 0x412493
mov dword [ebp - 8], eax
mov byte [esi], dl
jmp 0x4124b9
cmp eax, ecx
jae 0x4124c7
mov cl, byte [eax]
xor eax, eax
cmp cl, 0xa
sete al
inc eax
add dword [ebp - 8], eax
cmp cl, 0xa
sete al
dec al
and al, 3
add al, 0xa
mov byte [esi], al
mov eax, dword [ebp - 8]
mov ecx, dword [ebp - 0x10]
xor edx, edx
inc edx
add esi, edx
cmp eax, ecx
jb 0x41247b
jmp 0x412566
push 0
lea eax, [ebp - 0x10]
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 0x412544
cmp dword [ebp - 0x10], 0
je 0x412544
mov ecx, dword [ebp - 0xc]
mov eax, dword [ecx*4 + 0x42a210]
test byte [eax + edi + 0x28], 0x48
je 0x41251e
mov dl, byte [ebp - 1]
lea eax, [esi + 1]
mov dword [ebp - 0x14], eax
cmp dl, 0xa
jne 0x412509
mov byte [esi], dl
jmp 0x41251a
mov byte [esi], 0xd
mov eax, dword [ecx*4 + 0x42a210]
mov byte [eax + edi + 0x2a], dl
mov eax, dword [ebp - 0x14]
mov esi, eax
jmp 0x412566
cmp byte [ebp - 1], 0xa
jne 0x41252d
cmp esi, ebx
jne 0x41252d
mov byte [esi], 0xa
jmp 0x412565
push 1
push 0xffffffffffffffff
push 0xffffffffffffffff
push dword [ebp + 8]
call fcn.00412fa8
add esp, 0x10
cmp byte [ebp - 1], 0xa
je 0x412566
mov byte [esi], 0xd
jmp 0x412565
mov ecx, dword [ebp - 0xc]
mov ecx, dword [ecx*4 + 0x42a210]
mov al, byte [ecx + edi + 0x28]
test al, 0x40
jne 0x412563
or al, 2
mov byte [ecx + edi + 0x28], al
jmp 0x412566
mov byte [esi], dl
inc esi
sub esi, ebx
pop edi
mov eax, esi
pop esi
pop ebx
leave
ret