joyce8/EMBER2024-capa huggingface dataset:
Function at 0x505618
Capabilities:
Get common file path
Set current directory
Set environment variable

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffef8
mov eax, dword [ebp + 8]
push eax
call sub.KERNEL32.DLL_SetCurrentDirectoryA
dec eax
je 0x505634
call fcn.00506370
jmp 0x5056a3
lea edx, [ebp - 0x108]
push edx
push 0x104
call sub.KERNEL32.DLL_GetCurrentDirectoryA
test eax, eax
jne 0x505650
call fcn.00506370
jmp 0x5056a3
cmp dword [0x58a550], 1
je 0x5056a1
movsx ecx, byte [ebp - 0x108]
push ecx
call fcn.00509fcc
pop ecx
cmp al, 0x41
jl 0x5056a1
cmp al, 0x5a
jg 0x5056a1
cmp byte [ebp - 0x107], 0x3a
jne 0x5056a1
mov byte [ebp - 4], 0x3d
mov byte [ebp - 3], al
lea eax, [ebp - 0x108]
mov byte [ebp - 2], 0x3a
mov byte [ebp - 1], 0
push eax
lea edx, [ebp - 4]
push edx
call sub.KERNEL32.DLL_SetEnvironmentVariableA
dec eax
je 0x5056a1
call fcn.00506370
jmp 0x5056a3
xor eax, eax
mov esp, ebp
pop ebp
ret

Function at 0x5056a8
Capabilities:
Get common file path

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffefc
lea eax, [ebp - 0x104]
push eax
push 0x104
call sub.KERNEL32.DLL_GetCurrentDirectoryA
cmp byte [ebp - 0x104], 0x61
jl 0x5056d8
movsx edx, byte [ebp - 0x104]
sub edx, 0x61
inc edx
jmp 0x5056e3
movsx edx, byte [ebp - 0x104]
sub edx, 0x41
inc edx
mov eax, dword [ebp + 8]
mov dword [eax], edx
mov esp, ebp
pop ebp
ret

Function at 0x5056ec
Capabilities:
Get disk information
Query environment variable
Set current directory
Set environment variable

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffef8
xor eax, eax
lea ecx, [ebp - 4]
push ebx
push esi
push edi
mov esi, dword [ebp + 0xc]
lea edi, [ebp - 0x108]
mov dword [esi], eax
mov byte [ebp - 4], 0x3d
mov dl, byte [ebp + 8]
add dl, 0x40
mov byte [ebp - 3], dl
mov byte [ebp - 2], 0x3a
mov byte [ebp - 1], 0
push 0x104
push edi
push ecx
call sub.KERNEL32.DLL_GetEnvironmentVariableA
test eax, eax
jne 0x505752
mov al, byte [ebp - 3]
mov byte [edi], al
mov byte [edi + 1], 0x3a
mov byte [edi + 2], 0x5c
mov byte [edi + 3], 0
push edi
lea edx, [ebp - 4]
push edx
call sub.KERNEL32.DLL_SetEnvironmentVariableA
dec eax
je 0x505752
call fcn.00506370
jmp 0x50578d
push edi
call sub.KERNEL32.DLL_SetCurrentDirectoryA
dec eax
je 0x505762
call fcn.00506370
jmp 0x50578d
mov byte [edi + 1], 0x3a
mov byte [edi + 2], 0x5c
mov byte [edi + 3], 0
mov byte [edi], 0x41
jmp 0x505788
push edi
call sub.KERNEL32.DLL_GetDriveTypeA
mov ebx, eax
test eax, eax
je 0x505786
cmp ebx, 1
je 0x505786
inc dword [esi]
inc byte [edi]
cmp byte [edi], 0x5a
jle 0x505773
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x50a0e4
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
push ecx
push ebx
push esi
push edi
mov edi, dword [ebp + 0xc]
push 0
push 0x80
push 2
push 0
push 0
push 0xc0000000
mov eax, dword [ebp + 8]
push eax
call sub.KERNEL32.DLL_CreateFileA
mov ebx, eax
test eax, eax
je 0x50a146
call fcn.0050a094
mov esi, eax
lea eax, [ebp - 4]
push 0
push eax
push esi
call fcn.00503a8c
pop ecx
push eax
push esi
push ebx
call sub.KERNEL32.DLL_WriteFile
push 0
lea edx, [ebp - 4]
push edx
push edi
call fcn.00503a8c
pop ecx
push eax
push edi
push ebx
call sub.KERNEL32.DLL_WriteFile
push ebx
call sub.KERNEL32.DLL_CloseHandle
pop edi
pop esi
pop ebx
pop ecx
pop ebp
ret

