joyce8/EMBER2024-capa huggingface dataset:
Function at 0x407f80
Capabilities:
Packed with generic packer

Disassembly:
pushal
mov esi, section.UPX1
lea edi, [esi - 0x6000]
push edi
or ebp, 0xffffffff
jmp 0x407fa2
mov al, byte [esi]
inc esi
mov byte [edi], al
inc edi
add ebx, ebx
jne 0x407fa9
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
jb 0x407f98
mov eax, 1
add ebx, ebx
jne 0x407fbb
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc eax, eax
add ebx, ebx
jae 0x407fb0
jne 0x407fcc
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
jae 0x407fb0
xor ecx, ecx
sub eax, 3
jb 0x407fe0
shl eax, 8
mov al, byte [esi]
inc esi
xor eax, 0xffffffff
je 0x408052
mov ebp, eax
add ebx, ebx
jne 0x407feb
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc ecx, ecx
add ebx, ebx
jne 0x407ff8
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc ecx, ecx
jne 0x40801c
inc ecx
add ebx, ebx
jne 0x408008
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc ecx, ecx
add ebx, ebx
jae 0x407ffd
jne 0x408019
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
jae 0x407ffd
add ecx, 2
cmp ebp, 0xfffff300
adc ecx, 1
lea edx, [edi + ebp]
cmp ebp, 0xfffffffc
jbe 0x40803c
mov al, byte [edx]
inc edx
mov byte [edi], al
inc edi
dec ecx
jne 0x40802d
jmp 0x407f9e
mov eax, dword [edx]
add edx, 4
mov dword [edi], eax
add edi, 4
sub ecx, 4
ja 0x40803c
add edi, ecx
jmp 0x407f9e
pop esi
mov edi, esi
mov ecx, 0x8f
mov al, byte [edi]
inc edi
sub al, 0xe8
cmp al, 1
ja 0x40805a
cmp byte [edi], 0
jne 0x40805a
mov eax, dword [edi]
mov bl, byte [edi + 4]
shr ax, 8
rol eax, 0x10
xchg ah, al
sub eax, edi
sub bl, 0xe8
add eax, esi
mov dword [edi], eax
add edi, 5
mov al, bl
loop 0x40805f
lea edi, [esi + 0x5000]
mov eax, dword [edi]
or eax, eax
je 0x4080d7
mov ebx, dword [edi + 4]
lea eax, [eax + esi + 0x8d64]
add ebx, esi
push eax
add edi, 8
call dword [esi + 0x8ddc]
xchg ebp, eax
mov al, byte [edi]
inc edi
or al, al
je 0x40808c
mov ecx, edi
jns 0x4080bb
movzx eax, word [edi]
inc edi
push eax
inc edi
mov ecx, 0xaef24857
push edi
dec eax
repne scasb al, byte es:[edi]
push ebp
call dword [esi + 0x8de4]
or eax, eax
je 0x4080d1
mov dword [ebx], eax
add ebx, 4
jmp 0x4080a9
call dword [esi + 0x8de0]
mov ebp, dword [esi + 0x8de8]
lea edi, [esi - 0x1000]
mov ebx, 0x1000
push eax
push esp
push 4
push ebx
push edi
call ebp
lea eax, [edi + 0x217]
and byte [eax], 0x7f
and byte [eax + 0x28], 0x7f
pop eax
push eax
push esp
push eax
push ebx
push edi
call ebp
pop eax
popal
lea eax, [esp - 0x80]
push 0
cmp esp, eax
jne 0x40810b
sub esp, 0xffffff80
jmp 0x402130

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

