joyce8/EMBER2024-capa huggingface dataset:
Function at 0x408544
Capabilities:
Accept command line arguments

Disassembly:
mov eax, fcn.004028d8
call fcn.00403e40
sub esp, 0xc
push ebx
push esi
push edi
mov esi, ecx
push dword [esi + 8]
xor edi, edi
mov dword [ebp - 0x14], edi
mov dword [ebp - 0x10], edi
call dword [sym.imp.KERNEL32.dll_GetCommandLineA]
mov ebx, eax
mov dword [ebp - 0x18], ebx
mov dword [ebp - 4], edi
mov eax, dword [esi]
mov ecx, dword [eax + 4]
mov eax, dword [eax + 8]
mov edx, dword [ecx]
push edi
lea esi, [ebp - 0x14]
push esi
push eax
push edi
push ebx
push ecx
call dword [edx + 0x18]
mov esi, eax
cmp esi, edi
je 0x4085a1
or dword [ebp - 4], 0xffffffff
cmp ebx, edi
je 0x40859a
push ebx
call dword [sym.imp.MSVCP60.dll_private:_bool___thiscall_std::basic_string_char__struct_std::char_traits_char___class_std::allocator_char__::_Grow_unsigned_int__bool_]
mov eax, 0x80041008
jmp 0x40860a
cmp dword [ebp + 8], edi
mov eax, dword [ebp - 0x14]
mov ecx, dword [eax]
lea edx, [ebp - 0x10]
push edx
je 0x4085b8
push dword [ebp + 8]
push eax
call dword [ecx + 0x2c]
jmp 0x4085bc
push eax
call dword [ecx + 0xc]
mov eax, dword [ebp - 0x10]
cmp eax, edi
je 0x4085e6
lea edx, [ebp + 8]
push edx
push dword [ebp + 0x10]
mov dword [ebp + 8], edi
mov ecx, dword [eax]
push edi
push dword [ebp + 0xc]
push eax
call dword [ecx + 0xc]
mov esi, eax
mov eax, dword [ebp - 0x10]
cmp eax, edi
je 0x4085e6
mov ecx, dword [eax]
push eax
call dword [ecx + 8]
mov eax, dword [ebp - 0x14]
cmp eax, edi
mov dword [ebp - 0x10], edi
je 0x4085f6
mov ecx, dword [eax]
push eax
call dword [ecx + 8]
mov dword [ebp - 0x14], edi
or dword [ebp - 4], 0xffffffff
cmp ebx, edi
je 0x408608
push ebx
call dword [sym.imp.MSVCP60.dll_private:_bool___thiscall_std::basic_string_char__struct_std::char_traits_char___class_std::allocator_char__::_Grow_unsigned_int__bool_]
mov eax, esi
mov ecx, dword [ebp - 0xc]
pop edi
pop esi
pop ebx
mov dword fs:[0], ecx
leave
ret 0xc
Function at 0x408740
Capabilities:
Accept command line arguments

Disassembly:
mov eax, 0x409c93
call fcn.00403e40
cmp dword [ebp + 8], 0
push esi
push edi
mov esi, ecx
mov edi, 0x80041001
je 0x4087f4
push dword [ebp + 8]
call fcn.004080b8
mov edi, eax
test edi, edi
jl 0x4087f4
push ebx
push dword [esi + 8]
call dword [sym.imp.KERNEL32.dll_GetCommandLineA]
mov dword [ebp + 8], eax
and dword [ebp - 4], 0
mov eax, dword [esi]
mov ecx, dword [eax + 4]
mov eax, dword [eax + 8]
mov edx, dword [ecx]
push 0
lea ebx, [esi + 0xc]
push ebx
push eax
push 0
push dword [ebp + 8]
push ecx
call dword [edx + 0x18]
mov edi, eax
test edi, edi
jne 0x4087e0
mov ecx, esi
call fcn.004086c8
mov edi, eax
cmp edi, 0x80041002
jne 0x4087b4
add edi, 0xa
test edi, edi
jl 0x4087e0
cmp dword [esi + 0x30], 0
je 0x4087d0
mov ebx, dword [ebx]
mov eax, dword [ebx]
lea ecx, [esi + 0x14]
push ecx
push 0x4090d0
push ebx
call dword [eax]
mov edi, eax
test edi, edi
jl 0x4087e0
push dword [esi + 0x30]
mov ecx, esi
call fcn.00403188
mov edi, eax
or dword [ebp - 4], 0xffffffff
cmp dword [ebp + 8], 0
pop ebx
je 0x4087f4
push dword [ebp + 8]
call dword [sym.imp.MSVCP60.dll_private:_bool___thiscall_std::basic_string_char__struct_std::char_traits_char___class_std::allocator_char__::_Grow_unsigned_int__bool_]
mov ecx, dword [ebp - 0xc]
mov eax, edi
pop edi
pop esi
mov dword fs:[0], ecx
leave
ret 4
Function at 0x40a1e2
Capabilities:
Query or enumerate registry value

