joyce8/EMBER2024-capa huggingface dataset:
Function at 0x40d1c0
Capabilities:
Encode data using xor

Disassembly:
push ebx
push esi
push edi
mov edi, edx
xor esi, esi
mov ebx, ecx
test edi, edi
jle 0x40d1ed
nop dword [eax]
movzx eax, byte [ebx]
lea ecx, [esi*8]
dec edi
lea ebx, [ebx + 1]
movzx edx, byte [eax + 0x497d10]
xor edx, ecx
xor esi, edx
test edi, edi
jg 0x40d1d0
pop edi
mov eax, esi
pop esi
pop ebx
ret

Function at 0x40d320
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
sub esp, 8
mov eax, ecx
mov dword [ebp - 8], edx
mov ecx, dword [ebp + 8]
mov dword [ebp - 4], eax
cmp dword [eax + 0xc], 0
je 0x40d374
push ebx
push esi
xor esi, esi
mov ebx, edx
push edi
mov edi, ecx
test ecx, ecx
jle 0x40d364
movzx eax, byte [ebx]
lea ecx, [esi*8]
dec edi
lea ebx, [ebx + 1]
movzx edx, byte [eax + 0x497d10]
xor edx, ecx
xor esi, edx
test edi, edi
jg 0x40d344
mov ecx, dword [ebp + 8]
mov eax, esi
xor edx, edx
mov esi, dword [ebp - 4]
pop edi
div dword [esi]
mov eax, esi
pop esi
pop ebx
jmp 0x40d376
xor edx, edx
push edx
mov edx, dword [ebp - 8]
push ecx
mov ecx, eax
call fcn.0040d270
add esp, 8
test eax, eax
je 0x40d390
mov eax, dword [eax + 8]
mov esp, ebp
pop ebp
ret
xor eax, eax
mov esp, ebp
pop ebp
ret
Function at 0x4144a0
Capabilities:
Resolve function by parsing pe exports

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x14
push ebx
push esi
mov esi, ecx
xor ebx, ebx
push edi
mov edi, edx
mov dword [ebp - 4], ebx
mov edx, dword [esi + 0x3c]
cmp dword [edx], ebx
jne 0x4144e0
mov eax, dword [esi + 0x78]
mov ecx, dword [esi]
or eax, 0x1e
push ebx
and eax, 0x87f7f
push eax
mov eax, dword [ecx + 0x18]
push edx
push ebx
push ecx
call eax
mov ebx, eax
add esp, 0x14
mov dword [ebp - 4], ebx
test ebx, ebx
jne 0x4145c5
mov ecx, dword [esi + 0x18]
cmp ecx, dword [esi + 0x24]
jbe 0x414520
mov eax, dword [esi + 0x80]
push 0
cdq
push ecx
push edx
push eax
call fcn.00487ac0
mov dword [ebp - 0x10], eax
mov eax, dword [esi + 0x3c]
mov dword [ebp - 0xc], edx
lea edx, [ebp - 0x10]
push edx
push 5
mov ecx, dword [eax]
push eax
mov eax, dword [ecx + 0x28]
call eax
mov eax, dword [esi + 0x18]
add esp, 0xc
mov dword [esi + 0x24], eax
nop dword [eax]
test edi, edi
je 0x4145c3
mov ebx, dword [edi + 0x14]
cmp ebx, dword [esi + 0x18]
ja 0x4145b5
test byte [edi + 0x18], 0x20
jne 0x4145b5
mov eax, dword [esi + 0x80]
lea ecx, [ebx - 1]
cdq
push edx
push eax
push 0
push ecx
call fcn.00487ac0
mov dword [ebp - 0xc], eax
mov dword [ebp - 4], edx
cmp ebx, 1
jne 0x414560
mov ecx, edi
call fcn.00413900
push dword [ebp - 4]
mov eax, dword [edi + 4]
push dword [ebp - 0xc]
mov edx, dword [esi + 0x80]
mov dword [ebp - 8], eax
mov eax, dword [esi + 0x3c]
push edx
push dword [ebp - 8]
mov ecx, dword [eax]
push eax
mov eax, dword [ecx + 0xc]
call eax
add esp, 0x14
mov dword [ebp - 4], eax
cmp ebx, 1
jne 0x414597
mov eax, dword [ebp - 8]
movups xmm0, xmmword [eax + 0x18]
movups xmmword [esi + 0x64], xmm0
cmp ebx, dword [esi + 0x20]
jbe 0x41459f
mov dword [esi + 0x20], ebx
inc dword [esi + 0xa8]
mov edx, ebx
push dword [edi + 4]
mov ecx, dword [esi + 0x58]
call fcn.00422920
add esp, 4
mov ebx, dword [ebp - 4]
mov edi, dword [edi + 0xc]
test ebx, ebx
je 0x414520
mov eax, ebx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x43cab0
Capabilities:
Encrypt data using rc4 prga

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x18
mov eax, edx
mov edx, ecx
xor ecx, ecx
mov dword [ebp - 0x18], eax
mov dword [ebp - 0x10], edx
mov dword [ebp - 8], ecx
push esi
mov esi, eax
test eax, eax
je 0x43cadd
cmp byte [eax], cl
je 0x43cad5
inc esi
cmp byte [esi], cl
jne 0x43cad0
sub esi, eax
and esi, 0x3fffffff
xor eax, eax
mov dword [ebp - 4], esi
mov dword [ebp - 0xc], eax
cmp dword [edx + 0x14], eax
jle 0x43cb9f
push ebx
mov ebx, dword [ebp + 8]
push edi
mov edi, eax
xor edi, 1
cmp eax, 2
cmovge edi, eax
test ebx, ebx
je 0x43cb62
mov eax, dword [edx + 0x10]
mov ecx, edi
add ecx, ecx
mov edx, dword [eax + ecx*8]
mov ecx, dword [ebp + 8]
mov bl, byte [ecx]
test bl, bl
je 0x43cb44
sub ecx, edx
mov al, bl
mov dword [ebp - 0x14], ecx
mov esi, ecx
nop
movzx ecx, byte [edx]
mov bl, al
movzx eax, al
mov al, byte [eax + 0x497d10]
cmp al, byte [ecx + 0x497d10]
jne 0x43cb41
mov al, byte [esi + edx + 1]
inc edx
mov bl, al
test al, al
jne 0x43cb20
mov esi, dword [ebp - 4]
movzx eax, byte [edx]
movzx ecx, byte [eax + 0x497d10]
movzx eax, bl
mov ebx, dword [ebp + 8]
movzx eax, byte [eax + 0x497d10]
sub eax, ecx
jne 0x43cb85
mov edx, dword [ebp - 0x10]
mov eax, dword [edx + 0x10]
add edi, edi
mov edx, dword [ebp - 0x18]
push esi
mov ecx, dword [eax + edi*8 + 0xc]
add ecx, 8
call fcn.0040d320
mov ecx, eax
add esp, 4
mov dword [ebp - 8], ecx
test ecx, ecx
jne 0x43cb9b
jmp 0x43cb88
mov ecx, dword [ebp - 8]
mov eax, dword [ebp - 0xc]
mov edx, dword [ebp - 0x10]
inc eax
mov dword [ebp - 0xc], eax
cmp eax, dword [edx + 0x14]
jl 0x43caf3
pop edi
mov eax, ecx
pop ebx
pop esi
mov esp, ebp
pop ebp
ret
Function at 0x43cc50
Capabilities:
Encrypt data using rc4 prga

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x18
mov eax, edx
xor edx, edx
mov dword [ebp - 0x10], eax
mov dword [ebp - 4], edx
push esi
mov esi, eax
push edi
test eax, eax
je 0x43cc7d
cmp byte [eax], dl
je 0x43cc75
nop dword [eax]
inc esi
cmp byte [esi], dl
jne 0x43cc70
sub esi, eax
and esi, 0x3fffffff
mov eax, dword [ecx + 0x14]
xor edi, edi
mov dword [ebp - 8], edi
mov dword [ebp - 0x14], eax
test eax, eax
jle 0x43cd37
push ebx
mov ebx, dword [ecx + 0x10]
mov dword [ebp - 0x18], ebx
mov eax, edi
xor eax, 1
cmp edi, 2
cmovge eax, edi
shl eax, 4
mov ecx, dword [eax + ebx + 0xc]
mov dword [ebp - 0xc], ecx
mov ecx, dword [ebp + 8]
test ecx, ecx
je 0x43ccfe
mov edx, dword [eax + ebx]
mov bl, byte [ecx]
test bl, bl
je 0x43cce6
mov edi, ecx
mov al, bl
sub edi, edx
movzx ecx, byte [edx]
mov bl, al
movzx eax, al
mov al, byte [eax + 0x497d10]
cmp al, byte [ecx + 0x497d10]
jne 0x43cce3
mov al, byte [edi + edx + 1]
inc edx
mov bl, al
test al, al
jne 0x43ccc2
mov edi, dword [ebp - 8]
movzx eax, byte [edx]
movzx ecx, byte [eax + 0x497d10]
movzx eax, bl
movzx eax, byte [eax + 0x497d10]
sub eax, ecx
jne 0x43cd1b
mov ecx, dword [ebp - 0xc]
mov edx, dword [ebp - 0x10]
add ecx, 0x18
push esi
call fcn.0040d320
mov edx, eax
add esp, 4
mov dword [ebp - 4], edx
test edx, edx
jne 0x43cd2e
jmp 0x43cd1e
mov edx, dword [ebp - 4]
mov ebx, dword [ebp - 0x18]
inc edi
mov dword [ebp - 8], edi
cmp edi, dword [ebp - 0x14]
jl 0x43cc97
pop ebx
pop edi
mov eax, edx
pop esi
mov esp, ebp
pop ebp
ret
pop edi
mov eax, edx
pop esi
mov esp, ebp
pop ebp
ret
Function at 0x470760
Capabilities:
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x488da8
mov eax, dword fs:[0]
push eax
sub esp, 0x14
push ebx
push esi
push edi
mov eax, dword [0x49f008]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov edi, ecx
xor bl, bl
cmp dword [edi], 0
je 0x470841
mov ecx, dword [ebp + 8]
call fcn.0046f400
lea ecx, [ebp + 8]
mov dword [ebp - 0x14], eax
push ecx
push 0
lea ecx, [ebp - 0x10]
push ecx
push 0
push eax
push dword [edi]
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
test eax, eax
jne 0x470836
mov eax, dword [ebp - 0x10]
cmp eax, 1
je 0x4707c6
cmp eax, 2
jne 0x470836
mov eax, dword [ebp + 8]
mov bl, 1
add eax, 2
push eax
call fcn.004759ee
mov esi, eax
add esp, 4
test esi, esi
je 0x470834
lea eax, [ebp + 8]
push eax
push esi
lea eax, [ebp - 0x10]
push eax
push 0
push dword [ebp - 0x14]
push dword [edi]
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
test eax, eax
jne 0x470836
mov eax, dword [ebp + 8]
cmp word [esi + eax - 2], 0
je 0x470808
xor ecx, ecx
mov word [esi + eax], cx
push esi
lea ecx, [ebp - 0x1c]
call fcn.0046e290
mov ecx, dword [ebp + 0xc]
push eax
mov dword [ebp - 4], 0
call fcn.0046e410
lea ecx, [ebp - 0x1c]
call fcn.0046e490
push esi
call fcn.00475cb6
add esp, 4
jmp 0x470836
xor bl, bl
push dword [ebp - 0x14]
call fcn.00475cb6
add esp, 4
mov al, bl
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 8
Function at 0x470a60
Capabilities:
Query or enumerate registry key

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x488e2d
mov eax, dword fs:[0]
push eax
sub esp, 0x230
mov eax, dword [0x49f008]
xor eax, ebp
mov dword [ebp - 0x14], eax
push ebx
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov ebx, ecx
mov dword [ebp - 0x234], ebx
mov esi, dword [ebp + 8]
mov dword [ebp - 0x238], esi
mov dword [ebp - 0x22c], 0
mov dword [ebp - 0x230], esi
mov dword [esi], 0
mov dword [esi + 4], 0
mov dword [esi + 8], 0
mov dword [ebp - 4], 0
mov eax, dword [ebx]
mov dword [ebp - 0x22c], 1
test eax, eax
je 0x470c6c
push 0
push 0
push 0
push 0
push 0
push 0
push 0
lea ecx, [ebp - 0x228]
push ecx
push 0
push 0
push 0
push eax
call dword [sym.imp.ADVAPI32.dll_RegQueryInfoKeyW]
test eax, eax
jne 0x470c6c
xor edi, edi
mov dword [ebp - 0x224], edi
cmp dword [ebp - 0x228], edi
jbe 0x470c6c
nop dword [eax]
push 0
push 0
push 0
push 0
lea eax, [ebp - 0x220]
mov dword [ebp - 0x220], 0x100
push eax
lea eax, [ebp - 0x214]
push eax
push edi
push dword [ebx]
call dword [sym.imp.ADVAPI32.dll_RegEnumKeyExW]
test eax, eax
jne 0x470c59
mov eax, dword [ebp - 0x220]
lea eax, [eax*2 + 2]
cmp eax, 0x200
jae 0x470c8c
xor ecx, ecx
lea esi, [ebp - 0x214]
mov word [ebp + eax - 0x214], cx
lea ecx, [esi + 2]
nop dword [eax]
mov ax, word [esi]
add esi, 2
test ax, ax
jne 0x470b80
sub esi, ecx
mov edx, 2
sar esi, 1
xor ecx, ecx
mov dword [ebp - 0x218], esi
lea eax, [esi + 1]
mul edx
seto cl
neg ecx
or ecx, eax
push ecx
call fcn.004759ee
mov ebx, eax
add esp, 4
mov dword [ebp - 0x21c], ebx
test ebx, ebx
je 0x470beb
xor eax, eax
xor edx, edx
mov word [ebx + esi*2], ax
test esi, esi
je 0x470bf5
lea edi, [ebp - 0x214]
mov eax, ebx
sub edi, ebx
mov cx, word [edi + eax]
lea eax, [eax + 2]
inc edx
mov word [eax - 2], cx
cmp edx, esi
jb 0x470bd3
mov edi, dword [ebp - 0x224]
jmp 0x470bf5
mov dword [ebp - 0x218], 0
mov dword [ebp - 4], 1
lea ecx, [ebp - 0x21c]
mov esi, dword [ebp - 0x230]
push ecx
mov eax, dword [esi + 4]
cmp dword [esi + 8], eax
je 0x470c1e
mov ecx, eax
call fcn.0046e3a0
add dword [esi + 4], 8
jmp 0x470c2c
push eax
mov ecx, esi
call fcn.00471a40
mov ebx, dword [ebp - 0x21c]
mov byte [ebp - 4], 0
test ebx, ebx
je 0x470c49
push 2
push ebx
call fcn.004759e0
add esp, 8
mov dword [ebp - 0x21c], 0
mov ebx, dword [ebp - 0x234]
mov dword [ebp - 0x218], 0
inc edi
mov dword [ebp - 0x224], edi
cmp edi, dword [ebp - 0x228]
jb 0x470b20
mov eax, esi
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 0x14]
xor ecx, ebp
call fcn.0047540c
mov esp, ebp
pop ebp
ret 4
call fcn.0047553e
int3
Function at 0x470ca0
Capabilities:
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x488e72
mov eax, dword fs:[0]
push eax
sub esp, 0x210
mov eax, dword [0x49f008]
xor eax, ebp
mov dword [ebp - 0x10], eax
push ebx
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov ebx, ecx
mov eax, dword [ebx]
test eax, eax
je 0x470dc9
push 0
push 0
push 0
push 0
lea ecx, [ebp - 0x214]
push ecx
push 0
push 0
push 0
push 0
push 0
push 0
push eax
call dword [sym.imp.ADVAPI32.dll_RegQueryInfoKeyW]
test eax, eax
jne 0x470dc9
cmp dword [ebp - 0x214], eax
jbe 0x470dc9
push 8
call fcn.00475618
mov edi, eax
xor esi, esi
mov dword [ebp - 0x218], edi
add esp, 4
mov dword [edi], 0
mov dword [edi + 4], 0
cmp dword [ebp - 0x214], esi
jbe 0x470dcb
nop dword [eax]
push 0x200
lea eax, [ebp - 0x210]
push 0
push eax
call fcn.00476e60
add esp, 0xc
mov dword [ebp - 0x218], 0xff
lea eax, [ebp - 0x218]
push 0
push 0
push 0
push 0
push eax
lea eax, [ebp - 0x210]
push eax
push esi
push dword [ebx]
call dword [sym.imp.ADVAPI32.dll_RegEnumValueW]
test eax, eax
jne 0x470db8
push 8
call fcn.00475618
add esp, 4
mov dword [ebp - 0x21c], eax
lea ecx, [ebp - 0x210]
mov dword [ebp - 4], 0
push ecx
mov ecx, eax
call fcn.0046e290
push ecx
push eax
mov ecx, edi
mov dword [ebp - 4], 0xffffffff
call fcn.0046e130
inc esi
cmp esi, dword [ebp - 0x214]
jb 0x470d40
mov eax, edi
jmp 0x470dcb
xor eax, eax
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.0047540c
mov esp, ebp
pop ebp
ret