Function at 0x50a1c4
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
add esp, 0xffffff7c
cmp dword [0x578ecc], 0
push ebx
push esi
mov esi, dword [ebp + 8]
jne 0x50a29e
cmp dword [0x578ec8], 0
jne 0x50a29e
cmp dword [0x5790d4], 0
je 0x50a258
push 0x80
lea eax, [ebp - 0x84]
push eax
push 0
call sub.KERNEL32.DLL_GetModuleFileNameA
push 0x5c
lea edx, [ebp - 0x84]
push edx
call fcn.00509f74
add esp, 8
mov ebx, eax
test eax, eax
jne 0x50a23e
push 0x3a
lea edx, [ebp - 0x84]
push edx
call fcn.00509f74
add esp, 8
mov ebx, eax
test eax, eax
jne 0x50a23e
lea ebx, [ebp - 0x84]
jmp 0x50a23f
inc ebx
call fcn.0050a180
or eax, 0x10010
push eax
push ebx
push esi
push 0
call sub.USER32.DLL_MessageBoxA
jmp 0x50a2d9
push 0xfffffffffffffff4
call sub.KERNEL32.DLL_GetStdHandle
mov ebx, eax
lea eax, [ebp - 4]
push 0
push eax
push 2
push 0x578ed0
push ebx
call sub.KERNEL32.DLL_WriteFile
push 0
lea edx, [ebp - 4]
push edx
push esi
call fcn.00503a8c
pop ecx
push eax
push esi
push ebx
call sub.KERNEL32.DLL_WriteFile
push 0
lea ecx, [ebp - 4]
push ecx
push 2
push 0x578ed3
push ebx
call sub.KERNEL32.DLL_WriteFile
jmp 0x50a2d9
cmp dword [0x578ec8], 0
je 0x50a2b8
cmp dword [0x578ec8], 0xffffffff
je 0x50a2d9
push esi
call dword [0x578ec8]
pop ecx
mov eax, dword [0x578ecc]
test eax, eax
je 0x50a2d9
cmp dword [0x578ecc], 0xffffffff
je 0x50a2d9
cmp byte [eax], 0
je 0x50a2d9
push esi
push eax
call fcn.0050a0e4
add esp, 8
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x50aafc
Capabilities:
Query environment variable

Disassembly:
push ebx
push esi
push edi
push ebp
push ecx
cmp dword [0x58a568], 0
jne 0x50ab7d
cmp dword [0x58a588], 0
jne 0x50ab2c
call sub.KERNEL32.DLL_GetEnvironmentStrings
mov dword [0x58a588], eax
test eax, eax
jne 0x50ab2c
push str.GetEnvironmentStrings_failed
call fcn.0050a2f0
pop ecx
xor ebp, ebp
xor esi, esi
mov ebx, dword [0x58a588]
jmp 0x50ab40
lea eax, [edi + 1]
inc esi
add ebp, eax
add ebx, eax
push ebx
call fcn.00503a8c
pop ecx
mov edi, eax
test eax, eax
jne 0x50ab38
lea edi, [ebp + 1]
push edi
call fcn.005032a0
pop ecx
mov ebx, eax
mov dword [0x58a56c], ebx
test ebx, ebx
jne 0x50ab6a
xor eax, eax
jmp 0x50ac40
push edi
mov edx, dword [0x58a588]
push edx
push ebx
call fcn.0050386c
add esp, 0xc
jmp 0x50ab9d
xor esi, esi
mov ebx, dword [0x58a568]
jmp 0x50ab97
push eax
call fcn.00503a8c
pop ecx
test eax, eax
jne 0x50ab93
dec esi
inc esi
add ebx, 4
mov eax, dword [ebx]
test eax, eax
jne 0x50ab87
lea ebx, [esi + 4]
push 4
mov dword [0x58a570], ebx
inc ebx
push ebx
call fcn.00502d78
add esp, 8
test eax, eax
mov dword [esp], eax
jne 0x50abc0
xor eax, eax
jmp 0x50ac40
cmp dword [0x58a568], 0
jne 0x50abf1
xor esi, esi
mov ebx, dword [0x58a56c]
mov eax, dword [esp]
mov ebp, eax
jmp 0x50abe2
mov dword [ebp], ebx
add ebp, 4
inc esi
inc edi
add ebx, edi
push ebx
call fcn.00503a8c
pop ecx
mov edi, eax
test eax, eax
jne 0x50abd8
jmp 0x50ac22
xor esi, esi
mov ebx, dword [0x58a568]
mov eax, dword [esp]
mov edi, eax
jmp 0x50ac1c
push eax
call fcn.00503a8c
pop ecx
test eax, eax
je 0x50ac11
mov eax, dword [ebx]
mov dword [edi], eax
jmp 0x50ac15
dec esi
add edi, 0xfffffffc
add edi, 4
inc esi
add ebx, 4
mov eax, dword [ebx]
test eax, eax
jne 0x50ac00
mov eax, dword [0x58a568]
test eax, eax
je 0x50ac32
push eax
call fcn.005032b0
pop ecx
mov edx, dword [esp]
mov eax, 1
mov dword [0x58a568], edx
pop edx
pop ebp
pop edi
pop esi
pop ebx
ret