Disassembly:
mov eax, 0x408e44
call fcn.00403e40
sub esp, 0x130
push ebx
push esi
push edi
mov dword [ebp - 0x10], esp
cmp dword [0x44d2e4], 2
jne 0x40a221
push dword [ebp + 0x1c]
push dword [ebp + 0x18]
push dword [ebp + 0x14]
push dword [ebp + 0x10]
push dword [ebp + 0xc]
push dword [ebp + 8]
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
mov dword [ebp - 0x14], eax
jmp 0x40a383
xor ebx, ebx
mov dword [ebp - 0x18], ebx
cmp dword [ebp + 0xc], ebx
je 0x40a253
push ebx
push ebx
push 0x104
lea eax, [ebp - 0x11c]
push eax
push 0xffffffffffffffff
push dword [ebp + 0xc]
push ebx
push ebx
call dword [sym.imp.KERNEL32.dll_WideCharToMultiByte]
cmp eax, ebx
je 0x40a299
lea eax, [ebp - 0x11c]
mov dword [ebp - 0x18], eax
mov dword [ebp - 0x120], ebx
mov dword [ebp - 4], ebx
mov esi, dword [ebp + 0x1c]
cmp dword [ebp + 0x18], ebx
je 0x40a2b0
push dword [esi]
call sub.MSVCP60.dll_unsigned_int_const_std::basic_string_char__struct_std::char_traits_char___class_std::allocator_char__::npos
pop ecx
mov dword [ebp - 0x124], eax
mov dword [ebp - 0x120], eax
cmp eax, ebx
jne 0x40a2b0
mov dword [ebp - 0x128], ebx
mov dword [ebp - 0x12c], ebx
push 0x404910
lea eax, [ebp - 0x12c]
push eax
jmp 0x40a399
mov eax, 0x459
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop edi
pop esi
pop ebx
leave
ret 0x18
mov eax, dword [esi]
mov dword [ebp - 0x130], eax
lea eax, [ebp - 0x130]
push eax
push dword [ebp - 0x120]
mov edi, dword [ebp + 0x14]
push edi
push dword [ebp + 0x10]
push dword [ebp - 0x18]
push dword [ebp + 8]
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
mov dword [ebp - 0x14], eax
cmp eax, ebx
jne 0x40a36a
mov eax, dword [edi]
cmp eax, ebx
jbe 0x40a347
cmp eax, 2
jbe 0x40a319
cmp eax, 7
jne 0x40a347
cmp dword [ebp + 0x18], ebx
je 0x40a31e
push dword [esi]
push dword [ebp + 0x18]
push dword [ebp - 0x130]
push dword [ebp - 0x120]
push ebx
push ebx
call dword [sym.imp.KERNEL32.dll_MultiByteToWideChar]
mov dword [ebp - 0x134], eax
jmp 0x40a36a
cmp dword [ebp + 0x18], ebx
jne 0x40a32a
mov eax, dword [ebp - 0x130]
add eax, eax
mov dword [esi], eax
jmp 0x40a36a
push dword [esi]
push dword [ebp + 0x18]
push 0xffffffffffffffff
push dword [ebp - 0x120]
push ebx
push ebx
call dword [sym.imp.KERNEL32.dll_MultiByteToWideChar]
mov dword [ebp - 0x138], eax
jmp 0x40a324
mov ecx, dword [ebp - 0x130]
mov dword [esi], ecx
mov edi, dword [ebp + 0x18]
cmp edi, ebx
je 0x40a36a
mov esi, dword [ebp - 0x120]
mov eax, ecx
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, eax
and ecx, 3
rep movsb byte es:[edi], byte [esi]
mov eax, dword [ebp - 0x120]
mov dword [ebp - 0x13c], eax
push eax
call fcn.00403e38
pop ecx
mov dword [ebp - 0x120], ebx
or dword [ebp - 4], 0xffffffff
mov eax, dword [ebp - 0x14]
jmp 0x40a29e
call sub.MSVCRT.dll__CxxThrowException
int3
Function at 0x40a253
Capabilities:
Query or enumerate registry value