Disassembly:
pushal
nop
nop
nop
nop
nop
call 0x43000c
nop
pop eax
nop
nop
nop
nop
add eax, 0x403d6a
nop
nop
sub eax, 0x403d10
nop
mov ebx, dword [eax]
nop
nop
nop
nop
nop
nop
mov ecx, dword [eax + 4]
nop
nop
mov edx, dword [eax + 8]
nop
nop
nop
nop
nop
xor dword [ebx], edx
nop
add ebx, 4
nop
nop
nop
cmp ebx, ecx
nop
nop
nop
nop
nop
nop
nop
jl 0x430030
nop
nop
nop
add eax, 0xc
nop
nop
cmp dword [eax], 0
nop
jne 0x43001e
nop
nop
nop
nop
nop
nop
nop
popal
nop
nop
jmp loc.00401219
Function at 0x409d20
Capabilities:
Get common file path

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x20c
mov eax, dword [0x47426c]
xor eax, ebp
mov dword [ebp - 4], eax
cmp dword [0x476278], 0
je 0x409d4c
mov al, 1
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.0043a597
mov esp, ebp
pop ebp
ret
mov eax, dword [0x47627c]
test eax, eax
jne 0x409d6b
push 0x18
call fcn.0043a2f7
add esp, 4
mov ecx, eax
call fcn.00409c40
mov dword [0x47627c], eax
cmp dword [eax + 0x14], 8
jb 0x409d73
mov eax, dword [eax]
push 0
push 0x80
push 4
push 0
push 3
push 4
push eax
call dword [sym.imp.KERNEL32.dll_CreateFileW]
mov dword [0x476278], eax
cmp eax, 0xffffffff
je 0x409d97
test eax, eax
jne 0x409d3c
xor eax, eax
mov word [ebp - 0x20c], ax
lea eax, [ebp - 0x20c]
push eax
push 0x104
call dword [sym.imp.KERNEL32.dll_GetCurrentDirectoryW]
test eax, eax
je 0x409e3d
cmp eax, 0x104
ja 0x409e3d
mov ecx, dword [0x47627c]
lea eax, [ebp - 0x20c]
push eax
call fcn.00403630
mov ecx, dword [0x47627c]
call fcn.00403370
cmp word [eax], 0x5c
je 0x409df4
push 0x46e8d8
call fcn.0040a740
mov ecx, dword [0x47627c]
push str.debug.log
call fcn.0040a740
mov eax, dword [0x47627c]
cmp dword [eax + 0x14], 8
jb 0x409e0b
mov eax, dword [eax]
push 0
push 0x80
push 4
push 0
push 3
push 4
push eax
call dword [sym.imp.KERNEL32.dll_CreateFileW]
mov dword [0x476278], eax
cmp eax, 0xffffffff
je 0x409e33
test eax, eax
jne 0x409d3c
mov dword [0x476278], 0
mov ecx, dword [ebp - 4]
xor al, al
xor ecx, ebp
call fcn.0043a597
mov esp, ebp
pop ebp
ret

Function at 0x409e50
Capabilities:
Write file on windows