Function at 0x511224
Capabilities:
Check for software breakpoints

Disassembly:
push ebx
mov ebx, eax
cmp dword [ebx + 0x10], 0xca
jne 0x511252
mov eax, ebx
call fcn.00511cdc
cmp dword [ebx + 0x3c], 0
je 0x51124b
mov dword [ebx + 0x10], 0xcf
mov eax, 1
pop ebx
ret
mov dword [ebx + 0x10], 0xcb
cmp dword [ebx + 0x10], 0xcb
jne 0x5112c3
mov edx, dword [ebx + 0x1ac]
cmp dword [edx + 0x10], 0
je 0x5112b5
cmp dword [ebx + 8], 0
je 0x511274
mov eax, ebx
mov edx, dword [eax + 8]
call dword [edx]
mov eax, ebx
mov edx, dword [eax + 0x1ac]
call dword [edx]
test eax, eax
jne 0x511286
xor eax, eax
pop ebx
ret
cmp eax, 2
je 0x5112b5
cmp dword [ebx + 8], 0
je 0x511267
cmp eax, 3
je 0x511299
dec eax
jne 0x511267
mov edx, dword [ebx + 8]
inc dword [edx + 4]
mov ecx, dword [edx + 4]
mov eax, dword [ebx + 8]
cmp ecx, dword [eax + 8]
jl 0x511267
mov edx, dword [ebx + 0x138]
add dword [eax + 8], edx
jmp 0x511267
mov ecx, dword [ebx + 0x8c]
mov dword [ebx + 0x94], ecx
jmp 0x5112e1
cmp dword [ebx + 0x10], 0xcc
je 0x5112e1
mov eax, dword [ebx]
mov dword [eax + 0x14], 0x12
mov edx, dword [ebx + 0x10]
mov dword [eax + 0x18], edx
mov eax, ebx
mov edx, dword [eax]
call dword [edx]
mov eax, ebx
call fcn.005112ec
pop ebx
ret
Function at 0x1000b197
Capabilities:
Parse pe header

Disassembly:
push esi
mov esi, ecx
test si, si
jne 0x1000b24c
mov eax, 0x5a4d
cmp word [esi], ax
jne 0x1000b24c
mov edx, dword [esi + 0x3c]
test dl, 3
jne 0x1000b24c
cmp dword [edx + esi], 0x4550
jne 0x1000b24c
cmp dword [edx + esi + 0x74], 6
jb 0x1000b24c
push ebx
mov ebx, dword [edx + esi + 0x50]
push edi
mov edi, dword [edx + esi + 0xa8]
lea eax, [ebx - 1]
lea ecx, [edi - 1]
cmp ecx, eax
jae 0x1000b24a
mov eax, dword [edx + esi + 0xac]
mov ecx, ebx
sub ecx, edi
cmp eax, ecx
ja 0x1000b24a
xor edx, edx
add edi, esi
push 0x1c
pop ecx
div ecx
mov edx, eax
test edx, edx
je 0x1000b24a
imul ecx, edx, 0x1c
add ecx, 0x14
add ecx, edi
lea ecx, [ecx - 0x1c]
dec edx
cmp dword [ecx - 8], 2
lea edi, [ecx - 0x14]
jne 0x1000b228
cmp dword [ecx], ebx
jae 0x1000b228
mov eax, ebx
sub eax, dword [ecx]
cmp dword [ecx - 4], eax
jbe 0x1000b22e
test edx, edx
jne 0x1000b20e
jmp 0x1000b24a
push 0x1c
push edi
call dword [sym.imp.kernel32.dll_VirtualLock]
test eax, eax
je 0x1000b24a
mov eax, dword [edi + 0x14]
push dword [edi + 0x10]
add eax, esi
push eax
call dword [sym.imp.kernel32.dll_VirtualLock]
pop edi
pop ebx
pop esi
ret