Disassembly:
mov eax, 0x408e44
call fcn.00403e40
sub esp, 0x130
push ebx
push esi
push edi
mov dword [ebp - 0x10], esp
cmp dword [0x44d2e4], 2
jne 0x40a221
push dword [ebp + 0x1c]
push dword [ebp + 0x18]
push dword [ebp + 0x14]
push dword [ebp + 0x10]
push dword [ebp + 0xc]
push dword [ebp + 8]
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
mov dword [ebp - 0x14], eax
jmp 0x40a383
xor ebx, ebx
mov dword [ebp - 0x18], ebx
cmp dword [ebp + 0xc], ebx
je 0x40a253
push ebx
push ebx
push 0x104
lea eax, [ebp - 0x11c]
push eax
push 0xffffffffffffffff
push dword [ebp + 0xc]
push ebx
push ebx
call dword [sym.imp.KERNEL32.dll_WideCharToMultiByte]
cmp eax, ebx
je 0x40a299
lea eax, [ebp - 0x11c]
mov dword [ebp - 0x18], eax
mov dword [ebp - 0x120], ebx
mov dword [ebp - 4], ebx
mov esi, dword [ebp + 0x1c]
cmp dword [ebp + 0x18], ebx
je 0x40a2b0
push dword [esi]
call sub.MSVCP60.dll_unsigned_int_const_std::basic_string_char__struct_std::char_traits_char___class_std::allocator_char__::npos
pop ecx
mov dword [ebp - 0x124], eax
mov dword [ebp - 0x120], eax
cmp eax, ebx
jne 0x40a2b0
mov dword [ebp - 0x128], ebx
mov dword [ebp - 0x12c], ebx
push 0x404910
lea eax, [ebp - 0x12c]
push eax
jmp 0x40a399
mov eax, 0x459
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop edi
pop esi
pop ebx
leave
ret 0x18
mov eax, dword [esi]
mov dword [ebp - 0x130], eax
lea eax, [ebp - 0x130]
push eax
push dword [ebp - 0x120]
mov edi, dword [ebp + 0x14]
push edi
push dword [ebp + 0x10]
push dword [ebp - 0x18]
push dword [ebp + 8]
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
mov dword [ebp - 0x14], eax
cmp eax, ebx
jne 0x40a36a
mov eax, dword [edi]
cmp eax, ebx
jbe 0x40a347
cmp eax, 2
jbe 0x40a319
cmp eax, 7
jne 0x40a347
cmp dword [ebp + 0x18], ebx
je 0x40a31e
push dword [esi]
push dword [ebp + 0x18]
push dword [ebp - 0x130]
push dword [ebp - 0x120]
push ebx
push ebx
call dword [sym.imp.KERNEL32.dll_MultiByteToWideChar]
mov dword [ebp - 0x134], eax
jmp 0x40a36a
cmp dword [ebp + 0x18], ebx
jne 0x40a32a
mov eax, dword [ebp - 0x130]
add eax, eax
mov dword [esi], eax
jmp 0x40a36a
push dword [esi]
push dword [ebp + 0x18]
push 0xffffffffffffffff
push dword [ebp - 0x120]
push ebx
push ebx
call dword [sym.imp.KERNEL32.dll_MultiByteToWideChar]
mov dword [ebp - 0x138], eax
jmp 0x40a324
mov ecx, dword [ebp - 0x130]
mov dword [esi], ecx
mov edi, dword [ebp + 0x18]
cmp edi, ebx
je 0x40a36a
mov esi, dword [ebp - 0x120]
mov eax, ecx
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, eax
and ecx, 3
rep movsb byte es:[edi], byte [esi]
mov eax, dword [ebp - 0x120]
mov dword [ebp - 0x13c], eax
push eax
call fcn.00403e38
pop ecx
mov dword [ebp - 0x120], ebx
or dword [ebp - 4], 0xffffffff
mov eax, dword [ebp - 0x14]
jmp 0x40a29e
call sub.MSVCRT.dll__CxxThrowException
int3