Function at 0x4714a0
Capabilities:
Query environment variable

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x108
mov eax, dword [0x49f008]
xor eax, ebp
mov dword [ebp - 4], eax
push esi
push 0x80
lea eax, [ebp - 0x104]
mov dword [ebp - 0x108], 0
push eax
push str.Client_SID
mov esi, ecx
call dword [sym.imp.KERNEL32.dll_GetEnvironmentVariableW]
test eax, eax
je 0x471512
lea eax, [ebp - 0x108]
or esi, 0x20006
push eax
push esi
push 0
lea eax, [ebp - 0x104]
push eax
push 0x80000003
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
mov eax, dword [ebp - 0x108]
pop esi
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.0047540c
mov esp, ebp
pop ebp
ret
mov ecx, dword [ebp - 4]
mov eax, 0x80000001
xor ecx, ebp
pop esi
call fcn.0047540c
mov esp, ebp
pop ebp
ret
Function at 0x4716d0
Capabilities:
Set registry value

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x489008
mov eax, dword fs:[0]
push eax
sub esp, 0x38
push ebx
push esi
push edi
mov eax, dword [0x49f008]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov dword [ebp - 0x14], edx
mov dword [ebp - 0x3c], 0
mov dword [ebp - 0x38], 0
push 0x20119
lea edx, [ebp - 0x3c]
mov dword [ebp - 4], 0
call fcn.00470e80
add esp, 4
test eax, eax
jne 0x47172b
xor bl, bl
jmp 0x4718ff
push eax
lea ecx, [ebp - 0x2c]
mov dword [ebp - 0x28], 0x20119
call fcn.00470df0
mov dword [ebp - 0x1c], 0
mov dword [ebp - 0x18], 0
mov dword [ebp - 0x34], 0
mov dword [ebp - 0x30], 0
lea eax, [ebp - 0x34]
mov byte [ebp - 4], 3
push eax
lea edx, [ebp - 0x1c]
lea ecx, [ebp - 0x3c]
call fcn.00471370
mov esi, dword [sym.imp.ADVAPI32.dll_RegCloseKey]
add esp, 4
test al, al
jne 0x47177e
xor bl, bl
jmp 0x471892
mov dword [ebp - 0x24], 0
mov dword [ebp - 0x20], 0x20119
lea eax, [ebp - 0x1c]
mov byte [ebp - 4], 4
push eax
lea ecx, [ebp - 0x2c]
call fcn.00470590
test al, al
lea ecx, [ebp - 0x2c]
lea eax, [ebp - 0x1c]
je 0x4717b4
push 1
push eax
lea eax, [ebp - 0x44]
push eax
call fcn.004701c0
jmp 0x4717be
push eax
lea eax, [ebp - 0x44]
push eax
call fcn.00470400
push eax
lea ecx, [ebp - 0x24]
call fcn.004700f0
mov eax, dword [ebp - 0x44]
test eax, eax
je 0x4717fb
cmp eax, 0x80000000
je 0x4717fb
cmp eax, 0x80000005
je 0x4717fb
cmp eax, 0x80000001
je 0x4717fb
cmp eax, 0x80000002
je 0x4717fb
cmp eax, 0x80000004
je 0x4717fb
cmp eax, 0x80000003
je 0x4717fb
push eax
call esi
mov eax, dword [ebp - 0x24]
xor bl, bl
test eax, eax
je 0x471892
lea ecx, [ebp - 0x34]
call fcn.0046f400
mov esi, dword [ebp - 0x14]
mov edi, eax
mov ecx, esi
call fcn.0046f400
mov ecx, dword [esi + 4]
mov ebx, eax
lea ecx, [ecx*2 + 2]
push ecx
push ebx
push 1
push 0
push edi
push dword [ebp - 0x24]
call dword [sym.imp.ADVAPI32.dll_RegSetValueExW]
push edi
mov esi, eax
call fcn.00475cb6
add esp, 4
push ebx
call fcn.00475cb6
mov eax, dword [ebp - 0x24]
add esp, 4
test esi, esi
mov esi, dword [sym.imp.ADVAPI32.dll_RegCloseKey]
sete bl
test eax, eax
je 0x471892
cmp eax, 0x80000000
je 0x47188b
cmp eax, 0x80000005
je 0x47188b
cmp eax, 0x80000001
je 0x47188b
cmp eax, 0x80000002
je 0x47188b
cmp eax, 0x80000004
je 0x47188b
cmp eax, 0x80000003
je 0x47188b
push eax
call esi
mov dword [ebp - 0x24], 0
mov eax, dword [ebp - 0x34]
test eax, eax
je 0x4718a4
push 2
push eax
call fcn.004759e0
add esp, 8
mov eax, dword [ebp - 0x1c]
test eax, eax
je 0x4718bd
push 2
push eax
call fcn.004759e0
add esp, 8
mov dword [ebp - 0x1c], 0
mov eax, dword [ebp - 0x2c]
mov dword [ebp - 0x18], 0
test eax, eax
je 0x4718ff
cmp eax, 0x80000000
je 0x4718f8
cmp eax, 0x80000005
je 0x4718f8
cmp eax, 0x80000001
je 0x4718f8
cmp eax, 0x80000002
je 0x4718f8
cmp eax, 0x80000004
je 0x4718f8
cmp eax, 0x80000003
je 0x4718f8
push eax
call esi
mov dword [ebp - 0x2c], 0
mov eax, dword [ebp - 0x3c]
test eax, eax
je 0x471911
push 2
push eax
call fcn.004759e0
add esp, 8
mov al, bl
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x471db0
Capabilities:
Read file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 8
push esi
push 0
lea eax, [ebp - 8]
mov byte [ebp - 1], 0
push eax
mov esi, ecx
mov dword [ebp - 8], 0
push 1
lea eax, [ebp - 1]
push eax
push dword [esi + 4]
call dword [sym.imp.KERNEL32.dll_ReadFile]
mov eax, dword [ebp - 8]
add dword [esi + 8], eax
mov al, byte [ebp - 1]
pop esi
mov esp, ebp
pop ebp
ret