Function at 0x1000c446
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x30
pushal
call 0x1000c455
pop dword [ebp - 0x20]
mov eax, 0x1000c455
sub dword [ebp - 0x20], eax
push 0x40
push 0x1000
push 0x38d55
push 0
mov eax, sym.imp.kernel32.dll_VirtualAlloc
add eax, dword [ebp - 0x20]
call dword [eax]
mov ecx, 0xf8b58315
add ecx, 0x74ac459
mov edx, eax
mov esi, 0x259a103f
add esi, 0xea6775c1
add esi, dword [ebp - 0x20]
mov ebx, 0x8d53fba3
sub ebx, 0x59cae48e
xor dword [ebp - 8], 0xe5fb0bb7
mov edi, dword [esi]
mov dword [ebp - 0x18], 0x7bc50672
add edi, ebx
mov dword [ebp - 8], 0x9c0566ff
mov dword [edx], edi
sub dword [ebp - 8], 0x47c2ce5e
add edx, 0x4f59505
add edx, 0xfb0a6aff
add esi, 4
loop 0x1000c4aa
add eax, 0x1108b
xor ebx, ebx
add ebx, eax
add eax, 0x496f1ec4
sub eax, 0x496f1ebf
mov ecx, 0xe7e7c4a2
sub ecx, 0xd7e7c4a2
add ecx, dword [ebp - 0x20]
call ebx
leave
ret
Function at 0x401c57
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x20
pushal
call 0x401c66
pop dword [ebp - 0x10]
mov eax, 0x401c66
sub dword [ebp - 0x10], eax
mov dword [ebp - 0x20], 0xa2c80e51
add dword [ebp - 0x20], 0xab8a36fa
mov dword [ebp - 0x1c], 0x788253cd
add dword [ebp - 0x1c], 0xb9b0f878
mov dword [ebp - 0x18], 0xaa7578a3
add dword [ebp - 0x18], 0xa1d6cb8b
mov dword [ebp - 0x14], 0xcddf0286
sub dword [ebp - 0x14], 0xcddf0286
lea eax, [ebp - 0x20]
push eax
mov eax, 0x73227990
add eax, 0x8d1db6c4
add eax, dword [ebp - 0x10]
call dword [eax]
mov dword [ebp - 0x20], 0x44784ca6
sub dword [ebp - 0x20], 0xd005e350
mov dword [ebp - 0x1c], 0xe9691af0
sub dword [ebp - 0x1c], 0xa7fcb97b
mov dword [ebp - 0x18], 0xa50924de
sub dword [ebp - 0x18], 0x4199b872
mov dword [ebp - 0x14], 0x986995f9
add dword [ebp - 0x14], 0x67966a07
lea ebx, [ebp - 0x20]
push ebx
push eax
mov eax, 0x79f1ee1b
sub eax, 0x79b1bdef
add eax, dword [ebp - 0x10]
call dword [eax]
push 0x40
push 0x1000
push 0x355ea
push 0
call eax
mov ecx, 0x438e
mov edx, eax
mov edi, 0x407000
add edi, dword [ebp - 0x10]
mov esi, 0xa2273c2a
sub esi, 0x5f2f13fb
xor dword [ebp - 4], 0x95f132b0
mov ebx, dword [edi]
sub dword [ebp - 0xc], edi
add ebx, esi
mov dword [ebp - 4], 0x20033f70
mov dword [edx], ebx
sub dword [ebp - 8], esi
add edx, 4
add edi, 0x24d52832
sub edi, 0x24d5282e
loop 0x401d77
add eax, 0x1010b
xor ebx, ebx
add ebx, eax
add eax, 0xea0f65c
add eax, 0xf15f09a9
mov ecx, 0x2f700b23
add ecx, 0xd0cff4dd
add ecx, dword [ebp - 0x10]
call ebx
leave
ret

Function at 0x401fb2
Capabilities:
Delete file
Move file

Disassembly:
mov ecx, 0x404f28
jmp fcn.0040170c

Function at 0x401ff6
Capabilities:
Check if file exists
Delete directory
Get file attributes