Function at 0x40bafc
Capabilities:
Parse pe header

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
mov ecx, dword [ebp + 8]
cmp word [ecx], 0x5a4d
je 0x40bb10
xor eax, eax
pop ebp
ret
mov eax, dword [ecx + 0x3c]
add eax, ecx
cmp dword [eax], 0x4550
jne 0x40bb0b
xor ecx, ecx
cmp word [eax + 0x18], 0x10b
sete cl
mov eax, ecx
pop ebp
ret
Function at 0x40bb2c
Capabilities:
Enumerate pe sections

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
mov eax, dword [ebp + 8]
mov ecx, dword [eax + 0x3c]
add ecx, eax
movzx eax, word [ecx + 0x14]
push ebx
push esi
movzx esi, word [ecx + 6]
xor edx, edx
test esi, esi
push edi
lea eax, [eax + ecx + 0x18]
jbe 0x40bb6b
mov edi, dword [ebp + 0xc]
mov ecx, dword [eax + 0xc]
cmp edi, ecx
jb 0x40bb61
mov ebx, dword [eax + 8]
add ebx, ecx
cmp edi, ebx
jb 0x40bb6d
add edx, 1
add eax, 0x28
cmp edx, esi
jb 0x40bb51
xor eax, eax
pop edi
pop esi
pop ebx
pop ebp
ret

Function at 0x40bd74
Capabilities:
Check for time delay via gettickcount

Disassembly:
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0x32
ja 0x40bf9c
je 0x40bda8
sub eax, 0
je 0x40bfb9
dec eax
je 0x40bda8
sub eax, 4
je 0x40bf98
sub eax, 3
je 0x40bf92
xor eax, eax
inc eax
ret
push 8
pop eax
ret
shr ebx, 1
rcr ecx, 1
shr edx, 1
rcr eax, 1
or ebx, ebx
jne 0x40bdde
div ecx
mov esi, eax
mul dword [esp + 0x1c]
mov ecx, eax
mov eax, dword [esp + 0x18]
mul esi
add edx, ecx
jb 0x40be0c
cmp edx, dword [esp + 0x14]
ja 0x40be0c
jb 0x40be0d
cmp eax, dword [esp + 0x10]
jbe 0x40be0d
dec esi
xor edx, edx
mov eax, esi
dec edi
jne 0x40be1b
neg edx
neg eax
sbb edx, 0
pop ebx
pop esi
pop edi
ret 0x10
push 7
pop eax
ret
push 2
pop eax
ret
sub eax, 0x7a
je 0x40bdde
sub eax, 0x30
je 0x407996
sub eax, 0x33b
jne 0x40bda3
xor eax, eax
ret

Function at 0x40c70c
Capabilities:
Read file on windows