Function at 0x471df0
Capabilities:
Read file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 8
push esi
push 0
lea eax, [ebp - 4]
mov dword [ebp - 8], 0
push eax
mov esi, ecx
mov dword [ebp - 4], 0
push 2
lea eax, [ebp - 8]
push eax
push dword [esi + 4]
call dword [sym.imp.KERNEL32.dll_ReadFile]
mov eax, dword [ebp - 4]
add dword [esi + 8], eax
mov ax, word [ebp - 8]
pop esi
mov esp, ebp
pop ebp
ret

Function at 0x471e30
Capabilities:
Read file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 8
push esi
push 0
lea eax, [ebp - 4]
mov dword [ebp - 8], 0
push eax
mov esi, ecx
mov dword [ebp - 4], 0
push 4
lea eax, [ebp - 8]
push eax
push dword [esi + 4]
call dword [sym.imp.KERNEL32.dll_ReadFile]
mov eax, dword [ebp - 4]
add dword [esi + 8], eax
mov eax, dword [ebp - 8]
pop esi
mov esp, ebp
pop ebp
ret

Function at 0x471e70
Capabilities:
Read file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0xc
push esi
push 0
lea eax, [ebp - 4]
mov dword [ebp - 4], 0
push eax
mov esi, ecx
lea eax, [ebp - 0xc]
push 8
push eax
xorps xmm0, xmm0
push dword [esi + 4]
movlpd qword [ebp - 0xc], xmm0
call dword [sym.imp.KERNEL32.dll_ReadFile]
mov eax, dword [ebp - 4]
add dword [esi + 8], eax
mov eax, dword [ebp - 0xc]
mov edx, dword [ebp - 8]
pop esi
mov esp, ebp
pop ebp
ret