Disassembly:
push esi
mov esi, 0x404f28
push esi
call dword [sym.imp.kernel32.dll_GetFileAttributesW]
cmp eax, 0xffffffff
je 0x402013
push esi
call dword [sym.imp.kernel32.dll_RemoveDirectoryW]
test eax, eax
je 0x402018
push 1
pop eax
pop esi
ret
call fcn.00401fb2
pop esi
ret

Function at 0x403d61
Capabilities:
Encode data using xor

Disassembly:
push eax
push ebx
mov eax, 0x499
mov ecx, 0x404498
mov bl, byte [ecx]
sub bl, 0xf2
rol bl, 2
sub bl, cl
ror bl, 1
mov byte [ecx], bl
dec ecx
dec eax
jne 0x403d6d
mov eax, 0x261d
mov ecx, 0x403764
mov bl, byte [ecx]
rol bl, 7
ror bl, 2
sub bl, cl
xor bl, 0x91
mov byte [ecx], bl
dec ecx
dec eax
jne 0x403d8a
pop ebx
pop eax
add ecx, 0x2c1a
jmp ecx
Function at 0x10001ee0
Capabilities:
Get system information on windows

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x10013ec8
mov eax, dword fs:[0]
push eax
sub esp, 0x40
mov eax, dword [0x1001d024]
xor eax, ebp
mov dword [ebp - 0x10], eax
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov edi, ecx
mov dword [ebp - 0x3c], edi
mov eax, dword [ebp + 8]
xorps xmm0, xmm0
mov dword [ebp - 0x4c], edi
movups xmmword [edi], xmm0
mov dword [ebp - 0x40], eax
mov eax, dword [ebp + 0xc]
mov dword [ebp - 0x48], eax
xor eax, eax
mov dword [edi + 0x10], 0
mov dword [edi + 0x14], 0
mov dword [edi + 0x10], 0
mov dword [edi + 0x14], 7
mov word [edi], ax
mov dword [ebp - 4], eax
lea esi, [edi + 0x18]
lea eax, [esi + 0x10]
mov dword [ebp - 0x44], esi
movups xmmword [esi], xmm0
mov dword [eax], 0
mov dword [ebp - 0x3c], eax
xor eax, eax
mov dword [esi + 0x14], 7
mov word [esi], ax
push eax
mov byte [ebp - 4], 1
call dword [sym.imp.ole32.dll_CoInitialize]
mov ecx, dword [ebp - 0x40]
lea edx, [ecx + 2]
nop word [eax + eax]
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x10001f80
sub ecx, edx
mov edx, dword [edi + 0x14]
sar ecx, 1
cmp ecx, edx
ja 0x10001fc6
mov dword [ebp - 0x38], edi
mov eax, edi
cmp edx, 8
jb 0x10001fa5
mov eax, dword [edi]
mov dword [ebp - 0x38], eax
lea esi, [ecx + ecx]
mov dword [edi + 0x10], ecx
push esi
push dword [ebp - 0x40]
push eax
call fcn.1000aa60
mov eax, dword [ebp - 0x38]
add esp, 0xc
xor ecx, ecx
mov word [esi + eax], cx
lea esi, [edi + 0x18]
jmp 0x10001fd8
push dword [ebp - 0x40]
mov byte [ebp - 0x38], 0
push dword [ebp - 0x38]
push ecx
mov ecx, edi
call fcn.10006d00
mov edx, dword [ebp - 0x48]
mov eax, edx
lea ecx, [eax + 2]
mov dword [ebp - 0x48], ecx
mov cx, word [eax]
add eax, 2
test cx, cx
jne 0x10001fe3
sub eax, dword [ebp - 0x48]
mov ecx, dword [esi + 0x14]
sar eax, 1
cmp eax, ecx
ja 0x10002024
cmp ecx, 8
jb 0x10002004
mov esi, dword [esi]
mov dword [ebp - 0x44], esi
mov ecx, dword [ebp - 0x3c]
lea esi, [eax + eax]
push esi
push edx
push dword [ebp - 0x44]
mov dword [ecx], eax
call fcn.1000aa60
mov eax, dword [ebp - 0x44]
add esp, 0xc
xor ecx, ecx
mov word [esi + eax], cx
jmp 0x10002034
push edx
mov byte [ebp - 0x3c], 0
mov ecx, esi
push dword [ebp - 0x3c]
push eax
call fcn.10006d00
lea eax, [ebp - 0x34]
push eax
call dword [sym.imp.KERNEL32.dll_GetNativeSystemInfo]
xor eax, eax
mov word [edi + 0x30], ax
mov ax, word [ebp - 0x34]
test ax, ax
jne 0x10002054
mov eax, 0x20
jmp 0x1000205f
cmp ax, 9
jne 0x10002063
mov eax, 0x40
mov word [edi + 0x30], ax
mov eax, edi
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.10007e5e
mov esp, ebp
pop ebp
ret 8
Function at 0x10004370
Capabilities:
Enumerate pe sections