Disassembly:
push esi
mov esi, dword [esp + 8]
push edi
mov edi, dword [esp + 0x10]
push fcn.0040acca
push esi
push 0x20
lea eax, [esi + 0x28]
push eax
push dword [edi + 0x18]
call dword [sym.imp.KERNEL32.dll_ReadFileEx]
test eax, eax
jne 0x40c743
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0x3e5
je 0x40c743
call fcn.0040bd74
jmp 0x40c75d
xor ecx, ecx
mov dword [esi + 0x18], ecx
mov eax, dword [edi + 0x48]
add eax, 0x1c
jmp 0x40c755
mov eax, dword [eax]
add eax, 0x18
cmp dword [eax], ecx
jne 0x40c750
mov dword [eax], esi
xor eax, eax
pop edi
pop esi
ret 8
Function at 0x4139a7
Capabilities:
Hide graphical window

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x14
push ebx
push esi
push edi
call dword [sym.imp.KERNEL32.dll_GetConsoleWindow]
mov ebx, eax
mov dword [ebp - 0xc], ebx
call fcn.00401105
movsx edx, al
call fcn.00401102
movsx ecx, al
imul edx, ecx
mov dword [ebp - 4], edx
call fcn.0040110e
movsx ecx, byte [0x4298f1]
movsx eax, al
add ecx, eax
mov dword [ebp - 8], eax
lea eax, [ecx + edx*8]
movsx ecx, byte [0x4298f0]
xor edx, edx
div ecx
movsx ecx, byte [0x4298f3]
sub eax, ecx
je 0x413b52
test ebx, ebx
je 0x413a0d
xor ecx, ecx
inc ecx
xor edx, edx
jmp 0x413a1b
xorps xmm0, xmm0
movlpd qword [ebp - 0x14], xmm0
mov edx, dword [ebp - 0x10]
mov ecx, dword [ebp - 0x14]
call fcn.00421ce0
movsd qword [ebp - 0x14], xmm0
xor eax, eax
je 0x413a2a
add byte [edi], cl
mov esi, 0x4298f205
add byte [ebx], dh
ror byte [ebx + 0x7d8bfc75], cl
clc
movsx eax, byte [0x4298f2]
xor edx, edx
mov esi, dword [ebp - 4]
mov edi, dword [ebp - 8]
imul ebx, esi, 3
movd xmm2, eax
movsx eax, byte [0x4298f4]
cvtdq2pd xmm2, xmm2
add ebx, edi
movd xmm1, eax
cvtdq2pd xmm1, xmm1
addsd xmm1, xmm1
subsd xmm2, xmm1
mulsd xmm2, qword [ebp - 0x14]
movsd qword [ebp - 0x14], xmm2
movsx eax, byte [0x4298f1]
movsx ecx, byte [0x4298f0]
add eax, ebx
div ecx
movsx ecx, byte [0x4298f3]
sub eax, ecx
je 0x413abc
call fcn.00401108
movsx ecx, al
movsx eax, byte [0x42a530]
imul ecx, eax
add ecx, ecx
call fcn.00401111
movsx eax, al
sub ecx, eax
call fcn.0040110b
movsx eax, al
add ecx, eax
movsx eax, byte [0x4298f4]
add eax, ecx
je 0x413abc
push 7
pop esi
jmp 0x413b23
movsx eax, byte [0x4298f1]
xor edx, edx
imul ecx, esi, 9
add ecx, edi
add eax, ecx
movsx ecx, byte [0x4298f0]
div ecx
movsx ecx, byte [0x4298f3]
sub eax, ecx
je 0x413b20
movsx eax, byte [0x4298f1]
xor edx, edx
movsx ecx, byte [0x4298f0]
add eax, ebx
div ecx
movsx ecx, byte [0x4298f3]
movsd xmm0, qword [ebp - 0x14]
sub eax, ecx
movd xmm1, eax
cvtdq2pd xmm1, xmm1
shr eax, 0x1f
addsd xmm1, qword [eax*8 + 0x427020]
mulsd xmm0, xmm1
cvttsd2si esi, xmm0
jmp 0x413b23
mov esi, dword [ebp - 0xc]
movsx eax, byte [0x4298f1]
xor edx, edx
movsx ecx, byte [0x4298f0]
add eax, ebx
div ecx
movsx ecx, byte [0x4298f3]
sub eax, ecx
imul eax, esi
test eax, eax
je 0x413b52
push 0
push dword [ebp - 0xc]
call dword [sym.imp.USER32.dll_ShowWindow]
pop edi
pop esi
pop ebx
leave
ret

Function at 0x415408
Capabilities:
Enumerate pe sections

Disassembly:
push ebp
mov ebp, esp
mov eax, dword [ebp + 8]
push esi
mov ecx, dword [eax + 0x3c]
add ecx, eax
movzx eax, word [ecx + 0x14]
lea edx, [ecx + 0x18]
add edx, eax
movzx eax, word [ecx + 6]
imul esi, eax, 0x28
add esi, edx
jmp 0x41543d
mov ecx, dword [edx + 0xc]
cmp dword [ebp + 0xc], ecx
jb 0x41543a
mov eax, dword [edx + 8]
add eax, ecx
cmp dword [ebp + 0xc], eax
jb 0x415446
add edx, 0x28
cmp edx, esi
jne 0x415428
xor eax, eax
pop esi
pop ebp
ret
mov eax, edx
jmp 0x415443
Function at 0x415d51
Capabilities:
Parse pe header

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