Disassembly:
push esi
push 2
mov esi, ecx
call fcn.004446ac
push eax
call fcn.00445388
add esp, 8
test eax, eax
js 0x409e95
cmp dword [esi + 0x14], 0x10
push edi
mov edi, dword [esi + 0x10]
jb 0x409e73
mov esi, dword [esi]
push 2
call fcn.004446ac
push eax
push 1
push edi
push esi
call fcn.004455e6
push 2
call fcn.004446ac
push eax
call fcn.00444a9f
add esp, 0x1c
pop edi
pop esi
ret
Function at 0x409f80
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
sub esp, 0x43c
mov eax, dword [0x47426c]
xor eax, esp
mov dword [esp + 0x438], eax
push ebx
push esi
mov esi, ecx
push edi
lea ebx, [esi + 8]
push ebx
call fcn.0040ae60
add esp, 4
lea eax, [esp + 0x10]
lea ecx, [esi + 0xc]
push eax
call fcn.00404fe0
mov eax, dword [0x476274]
test eax, eax
je 0x409fe7
lea ecx, [esp + 0x10]
push ecx
push dword [esi + 0xa0]
push dword [esi + 0xa8]
push dword [esi + 0xa4]
push dword [esi]
call eax
add esp, 0x14
test al, al
jne 0x40a0b1
cmp dword [esi], 2
jl 0x409ff5
lea ecx, [esp + 0x10]
call fcn.00409e50
call fcn.00409d20
test al, al
je 0x40a024
cmp dword [esp + 0x24], 0x10
lea ecx, [esp + 0xc]
push 0
push ecx
push dword [esp + 0x28]
lea eax, [esp + 0x1c]
cmovae eax, dword [esp + 0x1c]
push eax
push dword [0x476278]
call dword [sym.imp.KERNEL32.dll_WriteFile]
cmp dword [esi], 3
jne 0x40a0b1
mov ecx, 0x400
lea eax, [esp + 0x10]
cmp dword [esp + 0x20], ecx
cmovb ecx, dword [esp + 0x20]
cmp dword [esp + 0x24], 0x10
cmovae eax, dword [esp + 0x10]
test ecx, ecx
je 0x40a05c
push ecx
push eax
lea eax, [esp + 0x48]
push eax
call fcn.0043d2c0
add esp, 0xc
lea eax, [esp + 0x40]
push eax
call fcn.0040e660
add esp, 4
cmp dword [0x476280], 0
je 0x40a0a7
lea eax, [esp + 0x28]
push eax
lea ecx, [esi + 0xc]
call fcn.00404fe0
lea eax, [esp + 0x28]
push eax
call dword [0x476280]
mov eax, dword [esp + 0x40]
add esp, 4
cmp eax, 0x10
jb 0x40a0b1
inc eax
lea ecx, [esp + 0x28]
push eax
push dword [esp + 0x2c]
call fcn.00405160
jmp 0x40a0b1
cmp byte [0x477854], 0
jne 0x40a103
int3
mov eax, dword [esp + 0x24]
cmp eax, 0x10
jb 0x40a0c9
inc eax
lea ecx, [esp + 0x10]
push eax
push dword [esp + 0x14]
call fcn.00405160
push dword [esi + 0xac]
call dword [sym.imp.KERNEL32.dll_SetLastError]
lea esi, [ebx + 0x50]
mov ecx, esi
call fcn.00403780
push esi
mov dword [esi], vtable.std::ios_base.0
call fcn.004395f8
mov ecx, dword [esp + 0x448]
add esp, 4
pop edi
pop esi
pop ebx
xor ecx, esp
call fcn.0043a597
mov esp, ebp
pop ebp
ret
push 1
call fcn.00446390
int3

Function at 0x40bca0
Capabilities:
Move file

Disassembly:
push ebp
mov ebp, esp
push esi
mov esi, dword [ebp + 0xc]
push edi
cmp dword [esi + 0x14], 8
jb 0x40bcb2
mov eax, dword [esi]
jmp 0x40bcb4
mov eax, esi
mov edi, dword [ebp + 8]
cmp dword [edi + 0x14], 8
jb 0x40bcc1
mov ecx, dword [edi]
jmp 0x40bcc3
mov ecx, edi
push eax
push ecx
call dword [sym.imp.KERNEL32.dll_MoveFileW]
test eax, eax
je 0x40bcd5
mov al, 1
pop edi
pop esi
pop ebp
ret
cmp dword [edi + 0x14], 8
jb 0x40bcdd
mov edi, dword [edi]
cmp dword [esi + 0x14], 8
jb 0x40bce5
mov esi, dword [esi]
push 0
push 0
push 2
push 0
push edi
push esi
call dword [sym.imp.KERNEL32.dll_ReplaceFileW]
test eax, eax
jne 0x40bccf
mov esi, dword [ebp + 0x10]
test esi, esi
je 0x40bd0f
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov ecx, eax
call fcn.0040fd70
mov dword [esi], eax
pop edi
xor al, al
pop esi
pop ebp
ret
Function at 0x40bd20
Capabilities:
Check if file exists
Get file attributes

Disassembly:
push ebp
mov ebp, esp
mov eax, dword [ebp + 8]
cmp dword [eax + 0x14], 8
jb 0x40bd2e
mov eax, dword [eax]
push eax
call dword [sym.imp.KERNEL32.dll_GetFileAttributesW]
xor ecx, ecx
cmp eax, 0xffffffff
setne al
pop ebp
ret