Disassembly:
mov ecx, dword [esp + 8]
push esi
push edi
xor edi, edi
movzx eax, word [ecx + 0x14]
movzx esi, word [ecx + 6]
test esi, esi
lea eax, [eax + ecx + 0x18]
jbe 0x100043ab
mov ecx, dword [eax + 8]
test ecx, ecx
jne 0x10004392
mov ecx, dword [eax + 0x10]
mov edx, dword [eax + 0xc]
cmp dword [esp + 0xc], edx
jb 0x100043a3
add edx, ecx
cmp dword [esp + 0xc], edx
jb 0x100043ad
inc edi
add eax, 0x28
cmp edi, esi
jb 0x10004388
xor eax, eax
pop edi
pop esi
ret
Function at 0x1000b856
Capabilities:
Parse pe header

Disassembly:
push 0
call dword [sym.imp.KERNEL32.dll_GetModuleHandleW]
test eax, eax
je 0x1000b895
mov ecx, 0x5a4d
cmp word [eax], cx
jne 0x1000b895
mov ecx, dword [eax + 0x3c]
add ecx, eax
cmp dword [ecx], 0x4550
jne 0x1000b895
mov eax, 0x10b
cmp word [ecx + 0x18], ax
jne 0x1000b895
cmp dword [ecx + 0x74], 0xe
jbe 0x1000b895
cmp dword [ecx + 0xe8], 0
setne al
ret
xor al, al
ret
Function at 0x1000e38f
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 0x1000e42c
push ebx
push esi
call fcn.1000e358
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.1000e2ec
add esp, 0x24
mov dword [ebp - 4], eax
test eax, eax
jne 0x1000e3d9
push esi
call dword [sym.imp.KERNEL32.dll_FreeEnvironmentStringsW]
xor eax, eax
jmp 0x1000e42b
push edi
push eax
call fcn.1000cc27
mov edi, eax
pop ecx
push ebx
test edi, edi
jne 0x1000e3f9
call fcn.1000cbed
pop ecx
push esi
call dword [sym.imp.KERNEL32.dll_FreeEnvironmentStringsW]
xor eax, eax
jmp 0x1000e42a
push ebx
push dword [ebp - 4]
push edi
push dword [ebp - 8]
push esi
push ebx
push ebx
call fcn.1000e2ec
add esp, 0x20
test eax, eax
jne 0x1000e418
push edi
call fcn.1000cbed
jmp 0x1000e420
push ebx
call fcn.1000cbed
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 0x1000e699
Capabilities:
Allocate thread local storage

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push esi
push 0x10016aa0
push 0x10016a98
push str.FlsAlloc
push 0x1f
call fcn.1000e5b5
mov esi, eax
add esp, 0x10
test esi, esi
je 0x1000e6cd
push dword [ebp + 8]
mov ecx, esi
call dword [0x10015188]
call esi
jmp 0x1000e6d3
call dword [sym.imp.KERNEL32.dll_TlsAlloc]
pop esi
pop ebp
ret 4

Function at 0x1000e717
Capabilities:
Get thread local storage value

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push esi
push 0x10016ab0
push 0x10016aa8
push str.FlsGetValue
push 0x21
call fcn.1000e5b5
mov esi, eax
add esp, 0x10
test esi, esi
je 0x1000e74e
push dword [ebp + 8]
mov ecx, esi
call dword [0x10015188]
call esi
pop esi
pop ebp
ret 4
pop esi
pop ebp
jmp dword [sym.imp.KERNEL32.dll_TlsGetValue]

Function at 0x1000e756
Capabilities:
Set thread local storage value

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push esi
push 0x10016ab8
push 0x10016ab0
push str.FlsSetValue
push 0x22
call fcn.1000e5b5
mov esi, eax
add esp, 0x10
test esi, esi
je 0x1000e790
push dword [ebp + 0xc]
mov ecx, esi
push dword [ebp + 8]
call dword [0x10015188]
call esi
pop esi
pop ebp
ret 8
pop esi
pop ebp
jmp dword [sym.imp.KERNEL32.dll_TlsSetValue]
Function at 0x10013c90
Capabilities:
Parse pe header