Function at 0x41a9e4
Capabilities:
Enumerate files on windows

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x264
mov eax, dword [0x429040]
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 0x41aa2f
movzx eax, word [edx]
lea ecx, [ebp - 0x255]
push eax
call fcn.0041ab7f
test al, al
jne 0x41aa29
sub edx, 2
cmp edx, edi
jne 0x41aa0f
mov ecx, dword [ebp - 0x25c]
movzx esi, word [edx]
cmp esi, 0x3a
jne 0x41aa51
lea eax, [edi + 2]
cmp edx, eax
je 0x41aa51
push ecx
xor ebx, ebx
push ebx
push ebx
push edi
call fcn.0041a930
add esp, 0x10
jmp 0x41ab4b
push esi
lea ecx, [ebp - 0x255]
call fcn.0041ab7f
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 0x41aa94
push dword [ebp - 0x25c]
jmp 0x41aa41
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 0x41aad1
cmp word [ebp - 0x226], 0
je 0x41aaf2
cmp word [ebp - 0x226], ax
jne 0x41aad1
cmp word [ebp - 0x224], 0
je 0x41aaf2
push ebx
push dword [ebp - 0x260]
lea eax, [ebp - 0x228]
push edi
push eax
call fcn.0041a930
add esp, 0x10
mov dword [ebp - 0x264], eax
test eax, eax
jne 0x41ab3e
lea eax, [ebp - 0x254]
push eax
push esi
call dword [sym.imp.KERNEL32.dll_FindNextFileW]
push 0x2e
test eax, eax
pop eax
jne 0x41aaab
mov eax, dword [ebx + 4]
mov edx, dword [ebx]
sub eax, edx
mov ecx, dword [ebp - 0x25c]
sar eax, 2
cmp ecx, eax
jne 0x41ab26
push esi
call dword [sym.imp.KERNEL32.dll_FindClose]
xor eax, eax
jmp 0x41ab4b
push 0x41a760
sub eax, ecx
push 4
push eax
lea eax, [edx + ecx*4]
push eax
call fcn.0041dbb0
add esp, 0x10
jmp 0x41ab1b
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.004151ca
leave
ret

Function at 0x41b6eb
Capabilities:
Query environment variable

Disassembly:
mov edi, edi
push esi
call dword [sym.imp.KERNEL32.dll_GetEnvironmentStringsW]
mov esi, eax
test esi, esi
jne 0x41b6fc
pop esi
ret
push ebx
push edi
push esi
call fcn.0041b6b4
mov ebx, eax
sub ebx, esi
and ebx, 0xfffffffe
push ebx
call fcn.0041a712
mov edi, eax
pop ecx
pop ecx
test edi, edi
je 0x41b724
push ebx
push esi
push edi
call fcn.004166d0
add esp, 0xc
push 0
call fcn.0041a6d8
pop ecx
push esi
call dword [sym.imp.KERNEL32.dll_FreeEnvironmentStringsW]
mov eax, edi
pop edi
pop ebx
pop esi
ret
Function at 0x41baf4
Capabilities:
Set environment variable

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
pop ebp
jmp fcn.0041b739

Function at 0x41bda7
Capabilities:
Allocate thread local storage

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push esi
push 0x423a74
push 0x423a6c
push str.FlsAlloc
push 0x1f
call fcn.0041bc85
mov esi, eax
add esp, 0x10
test esi, esi
je 0x41bddb
push dword [ebp + 8]
mov ecx, esi
call dword [0x422144]
call esi
jmp 0x41bde1
call dword [sym.imp.KERNEL32.dll_TlsAlloc]
pop esi
pop ebp
ret 4