Function at 0x40bd40
Capabilities:
Check if file exists
Get file attributes

Disassembly:
cmp dword [ecx + 0x14], 8
jb 0x40bd48
mov ecx, dword [ecx]
push ecx
call dword [sym.imp.KERNEL32.dll_GetFileAttributesW]
cmp eax, 0xffffffff
je 0x40bd5b
shr eax, 4
and eax, 1
ret
xor al, al
ret

Function at 0x40bd60
Capabilities:
Check if file exists

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
sub esp, 0x24
mov eax, dword [0x47426c]
xor eax, esp
mov dword [esp + 0x20], eax
push ebx
push esi
push edi
mov edi, ecx
mov dword [esp + 0x10], 0
mov esi, edx
cmp dword [edi + 0x14], 8
jb 0x40bd8d
mov ebx, dword [edi]
jmp 0x40bd8f
mov ebx, edi
push ebx
call dword [sym.imp.KERNEL32.dll_GetFileAttributesW]
cmp eax, 0xffffffff
je 0x40bdd1
test al, 0x10
je 0x40bdb3
mov al, 1
pop edi
pop esi
pop ebx
mov ecx, dword [esp + 0x20]
xor ecx, esp
call fcn.0043a597
mov esp, ebp
pop ebp
ret
test esi, esi
je 0x40bdbd
mov dword [esi], 0xfffffff7
xor al, al
pop edi
pop esi
pop ebx
mov ecx, dword [esp + 0x20]
xor ecx, esp
call fcn.0043a597
mov esp, ebp
pop ebp
ret
lea eax, [esp + 0x14]
mov ecx, edi
push eax
call fcn.00402640
cmp dword [edi + 0x14], 8
jb 0x40bde7
mov ecx, dword [edi]
jmp 0x40bde9
mov ecx, edi
push dword [edi + 0x10]
cmp dword [esp + 0x2c], 8
lea eax, [esp + 0x18]
push ecx
cmovae eax, dword [esp + 0x1c]
push dword [esp + 0x2c]
push eax
call fcn.00404460
add esp, 0x10
test eax, eax
jne 0x40be1a
test esi, esi
je 0x40be62
mov dword [esi], 0xfffffffc
xor bl, bl
jmp 0x40be68
mov edx, esi
lea ecx, [esp + 0x14]
call fcn.0040bd60
test al, al
jne 0x40be2d
xor bl, bl
jmp 0x40be68
push 0
push ebx
call dword [sym.imp.KERNEL32.dll_CreateDirectoryW]
test eax, eax
jne 0x40be66
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov ebx, eax
cmp ebx, 0xb7
jne 0x40be55
mov ecx, edi
call fcn.0040bd40
test al, al
jne 0x40be66
test esi, esi
je 0x40be62
mov ecx, ebx
call fcn.0040fd70
mov dword [esi], eax
xor bl, bl
jmp 0x40be68
mov bl, 1
mov ecx, dword [esp + 0x28]
cmp ecx, 8
jb 0x40be80
inc ecx
push ecx
push dword [esp + 0x18]
lea ecx, [esp + 0x1c]
call fcn.004055e0
mov ecx, dword [esp + 0x2c]
mov al, bl
pop edi
pop esi
pop ebx
xor ecx, esp
call fcn.0043a597
mov esp, ebp
pop ebp
ret
Function at 0x40bf40
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
sub esp, 8
mov eax, dword [ebp + 8]
push esi
mov esi, dword [ebp + 0xc]
mov dword [esp + 8], 0
cmp dword [eax + 0x14], 8
push edi
mov edi, dword [ebp + 0x10]
jb 0x40bf64
mov eax, dword [eax]
push 0
push 0
push 2
push 0
push 0
push 0x40000000
push eax
call dword [sym.imp.KERNEL32.dll_CreateFileW]
push eax
lea ecx, [esp + 0xc]
mov dword [esp + 0xc], 0
call fcn.0040c230
mov eax, dword [esp + 8]
test eax, eax
je 0x40bfb5
cmp eax, 0xffffffff
je 0x40bfb5
push 0
lea ecx, [esp + 0x10]
push ecx
push edi
push esi
push eax
call dword [sym.imp.KERNEL32.dll_WriteFile]
test eax, eax
je 0x40bfb5
mov esi, dword [esp + 0xc]
cmp esi, edi
je 0x40bfb8
or esi, 0xffffffff
lea ecx, [esp + 8]
call fcn.0040c1c0
pop edi
mov eax, esi
pop esi
mov esp, ebp
pop ebp
ret