Disassembly:
push ebp
mov ebp, esp
mov eax, dword [ebp + 8]
mov ecx, 0x5a4d
cmp word [eax], cx
jne 0x10013cbd
mov ecx, dword [eax + 0x3c]
add ecx, eax
cmp dword [ecx], 0x4550
jne 0x10013cbd
mov edx, 0x10b
xor eax, eax
cmp word [ecx + 0x18], dx
sete al
pop ebp
ret
xor eax, eax
pop ebp
ret

Function at 0x403d61
Capabilities:
Encode data using xor

Disassembly:
push eax
push ebx
mov eax, 0x499
mov ecx, 0x404498
mov bl, byte [ecx]
sub bl, 0xf2
rol bl, 2
sub bl, cl
ror bl, 1
mov byte [ecx], bl
dec ecx
dec eax
jne 0x403d6d
mov eax, 0x261d
mov ecx, 0x403764
mov bl, byte [ecx]
rol bl, 7
ror bl, 2
sub bl, cl
xor bl, 0x91
mov byte [ecx], bl
dec ecx
dec eax
jne 0x403d8a
pop ebx
pop eax
add ecx, 0x2c1a
jmp ecx
Function at 0x451ef6
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x54
pushal
call 0x451f05
pop dword [ebp - 0x44]
mov eax, 0x451f05
sub dword [ebp - 0x44], eax
mov dword [ebp - 0x54], 0xc58d038a
sub dword [ebp - 0x54], 0x773abe3f
mov dword [ebp - 0x50], 0x41304c9f
sub dword [ebp - 0x50], 0xefd005a
mov dword [ebp - 0x4c], 0x8334b57c
add dword [ebp - 0x4c], 0xc9178eb2
mov dword [ebp - 0x48], 0x2ac93755
sub dword [ebp - 0x48], 0x2ac93755
lea eax, [ebp - 0x54]
push eax
mov eax, sym.imp.kernel32.dll_LoadLibraryA
add eax, dword [ebp - 0x44]
call dword [eax]
mov dword [ebp - 0x54], 0x231dea4
sub dword [ebp - 0x54], 0x8dbf754e
mov dword [ebp - 0x50], 0x50863677
add dword [ebp - 0x50], 0xf0e62afe
mov dword [ebp - 0x4c], 0x4de105bc
sub dword [ebp - 0x4c], 0xea719950
mov dword [ebp - 0x48], 0x47b3297c
sub dword [ebp - 0x48], 0x47b3297c
lea ebx, [ebp - 0x54]
push ebx
push eax
mov eax, 0xb3c98707
add eax, 0x4c827bbd
add eax, dword [ebp - 0x44]
call dword [eax]
push 0x40
push 0x1000
push 0x72cc4
push 0
call eax
mov ecx, 0xee8a75
add ecx, 0xff11c263
xor edx, edx
add edx, eax
mov ebx, 0x4af6386e
add ebx, 0xb55d3b92
add ebx, dword [ebp - 0x44]
mov esi, 0xff591e52
sub esi, 0x36206c16
sub dword [ebp - 8], ebx
mov edi, dword [ebx]
add dword [ebp - 0x38], 0xf598e51b
sub edi, esi
xor dword [ebp - 0x1c], ecx
mov dword [edx], edi
add dword [ebp - 0x24], ebx
add edx, 0x49f4e2dd
sub edx, 0x49f4e2d9
add ebx, 4
loop 0x45201f
add eax, 0x12633
xor ebx, ebx
add ebx, eax
add eax, 5
mov ecx, 0xa1d9798e
sub ecx, 0xa199798e
add ecx, dword [ebp - 0x44]
call ebx
leave
ret
Function at 0x401542
Capabilities:
Get common file path
Write file on windows