Function at 0x471eb0
Capabilities:
Read file on windows

Disassembly:
push ebp
mov ebp, esp
push ecx
push esi
mov esi, ecx
mov dword [ebp - 4], 0
mov ecx, dword [ebp + 8]
test ecx, ecx
je 0x471eea
mov eax, dword [ebp + 0xc]
test eax, eax
je 0x471eea
push 0
lea edx, [ebp - 4]
push edx
push eax
push ecx
push dword [esi + 4]
call dword [sym.imp.KERNEL32.dll_ReadFile]
mov eax, dword [ebp - 4]
add dword [esi + 8], eax
pop esi
mov esp, ebp
pop ebp
ret 8
xor eax, eax
pop esi
mov esp, ebp
pop ebp
ret 8
Function at 0x471f40
Capabilities:
Create directory

Disassembly:
push ebp
mov ebp, esp
sub esp, 8
push ebx
xor bl, bl
mov dword [ebp - 4], ecx
test ecx, ecx
je 0x472088
mov edx, dword [ecx + 4]
cmp edx, 1
jbe 0x472088
push esi
mov esi, dword [ecx]
cmp word [esi + 2], 0x3a
jne 0x472080
cmp edx, 2
jbe 0x472080
cmp word [esi + 4], 0x5c
jne 0x472080
mov edx, 3
push edi
mov dword [ebp - 8], edx
nop dword [eax + eax]
xor edi, edi
or esi, 0xffffffff
test edx, edx
mov eax, edx
mov edx, dword [ecx]
cmovs eax, edi
test edx, edx
je 0x472050
mov ebx, dword [ecx + 4]
test ebx, ebx
je 0x472050
cmp eax, ebx
jae 0x472050
lea edx, [edx + eax*2]
nop dword [eax]
mov edi, eax
cmp esi, 0xffffffff
jne 0x471fdf
movzx ecx, word [edx]
inc eax
add edx, 2
mov esi, edi
cmp ecx, 0x5c
mov ecx, 0xffffffff
cmovne esi, ecx
cmp eax, ebx
jb 0x471fc0
mov ecx, dword [ebp - 4]
cmp esi, 0xffffffff
je 0x472050
push esi
push 0
call fcn.0046f290
mov ecx, dword [ebp - 4]
mov edi, eax
mov edx, dword [ebp - 8]
test edi, edi
je 0x471f90
mov ecx, edi
call fcn.0046f400
mov ebx, eax
test ebx, ebx
je 0x47201c
push 0
push ebx
call dword [sym.imp.KERNEL32.dll_CreateDirectoryW]
push 2
push ebx
call fcn.004759e0
add esp, 8
mov eax, dword [edi]
test eax, eax
je 0x472033
push 2
push eax
call fcn.004759e0
add esp, 8
mov dword [edi], 0
push 8
push edi
mov dword [edi + 4], 0
call fcn.004759e0
mov ecx, dword [ebp - 4]
lea edx, [esi + 1]
add esp, 8
jmp 0x471f88
mov eax, dword [ebp - 8]
pop edi
cmp eax, dword [ecx + 4]
jge 0x472078
call fcn.0046f400
mov esi, eax
test esi, esi
je 0x472078
push 0
push esi
call dword [sym.imp.KERNEL32.dll_CreateDirectoryW]
push 2
push esi
call fcn.004759e0
add esp, 8
pop esi
mov al, 1
pop ebx
mov esp, ebp
pop ebp
ret
pop esi
mov al, bl
pop ebx
mov esp, ebp
pop ebp
ret
mov al, bl
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x472090
Capabilities:
Check if file exists
Get file attributes

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x488da8
mov eax, dword fs:[0]
push eax
sub esp, 0x14
push ebx
push esi
push edi
mov eax, dword [0x49f008]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov edi, ecx
mov byte [ebp - 0xd], 0
call fcn.0046f400
mov esi, eax
push esi
call dword [sym.imp.KERNEL32.dll_GetFileAttributesW]
push 2
push esi
mov ebx, eax
call fcn.004759e0
add esp, 8
cmp ebx, 0xffffffff
jne 0x47217d
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov esi, eax
cmp esi, 2
jb 0x4720f4
cmp esi, 3
jbe 0x472169
push 0x98
mov dword [ebp - 0x1c], 0
mov dword [ebp - 0x14], 0
mov dword [ebp - 0x18], 0x4b
call fcn.004759ee
mov ecx, dword [ebp - 0x18]
push 0xffffffffffffffff
push str.DoesFolderExist_INVALID_FILE_ATTRIBUTES_and_GetLastError_returned__I_for__s
inc ecx
mov dword [ebp - 0x1c], eax
push ecx
push eax
lea eax, [ebp - 0x14]
push eax
call fcn.0047b6a2
mov ecx, dword [ebp - 0x18]
xor edx, edx
test eax, eax
cmovne ecx, edx
mov dword [ebp - 0x18], ecx
push edi
push esi
lea eax, [ebp - 0x1c]
mov dword [ebp - 4], edx
push eax
push 0x5c
push str.OFileManager::doesFolderExist
push str.d:jenkinsworkspaceclient3.lib.platformlibplatformlib_srcofilemanager.cpp
push edx
call fcn.00473300
mov eax, dword [ebp - 0x1c]
add esp, 0x34
test eax, eax
je 0x472169
push 2
push eax
call fcn.004759e0
add esp, 8
xor al, al
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
movzx eax, byte [ebp - 0xd]
test bl, 0x10
mov ecx, 1
cmovne eax, ecx
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret

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

Disassembly:
push esi
push edi
call fcn.0046f400
mov esi, eax
push esi
call dword [sym.imp.KERNEL32.dll_GetFileAttributesW]
push 2
push esi
mov edi, eax
call fcn.004759e0
add esp, 8
cmp edi, 0xffffffff
setne al
pop edi
pop esi
ret