Function at 0x41be25
Capabilities:
Get thread local storage value

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push esi
push 0x423a84
push 0x423a7c
push str.FlsGetValue
push 0x21
call fcn.0041bc85
mov esi, eax
add esp, 0x10
test esi, esi
je 0x41be5c
push dword [ebp + 8]
mov ecx, esi
call dword [0x422144]
call esi
pop esi
pop ebp
ret 4
pop esi
pop ebp
jmp dword [sym.imp.KERNEL32.dll_TlsGetValue]

Function at 0x41be64
Capabilities:
Set thread local storage value

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push esi
push 0x423a8c
push 0x423a84
push str.FlsSetValue
push 0x22
call fcn.0041bc85
mov esi, eax
add esp, 0x10
test esi, esi
je 0x41be9e
push dword [ebp + 0xc]
mov ecx, esi
push dword [ebp + 8]
call dword [0x422144]
call esi
pop esi
pop ebp
ret 8
pop esi
pop ebp
jmp dword [sym.imp.KERNEL32.dll_TlsSetValue]
Function at 0x421a60
Capabilities:
Parse pe header

Disassembly:
push ebp
mov ebp, esp
mov eax, dword [ebp + 8]
mov ecx, 0x5a4d
cmp word [eax], cx
jne 0x421a8d
mov ecx, dword [eax + 0x3c]
add ecx, eax
cmp dword [ecx], 0x4550
jne 0x421a8d
mov edx, 0x10b
xor eax, eax
cmp word [ecx + 0x18], dx
sete al
pop ebp
ret
xor eax, eax
pop ebp
ret
Function at 0x418fc0
Capabilities:
Packed with generic packer

Disassembly:
pushal
mov esi, section.UPX1
lea edi, [esi - 0x12000]
push edi
jmp 0x418fda
mov al, byte [esi]
inc esi
mov byte [edi], al
inc edi
add ebx, ebx
jne 0x418fe1
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
jb 0x418fd0
mov eax, 1
add ebx, ebx
jne 0x418ff3
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc eax, eax
add ebx, ebx
jae 0x418fe8
jne 0x419004
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
jae 0x418fe8
xor ecx, ecx
sub eax, 3
jb 0x419018
shl eax, 8
mov al, byte [esi]
inc esi
xor eax, 0xffffffff
je 0x41908a
mov ebp, eax
add ebx, ebx
jne 0x419023
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc ecx, ecx
add ebx, ebx
jne 0x419030
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc ecx, ecx
jne 0x419054
inc ecx
add ebx, ebx
jne 0x419040
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc ecx, ecx
add ebx, ebx
jae 0x419035
jne 0x419051
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
jae 0x419035
add ecx, 2
cmp ebp, 0xfffff300
adc ecx, 1
lea edx, [edi + ebp]
cmp ebp, 0xfffffffc
jbe 0x419074
mov al, byte [edx]
inc edx
mov byte [edi], al
inc edi
dec ecx
jne 0x419065
jmp 0x418fd6
mov eax, dword [edx]
add edx, 4
mov dword [edi], eax
add edi, 4
sub ecx, 4
ja 0x419074
add edi, ecx
jmp 0x418fd6
pop esi
mov edi, esi
mov ecx, 0x528
mov al, byte [edi]
inc edi
sub al, 0xe8
cmp al, 1
ja 0x419092
cmp byte [edi], 4
jne 0x419092
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 0x419097
lea edi, [esi + 0x14000]
mov eax, dword [edi]
or eax, eax
je 0x41910f
mov ebx, dword [edi + 4]
lea eax, [eax + esi + 0x199c0]
add ebx, esi
push eax
add edi, 8
call dword [esi + 0x19ac4]
xchg ebp, eax
mov al, byte [edi]
inc edi
or al, al
je 0x4190c4
mov ecx, edi
jns 0x4190f3
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 + 0x19ac8]
or eax, eax
je 0x419109
mov dword [ebx], eax
add ebx, 4
jmp 0x4190e1
call dword [esi + 0x19ad8]
mov ebp, dword [esi + 0x19acc]
lea edi, [esi - 0x1000]
mov ebx, 0x1000
push eax
push esp
push 4
push ebx
push edi
call ebp
lea eax, [edi + 0x22f]
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 0x419143
sub esp, 0xffffff80
jmp 0x40c504