Function at 0x40bfe0
Capabilities:
Get common file path

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x25c
mov eax, dword [0x47426c]
xor eax, ebp
mov dword [ebp - 4], eax
xor eax, eax
push esi
mov word [ebp - 0x210], ax
mov esi, ecx
lea eax, [ebp - 0x210]
push eax
push 0x104
call dword [sym.imp.KERNEL32.dll_GetCurrentDirectoryW]
test eax, eax
je 0x40c0dc
cmp eax, 0x104
ja 0x40c0dc
lea eax, [ebp - 0x210]
push eax
lea ecx, [ebp - 0x228]
call fcn.00409580
sub esp, 8
lea eax, [ebp - 0x228]
cmp dword [ebp - 0x214], 8
mov ecx, esp
cmovae eax, dword [ebp - 0x228]
mov dword [ecx], eax
mov eax, dword [ebp - 0x218]
mov dword [ecx + 4], eax
lea ecx, [ebp - 0x258]
call fcn.004021a0
sub esp, 8
mov edx, esp
cmp dword [eax + 0x14], 8
jb 0x40c074
mov ecx, dword [eax]
jmp 0x40c076
mov ecx, eax
mov dword [edx], ecx
lea ecx, [ebp - 0x240]
mov eax, dword [eax + 0x10]
mov dword [edx + 4], eax
call fcn.004021a0
lea ecx, [ebp - 0x240]
call fcn.00402f20
lea eax, [ebp - 0x240]
cmp esi, eax
je 0x40c0aa
push 0xffffffffffffffff
push 0
push eax
mov ecx, esi
call fcn.004047d0
lea ecx, [ebp - 0x240]
call fcn.00402220
lea ecx, [ebp - 0x258]
call fcn.00402220
lea ecx, [ebp - 0x228]
call fcn.00402220
mov al, 1
pop esi
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.0043a597
mov esp, ebp
pop ebp
ret
mov ecx, dword [ebp - 4]
xor al, al
xor ecx, ebp
pop esi
call fcn.0043a597
mov esp, ebp
pop ebp
ret
Function at 0x40e3e0
Capabilities:
Query environment variable
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
mov eax, 0x1010
call fcn.0043a5b0
mov eax, dword [0x47426c]
xor eax, ebp
mov dword [ebp - 4], eax
push esi
push edi
mov edi, dword [ebp + 0xc]
lea eax, [ebp - 0x100c]
push eax
lea eax, [ebp - 0x808]
mov dword [ebp - 0x100c], 0
push eax
lea eax, [ebp - 0x1010]
mov dword [ebp - 0x1010], 1
push eax
push 0
push str.CurrentBuildNumber
push dword [ecx]
mov dword [ebp - 0x100c], 0x800
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
mov esi, eax
test esi, esi
jne 0x40e52f
mov ecx, dword [ebp - 0x1010]
cmp ecx, 1
jne 0x40e4c2
cmp word [ebp - 0x808], ax
jne 0x40e481
xor ecx, ecx
lea eax, [ebp - 0x808]
push ecx
push eax
mov ecx, edi
call fcn.004046d0
mov eax, esi
pop edi
pop esi
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.0043a597
mov esp, ebp
pop ebp
ret 8
lea ecx, [ebp - 0x808]
lea edx, [ecx + 2]
nop word [eax + eax]
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x40e490
sub ecx, edx
lea eax, [ebp - 0x808]
sar ecx, 1
push ecx
push eax
mov ecx, edi
call fcn.004046d0
mov eax, esi
pop edi
pop esi
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.0043a597
mov esp, ebp
pop ebp
ret 8
cmp ecx, 2
jne 0x40e52a
push 0x400
lea eax, [ebp - 0x1008]
push eax
lea eax, [ebp - 0x808]
push eax
call dword [sym.imp.KERNEL32.dll_ExpandEnvironmentStringsW]
mov dword [ebp - 0x100c], eax
test eax, eax
je 0x40e513
cmp eax, 0x400
ja 0x40e513
lea eax, [ebp - 0x1008]
mov ecx, edi
push eax
call fcn.00403630
mov eax, esi
pop edi
pop esi
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.0043a597
mov esp, ebp
pop ebp
ret 8
mov eax, 0xea
pop edi
pop esi
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.0043a597
mov esp, ebp
pop ebp
ret 8
mov eax, 0x3f4
mov ecx, dword [ebp - 4]
pop edi
xor ecx, ebp
pop esi
call fcn.0043a597
mov esp, ebp
pop ebp
ret 8