Disassembly:
push ebp
mov ebp, esp
push esi
push ebx
lea esi, [ebp - 0x204]
sub esp, 0x230
mov dword [ebp - 0x20b], 0x546d654d
mov dword [ebp - 0x208], 0x5f4654
mov dword [esp + 4], esi
mov dword [esp], 0xf7
call dword [sym.imp.KERNEL32.dll_GetTempPathA]
push edx
push edx
test eax, eax
je 0x40160c
xor eax, eax
lea ebx, [ebp - 0x10d]
mov dword [esp], esi
mov dword [esp + 8], eax
lea eax, [ebp - 0x20b]
mov dword [esp + 0xc], ebx
mov dword [esp + 4], eax
call dword [sym.imp.KERNEL32.dll_GetTempFileNameA]
sub esp, 0x10
test eax, eax
je 0x40160c
lea eax, [ebp - 0x210]
mov dword [esp + 0x10], 0x180
mov dword [esp + 0xc], 0x10
mov dword [esp + 8], 0x91c2
mov dword [esp + 4], ebx
mov dword [esp], eax
call dword [0x661440]
test eax, eax
jne 0x40160c
mov eax, dword [ebp - 0x210]
cmp eax, 0xffffffff
je 0x40160c
mov dword [esp + 4], 0x662050
mov dword [esp], eax
call dword [sym.imp.msvcrt.dll__fdopen]
mov ebx, eax
test eax, eax
jne 0x401610
mov eax, dword [ebp - 0x210]
mov dword [esp], eax
call dword [sym.imp.msvcrt.dll__close]
xor ebx, ebx
jmp 0x401636
mov dword [esp + 0xc], eax
mov dword [esp + 8], 1
mov eax, dword [ebp + 0xc]
mov dword [esp + 4], eax
mov eax, dword [ebp + 8]
mov dword [esp], eax
call sub.msvcrt.dll_fwrite
mov dword [esp], ebx
call sub.msvcrt.dll_rewind
lea esp, [ebp - 8]
mov eax, ebx
pop ebx
pop esi
pop ebp
ret
Function at 0x416400
Capabilities:
Check for software breakpoints

Disassembly:
push edi
push esi
push ebx
sub esp, 0x10
mov edx, dword [esp + 0x28]
mov ecx, dword [esp + 0x30]
cmp ecx, dword [esp + 0x2c]
jne 0x416509
movzx ebx, byte [edx]
lea eax, [ebx - 0x6a]
cmp al, 1
ja 0x416509
lea eax, [edx + 1]
lea esi, [ecx - 2]
cmp bl, 0x6b
je 0x416460
cmp byte [eax + esi], 0xcc
jne 0x416548
mov dword [esp + 4], eax
mov eax, dword [esp + 0x20]
mov dword [esp + 8], esi
mov dword [esp], eax
call sub.msvcrt.dll_memcpy
add esp, 0x10
mov eax, esi
pop ebx
pop esi
pop edi
ret
lea edi, [ecx - 3]
test edi, edi
jle 0x416493
lea ecx, [edx + esi]
xor ebx, ebx
jmp 0x416480
cmp dl, 0xbb
jne 0x4164b0
add ebx, 1
cmp eax, ecx
je 0x416500
movzx edx, byte [eax]
add eax, 1
cmp dl, 0xba
jne 0x416470
sub edi, ebx
mov esi, edi
test ebx, ebx
jne 0x416431
call fcn.0049b030
mov dword [esp + 8], str.RSA_padding_check_X931
mov dword [esp + 4], 0x56
jmp 0x4164c5
call fcn.0049b030
mov dword [esp + 8], str.RSA_padding_check_X931
mov dword [esp + 4], 0x4e
mov dword [esp], str..._crypto_rsa_rsa_x931.c
call fcn.0049b150
mov dword [esp + 8], 0
mov dword [esp + 4], 0x8a
mov dword [esp], 4
call fcn.0049b230
add esp, 0x10
mov esi, 0xffffffff
mov eax, esi
pop ebx
pop esi
pop edi
ret
sub edi, ebx
mov esi, edi
jmp 0x416431
call fcn.0049b030
mov dword [esp + 8], str.RSA_padding_check_X931
mov dword [esp + 4], 0x43
mov dword [esp], str..._crypto_rsa_rsa_x931.c
call fcn.0049b150
mov dword [esp + 8], 0
mov dword [esp + 4], 0x89
mov dword [esp], 4
call fcn.0049b230
jmp 0x4164ed
call fcn.0049b030
mov dword [esp + 8], str.RSA_padding_check_X931
mov dword [esp + 4], 0x5f
mov dword [esp], str..._crypto_rsa_rsa_x931.c
call fcn.0049b150
mov dword [esp + 8], 0
mov dword [esp + 4], 0x8b
mov dword [esp], 4
call fcn.0049b230
jmp 0x4164ed