Function at 0x40f6f0
Capabilities:
Generate random numbers via rtlgenrandom

Disassembly:
push ebp
mov ebp, esp
sub esp, 0xc4
push ebx
push esi
xor ebx, ebx
mov dword [ebp - 8], ecx
push edi
mov dword [ebp - 4], ebx
mov edi, 8
mov eax, ecx
mov dword [ebp - 4], edi
mov dword [ebp - 0xc], 0xffffffff
or ecx, 0xffffffff
cmp edi, 0xffffffff
mov esi, edi
cmova esi, ecx
push esi
push eax
call dword [sym.imp.ADVAPI32.dll_SystemFunction036]
test al, al
jne 0x40f731
mov byte [0], al
test bl, 1
je 0x40f744
lea ecx, [ebp - 0xc0]
and ebx, 0xfffffffe
call fcn.00409f80
mov eax, dword [ebp - 8]
sub edi, esi
add eax, esi
mov dword [ebp - 4], edi
mov dword [ebp - 8], eax
mov ecx, 0xffffffff
test edi, edi
jne 0x40f718
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x4127b0
Capabilities:
Hash data with md5

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x78
mov eax, dword [0x47426c]
xor eax, ebp
mov dword [ebp - 8], eax
push ebx
push esi
push edi
mov edi, dword [ebp + 8]
mov esi, ecx
push 0xffffffffffffffff
lea ecx, [esi + 4]
push 0
mov dword [esi], 0x46efd4
mov dword [ecx + 0x14], 0xf
mov dword [ecx + 0x10], 0
push edi
mov byte [ecx], 0
call fcn.00404b60
push 0x7d0
lea eax, [esi + 0x20]
mov dword [esi + 0x1c], 0
push eax
mov dword [esi], 0x46ec74
call dword [sym.imp.KERNEL32.dll_InitializeCriticalSectionAndSpinCount]
push 0x30
mov byte [esi + 0x38], 0
call fcn.0043a2f7
add esp, 4
mov ebx, eax
cmp dword [edi + 0x14], 0x10
jb 0x412822
mov ecx, dword [edi]
jmp 0x412824
mov ecx, edi
mov eax, dword [edi + 0x10]
lea edx, [ebp - 0x6c]
mov dword [ebp - 0x6c], ecx
lea ecx, [ebp - 0x64]
mov dword [ebp - 0x64], 0x67452301
mov dword [ebp - 0x60], 0xefcdab89
mov dword [ebp - 0x5c], 0x98badcfe
mov dword [ebp - 0x58], 0x10325476
mov dword [ebp - 0x54], 0
mov dword [ebp - 0x50], 0
mov dword [ebp - 0x68], eax
call fcn.0041dcf0
lea edx, [ebp - 0x64]
lea ecx, [ebp - 0x74]
call fcn.0041de10
mov eax, dword [ebp - 0x74]
mov ecx, dword [ebp - 0x70]
bswap eax
bswap ecx
push eax
push ecx
mov ecx, ebx
call fcn.0041a470
push 0x30
mov dword [esi + 0x3c], eax
call fcn.0043a2f7
mov edx, eax
add esp, 4
mov eax, dword [esi + 0x3c]
mov ecx, dword [eax + 0x20]
push dword [ecx + 4]
push dword [ecx]
mov ecx, edx
call fcn.0041a470
mov ecx, dword [ebp - 8]
mov dword [esi + 0x40], eax
xor ecx, ebp
pop edi
mov eax, esi
pop esi
pop ebx
call fcn.0043a597
mov esp, ebp
pop ebp
ret 4
Function at 0x4128c0
Capabilities:
Hash data with md5

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x7c
mov eax, dword [0x47426c]
xor eax, ebp
mov dword [ebp - 4], eax
mov eax, dword [ebp + 0x14]
push ebx
mov ebx, dword [ebp + 0xc]
push esi
mov esi, dword [ebp + 0x10]
push edi
mov edi, ecx
mov dword [ebp - 0x68], eax
push 0xffffffffffffffff
lea ecx, [edi + 4]
push 0
mov dword [edi], 0x46efd4
mov dword [ecx + 0x14], 0xf
mov dword [ecx + 0x10], 0
push ebx
mov byte [ecx], 0
call fcn.00404b60
lea eax, [edi + 0x20]
mov dword [edi + 0x1c], 0
push 0x7d0
push eax
mov dword [edi], 0x46ec74
call dword [sym.imp.KERNEL32.dll_InitializeCriticalSectionAndSpinCount]
push 0x38
mov byte [edi + 0x38], 0
call fcn.0043a2f7
add esp, 4
mov dword [ebp - 0x64], eax
cmp dword [ebx + 0x14], 0x10
push esi
push dword [ebp + 8]
jb 0x412940
mov ecx, dword [ebx]
jmp 0x412942
mov ecx, ebx
mov eax, dword [ebx + 0x10]
lea edx, [ebp - 0x70]
mov dword [ebp - 0x70], ecx
lea ecx, [ebp - 0x60]
mov dword [ebp - 0x60], 0x67452301
mov dword [ebp - 0x5c], 0xefcdab89
mov dword [ebp - 0x58], 0x98badcfe
mov dword [ebp - 0x54], 0x10325476
mov dword [ebp - 0x50], 0
mov dword [ebp - 0x4c], 0
mov dword [ebp - 0x6c], eax
call fcn.0041dcf0
lea edx, [ebp - 0x60]
lea ecx, [ebp - 0x78]
call fcn.0041de10
mov eax, dword [ebp - 0x78]
mov ecx, dword [ebp - 0x74]
bswap eax
bswap ecx
push eax
push ecx
mov ecx, dword [ebp - 0x64]
call fcn.00419440
push 0x38
mov dword [edi + 0x3c], eax
call fcn.0043a2f7
mov esi, eax
add esp, 4
mov eax, dword [edi + 0x3c]
push dword [ebp - 0x68]
mov eax, dword [eax + 0x20]
push dword [ebp + 8]
mov edx, dword [eax]
mov ecx, dword [eax + 4]
add edx, 1
adc ecx, 0
push ecx
push edx
mov ecx, esi
call fcn.00419440
mov ecx, dword [ebp - 4]
mov dword [edi + 0x40], eax
xor ecx, ebp
mov eax, edi
pop edi
pop esi
pop ebx
call fcn.0043a597
mov esp, ebp
pop ebp
ret 0x10
Function at 0x413050
Capabilities:
Allocate thread local storage
Get thread local storage value
Set thread local storage value

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x80c
mov eax, dword [0x47426c]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
mov ebx, dword [0x474bc4]
mov dword [ebp - 0x80c], 0
mov dword [ebp - 0x80c], ebx
push esi
push edi
cmp ebx, 0xffffffff
jne 0x4130e2
mov edi, dword [sym.imp.KERNEL32.dll_TlsAlloc]
call edi
mov esi, dword [sym.imp.KERNEL32.dll_TlsFree]
cmp eax, ebx
je 0x41309d
mov ebx, eax
mov dword [ebp - 0x80c], ebx
jmp 0x4130c0
mov byte [0], 0
call edi
cmp eax, 0xffffffff
je 0x4130b5
mov ebx, eax
mov dword [ebp - 0x80c], ebx
jmp 0x4130bc
mov byte [0], 0
push 0xffffffffffffffff
call esi
mov ecx, ebx
mov edx, 0x474bc4
or eax, 0xffffffff
lock cmpxchg dword [edx], ecx
cmp eax, 0xffffffff
je 0x4130e2
push ebx
call esi
mov ebx, dword [0x474bc4]
mov dword [ebp - 0x80c], ebx
push ebx
call dword [sym.imp.KERNEL32.dll_TlsGetValue]
test eax, eax
je 0x4130f4
mov byte [0], 0
push 0x800
lea eax, [ebp - 0x808]
push 0
push eax
call fcn.0043d870
add esp, 0xc
lea eax, [ebp - 0x808]
push eax
push ebx
call dword [sym.imp.KERNEL32.dll_TlsSetValue]
push 0x800
call fcn.0043a63b
add esp, 4
lea esi, [ebp - 0x808]
mov ebx, eax
mov ecx, 0x200
mov edi, ebx
rep movsd dword es:[edi], dword [esi]
push ebx
push dword [ebp - 0x80c]
call dword [sym.imp.KERNEL32.dll_TlsSetValue]
mov ecx, dword [ebp - 4]
mov eax, ebx
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.0043a597
mov esp, ebp
pop ebp
ret
Function at 0x413160
Capabilities:
Set thread local storage value

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
mov eax, 0x1414
call fcn.0043a5b0
mov eax, dword [0x47426c]
xor eax, esp
mov dword [esp + 0x1410], eax
mov eax, dword [0x474bc4]
push ebx
push esi
mov ebx, ecx
mov dword [esp + 0xc], 0
push edi
mov ecx, 0x200
mov dword [esp + 0x10], eax
mov esi, ebx
lea edi, [esp + 0x18]
rep movsd dword es:[edi], dword [esi]
lea ecx, [esp + 0x18]
push ecx
push eax
call dword [sym.imp.KERNEL32.dll_TlsSetValue]
push ebx
call fcn.0043a592
mov eax, dword [0x476bb4]
add esp, 4
test eax, 0xfffffffe
jne 0x4131ed
push 0x476bb4
call fcn.0040f770
add esp, 4
test al, al
je 0x4131ed
push 0x7d0
push 0x476bb8
call dword [sym.imp.KERNEL32.dll_InitializeCriticalSectionAndSpinCount]
mov dword [0x476bb4], 0x476bb8
mov eax, dword [0x476bb4]
push eax
mov dword [esp + 0x18], eax
call dword [sym.imp.KERNEL32.dll_EnterCriticalSection]
push dword [esp + 0x14]
mov ecx, 0x300
lea edi, [esp + 0x81c]
mov esi, 0x476bd0
rep movsd dword es:[edi], dword [esi]
call dword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
mov ebx, 0x100
nop
xor dl, dl
lea esi, [esp + 0x820]
xor edi, edi
nop dword [eax + eax]
mov ecx, dword [esp + edi*8 + 0x18]
test ecx, ecx
je 0x41325d
cmp dword [esi - 8], 0
je 0x41325d
mov eax, dword [esp + edi*8 + 0x1c]
cmp eax, dword [esi]
jne 0x41325d
mov eax, dword [esi - 4]
test eax, eax
je 0x41325d
push ecx
mov dword [esp + edi*8 + 0x1c], 0
call eax
add esp, 4
mov dl, 1
inc edi
add esi, 0xc
cmp edi, 0x100
jl 0x413230
dec ebx
test ebx, ebx
jle 0x413272
test dl, dl
jne 0x413220
push 0
push dword [esp + 0x14]
call dword [sym.imp.KERNEL32.dll_TlsSetValue]
mov ecx, dword [esp + 0x141c]
pop edi
pop esi
pop ebx
xor ecx, esp
call fcn.0043a597
mov esp, ebp
pop ebp
ret